@bravobit/bb-foundation 0.54.3 → 0.55.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (292) hide show
  1. package/auth/index.d.ts +267 -5
  2. package/collections/index.d.ts +350 -5
  3. package/combobox/index.d.ts +58 -5
  4. package/dashboard/index.d.ts +104 -5
  5. package/dialog/index.d.ts +168 -5
  6. package/elements/index.d.ts +838 -5
  7. package/fesm2022/bravobit-bb-foundation-auth.mjs +22 -22
  8. package/fesm2022/bravobit-bb-foundation-collections.mjs +44 -44
  9. package/fesm2022/bravobit-bb-foundation-collections.mjs.map +1 -1
  10. package/fesm2022/bravobit-bb-foundation-combobox.mjs +15 -15
  11. package/fesm2022/bravobit-bb-foundation-dashboard.mjs +25 -25
  12. package/fesm2022/bravobit-bb-foundation-dialog.mjs +33 -33
  13. package/fesm2022/bravobit-bb-foundation-dialog.mjs.map +1 -1
  14. package/fesm2022/bravobit-bb-foundation-elements.mjs +102 -102
  15. package/fesm2022/bravobit-bb-foundation-elements.mjs.map +1 -1
  16. package/fesm2022/bravobit-bb-foundation-http.mjs +10 -10
  17. package/fesm2022/bravobit-bb-foundation-localize.mjs +18 -18
  18. package/fesm2022/bravobit-bb-foundation-localize.mjs.map +1 -1
  19. package/fesm2022/bravobit-bb-foundation-masking.mjs +16 -16
  20. package/fesm2022/bravobit-bb-foundation-notifications.mjs +15 -15
  21. package/fesm2022/bravobit-bb-foundation-notifications.mjs.map +1 -1
  22. package/fesm2022/bravobit-bb-foundation-permissions.mjs +10 -10
  23. package/fesm2022/bravobit-bb-foundation-recaptcha.mjs +11 -12
  24. package/fesm2022/bravobit-bb-foundation-recaptcha.mjs.map +1 -1
  25. package/fesm2022/bravobit-bb-foundation-select.mjs +21 -21
  26. package/fesm2022/bravobit-bb-foundation-select.mjs.map +1 -1
  27. package/fesm2022/bravobit-bb-foundation-storage.mjs +3 -3
  28. package/fesm2022/bravobit-bb-foundation-table.mjs +22 -22
  29. package/fesm2022/bravobit-bb-foundation-tooltip.mjs +10 -10
  30. package/fesm2022/bravobit-bb-foundation-utils.mjs +16 -16
  31. package/fesm2022/bravobit-bb-foundation.mjs +25 -25
  32. package/fesm2022/bravobit-bb-foundation.mjs.map +1 -1
  33. package/http/index.d.ts +78 -5
  34. package/index.d.ts +215 -5
  35. package/localize/index.d.ts +546 -5
  36. package/masking/index.d.ts +104 -5
  37. package/notifications/index.d.ts +78 -5
  38. package/package.json +21 -21
  39. package/permissions/index.d.ts +89 -5
  40. package/recaptcha/index.d.ts +92 -5
  41. package/rxjs/index.d.ts +19 -5
  42. package/select/index.d.ts +129 -5
  43. package/storage/index.d.ts +109 -5
  44. package/table/index.d.ts +197 -5
  45. package/tooltip/index.d.ts +45 -5
  46. package/utils/index.d.ts +66 -5
  47. package/auth/lib/acting.interceptor.d.ts +0 -9
  48. package/auth/lib/acting.service.d.ts +0 -17
  49. package/auth/lib/auth.config.d.ts +0 -3
  50. package/auth/lib/auth.interceptor.d.ts +0 -20
  51. package/auth/lib/auth.module.d.ts +0 -10
  52. package/auth/lib/auth.service.d.ts +0 -51
  53. package/auth/lib/auth.session.d.ts +0 -50
  54. package/auth/lib/directives/anonymous.directive.d.ts +0 -20
  55. package/auth/lib/directives/authenticated.directive.d.ts +0 -20
  56. package/auth/lib/guards/anonymous.guard.d.ts +0 -2
  57. package/auth/lib/guards/authenticated.guard.d.ts +0 -2
  58. package/auth/lib/helpers/jwt.helper.d.ts +0 -8
  59. package/auth/lib/interfaces/config.interface.d.ts +0 -27
  60. package/auth/lib/interfaces/provider.interface.d.ts +0 -23
  61. package/auth/lib/interfaces/token.interface.d.ts +0 -11
  62. package/auth/lib/providers/email.provider.d.ts +0 -9
  63. package/auth/lib/providers/verify.provider.d.ts +0 -9
  64. package/auth/lib/tokens/use-authorization.token.d.ts +0 -2
  65. package/auth/public_api.d.ts +0 -17
  66. package/collections/lib/classes/array.collection.d.ts +0 -17
  67. package/collections/lib/collection.d.ts +0 -40
  68. package/collections/lib/collections.config.d.ts +0 -3
  69. package/collections/lib/collections.interfaces.d.ts +0 -10
  70. package/collections/lib/collections.module.d.ts +0 -19
  71. package/collections/lib/components/collections-actions/collections-actions.component.d.ts +0 -13
  72. package/collections/lib/components/collections-grid/collections-grid.component.d.ts +0 -18
  73. package/collections/lib/components/collections-pager/collections-pager.component.d.ts +0 -38
  74. package/collections/lib/components/collections-table/collections-table.component.d.ts +0 -26
  75. package/collections/lib/components/collections-table-label/collections-table-label.component.d.ts +0 -11
  76. package/collections/lib/components/collections-table-sorting/collections-table-sorting.component.d.ts +0 -18
  77. package/collections/lib/components/collections-viewer/collections-viewer.component.d.ts +0 -16
  78. package/collections/lib/directives/collections-data-row.directive.d.ts +0 -14
  79. package/collections/lib/directives/collections-data.directive.d.ts +0 -14
  80. package/collections/lib/directives/collections-empty.directive.d.ts +0 -14
  81. package/collections/lib/directives/collections-error.directive.d.ts +0 -14
  82. package/collections/lib/directives/collections-initial.directive.d.ts +0 -11
  83. package/collections/lib/directives/collections-item.directive.d.ts +0 -14
  84. package/collections/lib/interfaces/array-collection.interface.d.ts +0 -6
  85. package/collections/lib/interfaces/collection.interface.d.ts +0 -32
  86. package/collections/lib/providers/api-collection.provider.d.ts +0 -19
  87. package/collections/lib/providers/collection.provider.d.ts +0 -9
  88. package/collections/lib/providers/local-collection.provider.d.ts +0 -16
  89. package/collections/public_api.d.ts +0 -23
  90. package/combobox/combobox/combobox-container.directive.d.ts +0 -28
  91. package/combobox/combobox/combobox.component.d.ts +0 -37
  92. package/combobox/combobox-label.directive.d.ts +0 -5
  93. package/combobox/combobox-option.directive.d.ts +0 -7
  94. package/combobox/combobox-panel/combobox-panel.animation.d.ts +0 -1
  95. package/combobox/combobox-panel/combobox-panel.component.d.ts +0 -18
  96. package/combobox/combobox.interface.d.ts +0 -8
  97. package/combobox/public_api.d.ts +0 -3
  98. package/dashboard/lib/dashboard/dashboard.component.d.ts +0 -17
  99. package/dashboard/lib/dashboard-header/dashboard-header.component.d.ts +0 -9
  100. package/dashboard/lib/dashboard-menu/dashboard-menu.component.d.ts +0 -9
  101. package/dashboard/lib/dashboard-menu-item/dashboard-menu-item.component.d.ts +0 -8
  102. package/dashboard/lib/dashboard-sidebar/dashboard-sidebar.component.d.ts +0 -19
  103. package/dashboard/lib/dashboard-sidebar-group/dashboard-sidebar-group.component.d.ts +0 -22
  104. package/dashboard/lib/dashboard-sidebar-item/dashboard-sidebar-item.component.d.ts +0 -16
  105. package/dashboard/lib/dashboard.module.d.ts +0 -13
  106. package/dashboard/public_api.d.ts +0 -8
  107. package/dialog/lib/dialog-actions/dialog-actions.component.d.ts +0 -5
  108. package/dialog/lib/dialog-confirm/dialog-confirm.component.d.ts +0 -22
  109. package/dialog/lib/dialog-container/dialog-container.component.d.ts +0 -23
  110. package/dialog/lib/dialog-header/dialog-header.component.d.ts +0 -13
  111. package/dialog/lib/dialog-modal/dialog-modal.component.d.ts +0 -16
  112. package/dialog/lib/dialog-overlay/dialog-overlay.component.d.ts +0 -19
  113. package/dialog/lib/dialog.config.d.ts +0 -3
  114. package/dialog/lib/dialog.insertion.d.ts +0 -7
  115. package/dialog/lib/dialog.interfaces.d.ts +0 -21
  116. package/dialog/lib/dialog.module.d.ts +0 -17
  117. package/dialog/lib/dialog.ref.d.ts +0 -8
  118. package/dialog/lib/dialog.service.d.ts +0 -15
  119. package/dialog/lib/directives/confirm.directive.d.ts +0 -14
  120. package/dialog/public_api.d.ts +0 -10
  121. package/elements/lib/avatar/avatar.component.d.ts +0 -31
  122. package/elements/lib/button/button.component.d.ts +0 -21
  123. package/elements/lib/checkbox/checkbox.component.d.ts +0 -36
  124. package/elements/lib/checkbox-group/checkbox-group.component.d.ts +0 -13
  125. package/elements/lib/color-picker/color-picker.component.d.ts +0 -18
  126. package/elements/lib/color-slider/color-slider.component.d.ts +0 -24
  127. package/elements/lib/date-picker/date-picker.component.d.ts +0 -77
  128. package/elements/lib/directives/color-picker.directive.d.ts +0 -27
  129. package/elements/lib/directives/extra-error-controls.directive.d.ts +0 -13
  130. package/elements/lib/directives/file-drop.directive.d.ts +0 -13
  131. package/elements/lib/directives/form-submit.directive.d.ts +0 -17
  132. package/elements/lib/directives/form-submitter.directive.d.ts +0 -9
  133. package/elements/lib/directives/image-upload.directive.d.ts +0 -25
  134. package/elements/lib/directives/input.directive.d.ts +0 -16
  135. package/elements/lib/elements.config.d.ts +0 -3
  136. package/elements/lib/elements.inject.d.ts +0 -3
  137. package/elements/lib/elements.interfaces.d.ts +0 -41
  138. package/elements/lib/elements.module.d.ts +0 -39
  139. package/elements/lib/file-picker/file-picker.component.d.ts +0 -57
  140. package/elements/lib/form-control/form-control.component.d.ts +0 -20
  141. package/elements/lib/form-error/form-error.component.d.ts +0 -36
  142. package/elements/lib/form-group/form-group.component.d.ts +0 -7
  143. package/elements/lib/icon/icon.component.d.ts +0 -26
  144. package/elements/lib/image-control/image-control.component.d.ts +0 -44
  145. package/elements/lib/image-picker/image-picker.component.d.ts +0 -39
  146. package/elements/lib/multi-file-control/multi-file-control.component.d.ts +0 -72
  147. package/elements/lib/pincode-control/pincode-control.component.d.ts +0 -65
  148. package/elements/lib/pipes/date.pipe.d.ts +0 -9
  149. package/elements/lib/pipes/file-data-url.pipe.d.ts +0 -12
  150. package/elements/lib/pipes/file-image.pipe.d.ts +0 -14
  151. package/elements/lib/pipes/file-size.pipe.d.ts +0 -7
  152. package/elements/lib/pipes/relative-time.pipe.d.ts +0 -19
  153. package/elements/lib/radio-button/radio-button.component.d.ts +0 -16
  154. package/elements/lib/radio-group/radio-group.component.d.ts +0 -38
  155. package/elements/lib/spinner/spinner.component.d.ts +0 -9
  156. package/elements/public_api.d.ts +0 -35
  157. package/http/lib/classes/http.config.d.ts +0 -9
  158. package/http/lib/classes/http.error.d.ts +0 -7
  159. package/http/lib/http.config.d.ts +0 -5
  160. package/http/lib/http.interfaces.d.ts +0 -21
  161. package/http/lib/http.module.d.ts +0 -11
  162. package/http/lib/interceptors/base-url.interceptor.d.ts +0 -15
  163. package/http/lib/interceptors/error.interceptor.d.ts +0 -9
  164. package/http/public_api.d.ts +0 -7
  165. package/lib/core/colors/hex.d.ts +0 -18
  166. package/lib/core/colors/hsl.d.ts +0 -7
  167. package/lib/core/colors/hsv.d.ts +0 -13
  168. package/lib/core/colors/rgb.d.ts +0 -7
  169. package/lib/core/functions/array.utils.d.ts +0 -1
  170. package/lib/core/functions/date.utils.d.ts +0 -4
  171. package/lib/core/functions/file.utils.d.ts +0 -3
  172. package/lib/core/functions/format.utils.d.ts +0 -1
  173. package/lib/core/functions/password.utils.d.ts +0 -1
  174. package/lib/core/functions/route-cache.utils.d.ts +0 -10
  175. package/lib/core/functions/utils.d.ts +0 -1
  176. package/lib/core/miscellaneous/coercion.d.ts +0 -2
  177. package/lib/core/miscellaneous/regex.d.ts +0 -5
  178. package/lib/core/miscellaneous/validator.d.ts +0 -13
  179. package/lib/core/services/exif.service.d.ts +0 -12
  180. package/lib/core/services/file-loader.service.d.ts +0 -13
  181. package/lib/core/services/files.service.d.ts +0 -15
  182. package/lib/core/services/image-converter.service.d.ts +0 -17
  183. package/lib/core/services/languages.service.d.ts +0 -15
  184. package/lib/core/services/network.service.d.ts +0 -13
  185. package/lib/core/services/patch.service.d.ts +0 -14
  186. package/lib/core/tokens/accept-language.token.d.ts +0 -2
  187. package/lib/core/tokens/cookie.token.d.ts +0 -2
  188. package/lib/core/tokens/global-focus-mode.token.d.ts +0 -4
  189. package/lib/core/tokens/location.token.d.ts +0 -2
  190. package/lib/core/tokens/navigator.token.d.ts +0 -2
  191. package/lib/core/tokens/window.token.d.ts +0 -2
  192. package/localize/lib/dictionary/dictionary.class.d.ts +0 -28
  193. package/localize/lib/dictionary/dictionary.context.d.ts +0 -7
  194. package/localize/lib/dictionary/dictionary.data.d.ts +0 -7
  195. package/localize/lib/functions/date.function.d.ts +0 -5
  196. package/localize/lib/functions/lowercase.function.d.ts +0 -5
  197. package/localize/lib/functions/uppercase.function.d.ts +0 -5
  198. package/localize/lib/handlers/missing.handler.d.ts +0 -6
  199. package/localize/lib/interfaces/config.interfaces.d.ts +0 -18
  200. package/localize/lib/interfaces/functions.interfaces.d.ts +0 -7
  201. package/localize/lib/interfaces/handlers.interfaces.d.ts +0 -6
  202. package/localize/lib/interfaces/options.interfaces.d.ts +0 -11
  203. package/localize/lib/localizations/dutch.localization.d.ts +0 -74
  204. package/localize/lib/localizations/english.localization.d.ts +0 -74
  205. package/localize/lib/localizations/papiamento.localization.d.ts +0 -74
  206. package/localize/lib/localizations/spanish.localization.d.ts +0 -74
  207. package/localize/lib/localize.config.d.ts +0 -5
  208. package/localize/lib/localize.module.d.ts +0 -12
  209. package/localize/lib/localize.pipe.d.ts +0 -12
  210. package/localize/lib/localize.service.d.ts +0 -43
  211. package/localize/lib/localize.tokens.d.ts +0 -11
  212. package/localize/lib/transforms/abstract.transform.d.ts +0 -13
  213. package/localize/lib/transforms/interpolate.transform.d.ts +0 -13
  214. package/localize/lib/transforms/plural.transform.d.ts +0 -16
  215. package/localize/lib/transforms/reference.transform.d.ts +0 -9
  216. package/localize/lib/views/localize-string/localize-string.component.d.ts +0 -23
  217. package/localize/lib/views/localize-template.directive.d.ts +0 -9
  218. package/localize/public_api.d.ts +0 -26
  219. package/masking/lib/directives/currency-mask.directive.d.ts +0 -17
  220. package/masking/lib/directives/date-mask.directive.d.ts +0 -17
  221. package/masking/lib/directives/input-mask.directive.d.ts +0 -38
  222. package/masking/lib/input-mask.interface.d.ts +0 -19
  223. package/masking/lib/masking.module.d.ts +0 -9
  224. package/masking/lib/masking.service.d.ts +0 -12
  225. package/masking/public_api.d.ts +0 -6
  226. package/notifications/lib/notifications-item/notifications-item.component.d.ts +0 -33
  227. package/notifications/lib/notifications-list/notifications-list.component.d.ts +0 -18
  228. package/notifications/lib/notifications.animations.d.ts +0 -1
  229. package/notifications/lib/notifications.config.d.ts +0 -3
  230. package/notifications/lib/notifications.interfaces.d.ts +0 -36
  231. package/notifications/lib/notifications.module.d.ts +0 -9
  232. package/notifications/lib/notifications.service.d.ts +0 -30
  233. package/notifications/public_api.d.ts +0 -4
  234. package/permissions/lib/directives/permission.directive.d.ts +0 -27
  235. package/permissions/lib/guards/permission.guard.d.ts +0 -3
  236. package/permissions/lib/handlers/abstract.handler.d.ts +0 -4
  237. package/permissions/lib/handlers/local.handler.d.ts +0 -10
  238. package/permissions/lib/permissions.config.d.ts +0 -3
  239. package/permissions/lib/permissions.interface.d.ts +0 -13
  240. package/permissions/lib/permissions.module.d.ts +0 -10
  241. package/permissions/lib/permissions.service.d.ts +0 -23
  242. package/permissions/public_api.d.ts +0 -8
  243. package/public_api.d.ts +0 -27
  244. package/recaptcha/lib/recaptcha/recaptcha.component.d.ts +0 -47
  245. package/recaptcha/lib/recaptcha-loader.service.d.ts +0 -19
  246. package/recaptcha/lib/recaptcha.config.d.ts +0 -3
  247. package/recaptcha/lib/recaptcha.interface.d.ts +0 -13
  248. package/recaptcha/lib/recaptcha.module.d.ts +0 -10
  249. package/recaptcha/public_api.d.ts +0 -5
  250. package/rxjs/lib/observables/get-control-value.observable.d.ts +0 -3
  251. package/rxjs/lib/observables/get-route-param.observable.d.ts +0 -3
  252. package/rxjs/lib/operators/combine-latest-map.operator.d.ts +0 -8
  253. package/rxjs/lib/operators/filter-nil.operator.d.ts +0 -1
  254. package/rxjs/public_api.d.ts +0 -4
  255. package/select/lib/select/select.component.d.ts +0 -94
  256. package/select/lib/select-label.directive.d.ts +0 -7
  257. package/select/lib/select-multi-label.directive.d.ts +0 -7
  258. package/select/lib/select-option-group.directive.d.ts +0 -7
  259. package/select/lib/select-option.directive.d.ts +0 -7
  260. package/select/lib/select.config.d.ts +0 -2
  261. package/select/lib/select.module.d.ts +0 -11
  262. package/select/public_api.d.ts +0 -7
  263. package/storage/lib/interfaces/attributes.interface.d.ts +0 -13
  264. package/storage/lib/interfaces/memory.interface.d.ts +0 -7
  265. package/storage/lib/interfaces/strategy.interface.d.ts +0 -17
  266. package/storage/lib/storage.service.d.ts +0 -25
  267. package/storage/lib/strategies/cookie-storage.strategy.d.ts +0 -20
  268. package/storage/lib/strategies/memory-storage.strategy.d.ts +0 -11
  269. package/storage/lib/strategies/polyfill-storage.strategy.d.ts +0 -15
  270. package/storage/public_api.d.ts +0 -7
  271. package/table/lib/components/table/table.component.d.ts +0 -57
  272. package/table/lib/components/table-cell/table-cell.component.d.ts +0 -5
  273. package/table/lib/components/table-header-cell/table-header-cell.component.d.ts +0 -26
  274. package/table/lib/components/table-pager/table-pager.component.d.ts +0 -40
  275. package/table/lib/data/datasource.data.d.ts +0 -14
  276. package/table/lib/data/generic.data.d.ts +0 -25
  277. package/table/lib/interfaces/datasource.interface.d.ts +0 -17
  278. package/table/lib/interfaces/table.interfaces.d.ts +0 -11
  279. package/table/lib/table.config.d.ts +0 -3
  280. package/table/lib/table.module.d.ts +0 -10
  281. package/table/public_api.d.ts +0 -10
  282. package/tooltip/lib/tooltip-container/tooltip-container.component.d.ts +0 -9
  283. package/tooltip/lib/tooltip.directive.d.ts +0 -23
  284. package/tooltip/lib/tooltip.interfaces.d.ts +0 -4
  285. package/tooltip/lib/tooltip.module.d.ts +0 -7
  286. package/tooltip/public_api.d.ts +0 -4
  287. package/utils/lib/directives/autosize.directive.d.ts +0 -19
  288. package/utils/lib/directives/focus-trap.directive.d.ts +0 -14
  289. package/utils/lib/directives/focus.directive.d.ts +0 -16
  290. package/utils/lib/directives/template.directive.d.ts +0 -10
  291. package/utils/lib/utils.module.d.ts +0 -10
  292. package/utils/public_api.d.ts +0 -5
