@mintplayer/ng-bootstrap 22.13.0 → 22.15.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (129) hide show
  1. package/charts/hierarchy/package.json +4 -0
  2. package/charts/sparkline/package.json +4 -0
  3. package/charts/trend/package.json +4 -0
  4. package/fesm2022/mintplayer-ng-bootstrap-a11y.mjs +24 -24
  5. package/fesm2022/mintplayer-ng-bootstrap-accordion.mjs +9 -9
  6. package/fesm2022/mintplayer-ng-bootstrap-alert.mjs +6 -6
  7. package/fesm2022/mintplayer-ng-bootstrap-badge.mjs +3 -3
  8. package/fesm2022/mintplayer-ng-bootstrap-breadcrumb.mjs +6 -6
  9. package/fesm2022/mintplayer-ng-bootstrap-button-group.mjs +3 -3
  10. package/fesm2022/mintplayer-ng-bootstrap-button-type.mjs +3 -3
  11. package/fesm2022/mintplayer-ng-bootstrap-calendar-month.mjs +9 -9
  12. package/fesm2022/mintplayer-ng-bootstrap-calendar.mjs +3 -3
  13. package/fesm2022/mintplayer-ng-bootstrap-card.mjs +30 -30
  14. package/fesm2022/mintplayer-ng-bootstrap-carousel.mjs +3 -3
  15. package/fesm2022/mintplayer-ng-bootstrap-charts-hierarchy.mjs +152 -0
  16. package/fesm2022/mintplayer-ng-bootstrap-charts-hierarchy.mjs.map +1 -0
  17. package/fesm2022/mintplayer-ng-bootstrap-charts-sparkline.mjs +59 -0
  18. package/fesm2022/mintplayer-ng-bootstrap-charts-sparkline.mjs.map +1 -0
  19. package/fesm2022/mintplayer-ng-bootstrap-charts-trend.mjs +79 -0
  20. package/fesm2022/mintplayer-ng-bootstrap-charts-trend.mjs.map +1 -0
  21. package/fesm2022/mintplayer-ng-bootstrap-checkbox.mjs +11 -10
  22. package/fesm2022/mintplayer-ng-bootstrap-checkbox.mjs.map +1 -1
  23. package/fesm2022/mintplayer-ng-bootstrap-close.mjs +3 -3
  24. package/fesm2022/mintplayer-ng-bootstrap-code-snippet.mjs +94 -22
  25. package/fesm2022/mintplayer-ng-bootstrap-code-snippet.mjs.map +1 -1
  26. package/fesm2022/mintplayer-ng-bootstrap-color-picker.mjs +38 -34
  27. package/fesm2022/mintplayer-ng-bootstrap-color-picker.mjs.map +1 -1
  28. package/fesm2022/mintplayer-ng-bootstrap-container.mjs +3 -3
  29. package/fesm2022/mintplayer-ng-bootstrap-context-menu.mjs +3 -3
  30. package/fesm2022/mintplayer-ng-bootstrap-copy.mjs +3 -3
  31. package/fesm2022/mintplayer-ng-bootstrap-datatable.mjs +9 -9
  32. package/fesm2022/mintplayer-ng-bootstrap-datepicker.mjs +3 -3
  33. package/fesm2022/mintplayer-ng-bootstrap-datetime-picker.mjs +3 -3
  34. package/fesm2022/mintplayer-ng-bootstrap-dock.mjs +8 -7
  35. package/fesm2022/mintplayer-ng-bootstrap-dock.mjs.map +1 -1
  36. package/fesm2022/mintplayer-ng-bootstrap-dropdown-divider.mjs +3 -3
  37. package/fesm2022/mintplayer-ng-bootstrap-dropdown-menu.mjs +12 -12
  38. package/fesm2022/mintplayer-ng-bootstrap-dropdown.mjs +14 -13
  39. package/fesm2022/mintplayer-ng-bootstrap-dropdown.mjs.map +1 -1
  40. package/fesm2022/mintplayer-ng-bootstrap-enhanced-paste.mjs +3 -3
  41. package/fesm2022/mintplayer-ng-bootstrap-enum.mjs +3 -3
  42. package/fesm2022/mintplayer-ng-bootstrap-file-manager.mjs +3 -3
  43. package/fesm2022/mintplayer-ng-bootstrap-file-upload.mjs +9 -9
  44. package/fesm2022/mintplayer-ng-bootstrap-floating-labels.mjs +3 -3
  45. package/fesm2022/mintplayer-ng-bootstrap-font-color.mjs +3 -3
  46. package/fesm2022/mintplayer-ng-bootstrap-for.mjs +3 -3
  47. package/fesm2022/mintplayer-ng-bootstrap-form.mjs +9 -9
  48. package/fesm2022/mintplayer-ng-bootstrap-grid.mjs +15 -15
  49. package/fesm2022/mintplayer-ng-bootstrap-has-overlay.mjs +3 -3
  50. package/fesm2022/mintplayer-ng-bootstrap-has-property.mjs +3 -3
  51. package/fesm2022/mintplayer-ng-bootstrap-in-list.mjs +3 -3
  52. package/fesm2022/mintplayer-ng-bootstrap-input-group.mjs +3 -3
  53. package/fesm2022/mintplayer-ng-bootstrap-instance-of.mjs +12 -12
  54. package/fesm2022/mintplayer-ng-bootstrap-let.mjs +3 -3
  55. package/fesm2022/mintplayer-ng-bootstrap-linify.mjs +3 -3
  56. package/fesm2022/mintplayer-ng-bootstrap-list-group.mjs +6 -6
  57. package/fesm2022/mintplayer-ng-bootstrap-markdown.mjs +12 -12
  58. package/fesm2022/mintplayer-ng-bootstrap-marquee.mjs +3 -3
  59. package/fesm2022/mintplayer-ng-bootstrap-modal.mjs +24 -24
  60. package/fesm2022/mintplayer-ng-bootstrap-multi-range.mjs +8 -7
  61. package/fesm2022/mintplayer-ng-bootstrap-multi-range.mjs.map +1 -1
  62. package/fesm2022/mintplayer-ng-bootstrap-navbar-toggler.mjs +3 -3
  63. package/fesm2022/mintplayer-ng-bootstrap-navbar.mjs +26 -25
  64. package/fesm2022/mintplayer-ng-bootstrap-navbar.mjs.map +1 -1
  65. package/fesm2022/mintplayer-ng-bootstrap-navigation-lock.mjs +6 -6
  66. package/fesm2022/mintplayer-ng-bootstrap-no-noscript.mjs +3 -3
  67. package/fesm2022/mintplayer-ng-bootstrap-observe-size.mjs +3 -3
  68. package/fesm2022/mintplayer-ng-bootstrap-offcanvas.mjs +24 -24
  69. package/fesm2022/mintplayer-ng-bootstrap-ordinal-number.mjs +3 -3
  70. package/fesm2022/mintplayer-ng-bootstrap-otp-input.mjs +8 -7
  71. package/fesm2022/mintplayer-ng-bootstrap-otp-input.mjs.map +1 -1
  72. package/fesm2022/mintplayer-ng-bootstrap-pagination.mjs +3 -3
  73. package/fesm2022/mintplayer-ng-bootstrap-parallax.mjs +3 -3
  74. package/fesm2022/mintplayer-ng-bootstrap-phone-input.mjs +5 -4
  75. package/fesm2022/mintplayer-ng-bootstrap-phone-input.mjs.map +1 -1
  76. package/fesm2022/mintplayer-ng-bootstrap-placeholder.mjs +6 -6
  77. package/fesm2022/mintplayer-ng-bootstrap-playlist-toggler.mjs +3 -3
  78. package/fesm2022/mintplayer-ng-bootstrap-popover.mjs +15 -15
  79. package/fesm2022/mintplayer-ng-bootstrap-priority-nav.mjs +6 -6
  80. package/fesm2022/mintplayer-ng-bootstrap-progress-bar.mjs +6 -6
  81. package/fesm2022/mintplayer-ng-bootstrap-query-builder.mjs +6 -6
  82. package/fesm2022/mintplayer-ng-bootstrap-radio.mjs +8 -7
  83. package/fesm2022/mintplayer-ng-bootstrap-radio.mjs.map +1 -1
  84. package/fesm2022/mintplayer-ng-bootstrap-range.mjs +8 -7
  85. package/fesm2022/mintplayer-ng-bootstrap-range.mjs.map +1 -1
  86. package/fesm2022/mintplayer-ng-bootstrap-rating.mjs +3 -3
  87. package/fesm2022/mintplayer-ng-bootstrap-resizable.mjs +6 -6
  88. package/fesm2022/mintplayer-ng-bootstrap-ribbon.mjs +56 -55
  89. package/fesm2022/mintplayer-ng-bootstrap-ribbon.mjs.map +1 -1
  90. package/fesm2022/mintplayer-ng-bootstrap-scheduler.mjs +5 -4
  91. package/fesm2022/mintplayer-ng-bootstrap-scheduler.mjs.map +1 -1
  92. package/fesm2022/mintplayer-ng-bootstrap-scrollspy.mjs +9 -9
  93. package/fesm2022/mintplayer-ng-bootstrap-select.mjs +11 -10
  94. package/fesm2022/mintplayer-ng-bootstrap-select.mjs.map +1 -1
  95. package/fesm2022/mintplayer-ng-bootstrap-shell.mjs +8 -7
  96. package/fesm2022/mintplayer-ng-bootstrap-shell.mjs.map +1 -1
  97. package/fesm2022/mintplayer-ng-bootstrap-signature-pad.mjs +5 -4
  98. package/fesm2022/mintplayer-ng-bootstrap-signature-pad.mjs.map +1 -1
  99. package/fesm2022/mintplayer-ng-bootstrap-slugify.mjs +3 -3
  100. package/fesm2022/mintplayer-ng-bootstrap-spinner.mjs +3 -3
  101. package/fesm2022/mintplayer-ng-bootstrap-split-string.mjs +3 -3
  102. package/fesm2022/mintplayer-ng-bootstrap-splitter.mjs +3 -3
  103. package/fesm2022/mintplayer-ng-bootstrap-sticky-footer.mjs +8 -7
  104. package/fesm2022/mintplayer-ng-bootstrap-sticky-footer.mjs.map +1 -1
  105. package/fesm2022/mintplayer-ng-bootstrap-tab-control.mjs +9 -9
  106. package/fesm2022/mintplayer-ng-bootstrap-table.mjs +7 -7
  107. package/fesm2022/mintplayer-ng-bootstrap-table.mjs.map +1 -1
  108. package/fesm2022/mintplayer-ng-bootstrap-theming.mjs +3 -3
  109. package/fesm2022/mintplayer-ng-bootstrap-tile-manager.mjs +13 -11
  110. package/fesm2022/mintplayer-ng-bootstrap-tile-manager.mjs.map +1 -1
  111. package/fesm2022/mintplayer-ng-bootstrap-timeline.mjs +21 -21
  112. package/fesm2022/mintplayer-ng-bootstrap-timepicker.mjs +3 -3
  113. package/fesm2022/mintplayer-ng-bootstrap-toast.mjs +21 -21
  114. package/fesm2022/mintplayer-ng-bootstrap-tooltip.mjs +6 -6
  115. package/fesm2022/mintplayer-ng-bootstrap-tree-select.mjs +24 -24
  116. package/fesm2022/mintplayer-ng-bootstrap-treeview.mjs +6 -6
  117. package/fesm2022/mintplayer-ng-bootstrap-trust-html.mjs +3 -3
  118. package/fesm2022/mintplayer-ng-bootstrap-typeahead.mjs +5 -4
  119. package/fesm2022/mintplayer-ng-bootstrap-typeahead.mjs.map +1 -1
  120. package/fesm2022/mintplayer-ng-bootstrap-uc-first.mjs +3 -3
  121. package/fesm2022/mintplayer-ng-bootstrap-user-agent.mjs +3 -3
  122. package/fesm2022/mintplayer-ng-bootstrap-viewport.mjs +3 -3
  123. package/fesm2022/mintplayer-ng-bootstrap-word-count.mjs +3 -3
  124. package/package.json +13 -1
  125. package/types/mintplayer-ng-bootstrap-charts-hierarchy.d.ts +44 -0
  126. package/types/mintplayer-ng-bootstrap-charts-sparkline.d.ts +20 -0
  127. package/types/mintplayer-ng-bootstrap-charts-trend.d.ts +28 -0
  128. package/types/mintplayer-ng-bootstrap-code-snippet.d.ts +61 -15
  129. package/src/styles/ngx-highlight-themes/a11y-dark.scss +0 -107
