@fundamental-ngx/core 0.33.4-rc.6 → 0.33.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (156) hide show
  1. package/README.md +1 -3
  2. package/action-bar/package.json +3 -3
  3. package/action-sheet/package.json +3 -3
  4. package/alert/package.json +3 -3
  5. package/avatar/avatar.component.d.ts +2 -0
  6. package/avatar/esm2020/avatar.component.mjs +8 -5
  7. package/avatar/fesm2015/fundamental-ngx-core-avatar.mjs +7 -4
  8. package/avatar/fesm2015/fundamental-ngx-core-avatar.mjs.map +1 -1
  9. package/avatar/fesm2020/fundamental-ngx-core-avatar.mjs +7 -4
  10. package/avatar/fesm2020/fundamental-ngx-core-avatar.mjs.map +1 -1
  11. package/avatar/package.json +3 -3
  12. package/avatar-group/package.json +3 -3
  13. package/bar/package.json +3 -3
  14. package/breadcrumb/package.json +3 -3
  15. package/busy-indicator/package.json +3 -3
  16. package/button/package.json +3 -3
  17. package/calendar/package.json +3 -3
  18. package/card/package.json +3 -3
  19. package/carousel/package.json +3 -3
  20. package/checkbox/checkbox/checkbox.component.d.ts +30 -35
  21. package/checkbox/esm2020/checkbox/checkbox.component.mjs +61 -80
  22. package/checkbox/fesm2015/fundamental-ngx-core-checkbox.mjs +59 -77
  23. package/checkbox/fesm2015/fundamental-ngx-core-checkbox.mjs.map +1 -1
  24. package/checkbox/fesm2020/fundamental-ngx-core-checkbox.mjs +59 -77
  25. package/checkbox/fesm2020/fundamental-ngx-core-checkbox.mjs.map +1 -1
  26. package/checkbox/package.json +3 -3
  27. package/combobox/package.json +3 -3
  28. package/date-picker/package.json +3 -3
  29. package/datetime/package.json +3 -3
  30. package/datetime-picker/package.json +3 -3
  31. package/dialog/package.json +3 -3
  32. package/dynamic-page/package.json +3 -3
  33. package/dynamic-side-content/package.json +3 -3
  34. package/esm2020/avatar/avatar.component.mjs +8 -5
  35. package/esm2020/checkbox/checkbox/checkbox.component.mjs +61 -80
  36. package/esm2020/input-group/input-group.component.mjs +2 -2
  37. package/esm2020/list/list-item/list-item.component.mjs +6 -2
  38. package/esm2020/multi-input/multi-input.component.mjs +38 -11
  39. package/esm2020/utils/helpers/range-selector.mjs +113 -0
  40. package/esm2020/utils/public_api.mjs +2 -1
  41. package/facets/package.json +3 -3
  42. package/feed-input/package.json +3 -3
  43. package/feed-list-item/package.json +3 -3
  44. package/fesm2015/fundamental-ngx-core-avatar.mjs +7 -4
  45. package/fesm2015/fundamental-ngx-core-avatar.mjs.map +1 -1
  46. package/fesm2015/fundamental-ngx-core-checkbox.mjs +59 -77
  47. package/fesm2015/fundamental-ngx-core-checkbox.mjs.map +1 -1
  48. package/fesm2015/fundamental-ngx-core-input-group.mjs +2 -2
  49. package/fesm2015/fundamental-ngx-core-list.mjs +5 -1
  50. package/fesm2015/fundamental-ngx-core-list.mjs.map +1 -1
  51. package/fesm2015/fundamental-ngx-core-multi-input.mjs +40 -11
  52. package/fesm2015/fundamental-ngx-core-multi-input.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-avatar.mjs +7 -4
  56. package/fesm2020/fundamental-ngx-core-avatar.mjs.map +1 -1
  57. package/fesm2020/fundamental-ngx-core-checkbox.mjs +59 -77
  58. package/fesm2020/fundamental-ngx-core-checkbox.mjs.map +1 -1
  59. package/fesm2020/fundamental-ngx-core-input-group.mjs +2 -2
  60. package/fesm2020/fundamental-ngx-core-list.mjs +5 -1
  61. package/fesm2020/fundamental-ngx-core-list.mjs.map +1 -1
  62. package/fesm2020/fundamental-ngx-core-multi-input.mjs +38 -11
  63. package/fesm2020/fundamental-ngx-core-multi-input.mjs.map +1 -1
  64. package/fesm2020/fundamental-ngx-core-utils.mjs +114 -1
  65. package/fesm2020/fundamental-ngx-core-utils.mjs.map +1 -1
  66. package/file-uploader/package.json +3 -3
  67. package/fixed-card-layout/package.json +3 -3
  68. package/flexible-column-layout/package.json +3 -3
  69. package/form/package.json +3 -3
  70. package/formatted-text/package.json +3 -3
  71. package/grid-list/package.json +3 -3
  72. package/icon/package.json +3 -3
  73. package/illustrated-message/package.json +3 -3
  74. package/infinite-scroll/package.json +3 -3
  75. package/info-label/package.json +3 -3
  76. package/inline-help/package.json +3 -3
  77. package/input-group/esm2020/input-group.component.mjs +2 -2
  78. package/input-group/fesm2015/fundamental-ngx-core-input-group.mjs +2 -2
  79. package/input-group/fesm2020/fundamental-ngx-core-input-group.mjs +2 -2
  80. package/input-group/package.json +3 -3
  81. package/layout-grid/package.json +3 -3
  82. package/layout-panel/package.json +3 -3
  83. package/link/package.json +3 -3
  84. package/list/esm2020/list-item/list-item.component.mjs +6 -2
  85. package/list/fesm2015/fundamental-ngx-core-list.mjs +5 -1
  86. package/list/fesm2015/fundamental-ngx-core-list.mjs.map +1 -1
  87. package/list/fesm2020/fundamental-ngx-core-list.mjs +5 -1
  88. package/list/fesm2020/fundamental-ngx-core-list.mjs.map +1 -1
  89. package/list/package.json +3 -3
  90. package/menu/package.json +3 -3
  91. package/message-box/package.json +3 -3
  92. package/message-page/package.json +2 -2
  93. package/message-strip/package.json +3 -3
  94. package/message-toast/package.json +3 -3
  95. package/micro-process-flow/package.json +3 -3
  96. package/mobile-mode/package.json +3 -3
  97. package/multi-input/esm2020/multi-input.component.mjs +38 -11
  98. package/multi-input/fesm2015/fundamental-ngx-core-multi-input.mjs +40 -11
  99. package/multi-input/fesm2015/fundamental-ngx-core-multi-input.mjs.map +1 -1
  100. package/multi-input/fesm2020/fundamental-ngx-core-multi-input.mjs +38 -11
  101. package/multi-input/fesm2020/fundamental-ngx-core-multi-input.mjs.map +1 -1
  102. package/multi-input/multi-input.component.d.ts +8 -1
  103. package/multi-input/package.json +3 -3
  104. package/nested-list/package.json +3 -3
  105. package/notification/package.json +3 -3
  106. package/object-identifier/package.json +3 -3
  107. package/object-marker/package.json +3 -3
  108. package/object-number/package.json +3 -3
  109. package/object-status/package.json +3 -3
  110. package/package.json +7 -7
  111. package/pagination/package.json +3 -3
  112. package/panel/package.json +3 -3
  113. package/popover/package.json +3 -3
  114. package/product-switch/package.json +3 -3
  115. package/progress-indicator/package.json +1 -1
  116. package/quick-view/package.json +3 -3
  117. package/radio/package.json +3 -3
  118. package/rating-indicator/package.json +3 -3
  119. package/resizable-card-layout/package.json +3 -3
  120. package/scroll-spy/package.json +3 -3
  121. package/scrollbar/package.json +3 -3
  122. package/segmented-button/package.json +3 -3
  123. package/select/package.json +3 -3
  124. package/shared/package.json +3 -3
  125. package/shellbar/package.json +3 -3
  126. package/side-navigation/package.json +3 -3
  127. package/slider/package.json +3 -3
  128. package/split-button/package.json +3 -3
  129. package/splitter/package.json +3 -3
  130. package/status-indicator/package.json +3 -3
  131. package/step-input/package.json +3 -3
  132. package/switch/package.json +3 -3
  133. package/table/package.json +3 -3
  134. package/tabs/package.json +3 -3
  135. package/tests/package.json +2 -2
  136. package/text/package.json +3 -3
  137. package/tile/package.json +3 -3
  138. package/time/package.json +3 -3
  139. package/time-picker/package.json +3 -3
  140. package/timeline/package.json +3 -3
  141. package/title/package.json +3 -3
  142. package/token/package.json +3 -3
  143. package/toolbar/package.json +3 -3
  144. package/tree/package.json +3 -3
  145. package/upload-collection/package.json +3 -3
  146. package/utils/esm2020/helpers/range-selector.mjs +113 -0
  147. package/utils/esm2020/public_api.mjs +2 -1
  148. package/utils/fesm2015/fundamental-ngx-core-utils.mjs +114 -1
  149. package/utils/fesm2015/fundamental-ngx-core-utils.mjs.map +1 -1
  150. package/utils/fesm2020/fundamental-ngx-core-utils.mjs +114 -1
  151. package/utils/fesm2020/fundamental-ngx-core-utils.mjs.map +1 -1
  152. package/utils/helpers/range-selector.d.ts +84 -0
  153. package/utils/package.json +6 -6
  154. package/utils/public_api.d.ts +1 -0
  155. package/vertical-navigation/package.json +3 -3
  156. package/wizard/package.json +3 -3
