@bravobit/bb-foundation 0.15.0 → 0.15.4

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 (133) hide show
  1. package/bundles/bravobit-bb-foundation-auth.umd.js +31 -31
  2. package/bundles/bravobit-bb-foundation-collections.umd.js +120 -103
  3. package/bundles/bravobit-bb-foundation-collections.umd.js.map +1 -1
  4. package/bundles/bravobit-bb-foundation-dashboard.umd.js +25 -25
  5. package/bundles/bravobit-bb-foundation-dialog.umd.js +31 -31
  6. package/bundles/bravobit-bb-foundation-elements.umd.js +85 -85
  7. package/bundles/bravobit-bb-foundation-http.umd.js +10 -10
  8. package/bundles/bravobit-bb-foundation-localize.umd.js +19 -19
  9. package/bundles/bravobit-bb-foundation-notifications.umd.js +13 -13
  10. package/bundles/bravobit-bb-foundation-recaptcha.umd.js +10 -10
  11. package/bundles/bravobit-bb-foundation-storage.umd.js +3 -3
  12. package/bundles/bravobit-bb-foundation-table.umd.js +39 -19
  13. package/bundles/bravobit-bb-foundation-table.umd.js.map +1 -1
  14. package/bundles/bravobit-bb-foundation.umd.js +24 -24
  15. package/collections/lib/collection.d.ts +3 -0
  16. package/collections/lib/collections.module.d.ts +10 -0
  17. package/collections/lib/components/{collection-pager/collection-pager.component.d.ts → collections-pager/collections-pager.component.d.ts} +3 -3
  18. package/collections/lib/components/collections-viewer/collections-viewer.component.d.ts +12 -0
  19. package/collections/lib/components/collections.directive.d.ts +17 -0
  20. package/collections/public_api.d.ts +4 -4
  21. package/esm2015/auth/lib/auth.interceptor.js +3 -3
  22. package/esm2015/auth/lib/auth.module.js +4 -4
  23. package/esm2015/auth/lib/auth.service.js +3 -3
  24. package/esm2015/auth/lib/directives/authenticated.directive.js +3 -3
  25. package/esm2015/auth/lib/directives/permission.directive.js +3 -3
  26. package/esm2015/auth/lib/directives/role.directive.js +3 -3
  27. package/esm2015/auth/lib/guards/anonymous.guard.js +3 -3
  28. package/esm2015/auth/lib/guards/authenticated.guard.js +3 -3
  29. package/esm2015/auth/lib/helpers/mapper.helper.js +3 -3
  30. package/esm2015/auth/lib/permissions.service.js +3 -3
  31. package/esm2015/collections/lib/collection.js +20 -4
  32. package/esm2015/collections/lib/collections.module.js +54 -0
  33. package/esm2015/collections/lib/components/collections-pager/collections-pager.component.js +136 -0
  34. package/esm2015/collections/lib/components/collections-viewer/collections-viewer.component.js +39 -0
  35. package/esm2015/collections/lib/components/collections.directive.js +43 -0
  36. package/esm2015/collections/lib/providers/api-collection.provider.js +2 -2
  37. package/esm2015/collections/public_api.js +5 -5
  38. package/esm2015/dashboard/lib/dashboard/dashboard.component.js +3 -3
  39. package/esm2015/dashboard/lib/dashboard-header/dashboard-header.component.js +3 -3
  40. package/esm2015/dashboard/lib/dashboard-menu/dashboard-menu.component.js +3 -3
  41. package/esm2015/dashboard/lib/dashboard-menu-item/dashboard-menu-item.component.js +3 -3
  42. package/esm2015/dashboard/lib/dashboard-sidebar/dashboard-sidebar.component.js +3 -3
  43. package/esm2015/dashboard/lib/dashboard-sidebar-group/dashboard-sidebar-group.component.js +3 -3
  44. package/esm2015/dashboard/lib/dashboard-sidebar-item/dashboard-sidebar-item.component.js +3 -3
  45. package/esm2015/dashboard/lib/dashboard.module.js +4 -4
  46. package/esm2015/dialog/lib/dialog-actions/dialog-actions.component.js +3 -3
  47. package/esm2015/dialog/lib/dialog-confirm/dialog-confirm.component.js +3 -3
  48. package/esm2015/dialog/lib/dialog-container/dialog-container.component.js +3 -3
  49. package/esm2015/dialog/lib/dialog-header/dialog-header.component.js +3 -3
  50. package/esm2015/dialog/lib/dialog-link/dialog-link.component.js +3 -3
  51. package/esm2015/dialog/lib/dialog-modal/dialog-modal.component.js +3 -3
  52. package/esm2015/dialog/lib/dialog-overlay/dialog-overlay.component.js +3 -3
  53. package/esm2015/dialog/lib/dialog.insertion.js +3 -3
  54. package/esm2015/dialog/lib/dialog.module.js +4 -4
  55. package/esm2015/dialog/lib/dialog.service.js +3 -3
  56. package/esm2015/elements/lib/avatar/avatar.component.js +3 -3
  57. package/esm2015/elements/lib/button/button.component.js +6 -6
  58. package/esm2015/elements/lib/checkbox/checkbox.component.js +3 -3
  59. package/esm2015/elements/lib/date-picker/date-picker.component.js +3 -3
  60. package/esm2015/elements/lib/directives/addon.directive.js +6 -6
  61. package/esm2015/elements/lib/directives/autosize.directive.js +3 -3
  62. package/esm2015/elements/lib/directives/focus-trap.directive.js +3 -3
  63. package/esm2015/elements/lib/directives/focus.directive.js +3 -3
  64. package/esm2015/elements/lib/directives/form-submit.directive.js +3 -3
  65. package/esm2015/elements/lib/directives/input.directive.js +6 -6
  66. package/esm2015/elements/lib/directives/template.directive.js +3 -3
  67. package/esm2015/elements/lib/dropdown/dropdown.component.js +6 -6
  68. package/esm2015/elements/lib/elements.module.js +4 -4
  69. package/esm2015/elements/lib/file-picker/file-picker.component.js +3 -3
  70. package/esm2015/elements/lib/form-control/form-control.component.js +3 -3
  71. package/esm2015/elements/lib/form-error/form-error.component.js +3 -3
  72. package/esm2015/elements/lib/form-group/form-group.component.js +3 -3
  73. package/esm2015/elements/lib/icon/icon.component.js +3 -3
  74. package/esm2015/elements/lib/image-picker/image-picker.component.js +3 -3
  75. package/esm2015/elements/lib/pipes/file-image.pipe.js +3 -3
  76. package/esm2015/elements/lib/pipes/file-size.pipe.js +3 -3
  77. package/esm2015/elements/lib/pipes/relative-time.pipe.js +3 -3
  78. package/esm2015/elements/lib/spinner/spinner.component.js +3 -3
  79. package/esm2015/elements/lib/tag/tag.component.js +3 -3
  80. package/esm2015/http/lib/http.module.js +4 -4
  81. package/esm2015/http/lib/interceptors/base-url.interceptor.js +3 -3
  82. package/esm2015/http/lib/interceptors/error.interceptor.js +3 -3
  83. package/esm2015/lib/core/services/clipboard.service.js +3 -3
  84. package/esm2015/lib/core/services/exif.service.js +3 -3
  85. package/esm2015/lib/core/services/file-loader.service.js +3 -3
  86. package/esm2015/lib/core/services/image-converter.service.js +3 -3
  87. package/esm2015/lib/core/services/languages.service.js +3 -3
  88. package/esm2015/lib/core/services/network.service.js +3 -3
  89. package/esm2015/lib/core/services/patch.service.js +3 -3
  90. package/esm2015/lib/core/services/platform.service.js +3 -3
  91. package/esm2015/localize/lib/localize.module.js +4 -4
  92. package/esm2015/localize/lib/localize.pipe.js +3 -3
  93. package/esm2015/localize/lib/localize.service.js +3 -3
  94. package/esm2015/localize/lib/views/localize-string/localize-string.component.js +3 -3
  95. package/esm2015/localize/lib/views/localize-template-or-string.directive.js +3 -3
  96. package/esm2015/localize/lib/views/localize-template.directive.js +3 -3
  97. package/esm2015/notifications/lib/notifications-item/notifications-item.component.js +3 -3
  98. package/esm2015/notifications/lib/notifications-list/notifications-list.component.js +3 -3
  99. package/esm2015/notifications/lib/notifications.module.js +4 -4
  100. package/esm2015/notifications/lib/notifications.service.js +3 -3
  101. package/esm2015/recaptcha/lib/recaptcha/recaptcha.component.js +3 -3
  102. package/esm2015/recaptcha/lib/recaptcha-loader.service.js +3 -3
  103. package/esm2015/recaptcha/lib/recaptcha.module.js +4 -4
  104. package/esm2015/storage/lib/storage.service.js +3 -3
  105. package/esm2015/table/lib/components/table/table.component.js +21 -8
  106. package/esm2015/table/lib/components/table-cell/table-cell.component.js +3 -3
  107. package/esm2015/table/lib/components/table-header-cell/table-header-cell.component.js +3 -3
  108. package/esm2015/table/lib/components/table-pager/table-pager.component.js +3 -3
  109. package/esm2015/table/lib/table.module.js +9 -6
  110. package/fesm2015/bravobit-bb-foundation-auth.js +31 -31
  111. package/fesm2015/bravobit-bb-foundation-collections.js +90 -74
  112. package/fesm2015/bravobit-bb-foundation-collections.js.map +1 -1
  113. package/fesm2015/bravobit-bb-foundation-dashboard.js +25 -25
  114. package/fesm2015/bravobit-bb-foundation-dialog.js +31 -31
  115. package/fesm2015/bravobit-bb-foundation-elements.js +85 -85
  116. package/fesm2015/bravobit-bb-foundation-http.js +10 -10
  117. package/fesm2015/bravobit-bb-foundation-localize.js +19 -19
  118. package/fesm2015/bravobit-bb-foundation-notifications.js +13 -13
  119. package/fesm2015/bravobit-bb-foundation-recaptcha.js +10 -10
  120. package/fesm2015/bravobit-bb-foundation-storage.js +3 -3
  121. package/fesm2015/bravobit-bb-foundation-table.js +37 -21
  122. package/fesm2015/bravobit-bb-foundation-table.js.map +1 -1
  123. package/fesm2015/bravobit-bb-foundation.js +24 -24
  124. package/package.json +2 -2
  125. package/table/lib/components/table/table.component.d.ts +6 -1
  126. package/table/lib/table.module.d.ts +1 -1
  127. package/collections/lib/collection.module.d.ts +0 -10
  128. package/collections/lib/components/collection-viewer/collection-viewer.component.d.ts +0 -12
  129. package/collections/lib/components/collection.directive.d.ts +0 -17
  130. package/esm2015/collections/lib/collection.module.js +0 -54
  131. package/esm2015/collections/lib/components/collection-pager/collection-pager.component.js +0 -136
  132. package/esm2015/collections/lib/components/collection-viewer/collection-viewer.component.js +0 -39
  133. package/esm2015/collections/lib/components/collection.directive.js +0 -43