@@ -37,14 +37,14 @@ class BsCheckboxValueAccessor {
37
37
  if (wc)
38
38
  wc.disabled = isDisabled;
39
39
  }
40
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: BsCheckboxValueAccessor, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
41
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.0.0", type: BsCheckboxValueAccessor, isStandalone: true, selector: "bs-checkbox", host: { listeners: { "change": "onChangeEvent($event)", "focusout": "onTouched?.()" } }, providers: [{
40
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsCheckboxValueAccessor, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
41
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.0.8", type: BsCheckboxValueAccessor, isStandalone: true, selector: "bs-checkbox", host: { listeners: { "change": "onChangeEvent($event)", "focusout": "onTouched?.()" } }, providers: [{
42
42
  provide: NG_VALUE_ACCESSOR,
43
43
  useExisting: forwardRef(() => BsCheckboxValueAccessor),
44
44
  multi: true,
45
45
  }], ngImport: i0 }); }
46
46
  }
47
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: BsCheckboxValueAccessor, decorators: [{
47
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsCheckboxValueAccessor, decorators: [{
48
48
  type: Directive,
49
49
  args: [{
50
50
  selector: 'bs-checkbox',
@@ -148,14 +148,14 @@ class BsCheckboxGroupDirective {
148
148
  wc.disabled = isDisabled;
149
149
  });
150
150
  }
151
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: BsCheckboxGroupDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
152
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.2.0", version: "22.0.0", type: BsCheckboxGroupDirective, isStandalone: true, selector: "[bsCheckboxGroup]", inputs: { name: { classPropertyName: "name", publicName: "name", isSignal: true, isRequired: false, transformFunction: null }, label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null } }, host: { listeners: { "change": "onChildChange()", "focusout": "onTouched?.()" } }, providers: [{
151
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsCheckboxGroupDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
152
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.2.0", version: "22.0.8", type: BsCheckboxGroupDirective, isStandalone: true, selector: "[bsCheckboxGroup]", inputs: { name: { classPropertyName: "name", publicName: "name", isSignal: true, isRequired: false, transformFunction: null }, label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null } }, host: { listeners: { "change": "onChildChange()", "focusout": "onTouched?.()" } }, providers: [{
153
153
  provide: NG_VALUE_ACCESSOR,
154
154
  useExisting: forwardRef(() => BsCheckboxGroupDirective),
155
155
  multi: true,
156
156
  }], queries: [{ propertyName: "checkboxes", predicate: i0.forwardRef(() => BsCheckboxComponent), descendants: true, isSignal: true }], exportAs: ["bsCheckboxGroup"], ngImport: i0 }); }
157
157
  }
