@fundamental-ngx/core 0.33.3 → 0.33.4-rc.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (174) hide show
  1. package/README.md +1 -3
  2. package/action-bar/package.json +1 -1
  3. package/action-sheet/package.json +1 -1
  4. package/alert/package.json +1 -1
  5. package/avatar/package.json +1 -1
  6. package/avatar-group/package.json +1 -1
  7. package/bar/package.json +1 -1
  8. package/breadcrumb/package.json +1 -1
  9. package/busy-indicator/package.json +1 -1
  10. package/button/package.json +1 -1
  11. package/calendar/package.json +1 -1
  12. package/card/package.json +1 -1
  13. package/carousel/package.json +1 -1
  14. package/checkbox/checkbox/checkbox.component.d.ts +30 -35
  15. package/checkbox/esm2020/checkbox/checkbox.component.mjs +61 -80
  16. package/checkbox/fesm2015/fundamental-ngx-core-checkbox.mjs +59 -77
  17. package/checkbox/fesm2015/fundamental-ngx-core-checkbox.mjs.map +1 -1
  18. package/checkbox/fesm2020/fundamental-ngx-core-checkbox.mjs +59 -77
  19. package/checkbox/fesm2020/fundamental-ngx-core-checkbox.mjs.map +1 -1
  20. package/checkbox/package.json +1 -1
  21. package/combobox/package.json +1 -1
  22. package/date-picker/package.json +1 -1
  23. package/datetime/package.json +1 -1
  24. package/datetime-picker/package.json +1 -1
  25. package/dialog/package.json +1 -1
  26. package/dynamic-page/package.json +1 -1
  27. package/dynamic-side-content/package.json +1 -1
  28. package/esm2020/checkbox/checkbox/checkbox.component.mjs +61 -80
  29. package/esm2020/list/list-item/list-item.component.mjs +6 -2
  30. package/esm2020/message-box/message-box-body/message-box-body.component.mjs +12 -10
  31. package/esm2020/message-box/message-box-footer/message-box-footer.component.mjs +12 -9
  32. package/esm2020/message-box/message-box-header/message-box-header.component.mjs +30 -16
  33. package/esm2020/message-box/message-box-semantic-icon/message-box-semantic-icon.component.mjs +12 -14
  34. package/esm2020/message-box/message-box.component.mjs +5 -15
  35. package/esm2020/message-box/utils/message-box-config.class.mjs +3 -2
  36. package/esm2020/multi-input/multi-input.component.mjs +38 -11
  37. package/esm2020/upload-collection/upload-collection-item.directive.mjs +81 -8
  38. package/esm2020/utils/helpers/range-selector.mjs +113 -0
  39. package/esm2020/utils/public_api.mjs +2 -1
  40. package/facets/package.json +1 -1
  41. package/feed-input/package.json +1 -1
  42. package/feed-list-item/package.json +1 -1
  43. package/fesm2015/fundamental-ngx-core-checkbox.mjs +59 -77
  44. package/fesm2015/fundamental-ngx-core-checkbox.mjs.map +1 -1
  45. package/fesm2015/fundamental-ngx-core-list.mjs +5 -1
  46. package/fesm2015/fundamental-ngx-core-list.mjs.map +1 -1
  47. package/fesm2015/fundamental-ngx-core-message-box.mjs +67 -56
  48. package/fesm2015/fundamental-ngx-core-message-box.mjs.map +1 -1
  49. package/fesm2015/fundamental-ngx-core-multi-input.mjs +40 -11
  50. package/fesm2015/fundamental-ngx-core-multi-input.mjs.map +1 -1
  51. package/fesm2015/fundamental-ngx-core-upload-collection.mjs +80 -7
  52. package/fesm2015/fundamental-ngx-core-upload-collection.mjs.map +1 -1
  53. package/fesm2015/fundamental-ngx-core-utils.mjs +114 -1
  54. package/fesm2015/fundamental-ngx-core-utils.mjs.map +1 -1
  55. package/fesm2020/fundamental-ngx-core-checkbox.mjs +59 -77
  56. package/fesm2020/fundamental-ngx-core-checkbox.mjs.map +1 -1
  57. package/fesm2020/fundamental-ngx-core-list.mjs +5 -1
  58. package/fesm2020/fundamental-ngx-core-list.mjs.map +1 -1
  59. package/fesm2020/fundamental-ngx-core-message-box.mjs +62 -55
  60. package/fesm2020/fundamental-ngx-core-message-box.mjs.map +1 -1
  61. package/fesm2020/fundamental-ngx-core-multi-input.mjs +38 -11
  62. package/fesm2020/fundamental-ngx-core-multi-input.mjs.map +1 -1
  63. package/fesm2020/fundamental-ngx-core-upload-collection.mjs +80 -7
  64. package/fesm2020/fundamental-ngx-core-upload-collection.mjs.map +1 -1
  65. package/fesm2020/fundamental-ngx-core-utils.mjs +114 -1
  66. package/fesm2020/fundamental-ngx-core-utils.mjs.map +1 -1
  67. package/file-uploader/package.json +1 -1
  68. package/fixed-card-layout/package.json +1 -1
  69. package/flexible-column-layout/package.json +1 -1
  70. package/form/package.json +1 -1
  71. package/formatted-text/package.json +1 -1
  72. package/grid-list/package.json +1 -1
  73. package/icon/package.json +1 -1
  74. package/illustrated-message/package.json +1 -1
  75. package/infinite-scroll/package.json +1 -1
  76. package/info-label/package.json +1 -1
  77. package/inline-help/package.json +1 -1
  78. package/input-group/package.json +1 -1
  79. package/layout-grid/package.json +1 -1
  80. package/layout-panel/package.json +1 -1
  81. package/link/package.json +1 -1
  82. package/list/esm2020/list-item/list-item.component.mjs +6 -2
  83. package/list/fesm2015/fundamental-ngx-core-list.mjs +5 -1
  84. package/list/fesm2015/fundamental-ngx-core-list.mjs.map +1 -1
  85. package/list/fesm2020/fundamental-ngx-core-list.mjs +5 -1
  86. package/list/fesm2020/fundamental-ngx-core-list.mjs.map +1 -1
  87. package/list/package.json +1 -1
  88. package/menu/package.json +1 -1
  89. package/message-box/esm2020/message-box-body/message-box-body.component.mjs +12 -10
  90. package/message-box/esm2020/message-box-footer/message-box-footer.component.mjs +12 -9
  91. package/message-box/esm2020/message-box-header/message-box-header.component.mjs +30 -16
  92. package/message-box/esm2020/message-box-semantic-icon/message-box-semantic-icon.component.mjs +12 -14
  93. package/message-box/esm2020/message-box.component.mjs +5 -15
  94. package/message-box/esm2020/utils/message-box-config.class.mjs +3 -2
  95. package/message-box/fesm2015/fundamental-ngx-core-message-box.mjs +67 -56
  96. package/message-box/fesm2015/fundamental-ngx-core-message-box.mjs.map +1 -1
  97. package/message-box/fesm2020/fundamental-ngx-core-message-box.mjs +62 -55
  98. package/message-box/fesm2020/fundamental-ngx-core-message-box.mjs.map +1 -1
  99. package/message-box/message-box-body/message-box-body.component.d.ts +6 -4
  100. package/message-box/message-box-footer/message-box-footer.component.d.ts +6 -4
  101. package/message-box/message-box-header/message-box-header.component.d.ts +16 -8
  102. package/message-box/message-box-semantic-icon/message-box-semantic-icon.component.d.ts +6 -4
  103. package/message-box/message-box.component.d.ts +4 -9
  104. package/message-box/package.json +1 -1
  105. package/message-box/utils/message-box-config.class.d.ts +2 -4
  106. package/message-strip/package.json +1 -1
  107. package/message-toast/package.json +1 -1
  108. package/micro-process-flow/package.json +1 -1
  109. package/mobile-mode/package.json +1 -1
  110. package/multi-input/esm2020/multi-input.component.mjs +38 -11
  111. package/multi-input/fesm2015/fundamental-ngx-core-multi-input.mjs +40 -11
  112. package/multi-input/fesm2015/fundamental-ngx-core-multi-input.mjs.map +1 -1
  113. package/multi-input/fesm2020/fundamental-ngx-core-multi-input.mjs +38 -11
  114. package/multi-input/fesm2020/fundamental-ngx-core-multi-input.mjs.map +1 -1
  115. package/multi-input/multi-input.component.d.ts +8 -1
  116. package/multi-input/package.json +1 -1
  117. package/nested-list/package.json +1 -1
  118. package/notification/package.json +1 -1
  119. package/object-identifier/package.json +1 -1
  120. package/object-marker/package.json +1 -1
  121. package/object-number/package.json +1 -1
  122. package/object-status/package.json +1 -1
  123. package/package.json +1 -1
  124. package/pagination/package.json +1 -1
  125. package/panel/package.json +1 -1
  126. package/popover/package.json +1 -1
  127. package/product-switch/package.json +1 -1
  128. package/progress-indicator/package.json +1 -1
  129. package/quick-view/package.json +1 -1
  130. package/radio/package.json +1 -1
  131. package/rating-indicator/package.json +1 -1
  132. package/resizable-card-layout/package.json +1 -1
  133. package/scroll-spy/package.json +1 -1
  134. package/scrollbar/package.json +1 -1
  135. package/segmented-button/package.json +1 -1
  136. package/select/package.json +1 -1
  137. package/shared/package.json +1 -1
  138. package/shellbar/package.json +1 -1
  139. package/side-navigation/package.json +1 -1
  140. package/slider/package.json +1 -1
  141. package/split-button/package.json +1 -1
  142. package/splitter/package.json +1 -1
  143. package/status-indicator/package.json +1 -1
  144. package/step-input/package.json +1 -1
  145. package/switch/package.json +1 -1
  146. package/table/package.json +1 -1
  147. package/tabs/package.json +1 -1
  148. package/text/package.json +1 -1
  149. package/tile/package.json +1 -1
  150. package/time/package.json +1 -1
  151. package/time-picker/package.json +1 -1
  152. package/timeline/package.json +1 -1
  153. package/title/package.json +1 -1
  154. package/token/package.json +1 -1
  155. package/toolbar/package.json +1 -1
  156. package/tree/package.json +1 -1
  157. package/upload-collection/esm2020/upload-collection-item.directive.mjs +81 -8
  158. package/upload-collection/fesm2015/fundamental-ngx-core-upload-collection.mjs +80 -7
  159. package/upload-collection/fesm2015/fundamental-ngx-core-upload-collection.mjs.map +1 -1
  160. package/upload-collection/fesm2020/fundamental-ngx-core-upload-collection.mjs +80 -7
  161. package/upload-collection/fesm2020/fundamental-ngx-core-upload-collection.mjs.map +1 -1
  162. package/upload-collection/package.json +1 -1
  163. package/upload-collection/upload-collection-item.directive.d.ts +32 -2
  164. package/utils/esm2020/helpers/range-selector.mjs +113 -0
  165. package/utils/esm2020/public_api.mjs +2 -1
  166. package/utils/fesm2015/fundamental-ngx-core-utils.mjs +114 -1
  167. package/utils/fesm2015/fundamental-ngx-core-utils.mjs.map +1 -1
  168. package/utils/fesm2020/fundamental-ngx-core-utils.mjs +114 -1
  169. package/utils/fesm2020/fundamental-ngx-core-utils.mjs.map +1 -1
  170. package/utils/helpers/range-selector.d.ts +84 -0
  171. package/utils/package.json +1 -1
  172. package/utils/public_api.d.ts +1 -0
  173. package/vertical-navigation/package.json +1 -1
  174. package/wizard/package.json +1 -1
@@ -1,24 +1,21 @@
1
1
  import * as i0 from '@angular/core';
2
2
  import { EventEmitter, forwardRef, Component, ViewEncapsulation, ChangeDetectionStrategy, Attribute, Optional, Inject, ViewChild, Input, HostBinding, Output, NgModule } from '@angular/core';
3
- import * as i4 from '@angular/common';
3
+ import * as i2 from '@angular/common';
4
4
  import { CommonModule } from '@angular/common';
5
- import * as i3 from '@angular/forms';
6
5
  import { NG_VALUE_ACCESSOR, FormsModule } from '@angular/forms';
7
- import * as i2 from '@fundamental-ngx/core/utils';
8
- import { KeyUtil, LIST_ITEM_COMPONENT } from '@fundamental-ngx/core/utils';
6
+ import * as i1 from '@fundamental-ngx/core/utils';
7
+ import { LIST_ITEM_COMPONENT } from '@fundamental-ngx/core/utils';
9
8
  import equal from 'fast-deep-equal';
10
- import { SPACE } from '@angular/cdk/keycodes';
11
9
  import { Subscription } from 'rxjs';
12
- import * as i1 from '@angular/cdk/platform';
13
10
 
14
11
  let checkboxUniqueId = 0;