@@ -136,9 +136,9 @@
136
136
  };
137
137
  return AuthMapper;
138
138
  }());
139
- AuthMapper.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.10", ngImport: i0__namespace, type: AuthMapper, deps: [], target: i0__namespace.ɵɵFactoryTarget.Injectable });
140
- AuthMapper.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.10", ngImport: i0__namespace, type: AuthMapper });
141
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.10", ngImport: i0__namespace, type: AuthMapper, decorators: [{
139
+ AuthMapper.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.11", ngImport: i0__namespace, type: AuthMapper, deps: [], target: i0__namespace.ɵɵFactoryTarget.Injectable });
140
+ AuthMapper.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.11", ngImport: i0__namespace, type: AuthMapper });
141
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.11", ngImport: i0__namespace, type: AuthMapper, decorators: [{
142
142
  type: i0.Injectable
143
143
  }] });
144
144
 
@@ -1007,9 +1007,9 @@
1007
1007
  };
1008
1008
  return Auth;
1009
1009
  }());
1010
- Auth.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.10", ngImport: i0__namespace, type: Auth, deps: [{ token: i1__namespace.Storage }, { token: AuthMapper }, { token: i0__namespace.Injector }, { token: i3__namespace.Platform }, { token: i4__namespace.HttpClient }, { token: AuthConfig, optional: true }, { token: i6__namespace.TransferState, optional: true }, { token: i7__namespace.HttpConfig, optional: true }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
1011
- Auth.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.10", ngImport: i0__namespace, type: Auth });
1012
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.10", ngImport: i0__namespace, type: Auth, decorators: [{
1010
+ Auth.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.11", ngImport: i0__namespace, type: Auth, deps: [{ token: i1__namespace.Storage }, { token: AuthMapper }, { token: i0__namespace.Injector }, { token: i3__namespace.Platform }, { token: i4__namespace.HttpClient }, { token: AuthConfig, optional: true }, { token: i6__namespace.TransferState, optional: true }, { token: i7__namespace.HttpConfig, optional: true }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
1011
+ Auth.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.11", ngImport: i0__namespace, type: Auth });
1012
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.11", ngImport: i0__namespace, type: Auth, decorators: [{
1013
1013
  type: i0.Injectable
