@brandsync/angular 1.7.0 → 1.8.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  import { __decorate } from 'tslib';
2
2
  import * as i0 from '@angular/core';
3
- import { EventEmitter, Output, ChangeDetectionStrategy, Component } from '@angular/core';
3
+ import { EventEmitter, Output, ChangeDetectionStrategy, Component, HostListener, Directive, forwardRef } from '@angular/core';
4
4
  import { fromEvent } from 'rxjs';
5
5
  import { defineCustomElement as defineCustomElement$1 } from '@brandsync/wc/dist/components/bs-accordion.js';
6
6
  import { defineCustomElement as defineCustomElement$2 } from '@brandsync/wc/dist/components/bs-ai-disclaimer.js';
@@ -56,6 +56,7 @@ import { defineCustomElement as defineCustomElement$P } from '@brandsync/wc/dist
56
56
  import { defineCustomElement as defineCustomElement$Q } from '@brandsync/wc/dist/components/bs-tabs.js';
57
57
  import { defineCustomElement as defineCustomElement$R } from '@brandsync/wc/dist/components/bs-toast.js';
58
58
  import { defineCustomElement as defineCustomElement$S } from '@brandsync/wc/dist/components/bs-tooltip.js';
59
+ import { NG_VALUE_ACCESSOR } from '@angular/forms';
59
60
 
60
61
  /* eslint-disable */
61
62
  /* tslint:disable */
@@ -735,12 +736,12 @@ let BsCheckbox = class BsCheckbox {
735
736
  this.el = r.nativeElement;
736
737
  }
737
738
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: BsCheckbox, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
738
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.25", type: BsCheckbox, isStandalone: true, selector: "bs-checkbox", inputs: { ariaLabel: "ariaLabel", checked: "checked", disabled: "disabled", error: "error", indeterminate: "indeterminate", size: "size" }, outputs: { bsChange: "bsChange" }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
739
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.25", type: BsCheckbox, isStandalone: true, selector: "bs-checkbox", inputs: { ariaLabel: "ariaLabel", checked: "checked", disabled: "disabled", error: "error", indeterminate: "indeterminate", name: "name", required: "required", size: "size", value: "value" }, outputs: { bsChange: "bsChange" }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
739
740
  };
740
741
  BsCheckbox = __decorate([
741
742
  ProxyCmp({
742
743
  defineCustomElementFn: defineCustomElement$l,
743
- inputs: ['ariaLabel', 'checked', 'disabled', 'error', 'indeterminate', 'size']
744
+ inputs: ['ariaLabel', 'checked', 'disabled', 'error', 'indeterminate', 'name', 'required', 'size', 'value']
744
745
  })
745
746
  ], BsCheckbox);
746
747
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: BsCheckbox, decorators: [{
@@ -750,7 +751,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.25", ngImpo
750
751
  changeDetection: ChangeDetectionStrategy.OnPush,
751
752
  template: '<ng-content></ng-content>',
752
753
  // eslint-disable-next-line @angular-eslint/no-inputs-metadata-property
753
- inputs: ['ariaLabel', 'checked', 'disabled', 'error', 'indeterminate', 'size'],
754
+ inputs: ['ariaLabel', 'checked', 'disabled', 'error', 'indeterminate', 'name', 'required', 'size', 'value'],
754
755
  outputs: ['bsChange'],
755
756
  }]