15
12
  class CheckboxComponent {
16
13
  /** @hidden */
17
- constructor(elementRef, tabIndexValue = 0, _platform, _changeDetectorRef, _contentDensityService, _listItemComponent) {
14
+ constructor(elementRef, tabIndexValue = 0, _changeDetectorRef, renderer, _contentDensityService, _listItemComponent) {
18
15
  this.elementRef = elementRef;
19
16
  this.tabIndexValue = tabIndexValue;
20
- this._platform = _platform;
21
17
  this._changeDetectorRef = _changeDetectorRef;
18
+ this.renderer = renderer;
22
19
  this._contentDensityService = _contentDensityService;
23
20
  this._listItemComponent = _listItemComponent;
24
21
  /** Sets the `aria-label` attribute to the element. */
@@ -27,8 +24,10 @@ class CheckboxComponent {
27
24
  this.ariaLabelledBy = null;
28
25
  /** Sets [id] property of input, binds input with input label using [for] property. */
29
26
  this.inputId = `fd-checkbox-${checkboxUniqueId++}`;
27
+ /** Enables controls third state. */
28
+ this.tristate = false;
30
29
  /** Allows to prevent user from manually selecting controls third state. */
31
- this.tristateSelectable = true;
30
+ this.tristateSelectable = false;
32
31
  /** If it is mandatory field */
33
32
  this.required = false;
34
33
  /** @hidden */
@@ -47,11 +46,26 @@ class CheckboxComponent {
47
46
  this.onValueChange = () => { };
48
47
  this.tabIndexValue = tabIndexValue;
49
48
  }
49
+ /** Current selection state of the checkbox component */
50
+ set value(value) {
51
+ this.writeValue(value);
52
+ }
53
+ get value() {
54
+ return this.checkboxValue;
55
+ }
50
56
  /** Sets values returned by control. */
51
57
  // eslint-disable-next-line @angular-eslint/no-input-rename
52
58
  set _values(checkboxValues) {
53
59
  this.values = Object.assign(Object.assign({}, this.values), checkboxValues);
54
60
  }
61
+ /** @hidden Used to define if control is in 'indeterminate' state.*/
62
+ get isIndeterminate() {
63
+ return this.checkboxState === 'indeterminate';
64
+ }
65
+ /** @hidden Used to define if control is in 'checked' / 'unchecked' state. */
66
+ get isChecked() {
67
+ return this.checkboxState === 'checked' || this.checkboxState === 'force-checked';
68
+ }
55
69
  /** @hidden */
56
70
  ngOnInit() {
57
71
  if (this.compact === undefined && this._contentDensityService) {
@@ -65,18 +79,11 @@ class CheckboxComponent {
65
79
  ngOnDestroy() {
66
80
  this._subscriptions.unsubscribe();
67
81
  }
68
- /** @hidden Used to define if control is in 'indeterminate' state.*/
69
- get isIndeterminate() {
70
- return this.checkboxState === 'indeterminate';
71
- }
72
- /** @hidden Used to define if control is in 'checked' / 'unchecked' state. */
73
- get isChecked() {
74
- return this.checkboxState === 'checked' || this.checkboxState === 'force-checked';
75
- }
76
- /** @hidden ControlValueAccessor interface
82
+ /**
83
+ * @hidden ControlValueAccessor interface
77
84
  * - sets new control value
78
85
  * - updates control state
79
- * */
86
+ */
80
87
  writeValue(value) {
81
88
  this.checkboxValue = value;
82
89
  this._setState();
@@ -86,10 +93,6 @@ class CheckboxComponent {
86
93
  registerOnChange(fn) {
87
94
  this.onValueChange = fn;
88
95
  }
89
- /** @hidden prevent event from propagating */
90
- muteKey(event) {
91
- event.stopPropagation();
92
- }
93
96
  /** @hidden ControlValueAccessor interface method - sets onTouched callback.*/
94
97
  registerOnTouched(fn) {
95
98
  this.onTouched = fn;
@@ -99,19 +102,9 @@ class CheckboxComponent {
99
102
  this.disabled = disabled;
100
103
  this._detectChanges();
101
104
  }
102
- /** @hidden Updates checkbox Indeterminate state on mouse click on IE11 */
103
- checkByClick(event) {
104
- this._nextValueEvent(true, event);
105
- this.muteKey(event);
106
- }
107
- /** @hidden Updates checkbox Indeterminate state on space bar key on IE11 */
108
- checkByKey(event) {
109
- if (this._isSpaceBarEvent(event) && this._platform.TRIDENT) {
110
- this._nextValueEvent();
111
- this.muteKey(event);
112
- }
113
- }
114
- /** @hidden Based on current control state:
105
+ /**
106
+ * @hidden
107
+ * Based on current control state:
115
108
  * - sets next control value
116
109
  * - emits new control value
117
110
  * - updates control state based on new control value
@@ -128,7 +121,7 @@ class CheckboxComponent {
128
121
  case 'indeterminate':
129
122
  case 'force-checked':
130
123
  this.checkboxValue = this.values.trueValue;
131
- this.inputLabel.nativeElement.checked = true;
124
+ this.renderer.setProperty(this.inputElement.nativeElement, 'checked', 'true');
132
125
  break;
133
126
  default:
134
127
  this.checkboxValue =
@@ -139,24 +132,33 @@ class CheckboxComponent {
139
132
  this.onValueChange(this.checkboxValue);
140
133
  this._detectChanges();
141
134
  }
142
- /** Space event should be handled separately, when used inside list component and in firefox browser */
143
- handleInputKeyUp(event) {
144
- event.stopPropagation();
145
- if (this._listItemComponent && this._platform.FIREFOX && KeyUtil.isKeyCode(event, SPACE)) {
146
- event.preventDefault();
147
- }
148
- }
149
- /** Handles blur event */
150
- onBlur() {
135
+ /** @hidden handles blur event */
136
+ _onBlur() {
151
137
  if (typeof this.onTouched === 'function') {
152
138
  this.onTouched();
153
139
  }
154
140
  this.focusChange.emit(false);
155
141
  }
156
- /** Handles focus event */
157
- onFocus() {
142
+ /** @hidden handles focus event */
143
+ _onFocus() {
158
144
  this.focusChange.emit(true);
159
145
  }
146
+ /** @hidden handles click on the label associated with native checkbox input */
147
+ _onLabelClick(event) {
148
+ // We have to stop propagation for click events on the input label.
149
+ // By default, when a user clicks on a label element, a generated click event will be
150
+ // dispatched on the associated input element. This will lead to duplicated "click" event dispatched from the component
151
+ event.stopPropagation();
152
+ }
153
+ /** @hidden handles click on the native checkbox input */
154
+ _onInputClick(event) {
155
+ // When there's a click event dispatched from the input, we have to catch it, process and then re-dispatch it further.
156
+ // This is needed in order to set the value to the component before any external listeners will receive it.
157
+ // Otherwise checkbox might be out of sync.
158
+ event.stopPropagation();
159
+ this.nextValue();
160
+ this.elementRef.nativeElement.dispatchEvent(new PointerEvent(event.type, event));
161
+ }
160
162
  /** @hidden Based on current control value sets new control state. */
161
163
  _setState() {
162
164
  if (equal(this.checkboxValue, this.values.trueValue)) {
@@ -171,28 +173,6 @@ class CheckboxComponent {
171
173
  else if (!this.checkboxValue) {
172
174
  this.checkboxState = 'unchecked';
173
175
  }
174
- this._previousState = this.checkboxState;
175
- }
176
- /** @hidden */
177
- _nextValueEvent(triggeredByClick, event) {
178
- if (this._platform.TRIDENT &&
179
- this._previousState === 'indeterminate' &&
180
- this.checkboxState === 'indeterminate') {
181
- this.checkboxState = 'force-checked';
182
- this._detectChanges();
183
- /** Prevents from keeping the old value */
184
- if (triggeredByClick) {
185
- this.nextValue('force-checked');
186
- if (event) {
187
- this.muteKey(event);
188
- event.preventDefault();
189
- }
190
- }
191
- }
192
- }
193
- /** @hidden Determines event source based on key code */
194
- _isSpaceBarEvent(event) {
195
- return KeyUtil.isKeyCode(event, SPACE);
196
176
  }
197
177
  /** Method to trigger change detection in component */
198
178
  _detectChanges() {
@@ -201,14 +181,14 @@ class CheckboxComponent {
201
181
  }
202
182
  }
203
183
  }
204
- CheckboxComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.2", ngImport: i0, type: CheckboxComponent, deps: [{ token: i0.ElementRef }, { token: 'tabIndexValue', attribute: true }, { token: i1.Platform }, { token: i0.ChangeDetectorRef }, { token: i2.ContentDensityService, optional: true }, { token: LIST_ITEM_COMPONENT, optional: true }], target: i0.ɵɵFactoryTarget.Component });
205
- CheckboxComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.2", type: CheckboxComponent, selector: "fd-checkbox", inputs: { ariaLabel: "ariaLabel", ariaLabelledBy: "ariaLabelledBy", ariaDescribedBy: "ariaDescribedBy", title: "title", inputId: "inputId", state: "state", name: "name", label: "label", disabled: "disabled", compact: "compact", tristate: "tristate", tristateSelectable: "tristateSelectable", labelClass: "labelClass", required: "required", _values: ["values", "_values"] }, outputs: { focusChange: "focusChange" }, host: { properties: { "attr.tabindex": "-1", "style.position": "this.position", "style.outline": "this.outline" } }, providers: [
184
+ CheckboxComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.2", ngImport: i0, type: CheckboxComponent, deps: [{ token: i0.ElementRef }, { token: 'tabIndexValue', attribute: true }, { token: i0.ChangeDetectorRef }, { token: i0.Renderer2 }, { token: i1.ContentDensityService, optional: true }, { token: LIST_ITEM_COMPONENT, optional: true }], target: i0.ɵɵFactoryTarget.Component });
185
+ CheckboxComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.2", type: CheckboxComponent, selector: "fd-checkbox", inputs: { ariaLabel: "ariaLabel", value: "value", ariaLabelledBy: "ariaLabelledBy", ariaDescribedBy: "ariaDescribedBy", title: "title", inputId: "inputId", state: "state", name: "name", label: "label", disabled: "disabled", compact: "compact", tristate: "tristate", tristateSelectable: "tristateSelectable", labelClass: "labelClass", required: "required", _values: ["values", "_values"] }, outputs: { focusChange: "focusChange" }, host: { properties: { "attr.tabindex": "-1", "style.position": "this.position", "style.outline": "this.outline" } }, providers: [
206
186
  {
207
187
  provide: NG_VALUE_ACCESSOR,
208
188
  useExisting: forwardRef(() => CheckboxComponent),
209
189
  multi: true
210
190
  }
211
- ], viewQueries: [{ propertyName: "inputLabel", first: true, predicate: ["inputLabel"], descendants: true }, { propertyName: "labelElement", first: true, predicate: ["labelElement"], descendants: true }], ngImport: i0, template: "<input\n #inputLabel\n type=\"checkbox\"\n class=\"fd-checkbox\"\n [id]=\"inputId\"\n [name]=\"name\"\n [disabled]=\"disabled\"\n [indeterminate]=\"isIndeterminate\"\n [attr.tabindex]=\"tabIndexValue\"\n [attr.aria-label]=\"ariaLabel\"\n [attr.aria-labelledby]=\"ariaLabelledBy\"\n [attr.aria-describedby]=\"ariaDescribedBy\"\n [attr.aria-disabled]=\"disabled\"\n [attr.aria-required]=\"required\"\n [class.fd-checkbox--compact]=\"compact\"\n [class]=\"state ? 'is-' + state : ''\"\n [ngModel]=\"isChecked\"\n (ngModelChange)=\"nextValue()\"\n (keydown)=\"checkByKey($event)\"\n (keyup)=\"handleInputKeyUp($event)\"\n (click)=\"$event.stopPropagation()\"\n (blur)=\"onBlur()\"\n (focus)=\"onFocus()\"\n/>\n\n<label\n class=\"fd-checkbox__label\"\n #labelElement\n [for]=\"inputId\"\n [class]=\"labelClass\"\n [attr.title]=\"title\"\n [class.fd-checkbox__label--compact]=\"compact\"\n [class.fd-checkbox__label--required]=\"required\"\n (click)=\"checkByClick($event)\"\n>\n <div class=\"fd-checkbox__label-container\">\n <ng-container *ngIf=\"label\">\n <span class=\"fd-checkbox__text\">\n {{ label }}\n </span>\n </ng-container>\n\n <ng-container *ngIf=\"!label\">\n <span class=\"fd-checkbox__text\">\n <ng-content></ng-content>\n </span>\n </ng-container>\n </div>\n</label>\n", styles: ["/*!\n * Fundamental Library Styles v0.21.0-rc.92\n * Copyright (c) 2022 SAP SE or an SAP affiliate company.\n * Licensed under Apache License 2.0 (https://github.com/SAP/fundamental-styles/blob/main/LICENSE)\n *//*!\n.fd-checkbox\n*/.fd-checkbox{position:absolute;opacity:.0001}.fd-checkbox{font-size:.875rem;font-size:var(--sapFontSize, .875rem);line-height:1.4;line-height:var(--sapContent_LineHeight, 1.4);color:var(--sapTextColor, #32363a);font-family:\"72\",\"72full\",Arial,Helvetica,sans-serif;font-family:var(--sapFontFamily, \"72\", \"72full\", Arial, Helvetica, sans-serif);font-weight:400;box-sizing:border-box;padding:0;margin:0;border:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#32363a;color:var(--sapField_TextColor, #32363a);background-color:#fff;background-color:var(--sapField_Background, #fff);border-style:solid;border-width:.0625rem;border-width:var(--sapField_BorderWidth, .0625rem);border-color:#89919a;border-color:var(--sapField_BorderColor, #89919a);border-radius:.125rem;border-radius:var(--sapField_BorderCornerRadius, .125rem);outline:0;appearance:none;-webkit-appearance:none;-moz-appearance:none}.fd-checkbox:after,.fd-checkbox:before{box-sizing:inherit;font-size:inherit}.fd-checkbox::placeholder{font-style:italic;color:#74777a;color:var(--sapField_PlaceholderTextColor, #74777a)}.fd-checkbox::selection{color:#fff;color:var(--sapContent_ContrastTextColor, #fff);background-color:#0854a0;background-color:var(--sapSelectedColor, #0854a0)}.fd-checkbox.is-hover,.fd-checkbox:hover{background-color:#fff;background-color:var(--sapField_Hover_Background, #fff);border-color:#0854a0;border-color:var(--sapField_Hover_BorderColor, #0854a0)}.fd-checkbox.is-success{background-color:#fff;background-color:var(--sapField_SuccessBackground, #fff);border-color:#107e3e;border-color:var(--sapField_SuccessColor, #107e3e);border-width:.0625rem;border-width:var(--sapField_SuccessBorderWidth, .0625rem);border-style:solid;border-style:var(--sapField_SuccessBorderStyle, solid)}.fd-checkbox.is-success.is-hover,.fd-checkbox.is-success:hover{background-color:#fff;background-color:var(--sapField_SuccessBackground, #fff);border-color:#107e3e;border-color:var(--sapField_SuccessColor, #107e3e)}.fd-checkbox.is-error{background-color:#fff;background-color:var(--sapField_InvalidBackground, #fff);font-style:normal;font-style:var(--fdInput_State_Text_Style, normal);font-weight:400;font-weight:var(--fdInput_State_Font_Weight, normal);border-color:#b00;border-color:var(--sapField_InvalidColor, #b00);border-width:.125rem;border-width:var(--sapField_InvalidBorderWidth, .125rem);border-style:solid;border-style:var(--sapField_InvalidBorderStyle, solid)}.fd-checkbox.is-error.is-hover,.fd-checkbox.is-error:hover{background-color:#fff;background-color:var(--sapField_InvalidBackground, #fff);border-color:#b00;border-color:var(--sapField_InvalidColor, #b00)}.fd-checkbox.is-alert,.fd-checkbox.is-warning{background-color:#fff;background-color:var(--sapField_WarningBackground, #fff);font-style:normal;font-style:var(--fdInput_State_Text_Style, normal);font-weight:400;font-weight:var(--fdInput_State_Font_Weight, normal);border-color:#df6e0c;border-color:var(--sapField_WarningColor, #df6e0c);border-width:.125rem;border-width:var(--sapField_WarningBorderWidth, .125rem);border-style:solid;border-style:var(--sapField_WarningBorderStyle, solid)}.fd-checkbox.is-alert.is-hover,.fd-checkbox.is-alert:hover,.fd-checkbox.is-warning.is-hover,.fd-checkbox.is-warning:hover{background-color:#fff;background-color:var(--sapField_WarningBackground, #fff);border-color:#df6e0c;border-color:var(--sapField_WarningColor, #df6e0c)}.fd-checkbox.is-information{background-color:#fff;background-color:var(--sapField_InformationBackground, #fff);border-color:#0a6ed1;border-color:var(--sapField_InformationColor, #0a6ed1);border-width:.125rem;border-width:var(--sapField_InformationBorderWidth, .125rem);border-style:solid;border-style:var(--sapField_InformationBorderStyle, solid)}.fd-checkbox.is-information.is-hover,.fd-checkbox.is-information:hover{background-color:#fff;background-color:var(--sapField_InformationBackground, #fff);border-color:#0a6ed1;border-color:var(--sapField_InformationColor, #0a6ed1)}.fd-checkbox.is-focus,.fd-checkbox:focus{z-index:5;box-shadow:none;outline-offset:-.1875rem;outline-width:.0625rem;outline-width:var(--sapContent_FocusWidth, .0625rem);outline-color:#000;outline-color:var(--sapContent_FocusColor, #000);outline-style:dotted;outline-style:var(--sapContent_FocusStyle, dotted)}.fd-checkbox.is-alert,.fd-checkbox.is-error,.fd-checkbox.is-information,.fd-checkbox.is-warning{border-width:.125rem;border-style:solid;border-style:var(--fdInput_State_Border_Type, solid)}.fd-checkbox.is-alert.is-focus,.fd-checkbox.is-alert:focus,.fd-checkbox.is-error.is-focus,.fd-checkbox.is-error:focus,.fd-checkbox.is-information.is-focus,.fd-checkbox.is-information:focus,.fd-checkbox.is-warning.is-focus,.fd-checkbox.is-warning:focus{z-index:5;box-shadow:none;outline-offset:-.25rem}.fd-checkbox.is-disabled,.fd-checkbox:disabled,.fd-checkbox[aria-disabled=true]{pointer-events:none;opacity:.4;opacity:var(--sapContent_DisabledOpacity, .4)}.fd-checkbox.is-disabled::placeholder,.fd-checkbox:disabled::placeholder,.fd-checkbox[aria-disabled=true]::placeholder{color:transparent}.fd-checkbox.is-readonly,.fd-checkbox[aria-readonly=true],.fd-checkbox[readonly]{background-color:#f2f2f280;background-color:var(--sapField_ReadOnly_Background, rgba(242, 242, 242, .5));border-color:#89919a;border-color:var(--sapField_ReadOnly_BorderColor, #89919a)}.fd-checkbox.is-readonly::placeholder,.fd-checkbox[aria-readonly=true]::placeholder,.fd-checkbox[readonly]::placeholder{color:transparent}.fd-checkbox,.fd-checkbox.is-error,.fd-checkbox.is-information,.fd-checkbox.is-success,.fd-checkbox.is-warning{border-style:initial}.fd-checkbox__label{line-height:1.4;line-height:var(--sapContent_LineHeight, 1.4);color:#32363a;color:var(--sapTextColor, #32363a);font-family:\"72\",\"72full\",Arial,Helvetica,sans-serif;font-family:var(--sapFontFamily, \"72\", \"72full\", Arial, Helvetica, sans-serif);font-weight:400;box-sizing:border-box;padding:0;margin:0;border:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;width:-moz-fit-content;width:fit-content;position:relative;max-width:100%;font-size:.875rem;font-size:var(--sapFontSize, .875rem);color:#6a6d70;color:var(--sapContent_LabelColor, #6a6d70);margin-right:.5rem;cursor:text;align-self:flex-start;cursor:pointer;line-height:1rem;padding:.6875rem;display:flex;align-items:center}.fd-checkbox__label:after,.fd-checkbox__label:before{box-sizing:inherit;font-size:inherit}.fd-checkbox__label[dir=rtl],[dir=rtl] .fd-checkbox__label{margin-left:.5rem;margin-right:0}.fd-checkbox__label:before{content:\"\";height:1.375rem;width:1.375rem;min-width:1.375rem;font-size:1rem;font-size:var(--sapFontLargeSize, 1rem);display:inline-flex;justify-content:center;align-items:center;font-family:SAP-icons;background-color:#fff;background-color:var(--sapField_Background, #fff);color:#0854a0;color:var(--fdCheckbox_Selected_Color, var(--sapSelectedColor, #0854a0));border:.0625rem solid #89919a;border:var(--sapField_BorderWidth, .0625rem) solid var(--sapField_BorderColor, #89919a);border-radius:.125rem;border-radius:var(--sapField_BorderCornerRadius, .125rem)}.fd-checkbox__label:after{padding-left:.125rem;position:relative}.fd-checkbox__label[dir=rtl]:after,[dir=rtl] .fd-checkbox__label:after{padding-left:0;padding-right:.125rem}.fd-checkbox__label.is-hover:before,.fd-checkbox__label:hover:before{background-color:#fff;background-color:var(--sapField_Hover_Background, #fff);border-color:#0854a0;border-color:var(--sapField_Hover_BorderColor, #0854a0)}.fd-checkbox__label:focus{outline:0}.fd-checkbox__label--required .fd-checkbox__text,.fd-checkbox__label[aria-required=true] .fd-checkbox__text{padding-right:.5rem}.fd-checkbox__label--required .fd-checkbox__text[dir=rtl],.fd-checkbox__label[aria-required=true] .fd-checkbox__text[dir=rtl],[dir=rtl] .fd-checkbox__label--required .fd-checkbox__text,[dir=rtl] .fd-checkbox__label[aria-required=true] .fd-checkbox__text{padding-right:0;padding-left:.5rem}.fd-checkbox__label--required .fd-checkbox__text:after,.fd-checkbox__label[aria-required=true] .fd-checkbox__text:after{content:\"*\";font-size:.875rem;font-size:var(--sapFontSize, .875rem);font-weight:700;color:#ce3b3b;color:var(--sapField_RequiredColor, #ce3b3b);position:absolute;padding-left:.125rem}.fd-checkbox__label--required .fd-checkbox__text[dir=rtl]:after,.fd-checkbox__label[aria-required=true] .fd-checkbox__text[dir=rtl]:after,[dir=rtl] .fd-checkbox__label--required .fd-checkbox__text:after,[dir=rtl] .fd-checkbox__label[aria-required=true] .fd-checkbox__text:after{padding-left:0;padding-right:.125rem}.fd-checkbox__label-container{font-size:.875rem;font-size:var(--sapFontSize, .875rem);line-height:1.4;line-height:var(--sapContent_LineHeight, 1.4);color:#32363a;color:var(--sapTextColor, #32363a);font-family:\"72\",\"72full\",Arial,Helvetica,sans-serif;font-family:var(--sapFontFamily, \"72\", \"72full\", Arial, Helvetica, sans-serif);font-weight:400;box-sizing:border-box;padding:0;margin:0;border:0;display:flex;align-items:center;width:100%;height:1rem;pointer-events:none}.fd-checkbox__label-container:after,.fd-checkbox__label-container:before{box-sizing:inherit;font-size:inherit}.fd-checkbox__text{font-size:.875rem;font-size:var(--sapFontSize, .875rem);line-height:1.4;line-height:var(--sapContent_LineHeight, 1.4);color:#32363a;color:var(--sapTextColor, #32363a);font-family:\"72\",\"72full\",Arial,Helvetica,sans-serif;font-family:var(--sapFontFamily, \"72\", \"72full\", Arial, Helvetica, sans-serif);font-weight:400;box-sizing:border-box;padding:0;margin:0;border:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-left:.6875rem;margin-right:0}.fd-checkbox__text:after,.fd-checkbox__text:before{box-sizing:inherit;font-size:inherit}.fd-checkbox__text[dir=rtl],[dir=rtl] .fd-checkbox__text{margin-right:.6875rem;margin-left:0}.fd-checkbox:checked+.fd-checkbox__label:before{content:\"\\e05b\"}.fd-checkbox:indeterminate+.fd-checkbox__label:after{content:\"\";width:.75rem;height:.75rem;background-color:#0854a0;background-color:var(--fdCheckbox_Selected_Color, var(--sapSelectedColor, #0854a0));position:absolute;margin-left:.3125rem}.fd-checkbox:indeterminate+.fd-checkbox__label--compact:after{content:\"\";width:.5rem;height:.5rem;background-color:#0854a0;background-color:var(--fdCheckbox_Selected_Color, var(--sapSelectedColor, #0854a0));position:absolute;margin-left:.25rem}.fd-checkbox[dir=rtl]:indeterminate+.fd-checkbox__label:after,[dir=rtl] .fd-checkbox:indeterminate+.fd-checkbox__label:after{margin-left:0;margin-right:.3125rem}.fd-checkbox[dir=rtl]:indeterminate+.fd-checkbox__label--compact:after,[dir=rtl] .fd-checkbox:indeterminate+.fd-checkbox__label--compact:after{margin-left:0;margin-right:.25rem}.fd-checkbox.is-alert+.fd-checkbox__label:before,.fd-checkbox.is-warning+.fd-checkbox__label:before{background-color:#fff;background-color:var(--sapField_WarningBackground, #fff);border:.125rem solid #df6e0c;border:.125rem var(--fdCheckbox_State_Border_Type, solid) var(--sapField_WarningColor, #df6e0c);color:#32363a;color:var(--sapField_TextColor, #32363a)}.fd-checkbox.is-alert+.fd-checkbox__label:after,.fd-checkbox.is-warning+.fd-checkbox__label:after{background-color:#32363a;background-color:var(--sapField_TextColor, #32363a)}.fd-checkbox.is-alert+.fd-checkbox__label.is-hover.is-disabled,.fd-checkbox.is-alert+.fd-checkbox__label.is-hover:disabled,.fd-checkbox.is-alert+.fd-checkbox__label.is-hover[aria-disabled=true],.fd-checkbox.is-alert+.fd-checkbox__label:hover.is-disabled,.fd-checkbox.is-alert+.fd-checkbox__label:hover:disabled,.fd-checkbox.is-alert+.fd-checkbox__label:hover[aria-disabled=true],.fd-checkbox.is-warning+.fd-checkbox__label.is-hover.is-disabled,.fd-checkbox.is-warning+.fd-checkbox__label.is-hover:disabled,.fd-checkbox.is-warning+.fd-checkbox__label.is-hover[aria-disabled=true],.fd-checkbox.is-warning+.fd-checkbox__label:hover.is-disabled,.fd-checkbox.is-warning+.fd-checkbox__label:hover:disabled,.fd-checkbox.is-warning+.fd-checkbox__label:hover[aria-disabled=true]{border-color:#df6e0c;border-color:var(--sapField_WarningColor, #df6e0c)}.fd-checkbox.is-alert+.fd-checkbox__label.is-hover:before,.fd-checkbox.is-alert+.fd-checkbox__label:hover:before,.fd-checkbox.is-warning+.fd-checkbox__label.is-hover:before,.fd-checkbox.is-warning+.fd-checkbox__label:hover:before{background-color:#fff;background-color:var(--sapField_Hover_Background, #fff)}.fd-checkbox.is-error+.fd-checkbox__label:before{background-color:#fff;background-color:var(--sapField_InvalidBackground, #fff);border:.125rem solid #b00;border:.125rem var(--fdCheckbox_State_Border_Type, solid) var(--sapField_InvalidColor, #b00);color:#b00;color:var(--sapField_InvalidColor, #b00)}.fd-checkbox.is-error+.fd-checkbox__label:after{background-color:#b00;background-color:var(--sapField_InvalidColor, #b00)}.fd-checkbox.is-error+.fd-checkbox__label.is-hover.is-disabled,.fd-checkbox.is-error+.fd-checkbox__label.is-hover:disabled,.fd-checkbox.is-error+.fd-checkbox__label.is-hover[aria-disabled=true],.fd-checkbox.is-error+.fd-checkbox__label:hover.is-disabled,.fd-checkbox.is-error+.fd-checkbox__label:hover:disabled,.fd-checkbox.is-error+.fd-checkbox__label:hover[aria-disabled=true]{border-color:#b00;border-color:var(--sapField_InvalidColor, #b00)}.fd-checkbox.is-error+.fd-checkbox__label.is-hover:before,.fd-checkbox.is-error+.fd-checkbox__label:hover:before{background-color:#fff;background-color:var(--sapField_Hover_Background, #fff)}.fd-checkbox.is-success+.fd-checkbox__label:before{background-color:#fff;background-color:var(--sapField_SuccessBackground, #fff);border:.0625rem solid #107e3e;border:var(--sapField_BorderWidth, .0625rem) solid var(--sapField_SuccessColor, #107e3e);color:#107e3e;color:var(--sapField_SuccessColor, #107e3e)}.fd-checkbox.is-success+.fd-checkbox__label:after{background-color:#107e3e;background-color:var(--sapField_SuccessColor, #107e3e)}.fd-checkbox.is-success+.fd-checkbox__label.is-hover.is-disabled,.fd-checkbox.is-success+.fd-checkbox__label.is-hover:disabled,.fd-checkbox.is-success+.fd-checkbox__label.is-hover[aria-disabled=true],.fd-checkbox.is-success+.fd-checkbox__label:hover.is-disabled,.fd-checkbox.is-success+.fd-checkbox__label:hover:disabled,.fd-checkbox.is-success+.fd-checkbox__label:hover[aria-disabled=true]{border-color:#107e3e;border-color:var(--sapField_SuccessColor, #107e3e)}.fd-checkbox.is-success+.fd-checkbox__label.is-hover:before,.fd-checkbox.is-success+.fd-checkbox__label:hover:before{background-color:#fff;background-color:var(--sapField_Hover_Background, #fff)}.fd-checkbox.is-information+.fd-checkbox__label:before{background-color:#fff;background-color:var(--sapField_InformationBackground, #fff);border:.125rem solid #0a6ed1;border:.125rem var(--fdCheckbox_State_Border_Type, solid) var(--sapField_InformationColor, #0a6ed1);color:#0a6ed1;color:var(--sapField_InformationColor, #0a6ed1)}.fd-checkbox.is-information+.fd-checkbox__label:after{background-color:#0a6ed1;background-color:var(--sapField_InformationColor, #0a6ed1)}.fd-checkbox.is-information+.fd-checkbox__label.is-hover.is-disabled,.fd-checkbox.is-information+.fd-checkbox__label.is-hover:disabled,.fd-checkbox.is-information+.fd-checkbox__label.is-hover[aria-disabled=true],.fd-checkbox.is-information+.fd-checkbox__label:hover.is-disabled,.fd-checkbox.is-information+.fd-checkbox__label:hover:disabled,.fd-checkbox.is-information+.fd-checkbox__label:hover[aria-disabled=true]{border-color:#0a6ed1;border-color:var(--sapField_InformationColor, #0a6ed1)}.fd-checkbox.is-information+.fd-checkbox__label.is-hover:before,.fd-checkbox.is-information+.fd-checkbox__label:hover:before{background-color:#fff;background-color:var(--sapField_Hover_Background, #fff)}.fd-checkbox.is-readonly+.fd-checkbox__label:before,.fd-checkbox[readonly]+.fd-checkbox__label:before{background-color:#f2f2f280;background-color:var(--sapField_ReadOnly_Background, rgba(242, 242, 242, .5));border:.0625rem solid #89919a;border:var(--sapField_BorderWidth, .0625rem) solid var(--sapField_ReadOnly_BorderColor, #89919a);color:#6a6d70;color:var(--sapContent_NonInteractiveIconColor, #6a6d70)}.fd-checkbox.is-readonly+.fd-checkbox__label:after,.fd-checkbox[readonly]+.fd-checkbox__label:after{background-color:#6a6d70;background-color:var(--sapContent_NonInteractiveIconColor, #6a6d70)}.fd-checkbox.is-readonly+.fd-checkbox__label.is-hover.is-disabled,.fd-checkbox.is-readonly+.fd-checkbox__label.is-hover:disabled,.fd-checkbox.is-readonly+.fd-checkbox__label.is-hover[aria-disabled=true],.fd-checkbox.is-readonly+.fd-checkbox__label:hover.is-disabled,.fd-checkbox.is-readonly+.fd-checkbox__label:hover:disabled,.fd-checkbox.is-readonly+.fd-checkbox__label:hover[aria-disabled=true],.fd-checkbox[readonly]+.fd-checkbox__label.is-hover.is-disabled,.fd-checkbox[readonly]+.fd-checkbox__label.is-hover:disabled,.fd-checkbox[readonly]+.fd-checkbox__label.is-hover[aria-disabled=true],.fd-checkbox[readonly]+.fd-checkbox__label:hover.is-disabled,.fd-checkbox[readonly]+.fd-checkbox__label:hover:disabled,.fd-checkbox[readonly]+.fd-checkbox__label:hover[aria-disabled=true]{border-color:#89919a;border-color:var(--sapField_ReadOnly_BorderColor, #89919a)}.fd-checkbox.is-readonly+.fd-checkbox__label.is-hover:before,.fd-checkbox.is-readonly+.fd-checkbox__label:hover:before,.fd-checkbox[readonly]+.fd-checkbox__label.is-hover:before,.fd-checkbox[readonly]+.fd-checkbox__label:hover:before{background-color:#fff;background-color:var(--sapField_Hover_Background, #fff)}.fd-checkbox.is-focus,.fd-checkbox:focus{z-index:5}.fd-checkbox.is-focus+.fd-checkbox__label,.fd-checkbox:focus+.fd-checkbox__label{outline:.0625rem dotted #000;outline:var(--sapContent_FocusWidth, .0625rem) var(--sapContent_FocusStyle, dotted) var(--sapContent_FocusColor, #000);outline-offset:-.5625rem}.fd-checkbox.is-disabled,.fd-checkbox:disabled,.fd-checkbox[aria-disabled=true]{opacity:.0001}.fd-checkbox.is-disabled+.fd-checkbox__label,.fd-checkbox:disabled+.fd-checkbox__label,.fd-checkbox[aria-disabled=true]+.fd-checkbox__label{pointer-events:none;opacity:.4}.fd-checkbox--compact>.fd-checkbox__text{margin-left:.5rem}.fd-checkbox--compact>.fd-checkbox__text[dir=rtl],[dir=rtl] .fd-checkbox--compact>.fd-checkbox__text{margin-left:0;margin-right:.5rem}.fd-checkbox--compact+.fd-checkbox__label{padding:.5rem}.fd-checkbox--compact+.fd-checkbox__label:before{font-size:.75rem;font-size:var(--sapFontSmallSize, .75rem);height:1rem;width:1rem;min-width:1rem;margin-left:0}.fd-checkbox--compact+.fd-checkbox__label.is-empty,.fd-checkbox--compact+.fd-checkbox__label:empty{padding:.5rem;margin:0}.fd-checkbox--compact+.fd-checkbox__label.is-empty:after,.fd-checkbox--compact+.fd-checkbox__label.is-empty:before,.fd-checkbox--compact+.fd-checkbox__label:empty:after,.fd-checkbox--compact+.fd-checkbox__label:empty:before{margin-right:0;margin-left:0}.fd-checkbox--compact.is-focus,.fd-checkbox--compact:focus{z-index:5}.fd-checkbox--compact.is-focus+.fd-checkbox__label,.fd-checkbox--compact:focus+.fd-checkbox__label{outline:.0625rem dotted #000;outline:var(--sapContent_FocusWidth, .0625rem) var(--sapContent_FocusStyle, dotted) var(--sapContent_FocusColor, #000);outline-offset:-.375rem}.fd-checkbox__text:empty{margin:0}\n"], directives: [{ type: i3.CheckboxControlValueAccessor, selector: "input[type=checkbox][formControlName],input[type=checkbox][formControl],input[type=checkbox][ngModel]" }, { type: i3.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i3.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
191
+ ], viewQueries: [{ propertyName: "inputElement", first: true, predicate: ["inputElement"], descendants: true }, { propertyName: "labelElement", first: true, predicate: ["labelElement"], descendants: true }], ngImport: i0, template: "<input\n #inputElement\n type=\"checkbox\"\n class=\"fd-checkbox\"\n [id]=\"inputId\"\n [name]=\"name\"\n [disabled]=\"disabled\"\n [indeterminate]=\"isIndeterminate\"\n [checked]=\"isChecked\"\n [attr.tabindex]=\"tabIndexValue\"\n [attr.aria-label]=\"ariaLabel\"\n [attr.aria-labelledby]=\"ariaLabelledBy\"\n [attr.aria-describedby]=\"ariaDescribedBy\"\n [attr.aria-disabled]=\"disabled\"\n [attr.aria-required]=\"required\"\n [class.fd-checkbox--compact]=\"compact\"\n [class]=\"state ? 'is-' + state : ''\"\n (click)=\"_onInputClick($event)\"\n (blur)=\"_onBlur()\"\n (focus)=\"_onFocus()\"\n/>\n\n<label\n class=\"fd-checkbox__label\"\n #labelElement\n [for]=\"inputId\"\n [class]=\"labelClass\"\n [attr.title]=\"title\"\n [class.fd-checkbox__label--compact]=\"compact\"\n [class.fd-checkbox__label--required]=\"required\"\n (click)=\"_onLabelClick($event)\"\n>\n <div class=\"fd-checkbox__label-container\">\n <ng-container *ngIf=\"label\">\n <span class=\"fd-checkbox__text\">\n {{ label }}\n </span>\n </ng-container>\n\n <ng-container *ngIf=\"!label\">\n <span class=\"fd-checkbox__text\">\n <ng-content></ng-content>\n </span>\n </ng-container>\n </div>\n</label>\n", styles: ["/*!\n * Fundamental Library Styles v0.21.0-rc.92\n * Copyright (c) 2022 SAP SE or an SAP affiliate company.\n * Licensed under Apache License 2.0 (https://github.com/SAP/fundamental-styles/blob/main/LICENSE)\n *//*!\n.fd-checkbox\n*/.fd-checkbox{position:absolute;opacity:.0001}.fd-checkbox{font-size:.875rem;font-size:var(--sapFontSize, .875rem);line-height:1.4;line-height:var(--sapContent_LineHeight, 1.4);color:var(--sapTextColor, #32363a);font-family:\"72\",\"72full\",Arial,Helvetica,sans-serif;font-family:var(--sapFontFamily, \"72\", \"72full\", Arial, Helvetica, sans-serif);font-weight:400;box-sizing:border-box;padding:0;margin:0;border:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#32363a;color:var(--sapField_TextColor, #32363a);background-color:#fff;background-color:var(--sapField_Background, #fff);border-style:solid;border-width:.0625rem;border-width:var(--sapField_BorderWidth, .0625rem);border-color:#89919a;border-color:var(--sapField_BorderColor, #89919a);border-radius:.125rem;border-radius:var(--sapField_BorderCornerRadius, .125rem);outline:0;appearance:none;-webkit-appearance:none;-moz-appearance:none}.fd-checkbox:after,.fd-checkbox:before{box-sizing:inherit;font-size:inherit}.fd-checkbox::placeholder{font-style:italic;color:#74777a;color:var(--sapField_PlaceholderTextColor, #74777a)}.fd-checkbox::selection{color:#fff;color:var(--sapContent_ContrastTextColor, #fff);background-color:#0854a0;background-color:var(--sapSelectedColor, #0854a0)}.fd-checkbox.is-hover,.fd-checkbox:hover{background-color:#fff;background-color:var(--sapField_Hover_Background, #fff);border-color:#0854a0;border-color:var(--sapField_Hover_BorderColor, #0854a0)}.fd-checkbox.is-success{background-color:#fff;background-color:var(--sapField_SuccessBackground, #fff);border-color:#107e3e;border-color:var(--sapField_SuccessColor, #107e3e);border-width:.0625rem;border-width:var(--sapField_SuccessBorderWidth, .0625rem);border-style:solid;border-style:var(--sapField_SuccessBorderStyle, solid)}.fd-checkbox.is-success.is-hover,.fd-checkbox.is-success:hover{background-color:#fff;background-color:var(--sapField_SuccessBackground, #fff);border-color:#107e3e;border-color:var(--sapField_SuccessColor, #107e3e)}.fd-checkbox.is-error{background-color:#fff;background-color:var(--sapField_InvalidBackground, #fff);font-style:normal;font-style:var(--fdInput_State_Text_Style, normal);font-weight:400;font-weight:var(--fdInput_State_Font_Weight, normal);border-color:#b00;border-color:var(--sapField_InvalidColor, #b00);border-width:.125rem;border-width:var(--sapField_InvalidBorderWidth, .125rem);border-style:solid;border-style:var(--sapField_InvalidBorderStyle, solid)}.fd-checkbox.is-error.is-hover,.fd-checkbox.is-error:hover{background-color:#fff;background-color:var(--sapField_InvalidBackground, #fff);border-color:#b00;border-color:var(--sapField_InvalidColor, #b00)}.fd-checkbox.is-alert,.fd-checkbox.is-warning{background-color:#fff;background-color:var(--sapField_WarningBackground, #fff);font-style:normal;font-style:var(--fdInput_State_Text_Style, normal);font-weight:400;font-weight:var(--fdInput_State_Font_Weight, normal);border-color:#df6e0c;border-color:var(--sapField_WarningColor, #df6e0c);border-width:.125rem;border-width:var(--sapField_WarningBorderWidth, .125rem);border-style:solid;border-style:var(--sapField_WarningBorderStyle, solid)}.fd-checkbox.is-alert.is-hover,.fd-checkbox.is-alert:hover,.fd-checkbox.is-warning.is-hover,.fd-checkbox.is-warning:hover{background-color:#fff;background-color:var(--sapField_WarningBackground, #fff);border-color:#df6e0c;border-color:var(--sapField_WarningColor, #df6e0c)}.fd-checkbox.is-information{background-color:#fff;background-color:var(--sapField_InformationBackground, #fff);border-color:#0a6ed1;border-color:var(--sapField_InformationColor, #0a6ed1);border-width:.125rem;border-width:var(--sapField_InformationBorderWidth, .125rem);border-style:solid;border-style:var(--sapField_InformationBorderStyle, solid)}.fd-checkbox.is-information.is-hover,.fd-checkbox.is-information:hover{background-color:#fff;background-color:var(--sapField_InformationBackground, #fff);border-color:#0a6ed1;border-color:var(--sapField_InformationColor, #0a6ed1)}.fd-checkbox.is-focus,.fd-checkbox:focus{z-index:5;box-shadow:none;outline-offset:-.1875rem;outline-width:.0625rem;outline-width:var(--sapContent_FocusWidth, .0625rem);outline-color:#000;outline-color:var(--sapContent_FocusColor, #000);outline-style:dotted;outline-style:var(--sapContent_FocusStyle, dotted)}.fd-checkbox.is-alert,.fd-checkbox.is-error,.fd-checkbox.is-information,.fd-checkbox.is-warning{border-width:.125rem;border-style:solid;border-style:var(--fdInput_State_Border_Type, solid)}.fd-checkbox.is-alert.is-focus,.fd-checkbox.is-alert:focus,.fd-checkbox.is-error.is-focus,.fd-checkbox.is-error:focus,.fd-checkbox.is-information.is-focus,.fd-checkbox.is-information:focus,.fd-checkbox.is-warning.is-focus,.fd-checkbox.is-warning:focus{z-index:5;box-shadow:none;outline-offset:-.25rem}.fd-checkbox.is-disabled,.fd-checkbox:disabled,.fd-checkbox[aria-disabled=true]{pointer-events:none;opacity:.4;opacity:var(--sapContent_DisabledOpacity, .4)}.fd-checkbox.is-disabled::placeholder,.fd-checkbox:disabled::placeholder,.fd-checkbox[aria-disabled=true]::placeholder{color:transparent}.fd-checkbox.is-readonly,.fd-checkbox[aria-readonly=true],.fd-checkbox[readonly]{background-color:#f2f2f280;background-color:var(--sapField_ReadOnly_Background, rgba(242, 242, 242, .5));border-color:#89919a;border-color:var(--sapField_ReadOnly_BorderColor, #89919a)}.fd-checkbox.is-readonly::placeholder,.fd-checkbox[aria-readonly=true]::placeholder,.fd-checkbox[readonly]::placeholder{color:transparent}.fd-checkbox,.fd-checkbox.is-error,.fd-checkbox.is-information,.fd-checkbox.is-success,.fd-checkbox.is-warning{border-style:initial}.fd-checkbox__label{line-height:1.4;line-height:var(--sapContent_LineHeight, 1.4);color:#32363a;color:var(--sapTextColor, #32363a);font-family:\"72\",\"72full\",Arial,Helvetica,sans-serif;font-family:var(--sapFontFamily, \"72\", \"72full\", Arial, Helvetica, sans-serif);font-weight:400;box-sizing:border-box;padding:0;margin:0;border:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;width:-moz-fit-content;width:fit-content;position:relative;max-width:100%;font-size:.875rem;font-size:var(--sapFontSize, .875rem);color:#6a6d70;color:var(--sapContent_LabelColor, #6a6d70);margin-right:.5rem;cursor:text;align-self:flex-start;cursor:pointer;line-height:1rem;padding:.6875rem;display:flex;align-items:center}.fd-checkbox__label:after,.fd-checkbox__label:before{box-sizing:inherit;font-size:inherit}.fd-checkbox__label[dir=rtl],[dir=rtl] .fd-checkbox__label{margin-left:.5rem;margin-right:0}.fd-checkbox__label:before{content:\"\";height:1.375rem;width:1.375rem;min-width:1.375rem;font-size:1rem;font-size:var(--sapFontLargeSize, 1rem);display:inline-flex;justify-content:center;align-items:center;font-family:SAP-icons;background-color:#fff;background-color:var(--sapField_Background, #fff);color:#0854a0;color:var(--fdCheckbox_Selected_Color, var(--sapSelectedColor, #0854a0));border:.0625rem solid #89919a;border:var(--sapField_BorderWidth, .0625rem) solid var(--sapField_BorderColor, #89919a);border-radius:.125rem;border-radius:var(--sapField_BorderCornerRadius, .125rem)}.fd-checkbox__label:after{padding-left:.125rem;position:relative}.fd-checkbox__label[dir=rtl]:after,[dir=rtl] .fd-checkbox__label:after{padding-left:0;padding-right:.125rem}.fd-checkbox__label.is-hover:before,.fd-checkbox__label:hover:before{background-color:#fff;background-color:var(--sapField_Hover_Background, #fff);border-color:#0854a0;border-color:var(--sapField_Hover_BorderColor, #0854a0)}.fd-checkbox__label:focus{outline:0}.fd-checkbox__label--required .fd-checkbox__text,.fd-checkbox__label[aria-required=true] .fd-checkbox__text{padding-right:.5rem}.fd-checkbox__label--required .fd-checkbox__text[dir=rtl],.fd-checkbox__label[aria-required=true] .fd-checkbox__text[dir=rtl],[dir=rtl] .fd-checkbox__label--required .fd-checkbox__text,[dir=rtl] .fd-checkbox__label[aria-required=true] .fd-checkbox__text{padding-right:0;padding-left:.5rem}.fd-checkbox__label--required .fd-checkbox__text:after,.fd-checkbox__label[aria-required=true] .fd-checkbox__text:after{content:\"*\";font-size:.875rem;font-size:var(--sapFontSize, .875rem);font-weight:700;color:#ce3b3b;color:var(--sapField_RequiredColor, #ce3b3b);position:absolute;padding-left:.125rem}.fd-checkbox__label--required .fd-checkbox__text[dir=rtl]:after,.fd-checkbox__label[aria-required=true] .fd-checkbox__text[dir=rtl]:after,[dir=rtl] .fd-checkbox__label--required .fd-checkbox__text:after,[dir=rtl] .fd-checkbox__label[aria-required=true] .fd-checkbox__text:after{padding-left:0;padding-right:.125rem}.fd-checkbox__label-container{font-size:.875rem;font-size:var(--sapFontSize, .875rem);line-height:1.4;line-height:var(--sapContent_LineHeight, 1.4);color:#32363a;color:var(--sapTextColor, #32363a);font-family:\"72\",\"72full\",Arial,Helvetica,sans-serif;font-family:var(--sapFontFamily, \"72\", \"72full\", Arial, Helvetica, sans-serif);font-weight:400;box-sizing:border-box;padding:0;margin:0;border:0;display:flex;align-items:center;width:100%;height:1rem;pointer-events:none}.fd-checkbox__label-container:after,.fd-checkbox__label-container:before{box-sizing:inherit;font-size:inherit}.fd-checkbox__text{font-size:.875rem;font-size:var(--sapFontSize, .875rem);line-height:1.4;line-height:var(--sapContent_LineHeight, 1.4);color:#32363a;color:var(--sapTextColor, #32363a);font-family:\"72\",\"72full\",Arial,Helvetica,sans-serif;font-family:var(--sapFontFamily, \"72\", \"72full\", Arial, Helvetica, sans-serif);font-weight:400;box-sizing:border-box;padding:0;margin:0;border:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-left:.6875rem;margin-right:0}.fd-checkbox__text:after,.fd-checkbox__text:before{box-sizing:inherit;font-size:inherit}.fd-checkbox__text[dir=rtl],[dir=rtl] .fd-checkbox__text{margin-right:.6875rem;margin-left:0}.fd-checkbox:checked+.fd-checkbox__label:before{content:\"\\e05b\"}.fd-checkbox:indeterminate+.fd-checkbox__label:after{content:\"\";width:.75rem;height:.75rem;background-color:#0854a0;background-color:var(--fdCheckbox_Selected_Color, var(--sapSelectedColor, #0854a0));position:absolute;margin-left:.3125rem}.fd-checkbox:indeterminate+.fd-checkbox__label--compact:after{content:\"\";width:.5rem;height:.5rem;background-color:#0854a0;background-color:var(--fdCheckbox_Selected_Color, var(--sapSelectedColor, #0854a0));position:absolute;margin-left:.25rem}.fd-checkbox[dir=rtl]:indeterminate+.fd-checkbox__label:after,[dir=rtl] .fd-checkbox:indeterminate+.fd-checkbox__label:after{margin-left:0;margin-right:.3125rem}.fd-checkbox[dir=rtl]:indeterminate+.fd-checkbox__label--compact:after,[dir=rtl] .fd-checkbox:indeterminate+.fd-checkbox__label--compact:after{margin-left:0;margin-right:.25rem}.fd-checkbox.is-alert+.fd-checkbox__label:before,.fd-checkbox.is-warning+.fd-checkbox__label:before{background-color:#fff;background-color:var(--sapField_WarningBackground, #fff);border:.125rem solid #df6e0c;border:.125rem var(--fdCheckbox_State_Border_Type, solid) var(--sapField_WarningColor, #df6e0c);color:#32363a;color:var(--sapField_TextColor, #32363a)}.fd-checkbox.is-alert+.fd-checkbox__label:after,.fd-checkbox.is-warning+.fd-checkbox__label:after{background-color:#32363a;background-color:var(--sapField_TextColor, #32363a)}.fd-checkbox.is-alert+.fd-checkbox__label.is-hover.is-disabled,.fd-checkbox.is-alert+.fd-checkbox__label.is-hover:disabled,.fd-checkbox.is-alert+.fd-checkbox__label.is-hover[aria-disabled=true],.fd-checkbox.is-alert+.fd-checkbox__label:hover.is-disabled,.fd-checkbox.is-alert+.fd-checkbox__label:hover:disabled,.fd-checkbox.is-alert+.fd-checkbox__label:hover[aria-disabled=true],.fd-checkbox.is-warning+.fd-checkbox__label.is-hover.is-disabled,.fd-checkbox.is-warning+.fd-checkbox__label.is-hover:disabled,.fd-checkbox.is-warning+.fd-checkbox__label.is-hover[aria-disabled=true],.fd-checkbox.is-warning+.fd-checkbox__label:hover.is-disabled,.fd-checkbox.is-warning+.fd-checkbox__label:hover:disabled,.fd-checkbox.is-warning+.fd-checkbox__label:hover[aria-disabled=true]{border-color:#df6e0c;border-color:var(--sapField_WarningColor, #df6e0c)}.fd-checkbox.is-alert+.fd-checkbox__label.is-hover:before,.fd-checkbox.is-alert+.fd-checkbox__label:hover:before,.fd-checkbox.is-warning+.fd-checkbox__label.is-hover:before,.fd-checkbox.is-warning+.fd-checkbox__label:hover:before{background-color:#fff;background-color:var(--sapField_Hover_Background, #fff)}.fd-checkbox.is-error+.fd-checkbox__label:before{background-color:#fff;background-color:var(--sapField_InvalidBackground, #fff);border:.125rem solid #b00;border:.125rem var(--fdCheckbox_State_Border_Type, solid) var(--sapField_InvalidColor, #b00);color:#b00;color:var(--sapField_InvalidColor, #b00)}.fd-checkbox.is-error+.fd-checkbox__label:after{background-color:#b00;background-color:var(--sapField_InvalidColor, #b00)}.fd-checkbox.is-error+.fd-checkbox__label.is-hover.is-disabled,.fd-checkbox.is-error+.fd-checkbox__label.is-hover:disabled,.fd-checkbox.is-error+.fd-checkbox__label.is-hover[aria-disabled=true],.fd-checkbox.is-error+.fd-checkbox__label:hover.is-disabled,.fd-checkbox.is-error+.fd-checkbox__label:hover:disabled,.fd-checkbox.is-error+.fd-checkbox__label:hover[aria-disabled=true]{border-color:#b00;border-color:var(--sapField_InvalidColor, #b00)}.fd-checkbox.is-error+.fd-checkbox__label.is-hover:before,.fd-checkbox.is-error+.fd-checkbox__label:hover:before{background-color:#fff;background-color:var(--sapField_Hover_Background, #fff)}.fd-checkbox.is-success+.fd-checkbox__label:before{background-color:#fff;background-color:var(--sapField_SuccessBackground, #fff);border:.0625rem solid #107e3e;border:var(--sapField_BorderWidth, .0625rem) solid var(--sapField_SuccessColor, #107e3e);color:#107e3e;color:var(--sapField_SuccessColor, #107e3e)}.fd-checkbox.is-success+.fd-checkbox__label:after{background-color:#107e3e;background-color:var(--sapField_SuccessColor, #107e3e)}.fd-checkbox.is-success+.fd-checkbox__label.is-hover.is-disabled,.fd-checkbox.is-success+.fd-checkbox__label.is-hover:disabled,.fd-checkbox.is-success+.fd-checkbox__label.is-hover[aria-disabled=true],.fd-checkbox.is-success+.fd-checkbox__label:hover.is-disabled,.fd-checkbox.is-success+.fd-checkbox__label:hover:disabled,.fd-checkbox.is-success+.fd-checkbox__label:hover[aria-disabled=true]{border-color:#107e3e;border-color:var(--sapField_SuccessColor, #107e3e)}.fd-checkbox.is-success+.fd-checkbox__label.is-hover:before,.fd-checkbox.is-success+.fd-checkbox__label:hover:before{background-color:#fff;background-color:var(--sapField_Hover_Background, #fff)}.fd-checkbox.is-information+.fd-checkbox__label:before{background-color:#fff;background-color:var(--sapField_InformationBackground, #fff);border:.125rem solid #0a6ed1;border:.125rem var(--fdCheckbox_State_Border_Type, solid) var(--sapField_InformationColor, #0a6ed1);color:#0a6ed1;color:var(--sapField_InformationColor, #0a6ed1)}.fd-checkbox.is-information+.fd-checkbox__label:after{background-color:#0a6ed1;background-color:var(--sapField_InformationColor, #0a6ed1)}.fd-checkbox.is-information+.fd-checkbox__label.is-hover.is-disabled,.fd-checkbox.is-information+.fd-checkbox__label.is-hover:disabled,.fd-checkbox.is-information+.fd-checkbox__label.is-hover[aria-disabled=true],.fd-checkbox.is-information+.fd-checkbox__label:hover.is-disabled,.fd-checkbox.is-information+.fd-checkbox__label:hover:disabled,.fd-checkbox.is-information+.fd-checkbox__label:hover[aria-disabled=true]{border-color:#0a6ed1;border-color:var(--sapField_InformationColor, #0a6ed1)}.fd-checkbox.is-information+.fd-checkbox__label.is-hover:before,.fd-checkbox.is-information+.fd-checkbox__label:hover:before{background-color:#fff;background-color:var(--sapField_Hover_Background, #fff)}.fd-checkbox.is-readonly+.fd-checkbox__label:before,.fd-checkbox[readonly]+.fd-checkbox__label:before{background-color:#f2f2f280;background-color:var(--sapField_ReadOnly_Background, rgba(242, 242, 242, .5));border:.0625rem solid #89919a;border:var(--sapField_BorderWidth, .0625rem) solid var(--sapField_ReadOnly_BorderColor, #89919a);color:#6a6d70;color:var(--sapContent_NonInteractiveIconColor, #6a6d70)}.fd-checkbox.is-readonly+.fd-checkbox__label:after,.fd-checkbox[readonly]+.fd-checkbox__label:after{background-color:#6a6d70;background-color:var(--sapContent_NonInteractiveIconColor, #6a6d70)}.fd-checkbox.is-readonly+.fd-checkbox__label.is-hover.is-disabled,.fd-checkbox.is-readonly+.fd-checkbox__label.is-hover:disabled,.fd-checkbox.is-readonly+.fd-checkbox__label.is-hover[aria-disabled=true],.fd-checkbox.is-readonly+.fd-checkbox__label:hover.is-disabled,.fd-checkbox.is-readonly+.fd-checkbox__label:hover:disabled,.fd-checkbox.is-readonly+.fd-checkbox__label:hover[aria-disabled=true],.fd-checkbox[readonly]+.fd-checkbox__label.is-hover.is-disabled,.fd-checkbox[readonly]+.fd-checkbox__label.is-hover:disabled,.fd-checkbox[readonly]+.fd-checkbox__label.is-hover[aria-disabled=true],.fd-checkbox[readonly]+.fd-checkbox__label:hover.is-disabled,.fd-checkbox[readonly]+.fd-checkbox__label:hover:disabled,.fd-checkbox[readonly]+.fd-checkbox__label:hover[aria-disabled=true]{border-color:#89919a;border-color:var(--sapField_ReadOnly_BorderColor, #89919a)}.fd-checkbox.is-readonly+.fd-checkbox__label.is-hover:before,.fd-checkbox.is-readonly+.fd-checkbox__label:hover:before,.fd-checkbox[readonly]+.fd-checkbox__label.is-hover:before,.fd-checkbox[readonly]+.fd-checkbox__label:hover:before{background-color:#fff;background-color:var(--sapField_Hover_Background, #fff)}.fd-checkbox.is-focus,.fd-checkbox:focus{z-index:5}.fd-checkbox.is-focus+.fd-checkbox__label,.fd-checkbox:focus+.fd-checkbox__label{outline:.0625rem dotted #000;outline:var(--sapContent_FocusWidth, .0625rem) var(--sapContent_FocusStyle, dotted) var(--sapContent_FocusColor, #000);outline-offset:-.5625rem}.fd-checkbox.is-disabled,.fd-checkbox:disabled,.fd-checkbox[aria-disabled=true]{opacity:.0001}.fd-checkbox.is-disabled+.fd-checkbox__label,.fd-checkbox:disabled+.fd-checkbox__label,.fd-checkbox[aria-disabled=true]+.fd-checkbox__label{pointer-events:none;opacity:.4}.fd-checkbox--compact>.fd-checkbox__text{margin-left:.5rem}.fd-checkbox--compact>.fd-checkbox__text[dir=rtl],[dir=rtl] .fd-checkbox--compact>.fd-checkbox__text{margin-left:0;margin-right:.5rem}.fd-checkbox--compact+.fd-checkbox__label{padding:.5rem}.fd-checkbox--compact+.fd-checkbox__label:before{font-size:.75rem;font-size:var(--sapFontSmallSize, .75rem);height:1rem;width:1rem;min-width:1rem;margin-left:0}.fd-checkbox--compact+.fd-checkbox__label.is-empty,.fd-checkbox--compact+.fd-checkbox__label:empty{padding:.5rem;margin:0}.fd-checkbox--compact+.fd-checkbox__label.is-empty:after,.fd-checkbox--compact+.fd-checkbox__label.is-empty:before,.fd-checkbox--compact+.fd-checkbox__label:empty:after,.fd-checkbox--compact+.fd-checkbox__label:empty:before{margin-right:0;margin-left:0}.fd-checkbox--compact.is-focus,.fd-checkbox--compact:focus{z-index:5}.fd-checkbox--compact.is-focus+.fd-checkbox__label,.fd-checkbox--compact:focus+.fd-checkbox__label{outline:.0625rem dotted #000;outline:var(--sapContent_FocusWidth, .0625rem) var(--sapContent_FocusStyle, dotted) var(--sapContent_FocusColor, #000);outline-offset:-.375rem}.fd-checkbox__text:empty{margin:0}.fd-checkbox__label{-webkit-user-select:none;user-select:none}\n"], directives: [{ type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
212
192
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.2", ngImport: i0, type: CheckboxComponent, decorators: [{
213
193
  type: Component,
214
194
  args: [{ selector: 'fd-checkbox', encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, providers: [
@@ -217,12 +197,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.2", ngImpor
217
197
  useExisting: forwardRef(() => CheckboxComponent),
218
198
  multi: true
219
199
  }
220
- ], host: { '[attr.tabindex]': '-1' }, template: "<input\n #inputLabel\n type=\"checkbox\"\n class=\"fd-checkbox\"\n [id]=\"inputId\"\n [name]=\"name\"\n [disabled]=\"disabled\"\n [indeterminate]=\"isIndeterminate\"\n [attr.tabindex]=\"tabIndexValue\"\n [attr.aria-label]=\"ariaLabel\"\n [attr.aria-labelledby]=\"ariaLabelledBy\"\n [attr.aria-describedby]=\"ariaDescribedBy\"\n [attr.aria-disabled]=\"disabled\"\n [attr.aria-required]=\"required\"\n [class.fd-checkbox--compact]=\"compact\"\n [class]=\"state ? 'is-' + state : ''\"\n [ngModel]=\"isChecked\"\n (ngModelChange)=\"nextValue()\"\n (keydown)=\"checkByKey($event)\"\n (keyup)=\"handleInputKeyUp($event)\"\n (click)=\"$event.stopPropagation()\"\n (blur)=\"onBlur()\"\n (focus)=\"onFocus()\"\n/>\n\n<label\n class=\"fd-checkbox__label\"\n #labelElement\n [for]=\"inputId\"\n [class]=\"labelClass\"\n [attr.title]=\"title\"\n [class.fd-checkbox__label--compact]=\"compact\"\n [class.fd-checkbox__label--required]=\"required\"\n (click)=\"checkByClick($event)\"\n>\n <div class=\"fd-checkbox__label-container\">\n <ng-container *ngIf=\"label\">\n <span class=\"fd-checkbox__text\">\n {{ label }}\n </span>\n </ng-container>\n\n <ng-container *ngIf=\"!label\">\n <span class=\"fd-checkbox__text\">\n <ng-content></ng-content>\n </span>\n </ng-container>\n </div>\n</label>\n", styles: ["/*!\n * Fundamental Library Styles v0.21.0-rc.92\n * Copyright (c) 2022 SAP SE or an SAP affiliate company.\n * Licensed under Apache License 2.0 (https://github.com/SAP/fundamental-styles/blob/main/LICENSE)\n *//*!\n.fd-checkbox\n*/.fd-checkbox{position:absolute;opacity:.0001}.fd-checkbox{font-size:.875rem;font-size:var(--sapFontSize, .875rem);line-height:1.4;line-height:var(--sapContent_LineHeight, 1.4);color:var(--sapTextColor, #32363a);font-family:\"72\",\"72full\",Arial,Helvetica,sans-serif;font-family:var(--sapFontFamily, \"72\", \"72full\", Arial, Helvetica, sans-serif);font-weight:400;box-sizing:border-box;padding:0;margin:0;border:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#32363a;color:var(--sapField_TextColor, #32363a);background-color:#fff;background-color:var(--sapField_Background, #fff);border-style:solid;border-width:.0625rem;border-width:var(--sapField_BorderWidth, .0625rem);border-color:#89919a;border-color:var(--sapField_BorderColor, #89919a);border-radius:.125rem;border-radius:var(--sapField_BorderCornerRadius, .125rem);outline:0;appearance:none;-webkit-appearance:none;-moz-appearance:none}.fd-checkbox:after,.fd-checkbox:before{box-sizing:inherit;font-size:inherit}.fd-checkbox::placeholder{font-style:italic;color:#74777a;color:var(--sapField_PlaceholderTextColor, #74777a)}.fd-checkbox::selection{color:#fff;color:var(--sapContent_ContrastTextColor, #fff);background-color:#0854a0;background-color:var(--sapSelectedColor, #0854a0)}.fd-checkbox.is-hover,.fd-checkbox:hover{background-color:#fff;background-color:var(--sapField_Hover_Background, #fff);border-color:#0854a0;border-color:var(--sapField_Hover_BorderColor, #0854a0)}.fd-checkbox.is-success{background-color:#fff;background-color:var(--sapField_SuccessBackground, #fff);border-color:#107e3e;border-color:var(--sapField_SuccessColor, #107e3e);border-width:.0625rem;border-width:var(--sapField_SuccessBorderWidth, .0625rem);border-style:solid;border-style:var(--sapField_SuccessBorderStyle, solid)}.fd-checkbox.is-success.is-hover,.fd-checkbox.is-success:hover{background-color:#fff;background-color:var(--sapField_SuccessBackground, #fff);border-color:#107e3e;border-color:var(--sapField_SuccessColor, #107e3e)}.fd-checkbox.is-error{background-color:#fff;background-color:var(--sapField_InvalidBackground, #fff);font-style:normal;font-style:var(--fdInput_State_Text_Style, normal);font-weight:400;font-weight:var(--fdInput_State_Font_Weight, normal);border-color:#b00;border-color:var(--sapField_InvalidColor, #b00);border-width:.125rem;border-width:var(--sapField_InvalidBorderWidth, .125rem);border-style:solid;border-style:var(--sapField_InvalidBorderStyle, solid)}.fd-checkbox.is-error.is-hover,.fd-checkbox.is-error:hover{background-color:#fff;background-color:var(--sapField_InvalidBackground, #fff);border-color:#b00;border-color:var(--sapField_InvalidColor, #b00)}.fd-checkbox.is-alert,.fd-checkbox.is-warning{background-color:#fff;background-color:var(--sapField_WarningBackground, #fff);font-style:normal;font-style:var(--fdInput_State_Text_Style, normal);font-weight:400;font-weight:var(--fdInput_State_Font_Weight, normal);border-color:#df6e0c;border-color:var(--sapField_WarningColor, #df6e0c);border-width:.125rem;border-width:var(--sapField_WarningBorderWidth, .125rem);border-style:solid;border-style:var(--sapField_WarningBorderStyle, solid)}.fd-checkbox.is-alert.is-hover,.fd-checkbox.is-alert:hover,.fd-checkbox.is-warning.is-hover,.fd-checkbox.is-warning:hover{background-color:#fff;background-color:var(--sapField_WarningBackground, #fff);border-color:#df6e0c;border-color:var(--sapField_WarningColor, #df6e0c)}.fd-checkbox.is-information{background-color:#fff;background-color:var(--sapField_InformationBackground, #fff);border-color:#0a6ed1;border-color:var(--sapField_InformationColor, #0a6ed1);border-width:.125rem;border-width:var(--sapField_InformationBorderWidth, .125rem);border-style:solid;border-style:var(--sapField_InformationBorderStyle, solid)}.fd-checkbox.is-information.is-hover,.fd-checkbox.is-information:hover{background-color:#fff;background-color:var(--sapField_InformationBackground, #fff);border-color:#0a6ed1;border-color:var(--sapField_InformationColor, #0a6ed1)}.fd-checkbox.is-focus,.fd-checkbox:focus{z-index:5;box-shadow:none;outline-offset:-.1875rem;outline-width:.0625rem;outline-width:var(--sapContent_FocusWidth, .0625rem);outline-color:#000;outline-color:var(--sapContent_FocusColor, #000);outline-style:dotted;outline-style:var(--sapContent_FocusStyle, dotted)}.fd-checkbox.is-alert,.fd-checkbox.is-error,.fd-checkbox.is-information,.fd-checkbox.is-warning{border-width:.125rem;border-style:solid;border-style:var(--fdInput_State_Border_Type, solid)}.fd-checkbox.is-alert.is-focus,.fd-checkbox.is-alert:focus,.fd-checkbox.is-error.is-focus,.fd-checkbox.is-error:focus,.fd-checkbox.is-information.is-focus,.fd-checkbox.is-information:focus,.fd-checkbox.is-warning.is-focus,.fd-checkbox.is-warning:focus{z-index:5;box-shadow:none;outline-offset:-.25rem}.fd-checkbox.is-disabled,.fd-checkbox:disabled,.fd-checkbox[aria-disabled=true]{pointer-events:none;opacity:.4;opacity:var(--sapContent_DisabledOpacity, .4)}.fd-checkbox.is-disabled::placeholder,.fd-checkbox:disabled::placeholder,.fd-checkbox[aria-disabled=true]::placeholder{color:transparent}.fd-checkbox.is-readonly,.fd-checkbox[aria-readonly=true],.fd-checkbox[readonly]{background-color:#f2f2f280;background-color:var(--sapField_ReadOnly_Background, rgba(242, 242, 242, .5));border-color:#89919a;border-color:var(--sapField_ReadOnly_BorderColor, #89919a)}.fd-checkbox.is-readonly::placeholder,.fd-checkbox[aria-readonly=true]::placeholder,.fd-checkbox[readonly]::placeholder{color:transparent}.fd-checkbox,.fd-checkbox.is-error,.fd-checkbox.is-information,.fd-checkbox.is-success,.fd-checkbox.is-warning{border-style:initial}.fd-checkbox__label{line-height:1.4;line-height:var(--sapContent_LineHeight, 1.4);color:#32363a;color:var(--sapTextColor, #32363a);font-family:\"72\",\"72full\",Arial,Helvetica,sans-serif;font-family:var(--sapFontFamily, \"72\", \"72full\", Arial, Helvetica, sans-serif);font-weight:400;box-sizing:border-box;padding:0;margin:0;border:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;width:-moz-fit-content;width:fit-content;position:relative;max-width:100%;font-size:.875rem;font-size:var(--sapFontSize, .875rem);color:#6a6d70;color:var(--sapContent_LabelColor, #6a6d70);margin-right:.5rem;cursor:text;align-self:flex-start;cursor:pointer;line-height:1rem;padding:.6875rem;display:flex;align-items:center}.fd-checkbox__label:after,.fd-checkbox__label:before{box-sizing:inherit;font-size:inherit}.fd-checkbox__label[dir=rtl],[dir=rtl] .fd-checkbox__label{margin-left:.5rem;margin-right:0}.fd-checkbox__label:before{content:\"\";height:1.375rem;width:1.375rem;min-width:1.375rem;font-size:1rem;font-size:var(--sapFontLargeSize, 1rem);display:inline-flex;justify-content:center;align-items:center;font-family:SAP-icons;background-color:#fff;background-color:var(--sapField_Background, #fff);color:#0854a0;color:var(--fdCheckbox_Selected_Color, var(--sapSelectedColor, #0854a0));border:.0625rem solid #89919a;border:var(--sapField_BorderWidth, .0625rem) solid var(--sapField_BorderColor, #89919a);border-radius:.125rem;border-radius:var(--sapField_BorderCornerRadius, .125rem)}.fd-checkbox__label:after{padding-left:.125rem;position:relative}.fd-checkbox__label[dir=rtl]:after,[dir=rtl] .fd-checkbox__label:after{padding-left:0;padding-right:.125rem}.fd-checkbox__label.is-hover:before,.fd-checkbox__label:hover:before{background-color:#fff;background-color:var(--sapField_Hover_Background, #fff);border-color:#0854a0;border-color:var(--sapField_Hover_BorderColor, #0854a0)}.fd-checkbox__label:focus{outline:0}.fd-checkbox__label--required .fd-checkbox__text,.fd-checkbox__label[aria-required=true] .fd-checkbox__text{padding-right:.5rem}.fd-checkbox__label--required .fd-checkbox__text[dir=rtl],.fd-checkbox__label[aria-required=true] .fd-checkbox__text[dir=rtl],[dir=rtl] .fd-checkbox__label--required .fd-checkbox__text,[dir=rtl] .fd-checkbox__label[aria-required=true] .fd-checkbox__text{padding-right:0;padding-left:.5rem}.fd-checkbox__label--required .fd-checkbox__text:after,.fd-checkbox__label[aria-required=true] .fd-checkbox__text:after{content:\"*\";font-size:.875rem;font-size:var(--sapFontSize, .875rem);font-weight:700;color:#ce3b3b;color:var(--sapField_RequiredColor, #ce3b3b);position:absolute;padding-left:.125rem}.fd-checkbox__label--required .fd-checkbox__text[dir=rtl]:after,.fd-checkbox__label[aria-required=true] .fd-checkbox__text[dir=rtl]:after,[dir=rtl] .fd-checkbox__label--required .fd-checkbox__text:after,[dir=rtl] .fd-checkbox__label[aria-required=true] .fd-checkbox__text:after{padding-left:0;padding-right:.125rem}.fd-checkbox__label-container{font-size:.875rem;font-size:var(--sapFontSize, .875rem);line-height:1.4;line-height:var(--sapContent_LineHeight, 1.4);color:#32363a;color:var(--sapTextColor, #32363a);font-family:\"72\",\"72full\",Arial,Helvetica,sans-serif;font-family:var(--sapFontFamily, \"72\", \"72full\", Arial, Helvetica, sans-serif);font-weight:400;box-sizing:border-box;padding:0;margin:0;border:0;display:flex;align-items:center;width:100%;height:1rem;pointer-events:none}.fd-checkbox__label-container:after,.fd-checkbox__label-container:before{box-sizing:inherit;font-size:inherit}.fd-checkbox__text{font-size:.875rem;font-size:var(--sapFontSize, .875rem);line-height:1.4;line-height:var(--sapContent_LineHeight, 1.4);color:#32363a;color:var(--sapTextColor, #32363a);font-family:\"72\",\"72full\",Arial,Helvetica,sans-serif;font-family:var(--sapFontFamily, \"72\", \"72full\", Arial, Helvetica, sans-serif);font-weight:400;box-sizing:border-box;padding:0;margin:0;border:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-left:.6875rem;margin-right:0}.fd-checkbox__text:after,.fd-checkbox__text:before{box-sizing:inherit;font-size:inherit}.fd-checkbox__text[dir=rtl],[dir=rtl] .fd-checkbox__text{margin-right:.6875rem;margin-left:0}.fd-checkbox:checked+.fd-checkbox__label:before{content:\"\\e05b\"}.fd-checkbox:indeterminate+.fd-checkbox__label:after{content:\"\";width:.75rem;height:.75rem;background-color:#0854a0;background-color:var(--fdCheckbox_Selected_Color, var(--sapSelectedColor, #0854a0));position:absolute;margin-left:.3125rem}.fd-checkbox:indeterminate+.fd-checkbox__label--compact:after{content:\"\";width:.5rem;height:.5rem;background-color:#0854a0;background-color:var(--fdCheckbox_Selected_Color, var(--sapSelectedColor, #0854a0));position:absolute;margin-left:.25rem}.fd-checkbox[dir=rtl]:indeterminate+.fd-checkbox__label:after,[dir=rtl] .fd-checkbox:indeterminate+.fd-checkbox__label:after{margin-left:0;margin-right:.3125rem}.fd-checkbox[dir=rtl]:indeterminate+.fd-checkbox__label--compact:after,[dir=rtl] .fd-checkbox:indeterminate+.fd-checkbox__label--compact:after{margin-left:0;margin-right:.25rem}.fd-checkbox.is-alert+.fd-checkbox__label:before,.fd-checkbox.is-warning+.fd-checkbox__label:before{background-color:#fff;background-color:var(--sapField_WarningBackground, #fff);border:.125rem solid #df6e0c;border:.125rem var(--fdCheckbox_State_Border_Type, solid) var(--sapField_WarningColor, #df6e0c);color:#32363a;color:var(--sapField_TextColor, #32363a)}.fd-checkbox.is-alert+.fd-checkbox__label:after,.fd-checkbox.is-warning+.fd-checkbox__label:after{background-color:#32363a;background-color:var(--sapField_TextColor, #32363a)}.fd-checkbox.is-alert+.fd-checkbox__label.is-hover.is-disabled,.fd-checkbox.is-alert+.fd-checkbox__label.is-hover:disabled,.fd-checkbox.is-alert+.fd-checkbox__label.is-hover[aria-disabled=true],.fd-checkbox.is-alert+.fd-checkbox__label:hover.is-disabled,.fd-checkbox.is-alert+.fd-checkbox__label:hover:disabled,.fd-checkbox.is-alert+.fd-checkbox__label:hover[aria-disabled=true],.fd-checkbox.is-warning+.fd-checkbox__label.is-hover.is-disabled,.fd-checkbox.is-warning+.fd-checkbox__label.is-hover:disabled,.fd-checkbox.is-warning+.fd-checkbox__label.is-hover[aria-disabled=true],.fd-checkbox.is-warning+.fd-checkbox__label:hover.is-disabled,.fd-checkbox.is-warning+.fd-checkbox__label:hover:disabled,.fd-checkbox.is-warning+.fd-checkbox__label:hover[aria-disabled=true]{border-color:#df6e0c;border-color:var(--sapField_WarningColor, #df6e0c)}.fd-checkbox.is-alert+.fd-checkbox__label.is-hover:before,.fd-checkbox.is-alert+.fd-checkbox__label:hover:before,.fd-checkbox.is-warning+.fd-checkbox__label.is-hover:before,.fd-checkbox.is-warning+.fd-checkbox__label:hover:before{background-color:#fff;background-color:var(--sapField_Hover_Background, #fff)}.fd-checkbox.is-error+.fd-checkbox__label:before{background-color:#fff;background-color:var(--sapField_InvalidBackground, #fff);border:.125rem solid #b00;border:.125rem var(--fdCheckbox_State_Border_Type, solid) var(--sapField_InvalidColor, #b00);color:#b00;color:var(--sapField_InvalidColor, #b00)}.fd-checkbox.is-error+.fd-checkbox__label:after{background-color:#b00;background-color:var(--sapField_InvalidColor, #b00)}.fd-checkbox.is-error+.fd-checkbox__label.is-hover.is-disabled,.fd-checkbox.is-error+.fd-checkbox__label.is-hover:disabled,.fd-checkbox.is-error+.fd-checkbox__label.is-hover[aria-disabled=true],.fd-checkbox.is-error+.fd-checkbox__label:hover.is-disabled,.fd-checkbox.is-error+.fd-checkbox__label:hover:disabled,.fd-checkbox.is-error+.fd-checkbox__label:hover[aria-disabled=true]{border-color:#b00;border-color:var(--sapField_InvalidColor, #b00)}.fd-checkbox.is-error+.fd-checkbox__label.is-hover:before,.fd-checkbox.is-error+.fd-checkbox__label:hover:before{background-color:#fff;background-color:var(--sapField_Hover_Background, #fff)}.fd-checkbox.is-success+.fd-checkbox__label:before{background-color:#fff;background-color:var(--sapField_SuccessBackground, #fff);border:.0625rem solid #107e3e;border:var(--sapField_BorderWidth, .0625rem) solid var(--sapField_SuccessColor, #107e3e);color:#107e3e;color:var(--sapField_SuccessColor, #107e3e)}.fd-checkbox.is-success+.fd-checkbox__label:after{background-color:#107e3e;background-color:var(--sapField_SuccessColor, #107e3e)}.fd-checkbox.is-success+.fd-checkbox__label.is-hover.is-disabled,.fd-checkbox.is-success+.fd-checkbox__label.is-hover:disabled,.fd-checkbox.is-success+.fd-checkbox__label.is-hover[aria-disabled=true],.fd-checkbox.is-success+.fd-checkbox__label:hover.is-disabled,.fd-checkbox.is-success+.fd-checkbox__label:hover:disabled,.fd-checkbox.is-success+.fd-checkbox__label:hover[aria-disabled=true]{border-color:#107e3e;border-color:var(--sapField_SuccessColor, #107e3e)}.fd-checkbox.is-success+.fd-checkbox__label.is-hover:before,.fd-checkbox.is-success+.fd-checkbox__label:hover:before{background-color:#fff;background-color:var(--sapField_Hover_Background, #fff)}.fd-checkbox.is-information+.fd-checkbox__label:before{background-color:#fff;background-color:var(--sapField_InformationBackground, #fff);border:.125rem solid #0a6ed1;border:.125rem var(--fdCheckbox_State_Border_Type, solid) var(--sapField_InformationColor, #0a6ed1);color:#0a6ed1;color:var(--sapField_InformationColor, #0a6ed1)}.fd-checkbox.is-information+.fd-checkbox__label:after{background-color:#0a6ed1;background-color:var(--sapField_InformationColor, #0a6ed1)}.fd-checkbox.is-information+.fd-checkbox__label.is-hover.is-disabled,.fd-checkbox.is-information+.fd-checkbox__label.is-hover:disabled,.fd-checkbox.is-information+.fd-checkbox__label.is-hover[aria-disabled=true],.fd-checkbox.is-information+.fd-checkbox__label:hover.is-disabled,.fd-checkbox.is-information+.fd-checkbox__label:hover:disabled,.fd-checkbox.is-information+.fd-checkbox__label:hover[aria-disabled=true]{border-color:#0a6ed1;border-color:var(--sapField_InformationColor, #0a6ed1)}.fd-checkbox.is-information+.fd-checkbox__label.is-hover:before,.fd-checkbox.is-information+.fd-checkbox__label:hover:before{background-color:#fff;background-color:var(--sapField_Hover_Background, #fff)}.fd-checkbox.is-readonly+.fd-checkbox__label:before,.fd-checkbox[readonly]+.fd-checkbox__label:before{background-color:#f2f2f280;background-color:var(--sapField_ReadOnly_Background, rgba(242, 242, 242, .5));border:.0625rem solid #89919a;border:var(--sapField_BorderWidth, .0625rem) solid var(--sapField_ReadOnly_BorderColor, #89919a);color:#6a6d70;color:var(--sapContent_NonInteractiveIconColor, #6a6d70)}.fd-checkbox.is-readonly+.fd-checkbox__label:after,.fd-checkbox[readonly]+.fd-checkbox__label:after{background-color:#6a6d70;background-color:var(--sapContent_NonInteractiveIconColor, #6a6d70)}.fd-checkbox.is-readonly+.fd-checkbox__label.is-hover.is-disabled,.fd-checkbox.is-readonly+.fd-checkbox__label.is-hover:disabled,.fd-checkbox.is-readonly+.fd-checkbox__label.is-hover[aria-disabled=true],.fd-checkbox.is-readonly+.fd-checkbox__label:hover.is-disabled,.fd-checkbox.is-readonly+.fd-checkbox__label:hover:disabled,.fd-checkbox.is-readonly+.fd-checkbox__label:hover[aria-disabled=true],.fd-checkbox[readonly]+.fd-checkbox__label.is-hover.is-disabled,.fd-checkbox[readonly]+.fd-checkbox__label.is-hover:disabled,.fd-checkbox[readonly]+.fd-checkbox__label.is-hover[aria-disabled=true],.fd-checkbox[readonly]+.fd-checkbox__label:hover.is-disabled,.fd-checkbox[readonly]+.fd-checkbox__label:hover:disabled,.fd-checkbox[readonly]+.fd-checkbox__label:hover[aria-disabled=true]{border-color:#89919a;border-color:var(--sapField_ReadOnly_BorderColor, #89919a)}.fd-checkbox.is-readonly+.fd-checkbox__label.is-hover:before,.fd-checkbox.is-readonly+.fd-checkbox__label:hover:before,.fd-checkbox[readonly]+.fd-checkbox__label.is-hover:before,.fd-checkbox[readonly]+.fd-checkbox__label:hover:before{background-color:#fff;background-color:var(--sapField_Hover_Background, #fff)}.fd-checkbox.is-focus,.fd-checkbox:focus{z-index:5}.fd-checkbox.is-focus+.fd-checkbox__label,.fd-checkbox:focus+.fd-checkbox__label{outline:.0625rem dotted #000;outline:var(--sapContent_FocusWidth, .0625rem) var(--sapContent_FocusStyle, dotted) var(--sapContent_FocusColor, #000);outline-offset:-.5625rem}.fd-checkbox.is-disabled,.fd-checkbox:disabled,.fd-checkbox[aria-disabled=true]{opacity:.0001}.fd-checkbox.is-disabled+.fd-checkbox__label,.fd-checkbox:disabled+.fd-checkbox__label,.fd-checkbox[aria-disabled=true]+.fd-checkbox__label{pointer-events:none;opacity:.4}.fd-checkbox--compact>.fd-checkbox__text{margin-left:.5rem}.fd-checkbox--compact>.fd-checkbox__text[dir=rtl],[dir=rtl] .fd-checkbox--compact>.fd-checkbox__text{margin-left:0;margin-right:.5rem}.fd-checkbox--compact+.fd-checkbox__label{padding:.5rem}.fd-checkbox--compact+.fd-checkbox__label:before{font-size:.75rem;font-size:var(--sapFontSmallSize, .75rem);height:1rem;width:1rem;min-width:1rem;margin-left:0}.fd-checkbox--compact+.fd-checkbox__label.is-empty,.fd-checkbox--compact+.fd-checkbox__label:empty{padding:.5rem;margin:0}.fd-checkbox--compact+.fd-checkbox__label.is-empty:after,.fd-checkbox--compact+.fd-checkbox__label.is-empty:before,.fd-checkbox--compact+.fd-checkbox__label:empty:after,.fd-checkbox--compact+.fd-checkbox__label:empty:before{margin-right:0;margin-left:0}.fd-checkbox--compact.is-focus,.fd-checkbox--compact:focus{z-index:5}.fd-checkbox--compact.is-focus+.fd-checkbox__label,.fd-checkbox--compact:focus+.fd-checkbox__label{outline:.0625rem dotted #000;outline:var(--sapContent_FocusWidth, .0625rem) var(--sapContent_FocusStyle, dotted) var(--sapContent_FocusColor, #000);outline-offset:-.375rem}.fd-checkbox__text:empty{margin:0}\n"] }]
200
+ ], host: { '[attr.tabindex]': '-1' }, template: "<input\n #inputElement\n type=\"checkbox\"\n class=\"fd-checkbox\"\n [id]=\"inputId\"\n [name]=\"name\"\n [disabled]=\"disabled\"\n [indeterminate]=\"isIndeterminate\"\n [checked]=\"isChecked\"\n [attr.tabindex]=\"tabIndexValue\"\n [attr.aria-label]=\"ariaLabel\"\n [attr.aria-labelledby]=\"ariaLabelledBy\"\n [attr.aria-describedby]=\"ariaDescribedBy\"\n [attr.aria-disabled]=\"disabled\"\n [attr.aria-required]=\"required\"\n [class.fd-checkbox--compact]=\"compact\"\n [class]=\"state ? 'is-' + state : ''\"\n (click)=\"_onInputClick($event)\"\n (blur)=\"_onBlur()\"\n (focus)=\"_onFocus()\"\n/>\n\n<label\n class=\"fd-checkbox__label\"\n #labelElement\n [for]=\"inputId\"\n [class]=\"labelClass\"\n [attr.title]=\"title\"\n [class.fd-checkbox__label--compact]=\"compact\"\n [class.fd-checkbox__label--required]=\"required\"\n (click)=\"_onLabelClick($event)\"\n>\n <div class=\"fd-checkbox__label-container\">\n <ng-container *ngIf=\"label\">\n <span class=\"fd-checkbox__text\">\n {{ label }}\n </span>\n </ng-container>\n\n <ng-container *ngIf=\"!label\">\n <span class=\"fd-checkbox__text\">\n <ng-content></ng-content>\n </span>\n </ng-container>\n </div>\n</label>\n", styles: ["/*!\n * Fundamental Library Styles v0.21.0-rc.92\n * Copyright (c) 2022 SAP SE or an SAP affiliate company.\n * Licensed under Apache License 2.0 (https://github.com/SAP/fundamental-styles/blob/main/LICENSE)\n *//*!\n.fd-checkbox\n*/.fd-checkbox{position:absolute;opacity:.0001}.fd-checkbox{font-size:.875rem;font-size:var(--sapFontSize, .875rem);line-height:1.4;line-height:var(--sapContent_LineHeight, 1.4);color:var(--sapTextColor, #32363a);font-family:\"72\",\"72full\",Arial,Helvetica,sans-serif;font-family:var(--sapFontFamily, \"72\", \"72full\", Arial, Helvetica, sans-serif);font-weight:400;box-sizing:border-box;padding:0;margin:0;border:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#32363a;color:var(--sapField_TextColor, #32363a);background-color:#fff;background-color:var(--sapField_Background, #fff);border-style:solid;border-width:.0625rem;border-width:var(--sapField_BorderWidth, .0625rem);border-color:#89919a;border-color:var(--sapField_BorderColor, #89919a);border-radius:.125rem;border-radius:var(--sapField_BorderCornerRadius, .125rem);outline:0;appearance:none;-webkit-appearance:none;-moz-appearance:none}.fd-checkbox:after,.fd-checkbox:before{box-sizing:inherit;font-size:inherit}.fd-checkbox::placeholder{font-style:italic;color:#74777a;color:var(--sapField_PlaceholderTextColor, #74777a)}.fd-checkbox::selection{color:#fff;color:var(--sapContent_ContrastTextColor, #fff);background-color:#0854a0;background-color:var(--sapSelectedColor, #0854a0)}.fd-checkbox.is-hover,.fd-checkbox:hover{background-color:#fff;background-color:var(--sapField_Hover_Background, #fff);border-color:#0854a0;border-color:var(--sapField_Hover_BorderColor, #0854a0)}.fd-checkbox.is-success{background-color:#fff;background-color:var(--sapField_SuccessBackground, #fff);border-color:#107e3e;border-color:var(--sapField_SuccessColor, #107e3e);border-width:.0625rem;border-width:var(--sapField_SuccessBorderWidth, .0625rem);border-style:solid;border-style:var(--sapField_SuccessBorderStyle, solid)}.fd-checkbox.is-success.is-hover,.fd-checkbox.is-success:hover{background-color:#fff;background-color:var(--sapField_SuccessBackground, #fff);border-color:#107e3e;border-color:var(--sapField_SuccessColor, #107e3e)}.fd-checkbox.is-error{background-color:#fff;background-color:var(--sapField_InvalidBackground, #fff);font-style:normal;font-style:var(--fdInput_State_Text_Style, normal);font-weight:400;font-weight:var(--fdInput_State_Font_Weight, normal);border-color:#b00;border-color:var(--sapField_InvalidColor, #b00);border-width:.125rem;border-width:var(--sapField_InvalidBorderWidth, .125rem);border-style:solid;border-style:var(--sapField_InvalidBorderStyle, solid)}.fd-checkbox.is-error.is-hover,.fd-checkbox.is-error:hover{background-color:#fff;background-color:var(--sapField_InvalidBackground, #fff);border-color:#b00;border-color:var(--sapField_InvalidColor, #b00)}.fd-checkbox.is-alert,.fd-checkbox.is-warning{background-color:#fff;background-color:var(--sapField_WarningBackground, #fff);font-style:normal;font-style:var(--fdInput_State_Text_Style, normal);font-weight:400;font-weight:var(--fdInput_State_Font_Weight, normal);border-color:#df6e0c;border-color:var(--sapField_WarningColor, #df6e0c);border-width:.125rem;border-width:var(--sapField_WarningBorderWidth, .125rem);border-style:solid;border-style:var(--sapField_WarningBorderStyle, solid)}.fd-checkbox.is-alert.is-hover,.fd-checkbox.is-alert:hover,.fd-checkbox.is-warning.is-hover,.fd-checkbox.is-warning:hover{background-color:#fff;background-color:var(--sapField_WarningBackground, #fff);border-color:#df6e0c;border-color:var(--sapField_WarningColor, #df6e0c)}.fd-checkbox.is-information{background-color:#fff;background-color:var(--sapField_InformationBackground, #fff);border-color:#0a6ed1;border-color:var(--sapField_InformationColor, #0a6ed1);border-width:.125rem;border-width:var(--sapField_InformationBorderWidth, .125rem);border-style:solid;border-style:var(--sapField_InformationBorderStyle, solid)}.fd-checkbox.is-information.is-hover,.fd-checkbox.is-information:hover{background-color:#fff;background-color:var(--sapField_InformationBackground, #fff);border-color:#0a6ed1;border-color:var(--sapField_InformationColor, #0a6ed1)}.fd-checkbox.is-focus,.fd-checkbox:focus{z-index:5;box-shadow:none;outline-offset:-.1875rem;outline-width:.0625rem;outline-width:var(--sapContent_FocusWidth, .0625rem);outline-color:#000;outline-color:var(--sapContent_FocusColor, #000);outline-style:dotted;outline-style:var(--sapContent_FocusStyle, dotted)}.fd-checkbox.is-alert,.fd-checkbox.is-error,.fd-checkbox.is-information,.fd-checkbox.is-warning{border-width:.125rem;border-style:solid;border-style:var(--fdInput_State_Border_Type, solid)}.fd-checkbox.is-alert.is-focus,.fd-checkbox.is-alert:focus,.fd-checkbox.is-error.is-focus,.fd-checkbox.is-error:focus,.fd-checkbox.is-information.is-focus,.fd-checkbox.is-information:focus,.fd-checkbox.is-warning.is-focus,.fd-checkbox.is-warning:focus{z-index:5;box-shadow:none;outline-offset:-.25rem}.fd-checkbox.is-disabled,.fd-checkbox:disabled,.fd-checkbox[aria-disabled=true]{pointer-events:none;opacity:.4;opacity:var(--sapContent_DisabledOpacity, .4)}.fd-checkbox.is-disabled::placeholder,.fd-checkbox:disabled::placeholder,.fd-checkbox[aria-disabled=true]::placeholder{color:transparent}.fd-checkbox.is-readonly,.fd-checkbox[aria-readonly=true],.fd-checkbox[readonly]{background-color:#f2f2f280;background-color:var(--sapField_ReadOnly_Background, rgba(242, 242, 242, .5));border-color:#89919a;border-color:var(--sapField_ReadOnly_BorderColor, #89919a)}.fd-checkbox.is-readonly::placeholder,.fd-checkbox[aria-readonly=true]::placeholder,.fd-checkbox[readonly]::placeholder{color:transparent}.fd-checkbox,.fd-checkbox.is-error,.fd-checkbox.is-information,.fd-checkbox.is-success,.fd-checkbox.is-warning{border-style:initial}.fd-checkbox__label{line-height:1.4;line-height:var(--sapContent_LineHeight, 1.4);color:#32363a;color:var(--sapTextColor, #32363a);font-family:\"72\",\"72full\",Arial,Helvetica,sans-serif;font-family:var(--sapFontFamily, \"72\", \"72full\", Arial, Helvetica, sans-serif);font-weight:400;box-sizing:border-box;padding:0;margin:0;border:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;width:-moz-fit-content;width:fit-content;position:relative;max-width:100%;font-size:.875rem;font-size:var(--sapFontSize, .875rem);color:#6a6d70;color:var(--sapContent_LabelColor, #6a6d70);margin-right:.5rem;cursor:text;align-self:flex-start;cursor:pointer;line-height:1rem;padding:.6875rem;display:flex;align-items:center}.fd-checkbox__label:after,.fd-checkbox__label:before{box-sizing:inherit;font-size:inherit}.fd-checkbox__label[dir=rtl],[dir=rtl] .fd-checkbox__label{margin-left:.5rem;margin-right:0}.fd-checkbox__label:before{content:\"\";height:1.375rem;width:1.375rem;min-width:1.375rem;font-size:1rem;font-size:var(--sapFontLargeSize, 1rem);display:inline-flex;justify-content:center;align-items:center;font-family:SAP-icons;background-color:#fff;background-color:var(--sapField_Background, #fff);color:#0854a0;color:var(--fdCheckbox_Selected_Color, var(--sapSelectedColor, #0854a0));border:.0625rem solid #89919a;border:var(--sapField_BorderWidth, .0625rem) solid var(--sapField_BorderColor, #89919a);border-radius:.125rem;border-radius:var(--sapField_BorderCornerRadius, .125rem)}.fd-checkbox__label:after{padding-left:.125rem;position:relative}.fd-checkbox__label[dir=rtl]:after,[dir=rtl] .fd-checkbox__label:after{padding-left:0;padding-right:.125rem}.fd-checkbox__label.is-hover:before,.fd-checkbox__label:hover:before{background-color:#fff;background-color:var(--sapField_Hover_Background, #fff);border-color:#0854a0;border-color:var(--sapField_Hover_BorderColor, #0854a0)}.fd-checkbox__label:focus{outline:0}.fd-checkbox__label--required .fd-checkbox__text,.fd-checkbox__label[aria-required=true] .fd-checkbox__text{padding-right:.5rem}.fd-checkbox__label--required .fd-checkbox__text[dir=rtl],.fd-checkbox__label[aria-required=true] .fd-checkbox__text[dir=rtl],[dir=rtl] .fd-checkbox__label--required .fd-checkbox__text,[dir=rtl] .fd-checkbox__label[aria-required=true] .fd-checkbox__text{padding-right:0;padding-left:.5rem}.fd-checkbox__label--required .fd-checkbox__text:after,.fd-checkbox__label[aria-required=true] .fd-checkbox__text:after{content:\"*\";font-size:.875rem;font-size:var(--sapFontSize, .875rem);font-weight:700;color:#ce3b3b;color:var(--sapField_RequiredColor, #ce3b3b);position:absolute;padding-left:.125rem}.fd-checkbox__label--required .fd-checkbox__text[dir=rtl]:after,.fd-checkbox__label[aria-required=true] .fd-checkbox__text[dir=rtl]:after,[dir=rtl] .fd-checkbox__label--required .fd-checkbox__text:after,[dir=rtl] .fd-checkbox__label[aria-required=true] .fd-checkbox__text:after{padding-left:0;padding-right:.125rem}.fd-checkbox__label-container{font-size:.875rem;font-size:var(--sapFontSize, .875rem);line-height:1.4;line-height:var(--sapContent_LineHeight, 1.4);color:#32363a;color:var(--sapTextColor, #32363a);font-family:\"72\",\"72full\",Arial,Helvetica,sans-serif;font-family:var(--sapFontFamily, \"72\", \"72full\", Arial, Helvetica, sans-serif);font-weight:400;box-sizing:border-box;padding:0;margin:0;border:0;display:flex;align-items:center;width:100%;height:1rem;pointer-events:none}.fd-checkbox__label-container:after,.fd-checkbox__label-container:before{box-sizing:inherit;font-size:inherit}.fd-checkbox__text{font-size:.875rem;font-size:var(--sapFontSize, .875rem);line-height:1.4;line-height:var(--sapContent_LineHeight, 1.4);color:#32363a;color:var(--sapTextColor, #32363a);font-family:\"72\",\"72full\",Arial,Helvetica,sans-serif;font-family:var(--sapFontFamily, \"72\", \"72full\", Arial, Helvetica, sans-serif);font-weight:400;box-sizing:border-box;padding:0;margin:0;border:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-left:.6875rem;margin-right:0}.fd-checkbox__text:after,.fd-checkbox__text:before{box-sizing:inherit;font-size:inherit}.fd-checkbox__text[dir=rtl],[dir=rtl] .fd-checkbox__text{margin-right:.6875rem;margin-left:0}.fd-checkbox:checked+.fd-checkbox__label:before{content:\"\\e05b\"}.fd-checkbox:indeterminate+.fd-checkbox__label:after{content:\"\";width:.75rem;height:.75rem;background-color:#0854a0;background-color:var(--fdCheckbox_Selected_Color, var(--sapSelectedColor, #0854a0));position:absolute;margin-left:.3125rem}.fd-checkbox:indeterminate+.fd-checkbox__label--compact:after{content:\"\";width:.5rem;height:.5rem;background-color:#0854a0;background-color:var(--fdCheckbox_Selected_Color, var(--sapSelectedColor, #0854a0));position:absolute;margin-left:.25rem}.fd-checkbox[dir=rtl]:indeterminate+.fd-checkbox__label:after,[dir=rtl] .fd-checkbox:indeterminate+.fd-checkbox__label:after{margin-left:0;margin-right:.3125rem}.fd-checkbox[dir=rtl]:indeterminate+.fd-checkbox__label--compact:after,[dir=rtl] .fd-checkbox:indeterminate+.fd-checkbox__label--compact:after{margin-left:0;margin-right:.25rem}.fd-checkbox.is-alert+.fd-checkbox__label:before,.fd-checkbox.is-warning+.fd-checkbox__label:before{background-color:#fff;background-color:var(--sapField_WarningBackground, #fff);border:.125rem solid #df6e0c;border:.125rem var(--fdCheckbox_State_Border_Type, solid) var(--sapField_WarningColor, #df6e0c);color:#32363a;color:var(--sapField_TextColor, #32363a)}.fd-checkbox.is-alert+.fd-checkbox__label:after,.fd-checkbox.is-warning+.fd-checkbox__label:after{background-color:#32363a;background-color:var(--sapField_TextColor, #32363a)}.fd-checkbox.is-alert+.fd-checkbox__label.is-hover.is-disabled,.fd-checkbox.is-alert+.fd-checkbox__label.is-hover:disabled,.fd-checkbox.is-alert+.fd-checkbox__label.is-hover[aria-disabled=true],.fd-checkbox.is-alert+.fd-checkbox__label:hover.is-disabled,.fd-checkbox.is-alert+.fd-checkbox__label:hover:disabled,.fd-checkbox.is-alert+.fd-checkbox__label:hover[aria-disabled=true],.fd-checkbox.is-warning+.fd-checkbox__label.is-hover.is-disabled,.fd-checkbox.is-warning+.fd-checkbox__label.is-hover:disabled,.fd-checkbox.is-warning+.fd-checkbox__label.is-hover[aria-disabled=true],.fd-checkbox.is-warning+.fd-checkbox__label:hover.is-disabled,.fd-checkbox.is-warning+.fd-checkbox__label:hover:disabled,.fd-checkbox.is-warning+.fd-checkbox__label:hover[aria-disabled=true]{border-color:#df6e0c;border-color:var(--sapField_WarningColor, #df6e0c)}.fd-checkbox.is-alert+.fd-checkbox__label.is-hover:before,.fd-checkbox.is-alert+.fd-checkbox__label:hover:before,.fd-checkbox.is-warning+.fd-checkbox__label.is-hover:before,.fd-checkbox.is-warning+.fd-checkbox__label:hover:before{background-color:#fff;background-color:var(--sapField_Hover_Background, #fff)}.fd-checkbox.is-error+.fd-checkbox__label:before{background-color:#fff;background-color:var(--sapField_InvalidBackground, #fff);border:.125rem solid #b00;border:.125rem var(--fdCheckbox_State_Border_Type, solid) var(--sapField_InvalidColor, #b00);color:#b00;color:var(--sapField_InvalidColor, #b00)}.fd-checkbox.is-error+.fd-checkbox__label:after{background-color:#b00;background-color:var(--sapField_InvalidColor, #b00)}.fd-checkbox.is-error+.fd-checkbox__label.is-hover.is-disabled,.fd-checkbox.is-error+.fd-checkbox__label.is-hover:disabled,.fd-checkbox.is-error+.fd-checkbox__label.is-hover[aria-disabled=true],.fd-checkbox.is-error+.fd-checkbox__label:hover.is-disabled,.fd-checkbox.is-error+.fd-checkbox__label:hover:disabled,.fd-checkbox.is-error+.fd-checkbox__label:hover[aria-disabled=true]{border-color:#b00;border-color:var(--sapField_InvalidColor, #b00)}.fd-checkbox.is-error+.fd-checkbox__label.is-hover:before,.fd-checkbox.is-error+.fd-checkbox__label:hover:before{background-color:#fff;background-color:var(--sapField_Hover_Background, #fff)}.fd-checkbox.is-success+.fd-checkbox__label:before{background-color:#fff;background-color:var(--sapField_SuccessBackground, #fff);border:.0625rem solid #107e3e;border:var(--sapField_BorderWidth, .0625rem) solid var(--sapField_SuccessColor, #107e3e);color:#107e3e;color:var(--sapField_SuccessColor, #107e3e)}.fd-checkbox.is-success+.fd-checkbox__label:after{background-color:#107e3e;background-color:var(--sapField_SuccessColor, #107e3e)}.fd-checkbox.is-success+.fd-checkbox__label.is-hover.is-disabled,.fd-checkbox.is-success+.fd-checkbox__label.is-hover:disabled,.fd-checkbox.is-success+.fd-checkbox__label.is-hover[aria-disabled=true],.fd-checkbox.is-success+.fd-checkbox__label:hover.is-disabled,.fd-checkbox.is-success+.fd-checkbox__label:hover:disabled,.fd-checkbox.is-success+.fd-checkbox__label:hover[aria-disabled=true]{border-color:#107e3e;border-color:var(--sapField_SuccessColor, #107e3e)}.fd-checkbox.is-success+.fd-checkbox__label.is-hover:before,.fd-checkbox.is-success+.fd-checkbox__label:hover:before{background-color:#fff;background-color:var(--sapField_Hover_Background, #fff)}.fd-checkbox.is-information+.fd-checkbox__label:before{background-color:#fff;background-color:var(--sapField_InformationBackground, #fff);border:.125rem solid #0a6ed1;border:.125rem var(--fdCheckbox_State_Border_Type, solid) var(--sapField_InformationColor, #0a6ed1);color:#0a6ed1;color:var(--sapField_InformationColor, #0a6ed1)}.fd-checkbox.is-information+.fd-checkbox__label:after{background-color:#0a6ed1;background-color:var(--sapField_InformationColor, #0a6ed1)}.fd-checkbox.is-information+.fd-checkbox__label.is-hover.is-disabled,.fd-checkbox.is-information+.fd-checkbox__label.is-hover:disabled,.fd-checkbox.is-information+.fd-checkbox__label.is-hover[aria-disabled=true],.fd-checkbox.is-information+.fd-checkbox__label:hover.is-disabled,.fd-checkbox.is-information+.fd-checkbox__label:hover:disabled,.fd-checkbox.is-information+.fd-checkbox__label:hover[aria-disabled=true]{border-color:#0a6ed1;border-color:var(--sapField_InformationColor, #0a6ed1)}.fd-checkbox.is-information+.fd-checkbox__label.is-hover:before,.fd-checkbox.is-information+.fd-checkbox__label:hover:before{background-color:#fff;background-color:var(--sapField_Hover_Background, #fff)}.fd-checkbox.is-readonly+.fd-checkbox__label:before,.fd-checkbox[readonly]+.fd-checkbox__label:before{background-color:#f2f2f280;background-color:var(--sapField_ReadOnly_Background, rgba(242, 242, 242, .5));border:.0625rem solid #89919a;border:var(--sapField_BorderWidth, .0625rem) solid var(--sapField_ReadOnly_BorderColor, #89919a);color:#6a6d70;color:var(--sapContent_NonInteractiveIconColor, #6a6d70)}.fd-checkbox.is-readonly+.fd-checkbox__label:after,.fd-checkbox[readonly]+.fd-checkbox__label:after{background-color:#6a6d70;background-color:var(--sapContent_NonInteractiveIconColor, #6a6d70)}.fd-checkbox.is-readonly+.fd-checkbox__label.is-hover.is-disabled,.fd-checkbox.is-readonly+.fd-checkbox__label.is-hover:disabled,.fd-checkbox.is-readonly+.fd-checkbox__label.is-hover[aria-disabled=true],.fd-checkbox.is-readonly+.fd-checkbox__label:hover.is-disabled,.fd-checkbox.is-readonly+.fd-checkbox__label:hover:disabled,.fd-checkbox.is-readonly+.fd-checkbox__label:hover[aria-disabled=true],.fd-checkbox[readonly]+.fd-checkbox__label.is-hover.is-disabled,.fd-checkbox[readonly]+.fd-checkbox__label.is-hover:disabled,.fd-checkbox[readonly]+.fd-checkbox__label.is-hover[aria-disabled=true],.fd-checkbox[readonly]+.fd-checkbox__label:hover.is-disabled,.fd-checkbox[readonly]+.fd-checkbox__label:hover:disabled,.fd-checkbox[readonly]+.fd-checkbox__label:hover[aria-disabled=true]{border-color:#89919a;border-color:var(--sapField_ReadOnly_BorderColor, #89919a)}.fd-checkbox.is-readonly+.fd-checkbox__label.is-hover:before,.fd-checkbox.is-readonly+.fd-checkbox__label:hover:before,.fd-checkbox[readonly]+.fd-checkbox__label.is-hover:before,.fd-checkbox[readonly]+.fd-checkbox__label:hover:before{background-color:#fff;background-color:var(--sapField_Hover_Background, #fff)}.fd-checkbox.is-focus,.fd-checkbox:focus{z-index:5}.fd-checkbox.is-focus+.fd-checkbox__label,.fd-checkbox:focus+.fd-checkbox__label{outline:.0625rem dotted #000;outline:var(--sapContent_FocusWidth, .0625rem) var(--sapContent_FocusStyle, dotted) var(--sapContent_FocusColor, #000);outline-offset:-.5625rem}.fd-checkbox.is-disabled,.fd-checkbox:disabled,.fd-checkbox[aria-disabled=true]{opacity:.0001}.fd-checkbox.is-disabled+.fd-checkbox__label,.fd-checkbox:disabled+.fd-checkbox__label,.fd-checkbox[aria-disabled=true]+.fd-checkbox__label{pointer-events:none;opacity:.4}.fd-checkbox--compact>.fd-checkbox__text{margin-left:.5rem}.fd-checkbox--compact>.fd-checkbox__text[dir=rtl],[dir=rtl] .fd-checkbox--compact>.fd-checkbox__text{margin-left:0;margin-right:.5rem}.fd-checkbox--compact+.fd-checkbox__label{padding:.5rem}.fd-checkbox--compact+.fd-checkbox__label:before{font-size:.75rem;font-size:var(--sapFontSmallSize, .75rem);height:1rem;width:1rem;min-width:1rem;margin-left:0}.fd-checkbox--compact+.fd-checkbox__label.is-empty,.fd-checkbox--compact+.fd-checkbox__label:empty{padding:.5rem;margin:0}.fd-checkbox--compact+.fd-checkbox__label.is-empty:after,.fd-checkbox--compact+.fd-checkbox__label.is-empty:before,.fd-checkbox--compact+.fd-checkbox__label:empty:after,.fd-checkbox--compact+.fd-checkbox__label:empty:before{margin-right:0;margin-left:0}.fd-checkbox--compact.is-focus,.fd-checkbox--compact:focus{z-index:5}.fd-checkbox--compact.is-focus+.fd-checkbox__label,.fd-checkbox--compact:focus+.fd-checkbox__label{outline:.0625rem dotted #000;outline:var(--sapContent_FocusWidth, .0625rem) var(--sapContent_FocusStyle, dotted) var(--sapContent_FocusColor, #000);outline-offset:-.375rem}.fd-checkbox__text:empty{margin:0}.fd-checkbox__label{-webkit-user-select:none;user-select:none}\n"] }]
221
201
  }], ctorParameters: function () {
222
202
  return [{ type: i0.ElementRef }, { type: undefined, decorators: [{
223
203
  type: Attribute,
224
204
  args: ['tabIndexValue']
225
- }] }, { type: i1.Platform }, { type: i0.ChangeDetectorRef }, { type: i2.ContentDensityService, decorators: [{
205
+ }] }, { type: i0.ChangeDetectorRef }, { type: i0.Renderer2 }, { type: i1.ContentDensityService, decorators: [{
226
206
  type: Optional
227
207
  }] }, { type: undefined, decorators: [{
228
208
  type: Optional
@@ -230,14 +210,16 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.2", ngImpor
230
210
  type: Inject,
231
211
  args: [LIST_ITEM_COMPONENT]
232
212
  }] }];
233
- }, propDecorators: { inputLabel: [{
213
+ }, propDecorators: { inputElement: [{
234
214
  type: ViewChild,
235
- args: ['inputLabel']
215
+ args: ['inputElement']
236
216
  }], labelElement: [{
237
217
  type: ViewChild,
238
218
  args: ['labelElement']
239
219
  }], ariaLabel: [{
240
220
  type: Input
221
+ }], value: [{
222
+ type: Input
241
223
  }], ariaLabelledBy: [{
242
224
  type: Input
243
225
  }], ariaDescribedBy: [{
@@ -1 +1 @@
1
- {"version":3,"file":"fundamental-ngx-core-checkbox.mjs","sources":["../../../../../libs/core/src/lib/checkbox/checkbox/checkbox.component.ts","../../../../../libs/core/src/lib/checkbox/checkbox/checkbox.component.html","../../../../../libs/core/src/lib/checkbox/checkbox.module.ts","../../../../../libs/core/src/lib/checkbox/fundamental-ngx-core-checkbox.ts"],"sourcesContent":["import {\n Attribute,\n ChangeDetectionStrategy,\n ChangeDetectorRef,\n Component,\n ElementRef,\n EventEmitter,\n forwardRef,\n HostBinding,\n Inject,\n Input,\n OnDestroy,\n OnInit,\n Optional,\n Output,\n ViewChild,\n ViewEncapsulation\n} from '@angular/core';\nimport { ControlValueAccessor, NG_VALUE_ACCESSOR } from '@angular/forms';\nimport { FdCheckboxValues } from './fd-checkbox-values.interface';\nimport { Platform } from '@angular/cdk/platform';\nimport { LIST_ITEM_COMPONENT, ListItemInterface, KeyUtil, ContentDensityService } from '@fundamental-ngx/core/utils';\nimport equal from 'fast-deep-equal';\nimport { SPACE } from '@angular/cdk/keycodes';\nimport { Subscription } from 'rxjs';\nimport { FormStates } from '@fundamental-ngx/core/shared';\n\nlet checkboxUniqueId = 0;\n\nexport type fdCheckboxTypes = 'checked' | 'unchecked' | 'indeterminate' | 'force-checked';\n\n@Component({\n selector: 'fd-checkbox',\n templateUrl: './checkbox.component.html',\n styleUrls: ['./checkbox.component.scss'],\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: [\n {\n provide: NG_VALUE_ACCESSOR,\n useExisting: forwardRef(() => CheckboxComponent),\n multi: true\n }\n ],\n host: { '[attr.tabindex]': '-1' }\n})\nexport class CheckboxComponent implements ControlValueAccessor, OnInit, OnDestroy {\n /** @hidden */\n @ViewChild('inputLabel')\n inputLabel: ElementRef;\n\n /** @hidden */\n @ViewChild('labelElement')\n labelElement: ElementRef;\n\n /** Sets the `aria-label` attribute to the element. */\n @Input()\n ariaLabel = '';\n\n /** Sets the `aria-labelledby` attribute to the element. */\n @Input()\n ariaLabelledBy = null;\n\n /** Sets the `aria-describedby` attribute to the element. */\n @Input()\n ariaDescribedBy: string;\n\n /** sets checkbox tooltip */\n @Input()\n title: string;\n\n /** Sets [id] property of input, binds input with input label using [for] property. */\n @Input()\n inputId = `fd-checkbox-${checkboxUniqueId++}`;\n\n /** State of control, changes visual appearance of control. */\n @Input()\n state: FormStates;\n\n /** Sets [name] property of input. */\n @Input()\n name: string;\n\n /** Sets text of control label. */\n @Input()\n label: string;\n\n /** Allows to disable/enable control. */\n @Input()\n disabled: boolean;\n\n /** Allows to minimize control to compact mode. */\n @Input()\n compact?: boolean;\n\n /** Enables controls third state. */\n @Input()\n tristate: boolean;\n\n /** Allows to prevent user from manually selecting controls third state. */\n @Input()\n tristateSelectable = true;\n\n /** Assigns given class to checkbox label element */\n @Input()\n labelClass: string;\n\n /** If it is mandatory field */\n @Input()\n required = false;\n\n /** @hidden */\n private _subscriptions = new Subscription();\n\n /** Sets values returned by control. */\n // eslint-disable-next-line @angular-eslint/no-input-rename\n @Input('values')\n set _values(checkboxValues: FdCheckboxValues) {\n this.values = { ...this.values, ...checkboxValues };\n }\n\n /** @hidden */\n @HostBinding('style.position')\n readonly position = 'relative';\n\n /** @hidden */\n @HostBinding('style.outline')\n readonly outline = 'none';\n\n /** Emits event on focus change */\n @Output() focusChange: EventEmitter<boolean> = new EventEmitter<boolean>();\n\n /** Values returned by control. */\n public values: FdCheckboxValues = { trueValue: true, falseValue: false, thirdStateValue: null };\n /** Stores current checkbox value. */\n public checkboxValue: any;\n /** Stores current checkbox state. */\n public checkboxState: fdCheckboxTypes;\n /** @hidden */\n private _previousState: fdCheckboxTypes;\n\n /** @hidden Reference to callback provided by FormControl.*/\n public onTouched = (): void => {};\n /** @hidden Reference to callback provided by FormControl.*/\n public onValueChange: (value: any) => void = () => {};\n\n /** @hidden */\n constructor(\n public elementRef: ElementRef,\n @Attribute('tabIndexValue') public tabIndexValue: number = 0,\n private _platform: Platform,\n private _changeDetectorRef: ChangeDetectorRef,\n @Optional() private _contentDensityService: ContentDensityService,\n @Optional() @Inject(LIST_ITEM_COMPONENT) private _listItemComponent: ListItemInterface\n ) {\n this.tabIndexValue = tabIndexValue;\n }\n\n /** @hidden */\n ngOnInit(): void {\n if (this.compact === undefined && this._contentDensityService) {\n this._subscriptions.add(\n this._contentDensityService._isCompactDensity.subscribe((isCompact) => {\n this.compact = isCompact;\n this._changeDetectorRef.markForCheck();\n })\n );\n }\n }\n\n /** @hidden */\n ngOnDestroy(): void {\n this._subscriptions.unsubscribe();\n }\n\n /** @hidden Used to define if control is in 'indeterminate' state.*/\n get isIndeterminate(): boolean {\n return this.checkboxState === 'indeterminate';\n }\n\n /** @hidden Used to define if control is in 'checked' / 'unchecked' state. */\n get isChecked(): boolean {\n return this.checkboxState === 'checked' || this.checkboxState === 'force-checked';\n }\n\n /** @hidden ControlValueAccessor interface\n * - sets new control value\n * - updates control state\n * */\n public writeValue(value: any): void {\n this.checkboxValue = value;\n this._setState();\n this._detectChanges();\n }\n\n /** @hidden ControlValueAccessor interface method - sets onValueChange callback.*/\n public registerOnChange(fn: any): void {\n this.onValueChange = fn;\n }\n\n /** @hidden prevent event from propagating */\n public muteKey(event: KeyboardEvent | MouseEvent): void {\n event.stopPropagation();\n }\n\n /** @hidden ControlValueAccessor interface method - sets onTouched callback.*/\n public registerOnTouched(fn: any): void {\n this.onTouched = fn;\n }\n\n /** @hidden Called by FormControl - used to disable / enable control.*/\n public setDisabledState(disabled: boolean): void {\n this.disabled = disabled;\n this._detectChanges();\n }\n\n /** @hidden Updates checkbox Indeterminate state on mouse click on IE11 */\n public checkByClick(event: MouseEvent): void {\n this._nextValueEvent(true, event);\n this.muteKey(event);\n }\n\n /** @hidden Updates checkbox Indeterminate state on space bar key on IE11 */\n public checkByKey(event: KeyboardEvent): void {\n if (this._isSpaceBarEvent(event) && this._platform.TRIDENT) {\n this._nextValueEvent();\n this.muteKey(event);\n }\n }\n\n /** @hidden Based on current control state:\n * - sets next control value\n * - emits new control value\n * - updates control state based on new control value\n * */\n public nextValue(previousValue?: fdCheckboxTypes): void {\n switch (previousValue || this.checkboxState) {\n case 'checked':\n this.checkboxValue = this.values.falseValue;\n break;\n case 'unchecked':\n this.checkboxValue =\n this.tristate && this.tristateSelectable ? this.values.thirdStateValue : this.values.trueValue;\n break;\n case 'indeterminate':\n case 'force-checked':\n this.checkboxValue = this.values.trueValue;\n this.inputLabel.nativeElement.checked = true;\n break;\n default:\n this.checkboxValue =\n this.tristate && this.tristateSelectable ? this.values.thirdStateValue : this.values.trueValue;\n break;\n }\n this._setState();\n this.onValueChange(this.checkboxValue);\n this._detectChanges();\n }\n\n /** Space event should be handled separately, when used inside list component and in firefox browser */\n handleInputKeyUp(event: KeyboardEvent): void {\n event.stopPropagation();\n if (this._listItemComponent && this._platform.FIREFOX && KeyUtil.isKeyCode(event, SPACE)) {\n event.preventDefault();\n }\n }\n\n /** Handles blur event */\n onBlur(): void {\n if (typeof this.onTouched === 'function') {\n this.onTouched();\n }\n this.focusChange.emit(false);\n }\n /** Handles focus event */\n onFocus(): void {\n this.focusChange.emit(true);\n }\n\n /** @hidden Based on current control value sets new control state. */\n private _setState(): void {\n if (equal(this.checkboxValue, this.values.trueValue)) {\n this.checkboxState = 'checked';\n } else if (equal(this.checkboxValue, this.values.falseValue)) {\n this.checkboxState = 'unchecked';\n } else if (this.tristate && equal(this.checkboxValue, this.values.thirdStateValue)) {\n this.checkboxState = 'indeterminate';\n } else if (!this.checkboxValue) {\n this.checkboxState = 'unchecked';\n }\n this._previousState = this.checkboxState;\n }\n\n /** @hidden */\n private _nextValueEvent(triggeredByClick?: boolean, event?: MouseEvent): void {\n if (\n this._platform.TRIDENT &&\n this._previousState === 'indeterminate' &&\n this.checkboxState === 'indeterminate'\n ) {\n this.checkboxState = 'force-checked';\n this._detectChanges();\n /** Prevents from keeping the old value */\n if (triggeredByClick) {\n this.nextValue('force-checked');\n if (event) {\n this.muteKey(event);\n event.preventDefault();\n }\n }\n }\n }\n\n /** @hidden Determines event source based on key code */\n private _isSpaceBarEvent(event: KeyboardEvent): boolean {\n return KeyUtil.isKeyCode(event, SPACE);\n }\n\n /** Method to trigger change detection in component */\n private _detectChanges(): void {\n if (!this._changeDetectorRef['destroyed']) {\n this._changeDetectorRef.detectChanges();\n }\n }\n}\n","<input\n #inputLabel\n type=\"checkbox\"\n class=\"fd-checkbox\"\n [id]=\"inputId\"\n [name]=\"name\"\n [disabled]=\"disabled\"\n [indeterminate]=\"isIndeterminate\"\n [attr.tabindex]=\"tabIndexValue\"\n [attr.aria-label]=\"ariaLabel\"\n [attr.aria-labelledby]=\"ariaLabelledBy\"\n [attr.aria-describedby]=\"ariaDescribedBy\"\n [attr.aria-disabled]=\"disabled\"\n [attr.aria-required]=\"required\"\n [class.fd-checkbox--compact]=\"compact\"\n [class]=\"state ? 'is-' + state : ''\"\n [ngModel]=\"isChecked\"\n (ngModelChange)=\"nextValue()\"\n (keydown)=\"checkByKey($event)\"\n (keyup)=\"handleInputKeyUp($event)\"\n (click)=\"$event.stopPropagation()\"\n (blur)=\"onBlur()\"\n (focus)=\"onFocus()\"\n/>\n\n<label\n class=\"fd-checkbox__label\"\n #labelElement\n [for]=\"inputId\"\n [class]=\"labelClass\"\n [attr.title]=\"title\"\n [class.fd-checkbox__label--compact]=\"compact\"\n [class.fd-checkbox__label--required]=\"required\"\n (click)=\"checkByClick($event)\"\n>\n <div class=\"fd-checkbox__label-container\">\n <ng-container *ngIf=\"label\">\n <span class=\"fd-checkbox__text\">\n {{ label }}\n </span>\n </ng-container>\n\n <ng-container *ngIf=\"!label\">\n <span class=\"fd-checkbox__text\">\n <ng-content></ng-content>\n </span>\n </ng-container>\n </div>\n</label>\n","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { CheckboxComponent } from './checkbox/checkbox.component';\nimport { FormsModule } from '@angular/forms';\n\n@NgModule({\n declarations: [CheckboxComponent],\n imports: [CommonModule, FormsModule],\n exports: [CheckboxComponent]\n})\nexport class CheckboxModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":[],"mappings":";;;;;;;;;;;;;AA2BA,IAAI,gBAAgB,GAAG,CAAC,CAAC;MAmBZ,iBAAiB;;IAqG1B,YACW,UAAsB,EACM,gBAAwB,CAAC,EACpD,SAAmB,EACnB,kBAAqC,EACzB,sBAA6C,EAChB,kBAAqC;QA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AAc,iBAJR,iBAAiB,aACtB,YAAY,EAAE,WAAW,aACzB,iBAAiB;4GAElB,cAAc,YAHd,CAAC,YAAY,EAAE,WAAW,CAAC;2FAG3B,cAAc;kBAL1B,QAAQ;mBAAC;oBACN,YAAY,EAAE,CAAC,iBAAiB,CAAC;oBACjC,OAAO,EAAE,CAAC,YAAY,EAAE,WAAW,CAAC;oBACpC,OAAO,EAAE,CAAC,iBAAiB,CAAC;iBAC/B;;;ACTD;;;;;;"}
1
+ {"version":3,"file":"fundamental-ngx-core-checkbox.mjs","sources":["../../../../../libs/core/src/lib/checkbox/checkbox/checkbox.component.ts","../../../../../libs/core/src/lib/checkbox/checkbox/checkbox.component.html","../../../../../libs/core/src/lib/checkbox/checkbox.module.ts","../../../../../libs/core/src/lib/checkbox/fundamental-ngx-core-checkbox.ts"],"sourcesContent":["import {\n Attribute,\n ChangeDetectionStrategy,\n ChangeDetectorRef,\n Component,\n ElementRef,\n EventEmitter,\n forwardRef,\n HostBinding,\n Inject,\n Input,\n OnDestroy,\n OnInit,\n Optional,\n Output,\n Renderer2,\n ViewChild,\n ViewEncapsulation\n} from '@angular/core';\nimport { ControlValueAccessor, NG_VALUE_ACCESSOR } from '@angular/forms';\nimport { FdCheckboxValues } from './fd-checkbox-values.interface';\nimport { LIST_ITEM_COMPONENT, ListItemInterface, ContentDensityService } from '@fundamental-ngx/core/utils';\nimport equal from 'fast-deep-equal';\nimport { Subscription } from 'rxjs';\nimport { FormStates } from '@fundamental-ngx/core/shared';\n\nlet checkboxUniqueId = 0;\n\nexport type FdCheckboxTypes = 'checked' | 'unchecked' | 'indeterminate' | 'force-checked';\n\n@Component({\n selector: 'fd-checkbox',\n templateUrl: './checkbox.component.html',\n styleUrls: ['./checkbox.component.scss'],\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: [\n {\n provide: NG_VALUE_ACCESSOR,\n useExisting: forwardRef(() => CheckboxComponent),\n multi: true\n }\n ],\n host: { '[attr.tabindex]': '-1' }\n})\nexport class CheckboxComponent implements ControlValueAccessor, OnInit, OnDestroy {\n /** @hidden */\n @ViewChild('inputElement')\n inputElement: ElementRef<HTMLInputElement>;\n\n /** @hidden */\n @ViewChild('labelElement')\n labelElement: ElementRef;\n\n /** Sets the `aria-label` attribute to the element. */\n @Input()\n ariaLabel = '';\n\n /** Current selection state of the checkbox component */\n @Input()\n set value(value: any) {\n this.writeValue(value);\n }\n get value(): any {\n return this.checkboxValue;\n }\n\n /** Sets the `aria-labelledby` attribute to the element. */\n @Input()\n ariaLabelledBy = null;\n\n /** Sets the `aria-describedby` attribute to the element. */\n @Input()\n ariaDescribedBy: string;\n\n /** sets checkbox tooltip */\n @Input()\n title: string;\n\n /** Sets [id] property of input, binds input with input label using [for] property. */\n @Input()\n inputId = `fd-checkbox-${checkboxUniqueId++}`;\n\n /** State of control, changes visual appearance of control. */\n @Input()\n state: FormStates;\n\n /** Sets [name] property of input. */\n @Input()\n name: string;\n\n /** Sets text of control label. */\n @Input()\n label: string;\n\n /** Allows to disable/enable control. */\n @Input()\n disabled: boolean;\n\n /** Allows to minimize control to compact mode. */\n @Input()\n compact?: boolean;\n\n /** Enables controls third state. */\n @Input()\n tristate = false;\n\n /** Allows to prevent user from manually selecting controls third state. */\n @Input()\n tristateSelectable = false;\n\n /** Assigns given class to checkbox label element */\n @Input()\n labelClass: string;\n\n /** If it is mandatory field */\n @Input()\n required = false;\n\n /** @hidden */\n private _subscriptions = new Subscription();\n\n /** Sets values returned by control. */\n // eslint-disable-next-line @angular-eslint/no-input-rename\n @Input('values')\n set _values(checkboxValues: FdCheckboxValues) {\n this.values = { ...this.values, ...checkboxValues };\n }\n\n /** @hidden */\n @HostBinding('style.position')\n readonly position = 'relative';\n\n /** @hidden */\n @HostBinding('style.outline')\n readonly outline = 'none';\n\n /** Emits event on focus change */\n @Output() focusChange: EventEmitter<boolean> = new EventEmitter<boolean>();\n\n /** Values returned by control. */\n public values: FdCheckboxValues = { trueValue: true, falseValue: false, thirdStateValue: null };\n /** Stores current checkbox value. */\n public checkboxValue: any;\n /** Stores current checkbox state. */\n public checkboxState: FdCheckboxTypes;\n\n /** @hidden Reference to callback provided by FormControl.*/\n public onTouched = (): void => {};\n /** @hidden Reference to callback provided by FormControl.*/\n public onValueChange: (value: any) => void = () => {};\n\n /** @hidden Used to define if control is in 'indeterminate' state.*/\n get isIndeterminate(): boolean {\n return this.checkboxState === 'indeterminate';\n }\n\n /** @hidden Used to define if control is in 'checked' / 'unchecked' state. */\n get isChecked(): boolean {\n return this.checkboxState === 'checked' || this.checkboxState === 'force-checked';\n }\n\n /** @hidden */\n constructor(\n public elementRef: ElementRef<Element>,\n @Attribute('tabIndexValue') public tabIndexValue: number = 0,\n private _changeDetectorRef: ChangeDetectorRef,\n private renderer: Renderer2,\n @Optional() private _contentDensityService: ContentDensityService,\n @Optional() @Inject(LIST_ITEM_COMPONENT) private _listItemComponent: ListItemInterface\n ) {\n this.tabIndexValue = tabIndexValue;\n }\n\n /** @hidden */\n ngOnInit(): void {\n if (this.compact === undefined && this._contentDensityService) {\n this._subscriptions.add(\n this._contentDensityService._isCompactDensity.subscribe((isCompact) => {\n this.compact = isCompact;\n this._changeDetectorRef.markForCheck();\n })\n );\n }\n }\n\n /** @hidden */\n ngOnDestroy(): void {\n this._subscriptions.unsubscribe();\n }\n\n /**\n * @hidden ControlValueAccessor interface\n * - sets new control value\n * - updates control state\n */\n writeValue(value: any): void {\n this.checkboxValue = value;\n this._setState();\n this._detectChanges();\n }\n\n /** @hidden ControlValueAccessor interface method - sets onValueChange callback.*/\n registerOnChange(fn: any): void {\n this.onValueChange = fn;\n }\n\n /** @hidden ControlValueAccessor interface method - sets onTouched callback.*/\n registerOnTouched(fn: any): void {\n this.onTouched = fn;\n }\n\n /** @hidden Called by FormControl - used to disable / enable control.*/\n setDisabledState(disabled: boolean): void {\n this.disabled = disabled;\n this._detectChanges();\n }\n\n /**\n * @hidden\n * Based on current control state:\n * - sets next control value\n * - emits new control value\n * - updates control state based on new control value\n * */\n nextValue(previousValue?: FdCheckboxTypes): void {\n switch (previousValue || this.checkboxState) {\n case 'checked':\n this.checkboxValue = this.values.falseValue;\n break;\n case 'unchecked':\n this.checkboxValue =\n this.tristate && this.tristateSelectable ? this.values.thirdStateValue : this.values.trueValue;\n break;\n case 'indeterminate':\n case 'force-checked':\n this.checkboxValue = this.values.trueValue;\n this.renderer.setProperty(this.inputElement.nativeElement, 'checked', 'true');\n break;\n default:\n this.checkboxValue =\n this.tristate && this.tristateSelectable ? this.values.thirdStateValue : this.values.trueValue;\n break;\n }\n this._setState();\n this.onValueChange(this.checkboxValue);\n this._detectChanges();\n }\n\n /** @hidden handles blur event */\n _onBlur(): void {\n if (typeof this.onTouched === 'function') {\n this.onTouched();\n }\n this.focusChange.emit(false);\n }\n /** @hidden handles focus event */\n _onFocus(): void {\n this.focusChange.emit(true);\n }\n\n /** @hidden handles click on the label associated with native checkbox input */\n _onLabelClick(event: Event): void {\n // We have to stop propagation for click events on the input label.\n // By default, when a user clicks on a label element, a generated click event will be\n // dispatched on the associated input element. This will lead to duplicated \"click\" event dispatched from the component\n event.stopPropagation();\n }\n\n /** @hidden handles click on the native checkbox input */\n _onInputClick(event: PointerEvent): void {\n // When there's a click event dispatched from the input, we have to catch it, process and then re-dispatch it further.\n // This is needed in order to set the value to the component before any external listeners will receive it.\n // Otherwise checkbox might be out of sync.\n event.stopPropagation();\n this.nextValue();\n this.elementRef.nativeElement.dispatchEvent(new PointerEvent(event.type, event));\n }\n\n /** @hidden Based on current control value sets new control state. */\n private _setState(): void {\n if (equal(this.checkboxValue, this.values.trueValue)) {\n this.checkboxState = 'checked';\n } else if (equal(this.checkboxValue, this.values.falseValue)) {\n this.checkboxState = 'unchecked';\n } else if (this.tristate && equal(this.checkboxValue, this.values.thirdStateValue)) {\n this.checkboxState = 'indeterminate';\n } else if (!this.checkboxValue) {\n this.checkboxState = 'unchecked';\n }\n }\n\n /** Method to trigger change detection in component */\n private _detectChanges(): void {\n if (!this._changeDetectorRef['destroyed']) {\n this._changeDetectorRef.detectChanges();\n }\n }\n}\n","<input\n #inputElement\n type=\"checkbox\"\n class=\"fd-checkbox\"\n [id]=\"inputId\"\n [name]=\"name\"\n [disabled]=\"disabled\"\n [indeterminate]=\"isIndeterminate\"\n [checked]=\"isChecked\"\n [attr.tabindex]=\"tabIndexValue\"\n [attr.aria-label]=\"ariaLabel\"\n [attr.aria-labelledby]=\"ariaLabelledBy\"\n [attr.aria-describedby]=\"ariaDescribedBy\"\n [attr.aria-disabled]=\"disabled\"\n [attr.aria-required]=\"required\"\n [class.fd-checkbox--compact]=\"compact\"\n [class]=\"state ? 'is-' + state : ''\"\n (click)=\"_onInputClick($event)\"\n (blur)=\"_onBlur()\"\n (focus)=\"_onFocus()\"\n/>\n\n<label\n class=\"fd-checkbox__label\"\n #labelElement\n [for]=\"inputId\"\n [class]=\"labelClass\"\n [attr.title]=\"title\"\n [class.fd-checkbox__label--compact]=\"compact\"\n [class.fd-checkbox__label--required]=\"required\"\n (click)=\"_onLabelClick($event)\"\n>\n <div class=\"fd-checkbox__label-container\">\n <ng-container *ngIf=\"label\">\n <span class=\"fd-checkbox__text\">\n {{ label }}\n </span>\n </ng-container>\n\n <ng-container *ngIf=\"!label\">\n <span class=\"fd-checkbox__text\">\n <ng-content></ng-content>\n </span>\n </ng-container>\n </div>\n</label>\n","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { CheckboxComponent } from './checkbox/checkbox.component';\nimport { FormsModule } from '@angular/forms';\n\n@NgModule({\n declarations: [CheckboxComponent],\n imports: [CommonModule, FormsModule],\n exports: [CheckboxComponent]\n})\nexport class CheckboxModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":[],"mappings":";;;;;;;;;;AA0BA,IAAI,gBAAgB,GAAG,CAAC,CAAC;MAmBZ,iBAAiB;;IAsH1B,YACW,UAA+B,EACH,gBAAwB,CAAC,EACpD,kBAAqC,EACrC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