1014
1014
  }], ctorParameters: function () {
1015
1015
  return [{ type: i1__namespace.Storage }, { type: AuthMapper }, { type: i0__namespace.Injector }, { type: i3__namespace.Platform }, { type: i4__namespace.HttpClient }, { type: AuthConfig, decorators: [{
@@ -1042,9 +1042,9 @@
1042
1042
  };
1043
1043
  return BbAuthenticated;
1044
1044
  }());
1045
- BbAuthenticated.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.10", ngImport: i0__namespace, type: BbAuthenticated, deps: [{ token: Auth }, { token: i0__namespace.TemplateRef }, { token: i0__namespace.ViewContainerRef }], target: i0__namespace.ɵɵFactoryTarget.Directive });
1046
- BbAuthenticated.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.10", type: BbAuthenticated, selector: "[bbAuthenticated]", ngImport: i0__namespace });
1047
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.10", ngImport: i0__namespace, type: BbAuthenticated, decorators: [{
1045
+ BbAuthenticated.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.11", ngImport: i0__namespace, type: BbAuthenticated, deps: [{ token: Auth }, { token: i0__namespace.TemplateRef }, { token: i0__namespace.ViewContainerRef }], target: i0__namespace.ɵɵFactoryTarget.Directive });
1046
+ BbAuthenticated.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.11", type: BbAuthenticated, selector: "[bbAuthenticated]", ngImport: i0__namespace });
1047
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.11", ngImport: i0__namespace, type: BbAuthenticated, decorators: [{
1048
1048
  type: i0.Directive,
1049
1049
  args: [{
1050
1050
  selector: '[bbAuthenticated]'
@@ -1076,9 +1076,9 @@
1076
1076
  };
1077
1077
  return BbRole;
1078
1078
  }());
1079
- BbRole.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.10", ngImport: i0__namespace, type: BbRole, deps: [{ token: Auth }, { token: i0__namespace.TemplateRef }, { token: i0__namespace.ViewContainerRef }], target: i0__namespace.ɵɵFactoryTarget.Directive });
1080
- BbRole.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.10", type: BbRole, selector: "[bbRole]", inputs: { bbRole: "bbRole" }, ngImport: i0__namespace });
1081
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.10", ngImport: i0__namespace, type: BbRole, decorators: [{
1079
+ BbRole.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.11", ngImport: i0__namespace, type: BbRole, deps: [{ token: Auth }, { token: i0__namespace.TemplateRef }, { token: i0__namespace.ViewContainerRef }], target: i0__namespace.ɵɵFactoryTarget.Directive });
1080
+ BbRole.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.11", type: BbRole, selector: "[bbRole]", inputs: { bbRole: "bbRole" }, ngImport: i0__namespace });
1081
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.11", ngImport: i0__namespace, type: BbRole, decorators: [{
1082
1082
  type: i0.Directive,
1083
1083
  args: [{
1084
1084
  selector: '[bbRole]'
@@ -1145,9 +1145,9 @@
1145
1145
  };
1146
1146
  return Permissions;
1147
1147
  }());
1148
- Permissions.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.10", ngImport: i0__namespace, type: Permissions, deps: [{ token: Auth }, { token: AuthConfig, optional: true }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
1149
- Permissions.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.10", ngImport: i0__namespace, type: Permissions });
1150
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.10", ngImport: i0__namespace, type: Permissions, decorators: [{
1148
+ Permissions.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.11", ngImport: i0__namespace, type: Permissions, deps: [{ token: Auth }, { token: AuthConfig, optional: true }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
1149
+ Permissions.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.11", ngImport: i0__namespace, type: Permissions });
1150
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.11", ngImport: i0__namespace, type: Permissions, decorators: [{
1151
1151
  type: i0.Injectable
1152
1152
  }], ctorParameters: function () {
1153
1153
  return [{ type: Auth }, { type: AuthConfig, decorators: [{
@@ -1228,9 +1228,9 @@
1228
1228
  };
1229
1229
  return BbPermission;
1230
1230
  }());
1231
- BbPermission.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.10", ngImport: i0__namespace, type: BbPermission, deps: [{ token: Permissions }, { token: i0__namespace.TemplateRef }, { token: i0__namespace.ViewContainerRef }], target: i0__namespace.ɵɵFactoryTarget.Directive });
1232
- BbPermission.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.10", type: BbPermission, selector: "[bbPermission]", inputs: { bbPermission: "bbPermission", bbPermissionElse: "bbPermissionElse" }, ngImport: i0__namespace });
1233
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.10", ngImport: i0__namespace, type: BbPermission, decorators: [{
1231
+ BbPermission.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.11", ngImport: i0__namespace, type: BbPermission, deps: [{ token: Permissions }, { token: i0__namespace.TemplateRef }, { token: i0__namespace.ViewContainerRef }], target: i0__namespace.ɵɵFactoryTarget.Directive });
1232
+ BbPermission.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.11", type: BbPermission, selector: "[bbPermission]", inputs: { bbPermission: "bbPermission", bbPermissionElse: "bbPermissionElse" }, ngImport: i0__namespace });
1233
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.11", ngImport: i0__namespace, type: BbPermission, decorators: [{
1234
1234
  type: i0.Directive,
1235
1235
  args: [{
1236
1236
  selector: '[bbPermission]'
@@ -1269,9 +1269,9 @@
1269
1269
  };
1270
1270
  return BbAnonymousGuard;
1271
1271
  }());
1272
- BbAnonymousGuard.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.10", ngImport: i0__namespace, type: BbAnonymousGuard, deps: [{ token: Auth }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
1273
- BbAnonymousGuard.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.10", ngImport: i0__namespace, type: BbAnonymousGuard, providedIn: 'root' });
1274
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.10", ngImport: i0__namespace, type: BbAnonymousGuard, decorators: [{
1272
+ BbAnonymousGuard.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.11", ngImport: i0__namespace, type: BbAnonymousGuard, deps: [{ token: Auth }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
1273
+ BbAnonymousGuard.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.11", ngImport: i0__namespace, type: BbAnonymousGuard, providedIn: 'root' });
1274
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.11", ngImport: i0__namespace, type: BbAnonymousGuard, decorators: [{
1275
1275
  type: i0.Injectable,
1276
1276
  args: [{
1277
1277
  providedIn: 'root'
@@ -1307,9 +1307,9 @@
1307
1307
  };
1308
1308
  return BbAuthenticatedGuard;
1309
1309
  }());
1310
- BbAuthenticatedGuard.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.10", ngImport: i0__namespace, type: BbAuthenticatedGuard, deps: [{ token: Auth }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
1311
- BbAuthenticatedGuard.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.10", ngImport: i0__namespace, type: BbAuthenticatedGuard, providedIn: 'root' });
1312
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.10", ngImport: i0__namespace, type: BbAuthenticatedGuard, decorators: [{
1310
+ BbAuthenticatedGuard.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.11", ngImport: i0__namespace, type: BbAuthenticatedGuard, deps: [{ token: Auth }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
1311
+ BbAuthenticatedGuard.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.11", ngImport: i0__namespace, type: BbAuthenticatedGuard, providedIn: 'root' });
1312
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.11", ngImport: i0__namespace, type: BbAuthenticatedGuard, decorators: [{
1313
1313
  type: i0.Injectable,
1314
1314
  args: [{
1315
1315
  providedIn: 'root'
@@ -1400,9 +1400,9 @@
1400
1400
  };
1401
1401
  return AuthInterceptor;
1402
1402
  }());
1403
- AuthInterceptor.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.10", ngImport: i0__namespace, type: AuthInterceptor, deps: [{ token: Auth }, { token: AuthConfig, optional: true }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
1404
- AuthInterceptor.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.10", ngImport: i0__namespace, type: AuthInterceptor });
1405
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.10", ngImport: i0__namespace, type: AuthInterceptor, decorators: [{
1403
+ AuthInterceptor.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.11", ngImport: i0__namespace, type: AuthInterceptor, deps: [{ token: Auth }, { token: AuthConfig, optional: true }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
1404
+ AuthInterceptor.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.11", ngImport: i0__namespace, type: AuthInterceptor });
1405
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.11", ngImport: i0__namespace, type: AuthInterceptor, decorators: [{
1406
1406
  type: i0.Injectable