756
757
  }], ctorParameters: () => [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i0.NgZone }], propDecorators: { bsChange: [{
@@ -1126,12 +1127,12 @@ let BsInlineTab = class BsInlineTab {
1126
1127
  this.el = r.nativeElement;
1127
1128
  }
1128
1129
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: BsInlineTab, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
1129
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.25", type: BsInlineTab, isStandalone: true, selector: "bs-inline-tab", inputs: { ariaLabel: "ariaLabel", disabled: "disabled", selected: "selected" }, outputs: { bsSelect: "bsSelect" }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
1130
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.25", type: BsInlineTab, isStandalone: true, selector: "bs-inline-tab", inputs: { ariaLabel: "ariaLabel", disabled: "disabled", selected: "selected", tabbable: "tabbable" }, outputs: { bsSelect: "bsSelect" }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
1130
1131
  };
1131
1132
  BsInlineTab = __decorate([
1132
1133
  ProxyCmp({
1133
1134
  defineCustomElementFn: defineCustomElement$x,
1134
- inputs: ['ariaLabel', 'disabled', 'selected']
1135
+ inputs: ['ariaLabel', 'disabled', 'selected', 'tabbable']
1135
1136
  })
1136
1137
  ], BsInlineTab);
1137
1138
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: BsInlineTab, decorators: [{
@@ -1141,7 +1142,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.25", ngImpo
1141
1142
  changeDetection: ChangeDetectionStrategy.OnPush,
1142
1143
  template: '<ng-content></ng-content>',
1143
1144
  // eslint-disable-next-line @angular-eslint/no-inputs-metadata-property
1144
- inputs: ['ariaLabel', 'disabled', 'selected'],
1145
+ inputs: ['ariaLabel', 'disabled', 'selected', 'tabbable'],
1145
1146
  outputs: ['bsSelect'],
1146
1147
  }]
1147
1148
  }], ctorParameters: () => [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i0.NgZone }], propDecorators: { bsSelect: [{
@@ -1163,12 +1164,12 @@ let BsInput = class BsInput {
1163
1164
  this.el = r.nativeElement;
1164
1165
  }
1165
1166
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: BsInput, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
1166
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.25", type: BsInput, isStandalone: true, selector: "bs-input", inputs: { chips: "chips", country: "country", countryOptions: "countryOptions", description: "description", disabled: "disabled", error: "error", initialsTitle: "initialsTitle", label: "label", length: "length", max: "max", min: "min", open: "open", options: "options", placeholder: "placeholder", required: "required", rows: "rows", step: "step", titleOptions: "titleOptions", type: "type", value: "value" }, outputs: { bsInput: "bsInput", bsChange: "bsChange", bsOpen: "bsOpen", bsChipAdd: "bsChipAdd", bsChipRemove: "bsChipRemove", bsTitleChange: "bsTitleChange", bsCountryChange: "bsCountryChange" }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
1167
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.25", type: BsInput, isStandalone: true, selector: "bs-input", inputs: { chips: "chips", country: "country", countryOptions: "countryOptions", description: "description", disabled: "disabled", error: "error", initialsTitle: "initialsTitle", label: "label", length: "length", max: "max", min: "min", name: "name", open: "open", options: "options", placeholder: "placeholder", required: "required", rows: "rows", step: "step", titleOptions: "titleOptions", type: "type", value: "value" }, outputs: { bsInput: "bsInput", bsChange: "bsChange", bsOpen: "bsOpen", bsChipAdd: "bsChipAdd", bsChipRemove: "bsChipRemove", bsTitleChange: "bsTitleChange", bsCountryChange: "bsCountryChange" }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
1167
1168
  };
1168
1169
  BsInput = __decorate([
1169
1170
  ProxyCmp({
1170
1171
  defineCustomElementFn: defineCustomElement$y,
1171
- inputs: ['chips', 'country', 'countryOptions', 'description', 'disabled', 'error', 'initialsTitle', 'label', 'length', 'max', 'min', 'open', 'options', 'placeholder', 'required', 'rows', 'step', 'titleOptions', 'type', 'value']
1172
+ inputs: ['chips', 'country', 'countryOptions', 'description', 'disabled', 'error', 'initialsTitle', 'label', 'length', 'max', 'min', 'name', 'open', 'options', 'placeholder', 'required', 'rows', 'step', 'titleOptions', 'type', 'value']
1172
1173
  })
1173
1174
  ], BsInput);
1174
1175
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: BsInput, decorators: [{
@@ -1178,7 +1179,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.25", ngImpo
1178
1179
  changeDetection: ChangeDetectionStrategy.OnPush,
1179
1180
  template: '<ng-content></ng-content>',
1180
1181
  // eslint-disable-next-line @angular-eslint/no-inputs-metadata-property
1181
- inputs: ['chips', 'country', 'countryOptions', 'description', 'disabled', 'error', 'initialsTitle', 'label', 'length', 'max', 'min', 'open', 'options', 'placeholder', 'required', 'rows', 'step', 'titleOptions', 'type', 'value'],
1182
+ inputs: ['chips', 'country', 'countryOptions', 'description', 'disabled', 'error', 'initialsTitle', 'label', 'length', 'max', 'min', 'name', 'open', 'options', 'placeholder', 'required', 'rows', 'step', 'titleOptions', 'type', 'value'],
1182
1183
  outputs: ['bsInput', 'bsChange', 'bsOpen', 'bsChipAdd', 'bsChipRemove', 'bsTitleChange', 'bsCountryChange'],
1183
1184
  }]
1184
1185
  }], ctorParameters: () => [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i0.NgZone }], propDecorators: { bsInput: [{
@@ -1415,12 +1416,12 @@ let BsProgress = class BsProgress {
1415
1416
  this.el = r.nativeElement;
1416
1417
  }
1417
1418
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: BsProgress, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
1418
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.25", type: BsProgress, isStandalone: true, selector: "bs-progress", inputs: { showLabel: "showLabel", size: "size", strokeWidth: "strokeWidth", type: "type", value: "value" }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
1419
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.25", type: BsProgress, isStandalone: true, selector: "bs-progress", inputs: { ariaLabel: "ariaLabel", showLabel: "showLabel", size: "size", strokeWidth: "strokeWidth", type: "type", value: "value" }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
1419
1420
  };
1420
1421
  BsProgress = __decorate([
1421
1422
  ProxyCmp({
1422
1423
  defineCustomElementFn: defineCustomElement$G,
1423
- inputs: ['showLabel', 'size', 'strokeWidth', 'type', 'value']
1424
+ inputs: ['ariaLabel', 'showLabel', 'size', 'strokeWidth', 'type', 'value']
1424
1425
  })
1425
1426
  ], BsProgress);
1426
1427
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: BsProgress, decorators: [{
@@ -1430,7 +1431,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.25", ngImpo
1430
1431
  changeDetection: ChangeDetectionStrategy.OnPush,
1431
1432
  template: '<ng-content></ng-content>',
1432
1433
  // eslint-disable-next-line @angular-eslint/no-inputs-metadata-property
1433
- inputs: ['showLabel', 'size', 'strokeWidth', 'type', 'value'],
1434
+ inputs: ['ariaLabel', 'showLabel', 'size', 'strokeWidth', 'type', 'value'],
1434
1435
  }]
1435
1436
  }], ctorParameters: () => [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i0.NgZone }] });
