@bravobit/bb-foundation 0.22.1 → 0.22.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 (192) hide show
  1. package/controls/lib/checkbox/checkbox-group/checkbox-group.component.d.ts +3 -2
  2. package/controls/lib/checkbox/checkbox.module.d.ts +2 -1
  3. package/controls/lib/form-control/form-control/form-control.component.d.ts +5 -5
  4. package/controls/lib/form-control/form-control.module.d.ts +2 -1
  5. package/dialog/lib/dialog-confirm/dialog-confirm.component.d.ts +4 -2
  6. package/dialog/lib/dialog.interfaces.d.ts +7 -0
  7. package/dialog/lib/dialog.service.d.ts +5 -9
  8. package/elements/lib/date-picker/date-picker.component.d.ts +4 -2
  9. package/elements/lib/elements.module.d.ts +25 -28
  10. package/elements/lib/pipes/relative-time.pipe.d.ts +4 -4
  11. package/elements/public_api.d.ts +0 -4
  12. package/esm2020/auth/lib/auth.interceptor.mjs +3 -3
  13. package/esm2020/auth/lib/auth.module.mjs +4 -4
  14. package/esm2020/auth/lib/auth.service.mjs +3 -3
  15. package/esm2020/auth/lib/directives/authenticated.directive.mjs +3 -3
  16. package/esm2020/auth/lib/directives/permission.directive.mjs +3 -3
  17. package/esm2020/auth/lib/guards/anonymous.guard.mjs +3 -3
  18. package/esm2020/auth/lib/guards/authenticated.guard.mjs +3 -3
  19. package/esm2020/auth/lib/guards/permission.guard.mjs +3 -3
  20. package/esm2020/auth/lib/permissions/permissions.service.mjs +3 -3
  21. package/esm2020/collections/lib/collections.module.mjs +4 -4
  22. package/esm2020/collections/lib/components/collections-pager/collections-pager.component.mjs +3 -3
  23. package/esm2020/collections/lib/components/collections-viewer/collections-viewer.component.mjs +5 -5
  24. package/esm2020/collections/lib/components/collections.directive.mjs +12 -12
  25. package/esm2020/controls/lib/checkbox/checkbox/checkbox.component.mjs +3 -3
  26. package/esm2020/controls/lib/checkbox/checkbox-group/checkbox-group.component.mjs +7 -6
  27. package/esm2020/controls/lib/checkbox/checkbox.module.mjs +7 -6
  28. package/esm2020/controls/lib/control-error/control-error/control-error.component.mjs +3 -3
  29. package/esm2020/controls/lib/control-error/control-error-submit.directive.mjs +3 -3
  30. package/esm2020/controls/lib/control-error/control-error.module.mjs +4 -4
  31. package/esm2020/controls/lib/controls.module.mjs +4 -4
  32. package/esm2020/controls/lib/form-control/form-control/form-control.component.mjs +6 -5
  33. package/esm2020/controls/lib/form-control/form-control-addon/form-control-addon.component.mjs +3 -3
  34. package/esm2020/controls/lib/form-control/form-control-input.directive.mjs +3 -3
  35. package/esm2020/controls/lib/form-control/form-control.module.mjs +8 -7
  36. package/esm2020/dashboard/lib/dashboard/dashboard.component.mjs +3 -3
  37. package/esm2020/dashboard/lib/dashboard-header/dashboard-header.component.mjs +3 -3
  38. package/esm2020/dashboard/lib/dashboard-menu/dashboard-menu.component.mjs +3 -3
  39. package/esm2020/dashboard/lib/dashboard-menu-item/dashboard-menu-item.component.mjs +3 -3
  40. package/esm2020/dashboard/lib/dashboard-sidebar/dashboard-sidebar.component.mjs +3 -3
  41. package/esm2020/dashboard/lib/dashboard-sidebar-group/dashboard-sidebar-group.component.mjs +3 -3
  42. package/esm2020/dashboard/lib/dashboard-sidebar-item/dashboard-sidebar-item.component.mjs +3 -3
  43. package/esm2020/dashboard/lib/dashboard.module.mjs +4 -4
  44. package/esm2020/dialog/lib/dialog-actions/dialog-actions.component.mjs +3 -3
  45. package/esm2020/dialog/lib/dialog-confirm/dialog-confirm.component.mjs +15 -12
  46. package/esm2020/dialog/lib/dialog-container/dialog-container.component.mjs +5 -5
  47. package/esm2020/dialog/lib/dialog-header/dialog-header.component.mjs +3 -3
  48. package/esm2020/dialog/lib/dialog-link/dialog-link.component.mjs +3 -3
  49. package/esm2020/dialog/lib/dialog-modal/dialog-modal.component.mjs +6 -6
  50. package/esm2020/dialog/lib/dialog-overlay/dialog-overlay.component.mjs +3 -3
  51. package/esm2020/dialog/lib/dialog.insertion.mjs +3 -3
  52. package/esm2020/dialog/lib/dialog.interfaces.mjs +1 -1
  53. package/esm2020/dialog/lib/dialog.module.mjs +4 -4
  54. package/esm2020/dialog/lib/dialog.service.mjs +15 -27
  55. package/esm2020/elements/lib/avatar/avatar.component.mjs +7 -7
  56. package/esm2020/elements/lib/button/button.component.mjs +6 -6
  57. package/esm2020/elements/lib/checkbox/checkbox.component.mjs +3 -3
  58. package/esm2020/elements/lib/date-picker/date-picker.component.mjs +20 -15
  59. package/esm2020/elements/lib/directives/addon.directive.mjs +6 -6
  60. package/esm2020/elements/lib/directives/form-submit.directive.mjs +3 -3
  61. package/esm2020/elements/lib/directives/form-submitter.directive.mjs +3 -3
  62. package/esm2020/elements/lib/directives/input.directive.mjs +6 -6
  63. package/esm2020/elements/lib/dropdown/dropdown.component.mjs +6 -6
  64. package/esm2020/elements/lib/elements.module.mjs +21 -25
  65. package/esm2020/elements/lib/file-picker/file-picker.component.mjs +4 -4
  66. package/esm2020/elements/lib/form-control/form-control.component.mjs +4 -4
  67. package/esm2020/elements/lib/form-error/form-error.component.mjs +3 -3
  68. package/esm2020/elements/lib/form-group/form-group.component.mjs +3 -3
  69. package/esm2020/elements/lib/icon/icon.component.mjs +3 -3
  70. package/esm2020/elements/lib/image-picker/image-picker.component.mjs +3 -3
  71. package/esm2020/elements/lib/pipes/file-image.pipe.mjs +3 -3
  72. package/esm2020/elements/lib/pipes/file-size.pipe.mjs +3 -3
  73. package/esm2020/elements/lib/pipes/relative-time.pipe.mjs +15 -13
  74. package/esm2020/elements/lib/spinner/spinner.component.mjs +3 -3
  75. package/esm2020/elements/lib/tag/tag.component.mjs +3 -3
  76. package/esm2020/elements/public_api.mjs +1 -5
  77. package/esm2020/http/lib/classes/http.config.mjs +2 -3
  78. package/esm2020/http/lib/http.module.mjs +4 -4
  79. package/esm2020/http/lib/interceptors/base-url.interceptor.mjs +6 -6
  80. package/esm2020/http/lib/interceptors/error.interceptor.mjs +3 -3
  81. package/esm2020/lib/core/services/clipboard.service.mjs +3 -3
  82. package/esm2020/lib/core/services/exif.service.mjs +3 -3
  83. package/esm2020/lib/core/services/file-loader.service.mjs +3 -3
  84. package/esm2020/lib/core/services/image-converter.service.mjs +3 -3
  85. package/esm2020/lib/core/services/languages.service.mjs +3 -3
  86. package/esm2020/lib/core/services/network.service.mjs +3 -3
  87. package/esm2020/lib/core/services/patch.service.mjs +3 -3
  88. package/esm2020/localize/lib/localize.dictionary.mjs +2 -4
  89. package/esm2020/localize/lib/localize.module.mjs +9 -11
  90. package/esm2020/localize/lib/localize.pipe.mjs +3 -3
  91. package/esm2020/localize/lib/localize.service.mjs +3 -3
  92. package/esm2020/localize/lib/views/localize-string/localize-string.component.mjs +6 -6
  93. package/esm2020/localize/lib/views/localize-template.directive.mjs +3 -3
  94. package/esm2020/masking/lib/directives/currency-mask.directive.mjs +3 -3
  95. package/esm2020/masking/lib/directives/date-mask.directive.mjs +3 -3
  96. package/esm2020/masking/lib/directives/input-mask.directive.mjs +3 -3
  97. package/esm2020/masking/lib/masking.module.mjs +4 -4
  98. package/esm2020/masking/lib/masking.service.mjs +3 -3
  99. package/esm2020/notifications/lib/notifications-item/notifications-item.component.mjs +3 -3
  100. package/esm2020/notifications/lib/notifications-list/notifications-list.component.mjs +3 -3
  101. package/esm2020/notifications/lib/notifications.module.mjs +4 -4
  102. package/esm2020/notifications/lib/notifications.service.mjs +22 -26
  103. package/esm2020/recaptcha/lib/recaptcha/recaptcha.component.mjs +3 -3
  104. package/esm2020/recaptcha/lib/recaptcha-loader.service.mjs +3 -3
  105. package/esm2020/recaptcha/lib/recaptcha.module.mjs +4 -4
  106. package/esm2020/storage/lib/storage.service.mjs +7 -7
  107. package/esm2020/table/lib/components/table/table.component.mjs +9 -9
  108. package/esm2020/table/lib/components/table-cell/table-cell.component.mjs +3 -3
  109. package/esm2020/table/lib/components/table-header-cell/table-header-cell.component.mjs +3 -3
  110. package/esm2020/table/lib/components/table-pager/table-pager.component.mjs +3 -3
  111. package/esm2020/table/lib/table.module.mjs +4 -4
  112. package/esm2020/theming/lib/theming.directive.mjs +3 -3
  113. package/esm2020/theming/lib/theming.module.mjs +4 -4
  114. package/esm2020/utils/bravobit-bb-foundation-utils.mjs +5 -0
  115. package/esm2020/utils/lib/directives/autosize.directive.mjs +72 -0
  116. package/esm2020/utils/lib/directives/focus-trap.directive.mjs +77 -0
  117. package/esm2020/utils/lib/directives/focus.directive.mjs +37 -0
  118. package/esm2020/utils/lib/directives/template.directive.mjs +28 -0
  119. package/esm2020/utils/lib/utils.module.mjs +35 -0
  120. package/esm2020/utils/public_api.mjs +6 -0
  121. package/fesm2015/bravobit-bb-foundation-auth.mjs +28 -28
  122. package/fesm2015/bravobit-bb-foundation-collections.mjs +23 -23
  123. package/fesm2015/bravobit-bb-foundation-collections.mjs.map +1 -1
  124. package/fesm2015/bravobit-bb-foundation-controls.mjs +47 -45
  125. package/fesm2015/bravobit-bb-foundation-controls.mjs.map +1 -1
  126. package/fesm2015/bravobit-bb-foundation-dashboard.mjs +25 -25
  127. package/fesm2015/bravobit-bb-foundation-dashboard.mjs.map +1 -1
  128. package/fesm2015/bravobit-bb-foundation-dialog.mjs +56 -83
  129. package/fesm2015/bravobit-bb-foundation-dialog.mjs.map +1 -1
  130. package/fesm2015/bravobit-bb-foundation-elements.mjs +126 -324
  131. package/fesm2015/bravobit-bb-foundation-elements.mjs.map +1 -1
  132. package/fesm2015/bravobit-bb-foundation-http.mjs +14 -14
  133. package/fesm2015/bravobit-bb-foundation-http.mjs.map +1 -1
  134. package/fesm2015/bravobit-bb-foundation-localize.mjs +26 -53
  135. package/fesm2015/bravobit-bb-foundation-localize.mjs.map +1 -1
  136. package/fesm2015/bravobit-bb-foundation-masking.mjs +16 -16
  137. package/fesm2015/bravobit-bb-foundation-notifications.mjs +31 -52
  138. package/fesm2015/bravobit-bb-foundation-notifications.mjs.map +1 -1
  139. package/fesm2015/bravobit-bb-foundation-recaptcha.mjs +10 -10
  140. package/fesm2015/bravobit-bb-foundation-storage.mjs +6 -6
  141. package/fesm2015/bravobit-bb-foundation-storage.mjs.map +1 -1
  142. package/fesm2015/bravobit-bb-foundation-table.mjs +22 -22
  143. package/fesm2015/bravobit-bb-foundation-theming.mjs +7 -7
  144. package/fesm2015/bravobit-bb-foundation-utils.mjs +246 -0
  145. package/fesm2015/bravobit-bb-foundation-utils.mjs.map +1 -0
  146. package/fesm2015/bravobit-bb-foundation.mjs +21 -21
  147. package/fesm2020/bravobit-bb-foundation-auth.mjs +28 -28
  148. package/fesm2020/bravobit-bb-foundation-collections.mjs +23 -23
  149. package/fesm2020/bravobit-bb-foundation-collections.mjs.map +1 -1
  150. package/fesm2020/bravobit-bb-foundation-controls.mjs +47 -45
  151. package/fesm2020/bravobit-bb-foundation-controls.mjs.map +1 -1
  152. package/fesm2020/bravobit-bb-foundation-dashboard.mjs +25 -25
  153. package/fesm2020/bravobit-bb-foundation-dashboard.mjs.map +1 -1
  154. package/fesm2020/bravobit-bb-foundation-dialog.mjs +55 -81
  155. package/fesm2020/bravobit-bb-foundation-dialog.mjs.map +1 -1
  156. package/fesm2020/bravobit-bb-foundation-elements.mjs +124 -322
  157. package/fesm2020/bravobit-bb-foundation-elements.mjs.map +1 -1
  158. package/fesm2020/bravobit-bb-foundation-http.mjs +14 -14
  159. package/fesm2020/bravobit-bb-foundation-http.mjs.map +1 -1
  160. package/fesm2020/bravobit-bb-foundation-localize.mjs +26 -53
  161. package/fesm2020/bravobit-bb-foundation-localize.mjs.map +1 -1
  162. package/fesm2020/bravobit-bb-foundation-masking.mjs +16 -16
  163. package/fesm2020/bravobit-bb-foundation-notifications.mjs +31 -52
  164. package/fesm2020/bravobit-bb-foundation-notifications.mjs.map +1 -1
  165. package/fesm2020/bravobit-bb-foundation-recaptcha.mjs +10 -10
  166. package/fesm2020/bravobit-bb-foundation-storage.mjs +6 -6
  167. package/fesm2020/bravobit-bb-foundation-storage.mjs.map +1 -1
  168. package/fesm2020/bravobit-bb-foundation-table.mjs +22 -22
  169. package/fesm2020/bravobit-bb-foundation-theming.mjs +7 -7
  170. package/fesm2020/bravobit-bb-foundation-utils.mjs +244 -0
  171. package/fesm2020/bravobit-bb-foundation-utils.mjs.map +1 -0
  172. package/fesm2020/bravobit-bb-foundation.mjs +21 -21
  173. package/localize/lib/localize.module.d.ts +3 -3
  174. package/notifications/lib/notifications.service.d.ts +6 -7
  175. package/package.json +12 -4
  176. package/utils/index.d.ts +5 -0
  177. package/{elements → utils}/lib/directives/autosize.directive.d.ts +0 -0
  178. package/{elements → utils}/lib/directives/focus-trap.directive.d.ts +0 -0
  179. package/{elements → utils}/lib/directives/focus.directive.d.ts +0 -0
  180. package/{elements → utils}/lib/directives/template.directive.d.ts +1 -0
  181. package/utils/lib/utils.module.d.ts +10 -0
  182. package/utils/public_api.d.ts +5 -0
  183. package/dialog/lib/dialog.injector.d.ts +0 -8
  184. package/esm2020/dialog/lib/dialog.injector.mjs +0 -18
  185. package/esm2020/elements/lib/directives/autosize.directive.mjs +0 -72
  186. package/esm2020/elements/lib/directives/focus-trap.directive.mjs +0 -77
  187. package/esm2020/elements/lib/directives/focus.directive.mjs +0 -37
  188. package/esm2020/elements/lib/directives/template.directive.mjs +0 -28
  189. package/esm2020/localize/lib/views/localize-template-or-string.directive.mjs +0 -28
  190. package/esm2020/notifications/lib/notifications.injector.mjs +0 -18
  191. package/localize/lib/views/localize-template-or-string.directive.d.ts +0 -10
  192. package/notifications/lib/notifications.injector.d.ts +0 -8
