@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.
- package/controls/lib/checkbox/checkbox-group/checkbox-group.component.d.ts +3 -2
- package/controls/lib/checkbox/checkbox.module.d.ts +2 -1
- package/controls/lib/form-control/form-control/form-control.component.d.ts +5 -5
- package/controls/lib/form-control/form-control.module.d.ts +2 -1
- package/dialog/lib/dialog-confirm/dialog-confirm.component.d.ts +4 -2
- package/dialog/lib/dialog.interfaces.d.ts +7 -0
- package/dialog/lib/dialog.service.d.ts +5 -9
- package/elements/lib/date-picker/date-picker.component.d.ts +4 -2
- package/elements/lib/elements.module.d.ts +25 -28
- package/elements/lib/pipes/relative-time.pipe.d.ts +4 -4
- package/elements/public_api.d.ts +0 -4
- package/esm2020/auth/lib/auth.interceptor.mjs +3 -3
- package/esm2020/auth/lib/auth.module.mjs +4 -4
- package/esm2020/auth/lib/auth.service.mjs +3 -3
- package/esm2020/auth/lib/directives/authenticated.directive.mjs +3 -3
- package/esm2020/auth/lib/directives/permission.directive.mjs +3 -3
- package/esm2020/auth/lib/guards/anonymous.guard.mjs +3 -3
- package/esm2020/auth/lib/guards/authenticated.guard.mjs +3 -3
- package/esm2020/auth/lib/guards/permission.guard.mjs +3 -3
- package/esm2020/auth/lib/permissions/permissions.service.mjs +3 -3
- package/esm2020/collections/lib/collections.module.mjs +4 -4
- package/esm2020/collections/lib/components/collections-pager/collections-pager.component.mjs +3 -3
- package/esm2020/collections/lib/components/collections-viewer/collections-viewer.component.mjs +5 -5
- package/esm2020/collections/lib/components/collections.directive.mjs +12 -12
- package/esm2020/controls/lib/checkbox/checkbox/checkbox.component.mjs +3 -3
- package/esm2020/controls/lib/checkbox/checkbox-group/checkbox-group.component.mjs +7 -6
- package/esm2020/controls/lib/checkbox/checkbox.module.mjs +7 -6
- package/esm2020/controls/lib/control-error/control-error/control-error.component.mjs +3 -3
- package/esm2020/controls/lib/control-error/control-error-submit.directive.mjs +3 -3
- package/esm2020/controls/lib/control-error/control-error.module.mjs +4 -4
- package/esm2020/controls/lib/controls.module.mjs +4 -4
- package/esm2020/controls/lib/form-control/form-control/form-control.component.mjs +6 -5
- package/esm2020/controls/lib/form-control/form-control-addon/form-control-addon.component.mjs +3 -3
- package/esm2020/controls/lib/form-control/form-control-input.directive.mjs +3 -3
- package/esm2020/controls/lib/form-control/form-control.module.mjs +8 -7
- package/esm2020/dashboard/lib/dashboard/dashboard.component.mjs +3 -3
- package/esm2020/dashboard/lib/dashboard-header/dashboard-header.component.mjs +3 -3
- package/esm2020/dashboard/lib/dashboard-menu/dashboard-menu.component.mjs +3 -3
- package/esm2020/dashboard/lib/dashboard-menu-item/dashboard-menu-item.component.mjs +3 -3
- package/esm2020/dashboard/lib/dashboard-sidebar/dashboard-sidebar.component.mjs +3 -3
- package/esm2020/dashboard/lib/dashboard-sidebar-group/dashboard-sidebar-group.component.mjs +3 -3
- package/esm2020/dashboard/lib/dashboard-sidebar-item/dashboard-sidebar-item.component.mjs +3 -3
- package/esm2020/dashboard/lib/dashboard.module.mjs +4 -4
- package/esm2020/dialog/lib/dialog-actions/dialog-actions.component.mjs +3 -3
- package/esm2020/dialog/lib/dialog-confirm/dialog-confirm.component.mjs +15 -12
- package/esm2020/dialog/lib/dialog-container/dialog-container.component.mjs +5 -5
- package/esm2020/dialog/lib/dialog-header/dialog-header.component.mjs +3 -3
- package/esm2020/dialog/lib/dialog-link/dialog-link.component.mjs +3 -3
- package/esm2020/dialog/lib/dialog-modal/dialog-modal.component.mjs +6 -6
- package/esm2020/dialog/lib/dialog-overlay/dialog-overlay.component.mjs +3 -3
- package/esm2020/dialog/lib/dialog.insertion.mjs +3 -3
- package/esm2020/dialog/lib/dialog.interfaces.mjs +1 -1
- package/esm2020/dialog/lib/dialog.module.mjs +4 -4
- package/esm2020/dialog/lib/dialog.service.mjs +15 -27
- package/esm2020/elements/lib/avatar/avatar.component.mjs +7 -7
- package/esm2020/elements/lib/button/button.component.mjs +6 -6
- package/esm2020/elements/lib/checkbox/checkbox.component.mjs +3 -3
- package/esm2020/elements/lib/date-picker/date-picker.component.mjs +20 -15
- package/esm2020/elements/lib/directives/addon.directive.mjs +6 -6
- package/esm2020/elements/lib/directives/form-submit.directive.mjs +3 -3
- package/esm2020/elements/lib/directives/form-submitter.directive.mjs +3 -3
- package/esm2020/elements/lib/directives/input.directive.mjs +6 -6
- package/esm2020/elements/lib/dropdown/dropdown.component.mjs +6 -6
- package/esm2020/elements/lib/elements.module.mjs +21 -25
- package/esm2020/elements/lib/file-picker/file-picker.component.mjs +4 -4
- package/esm2020/elements/lib/form-control/form-control.component.mjs +4 -4
- package/esm2020/elements/lib/form-error/form-error.component.mjs +3 -3
- package/esm2020/elements/lib/form-group/form-group.component.mjs +3 -3
- package/esm2020/elements/lib/icon/icon.component.mjs +3 -3
- package/esm2020/elements/lib/image-picker/image-picker.component.mjs +3 -3
- package/esm2020/elements/lib/pipes/file-image.pipe.mjs +3 -3
- package/esm2020/elements/lib/pipes/file-size.pipe.mjs +3 -3
- package/esm2020/elements/lib/pipes/relative-time.pipe.mjs +15 -13
- package/esm2020/elements/lib/spinner/spinner.component.mjs +3 -3
- package/esm2020/elements/lib/tag/tag.component.mjs +3 -3
- package/esm2020/elements/public_api.mjs +1 -5
- package/esm2020/http/lib/classes/http.config.mjs +2 -3
- package/esm2020/http/lib/http.module.mjs +4 -4
- package/esm2020/http/lib/interceptors/base-url.interceptor.mjs +6 -6
- package/esm2020/http/lib/interceptors/error.interceptor.mjs +3 -3
- package/esm2020/lib/core/services/clipboard.service.mjs +3 -3
- package/esm2020/lib/core/services/exif.service.mjs +3 -3
- package/esm2020/lib/core/services/file-loader.service.mjs +3 -3
- package/esm2020/lib/core/services/image-converter.service.mjs +3 -3
- package/esm2020/lib/core/services/languages.service.mjs +3 -3
- package/esm2020/lib/core/services/network.service.mjs +3 -3
- package/esm2020/lib/core/services/patch.service.mjs +3 -3
- package/esm2020/localize/lib/localize.dictionary.mjs +2 -4
- package/esm2020/localize/lib/localize.module.mjs +9 -11
- package/esm2020/localize/lib/localize.pipe.mjs +3 -3
- package/esm2020/localize/lib/localize.service.mjs +3 -3
- package/esm2020/localize/lib/views/localize-string/localize-string.component.mjs +6 -6
- package/esm2020/localize/lib/views/localize-template.directive.mjs +3 -3
- package/esm2020/masking/lib/directives/currency-mask.directive.mjs +3 -3
- package/esm2020/masking/lib/directives/date-mask.directive.mjs +3 -3
- package/esm2020/masking/lib/directives/input-mask.directive.mjs +3 -3
- package/esm2020/masking/lib/masking.module.mjs +4 -4
- package/esm2020/masking/lib/masking.service.mjs +3 -3
- package/esm2020/notifications/lib/notifications-item/notifications-item.component.mjs +3 -3
- package/esm2020/notifications/lib/notifications-list/notifications-list.component.mjs +3 -3
- package/esm2020/notifications/lib/notifications.module.mjs +4 -4
- package/esm2020/notifications/lib/notifications.service.mjs +22 -26
- package/esm2020/recaptcha/lib/recaptcha/recaptcha.component.mjs +3 -3
- package/esm2020/recaptcha/lib/recaptcha-loader.service.mjs +3 -3
- package/esm2020/recaptcha/lib/recaptcha.module.mjs +4 -4
- package/esm2020/storage/lib/storage.service.mjs +7 -7
- package/esm2020/table/lib/components/table/table.component.mjs +9 -9
- package/esm2020/table/lib/components/table-cell/table-cell.component.mjs +3 -3
- package/esm2020/table/lib/components/table-header-cell/table-header-cell.component.mjs +3 -3
- package/esm2020/table/lib/components/table-pager/table-pager.component.mjs +3 -3
- package/esm2020/table/lib/table.module.mjs +4 -4
- package/esm2020/theming/lib/theming.directive.mjs +3 -3
- package/esm2020/theming/lib/theming.module.mjs +4 -4
- package/esm2020/utils/bravobit-bb-foundation-utils.mjs +5 -0
- package/esm2020/utils/lib/directives/autosize.directive.mjs +72 -0
- package/esm2020/utils/lib/directives/focus-trap.directive.mjs +77 -0
- package/esm2020/utils/lib/directives/focus.directive.mjs +37 -0
- package/esm2020/utils/lib/directives/template.directive.mjs +28 -0
- package/esm2020/utils/lib/utils.module.mjs +35 -0
- package/esm2020/utils/public_api.mjs +6 -0
- package/fesm2015/bravobit-bb-foundation-auth.mjs +28 -28
- package/fesm2015/bravobit-bb-foundation-collections.mjs +23 -23
- package/fesm2015/bravobit-bb-foundation-collections.mjs.map +1 -1
- package/fesm2015/bravobit-bb-foundation-controls.mjs +47 -45
- package/fesm2015/bravobit-bb-foundation-controls.mjs.map +1 -1
- package/fesm2015/bravobit-bb-foundation-dashboard.mjs +25 -25
- package/fesm2015/bravobit-bb-foundation-dashboard.mjs.map +1 -1
- package/fesm2015/bravobit-bb-foundation-dialog.mjs +56 -83
- package/fesm2015/bravobit-bb-foundation-dialog.mjs.map +1 -1
- package/fesm2015/bravobit-bb-foundation-elements.mjs +126 -324
- package/fesm2015/bravobit-bb-foundation-elements.mjs.map +1 -1
- package/fesm2015/bravobit-bb-foundation-http.mjs +14 -14
- package/fesm2015/bravobit-bb-foundation-http.mjs.map +1 -1
- package/fesm2015/bravobit-bb-foundation-localize.mjs +26 -53
- package/fesm2015/bravobit-bb-foundation-localize.mjs.map +1 -1
- package/fesm2015/bravobit-bb-foundation-masking.mjs +16 -16
- package/fesm2015/bravobit-bb-foundation-notifications.mjs +31 -52
- package/fesm2015/bravobit-bb-foundation-notifications.mjs.map +1 -1
- package/fesm2015/bravobit-bb-foundation-recaptcha.mjs +10 -10
- package/fesm2015/bravobit-bb-foundation-storage.mjs +6 -6
- package/fesm2015/bravobit-bb-foundation-storage.mjs.map +1 -1
- package/fesm2015/bravobit-bb-foundation-table.mjs +22 -22
- package/fesm2015/bravobit-bb-foundation-theming.mjs +7 -7
- package/fesm2015/bravobit-bb-foundation-utils.mjs +246 -0
- package/fesm2015/bravobit-bb-foundation-utils.mjs.map +1 -0
- package/fesm2015/bravobit-bb-foundation.mjs +21 -21
- package/fesm2020/bravobit-bb-foundation-auth.mjs +28 -28
- package/fesm2020/bravobit-bb-foundation-collections.mjs +23 -23
- package/fesm2020/bravobit-bb-foundation-collections.mjs.map +1 -1
- package/fesm2020/bravobit-bb-foundation-controls.mjs +47 -45
- package/fesm2020/bravobit-bb-foundation-controls.mjs.map +1 -1
- package/fesm2020/bravobit-bb-foundation-dashboard.mjs +25 -25
- package/fesm2020/bravobit-bb-foundation-dashboard.mjs.map +1 -1
- package/fesm2020/bravobit-bb-foundation-dialog.mjs +55 -81
- package/fesm2020/bravobit-bb-foundation-dialog.mjs.map +1 -1
- package/fesm2020/bravobit-bb-foundation-elements.mjs +124 -322
- package/fesm2020/bravobit-bb-foundation-elements.mjs.map +1 -1
- package/fesm2020/bravobit-bb-foundation-http.mjs +14 -14
- package/fesm2020/bravobit-bb-foundation-http.mjs.map +1 -1
- package/fesm2020/bravobit-bb-foundation-localize.mjs +26 -53
- package/fesm2020/bravobit-bb-foundation-localize.mjs.map +1 -1
- package/fesm2020/bravobit-bb-foundation-masking.mjs +16 -16
- package/fesm2020/bravobit-bb-foundation-notifications.mjs +31 -52
- package/fesm2020/bravobit-bb-foundation-notifications.mjs.map +1 -1
- package/fesm2020/bravobit-bb-foundation-recaptcha.mjs +10 -10
- package/fesm2020/bravobit-bb-foundation-storage.mjs +6 -6
- package/fesm2020/bravobit-bb-foundation-storage.mjs.map +1 -1
- package/fesm2020/bravobit-bb-foundation-table.mjs +22 -22
- package/fesm2020/bravobit-bb-foundation-theming.mjs +7 -7
- package/fesm2020/bravobit-bb-foundation-utils.mjs +244 -0
- package/fesm2020/bravobit-bb-foundation-utils.mjs.map +1 -0
- package/fesm2020/bravobit-bb-foundation.mjs +21 -21
- package/localize/lib/localize.module.d.ts +3 -3
- package/notifications/lib/notifications.service.d.ts +6 -7
- package/package.json +12 -4
- package/utils/index.d.ts +5 -0
- package/{elements → utils}/lib/directives/autosize.directive.d.ts +0 -0
- package/{elements → utils}/lib/directives/focus-trap.directive.d.ts +0 -0
- package/{elements → utils}/lib/directives/focus.directive.d.ts +0 -0
- package/{elements → utils}/lib/directives/template.directive.d.ts +1 -0
- package/utils/lib/utils.module.d.ts +10 -0
- package/utils/public_api.d.ts +5 -0
- package/dialog/lib/dialog.injector.d.ts +0 -8
- package/esm2020/dialog/lib/dialog.injector.mjs +0 -18
- package/esm2020/elements/lib/directives/autosize.directive.mjs +0 -72
- package/esm2020/elements/lib/directives/focus-trap.directive.mjs +0 -77
- package/esm2020/elements/lib/directives/focus.directive.mjs +0 -37
- package/esm2020/elements/lib/directives/template.directive.mjs +0 -28
- package/esm2020/localize/lib/views/localize-template-or-string.directive.mjs +0 -28
- package/esm2020/notifications/lib/notifications.injector.mjs +0 -18
- package/localize/lib/views/localize-template-or-string.directive.d.ts +0 -10
- 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 '@
|
|
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;
|
|
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.
|
|
51
|
-
BbiCheckboxGroup.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.
|
|
52
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.
|
|
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
|
|
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: [{
|
|
@@ -193,11 +195,11 @@ class BbiCheckbox {
|
|
|
193
195
|
this._renderer.setProperty(element, field, value);
|
|
194
196
|
}
|
|
195
197
|
}
|
|
196
|
-
BbiCheckbox.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.
|
|
197
|
-
BbiCheckbox.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.
|
|
198
|
+
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 });
|
|
199
|
+
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: [
|
|
198
200
|
{ provide: NG_VALUE_ACCESSOR, useExisting: forwardRef(() => BbiCheckbox), multi: true }
|
|
199
201
|
], 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 });
|
|
200
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.
|
|
202
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.0", ngImport: i0, type: BbiCheckbox, decorators: [{
|
|
201
203
|
type: Component,
|
|
202
204
|
args: [{ selector: 'bbi-checkbox', changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, providers: [
|
|
203
205
|
{ provide: NG_VALUE_ACCESSOR, useExisting: forwardRef(() => BbiCheckbox), multi: true }
|
|
@@ -230,13 +232,13 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.1", ngImpor
|
|
|
230
232
|
|
|
231
233
|
class CheckboxModule {
|
|
232
234
|
}
|
|
233
|
-
CheckboxModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.
|
|
234
|
-
CheckboxModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.
|
|
235
|
-
CheckboxModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.
|
|
236
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.
|
|
235
|
+
CheckboxModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.0", ngImport: i0, type: CheckboxModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
236
|
+
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] });
|
|
237
|
+
CheckboxModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.2.0", ngImport: i0, type: CheckboxModule, imports: [CommonModule, UtilsModule] });
|
|
238
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.0", ngImport: i0, type: CheckboxModule, decorators: [{
|
|
237
239
|
type: NgModule,
|
|
238
240
|
args: [{
|
|
239
|
-
imports: [CommonModule],
|
|
241
|
+
imports: [CommonModule, UtilsModule],
|
|
240
242
|
declarations: [BbiCheckbox, BbiCheckboxGroup],
|
|
241
243
|
exports: [BbiCheckbox, BbiCheckboxGroup]
|
|
242
244
|
}]
|
|
@@ -333,14 +335,14 @@ class BbiFormControlInput {
|
|
|
333
335
|
this._subscription.add(subscription);
|
|
334
336
|
}
|
|
335
337
|
}
|
|
336
|
-
BbiFormControlInput.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.
|
|
337
|
-
BbiFormControlInput.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.
|
|
338
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.
|
|
338
|
+
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 });
|
|
339
|
+
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 });
|
|
340
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.0", ngImport: i0, type: BbiFormControlInput, decorators: [{
|
|
339
341
|
type: Directive,
|
|
340
342
|
args: [{
|
|
341
343
|
selector: 'input[bbiFormControlInput]'
|
|
342
344
|
}]
|
|
343
|
-
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: BbiFormControl }, { type: i0.ChangeDetectorRef }, { type: i2.NgControl, decorators: [{
|
|
345
|
+
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: BbiFormControl }, { type: i0.ChangeDetectorRef }, { type: i2$1.NgControl, decorators: [{
|
|
344
346
|
type: Optional
|
|
345
347
|
}, {
|
|
346
348
|
type: Self
|
|
@@ -391,9 +393,9 @@ class BbiControlErrorSubmit {
|
|
|
391
393
|
this._subscription.add(subscription);
|
|
392
394
|
}
|
|
393
395
|
}
|
|
394
|
-
BbiControlErrorSubmit.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.
|
|
395
|
-
BbiControlErrorSubmit.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.
|
|
396
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.
|
|
396
|
+
BbiControlErrorSubmit.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.0", ngImport: i0, type: BbiControlErrorSubmit, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive });
|
|
397
|
+
BbiControlErrorSubmit.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.2.0", type: BbiControlErrorSubmit, selector: "form", exportAs: ["bbiControlErrorSubmit"], ngImport: i0 });
|
|
398
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.0", ngImport: i0, type: BbiControlErrorSubmit, decorators: [{
|
|
397
399
|
type: Directive,
|
|
398
400
|
args: [{
|
|
399
401
|
selector: 'form',
|
|
@@ -455,9 +457,9 @@ class BbiControlError {
|
|
|
455
457
|
: data?.token;
|
|
456
458
|
}
|
|
457
459
|
}
|
|
458
|
-
BbiControlError.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.
|
|
459
|
-
BbiControlError.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.
|
|
460
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.
|
|
460
|
+
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 });
|
|
461
|
+
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 });
|
|
462
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.0", ngImport: i0, type: BbiControlError, decorators: [{
|
|
461
463
|
type: Component,
|
|
462
464
|
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"] }]
|
|
463
465
|
}], ctorParameters: function () { return [{ type: i1$1.Localize, decorators: [{
|
|
@@ -531,9 +533,9 @@ class BbiFormControl {
|
|
|
531
533
|
return false;
|
|
532
534
|
}
|
|
533
535
|
}
|
|
534
|
-
BbiFormControl.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.
|
|
535
|
-
BbiFormControl.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.
|
|
536
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.
|
|
536
|
+
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 });
|
|
537
|
+
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 });
|
|
538
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.0", ngImport: i0, type: BbiFormControl, decorators: [{
|
|
537
539
|
type: Component,
|
|
538
540
|
args: [{ selector: 'bbi-form-control', changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, host: {
|
|
539
541
|
'class': 'bbi-form-control',
|
|
@@ -543,7 +545,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.1", ngImpor
|
|
|
543
545
|
'[class.readonly]': 'formControlInput?.readonly',
|
|
544
546
|
'[class.focused]': 'formControlInput?.focused',
|
|
545
547
|
'[class.error]': 'validationErrors$?.getValue()'
|
|
546
|
-
}, 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 }}
|
|
548
|
+
}, 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"] }]
|
|
547
549
|
}], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: BbiControlErrorSubmit, decorators: [{
|
|
548
550
|
type: Optional
|
|
549
551
|
}] }]; }, propDecorators: { formControlInput: [{
|
|
@@ -565,9 +567,9 @@ class BbiFormControlAddon {
|
|
|
565
567
|
this.type = null;
|
|
566
568
|
}
|
|
567
569
|
}
|
|
568
|
-
BbiFormControlAddon.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.
|
|
569
|
-
BbiFormControlAddon.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.
|
|
570
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.
|
|
570
|
+
BbiFormControlAddon.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.0", ngImport: i0, type: BbiFormControlAddon, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
571
|
+
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 });
|
|
572
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.0", ngImport: i0, type: BbiFormControlAddon, decorators: [{
|
|
571
573
|
type: Component,
|
|
572
574
|
args: [{ selector: '[bbi-form-control-addon]', changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, host: {
|
|
573
575
|
'class': 'bbi-form-control-addon',
|
|
@@ -581,10 +583,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.1", ngImpor
|
|
|
581
583
|
|
|
582
584
|
class ControlErrorModule {
|
|
583
585
|
}
|
|
584
|
-
ControlErrorModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.
|
|
585
|
-
ControlErrorModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.
|
|
586
|
-
ControlErrorModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.
|
|
587
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.
|
|
586
|
+
ControlErrorModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.0", ngImport: i0, type: ControlErrorModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
587
|
+
ControlErrorModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.2.0", ngImport: i0, type: ControlErrorModule, declarations: [BbiControlError, BbiControlErrorSubmit], imports: [CommonModule], exports: [BbiControlError, BbiControlErrorSubmit] });
|
|
588
|
+
ControlErrorModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.2.0", ngImport: i0, type: ControlErrorModule, imports: [CommonModule] });
|
|
589
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.0", ngImport: i0, type: ControlErrorModule, decorators: [{
|
|
588
590
|
type: NgModule,
|
|
589
591
|
args: [{
|
|
590
592
|
imports: [CommonModule],
|
|
@@ -595,17 +597,17 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.1", ngImpor
|
|
|
595
597
|
|
|
596
598
|
class FormControlModule {
|
|
597
599
|
}
|
|
598
|
-
FormControlModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.
|
|
599
|
-
FormControlModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.
|
|
600
|
+
FormControlModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.0", ngImport: i0, type: FormControlModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
601
|
+
FormControlModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.2.0", ngImport: i0, type: FormControlModule, declarations: [BbiFormControl,
|
|
600
602
|
BbiFormControlInput,
|
|
601
|
-
BbiFormControlAddon], imports: [CommonModule, ControlErrorModule], exports: [BbiFormControl,
|
|
603
|
+
BbiFormControlAddon], imports: [CommonModule, ControlErrorModule, UtilsModule], exports: [BbiFormControl,
|
|
602
604
|
BbiFormControlInput,
|
|
603
605
|
BbiFormControlAddon] });
|
|
604
|
-
FormControlModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.
|
|
605
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.
|
|
606
|
+
FormControlModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.2.0", ngImport: i0, type: FormControlModule, imports: [CommonModule, ControlErrorModule, UtilsModule] });
|
|
607
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.0", ngImport: i0, type: FormControlModule, decorators: [{
|
|
606
608
|
type: NgModule,
|
|
607
609
|
args: [{
|
|
608
|
-
imports: [CommonModule, ControlErrorModule],
|
|
610
|
+
imports: [CommonModule, ControlErrorModule, UtilsModule],
|
|
609
611
|
declarations: [
|
|
610
612
|
BbiFormControl,
|
|
611
613
|
BbiFormControlInput,
|
|
@@ -664,18 +666,18 @@ class ControlsModule {
|
|
|
664
666
|
};
|
|
665
667
|
}
|
|
666
668
|
}
|
|
667
|
-
ControlsModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.
|
|
668
|
-
ControlsModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.
|
|
669
|
+
ControlsModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.0", ngImport: i0, type: ControlsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
670
|
+
ControlsModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.2.0", ngImport: i0, type: ControlsModule, imports: [FormControlModule,
|
|
669
671
|
CheckboxModule,
|
|
670
672
|
ControlErrorModule], exports: [FormControlModule,
|
|
671
673
|
CheckboxModule,
|
|
672
674
|
ControlErrorModule] });
|
|
673
|
-
ControlsModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.
|
|
675
|
+
ControlsModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.2.0", ngImport: i0, type: ControlsModule, imports: [FormControlModule,
|
|
674
676
|
CheckboxModule,
|
|
675
677
|
ControlErrorModule, FormControlModule,
|
|
676
678
|
CheckboxModule,
|
|
677
679
|
ControlErrorModule] });
|
|
678
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.
|
|
680
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.0", ngImport: i0, type: ControlsModule, decorators: [{
|
|
679
681
|
type: NgModule,
|
|
680
682
|
args: [{
|
|
681
683
|
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;QAArC,IAAkB,CAAA,kBAAA,GAAlB,kBAAkB,CAAmB;;AA5ChD,QAAA,IAAA,CAAA,KAAK,GAAkB,IAAI,CAAC;QAc7B,IAAQ,CAAA,QAAA,GAAY,KAAK,CAAC;QAc1B,IAAS,CAAA,SAAA,GAAY,KAAK,CAAC;QAc3B,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,kBAAkB,CAAC,YAAY,EAAE,CAAC;AAC1C,SAAA;KACJ;;IAKD,IACI,QAAQ,KAAc,OAAO,IAAI,CAAC,SAAS,CAAC,EAAE;IAElD,IAAI,QAAQ,CAAC,KAAmB,EAAA;AAC5B,QAAA,MAAM,QAAQ,GAAG,qBAAqB,CAAC,KAAK,CAAC,CAAC;AAC9C,QAAA,IAAI,QAAQ,KAAK,IAAI,CAAC,QAAQ,EAAE;AAC5B,YAAA,IAAI,CAAC,SAAS,GAAG,QAAQ,CAAC;AAC1B,YAAA,IAAI,CAAC,kBAAkB,CAAC,YAAY,EAAE,CAAC;AAC1C,SAAA;KACJ;;IA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,EAAA,EAAA,CAAA,eAAA,CAAA,QAAA,EAAA,CAAA,CAAA;AAAd,cAAA,CAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,cAAc,YAVnB,iBAAiB;QACjB,cAAc;AACd,QAAA,kBAAkB,aAGlB,iBAAiB;QACjB,cAAc;QACd,kBAAkB,CAAA,EAAA,CAAA,CAAA;AAGb,cAAA,CAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,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;AACJ,iBAAA,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;QAArC,IAAkB,CAAA,kBAAA,GAAlB,kBAAkB,CAAmB;;QA5ChD,IAAK,CAAA,KAAA,GA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