1436
1437
  let BsProgressLinear = class BsProgressLinear {
@@ -1502,12 +1503,12 @@ let BsSlider = class BsSlider {
1502
1503
  this.el = r.nativeElement;
1503
1504
  }
1504
1505
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: BsSlider, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
1505
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.25", type: BsSlider, isStandalone: true, selector: "bs-slider", inputs: { ariaLabel: "ariaLabel", disabled: "disabled", label: "label", max: "max", min: "min", segments: "segments", showLabel: "showLabel", step: "step", type: "type", value: "value", valueEnd: "valueEnd", valueStart: "valueStart" }, outputs: { bsChange: "bsChange", bsRangeChange: "bsRangeChange" }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
1506
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.25", type: BsSlider, isStandalone: true, selector: "bs-slider", inputs: { ariaLabel: "ariaLabel", disabled: "disabled", label: "label", max: "max", min: "min", name: "name", segments: "segments", showLabel: "showLabel", step: "step", type: "type", value: "value", valueEnd: "valueEnd", valueStart: "valueStart" }, outputs: { bsChange: "bsChange", bsRangeChange: "bsRangeChange" }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
1506
1507
  };
1507
1508
  BsSlider = __decorate([
1508
1509
  ProxyCmp({
1509
1510
  defineCustomElementFn: defineCustomElement$J,
1510
- inputs: ['ariaLabel', 'disabled', 'label', 'max', 'min', 'segments', 'showLabel', 'step', 'type', 'value', 'valueEnd', 'valueStart']
1511
+ inputs: ['ariaLabel', 'disabled', 'label', 'max', 'min', 'name', 'segments', 'showLabel', 'step', 'type', 'value', 'valueEnd', 'valueStart']
1511
1512
  })
1512
1513
  ], BsSlider);
1513
1514
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: BsSlider, decorators: [{
@@ -1517,7 +1518,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.25", ngImpo
1517
1518
  changeDetection: ChangeDetectionStrategy.OnPush,
1518
1519
  template: '<ng-content></ng-content>',
1519
1520
  // eslint-disable-next-line @angular-eslint/no-inputs-metadata-property
1520
- inputs: ['ariaLabel', 'disabled', 'label', 'max', 'min', 'segments', 'showLabel', 'step', 'type', 'value', 'valueEnd', 'valueStart'],
1521
+ inputs: ['ariaLabel', 'disabled', 'label', 'max', 'min', 'name', 'segments', 'showLabel', 'step', 'type', 'value', 'valueEnd', 'valueStart'],
1521
1522
  outputs: ['bsChange', 'bsRangeChange'],
1522
1523
  }]
