@mintplayer/ng-bootstrap 22.12.0 → 22.14.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 (130) 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 +3 -3
  25. package/fesm2022/mintplayer-ng-bootstrap-color-picker.mjs +38 -34
  26. package/fesm2022/mintplayer-ng-bootstrap-color-picker.mjs.map +1 -1
  27. package/fesm2022/mintplayer-ng-bootstrap-container.mjs +3 -3
  28. package/fesm2022/mintplayer-ng-bootstrap-context-menu.mjs +3 -3
  29. package/fesm2022/mintplayer-ng-bootstrap-copy.mjs +3 -3
  30. package/fesm2022/mintplayer-ng-bootstrap-datatable.mjs +9 -9
  31. package/fesm2022/mintplayer-ng-bootstrap-datepicker.mjs +3 -3
  32. package/fesm2022/mintplayer-ng-bootstrap-datetime-picker.mjs +3 -3
  33. package/fesm2022/mintplayer-ng-bootstrap-dock.mjs +8 -7
  34. package/fesm2022/mintplayer-ng-bootstrap-dock.mjs.map +1 -1
  35. package/fesm2022/mintplayer-ng-bootstrap-dropdown-divider.mjs +3 -3
  36. package/fesm2022/mintplayer-ng-bootstrap-dropdown-menu.mjs +12 -12
  37. package/fesm2022/mintplayer-ng-bootstrap-dropdown.mjs +14 -13
  38. package/fesm2022/mintplayer-ng-bootstrap-dropdown.mjs.map +1 -1
  39. package/fesm2022/mintplayer-ng-bootstrap-enhanced-paste.mjs +3 -3
  40. package/fesm2022/mintplayer-ng-bootstrap-enum.mjs +3 -3
  41. package/fesm2022/mintplayer-ng-bootstrap-file-manager.mjs +3 -3
  42. package/fesm2022/mintplayer-ng-bootstrap-file-upload.mjs +9 -9
  43. package/fesm2022/mintplayer-ng-bootstrap-floating-labels.mjs +3 -3
  44. package/fesm2022/mintplayer-ng-bootstrap-font-color.mjs +3 -3
  45. package/fesm2022/mintplayer-ng-bootstrap-for.mjs +3 -3
  46. package/fesm2022/mintplayer-ng-bootstrap-form.mjs +9 -9
  47. package/fesm2022/mintplayer-ng-bootstrap-grid.mjs +15 -15
  48. package/fesm2022/mintplayer-ng-bootstrap-has-overlay.mjs +3 -3
  49. package/fesm2022/mintplayer-ng-bootstrap-has-property.mjs +3 -3
  50. package/fesm2022/mintplayer-ng-bootstrap-in-list.mjs +3 -3
  51. package/fesm2022/mintplayer-ng-bootstrap-input-group.mjs +27 -6
  52. package/fesm2022/mintplayer-ng-bootstrap-input-group.mjs.map +1 -1
  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 +127 -0
  75. package/fesm2022/mintplayer-ng-bootstrap-phone-input.mjs.map +1 -0
  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 +17 -1
  125. package/phone-input/package.json +4 -0
  126. package/types/mintplayer-ng-bootstrap-charts-hierarchy.d.ts +44 -0
  127. package/types/mintplayer-ng-bootstrap-charts-sparkline.d.ts +20 -0
  128. package/types/mintplayer-ng-bootstrap-charts-trend.d.ts +28 -0
  129. package/types/mintplayer-ng-bootstrap-input-group.d.ts +20 -3
  130. package/types/mintplayer-ng-bootstrap-phone-input.d.ts +60 -0
@@ -17,10 +17,10 @@ class BsOrdinalNumberPipe {
17
17
  const safeResult = this.domSanitizer.bypassSecurityTrustHtml(result);
18
18
  return safeResult;
19
19
  }
20
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: BsOrdinalNumberPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
21
- static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "22.0.0", ngImport: i0, type: BsOrdinalNumberPipe, isStandalone: true, name: "ordinalNumber" }); }
20
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsOrdinalNumberPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
21
+ static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "22.0.8", ngImport: i0, type: BsOrdinalNumberPipe, isStandalone: true, name: "ordinalNumber" }); }
22
22
  }
23
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: BsOrdinalNumberPipe, decorators: [{
23
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsOrdinalNumberPipe, decorators: [{
24
24
  type: Pipe,
25
25
  args: [{
26
26
  name: 'ordinalNumber',
@@ -77,14 +77,14 @@ class BsOtpInputValueAccessor {
77
77
  ref.nativeElement.removeAttribute('disabled');
78
78
  }
79
79
  }
80
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: BsOtpInputValueAccessor, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
81
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.0.0", type: BsOtpInputValueAccessor, isStandalone: true, selector: "bs-otp-input", host: { listeners: { "value-change": "onValueChangeEvent($event)", "focusout": "onTouchEvent()" } }, providers: [{
80
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsOtpInputValueAccessor, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
81
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.0.8", type: BsOtpInputValueAccessor, isStandalone: true, selector: "bs-otp-input", host: { listeners: { "value-change": "onValueChangeEvent($event)", "focusout": "onTouchEvent()" } }, providers: [{
82
82
  provide: NG_VALUE_ACCESSOR,
83
83
  useExisting: forwardRef(() => BsOtpInputValueAccessor),
84
84
  multi: true,
85
85
  }], ngImport: i0 }); }
86
86
  }