1407
1407
  }], ctorParameters: function () {
1408
1408
  return [{ type: Auth }, { type: AuthConfig, decorators: [{
@@ -1432,16 +1432,16 @@
1432
1432
  };
1433
1433
  return AuthModule;
1434
1434
  }());
1435
- AuthModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.10", ngImport: i0__namespace, type: AuthModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
1436
- AuthModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.10", ngImport: i0__namespace, type: AuthModule, declarations: [BbAuthenticated,
1435
+ AuthModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.11", ngImport: i0__namespace, type: AuthModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
1436
+ AuthModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.11", ngImport: i0__namespace, type: AuthModule, declarations: [BbAuthenticated,
1437
1437
  BbRole,
1438
1438
  BbPermission], imports: [i4.HttpClientModule], exports: [BbAuthenticated,
1439
1439
  BbRole,
1440
1440
  BbPermission] });
1441
- AuthModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.10", ngImport: i0__namespace, type: AuthModule, providers: [
1441
+ AuthModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.11", ngImport: i0__namespace, type: AuthModule, providers: [
1442
1442
  { provide: AuthMapper, useClass: AuthMapper }
1443
1443
  ], imports: [[i4.HttpClientModule]] });
1444
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.10", ngImport: i0__namespace, type: AuthModule, decorators: [{
1444
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.11", ngImport: i0__namespace, type: AuthModule, decorators: [{
1445
1445
  type: i0.NgModule,