1523
1524
  }], ctorParameters: () => [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i0.NgZone }], propDecorators: { bsChange: [{
@@ -1654,12 +1655,12 @@ let BsSwitch = class BsSwitch {
1654
1655
  this.el = r.nativeElement;
1655
1656
  }
1656
1657
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: BsSwitch, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
1657
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.25", type: BsSwitch, isStandalone: true, selector: "bs-switch", inputs: { ariaLabel: "ariaLabel", checked: "checked", disabled: "disabled", size: "size" }, outputs: { bsChange: "bsChange" }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
1658
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.25", type: BsSwitch, isStandalone: true, selector: "bs-switch", inputs: { ariaLabel: "ariaLabel", checked: "checked", disabled: "disabled", name: "name", size: "size", value: "value" }, outputs: { bsChange: "bsChange" }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
1658
1659
  };
1659
1660
  BsSwitch = __decorate([
1660
1661
  ProxyCmp({
1661
1662
  defineCustomElementFn: defineCustomElement$O,
1662
- inputs: ['ariaLabel', 'checked', 'disabled', 'size']
1663
+ inputs: ['ariaLabel', 'checked', 'disabled', 'name', 'size', 'value']
1663
1664
  })
1664
1665
  ], BsSwitch);
1665
1666
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: BsSwitch, decorators: [{
@@ -1669,7 +1670,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.25", ngImpo
1669
1670
  changeDetection: ChangeDetectionStrategy.OnPush,
1670
1671
  template: '<ng-content></ng-content>',
1671
1672
  // eslint-disable-next-line @angular-eslint/no-inputs-metadata-property
1672
- inputs: ['ariaLabel', 'checked', 'disabled', 'size'],
1673
+ inputs: ['ariaLabel', 'checked', 'disabled', 'name', 'size', 'value'],
1673
1674
  outputs: ['bsChange'],
1674
1675
  }]
1675
1676
  }], ctorParameters: () => [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i0.NgZone }], propDecorators: { bsChange: [{
@@ -1685,12 +1686,12 @@ let BsTab = class BsTab {
1685
1686
  this.el = r.nativeElement;
1686
1687
  }
1687
1688
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: BsTab, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
1688
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.25", type: BsTab, isStandalone: true, selector: "bs-tab", inputs: { ariaLabel: "ariaLabel", disabled: "disabled", iconPosition: "iconPosition", selected: "selected" }, outputs: { bsSelect: "bsSelect" }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
1689
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.25", type: BsTab, isStandalone: true, selector: "bs-tab", inputs: { ariaLabel: "ariaLabel", disabled: "disabled", iconPosition: "iconPosition", selected: "selected", tabbable: "tabbable" }, outputs: { bsSelect: "bsSelect" }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
1689
1690
  };
1690
1691
  BsTab = __decorate([
1691
1692
  ProxyCmp({
1692
1693
  defineCustomElementFn: defineCustomElement$P,
1693
- inputs: ['ariaLabel', 'disabled', 'iconPosition', 'selected']
1694
+ inputs: ['ariaLabel', 'disabled', 'iconPosition', 'selected', 'tabbable']
1694
1695
  })
1695
1696
  ], BsTab);
1696
1697
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: BsTab, decorators: [{
@@ -1700,7 +1701,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.25", ngImpo
1700
1701
  changeDetection: ChangeDetectionStrategy.OnPush,
1701
1702
  template: '<ng-content></ng-content>',
1702
1703
  // eslint-disable-next-line @angular-eslint/no-inputs-metadata-property
1703
- inputs: ['ariaLabel', 'disabled', 'iconPosition', 'selected'],
1704
+ inputs: ['ariaLabel', 'disabled', 'iconPosition', 'selected', 'tabbable'],
1704
1705
  outputs: ['bsSelect'],
1705
1706
  }]
1706
1707
  }], ctorParameters: () => [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i0.NgZone }], propDecorators: { bsSelect: [{
@@ -1849,6 +1850,147 @@ const DIRECTIVES = [
1849
1850
  BsTooltip
1850
1851
  ];
1851
1852
 
1853
+ class ValueAccessor {
1854
+ el;
1855
+ onChange = () => { };
1856
+ onTouched = () => { };
1857
+ lastValue;
1858
+ constructor(el) {
1859
+ this.el = el;
1860
+ }
1861
+ writeValue(value) {
1862
+ this.el.nativeElement.value = this.lastValue = value == null ? '' : value;
1863
+ }
1864
+ handleChangeEvent(value) {
1865
+ if (value !== this.lastValue) {
1866
+ this.lastValue = value;
1867
+ this.onChange(value);
1868
+ }
1869
+ }
1870
+ _handleBlurEvent() {
1871
+ this.onTouched();
1872
+ }
1873
+ registerOnChange(fn) {
1874
+ this.onChange = fn;
1875
+ }
1876
+ registerOnTouched(fn) {
1877
+ this.onTouched = fn;
1878
+ }
1879
+ setDisabledState(isDisabled) {
1880
+ this.el.nativeElement.disabled = isDisabled;
1881
+ }
1882
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: ValueAccessor, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive });
1883
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.25", type: ValueAccessor, isStandalone: true, host: { listeners: { "focusout": "_handleBlurEvent()" } }, ngImport: i0 });
1884
+ }
1885
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: ValueAccessor, decorators: [{
1886
+ type: Directive,
1887
+ args: [{}]
1888
+ }], ctorParameters: () => [{ type: i0.ElementRef }], propDecorators: { _handleBlurEvent: [{
1889
+ type: HostListener,
1890
+ args: ['focusout']
1891
+ }] } });
1892
+
1893
+ class TextValueAccessor extends ValueAccessor {
1894
+ constructor(el) {
1895
+ super(el);
1896
+ }
1897
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: TextValueAccessor, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive });
1898
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.25", type: TextValueAccessor, isStandalone: true, selector: "bs-input", host: { listeners: { "bsChange": "handleChangeEvent($event.target?.[\"value\"])" } }, providers: [
1899
+ {
1900
+ provide: NG_VALUE_ACCESSOR,
1901
+ useExisting: forwardRef(() => TextValueAccessor),
1902
+ multi: true
1903
+ }
1904
+ ], usesInheritance: true, ngImport: i0 });
1905
+ }
1906
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: TextValueAccessor, decorators: [{
1907
+ type: Directive,
1908
+ args: [{
1909
+ /* tslint:disable-next-line:directive-selector */
1910
+ selector: 'bs-input',
1911
+ host: {
1912
+ '(bsChange)': 'handleChangeEvent($event.target?.["value"])'
1913
+ },
1914
+ providers: [
1915
+ {
1916
+ provide: NG_VALUE_ACCESSOR,
1917
+ useExisting: forwardRef(() => TextValueAccessor),
1918
+ multi: true
1919
+ }
1920
+ ]
1921
+ }]
1922
+ }], ctorParameters: () => [{ type: i0.ElementRef }] });
1923
+
1924
+ class BooleanValueAccessor extends ValueAccessor {
1925
+ constructor(el) {
1926
+ super(el);
1927
+ }
1928
+ writeValue(value) {
1929
+ this.el.nativeElement.checked = this.lastValue = value == null ? false : value;
1930
+ }
1931
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: BooleanValueAccessor, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive });
1932
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.25", type: BooleanValueAccessor, isStandalone: true, selector: "bs-checkbox, bs-switch", host: { listeners: { "bsChange": "handleChangeEvent($event.target?.[\"checked\"])" } }, providers: [
1933
+ {
1934
+ provide: NG_VALUE_ACCESSOR,
1935
+ useExisting: forwardRef(() => BooleanValueAccessor),
1936
+ multi: true
1937
+ }
1938
+ ], usesInheritance: true, ngImport: i0 });
1939
+ }
1940
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: BooleanValueAccessor, decorators: [{
1941
+ type: Directive,
1942
+ args: [{
1943
+ /* tslint:disable-next-line:directive-selector */
1944
+ selector: 'bs-checkbox, bs-switch',
1945
+ host: {
1946
+ '(bsChange)': 'handleChangeEvent($event.target?.["checked"])'
1947
+ },
1948
+ providers: [
1949
+ {
1950
+ provide: NG_VALUE_ACCESSOR,
1951
+ useExisting: forwardRef(() => BooleanValueAccessor),
1952
+ multi: true
1953
+ }
1954
+ ]
1955
+ }]
1956
+ }], ctorParameters: () => [{ type: i0.ElementRef }] });
1957
+
1958
+ class NumericValueAccessor extends ValueAccessor {
1959
+ constructor(el) {
1960
+ super(el);
1961
+ }
1962
+ registerOnChange(fn) {
1963
+ super.registerOnChange(value => {
1964
+ fn(value === '' ? null : parseFloat(value));
1965
+ });
1966
+ }
1967
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: NumericValueAccessor, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive });
1968
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.25", type: NumericValueAccessor, isStandalone: true, selector: "bs-slider", host: { listeners: { "bsChange": "handleChangeEvent($event.target?.[\"value\"])" } }, providers: [
1969
+ {
1970
+ provide: NG_VALUE_ACCESSOR,
1971
+ useExisting: forwardRef(() => NumericValueAccessor),
1972
+ multi: true
1973
+ }
1974
+ ], usesInheritance: true, ngImport: i0 });
1975
+ }
1976
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: NumericValueAccessor, decorators: [{
1977
+ type: Directive,
1978
+ args: [{
1979
+ /* tslint:disable-next-line:directive-selector */
1980
+ selector: 'bs-slider',
1981
+ host: {
1982
+ '(bsChange)': 'handleChangeEvent($event.target?.["value"])'
1983
+ },
1984
+ providers: [
1985
+ {
1986
+ provide: NG_VALUE_ACCESSOR,
1987
+ useExisting: forwardRef(() => NumericValueAccessor),
1988
+ multi: true
1989
+ }
1990
+ ]
1991
+ }]
1992
+ }], ctorParameters: () => [{ type: i0.ElementRef }] });
1993
+
1852
1994
  /*
1853
1995
  * Public API surface of @brandsync/angular
1854
1996
  */