@@ -3,7 +3,9 @@ import { Component, ChangeDetectionStrategy, ViewEncapsulation, Input, EventEmit
3
3
  import { coerceBooleanProperty } from '@angular/cdk/coercion';
4
4
  import * as i1 from '@angular/common';
5
5
  import { CommonModule } from '@angular/common';
6
- import * as i2 from '@angular/forms';
6
+ import * as i2 from '@bravobit/bb-foundation/utils';
7
+ import { UtilsModule } from '@bravobit/bb-foundation/utils';
8
+ import * as i2$1 from '@angular/forms';
7
9
  import { NG_VALUE_ACCESSOR, Validators } from '@angular/forms';
8
10
  import { startWith, map, distinctUntilChanged, pairwise, switchMap, delay, debounceTime } from 'rxjs/operators';
9
11
  import { Subscription, fromEvent, merge, of, BehaviorSubject } from 'rxjs';
@@ -14,7 +16,7 @@ class BbiCheckboxGroup {
14
16
  constructor(_changeDetectorRef) {
15
17
  this._changeDetectorRef = _changeDetectorRef;
16
18
  // Inputs.
17
- this.label = null; // TODO(Stan): Add template possibilities here.
19
+ this.label = null;
18
20
  this._grouped = false;
19
21
  this._required = false;
20
22
  this._inline = false;
@@ -47,16 +49,16 @@ class BbiCheckboxGroup {
47
49
  }
48
50
  }
49
51
  }
50
- BbiCheckboxGroup.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.1", ngImport: i0, type: BbiCheckboxGroup, deps: [{ token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
51
- BbiCheckboxGroup.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.1.1", type: BbiCheckboxGroup, selector: "bbi-checkbox-group", inputs: { label: "label", grouped: "grouped", required: "required", inline: "inline" }, host: { properties: { "class.grouped": "grouped", "class.required": "required", "class.inline": "inline" }, classAttribute: "bbi-checkbox-group" }, ngImport: i0, template: "<label *ngIf=\"label as label\"\n class=\"bbi-checkbox-group-label\">\n {{ label }}\n</label>\n\n<div class=\"bbi-checkbox-group-items\">\n <ng-content select=\"bbi-checkbox\"></ng-content>\n</div>\n", styles: [".bbi-checkbox-group{display:block}.bbi-checkbox-group.grouped{margin-bottom:var(--checkbox-group-grouping, 20px)}.bbi-checkbox-group.required>.bbi-checkbox-group-label:after{content:\"*\";color:#c23934;font-size:12px;line-height:1.5}.bbi-checkbox-group-label{border:0;padding:0;font-family:inherit;display:inline-block;box-sizing:border-box;vertical-align:initial;color:var(--checkbox-group-label-color, #525252);font-size:var(--checkbox-group-label-font-size, 14px);margin-bottom:var(--checkbox-group-label-offset, 4px);line-height:var(--checkbox-group-label-line-height, 1.33);font-weight:var(--checkbox-group-label-font-weight, 400)}.bbi-checkbox-group-items{display:flex;flex-direction:column}.bbi-checkbox-group-items:not(:empty){margin-bottom:-var(--checkbox-group-item-spacing-vertical,4px)}.bbi-checkbox-group-items>*{margin-bottom:var(--checkbox-group-item-spacing-vertical, 4px)}@media only screen and (min-width: 768px){.bbi-checkbox-group.inline>.bbi-checkbox-group-items{flex-wrap:wrap;flex-direction:row}.bbi-checkbox-group.inline>.bbi-checkbox-group-items>*:not(:last-child){margin-right:var(--checkbox-group-item-spacing-horizontal, 10px)}}\n"], dependencies: [{ kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
52
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.1", ngImport: i0, type: BbiCheckboxGroup, decorators: [{
52
+ BbiCheckboxGroup.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.0", ngImport: i0, type: BbiCheckboxGroup, deps: [{ token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
53
+ BbiCheckboxGroup.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.0", type: BbiCheckboxGroup, selector: "bbi-checkbox-group", inputs: { label: "label", grouped: "grouped", required: "required", inline: "inline" }, host: { properties: { "class.grouped": "grouped", "class.required": "required", "class.inline": "inline" }, classAttribute: "bbi-checkbox-group" }, ngImport: i0, template: "<label *ngIf=\"label as labelContent\"\n class=\"bbi-checkbox-group-label\">\n <ng-template [bbTemplate]=\"labelContent\">{{ labelContent }}</ng-template>\n</label>\n\n<div class=\"bbi-checkbox-group-items\">\n <ng-content select=\"bbi-checkbox\"></ng-content>\n</div>\n", styles: [".bbi-checkbox-group{display:block}.bbi-checkbox-group.grouped{margin-bottom:var(--checkbox-group-grouping, 20px)}.bbi-checkbox-group.required>.bbi-checkbox-group-label:after{content:\"*\";color:#c23934;font-size:12px;line-height:1.5}.bbi-checkbox-group-label{border:0;padding:0;font-family:inherit;display:inline-block;box-sizing:border-box;vertical-align:initial;color:var(--checkbox-group-label-color, #525252);font-size:var(--checkbox-group-label-font-size, 14px);margin-bottom:var(--checkbox-group-label-offset, 4px);line-height:var(--checkbox-group-label-line-height, 1.33);font-weight:var(--checkbox-group-label-font-weight, 400)}.bbi-checkbox-group-items{display:flex;flex-direction:column}.bbi-checkbox-group-items:not(:empty){margin-bottom:-var(--checkbox-group-item-spacing-vertical,4px)}.bbi-checkbox-group-items>*{margin-bottom:var(--checkbox-group-item-spacing-vertical, 4px)}@media only screen and (min-width: 768px){.bbi-checkbox-group.inline>.bbi-checkbox-group-items{flex-wrap:wrap;flex-direction:row}.bbi-checkbox-group.inline>.bbi-checkbox-group-items>*:not(:last-child){margin-right:var(--checkbox-group-item-spacing-horizontal, 10px)}}\n"], dependencies: [{ kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i2.BbTemplate, selector: "[bbTemplate]", inputs: ["bbTemplate"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
54
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.0", ngImport: i0, type: BbiCheckboxGroup, decorators: [{
53
55
  type: Component,
54
56
  args: [{ selector: 'bbi-checkbox-group', changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, host: {
55
57
  'class': 'bbi-checkbox-group',
56
58
  '[class.grouped]': 'grouped',
57
59
  '[class.required]': 'required',
58
60
  '[class.inline]': 'inline'
59
- }, preserveWhitespaces: false, template: "<label *ngIf=\"label as label\"\n class=\"bbi-checkbox-group-label\">\n {{ label }}\n</label>\n\n<div class=\"bbi-checkbox-group-items\">\n <ng-content select=\"bbi-checkbox\"></ng-content>\n</div>\n", styles: [".bbi-checkbox-group{display:block}.bbi-checkbox-group.grouped{margin-bottom:var(--checkbox-group-grouping, 20px)}.bbi-checkbox-group.required>.bbi-checkbox-group-label:after{content:\"*\";color:#c23934;font-size:12px;line-height:1.5}.bbi-checkbox-group-label{border:0;padding:0;font-family:inherit;display:inline-block;box-sizing:border-box;vertical-align:initial;color:var(--checkbox-group-label-color, #525252);font-size:var(--checkbox-group-label-font-size, 14px);margin-bottom:var(--checkbox-group-label-offset, 4px);line-height:var(--checkbox-group-label-line-height, 1.33);font-weight:var(--checkbox-group-label-font-weight, 400)}.bbi-checkbox-group-items{display:flex;flex-direction:column}.bbi-checkbox-group-items:not(:empty){margin-bottom:-var(--checkbox-group-item-spacing-vertical,4px)}.bbi-checkbox-group-items>*{margin-bottom:var(--checkbox-group-item-spacing-vertical, 4px)}@media only screen and (min-width: 768px){.bbi-checkbox-group.inline>.bbi-checkbox-group-items{flex-wrap:wrap;flex-direction:row}.bbi-checkbox-group.inline>.bbi-checkbox-group-items>*:not(:last-child){margin-right:var(--checkbox-group-item-spacing-horizontal, 10px)}}\n"] }]
61
+ }, preserveWhitespaces: false, template: "<label *ngIf=\"label as labelContent\"\n class=\"bbi-checkbox-group-label\">\n <ng-template [bbTemplate]=\"labelContent\">{{ labelContent }}</ng-template>\n</label>\n\n<div class=\"bbi-checkbox-group-items\">\n <ng-content select=\"bbi-checkbox\"></ng-content>\n</div>\n", styles: [".bbi-checkbox-group{display:block}.bbi-checkbox-group.grouped{margin-bottom:var(--checkbox-group-grouping, 20px)}.bbi-checkbox-group.required>.bbi-checkbox-group-label:after{content:\"*\";color:#c23934;font-size:12px;line-height:1.5}.bbi-checkbox-group-label{border:0;padding:0;font-family:inherit;display:inline-block;box-sizing:border-box;vertical-align:initial;color:var(--checkbox-group-label-color, #525252);font-size:var(--checkbox-group-label-font-size, 14px);margin-bottom:var(--checkbox-group-label-offset, 4px);line-height:var(--checkbox-group-label-line-height, 1.33);font-weight:var(--checkbox-group-label-font-weight, 400)}.bbi-checkbox-group-items{display:flex;flex-direction:column}.bbi-checkbox-group-items:not(:empty){margin-bottom:-var(--checkbox-group-item-spacing-vertical,4px)}.bbi-checkbox-group-items>*{margin-bottom:var(--checkbox-group-item-spacing-vertical, 4px)}@media only screen and (min-width: 768px){.bbi-checkbox-group.inline>.bbi-checkbox-group-items{flex-wrap:wrap;flex-direction:row}.bbi-checkbox-group.inline>.bbi-checkbox-group-items>*:not(:last-child){margin-right:var(--checkbox-group-item-spacing-horizontal, 10px)}}\n"] }]
60
62
  }], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }]; }, propDecorators: { label: [{
61
63
  type: Input
62
64
  }], grouped: [{
@@ -195,11 +197,11 @@ class BbiCheckbox {
195
197
  this._renderer.setProperty(element, field, value);
196
198
  }
197
199
  }
198
- BbiCheckbox.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.1", ngImport: i0, type: BbiCheckbox, deps: [{ token: i0.Renderer2 }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
199
- BbiCheckbox.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.1.1", type: BbiCheckbox, selector: "bbi-checkbox", inputs: { checked: "checked", disabled: "disabled", grouped: "grouped", indeterminate: "indeterminate", required: "required", hideText: "hideText" }, outputs: { checkedChange: "checkedChange", indeterminateChange: "indeterminateChange" }, host: { properties: { "class.grouped": "grouped", "class.indeterminate": "indeterminate", "class.required": "required" }, classAttribute: "bbi-checkbox" }, providers: [
200
+ BbiCheckbox.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.0", ngImport: i0, type: BbiCheckbox, deps: [{ token: i0.Renderer2 }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
201
+ BbiCheckbox.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.0", type: BbiCheckbox, selector: "bbi-checkbox", inputs: { checked: "checked", disabled: "disabled", grouped: "grouped", indeterminate: "indeterminate", required: "required", hideText: "hideText" }, outputs: { checkedChange: "checkedChange", indeterminateChange: "indeterminateChange" }, host: { properties: { "class.grouped": "grouped", "class.indeterminate": "indeterminate", "class.required": "required" }, classAttribute: "bbi-checkbox" }, providers: [
200
202
  { provide: NG_VALUE_ACCESSOR, useExisting: forwardRef(() => BbiCheckbox), multi: true }
201
203
  ], viewQueries: [{ propertyName: "inputElementRef", first: true, predicate: ["input"], descendants: true, static: true }], ngImport: i0, template: "<input #input\n [id]=\"labelId\"\n [disabled]=\"disabled\"\n [checked]=\"checked\"\n (change)=\"onChangeEvent($event)\"\n (click)=\"onClickEvent($event)\"\n (blur)=\"onTouched()\"\n class=\"bbi-checkbox-input\"\n type=\"checkbox\">\n<label [attr.for]=\"labelId\"\n class=\"bbi-checkbox-label\">\n <span *ngIf=\"!hideText\"\n class=\"bbi-checkbox-text\"><ng-content></ng-content></span>\n</label>\n", styles: [".bbi-checkbox{display:block}.bbi-checkbox.grouped{margin-bottom:var(--checkbox-grouping, 20px)}.bbi-checkbox.required>.bbi-checkbox-label>.bbi-checkbox-text:after{content:\"*\";color:#c23934;font-size:12px;line-height:1.5;margin-left:3px}.bbi-checkbox-input{border:0;width:1px;padding:0;height:1px;margin:-1px;overflow:hidden;position:absolute;visibility:inherit;white-space:nowrap;clip:rect(0,0,0,0)}.bbi-checkbox-input:checked+.bbi-checkbox-label:before,.bbi-checkbox-input:indeterminate+.bbi-checkbox-label:before{background-color:var(--checkbox-colors-accent, var(--accent-color, #1565c0));border:var(--checkbox-border-thickness, 1px) solid var(--checkbox-colors-accent, var(--accent-color, #1565c0))}.bbi-checkbox-input:checked+.bbi-checkbox-label:after,.bbi-checkbox-input:indeterminate+.bbi-checkbox-label:after{opacity:1;transform:scale(1) rotate(-45deg)}.bbi-checkbox-input:indeterminate+.bbi-checkbox-label:after{left:calc(var(--checkbox-size, 20px) / 4);width:calc(var(--checkbox-size, 20px) / 2);transform:scale(1) rotate(0);border-left:0 solid var(--checkbox-check-color, white);border-bottom:var(--checkbox-check-thickness, 2px) solid var(--checkbox-check-color, white)}.bbi-checkbox-input:focus+.bbi-checkbox-label:before{outline-color:var(--checkbox-outline-color, var(--accent-color, #1565c0))}.bbi-checkbox-input:disabled+.bbi-checkbox-label{cursor:not-allowed;color:var(--checkbox-colors-disabled, #c6c6c6)}.bbi-checkbox-input:disabled+.bbi-checkbox-label:before{border-color:var(--checkbox-colors-disabled, #c6c6c6)}.bbi-checkbox-input:disabled+.bbi-checkbox-label>.bbi-checkbox-text{color:var(--checkbox-colors-disabled, #c6c6c6)}.bbi-checkbox-input:checked:disabled+.bbi-checkbox-label:before,.bbi-checkbox-input:indeterminate:disabled+.bbi-checkbox-label:before{background-color:var(--checkbox-colors-disabled, #c6c6c6)}.bbi-checkbox-label{border:0;margin:0;display:flex;cursor:pointer;-webkit-user-select:none;user-select:none;position:relative;align-items:center;font-family:inherit;vertical-align:initial;min-height:var(--checkbox-size, 20px);padding-left:var(--checkbox-size, 20px)}.bbi-checkbox-label:before{left:0;content:\"\";position:absolute;width:var(--checkbox-size, 20px);height:var(--checkbox-size, 20px);background-color:initial;border-radius:var(--checkbox-border-radius, 4px);outline-offset:var(--checkbox-outline-offset, 1px);outline:var(--checkbox-outline-thickness, 2px) solid transparent;border:var(--checkbox-border-thickness, 1px) solid var(--checkbox-border-color, #111111);transition:outline-color .2s cubic-bezier(0,0,.2,1),background-color .18s cubic-bezier(0,0,.2,1),border-color .18s cubic-bezier(0,0,.2,1)}.bbi-checkbox-label:after{opacity:0;content:\"\";background:none;position:absolute;transform-origin:center;width:var(--checkbox-check-size, 12px);transform:scale(.85) rotate(-60deg);height:calc(var(--checkbox-check-size, 12px) / 2);top:calc(50% - var(--checkbox-check-size, 12px) / 2 * .75);left:calc((var(--checkbox-size, 20px) - var(--checkbox-check-size, 12px)) / 2);border-left:var(--checkbox-check-thickness, 2px) solid var(--checkbox-check-color, white);border-bottom:var(--checkbox-check-thickness, 2px) solid var(--checkbox-check-color, white);transition:opacity .12s cubic-bezier(0,0,.2,1),transform .18s cubic-bezier(0,0,.2,1)}.bbi-checkbox-text{color:var(--checkbox-label-color, #111111);padding-left:var(--checkbox-label-offset, 6px);font-size:var(--checkbox-label-font-size, 16px);font-weight:var(--checkbox-label-font-weight, 400);line-height:var(--checkbox-label-line-height, 1.28)}\n"], dependencies: [{ kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
202
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.1", ngImport: i0, type: BbiCheckbox, decorators: [{
204
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.0", ngImport: i0, type: BbiCheckbox, decorators: [{
203
205
  type: Component,
204
206
  args: [{ selector: 'bbi-checkbox', changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, providers: [
205
207
  { provide: NG_VALUE_ACCESSOR, useExisting: forwardRef(() => BbiCheckbox), multi: true }
@@ -232,13 +234,13 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.1", ngImpor
232
234
 
233
235
  class CheckboxModule {
234
236
  }
235
- CheckboxModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.1", ngImport: i0, type: CheckboxModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
236
- CheckboxModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.1.1", ngImport: i0, type: CheckboxModule, declarations: [BbiCheckbox, BbiCheckboxGroup], imports: [CommonModule], exports: [BbiCheckbox, BbiCheckboxGroup] });
237
- CheckboxModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.1.1", ngImport: i0, type: CheckboxModule, imports: [CommonModule] });
238
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.1", ngImport: i0, type: CheckboxModule, decorators: [{
237
+ CheckboxModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.0", ngImport: i0, type: CheckboxModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
238
+ CheckboxModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.2.0", ngImport: i0, type: CheckboxModule, declarations: [BbiCheckbox, BbiCheckboxGroup], imports: [CommonModule, UtilsModule], exports: [BbiCheckbox, BbiCheckboxGroup] });
239
+ CheckboxModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.2.0", ngImport: i0, type: CheckboxModule, imports: [CommonModule, UtilsModule] });
240
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.0", ngImport: i0, type: CheckboxModule, decorators: [{
239
241
  type: NgModule,
240
242
  args: [{
241
- imports: [CommonModule],
243
+ imports: [CommonModule, UtilsModule],
242
244
  declarations: [BbiCheckbox, BbiCheckboxGroup],
243
245
  exports: [BbiCheckbox, BbiCheckboxGroup]
244
246
  }]
@@ -339,15 +341,15 @@ class BbiFormControlInput {
339
341
  this._subscription.add(subscription);
340
342
  }
341
343
  }
342
- BbiFormControlInput.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.1", ngImport: i0, type: BbiFormControlInput, deps: [{ token: i0.ElementRef }, { token: BbiFormControl }, { token: i0.ChangeDetectorRef }, { token: i2.NgControl, optional: true, self: true }], target: i0.ɵɵFactoryTarget.Directive });
343
- BbiFormControlInput.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.1.1", type: BbiFormControlInput, selector: "input[bbiFormControlInput]", inputs: { disabled: "disabled", readonly: "readonly", required: "required" }, host: { properties: { "attr.id": "this.labelId", "required": "this.required" } }, ngImport: i0 });
344
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.1", ngImport: i0, type: BbiFormControlInput, decorators: [{
344
+ BbiFormControlInput.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.0", ngImport: i0, type: BbiFormControlInput, deps: [{ token: i0.ElementRef }, { token: BbiFormControl }, { token: i0.ChangeDetectorRef }, { token: i2$1.NgControl, optional: true, self: true }], target: i0.ɵɵFactoryTarget.Directive });
345
+ BbiFormControlInput.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.2.0", type: BbiFormControlInput, selector: "input[bbiFormControlInput]", inputs: { disabled: "disabled", readonly: "readonly", required: "required" }, host: { properties: { "attr.id": "this.labelId", "required": "this.required" } }, ngImport: i0 });
346
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.0", ngImport: i0, type: BbiFormControlInput, decorators: [{
345
347
  type: Directive,
346
348
  args: [{
347
349
  selector: 'input[bbiFormControlInput]'
348
350
  }]
349
351
  }], ctorParameters: function () {
350
- return [{ type: i0.ElementRef }, { type: BbiFormControl }, { type: i0.ChangeDetectorRef }, { type: i2.NgControl, decorators: [{
352
+ return [{ type: i0.ElementRef }, { type: BbiFormControl }, { type: i0.ChangeDetectorRef }, { type: i2$1.NgControl, decorators: [{
351
353
  type: Optional
352
354
  }, {
353
355
  type: Self
@@ -400,9 +402,9 @@ class BbiControlErrorSubmit {
400
402
  this._subscription.add(subscription);
401
403
  }
402
404
  }
403
- BbiControlErrorSubmit.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.1", ngImport: i0, type: BbiControlErrorSubmit, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive });
404
- BbiControlErrorSubmit.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.1.1", type: BbiControlErrorSubmit, selector: "form", exportAs: ["bbiControlErrorSubmit"], ngImport: i0 });
405
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.1", ngImport: i0, type: BbiControlErrorSubmit, decorators: [{
405
+ BbiControlErrorSubmit.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.0", ngImport: i0, type: BbiControlErrorSubmit, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive });
406
+ BbiControlErrorSubmit.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.2.0", type: BbiControlErrorSubmit, selector: "form", exportAs: ["bbiControlErrorSubmit"], ngImport: i0 });
407
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.0", ngImport: i0, type: BbiControlErrorSubmit, decorators: [{
406
408
  type: Directive,
407
409
  args: [{
408
410
  selector: 'form',
@@ -466,9 +468,9 @@ class BbiControlError {
466
468
  : data === null || data === void 0 ? void 0 : data.token;
467
469
  }
468
470
  }
469
- BbiControlError.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.1", ngImport: i0, type: BbiControlError, deps: [{ token: i1$1.Localize, optional: true }, { token: BBI_CONTROL_ERRORS, optional: true }], target: i0.ɵɵFactoryTarget.Component });
470
- BbiControlError.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.1.1", type: BbiControlError, selector: "bbi-control-error", inputs: { errors: "errors" }, host: { properties: { "@errorAnimation": "this.animation" }, classAttribute: "bbi-control-error" }, ngImport: i0, template: "{{ error ?? '...' }}\n", styles: [".bbi-control-error{color:var(--control-error-color, var(--error-color, #bd322a));display:block;margin-top:var(--control-error-spacing, 4px);font-size:var(--control-error-font-size, 13px);font-weight:var(--control-error-font-weight, 400);line-height:var(--control-error-line-height, 1.5)}\n"], animations: [controlErrorAnimation], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
471
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.1", ngImport: i0, type: BbiControlError, decorators: [{
471
+ BbiControlError.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.0", ngImport: i0, type: BbiControlError, deps: [{ token: i1$1.Localize, optional: true }, { token: BBI_CONTROL_ERRORS, optional: true }], target: i0.ɵɵFactoryTarget.Component });
472
+ BbiControlError.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.0", type: BbiControlError, selector: "bbi-control-error", inputs: { errors: "errors" }, host: { properties: { "@errorAnimation": "this.animation" }, classAttribute: "bbi-control-error" }, ngImport: i0, template: "{{ error ?? '...' }}\n", styles: [".bbi-control-error{color:var(--control-error-color, var(--error-color, #bd322a));display:block;margin-top:var(--control-error-spacing, 4px);font-size:var(--control-error-font-size, 13px);font-weight:var(--control-error-font-weight, 400);line-height:var(--control-error-line-height, 1.5)}\n"], animations: [controlErrorAnimation], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
473
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.0", ngImport: i0, type: BbiControlError, decorators: [{
472
474
  type: Component,
473
475
  args: [{ selector: 'bbi-control-error', changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, host: { 'class': 'bbi-control-error' }, preserveWhitespaces: false, animations: [controlErrorAnimation], template: "{{ error ?? '...' }}\n", styles: [".bbi-control-error{color:var(--control-error-color, var(--error-color, #bd322a));display:block;margin-top:var(--control-error-spacing, 4px);font-size:var(--control-error-font-size, 13px);font-weight:var(--control-error-font-weight, 400);line-height:var(--control-error-line-height, 1.5)}\n"] }]
474
476
  }], ctorParameters: function () {
@@ -546,9 +548,9 @@ class BbiFormControl {
546
548
  return false;
547
549
  }
548
550
  }
549
- BbiFormControl.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.1", ngImport: i0, type: BbiFormControl, deps: [{ token: i0.ChangeDetectorRef }, { token: BbiControlErrorSubmit, optional: true }], target: i0.ɵɵFactoryTarget.Component });
550
- BbiFormControl.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.1.1", type: BbiFormControl, selector: "bbi-form-control", inputs: { label: "label", hint: "hint", errorMode: "errorMode", grouped: "grouped" }, host: { properties: { "class.grouped": "grouped", "class.disabled": "formControlInput?.disabled", "class.required": "formControlInput?.required", "class.readonly": "formControlInput?.readonly", "class.focused": "formControlInput?.focused", "class.error": "validationErrors$?.getValue()" }, classAttribute: "bbi-form-control" }, queries: [{ propertyName: "formControlInput", first: true, predicate: BbiFormControlInput, descendants: true }], ngImport: i0, template: "<!-- Label of the form control. -->\n<label *ngIf=\"label as labelContent\"\n [attr.for]=\"labelId\"\n class=\"bbi-form-control-label\">\n {{ labelContent }}\n</label>\n\n<div class=\"bbi-form-control-container\">\n <ng-content select=\"[bbi-form-control-addon=prefix]\"></ng-content>\n <ng-content select=\"input[bbiFormControlInput]\"></ng-content>\n <ng-content select=\"[bbi-form-control-addon=suffix]\"></ng-content>\n</div>\n\n<bbi-control-error *ngIf=\"errors$ | async as errors\"\n [errors]=\"errors\">\n</bbi-control-error>\n\n<div *ngIf=\"hint as hintContent\"\n class=\"bbi-form-control-hint\">\n {{ hintContent }}\n</div>\n", styles: [".bbi-form-control{display:block}.bbi-form-control.grouped{margin-bottom:var(--form-control-grouping, 20px)}.bbi-form-control.disabled{pointer-events:none;opacity:var(--form-control-disabled-opacity, .25)}.bbi-form-control.disabled>.bbi-form-control-container{color:var(--form-control-disabled-color, #111111);background:var(--form-control-disabled-background, white);border-radius:var(--form-control-disabled-border-radius, 6px);border:var(--form-control-disabled-border-width, 1px) var(--form-control-disabled-border-style, solid) var(--form-control-disabled-border-color, #212121)}.bbi-form-control.required:not([data-required-visually-hidden])>.bbi-form-control-label:after{content:\"*\";color:#bd322a;font-size:14px;vertical-align:text-top}.bbi-form-control:not(.readonly).focused>.bbi-form-control-container{color:var(--form-control-focused-color, #111111);box-shadow:var(--form-control-focused-shadow, 0 0 0 3px rgba(0, 123, 255, .2));background:var(--form-control-focused-background, white);border-radius:var(--form-control-focused-border-radius, 6px);border:var(--form-control-focused-border-width, 1px) var(--form-control-focused-border-style, solid) var(--form-control-focused-border-color, #212121)}.bbi-form-control:not(.readonly).error>.bbi-form-control-label{color:var(--form-control-error-color, var(--error-color, #bd322a))}.bbi-form-control:not(.readonly).error>.bbi-form-control-container{color:var(--form-control-error-color, var(--error-color, #bd322a));border-color:var(--form-control-error-color, var(--error-color, #bd322a));background:var(--form-control-error-background, rgba(189, 50, 42, .1))}.bbi-form-control:not(.readonly).error>.bbi-form-control-container>input::placeholder{color:var(--form-control-error-placeholder-color, rgba(189, 50, 42, .4))}.bbi-form-control-label{color:#525252;display:block;font-size:14px;font-weight:400;margin-bottom:4px}.bbi-form-control-container{display:flex;align-items:center;color:var(--form-control-color, #111111);border-radius:var(--form-control-border-radius, 6px);background-color:var(--form-control-background, white);border:var(--form-control-border-width, 1px) var(--form-control-border-style, solid) var(--form-control-border-color, rgba(67, 90, 111, .3))}.bbi-form-control-container>input{width:100%;border:none;height:40px;color:inherit;padding:0 10px;background-color:transparent}.bbi-form-control-container>input::placeholder{color:#d2d2d2}.bbi-form-control-hint{display:block;color:#525252;font-size:13px;margin-top:4px}\n"], dependencies: [{ kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: BbiControlError, selector: "bbi-control-error", inputs: ["errors"] }, { kind: "pipe", type: i1.AsyncPipe, name: "async" }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
551
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.1", ngImport: i0, type: BbiFormControl, decorators: [{
551
+ BbiFormControl.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.0", ngImport: i0, type: BbiFormControl, deps: [{ token: i0.ChangeDetectorRef }, { token: BbiControlErrorSubmit, optional: true }], target: i0.ɵɵFactoryTarget.Component });
552
+ BbiFormControl.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.0", type: BbiFormControl, selector: "bbi-form-control", inputs: { label: "label", hint: "hint", errorMode: "errorMode", grouped: "grouped" }, host: { properties: { "class.grouped": "grouped", "class.disabled": "formControlInput?.disabled", "class.required": "formControlInput?.required", "class.readonly": "formControlInput?.readonly", "class.focused": "formControlInput?.focused", "class.error": "validationErrors$?.getValue()" }, classAttribute: "bbi-form-control" }, queries: [{ propertyName: "formControlInput", first: true, predicate: BbiFormControlInput, descendants: true }], ngImport: i0, template: "<!-- Label of the form control. -->\n<label *ngIf=\"label as labelContent\"\n [attr.for]=\"labelId\"\n class=\"bbi-form-control-label\">\n <ng-template [bbTemplate]=\"labelContent\">{{ labelContent }}</ng-template>\n</label>\n\n<div class=\"bbi-form-control-container\">\n <ng-content select=\"[bbi-form-control-addon=prefix]\"></ng-content>\n <ng-content select=\"input[bbiFormControlInput]\"></ng-content>\n <ng-content select=\"[bbi-form-control-addon=suffix]\"></ng-content>\n</div>\n\n<bbi-control-error *ngIf=\"errors$ | async as errors\"\n [errors]=\"errors\">\n</bbi-control-error>\n\n<div *ngIf=\"hint as hintContent\"\n class=\"bbi-form-control-hint\">\n <ng-template [bbTemplate]=\"hintContent\">{{ hintContent }}</ng-template>\n</div>\n", styles: [".bbi-form-control{display:block}.bbi-form-control.grouped{margin-bottom:var(--form-control-grouping, 20px)}.bbi-form-control.disabled{pointer-events:none;opacity:var(--form-control-disabled-opacity, .25)}.bbi-form-control.disabled>.bbi-form-control-container{color:var(--form-control-disabled-color, #111111);background:var(--form-control-disabled-background, white);border-radius:var(--form-control-disabled-border-radius, 6px);border:var(--form-control-disabled-border-width, 1px) var(--form-control-disabled-border-style, solid) var(--form-control-disabled-border-color, #212121)}.bbi-form-control.required:not([data-required-visually-hidden])>.bbi-form-control-label:after{content:\"*\";color:#bd322a;font-size:14px;vertical-align:text-top}.bbi-form-control:not(.readonly).focused>.bbi-form-control-container{color:var(--form-control-focused-color, #111111);box-shadow:var(--form-control-focused-shadow, 0 0 0 3px rgba(0, 123, 255, .2));background:var(--form-control-focused-background, white);border-radius:var(--form-control-focused-border-radius, 6px);border:var(--form-control-focused-border-width, 1px) var(--form-control-focused-border-style, solid) var(--form-control-focused-border-color, #212121)}.bbi-form-control:not(.readonly).error>.bbi-form-control-label{color:var(--form-control-error-color, var(--error-color, #bd322a))}.bbi-form-control:not(.readonly).error>.bbi-form-control-container{color:var(--form-control-error-color, var(--error-color, #bd322a));border-color:var(--form-control-error-color, var(--error-color, #bd322a));background:var(--form-control-error-background, rgba(189, 50, 42, .1))}.bbi-form-control:not(.readonly).error>.bbi-form-control-container>input::placeholder{color:var(--form-control-error-placeholder-color, rgba(189, 50, 42, .4))}.bbi-form-control-label{color:#525252;display:block;font-size:14px;font-weight:400;margin-bottom:4px}.bbi-form-control-container{display:flex;align-items:center;color:var(--form-control-color, #111111);border-radius:var(--form-control-border-radius, 6px);background-color:var(--form-control-background, white);border:var(--form-control-border-width, 1px) var(--form-control-border-style, solid) var(--form-control-border-color, rgba(67, 90, 111, .3))}.bbi-form-control-container>input{width:100%;border:none;height:40px;color:inherit;padding:0 10px;background-color:transparent}.bbi-form-control-container>input::placeholder{color:#d2d2d2}.bbi-form-control-hint{display:block;color:#525252;font-size:13px;margin-top:4px}\n"], dependencies: [{ kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: BbiControlError, selector: "bbi-control-error", inputs: ["errors"] }, { kind: "directive", type: i2.BbTemplate, selector: "[bbTemplate]", inputs: ["bbTemplate"] }, { kind: "pipe", type: i1.AsyncPipe, name: "async" }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
553
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.0", ngImport: i0, type: BbiFormControl, decorators: [{
552
554
  type: Component,
553
555
  args: [{ selector: 'bbi-form-control', changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, host: {
554
556
  'class': 'bbi-form-control',
@@ -558,7 +560,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.1", ngImpor
558
560
  '[class.readonly]': 'formControlInput?.readonly',
559
561
  '[class.focused]': 'formControlInput?.focused',
560
562
  '[class.error]': 'validationErrors$?.getValue()'
561
- }, preserveWhitespaces: false, template: "<!-- Label of the form control. -->\n<label *ngIf=\"label as labelContent\"\n [attr.for]=\"labelId\"\n class=\"bbi-form-control-label\">\n {{ labelContent }}\n</label>\n\n<div class=\"bbi-form-control-container\">\n <ng-content select=\"[bbi-form-control-addon=prefix]\"></ng-content>\n <ng-content select=\"input[bbiFormControlInput]\"></ng-content>\n <ng-content select=\"[bbi-form-control-addon=suffix]\"></ng-content>\n</div>\n\n<bbi-control-error *ngIf=\"errors$ | async as errors\"\n [errors]=\"errors\">\n</bbi-control-error>\n\n<div *ngIf=\"hint as hintContent\"\n class=\"bbi-form-control-hint\">\n {{ hintContent }}\n</div>\n", styles: [".bbi-form-control{display:block}.bbi-form-control.grouped{margin-bottom:var(--form-control-grouping, 20px)}.bbi-form-control.disabled{pointer-events:none;opacity:var(--form-control-disabled-opacity, .25)}.bbi-form-control.disabled>.bbi-form-control-container{color:var(--form-control-disabled-color, #111111);background:var(--form-control-disabled-background, white);border-radius:var(--form-control-disabled-border-radius, 6px);border:var(--form-control-disabled-border-width, 1px) var(--form-control-disabled-border-style, solid) var(--form-control-disabled-border-color, #212121)}.bbi-form-control.required:not([data-required-visually-hidden])>.bbi-form-control-label:after{content:\"*\";color:#bd322a;font-size:14px;vertical-align:text-top}.bbi-form-control:not(.readonly).focused>.bbi-form-control-container{color:var(--form-control-focused-color, #111111);box-shadow:var(--form-control-focused-shadow, 0 0 0 3px rgba(0, 123, 255, .2));background:var(--form-control-focused-background, white);border-radius:var(--form-control-focused-border-radius, 6px);border:var(--form-control-focused-border-width, 1px) var(--form-control-focused-border-style, solid) var(--form-control-focused-border-color, #212121)}.bbi-form-control:not(.readonly).error>.bbi-form-control-label{color:var(--form-control-error-color, var(--error-color, #bd322a))}.bbi-form-control:not(.readonly).error>.bbi-form-control-container{color:var(--form-control-error-color, var(--error-color, #bd322a));border-color:var(--form-control-error-color, var(--error-color, #bd322a));background:var(--form-control-error-background, rgba(189, 50, 42, .1))}.bbi-form-control:not(.readonly).error>.bbi-form-control-container>input::placeholder{color:var(--form-control-error-placeholder-color, rgba(189, 50, 42, .4))}.bbi-form-control-label{color:#525252;display:block;font-size:14px;font-weight:400;margin-bottom:4px}.bbi-form-control-container{display:flex;align-items:center;color:var(--form-control-color, #111111);border-radius:var(--form-control-border-radius, 6px);background-color:var(--form-control-background, white);border:var(--form-control-border-width, 1px) var(--form-control-border-style, solid) var(--form-control-border-color, rgba(67, 90, 111, .3))}.bbi-form-control-container>input{width:100%;border:none;height:40px;color:inherit;padding:0 10px;background-color:transparent}.bbi-form-control-container>input::placeholder{color:#d2d2d2}.bbi-form-control-hint{display:block;color:#525252;font-size:13px;margin-top:4px}\n"] }]
563
+ }, preserveWhitespaces: false, template: "<!-- Label of the form control. -->\n<label *ngIf=\"label as labelContent\"\n [attr.for]=\"labelId\"\n class=\"bbi-form-control-label\">\n <ng-template [bbTemplate]=\"labelContent\">{{ labelContent }}</ng-template>\n</label>\n\n<div class=\"bbi-form-control-container\">\n <ng-content select=\"[bbi-form-control-addon=prefix]\"></ng-content>\n <ng-content select=\"input[bbiFormControlInput]\"></ng-content>\n <ng-content select=\"[bbi-form-control-addon=suffix]\"></ng-content>\n</div>\n\n<bbi-control-error *ngIf=\"errors$ | async as errors\"\n [errors]=\"errors\">\n</bbi-control-error>\n\n<div *ngIf=\"hint as hintContent\"\n class=\"bbi-form-control-hint\">\n <ng-template [bbTemplate]=\"hintContent\">{{ hintContent }}</ng-template>\n</div>\n", styles: [".bbi-form-control{display:block}.bbi-form-control.grouped{margin-bottom:var(--form-control-grouping, 20px)}.bbi-form-control.disabled{pointer-events:none;opacity:var(--form-control-disabled-opacity, .25)}.bbi-form-control.disabled>.bbi-form-control-container{color:var(--form-control-disabled-color, #111111);background:var(--form-control-disabled-background, white);border-radius:var(--form-control-disabled-border-radius, 6px);border:var(--form-control-disabled-border-width, 1px) var(--form-control-disabled-border-style, solid) var(--form-control-disabled-border-color, #212121)}.bbi-form-control.required:not([data-required-visually-hidden])>.bbi-form-control-label:after{content:\"*\";color:#bd322a;font-size:14px;vertical-align:text-top}.bbi-form-control:not(.readonly).focused>.bbi-form-control-container{color:var(--form-control-focused-color, #111111);box-shadow:var(--form-control-focused-shadow, 0 0 0 3px rgba(0, 123, 255, .2));background:var(--form-control-focused-background, white);border-radius:var(--form-control-focused-border-radius, 6px);border:var(--form-control-focused-border-width, 1px) var(--form-control-focused-border-style, solid) var(--form-control-focused-border-color, #212121)}.bbi-form-control:not(.readonly).error>.bbi-form-control-label{color:var(--form-control-error-color, var(--error-color, #bd322a))}.bbi-form-control:not(.readonly).error>.bbi-form-control-container{color:var(--form-control-error-color, var(--error-color, #bd322a));border-color:var(--form-control-error-color, var(--error-color, #bd322a));background:var(--form-control-error-background, rgba(189, 50, 42, .1))}.bbi-form-control:not(.readonly).error>.bbi-form-control-container>input::placeholder{color:var(--form-control-error-placeholder-color, rgba(189, 50, 42, .4))}.bbi-form-control-label{color:#525252;display:block;font-size:14px;font-weight:400;margin-bottom:4px}.bbi-form-control-container{display:flex;align-items:center;color:var(--form-control-color, #111111);border-radius:var(--form-control-border-radius, 6px);background-color:var(--form-control-background, white);border:var(--form-control-border-width, 1px) var(--form-control-border-style, solid) var(--form-control-border-color, rgba(67, 90, 111, .3))}.bbi-form-control-container>input{width:100%;border:none;height:40px;color:inherit;padding:0 10px;background-color:transparent}.bbi-form-control-container>input::placeholder{color:#d2d2d2}.bbi-form-control-hint{display:block;color:#525252;font-size:13px;margin-top:4px}\n"] }]
562
564
  }], ctorParameters: function () {
563
565
  return [{ type: i0.ChangeDetectorRef }, { type: BbiControlErrorSubmit, decorators: [{
564
566
  type: Optional
@@ -582,9 +584,9 @@ class BbiFormControlAddon {
582
584
  this.type = null;
583
585
  }
584
586
  }
585
- BbiFormControlAddon.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.1", ngImport: i0, type: BbiFormControlAddon, deps: [], target: i0.ɵɵFactoryTarget.Component });
586
- BbiFormControlAddon.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.1.1", type: BbiFormControlAddon, selector: "[bbi-form-control-addon]", inputs: { type: ["bbi-form-control-addon", "type"] }, host: { properties: { "class.prefix": "type === 'prefix'", "class.suffix": "type === 'suffix'" }, classAttribute: "bbi-form-control-addon" }, ngImport: i0, template: "<ng-content></ng-content>\n", styles: [".bbi-form-control-addon{margin:0 10px;color:inherit;display:block}.bbi-form-control-addon.suffix{margin-left:0}.bbi-form-control-addon.prefix{margin-right:0}a.bbi-form-control-addon,button.bbi-form-control-addon{width:32px;height:32px;border:none;display:flex;-webkit-appearance:none;appearance:none;margin-right:4px;border-radius:6px;align-items:center;text-decoration:none;justify-content:center;background-color:transparent}a.bbi-form-control-addon,a.bbi-form-control-addon:visited,button.bbi-form-control-addon,button.bbi-form-control-addon:visited{color:inherit}a.bbi-form-control-addon:hover,button.bbi-form-control-addon:hover{background-color:#1565c014}a.bbi-form-control-addon:focus,button.bbi-form-control-addon:focus{background-color:#1565c01f}a.bbi-form-control-addon:active,button.bbi-form-control-addon:active{background-color:#1565c029}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
587
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.1", ngImport: i0, type: BbiFormControlAddon, decorators: [{
587
+ BbiFormControlAddon.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.0", ngImport: i0, type: BbiFormControlAddon, deps: [], target: i0.ɵɵFactoryTarget.Component });
588
+ BbiFormControlAddon.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.0", type: BbiFormControlAddon, selector: "[bbi-form-control-addon]", inputs: { type: ["bbi-form-control-addon", "type"] }, host: { properties: { "class.prefix": "type === 'prefix'", "class.suffix": "type === 'suffix'" }, classAttribute: "bbi-form-control-addon" }, ngImport: i0, template: "<ng-content></ng-content>\n", styles: [".bbi-form-control-addon{margin:0 10px;color:inherit;display:block}.bbi-form-control-addon.suffix{margin-left:0}.bbi-form-control-addon.prefix{margin-right:0}a.bbi-form-control-addon,button.bbi-form-control-addon{width:32px;height:32px;border:none;display:flex;-webkit-appearance:none;appearance:none;margin-right:4px;border-radius:6px;align-items:center;text-decoration:none;justify-content:center;background-color:transparent}a.bbi-form-control-addon,a.bbi-form-control-addon:visited,button.bbi-form-control-addon,button.bbi-form-control-addon:visited{color:inherit}a.bbi-form-control-addon:hover,button.bbi-form-control-addon:hover{background-color:#1565c014}a.bbi-form-control-addon:focus,button.bbi-form-control-addon:focus{background-color:#1565c01f}a.bbi-form-control-addon:active,button.bbi-form-control-addon:active{background-color:#1565c029}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
589
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.0", ngImport: i0, type: BbiFormControlAddon, decorators: [{
588
590
  type: Component,
589
591
  args: [{ selector: '[bbi-form-control-addon]', changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, host: {
590
592
  'class': 'bbi-form-control-addon',
@@ -598,10 +600,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.1", ngImpor
598
600
 
599
601
  class ControlErrorModule {
600
602
  }
601
- ControlErrorModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.1", ngImport: i0, type: ControlErrorModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
602
- ControlErrorModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.1.1", ngImport: i0, type: ControlErrorModule, declarations: [BbiControlError, BbiControlErrorSubmit], imports: [CommonModule], exports: [BbiControlError, BbiControlErrorSubmit] });
603
- ControlErrorModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.1.1", ngImport: i0, type: ControlErrorModule, imports: [CommonModule] });
604
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.1", ngImport: i0, type: ControlErrorModule, decorators: [{
603
+ ControlErrorModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.0", ngImport: i0, type: ControlErrorModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
604
+ ControlErrorModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.2.0", ngImport: i0, type: ControlErrorModule, declarations: [BbiControlError, BbiControlErrorSubmit], imports: [CommonModule], exports: [BbiControlError, BbiControlErrorSubmit] });
605
+ ControlErrorModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.2.0", ngImport: i0, type: ControlErrorModule, imports: [CommonModule] });
606
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.0", ngImport: i0, type: ControlErrorModule, decorators: [{
605
607
  type: NgModule,
606
608
  args: [{
607
609
  imports: [CommonModule],
@@ -612,17 +614,17 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.1", ngImpor
612
614
 
613
615
  class FormControlModule {
614
616
  }
615
- FormControlModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.1", ngImport: i0, type: FormControlModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
616
- FormControlModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.1.1", ngImport: i0, type: FormControlModule, declarations: [BbiFormControl,
617
+ FormControlModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.0", ngImport: i0, type: FormControlModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
618
+ FormControlModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.2.0", ngImport: i0, type: FormControlModule, declarations: [BbiFormControl,
617
619
  BbiFormControlInput,
618
- BbiFormControlAddon], imports: [CommonModule, ControlErrorModule], exports: [BbiFormControl,
620
+ BbiFormControlAddon], imports: [CommonModule, ControlErrorModule, UtilsModule], exports: [BbiFormControl,
619
621
  BbiFormControlInput,
620
622
  BbiFormControlAddon] });
621
- FormControlModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.1.1", ngImport: i0, type: FormControlModule, imports: [CommonModule, ControlErrorModule] });
622
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.1", ngImport: i0, type: FormControlModule, decorators: [{
623
+ FormControlModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.2.0", ngImport: i0, type: FormControlModule, imports: [CommonModule, ControlErrorModule, UtilsModule] });
624
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.0", ngImport: i0, type: FormControlModule, decorators: [{
623
625
  type: NgModule,
624
626
  args: [{
625
- imports: [CommonModule, ControlErrorModule],
627
+ imports: [CommonModule, ControlErrorModule, UtilsModule],
626
628
  declarations: [
627
629
  BbiFormControl,
628
630
  BbiFormControlInput,
@@ -682,18 +684,18 @@ class ControlsModule {
682
684
  };
683
685
  }
684
686
  }
685
- ControlsModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.1", ngImport: i0, type: ControlsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
686
- ControlsModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.1.1", ngImport: i0, type: ControlsModule, imports: [FormControlModule,
687
+ ControlsModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.0", ngImport: i0, type: ControlsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
688
+ ControlsModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.2.0", ngImport: i0, type: ControlsModule, imports: [FormControlModule,
687
689
  CheckboxModule,
688
690
  ControlErrorModule], exports: [FormControlModule,
689
691
  CheckboxModule,
690
692
  ControlErrorModule] });
691
- ControlsModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.1.1", ngImport: i0, type: ControlsModule, imports: [FormControlModule,
693
+ ControlsModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.2.0", ngImport: i0, type: ControlsModule, imports: [FormControlModule,
692
694
  CheckboxModule,
693
695
  ControlErrorModule, FormControlModule,
694
696
  CheckboxModule,
695
697
  ControlErrorModule] });
696
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.1", ngImport: i0, type: ControlsModule, decorators: [{
698
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.0", ngImport: i0, type: ControlsModule, decorators: [{
697
699
  type: NgModule,
698
700
  args: [{
699
701
  imports: [
@@ -1 +1 @@
1
- {"version":3,"file":"bravobit-bb-foundation-controls.mjs","sources":["../../../projects/bb-foundation/controls/src/lib/checkbox/checkbox-group/checkbox-group.component.ts","../../../projects/bb-foundation/controls/src/lib/checkbox/checkbox-group/checkbox-group.component.html","../../../projects/bb-foundation/controls/src/lib/checkbox/checkbox/checkbox.component.ts","../../../projects/bb-foundation/controls/src/lib/checkbox/checkbox/checkbox.component.html","../../../projects/bb-foundation/controls/src/lib/checkbox/checkbox.module.ts","../../../projects/bb-foundation/controls/src/lib/form-control/form-control-input.directive.ts","../../../projects/bb-foundation/controls/src/lib/control-error/control-error-submit.directive.ts","../../../projects/bb-foundation/controls/src/lib/control-error/control-error.interface.ts","../../../projects/bb-foundation/controls/src/lib/control-error/control-error/control-error.animation.ts","../../../projects/bb-foundation/controls/src/lib/control-error/control-error/control-error.component.ts","../../../projects/bb-foundation/controls/src/lib/control-error/control-error/control-error.component.html","../../../projects/bb-foundation/controls/src/lib/form-control/form-control/form-control.component.ts","../../../projects/bb-foundation/controls/src/lib/form-control/form-control/form-control.component.html","../../../projects/bb-foundation/controls/src/lib/form-control/form-control-addon/form-control-addon.component.ts","../../../projects/bb-foundation/controls/src/lib/form-control/form-control-addon/form-control-addon.component.html","../../../projects/bb-foundation/controls/src/lib/control-error/control-error.module.ts","../../../projects/bb-foundation/controls/src/lib/form-control/form-control.module.ts","../../../projects/bb-foundation/controls/src/lib/control-error/control-error.defaults.ts","../../../projects/bb-foundation/controls/src/lib/controls.module.ts","../../../projects/bb-foundation/controls/src/bravobit-bb-foundation-controls.ts"],"sourcesContent":["import {ChangeDetectionStrategy, ChangeDetectorRef, Component, Input, ViewEncapsulation} from '@angular/core';\nimport {BooleanInput, coerceBooleanProperty} from '@angular/cdk/coercion';\n\n@Component({\n selector: 'bbi-checkbox-group',\n templateUrl: './checkbox-group.component.html',\n styleUrls: ['./checkbox-group.component.scss'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n host: {\n 'class': 'bbi-checkbox-group',\n '[class.grouped]': 'grouped',\n '[class.required]': 'required',\n '[class.inline]': 'inline'\n },\n preserveWhitespaces: false\n})\nexport class BbiCheckboxGroup {\n\n // Inputs.\n @Input() label: string | null = null; // TODO(Stan): Add template possibilities here.\n\n // Grouped.\n @Input()\n get grouped(): boolean { return this._grouped; }\n\n set grouped(value: BooleanInput) {\n const newValue = coerceBooleanProperty(value);\n if (newValue !== this.grouped) {\n this._grouped = newValue;\n this._changeDetectorRef.markForCheck();\n }\n }\n\n private _grouped: boolean = false;\n\n // Required.\n @Input()\n get required(): boolean { return this._required; }\n\n set required(value: BooleanInput) {\n const newValue = coerceBooleanProperty(value);\n if (newValue !== this.required) {\n this._required = newValue;\n this._changeDetectorRef.markForCheck();\n }\n }\n\n private _required: boolean = false;\n\n // Inline.\n @Input()\n get inline(): boolean { return this._inline; }\n\n set inline(value: BooleanInput) {\n const newValue = coerceBooleanProperty(value);\n if (newValue !== this.inline) {\n this._inline = newValue;\n this._changeDetectorRef.markForCheck();\n }\n }\n\n private _inline: boolean = false;\n\n constructor(private _changeDetectorRef: ChangeDetectorRef) {\n }\n\n // Required so that the template type checker can infer the type of the coerced inputs.\n static ngAcceptInputType_grouped: BooleanInput;\n static ngAcceptInputType_required: BooleanInput;\n static ngAcceptInputType_inline: BooleanInput;\n\n}\n","<label *ngIf=\"label as label\"\n class=\"bbi-checkbox-group-label\">\n {{ label }}\n</label>\n\n<div class=\"bbi-checkbox-group-items\">\n <ng-content select=\"bbi-checkbox\"></ng-content>\n</div>\n","import {\n AfterViewInit,\n ChangeDetectionStrategy,\n ChangeDetectorRef,\n Component,\n ElementRef,\n EventEmitter,\n forwardRef,\n Input, Output,\n Renderer2,\n ViewChild,\n ViewEncapsulation\n} from '@angular/core';\nimport {BooleanInput, coerceBooleanProperty} from '@angular/cdk/coercion';\nimport {ControlValueAccessor, NG_VALUE_ACCESSOR} from '@angular/forms';\n\nlet nextUniqueId = 0;\n\n@Component({\n selector: 'bbi-checkbox',\n templateUrl: './checkbox.component.html',\n styleUrls: ['./checkbox.component.scss'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n providers: [\n {provide: NG_VALUE_ACCESSOR, useExisting: forwardRef(() => BbiCheckbox), multi: true}\n ],\n host: {\n 'class': 'bbi-checkbox',\n '[class.grouped]': 'grouped',\n '[class.indeterminate]': 'indeterminate',\n '[class.required]': 'required'\n },\n preserveWhitespaces: false\n})\nexport class BbiCheckbox implements ControlValueAccessor, AfterViewInit {\n\n // Readonly data.\n readonly labelId = `bbi-checkbox-${nextUniqueId++}`;\n\n // Views.\n @ViewChild('input', {static: true}) inputElementRef: ElementRef<HTMLInputElement>;\n\n // Outputs.\n @Output() checkedChange = new EventEmitter<boolean>();\n @Output() indeterminateChange = new EventEmitter<boolean>();\n\n // Checked.\n @Input()\n get checked(): boolean { return this._checked;}\n\n set checked(value: BooleanInput) {\n const newValue = coerceBooleanProperty(value);\n if (newValue !== this.checked) {\n this._checked = newValue;\n this._changeDetectorRef.markForCheck();\n }\n }\n\n private _checked: boolean = false;\n\n // Disabled.\n @Input()\n get disabled(): boolean { return this._disabled; }\n\n set disabled(value: BooleanInput) {\n const newValue = coerceBooleanProperty(value);\n if (newValue !== this.disabled) {\n this._disabled = newValue;\n this._changeDetectorRef.markForCheck();\n }\n }\n\n private _disabled: boolean = false;\n\n // Grouped.\n @Input()\n get grouped(): boolean { return this._grouped; }\n\n set grouped(value: BooleanInput) {\n const newValue = coerceBooleanProperty(value);\n if (newValue !== this.grouped) {\n this._grouped = newValue;\n this._changeDetectorRef.markForCheck();\n }\n }\n\n private _grouped: boolean = false;\n\n // Indeterminate.\n @Input()\n get indeterminate(): boolean { return this._indeterminate; }\n\n set indeterminate(value: BooleanInput) {\n this._indeterminate = coerceBooleanProperty(value);\n this.syncField('indeterminate', this._indeterminate);\n }\n\n private _indeterminate: boolean = false;\n\n // Required.\n @Input()\n get required(): boolean { return this._required; }\n\n set required(value: BooleanInput) {\n const newValue = coerceBooleanProperty(value);\n if (newValue !== this.required) {\n this._required = newValue;\n this._changeDetectorRef.markForCheck();\n }\n }\n\n private _required: boolean = false;\n\n // Hide text.\n @Input()\n get hideText(): boolean { return this._hideText; }\n\n set hideText(value: BooleanInput) {\n const newValue = coerceBooleanProperty(value);\n if (newValue !== this.hideText) {\n this._hideText = newValue;\n this._changeDetectorRef.markForCheck();\n }\n }\n\n private _hideText: boolean = false;\n\n // Methods.\n onChange: (newValue: boolean) => void = () => ({});\n onTouched: () => void = () => ({});\n\n constructor(private _renderer: Renderer2,\n private _changeDetectorRef: ChangeDetectorRef) {\n }\n\n ngAfterViewInit() {\n this.syncField('indeterminate', this._indeterminate);\n }\n\n registerOnChange(fn: (newValue: boolean) => void) {\n this.onChange = fn;\n }\n\n registerOnTouched(fn: () => void) {\n this.onTouched = fn;\n }\n\n setDisabledState(isDisabled: boolean) {\n this.disabled = isDisabled;\n }\n\n writeValue(newValue: boolean) {\n this.checked = !!newValue;\n }\n\n toggle() {\n this.checked = !this.checked;\n }\n\n onClickEvent(event: Event) {\n event.stopPropagation();\n if (this.disabled) {\n return;\n }\n\n // When user manually click on the checkbox, `indeterminate` is set to false.\n if (this.indeterminate) {\n Promise.resolve().then(() => {\n this._indeterminate = false;\n this.indeterminateChange.emit(this._indeterminate);\n });\n }\n\n this.toggle();\n\n // Emit our custom change event if the native input emitted one.\n // It is important to only emit it, if the native input triggered one, because\n // we don't want to trigger a change event, when the `checked` variable changes for example.\n this.emitChangeEvent();\n }\n\n onChangeEvent(event: Event) {\n // We always have to stop propagation on the change event.\n // Otherwise the change event, from the input element, will bubble up and\n // emit its event object to the `change` output.\n event.stopPropagation();\n }\n\n private emitChangeEvent() {\n this.onChange?.(this.checked);\n this.checkedChange.emit(this.checked);\n this.syncField('checked', this.checked);\n }\n\n private syncField(field: string, value: boolean) {\n const element = this.inputElementRef?.nativeElement;\n if (!element) {\n return;\n }\n this._renderer.setProperty(element, field, value);\n }\n\n // Required so that the template type checker can infer the type of the coerced inputs.\n static ngAcceptInputType_checked: BooleanInput;\n static ngAcceptInputType_disabled: BooleanInput;\n static ngAcceptInputType_required: BooleanInput;\n static ngAcceptInputType_grouped: BooleanInput;\n static ngAcceptInputType_indeterminate: BooleanInput;\n static ngAcceptInputType_hideText: BooleanInput;\n\n}\n","<input #input\n [id]=\"labelId\"\n [disabled]=\"disabled\"\n [checked]=\"checked\"\n (change)=\"onChangeEvent($event)\"\n (click)=\"onClickEvent($event)\"\n (blur)=\"onTouched()\"\n class=\"bbi-checkbox-input\"\n type=\"checkbox\">\n<label [attr.for]=\"labelId\"\n class=\"bbi-checkbox-label\">\n <span *ngIf=\"!hideText\"\n class=\"bbi-checkbox-text\"><ng-content></ng-content></span>\n</label>\n","import {BbiCheckboxGroup} from './checkbox-group/checkbox-group.component';\nimport {BbiCheckbox} from './checkbox/checkbox.component';\nimport {CommonModule} from '@angular/common';\nimport {NgModule} from '@angular/core';\n\n@NgModule({\n imports: [CommonModule],\n declarations: [BbiCheckbox, BbiCheckboxGroup],\n exports: [BbiCheckbox, BbiCheckboxGroup]\n})\nexport class CheckboxModule {\n}\n","import {ChangeDetectorRef, Directive, ElementRef, HostBinding, Input, OnDestroy, OnInit, Optional, Self} from '@angular/core';\nimport {delay, distinctUntilChanged, map, pairwise, startWith, switchMap} from 'rxjs/operators';\nimport {BooleanInput, coerceBooleanProperty} from '@angular/cdk/coercion';\nimport {NgControl, ValidationErrors, Validators} from '@angular/forms';\nimport {BbiFormControl} from './form-control/form-control.component';\nimport {fromEvent, merge, of, Subscription} from 'rxjs';\n\n@Directive({\n selector: 'input[bbiFormControlInput]'\n})\nexport class BbiFormControlInput implements OnInit, OnDestroy {\n\n // Readonly data.\n @HostBinding('attr.id') readonly labelId: string = this._formControl?.labelId ?? null;\n\n // State.\n errors: ValidationErrors | null = null;\n focused: boolean = false;\n\n // Subscriptions.\n private _subscription = new Subscription();\n\n constructor(private _elementRef: ElementRef,\n private _formControl: BbiFormControl,\n private _changeDetectorRef: ChangeDetectorRef,\n @Optional() @Self() private _ngControl: NgControl) {\n }\n\n ngOnInit() {\n this.handleControlDisabledStatus();\n this.handleControlErrorStatus();\n this.handleFocusedState();\n }\n\n ngOnDestroy() {\n this._subscription?.unsubscribe();\n }\n\n get control() {\n return this._ngControl ?? null;\n }\n\n get disabled(): boolean { return this._disabled; }\n\n @Input()\n set disabled(value: BooleanInput) {\n const newValue = coerceBooleanProperty(value);\n if (newValue !== this.disabled) {\n this._disabled = newValue;\n this._changeDetectorRef.markForCheck();\n }\n }\n\n private _disabled: boolean = false;\n\n get readonly(): boolean { return this._readonly; }\n\n @Input()\n set readonly(value: BooleanInput) {\n const newValue = coerceBooleanProperty(value);\n if (newValue !== this.readonly) {\n this._readonly = newValue;\n this._changeDetectorRef.markForCheck();\n }\n }\n\n private _readonly: boolean = false;\n\n get required() {\n if (this._ngControl) {\n return this._ngControl?.control?.hasValidator(Validators.required);\n }\n return this._required;\n }\n\n @HostBinding('required')\n @Input()\n set required(value: BooleanInput) {\n const newValue = coerceBooleanProperty(value);\n if (newValue !== this.required) {\n this._required = newValue;\n this._changeDetectorRef.markForCheck();\n }\n }\n\n private _required: boolean = false;\n\n private handleControlErrorStatus() {\n if (!this._ngControl) {\n return;\n }\n\n const errors$ = this._ngControl.statusChanges.pipe(\n startWith(this._ngControl.status),\n map(() => this._ngControl?.errors ?? null)\n );\n\n const subscription = errors$.subscribe(errors => {\n this.errors = errors;\n this._changeDetectorRef.markForCheck();\n });\n this._subscription.add(subscription);\n }\n\n private handleControlDisabledStatus() {\n if (!this._ngControl) {\n return;\n }\n\n const disabled$ = this._ngControl.statusChanges.pipe(\n startWith(this._ngControl.status),\n map(status => status === 'DISABLED'),\n distinctUntilChanged()\n );\n\n const subscription = disabled$.subscribe(disabled => {\n this.disabled = disabled;\n });\n this._subscription.add(subscription);\n }\n\n private handleFocusedState() {\n const focus$ = fromEvent(this._elementRef.nativeElement, 'focus').pipe(\n map(() => true)\n );\n const blur$ = fromEvent(this._elementRef.nativeElement, 'blur').pipe(\n map(() => false)\n );\n\n const focused$ = merge(focus$, blur$).pipe(\n startWith(false),\n pairwise(),\n switchMap(([oldValue, currentValue]) => {\n if (oldValue && !currentValue) {\n return of(currentValue).pipe(delay(100));\n }\n\n return of(currentValue);\n }),\n distinctUntilChanged()\n );\n\n const subscription = focused$.subscribe(focused => this.focused = focused);\n this._subscription.add(subscription);\n }\n\n // Required so that the template type checker can infer the type of the coerced inputs.\n static ngAcceptInputType_disabled: BooleanInput;\n static ngAcceptInputType_required: BooleanInput;\n\n}\n","import {BehaviorSubject, fromEvent, merge, Subscription} from 'rxjs';\nimport {Directive, ElementRef, OnInit} from '@angular/core';\nimport {map} from 'rxjs/operators';\n\n@Directive({\n selector: 'form',\n exportAs: 'bbiControlErrorSubmit'\n})\nexport class BbiControlErrorSubmit implements OnInit {\n\n // State.\n private _submitted$ = new BehaviorSubject(false);\n\n // Subscriptions.\n private _subscription = new Subscription();\n\n constructor(private _elementRef: ElementRef<HTMLFormElement>) {\n }\n\n ngOnInit() {\n this.handleNativeForm();\n }\n\n get submitted() {\n return this._submitted$.getValue();\n }\n\n submit() {\n this._submitted$.next(true);\n }\n\n reset() {\n this._submitted$.next(false);\n }\n\n private handleNativeForm() {\n const element = this._elementRef?.nativeElement;\n if (!element) {\n return;\n }\n\n const formSubmit$ = fromEvent(element, 'submit').pipe(\n map(() => true)\n );\n\n const formReset$ = fromEvent(element, 'reset').pipe(\n map(() => false)\n );\n\n const subscription = merge(formSubmit$, formReset$).subscribe(submitted => {\n this._submitted$.next(submitted);\n });\n this._subscription.add(subscription);\n }\n\n}\n","import {InjectionToken} from '@angular/core';\n\nexport type ControlErrorData = { [key: string]: any };\n\nexport type ControlError = {\n [name: string]: (data: ControlErrorData) => string | { token: string, data: object };\n}\n\nexport const BBI_CONTROL_ERRORS: InjectionToken<ControlError[]> = new InjectionToken('bbi_control_errors');\n\nexport type ControlErrorMode = 'blur' | 'changes' | 'hidden';\n","import {animate, style, transition, trigger} from '@angular/animations';\n\nexport const controlErrorAnimation = trigger('errorAnimation', [\n transition(':enter', [\n style({height: 0, opacity: 0, overflow: 'hidden'}),\n animate('150ms cubic-bezier(0, 0, 0.2, 1)', style({height: '*'})),\n animate('100ms cubic-bezier(0, 0, 0.2, 1)', style({opacity: 1}))\n ]),\n transition(':leave', [\n style({overflow: 'hidden'}),\n animate('100ms cubic-bezier(0, 0, 0.2, 1)', style({opacity: 0})),\n animate('150ms cubic-bezier(0, 0, 0.2, 1)', style({height: 0}))\n ])\n]);\n","import {ChangeDetectionStrategy, Component, HostBinding, Inject, Input, Optional, ViewEncapsulation} from '@angular/core';\nimport {BBI_CONTROL_ERRORS, ControlError} from '../control-error.interface';\nimport {controlErrorAnimation} from './control-error.animation';\nimport {Localize} from '@bravobit/bb-foundation/localize';\nimport {ValidationErrors} from '@angular/forms';\n\n@Component({\n selector: 'bbi-control-error',\n templateUrl: './control-error.component.html',\n styleUrls: ['./control-error.component.scss'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n host: {'class': 'bbi-control-error'},\n preserveWhitespaces: false,\n animations: [controlErrorAnimation]\n})\nexport class BbiControlError {\n\n // Readonly data.\n readonly errorFunctions: ControlError = (this._functions ?? [])\n .reduce((previous, current) => ({...previous, ...current}), {});\n\n // Host bindings.\n @HostBinding('@errorAnimation') animation: boolean = true;\n\n // Inputs.\n @Input()\n set errors(errors: ValidationErrors | null) {\n this.error = this.parseError(errors);\n }\n\n // State.\n error: string | null = null;\n\n constructor(@Optional() private _localize?: Localize,\n @Optional() @Inject(BBI_CONTROL_ERRORS) private _functions?: ControlError[]) {\n }\n\n private parseError(errors: ValidationErrors | null) {\n const errorName = Object.keys(errors ?? {})?.[0] ?? null;\n if (!errorName) {\n return null;\n }\n\n const errorFunction = this.errorFunctions?.[errorName] ?? this.errorFunctions?.['unknown'] ?? null;\n if (!errorFunction) {\n return null;\n }\n\n const errorData = errors?.[errorName] ?? {};\n const result = errorFunction(errorData);\n if (!result) {\n return null;\n }\n\n const resultObject = typeof result === 'string' ? {token: result} : result;\n return this.getErrorSentence(resultObject);\n }\n\n private getErrorSentence(data: { token: string }) {\n return !!this._localize\n ? this._localize.translate(data)\n : data?.token;\n }\n\n}\n","{{ error ?? '...' }}\n","import {ChangeDetectionStrategy, ChangeDetectorRef, Component, ContentChild, DoCheck, Input, Optional, ViewEncapsulation} from '@angular/core';\nimport {BbiControlErrorSubmit} from '../../control-error/control-error-submit.directive';\nimport {ControlErrorMode} from '../../control-error/control-error.interface';\nimport {BooleanInput, coerceBooleanProperty} from '@angular/cdk/coercion';\nimport {BbiFormControlInput} from '../form-control-input.directive';\nimport {debounceTime, distinctUntilChanged} from 'rxjs/operators';\nimport {ValidationErrors} from '@angular/forms';\nimport {BehaviorSubject} from 'rxjs';\n\nlet nextUniqueId = 0;\n\n@Component({\n selector: 'bbi-form-control',\n templateUrl: './form-control.component.html',\n styleUrls: ['./form-control.component.scss'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n host: {\n 'class': 'bbi-form-control',\n '[class.grouped]': 'grouped',\n '[class.disabled]': 'formControlInput?.disabled',\n '[class.required]': 'formControlInput?.required',\n '[class.readonly]': 'formControlInput?.readonly',\n '[class.focused]': 'formControlInput?.focused',\n '[class.error]': 'validationErrors$?.getValue()'\n },\n preserveWhitespaces: false\n})\nexport class BbiFormControl implements DoCheck {\n\n // Readonly data.\n readonly labelId: string = `bbi-form-control-${nextUniqueId++}`;\n\n // Views.\n @ContentChild(BbiFormControlInput, {static: false}) formControlInput?: BbiFormControlInput;\n\n // Inputs.\n @Input() label: string | null = null;\n @Input() hint: string | null = null;\n @Input() errorMode: ControlErrorMode = 'blur';\n\n // State.\n validationErrors$ = new BehaviorSubject<ValidationErrors | null>(null);\n errors$ = this.validationErrors$.pipe(debounceTime(5), distinctUntilChanged());\n\n // Grouped.\n @Input()\n get grouped(): boolean { return this._grouped; }\n\n set grouped(value: BooleanInput) {\n const newValue = coerceBooleanProperty(value);\n if (newValue !== this.grouped) {\n this._grouped = newValue;\n this._changeDetectorRef.markForCheck();\n }\n }\n\n private _grouped: boolean = false;\n\n constructor(private _changeDetectorRef: ChangeDetectorRef,\n @Optional() private _errorSubmit?: BbiControlErrorSubmit) {\n }\n\n ngDoCheck() {\n const hasErrors = this.showErrors();\n const errors = this.formControlInput?.errors ?? null;\n const newValue = hasErrors ? errors : null;\n\n const equal = JSON.stringify(newValue) === JSON.stringify(this.validationErrors$.getValue());\n if (equal) {\n return;\n }\n\n this.validationErrors$.next(newValue);\n }\n\n private showErrors() {\n // When the error mode is none we don't want to show\n if (this.errorMode === 'hidden' || this.formControlInput?.readonly) {\n return false;\n }\n\n // When submitted always show the errors.\n const focused = this.formControlInput?.focused;\n if (this._errorSubmit?.submitted && !focused) {\n return true;\n }\n\n // We want to show changes even when the user is focused.\n if (this.errorMode === 'changes') {\n return this.formControlInput?.control?.dirty ?? false;\n }\n\n // On blur show the error.\n if (this.errorMode === 'blur' && !focused) {\n return this.formControlInput?.control?.touched ?? false;\n }\n\n // Must not show the errors.\n return false;\n }\n\n // Required so that the template type checker can infer the type of the coerced inputs.\n static ngAcceptInputType_label: string | null | undefined;\n static ngAcceptInputType_hint: string | null | undefined;\n static ngAcceptInputType_errorMode: ControlErrorMode;\n static ngAcceptInputType_grouped: BooleanInput;\n\n}\n","<!-- Label of the form control. -->\n<label *ngIf=\"label as labelContent\"\n [attr.for]=\"labelId\"\n class=\"bbi-form-control-label\">\n {{ labelContent }}\n</label>\n\n<div class=\"bbi-form-control-container\">\n <ng-content select=\"[bbi-form-control-addon=prefix]\"></ng-content>\n <ng-content select=\"input[bbiFormControlInput]\"></ng-content>\n <ng-content select=\"[bbi-form-control-addon=suffix]\"></ng-content>\n</div>\n\n<bbi-control-error *ngIf=\"errors$ | async as errors\"\n [errors]=\"errors\">\n</bbi-control-error>\n\n<div *ngIf=\"hint as hintContent\"\n class=\"bbi-form-control-hint\">\n {{ hintContent }}\n</div>\n","import {ChangeDetectionStrategy, Component, Input, ViewEncapsulation} from '@angular/core';\n\n@Component({\n selector: '[bbi-form-control-addon]',\n templateUrl: './form-control-addon.component.html',\n styleUrls: ['./form-control-addon.component.scss'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n host: {\n 'class': 'bbi-form-control-addon',\n '[class.prefix]': 'type === \\'prefix\\'',\n '[class.suffix]': 'type === \\'suffix\\''\n },\n preserveWhitespaces: false\n})\nexport class BbiFormControlAddon {\n\n // Inputs.\n @Input('bbi-form-control-addon') type: 'prefix' | 'suffix' | null = null;\n\n}\n","<ng-content></ng-content>\n","import {BbiControlError} from './control-error/control-error.component';\nimport {BbiControlErrorSubmit} from './control-error-submit.directive';\nimport {CommonModule} from '@angular/common';\nimport {NgModule} from '@angular/core';\n\n@NgModule({\n imports: [CommonModule],\n declarations: [BbiControlError, BbiControlErrorSubmit],\n exports: [BbiControlError, BbiControlErrorSubmit]\n})\nexport class ControlErrorModule {\n}\n","import {BbiFormControlAddon} from './form-control-addon/form-control-addon.component';\nimport {ControlErrorModule} from '../control-error/control-error.module';\nimport {BbiFormControl} from './form-control/form-control.component';\nimport {BbiFormControlInput} from './form-control-input.directive';\nimport {CommonModule} from '@angular/common';\nimport {NgModule} from '@angular/core';\n\n@NgModule({\n imports: [CommonModule, ControlErrorModule],\n declarations: [\n BbiFormControl,\n BbiFormControlInput,\n BbiFormControlAddon\n ],\n exports: [\n BbiFormControl,\n BbiFormControlInput,\n BbiFormControlAddon\n ]\n})\nexport class FormControlModule {\n}\n","import {ControlError} from './control-error.interface';\n\nexport const controlErrorDefaults: ControlError = {\n unknown: () => 'form-control-errors.unknown',\n required: () => 'form-control-errors.required',\n pattern: () => 'form-control-errors.pattern',\n email: () => 'form-control-errors.email',\n emailTaken: () => 'form-control-errors.emailTaken',\n passwordMatch: () => 'form-control-errors.passwordMatch',\n confirm: () => 'form-control-errors.confirm',\n fullNumber: () => 'form-control-errors.fullNumber',\n min: ({min}) => ({token: 'form-control-errors.min', data: {min}}),\n max: ({max}) => ({token: 'form-control-errors.max', data: {max}}),\n maxFileSize: ({maxSize}) => ({token: 'form-control-errors.maxFileSize', data: {maxSize}}),\n minDate: ({date}) => ({token: 'form-control-errors.minDate', data: {date}}),\n maxDate: ({date}) => ({token: 'form-control-errors.maxDate', data: {date}}),\n invalidDate: () => 'form-control-errors.invalidDate',\n invalidFileType: () => 'form-control-errors.invalidFileType',\n minlength: ({requiredLength, actualLength}) => ({\n token: 'form-control-errors.minlength',\n data: {requiredLength, actualLength}\n }),\n maxlength: ({requiredLength, actualLength}) => ({\n token: 'form-control-errors.maxlength',\n data: {requiredLength, actualLength}\n })\n};\n","import {controlErrorDefaults} from './control-error/control-error.defaults';\nimport {BBI_CONTROL_ERRORS} from './control-error/control-error.interface';\nimport {ControlErrorModule} from './control-error/control-error.module';\nimport {FormControlModule} from './form-control/form-control.module';\nimport {ModuleWithProviders, NgModule} from '@angular/core';\nimport {CheckboxModule} from './checkbox/checkbox.module';\nimport {ControlsConfig} from './controls.interfaces';\n\n@NgModule({\n imports: [\n FormControlModule,\n CheckboxModule,\n ControlErrorModule\n ],\n exports: [\n FormControlModule,\n CheckboxModule,\n ControlErrorModule\n ]\n})\nexport class ControlsModule {\n\n static forRoot(config?: ControlsConfig): ModuleWithProviders<ControlsModule> {\n return {\n ngModule: ControlsModule,\n providers: [\n {\n provide: BBI_CONTROL_ERRORS,\n useValue: {...controlErrorDefaults, ...(config?.errors ?? {})},\n multi: true\n },\n {\n provide: null,\n useFactory: () => '',\n multi: true\n }\n ]\n };\n }\n\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":["nextUniqueId","i1.BbiFormControl","i1.BbiControlErrorSubmit","i2","i3.BbiControlError"],"mappings":";;;;;;;;;;;;MAiBa,gBAAgB,CAAA;AA+CzB,IAAA,WAAA,CAAoB,kBAAqC,EAAA;AAArC,QAAA,IAAkB,CAAA,kBAAA,GAAlB,kBAAkB,CAAmB;;AA5ChD,QAAA,IAAA,CAAA,KAAK,GAAkB,IAAI,CAAC;AAc7B,QAAA,IAAQ,CAAA,QAAA,GAAY,KAAK,CAAC;AAc1B,QAAA,IAAS,CAAA,SAAA,GAAY,KAAK,CAAC;AAc3B,QAAA,IAAO,CAAA,OAAA,GAAY,KAAK,CAAC;KAGhC;;IA1CD,IACI,OAAO,KAAc,OAAO,IAAI,CAAC,QAAQ,CAAC,EAAE;IAEhD,IAAI,OAAO,CAAC,KAAmB,EAAA;AAC3B,QAAA,MAAM,QAAQ,GAAG,qBAAqB,CAAC,KAAK,CAAC,CAAC;AAC9C,QAAA,IAAI,QAAQ,KAAK,IAAI,CAAC,OAAO,EAAE;AAC3B,YAAA,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;AACzB,YAAA,IAAI,CAAC,kBA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AAA,cAAc,YAVnB,iBAAiB;QACjB,cAAc;AACd,QAAA,kBAAkB,EAGlB,iBAAiB;QACjB,cAAc;QACd,kBAAkB,CAAA,EAAA,CAAA,CAAA;2FAGb,cAAc,EAAA,UAAA,EAAA,CAAA;kBAZ1B,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACN,oBAAA,OAAO,EAAE;wBACL,iBAAiB;wBACjB,cAAc;wBACd,kBAAkB;AACrB,qBAAA;AACD,oBAAA,OAAO,EAAE;wBACL,iBAAiB;wBACjB,cAAc;wBACd,kBAAkB;AACrB,qBAAA;iBACJ,CAAA;;;ACnBD;;AAEG;;;;"}
1
+ {"version":3,"file":"bravobit-bb-foundation-controls.mjs","sources":["../../../projects/bb-foundation/controls/src/lib/checkbox/checkbox-group/checkbox-group.component.ts","../../../projects/bb-foundation/controls/src/lib/checkbox/checkbox-group/checkbox-group.component.html","../../../projects/bb-foundation/controls/src/lib/checkbox/checkbox/checkbox.component.ts","../../../projects/bb-foundation/controls/src/lib/checkbox/checkbox/checkbox.component.html","../../../projects/bb-foundation/controls/src/lib/checkbox/checkbox.module.ts","../../../projects/bb-foundation/controls/src/lib/form-control/form-control-input.directive.ts","../../../projects/bb-foundation/controls/src/lib/control-error/control-error-submit.directive.ts","../../../projects/bb-foundation/controls/src/lib/control-error/control-error.interface.ts","../../../projects/bb-foundation/controls/src/lib/control-error/control-error/control-error.animation.ts","../../../projects/bb-foundation/controls/src/lib/control-error/control-error/control-error.component.ts","../../../projects/bb-foundation/controls/src/lib/control-error/control-error/control-error.component.html","../../../projects/bb-foundation/controls/src/lib/form-control/form-control/form-control.component.ts","../../../projects/bb-foundation/controls/src/lib/form-control/form-control/form-control.component.html","../../../projects/bb-foundation/controls/src/lib/form-control/form-control-addon/form-control-addon.component.ts","../../../projects/bb-foundation/controls/src/lib/form-control/form-control-addon/form-control-addon.component.html","../../../projects/bb-foundation/controls/src/lib/control-error/control-error.module.ts","../../../projects/bb-foundation/controls/src/lib/form-control/form-control.module.ts","../../../projects/bb-foundation/controls/src/lib/control-error/control-error.defaults.ts","../../../projects/bb-foundation/controls/src/lib/controls.module.ts","../../../projects/bb-foundation/controls/src/bravobit-bb-foundation-controls.ts"],"sourcesContent":["import {ChangeDetectionStrategy, ChangeDetectorRef, Component, Input, TemplateRef, ViewEncapsulation} from '@angular/core';\nimport {BooleanInput, coerceBooleanProperty} from '@angular/cdk/coercion';\n\n@Component({\n selector: 'bbi-checkbox-group',\n templateUrl: './checkbox-group.component.html',\n styleUrls: ['./checkbox-group.component.scss'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n host: {\n 'class': 'bbi-checkbox-group',\n '[class.grouped]': 'grouped',\n '[class.required]': 'required',\n '[class.inline]': 'inline'\n },\n preserveWhitespaces: false\n})\nexport class BbiCheckboxGroup {\n\n // Inputs.\n @Input() label: string| TemplateRef<any> | null = null;\n\n // Grouped.\n @Input()\n get grouped(): boolean { return this._grouped; }\n\n set grouped(value: BooleanInput) {\n const newValue = coerceBooleanProperty(value);\n if (newValue !== this.grouped) {\n this._grouped = newValue;\n this._changeDetectorRef.markForCheck();\n }\n }\n\n private _grouped: boolean = false;\n\n // Required.\n @Input()\n get required(): boolean { return this._required; }\n\n set required(value: BooleanInput) {\n const newValue = coerceBooleanProperty(value);\n if (newValue !== this.required) {\n this._required = newValue;\n this._changeDetectorRef.markForCheck();\n }\n }\n\n private _required: boolean = false;\n\n // Inline.\n @Input()\n get inline(): boolean { return this._inline; }\n\n set inline(value: BooleanInput) {\n const newValue = coerceBooleanProperty(value);\n if (newValue !== this.inline) {\n this._inline = newValue;\n this._changeDetectorRef.markForCheck();\n }\n }\n\n private _inline: boolean = false;\n\n constructor(private _changeDetectorRef: ChangeDetectorRef) {\n }\n\n // Required so that the template type checker can infer the type of the coerced inputs.\n static ngAcceptInputType_label: string | TemplateRef<any> | null | undefined;\n static ngAcceptInputType_grouped: BooleanInput;\n static ngAcceptInputType_required: BooleanInput;\n static ngAcceptInputType_inline: BooleanInput;\n\n}\n","<label *ngIf=\"label as labelContent\"\n class=\"bbi-checkbox-group-label\">\n <ng-template [bbTemplate]=\"labelContent\">{{ labelContent }}</ng-template>\n</label>\n\n<div class=\"bbi-checkbox-group-items\">\n <ng-content select=\"bbi-checkbox\"></ng-content>\n</div>\n","import {\n AfterViewInit,\n ChangeDetectionStrategy,\n ChangeDetectorRef,\n Component,\n ElementRef,\n EventEmitter,\n forwardRef,\n Input, Output,\n Renderer2,\n ViewChild,\n ViewEncapsulation\n} from '@angular/core';\nimport {BooleanInput, coerceBooleanProperty} from '@angular/cdk/coercion';\nimport {ControlValueAccessor, NG_VALUE_ACCESSOR} from '@angular/forms';\n\nlet nextUniqueId = 0;\n\n@Component({\n selector: 'bbi-checkbox',\n templateUrl: './checkbox.component.html',\n styleUrls: ['./checkbox.component.scss'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n providers: [\n {provide: NG_VALUE_ACCESSOR, useExisting: forwardRef(() => BbiCheckbox), multi: true}\n ],\n host: {\n 'class': 'bbi-checkbox',\n '[class.grouped]': 'grouped',\n '[class.indeterminate]': 'indeterminate',\n '[class.required]': 'required'\n },\n preserveWhitespaces: false\n})\nexport class BbiCheckbox implements ControlValueAccessor, AfterViewInit {\n\n // Readonly data.\n readonly labelId = `bbi-checkbox-${nextUniqueId++}`;\n\n // Views.\n @ViewChild('input', {static: true}) inputElementRef: ElementRef<HTMLInputElement>;\n\n // Outputs.\n @Output() checkedChange = new EventEmitter<boolean>();\n @Output() indeterminateChange = new EventEmitter<boolean>();\n\n // Checked.\n @Input()\n get checked(): boolean { return this._checked;}\n\n set checked(value: BooleanInput) {\n const newValue = coerceBooleanProperty(value);\n if (newValue !== this.checked) {\n this._checked = newValue;\n this._changeDetectorRef.markForCheck();\n }\n }\n\n private _checked: boolean = false;\n\n // Disabled.\n @Input()\n get disabled(): boolean { return this._disabled; }\n\n set disabled(value: BooleanInput) {\n const newValue = coerceBooleanProperty(value);\n if (newValue !== this.disabled) {\n this._disabled = newValue;\n this._changeDetectorRef.markForCheck();\n }\n }\n\n private _disabled: boolean = false;\n\n // Grouped.\n @Input()\n get grouped(): boolean { return this._grouped; }\n\n set grouped(value: BooleanInput) {\n const newValue = coerceBooleanProperty(value);\n if (newValue !== this.grouped) {\n this._grouped = newValue;\n this._changeDetectorRef.markForCheck();\n }\n }\n\n private _grouped: boolean = false;\n\n // Indeterminate.\n @Input()\n get indeterminate(): boolean { return this._indeterminate; }\n\n set indeterminate(value: BooleanInput) {\n this._indeterminate = coerceBooleanProperty(value);\n this.syncField('indeterminate', this._indeterminate);\n }\n\n private _indeterminate: boolean = false;\n\n // Required.\n @Input()\n get required(): boolean { return this._required; }\n\n set required(value: BooleanInput) {\n const newValue = coerceBooleanProperty(value);\n if (newValue !== this.required) {\n this._required = newValue;\n this._changeDetectorRef.markForCheck();\n }\n }\n\n private _required: boolean = false;\n\n // Hide text.\n @Input()\n get hideText(): boolean { return this._hideText; }\n\n set hideText(value: BooleanInput) {\n const newValue = coerceBooleanProperty(value);\n if (newValue !== this.hideText) {\n this._hideText = newValue;\n this._changeDetectorRef.markForCheck();\n }\n }\n\n private _hideText: boolean = false;\n\n // Methods.\n onChange: (newValue: boolean) => void = () => ({});\n onTouched: () => void = () => ({});\n\n constructor(private _renderer: Renderer2,\n private _changeDetectorRef: ChangeDetectorRef) {\n }\n\n ngAfterViewInit() {\n this.syncField('indeterminate', this._indeterminate);\n }\n\n registerOnChange(fn: (newValue: boolean) => void) {\n this.onChange = fn;\n }\n\n registerOnTouched(fn: () => void) {\n this.onTouched = fn;\n }\n\n setDisabledState(isDisabled: boolean) {\n this.disabled = isDisabled;\n }\n\n writeValue(newValue: boolean) {\n this.checked = !!newValue;\n }\n\n toggle() {\n this.checked = !this.checked;\n }\n\n onClickEvent(event: Event) {\n event.stopPropagation();\n if (this.disabled) {\n return;\n }\n\n // When user manually click on the checkbox, `indeterminate` is set to false.\n if (this.indeterminate) {\n Promise.resolve().then(() => {\n this._indeterminate = false;\n this.indeterminateChange.emit(this._indeterminate);\n });\n }\n\n this.toggle();\n\n // Emit our custom change event if the native input emitted one.\n // It is important to only emit it, if the native input triggered one, because\n // we don't want to trigger a change event, when the `checked` variable changes for example.\n this.emitChangeEvent();\n }\n\n onChangeEvent(event: Event) {\n // We always have to stop propagation on the change event.\n // Otherwise the change event, from the input element, will bubble up and\n // emit its event object to the `change` output.\n event.stopPropagation();\n }\n\n private emitChangeEvent() {\n this.onChange?.(this.checked);\n this.checkedChange.emit(this.checked);\n this.syncField('checked', this.checked);\n }\n\n private syncField(field: string, value: boolean) {\n const element = this.inputElementRef?.nativeElement;\n if (!element) {\n return;\n }\n this._renderer.setProperty(element, field, value);\n }\n\n // Required so that the template type checker can infer the type of the coerced inputs.\n static ngAcceptInputType_checked: BooleanInput;\n static ngAcceptInputType_disabled: BooleanInput;\n static ngAcceptInputType_required: BooleanInput;\n static ngAcceptInputType_grouped: BooleanInput;\n static ngAcceptInputType_indeterminate: BooleanInput;\n static ngAcceptInputType_hideText: BooleanInput;\n\n}\n","<input #input\n [id]=\"labelId\"\n [disabled]=\"disabled\"\n [checked]=\"checked\"\n (change)=\"onChangeEvent($event)\"\n (click)=\"onClickEvent($event)\"\n (blur)=\"onTouched()\"\n class=\"bbi-checkbox-input\"\n type=\"checkbox\">\n<label [attr.for]=\"labelId\"\n class=\"bbi-checkbox-label\">\n <span *ngIf=\"!hideText\"\n class=\"bbi-checkbox-text\"><ng-content></ng-content></span>\n</label>\n","import {BbiCheckboxGroup} from './checkbox-group/checkbox-group.component';\nimport {UtilsModule} from '@bravobit/bb-foundation/utils';\nimport {BbiCheckbox} from './checkbox/checkbox.component';\nimport {CommonModule} from '@angular/common';\nimport {NgModule} from '@angular/core';\n\n@NgModule({\n imports: [CommonModule, UtilsModule],\n declarations: [BbiCheckbox, BbiCheckboxGroup],\n exports: [BbiCheckbox, BbiCheckboxGroup]\n})\nexport class CheckboxModule {\n}\n","import {ChangeDetectorRef, Directive, ElementRef, HostBinding, Input, OnDestroy, OnInit, Optional, Self} from '@angular/core';\nimport {delay, distinctUntilChanged, map, pairwise, startWith, switchMap} from 'rxjs/operators';\nimport {BooleanInput, coerceBooleanProperty} from '@angular/cdk/coercion';\nimport {NgControl, ValidationErrors, Validators} from '@angular/forms';\nimport {BbiFormControl} from './form-control/form-control.component';\nimport {fromEvent, merge, of, Subscription} from 'rxjs';\n\n@Directive({\n selector: 'input[bbiFormControlInput]'\n})\nexport class BbiFormControlInput implements OnInit, OnDestroy {\n\n // Readonly data.\n @HostBinding('attr.id') readonly labelId: string = this._formControl?.labelId ?? null;\n\n // State.\n errors: ValidationErrors | null = null;\n focused: boolean = false;\n\n // Subscriptions.\n private _subscription = new Subscription();\n\n constructor(private _elementRef: ElementRef,\n private _formControl: BbiFormControl,\n private _changeDetectorRef: ChangeDetectorRef,\n @Optional() @Self() private _ngControl: NgControl) {\n }\n\n ngOnInit() {\n this.handleControlDisabledStatus();\n this.handleControlErrorStatus();\n this.handleFocusedState();\n }\n\n ngOnDestroy() {\n this._subscription?.unsubscribe();\n }\n\n get control() {\n return this._ngControl ?? null;\n }\n\n get disabled(): boolean { return this._disabled; }\n\n @Input()\n set disabled(value: BooleanInput) {\n const newValue = coerceBooleanProperty(value);\n if (newValue !== this.disabled) {\n this._disabled = newValue;\n this._changeDetectorRef.markForCheck();\n }\n }\n\n private _disabled: boolean = false;\n\n get readonly(): boolean { return this._readonly; }\n\n @Input()\n set readonly(value: BooleanInput) {\n const newValue = coerceBooleanProperty(value);\n if (newValue !== this.readonly) {\n this._readonly = newValue;\n this._changeDetectorRef.markForCheck();\n }\n }\n\n private _readonly: boolean = false;\n\n get required() {\n if (this._ngControl) {\n return this._ngControl?.control?.hasValidator(Validators.required);\n }\n return this._required;\n }\n\n @HostBinding('required')\n @Input()\n set required(value: BooleanInput) {\n const newValue = coerceBooleanProperty(value);\n if (newValue !== this.required) {\n this._required = newValue;\n this._changeDetectorRef.markForCheck();\n }\n }\n\n private _required: boolean = false;\n\n private handleControlErrorStatus() {\n if (!this._ngControl) {\n return;\n }\n\n const errors$ = this._ngControl.statusChanges.pipe(\n startWith(this._ngControl.status),\n map(() => this._ngControl?.errors ?? null)\n );\n\n const subscription = errors$.subscribe(errors => {\n this.errors = errors;\n this._changeDetectorRef.markForCheck();\n });\n this._subscription.add(subscription);\n }\n\n private handleControlDisabledStatus() {\n if (!this._ngControl) {\n return;\n }\n\n const disabled$ = this._ngControl.statusChanges.pipe(\n startWith(this._ngControl.status),\n map(status => status === 'DISABLED'),\n distinctUntilChanged()\n );\n\n const subscription = disabled$.subscribe(disabled => {\n this.disabled = disabled;\n });\n this._subscription.add(subscription);\n }\n\n private handleFocusedState() {\n const focus$ = fromEvent(this._elementRef.nativeElement, 'focus').pipe(\n map(() => true)\n );\n const blur$ = fromEvent(this._elementRef.nativeElement, 'blur').pipe(\n map(() => false)\n );\n\n const focused$ = merge(focus$, blur$).pipe(\n startWith(false),\n pairwise(),\n switchMap(([oldValue, currentValue]) => {\n if (oldValue && !currentValue) {\n return of(currentValue).pipe(delay(100));\n }\n\n return of(currentValue);\n }),\n distinctUntilChanged()\n );\n\n const subscription = focused$.subscribe(focused => this.focused = focused);\n this._subscription.add(subscription);\n }\n\n // Required so that the template type checker can infer the type of the coerced inputs.\n static ngAcceptInputType_disabled: BooleanInput;\n static ngAcceptInputType_required: BooleanInput;\n\n}\n","import {BehaviorSubject, fromEvent, merge, Subscription} from 'rxjs';\nimport {Directive, ElementRef, OnInit} from '@angular/core';\nimport {map} from 'rxjs/operators';\n\n@Directive({\n selector: 'form',\n exportAs: 'bbiControlErrorSubmit'\n})\nexport class BbiControlErrorSubmit implements OnInit {\n\n // State.\n private _submitted$ = new BehaviorSubject(false);\n\n // Subscriptions.\n private _subscription = new Subscription();\n\n constructor(private _elementRef: ElementRef<HTMLFormElement>) {\n }\n\n ngOnInit() {\n this.handleNativeForm();\n }\n\n get submitted() {\n return this._submitted$.getValue();\n }\n\n submit() {\n this._submitted$.next(true);\n }\n\n reset() {\n this._submitted$.next(false);\n }\n\n private handleNativeForm() {\n const element = this._elementRef?.nativeElement;\n if (!element) {\n return;\n }\n\n const formSubmit$ = fromEvent(element, 'submit').pipe(\n map(() => true)\n );\n\n const formReset$ = fromEvent(element, 'reset').pipe(\n map(() => false)\n );\n\n const subscription = merge(formSubmit$, formReset$).subscribe(submitted => {\n this._submitted$.next(submitted);\n });\n this._subscription.add(subscription);\n }\n\n}\n","import {InjectionToken} from '@angular/core';\n\nexport type ControlErrorData = { [key: string]: any };\n\nexport type ControlError = {\n [name: string]: (data: ControlErrorData) => string | { token: string, data: object };\n}\n\nexport const BBI_CONTROL_ERRORS: InjectionToken<ControlError[]> = new InjectionToken('bbi_control_errors');\n\nexport type ControlErrorMode = 'blur' | 'changes' | 'hidden';\n","import {animate, style, transition, trigger} from '@angular/animations';\n\nexport const controlErrorAnimation = trigger('errorAnimation', [\n transition(':enter', [\n style({height: 0, opacity: 0, overflow: 'hidden'}),\n animate('150ms cubic-bezier(0, 0, 0.2, 1)', style({height: '*'})),\n animate('100ms cubic-bezier(0, 0, 0.2, 1)', style({opacity: 1}))\n ]),\n transition(':leave', [\n style({overflow: 'hidden'}),\n animate('100ms cubic-bezier(0, 0, 0.2, 1)', style({opacity: 0})),\n animate('150ms cubic-bezier(0, 0, 0.2, 1)', style({height: 0}))\n ])\n]);\n","import {ChangeDetectionStrategy, Component, HostBinding, Inject, Input, Optional, ViewEncapsulation} from '@angular/core';\nimport {BBI_CONTROL_ERRORS, ControlError} from '../control-error.interface';\nimport {controlErrorAnimation} from './control-error.animation';\nimport {Localize} from '@bravobit/bb-foundation/localize';\nimport {ValidationErrors} from '@angular/forms';\n\n@Component({\n selector: 'bbi-control-error',\n templateUrl: './control-error.component.html',\n styleUrls: ['./control-error.component.scss'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n host: {'class': 'bbi-control-error'},\n preserveWhitespaces: false,\n animations: [controlErrorAnimation]\n})\nexport class BbiControlError {\n\n // Readonly data.\n readonly errorFunctions: ControlError = (this._functions ?? [])\n .reduce((previous, current) => ({...previous, ...current}), {});\n\n // Host bindings.\n @HostBinding('@errorAnimation') animation: boolean = true;\n\n // Inputs.\n @Input()\n set errors(errors: ValidationErrors | null) {\n this.error = this.parseError(errors);\n }\n\n // State.\n error: string | null = null;\n\n constructor(@Optional() private _localize?: Localize,\n @Optional() @Inject(BBI_CONTROL_ERRORS) private _functions?: ControlError[]) {\n }\n\n private parseError(errors: ValidationErrors | null) {\n const errorName = Object.keys(errors ?? {})?.[0] ?? null;\n if (!errorName) {\n return null;\n }\n\n const errorFunction = this.errorFunctions?.[errorName] ?? this.errorFunctions?.['unknown'] ?? null;\n if (!errorFunction) {\n return null;\n }\n\n const errorData = errors?.[errorName] ?? {};\n const result = errorFunction(errorData);\n if (!result) {\n return null;\n }\n\n const resultObject = typeof result === 'string' ? {token: result} : result;\n return this.getErrorSentence(resultObject);\n }\n\n private getErrorSentence(data: { token: string }) {\n return !!this._localize\n ? this._localize.translate(data)\n : data?.token;\n }\n\n}\n","{{ error ?? '...' }}\n","import {ChangeDetectionStrategy, ChangeDetectorRef, Component, ContentChild, DoCheck, Input, Optional, TemplateRef, ViewEncapsulation} from '@angular/core';\nimport {BbiControlErrorSubmit} from '../../control-error/control-error-submit.directive';\nimport {ControlErrorMode} from '../../control-error/control-error.interface';\nimport {BooleanInput, coerceBooleanProperty} from '@angular/cdk/coercion';\nimport {BbiFormControlInput} from '../form-control-input.directive';\nimport {debounceTime, distinctUntilChanged} from 'rxjs/operators';\nimport {ValidationErrors} from '@angular/forms';\nimport {BehaviorSubject} from 'rxjs';\n\nlet nextUniqueId = 0;\n\n@Component({\n selector: 'bbi-form-control',\n templateUrl: './form-control.component.html',\n styleUrls: ['./form-control.component.scss'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n host: {\n 'class': 'bbi-form-control',\n '[class.grouped]': 'grouped',\n '[class.disabled]': 'formControlInput?.disabled',\n '[class.required]': 'formControlInput?.required',\n '[class.readonly]': 'formControlInput?.readonly',\n '[class.focused]': 'formControlInput?.focused',\n '[class.error]': 'validationErrors$?.getValue()'\n },\n preserveWhitespaces: false\n})\nexport class BbiFormControl implements DoCheck {\n\n // Readonly data.\n readonly labelId: string = `bbi-form-control-${nextUniqueId++}`;\n\n // Views.\n @ContentChild(BbiFormControlInput, {static: false}) formControlInput?: BbiFormControlInput;\n\n // Inputs.\n @Input() label: string | TemplateRef<any> | null = null;\n @Input() hint: string | TemplateRef<any> | null = null;\n @Input() errorMode: ControlErrorMode = 'blur';\n\n // State.\n validationErrors$ = new BehaviorSubject<ValidationErrors | null>(null);\n errors$ = this.validationErrors$.pipe(debounceTime(5), distinctUntilChanged());\n\n // Grouped.\n @Input()\n get grouped(): boolean { return this._grouped; }\n\n set grouped(value: BooleanInput) {\n const newValue = coerceBooleanProperty(value);\n if (newValue !== this.grouped) {\n this._grouped = newValue;\n this._changeDetectorRef.markForCheck();\n }\n }\n\n private _grouped: boolean = false;\n\n constructor(private _changeDetectorRef: ChangeDetectorRef,\n @Optional() private _errorSubmit?: BbiControlErrorSubmit) {\n }\n\n ngDoCheck() {\n const hasErrors = this.showErrors();\n const errors = this.formControlInput?.errors ?? null;\n const newValue = hasErrors ? errors : null;\n\n const equal = JSON.stringify(newValue) === JSON.stringify(this.validationErrors$.getValue());\n if (equal) {\n return;\n }\n\n this.validationErrors$.next(newValue);\n }\n\n private showErrors() {\n // When the error mode is none we don't want to show\n if (this.errorMode === 'hidden' || this.formControlInput?.readonly) {\n return false;\n }\n\n // When submitted always show the errors.\n const focused = this.formControlInput?.focused;\n if (this._errorSubmit?.submitted && !focused) {\n return true;\n }\n\n // We want to show changes even when the user is focused.\n if (this.errorMode === 'changes') {\n return this.formControlInput?.control?.dirty ?? false;\n }\n\n // On blur show the error.\n if (this.errorMode === 'blur' && !focused) {\n return this.formControlInput?.control?.touched ?? false;\n }\n\n // Must not show the errors.\n return false;\n }\n\n // Required so that the template type checker can infer the type of the coerced inputs.\n static ngAcceptInputType_label: string | TemplateRef<any> | null | undefined;\n static ngAcceptInputType_hint: string | TemplateRef<any> | null | undefined;\n static ngAcceptInputType_errorMode: ControlErrorMode;\n static ngAcceptInputType_grouped: BooleanInput;\n\n}\n","<!-- Label of the form control. -->\n<label *ngIf=\"label as labelContent\"\n [attr.for]=\"labelId\"\n class=\"bbi-form-control-label\">\n <ng-template [bbTemplate]=\"labelContent\">{{ labelContent }}</ng-template>\n</label>\n\n<div class=\"bbi-form-control-container\">\n <ng-content select=\"[bbi-form-control-addon=prefix]\"></ng-content>\n <ng-content select=\"input[bbiFormControlInput]\"></ng-content>\n <ng-content select=\"[bbi-form-control-addon=suffix]\"></ng-content>\n</div>\n\n<bbi-control-error *ngIf=\"errors$ | async as errors\"\n [errors]=\"errors\">\n</bbi-control-error>\n\n<div *ngIf=\"hint as hintContent\"\n class=\"bbi-form-control-hint\">\n <ng-template [bbTemplate]=\"hintContent\">{{ hintContent }}</ng-template>\n</div>\n","import {ChangeDetectionStrategy, Component, Input, ViewEncapsulation} from '@angular/core';\n\n@Component({\n selector: '[bbi-form-control-addon]',\n templateUrl: './form-control-addon.component.html',\n styleUrls: ['./form-control-addon.component.scss'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n host: {\n 'class': 'bbi-form-control-addon',\n '[class.prefix]': 'type === \\'prefix\\'',\n '[class.suffix]': 'type === \\'suffix\\''\n },\n preserveWhitespaces: false\n})\nexport class BbiFormControlAddon {\n\n // Inputs.\n @Input('bbi-form-control-addon') type: 'prefix' | 'suffix' | null = null;\n\n}\n","<ng-content></ng-content>\n","import {BbiControlError} from './control-error/control-error.component';\nimport {BbiControlErrorSubmit} from './control-error-submit.directive';\nimport {CommonModule} from '@angular/common';\nimport {NgModule} from '@angular/core';\n\n@NgModule({\n imports: [CommonModule],\n declarations: [BbiControlError, BbiControlErrorSubmit],\n exports: [BbiControlError, BbiControlErrorSubmit]\n})\nexport class ControlErrorModule {\n}\n","import {BbiFormControlAddon} from './form-control-addon/form-control-addon.component';\nimport {ControlErrorModule} from '../control-error/control-error.module';\nimport {BbiFormControl} from './form-control/form-control.component';\nimport {BbiFormControlInput} from './form-control-input.directive';\nimport {UtilsModule} from '@bravobit/bb-foundation/utils';\nimport {CommonModule} from '@angular/common';\nimport {NgModule} from '@angular/core';\n\n@NgModule({\n imports: [CommonModule, ControlErrorModule, UtilsModule],\n declarations: [\n BbiFormControl,\n BbiFormControlInput,\n BbiFormControlAddon\n ],\n exports: [\n BbiFormControl,\n BbiFormControlInput,\n BbiFormControlAddon\n ]\n})\nexport class FormControlModule {\n}\n","import {ControlError} from './control-error.interface';\n\nexport const controlErrorDefaults: ControlError = {\n unknown: () => 'form-control-errors.unknown',\n required: () => 'form-control-errors.required',\n pattern: () => 'form-control-errors.pattern',\n email: () => 'form-control-errors.email',\n emailTaken: () => 'form-control-errors.emailTaken',\n passwordMatch: () => 'form-control-errors.passwordMatch',\n confirm: () => 'form-control-errors.confirm',\n fullNumber: () => 'form-control-errors.fullNumber',\n min: ({min}) => ({token: 'form-control-errors.min', data: {min}}),\n max: ({max}) => ({token: 'form-control-errors.max', data: {max}}),\n maxFileSize: ({maxSize}) => ({token: 'form-control-errors.maxFileSize', data: {maxSize}}),\n minDate: ({date}) => ({token: 'form-control-errors.minDate', data: {date}}),\n maxDate: ({date}) => ({token: 'form-control-errors.maxDate', data: {date}}),\n invalidDate: () => 'form-control-errors.invalidDate',\n invalidFileType: () => 'form-control-errors.invalidFileType',\n minlength: ({requiredLength, actualLength}) => ({\n token: 'form-control-errors.minlength',\n data: {requiredLength, actualLength}\n }),\n maxlength: ({requiredLength, actualLength}) => ({\n token: 'form-control-errors.maxlength',\n data: {requiredLength, actualLength}\n })\n};\n","import {controlErrorDefaults} from './control-error/control-error.defaults';\nimport {BBI_CONTROL_ERRORS} from './control-error/control-error.interface';\nimport {ControlErrorModule} from './control-error/control-error.module';\nimport {FormControlModule} from './form-control/form-control.module';\nimport {ModuleWithProviders, NgModule} from '@angular/core';\nimport {CheckboxModule} from './checkbox/checkbox.module';\nimport {ControlsConfig} from './controls.interfaces';\n\n@NgModule({\n imports: [\n FormControlModule,\n CheckboxModule,\n ControlErrorModule\n ],\n exports: [\n FormControlModule,\n CheckboxModule,\n ControlErrorModule\n ]\n})\nexport class ControlsModule {\n\n static forRoot(config?: ControlsConfig): ModuleWithProviders<ControlsModule> {\n return {\n ngModule: ControlsModule,\n providers: [\n {\n provide: BBI_CONTROL_ERRORS,\n useValue: {...controlErrorDefaults, ...(config?.errors ?? {})},\n multi: true\n },\n {\n provide: null,\n useFactory: () => '',\n multi: true\n }\n ]\n };\n }\n\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":["nextUniqueId","i1.BbiFormControl","i2","i1.BbiControlErrorSubmit","i3.BbiControlError","i4"],"mappings":";;;;;;;;;;;;;;MAiBa,gBAAgB,CAAA;AA+CzB,IAAA,WAAA,CAAoB,kBAAqC,EAAA;AAArC,QAAA,IAAkB,CAAA,kBAAA,GAAlB,kBAAkB,CAAmB;;AA5ChD,QAAA,IAAK,CAAA,KAAA,GAAoC,IAAI,CAAC;AAc/C,QAAA,IAAQ,CAAA,QAAA,GAAY,KAAK,CAAC;AAc1B,QAAA,IAAS,CAAA,SAAA,GAAY,KAAK,CAAC;AAc3B,QAAA,IAAO,CAAA,OAAA,GAAY,KAAK,CAAC;KAGhC;;IA1CD,IACI,OAAO,KAAc,OAAO,IAAI,CAAC,QAAQ,CAAC,EAAE;IAEhD,IAAI,OAAO,CAAC,KAAmB,EAAA;AAC3B,QAAA,MAAM,QAAQ,GAAG,qBAAqB,CAAC,KAAK,CAAC,CAAC;AAC9C,QAAA,IAAI,QAAQ,KAAK,IAAI,CAAC,OAAO,EAAE;AAC3B,YAAA,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;AACzB,YAAA,I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