@@ -142,6 +142,10 @@ class AvatarComponent {
142
142
  if (!label || this._image) {
143
143
  return null;
144
144
  }
145
+ return this._generateAbbreviation(label);
146
+ }
147
+ /** @hidden Get the abbrevation string */
148
+ _generateAbbreviation(label) {
145
149
  const maxLettersCount = 3;
146
150
  const firstLetters = label.split(' ').map((word) => word.charAt(0));
147
151
  const abbreviate = firstLetters.join('');
@@ -182,10 +186,9 @@ class AvatarComponent {
182
186
  for (let i = 0; i < options.length; i++) {
183
187
  const option = options[i];
184
188
  if (option === ALTER_ICON_OPTIONS.CONTENT) {
185
- const contentEl = this._content.nativeElement;
186
- const contentValue = contentEl.innerText.trim()[0];
189
+ const contentValue = this._content.nativeElement.innerText;
187
190
  if (contentValue && contentValue !== '') {
188
- this.abbreviate = contentEl.innerText.trim()[0];
191
+ this.abbreviate = this._generateAbbreviation(contentValue);
189
192
  break;
190
193
  }
191
194
  continue;
@@ -193,7 +196,7 @@ class AvatarComponent {
193
196
  if (option === ALTER_ICON_OPTIONS.ALT) {
194
197
  const altValue = this.elementRef().nativeElement.getAttribute('alt');
195
198
  if (altValue && altValue !== '') {
196
- this.abbreviate = altValue.trim()[0];
199
+ this.abbreviate = this._generateAbbreviation(altValue);
197
200
  break;
198
201
  }
199
202
  continue;
@@ -1 +1 @@
1
- {"version":3,"file":"fundamental-ngx-core-avatar.mjs","sources":["../../../../libs/core/src/lib/avatar/avatar.component.ts","../../../../libs/core/src/lib/avatar/avatar.component.html","../../../../libs/core/src/lib/avatar/avatar.module.ts","../../../../libs/core/src/lib/avatar/fundamental-ngx-core-avatar.ts"],"sourcesContent":["import {\n ChangeDetectionStrategy,\n ChangeDetectorRef,\n Component,\n ElementRef,\n HostBinding,\n Input,\n OnChanges,\n OnInit,\n ViewChild,\n ViewEncapsulation\n} from '@angular/core';\nimport {\n ANY_LANGUAGE_LETTERS_REGEX,\n ColorAccent,\n Size,\n applyCssClass,\n getRandomColorAccent,\n CssClassBuilder\n} from '@fundamental-ngx/core/utils';\n\nlet avatarUniqueId = 0;\n\nconst ALTER_ICON_OPTIONS = {\n CONTENT: 'content',\n ALT: 'alt',\n BACKUP: 'backup',\n DEFAULT_ICON: 'default-icon'\n};\n\n@Component({\n // TODO to be discussed\n // eslint-disable-next-line @angular-eslint/component-selector\n selector: 'fd-avatar',\n templateUrl: './avatar.component.html',\n styleUrls: ['./avatar.component.scss'],\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush\n})\nexport class AvatarComponent implements OnChanges, OnInit, CssClassBuilder {\n /** User's custom classes */\n @Input()\n class: string;\n\n /** Id of the Avatar. */\n @Input()\n @HostBinding('attr.id')\n id = `fd-avatar-${avatarUniqueId++}`;\n\n /** Aria-label for Avatar. */\n @Input()\n @HostBinding('attr.aria-label')\n ariaLabel: string = null;\n\n /** Aria-Labelledby for element describing Avatar. */\n @Input()\n @HostBinding('attr.aria-labelledby')\n ariaLabelledby: string = null;\n\n /** Localized text for label */\n @Input()\n set label(value: string) {\n this.ariaLabel = value || null;\n this.abbreviate = this._getAbbreviate(value);\n }\n\n /** The size of the Avatar. Options include: *xs*, *s*, *m*, *l* and *xl*. */\n @Input() size: Size = 'l';\n\n /** The glyph name. */\n @Input() glyph: string = null;\n\n /** The glyph name for zoom icon. */\n @Input() zoomGlyph: string = null;\n\n /** Whether or not to apply a circle style to the Avatar. */\n @Input() circle = false;\n\n /** Whether or not to apply a transparent style to the Avatar. */\n @Input() transparent = false;\n\n /** Whether or not to apply background size contain style to the Avatar */\n @Input() contain = false;\n\n /** Whether or not to apply a placeholder background style to the Avatar. */\n @Input() placeholder = false;\n\n /** Whether or not to apply a tile background style to the Avatar. */\n @Input() tile = false;\n\n /** Whether or not to apply a border to the Avatar. */\n @Input() border = false;\n\n /** A number from 1 to 10 representing the background color of the Avatar. */\n @Input() colorAccent: ColorAccent = null;\n\n /** Whether or not to apply random background color to the Avatar. */\n @Input() random = false;\n\n /**\n * @deprecated\n * Deprecated according to Rename `backgroundImage` to `image`\n * */\n /** Background image url. */\n @Input()\n set backgroundImage(value: string) {\n this._setImage(value);\n }\n\n /** Background image resource: url or base64. */\n @Input()\n set image(value: string) {\n this._setImage(value);\n }\n get image(): string {\n return this._image;\n }\n\n @Input()\n set alterIcon(value: string) {\n this._alterIcon = value;\n }\n get alterIcon(): string {\n return this._alterIcon;\n }\n\n @Input()\n set backupImage(value: string) {\n this._backupImage = value;\n }\n get backupImage(): string {\n return this._backupImage;\n }\n\n /** @hidden */\n @HostBinding('style.background-image')\n get bgImage(): string {\n return this._bgImage;\n }\n\n /** @hidden */\n @HostBinding('attr.role')\n get role(): string {\n return this.zoomGlyph ? 'button' : 'img';\n }\n\n /** @hidden */\n @ViewChild('content')\n set content(value: ElementRef) {\n this._content = value;\n }\n\n /** @hidden */\n abbreviate: string = null;\n\n /** @hidden */\n private _image: string = null;\n\n /** @hidden */\n private _alterIcon: string = null;\n\n /** @hidden */\n private _content: ElementRef = null;\n\n /** @hidden */\n private _backupImage: string = null;\n\n /** @hidden */\n private _bgImage: string = null;\n\n /** If a default placeholder should be displayed */\n get showDefault(): boolean {\n return !this.abbreviate && !this._image && !this.glyph;\n }\n\n /** @hidden */\n constructor(private _elementRef: ElementRef, private _cdr: ChangeDetectorRef) {}\n\n /** @hidden */\n ngOnInit(): void {\n this.buildComponentCssClass();\n }\n\n /** @hidden */\n ngOnChanges(): void {\n this.buildComponentCssClass();\n }\n\n @applyCssClass\n /** CssClassBuilder interface implementation\n * function must return single string\n * function is responsible for order which css classes are applied\n */\n buildComponentCssClass(): string[] {\n return [\n 'fd-avatar',\n this.size ? `fd-avatar--${this.size}` : '',\n this.colorAccent && !this.random ? `fd-avatar--accent-color-${this.colorAccent}` : '',\n this.random ? `fd-avatar--accent-color-${getRandomColorAccent()}` : '',\n this.circle ? 'fd-avatar--circle' : '',\n this.border ? 'fd-avatar--border' : '',\n this.transparent ? 'fd-avatar--transparent' : '',\n this.contain ? 'fd-avatar--background-contain' : '',\n this.placeholder ? 'fd-avatar--placeholder' : '',\n this.tile ? 'fd-avatar--tile' : '',\n this.class\n ];\n }\n\n /** @hidden */\n elementRef(): ElementRef<any> {\n return this._elementRef;\n }\n\n /** @hidden Get an abbreviate from the label or return null if not fit requirements */\n private _getAbbreviate(label: string): string | null {\n if (!label || this._image) {\n return null;\n }\n\n const maxLettersCount = 3;\n const firstLetters = label.split(' ').map((word) => word.charAt(0));\n const abbreviate = firstLetters.join('');\n\n if (firstLetters.length > maxLettersCount || !abbreviate.match(ANY_LANGUAGE_LETTERS_REGEX)) {\n return null;\n }\n\n return abbreviate;\n }\n\n /** @hidden */\n private _setImage(value: string): void {\n this._image = value;\n\n if (value) {\n this._verifyImageUrl(value, (): void => {}, this._onErrorCallback);\n } else {\n this._bgImage = null;\n }\n }\n\n /** @hidden */\n private _verifyImageUrl(srcValue: string, onLoadCallback: () => void, onErrorCallback: () => void): void {\n const img = new Image();\n img.onload = onLoadCallback.bind(this);\n img.onerror = onErrorCallback.bind(this);\n img.src = srcValue;\n this._assignBgImage(srcValue);\n }\n\n /** @hidden */\n private _assignBgImage(srcValue: string): void {\n this._bgImage = `url(${srcValue})`;\n }\n\n /** @hidden */\n private _onErrorCallback(): void {\n if (!this._alterIcon) {\n this._showDefaultIcon();\n } else {\n const options = this._alterIcon.split('|');\n for (let i = 0; i < options.length; i++) {\n const option = options[i];\n\n if (option === ALTER_ICON_OPTIONS.CONTENT) {\n const contentEl = this._content.nativeElement;\n const contentValue = contentEl.innerText.trim()[0];\n if (contentValue && contentValue !== '') {\n this.abbreviate = contentEl.innerText.trim()[0];\n break;\n }\n\n continue;\n }\n\n if (option === ALTER_ICON_OPTIONS.ALT) {\n const altValue = this.elementRef().nativeElement.getAttribute('alt');\n if (altValue && altValue !== '') {\n this.abbreviate = altValue.trim()[0];\n break;\n }\n\n continue;\n }\n\n if (option === ALTER_ICON_OPTIONS.BACKUP) {\n if (this._backupImage && this._backupImage !== '') {\n // Check if backupImage can be loaded successfully\n // If not, set default user icon\n this._verifyImageUrl(\n this._backupImage,\n () => {\n this._assignBgImage(this._backupImage);\n this._cdr.detectChanges();\n },\n () => {\n this._showDefaultIcon();\n this._cdr.detectChanges();\n }\n );\n break;\n }\n\n continue;\n }\n\n if (option === ALTER_ICON_OPTIONS.DEFAULT_ICON) {\n this._showDefaultIcon();\n break;\n }\n\n this._showDefaultIcon();\n }\n }\n\n this._cdr.detectChanges();\n }\n\n /** @hidden */\n private _showDefaultIcon(): void {\n this.abbreviate = null;\n this._image = null;\n this.glyph = null;\n }\n}\n","{{ abbreviate }}\n\n<i\n *ngIf=\"zoomGlyph\"\n role=\"presentation\"\n class=\"fd-avatar__zoom-icon\"\n [class]=\"zoomGlyph ? 'sap-icon--' + zoomGlyph : ''\"\n>\n</i>\n<i *ngIf=\"glyph\" class=\"fd-avatar__icon\" [class]=\"glyph ? ' sap-icon--' + glyph : ''\" role=\"presentation\"> </i>\n<i *ngIf=\"showDefault\" class=\"fd-avatar__icon sap-icon--person-placeholder\" role=\"presentation\"> </i>\n<div #content style=\"display: none\">\n <ng-content></ng-content>\n</div>\n","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\n\nimport { AvatarComponent } from './avatar.component';\n\n@NgModule({\n imports: [CommonModule],\n exports: [AvatarComponent],\n declarations: [AvatarComponent]\n})\nexport class AvatarModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":[],"mappings":";;;;;;;AAqBA,IAAI,cAAc,GAAG,CAAC,CAAC;AAEvB,MAAM,kBAAkB,GAAG;IACvB,OAAO,EAAE,SAAS;IAClB,GAAG,EAAE,KAAK;IACV,MAAM,EAAE,QAAQ;IAChB,YAAY,EAAE,cAAc;CAC/B,CAAC;MAWW,eAAe;;IAyIxB,YAAoB,WAAuB,EAAU,IAAuB;QAAxD,gBAAW,GAAX,WAAW,CAAY;QAAU,SAAI,GAAJ,IAAI,CAAmB;;QAjI5E,OAAE,GAAG,aAAa,cAAc,EAAE,EAAE,CAAC;;QAKrC,cAAS,GAAW,IAAI,CAAC;;QAKzB,mBAAc,GAAW,IAAI,CAAC;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,KAAK;gBAOF,KAAK;sBADR,KAAK;gBASF,SAAS;sBADZ,KAAK;gBASF,WAAW;sBADd,KAAK;gBAUF,OAAO;sBADV,WAAW;uBAAC,wBAAwB;gBAOjC,IAAI;sBADP,WAAW;uBAAC,WAAW;gBAOpB,OAAO;sBADV,SAAS;uBAAC,SAAS;;;;;;QA8CpB,sBAAsB;;MEvLb,YAAY;;yGAAZ,YAAY;0GAAZ,YAAY,iBAFN,eAAe,aAFpB,YAAY,aACZ,eAAe;0GAGhB,YAAY,YAJZ,CAAC,YAAY,CAAC;2FAId,YAAY;kBALxB,QAAQ;mBAAC;oBACN,OAAO,EAAE,CAAC,YAAY,CAAC;oBACvB,OAAO,EAAE,CAAC,eAAe,CAAC;oBAC1B,YAAY,EAAE,CAAC,eAAe,CAAC;iBAClC;;;ACTD;;;;;;"}
1
+ {"version":3,"file":"fundamental-ngx-core-avatar.mjs","sources":["../../../../libs/core/src/lib/avatar/avatar.component.ts","../../../../libs/core/src/lib/avatar/avatar.component.html","../../../../libs/core/src/lib/avatar/avatar.module.ts","../../../../libs/core/src/lib/avatar/fundamental-ngx-core-avatar.ts"],"sourcesContent":["import {\n ChangeDetectionStrategy,\n ChangeDetectorRef,\n Component,\n ElementRef,\n HostBinding,\n Input,\n OnChanges,\n OnInit,\n ViewChild,\n ViewEncapsulation\n} from '@angular/core';\nimport {\n ANY_LANGUAGE_LETTERS_REGEX,\n ColorAccent,\n Size,\n applyCssClass,\n getRandomColorAccent,\n CssClassBuilder\n} from '@fundamental-ngx/core/utils';\n\nlet avatarUniqueId = 0;\n\nconst ALTER_ICON_OPTIONS = {\n CONTENT: 'content',\n ALT: 'alt',\n BACKUP: 'backup',\n DEFAULT_ICON: 'default-icon'\n};\n\n@Component({\n // TODO to be discussed\n // eslint-disable-next-line @angular-eslint/component-selector\n selector: 'fd-avatar',\n templateUrl: './avatar.component.html',\n styleUrls: ['./avatar.component.scss'],\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush\n})\nexport class AvatarComponent implements OnChanges, OnInit, CssClassBuilder {\n /** User's custom classes */\n @Input()\n class: string;\n\n /** Id of the Avatar. */\n @Input()\n @HostBinding('attr.id')\n id = `fd-avatar-${avatarUniqueId++}`;\n\n /** Aria-label for Avatar. */\n @Input()\n @HostBinding('attr.aria-label')\n ariaLabel: string = null;\n\n /** Aria-Labelledby for element describing Avatar. */\n @Input()\n @HostBinding('attr.aria-labelledby')\n ariaLabelledby: string = null;\n\n /** Localized text for label */\n @Input()\n set label(value: string) {\n this.ariaLabel = value || null;\n this.abbreviate = this._getAbbreviate(value);\n }\n\n /** The size of the Avatar. Options include: *xs*, *s*, *m*, *l* and *xl*. */\n @Input() size: Size = 'l';\n\n /** The glyph name. */\n @Input() glyph: string = null;\n\n /** The glyph name for zoom icon. */\n @Input() zoomGlyph: string = null;\n\n /** Whether or not to apply a circle style to the Avatar. */\n @Input() circle = false;\n\n /** Whether or not to apply a transparent style to the Avatar. */\n @Input() transparent = false;\n\n /** Whether or not to apply background size contain style to the Avatar */\n @Input() contain = false;\n\n /** Whether or not to apply a placeholder background style to the Avatar. */\n @Input() placeholder = false;\n\n /** Whether or not to apply a tile background style to the Avatar. */\n @Input() tile = false;\n\n /** Whether or not to apply a border to the Avatar. */\n @Input() border = false;\n\n /** A number from 1 to 10 representing the background color of the Avatar. */\n @Input() colorAccent: ColorAccent = null;\n\n /** Whether or not to apply random background color to the Avatar. */\n @Input() random = false;\n\n /**\n * @deprecated\n * Deprecated according to Rename `backgroundImage` to `image`\n * */\n /** Background image url. */\n @Input()\n set backgroundImage(value: string) {\n this._setImage(value);\n }\n\n /** Background image resource: url or base64. */\n @Input()\n set image(value: string) {\n this._setImage(value);\n }\n get image(): string {\n return this._image;\n }\n\n @Input()\n set alterIcon(value: string) {\n this._alterIcon = value;\n }\n get alterIcon(): string {\n return this._alterIcon;\n }\n\n @Input()\n set backupImage(value: string) {\n this._backupImage = value;\n }\n get backupImage(): string {\n return this._backupImage;\n }\n\n /** @hidden */\n @HostBinding('style.background-image')\n get bgImage(): string {\n return this._bgImage;\n }\n\n /** @hidden */\n @HostBinding('attr.role')\n get role(): string {\n return this.zoomGlyph ? 'button' : 'img';\n }\n\n /** @hidden */\n @ViewChild('content')\n set content(value: ElementRef) {\n this._content = value;\n }\n\n /** @hidden */\n abbreviate: string = null;\n\n /** @hidden */\n private _image: string = null;\n\n /** @hidden */\n private _alterIcon: string = null;\n\n /** @hidden */\n private _content: ElementRef = null;\n\n /** @hidden */\n private _backupImage: string = null;\n\n /** @hidden */\n private _bgImage: string = null;\n\n /** If a default placeholder should be displayed */\n get showDefault(): boolean {\n return !this.abbreviate && !this._image && !this.glyph;\n }\n\n /** @hidden */\n constructor(private _elementRef: ElementRef, private _cdr: ChangeDetectorRef) {}\n\n /** @hidden */\n ngOnInit(): void {\n this.buildComponentCssClass();\n }\n\n /** @hidden */\n ngOnChanges(): void {\n this.buildComponentCssClass();\n }\n\n @applyCssClass\n /** CssClassBuilder interface implementation\n * function must return single string\n * function is responsible for order which css classes are applied\n */\n buildComponentCssClass(): string[] {\n return [\n 'fd-avatar',\n this.size ? `fd-avatar--${this.size}` : '',\n this.colorAccent && !this.random ? `fd-avatar--accent-color-${this.colorAccent}` : '',\n this.random ? `fd-avatar--accent-color-${getRandomColorAccent()}` : '',\n this.circle ? 'fd-avatar--circle' : '',\n this.border ? 'fd-avatar--border' : '',\n this.transparent ? 'fd-avatar--transparent' : '',\n this.contain ? 'fd-avatar--background-contain' : '',\n this.placeholder ? 'fd-avatar--placeholder' : '',\n this.tile ? 'fd-avatar--tile' : '',\n this.class\n ];\n }\n\n /** @hidden */\n elementRef(): ElementRef<any> {\n return this._elementRef;\n }\n\n /** @hidden Get an abbreviate from the label or return null if not fit requirements */\n private _getAbbreviate(label: string): string | null {\n if (!label || this._image) {\n return null;\n }\n\n return this._generateAbbreviation(label);\n }\n\n /** @hidden Get the abbrevation string */\n private _generateAbbreviation(label: string): string | null {\n const maxLettersCount = 3;\n const firstLetters = label.split(' ').map((word) => word.charAt(0));\n const abbreviate = firstLetters.join('');\n\n if (firstLetters.length > maxLettersCount || !abbreviate.match(ANY_LANGUAGE_LETTERS_REGEX)) {\n return null;\n }\n\n return abbreviate;\n }\n\n /** @hidden */\n private _setImage(value: string): void {\n this._image = value;\n\n if (value) {\n this._verifyImageUrl(value, (): void => {}, this._onErrorCallback);\n } else {\n this._bgImage = null;\n }\n }\n\n /** @hidden */\n private _verifyImageUrl(srcValue: string, onLoadCallback: () => void, onErrorCallback: () => void): void {\n const img = new Image();\n img.onload = onLoadCallback.bind(this);\n img.onerror = onErrorCallback.bind(this);\n img.src = srcValue;\n this._assignBgImage(srcValue);\n }\n\n /** @hidden */\n private _assignBgImage(srcValue: string): void {\n this._bgImage = `url(${srcValue})`;\n }\n\n /** @hidden */\n private _onErrorCallback(): void {\n if (!this._alterIcon) {\n this._showDefaultIcon();\n } else {\n const options = this._alterIcon.split('|');\n for (let i = 0; i < options.length; i++) {\n const option = options[i];\n\n if (option === ALTER_ICON_OPTIONS.CONTENT) {\n const contentValue = this._content.nativeElement.innerText;\n if (contentValue && contentValue !== '') {\n this.abbreviate = this._generateAbbreviation(contentValue);\n break;\n }\n\n continue;\n }\n\n if (option === ALTER_ICON_OPTIONS.ALT) {\n const altValue = this.elementRef().nativeElement.getAttribute('alt');\n if (altValue && altValue !== '') {\n this.abbreviate = this._generateAbbreviation(altValue);\n break;\n }\n\n continue;\n }\n\n if (option === ALTER_ICON_OPTIONS.BACKUP) {\n if (this._backupImage && this._backupImage !== '') {\n // Check if backupImage can be loaded successfully\n // If not, set default user icon\n this._verifyImageUrl(\n this._backupImage,\n () => {\n this._assignBgImage(this._backupImage);\n this._cdr.detectChanges();\n },\n () => {\n this._showDefaultIcon();\n this._cdr.detectChanges();\n }\n );\n break;\n }\n\n continue;\n }\n\n if (option === ALTER_ICON_OPTIONS.DEFAULT_ICON) {\n this._showDefaultIcon();\n break;\n }\n\n this._showDefaultIcon();\n }\n }\n\n this._cdr.detectChanges();\n }\n\n /** @hidden */\n private _showDefaultIcon(): void {\n this.abbreviate = null;\n this._image = null;\n this.glyph = null;\n }\n}\n","{{ abbreviate }}\n\n<i\n *ngIf=\"zoomGlyph\"\n role=\"presentation\"\n class=\"fd-avatar__zoom-icon\"\n [class]=\"zoomGlyph ? 'sap-icon--' + zoomGlyph : ''\"\n>\n</i>\n<i *ngIf=\"glyph\" class=\"fd-avatar__icon\" [class]=\"glyph ? ' sap-icon--' + glyph : ''\" role=\"presentation\"> </i>\n<i *ngIf=\"showDefault\" class=\"fd-avatar__icon sap-icon--person-placeholder\" role=\"presentation\"> </i>\n<div #content style=\"display: none\">\n <ng-content></ng-content>\n</div>\n","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\n\nimport { AvatarComponent } from './avatar.component';\n\n@NgModule({\n imports: [CommonModule],\n exports: [AvatarComponent],\n declarations: [AvatarComponent]\n})\nexport class AvatarModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":[],"mappings":";;;;;;;AAqBA,IAAI,cAAc,GAAG,CAAC,CAAC;AAEvB,MAAM,kBAAkB,GAAG;IACvB,OAAO,EAAE,SAAS;IAClB,GAAG,EAAE,KAAK;IACV,MAAM,EAAE,QAAQ;IAChB,YAAY,EAAE,cAAc;CAC/B,CAAC;MAWW,eAAe;;IAyIxB,YAAoB,WAAuB,EAAU,IAAuB;QAAxD,gBAAW,GAAX,WAAW,CAAY;QAAU,SAAI,GAAJ,IAAI,CAAmB;;QAjI5E,OAAE,GAAG,aAAa,cAAc,EAAE,EAAE,CAAC;;QAKrC,cAAS,GAAW,IAAI,CAAC;;QAKzB,mBAAc,GAAW,IAAI,CAAC;;QAUrB,SAAI,GAAS,GAAG,CAAC;;QAGjB,UAAK,GAAW,IAAI,CAAC;;QAGrB,cAAS,GAAW,IAAI,CAAC;;QAGzB,WAAM,GAAG,KAAK,CAAC;;QAGf,gBAAW,GAAG,KAAK,CAAC;;QAGp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B,OAAO;sBADV,SAAS;uBAAC,SAAS;;;;;;QA8CpB,sBAAsB;;MEvLb,YAAY;;yGAAZ,YAAY;0GAAZ,YAAY,iBAFN,eAAe,aAFpB,YAAY,aACZ,eAAe;0GAGhB,YAAY,YAJZ,CAAC,YAAY,CAAC;2FAId,YAAY;kBALxB,QAAQ;mBAAC;oBACN,OAAO,EAAE,CAAC,YAAY,CAAC;oBACvB,OAAO,EAAE,CAAC,eAAe,CAAC;oBAC1B,YAAY,EAAE,CAAC,eAAe,CAAC;iBAClC;;;ACTD;;;;;;"}
@@ -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 i1 from '@angular/cdk/platform';
8
- import * as i2 from '@fundamental-ngx/core/utils';
9
- 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';
10
8
  import equal from 'fast-deep-equal';
11
- import { SPACE } from '@angular/cdk/keycodes';
12
9
  import { Subscription } from 'rxjs';
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 = { ...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,25 +197,27 @@ 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 () { return [{ type: i0.ElementRef }, { type: undefined, decorators: [{
222
202
  type: Attribute,
223
203
  args: ['tabIndexValue']
224
- }] }, { type: i1.Platform }, { type: i0.ChangeDetectorRef }, { type: i2.ContentDensityService, decorators: [{
204
+ }] }, { type: i0.ChangeDetectorRef }, { type: i0.Renderer2 }, { type: i1.ContentDensityService, decorators: [{
225
205
  type: Optional
226
206
  }] }, { type: undefined, decorators: [{
227
207
  type: Optional
228
208
  }, {
229
209
  type: Inject,
230
210
  args: [LIST_ITEM_COMPONENT]
231
- }] }]; }, propDecorators: { inputLabel: [{
211
+ }] }]; }, propDecorators: { inputElement: [{
232
212
  type: ViewChild,
233
- args: ['inputLabel']
213
+ args: ['inputElement']
234
214
  }], labelElement: [{
235
215
  type: ViewChild,
236
216
  args: ['labelElement']
237
217
  }], ariaLabel: [{
238
218
  type: Input
219
+ }], value: [{
220
+ type: Input
239
221
  }], ariaLabelledBy: [{
240
222
  type: Input
241
223
  }], ariaDescribedBy: [{