package/table/index.d.ts CHANGED
@@ -1,5 +1,197 @@
1
- /**
2
- * Generated bundle index. Do not edit.
3
- */
4
- /// <amd-module name="@bravobit/bb-foundation/table" />
5
- export * from './public_api';
1
+ import * as i0 from '@angular/core';
2
+ import { InjectionToken, OnInit, OnDestroy, QueryList, TemplateRef, EnvironmentProviders } from '@angular/core';
3
+ import { Observable } from 'rxjs';
4
+ import { HttpClient } from '@angular/common/http';
5
+ import { FormGroup, FormControl, ControlValueAccessor } from '@angular/forms';
6
+
7
+ type TableColumnSortStrategy = 'asc' | 'desc' | 'none';
8
+ declare const TABLE_CONFIG: InjectionToken<TableConfig>;
9
+ interface TableConfig {
10
+ icons?: {
11
+ actionsSearch?: string;
12
+ actionsClose?: string;
13
+ pagerArrowPrevious?: string;
14
+ pagerArrowNext?: string;
15
+ };
16
+ }
17
+
18
+ interface DataSourcePageRequest {
19
+ pageNumber: number;
20
+ pageSize: number;
21
+ query: string | null;
22
+ queryFields: string[];
23
+ sort: {
24
+ name: string;
25
+ direction: 'asc' | 'desc';
26
+ }[];
27
+ }
28
+ interface DataSourcePageResponse<T = any> {
29
+ totalPages: number;
30
+ totalEntries: number;
31
+ pageSize: number;
32
+ pageNumber: number;
33
+ data: T[];
34
+ }
35
+
36
+ declare class DataSourceRequest {
37
+ private _request$;
38
+ private _loading$;
39
+ get loading(): Observable<boolean>;
40
+ get when(): Observable<DataSourcePageRequest>;
41
+ startLoading(): void;
42
+ stopLoading(): void;
43
+ update(params?: Partial<DataSourcePageRequest>): void;
44
+ }
45
+ declare abstract class DataSource<T = any> {
46
+ abstract handle(request: DataSourceRequest): Observable<DataSourcePageResponse<T>>;
47
+ }
48
+
49
+ declare class GenericDataSource<T = any> extends DataSource<T> {
50
+ private readonly _httpClient;
51
+ private readonly _endpoint$;
52
+ private _items$;
53
+ private _fn;
54
+ private _rawFn;
55
+ constructor(httpClient: HttpClient, endpoint: Observable<string> | string);
56
+ append(item: Observable<{
57
+ [key: string]: string;
58
+ } | null>): this;
59
+ data(fn: (data: T[]) => T[]): this;
60
+ raw(fn: (data: unknown) => void): this;
61
+ handle(request: DataSourceRequest): Observable<{
62
+ data: T[];
63
+ pageSize: number;
64
+ pageNumber: number;
65
+ totalPages: number;
66
+ totalEntries: number;
67
+ }>;
68
+ private formatResponse;
69
+ private formatParams;
70
+ }
71
+
72
+ declare class BbTableColumnDef {
73
+ static ɵfac: i0.ɵɵFactoryDeclaration<BbTableColumnDef, never>;
74
+ static ɵdir: i0.ɵɵDirectiveDeclaration<BbTableColumnDef, "ng-template[bbTableColumnDef]", never, {}, {}, never, never, true, never>;
75
+ }
76
+ declare class BbTableRowDef {
77
+ static ɵfac: i0.ɵɵFactoryDeclaration<BbTableRowDef, never>;
78
+ static ɵdir: i0.ɵɵDirectiveDeclaration<BbTableRowDef, "ng-template[bbTableRowDef]", never, {}, {}, never, never, true, never>;
79
+ }
80
+ declare class BbTable implements OnInit, OnDestroy {
81
+ private readonly _config?;
82
+ readonly actionsSearchIconName: string;
83
+ readonly actionsCloseIconName: string;
84
+ tableColumnTemplates: QueryList<TemplateRef<any>>;
85
+ tableRowTemplate?: TemplateRef<any>;
86
+ identifier: string | null;
87
+ dataSource: DataSource;
88
+ queryFields: string[];
89
+ sortingStrategy: 'single' | 'multiple';
90
+ header: TemplateRef<any> | boolean;
91
+ footer: TemplateRef<any> | boolean;
92
+ private _sizes;
93
+ get sizes(): number[];
94
+ set sizes(newValue: number[]);
95
+ request: DataSourceRequest;
96
+ data$: Observable<{
97
+ state: string;
98
+ statusCode?: number;
99
+ result?: DataSourcePageResponse;
100
+ }>;
101
+ isLoading$: Observable<boolean>;
102
+ form: FormGroup;
103
+ queryControl: FormControl<string>;
104
+ private _headerCount;
105
+ private _subscription;
106
+ ngOnInit(): void;
107
+ ngOnDestroy(): void;
108
+ get headerCount(): number;
109
+ get sortControl(): FormGroup;
110
+ get pageNumberControl(): FormControl<number>;
111
+ get pageSizeControl(): FormControl<number>;
112
+ refresh(): void;
113
+ setHeaderCount(amount: -1 | 1): void;
114
+ private updateSizes;
115
+ private composeForm;
116
+ private watchDataChanges;
117
+ private subscribeToChanges;
118
+ private getQueryChanges;
119
+ private getFormChanges;
120
+ static ɵfac: i0.ɵɵFactoryDeclaration<BbTable, never>;
121
+ static ɵcmp: i0.ɵɵComponentDeclaration<BbTable, "bb-table", never, { "identifier": { "alias": "identifier"; "required": false; }; "dataSource": { "alias": "dataSource"; "required": false; }; "queryFields": { "alias": "queryFields"; "required": false; }; "sortingStrategy": { "alias": "sortingStrategy"; "required": false; }; "header": { "alias": "header"; "required": false; }; "footer": { "alias": "footer"; "required": false; }; "sizes": { "alias": "sizes"; "required": false; }; }, {}, ["tableRowTemplate", "tableColumnTemplates"], ["bb-table-header-cell,th[bb-table-header-cell]", "*"], true, never>;
122
+ }
123
+
124
+ declare class BbTableCell {
125
+ static ɵfac: i0.ɵɵFactoryDeclaration<BbTableCell, never>;
126
+ static ɵcmp: i0.ɵɵComponentDeclaration<BbTableCell, "bb-table-cell, td[bb-table-cell]", never, {}, {}, never, ["*"], true, never>;
127
+ }
128
+
129
+ declare class BbTableHeaderCell implements OnInit, OnDestroy {
130
+ private _table?;
131
+ private _name?;
132
+ private readonly _sortDirections;
133
+ private readonly _control;
134
+ disabled: boolean;
135
+ valueChanges$: Observable<string>;
136
+ set sort(value: TableColumnSortStrategy);
137
+ get sort(): TableColumnSortStrategy;
138
+ constructor(_table?: BbTable, _name?: string);
139
+ ngOnInit(): void;
140
+ ngOnDestroy(): void;
141
+ get isDisabled(): boolean;
142
+ onClick(): void;
143
+ private updateTableAndHeaderCell;
144
+ private handleSingleSortingStrategy;
145
+ private logWarning;
146
+ static ɵfac: i0.ɵɵFactoryDeclaration<BbTableHeaderCell, [{ optional: true; host: true; }, { attribute: "name"; optional: true; }]>;
147
+ static ɵcmp: i0.ɵɵComponentDeclaration<BbTableHeaderCell, "bb-table-header-cell,th[bb-table-header-cell]", never, { "disabled": { "alias": "disabled"; "required": false; }; "sort": { "alias": "sort"; "required": false; }; }, {}, never, ["*"], true, never>;
148
+ static ngAcceptInputType_disabled: unknown;
149
+ }
150
+
151
+ declare class BbTablePager implements OnInit, ControlValueAccessor {
152
+ private readonly _config?;
153
+ readonly arrowPreviousIconName: string;
154
+ readonly arrowNextIconName: string;
155
+ amountOfButtons: number;
156
+ showArrowButtons: boolean;
157
+ disabled: boolean;
158
+ isPreviousDisabled$: Observable<boolean>;
159
+ isNextDisabled$: Observable<boolean>;
160
+ list$: Observable<{
161
+ page: number;
162
+ active: boolean;
163
+ }[]>;
164
+ onChange: (newValue: number) => void;
165
+ onTouched: () => void;
166
+ private _totalPages$;
167
+ private _pageNumber$;
168
+ ngOnInit(): void;
169
+ get pageNumber(): number;
170
+ set pageNumber(newValue: number);
171
+ get totalPages(): number;
172
+ set totalPages(newValue: number);
173
+ registerOnChange(fn: any): void;
174
+ registerOnTouched(fn: any): void;
175
+ setDisabledState(isDisabled: boolean): void;
176
+ writeValue(newValue: number): void;
177
+ goToPrevious(): void;
178
+ goToNext(): void;
179
+ goToIndex(index: number): void;
180
+ private update;
181
+ private calculatePages;
182
+ private filterActivePages;
183
+ static ɵfac: i0.ɵɵFactoryDeclaration<BbTablePager, never>;
184
+ static ɵcmp: i0.ɵɵComponentDeclaration<BbTablePager, "bb-table-pager", never, { "amountOfButtons": { "alias": "amountOfButtons"; "required": false; }; "showArrowButtons": { "alias": "showArrowButtons"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "pageNumber": { "alias": "pageNumber"; "required": false; }; "totalPages": { "alias": "totalPages"; "required": false; }; }, {}, never, never, true, never>;
185
+ static ngAcceptInputType_disabled: unknown;
186
+ }
187
+
188
+ declare class TableModule {
189
+ static ɵfac: i0.ɵɵFactoryDeclaration<TableModule, never>;
190
+ static ɵmod: i0.ɵɵNgModuleDeclaration<TableModule, never, [typeof BbTable, typeof BbTableColumnDef, typeof BbTableRowDef, typeof BbTableHeaderCell, typeof BbTableCell, typeof BbTablePager], [typeof BbTable, typeof BbTableColumnDef, typeof BbTableRowDef, typeof BbTableHeaderCell, typeof BbTableCell, typeof BbTablePager]>;
191
+ static ɵinj: i0.ɵɵInjectorDeclaration<TableModule>;
192
+ }
193
+
194
+ declare function provideTableConfig(config: TableConfig): EnvironmentProviders;
195
+
196
+ export { BbTable, BbTableCell, BbTableColumnDef, BbTableHeaderCell, BbTablePager, BbTableRowDef, DataSource, DataSourceRequest, GenericDataSource, TABLE_CONFIG, TableModule, provideTableConfig };
197
+ export type { DataSourcePageRequest, DataSourcePageResponse, TableColumnSortStrategy, TableConfig };
@@ -1,5 +1,45 @@
1
- /**
2
- * Generated bundle index. Do not edit.
3
- */
4
- /// <amd-module name="@bravobit/bb-foundation/tooltip" />
5
- export * from './public_api';
1
+ import * as i0 from '@angular/core';
2
+ import { TemplateRef, InjectionToken, OnDestroy } from '@angular/core';
3
+ import { ConnectedPosition } from '@angular/cdk/overlay';
4
+
5
+ type TooltipData = string | TemplateRef<void>;
6
+ declare const TOOLTIP_DATA: InjectionToken<TooltipData>;
7
+ declare const TOOLTIP_CLASS: InjectionToken<string>;
8
+
9
+ declare class TooltipContainerComponent {
10
+ readonly data: TooltipData;
11
+ readonly classes: string;
12
+ get classBinding(): string;
13
+ static ɵfac: i0.ɵɵFactoryDeclaration<TooltipContainerComponent, never>;
14
+ static ɵcmp: i0.ɵɵComponentDeclaration<TooltipContainerComponent, "bb-tooltip-container", never, {}, {}, never, never, true, never>;
15
+ }
16
+
17
+ declare class TooltipDirective implements OnDestroy {
18
+ private readonly _overlay;
19
+ private readonly _viewContainer;
20
+ private readonly _elementRef;
21
+ bbTooltip: string | TemplateRef<void>;
22
+ bbTooltipClass: string | null;
23
+ bbTooltipOrigin: HTMLElement | null;
24
+ bbTooltipPositions: ConnectedPosition[];
25
+ bbTooltipDisabled: boolean;
26
+ private _overlayRef;
27
+ showTooltip(): void;
28
+ hideTooltip(): void;
29
+ ngOnDestroy(): void;
30
+ private attachTooltip;
31
+ private getPositionStrategy;
32
+ private getPositions;
33
+ static ɵfac: i0.ɵɵFactoryDeclaration<TooltipDirective, never>;
34
+ static ɵdir: i0.ɵɵDirectiveDeclaration<TooltipDirective, "[bbTooltip]", never, { "bbTooltip": { "alias": "bbTooltip"; "required": false; }; "bbTooltipClass": { "alias": "bbTooltipClass"; "required": false; }; "bbTooltipOrigin": { "alias": "bbTooltipOrigin"; "required": false; }; "bbTooltipPositions": { "alias": "bbTooltipPositions"; "required": false; }; "bbTooltipDisabled": { "alias": "bbTooltipDisabled"; "required": false; }; }, {}, never, never, true, never>;
35
+ static ngAcceptInputType_bbTooltipDisabled: unknown;
36
+ }
37
+
38
+ declare class TooltipModule {
39
+ static ɵfac: i0.ɵɵFactoryDeclaration<TooltipModule, never>;
40
+ static ɵmod: i0.ɵɵNgModuleDeclaration<TooltipModule, never, [typeof TooltipDirective], [typeof TooltipDirective]>;
41
+ static ɵinj: i0.ɵɵInjectorDeclaration<TooltipModule>;
42
+ }
43
+
44
+ export { TOOLTIP_CLASS, TOOLTIP_DATA, TooltipContainerComponent, TooltipDirective, TooltipModule };
45
+ export type { TooltipData };
package/utils/index.d.ts CHANGED
@@ -1,5 +1,66 @@
1
- /**
2
- * Generated bundle index. Do not edit.
3
- */
4
- /// <amd-module name="@bravobit/bb-foundation/utils" />
5
- export * from './public_api';
1
+ import * as i0 from '@angular/core';
2
+ import { TemplateRef, AfterViewInit } from '@angular/core';
3
+ import { FocusMode } from '@bravobit/bb-foundation';
4
+
5
+ declare class BbTemplate {
6
+ private readonly _templateRef;
7
+ private readonly _viewContainerRef;
8
+ set bbTemplate(content: string | TemplateRef<any>);
9
+ static ngAcceptInputType_bbTemplate: string | TemplateRef<any>;
10
+ static ɵfac: i0.ɵɵFactoryDeclaration<BbTemplate, never>;
11
+ static ɵdir: i0.ɵɵDirectiveDeclaration<BbTemplate, "[bbTemplate]", never, { "bbTemplate": { "alias": "bbTemplate"; "required": false; }; }, {}, never, never, true, never>;
12
+ }
13
+
14
+ declare class BbAutosize implements AfterViewInit {
15
+ private readonly _renderer;
16
+ private readonly _elementRef;
17
+ minHeight: string | null;
18
+ maxHeight: string | null;
19
+ rows: number;
20
+ get element(): HTMLTextAreaElement;
21
+ ngAfterViewInit(): void;
22
+ onWindowResize(): void;
23
+ onInputReceived(): void;
24
+ private updateStyles;
25
+ private setHeight;
26
+ private updateStylesInitial;
27
+ static ɵfac: i0.ɵɵFactoryDeclaration<BbAutosize, never>;
28
+ static ɵdir: i0.ɵɵDirectiveDeclaration<BbAutosize, "textarea[bbAutosize]", never, { "minHeight": { "alias": "minHeight"; "required": false; }; "maxHeight": { "alias": "maxHeight"; "required": false; }; "rows": { "alias": "rows"; "required": false; }; }, {}, never, never, true, never>;
29
+ static ngAcceptInputType_rows: unknown;
30
+ }
31
+
32
+ declare class BbFocus implements AfterViewInit {
33
+ private readonly _zone;
34
+ private readonly _platform;
35
+ private readonly _elementRef;
36
+ private readonly _globalFocusMode;
37
+ bbFocusMode: FocusMode | null;
38
+ private get nativeElement();
39
+ ngAfterViewInit(): void;
40
+ private isMobile;
41
+ private focus;
42
+ static ɵfac: i0.ɵɵFactoryDeclaration<BbFocus, never>;
43
+ static ɵdir: i0.ɵɵDirectiveDeclaration<BbFocus, "[bbFocus]", never, { "bbFocusMode": { "alias": "bbFocusMode"; "required": false; }; }, {}, never, never, true, never>;
44
+ }
45
+
46
+ declare class BbFocusTrap {
47
+ private readonly _platform;
48
+ private readonly _elementRef;
49
+ private readonly _focusableElements;
50
+ onKeydown(event: KeyboardEvent): void;
51
+ trapFocus(event: KeyboardEvent): void;
52
+ private get element();
53
+ private getFocusableNodes;
54
+ private focus;
55
+ private isTabEvent;
56
+ static ɵfac: i0.ɵɵFactoryDeclaration<BbFocusTrap, never>;
57
+ static ɵdir: i0.ɵɵDirectiveDeclaration<BbFocusTrap, "[bbFocusTrap]", never, {}, {}, never, never, true, never>;
58
+ }
59
+
60
+ declare class UtilsModule {
61
+ static ɵfac: i0.ɵɵFactoryDeclaration<UtilsModule, never>;
62
+ static ɵmod: i0.ɵɵNgModuleDeclaration<UtilsModule, never, [typeof BbTemplate, typeof BbAutosize, typeof BbFocus, typeof BbFocusTrap], [typeof BbTemplate, typeof BbAutosize, typeof BbFocus, typeof BbFocusTrap]>;
63
+ static ɵinj: i0.ɵɵInjectorDeclaration<UtilsModule>;
64
+ }
65
+
66
+ export { BbAutosize, BbFocus, BbFocusTrap, BbTemplate, UtilsModule };
@@ -1,9 +0,0 @@
1
- import { HttpHandler, HttpInterceptor, HttpRequest } from '@angular/common/http';
2
- import * as i0 from "@angular/core";
3
- export declare class ActingInterceptor implements HttpInterceptor {
4
- private readonly _acting;
5
- private readonly _headerString;
6
- intercept(request: HttpRequest<unknown>, next: HttpHandler): import("rxjs").Observable<import("@angular/common/http").HttpEvent<any>>;
7
- static ɵfac: i0.ɵɵFactoryDeclaration<ActingInterceptor, never>;
8
- static ɵprov: i0.ɵɵInjectableDeclaration<ActingInterceptor>;
9
- }
@@ -1,17 +0,0 @@
1
- import { Observable } from 'rxjs';
2
- import * as i0 from "@angular/core";
3
- export declare class Acting {
4
- private readonly _auth;
5
- private _userId$;
6
- readonly info$: Observable<{
7
- active?: boolean;
8
- user?: any;
9
- }>;
10
- start(userId: number): Promise<void>;
11
- stop(): Promise<void>;
12
- getCurrent(): number;
13
- private fetchUserDetails;
14
- private getInfo;
15
- static ɵfac: i0.ɵɵFactoryDeclaration<Acting, never>;
16
- static ɵprov: i0.ɵɵInjectableDeclaration<Acting>;
17
- }
@@ -1,3 +0,0 @@
1
- import { EnvironmentProviders } from '@angular/core';
2
- import { AuthConfig } from './interfaces/config.interface';
3
- export declare function provideAuthConfig(config?: AuthConfig): EnvironmentProviders;
@@ -1,20 +0,0 @@
1
- import { HttpHandler, HttpInterceptor, HttpRequest } from '@angular/common/http';
2
- import { BehaviorSubject } from 'rxjs';
3
- import * as i0 from "@angular/core";
4
- export declare class AuthInterceptor implements HttpInterceptor {
5
- private readonly _auth;
6
- private readonly _config?;
7
- private readonly _authHeaderString;
8
- private readonly _authScheme;
9
- isRefreshing: boolean;
10
- refreshingAccessToken$: BehaviorSubject<boolean>;
11
- intercept(request: HttpRequest<unknown>, next: HttpHandler): import("rxjs").Observable<import("@angular/common/http").HttpEvent<any>>;
12
- private modifyRequest;
13
- private handleBrowserStorageRequest;
14
- private handleHttpOnlyCookieRequest;
15
- private handle401Error;
16
- private logoutUser;
17
- private getAccessTokenFromSession;
18
- static ɵfac: i0.ɵɵFactoryDeclaration<AuthInterceptor, never>;
19
- static ɵprov: i0.ɵɵInjectableDeclaration<AuthInterceptor>;
20
- }
@@ -1,10 +0,0 @@
1
- import { ModuleWithProviders } from '@angular/core';
2
- import { AuthConfig } from './interfaces/config.interface';
3
- import * as i0 from "@angular/core";
4
- import * as i1 from "./directives/authenticated.directive";
5
- export declare class AuthModule {
6
- static forRoot(config: AuthConfig): ModuleWithProviders<AuthModule>;
7
- static ɵfac: i0.ɵɵFactoryDeclaration<AuthModule, never>;
8
- static ɵmod: i0.ɵɵNgModuleDeclaration<AuthModule, never, [typeof i1.BbAuthenticated], [typeof i1.BbAuthenticated]>;
9
- static ɵinj: i0.ɵɵInjectorDeclaration<AuthModule>;
10
- }
@@ -1,51 +0,0 @@
1
- import { HttpHeaders, HttpParams } from '@angular/common/http';
2
- import { AuthProvider, AuthSignInResponse } from './interfaces/provider.interface';
3
- import { Observable } from 'rxjs';
4
- import { AuthSession } from './auth.session';
5
- import * as i0 from "@angular/core";
6
- export declare class Auth {
7
- private readonly _storage;
8
- private readonly _injector;
9
- private readonly _platform;
10
- private readonly _httpClient;
11
- private readonly _state?;
12
- private readonly _config?;
13
- private readonly _httpConfig?;
14
- private readonly _handler?;
15
- private readonly _authStateKey;
16
- private readonly _httpAlias;
17
- readonly session: AuthSession;
18
- readonly user: Observable<any | null>;
19
- private _refreshHandler;
20
- constructor();
21
- initialize(): Promise<void>;
22
- me<T = any>(): Observable<T>;
23
- signIn<T = any>(provider: AuthProvider, verify?: (user: T) => void): Promise<AuthSignInResponse>;
24
- signInWithEmail<T = any>(email: string, password: string, verify?: (user: T) => void): Promise<AuthSignInResponse>;
25
- signInWithVerifyCode(code: string, verifyToken: string): Promise<AuthSignInResponse>;
26
- resendVerifyCode(verifyToken: string): Promise<Object>;
27
- register<T = any>(data: any, options?: {
28
- headers?: HttpHeaders | {
29
- [header: string]: string | string[];
30
- };
31
- params?: HttpParams | {
32
- [param: string]: string | number | boolean | ReadonlyArray<string | number | boolean>;
33
- };
34
- }): Promise<T>;
35
- logout(): void;
36
- refresh(): Observable<string>;
37
- requestPassword(email: string, extraParams?: {
38
- [key: string]: any;
39
- }): Promise<Object>;
40
- resetPassword(token: string, newPassword: string, extraParams?: {
41
- [key: string]: any;
42
- }): Promise<Object>;
43
- clearAndRedirect(): void;
44
- private setTokens;
45
- private handleAutoRefreshing;
46
- private autoRefresh;
47
- private get router();
48
- private getUrl;
49
- static ɵfac: i0.ɵɵFactoryDeclaration<Auth, never>;
50
- static ɵprov: i0.ɵɵInjectableDeclaration<Auth>;
51
- }
@@ -1,50 +0,0 @@
1
- import { StorageStrategy } from '@bravobit/bb-foundation/storage';
2
- import { AuthStrategy } from './interfaces/config.interface';
3
- import { AuthToken } from './interfaces/token.interface';
4
- export declare class AuthSession {
5
- private readonly _jwt;
6
- private readonly _storage;
7
- private readonly _accessTokenStorageKey;
8
- private readonly _refreshTokenStorageKey;
9
- private readonly _authenticatedStorageKey;
10
- private readonly _strategy;
11
- private _authenticated;
12
- private _accessTokenString;
13
- private _refreshTokenString;
14
- private _accessTokenPayload;
15
- private _refreshTokenPayload;
16
- private _user$;
17
- user: import("rxjs").Observable<any>;
18
- constructor(options?: {
19
- id?: string;
20
- storage?: StorageStrategy;
21
- strategy?: AuthStrategy;
22
- });
23
- get snapshot(): {
24
- user: any;
25
- accessToken?: undefined;
26
- refreshToken?: undefined;
27
- } | {
28
- user: any;
29
- accessToken: string;
30
- refreshToken: string;
31
- };
32
- get accessToken(): string;
33
- get refreshToken(): string;
34
- get accessTokenPayload(): AuthToken;
35
- get refreshTokenPayload(): AuthToken;
36
- authenticated(): boolean;
37
- setTokens(accessToken: string | null, refreshToken: string | null, persist?: boolean): void;
38
- setUser(user: unknown, persist?: boolean): void;
39
- clear(): void;
40
- private restoreFromStorage;
41
- private persistTokensInStorage;
42
- private persistAuthenticatedInStorage;
43
- private setAuthenticated;
44
- private cacheAccessToken;
45
- private cacheRefreshToken;
46
- private cacheAuthenticated;
47
- private generateKey;
48
- private isTokenValid;
49
- private getNextYearDate;
50
- }
@@ -1,20 +0,0 @@
1
- import { OnDestroy, OnInit, TemplateRef } from '@angular/core';
2
- import * as i0 from "@angular/core";
3
- export declare class BbAnonymous implements OnInit, OnDestroy {
4
- private readonly _auth;
5
- private readonly _templateRef;
6
- private readonly _viewContainerRef;
7
- private _valid;
8
- private _elseTemplateRef;
9
- private _thenViewRef;
10
- private _elseViewRef;
11
- private _subscription;
12
- set bbAnonymousElse(templateRef: TemplateRef<any>);
13
- ngOnInit(): void;
14
- ngOnDestroy(): void;
15
- private updateView;
16
- private assertTemplate;
17
- static ngAcceptInputType_bbAnonymousElse: TemplateRef<any>;
18
- static ɵfac: i0.ɵɵFactoryDeclaration<BbAnonymous, never>;
19
- static ɵdir: i0.ɵɵDirectiveDeclaration<BbAnonymous, "ng-template[bbAnonymous]", never, { "bbAnonymousElse": { "alias": "bbAnonymousElse"; "required": false; }; }, {}, never, never, true, never>;
20
- }
@@ -1,20 +0,0 @@
1
- import { OnDestroy, OnInit, TemplateRef } from '@angular/core';
2
- import * as i0 from "@angular/core";
3
- export declare class BbAuthenticated implements OnInit, OnDestroy {
4
- private readonly _auth;
5
- private readonly _templateRef;
6
- private readonly _viewContainerRef;
7
- private _valid;
8
- private _elseTemplateRef;
9
- private _thenViewRef;
10
- private _elseViewRef;
11
- private _subscription;
12
- set bbAuthenticatedElse(templateRef: TemplateRef<any>);
13
- ngOnInit(): void;
14
- ngOnDestroy(): void;
15
- private updateView;
16
- private assertTemplate;
17
- static ngAcceptInputType_bbAuthenticatedElse: TemplateRef<any>;
18
- static ɵfac: i0.ɵɵFactoryDeclaration<BbAuthenticated, never>;
19
- static ɵdir: i0.ɵɵDirectiveDeclaration<BbAuthenticated, "ng-template[bbAuthenticated]", never, { "bbAuthenticatedElse": { "alias": "bbAuthenticatedElse"; "required": false; }; }, {}, never, never, true, never>;
20
- }
@@ -1,2 +0,0 @@
1
- import { CanActivateFn } from '@angular/router';
2
- export declare const bbAnonymousGuard: CanActivateFn;
@@ -1,2 +0,0 @@
1
- import { CanActivateFn } from '@angular/router';
2
- export declare const bbAuthenticatedGuard: CanActivateFn;
@@ -1,8 +0,0 @@
1
- import { AuthToken } from '../interfaces/token.interface';
2
- export declare class JwtHelper {
3
- decode(token: string): AuthToken;
4
- private urlDecode;
5
- private baseDecodeUnicode;
6
- private parse;
7
- private parseDate;
8
- }
@@ -1,27 +0,0 @@
1
- import { ActivatedRouteSnapshot, RouterStateSnapshot, UrlTree } from '@angular/router';
2
- import { StorageOption } from '@bravobit/bb-foundation/storage';
3
- import { InjectionToken } from '@angular/core';
4
- export type AuthStrategy = 'httpOnlyCookie' | 'browserStorage';
5
- export interface AuthConfig {
6
- applicationId: string;
7
- strategy: AuthStrategy;
8
- preferredStorageOptions?: StorageOption[];
9
- http?: {
10
- scheme?: string;
11
- header?: string;
12
- };
13
- redirects?: {
14
- authenticated?: string | string[];
15
- unauthenticated?: string | string[];
16
- };
17
- setRedirectOnFailedAuth?: boolean;
18
- interceptActing?: boolean;
19
- providers?: string[];
20
- autoRefresh?: boolean;
21
- }
22
- export declare const AUTH_CONFIG: InjectionToken<AuthConfig>;
23
- export declare const AUTH_REDIRECT_HANDLER: InjectionToken<AuthRedirectHandler>;
24
- export interface AuthRedirectHandler {
25
- onFailedAuthenticated(snapshot?: ActivatedRouteSnapshot, state?: RouterStateSnapshot): boolean | UrlTree;
26
- onFailedAnonymous(snapshot?: ActivatedRouteSnapshot, state?: RouterStateSnapshot): boolean | UrlTree;
27
- }
@@ -1,23 +0,0 @@
1
- import { HttpClient } from '@angular/common/http';
2
- export interface AuthProvider {
3
- authenticate(httpClient: HttpClient): Promise<AuthProviderResult>;
4
- }
5
- export interface AuthProviderResponse {
6
- token: string;
7
- refresh_token?: string;
8
- provider?: string;
9
- verify_token?: string;
10
- user?: any;
11
- }
12
- export interface AuthProviderResult {
13
- accessToken?: string;
14
- refreshToken?: string;
15
- provider?: string;
16
- verifyToken?: string;
17
- user?: any;
18
- }
19
- export interface AuthSignInResponse {
20
- user?: unknown;
21
- provider?: string;
22
- verifyToken?: string;
23
- }
@@ -1,11 +0,0 @@
1
- export interface AuthToken {
2
- id?: string;
3
- type?: string;
4
- audience?: string;
5
- issuer?: string;
6
- subject?: string;
7
- notValidBefore?: Date;
8
- expiresAt?: Date;
9
- issuedAt?: Date;
10
- role?: string;
11
- }
@@ -1,9 +0,0 @@
1
- import { AuthProvider, AuthProviderResult } from '../interfaces/provider.interface';
2
- import { HttpClient } from '@angular/common/http';
3
- export declare class AuthEmailProvider implements AuthProvider {
4
- private _email;
5
- private _password;
6
- private _endpoint;
7
- constructor(_email: string, _password: string, _endpoint: string);
8
- authenticate(httpClient: HttpClient): Promise<AuthProviderResult>;
9
- }
@@ -1,9 +0,0 @@
1
- import { AuthProvider, AuthProviderResult } from '../interfaces/provider.interface';
2
- import { HttpClient } from '@angular/common/http';
3
- export declare class AuthVerifyProvider implements AuthProvider {
4
- private _code;
5
- private _verifyToken;
6
- private _endpoint;
7
- constructor(_code: string, _verifyToken: string, _endpoint: string);
8
- authenticate(httpClient: HttpClient): Promise<AuthProviderResult>;
9
- }
@@ -1,2 +0,0 @@
1
- import { HttpContextToken } from '@angular/common/http';
2
- export declare const USE_AUTHORIZATION: HttpContextToken<boolean>;