@@ -1857,5 +1999,5 @@ const DIRECTIVES = [
1857
1999
  * Generated bundle index. Do not edit.
1858
2000
  */
1859
2001
 
1860
- export { BsAccordion, BsAiDisclaimer, BsAiGreeting, BsAiThinking, BsAttachment, BsAttachmentList, BsAvatar, BsBadge, BsBreadcrumb, BsBreadcrumbOverflow, BsBreadcrumbs, BsButton, BsButtonSkeleton, BsCard, BsCarousel, BsChatbotFeedback, BsChatbotHeader, BsChatbotResponseAction, BsChatbotSourcesDrawer, BsChatbotSuggestionButton, BsCheckbox, BsCheckboxSkeleton, BsChipFilter, BsChipInformative, BsChipInput, BsComposer, BsComposerStatusBanner, BsDataTable, BsDialog, BsFileUpload, BsFileUploadItem, BsIconButton, BsInlineTab, BsInput, BsLogo, BsMenu, BsMenuItem, BsNavigationDrawer, BsNavigationDrawerItem, BsNavigationHeader, BsPagination, BsProgress, BsProgressLinear, BsRadio, BsSlider, BsSnackbar, BsSourceLink, BsStepper, BsStepperStep, BsSwitch, BsTab, BsTabs, BsToast, BsTooltip, DIRECTIVES };
2002
+ export { BooleanValueAccessor, BsAccordion, BsAiDisclaimer, BsAiGreeting, BsAiThinking, BsAttachment, BsAttachmentList, BsAvatar, BsBadge, BsBreadcrumb, BsBreadcrumbOverflow, BsBreadcrumbs, BsButton, BsButtonSkeleton, BsCard, BsCarousel, BsChatbotFeedback, BsChatbotHeader, BsChatbotResponseAction, BsChatbotSourcesDrawer, BsChatbotSuggestionButton, BsCheckbox, BsCheckboxSkeleton, BsChipFilter, BsChipInformative, BsChipInput, BsComposer, BsComposerStatusBanner, BsDataTable, BsDialog, BsFileUpload, BsFileUploadItem, BsIconButton, BsInlineTab, BsInput, BsLogo, BsMenu, BsMenuItem, BsNavigationDrawer, BsNavigationDrawerItem, BsNavigationHeader, BsPagination, BsProgress, BsProgressLinear, BsRadio, BsSlider, BsSnackbar, BsSourceLink, BsStepper, BsStepperStep, BsSwitch, BsTab, BsTabs, BsToast, BsTooltip, DIRECTIVES, NumericValueAccessor, TextValueAccessor, ValueAccessor };
1861
2003
  //# sourceMappingURL=brandsync-angular.mjs.map