158
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: BsCheckboxGroupDirective, decorators: [{
158
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsCheckboxGroupDirective, decorators: [{
159
159
  type: Directive,
160
160
  args: [{
161
161
  selector: '[bsCheckboxGroup]',
@@ -181,7 +181,8 @@ class BsCheckboxComponent {
181
181
  /** Reference to the underlying `<mp-checkbox>` WC. Read by
182
182
  * `BsCheckboxValueAccessor` and `[bsCheckboxGroup]` to write the WC's
183
183
  * `checked` / `disabled` / `indeterminate` properties. */
184
- this.checkboxRef = viewChild.required('checkbox');
184
+ this.checkboxRef = viewChild.required('checkbox', /* @ts-ignore */
185
+ ...(ngDevMode ? [{ debugName: "checkboxRef" }] : /* istanbul ignore next */ []));
185
186
  this.type = input('checkbox', /* @ts-ignore */
186
187
  ...(ngDevMode ? [{ debugName: "type" }] : /* istanbul ignore next */ []));
187
188
  this.isToggled = model(false, /* @ts-ignore */
@@ -223,10 +224,10 @@ class BsCheckboxComponent {
223
224
  this.isToggled.set(detail.checked);
224
225
  this.indeterminate.set(detail.indeterminate);
225
226
  }
226
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: BsCheckboxComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
227
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "22.0.0", type: BsCheckboxComponent, isStandalone: true, selector: "bs-checkbox", inputs: { type: { classPropertyName: "type", publicName: "type", isSignal: true, isRequired: false, transformFunction: null }, isToggled: { classPropertyName: "isToggled", publicName: "isToggled", isSignal: true, isRequired: false, transformFunction: null }, indeterminate: { classPropertyName: "indeterminate", publicName: "indeterminate", isSignal: true, isRequired: false, transformFunction: null }, name: { classPropertyName: "name", publicName: "name", isSignal: true, isRequired: false, transformFunction: null }, value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null }, group: { classPropertyName: "group", publicName: "group", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { isToggled: "isToggledChange", indeterminate: "indeterminateChange" }, host: { classAttribute: "d-inline-block" }, viewQueries: [{ propertyName: "checkboxRef", first: true, predicate: ["checkbox"], descendants: true, isSignal: true }], hostDirectives: [{ directive: BsCheckboxValueAccessor }, { directive: i2.BsControlValidityDirective, inputs: ["errorMessages", "errorMessages"] }], ngImport: i0, template: "<mp-checkbox bsForwardAria #checkbox (change)=\"onChange($event)\">\n <ng-content></ng-content>\n</mp-checkbox>\n", dependencies: [{ kind: "directive", type: BsForwardAriaDirective, selector: "[bsForwardAria]" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
227
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsCheckboxComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
228
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "22.0.8", type: BsCheckboxComponent, isStandalone: true, selector: "bs-checkbox", inputs: { type: { classPropertyName: "type", publicName: "type", isSignal: true, isRequired: false, transformFunction: null }, isToggled: { classPropertyName: "isToggled", publicName: "isToggled", isSignal: true, isRequired: false, transformFunction: null }, indeterminate: { classPropertyName: "indeterminate", publicName: "indeterminate", isSignal: true, isRequired: false, transformFunction: null }, name: { classPropertyName: "name", publicName: "name", isSignal: true, isRequired: false, transformFunction: null }, value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null }, group: { classPropertyName: "group", publicName: "group", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { isToggled: "isToggledChange", indeterminate: "indeterminateChange" }, host: { classAttribute: "d-inline-block" }, viewQueries: [{ propertyName: "checkboxRef", first: true, predicate: ["checkbox"], descendants: true, isSignal: true }], hostDirectives: [{ directive: BsCheckboxValueAccessor }, { directive: i2.BsControlValidityDirective, inputs: ["errorMessages", "errorMessages"] }], ngImport: i0, template: "<mp-checkbox bsForwardAria #checkbox (change)=\"onChange($event)\">\n <ng-content></ng-content>\n</mp-checkbox>\n", dependencies: [{ kind: "directive", type: BsForwardAriaDirective, selector: "[bsForwardAria]" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
228
229
  }
229
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: BsCheckboxComponent, decorators: [{
230
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsCheckboxComponent, decorators: [{
230
231
  type: Component,
231
232
  args: [{ selector: 'bs-checkbox', imports: [BsForwardAriaDirective], schemas: [CUSTOM_ELEMENTS_SCHEMA], changeDetection: ChangeDetectionStrategy.OnPush, hostDirectives: [BsCheckboxValueAccessor, {
232
233
  directive: BsControlValidityDirective,
@@ -1 +1 @@
1
- {"version":3,"file":"mintplayer-ng-bootstrap-checkbox.mjs","sources":["../../../../libs/mintplayer-ng-bootstrap/checkbox/src/value-accessor/checkbox-value-accessor.ts","../../../../libs/mintplayer-ng-bootstrap/checkbox/src/directives/checkbox-group/checkbox-group.directive.ts","../../../../libs/mintplayer-ng-bootstrap/checkbox/src/component/checkbox.component.ts","../../../../libs/mintplayer-ng-bootstrap/checkbox/src/component/checkbox.component.html","../../../../libs/mintplayer-ng-bootstrap/checkbox/mintplayer-ng-bootstrap-checkbox.ts"],"sourcesContent":["import { Directive, forwardRef, inject } from '@angular/core';\nimport { ControlValueAccessor, NG_VALUE_ACCESSOR } from '@angular/forms';\nimport type { CheckboxChangeEventDetail } from '@mintplayer/web-components/checkbox';\nimport { BsCheckboxComponent } from '../component/checkbox.component';\n\n/**\n * Single-mode (standalone) value accessor for `<bs-checkbox>`. Emits a\n * `boolean` reflecting the checked state. For multi-mode use, bind\n * `[formControl]` on `[bsCheckboxGroup]` instead — that directive owns\n * its own `string[]` accessor.\n */\n@Directive({\n selector: 'bs-checkbox',\n providers: [{\n provide: NG_VALUE_ACCESSOR,\n useExisting: forwardRef(() => BsCheckboxValueAccessor),\n multi: true,\n }],\n host: {\n '(change)': 'onChangeEvent($event)',\n // focusout is composed: the shadow input's blur reaches the host. The\n // stored onTouched was never CALLED before, which kept every\n // invalid-after-touched mirror dead (audit 4.9 prerequisite).\n '(focusout)': 'onTouched?.()',\n },\n})\nexport class BsCheckboxValueAccessor implements ControlValueAccessor {\n\n private host = inject(BsCheckboxComponent);\n\n onValueChange?: (value: boolean) => void;\n onTouched?: () => void;\n\n onChangeEvent(ev: Event) {\n if (!this.onValueChange) return;\n // The bubbled `change` originates from <mp-checkbox> and is a\n // CustomEvent with a `CheckboxChangeEventDetail` payload.\n const detail = (ev as CustomEvent<CheckboxChangeEventDetail>).detail;\n this.onValueChange(detail.checked);\n }\n\n registerOnChange(fn: (_: boolean) => void) {\n this.onValueChange = fn;\n }\n\n registerOnTouched(fn: () => void) {\n this.onTouched = fn;\n }\n\n writeValue(value: boolean) {\n this.host.isToggled.set(value);\n }\n\n setDisabledState(isDisabled: boolean) {\n const wc = this.host.checkboxRef()?.nativeElement;\n if (wc) wc.disabled = isDisabled;\n }\n}\n","import { contentChildren, Directive, effect, ElementRef, forwardRef, inject, input, signal } from '@angular/core';\nimport { ControlValueAccessor, NG_VALUE_ACCESSOR } from '@angular/forms';\nimport { BsCheckboxComponent } from '../../component/checkbox.component';\n\n/**\n * Groups N `<bs-checkbox>` children into a multi-select FormControl whose\n * value is a `string[]` of every checked child's `value()`. The group's\n * `[name]` is the form-array name; the accessor appends the `[]` suffix\n * automatically on each child's inner `<input>` for traditional-form\n * submission. Per-instance `[name]` on each child is ignored when the\n * child resolves into a group.\n *\n * Acts as its own `ControlValueAccessor` — bind `[formControl]` / `[(ngModel)]`\n * directly on the element carrying `[bsCheckboxGroup]`. Listens to bubbled\n * `change` events from the children to recompute the array on every toggle.\n */\n@Directive({\n selector: '[bsCheckboxGroup]',\n exportAs: 'bsCheckboxGroup',\n providers: [{\n provide: NG_VALUE_ACCESSOR,\n useExisting: forwardRef(() => BsCheckboxGroupDirective),\n multi: true,\n }],\n host: {\n '(change)': 'onChildChange()',\n // focusout is composed: the shadow input's blur reaches the host. The\n // stored onTouched was never CALLED before, which kept every\n // invalid-after-touched mirror dead (audit 4.9 prerequisite).\n '(focusout)': 'onTouched?.()',\n },\n})\nexport class BsCheckboxGroupDirective implements ControlValueAccessor {\n\n private readonly host = inject(ElementRef).nativeElement as HTMLElement;\n\n readonly name = input<string | null>(null);\n\n /** Accessible name for the group (written as `aria-label`). A bare\n * `role=\"group\"` is announced as nothing at all; the label is what makes\n * the grouping audible (\"Toppings, group\"). */\n readonly label = input<string | null>(null);\n // Wrap in forwardRef: BsCheckboxComponent imports this directive (for\n // `inject(BsCheckboxGroupDirective, {...})`), so the two modules form a\n // cycle. Whichever side webpack/vite evaluates first sees `undefined` for\n // the other's exports at field-initialiser time, which makes the recorded\n // query predicate null — ng-mocks' MockDirective then fails with \"the\n // query selector wasn't defined\" on consumers that mock the group.\n readonly checkboxes = contentChildren<BsCheckboxComponent>(forwardRef(() => BsCheckboxComponent), { descendants: true });\n\n /** Most-recently-written form value. An effect syncs each child's\n * `isToggled` (and the WC's `checked` property) whenever this OR the\n * `checkboxes()` set changes, so an initial `writeValue` that lands\n * before children register still applies once the `contentChildren`\n * query populates. */\n private readonly currentValue = signal<readonly string[]>([]);\n\n private onValueChange?: (value: string[]) => void;\n // protected, not private: the focusout host binding compiles outside the\n // class body under AOT and cannot reach a private member.\n protected onTouched?: () => void;\n\n constructor() {\n // role=\"group\" so the checkboxes announce as one named cluster — but only\n // on hosts whose implicit role is generic. Structural hosts (the tbody\n // row-selection shape) have load-bearing native semantics that a group\n // role would destroy, and a consumer-set role always wins.\n const structural = ['TABLE', 'THEAD', 'TBODY', 'TFOOT', 'TR', 'UL', 'OL', 'LI'];\n if (!this.host.hasAttribute('role') && !structural.includes(this.host.tagName)) {\n this.host.setAttribute('role', 'group');\n }\n effect(() => {\n const label = this.label();\n if (label !== null) this.host.setAttribute('aria-label', label);\n });\n effect(() => {\n const arr = this.currentValue();\n this.checkboxes().forEach(cb => {\n const v = cb.value();\n const isSelected = v != null && arr.includes(v);\n cb.isToggled.set(isSelected);\n const wc = cb.checkboxRef()?.nativeElement;\n if (wc) wc.checked = isSelected;\n });\n });\n }\n\n onChildChange() {\n if (!this.onValueChange) return;\n const result = this.checkboxes()\n .filter(cb => !!cb.isToggled() && cb.value() != null)\n .map(cb => cb.value()!);\n this.onValueChange(result);\n }\n\n registerOnChange(fn: (_: string[]) => void) {\n this.onValueChange = fn;\n }\n\n registerOnTouched(fn: () => void) {\n this.onTouched = fn;\n }\n\n writeValue(value: string[] | null) {\n this.currentValue.set(Array.isArray(value) ? value : []);\n }\n\n setDisabledState(isDisabled: boolean) {\n this.checkboxes().forEach(cb => {\n const wc = cb.checkboxRef()?.nativeElement;\n if (wc) wc.disabled = isDisabled;\n });\n }\n}\n","import {\n ChangeDetectionStrategy,\n Component,\n computed,\n CUSTOM_ELEMENTS_SCHEMA,\n effect,\n ElementRef,\n inject,\n input,\n model,\n viewChild,\n} from '@angular/core';\nimport { BsCheckboxValueAccessor } from '../value-accessor/checkbox-value-accessor';\nimport { BsCheckboxGroupDirective } from '../directives/checkbox-group/checkbox-group.directive';\nimport { BsCheckboxType } from '../types/checkbox-type';\nimport type { CheckboxChangeEventDetail, MpCheckbox } from '@mintplayer/web-components/checkbox';\n\n// Side-effect import: registers <mp-checkbox>.\nimport '@mintplayer/web-components/checkbox';\nimport { BsForwardAriaDirective, BsControlValidityDirective } from '@mintplayer/ng-bootstrap/a11y';\n\n@Component({\n selector: 'bs-checkbox',\n templateUrl: './checkbox.component.html',\n imports: [BsForwardAriaDirective],\n schemas: [CUSTOM_ELEMENTS_SCHEMA],\n changeDetection: ChangeDetectionStrategy.OnPush,\n hostDirectives: [BsCheckboxValueAccessor, {\n directive: BsControlValidityDirective,\n inputs: ['errorMessages'],\n }],\n host: {\n 'class': 'd-inline-block',\n },\n})\nexport class BsCheckboxComponent {\n\n private readonly parentGroup = inject(BsCheckboxGroupDirective, { optional: true, skipSelf: true });\n\n /** Reference to the underlying `<mp-checkbox>` WC. Read by\n * `BsCheckboxValueAccessor` and `[bsCheckboxGroup]` to write the WC's\n * `checked` / `disabled` / `indeterminate` properties. */\n readonly checkboxRef = viewChild.required<ElementRef<MpCheckbox>>('checkbox');\n\n type = input<BsCheckboxType>('checkbox');\n isToggled = model<boolean | null>(false);\n indeterminate = model<boolean>(false);\n name = input<string | null>(null);\n value = input<string | null>(null);\n group = input<BsCheckboxGroupDirective | null>(null);\n\n /** Explicit `[group]` input wins over the DI-injected ancestor. */\n readonly resolvedGroup = computed(() => this.group() ?? this.parentGroup ?? null);\n\n /** Single-mode → component's own `[name]`. Multi-mode → group's `[name]` + `[]`. */\n readonly nameResult = computed(() => {\n const group = this.resolvedGroup();\n if (group) {\n const groupName = group.name();\n return groupName == null ? null : `${groupName}[]`;\n }\n return this.name();\n });\n\n constructor() {\n effect(() => {\n const el = this.checkboxRef()?.nativeElement;\n if (!el) return;\n el.type = this.type();\n el.value = this.value();\n el.name = this.nameResult();\n el.checked = !!this.isToggled();\n el.indeterminate = this.indeterminate();\n });\n }\n\n onChange(ev: Event) {\n const detail = (ev as CustomEvent<CheckboxChangeEventDetail>).detail;\n this.isToggled.set(detail.checked);\n this.indeterminate.set(detail.indeterminate);\n }\n\n}\n","<mp-checkbox bsForwardAria #checkbox (change)=\"onChange($event)\">\n <ng-content></ng-content>\n</mp-checkbox>\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["i1.BsCheckboxValueAccessor"],"mappings":";;;;;;;AAKA;;;;;AAKG;MAgBU,uBAAuB,CAAA;AAfpC,IAAA,WAAA,GAAA;AAiBU,QAAA,IAAA,CAAA,IAAI,GAAG,MAAM,CAAC,mBAAmB,CAAC;AA6B3C,IAAA;AAxBC,IAAA,aAAa,CAAC,EAAS,EAAA;QACrB,IAAI,CAAC,IAAI,CAAC,aAAa;YAAE;;;AAGzB,QAAA,MAAM,MAAM,GAAI,EAA6C,CAAC,MAAM;AACpE,QAAA,IAAI,CAAC,aAAa,CAAC,MAAM,CAAC,OAAO,CAAC;IACpC;AAEA,IAAA,gBAAgB,CAAC,EAAwB,EAAA;AACvC,QAAA,IAAI,CAAC,aAAa,GAAG,EAAE;IACzB;AAEA,IAAA,iBAAiB,CAAC,EAAc,EAAA;AAC9B,QAAA,I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A,EAAA,EAAA,CAAA,KAAA,EAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,IAAA,EAAA,KAAA,EAAA,OAAA,EAAA,QAAA,EAAA,KAAA,EAAA,CAAA,EAAA,CAAA,EAAA,KAAA,EAAA,CAAA,EAAA,IAAA,EAAA,EAAA,CAAA,KAAA,EAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,IAAA,EAAA,KAAA,EAAA,OAAA,EAAA,QAAA,EAAA,KAAA,EAAA,CAAA,EAAA,CAAA,EAAA,EAAA,CAAA;;AE1C9E;;AAEG;;;;"}
1
+ {"version":3,"file":"mintplayer-ng-bootstrap-checkbox.mjs","sources":["../../../../libs/mintplayer-ng-bootstrap/checkbox/src/value-accessor/checkbox-value-accessor.ts","../../../../libs/mintplayer-ng-bootstrap/checkbox/src/directives/checkbox-group/checkbox-group.directive.ts","../../../../libs/mintplayer-ng-bootstrap/checkbox/src/component/checkbox.component.ts","../../../../libs/mintplayer-ng-bootstrap/checkbox/src/component/checkbox.component.html","../../../../libs/mintplayer-ng-bootstrap/checkbox/mintplayer-ng-bootstrap-checkbox.ts"],"sourcesContent":["import { Directive, forwardRef, inject } from '@angular/core';\nimport { ControlValueAccessor, NG_VALUE_ACCESSOR } from '@angular/forms';\nimport type { CheckboxChangeEventDetail } from '@mintplayer/web-components/checkbox';\nimport { BsCheckboxComponent } from '../component/checkbox.component';\n\n/**\n * Single-mode (standalone) value accessor for `<bs-checkbox>`. Emits a\n * `boolean` reflecting the checked state. For multi-mode use, bind\n * `[formControl]` on `[bsCheckboxGroup]` instead — that directive owns\n * its own `string[]` accessor.\n */\n@Directive({\n selector: 'bs-checkbox',\n providers: [{\n provide: NG_VALUE_ACCESSOR,\n useExisting: forwardRef(() => BsCheckboxValueAccessor),\n multi: true,\n }],\n host: {\n '(change)': 'onChangeEvent($event)',\n // focusout is composed: the shadow input's blur reaches the host. The\n // stored onTouched was never CALLED before, which kept every\n // invalid-after-touched mirror dead (audit 4.9 prerequisite).\n '(focusout)': 'onTouched?.()',\n },\n})\nexport class BsCheckboxValueAccessor implements ControlValueAccessor {\n\n private host = inject(BsCheckboxComponent);\n\n onValueChange?: (value: boolean) => void;\n onTouched?: () => void;\n\n onChangeEvent(ev: Event) {\n if (!this.onValueChange) return;\n // The bubbled `change` originates from <mp-checkbox> and is a\n // CustomEvent with a `CheckboxChangeEventDetail` payload.\n const detail = (ev as CustomEvent<CheckboxChangeEventDetail>).detail;\n this.onValueChange(detail.checked);\n }\n\n registerOnChange(fn: (_: boolean) => void) {\n this.onValueChange = fn;\n }\n\n registerOnTouched(fn: () => void) {\n this.onTouched = fn;\n }\n\n writeValue(value: boolean) {\n this.host.isToggled.set(value);\n }\n\n setDisabledState(isDisabled: boolean) {\n const wc = this.host.checkboxRef()?.nativeElement;\n if (wc) wc.disabled = isDisabled;\n }\n}\n","import { contentChildren, Directive, effect, ElementRef, forwardRef, inject, input, signal } from '@angular/core';\nimport { ControlValueAccessor, NG_VALUE_ACCESSOR } from '@angular/forms';\nimport { BsCheckboxComponent } from '../../component/checkbox.component';\n\n/**\n * Groups N `<bs-checkbox>` children into a multi-select FormControl whose\n * value is a `string[]` of every checked child's `value()`. The group's\n * `[name]` is the form-array name; the accessor appends the `[]` suffix\n * automatically on each child's inner `<input>` for traditional-form\n * submission. Per-instance `[name]` on each child is ignored when the\n * child resolves into a group.\n *\n * Acts as its own `ControlValueAccessor` — bind `[formControl]` / `[(ngModel)]`\n * directly on the element carrying `[bsCheckboxGroup]`. Listens to bubbled\n * `change` events from the children to recompute the array on every toggle.\n */\n@Directive({\n selector: '[bsCheckboxGroup]',\n exportAs: 'bsCheckboxGroup',\n providers: [{\n provide: NG_VALUE_ACCESSOR,\n useExisting: forwardRef(() => BsCheckboxGroupDirective),\n multi: true,\n }],\n host: {\n '(change)': 'onChildChange()',\n // focusout is composed: the shadow input's blur reaches the host. The\n // stored onTouched was never CALLED before, which kept every\n // invalid-after-touched mirror dead (audit 4.9 prerequisite).\n '(focusout)': 'onTouched?.()',\n },\n})\nexport class BsCheckboxGroupDirective implements ControlValueAccessor {\n\n private readonly host = inject(ElementRef).nativeElement as HTMLElement;\n\n readonly name = input<string | null>(null);\n\n /** Accessible name for the group (written as `aria-label`). A bare\n * `role=\"group\"` is announced as nothing at all; the label is what makes\n * the grouping audible (\"Toppings, group\"). */\n readonly label = input<string | null>(null);\n // Wrap in forwardRef: BsCheckboxComponent imports this directive (for\n // `inject(BsCheckboxGroupDirective, {...})`), so the two modules form a\n // cycle. Whichever side webpack/vite evaluates first sees `undefined` for\n // the other's exports at field-initialiser time, which makes the recorded\n // query predicate null — ng-mocks' MockDirective then fails with \"the\n // query selector wasn't defined\" on consumers that mock the group.\n readonly checkboxes = contentChildren<BsCheckboxComponent>(forwardRef(() => BsCheckboxComponent), { descendants: true });\n\n /** Most-recently-written form value. An effect syncs each child's\n * `isToggled` (and the WC's `checked` property) whenever this OR the\n * `checkboxes()` set changes, so an initial `writeValue` that lands\n * before children register still applies once the `contentChildren`\n * query populates. */\n private readonly currentValue = signal<readonly string[]>([]);\n\n private onValueChange?: (value: string[]) => void;\n // protected, not private: the focusout host binding compiles outside the\n // class body under AOT and cannot reach a private member.\n protected onTouched?: () => void;\n\n constructor() {\n // role=\"group\" so the checkboxes announce as one named cluster — but only\n // on hosts whose implicit role is generic. Structural hosts (the tbody\n // row-selection shape) have load-bearing native semantics that a group\n // role would destroy, and a consumer-set role always wins.\n const structural = ['TABLE', 'THEAD', 'TBODY', 'TFOOT', 'TR', 'UL', 'OL', 'LI'];\n if (!this.host.hasAttribute('role') && !structural.includes(this.host.tagName)) {\n this.host.setAttribute('role', 'group');\n }\n effect(() => {\n const label = this.label();\n if (label !== null) this.host.setAttribute('aria-label', label);\n });\n effect(() => {\n const arr = this.currentValue();\n this.checkboxes().forEach(cb => {\n const v = cb.value();\n const isSelected = v != null && arr.includes(v);\n cb.isToggled.set(isSelected);\n const wc = cb.checkboxRef()?.nativeElement;\n if (wc) wc.checked = isSelected;\n });\n });\n }\n\n onChildChange() {\n if (!this.onValueChange) return;\n const result = this.checkboxes()\n .filter(cb => !!cb.isToggled() && cb.value() != null)\n .map(cb => cb.value()!);\n this.onValueChange(result);\n }\n\n registerOnChange(fn: (_: string[]) => void) {\n this.onValueChange = fn;\n }\n\n registerOnTouched(fn: () => void) {\n this.onTouched = fn;\n }\n\n writeValue(value: string[] | null) {\n this.currentValue.set(Array.isArray(value) ? value : []);\n }\n\n setDisabledState(isDisabled: boolean) {\n this.checkboxes().forEach(cb => {\n const wc = cb.checkboxRef()?.nativeElement;\n if (wc) wc.disabled = isDisabled;\n });\n }\n}\n","import {\n ChangeDetectionStrategy,\n Component,\n computed,\n CUSTOM_ELEMENTS_SCHEMA,\n effect,\n ElementRef,\n inject,\n input,\n model,\n viewChild,\n} from '@angular/core';\nimport { BsCheckboxValueAccessor } from '../value-accessor/checkbox-value-accessor';\nimport { BsCheckboxGroupDirective } from '../directives/checkbox-group/checkbox-group.directive';\nimport { BsCheckboxType } from '../types/checkbox-type';\nimport type { CheckboxChangeEventDetail, MpCheckbox } from '@mintplayer/web-components/checkbox';\n\n// Side-effect import: registers <mp-checkbox>.\nimport '@mintplayer/web-components/checkbox';\nimport { BsForwardAriaDirective, BsControlValidityDirective } from '@mintplayer/ng-bootstrap/a11y';\n\n@Component({\n selector: 'bs-checkbox',\n templateUrl: './checkbox.component.html',\n imports: [BsForwardAriaDirective],\n schemas: [CUSTOM_ELEMENTS_SCHEMA],\n changeDetection: ChangeDetectionStrategy.OnPush,\n hostDirectives: [BsCheckboxValueAccessor, {\n directive: BsControlValidityDirective,\n inputs: ['errorMessages'],\n }],\n host: {\n 'class': 'd-inline-block',\n },\n})\nexport class BsCheckboxComponent {\n\n private readonly parentGroup = inject(BsCheckboxGroupDirective, { optional: true, skipSelf: true });\n\n /** Reference to the underlying `<mp-checkbox>` WC. Read by\n * `BsCheckboxValueAccessor` and `[bsCheckboxGroup]` to write the WC's\n * `checked` / `disabled` / `indeterminate` properties. */\n readonly checkboxRef = viewChild.required<ElementRef<MpCheckbox>>('checkbox');\n\n type = input<BsCheckboxType>('checkbox');\n isToggled = model<boolean | null>(false);\n indeterminate = model<boolean>(false);\n name = input<string | null>(null);\n value = input<string | null>(null);\n group = input<BsCheckboxGroupDirective | null>(null);\n\n /** Explicit `[group]` input wins over the DI-injected ancestor. */\n readonly resolvedGroup = computed(() => this.group() ?? this.parentGroup ?? null);\n\n /** Single-mode → component's own `[name]`. Multi-mode → group's `[name]` + `[]`. */\n readonly nameResult = computed(() => {\n const group = this.resolvedGroup();\n if (group) {\n const groupName = group.name();\n return groupName == null ? null : `${groupName}[]`;\n }\n return this.name();\n });\n\n constructor() {\n effect(() => {\n const el = this.checkboxRef()?.nativeElement;\n if (!el) return;\n el.type = this.type();\n el.value = this.value();\n el.name = this.nameResult();\n el.checked = !!this.isToggled();\n el.indeterminate = this.indeterminate();\n });\n }\n\n onChange(ev: Event) {\n const detail = (ev as CustomEvent<CheckboxChangeEventDetail>).detail;\n this.isToggled.set(detail.checked);\n this.indeterminate.set(detail.indeterminate);\n }\n\n}\n","<mp-checkbox bsForwardAria #checkbox (change)=\"onChange($event)\">\n <ng-content></ng-content>\n</mp-checkbox>\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["i1.BsCheckboxValueAccessor"],"mappings":";;;;;;;AAKA;;;;;AAKG;MAgBU,uBAAuB,CAAA;AAfpC,IAAA,WAAA,GAAA;AAiBU,QAAA,IAAA,CAAA,IAAI,GAAG,MAAM,CAAC,mBAAmB,CAAC;AA6B3C,IAAA;AAxBC,IAAA,aAAa,CAAC,EAAS,EAAA;QACrB,IAAI,CAAC,IAAI,CAAC,aAAa;YAAE;;;AAGzB,QAAA,MAAM,MAAM,GAAI,EAA6C,CAAC,MAAM;AACpE,QAAA,IAAI,CAAC,aAAa,CAAC,MAAM,CAAC,OAAO,CAAC;IACpC;AAEA,IAAA,gBAAgB,CAAC,EAAwB,EAAA;AACvC,QAAA,IAAI,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A,EAAA,QAAA,EAAA,KAAA,EAAA,CAAA,EAAA,CAAA,EAAA,KAAA,EAAA,CAAA,EAAA,IAAA,EAAA,EAAA,CAAA,KAAA,EAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,IAAA,EAAA,KAAA,EAAA,OAAA,EAAA,QAAA,EAAA,KAAA,EAAA,CAAA,EAAA,CAAA,EAAA,KAAA,EAAA,CAAA,EAAA,IAAA,EAAA,EAAA,CAAA,KAAA,EAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,IAAA,EAAA,KAAA,EAAA,OAAA,EAAA,QAAA,EAAA,KAAA,EAAA,CAAA,EAAA,CAAA,EAAA,EAAA,CAAA;;AE1C9E;;AAEG;;;;"}
@@ -12,10 +12,10 @@ class BsCloseComponent {
12
12
  this.click.emit();
13
13
  ev.stopImmediatePropagation();
14
14
  }
15
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: BsCloseComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
16
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.0.0", type: BsCloseComponent, isStandalone: true, selector: "bs-close", inputs: { ariaLabel: { classPropertyName: "ariaLabel", publicName: "ariaLabel", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { click: "click" }, ngImport: i0, template: "<button type=\"button\" (click)=\"onClose($event)\" class=\"btn-close\" [attr.aria-label]=\"ariaLabel()\"></button>", styles: [":host ::ng-deep .btn-close{--bs-btn-close-color: #000;--bs-btn-close-bg: url(\"data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23000'%3e%3cpath d='M.293.293a1 1 0 0 1 1.414 0L8 6.586 14.293.293a1 1 0 1 1 1.414 1.414L9.414 8l6.293 6.293a1 1 0 0 1-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 0 1-1.414-1.414L6.586 8 .293 1.707a1 1 0 0 1 0-1.414'/%3e%3c/svg%3e\");--bs-btn-close-opacity: .5;--bs-btn-close-hover-opacity: .75;--bs-btn-close-focus-shadow: 0 0 0 .25rem rgba(13, 110, 253, .25);--bs-btn-close-focus-opacity: 1;--bs-btn-close-disabled-opacity: .25;box-sizing:content-box;width:1em;height:1em;padding:.25em;color:var(--bs-btn-close-color);background:transparent var(--bs-btn-close-bg) center/1em auto no-repeat;filter:var(--bs-btn-close-filter);border:0;border-radius:.375rem;opacity:var(--bs-btn-close-opacity)}:host ::ng-deep .btn-close:hover{color:var(--bs-btn-close-color);text-decoration:none;opacity:var(--bs-btn-close-hover-opacity)}:host ::ng-deep .btn-close:focus{outline:0;box-shadow:var(--bs-btn-close-focus-shadow);opacity:var(--bs-btn-close-focus-opacity)}:host ::ng-deep .btn-close:disabled,:host ::ng-deep .btn-close.disabled{pointer-events:none;-webkit-user-select:none;user-select:none;opacity:var(--bs-btn-close-disabled-opacity)}:host ::ng-deep .btn-close-white{--bs-btn-close-filter: invert(1) grayscale(100%) brightness(200%)}:host ::ng-deep :root,:host ::ng-deep [data-bs-theme=light]{--bs-btn-close-filter: }:host ::ng-deep [data-bs-theme=dark]{--bs-btn-close-filter: invert(1) grayscale(100%) brightness(200%)}:host-context([data-bs-theme=dark]) ::ng-deep .btn-close{filter:invert(1) grayscale(100%) brightness(200%)}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
15
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsCloseComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
16
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.0.8", type: BsCloseComponent, isStandalone: true, selector: "bs-close", inputs: { ariaLabel: { classPropertyName: "ariaLabel", publicName: "ariaLabel", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { click: "click" }, ngImport: i0, template: "<button type=\"button\" (click)=\"onClose($event)\" class=\"btn-close\" [attr.aria-label]=\"ariaLabel()\"></button>", styles: [":host ::ng-deep .btn-close{--bs-btn-close-color: #000;--bs-btn-close-bg: url(\"data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23000'%3e%3cpath d='M.293.293a1 1 0 0 1 1.414 0L8 6.586 14.293.293a1 1 0 1 1 1.414 1.414L9.414 8l6.293 6.293a1 1 0 0 1-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 0 1-1.414-1.414L6.586 8 .293 1.707a1 1 0 0 1 0-1.414'/%3e%3c/svg%3e\");--bs-btn-close-opacity: .5;--bs-btn-close-hover-opacity: .75;--bs-btn-close-focus-shadow: 0 0 0 .25rem rgba(13, 110, 253, .25);--bs-btn-close-focus-opacity: 1;--bs-btn-close-disabled-opacity: .25;box-sizing:content-box;width:1em;height:1em;padding:.25em;color:var(--bs-btn-close-color);background:transparent var(--bs-btn-close-bg) center/1em auto no-repeat;filter:var(--bs-btn-close-filter);border:0;border-radius:.375rem;opacity:var(--bs-btn-close-opacity)}:host ::ng-deep .btn-close:hover{color:var(--bs-btn-close-color);text-decoration:none;opacity:var(--bs-btn-close-hover-opacity)}:host ::ng-deep .btn-close:focus{outline:0;box-shadow:var(--bs-btn-close-focus-shadow);opacity:var(--bs-btn-close-focus-opacity)}:host ::ng-deep .btn-close:disabled,:host ::ng-deep .btn-close.disabled{pointer-events:none;-webkit-user-select:none;user-select:none;opacity:var(--bs-btn-close-disabled-opacity)}:host ::ng-deep .btn-close-white{--bs-btn-close-filter: invert(1) grayscale(100%) brightness(200%)}:host ::ng-deep :root,:host ::ng-deep [data-bs-theme=light]{--bs-btn-close-filter: }:host ::ng-deep [data-bs-theme=dark]{--bs-btn-close-filter: invert(1) grayscale(100%) brightness(200%)}:host-context([data-bs-theme=dark]) ::ng-deep .btn-close{filter:invert(1) grayscale(100%) brightness(200%)}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
17
17
  }
18
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: BsCloseComponent, decorators: [{
18
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsCloseComponent, decorators: [{
19
19
  type: Component,
20
20
  args: [{ selector: 'bs-close', changeDetection: ChangeDetectionStrategy.OnPush, template: "<button type=\"button\" (click)=\"onClose($event)\" class=\"btn-close\" [attr.aria-label]=\"ariaLabel()\"></button>", styles: [":host ::ng-deep .btn-close{--bs-btn-close-color: #000;--bs-btn-close-bg: url(\"data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23000'%3e%3cpath d='M.293.293a1 1 0 0 1 1.414 0L8 6.586 14.293.293a1 1 0 1 1 1.414 1.414L9.414 8l6.293 6.293a1 1 0 0 1-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 0 1-1.414-1.414L6.586 8 .293 1.707a1 1 0 0 1 0-1.414'/%3e%3c/svg%3e\");--bs-btn-close-opacity: .5;--bs-btn-close-hover-opacity: .75;--bs-btn-close-focus-shadow: 0 0 0 .25rem rgba(13, 110, 253, .25);--bs-btn-close-focus-opacity: 1;--bs-btn-close-disabled-opacity: .25;box-sizing:content-box;width:1em;height:1em;padding:.25em;color:var(--bs-btn-close-color);background:transparent var(--bs-btn-close-bg) center/1em auto no-repeat;filter:var(--bs-btn-close-filter);border:0;border-radius:.375rem;opacity:var(--bs-btn-close-opacity)}:host ::ng-deep .btn-close:hover{color:var(--bs-btn-close-color);text-decoration:none;opacity:var(--bs-btn-close-hover-opacity)}:host ::ng-deep .btn-close:focus{outline:0;box-shadow:var(--bs-btn-close-focus-shadow);opacity:var(--bs-btn-close-focus-opacity)}:host ::ng-deep .btn-close:disabled,:host ::ng-deep .btn-close.disabled{pointer-events:none;-webkit-user-select:none;user-select:none;opacity:var(--bs-btn-close-disabled-opacity)}:host ::ng-deep .btn-close-white{--bs-btn-close-filter: invert(1) grayscale(100%) brightness(200%)}:host ::ng-deep :root,:host ::ng-deep [data-bs-theme=light]{--bs-btn-close-filter: }:host ::ng-deep [data-bs-theme=dark]{--bs-btn-close-filter: invert(1) grayscale(100%) brightness(200%)}:host-context([data-bs-theme=dark]) ::ng-deep .btn-close{filter:invert(1) grayscale(100%) brightness(200%)}\n"] }]
21
21
  }], propDecorators: { ariaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaLabel", required: false }] }], click: [{ type: i0.Output, args: ["click"] }] } });
@@ -1,41 +1,113 @@
1
1
  import * as i0 from '@angular/core';
2
- import { input, output, ChangeDetectionStrategy, CUSTOM_ELEMENTS_SCHEMA, Component } from '@angular/core';
2
+ import { input, output, viewChild, inject, ElementRef, ChangeDetectionStrategy, CUSTOM_ELEMENTS_SCHEMA, Component } from '@angular/core';
3
3
  import '@mintplayer/web-components/code-snippet';
4
4
 
5
+ /** Host attributes that describe the CONTROL and must reach it, not sit on a
6
+ * wrapper the accessibility tree does not care about. */
7
+ const FORWARDED_ATTRIBUTES = ['role', 'tabindex', 'id'];
5
8
  /**
6
- * Angular wrapper around `<mp-code-snippet>`. The WC owns the
7
- * highlighting, copy-to-clipboard, and copied-toast behaviour. This
8
- * component just translates Angular input/output ergonomics into the
9
- * underlying WC's properties and events.
9
+ * Angular wrapper around `<mp-code-snippet>`. The WC owns highlighting,
10
+ * copy-to-clipboard, line rendering and the roving-focus keyboard layer; this
11
+ * component translates Angular input/output ergonomics onto it.
10
12
  *
11
- * Breaking changes vs the pre-WC `BsCodeSnippetComponent`:
12
- * - `offcanvasVisible` (model) and `copiedTemplate` (viewChild) are
13
- * removed. The WC manages its own toast; consumers no longer need —
14
- * or can override — the copied indicator. Drop these inputs from
15
- * consumer templates.
16
- * - The copy + toast UI is rendered in the WC's shadow DOM; CSS
17
- * overrides via `::part(copy-button)`, `::part(toast)`, `::part(pre)`,
18
- * `::part(code)`.
13
+ * Breaking changes:
14
+ * - `codeToCopy` is now `code`, matching the property it forwards to.
15
+ * - The code block follows `data-bs-theme` instead of being permanently dark.
16
+ * Pass `theme="dark"` to keep the old appearance.
17
+ * - `offcanvasVisible` (model) and `copiedTemplate` (viewChild) are long gone;
18
+ * the WC manages its own toast.
19
+ *
20
+ * CSS overrides go through parts: `::part(copy-button)`, `::part(pre)`,
21
+ * `::part(code)`, `::part(line)`, `::part(line-number)`, `::part(toast)`, and
22
+ * `::part(annotation-<kind>)` for whatever kinds you feed `annotations`.
19
23
  */
20
24
  class BsCodeSnippetComponent {
21
25
  constructor() {
22
- this.codeToCopy = input('', /* @ts-ignore */
23
- ...(ngDevMode ? [{ debugName: "codeToCopy" }] : /* istanbul ignore next */ []));
26
+ this.code = input('', /* @ts-ignore */
27
+ ...(ngDevMode ? [{ debugName: "code" }] : /* istanbul ignore next */ []));
24
28
  this.language = input('', /* @ts-ignore */
25
29
  ...(ngDevMode ? [{ debugName: "language" }] : /* istanbul ignore next */ []));
30
+ this.lineNumbers = input(false, /* @ts-ignore */
31
+ ...(ngDevMode ? [{ debugName: "lineNumbers" }] : /* istanbul ignore next */ []));
32
+ this.startLine = input(1, /* @ts-ignore */
33
+ ...(ngDevMode ? [{ debugName: "startLine" }] : /* istanbul ignore next */ []));
34
+ this.wrap = input(false, /* @ts-ignore */
35
+ ...(ngDevMode ? [{ debugName: "wrap" }] : /* istanbul ignore next */ []));
36
+ this.theme = input('auto', /* @ts-ignore */
37
+ ...(ngDevMode ? [{ debugName: "theme" }] : /* istanbul ignore next */ []));
38
+ /** Sparse per-line markers; see `CodeLineAnnotation`. */
39
+ this.annotations = input([], /* @ts-ignore */
40
+ ...(ngDevMode ? [{ debugName: "annotations" }] : /* istanbul ignore next */ []));
41
+ this.activeLine = input(null, /* @ts-ignore */
42
+ ...(ngDevMode ? [{ debugName: "activeLine" }] : /* istanbul ignore next */ []));
43
+ /** Turns each line number into a real link, so middle-click still works. */
44
+ this.lineHref = input(null, /* @ts-ignore */
45
+ ...(ngDevMode ? [{ debugName: "lineHref" }] : /* istanbul ignore next */ []));
46
+ this.label = input('', /* @ts-ignore */
47
+ ...(ngDevMode ? [{ debugName: "label" }] : /* istanbul ignore next */ []));
48
+ this.copyLabel = input('', /* @ts-ignore */
49
+ ...(ngDevMode ? [{ debugName: "copyLabel" }] : /* istanbul ignore next */ []));
50
+ this.lineLabel = input('', /* @ts-ignore */
51
+ ...(ngDevMode ? [{ debugName: "lineLabel" }] : /* istanbul ignore next */ []));
26
52
  this.detectedLanguage = output();
53
+ /**
54
+ * Emits the DOM event, not just the line number, so a consumer can call
55
+ * `preventDefault()` on it and navigate itself. Emitting the bare number
56
+ * dropped the only channel the element offers for that, and the anchor's
57
+ * default navigation always won.
58
+ *
59
+ * Angular's `output()` emits synchronously inside the DOM listener, so a
60
+ * `preventDefault()` in the handler lands before `dispatchEvent` returns.
61
+ * Same shape as `BsComboboxDirective`'s `activate`/`cancel`.
62
+ */
63
+ this.lineActivate = output();
64
+ this.element = viewChild.required('element', /* @ts-ignore */
65
+ ...(ngDevMode ? [{ debugName: "element" }] : /* istanbul ignore next */ []));
66
+ this.host = inject(ElementRef);
67
+ }
68
+ ngAfterViewInit() {
69
+ this.forwardHostAttributes();
70
+ }
71
+ /**
72
+ * Scroll a line into view. Delegated to the element rather than reimplemented
73
+ * so that re-requesting the line the user is already on still scrolls — a
74
+ * plain `activeLine` binding would no-op.
75
+ */
76
+ scrollToLine(line) {
77
+ this.element().nativeElement.scrollToLine(line);
78
+ }
79
+ /**
80
+ * A consumer writing `aria-label` or `role` on `<bs-code-snippet>` means it
81
+ * for the code block. Left on the Angular host it reaches nothing: the host
82
+ * is a roleless div as far as AT is concerned. So the attributes are moved
83
+ * onto the `mp-*` element and removed from the host, where a duplicate would
84
+ * otherwise produce two named nodes.
85
+ */
86
+ forwardHostAttributes() {
87
+ const host = this.host.nativeElement;
88
+ const target = this.element().nativeElement;
89
+ const names = [...host.getAttributeNames()].filter((name) => name.startsWith('aria-') || FORWARDED_ATTRIBUTES.includes(name));
90
+ for (const name of names) {
91
+ const value = host.getAttribute(name);
92
+ if (value === null)
93
+ continue;
94
+ target.setAttribute(name, value);
95
+ host.removeAttribute(name);
96
+ }
27
97
  }
28
98
  onLanguageDetected(event) {
29
- const detail = event.detail;
30
- this.detectedLanguage.emit(detail.language);
99
+ this.detectedLanguage.emit(event.detail.language);
100
+ }
101
+ onLineActivate(event) {
102
+ this.lineActivate.emit(event);
31
103
  }
32
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: BsCodeSnippetComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
33
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.0.0", type: BsCodeSnippetComponent, isStandalone: true, selector: "bs-code-snippet", inputs: { codeToCopy: { classPropertyName: "codeToCopy", publicName: "codeToCopy", isSignal: true, isRequired: false, transformFunction: null }, language: { classPropertyName: "language", publicName: "language", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { detectedLanguage: "detectedLanguage" }, host: { classAttribute: "d-block" }, ngImport: i0, template: "<mp-code-snippet\n [code]=\"codeToCopy()\"\n [language]=\"language()\"\n (language-detected)=\"onLanguageDetected($event)\"\n></mp-code-snippet>\n", changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
104
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsCodeSnippetComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
105
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "22.0.8", type: BsCodeSnippetComponent, isStandalone: true, selector: "bs-code-snippet", inputs: { code: { classPropertyName: "code", publicName: "code", isSignal: true, isRequired: false, transformFunction: null }, language: { classPropertyName: "language", publicName: "language", isSignal: true, isRequired: false, transformFunction: null }, lineNumbers: { classPropertyName: "lineNumbers", publicName: "lineNumbers", isSignal: true, isRequired: false, transformFunction: null }, startLine: { classPropertyName: "startLine", publicName: "startLine", isSignal: true, isRequired: false, transformFunction: null }, wrap: { classPropertyName: "wrap", publicName: "wrap", isSignal: true, isRequired: false, transformFunction: null }, theme: { classPropertyName: "theme", publicName: "theme", isSignal: true, isRequired: false, transformFunction: null }, annotations: { classPropertyName: "annotations", publicName: "annotations", isSignal: true, isRequired: false, transformFunction: null }, activeLine: { classPropertyName: "activeLine", publicName: "activeLine", isSignal: true, isRequired: false, transformFunction: null }, lineHref: { classPropertyName: "lineHref", publicName: "lineHref", isSignal: true, isRequired: false, transformFunction: null }, label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, copyLabel: { classPropertyName: "copyLabel", publicName: "copyLabel", isSignal: true, isRequired: false, transformFunction: null }, lineLabel: { classPropertyName: "lineLabel", publicName: "lineLabel", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { detectedLanguage: "detectedLanguage", lineActivate: "lineActivate" }, viewQueries: [{ propertyName: "element", first: true, predicate: ["element"], descendants: true, isSignal: true }], ngImport: i0, template: "<!--\n Strings and booleans go in as ATTRIBUTES, not properties, so that an unset\n input removes the attribute (`null`) and the element keeps its own default.\n A property binding would write `''` over defaults like\n \"Copy ${language} code to clipboard\" and blank them.\n\n `code`, `annotations` and `lineHref` stay property bindings: multi-line text,\n an object and a function have no sensible attribute form.\n-->\n<mp-code-snippet\n #element\n [code]=\"code()\"\n [attr.language]=\"language() || null\"\n [attr.line-numbers]=\"lineNumbers() ? '' : null\"\n [attr.start-line]=\"startLine()\"\n [attr.wrap]=\"wrap() ? '' : null\"\n [attr.theme]=\"theme()\"\n [attr.active-line]=\"activeLine()\"\n [attr.label]=\"label() || null\"\n [attr.copy-label]=\"copyLabel() || null\"\n [attr.line-label]=\"lineLabel() || null\"\n [annotations]=\"annotations()\"\n [lineHref]=\"lineHref()\"\n (language-detected)=\"onLanguageDetected($event)\"\n (line-activate)=\"onLineActivate($event)\"\n></mp-code-snippet>\n", styles: [":host{display:flex;flex-direction:column}mp-code-snippet{flex:1 1 auto;min-height:0}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
34
106
  }
35
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: BsCodeSnippetComponent, decorators: [{
107
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsCodeSnippetComponent, decorators: [{
36
108
  type: Component,
37
- args: [{ selector: 'bs-code-snippet', schemas: [CUSTOM_ELEMENTS_SCHEMA], changeDetection: ChangeDetectionStrategy.OnPush, host: { class: 'd-block' }, template: "<mp-code-snippet\n [code]=\"codeToCopy()\"\n [language]=\"language()\"\n (language-detected)=\"onLanguageDetected($event)\"\n></mp-code-snippet>\n" }]
38
- }], propDecorators: { codeToCopy: [{ type: i0.Input, args: [{ isSignal: true, alias: "codeToCopy", required: false }] }], language: [{ type: i0.Input, args: [{ isSignal: true, alias: "language", required: false }] }], detectedLanguage: [{ type: i0.Output, args: ["detectedLanguage"] }] } });
109
+ args: [{ selector: 'bs-code-snippet', schemas: [CUSTOM_ELEMENTS_SCHEMA], changeDetection: ChangeDetectionStrategy.OnPush, template: "<!--\n Strings and booleans go in as ATTRIBUTES, not properties, so that an unset\n input removes the attribute (`null`) and the element keeps its own default.\n A property binding would write `''` over defaults like\n \"Copy ${language} code to clipboard\" and blank them.\n\n `code`, `annotations` and `lineHref` stay property bindings: multi-line text,\n an object and a function have no sensible attribute form.\n-->\n<mp-code-snippet\n #element\n [code]=\"code()\"\n [attr.language]=\"language() || null\"\n [attr.line-numbers]=\"lineNumbers() ? '' : null\"\n [attr.start-line]=\"startLine()\"\n [attr.wrap]=\"wrap() ? '' : null\"\n [attr.theme]=\"theme()\"\n [attr.active-line]=\"activeLine()\"\n [attr.label]=\"label() || null\"\n [attr.copy-label]=\"copyLabel() || null\"\n [attr.line-label]=\"lineLabel() || null\"\n [annotations]=\"annotations()\"\n [lineHref]=\"lineHref()\"\n (language-detected)=\"onLanguageDetected($event)\"\n (line-activate)=\"onLineActivate($event)\"\n></mp-code-snippet>\n", styles: [":host{display:flex;flex-direction:column}mp-code-snippet{flex:1 1 auto;min-height:0}\n"] }]
110
+ }], propDecorators: { code: [{ type: i0.Input, args: [{ isSignal: true, alias: "code", required: false }] }], language: [{ type: i0.Input, args: [{ isSignal: true, alias: "language", required: false }] }], lineNumbers: [{ type: i0.Input, args: [{ isSignal: true, alias: "lineNumbers", required: false }] }], startLine: [{ type: i0.Input, args: [{ isSignal: true, alias: "startLine", required: false }] }], wrap: [{ type: i0.Input, args: [{ isSignal: true, alias: "wrap", required: false }] }], theme: [{ type: i0.Input, args: [{ isSignal: true, alias: "theme", required: false }] }], annotations: [{ type: i0.Input, args: [{ isSignal: true, alias: "annotations", required: false }] }], activeLine: [{ type: i0.Input, args: [{ isSignal: true, alias: "activeLine", required: false }] }], lineHref: [{ type: i0.Input, args: [{ isSignal: true, alias: "lineHref", required: false }] }], label: [{ type: i0.Input, args: [{ isSignal: true, alias: "label", required: false }] }], copyLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "copyLabel", required: false }] }], lineLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "lineLabel", required: false }] }], detectedLanguage: [{ type: i0.Output, args: ["detectedLanguage"] }], lineActivate: [{ type: i0.Output, args: ["lineActivate"] }], element: [{ type: i0.ViewChild, args: ['element', { isSignal: true }] }] } });
39
111
 
40
112
  /**
41
113
  * Generated bundle index. Do not edit.
@@ -1 +1 @@
1
- {"version":3,"file":"mintplayer-ng-bootstrap-code-snippet.mjs","sources":["../../../../libs/mintplayer-ng-bootstrap/code-snippet/src/code-snippet.component.ts","../../../../libs/mintplayer-ng-bootstrap/code-snippet/src/code-snippet.component.html","../../../../libs/mintplayer-ng-bootstrap/code-snippet/mintplayer-ng-bootstrap-code-snippet.ts"],"sourcesContent":["import { ChangeDetectionStrategy, Component, CUSTOM_ELEMENTS_SCHEMA, input, output } from '@angular/core';\nimport '@mintplayer/web-components/code-snippet';\n\n/**\n * Angular wrapper around `<mp-code-snippet>`. The WC owns the\n * highlighting, copy-to-clipboard, and copied-toast behaviour. This\n * component just translates Angular input/output ergonomics into the\n * underlying WC's properties and events.\n *\n * Breaking changes vs the pre-WC `BsCodeSnippetComponent`:\n * - `offcanvasVisible` (model) and `copiedTemplate` (viewChild) are\n * removed. The WC manages its own toast; consumers no longer need —\n * or can override — the copied indicator. Drop these inputs from\n * consumer templates.\n * - The copy + toast UI is rendered in the WC's shadow DOM; CSS\n * overrides via `::part(copy-button)`, `::part(toast)`, `::part(pre)`,\n * `::part(code)`.\n */\n@Component({\n selector: 'bs-code-snippet',\n templateUrl: './code-snippet.component.html',\n schemas: [CUSTOM_ELEMENTS_SCHEMA],\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: { class: 'd-block' },\n})\nexport class BsCodeSnippetComponent {\n readonly codeToCopy = input<string>('');\n readonly language = input<string>('');\n readonly detectedLanguage = output<string>();\n\n protected onLanguageDetected(event: Event): void {\n const detail = (event as CustomEvent<{ language: string }>).detail;\n this.detectedLanguage.emit(detail.language);\n }\n\n}\n","<mp-code-snippet\n [code]=\"codeToCopy()\"\n [language]=\"language()\"\n (language-detected)=\"onLanguageDetected($event)\"\n></mp-code-snippet>\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;AAGA;;;;;;;;;;;;;;AAcG;MAQU,sBAAsB,CAAA;AAPnC,IAAA,WAAA,GAAA;QAQW,IAAA,CAAA,UAAU,GAAG,KAAK,CAAS,EAAE;uFAAC;QAC9B,IAAA,CAAA,QAAQ,GAAG,KAAK,CAAS,EAAE;qFAAC;QAC5B,IAAA,CAAA,gBAAgB,GAAG,MAAM,EAAU;AAO7C,IAAA;AALW,IAAA,kBAAkB,CAAC,KAAY,EAAA;AACvC,QAAA,MAAM,MAAM,GAAI,KAA2C,CAAC,MAAM;QAClE,IAAI,CAAC,gBAAgB,CAAC,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC;IAC7C;8GARW,sBAAsB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;AAAtB,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,IAAA,EAAA,sBAAsB,ubCzBnC,uJAKA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,CAAA,CAAA;;2FDoBa,sBAAsB,EAAA,UAAA,EAAA,CAAA;kBAPlC,SAAS;AACE,YAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,iBAAiB,EAAA,OAAA,EAElB,CAAC,sBAAsB,CAAC,EAAA,eAAA,EAChB,uBAAuB,CAAC,MAAM,EAAA,IAAA,EACzC,EAAE,KAAK,EAAE,SAAS,EAAE,EAAA,QAAA,EAAA,uJAAA,EAAA;;;AEvB5B;;AAEG;;;;"}
1
+ {"version":3,"file":"mintplayer-ng-bootstrap-code-snippet.mjs","sources":["../../../../libs/mintplayer-ng-bootstrap/code-snippet/src/code-snippet.component.ts","../../../../libs/mintplayer-ng-bootstrap/code-snippet/src/code-snippet.component.html","../../../../libs/mintplayer-ng-bootstrap/code-snippet/mintplayer-ng-bootstrap-code-snippet.ts"],"sourcesContent":["import {\n AfterViewInit,\n ChangeDetectionStrategy,\n Component,\n CUSTOM_ELEMENTS_SCHEMA,\n ElementRef,\n inject,\n input,\n output,\n viewChild,\n} from '@angular/core';\nimport '@mintplayer/web-components/code-snippet';\nimport type { CodeLineAnnotation, MpCodeSnippet } from '@mintplayer/web-components/code-snippet';\n\n/** Host attributes that describe the CONTROL and must reach it, not sit on a\n * wrapper the accessibility tree does not care about. */\nconst FORWARDED_ATTRIBUTES = ['role', 'tabindex', 'id'];\n\n/**\n * Angular wrapper around `<mp-code-snippet>`. The WC owns highlighting,\n * copy-to-clipboard, line rendering and the roving-focus keyboard layer; this\n * component translates Angular input/output ergonomics onto it.\n *\n * Breaking changes:\n * - `codeToCopy` is now `code`, matching the property it forwards to.\n * - The code block follows `data-bs-theme` instead of being permanently dark.\n * Pass `theme=\"dark\"` to keep the old appearance.\n * - `offcanvasVisible` (model) and `copiedTemplate` (viewChild) are long gone;\n * the WC manages its own toast.\n *\n * CSS overrides go through parts: `::part(copy-button)`, `::part(pre)`,\n * `::part(code)`, `::part(line)`, `::part(line-number)`, `::part(toast)`, and\n * `::part(annotation-<kind>)` for whatever kinds you feed `annotations`.\n */\n@Component({\n selector: 'bs-code-snippet',\n templateUrl: './code-snippet.component.html',\n schemas: [CUSTOM_ELEMENTS_SCHEMA],\n changeDetection: ChangeDetectionStrategy.OnPush,\n /**\n * A flex column that the `<mp-code-snippet>` fills, so a `height` or\n * `max-height` set on `<bs-code-snippet>` reaches the element that actually\n * scrolls. As a plain block the constraint stopped at this host and the\n * element kept its content height, overflowing it.\n *\n * React and Vue need no equivalent: both put the consumer's class straight\n * onto the custom element.\n */\n styles: `\n :host { display: flex; flex-direction: column; }\n mp-code-snippet { flex: 1 1 auto; min-height: 0; }\n `,\n})\nexport class BsCodeSnippetComponent implements AfterViewInit {\n readonly code = input<string>('');\n readonly language = input<string>('');\n\n readonly lineNumbers = input<boolean>(false);\n readonly startLine = input<number>(1);\n readonly wrap = input<boolean>(false);\n readonly theme = input<'auto' | 'light' | 'dark'>('auto');\n\n /** Sparse per-line markers; see `CodeLineAnnotation`. */\n readonly annotations = input<CodeLineAnnotation[]>([]);\n readonly activeLine = input<number | null>(null);\n /** Turns each line number into a real link, so middle-click still works. */\n readonly lineHref = input<((line: number) => string) | null>(null);\n\n readonly label = input<string>('');\n readonly copyLabel = input<string>('');\n readonly lineLabel = input<string>('');\n\n readonly detectedLanguage = output<string>();\n\n /**\n * Emits the DOM event, not just the line number, so a consumer can call\n * `preventDefault()` on it and navigate itself. Emitting the bare number\n * dropped the only channel the element offers for that, and the anchor's\n * default navigation always won.\n *\n * Angular's `output()` emits synchronously inside the DOM listener, so a\n * `preventDefault()` in the handler lands before `dispatchEvent` returns.\n * Same shape as `BsComboboxDirective`'s `activate`/`cancel`.\n */\n readonly lineActivate = output<CustomEvent<{ line: number }>>();\n\n private readonly element = viewChild.required<ElementRef<MpCodeSnippet>>('element');\n private readonly host = inject<ElementRef<HTMLElement>>(ElementRef);\n\n ngAfterViewInit(): void {\n this.forwardHostAttributes();\n }\n\n /**\n * Scroll a line into view. Delegated to the element rather than reimplemented\n * so that re-requesting the line the user is already on still scrolls — a\n * plain `activeLine` binding would no-op.\n */\n scrollToLine(line: number): void {\n this.element().nativeElement.scrollToLine(line);\n }\n\n /**\n * A consumer writing `aria-label` or `role` on `<bs-code-snippet>` means it\n * for the code block. Left on the Angular host it reaches nothing: the host\n * is a roleless div as far as AT is concerned. So the attributes are moved\n * onto the `mp-*` element and removed from the host, where a duplicate would\n * otherwise produce two named nodes.\n */\n private forwardHostAttributes(): void {\n const host = this.host.nativeElement;\n const target = this.element().nativeElement as unknown as HTMLElement;\n\n const names = [...host.getAttributeNames()].filter(\n (name) => name.startsWith('aria-') || FORWARDED_ATTRIBUTES.includes(name),\n );\n\n for (const name of names) {\n const value = host.getAttribute(name);\n if (value === null) continue;\n target.setAttribute(name, value);\n host.removeAttribute(name);\n }\n }\n\n protected onLanguageDetected(event: Event): void {\n this.detectedLanguage.emit((event as CustomEvent<{ language: string }>).detail.language);\n }\n\n protected onLineActivate(event: Event): void {\n this.lineActivate.emit(event as CustomEvent<{ line: number }>);\n }\n}\n","<!--\n Strings and booleans go in as ATTRIBUTES, not properties, so that an unset\n input removes the attribute (`null`) and the element keeps its own default.\n A property binding would write `''` over defaults like\n \"Copy ${language} code to clipboard\" and blank them.\n\n `code`, `annotations` and `lineHref` stay property bindings: multi-line text,\n an object and a function have no sensible attribute form.\n-->\n<mp-code-snippet\n #element\n [code]=\"code()\"\n [attr.language]=\"language() || null\"\n [attr.line-numbers]=\"lineNumbers() ? '' : null\"\n [attr.start-line]=\"startLine()\"\n [attr.wrap]=\"wrap() ? '' : null\"\n [attr.theme]=\"theme()\"\n [attr.active-line]=\"activeLine()\"\n [attr.label]=\"label() || null\"\n [attr.copy-label]=\"copyLabel() || null\"\n [attr.line-label]=\"lineLabel() || null\"\n [annotations]=\"annotations()\"\n [lineHref]=\"lineHref()\"\n (language-detected)=\"onLanguageDetected($event)\"\n (line-activate)=\"onLineActivate($event)\"\n></mp-code-snippet>\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;AAcA;AAC0D;AAC1D,MAAM,oBAAoB,GAAG,CAAC,MAAM,EAAE,UAAU,EAAE,IAAI,CAAC;AAEvD;;;;;;;;;;;;;;;AAeG;MAoBU,sBAAsB,CAAA;AAnBnC,IAAA,WAAA,GAAA;QAoBW,IAAA,CAAA,IAAI,GAAG,KAAK,CAAS,EAAE;iFAAC;QACxB,IAAA,CAAA,QAAQ,GAAG,KAAK,CAAS,EAAE;qFAAC;QAE5B,IAAA,CAAA,WAAW,GAAG,KAAK,CAAU,KAAK;wFAAC;QACnC,IAAA,CAAA,SAAS,GAAG,KAAK,CAAS,CAAC;sFAAC;QAC5B,IAAA,CAAA,IAAI,GAAG,KAAK,CAAU,KAAK;iFAAC;QAC5B,IAAA,CAAA,KAAK,GAAG,KAAK,CAA4B,MAAM;kFAAC;;QAGhD,IAAA,CAAA,WAAW,GAAG,KAAK,CAAuB,EAAE;wFAAC;QAC7C,IAAA,CAAA,UAAU,GAAG,KAAK,CAAgB,IAAI;uFAAC;;QAEvC,IAAA,CAAA,QAAQ,GAAG,KAAK,CAAoC,IAAI;qFAAC;QAEzD,IAAA,CAAA,KAAK,GAAG,KAAK,CAAS,EAAE;kFAAC;QACzB,IAAA,CAAA,SAAS,GAAG,KAAK,CAAS,EAAE;sFAAC;QAC7B,IAAA,CAAA,SAAS,GAAG,KAAK,CAAS,EAAE;sFAAC;QAE7B,IAAA,CAAA,gBAAgB,GAAG,MAAM,EAAU;AAE5C;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