1446
1446
  args: [{
1447
1447
  imports: [i4.HttpClientModule],
@@ -395,7 +395,7 @@
395
395
  var _this = this;
396
396
  var endpoint$ = rxjs.isObservable(this._endpoint) ? this._endpoint : rxjs.of(this._endpoint);
397
397
  var params = this.getBackendFormat(request);
398
- var extraParams$ = this.getExtraParams(params);
398
+ var extraParams$ = this.getExtraParams(this._extraParams);
399
399
  return rxjs.combineLatest([endpoint$, extraParams$]).pipe(operators.switchMap(function (_h) {
400
400
  var _j = __read(_h, 2), endpoint = _j[0], extraParams = _j[1];
401
401
  return _this._httpClient.get(endpoint, {
@@ -449,97 +449,97 @@
449
449
  return LocalCollectionProvider;
450
450
  }(CollectionProvider));
451
451
 
452
- var BbCollectionData = /** @class */ (function () {
453
- function BbCollectionData() {
452
+ var BbCollectionsData = /** @class */ (function () {
453
+ function BbCollectionsData() {
454
454
  }
455
- return BbCollectionData;
455
+ return BbCollectionsData;
456
456
  }());
457
- BbCollectionData.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.10", ngImport: i0__namespace, type: BbCollectionData, deps: [], target: i0__namespace.ɵɵFactoryTarget.Directive });
458
- BbCollectionData.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.10", type: BbCollectionData, selector: "[bbCollectionData]", ngImport: i0__namespace });
459
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.10", ngImport: i0__namespace, type: BbCollectionData, decorators: [{
457
+ BbCollectionsData.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.11", ngImport: i0__namespace, type: BbCollectionsData, deps: [], target: i0__namespace.ɵɵFactoryTarget.Directive });
458
+ BbCollectionsData.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.11", type: BbCollectionsData, selector: "[bbCollectionsData]", ngImport: i0__namespace });
459
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.11", ngImport: i0__namespace, type: BbCollectionsData, decorators: [{
460
460
  type: i0.Directive,
461
461
  args: [{
462
- selector: '[bbCollectionData]'
462
+ selector: '[bbCollectionsData]'
463
463
  }]
464
464
  }] });
465
- var BbCollectionEmpty = /** @class */ (function () {
466
- function BbCollectionEmpty() {
465
+ var BbCollectionsEmpty = /** @class */ (function () {
466
+ function BbCollectionsEmpty() {
467
467
  }
468
- return BbCollectionEmpty;
468
+ return BbCollectionsEmpty;
469
469
  }());
470
- BbCollectionEmpty.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.10", ngImport: i0__namespace, type: BbCollectionEmpty, deps: [], target: i0__namespace.ɵɵFactoryTarget.Directive });
471
- BbCollectionEmpty.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.10", type: BbCollectionEmpty, selector: "[bbCollectionEmpty]", ngImport: i0__namespace });
472
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.10", ngImport: i0__namespace, type: BbCollectionEmpty, decorators: [{
470
+ BbCollectionsEmpty.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.11", ngImport: i0__namespace, type: BbCollectionsEmpty, deps: [], target: i0__namespace.ɵɵFactoryTarget.Directive });
471
+ BbCollectionsEmpty.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.11", type: BbCollectionsEmpty, selector: "[bbCollectionsEmpty]", ngImport: i0__namespace });
472
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.11", ngImport: i0__namespace, type: BbCollectionsEmpty, decorators: [{
473
473
  type: i0.Directive,
474
474
  args: [{
475
- selector: '[bbCollectionEmpty]'
475
+ selector: '[bbCollectionsEmpty]'
476
476
  }]
477
477
  }] });
478
- var BbCollectionError = /** @class */ (function () {
479
- function BbCollectionError() {
478
+ var BbCollectionsError = /** @class */ (function () {
479
+ function BbCollectionsError() {
480
480
  }
481
- return BbCollectionError;
481
+ return BbCollectionsError;
482
482
  }());
483
- BbCollectionError.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.10", ngImport: i0__namespace, type: BbCollectionError, deps: [], target: i0__namespace.ɵɵFactoryTarget.Directive });
484
- BbCollectionError.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.10", type: BbCollectionError, selector: "[bbCollectionError]", ngImport: i0__namespace });
485
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.10", ngImport: i0__namespace, type: BbCollectionError, decorators: [{
483
+ BbCollectionsError.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.11", ngImport: i0__namespace, type: BbCollectionsError, deps: [], target: i0__namespace.ɵɵFactoryTarget.Directive });
484
+ BbCollectionsError.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.11", type: BbCollectionsError, selector: "[bbCollectionsError]", ngImport: i0__namespace });
485
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.11", ngImport: i0__namespace, type: BbCollectionsError, decorators: [{
486
486
  type: i0.Directive,
487
487
  args: [{
488
- selector: '[bbCollectionError]'
488
+ selector: '[bbCollectionsError]'
489
489
  }]
490
490
  }] });
491
- var BbCollectionInitial = /** @class */ (function () {
492
- function BbCollectionInitial() {
491
+ var BbCollectionsInitial = /** @class */ (function () {
492
+ function BbCollectionsInitial() {
493
493
  }
494
- return BbCollectionInitial;
494
+ return BbCollectionsInitial;
495
495
  }());
496
- BbCollectionInitial.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.10", ngImport: i0__namespace, type: BbCollectionInitial, deps: [], target: i0__namespace.ɵɵFactoryTarget.Directive });
497
- BbCollectionInitial.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.10", type: BbCollectionInitial, selector: "[bbCollectionInitial]", ngImport: i0__namespace });
498
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.10", ngImport: i0__namespace, type: BbCollectionInitial, decorators: [{
496
+ BbCollectionsInitial.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.11", ngImport: i0__namespace, type: BbCollectionsInitial, deps: [], target: i0__namespace.ɵɵFactoryTarget.Directive });
497
+ BbCollectionsInitial.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.11", type: BbCollectionsInitial, selector: "[bbCollectionsInitial]", ngImport: i0__namespace });
498
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.11", ngImport: i0__namespace, type: BbCollectionsInitial, decorators: [{
499
499
  type: i0.Directive,
500
500
  args: [{
501
- selector: '[bbCollectionInitial]'
501
+ selector: '[bbCollectionsInitial]'
502
502
  }]
503
503
  }] });
504
504
 
505
- var BbCollectionViewer = /** @class */ (function () {
506
- function BbCollectionViewer() {
505
+ var BbCollectionsViewer = /** @class */ (function () {
506
+ function BbCollectionsViewer() {
507
507
  // Inputs.
508
508
  this.collection = null;
509
509
  }
510
- return BbCollectionViewer;
510
+ return BbCollectionsViewer;
511
511
  }());
512
- BbCollectionViewer.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.10", ngImport: i0__namespace, type: BbCollectionViewer, deps: [], target: i0__namespace.ɵɵFactoryTarget.Component });
513
- BbCollectionViewer.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.10", type: BbCollectionViewer, selector: "[bb-collection-viewer]", inputs: { collection: "collection" }, host: { classAttribute: "bb-collection-viewer" }, queries: [{ propertyName: "dataTemplate", first: true, predicate: BbCollectionData, descendants: true, read: i0.TemplateRef }, { propertyName: "emptyTemplate", first: true, predicate: BbCollectionEmpty, descendants: true, read: i0.TemplateRef }, { propertyName: "errorTemplate", first: true, predicate: BbCollectionError, descendants: true, read: i0.TemplateRef }, { propertyName: "initialTemplate", first: true, predicate: BbCollectionInitial, descendants: true, read: i0.TemplateRef }], ngImport: i0__namespace, template: "<ng-container *ngIf=\"collection?.data$ | async as data\"\n [ngSwitch]=\"data?.state\">\n <ng-container *ngSwitchDefault>\n <ng-container *ngTemplateOutlet=\"dataTemplate; context: {items: data?.response?.data}\"></ng-container>\n </ng-container>\n <ng-container *ngSwitchCase=\"'initial'\">\n <ng-container *ngTemplateOutlet=\"initialTemplate\"></ng-container>\n </ng-container>\n <ng-container *ngSwitchCase=\"'empty'\">\n <ng-container *ngTemplateOutlet=\"emptyTemplate; context: {query: data?.request?.query}\"></ng-container>\n </ng-container>\n <ng-container *ngSwitchCase=\"'error'\">\n <ng-container *ngTemplateOutlet=\"errorTemplate; context: {error: data?.error}\"></ng-container>\n </ng-container>\n</ng-container>\n", styles: [".bb-collection-viewer{display:block}\n"], directives: [{ type: i1__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i1__namespace.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { type: i1__namespace.NgSwitchDefault, selector: "[ngSwitchDefault]" }, { type: i1__namespace.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }, { type: i1__namespace.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }], pipes: { "async": i1__namespace.AsyncPipe }, changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush, encapsulation: i0__namespace.ViewEncapsulation.None });
514
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.10", ngImport: i0__namespace, type: BbCollectionViewer, decorators: [{
512
+ BbCollectionsViewer.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.11", ngImport: i0__namespace, type: BbCollectionsViewer, deps: [], target: i0__namespace.ɵɵFactoryTarget.Component });
513
+ BbCollectionsViewer.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.11", type: BbCollectionsViewer, selector: "[bb-collections-viewer]", inputs: { collection: "collection" }, host: { classAttribute: "bb-collections-viewer" }, queries: [{ propertyName: "dataTemplate", first: true, predicate: BbCollectionsData, descendants: true, read: i0.TemplateRef }, { propertyName: "emptyTemplate", first: true, predicate: BbCollectionsEmpty, descendants: true, read: i0.TemplateRef }, { propertyName: "errorTemplate", first: true, predicate: BbCollectionsError, descendants: true, read: i0.TemplateRef }, { propertyName: "initialTemplate", first: true, predicate: BbCollectionsInitial, descendants: true, read: i0.TemplateRef }], ngImport: i0__namespace, template: "<ng-container *ngIf=\"collection?.data$ | async as data\"\n [ngSwitch]=\"data?.state\">\n <ng-container *ngSwitchDefault>\n <ng-container *ngTemplateOutlet=\"dataTemplate; context: {items: data?.response?.data}\"></ng-container>\n </ng-container>\n <ng-container *ngSwitchCase=\"'initial'\">\n <ng-container *ngTemplateOutlet=\"initialTemplate\"></ng-container>\n </ng-container>\n <ng-container *ngSwitchCase=\"'empty'\">\n <ng-container *ngTemplateOutlet=\"emptyTemplate; context: {query: data?.request?.query}\"></ng-container>\n </ng-container>\n <ng-container *ngSwitchCase=\"'error'\">\n <ng-container *ngTemplateOutlet=\"errorTemplate; context: {error: data?.error}\"></ng-container>\n </ng-container>\n</ng-container>\n", styles: [".bb-collections-viewer{display:block}\n"], directives: [{ type: i1__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i1__namespace.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { type: i1__namespace.NgSwitchDefault, selector: "[ngSwitchDefault]" }, { type: i1__namespace.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }, { type: i1__namespace.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }], pipes: { "async": i1__namespace.AsyncPipe }, changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush, encapsulation: i0__namespace.ViewEncapsulation.None });
514
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.11", ngImport: i0__namespace, type: BbCollectionsViewer, decorators: [{
515
515
  type: i0.Component,
516
516
  args: [{
517
- selector: '[bb-collection-viewer]',
518
- templateUrl: './collection-viewer.component.html',
519
- styleUrls: ['./collection-viewer.component.scss'],
517
+ selector: '[bb-collections-viewer]',
518
+ templateUrl: './collections-viewer.component.html',
519
+ styleUrls: ['./collections-viewer.component.scss'],
520
520
  changeDetection: i0.ChangeDetectionStrategy.OnPush,
521
521
  encapsulation: i0.ViewEncapsulation.None,
522
- host: { 'class': 'bb-collection-viewer' },
522
+ host: { 'class': 'bb-collections-viewer' },
523
523
  preserveWhitespaces: false
524
524
  }]
525
525
  }], propDecorators: { dataTemplate: [{
526
526
  type: i0.ContentChild,
527
- args: [BbCollectionData, { read: i0.TemplateRef, static: false }]
527
+ args: [BbCollectionsData, { read: i0.TemplateRef, static: false }]
528
528
  }], emptyTemplate: [{
529
529
  type: i0.ContentChild,
530
- args: [BbCollectionEmpty, { read: i0.TemplateRef, static: false }]
530
+ args: [BbCollectionsEmpty, { read: i0.TemplateRef, static: false }]
531
531
  }], errorTemplate: [{
532
532
  type: i0.ContentChild,
533
- args: [BbCollectionError, { read: i0.TemplateRef, static: false }]
533
+ args: [BbCollectionsError, { read: i0.TemplateRef, static: false }]
534
534
  }], initialTemplate: [{
535
535
  type: i0.ContentChild,
536
- args: [BbCollectionInitial, { read: i0.TemplateRef, static: false }]
536
+ args: [BbCollectionsInitial, { read: i0.TemplateRef, static: false }]
537
537
  }], collection: [{
538
538
  type: i0.Input
539
539
  }] } });
