@bravobit/bb-foundation 0.15.4 → 0.16.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 (377) 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.component.d.ts +27 -0
  7. package/controls/lib/checkbox/checkbox.module.d.ts +9 -0
  8. package/controls/lib/controls.module.d.ts +7 -0
  9. package/controls/package.json +10 -0
  10. package/controls/public_api.d.ts +3 -0
  11. package/dashboard/package.json +5 -5
  12. package/dialog/package.json +5 -5
  13. package/elements/package.json +5 -5
  14. package/{esm2015/auth/bravobit-bb-foundation-auth.js → esm2020/auth/bravobit-bb-foundation-auth.mjs} +0 -0
  15. package/esm2020/auth/lib/auth.interceptor.mjs +94 -0
  16. package/{esm2015/auth/lib/auth.module.js → esm2020/auth/lib/auth.module.mjs} +5 -5
  17. package/esm2020/auth/lib/auth.service.mjs +276 -0
  18. package/esm2020/auth/lib/auth.session.mjs +131 -0
  19. package/{esm2015/auth/lib/directives/authenticated.directive.js → esm2020/auth/lib/directives/authenticated.directive.mjs} +5 -6
  20. package/esm2020/auth/lib/directives/permission.directive.mjs +80 -0
  21. package/esm2020/auth/lib/directives/role.directive.mjs +37 -0
  22. package/esm2020/auth/lib/guards/anonymous.guard.mjs +34 -0
  23. package/esm2020/auth/lib/guards/authenticated.guard.mjs +35 -0
  24. package/{esm2015/auth/lib/helpers/jwt.helper.js → esm2020/auth/lib/helpers/jwt.helper.mjs} +3 -3
  25. package/{esm2015/auth/lib/helpers/mapper.helper.js → esm2020/auth/lib/helpers/mapper.helper.mjs} +4 -4
  26. package/{esm2015/auth/lib/interfaces/config.interface.js → esm2020/auth/lib/interfaces/config.interface.mjs} +0 -0
  27. package/{esm2015/auth/lib/interfaces/mapper.interface.js → esm2020/auth/lib/interfaces/mapper.interface.mjs} +0 -0
  28. package/{esm2015/auth/lib/interfaces/provider.interface.js → esm2020/auth/lib/interfaces/provider.interface.mjs} +0 -0
  29. package/{esm2015/auth/lib/interfaces/token.interface.js → esm2020/auth/lib/interfaces/token.interface.mjs} +0 -0
  30. package/esm2020/auth/lib/permissions.service.mjs +56 -0
  31. package/esm2020/auth/lib/providers/email.provider.mjs +25 -0
  32. package/esm2020/auth/lib/providers/verify.provider.mjs +19 -0
  33. package/{esm2015/auth/lib/tokens/use-authorization.token.js → esm2020/auth/lib/tokens/use-authorization.token.mjs} +0 -0
  34. package/{esm2015/auth/public_api.js → esm2020/auth/public_api.mjs} +0 -0
  35. package/{esm2015/bravobit-bb-foundation.js → esm2020/bravobit-bb-foundation.mjs} +0 -0
  36. package/{esm2015/collections/bravobit-bb-foundation-collections.js → esm2020/collections/bravobit-bb-foundation-collections.mjs} +0 -0
  37. package/esm2020/collections/lib/collection.mjs +98 -0
  38. package/{esm2015/collections/lib/collections.module.js → esm2020/collections/lib/collections.module.mjs} +5 -5
  39. package/esm2020/collections/lib/components/collections-pager/collections-pager.component.mjs +123 -0
  40. package/esm2020/collections/lib/components/collections-viewer/collections-viewer.component.mjs +31 -0
  41. package/{esm2015/collections/lib/components/collections.directive.js → esm2020/collections/lib/components/collections.directive.mjs} +13 -13
  42. package/{esm2015/collections/lib/interfaces/collection.interface.js → esm2020/collections/lib/interfaces/collection.interface.mjs} +0 -0
  43. package/esm2020/collections/lib/providers/api-collection.provider.mjs +68 -0
  44. package/esm2020/collections/lib/providers/collection.provider.mjs +13 -0
  45. package/{esm2015/collections/lib/providers/local-collection.provider.js → esm2020/collections/lib/providers/local-collection.provider.mjs} +0 -0
  46. package/{esm2015/collections/public_api.js → esm2020/collections/public_api.mjs} +0 -0
  47. package/esm2020/controls/bravobit-bb-foundation-controls.mjs +5 -0
  48. package/esm2020/controls/lib/checkbox/checkbox.component.mjs +86 -0
  49. package/esm2020/controls/lib/checkbox/checkbox.module.mjs +19 -0
  50. package/esm2020/controls/lib/controls.module.mjs +16 -0
  51. package/esm2020/controls/public_api.mjs +4 -0
  52. package/{esm2015/dashboard/bravobit-bb-foundation-dashboard.js → esm2020/dashboard/bravobit-bb-foundation-dashboard.mjs} +0 -0
  53. package/esm2020/dashboard/lib/dashboard/dashboard.component.mjs +56 -0
  54. package/esm2020/dashboard/lib/dashboard-header/dashboard-header.component.mjs +30 -0
  55. package/esm2020/dashboard/lib/dashboard-menu/dashboard-menu.component.mjs +31 -0
  56. package/esm2020/dashboard/lib/dashboard-menu-item/dashboard-menu-item.component.mjs +29 -0
  57. package/esm2020/dashboard/lib/dashboard-sidebar/dashboard-sidebar.component.mjs +75 -0
  58. package/esm2020/dashboard/lib/dashboard-sidebar-group/dashboard-sidebar-group.component.mjs +99 -0
  59. package/esm2020/dashboard/lib/dashboard-sidebar-item/dashboard-sidebar-item.component.mjs +62 -0
  60. package/{esm2015/dashboard/lib/dashboard.module.js → esm2020/dashboard/lib/dashboard.module.mjs} +5 -5
  61. package/{esm2015/dashboard/public_api.js → esm2020/dashboard/public_api.mjs} +0 -0
  62. package/{esm2015/dialog/bravobit-bb-foundation-dialog.js → esm2020/dialog/bravobit-bb-foundation-dialog.mjs} +0 -0
  63. package/esm2020/dialog/lib/dialog-actions/dialog-actions.component.mjs +12 -0
  64. package/esm2020/dialog/lib/dialog-confirm/dialog-confirm.component.mjs +37 -0
  65. package/{esm2015/dialog/lib/dialog-container/dialog-container.component.js → esm2020/dialog/lib/dialog-container/dialog-container.component.mjs} +6 -15
  66. package/esm2020/dialog/lib/dialog-header/dialog-header.component.mjs +25 -0
  67. package/esm2020/dialog/lib/dialog-link/dialog-link.component.mjs +11 -0
  68. package/esm2020/dialog/lib/dialog-modal/dialog-modal.component.mjs +46 -0
  69. package/esm2020/dialog/lib/dialog-overlay/dialog-overlay.component.mjs +134 -0
  70. package/{esm2015/dialog/lib/dialog.injector.js → esm2020/dialog/lib/dialog.injector.mjs} +0 -0
  71. package/{esm2015/dialog/lib/dialog.insertion.js → esm2020/dialog/lib/dialog.insertion.mjs} +4 -4
  72. package/{esm2015/dialog/lib/dialog.interfaces.js → esm2020/dialog/lib/dialog.interfaces.mjs} +0 -0
  73. package/{esm2015/dialog/lib/dialog.module.js → esm2020/dialog/lib/dialog.module.mjs} +5 -9
  74. package/{esm2015/dialog/lib/dialog.ref.js → esm2020/dialog/lib/dialog.ref.mjs} +0 -0
  75. package/{esm2015/dialog/lib/dialog.service.js → esm2020/dialog/lib/dialog.service.mjs} +5 -5
  76. package/{esm2015/dialog/public_api.js → esm2020/dialog/public_api.mjs} +0 -0
  77. package/{esm2015/elements/bravobit-bb-foundation-elements.js → esm2020/elements/bravobit-bb-foundation-elements.mjs} +0 -0
  78. package/esm2020/elements/lib/avatar/avatar.component.mjs +142 -0
  79. package/esm2020/elements/lib/button/button.component.mjs +61 -0
  80. package/esm2020/elements/lib/checkbox/checkbox.component.mjs +73 -0
  81. package/esm2020/elements/lib/date-picker/date-picker.component.mjs +304 -0
  82. package/{esm2015/elements/lib/directives/addon.directive.js → esm2020/elements/lib/directives/addon.directive.mjs} +7 -7
  83. package/esm2020/elements/lib/directives/autosize.directive.mjs +72 -0
  84. package/{esm2015/elements/lib/directives/focus-trap.directive.js → esm2020/elements/lib/directives/focus-trap.directive.mjs} +4 -4
  85. package/{esm2015/elements/lib/directives/focus.directive.js → esm2020/elements/lib/directives/focus.directive.mjs} +4 -4
  86. package/esm2020/elements/lib/directives/form-submit.directive.mjs +50 -0
  87. package/esm2020/elements/lib/directives/input.directive.mjs +136 -0
  88. package/{esm2015/elements/lib/directives/template.directive.js → esm2020/elements/lib/directives/template.directive.mjs} +4 -4
  89. package/esm2020/elements/lib/dropdown/dropdown.component.mjs +100 -0
  90. package/{esm2015/elements/lib/elements.interfaces.js → esm2020/elements/lib/elements.interfaces.mjs} +0 -0
  91. package/{esm2015/elements/lib/elements.module.js → esm2020/elements/lib/elements.module.mjs} +5 -5
  92. package/esm2020/elements/lib/file-picker/file-picker.component.mjs +236 -0
  93. package/esm2020/elements/lib/form-control/form-control.component.mjs +49 -0
  94. package/esm2020/elements/lib/form-error/form-error.component.mjs +108 -0
  95. package/esm2020/elements/lib/form-group/form-group.component.mjs +18 -0
  96. package/esm2020/elements/lib/icon/icon.component.mjs +102 -0
  97. package/esm2020/elements/lib/image-picker/image-picker.component.mjs +106 -0
  98. package/esm2020/elements/lib/pipes/file-image.pipe.mjs +42 -0
  99. package/{esm2015/elements/lib/pipes/file-size.pipe.js → esm2020/elements/lib/pipes/file-size.pipe.mjs} +4 -4
  100. package/esm2020/elements/lib/pipes/relative-time.pipe.mjs +94 -0
  101. package/esm2020/elements/lib/spinner/spinner.component.mjs +25 -0
  102. package/esm2020/elements/lib/tag/tag.component.mjs +18 -0
  103. package/{esm2015/elements/public_api.js → esm2020/elements/public_api.mjs} +0 -0
  104. package/{esm2015/http/bravobit-bb-foundation-http.js → esm2020/http/bravobit-bb-foundation-http.mjs} +0 -0
  105. package/esm2020/http/lib/classes/http.config.mjs +29 -0
  106. package/esm2020/http/lib/classes/http.error.mjs +20 -0
  107. package/{esm2015/http/lib/http.interfaces.js → esm2020/http/lib/http.interfaces.mjs} +0 -0
  108. package/{esm2015/http/lib/http.module.js → esm2020/http/lib/http.module.mjs} +5 -5
  109. package/esm2020/http/lib/interceptors/base-url.interceptor.mjs +50 -0
  110. package/esm2020/http/lib/interceptors/error.interceptor.mjs +32 -0
  111. package/{esm2015/http/public_api.js → esm2020/http/public_api.mjs} +0 -0
  112. package/{esm2015/lib/core/coercions/boolean-coercion.js → esm2020/lib/core/coercions/boolean-coercion.mjs} +0 -0
  113. package/{esm2015/lib/core/miscellaneous/regex.js → esm2020/lib/core/miscellaneous/regex.mjs} +0 -0
  114. package/esm2020/lib/core/miscellaneous/validator.mjs +85 -0
  115. package/{esm2015/lib/core/mixins/can-disable.js → esm2020/lib/core/mixins/can-disable.mjs} +0 -0
  116. package/{esm2015/lib/core/mixins/can-hide-errors.js → esm2020/lib/core/mixins/can-hide-errors.mjs} +0 -0
  117. package/{esm2015/lib/core/mixins/can-load.js → esm2020/lib/core/mixins/can-load.mjs} +0 -0
  118. package/{esm2015/lib/core/mixins/constructor.js → esm2020/lib/core/mixins/constructor.mjs} +0 -0
  119. package/{esm2015/lib/core/mixins/has-error.js → esm2020/lib/core/mixins/has-error.mjs} +0 -0
  120. package/{esm2015/lib/core/mixins/is-focused.js → esm2020/lib/core/mixins/is-focused.mjs} +0 -0
  121. package/{esm2015/lib/core/mixins/is-grouped.js → esm2020/lib/core/mixins/is-grouped.mjs} +0 -0
  122. package/{esm2015/lib/core/mixins/is-readonly.js → esm2020/lib/core/mixins/is-readonly.mjs} +0 -0
  123. package/{esm2015/lib/core/mixins/is-required.js → esm2020/lib/core/mixins/is-required.mjs} +0 -0
  124. package/esm2020/lib/core/services/clipboard.service.mjs +70 -0
  125. package/esm2020/lib/core/services/exif.service.mjs +163 -0
  126. package/esm2020/lib/core/services/file-loader.service.mjs +87 -0
  127. package/esm2020/lib/core/services/image-converter.service.mjs +123 -0
  128. package/{esm2015/lib/core/services/languages.service.js → esm2020/lib/core/services/languages.service.mjs} +4 -4
  129. package/{esm2015/lib/core/services/network.service.js → esm2020/lib/core/services/network.service.mjs} +5 -6
  130. package/esm2020/lib/core/services/patch.service.mjs +63 -0
  131. package/{esm2015/lib/core/services/platform.service.js → esm2020/lib/core/services/platform.service.mjs} +5 -5
  132. package/{esm2015/lib/core/tokens/accept-language.token.js → esm2020/lib/core/tokens/accept-language.token.mjs} +0 -0
  133. package/{esm2015/lib/core/tokens/base-url.token.js → esm2020/lib/core/tokens/base-url.token.mjs} +0 -0
  134. package/{esm2015/lib/core/tokens/cookie.token.js → esm2020/lib/core/tokens/cookie.token.mjs} +0 -0
  135. package/{esm2015/lib/core/tokens/location.token.js → esm2020/lib/core/tokens/location.token.mjs} +0 -0
  136. package/{esm2015/lib/core/tokens/navigator.token.js → esm2020/lib/core/tokens/navigator.token.mjs} +0 -0
  137. package/{esm2015/lib/core/tokens/window.token.js → esm2020/lib/core/tokens/window.token.mjs} +0 -0
  138. package/{esm2015/localize/bravobit-bb-foundation-localize.js → esm2020/localize/bravobit-bb-foundation-localize.mjs} +0 -0
  139. package/{esm2015/localize/lib/functions/date.function.js → esm2020/localize/lib/functions/date.function.mjs} +0 -0
  140. package/{esm2015/localize/lib/functions/lowercase.function.js → esm2020/localize/lib/functions/lowercase.function.mjs} +0 -0
  141. package/{esm2015/localize/lib/functions/uppercase.function.js → esm2020/localize/lib/functions/uppercase.function.mjs} +0 -0
  142. package/{esm2015/localize/lib/handlers/missing.handler.js → esm2020/localize/lib/handlers/missing.handler.mjs} +0 -0
  143. package/{esm2015/localize/lib/interfaces/config.interfaces.js → esm2020/localize/lib/interfaces/config.interfaces.mjs} +0 -0
  144. package/{esm2015/localize/lib/interfaces/dictionary.interfaces.js → esm2020/localize/lib/interfaces/dictionary.interfaces.mjs} +0 -0
  145. package/{esm2015/localize/lib/interfaces/functions.interfaces.js → esm2020/localize/lib/interfaces/functions.interfaces.mjs} +0 -0
  146. package/{esm2015/localize/lib/interfaces/handlers.interfaces.js → esm2020/localize/lib/interfaces/handlers.interfaces.mjs} +0 -0
  147. package/{esm2015/localize/lib/interfaces/options.interfaces.js → esm2020/localize/lib/interfaces/options.interfaces.mjs} +0 -0
  148. package/{esm2015/localize/lib/localizations/dutch.localization.js → esm2020/localize/lib/localizations/dutch.localization.mjs} +0 -0
  149. package/{esm2015/localize/lib/localizations/english.localization.js → esm2020/localize/lib/localizations/english.localization.mjs} +0 -0
  150. package/esm2020/localize/lib/localize.dictionary.mjs +135 -0
  151. package/{esm2015/localize/lib/localize.module.js → esm2020/localize/lib/localize.module.mjs} +5 -5
  152. package/{esm2015/localize/lib/localize.pipe.js → esm2020/localize/lib/localize.pipe.mjs} +5 -5
  153. package/esm2020/localize/lib/localize.service.mjs +277 -0
  154. package/esm2020/localize/lib/views/localize-string/localize-string.component.mjs +88 -0
  155. package/{esm2015/localize/lib/views/localize-template-or-string.directive.js → esm2020/localize/lib/views/localize-template-or-string.directive.mjs} +4 -4
  156. package/{esm2015/localize/lib/views/localize-template.directive.js → esm2020/localize/lib/views/localize-template.directive.mjs} +4 -4
  157. package/{esm2015/localize/public_api.js → esm2020/localize/public_api.mjs} +0 -0
  158. package/{esm2015/notifications/bravobit-bb-foundation-notifications.js → esm2020/notifications/bravobit-bb-foundation-notifications.mjs} +0 -0
  159. package/esm2020/notifications/lib/notifications-item/notifications-item.component.mjs +100 -0
  160. package/esm2020/notifications/lib/notifications-list/notifications-list.component.mjs +47 -0
  161. package/{esm2015/notifications/lib/notifications.animations.js → esm2020/notifications/lib/notifications.animations.mjs} +0 -0
  162. package/{esm2015/notifications/lib/notifications.injector.js → esm2020/notifications/lib/notifications.injector.mjs} +0 -0
  163. package/{esm2015/notifications/lib/notifications.interfaces.js → esm2020/notifications/lib/notifications.interfaces.mjs} +0 -0
  164. package/{esm2015/notifications/lib/notifications.module.js → esm2020/notifications/lib/notifications.module.mjs} +6 -7
  165. package/{esm2015/notifications/lib/notifications.service.js → esm2020/notifications/lib/notifications.service.mjs} +5 -5
  166. package/{esm2015/notifications/public_api.js → esm2020/notifications/public_api.mjs} +0 -0
  167. package/{esm2015/public_api.js → esm2020/public_api.mjs} +0 -0
  168. package/{esm2015/recaptcha/bravobit-bb-foundation-recaptcha.js → esm2020/recaptcha/bravobit-bb-foundation-recaptcha.mjs} +0 -0
  169. package/esm2020/recaptcha/lib/recaptcha/recaptcha.component.mjs +185 -0
  170. package/esm2020/recaptcha/lib/recaptcha-loader.service.mjs +90 -0
  171. package/{esm2015/recaptcha/lib/recaptcha.interface.js → esm2020/recaptcha/lib/recaptcha.interface.mjs} +0 -0
  172. package/{esm2015/recaptcha/lib/recaptcha.module.js → esm2020/recaptcha/lib/recaptcha.module.mjs} +5 -5
  173. package/{esm2015/recaptcha/public_api.js → esm2020/recaptcha/public_api.mjs} +0 -0
  174. package/{esm2015/rxjs/bravobit-bb-foundation-rxjs.js → esm2020/rxjs/bravobit-bb-foundation-rxjs.mjs} +0 -0
  175. package/esm2020/rxjs/lib/operators/combine-latest-map.operator.mjs +10 -0
  176. package/{esm2015/rxjs/lib/operators/filter-nil.operator.js → esm2020/rxjs/lib/operators/filter-nil.operator.mjs} +0 -0
  177. package/{esm2015/rxjs/public_api.js → esm2020/rxjs/public_api.mjs} +0 -0
  178. package/{esm2015/storage/bravobit-bb-foundation-storage.js → esm2020/storage/bravobit-bb-foundation-storage.mjs} +0 -0
  179. package/{esm2015/storage/lib/interfaces/attributes.interface.js → esm2020/storage/lib/interfaces/attributes.interface.mjs} +0 -0
  180. package/{esm2015/storage/lib/interfaces/memory.interface.js → esm2020/storage/lib/interfaces/memory.interface.mjs} +0 -0
  181. package/{esm2015/storage/lib/interfaces/strategy.interface.js → esm2020/storage/lib/interfaces/strategy.interface.mjs} +0 -0
  182. package/esm2020/storage/lib/storage.service.mjs +109 -0
  183. package/esm2020/storage/lib/strategies/cookie-storage.strategy.mjs +142 -0
  184. package/{esm2015/storage/lib/strategies/memory-storage.strategy.js → esm2020/storage/lib/strategies/memory-storage.strategy.mjs} +2 -2
  185. package/esm2020/storage/lib/strategies/polyfill-storage.strategy.mjs +102 -0
  186. package/{esm2015/storage/public_api.js → esm2020/storage/public_api.mjs} +0 -0
  187. package/{esm2015/table/bravobit-bb-foundation-table.js → esm2020/table/bravobit-bb-foundation-table.mjs} +0 -0
  188. package/esm2020/table/lib/components/table/table.component.mjs +191 -0
  189. package/esm2020/table/lib/components/table-cell/table-cell.component.mjs +11 -0
  190. package/esm2020/table/lib/components/table-header-cell/table-header-cell.component.mjs +131 -0
  191. package/esm2020/table/lib/components/table-pager/table-pager.component.mjs +136 -0
  192. package/esm2020/table/lib/data/datasource.data.mjs +32 -0
  193. package/esm2020/table/lib/data/generic.data.mjs +72 -0
  194. package/{esm2015/table/lib/interfaces/datasource.interface.js → esm2020/table/lib/interfaces/datasource.interface.mjs} +0 -0
  195. package/{esm2015/table/lib/interfaces/table.interfaces.js → esm2020/table/lib/interfaces/table.interfaces.mjs} +0 -0
  196. package/{esm2015/table/lib/table.module.js → esm2020/table/lib/table.module.mjs} +5 -5
  197. package/{esm2015/table/public_api.js → esm2020/table/public_api.mjs} +0 -0
  198. package/fesm2015/{bravobit-bb-foundation-auth.js → bravobit-bb-foundation-auth.mjs} +79 -68
  199. package/fesm2015/bravobit-bb-foundation-auth.mjs.map +1 -0
  200. package/fesm2015/{bravobit-bb-foundation-collections.js → bravobit-bb-foundation-collections.mjs} +33 -47
  201. package/fesm2015/bravobit-bb-foundation-collections.mjs.map +1 -0
  202. package/fesm2015/bravobit-bb-foundation-controls.mjs +123 -0
  203. package/fesm2015/bravobit-bb-foundation-controls.mjs.map +1 -0
  204. package/fesm2015/bravobit-bb-foundation-dashboard.mjs +416 -0
  205. package/fesm2015/bravobit-bb-foundation-dashboard.mjs.map +1 -0
  206. package/fesm2015/{bravobit-bb-foundation-dialog.js → bravobit-bb-foundation-dialog.mjs} +45 -106
  207. package/fesm2015/bravobit-bb-foundation-dialog.mjs.map +1 -0
  208. package/fesm2015/{bravobit-bb-foundation-elements.js → bravobit-bb-foundation-elements.mjs} +193 -302
  209. package/fesm2015/bravobit-bb-foundation-elements.mjs.map +1 -0
  210. package/fesm2015/{bravobit-bb-foundation-http.js → bravobit-bb-foundation-http.mjs} +18 -16
  211. package/fesm2015/bravobit-bb-foundation-http.mjs.map +1 -0
  212. package/fesm2015/{bravobit-bb-foundation-localize.js → bravobit-bb-foundation-localize.mjs} +63 -69
  213. package/fesm2015/bravobit-bb-foundation-localize.mjs.map +1 -0
  214. package/fesm2015/bravobit-bb-foundation-notifications.mjs +377 -0
  215. package/fesm2015/bravobit-bb-foundation-notifications.mjs.map +1 -0
  216. package/fesm2015/{bravobit-bb-foundation-recaptcha.js → bravobit-bb-foundation-recaptcha.mjs} +40 -47
  217. package/fesm2015/bravobit-bb-foundation-recaptcha.mjs.map +1 -0
  218. package/fesm2015/{bravobit-bb-foundation-rxjs.js → bravobit-bb-foundation-rxjs.mjs} +1 -1
  219. package/fesm2015/bravobit-bb-foundation-rxjs.mjs.map +1 -0
  220. package/fesm2015/{bravobit-bb-foundation-storage.js → bravobit-bb-foundation-storage.mjs} +12 -10
  221. package/fesm2015/bravobit-bb-foundation-storage.mjs.map +1 -0
  222. package/fesm2015/bravobit-bb-foundation-table.mjs +603 -0
  223. package/fesm2015/bravobit-bb-foundation-table.mjs.map +1 -0
  224. package/fesm2015/{bravobit-bb-foundation.js → bravobit-bb-foundation.mjs} +74 -64
  225. package/fesm2015/bravobit-bb-foundation.mjs.map +1 -0
  226. package/fesm2020/bravobit-bb-foundation-auth.mjs +928 -0
  227. package/fesm2020/bravobit-bb-foundation-auth.mjs.map +1 -0
  228. package/fesm2020/bravobit-bb-foundation-collections.mjs +434 -0
  229. package/fesm2020/bravobit-bb-foundation-collections.mjs.map +1 -0
  230. package/fesm2020/bravobit-bb-foundation-controls.mjs +121 -0
  231. package/fesm2020/bravobit-bb-foundation-controls.mjs.map +1 -0
  232. package/fesm2020/bravobit-bb-foundation-dashboard.mjs +404 -0
  233. package/fesm2020/bravobit-bb-foundation-dashboard.mjs.map +1 -0
  234. package/fesm2020/bravobit-bb-foundation-dialog.mjs +584 -0
  235. package/fesm2020/bravobit-bb-foundation-dialog.mjs.map +1 -0
  236. package/fesm2020/bravobit-bb-foundation-elements.mjs +1993 -0
  237. package/fesm2020/bravobit-bb-foundation-elements.mjs.map +1 -0
  238. package/fesm2020/bravobit-bb-foundation-http.mjs +168 -0
  239. package/fesm2020/bravobit-bb-foundation-http.mjs.map +1 -0
  240. package/fesm2020/bravobit-bb-foundation-localize.mjs +832 -0
  241. package/fesm2020/bravobit-bb-foundation-localize.mjs.map +1 -0
  242. package/fesm2020/bravobit-bb-foundation-notifications.mjs +375 -0
  243. package/fesm2020/bravobit-bb-foundation-notifications.mjs.map +1 -0
  244. package/fesm2020/bravobit-bb-foundation-recaptcha.mjs +300 -0
  245. package/fesm2020/bravobit-bb-foundation-recaptcha.mjs.map +1 -0
  246. package/fesm2020/bravobit-bb-foundation-rxjs.mjs +21 -0
  247. package/fesm2020/bravobit-bb-foundation-rxjs.mjs.map +1 -0
  248. package/fesm2020/bravobit-bb-foundation-storage.mjs +413 -0
  249. package/fesm2020/bravobit-bb-foundation-storage.mjs.map +1 -0
  250. package/fesm2020/bravobit-bb-foundation-table.mjs +592 -0
  251. package/fesm2020/bravobit-bb-foundation-table.mjs.map +1 -0
  252. package/fesm2020/bravobit-bb-foundation.mjs +895 -0
  253. package/fesm2020/bravobit-bb-foundation.mjs.map +1 -0
  254. package/http/package.json +5 -5
  255. package/localize/package.json +5 -5
  256. package/notifications/package.json +5 -5
  257. package/package.json +125 -8
  258. package/recaptcha/package.json +5 -5
  259. package/rxjs/package.json +5 -5
  260. package/storage/package.json +5 -5
  261. package/table/lib/components/table/table.component.d.ts +3 -0
  262. package/table/package.json +5 -5
  263. package/bundles/bravobit-bb-foundation-auth.umd.js +0 -1483
  264. package/bundles/bravobit-bb-foundation-auth.umd.js.map +0 -1
  265. package/bundles/bravobit-bb-foundation-collections.umd.js +0 -868
  266. package/bundles/bravobit-bb-foundation-collections.umd.js.map +0 -1
  267. package/bundles/bravobit-bb-foundation-dashboard.umd.js +0 -876
  268. package/bundles/bravobit-bb-foundation-dashboard.umd.js.map +0 -1
  269. package/bundles/bravobit-bb-foundation-dialog.umd.js +0 -716
  270. package/bundles/bravobit-bb-foundation-dialog.umd.js.map +0 -1
  271. package/bundles/bravobit-bb-foundation-elements.umd.js +0 -2768
  272. package/bundles/bravobit-bb-foundation-elements.umd.js.map +0 -1
  273. package/bundles/bravobit-bb-foundation-http.umd.js +0 -535
  274. package/bundles/bravobit-bb-foundation-http.umd.js.map +0 -1
  275. package/bundles/bravobit-bb-foundation-localize.umd.js +0 -1292
  276. package/bundles/bravobit-bb-foundation-localize.umd.js.map +0 -1
  277. package/bundles/bravobit-bb-foundation-notifications.umd.js +0 -794
  278. package/bundles/bravobit-bb-foundation-notifications.umd.js.map +0 -1
  279. package/bundles/bravobit-bb-foundation-recaptcha.umd.js +0 -683
  280. package/bundles/bravobit-bb-foundation-recaptcha.umd.js.map +0 -1
  281. package/bundles/bravobit-bb-foundation-rxjs.umd.js +0 -29
  282. package/bundles/bravobit-bb-foundation-rxjs.umd.js.map +0 -1
  283. package/bundles/bravobit-bb-foundation-storage.umd.js +0 -799
  284. package/bundles/bravobit-bb-foundation-storage.umd.js.map +0 -1
  285. package/bundles/bravobit-bb-foundation-table.umd.js +0 -1070
  286. package/bundles/bravobit-bb-foundation-table.umd.js.map +0 -1
  287. package/bundles/bravobit-bb-foundation.umd.js +0 -1440
  288. package/bundles/bravobit-bb-foundation.umd.js.map +0 -1
  289. package/esm2015/auth/lib/auth.interceptor.js +0 -95
  290. package/esm2015/auth/lib/auth.service.js +0 -299
  291. package/esm2015/auth/lib/auth.session.js +0 -136
  292. package/esm2015/auth/lib/directives/permission.directive.js +0 -81
  293. package/esm2015/auth/lib/directives/role.directive.js +0 -38
  294. package/esm2015/auth/lib/guards/anonymous.guard.js +0 -35
  295. package/esm2015/auth/lib/guards/authenticated.guard.js +0 -36
  296. package/esm2015/auth/lib/permissions.service.js +0 -58
  297. package/esm2015/auth/lib/providers/email.provider.js +0 -26
  298. package/esm2015/auth/lib/providers/verify.provider.js +0 -20
  299. package/esm2015/collections/lib/collection.js +0 -104
  300. package/esm2015/collections/lib/components/collections-pager/collections-pager.component.js +0 -136
  301. package/esm2015/collections/lib/components/collections-viewer/collections-viewer.component.js +0 -39
  302. package/esm2015/collections/lib/providers/api-collection.provider.js +0 -69
  303. package/esm2015/collections/lib/providers/collection.provider.js +0 -14
  304. package/esm2015/dashboard/lib/dashboard/dashboard.component.js +0 -64
  305. package/esm2015/dashboard/lib/dashboard-header/dashboard-header.component.js +0 -41
  306. package/esm2015/dashboard/lib/dashboard-menu/dashboard-menu.component.js +0 -39
  307. package/esm2015/dashboard/lib/dashboard-menu-item/dashboard-menu-item.component.js +0 -38
  308. package/esm2015/dashboard/lib/dashboard-sidebar/dashboard-sidebar.component.js +0 -83
  309. package/esm2015/dashboard/lib/dashboard-sidebar-group/dashboard-sidebar-group.component.js +0 -110
  310. package/esm2015/dashboard/lib/dashboard-sidebar-item/dashboard-sidebar-item.component.js +0 -71
  311. package/esm2015/dialog/lib/dialog-actions/dialog-actions.component.js +0 -20
  312. package/esm2015/dialog/lib/dialog-confirm/dialog-confirm.component.js +0 -45
  313. package/esm2015/dialog/lib/dialog-header/dialog-header.component.js +0 -33
  314. package/esm2015/dialog/lib/dialog-link/dialog-link.component.js +0 -19
  315. package/esm2015/dialog/lib/dialog-modal/dialog-modal.component.js +0 -54
  316. package/esm2015/dialog/lib/dialog-overlay/dialog-overlay.component.js +0 -143
  317. package/esm2015/elements/lib/avatar/avatar.component.js +0 -151
  318. package/esm2015/elements/lib/button/button.component.js +0 -79
  319. package/esm2015/elements/lib/checkbox/checkbox.component.js +0 -83
  320. package/esm2015/elements/lib/date-picker/date-picker.component.js +0 -322
  321. package/esm2015/elements/lib/directives/autosize.directive.js +0 -74
  322. package/esm2015/elements/lib/directives/form-submit.directive.js +0 -53
  323. package/esm2015/elements/lib/directives/input.directive.js +0 -139
  324. package/esm2015/elements/lib/dropdown/dropdown.component.js +0 -111
  325. package/esm2015/elements/lib/file-picker/file-picker.component.js +0 -247
  326. package/esm2015/elements/lib/form-control/form-control.component.js +0 -58
  327. package/esm2015/elements/lib/form-error/form-error.component.js +0 -116
  328. package/esm2015/elements/lib/form-group/form-group.component.js +0 -27
  329. package/esm2015/elements/lib/icon/icon.component.js +0 -110
  330. package/esm2015/elements/lib/image-picker/image-picker.component.js +0 -119
  331. package/esm2015/elements/lib/pipes/file-image.pipe.js +0 -45
  332. package/esm2015/elements/lib/pipes/relative-time.pipe.js +0 -96
  333. package/esm2015/elements/lib/spinner/spinner.component.js +0 -34
  334. package/esm2015/elements/lib/tag/tag.component.js +0 -26
  335. package/esm2015/http/lib/classes/http.config.js +0 -31
  336. package/esm2015/http/lib/classes/http.error.js +0 -21
  337. package/esm2015/http/lib/interceptors/base-url.interceptor.js +0 -52
  338. package/esm2015/http/lib/interceptors/error.interceptor.js +0 -33
  339. package/esm2015/lib/core/miscellaneous/validator.js +0 -86
  340. package/esm2015/lib/core/services/clipboard.service.js +0 -72
  341. package/esm2015/lib/core/services/exif.service.js +0 -168
  342. package/esm2015/lib/core/services/file-loader.service.js +0 -90
  343. package/esm2015/lib/core/services/image-converter.service.js +0 -130
  344. package/esm2015/lib/core/services/patch.service.js +0 -65
  345. package/esm2015/localize/lib/localize.dictionary.js +0 -137
  346. package/esm2015/localize/lib/localize.service.js +0 -282
  347. package/esm2015/localize/lib/views/localize-string/localize-string.component.js +0 -99
  348. package/esm2015/notifications/lib/notifications-item/notifications-item.component.js +0 -108
  349. package/esm2015/notifications/lib/notifications-list/notifications-list.component.js +0 -56
  350. package/esm2015/recaptcha/lib/recaptcha/recaptcha.component.js +0 -199
  351. package/esm2015/recaptcha/lib/recaptcha-loader.service.js +0 -93
  352. package/esm2015/rxjs/lib/operators/combine-latest-map.operator.js +0 -7
  353. package/esm2015/storage/lib/storage.service.js +0 -111
  354. package/esm2015/storage/lib/strategies/cookie-storage.strategy.js +0 -143
  355. package/esm2015/storage/lib/strategies/polyfill-storage.strategy.js +0 -102
  356. package/esm2015/table/lib/components/table/table.component.js +0 -196
  357. package/esm2015/table/lib/components/table-cell/table-cell.component.js +0 -19
  358. package/esm2015/table/lib/components/table-header-cell/table-header-cell.component.js +0 -141
  359. package/esm2015/table/lib/components/table-pager/table-pager.component.js +0 -146
  360. package/esm2015/table/lib/data/datasource.data.js +0 -32
  361. package/esm2015/table/lib/data/generic.data.js +0 -73
  362. package/fesm2015/bravobit-bb-foundation-auth.js.map +0 -1
  363. package/fesm2015/bravobit-bb-foundation-collections.js.map +0 -1
  364. package/fesm2015/bravobit-bb-foundation-dashboard.js +0 -468
  365. package/fesm2015/bravobit-bb-foundation-dashboard.js.map +0 -1
  366. package/fesm2015/bravobit-bb-foundation-dialog.js.map +0 -1
  367. package/fesm2015/bravobit-bb-foundation-elements.js.map +0 -1
  368. package/fesm2015/bravobit-bb-foundation-http.js.map +0 -1
  369. package/fesm2015/bravobit-bb-foundation-localize.js.map +0 -1
  370. package/fesm2015/bravobit-bb-foundation-notifications.js +0 -393
  371. package/fesm2015/bravobit-bb-foundation-notifications.js.map +0 -1
  372. package/fesm2015/bravobit-bb-foundation-recaptcha.js.map +0 -1
  373. package/fesm2015/bravobit-bb-foundation-rxjs.js.map +0 -1
  374. package/fesm2015/bravobit-bb-foundation-storage.js.map +0 -1
  375. package/fesm2015/bravobit-bb-foundation-table.js +0 -626
  376. package/fesm2015/bravobit-bb-foundation-table.js.map +0 -1
  377. package/fesm2015/bravobit-bb-foundation.js.map +0 -1