87
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: BsOtpInputValueAccessor, decorators: [{
87
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsOtpInputValueAccessor, decorators: [{
88
88
  type: Directive,
89
89
  args: [{
90
90
  selector: 'bs-otp-input',
@@ -122,7 +122,8 @@ class BsOtpInputComponent {
122
122
  this.value = model(undefined, /* @ts-ignore */
123
123
  ...(ngDevMode ? [{ debugName: "value" }] : /* istanbul ignore next */ []));
124
124
  this.complete = output();
125
- this.elementRef = viewChild.required('el');
125
+ this.elementRef = viewChild.required('el', /* @ts-ignore */
126
+ ...(ngDevMode ? [{ debugName: "elementRef" }] : /* istanbul ignore next */ []));
126
127
  this.hostRef = inject((ElementRef));
127
128
  this.invalidAttr = computed(() => (this.invalid() ? '' : null), /* @ts-ignore */
128
129
  ...(ngDevMode ? [{ debugName: "invalidAttr" }] : /* istanbul ignore next */ []));
@@ -222,8 +223,8 @@ class BsOtpInputComponent {
222
223
  clear() {
223
224
  this.elementRef()?.nativeElement.clear();
224
225
  }
225
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: BsOtpInputComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
226
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "22.0.0", type: BsOtpInputComponent, isStandalone: true, selector: "bs-otp-input", inputs: { groups: { classPropertyName: "groups", publicName: "groups", isSignal: true, isRequired: false, transformFunction: null }, type: { classPropertyName: "type", publicName: "type", isSignal: true, isRequired: false, transformFunction: null }, case: { classPropertyName: "case", publicName: "case", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, invalid: { classPropertyName: "invalid", publicName: "invalid", isSignal: true, isRequired: false, transformFunction: null }, inputLabel: { classPropertyName: "inputLabel", publicName: "inputLabel", isSignal: true, isRequired: false, transformFunction: null }, value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { value: "valueChange", complete: "complete" }, host: { properties: { "attr.size": "size()" } }, viewQueries: [{ propertyName: "elementRef", first: true, predicate: ["el"], descendants: true, isSignal: true }], hostDirectives: [{ directive: BsOtpInputValueAccessor }], ngImport: i0, template: `
226
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsOtpInputComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
227
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "22.0.8", type: BsOtpInputComponent, isStandalone: true, selector: "bs-otp-input", inputs: { groups: { classPropertyName: "groups", publicName: "groups", isSignal: true, isRequired: false, transformFunction: null }, type: { classPropertyName: "type", publicName: "type", isSignal: true, isRequired: false, transformFunction: null }, case: { classPropertyName: "case", publicName: "case", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, invalid: { classPropertyName: "invalid", publicName: "invalid", isSignal: true, isRequired: false, transformFunction: null }, inputLabel: { classPropertyName: "inputLabel", publicName: "inputLabel", isSignal: true, isRequired: false, transformFunction: null }, value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { value: "valueChange", complete: "complete" }, host: { properties: { "attr.size": "size()" } }, viewQueries: [{ propertyName: "elementRef", first: true, predicate: ["el"], descendants: true, isSignal: true }], hostDirectives: [{ directive: BsOtpInputValueAccessor }], ngImport: i0, template: `
227
228
  <mp-otp-input
228
229
  #el
229
230
  class="bs-otp-input"
@@ -237,7 +238,7 @@ class BsOtpInputComponent {
237
238
  ></mp-otp-input>
238
239
  `, isInline: true, styles: [":host{display:inline-block}.bs-otp-input{display:inline-flex}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
239
240
  }
240
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: BsOtpInputComponent, decorators: [{
241
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsOtpInputComponent, decorators: [{
241
242
  type: Component,
242
243
  args: [{ selector: 'bs-otp-input', template: `
243
244
  <mp-otp-input
@@ -1 +1 @@
1
- {"version":3,"file":"mintplayer-ng-bootstrap-otp-input.mjs","sources":["../../../../libs/mintplayer-ng-bootstrap/otp-input/src/lib/value-accessor/otp-input-value-accessor.ts","../../../../libs/mintplayer-ng-bootstrap/otp-input/src/lib/components/otp-input.component.ts","../../../../libs/mintplayer-ng-bootstrap/otp-input/mintplayer-ng-bootstrap-otp-input.ts"],"sourcesContent":["import { DestroyRef, Directive, Injector, OnInit, forwardRef, inject } from '@angular/core';\nimport { ControlValueAccessor, NG_VALUE_ACCESSOR, NgControl } from '@angular/forms';\nimport { BsOtpInputComponent } from '../components/otp-input.component';\n\n@Directive({\n selector: 'bs-otp-input',\n providers: [{\n provide: NG_VALUE_ACCESSOR,\n useExisting: forwardRef(() => BsOtpInputValueAccessor),\n multi: true,\n }],\n host: {\n '(value-change)': 'onValueChangeEvent($event)',\n '(focusout)': 'onTouchEvent()',\n },\n})\nexport class BsOtpInputValueAccessor implements ControlValueAccessor, OnInit {\n private host = inject(BsOtpInputComponent);\n // Inject NgControl LAZILY via the injector. Eager `inject(NgControl)` here\n // creates a cycle: NgControl → NG_VALUE_ACCESSOR token → this directive →\n // NgControl. Looking it up in ngOnInit (after the form directive has\n // finished its own construction) breaks the cycle.\n private injector = inject(Injector);\n private destroyRef = inject(DestroyRef);\n private ngControl: NgControl | null = null;\n\n private onValueChange?: (value: string) => void;\n private onTouched?: () => void;\n\n ngOnInit(): void {\n this.ngControl = this.injector.get(NgControl, null);\n // Push invalid state to the WC whenever the form control's status or\n // touched state changes. Mirrors Bootstrap's .is-invalid convention: only\n // mark the boxes red after the control has been touched, otherwise we'd\n // light up a \"required\" field the moment the form mounts.\n if (!this.ngControl?.control) return;\n const sub = this.ngControl.statusChanges?.subscribe(() => this.syncInvalid());\n if (sub) this.destroyRef.onDestroy(() => sub.unsubscribe());\n // Sync once now in case the control was created already invalid+touched\n // (e.g. server-side validation rehydrate).\n queueMicrotask(() => this.syncInvalid());\n }\n\n protected onValueChangeEvent(ev: Event): void {\n if (!this.onValueChange) return;\n const detail = (ev as CustomEvent<string>).detail ?? '';\n this.onValueChange(detail);\n }\n\n protected onTouchEvent(): void {\n if (this.onTouched) this.onTouched();\n // Re-sync invalid on touch — statusChanges doesn't always fire on touched\n // alone, so we trigger the recompute here.\n this.syncInvalid();\n }\n\n private syncInvalid(): void {\n // Guard async-scheduled invocations: queueMicrotask in ngOnInit + the\n // statusChanges subscription are both possible after destroy. Reading\n // `host.elementRef()` (a required viewChild) on a destroyed view throws.\n if (this.destroyRef.destroyed) return;\n const ref = this.host.elementRef();\n if (!ref || !this.ngControl) return;\n const invalid = (this.ngControl.invalid ?? false) && (this.ngControl.touched ?? false);\n ref.nativeElement.invalid = invalid;\n }\n\n registerOnChange(fn: (value: string) => void): void {\n this.onValueChange = fn;\n }\n\n registerOnTouched(fn: () => void): void {\n this.onTouched = fn;\n }\n\n writeValue(value: string | null | undefined): void {\n const ref = this.host.elementRef();\n if (!ref) return;\n ref.nativeElement.value = value ?? '';\n }\n\n setDisabledState(isDisabled: boolean): void {\n const ref = this.host.elementRef();\n if (!ref) return;\n if (isDisabled) {\n ref.nativeElement.setAttribute('disabled', '');\n } else {\n ref.nativeElement.removeAttribute('disabled');\n }\n }\n}\n","import {\n ChangeDetectionStrategy,\n Component,\n CUSTOM_ELEMENTS_SCHEMA,\n ElementRef,\n computed,\n effect,\n inject,\n input,\n model,\n output,\n viewChild,\n} from '@angular/core';\nimport {\n MintOtpInputElement,\n OtpInputType,\n OtpInputCase,\n OtpInputSize,\n} from '@mintplayer/web-components/otp-input';\nimport { BsOtpInputValueAccessor } from '../value-accessor/otp-input-value-accessor';\n\n@Component({\n selector: 'bs-otp-input',\n template: `\n <mp-otp-input\n #el\n class=\"bs-otp-input\"\n [attr.type]=\"type()\"\n [attr.case]=\"case()\"\n [attr.size]=\"size()\"\n [attr.invalid]=\"invalidAttr()\"\n [attr.input-label]=\"inputLabel()\"\n (value-change)=\"onValueChange($event)\"\n (complete)=\"onCompleteEvent($event)\"\n ></mp-otp-input>\n `,\n styles: [`\n :host { display: inline-block; }\n .bs-otp-input { display: inline-flex; }\n `],\n host: {\n '[attr.size]': 'size()',\n },\n schemas: [CUSTOM_ELEMENTS_SCHEMA],\n changeDetection: ChangeDetectionStrategy.OnPush,\n hostDirectives: [BsOtpInputValueAccessor],\n})\nexport class BsOtpInputComponent {\n readonly groups = input<number[]>([1, 1, 1, 1, 1, 1]);\n readonly type = input<OtpInputType>('numeric');\n readonly case = input<OtpInputCase>('upper');\n readonly size = input<OtpInputSize>('md');\n readonly disabled = input(false);\n readonly invalid = input(false);\n readonly inputLabel = input<string | null>(null);\n\n // `model()` already exposes a `valueChange` output for two-way [(value)]\n // binding; declaring it explicitly is an error in Angular 22 (NG1054).\n // `value.set()` in onValueChange drives that auto-output.\n readonly value = model<string | undefined>(undefined);\n\n readonly complete = output<string>();\n\n readonly elementRef = viewChild.required<ElementRef<MintOtpInputElement>>('el');\n\n private readonly hostRef = inject(ElementRef<HTMLElement>);\n\n protected readonly invalidAttr = computed(() => (this.invalid() ? '' : null));\n\n constructor() {\n // Override the host DOM element's `.focus` so external directives that look\n // up the element and call `.focus()` on it (e.g. FocusOnLoadDirective's\n // `*[autofocus]`) route into the internal hidden input. Without this, the\n // call hits HTMLElement.prototype.focus which is a no-op on a non-focusable\n // host. Capture the WC ref lazily because viewChild isn't available in the\n // constructor and external directives may call .focus() before our\n // ngAfterViewInit runs.\n const host = this.hostRef.nativeElement as HTMLElement & { focus: (o?: FocusOptions) => void };\n Object.defineProperty(host, 'focus', {\n value: (options?: FocusOptions) => {\n const wc = this.elementRef()?.nativeElement;\n if (wc) {\n wc.focus(options);\n } else {\n // Defer to a microtask so a focus() call landing before the view is\n // ready still hits the WC once it mounts. FocusOnLoadDirective uses\n // setTimeout(10) which runs after microtasks, so this path is mostly\n // defensive — but it cheaply handles the race.\n Promise.resolve().then(() => this.elementRef()?.nativeElement.focus(options));\n }\n },\n configurable: true,\n writable: true,\n });\n\n // Forward signal inputs that aren't attributes (groups is a number[] —\n // attribute serialisation works for it, but property write is the canonical\n // path and avoids the \"string-from-attribute\" parse round-trip).\n effect(() => {\n const ref = this.elementRef();\n if (!ref) return;\n ref.nativeElement.groups = this.groups();\n });\n\n // Forward `value` model writes to the WC. Skip undefined so a freshly-set\n // form control's writeValue(null) can still clear the field (we map null\n // to '' inside the WC's normaliseValue).\n effect(() => {\n const ref = this.elementRef();\n if (!ref) return;\n const v = this.value();\n if (v === undefined) return;\n ref.nativeElement.value = v;\n });\n\n // Forward the `invalid` boolean to the WC's invalid property (mirrors the\n // attribute, but property write is the canonical path for a boolean).\n effect(() => {\n const ref = this.elementRef();\n if (!ref) return;\n ref.nativeElement.invalid = this.invalid();\n });\n\n // Forward `disabled` via attribute. This used to be `[attr.disabled]` in the\n // template, but that creates a race with the CVA's `setDisabledState`:\n // both write to the same DOM attribute, and any signal change in the\n // wrapper re-fires the template binding which clobbers the CVA's\n // form-disabled state. Using an effect makes the write fire only when the\n // `disabled` signal actually changes; the CVA's imperative writes are\n // unaffected because Angular doesn't reconcile attribute bindings in the\n // template anymore for this attr.\n effect(() => {\n const ref = this.elementRef();\n if (!ref) return;\n if (this.disabled()) {\n ref.nativeElement.setAttribute('disabled', '');\n } else {\n ref.nativeElement.removeAttribute('disabled');\n }\n });\n }\n\n protected onValueChange(event: Event): void {\n const detail = (event as CustomEvent<string>).detail ?? '';\n this.value.set(detail);\n }\n\n protected onCompleteEvent(event: Event): void {\n // The WC's `complete` DOM event bubbles. The wrapper's Output is also\n // named `complete`. Without stopPropagation, the parent's `(complete)`\n // binding would catch BOTH the bubbled DOM event AND the Output emit\n // below — Angular's `(name)` binding on a child component listens to\n // both channels when their names collide.\n event.stopPropagation();\n const detail = (event as CustomEvent<string>).detail ?? '';\n this.complete.emit(detail);\n }\n\n /** Move focus into the hidden input. */\n focus(options?: FocusOptions): void {\n this.elementRef()?.nativeElement.focus(options);\n }\n\n /** Reset the value to empty string. */\n clear(): void {\n this.elementRef()?.nativeElement.clear();\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["i1.BsOtpInputValueAccessor"],"mappings":";;;;;MAgBa,uBAAuB,CAAA;AAZpC,IAAA,WAAA,GAAA;AAaU,QAAA,IAAA,CAAA,IAAI,GAAG,MAAM,CAAC,mBAAmB,CAAC;;;;;AAKlC,QAAA,IAAA,CAAA,QAAQ,GAAG,MAAM,CAAC,QAAQ,CAAC;AAC3B,QAAA,IAAA,CAAA,UAAU,GAAG,MAAM,CAAC,UAAU,CAAC;QAC/B,IAAA,CAAA,SAA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,UAAA,EAAA,EAAA,WAAA,EAAA,QAAA,EAAA,EAAA,EAAA,WAAA,EAAA,CAAA,EAAA,YAAA,EAAA,YAAA,EAAA,KAAA,EAAA,IAAA,EAAA,SAAA,EAAA,CAAA,IAAA,CAAA,EAAA,WAAA,EAAA,IAAA,EAAA,QAAA,EAAA,IAAA,EAAA,CAAA,EAAA,cAAA,EAAA,CAAA,EAAA,SAAA,EAAAA,uBAAA,EAAA,CAAA,EAAA,QAAA,EAAA,EAAA,EAAA,QAAA,EAxBpB;;;;;;;;;;;;AAYT,EAAA,CAAA,EAAA,QAAA,EAAA,IAAA,EAAA,MAAA,EAAA,CAAA,iEAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,CAAA,CAAA;;2FAYU,mBAAmB,EAAA,UAAA,EAAA,CAAA;kBA1B/B,SAAS;AACE,YAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,cAAc,EAAA,QAAA,EACd;;;;;;;;;;;;GAYT,EAAA,IAAA,EAKK;AACJ,wBAAA,aAAa,EAAE,QAAQ;qBACxB,EAAA,OAAA,EACQ,CAAC,sBAAsB,CAAC,EAAA,eAAA,EAChB,uBAAuB,CAAC,MAAM,EAAA,cAAA,EAC/B,CAAC,uBAAuB,CAAC,EAAA,MAAA,EAAA,CAAA,iEAAA,CAAA,EAAA;m6BAkBiC,IAAI,EAAA,EAAA,QAAA,EAAA,IAAA,EAAA,CAAA,EAAA,CAAA,EAAA,EAAA,CAAA;;AC/DhF;;AAEG;;;;"}
1
+ {"version":3,"file":"mintplayer-ng-bootstrap-otp-input.mjs","sources":["../../../../libs/mintplayer-ng-bootstrap/otp-input/src/lib/value-accessor/otp-input-value-accessor.ts","../../../../libs/mintplayer-ng-bootstrap/otp-input/src/lib/components/otp-input.component.ts","../../../../libs/mintplayer-ng-bootstrap/otp-input/mintplayer-ng-bootstrap-otp-input.ts"],"sourcesContent":["import { DestroyRef, Directive, Injector, OnInit, forwardRef, inject } from '@angular/core';\nimport { ControlValueAccessor, NG_VALUE_ACCESSOR, NgControl } from '@angular/forms';\nimport { BsOtpInputComponent } from '../components/otp-input.component';\n\n@Directive({\n selector: 'bs-otp-input',\n providers: [{\n provide: NG_VALUE_ACCESSOR,\n useExisting: forwardRef(() => BsOtpInputValueAccessor),\n multi: true,\n }],\n host: {\n '(value-change)': 'onValueChangeEvent($event)',\n '(focusout)': 'onTouchEvent()',\n },\n})\nexport class BsOtpInputValueAccessor implements ControlValueAccessor, OnInit {\n private host = inject(BsOtpInputComponent);\n // Inject NgControl LAZILY via the injector. Eager `inject(NgControl)` here\n // creates a cycle: NgControl → NG_VALUE_ACCESSOR token → this directive →\n // NgControl. Looking it up in ngOnInit (after the form directive has\n // finished its own construction) breaks the cycle.\n private injector = inject(Injector);\n private destroyRef = inject(DestroyRef);\n private ngControl: NgControl | null = null;\n\n private onValueChange?: (value: string) => void;\n private onTouched?: () => void;\n\n ngOnInit(): void {\n this.ngControl = this.injector.get(NgControl, null);\n // Push invalid state to the WC whenever the form control's status or\n // touched state changes. Mirrors Bootstrap's .is-invalid convention: only\n // mark the boxes red after the control has been touched, otherwise we'd\n // light up a \"required\" field the moment the form mounts.\n if (!this.ngControl?.control) return;\n const sub = this.ngControl.statusChanges?.subscribe(() => this.syncInvalid());\n if (sub) this.destroyRef.onDestroy(() => sub.unsubscribe());\n // Sync once now in case the control was created already invalid+touched\n // (e.g. server-side validation rehydrate).\n queueMicrotask(() => this.syncInvalid());\n }\n\n protected onValueChangeEvent(ev: Event): void {\n if (!this.onValueChange) return;\n const detail = (ev as CustomEvent<string>).detail ?? '';\n this.onValueChange(detail);\n }\n\n protected onTouchEvent(): void {\n if (this.onTouched) this.onTouched();\n // Re-sync invalid on touch — statusChanges doesn't always fire on touched\n // alone, so we trigger the recompute here.\n this.syncInvalid();\n }\n\n private syncInvalid(): void {\n // Guard async-scheduled invocations: queueMicrotask in ngOnInit + the\n // statusChanges subscription are both possible after destroy. Reading\n // `host.elementRef()` (a required viewChild) on a destroyed view throws.\n if (this.destroyRef.destroyed) return;\n const ref = this.host.elementRef();\n if (!ref || !this.ngControl) return;\n const invalid = (this.ngControl.invalid ?? false) && (this.ngControl.touched ?? false);\n ref.nativeElement.invalid = invalid;\n }\n\n registerOnChange(fn: (value: string) => void): void {\n this.onValueChange = fn;\n }\n\n registerOnTouched(fn: () => void): void {\n this.onTouched = fn;\n }\n\n writeValue(value: string | null | undefined): void {\n const ref = this.host.elementRef();\n if (!ref) return;\n ref.nativeElement.value = value ?? '';\n }\n\n setDisabledState(isDisabled: boolean): void {\n const ref = this.host.elementRef();\n if (!ref) return;\n if (isDisabled) {\n ref.nativeElement.setAttribute('disabled', '');\n } else {\n ref.nativeElement.removeAttribute('disabled');\n }\n }\n}\n","import {\n ChangeDetectionStrategy,\n Component,\n CUSTOM_ELEMENTS_SCHEMA,\n ElementRef,\n computed,\n effect,\n inject,\n input,\n model,\n output,\n viewChild,\n} from '@angular/core';\nimport {\n MintOtpInputElement,\n OtpInputType,\n OtpInputCase,\n OtpInputSize,\n} from '@mintplayer/web-components/otp-input';\nimport { BsOtpInputValueAccessor } from '../value-accessor/otp-input-value-accessor';\n\n@Component({\n selector: 'bs-otp-input',\n template: `\n <mp-otp-input\n #el\n class=\"bs-otp-input\"\n [attr.type]=\"type()\"\n [attr.case]=\"case()\"\n [attr.size]=\"size()\"\n [attr.invalid]=\"invalidAttr()\"\n [attr.input-label]=\"inputLabel()\"\n (value-change)=\"onValueChange($event)\"\n (complete)=\"onCompleteEvent($event)\"\n ></mp-otp-input>\n `,\n styles: [`\n :host { display: inline-block; }\n .bs-otp-input { display: inline-flex; }\n `],\n host: {\n '[attr.size]': 'size()',\n },\n schemas: [CUSTOM_ELEMENTS_SCHEMA],\n changeDetection: ChangeDetectionStrategy.OnPush,\n hostDirectives: [BsOtpInputValueAccessor],\n})\nexport class BsOtpInputComponent {\n readonly groups = input<number[]>([1, 1, 1, 1, 1, 1]);\n readonly type = input<OtpInputType>('numeric');\n readonly case = input<OtpInputCase>('upper');\n readonly size = input<OtpInputSize>('md');\n readonly disabled = input(false);\n readonly invalid = input(false);\n readonly inputLabel = input<string | null>(null);\n\n // `model()` already exposes a `valueChange` output for two-way [(value)]\n // binding; declaring it explicitly is an error in Angular 22 (NG1054).\n // `value.set()` in onValueChange drives that auto-output.\n readonly value = model<string | undefined>(undefined);\n\n readonly complete = output<string>();\n\n readonly elementRef = viewChild.required<ElementRef<MintOtpInputElement>>('el');\n\n private readonly hostRef = inject(ElementRef<HTMLElement>);\n\n protected readonly invalidAttr = computed(() => (this.invalid() ? '' : null));\n\n constructor() {\n // Override the host DOM element's `.focus` so external directives that look\n // up the element and call `.focus()` on it (e.g. FocusOnLoadDirective's\n // `*[autofocus]`) route into the internal hidden input. Without this, the\n // call hits HTMLElement.prototype.focus which is a no-op on a non-focusable\n // host. Capture the WC ref lazily because viewChild isn't available in the\n // constructor and external directives may call .focus() before our\n // ngAfterViewInit runs.\n const host = this.hostRef.nativeElement as HTMLElement & { focus: (o?: FocusOptions) => void };\n Object.defineProperty(host, 'focus', {\n value: (options?: FocusOptions) => {\n const wc = this.elementRef()?.nativeElement;\n if (wc) {\n wc.focus(options);\n } else {\n // Defer to a microtask so a focus() call landing before the view is\n // ready still hits the WC once it mounts. FocusOnLoadDirective uses\n // setTimeout(10) which runs after microtasks, so this path is mostly\n // defensive — but it cheaply handles the race.\n Promise.resolve().then(() => this.elementRef()?.nativeElement.focus(options));\n }\n },\n configurable: true,\n writable: true,\n });\n\n // Forward signal inputs that aren't attributes (groups is a number[] —\n // attribute serialisation works for it, but property write is the canonical\n // path and avoids the \"string-from-attribute\" parse round-trip).\n effect(() => {\n const ref = this.elementRef();\n if (!ref) return;\n ref.nativeElement.groups = this.groups();\n });\n\n // Forward `value` model writes to the WC. Skip undefined so a freshly-set\n // form control's writeValue(null) can still clear the field (we map null\n // to '' inside the WC's normaliseValue).\n effect(() => {\n const ref = this.elementRef();\n if (!ref) return;\n const v = this.value();\n if (v === undefined) return;\n ref.nativeElement.value = v;\n });\n\n // Forward the `invalid` boolean to the WC's invalid property (mirrors the\n // attribute, but property write is the canonical path for a boolean).\n effect(() => {\n const ref = this.elementRef();\n if (!ref) return;\n ref.nativeElement.invalid = this.invalid();\n });\n\n // Forward `disabled` via attribute. This used to be `[attr.disabled]` in the\n // template, but that creates a race with the CVA's `setDisabledState`:\n // both write to the same DOM attribute, and any signal change in the\n // wrapper re-fires the template binding which clobbers the CVA's\n // form-disabled state. Using an effect makes the write fire only when the\n // `disabled` signal actually changes; the CVA's imperative writes are\n // unaffected because Angular doesn't reconcile attribute bindings in the\n // template anymore for this attr.\n effect(() => {\n const ref = this.elementRef();\n if (!ref) return;\n if (this.disabled()) {\n ref.nativeElement.setAttribute('disabled', '');\n } else {\n ref.nativeElement.removeAttribute('disabled');\n }\n });\n }\n\n protected onValueChange(event: Event): void {\n const detail = (event as CustomEvent<string>).detail ?? '';\n this.value.set(detail);\n }\n\n protected onCompleteEvent(event: Event): void {\n // The WC's `complete` DOM event bubbles. The wrapper's Output is also\n // named `complete`. Without stopPropagation, the parent's `(complete)`\n // binding would catch BOTH the bubbled DOM event AND the Output emit\n // below — Angular's `(name)` binding on a child component listens to\n // both channels when their names collide.\n event.stopPropagation();\n const detail = (event as CustomEvent<string>).detail ?? '';\n this.complete.emit(detail);\n }\n\n /** Move focus into the hidden input. */\n focus(options?: FocusOptions): void {\n this.elementRef()?.nativeElement.focus(options);\n }\n\n /** Reset the value to empty string. */\n clear(): void {\n this.elementRef()?.nativeElement.clear();\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["i1.BsOtpInputValueAccessor"],"mappings":";;;;;MAgBa,uBAAuB,CAAA;AAZpC,IAAA,WAAA,GAAA;AAaU,QAAA,IAAA,CAAA,IAAI,GAAG,MAAM,CAAC,mBAAmB,CAAC;;;;;AAKlC,QAAA,IAAA,CAAA,QAAQ,GAAG,MAAM,CAAC,QAAQ,CAAC;AAC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AAA,EAAA,KAAA,EAAA,aAAA,EAAA,QAAA,EAAA,UAAA,EAAA,EAAA,IAAA,EAAA,EAAA,UAAA,EAAA,EAAA,WAAA,EAAA,QAAA,EAAA,EAAA,EAAA,WAAA,EAAA,CAAA,EAAA,YAAA,EAAA,YAAA,EAAA,KAAA,EAAA,IAAA,EAAA,SAAA,EAAA,CAAA,IAAA,CAAA,EAAA,WAAA,EAAA,IAAA,EAAA,QAAA,EAAA,IAAA,EAAA,CAAA,EAAA,cAAA,EAAA,CAAA,EAAA,SAAA,EAAAA,uBAAA,EAAA,CAAA,EAAA,QAAA,EAAA,EAAA,EAAA,QAAA,EAxBpB;;;;;;;;;;;;AAYT,EAAA,CAAA,EAAA,QAAA,EAAA,IAAA,EAAA,MAAA,EAAA,CAAA,iEAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,CAAA,CAAA;;2FAYU,mBAAmB,EAAA,UAAA,EAAA,CAAA;kBA1B/B,SAAS;AACE,YAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,cAAc,EAAA,QAAA,EACd;;;;;;;;;;;;GAYT,EAAA,IAAA,EAKK;AACJ,wBAAA,aAAa,EAAE,QAAQ;qBACxB,EAAA,OAAA,EACQ,CAAC,sBAAsB,CAAC,EAAA,eAAA,EAChB,uBAAuB,CAAC,MAAM,EAAA,cAAA,EAC/B,CAAC,uBAAuB,CAAC,EAAA,MAAA,EAAA,CAAA,iEAAA,CAAA,EAAA;m6BAkBiC,IAAI,EAAA,EAAA,QAAA,EAAA,IAAA,EAAA,CAAA,EAAA,CAAA,EAAA,EAAA,CAAA;;AC/DhF;;AAEG;;;;"}
@@ -42,10 +42,10 @@ class BsPaginationComponent {
42
42
  const detail = event.detail;
43
43
  this.selectedPageNumber.set(detail.page);
44
44
  }
45
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: BsPaginationComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
46
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "22.0.0", type: BsPaginationComponent, isStandalone: true, selector: "bs-pagination", inputs: { pageNumbers: { classPropertyName: "pageNumbers", publicName: "pageNumbers", isSignal: true, isRequired: false, transformFunction: null }, selectedPageNumber: { classPropertyName: "selectedPageNumber", publicName: "selectedPageNumber", isSignal: true, isRequired: false, transformFunction: null }, numberOfBoxes: { classPropertyName: "numberOfBoxes", publicName: "numberOfBoxes", isSignal: true, isRequired: false, transformFunction: null }, showArrows: { classPropertyName: "showArrows", publicName: "showArrows", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { selectedPageNumber: "selectedPageNumberChange" }, viewQueries: [{ propertyName: "paginationRef", first: true, predicate: ["pagination"], descendants: true, isSignal: true }], ngImport: i0, template: "<mp-pagination bsForwardAria #pagination (mp-pagination-page-change)=\"onPageChange($event)\"></mp-pagination>\n", styles: [":host{display:block}\n"], dependencies: [{ kind: "directive", type: BsForwardAriaDirective, selector: "[bsForwardAria]" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
45
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsPaginationComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
46
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "22.0.8", type: BsPaginationComponent, isStandalone: true, selector: "bs-pagination", inputs: { pageNumbers: { classPropertyName: "pageNumbers", publicName: "pageNumbers", isSignal: true, isRequired: false, transformFunction: null }, selectedPageNumber: { classPropertyName: "selectedPageNumber", publicName: "selectedPageNumber", isSignal: true, isRequired: false, transformFunction: null }, numberOfBoxes: { classPropertyName: "numberOfBoxes", publicName: "numberOfBoxes", isSignal: true, isRequired: false, transformFunction: null }, showArrows: { classPropertyName: "showArrows", publicName: "showArrows", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { selectedPageNumber: "selectedPageNumberChange" }, viewQueries: [{ propertyName: "paginationRef", first: true, predicate: ["pagination"], descendants: true, isSignal: true }], ngImport: i0, template: "<mp-pagination bsForwardAria #pagination (mp-pagination-page-change)=\"onPageChange($event)\"></mp-pagination>\n", styles: [":host{display:block}\n"], dependencies: [{ kind: "directive", type: BsForwardAriaDirective, selector: "[bsForwardAria]" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
47
47
  }
48
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: BsPaginationComponent, decorators: [{
48
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsPaginationComponent, decorators: [{
49
49
  type: Component,
50
50
  args: [{ selector: 'bs-pagination', imports: [BsForwardAriaDirective], schemas: [CUSTOM_ELEMENTS_SCHEMA], changeDetection: ChangeDetectionStrategy.OnPush, template: "<mp-pagination bsForwardAria #pagination (mp-pagination-page-change)=\"onPageChange($event)\"></mp-pagination>\n", styles: [":host{display:block}\n"] }]
51
51
  }], ctorParameters: () => [], propDecorators: { pageNumbers: [{ type: i0.Input, args: [{ isSignal: true, alias: "pageNumbers", required: false }] }], selectedPageNumber: [{ type: i0.Input, args: [{ isSignal: true, alias: "selectedPageNumber", required: false }] }, { type: i0.Output, args: ["selectedPageNumberChange"] }], numberOfBoxes: [{ type: i0.Input, args: [{ isSignal: true, alias: "numberOfBoxes", required: false }] }], showArrows: [{ type: i0.Input, args: [{ isSignal: true, alias: "showArrows", required: false }] }], size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], paginationRef: [{ type: i0.ViewChild, args: ['pagination', { isSignal: true }] }] } });
@@ -13,10 +13,10 @@ class BsParallaxComponent {
13
13
  }, /* @ts-ignore */
14
14
  ...(ngDevMode ? [{ debugName: "imageStyle" }] : /* istanbul ignore next */ []));
15
15
  }
16
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: BsParallaxComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
17
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.0.0", type: BsParallaxComponent, isStandalone: true, selector: "bs-parallax", inputs: { height: { classPropertyName: "height", publicName: "height", isSignal: true, isRequired: false, transformFunction: null }, image: { classPropertyName: "image", publicName: "image", isSignal: true, isRequired: true, transformFunction: null } }, ngImport: i0, template: "<div class=\"parallax\" [style.height.px]=\"height()\" [style.background-image]=\"imageStyle()\"></div>\n", styles: [".parallax{background-attachment:fixed;background-position:center;background-repeat:no-repeat;background-size:cover}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
16
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsParallaxComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
17
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.0.8", type: BsParallaxComponent, isStandalone: true, selector: "bs-parallax", inputs: { height: { classPropertyName: "height", publicName: "height", isSignal: true, isRequired: false, transformFunction: null }, image: { classPropertyName: "image", publicName: "image", isSignal: true, isRequired: true, transformFunction: null } }, ngImport: i0, template: "<div class=\"parallax\" [style.height.px]=\"height()\" [style.background-image]=\"imageStyle()\"></div>\n", styles: [".parallax{background-attachment:fixed;background-position:center;background-repeat:no-repeat;background-size:cover}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
18
18
  }
19
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: BsParallaxComponent, decorators: [{
19
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsParallaxComponent, decorators: [{
20
20
  type: Component,
21
21
  args: [{ selector: 'bs-parallax', imports: [], changeDetection: ChangeDetectionStrategy.OnPush, template: "<div class=\"parallax\" [style.height.px]=\"height()\" [style.background-image]=\"imageStyle()\"></div>\n", styles: [".parallax{background-attachment:fixed;background-position:center;background-repeat:no-repeat;background-size:cover}\n"] }]
22
22
  }], propDecorators: { height: [{ type: i0.Input, args: [{ isSignal: true, alias: "height", required: false }] }], image: [{ type: i0.Input, args: [{ isSignal: true, alias: "image", required: true }] }] } });
@@ -0,0 +1,127 @@
1
+ import * as i0 from '@angular/core';
2
+ import { inject, DestroyRef, viewChild, input, output, computed, effect, forwardRef, CUSTOM_ELEMENTS_SCHEMA, ChangeDetectionStrategy, Component } from '@angular/core';
3
+ import { NG_VALUE_ACCESSOR } from '@angular/forms';
4
+ import * as i1 from '@mintplayer/ng-bootstrap/a11y';
5
+ import { BsForwardAriaDirective, BsControlValidityDirective } from '@mintplayer/ng-bootstrap/a11y';
6
+ import '@mintplayer/web-components/phone-input';
7
+
8
+ /**
9
+ * `<bs-phone-input>` — a phone-number form control: country picker with flags,
10
+ * a dial code that cannot be edited away, and as-you-type formatting.
11
+ *
12
+ * The control value is **E.164** (`'+32470123456'`), or `null` while empty, so a
13
+ * form posts one canonical string. `(phoneChange)` carries the decomposed parts
14
+ * for consumers that need them — note `valid` is `undefined` until the selected
15
+ * country's validation rules have loaded, which is deliberate rather than
16
+ * optimistic.
17
+ *
18
+ * ```html
19
+ * <bs-form>
20
+ * <bs-phone-input [(ngModel)]="phone" default-country="be"
21
+ * [errorMessages]="{ required: 'Enter a phone number.' }" />
22
+ * </bs-form>
23
+ * ```
24
+ */
25
+ class BsPhoneInputComponent {
26
+ constructor() {
27
+ this.destroyRef = inject(DestroyRef);
28
+ this.onChange = () => undefined;
29
+ this.onTouched = () => undefined;
30
+ /** Set by `setDisabledState` before the view exists, applied by the effect. */
31
+ this.disabledByForm = false;
32
+ this.phoneInput = viewChild.required('phoneInput', /* @ts-ignore */
33
+ ...(ngDevMode ? [{ debugName: "phoneInput" }] : /* istanbul ignore next */ []));
34
+ /** ISO 3166-1 alpha-2, lowercase. Two-way via `(countryChange)`. */
35
+ this.country = input(null, /* @ts-ignore */
36
+ ...(ngDevMode ? [{ debugName: "country" }] : /* istanbul ignore next */ []));
37
+ /** Country to start on when the value is empty. */
38
+ this.defaultCountry = input(null, /* @ts-ignore */
39
+ ...(ngDevMode ? [{ debugName: "defaultCountry" }] : /* istanbul ignore next */ []));
40
+ /** BCP-47 tag for country names and their ordering. Omitted = browser locale. */
41
+ this.locale = input(null, /* @ts-ignore */
42
+ ...(ngDevMode ? [{ debugName: "locale" }] : /* istanbul ignore next */ []));
43
+ this.preferredCountries = input(null, /* @ts-ignore */
44
+ ...(ngDevMode ? [{ debugName: "preferredCountries" }] : /* istanbul ignore next */ []));
45
+ this.allowedCountries = input(null, /* @ts-ignore */
46
+ ...(ngDevMode ? [{ debugName: "allowedCountries" }] : /* istanbul ignore next */ []));
47
+ this.placeholder = input(null, /* @ts-ignore */
48
+ ...(ngDevMode ? [{ debugName: "placeholder" }] : /* istanbul ignore next */ []));
49
+ this.autocomplete = input('tel-national', /* @ts-ignore */
50
+ ...(ngDevMode ? [{ debugName: "autocomplete" }] : /* istanbul ignore next */ []));
51
+ /** Accessible name of the number field. */
52
+ this.inputLabel = input(null, /* @ts-ignore */
53
+ ...(ngDevMode ? [{ debugName: "inputLabel" }] : /* istanbul ignore next */ []));
54
+ /** Accessible name of the country picker. */
55
+ this.countryLabel = input(null, /* @ts-ignore */
56
+ ...(ngDevMode ? [{ debugName: "countryLabel" }] : /* istanbul ignore next */ []));
57
+ this.countryChange = output();
58
+ /** The full detail: E.164 value plus country, dial code, digits and validity. */
59
+ this.phoneChange = output();
60
+ this.preferredAttr = computed(() => this.preferredCountries()?.join(',') ?? null, /* @ts-ignore */
61
+ ...(ngDevMode ? [{ debugName: "preferredAttr" }] : /* istanbul ignore next */ []));
62
+ this.allowedAttr = computed(() => this.allowedCountries()?.join(',') ?? null, /* @ts-ignore */
63
+ ...(ngDevMode ? [{ debugName: "allowedAttr" }] : /* istanbul ignore next */ []));
64
+ effect(() => {
65
+ const el = this.phoneInput()?.nativeElement;
66
+ if (el)
67
+ el.disabled = this.disabledByForm;
68
+ });
69
+ }
70
+ writeValue(value) {
71
+ const el = this.phoneInput()?.nativeElement;
72
+ // The WC decomposes E.164 into country + national digits itself, so the
73
+ // accessor never has to parse — and a value arriving before the view exists
74
+ // is applied by the same assignment once it does.
75
+ if (el)
76
+ el.value = value ?? null;
77
+ }
78
+ registerOnChange(fn) {
79
+ this.onChange = fn;
80
+ }
81
+ registerOnTouched(fn) {
82
+ this.onTouched = fn;
83
+ }
84
+ setDisabledState(isDisabled) {
85
+ this.disabledByForm = isDisabled;
86
+ const el = this.phoneInput()?.nativeElement;
87
+ if (el)
88
+ el.disabled = isDisabled;
89
+ }
90
+ onValueChange(ev) {
91
+ const detail = ev.detail;
92
+ if (this.destroyRef.destroyed)
93
+ return;
94
+ this.onChange(detail.value);
95
+ this.phoneChange.emit(detail);
96
+ }
97
+ onCountryChange(ev) {
98
+ const detail = ev.detail;
99
+ if (this.destroyRef.destroyed)
100
+ return;
101
+ // A country change is a user interaction with the control, and the number is
102
+ // usually still empty at that point — without this the field can never be
103
+ // touched, so a `required` error would never surface.
104
+ this.onTouched();
105
+ this.countryChange.emit(detail.country);
106
+ }
107
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsPhoneInputComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
108
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "22.0.8", type: BsPhoneInputComponent, isStandalone: true, selector: "bs-phone-input", inputs: { country: { classPropertyName: "country", publicName: "country", isSignal: true, isRequired: false, transformFunction: null }, defaultCountry: { classPropertyName: "defaultCountry", publicName: "defaultCountry", isSignal: true, isRequired: false, transformFunction: null }, locale: { classPropertyName: "locale", publicName: "locale", isSignal: true, isRequired: false, transformFunction: null }, preferredCountries: { classPropertyName: "preferredCountries", publicName: "preferredCountries", isSignal: true, isRequired: false, transformFunction: null }, allowedCountries: { classPropertyName: "allowedCountries", publicName: "allowedCountries", isSignal: true, isRequired: false, transformFunction: null }, placeholder: { classPropertyName: "placeholder", publicName: "placeholder", isSignal: true, isRequired: false, transformFunction: null }, autocomplete: { classPropertyName: "autocomplete", publicName: "autocomplete", isSignal: true, isRequired: false, transformFunction: null }, inputLabel: { classPropertyName: "inputLabel", publicName: "inputLabel", isSignal: true, isRequired: false, transformFunction: null }, countryLabel: { classPropertyName: "countryLabel", publicName: "countryLabel", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { countryChange: "countryChange", phoneChange: "phoneChange" }, providers: [
109
+ { provide: NG_VALUE_ACCESSOR, useExisting: forwardRef(() => BsPhoneInputComponent), multi: true },
110
+ ], viewQueries: [{ propertyName: "phoneInput", first: true, predicate: ["phoneInput"], descendants: true, isSignal: true }], hostDirectives: [{ directive: i1.BsControlValidityDirective, inputs: ["errorMessages", "errorMessages"] }], ngImport: i0, template: "<mp-phone-input\n bsForwardAria\n #phoneInput\n [attr.country]=\"country()\"\n [attr.default-country]=\"defaultCountry()\"\n [attr.locale]=\"locale()\"\n [attr.preferred-countries]=\"preferredAttr()\"\n [attr.allowed-countries]=\"allowedAttr()\"\n [attr.placeholder]=\"placeholder()\"\n [attr.autocomplete]=\"autocomplete()\"\n [attr.input-label]=\"inputLabel()\"\n [attr.country-label]=\"countryLabel()\"\n (value-change)=\"onValueChange($event)\"\n (country-change)=\"onCountryChange($event)\">\n</mp-phone-input>\n", dependencies: [{ kind: "directive", type: BsForwardAriaDirective, selector: "[bsForwardAria]" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
111
+ }
112
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsPhoneInputComponent, decorators: [{
113
+ type: Component,
114
+ args: [{ selector: 'bs-phone-input', imports: [BsForwardAriaDirective], changeDetection: ChangeDetectionStrategy.OnPush, schemas: [CUSTOM_ELEMENTS_SCHEMA], providers: [
115
+ { provide: NG_VALUE_ACCESSOR, useExisting: forwardRef(() => BsPhoneInputComponent), multi: true },
116
+ ], hostDirectives: [{
117
+ directive: BsControlValidityDirective,
118
+ inputs: ['errorMessages'],
119
+ }], template: "<mp-phone-input\n bsForwardAria\n #phoneInput\n [attr.country]=\"country()\"\n [attr.default-country]=\"defaultCountry()\"\n [attr.locale]=\"locale()\"\n [attr.preferred-countries]=\"preferredAttr()\"\n [attr.allowed-countries]=\"allowedAttr()\"\n [attr.placeholder]=\"placeholder()\"\n [attr.autocomplete]=\"autocomplete()\"\n [attr.input-label]=\"inputLabel()\"\n [attr.country-label]=\"countryLabel()\"\n (value-change)=\"onValueChange($event)\"\n (country-change)=\"onCountryChange($event)\">\n</mp-phone-input>\n" }]
120
+ }], ctorParameters: () => [], propDecorators: { phoneInput: [{ type: i0.ViewChild, args: ['phoneInput', { isSignal: true }] }], country: [{ type: i0.Input, args: [{ isSignal: true, alias: "country", required: false }] }], defaultCountry: [{ type: i0.Input, args: [{ isSignal: true, alias: "defaultCountry", required: false }] }], locale: [{ type: i0.Input, args: [{ isSignal: true, alias: "locale", required: false }] }], preferredCountries: [{ type: i0.Input, args: [{ isSignal: true, alias: "preferredCountries", required: false }] }], allowedCountries: [{ type: i0.Input, args: [{ isSignal: true, alias: "allowedCountries", required: false }] }], placeholder: [{ type: i0.Input, args: [{ isSignal: true, alias: "placeholder", required: false }] }], autocomplete: [{ type: i0.Input, args: [{ isSignal: true, alias: "autocomplete", required: false }] }], inputLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "inputLabel", required: false }] }], countryLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "countryLabel", required: false }] }], countryChange: [{ type: i0.Output, args: ["countryChange"] }], phoneChange: [{ type: i0.Output, args: ["phoneChange"] }] } });
121
+
122
+ /**
123
+ * Generated bundle index. Do not edit.
124
+ */
125
+
126
+ export { BsPhoneInputComponent };
127
+ //# sourceMappingURL=mintplayer-ng-bootstrap-phone-input.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"mintplayer-ng-bootstrap-phone-input.mjs","sources":["../../../../libs/mintplayer-ng-bootstrap/phone-input/src/component/phone-input.component.ts","../../../../libs/mintplayer-ng-bootstrap/phone-input/src/component/phone-input.component.html","../../../../libs/mintplayer-ng-bootstrap/phone-input/mintplayer-ng-bootstrap-phone-input.ts"],"sourcesContent":["import {\n ChangeDetectionStrategy,\n Component,\n CUSTOM_ELEMENTS_SCHEMA,\n DestroyRef,\n ElementRef,\n computed,\n effect,\n forwardRef,\n inject,\n input,\n output,\n viewChild,\n} from '@angular/core';\nimport { ControlValueAccessor, NG_VALUE_ACCESSOR } from '@angular/forms';\nimport { BsControlValidityDirective, BsForwardAriaDirective } from '@mintplayer/ng-bootstrap/a11y';\nimport type {\n CountryChangeEventDetail,\n MpPhoneInput,\n PhoneChangeEventDetail,\n} from '@mintplayer/web-components/phone-input';\n\n// Side-effect import: registers <mp-phone-input> (and, transitively, the\n// <mp-input-group> and <mp-select> it composes).\nimport '@mintplayer/web-components/phone-input';\n\n/**\n * `<bs-phone-input>` — a phone-number form control: country picker with flags,\n * a dial code that cannot be edited away, and as-you-type formatting.\n *\n * The control value is **E.164** (`'+32470123456'`), or `null` while empty, so a\n * form posts one canonical string. `(phoneChange)` carries the decomposed parts\n * for consumers that need them — note `valid` is `undefined` until the selected\n * country's validation rules have loaded, which is deliberate rather than\n * optimistic.\n *\n * ```html\n * <bs-form>\n * <bs-phone-input [(ngModel)]=\"phone\" default-country=\"be\"\n * [errorMessages]=\"{ required: 'Enter a phone number.' }\" />\n * </bs-form>\n * ```\n */\n@Component({\n selector: 'bs-phone-input',\n templateUrl: './phone-input.component.html',\n imports: [BsForwardAriaDirective],\n changeDetection: ChangeDetectionStrategy.OnPush,\n schemas: [CUSTOM_ELEMENTS_SCHEMA],\n providers: [\n { provide: NG_VALUE_ACCESSOR, useExisting: forwardRef(() => BsPhoneInputComponent), multi: true },\n ],\n hostDirectives: [{\n directive: BsControlValidityDirective,\n inputs: ['errorMessages'],\n }],\n})\nexport class BsPhoneInputComponent implements ControlValueAccessor {\n private readonly destroyRef = inject(DestroyRef);\n private onChange: (value: string | null) => void = () => undefined;\n private onTouched: () => void = () => undefined;\n /** Set by `setDisabledState` before the view exists, applied by the effect. */\n private disabledByForm = false;\n\n private readonly phoneInput = viewChild.required<ElementRef<MpPhoneInput>>('phoneInput');\n\n /** ISO 3166-1 alpha-2, lowercase. Two-way via `(countryChange)`. */\n readonly country = input<string | null>(null);\n /** Country to start on when the value is empty. */\n readonly defaultCountry = input<string | null>(null);\n /** BCP-47 tag for country names and their ordering. Omitted = browser locale. */\n readonly locale = input<string | null>(null);\n readonly preferredCountries = input<readonly string[] | null>(null);\n readonly allowedCountries = input<readonly string[] | null>(null);\n readonly placeholder = input<string | null>(null);\n readonly autocomplete = input<string>('tel-national');\n /** Accessible name of the number field. */\n readonly inputLabel = input<string | null>(null);\n /** Accessible name of the country picker. */\n readonly countryLabel = input<string | null>(null);\n\n readonly countryChange = output<string>();\n /** The full detail: E.164 value plus country, dial code, digits and validity. */\n readonly phoneChange = output<PhoneChangeEventDetail>();\n\n protected readonly preferredAttr = computed(() => this.preferredCountries()?.join(',') ?? null);\n protected readonly allowedAttr = computed(() => this.allowedCountries()?.join(',') ?? null);\n\n constructor() {\n effect(() => {\n const el = this.phoneInput()?.nativeElement;\n if (el) el.disabled = this.disabledByForm;\n });\n }\n\n writeValue(value: string | null): void {\n const el = this.phoneInput()?.nativeElement;\n // The WC decomposes E.164 into country + national digits itself, so the\n // accessor never has to parse — and a value arriving before the view exists\n // is applied by the same assignment once it does.\n if (el) el.value = value ?? null;\n }\n\n registerOnChange(fn: (value: string | null) => void): void {\n this.onChange = fn;\n }\n\n registerOnTouched(fn: () => void): void {\n this.onTouched = fn;\n }\n\n setDisabledState(isDisabled: boolean): void {\n this.disabledByForm = isDisabled;\n const el = this.phoneInput()?.nativeElement;\n if (el) el.disabled = isDisabled;\n }\n\n protected onValueChange(ev: Event): void {\n const detail = (ev as CustomEvent<PhoneChangeEventDetail>).detail;\n if (this.destroyRef.destroyed) return;\n this.onChange(detail.value);\n this.phoneChange.emit(detail);\n }\n\n protected onCountryChange(ev: Event): void {\n const detail = (ev as CustomEvent<CountryChangeEventDetail>).detail;\n if (this.destroyRef.destroyed) return;\n // A country change is a user interaction with the control, and the number is\n // usually still empty at that point — without this the field can never be\n // touched, so a `required` error would never surface.\n this.onTouched();\n this.countryChange.emit(detail.country);\n }\n}\n","<mp-phone-input\n bsForwardAria\n #phoneInput\n [attr.country]=\"country()\"\n [attr.default-country]=\"defaultCountry()\"\n [attr.locale]=\"locale()\"\n [attr.preferred-countries]=\"preferredAttr()\"\n [attr.allowed-countries]=\"allowedAttr()\"\n [attr.placeholder]=\"placeholder()\"\n [attr.autocomplete]=\"autocomplete()\"\n [attr.input-label]=\"inputLabel()\"\n [attr.country-label]=\"countryLabel()\"\n (value-change)=\"onValueChange($event)\"\n (country-change)=\"onCountryChange($event)\">\n</mp-phone-input>\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;AA0BA;;;;;;;;;;;;;;;;AAgBG;MAeU,qBAAqB,CAAA;AA+BhC,IAAA,WAAA,GAAA;AA9BiB,QAAA,IAAA,CAAA,UAAU,GAAG,MAAM,CAAC,UAAU,CAAC;AACxC,QAAA,IAAA,CAAA,QAAQ,GAAmC,MAAM,SAAS;AAC1D,QAAA,IAAA,CAAA,SAAS,GAAe,MAAM,SAAS;;QAEvC,IAAA,CAAA,cAAc,GAAG,KAAK;AAEb,QAAA,IAAA,CAAA,UAAU,GAAG,SAAS,CAAC,QAAQ,CAA2B,YAAY;uFAAC;;QAG/E,IAAA,CAAA,OAAO,GAAG,KAAK,CAAgB,IAAI;oFAAC;;QAEpC,IAAA,CAAA,cAAc,GAAG,KAAK,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A,EAAA,QAAA,EAAA,IAAA,EAAA,KAAA,EAAA,cAAA,EAAA,QAAA,EAAA,KAAA,EAAA,CAAA,EAAA,CAAA,EAAA,UAAA,EAAA,CAAA,EAAA,IAAA,EAAA,EAAA,CAAA,KAAA,EAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,IAAA,EAAA,KAAA,EAAA,YAAA,EAAA,QAAA,EAAA,KAAA,EAAA,CAAA,EAAA,CAAA,EAAA,YAAA,EAAA,CAAA,EAAA,IAAA,EAAA,EAAA,CAAA,KAAA,EAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,IAAA,EAAA,KAAA,EAAA,cAAA,EAAA,QAAA,EAAA,KAAA,EAAA,CAAA,EAAA,CAAA,EAAA,aAAA,EAAA,CAAA,EAAA,IAAA,EAAA,EAAA,CAAA,MAAA,EAAA,IAAA,EAAA,CAAA,eAAA,CAAA,EAAA,CAAA,EAAA,WAAA,EAAA,CAAA,EAAA,IAAA,EAAA,EAAA,CAAA,MAAA,EAAA,IAAA,EAAA,CAAA,aAAA,CAAA,EAAA,CAAA,EAAA,EAAA,CAAA;;AEhEzF;;AAEG;;;;"}
@@ -18,10 +18,10 @@ class BsPlaceholderComponent {
18
18
  this.wasLoading = isLoading;
19
19
  });
20
20
  }
21
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: BsPlaceholderComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
22
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.0.0", type: BsPlaceholderComponent, isStandalone: true, selector: "bs-placeholder", inputs: { isLoading: { classPropertyName: "isLoading", publicName: "isLoading", isSignal: true, isRequired: false, transformFunction: null }, loadingCompleteText: { classPropertyName: "loadingCompleteText", publicName: "loadingCompleteText", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { isLoading: "isLoadingChange" }, host: { properties: { "attr.aria-busy": "isLoading() ? \"true\" : null" } }, ngImport: i0, template: "<!-- The skeleton is pure decoration: aria-hidden keeps SRs from reading\n shimmering placeholder bars as content. aria-busy on the host (plus the\n announcer's completion message) is the semantic channel \u2014 never a\n subtree-wide aria-live, which would announce every skeleton mutation. -->\n<div class=\"placeholder-glow\" aria-hidden=\"true\">\n <ng-content></ng-content>\n</div>", styles: [":host ::ng-deep .placeholder{display:inline-block;min-height:1em;vertical-align:middle;cursor:wait;background-color:currentcolor;opacity:.5}:host ::ng-deep .placeholder.btn:before{display:inline-block;content:\"\"}:host ::ng-deep .placeholder-xs{min-height:.6em}:host ::ng-deep .placeholder-sm{min-height:.8em}:host ::ng-deep .placeholder-lg{min-height:1.2em}:host ::ng-deep .placeholder-glow .placeholder{animation:placeholder-glow 2s ease-in-out infinite}@keyframes placeholder-glow{50%{opacity:.2}}:host ::ng-deep .placeholder-wave{-webkit-mask-image:linear-gradient(130deg,#000 55%,#000c,#000 95%);mask-image:linear-gradient(130deg,#000 55%,#000c,#000 95%);-webkit-mask-size:200% 100%;mask-size:200% 100%;animation:placeholder-wave 2s linear infinite}@keyframes placeholder-wave{to{-webkit-mask-position:-200% 0%;mask-position:-200% 0%}}:host ::ng-deep .placeholder{min-height:calc(1em - 1px)!important}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
21
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsPlaceholderComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
22
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.0.8", type: BsPlaceholderComponent, isStandalone: true, selector: "bs-placeholder", inputs: { isLoading: { classPropertyName: "isLoading", publicName: "isLoading", isSignal: true, isRequired: false, transformFunction: null }, loadingCompleteText: { classPropertyName: "loadingCompleteText", publicName: "loadingCompleteText", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { isLoading: "isLoadingChange" }, host: { properties: { "attr.aria-busy": "isLoading() ? \"true\" : null" } }, ngImport: i0, template: "<!-- The skeleton is pure decoration: aria-hidden keeps SRs from reading\n shimmering placeholder bars as content. aria-busy on the host (plus the\n announcer's completion message) is the semantic channel \u2014 never a\n subtree-wide aria-live, which would announce every skeleton mutation. -->\n<div class=\"placeholder-glow\" aria-hidden=\"true\">\n <ng-content></ng-content>\n</div>", styles: [":host ::ng-deep .placeholder{display:inline-block;min-height:1em;vertical-align:middle;cursor:wait;background-color:currentcolor;opacity:.5}:host ::ng-deep .placeholder.btn:before{display:inline-block;content:\"\"}:host ::ng-deep .placeholder-xs{min-height:.6em}:host ::ng-deep .placeholder-sm{min-height:.8em}:host ::ng-deep .placeholder-lg{min-height:1.2em}:host ::ng-deep .placeholder-glow .placeholder{animation:placeholder-glow 2s ease-in-out infinite}@keyframes placeholder-glow{50%{opacity:.2}}:host ::ng-deep .placeholder-wave{-webkit-mask-image:linear-gradient(130deg,#000 55%,#000c,#000 95%);mask-image:linear-gradient(130deg,#000 55%,#000c,#000 95%);-webkit-mask-size:200% 100%;mask-size:200% 100%;animation:placeholder-wave 2s linear infinite}@keyframes placeholder-wave{to{-webkit-mask-position:-200% 0%;mask-position:-200% 0%}}:host ::ng-deep .placeholder{min-height:calc(1em - 1px)!important}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
23
23
  }
24
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: BsPlaceholderComponent, decorators: [{
24
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsPlaceholderComponent, decorators: [{
25
25
  type: Component,
26
26
  args: [{ selector: 'bs-placeholder', changeDetection: ChangeDetectionStrategy.OnPush, host: {
27
27
  '[attr.aria-busy]': 'isLoading() ? "true" : null',
@@ -41,10 +41,10 @@ class BsPlaceholderFieldDirective {
41
41
  this.html = isLoading ? '&nbsp;' : undefined;
42
42
  });
43
43
  }
44
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: BsPlaceholderFieldDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
45
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.0.0", type: BsPlaceholderFieldDirective, isStandalone: true, selector: "[bsPlaceholderField]", host: { properties: { "attr.innerHtml": "html", "style.min-width.px": "80", "style.margin-bottom.px": "marginBottom", "class.placeholder": "placeholderClass" } }, ngImport: i0 }); }
44
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsPlaceholderFieldDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
45
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.0.8", type: BsPlaceholderFieldDirective, isStandalone: true, selector: "[bsPlaceholderField]", host: { properties: { "attr.innerHtml": "html", "style.min-width.px": "80", "style.margin-bottom.px": "marginBottom", "class.placeholder": "placeholderClass" } }, ngImport: i0 }); }
46
46
  }
47
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: BsPlaceholderFieldDirective, decorators: [{
47
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsPlaceholderFieldDirective, decorators: [{
48
48
  type: Directive,
49
49
  args: [{
50
50
  selector: '[bsPlaceholderField]',
@@ -17,10 +17,10 @@ class BsPlaylistTogglerComponent {
17
17
  this.state.update(v => !v);
18
18
  }
19
19
  }
20
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: BsPlaylistTogglerComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
21
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.0.0", type: BsPlaylistTogglerComponent, isStandalone: true, selector: "bs-playlist-toggler", inputs: { state: { classPropertyName: "state", publicName: "state", isSignal: true, isRequired: false, transformFunction: null }, toggleOnClick: { classPropertyName: "toggleOnClick", publicName: "toggleOnClick", isSignal: true, isRequired: false, transformFunction: null }, ariaLabel: { classPropertyName: "ariaLabel", publicName: "ariaLabel", isSignal: true, isRequired: false, transformFunction: null }, controls: { classPropertyName: "controls", publicName: "controls", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { state: "stateChange" }, ngImport: i0, template: "<button\n type=\"button\"\n class=\"playlist-toggler float-start\"\n [class.open]=\"state()\"\n [attr.aria-label]=\"ariaLabel()\"\n [attr.aria-expanded]=\"state()\"\n [attr.aria-controls]=\"controls()\"\n (click)=\"toggleState()\">\n <div></div>\n <div></div>\n <div></div>\n</button>\n", styles: [".playlist-toggler{width:3.5rem;padding:.75rem;border:none;background:transparent;cursor:pointer}.playlist-toggler>div{width:25px;height:2px;background:var(--bs-secondary-color);margin:6px 0;transition:.4s}.playlist-toggler.open>div:nth-of-type(1){-webkit-transform:rotate(-45deg) translate(-7px,5px);transform:rotate(-45deg) translate(-7px,5px)}.playlist-toggler.open>div:nth-of-type(2){-webkit-transform:rotate(90deg) translate(0px,14px);transform:rotate(90deg) translateY(14px);opacity:0}.playlist-toggler.open>div:nth-of-type(3){-webkit-transform:rotate(45deg) translate(-6px,-4px);transform:rotate(45deg) translate(-6px,-4px)}.playlist-toggler:not(.open)>div:nth-of-type(1){-webkit-transform:rotate(-30deg) translate(-10px,11px);transform:rotate(-30deg) translate(-10px,11px)}.playlist-toggler:not(.open)>div:nth-of-type(2){-webkit-transform:rotate(90deg) translate(0px,14px);transform:rotate(90deg) translateY(14px);opacity:1}.playlist-toggler:not(.open)>div:nth-of-type(3){-webkit-transform:rotate(30deg) translate(-10px,-11px);transform:rotate(30deg) translate(-10px,-11px)}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
20
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsPlaylistTogglerComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
21
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.0.8", type: BsPlaylistTogglerComponent, isStandalone: true, selector: "bs-playlist-toggler", inputs: { state: { classPropertyName: "state", publicName: "state", isSignal: true, isRequired: false, transformFunction: null }, toggleOnClick: { classPropertyName: "toggleOnClick", publicName: "toggleOnClick", isSignal: true, isRequired: false, transformFunction: null }, ariaLabel: { classPropertyName: "ariaLabel", publicName: "ariaLabel", isSignal: true, isRequired: false, transformFunction: null }, controls: { classPropertyName: "controls", publicName: "controls", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { state: "stateChange" }, ngImport: i0, template: "<button\n type=\"button\"\n class=\"playlist-toggler float-start\"\n [class.open]=\"state()\"\n [attr.aria-label]=\"ariaLabel()\"\n [attr.aria-expanded]=\"state()\"\n [attr.aria-controls]=\"controls()\"\n (click)=\"toggleState()\">\n <div></div>\n <div></div>\n <div></div>\n</button>\n", styles: [".playlist-toggler{width:3.5rem;padding:.75rem;border:none;background:transparent;cursor:pointer}.playlist-toggler>div{width:25px;height:2px;background:var(--bs-secondary-color);margin:6px 0;transition:.4s}.playlist-toggler.open>div:nth-of-type(1){-webkit-transform:rotate(-45deg) translate(-7px,5px);transform:rotate(-45deg) translate(-7px,5px)}.playlist-toggler.open>div:nth-of-type(2){-webkit-transform:rotate(90deg) translate(0px,14px);transform:rotate(90deg) translateY(14px);opacity:0}.playlist-toggler.open>div:nth-of-type(3){-webkit-transform:rotate(45deg) translate(-6px,-4px);transform:rotate(45deg) translate(-6px,-4px)}.playlist-toggler:not(.open)>div:nth-of-type(1){-webkit-transform:rotate(-30deg) translate(-10px,11px);transform:rotate(-30deg) translate(-10px,11px)}.playlist-toggler:not(.open)>div:nth-of-type(2){-webkit-transform:rotate(90deg) translate(0px,14px);transform:rotate(90deg) translateY(14px);opacity:1}.playlist-toggler:not(.open)>div:nth-of-type(3){-webkit-transform:rotate(30deg) translate(-10px,-11px);transform:rotate(30deg) translate(-10px,-11px)}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
22
22
  }
23
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: BsPlaylistTogglerComponent, decorators: [{
23
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsPlaylistTogglerComponent, decorators: [{
24
24
  type: Component,
25
25
  args: [{ selector: 'bs-playlist-toggler', changeDetection: ChangeDetectionStrategy.OnPush, template: "<button\n type=\"button\"\n class=\"playlist-toggler float-start\"\n [class.open]=\"state()\"\n [attr.aria-label]=\"ariaLabel()\"\n [attr.aria-expanded]=\"state()\"\n [attr.aria-controls]=\"controls()\"\n (click)=\"toggleState()\">\n <div></div>\n <div></div>\n <div></div>\n</button>\n", styles: [".playlist-toggler{width:3.5rem;padding:.75rem;border:none;background:transparent;cursor:pointer}.playlist-toggler>div{width:25px;height:2px;background:var(--bs-secondary-color);margin:6px 0;transition:.4s}.playlist-toggler.open>div:nth-of-type(1){-webkit-transform:rotate(-45deg) translate(-7px,5px);transform:rotate(-45deg) translate(-7px,5px)}.playlist-toggler.open>div:nth-of-type(2){-webkit-transform:rotate(90deg) translate(0px,14px);transform:rotate(90deg) translateY(14px);opacity:0}.playlist-toggler.open>div:nth-of-type(3){-webkit-transform:rotate(45deg) translate(-6px,-4px);transform:rotate(45deg) translate(-6px,-4px)}.playlist-toggler:not(.open)>div:nth-of-type(1){-webkit-transform:rotate(-30deg) translate(-10px,11px);transform:rotate(-30deg) translate(-10px,11px)}.playlist-toggler:not(.open)>div:nth-of-type(2){-webkit-transform:rotate(90deg) translate(0px,14px);transform:rotate(90deg) translateY(14px);opacity:1}.playlist-toggler:not(.open)>div:nth-of-type(3){-webkit-transform:rotate(30deg) translate(-10px,-11px);transform:rotate(30deg) translate(-10px,-11px)}\n"] }]
26
26
  }], propDecorators: { state: [{ type: i0.Input, args: [{ isSignal: true, alias: "state", required: false }] }, { type: i0.Output, args: ["stateChange"] }], toggleOnClick: [{ type: i0.Input, args: [{ isSignal: true, alias: "toggleOnClick", required: false }] }], ariaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaLabel", required: false }] }], controls: [{ type: i0.Input, args: [{ isSignal: true, alias: "controls", required: false }] }] } });
@@ -24,10 +24,10 @@ class BsPopoverContextService {
24
24
  this.bodyId = signal(null, /* @ts-ignore */
25
25
  ...(ngDevMode ? [{ debugName: "bodyId" }] : /* istanbul ignore next */ []));
26
26
  }
27
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: BsPopoverContextService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
28
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: BsPopoverContextService }); }
27
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsPopoverContextService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
28
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsPopoverContextService }); }
29
29
  }
30
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: BsPopoverContextService, decorators: [{
30
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsPopoverContextService, decorators: [{
31
31
  type: Injectable
32
32
  }] });
33
33
 
@@ -53,10 +53,10 @@ class BsPopoverComponent {
53
53
  this.positionClass = computed(() => `bs-popover-${this.position()}`, /* @ts-ignore */
54
54
  ...(ngDevMode ? [{ debugName: "positionClass" }] : /* istanbul ignore next */ []));
55
55
  }
56
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: BsPopoverComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
57
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.0", type: BsPopoverComponent, isStandalone: true, selector: "bs-popover", inputs: { position: { classPropertyName: "position", publicName: "position", isSignal: true, isRequired: false, transformFunction: null }, isVisible: { classPropertyName: "isVisible", publicName: "isVisible", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class.position-relative": "true" } }, providers: [BsPopoverContextService], ngImport: i0, template: "@if (isVisible()) {\n <div class=\"popover position-relative fade show\"\n role=\"dialog\"\n [bsOverlayFocus]=\"isVisible()\"\n tabindex=\"-1\"\n [id]=\"popoverId\"\n [attr.aria-labelledby]=\"context.headerId()\"\n [attr.aria-describedby]=\"context.bodyId()\"\n [class]=\"[marginClass(), positionClass()]\"\n [@fadeInOut]>\n <ng-container *ngTemplateOutlet=\"template; injector: injector\"></ng-container>\n <div class=\"popover-arrow position-absolute\" aria-hidden=\"true\"></div>\n <bs-has-overlay></bs-has-overlay>\n </div>\n}\n", styles: [":host ::ng-deep .fade{transition:opacity .15s linear}@media(prefers-reduced-motion:reduce){:host ::ng-deep .fade{transition:none}}:host ::ng-deep .fade:not(.show){opacity:0}:host ::ng-deep .collapse:not(.show){display:none}:host ::ng-deep .collapsing{height:0;overflow:hidden;transition:height .35s ease}@media(prefers-reduced-motion:reduce){:host ::ng-deep .collapsing{transition:none}}:host ::ng-deep .collapsing.collapse-horizontal{width:0;height:auto;transition:width .35s ease}@media(prefers-reduced-motion:reduce){:host ::ng-deep .collapsing.collapse-horizontal{transition:none}}:host ::ng-deep .popover{--bs-popover-zindex: 1070;--bs-popover-max-width: 276px;--bs-popover-font-size: .875rem;--bs-popover-bg: var(--bs-body-bg);--bs-popover-border-width: var(--bs-border-width);--bs-popover-border-color: var(--bs-border-color-translucent);--bs-popover-border-radius: var(--bs-border-radius-lg);--bs-popover-inner-border-radius: calc(var(--bs-border-radius-lg) - var(--bs-border-width));--bs-popover-box-shadow: var(--bs-box-shadow);--bs-popover-header-padding-x: 1rem;--bs-popover-header-padding-y: .5rem;--bs-popover-header-font-size: 1rem;--bs-popover-header-color: inherit;--bs-popover-header-bg: var(--bs-secondary-bg);--bs-popover-body-padding-x: 1rem;--bs-popover-body-padding-y: 1rem;--bs-popover-body-color: var(--bs-body-color);--bs-popover-arrow-width: 1rem;--bs-popover-arrow-height: .5rem;--bs-popover-arrow-border: var(--bs-popover-border-color);z-index:var(--bs-popover-zindex);display:block;max-width:var(--bs-popover-max-width);font-family:var(--bs-font-sans-serif);font-style:normal;font-weight:400;line-height:1.5;text-align:left;text-align:start;text-decoration:none;text-shadow:none;text-transform:none;letter-spacing:normal;word-break:normal;white-space:normal;word-spacing:normal;line-break:auto;font-size:var(--bs-popover-font-size);word-wrap:break-word;background-color:var(--bs-popover-bg);background-clip:padding-box;border:var(--bs-popover-border-width) solid var(--bs-popover-border-color);border-radius:var(--bs-popover-border-radius)}:host ::ng-deep .popover .popover-arrow{display:block;width:var(--bs-popover-arrow-width);height:var(--bs-popover-arrow-height)}:host ::ng-deep .popover .popover-arrow:before,:host ::ng-deep .popover .popover-arrow:after{position:absolute;display:block;content:\"\";border-color:transparent;border-style:solid;border-width:0}:host ::ng-deep .bs-popover-top>.popover-arrow,:host ::ng-deep .bs-popover-auto[data-popper-placement^=top]>.popover-arrow{bottom:calc(-1 * (var(--bs-popover-arrow-height)) - var(--bs-popover-border-width))}:host ::ng-deep .bs-popover-top>.popover-arrow:before,:host ::ng-deep .bs-popover-auto[data-popper-placement^=top]>.popover-arrow:before,:host ::ng-deep .bs-popover-top>.popover-arrow:after,:host ::ng-deep .bs-popover-auto[data-popper-placement^=top]>.popover-arrow:after{border-width:var(--bs-popover-arrow-height) calc(var(--bs-popover-arrow-width) * .5) 0}:host ::ng-deep .bs-popover-top>.popover-arrow:before,:host ::ng-deep .bs-popover-auto[data-popper-placement^=top]>.popover-arrow:before{bottom:0;border-top-color:var(--bs-popover-arrow-border)}:host ::ng-deep .bs-popover-top>.popover-arrow:after,:host ::ng-deep .bs-popover-auto[data-popper-placement^=top]>.popover-arrow:after{bottom:var(--bs-popover-border-width);border-top-color:var(--bs-popover-bg)}:host ::ng-deep .bs-popover-end>.popover-arrow,:host ::ng-deep .bs-popover-auto[data-popper-placement^=right]>.popover-arrow{left:calc(-1 * (var(--bs-popover-arrow-height)) - var(--bs-popover-border-width));width:var(--bs-popover-arrow-height);height:var(--bs-popover-arrow-width)}:host ::ng-deep .bs-popover-end>.popover-arrow:before,:host ::ng-deep .bs-popover-auto[data-popper-placement^=right]>.popover-arrow:before,:host ::ng-deep .bs-popover-end>.popover-arrow:after,:host ::ng-deep .bs-popover-auto[data-popper-placement^=right]>.popover-arrow:after{border-width:calc(var(--bs-popover-arrow-width) * .5) var(--bs-popover-arrow-height) calc(var(--bs-popover-arrow-width) * .5) 0}:host ::ng-deep .bs-popover-end>.popover-arrow:before,:host ::ng-deep .bs-popover-auto[data-popper-placement^=right]>.popover-arrow:before{left:0;border-right-color:var(--bs-popover-arrow-border)}:host ::ng-deep .bs-popover-end>.popover-arrow:after,:host ::ng-deep .bs-popover-auto[data-popper-placement^=right]>.popover-arrow:after{left:var(--bs-popover-border-width);border-right-color:var(--bs-popover-bg)}:host ::ng-deep .bs-popover-bottom>.popover-arrow,:host ::ng-deep .bs-popover-auto[data-popper-placement^=bottom]>.popover-arrow{top:calc(-1 * (var(--bs-popover-arrow-height)) - var(--bs-popover-border-width))}:host ::ng-deep .bs-popover-bottom>.popover-arrow:before,:host ::ng-deep .bs-popover-auto[data-popper-placement^=bottom]>.popover-arrow:before,:host ::ng-deep .bs-popover-bottom>.popover-arrow:after,:host ::ng-deep .bs-popover-auto[data-popper-placement^=bottom]>.popover-arrow:after{border-width:0 calc(var(--bs-popover-arrow-width) * .5) var(--bs-popover-arrow-height)}:host ::ng-deep .bs-popover-bottom>.popover-arrow:before,:host ::ng-deep .bs-popover-auto[data-popper-placement^=bottom]>.popover-arrow:before{top:0;border-bottom-color:var(--bs-popover-arrow-border)}:host ::ng-deep .bs-popover-bottom>.popover-arrow:after,:host ::ng-deep .bs-popover-auto[data-popper-placement^=bottom]>.popover-arrow:after{top:var(--bs-popover-border-width);border-bottom-color:var(--bs-popover-bg)}:host ::ng-deep .bs-popover-bottom .popover-header:before,:host ::ng-deep .bs-popover-auto[data-popper-placement^=bottom] .popover-header:before{position:absolute;top:0;left:50%;display:block;width:var(--bs-popover-arrow-width);margin-left:calc(-.5 * var(--bs-popover-arrow-width));content:\"\";border-bottom:var(--bs-popover-border-width) solid var(--bs-popover-header-bg)}:host ::ng-deep .bs-popover-start>.popover-arrow,:host ::ng-deep .bs-popover-auto[data-popper-placement^=left]>.popover-arrow{right:calc(-1 * (var(--bs-popover-arrow-height)) - var(--bs-popover-border-width));width:var(--bs-popover-arrow-height);height:var(--bs-popover-arrow-width)}:host ::ng-deep .bs-popover-start>.popover-arrow:before,:host ::ng-deep .bs-popover-auto[data-popper-placement^=left]>.popover-arrow:before,:host ::ng-deep .bs-popover-start>.popover-arrow:after,:host ::ng-deep .bs-popover-auto[data-popper-placement^=left]>.popover-arrow:after{border-width:calc(var(--bs-popover-arrow-width) * .5) 0 calc(var(--bs-popover-arrow-width) * .5) var(--bs-popover-arrow-height)}:host ::ng-deep .bs-popover-start>.popover-arrow:before,:host ::ng-deep .bs-popover-auto[data-popper-placement^=left]>.popover-arrow:before{right:0;border-left-color:var(--bs-popover-arrow-border)}:host ::ng-deep .bs-popover-start>.popover-arrow:after,:host ::ng-deep .bs-popover-auto[data-popper-placement^=left]>.popover-arrow:after{right:var(--bs-popover-border-width);border-left-color:var(--bs-popover-bg)}:host ::ng-deep .popover-header{padding:var(--bs-popover-header-padding-y) var(--bs-popover-header-padding-x);margin-bottom:0;font-size:var(--bs-popover-header-font-size);color:var(--bs-popover-header-color);background-color:var(--bs-popover-header-bg);border-bottom:var(--bs-popover-border-width) solid var(--bs-popover-border-color);border-top-left-radius:var(--bs-popover-inner-border-radius);border-top-right-radius:var(--bs-popover-inner-border-radius)}:host ::ng-deep .popover-header:empty{display:none}:host ::ng-deep .popover-body{padding:var(--bs-popover-body-padding-y) var(--bs-popover-body-padding-x);color:var(--bs-popover-body-color)}.popover.bs-popover-top>.popover-arrow,:host ::ng-deep .popover.bs-popover-auto[data-popper-placement^=top]>.popover-arrow,.popover.bs-popover-bottom>.popover-arrow,:host ::ng-deep .popover.bs-popover-auto[data-popper-placement^=bottom]>.popover-arrow{left:50%;transform:translate(-50%)}.popover.bs-popover-start>.popover-arrow,:host ::ng-deep .popover.bs-popover-auto[data-popper-placement^=left]>.popover-arrow,.popover.bs-popover-end>.popover-arrow,:host ::ng-deep .popover.bs-popover-auto[data-popper-placement^=right]>.popover-arrow{top:50%;transform:translateY(-50%)}.popover:not(.show){pointer-events:none}\n"], dependencies: [{ kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: BsHasOverlayComponent, selector: "bs-has-overlay" }, { kind: "directive", type: BsOverlayFocusDirective, selector: "[bsOverlayFocus]", inputs: ["bsOverlayFocus", "initialFocus", "returnFocus"], exportAs: ["bsOverlayFocus"] }], animations: [FadeInOutAnimation], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
56
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsPopoverComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
57
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.8", type: BsPopoverComponent, isStandalone: true, selector: "bs-popover", inputs: { position: { classPropertyName: "position", publicName: "position", isSignal: true, isRequired: false, transformFunction: null }, isVisible: { classPropertyName: "isVisible", publicName: "isVisible", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class.position-relative": "true" } }, providers: [BsPopoverContextService], ngImport: i0, template: "@if (isVisible()) {\n <div class=\"popover position-relative fade show\"\n role=\"dialog\"\n [bsOverlayFocus]=\"isVisible()\"\n tabindex=\"-1\"\n [id]=\"popoverId\"\n [attr.aria-labelledby]=\"context.headerId()\"\n [attr.aria-describedby]=\"context.bodyId()\"\n [class]=\"[marginClass(), positionClass()]\"\n [@fadeInOut]>\n <ng-container *ngTemplateOutlet=\"template; injector: injector\"></ng-container>\n <div class=\"popover-arrow position-absolute\" aria-hidden=\"true\"></div>\n <bs-has-overlay></bs-has-overlay>\n </div>\n}\n", styles: [":host ::ng-deep .fade{transition:opacity .15s linear}@media(prefers-reduced-motion:reduce){:host ::ng-deep .fade{transition:none}}:host ::ng-deep .fade:not(.show){opacity:0}:host ::ng-deep .collapse:not(.show){display:none}:host ::ng-deep .collapsing{height:0;overflow:hidden;transition:height .35s ease}@media(prefers-reduced-motion:reduce){:host ::ng-deep .collapsing{transition:none}}:host ::ng-deep .collapsing.collapse-horizontal{width:0;height:auto;transition:width .35s ease}@media(prefers-reduced-motion:reduce){:host ::ng-deep .collapsing.collapse-horizontal{transition:none}}:host ::ng-deep .popover{--bs-popover-zindex: 1070;--bs-popover-max-width: 276px;--bs-popover-font-size: .875rem;--bs-popover-bg: var(--bs-body-bg);--bs-popover-border-width: var(--bs-border-width);--bs-popover-border-color: var(--bs-border-color-translucent);--bs-popover-border-radius: var(--bs-border-radius-lg);--bs-popover-inner-border-radius: calc(var(--bs-border-radius-lg) - var(--bs-border-width));--bs-popover-box-shadow: var(--bs-box-shadow);--bs-popover-header-padding-x: 1rem;--bs-popover-header-padding-y: .5rem;--bs-popover-header-font-size: 1rem;--bs-popover-header-color: inherit;--bs-popover-header-bg: var(--bs-secondary-bg);--bs-popover-body-padding-x: 1rem;--bs-popover-body-padding-y: 1rem;--bs-popover-body-color: var(--bs-body-color);--bs-popover-arrow-width: 1rem;--bs-popover-arrow-height: .5rem;--bs-popover-arrow-border: var(--bs-popover-border-color);z-index:var(--bs-popover-zindex);display:block;max-width:var(--bs-popover-max-width);font-family:var(--bs-font-sans-serif);font-style:normal;font-weight:400;line-height:1.5;text-align:left;text-align:start;text-decoration:none;text-shadow:none;text-transform:none;letter-spacing:normal;word-break:normal;white-space:normal;word-spacing:normal;line-break:auto;font-size:var(--bs-popover-font-size);word-wrap:break-word;background-color:var(--bs-popover-bg);background-clip:padding-box;border:var(--bs-popover-border-width) solid var(--bs-popover-border-color);border-radius:var(--bs-popover-border-radius)}:host ::ng-deep .popover .popover-arrow{display:block;width:var(--bs-popover-arrow-width);height:var(--bs-popover-arrow-height)}:host ::ng-deep .popover .popover-arrow:before,:host ::ng-deep .popover .popover-arrow:after{position:absolute;display:block;content:\"\";border-color:transparent;border-style:solid;border-width:0}:host ::ng-deep .bs-popover-top>.popover-arrow,:host ::ng-deep .bs-popover-auto[data-popper-placement^=top]>.popover-arrow{bottom:calc(-1 * (var(--bs-popover-arrow-height)) - var(--bs-popover-border-width))}:host ::ng-deep .bs-popover-top>.popover-arrow:before,:host ::ng-deep .bs-popover-auto[data-popper-placement^=top]>.popover-arrow:before,:host ::ng-deep .bs-popover-top>.popover-arrow:after,:host ::ng-deep .bs-popover-auto[data-popper-placement^=top]>.popover-arrow:after{border-width:var(--bs-popover-arrow-height) calc(var(--bs-popover-arrow-width) * .5) 0}:host ::ng-deep .bs-popover-top>.popover-arrow:before,:host ::ng-deep .bs-popover-auto[data-popper-placement^=top]>.popover-arrow:before{bottom:0;border-top-color:var(--bs-popover-arrow-border)}:host ::ng-deep .bs-popover-top>.popover-arrow:after,:host ::ng-deep .bs-popover-auto[data-popper-placement^=top]>.popover-arrow:after{bottom:var(--bs-popover-border-width);border-top-color:var(--bs-popover-bg)}:host ::ng-deep .bs-popover-end>.popover-arrow,:host ::ng-deep .bs-popover-auto[data-popper-placement^=right]>.popover-arrow{left:calc(-1 * (var(--bs-popover-arrow-height)) - var(--bs-popover-border-width));width:var(--bs-popover-arrow-height);height:var(--bs-popover-arrow-width)}:host ::ng-deep .bs-popover-end>.popover-arrow:before,:host ::ng-deep .bs-popover-auto[data-popper-placement^=right]>.popover-arrow:before,:host ::ng-deep .bs-popover-end>.popover-arrow:after,:host ::ng-deep .bs-popover-auto[data-popper-placement^=right]>.popover-arrow:after{border-width:calc(var(--bs-popover-arrow-width) * .5) var(--bs-popover-arrow-height) calc(var(--bs-popover-arrow-width) * .5) 0}:host ::ng-deep .bs-popover-end>.popover-arrow:before,:host ::ng-deep .bs-popover-auto[data-popper-placement^=right]>.popover-arrow:before{left:0;border-right-color:var(--bs-popover-arrow-border)}:host ::ng-deep .bs-popover-end>.popover-arrow:after,:host ::ng-deep .bs-popover-auto[data-popper-placement^=right]>.popover-arrow:after{left:var(--bs-popover-border-width);border-right-color:var(--bs-popover-bg)}:host ::ng-deep .bs-popover-bottom>.popover-arrow,:host ::ng-deep .bs-popover-auto[data-popper-placement^=bottom]>.popover-arrow{top:calc(-1 * (var(--bs-popover-arrow-height)) - var(--bs-popover-border-width))}:host ::ng-deep .bs-popover-bottom>.popover-arrow:before,:host ::ng-deep .bs-popover-auto[data-popper-placement^=bottom]>.popover-arrow:before,:host ::ng-deep .bs-popover-bottom>.popover-arrow:after,:host ::ng-deep .bs-popover-auto[data-popper-placement^=bottom]>.popover-arrow:after{border-width:0 calc(var(--bs-popover-arrow-width) * .5) var(--bs-popover-arrow-height)}:host ::ng-deep .bs-popover-bottom>.popover-arrow:before,:host ::ng-deep .bs-popover-auto[data-popper-placement^=bottom]>.popover-arrow:before{top:0;border-bottom-color:var(--bs-popover-arrow-border)}:host ::ng-deep .bs-popover-bottom>.popover-arrow:after,:host ::ng-deep .bs-popover-auto[data-popper-placement^=bottom]>.popover-arrow:after{top:var(--bs-popover-border-width);border-bottom-color:var(--bs-popover-bg)}:host ::ng-deep .bs-popover-bottom .popover-header:before,:host ::ng-deep .bs-popover-auto[data-popper-placement^=bottom] .popover-header:before{position:absolute;top:0;left:50%;display:block;width:var(--bs-popover-arrow-width);margin-left:calc(-.5 * var(--bs-popover-arrow-width));content:\"\";border-bottom:var(--bs-popover-border-width) solid var(--bs-popover-header-bg)}:host ::ng-deep .bs-popover-start>.popover-arrow,:host ::ng-deep .bs-popover-auto[data-popper-placement^=left]>.popover-arrow{right:calc(-1 * (var(--bs-popover-arrow-height)) - var(--bs-popover-border-width));width:var(--bs-popover-arrow-height);height:var(--bs-popover-arrow-width)}:host ::ng-deep .bs-popover-start>.popover-arrow:before,:host ::ng-deep .bs-popover-auto[data-popper-placement^=left]>.popover-arrow:before,:host ::ng-deep .bs-popover-start>.popover-arrow:after,:host ::ng-deep .bs-popover-auto[data-popper-placement^=left]>.popover-arrow:after{border-width:calc(var(--bs-popover-arrow-width) * .5) 0 calc(var(--bs-popover-arrow-width) * .5) var(--bs-popover-arrow-height)}:host ::ng-deep .bs-popover-start>.popover-arrow:before,:host ::ng-deep .bs-popover-auto[data-popper-placement^=left]>.popover-arrow:before{right:0;border-left-color:var(--bs-popover-arrow-border)}:host ::ng-deep .bs-popover-start>.popover-arrow:after,:host ::ng-deep .bs-popover-auto[data-popper-placement^=left]>.popover-arrow:after{right:var(--bs-popover-border-width);border-left-color:var(--bs-popover-bg)}:host ::ng-deep .popover-header{padding:var(--bs-popover-header-padding-y) var(--bs-popover-header-padding-x);margin-bottom:0;font-size:var(--bs-popover-header-font-size);color:var(--bs-popover-header-color);background-color:var(--bs-popover-header-bg);border-bottom:var(--bs-popover-border-width) solid var(--bs-popover-border-color);border-top-left-radius:var(--bs-popover-inner-border-radius);border-top-right-radius:var(--bs-popover-inner-border-radius)}:host ::ng-deep .popover-header:empty{display:none}:host ::ng-deep .popover-body{padding:var(--bs-popover-body-padding-y) var(--bs-popover-body-padding-x);color:var(--bs-popover-body-color)}.popover.bs-popover-top>.popover-arrow,:host ::ng-deep .popover.bs-popover-auto[data-popper-placement^=top]>.popover-arrow,.popover.bs-popover-bottom>.popover-arrow,:host ::ng-deep .popover.bs-popover-auto[data-popper-placement^=bottom]>.popover-arrow{left:50%;transform:translate(-50%)}.popover.bs-popover-start>.popover-arrow,:host ::ng-deep .popover.bs-popover-auto[data-popper-placement^=left]>.popover-arrow,.popover.bs-popover-end>.popover-arrow,:host ::ng-deep .popover.bs-popover-auto[data-popper-placement^=right]>.popover-arrow{top:50%;transform:translateY(-50%)}.popover:not(.show){pointer-events:none}\n"], dependencies: [{ kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: BsHasOverlayComponent, selector: "bs-has-overlay" }, { kind: "directive", type: BsOverlayFocusDirective, selector: "[bsOverlayFocus]", inputs: ["bsOverlayFocus", "initialFocus", "returnFocus"], exportAs: ["bsOverlayFocus"] }], animations: [FadeInOutAnimation], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
58
58
  }
59
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: BsPopoverComponent, decorators: [{
59
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsPopoverComponent, decorators: [{
60
60
  type: Component,
61
61
  args: [{ selector: 'bs-popover', imports: [NgTemplateOutlet, BsHasOverlayComponent, BsOverlayFocusDirective], animations: [FadeInOutAnimation], changeDetection: ChangeDetectionStrategy.OnPush, providers: [BsPopoverContextService], host: {
62
62
  '[class.position-relative]': 'true',
@@ -215,15 +215,15 @@ class BsPopoverDirective {
215
215
  this.overlayRef = null;
216
216
  }
217
217
  }
218
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: BsPopoverDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
219
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "22.0.0", type: BsPopoverDirective, isStandalone: true, selector: "*[bsPopover]", inputs: { bsPopover: { classPropertyName: "bsPopover", publicName: "bsPopover", isSignal: true, isRequired: false, transformFunction: null }, updatePosition: { classPropertyName: "updatePosition", publicName: "updatePosition", isSignal: true, isRequired: false, transformFunction: null } }, host: { listeners: { "document:keydown.escape": "onEscape()" } }, providers: [{
218
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsPopoverDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
219
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "22.0.8", type: BsPopoverDirective, isStandalone: true, selector: "*[bsPopover]", inputs: { bsPopover: { classPropertyName: "bsPopover", publicName: "bsPopover", isSignal: true, isRequired: false, transformFunction: null }, updatePosition: { classPropertyName: "updatePosition", publicName: "updatePosition", isSignal: true, isRequired: false, transformFunction: null } }, host: { listeners: { "document:keydown.escape": "onEscape()" } }, providers: [{
220
220
  provide: PORTAL_FACTORY,
221
221
  useValue: (injector) => {
222
222
  return new ComponentPortal(BsPopoverComponent, null, injector);
223
223
  }
224
224
  }], ngImport: i0 }); }
225
225
  }
226
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: BsPopoverDirective, decorators: [{
226
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsPopoverDirective, decorators: [{
227
227
  type: Directive,
228
228
  args: [{
229
229
  selector: '*[bsPopover]',
@@ -240,10 +240,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.0", ngImpor
240
240
  }], ctorParameters: () => [], propDecorators: { bsPopover: [{ type: i0.Input, args: [{ isSignal: true, alias: "bsPopover", required: false }] }], updatePosition: [{ type: i0.Input, args: [{ isSignal: true, alias: "updatePosition", required: false }] }] } });
241
241
 
242
242
  class BsPopoverBodyDirective {
243
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: BsPopoverBodyDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
244
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.0.0", type: BsPopoverBodyDirective, isStandalone: true, selector: "[bsPopoverBody]", host: { properties: { "class.popover-body": "true" } }, ngImport: i0 }); }
243
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsPopoverBodyDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
244
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.0.8", type: BsPopoverBodyDirective, isStandalone: true, selector: "[bsPopoverBody]", host: { properties: { "class.popover-body": "true" } }, ngImport: i0 }); }
245
245
  }
246
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: BsPopoverBodyDirective, decorators: [{
246
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsPopoverBodyDirective, decorators: [{
247
247
  type: Directive,
248
248
  args: [{
249
249
  selector: '[bsPopoverBody]',
@@ -254,10 +254,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.0", ngImpor
254
254
  }] });
255
255
 
256
256
  class BsPopoverHeaderDirective {
257
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: BsPopoverHeaderDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
258
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.0.0", type: BsPopoverHeaderDirective, isStandalone: true, selector: "[bsPopoverHeader]", host: { properties: { "class.popover-header": "true" } }, ngImport: i0 }); }
257
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsPopoverHeaderDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
258
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.0.8", type: BsPopoverHeaderDirective, isStandalone: true, selector: "[bsPopoverHeader]", host: { properties: { "class.popover-header": "true" } }, ngImport: i0 }); }
259
259
  }
260
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: BsPopoverHeaderDirective, decorators: [{
260
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsPopoverHeaderDirective, decorators: [{
261
261
  type: Directive,
262
262
  args: [{
263
263
  selector: '[bsPopoverHeader]',