540
540
 
541
- var BbCollectionPager = /** @class */ (function () {
542
- function BbCollectionPager() {
541
+ var BbCollectionsPager = /** @class */ (function () {
542
+ function BbCollectionsPager() {
543
543
  // Readonly data.
544
544
  this.maxAmountOfButtons = 5;
545
545
  this.cache$ = new rxjs.BehaviorSubject({});
@@ -548,7 +548,7 @@
548
548
  this._collection = null;
549
549
  this._subscription = null;
550
550
  }
551
- Object.defineProperty(BbCollectionPager.prototype, "label", {
551
+ Object.defineProperty(BbCollectionsPager.prototype, "label", {
552
552
  // Inputs.
553
553
  set: function (value) {
554
554
  this._label = value;
@@ -557,7 +557,7 @@
557
557
  enumerable: false,
558
558
  configurable: true
559
559
  });
560
- Object.defineProperty(BbCollectionPager.prototype, "collection", {
560
+ Object.defineProperty(BbCollectionsPager.prototype, "collection", {
561
561
  set: function (collection) {
562
562
  this._collection = collection;
563
563
  this.observeCollectionChanges();
@@ -565,7 +565,7 @@
565
565
  enumerable: false,
566
566
  configurable: true
567
567
  });
568
- BbCollectionPager.prototype.ngOnInit = function () {
568
+ BbCollectionsPager.prototype.ngOnInit = function () {
569
569
  var _this = this;
570
570
  this.data$ = this.cache$.pipe(operators.map(function (cache) {
571
571
  var _a, _b, _c, _d;
@@ -588,11 +588,11 @@
588
588
  };
589
589
  }));
590
590
  };
591
- BbCollectionPager.prototype.ngOnDestroy = function () {
591
+ BbCollectionsPager.prototype.ngOnDestroy = function () {
592
592
  var _a;
593
593
  (_a = this._subscription) === null || _a === void 0 ? void 0 : _a.unsubscribe();
594
594
  };
595
- BbCollectionPager.prototype.setPage = function (pageNumber, totalPages) {
595
+ BbCollectionsPager.prototype.setPage = function (pageNumber, totalPages) {
596
596
  var _a, _b, _c, _d;
597
597
  // Calculate the new value.
598
598
  var newValue = Math.min(totalPages, Math.max(1, pageNumber));
@@ -603,7 +603,7 @@
603
603
  }
604
604
  (_d = (_c = this._collection) === null || _c === void 0 ? void 0 : _c.pageNumberControl) === null || _d === void 0 ? void 0 : _d.setValue(pageNumber);
605
605
  };
606
- BbCollectionPager.prototype.observeCollectionChanges = function () {
606
+ BbCollectionsPager.prototype.observeCollectionChanges = function () {
607
607
  var _this = this;
608
608
  var _a, _b, _c, _d, _e;
609
609
  if (!this._collection) {
@@ -621,7 +621,7 @@
621
621
  }
622
622
  });
623
623
  };
624
- BbCollectionPager.prototype.calculateLabel = function (start, end, total) {
624
+ BbCollectionsPager.prototype.calculateLabel = function (start, end, total) {
625
625
  var _a;
626
626
  var startPoint = '[start]';
627
627
  var endPoint = '[end]';
@@ -632,7 +632,7 @@
632
632
  .replace(endPoint, "<strong>" + end + "</strong>")
633
633
  .replace(totalPoint, "<strong>" + total + "</strong>");
634
634
  };
635
- BbCollectionPager.prototype.calculatePages = function (pageNumber, totalPages) {
635
+ BbCollectionsPager.prototype.calculatePages = function (pageNumber, totalPages) {
636
636
  var min = 1;
637
637
  var max = totalPages;
638
638
  var amount = Math.max(1, this.maxAmountOfButtons);
@@ -654,24 +654,24 @@
654
654
  // Just return the default data.
655
655
  return data;
656
656
  };
657
- BbCollectionPager.prototype.filterActivePages = function (pageNumber, totalPages) {
657
+ BbCollectionsPager.prototype.filterActivePages = function (pageNumber, totalPages) {
658
658
  return this.calculatePages(pageNumber, totalPages)
659
659
  .filter(function (page) { return page > 0 && page <= totalPages; })
660
660
  .map(function (page) { return ({ page: page, active: pageNumber === page }); });
661
661
  };
662
- return BbCollectionPager;
662
+ return BbCollectionsPager;
663
663
  }());
664
- BbCollectionPager.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.10", ngImport: i0__namespace, type: BbCollectionPager, deps: [], target: i0__namespace.ɵɵFactoryTarget.Component });
665
- BbCollectionPager.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.10", type: BbCollectionPager, selector: "bb-collection-pager", inputs: { label: "label", collection: "collection" }, host: { classAttribute: "bb-collection-pager" }, ngImport: i0__namespace, template: "<ng-container *ngIf=\"data$ | async as data\">\n <div [innerHTML]=\"data?.label\"\n class=\"bb-collection-pager-text\">\n </div>\n\n <div class=\"bb-collection-pager-container\">\n <ul class=\"bb-collection-pager-list\">\n <li class=\"bb-collection-pager-item\"\n title=\"Previous page\">\n <button [disabled]=\"!data?.allowPrevious\"\n (click)=\"setPage(data?.pageNumber - 1, data?.totalPages)\"\n class=\"bb-collection-pager-button arrow first\"\n type=\"button\">\n &#8592;\n </button>\n </li>\n <li *ngFor=\"let item of data?.pages\"\n [title]=\"'Page ' + item?.page\"\n class=\"bb-collection-pager-item\">\n <button [class.active]=\"item?.active\"\n (click)=\"setPage(item?.page, data?.totalPages)\"\n class=\"bb-collection-pager-button\"\n type=\"button\">\n {{ item?.page }}\n </button>\n </li>\n <li class=\"bb-collection-pager-item\"\n title=\"Next page\">\n <button [disabled]=\"!data?.allowNext\"\n (click)=\"setPage(data?.pageNumber + 1, data?.totalPages)\"\n class=\"bb-collection-pager-button arrow last\"\n type=\"button\">\n &#8594;\n </button>\n </li>\n </ul>\n </div>\n</ng-container>\n", styles: [".bb-collection-pager{display:flex;align-items:center;flex-direction:column-reverse}.bb-collection-pager-text{display:block;margin-top:10px}.bb-collection-pager-text>strong{font-weight:500}.bb-collection-pager-container{width:100%;display:flex;overflow-x:auto;align-items:center;justify-content:center}.bb-collection-pager-list{display:flex;border-radius:6px;align-items:center;background-color:#fff;border:1px solid rgba(67,90,111,.3);box-shadow:#435a6f24 0 1px 2px inset}.bb-collection-pager-item:not(:last-child){border-right:1px solid #cccccc}.bb-collection-pager-button{height:34px;border:none;display:flex;padding:0 4px;min-width:40px;-webkit-appearance:none;-moz-appearance:none;appearance:none;min-height:34px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;align-items:center;justify-content:center;background-color:transparent}.bb-collection-pager-button:hover,.bb-collection-pager-button:focus,.bb-collection-pager-button:active,.bb-collection-pager-button.active{color:#1565c0;font-weight:500}.bb-collection-pager-button:hover,.bb-collection-pager-button:focus{background-color:#1565c00d}.bb-collection-pager-button:active,.bb-collection-pager-button.active{background-color:#1565c033}.bb-collection-pager-button:not(.arrow):hover,.bb-collection-pager-button:not(.arrow):focus{outline:1px solid rgba(21,101,192,.5)}.bb-collection-pager-button:not(.arrow):focus,.bb-collection-pager-button:not(.arrow):active{outline:1px solid #1565c0;box-shadow:#1565c066 0 0 0 3px}.bb-collection-pager-button:not(.arrow).active{outline:1px solid #1565c0}.bb-collection-pager-button.arrow{font-weight:500}.bb-collection-pager-button.arrow.first{border-top-left-radius:2px;border-bottom-left-radius:2px}.bb-collection-pager-button.arrow.last{border-top-right-radius:2px;border-bottom-right-radius:2px}.bb-collection-pager-button:disabled{color:#000;outline:none;opacity:.25;cursor:default;pointer-events:none;background-color:transparent}@media only screen and (min-width: 768px){.bb-collection-pager{flex-wrap:wrap;align-items:center;flex-direction:row;justify-content:space-between}.bb-collection-pager-text{margin-top:0}.bb-collection-pager-container{width:auto;overflow-x:unset}}\n"], directives: [{ type: i1__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i1__namespace.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }], pipes: { "async": i1__namespace.AsyncPipe }, changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush, encapsulation: i0__namespace.ViewEncapsulation.None });
666
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.10", ngImport: i0__namespace, type: BbCollectionPager, decorators: [{
664
+ BbCollectionsPager.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.11", ngImport: i0__namespace, type: BbCollectionsPager, deps: [], target: i0__namespace.ɵɵFactoryTarget.Component });
665
+ BbCollectionsPager.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.11", type: BbCollectionsPager, selector: "bb-collections-pager", inputs: { label: "label", collection: "collection" }, host: { classAttribute: "bb-collections-pager" }, ngImport: i0__namespace, template: "<ng-container *ngIf=\"data$ | async as data\">\n <div [innerHTML]=\"data?.label\"\n class=\"bb-collections-pager-text\">\n </div>\n\n <div class=\"bb-collections-pager-container\">\n <ul class=\"bb-collections-pager-list\">\n <li class=\"bb-collections-pager-item\"\n title=\"Previous page\">\n <button [disabled]=\"!data?.allowPrevious\"\n (click)=\"setPage(data?.pageNumber - 1, data?.totalPages)\"\n class=\"bb-collections-pager-button arrow first\"\n type=\"button\">\n &#8592;\n </button>\n </li>\n <li *ngFor=\"let item of data?.pages\"\n [title]=\"'Page ' + item?.page\"\n class=\"bb-collections-pager-item\">\n <button [class.active]=\"item?.active\"\n (click)=\"setPage(item?.page, data?.totalPages)\"\n class=\"bb-collections-pager-button\"\n type=\"button\">\n {{ item?.page }}\n </button>\n </li>\n <li class=\"bb-collections-pager-item\"\n title=\"Next page\">\n <button [disabled]=\"!data?.allowNext\"\n (click)=\"setPage(data?.pageNumber + 1, data?.totalPages)\"\n class=\"bb-collections-pager-button arrow last\"\n type=\"button\">\n &#8594;\n </button>\n </li>\n </ul>\n </div>\n</ng-container>\n", styles: [".bb-collections-pager{display:flex;align-items:center;flex-direction:column-reverse}.bb-collections-pager-text{display:block;margin-top:10px}.bb-collections-pager-text>strong{font-weight:500}.bb-collections-pager-container{width:100%;display:flex;overflow-x:auto;align-items:center;justify-content:center}.bb-collections-pager-list{display:flex;border-radius:6px;align-items:center;background-color:#fff;border:1px solid rgba(67,90,111,.3);box-shadow:#435a6f24 0 1px 2px inset}.bb-collections-pager-item:not(:last-child){border-right:1px solid #cccccc}.bb-collections-pager-button{height:34px;border:none;display:flex;padding:0 4px;min-width:40px;-webkit-appearance:none;-moz-appearance:none;appearance:none;min-height:34px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;align-items:center;justify-content:center;background-color:transparent}.bb-collections-pager-button:hover,.bb-collections-pager-button:focus,.bb-collections-pager-button:active,.bb-collections-pager-button.active{color:#1565c0;font-weight:500}.bb-collections-pager-button:hover,.bb-collections-pager-button:focus{background-color:#1565c00d}.bb-collections-pager-button:active,.bb-collections-pager-button.active{background-color:#1565c033}.bb-collections-pager-button:not(.arrow):hover,.bb-collections-pager-button:not(.arrow):focus{outline:1px solid rgba(21,101,192,.5)}.bb-collections-pager-button:not(.arrow):focus,.bb-collections-pager-button:not(.arrow):active{outline:1px solid #1565c0;box-shadow:#1565c066 0 0 0 3px}.bb-collections-pager-button:not(.arrow).active{outline:1px solid #1565c0}.bb-collections-pager-button.arrow{font-weight:500}.bb-collections-pager-button.arrow.first{border-top-left-radius:2px;border-bottom-left-radius:2px}.bb-collections-pager-button.arrow.last{border-top-right-radius:2px;border-bottom-right-radius:2px}.bb-collections-pager-button:disabled{color:#000;outline:none;opacity:.25;cursor:default;pointer-events:none;background-color:transparent}@media only screen and (min-width: 768px){.bb-collections-pager{flex-wrap:wrap;align-items:center;flex-direction:row;justify-content:space-between}.bb-collections-pager-text{margin-top:0}.bb-collections-pager-container{width:auto;overflow-x:unset}}\n"], directives: [{ type: i1__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i1__namespace.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }], pipes: { "async": i1__namespace.AsyncPipe }, changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush, encapsulation: i0__namespace.ViewEncapsulation.None });
666
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.11", ngImport: i0__namespace, type: BbCollectionsPager, decorators: [{
667
667
  type: i0.Component,
668
668
  args: [{
669
- selector: 'bb-collection-pager',
670
- templateUrl: './collection-pager.component.html',
671
- styleUrls: ['./collection-pager.component.scss'],
669
+ selector: 'bb-collections-pager',
670
+ templateUrl: './collections-pager.component.html',
671
+ styleUrls: ['./collections-pager.component.scss'],
672
672
  changeDetection: i0.ChangeDetectionStrategy.OnPush,
673
673
  encapsulation: i0.ViewEncapsulation.None,
674
- host: { 'class': 'bb-collection-pager' },
674
+ host: { 'class': 'bb-collections-pager' },
675
675
  preserveWhitespaces: false
676
676
  }]
677
677
  }], propDecorators: { label: [{
@@ -689,8 +689,8 @@
689
689
  this.raw$ = new rxjs.BehaviorSubject(null);
690
690
  this.loading$ = new rxjs.BehaviorSubject(true);
691
691
  // State.
692
+ this._formatter = null;
692
693
  this._refresh$ = new rxjs.BehaviorSubject(0);
693
- // Cache.
694
694
  this._requestCache = null;
695
695
  this.controlToObservable = function (control) {
696
696
  return control.valueChanges.pipe(operators.distinctUntilChanged(), operators.startWith(control === null || control === void 0 ? void 0 : control.value));
@@ -705,21 +705,38 @@
705
705
  Collection.prototype.refresh = function () {
706
706
  this._refresh$.next(0);
707
707
  };
708
+ Collection.prototype.setFormatter = function (callback) {
709
+ this._formatter = callback;
710
+ return this;
711
+ };
708
712
  Collection.prototype.getData = function () {
709
713
  var _this = this;
710
714
  var data$ = this.request.pipe(operators.tap(function () { return _this.loading$.next(true); }), operators.map(function (request) { return _this.validateRequest(request); }), operators.switchMap(function (request) {
711
715
  return _this._provider.transform(request).pipe(operators.tap(function (response) { return _this.cacheCollectionData(response); }), operators.map(function (response) { return ({ response: response, request: request, initial: false }); }), operators.catchError(function (error) { return rxjs.of({
712
716
  error: error,
713
717
  request: request,
718
+ response: null,
714
719
  initial: false
715
720
  }); }));
716
- }), operators.startWith({ initial: true }));
721
+ }), operators.startWith({ initial: true, response: null }));
717
722
  return rxjs.combineLatest([data$, this.loading$.asObservable()]).pipe(operators.map(function (_f) {
718
723
  var _g = __read(_f, 2), data = _g[0], loading = _g[1];
719
724
  var combined = Object.assign(Object.assign({}, data), { loading: loading });
720
- return Object.assign(Object.assign({}, combined), { state: _this.getState(combined) });
725
+ return Object.assign(Object.assign({}, combined), { response: _this.formatResponse(data === null || data === void 0 ? void 0 : data.response), state: _this.getState(combined) });
721
726
  }));
722
727
  };
728
+ Collection.prototype.formatResponse = function (response) {
729
+ var _this = this;
730
+ var _a;
731
+ if (!response) {
732
+ return response;
733
+ }
734
+ var data = ((_a = response === null || response === void 0 ? void 0 : response.data) !== null && _a !== void 0 ? _a : []).map(function (item) {
735
+ var _a;
736
+ return !!_this._formatter ? (_a = _this._formatter) === null || _a === void 0 ? void 0 : _a.call(_this, item) : item;
737
+ });
738
+ return Object.assign(Object.assign({}, response), { data: data });
739
+ };
723
740
  Collection.prototype.validateRequest = function (request) {
724
741
  var _a, _b, _c, _d;
725
742
  // We should reset the page number whenever we change the query or the page size.
@@ -776,55 +793,55 @@
776
793
  return Collection;
777
794
  }());
778
795
 
779
- var CollectionModule = /** @class */ (function () {
780
- function CollectionModule() {
796
+ var CollectionsModule = /** @class */ (function () {
797
+ function CollectionsModule() {
781
798
  }
782
- return CollectionModule;
799
+ return CollectionsModule;
783
800
  }());
784
- CollectionModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.10", ngImport: i0__namespace, type: CollectionModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
785
- CollectionModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.10", ngImport: i0__namespace, type: CollectionModule, declarations: [
801
+ CollectionsModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.11", ngImport: i0__namespace, type: CollectionsModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
802
+ CollectionsModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.11", ngImport: i0__namespace, type: CollectionsModule, declarations: [
786
803
  // Components.
787
- BbCollectionViewer,
788
- BbCollectionPager,
804
+ BbCollectionsViewer,
805
+ BbCollectionsPager,
789
806
  // Directives.
790
- BbCollectionData,
791
- BbCollectionEmpty,
792
- BbCollectionError,
793
- BbCollectionInitial
807
+ BbCollectionsData,
808
+ BbCollectionsEmpty,
809
+ BbCollectionsError,
810
+ BbCollectionsInitial
794
811
  ], imports: [i1.CommonModule], exports: [
795
812
  // Components.
796
- BbCollectionViewer,
797
- BbCollectionPager,
813
+ BbCollectionsViewer,
814
+ BbCollectionsPager,
798
815
  // Directives.
799
- BbCollectionData,
800
- BbCollectionEmpty,
801
- BbCollectionError,
802
- BbCollectionInitial
816
+ BbCollectionsData,
817
+ BbCollectionsEmpty,
818
+ BbCollectionsError,
819
+ BbCollectionsInitial
803
820
  ] });
804
- CollectionModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.10", ngImport: i0__namespace, type: CollectionModule, imports: [[i1.CommonModule]] });
805
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.10", ngImport: i0__namespace, type: CollectionModule, decorators: [{
821
+ CollectionsModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.11", ngImport: i0__namespace, type: CollectionsModule, imports: [[i1.CommonModule]] });
822
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.11", ngImport: i0__namespace, type: CollectionsModule, decorators: [{
806
823
  type: i0.NgModule,
807
824
  args: [{
808
825
  imports: [i1.CommonModule],
809
826
  declarations: [
810
827
  // Components.
811
- BbCollectionViewer,
812
- BbCollectionPager,
828
+ BbCollectionsViewer,
829
+ BbCollectionsPager,
813
830
  // Directives.
814
- BbCollectionData,
815
- BbCollectionEmpty,
816
- BbCollectionError,
817
- BbCollectionInitial
831
+ BbCollectionsData,
832
+ BbCollectionsEmpty,
833
+ BbCollectionsError,
834
+ BbCollectionsInitial
818
835
  ],
819
836
  exports: [
820
837
  // Components.
821
- BbCollectionViewer,
822
- BbCollectionPager,
838
+ BbCollectionsViewer,
839
+ BbCollectionsPager,
823
840
  // Directives.
824
- BbCollectionData,
825
- BbCollectionEmpty,
826
- BbCollectionError,
827
- BbCollectionInitial
841
+ BbCollectionsData,
842
+ BbCollectionsEmpty,
843
+ BbCollectionsError,
844
+ BbCollectionsInitial
828
845
  ]
829
846
  }]
830
847
  }] });
@@ -834,15 +851,15 @@
834
851
  */
835
852
 
836
853
  exports.ApiCollectionProvider = ApiCollectionProvider;
837
- exports.BbCollectionData = BbCollectionData;
838
- exports.BbCollectionEmpty = BbCollectionEmpty;
839
- exports.BbCollectionError = BbCollectionError;
840
- exports.BbCollectionInitial = BbCollectionInitial;
841
- exports.BbCollectionPager = BbCollectionPager;
842
- exports.BbCollectionViewer = BbCollectionViewer;
854
+ exports.BbCollectionsData = BbCollectionsData;
855
+ exports.BbCollectionsEmpty = BbCollectionsEmpty;
856
+ exports.BbCollectionsError = BbCollectionsError;
857
+ exports.BbCollectionsInitial = BbCollectionsInitial;
858
+ exports.BbCollectionsPager = BbCollectionsPager;
859
+ exports.BbCollectionsViewer = BbCollectionsViewer;
843
860
  exports.Collection = Collection;
844
- exports.CollectionModule = CollectionModule;
845
861
  exports.CollectionProvider = CollectionProvider;
862
+ exports.CollectionsModule = CollectionsModule;
846
863
  exports.LocalCollectionProvider = LocalCollectionProvider;
847
864
 
848
865
  Object.defineProperty(exports, '__esModule', { value: true });