@@ -1,1292 +0,0 @@
1
- (function (global, factory) {
2
- typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/common'), require('rxjs/operators'), require('rxjs'), require('@angular/platform-browser'), require('@bravobit/bb-foundation/auth'), require('@angular/common/http'), require('@bravobit/bb-foundation'), require('@bravobit/bb-foundation/storage')) :
3
- typeof define === 'function' && define.amd ? define('@bravobit/bb-foundation/localize', ['exports', '@angular/core', '@angular/common', 'rxjs/operators', 'rxjs', '@angular/platform-browser', '@bravobit/bb-foundation/auth', '@angular/common/http', '@bravobit/bb-foundation', '@bravobit/bb-foundation/storage'], 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"].localize = {}), global.ng.core, global.ng.common, global.rxjs.operators, global.rxjs, global.ng.platformBrowser, global.bravobit["bb-foundation"].auth, global.ng.common.http, global.bravobit["bb-foundation"], global.bravobit["bb-foundation"].storage));
5
- })(this, (function (exports, i0, i1, operators, rxjs, i4, auth, i1$1, i3, i2) { '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
- var i4__namespace = /*#__PURE__*/_interopNamespace(i4);
28
- var i1__namespace$1 = /*#__PURE__*/_interopNamespace(i1$1);
29
- var i3__namespace = /*#__PURE__*/_interopNamespace(i3);
30
- var i2__namespace = /*#__PURE__*/_interopNamespace(i2);
31
-
32
- //
33
- // The configuration that can be passed when
34
- // the user initializes the localize module.
35
- //
36
- var LocalizeConfig = /** @class */ (function () {
37
- function LocalizeConfig() {
38
- this.dictionary = [];
39
- }
40
- return LocalizeConfig;
41
- }());
42
-
43
- //
44
- // This is the injection token that will be injected
45
- // into the service so that the all localize functions
46
- // can retrieved and used.
47
- //
48
- var LOCALIZE_FUNCTION = new i0.InjectionToken('localize_function');
49
-
50
- //
51
- // This is the injection token that will be injected
52
- // into the service so that the all extra dictionaries
53
- // can retrieved and used.
54
- //
55
- var LOCALIZE_EXTRA_DICTIONARY = new i0.InjectionToken('localize_extra_dictionary');
56
-
57
- //
58
- // This function transform the value
59
- // to a lowercase variant of the value.
60
- //
61
- var LocalizeLowercaseFunction = /** @class */ (function () {
62
- function LocalizeLowercaseFunction() {
63
- }
64
- LocalizeLowercaseFunction.prototype.keyword = function () {
65
- return 'lowercase';
66
- };
67
- LocalizeLowercaseFunction.prototype.transform = function (value) {
68
- return (value || '').toLowerCase();
69
- };
70
- return LocalizeLowercaseFunction;
71
- }());
72
-
73
- //
74
- // This function transform the value
75
- // to a uppercase variant of the value.
76
- //
77
- var LocalizeUppercaseFunction = /** @class */ (function () {
78
- function LocalizeUppercaseFunction() {
79
- }
80
- LocalizeUppercaseFunction.prototype.keyword = function () {
81
- return 'uppercase';
82
- };
83
- LocalizeUppercaseFunction.prototype.transform = function (value) {
84
- return (value || '').toUpperCase();
85
- };
86
- return LocalizeUppercaseFunction;
87
- }());
88
-
89
- //
90
- // This function transform the value
91
- // to a localized date.
92
- //
93
- var LocalizeDateFunction = /** @class */ (function () {
94
- function LocalizeDateFunction() {
95
- }
96
- LocalizeDateFunction.prototype.keyword = function () {
97
- return 'date';
98
- };
99
- LocalizeDateFunction.prototype.transform = function (value, locale) {
100
- var date = new Date(value);
101
- if (date.toString() === 'Invalid Date') {
102
- return '?';
103
- }
104
- return i1.formatDate(date, 'longDate', locale);
105
- };
106
- return LocalizeDateFunction;
107
- }());
108
-
109
- var LOCALIZATION_EXTRA_ENGLISH = {
110
- provide: LOCALIZE_EXTRA_DICTIONARY,
111
- useValue: {
112
- locale: 'en-US',
113
- data: {
114
- 'form-control-errors': {
115
- 'unknown': 'The field has an unknown error.',
116
- 'required': 'This field is required.',
117
- 'pattern': 'Invalid format.',
118
- 'email': 'The field does not match a valid email address.',
119
- 'emailTaken': 'The e-mail is already taken.',
120
- 'passwordMatch': 'The passwords don\'t match.',
121
- 'confirm': 'The field does not match.',
122
- 'fullNumber': 'The field should be a full number.',
123
- 'min': 'Minimum amount should be {{min}}.',
124
- 'max': 'Maximum amount should be {{max}}.',
125
- 'invalidFileType': 'The file type is not allowed.',
126
- 'maxFileSize': 'The file has exceed the maximum amount of {{maxSize}}.',
127
- 'minDate': 'The first accepted date is {{date|date}}.',
128
- 'maxDate': 'The last accepted date is {{date|date}}.',
129
- 'invalidDate': 'The field contains an invalid date.',
130
- 'minlength': 'Expected a minimum of {{requiredLength}} characters but got {{actualLength}} characters.',
131
- 'maxlength': 'Expected a maximum of {{requiredLength}} characters but got {{actualLength}} characters.'
132
- },
133
- 'tables': {
134
- 'search': 'Search...',
135
- 'loading': 'Loading...',
136
- 'empty': 'There is nothing to find here.',
137
- 'page': 'page',
138
- 'error_datasource': 'No data source was provided.',
139
- 'error_unauthorized': 'You need to be authenticated to view this data.',
140
- 'error_forbidden': 'You do not have access to view this data.',
141
- 'error_not_found': 'The data was not found.',
142
- 'error_server': 'A server error occurred while fetching data from the server.',
143
- 'error_down': 'It looks like the server is down.',
144
- 'error_unknown': 'A unknown error occurred.'
145
- },
146
- 'file-picker': {
147
- 'choose': 'Choose file',
148
- 'remove': 'Remove file',
149
- 'drop': 'or drag and drop file here'
150
- },
151
- 'times': {
152
- 'tomorrow_at': 'Tomorrow at {{date}}',
153
- 'today_at': 'Today at {{date}}',
154
- 'yesterday_at': 'Yesterday at {{date}}'
155
- }
156
- }
157
- },
158
- multi: true
159
- };
160
-
161
- var LOCALIZATION_EXTRA_DUTCH = {
162
- provide: LOCALIZE_EXTRA_DICTIONARY,
163
- useValue: {
164
- locale: 'nl-NL',
165
- data: {
166
- 'form-control-errors': {
167
- 'unknown': 'Het veld heeft een onbekende fout.',
168
- 'required': 'Dit veld is verplicht.',
169
- 'pattern': 'Ongeldig formaat.',
170
- 'email': 'Het veld komt niet overeen met een geldig e-mailadres.',
171
- 'emailTaken': 'Het e-mailadres is al bezet.',
172
- 'passwordMatch': 'De wachtwoorden komen niet overeen.',
173
- 'confirm': 'Het veld komt niet overeen.',
174
- 'fullNumber': 'Het veld moet een volledig getal zijn.',
175
- 'min': 'Minimum hoeveelheid moet {{min}} zijn.',
176
- 'max': 'Maximum hoeveelheid moet {{max}} zijn.',
177
- 'invalidFileType': 'Het type bestand is niet toegestaan.',
178
- 'maxFileSize': 'Het bestand heeft de maximum hoeveelheid van {{maxSize}} overschreden.',
179
- 'minDate': 'De eerst mogelijke datum is {{date|date}}.',
180
- 'maxDate': 'De laatst mogelijke datum is {{date|date}}.',
181
- 'invalidDate': 'Het veld bevat een ongeldige datum.',
182
- 'minlength': 'Verwachtte minimaal {{requiredLength}} tekens, maar kreeg {{actualLength}} tekens.',
183
- 'maxlength': 'Verwachtte maximaal {{requiredLength}} tekens, maar kreeg {{actualLength}} tekens.'
184
- },
185
- 'tables': {
186
- 'search': 'Zoeken...',
187
- 'loading': 'Aan het laden...',
188
- 'empty': 'Er is hier niets te vinden.',
189
- 'page': 'pagina',
190
- 'error_datasource': 'Er is geen gegevensbron verstrekt.',
191
- 'error_unauthorized': 'U moet ingelogd zijn om deze gegevens te bekijken.',
192
- 'error_forbidden': 'U hebt geen toegang om deze gegevens te bekijken.',
193
- 'error_not_found': 'De gegevens zijn niet gevonden.',
194
- 'error_server': 'Er is een serverfout opgetreden bij het ophalen van gegevens van de server.',
195
- 'error_down': 'Het lijkt erop dat de server down is.',
196
- 'error_unknown': 'Er is een onbekende fout opgetreden bij het ophalen van gegevens van de server.'
197
- },
198
- 'file-picker': {
199
- 'choose': 'Kies bestand',
200
- 'remove': 'Verwijder bestand',
201
- 'drop': 'of sleep het bestand hiernaartoe'
202
- },
203
- 'times': {
204
- 'tomorrow_at': 'Morgen om {{date}}',
205
- 'today_at': 'Vandaag om {{date}}',
206
- 'yesterday_at': 'Gisteren om {{date}}'
207
- }
208
- }
209
- },
210
- multi: true
211
- };
212
-
213
- var LocalizeMissingHandler = /** @class */ (function () {
214
- function LocalizeMissingHandler() {
215
- this.log = function (message) {
216
- console && console.warn && console.warn(message);
217
- };
218
- }
219
- LocalizeMissingHandler.prototype.handle = function (params) {
220
- // Log to the console when the token was not found
221
- // if the user did not mark it as optional.
222
- if (!params.optional) {
223
- this.log("Localize: The token with name: \"" + params.token + "\" was not found.");
224
- }
225
- // Return the default token back.
226
- return params.token;
227
- };
228
- return LocalizeMissingHandler;
229
- }());
230
-
231
- /*! *****************************************************************************
232
- Copyright (c) Microsoft Corporation.
233
-
234
- Permission to use, copy, modify, and/or distribute this software for any
235
- purpose with or without fee is hereby granted.
236
-
237
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
238
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
239
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
240
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
241
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
242
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
243
- PERFORMANCE OF THIS SOFTWARE.
244
- ***************************************************************************** */
245
- /* global Reflect, Promise */
246
- var extendStatics = function (d, b) {
247
- extendStatics = Object.setPrototypeOf ||
248
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
249
- function (d, b) { for (var p in b)
250
- if (Object.prototype.hasOwnProperty.call(b, p))
251
- d[p] = b[p]; };
252
- return extendStatics(d, b);
253
- };
254
- function __extends(d, b) {
255
- if (typeof b !== "function" && b !== null)
256
- throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
257
- extendStatics(d, b);
258
- function __() { this.constructor = d; }
259
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
260
- }
261
- var __assign = function () {
262
- __assign = Object.assign || function __assign(t) {
263
- for (var s, i = 1, n = arguments.length; i < n; i++) {
264
- s = arguments[i];
265
- for (var p in s)
266
- if (Object.prototype.hasOwnProperty.call(s, p))
267
- t[p] = s[p];
268
- }
269
- return t;
270
- };
271
- return __assign.apply(this, arguments);
272
- };
273
- function __rest(s, e) {
274
- var t = {};
275
- for (var p in s)
276
- if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
277
- t[p] = s[p];
278
- if (s != null && typeof Object.getOwnPropertySymbols === "function")
279
- for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
280
- if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
281
- t[p[i]] = s[p[i]];
282
- }
283
- return t;
284
- }
285
- function __decorate(decorators, target, key, desc) {
286
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
287
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
288
- r = Reflect.decorate(decorators, target, key, desc);
289
- else
290
- for (var i = decorators.length - 1; i >= 0; i--)
291
- if (d = decorators[i])
292
- r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
293
- return c > 3 && r && Object.defineProperty(target, key, r), r;
294
- }
295
- function __param(paramIndex, decorator) {
296
- return function (target, key) { decorator(target, key, paramIndex); };
297
- }
298
- function __metadata(metadataKey, metadataValue) {
299
- if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
300
- return Reflect.metadata(metadataKey, metadataValue);
301
- }
302
- function __awaiter(thisArg, _arguments, P, generator) {
303
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
304
- return new (P || (P = Promise))(function (resolve, reject) {
305
- function fulfilled(value) { try {
306
- step(generator.next(value));
307
- }
308
- catch (e) {
309
- reject(e);
310
- } }
311
- function rejected(value) { try {
312
- step(generator["throw"](value));
313
- }
314
- catch (e) {
315
- reject(e);
316
- } }
317
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
318
- step((generator = generator.apply(thisArg, _arguments || [])).next());
319
- });
320
- }
321
- function __generator(thisArg, body) {
322
- var _ = { label: 0, sent: function () { if (t[0] & 1)
323
- throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
324
- return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function () { return this; }), g;
325
- function verb(n) { return function (v) { return step([n, v]); }; }
326
- function step(op) {
327
- if (f)
328
- throw new TypeError("Generator is already executing.");
329
- while (_)
330
- try {
331
- 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)
332
- return t;
333
- if (y = 0, t)
334
- op = [op[0] & 2, t.value];
335
- switch (op[0]) {
336
- case 0:
337
- case 1:
338
- t = op;
339
- break;
340
- case 4:
341
- _.label++;
342
- return { value: op[1], done: false };
343
- case 5:
344
- _.label++;
345
- y = op[1];
346
- op = [0];
347
- continue;
348
- case 7:
349
- op = _.ops.pop();
350
- _.trys.pop();
351
- continue;
352
- default:
353
- if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
354
- _ = 0;
355
- continue;
356
- }
357
- if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) {
358
- _.label = op[1];
359
- break;
360
- }
361
- if (op[0] === 6 && _.label < t[1]) {
362
- _.label = t[1];
363
- t = op;
364
- break;
365
- }
366
- if (t && _.label < t[2]) {
367
- _.label = t[2];
368
- _.ops.push(op);
369
- break;
370
- }
371
- if (t[2])
372
- _.ops.pop();
373
- _.trys.pop();
374
- continue;
375
- }
376
- op = body.call(thisArg, _);
377
- }
378
- catch (e) {
379
- op = [6, e];
380
- y = 0;
381
- }
382
- finally {
383
- f = t = 0;
384
- }
385
- if (op[0] & 5)
386
- throw op[1];
387
- return { value: op[0] ? op[1] : void 0, done: true };
388
- }
389
- }
390
- var __createBinding = Object.create ? (function (o, m, k, k2) {
391
- if (k2 === undefined)
392
- k2 = k;
393
- Object.defineProperty(o, k2, { enumerable: true, get: function () { return m[k]; } });
394
- }) : (function (o, m, k, k2) {
395
- if (k2 === undefined)
396
- k2 = k;
397
- o[k2] = m[k];
398
- });
399
- function __exportStar(m, o) {
400
- for (var p in m)
401
- if (p !== "default" && !Object.prototype.hasOwnProperty.call(o, p))
402
- __createBinding(o, m, p);
403
- }
404
- function __values(o) {
405
- var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
406
- if (m)
407
- return m.call(o);
408
- if (o && typeof o.length === "number")
409
- return {
410
- next: function () {
411
- if (o && i >= o.length)
412
- o = void 0;
413
- return { value: o && o[i++], done: !o };
414
- }
415
- };
416
- throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
417
- }
418
- function __read(o, n) {
419
- var m = typeof Symbol === "function" && o[Symbol.iterator];
420
- if (!m)
421
- return o;
422
- var i = m.call(o), r, ar = [], e;
423
- try {
424
- while ((n === void 0 || n-- > 0) && !(r = i.next()).done)
425
- ar.push(r.value);
426
- }
427
- catch (error) {
428
- e = { error: error };
429
- }
430
- finally {
431
- try {
432
- if (r && !r.done && (m = i["return"]))
433
- m.call(i);
434
- }
435
- finally {
436
- if (e)
437
- throw e.error;
438
- }
439
- }
440
- return ar;
441
- }
442
- /** @deprecated */
443
- function __spread() {
444
- for (var ar = [], i = 0; i < arguments.length; i++)
445
- ar = ar.concat(__read(arguments[i]));
446
- return ar;
447
- }
448
- /** @deprecated */
449
- function __spreadArrays() {
450
- for (var s = 0, i = 0, il = arguments.length; i < il; i++)
451
- s += arguments[i].length;
452
- for (var r = Array(s), k = 0, i = 0; i < il; i++)
453
- for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
454
- r[k] = a[j];
455
- return r;
456
- }
457
- function __spreadArray(to, from, pack) {
458
- if (pack || arguments.length === 2)
459
- for (var i = 0, l = from.length, ar; i < l; i++) {
460
- if (ar || !(i in from)) {
461
- if (!ar)
462
- ar = Array.prototype.slice.call(from, 0, i);
463
- ar[i] = from[i];
464
- }
465
- }
466
- return to.concat(ar || Array.prototype.slice.call(from));
467
- }
468
- function __await(v) {
469
- return this instanceof __await ? (this.v = v, this) : new __await(v);
470
- }
471
- function __asyncGenerator(thisArg, _arguments, generator) {
472
- if (!Symbol.asyncIterator)
473
- throw new TypeError("Symbol.asyncIterator is not defined.");
474
- var g = generator.apply(thisArg, _arguments || []), i, q = [];
475
- return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i;
476
- function verb(n) { if (g[n])
477
- i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }
478
- function resume(n, v) { try {
479
- step(g[n](v));
480
- }
481
- catch (e) {
482
- settle(q[0][3], e);
483
- } }
484
- function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
485
- function fulfill(value) { resume("next", value); }
486
- function reject(value) { resume("throw", value); }
487
- function settle(f, v) { if (f(v), q.shift(), q.length)
488
- resume(q[0][0], q[0][1]); }
489
- }
490
- function __asyncDelegator(o) {
491
- var i, p;
492
- return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;
493
- 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; }
494
- }
495
- function __asyncValues(o) {
496
- if (!Symbol.asyncIterator)
497
- throw new TypeError("Symbol.asyncIterator is not defined.");
498
- var m = o[Symbol.asyncIterator], i;
499
- 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);
500
- 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); }); }; }
501
- function settle(resolve, reject, d, v) { Promise.resolve(v).then(function (v) { resolve({ value: v, done: d }); }, reject); }
502
- }
503
- function __makeTemplateObject(cooked, raw) {
504
- if (Object.defineProperty) {
505
- Object.defineProperty(cooked, "raw", { value: raw });
506
- }
507
- else {
508
- cooked.raw = raw;
509
- }
510
- return cooked;
511
- }
512
- ;
513
- var __setModuleDefault = Object.create ? (function (o, v) {
514
- Object.defineProperty(o, "default", { enumerable: true, value: v });
515
- }) : function (o, v) {
516
- o["default"] = v;
517
- };
518
- function __importStar(mod) {
519
- if (mod && mod.__esModule)
520
- return mod;
521
- var result = {};
522
- if (mod != null)
523
- for (var k in mod)
524
- if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k))
525
- __createBinding(result, mod, k);
526
- __setModuleDefault(result, mod);
527
- return result;
528
- }
529
- function __importDefault(mod) {
530
- return (mod && mod.__esModule) ? mod : { default: mod };
531
- }
532
- function __classPrivateFieldGet(receiver, state, kind, f) {
533
- if (kind === "a" && !f)
534
- throw new TypeError("Private accessor was defined without a getter");
535
- if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
536
- throw new TypeError("Cannot read private member from an object whose class did not declare it");
537
- return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
538
- }
539
- function __classPrivateFieldSet(receiver, state, value, kind, f) {
540
- if (kind === "m")
541
- throw new TypeError("Private method is not writable");
542
- if (kind === "a" && !f)
543
- throw new TypeError("Private accessor was defined without a setter");
544
- if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
545
- throw new TypeError("Cannot write private member to an object whose class did not declare it");
546
- return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
547
- }
548
-
549
- var BbLocalizeTemplate = /** @class */ (function () {
550
- function BbLocalizeTemplate(templateRef) {
551
- this.templateRef = templateRef;
552
- // Inputs.
553
- this.name = null;
554
- }
555
- return BbLocalizeTemplate;
556
- }());
557
- BbLocalizeTemplate.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.11", ngImport: i0__namespace, type: BbLocalizeTemplate, deps: [{ token: i0__namespace.TemplateRef }], target: i0__namespace.ɵɵFactoryTarget.Directive });
558
- BbLocalizeTemplate.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.11", type: BbLocalizeTemplate, selector: "[bbLocalizeTemplate]", inputs: { name: ["bbLocalizeTemplate", "name"] }, ngImport: i0__namespace });
559
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.11", ngImport: i0__namespace, type: BbLocalizeTemplate, decorators: [{
560
- type: i0.Directive,
561
- args: [{
562
- selector: '[bbLocalizeTemplate]'
563
- }]
564
- }], ctorParameters: function () { return [{ type: i0__namespace.TemplateRef }]; }, propDecorators: { name: [{
565
- type: i0.Input,
566
- args: ['bbLocalizeTemplate']
567
- }] } });
568
-
569
- var BbLocalizeTemplateOrString = /** @class */ (function () {
570
- function BbLocalizeTemplateOrString(_templateRef, _viewContainerRef) {
571
- this._templateRef = _templateRef;
572
- this._viewContainerRef = _viewContainerRef;
573
- }
574
- Object.defineProperty(BbLocalizeTemplateOrString.prototype, "bbLocalizeTemplateOrString", {
575
- set: function (content) {
576
- // Get the template.
577
- var template = content instanceof i0.TemplateRef
578
- ? content
579
- : this._templateRef;
580
- // Clear the view container ref and create the view.
581
- this._viewContainerRef.clear();
582
- this._viewContainerRef.createEmbeddedView(template);
583
- },
584
- enumerable: false,
585
- configurable: true
586
- });
587
- return BbLocalizeTemplateOrString;
588
- }());
589
- BbLocalizeTemplateOrString.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.11", ngImport: i0__namespace, type: BbLocalizeTemplateOrString, deps: [{ token: i0__namespace.TemplateRef }, { token: i0__namespace.ViewContainerRef }], target: i0__namespace.ɵɵFactoryTarget.Directive });
590
- BbLocalizeTemplateOrString.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.11", type: BbLocalizeTemplateOrString, selector: "[bbLocalizeTemplateOrString]", inputs: { bbLocalizeTemplateOrString: "bbLocalizeTemplateOrString" }, ngImport: i0__namespace });
591
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.11", ngImport: i0__namespace, type: BbLocalizeTemplateOrString, decorators: [{
592
- type: i0.Directive,
593
- args: [{
594
- selector: '[bbLocalizeTemplateOrString]'
595
- }]
596
- }], ctorParameters: function () { return [{ type: i0__namespace.TemplateRef }, { type: i0__namespace.ViewContainerRef }]; }, propDecorators: { bbLocalizeTemplateOrString: [{
597
- type: i0.Input
598
- }] } });
599
-
600
- var BbLocalizeString = /** @class */ (function () {
601
- function BbLocalizeString(_changeDetection) {
602
- this._changeDetection = _changeDetection;
603
- // Inputs.
604
- this.substitutions = ['[', ']'];
605
- // Data.
606
- this.components = [];
607
- // Subscriptions.
608
- this._subscription = new rxjs.Subscription();
609
- // State.
610
- this._value = null;
611
- }
612
- Object.defineProperty(BbLocalizeString.prototype, "value", {
613
- get: function () {
614
- return this._value;
615
- },
616
- set: function (value) {
617
- this._value = value;
618
- this.revalidate();
619
- },
620
- enumerable: false,
621
- configurable: true
622
- });
623
- BbLocalizeString.prototype.ngAfterViewInit = function () {
624
- this.observeItemChanges();
625
- };
626
- BbLocalizeString.prototype.ngOnDestroy = function () {
627
- var _a;
628
- (_a = this._subscription) === null || _a === void 0 ? void 0 : _a.unsubscribe();
629
- };
630
- BbLocalizeString.prototype.observeItemChanges = function () {
631
- var _this = this;
632
- var subscription = this.items.changes.pipe(operators.startWith(0)).subscribe(function () { return _this.revalidate(); });
633
- this._subscription.add(subscription);
634
- };
635
- BbLocalizeString.prototype.revalidate = function () {
636
- var _a, _b;
637
- var items = (_b = (_a = this.items) === null || _a === void 0 ? void 0 : _a.toArray()) !== null && _b !== void 0 ? _b : [];
638
- if (items.length <= 0) {
639
- return;
640
- }
641
- this.setComponents(items);
642
- };
643
- BbLocalizeString.prototype.setComponents = function (items) {
644
- var _c = __read(this.substitutions, 2), start = _c[0], end = _c[1];
645
- var templates = items.reduce(function (previous, current) {
646
- var _c;
647
- var _a, _b;
648
- var template = (_a = current === null || current === void 0 ? void 0 : current.templateRef) !== null && _a !== void 0 ? _a : null;
649
- var name = (_b = current === null || current === void 0 ? void 0 : current.name) !== null && _b !== void 0 ? _b : null;
650
- if (!template || !name) {
651
- return previous;
652
- }
653
- return Object.assign(Object.assign({}, previous), (_c = {}, _c["" + start + name + end] = template, _c));
654
- }, {});
655
- this.components = this.getStringComponents(this._value)
656
- .map(function (component) { var _a, _b; return (_b = (_a = templates === null || templates === void 0 ? void 0 : templates[component]) !== null && _a !== void 0 ? _a : component) !== null && _b !== void 0 ? _b : null; })
657
- .filter(function (item) { return !!item; });
658
- this._changeDetection.detectChanges();
659
- };
660
- BbLocalizeString.prototype.getStringComponents = function (value) {
661
- var _c = __read(this.getSubstitutions(), 2), start = _c[0], end = _c[1];
662
- var regex = new RegExp("(" + start + "[a-zA-Z]+" + end + ")", 'g');
663
- return value.split(regex);
664
- };
665
- BbLocalizeString.prototype.getSubstitutions = function () {
666
- var _c = __read(this.substitutions, 2), start = _c[0], end = _c[1];
667
- var escape = /[.*+?^${}()|[\]\\]/g;
668
- return [
669
- start.replace(escape, '\\$&'),
670
- end.replace(escape, '\\$&')
671
- ];
672
- };
673
- return BbLocalizeString;
674
- }());
675
- BbLocalizeString.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.11", ngImport: i0__namespace, type: BbLocalizeString, deps: [{ token: i0__namespace.ChangeDetectorRef }], target: i0__namespace.ɵɵFactoryTarget.Component });
676
- BbLocalizeString.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.11", type: BbLocalizeString, selector: "bb-localize-string", inputs: { substitutions: "substitutions", value: "value" }, host: { classAttribute: "bb-localize-string" }, queries: [{ propertyName: "items", predicate: BbLocalizeTemplate }], ngImport: i0__namespace, template: "<ng-container *ngFor=\"let component of components\">\n <ng-template [bbLocalizeTemplateOrString]=\"component\">{{ component }}</ng-template>\n</ng-container>\n", styles: [".bb-localize-string{display:inline}\n"], directives: [{ type: i1__namespace.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: BbLocalizeTemplateOrString, selector: "[bbLocalizeTemplateOrString]", inputs: ["bbLocalizeTemplateOrString"] }], changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush, encapsulation: i0__namespace.ViewEncapsulation.None });
677
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.11", ngImport: i0__namespace, type: BbLocalizeString, decorators: [{
678
- type: i0.Component,
679
- args: [{
680
- selector: 'bb-localize-string',
681
- templateUrl: './localize-string.component.html',
682
- styleUrls: ['./localize-string.component.scss'],
683
- changeDetection: i0.ChangeDetectionStrategy.OnPush,
684
- encapsulation: i0.ViewEncapsulation.None,
685
- preserveWhitespaces: false,
686
- host: {
687
- 'class': 'bb-localize-string'
688
- }
689
- }]
690
- }], ctorParameters: function () { return [{ type: i0__namespace.ChangeDetectorRef }]; }, propDecorators: { items: [{
691
- type: i0.ContentChildren,
692
- args: [BbLocalizeTemplate]
693
- }], substitutions: [{
694
- type: i0.Input
695
- }], value: [{
696
- type: i0.Input
697
- }] } });
698
-
699
- var LocalizeDictionary = /** @class */ (function () {
700
- function LocalizeDictionary(_b, baseUrl, http) {
701
- var id = _b.id, data = _b.data, locale = _b.locale, supportedLanguages = _b.supportedLanguages;
702
- // Dictionary data.
703
- this._data = {};
704
- this._url = null;
705
- this.isAbsoluteUrl = function (url) {
706
- if (url.indexOf('//') === 0) {
707
- return true;
708
- }
709
- if (url.indexOf('://') === -1) {
710
- return false;
711
- }
712
- if (url.indexOf('.') === -1) {
713
- return false;
714
- }
715
- if (url.indexOf('/') === -1) {
716
- return false;
717
- }
718
- if (url.indexOf(':') > url.indexOf('/')) {
719
- return false;
720
- }
721
- return url.indexOf('://') < url.indexOf('.');
722
- };
723
- this.recursiveSearchValue = function (data, value) {
724
- if (typeof data === 'undefined' || typeof data === 'string') {
725
- return undefined;
726
- }
727
- return data[value];
728
- };
729
- this._id = id;
730
- this._locale = locale || 'en-US';
731
- this._supportedLanguages = supportedLanguages || [];
732
- this._http = http;
733
- this.stateKey = i4.makeStateKey("locale:" + this._id);
734
- // Set the correct variable to the url or data.
735
- if (typeof data === 'string') {
736
- this._url = this.getUrl(data, baseUrl);
737
- }
738
- else {
739
- this._data = data;
740
- }
741
- }
742
- Object.defineProperty(LocalizeDictionary.prototype, "id", {
743
- get: function () {
744
- return this._id;
745
- },
746
- enumerable: false,
747
- configurable: true
748
- });
749
- Object.defineProperty(LocalizeDictionary.prototype, "locale", {
750
- get: function () {
751
- return this._locale;
752
- },
753
- enumerable: false,
754
- configurable: true
755
- });
756
- Object.defineProperty(LocalizeDictionary.prototype, "supportedLanguages", {
757
- get: function () {
758
- return this._supportedLanguages;
759
- },
760
- enumerable: false,
761
- configurable: true
762
- });
763
- Object.defineProperty(LocalizeDictionary.prototype, "data", {
764
- get: function () {
765
- return this._data;
766
- },
767
- enumerable: false,
768
- configurable: true
769
- });
770
- LocalizeDictionary.prototype.load = function (data) {
771
- return __awaiter(this, void 0, void 0, function () {
772
- var context, result, _a_1;
773
- return __generator(this, function (_b) {
774
- switch (_b.label) {
775
- case 0:
776
- // Check if data was passed.
777
- if (data) {
778
- this.setData(data);
779
- return [2 /*return*/, true];
780
- }
781
- // If the url was not set the data was already loaded
782
- // return true because it was successful.
783
- if (!this._url) {
784
- return [2 /*return*/, true];
785
- }
786
- _b.label = 1;
787
- case 1:
788
- _b.trys.push([1, 3, , 4]);
789
- context = new i1$1.HttpContext().set(auth.USE_AUTHORIZATION, false);
790
- return [4 /*yield*/, this._http.get(this._url, { context: context })
791
- .toPromise()];
792
- case 2:
793
- result = _b.sent();
794
- // Set the data.
795
- this.setData(result);
796
- // Return true because it succeeded.
797
- return [2 /*return*/, true];
798
- case 3:
799
- _a_1 = _b.sent();
800
- // Return false because it failed.
801
- return [2 /*return*/, false];
802
- case 4: return [2 /*return*/];
803
- }
804
- });
805
- });
806
- };
807
- LocalizeDictionary.prototype.combine = function (extraDictionary, mode) {
808
- if (mode === void 0) { mode = 'prepend'; }
809
- // Validate that the locale matches.
810
- if (extraDictionary.locale !== this._locale) {
811
- return;
812
- }
813
- // Extract the extra data.
814
- var extraData = extraDictionary.data || {};
815
- // If the selected mode is prepend
816
- // add the data in front.
817
- if (mode === 'prepend') {
818
- this._data = Object.assign(Object.assign({}, extraData), this._data);
819
- return;
820
- }
821
- // If the selected mode is append
822
- // add the data in the back.
823
- this._data = Object.assign(Object.assign({}, this._data), extraData);
824
- };
825
- LocalizeDictionary.prototype.search = function (token) {
826
- // Check if the token is present in the
827
- // data, if so return it.
828
- if (this._data[token]) {
829
- return this._data[token];
830
- }
831
- // Values might be nested in objects this means we need
832
- // to split them on the dot and search them recursively
833
- // in the data.
834
- var value = (token || '')
835
- .split('.')
836
- .filter(function (value) { return !!value; })
837
- .reduce(this.recursiveSearchValue, this._data);
838
- // Check if the value is a string
839
- // if this is true it can be returned.
840
- if (typeof value === 'string') {
841
- return value;
842
- }
843
- // This means the translation was incorrect.
844
- return null;
845
- };
846
- LocalizeDictionary.prototype.setData = function (data) {
847
- this._data = data || {};
848
- this._url = null;
849
- };
850
- LocalizeDictionary.prototype.getUrl = function (value, baseUrl) {
851
- var isAbsolute = this.isAbsoluteUrl(value);
852
- if (isAbsolute || !baseUrl) {
853
- return value;
854
- }
855
- return [baseUrl, value].join('/');
856
- };
857
- return LocalizeDictionary;
858
- }());
859
-
860
- var Localize = /** @class */ (function () {
861
- function Localize(_http, _storage, _platform, _languages, _state, _config, _missingHandler, _document, _location, _baseUrl, _functions, _extras) {
862
- var _this = this;
863
- this._http = _http;
864
- this._storage = _storage;
865
- this._platform = _platform;
866
- this._languages = _languages;
867
- this._state = _state;
868
- this._config = _config;
869
- this._missingHandler = _missingHandler;
870
- this._document = _document;
871
- this._location = _location;
872
- this._baseUrl = _baseUrl;
873
- this._functions = _functions;
874
- this._extras = _extras;
875
- this._storageToken = 'bb-language-dictionary-id';
876
- this.convertToParams = function (tokenOrParams) {
877
- if (typeof tokenOrParams !== 'string') {
878
- // Destruct the params from the object.
879
- var token = tokenOrParams.token, optional = tokenOrParams.optional, data = tokenOrParams.data;
880
- // Make sure all parameters are valid
881
- // by type safe adding them.
882
- return { token: token, optional: optional || false, data: data || {} };
883
- }
884
- // If the parameter is a string fill in the blanks.
885
- return { token: tokenOrParams, optional: false, data: {} };
886
- };
887
- this.getMatches = function (value, substitutions) {
888
- // Get the matching substitutions.
889
- var start = substitutions.start, end = substitutions.end;
890
- // Compose a regex that will find the matches.
891
- var regex = new RegExp(start + "([^" + end + "]+)" + end, 'g');
892
- // Execute the regex to find matches.
893
- var match = regex.exec(value);
894
- var matches = [];
895
- while (match !== null) {
896
- // Push a new match.
897
- matches.push({
898
- match: match[0],
899
- token: match[1]
900
- });
901
- // Try to find more matches.
902
- match = regex.exec(value);
903
- }
904
- // Return the processed value.
905
- return matches.filter(function (item) { return !!item; });
906
- };
907
- this.reload = function () { var _a; return (_a = _this._location) === null || _a === void 0 ? void 0 : _a.reload(); };
908
- // Check if at least one language was passed in the config.
909
- if (this._config.dictionary.length < 1) {
910
- throw new Error('Localize: one or more languages should be supplied.');
911
- }
912
- // Gather the dictionaries.
913
- this._dictionaries = this._config.dictionary.map(function (item) {
914
- return new LocalizeDictionary(item, _this._baseUrl, _this._http);
915
- });
916
- // Save the best matching current dictionary.
917
- this._currentDictionary = this.retrieveBestMatchingDictionary();
918
- // Gather all the localize functions.
919
- this._functionMiddleware = this._functions.reduce(function (previous, current) {
920
- previous[current.keyword()] = current;
921
- return previous;
922
- }, {});
923
- this.renderDocumentLanguage();
924
- }
925
- Object.defineProperty(Localize.prototype, "dictionaries", {
926
- get: function () {
927
- return this._dictionaries;
928
- },
929
- enumerable: false,
930
- configurable: true
931
- });
932
- Object.defineProperty(Localize.prototype, "current", {
933
- get: function () {
934
- return this._currentDictionary;
935
- },
936
- enumerable: false,
937
- configurable: true
938
- });
939
- Object.defineProperty(Localize.prototype, "locale", {
940
- get: function () {
941
- return this._currentDictionary.locale;
942
- },
943
- enumerable: false,
944
- configurable: true
945
- });
946
- Localize.prototype.initialize = function () {
947
- var _this = this;
948
- return function () { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_f) {
949
- return [2 /*return*/, this.load(this._currentDictionary)];
950
- }); }); };
951
- };
952
- Localize.prototype.change = function (id, reload) {
953
- if (reload === void 0) { reload = true; }
954
- // Try to fetch the dictionary.
955
- var dictionary = this._dictionaries.find(function (item) { return item.id === id; });
956
- // Validate the dictionary exists.
957
- if (!dictionary) {
958
- throw new Error("Localize: Could not find dictionary with id: \"" + id + "\"");
959
- }
960
- // Save the language in the storage.
961
- this._storage.cookie.set(this._storageToken, dictionary.id, {});
962
- // Just quit if we don't need to reload.
963
- if (!reload) {
964
- return;
965
- }
966
- // We need to reload the application for the translations.
967
- return this.reload();
968
- };
969
- Localize.prototype.clear = function (reload) {
970
- if (reload === void 0) { reload = true; }
971
- // Remove the language in the local storage.
972
- this._storage.cookie.remove(this._storageToken);
973
- // Just quit if we don't need to reload.
974
- if (!reload) {
975
- return;
976
- }
977
- // We need to reload the application for the translations.
978
- return this.reload();
979
- };
980
- Localize.prototype.translate = function (tokenOrParams) {
981
- // 1. Convert to the params.
982
- var params = this.convertToParams(tokenOrParams);
983
- // 2. Try to find the translation in the dictionary.
984
- var searchResult = this._currentDictionary.search(params.token);
985
- // 3. Verify the translation was found.
986
- if (!searchResult) {
987
- return this._missingHandler.handle(params);
988
- }
989
- // 4. Find references in the translation that need to be translated as well.
990
- var processResult = this.findReferencesInTranslation(searchResult);
991
- // 5. Parse the interpolation data.
992
- return this.parseInterpolationData(processResult, params.data);
993
- };
994
- Localize.prototype.parseInterpolationData = function (value, data) {
995
- var _this = this;
996
- // Get the interpolation substitutions.
997
- var substitutions = this.getSubstitutions('interpolation', ['{{', '}}']);
998
- // Get all matches in the value.
999
- var matches = this.getMatches(value, substitutions);
1000
- // Replace all matches with the parsed value.
1001
- return matches.reduce(function (previous, current) {
1002
- // Try to parse the token.
1003
- var interpolatedToken = _this.interpolateFunctionData(current.token, data);
1004
- // Replace the match with the parsed token.
1005
- return previous.replace(current.match, interpolatedToken);
1006
- }, "" + value);
1007
- };
1008
- Localize.prototype.interpolateFunctionData = function (value, interpolationData) {
1009
- var _this = this;
1010
- // Get the token and the methods by splitting
1011
- // on the pipe symbol.
1012
- var _f = __read(value.split('|').map(function (item) { return item.trim(); })), token = _f[0], methods = _f.slice(1);
1013
- // Get the value for the token from
1014
- // the interpolation data.
1015
- var interpolationValue = interpolationData[token] || token;
1016
- // Loop through all the middleware methods and try to
1017
- // conform the string to the given parameters.
1018
- return methods.reduce(function (string, middlewareName) {
1019
- // Try to retrieve the middleware from the collection.
1020
- var middleware = _this._functionMiddleware[middlewareName];
1021
- // If the middleware is missing return an error
1022
- // so that the user knows it was not found.
1023
- if (!middleware) {
1024
- return string;
1025
- }
1026
- // Execute the middleware function with the string.
1027
- return middleware.transform(string, _this.locale);
1028
- }, "" + interpolationValue);
1029
- };
1030
- Localize.prototype.findReferencesInTranslation = function (value) {
1031
- var _this = this;
1032
- // Get the reference substitutions.
1033
- var substitutions = this.getSubstitutions('references', ['#(', ')']);
1034
- // Get all matches in the value.
1035
- var matches = this.getMatches(value, substitutions);
1036
- // Replace all matches with the translated value.
1037
- return matches.reduce(function (previous, current) {
1038
- // Try to translate the token.
1039
- var translatedToken = _this.translate(current.token);
1040
- // Replace the match with the translated token.
1041
- return previous.replace(current.match, translatedToken);
1042
- }, value);
1043
- };
1044
- Localize.prototype.getSubstitutions = function (type, defaultValue) {
1045
- var substitutions = (this._config
1046
- && this._config.substitutions
1047
- && this._config.substitutions[type]);
1048
- // Get the substitutions.
1049
- var value = (!substitutions || substitutions.length !== 2)
1050
- ? defaultValue
1051
- : substitutions;
1052
- // Escape both substitutions so that they
1053
- // can be used.
1054
- var escape = /[.*+?^${}()|[\]\\]/g;
1055
- var start = value[0].replace(escape, '\\$&');
1056
- var end = value[1].replace(escape, '\\$&');
1057
- // Return the substitutions.
1058
- return { start: start, end: end };
1059
- };
1060
- Localize.prototype.retrieveBestMatchingDictionary = function () {
1061
- // Get the dictionary based on storage.
1062
- var storageDictionary = this.getDictionaryFromStorage();
1063
- // Get the dictionary based on the supported language.
1064
- var browserDictionary = this.getBestBrowserMatchDictionary();
1065
- // Get the dictionary based on the first index.
1066
- var firstDictionary = this._dictionaries[0];
1067
- // Return the best matching dictionary.
1068
- return storageDictionary || browserDictionary || firstDictionary;
1069
- };
1070
- Localize.prototype.getDictionaryFromStorage = function () {
1071
- // Get dictionary id from the storage..
1072
- var dictionaryId = this._storage.cookie.get(this._storageToken);
1073
- // Return the dictionary based on the storage dictionary id.
1074
- return this._dictionaries.find(function (item) { return item.id === dictionaryId; });
1075
- };
1076
- Localize.prototype.getBestBrowserMatchDictionary = function () {
1077
- var _this = this;
1078
- // Loop through all browser languages and return the
1079
- // best matching dictionary.
1080
- return this._languages.all.map(function (_f) {
1081
- var code = _f.code, region = _f.region;
1082
- var languageCode = [code, region].filter(function (data) { return !!data; }).join('-');
1083
- return _this._dictionaries.find(function (item) { return item.supportedLanguages.includes(languageCode); });
1084
- }).filter(function (item) { return !!item; }).find(function (_, index) { return index === 0; });
1085
- };
1086
- Localize.prototype.load = function (dictionary) {
1087
- var _a, _b, _c, _d;
1088
- return __awaiter(this, void 0, void 0, function () {
1089
- var data, loaded;
1090
- return __generator(this, function (_f) {
1091
- switch (_f.label) {
1092
- case 0:
1093
- data = ((_a = this._state) === null || _a === void 0 ? void 0 : _a.hasKey(dictionary.stateKey))
1094
- ? (_b = this._state) === null || _b === void 0 ? void 0 : _b.get(dictionary.stateKey, {})
1095
- : null;
1096
- return [4 /*yield*/, dictionary.load(data)];
1097
- case 1:
1098
- loaded = _f.sent();
1099
- // Verify the data was loaded.
1100
- if (!loaded) {
1101
- throw new Error("Localize: Could not correctly fetch the data from: \"" + dictionary.id + "\"");
1102
- }
1103
- if (!this._platform.isBrowser && this._state) {
1104
- (_c = this._state) === null || _c === void 0 ? void 0 : _c.set(dictionary === null || dictionary === void 0 ? void 0 : dictionary.stateKey, (_d = dictionary === null || dictionary === void 0 ? void 0 : dictionary.data) !== null && _d !== void 0 ? _d : {});
1105
- }
1106
- // Combine the extra dictionary data.
1107
- (this._extras || []).forEach(function (extraDictionary) { return dictionary.combine(extraDictionary); });
1108
- // Return the dictionary.
1109
- return [2 /*return*/, dictionary];
1110
- }
1111
- });
1112
- });
1113
- };
1114
- Localize.prototype.renderDocumentLanguage = function () {
1115
- var _a, _b, _c, _d, _e;
1116
- var element = (_a = this._document) === null || _a === void 0 ? void 0 : _a.documentElement;
1117
- if (!element) {
1118
- return;
1119
- }
1120
- element.lang = (_d = (_c = (_b = this._currentDictionary) === null || _b === void 0 ? void 0 : _b.supportedLanguages) === null || _c === void 0 ? void 0 : _c[0]) !== null && _d !== void 0 ? _d : (_e = this._currentDictionary) === null || _e === void 0 ? void 0 : _e.locale;
1121
- };
1122
- return Localize;
1123
- }());
1124
- Localize.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.11", ngImport: i0__namespace, type: Localize, deps: [{ token: i1__namespace$1.HttpClient }, { token: i2__namespace.Storage }, { token: i3__namespace.Platform }, { token: i3__namespace.Languages }, { token: i4__namespace.TransferState, optional: true }, { token: LocalizeConfig, optional: true }, { token: LocalizeMissingHandler }, { token: i1.DOCUMENT, optional: true }, { token: i3.LOCATION, optional: true }, { token: i3.BASE_URL, optional: true }, { token: LOCALIZE_FUNCTION, optional: true }, { token: LOCALIZE_EXTRA_DICTIONARY, optional: true }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
1125
- Localize.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.11", ngImport: i0__namespace, type: Localize });
1126
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.11", ngImport: i0__namespace, type: Localize, decorators: [{
1127
- type: i0.Injectable
1128
- }], ctorParameters: function () {
1129
- return [{ type: i1__namespace$1.HttpClient }, { type: i2__namespace.Storage }, { type: i3__namespace.Platform }, { type: i3__namespace.Languages }, { type: i4__namespace.TransferState, decorators: [{
1130
- type: i0.Optional
1131
- }] }, { type: LocalizeConfig, decorators: [{
1132
- type: i0.Optional
1133
- }] }, { type: LocalizeMissingHandler }, { type: undefined, decorators: [{
1134
- type: i0.Optional
1135
- }, {
1136
- type: i0.Inject,
1137
- args: [i1.DOCUMENT]
1138
- }] }, { type: undefined, decorators: [{
1139
- type: i0.Optional
1140
- }, {
1141
- type: i0.Inject,
1142
- args: [i3.LOCATION]
1143
- }] }, { type: undefined, decorators: [{
1144
- type: i0.Optional
1145
- }, {
1146
- type: i0.Inject,
1147
- args: [i3.BASE_URL]
1148
- }] }, { type: undefined, decorators: [{
1149
- type: i0.Optional
1150
- }, {
1151
- type: i0.Inject,
1152
- args: [LOCALIZE_FUNCTION]
1153
- }] }, { type: undefined, decorators: [{
1154
- type: i0.Optional
1155
- }, {
1156
- type: i0.Inject,
1157
- args: [LOCALIZE_EXTRA_DICTIONARY]
1158
- }] }];
1159
- } });
1160
-
1161
- var BbLocalize = /** @class */ (function () {
1162
- function BbLocalize(_localize) {
1163
- this._localize = _localize;
1164
- }
1165
- BbLocalize.prototype.transform = function (tokenOrParams, args) {
1166
- // Validate that the localize service
1167
- // exists in the pipe.
1168
- if (!this._localize) {
1169
- return tokenOrParams;
1170
- }
1171
- // Combine the params with the options
1172
- // to form the localize params.
1173
- var params = this.combineParamsWithOptions(tokenOrParams, args);
1174
- // Try to localize the value.
1175
- return this._localize.translate(params);
1176
- };
1177
- BbLocalize.prototype.combineParamsWithOptions = function (tokenOrParams, args) {
1178
- // Gather the extras.
1179
- var extras = args || {};
1180
- // Loop through all the keys to find the set options.
1181
- var options = Object.keys(extras).reduce(function (previous, current) {
1182
- if (typeof extras[current] === 'undefined') {
1183
- return previous;
1184
- }
1185
- previous[current] = extras[current];
1186
- return previous;
1187
- }, {});
1188
- // Convert the string token to a params object.
1189
- var params = typeof tokenOrParams === 'string'
1190
- ? { token: tokenOrParams, optional: false, data: {} }
1191
- : tokenOrParams;
1192
- // Return the combined params and options.
1193
- return Object.assign(Object.assign({}, params), options);
1194
- };
1195
- return BbLocalize;
1196
- }());
1197
- BbLocalize.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.11", ngImport: i0__namespace, type: BbLocalize, deps: [{ token: Localize, optional: true }], target: i0__namespace.ɵɵFactoryTarget.Pipe });
1198
- BbLocalize.ɵpipe = i0__namespace.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "12.2.11", ngImport: i0__namespace, type: BbLocalize, name: "bbLocalize" });
1199
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.11", ngImport: i0__namespace, type: BbLocalize, decorators: [{
1200
- type: i0.Pipe,
1201
- args: [{
1202
- name: 'bbLocalize'
1203
- }]
1204
- }], ctorParameters: function () {
1205
- return [{ type: Localize, decorators: [{
1206
- type: i0.Optional
1207
- }] }];
1208
- } });
1209
-
1210
- var LocalizeModule = /** @class */ (function () {
1211
- function LocalizeModule() {
1212
- }
1213
- LocalizeModule.forRoot = function (config) {
1214
- return {
1215
- ngModule: LocalizeModule,
1216
- providers: [
1217
- // Angular providers.
1218
- { provide: i0.APP_INITIALIZER, deps: [Localize], useFactory: initializeLocale, multi: true },
1219
- { provide: i0.LOCALE_ID, deps: [Localize], useFactory: getLocale },
1220
- // Config provider.
1221
- { provide: LocalizeConfig, useValue: config },
1222
- // Function providers.
1223
- { provide: LOCALIZE_FUNCTION, useClass: LocalizeLowercaseFunction, multi: true },
1224
- { provide: LOCALIZE_FUNCTION, useClass: LocalizeUppercaseFunction, multi: true },
1225
- { provide: LOCALIZE_FUNCTION, useClass: LocalizeDateFunction, multi: true },
1226
- // Handler providers.
1227
- { provide: LocalizeMissingHandler, useClass: LocalizeMissingHandler },
1228
- // Service providers.
1229
- Localize
1230
- ]
1231
- };
1232
- };
1233
- return LocalizeModule;
1234
- }());
1235
- LocalizeModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.11", ngImport: i0__namespace, type: LocalizeModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
1236
- LocalizeModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.11", ngImport: i0__namespace, type: LocalizeModule, declarations: [BbLocalize,
1237
- BbLocalizeString,
1238
- BbLocalizeTemplate,
1239
- BbLocalizeTemplateOrString], imports: [i1.CommonModule, i1$1.HttpClientModule], exports: [BbLocalize,
1240
- BbLocalizeString,
1241
- BbLocalizeTemplate] });
1242
- LocalizeModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.11", ngImport: i0__namespace, type: LocalizeModule, imports: [[i1.CommonModule, i1$1.HttpClientModule]] });
1243
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.11", ngImport: i0__namespace, type: LocalizeModule, decorators: [{
1244
- type: i0.NgModule,
1245
- args: [{
1246
- imports: [i1.CommonModule, i1$1.HttpClientModule],
1247
- declarations: [
1248
- BbLocalize,
1249
- BbLocalizeString,
1250
- BbLocalizeTemplate,
1251
- BbLocalizeTemplateOrString
1252
- ],
1253
- exports: [
1254
- BbLocalize,
1255
- BbLocalizeString,
1256
- BbLocalizeTemplate
1257
- ]
1258
- }]
1259
- }] });
1260
- function initializeLocale(localize) {
1261
- return localize.initialize();
1262
- }
1263
- function getLocale(localize) {
1264
- return localize.locale;
1265
- }
1266
-
1267
- /**
1268
- * Generated bundle index. Do not edit.
1269
- */
1270
-
1271
- exports.BbLocalize = BbLocalize;
1272
- exports.BbLocalizeString = BbLocalizeString;
1273
- exports.BbLocalizeTemplate = BbLocalizeTemplate;
1274
- exports.LOCALIZATION_EXTRA_DUTCH = LOCALIZATION_EXTRA_DUTCH;
1275
- exports.LOCALIZATION_EXTRA_ENGLISH = LOCALIZATION_EXTRA_ENGLISH;
1276
- exports.LOCALIZE_EXTRA_DICTIONARY = LOCALIZE_EXTRA_DICTIONARY;
1277
- exports.LOCALIZE_FUNCTION = LOCALIZE_FUNCTION;
1278
- exports.Localize = Localize;
1279
- exports.LocalizeConfig = LocalizeConfig;
1280
- exports.LocalizeDateFunction = LocalizeDateFunction;
1281
- exports.LocalizeDictionary = LocalizeDictionary;
1282
- exports.LocalizeLowercaseFunction = LocalizeLowercaseFunction;
1283
- exports.LocalizeMissingHandler = LocalizeMissingHandler;
1284
- exports.LocalizeModule = LocalizeModule;
1285
- exports.LocalizeUppercaseFunction = LocalizeUppercaseFunction;
1286
- exports.getLocale = getLocale;
1287
- exports.initializeLocale = initializeLocale;
1288
-
1289
- Object.defineProperty(exports, '__esModule', { value: true });
1290
-
1291
- }));
1292
- //# sourceMappingURL=bravobit-bb-foundation-localize.umd.js.map