@mintplayer/ng-bootstrap 22.13.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 (126) 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 +3 -3
  52. package/fesm2022/mintplayer-ng-bootstrap-instance-of.mjs +12 -12
  53. package/fesm2022/mintplayer-ng-bootstrap-let.mjs +3 -3
  54. package/fesm2022/mintplayer-ng-bootstrap-linify.mjs +3 -3
  55. package/fesm2022/mintplayer-ng-bootstrap-list-group.mjs +6 -6
  56. package/fesm2022/mintplayer-ng-bootstrap-markdown.mjs +12 -12
  57. package/fesm2022/mintplayer-ng-bootstrap-marquee.mjs +3 -3
  58. package/fesm2022/mintplayer-ng-bootstrap-modal.mjs +24 -24
  59. package/fesm2022/mintplayer-ng-bootstrap-multi-range.mjs +8 -7
  60. package/fesm2022/mintplayer-ng-bootstrap-multi-range.mjs.map +1 -1
  61. package/fesm2022/mintplayer-ng-bootstrap-navbar-toggler.mjs +3 -3
  62. package/fesm2022/mintplayer-ng-bootstrap-navbar.mjs +26 -25
  63. package/fesm2022/mintplayer-ng-bootstrap-navbar.mjs.map +1 -1
  64. package/fesm2022/mintplayer-ng-bootstrap-navigation-lock.mjs +6 -6
  65. package/fesm2022/mintplayer-ng-bootstrap-no-noscript.mjs +3 -3
  66. package/fesm2022/mintplayer-ng-bootstrap-observe-size.mjs +3 -3
  67. package/fesm2022/mintplayer-ng-bootstrap-offcanvas.mjs +24 -24
  68. package/fesm2022/mintplayer-ng-bootstrap-ordinal-number.mjs +3 -3
  69. package/fesm2022/mintplayer-ng-bootstrap-otp-input.mjs +8 -7
  70. package/fesm2022/mintplayer-ng-bootstrap-otp-input.mjs.map +1 -1
  71. package/fesm2022/mintplayer-ng-bootstrap-pagination.mjs +3 -3
  72. package/fesm2022/mintplayer-ng-bootstrap-parallax.mjs +3 -3
  73. package/fesm2022/mintplayer-ng-bootstrap-phone-input.mjs +5 -4
  74. package/fesm2022/mintplayer-ng-bootstrap-phone-input.mjs.map +1 -1
  75. package/fesm2022/mintplayer-ng-bootstrap-placeholder.mjs +6 -6
  76. package/fesm2022/mintplayer-ng-bootstrap-playlist-toggler.mjs +3 -3
  77. package/fesm2022/mintplayer-ng-bootstrap-popover.mjs +15 -15
  78. package/fesm2022/mintplayer-ng-bootstrap-priority-nav.mjs +6 -6
  79. package/fesm2022/mintplayer-ng-bootstrap-progress-bar.mjs +6 -6
  80. package/fesm2022/mintplayer-ng-bootstrap-query-builder.mjs +6 -6
  81. package/fesm2022/mintplayer-ng-bootstrap-radio.mjs +8 -7
  82. package/fesm2022/mintplayer-ng-bootstrap-radio.mjs.map +1 -1
  83. package/fesm2022/mintplayer-ng-bootstrap-range.mjs +8 -7
  84. package/fesm2022/mintplayer-ng-bootstrap-range.mjs.map +1 -1
  85. package/fesm2022/mintplayer-ng-bootstrap-rating.mjs +3 -3
  86. package/fesm2022/mintplayer-ng-bootstrap-resizable.mjs +6 -6
  87. package/fesm2022/mintplayer-ng-bootstrap-ribbon.mjs +56 -55
  88. package/fesm2022/mintplayer-ng-bootstrap-ribbon.mjs.map +1 -1
  89. package/fesm2022/mintplayer-ng-bootstrap-scheduler.mjs +5 -4
  90. package/fesm2022/mintplayer-ng-bootstrap-scheduler.mjs.map +1 -1
  91. package/fesm2022/mintplayer-ng-bootstrap-scrollspy.mjs +9 -9
  92. package/fesm2022/mintplayer-ng-bootstrap-select.mjs +11 -10
  93. package/fesm2022/mintplayer-ng-bootstrap-select.mjs.map +1 -1
  94. package/fesm2022/mintplayer-ng-bootstrap-shell.mjs +8 -7
  95. package/fesm2022/mintplayer-ng-bootstrap-shell.mjs.map +1 -1
  96. package/fesm2022/mintplayer-ng-bootstrap-signature-pad.mjs +5 -4
  97. package/fesm2022/mintplayer-ng-bootstrap-signature-pad.mjs.map +1 -1
  98. package/fesm2022/mintplayer-ng-bootstrap-slugify.mjs +3 -3
  99. package/fesm2022/mintplayer-ng-bootstrap-spinner.mjs +3 -3
  100. package/fesm2022/mintplayer-ng-bootstrap-split-string.mjs +3 -3
  101. package/fesm2022/mintplayer-ng-bootstrap-splitter.mjs +3 -3
  102. package/fesm2022/mintplayer-ng-bootstrap-sticky-footer.mjs +8 -7
  103. package/fesm2022/mintplayer-ng-bootstrap-sticky-footer.mjs.map +1 -1
  104. package/fesm2022/mintplayer-ng-bootstrap-tab-control.mjs +9 -9
  105. package/fesm2022/mintplayer-ng-bootstrap-table.mjs +7 -7
  106. package/fesm2022/mintplayer-ng-bootstrap-table.mjs.map +1 -1
  107. package/fesm2022/mintplayer-ng-bootstrap-theming.mjs +3 -3
  108. package/fesm2022/mintplayer-ng-bootstrap-tile-manager.mjs +13 -11
  109. package/fesm2022/mintplayer-ng-bootstrap-tile-manager.mjs.map +1 -1
  110. package/fesm2022/mintplayer-ng-bootstrap-timeline.mjs +21 -21
  111. package/fesm2022/mintplayer-ng-bootstrap-timepicker.mjs +3 -3
  112. package/fesm2022/mintplayer-ng-bootstrap-toast.mjs +21 -21
  113. package/fesm2022/mintplayer-ng-bootstrap-tooltip.mjs +6 -6
  114. package/fesm2022/mintplayer-ng-bootstrap-tree-select.mjs +24 -24
  115. package/fesm2022/mintplayer-ng-bootstrap-treeview.mjs +6 -6
  116. package/fesm2022/mintplayer-ng-bootstrap-trust-html.mjs +3 -3
  117. package/fesm2022/mintplayer-ng-bootstrap-typeahead.mjs +5 -4
  118. package/fesm2022/mintplayer-ng-bootstrap-typeahead.mjs.map +1 -1
  119. package/fesm2022/mintplayer-ng-bootstrap-uc-first.mjs +3 -3
  120. package/fesm2022/mintplayer-ng-bootstrap-user-agent.mjs +3 -3
  121. package/fesm2022/mintplayer-ng-bootstrap-viewport.mjs +3 -3
  122. package/fesm2022/mintplayer-ng-bootstrap-word-count.mjs +3 -3
  123. package/package.json +13 -1
  124. package/types/mintplayer-ng-bootstrap-charts-hierarchy.d.ts +44 -0
  125. package/types/mintplayer-ng-bootstrap-charts-sparkline.d.ts +20 -0
  126. package/types/mintplayer-ng-bootstrap-charts-trend.d.ts +28 -0
@@ -103,14 +103,14 @@ class BsSelectValueAccessor {
103
103
  // placeholder selection reaches the model as "nothing chosen".
104
104
  return id !== null && this.optionMap.has(id) ? this.optionMap.get(id) : valueString;
105
105
  }
106
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: BsSelectValueAccessor, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
107
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "22.0.0", type: BsSelectValueAccessor, isStandalone: true, selector: "bs-select", inputs: { compareWith: { classPropertyName: "compareWith", publicName: "compareWith", isSignal: true, isRequired: false, transformFunction: null } }, host: { listeners: { "change": "hostOnChange($event)", "blur": "hostBlur($event)" } }, providers: [{
106
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsSelectValueAccessor, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
107
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "22.0.8", type: BsSelectValueAccessor, isStandalone: true, selector: "bs-select", inputs: { compareWith: { classPropertyName: "compareWith", publicName: "compareWith", isSignal: true, isRequired: false, transformFunction: null } }, host: { listeners: { "change": "hostOnChange($event)", "blur": "hostBlur($event)" } }, providers: [{
108
108
  provide: NG_VALUE_ACCESSOR,
109
109
  useExisting: forwardRef(() => BsSelectValueAccessor),
110
110
  multi: true,
111
111
  }], ngImport: i0 }); }
112
112
  }
113
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: BsSelectValueAccessor, decorators: [{
113
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsSelectValueAccessor, decorators: [{
114
114
  type: Directive,
115
115
  args: [{
116
116
  selector: 'bs-select',
@@ -169,10 +169,10 @@ class BsSelectOption {
169
169
  this.select.writeValue(this.select.value);
170
170
  }
171
171
  }
172
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: BsSelectOption, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
173
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "22.0.0", type: BsSelectOption, isStandalone: true, selector: "option", inputs: { ngValue: { classPropertyName: "ngValue", publicName: "ngValue", isSignal: true, isRequired: false, transformFunction: null }, value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0 }); }
172
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsSelectOption, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
173
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "22.0.8", type: BsSelectOption, isStandalone: true, selector: "option", inputs: { ngValue: { classPropertyName: "ngValue", publicName: "ngValue", isSignal: true, isRequired: false, transformFunction: null }, value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0 }); }
174
174
  }
175
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: BsSelectOption, decorators: [{
175
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsSelectOption, decorators: [{
176
176
  type: Directive,
177
177
  args: [{
178
178
  selector: 'option',
@@ -187,7 +187,8 @@ class BsSelectComponent {
187
187
  /** Reference to the underlying `<mp-select>` WC. Read by
188
188
  * `BsSelectValueAccessor` to drive `value` / `disabled` via property
189
189
  * setters and listen for the bubbled, composed `change` event. */
190
- this.selectBox = viewChild.required('selectBox');
190
+ this.selectBox = viewChild.required('selectBox', /* @ts-ignore */
191
+ ...(ngDevMode ? [{ debugName: "selectBox" }] : /* istanbul ignore next */ []));
191
192
  this.size = input('md', /* @ts-ignore */
192
193
  ...(ngDevMode ? [{ debugName: "size" }] : /* istanbul ignore next */ []));
193
194
  this.multiple = input(false, /* @ts-ignore */
@@ -206,10 +207,10 @@ class BsSelectComponent {
206
207
  el.disabled = this.disabled();
207
208
  });
208
209
  }
209
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: BsSelectComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
210
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "22.0.0", type: BsSelectComponent, isStandalone: true, selector: "bs-select", inputs: { identifier: { classPropertyName: "identifier", publicName: "identifier", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, multiple: { classPropertyName: "multiple", publicName: "multiple", isSignal: true, isRequired: false, transformFunction: null }, numberVisible: { classPropertyName: "numberVisible", publicName: "numberVisible", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null } }, viewQueries: [{ propertyName: "selectBox", first: true, predicate: ["selectBox"], descendants: true, isSignal: true }], hostDirectives: [{ directive: i0.forwardRef(() => BsSelectValueAccessor), inputs: ["compareWith", "compareWith"] }, { directive: i2.BsControlValidityDirective, inputs: ["errorMessages", "errorMessages"] }], ngImport: i0, template: "<mp-select bsForwardAria #selectBox>\n <ng-content></ng-content>\n</mp-select>\n", styles: [":host{display:inline-block}\n"], dependencies: [{ kind: "directive", type: BsForwardAriaDirective, selector: "[bsForwardAria]" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
210
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsSelectComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
211
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "22.0.8", type: BsSelectComponent, isStandalone: true, selector: "bs-select", inputs: { identifier: { classPropertyName: "identifier", publicName: "identifier", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, multiple: { classPropertyName: "multiple", publicName: "multiple", isSignal: true, isRequired: false, transformFunction: null }, numberVisible: { classPropertyName: "numberVisible", publicName: "numberVisible", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null } }, viewQueries: [{ propertyName: "selectBox", first: true, predicate: ["selectBox"], descendants: true, isSignal: true }], hostDirectives: [{ directive: i0.forwardRef(() => BsSelectValueAccessor), inputs: ["compareWith", "compareWith"] }, { directive: i2.BsControlValidityDirective, inputs: ["errorMessages", "errorMessages"] }], ngImport: i0, template: "<mp-select bsForwardAria #selectBox>\n <ng-content></ng-content>\n</mp-select>\n", styles: [":host{display:inline-block}\n"], dependencies: [{ kind: "directive", type: BsForwardAriaDirective, selector: "[bsForwardAria]" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
211
212
  }
212
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: BsSelectComponent, decorators: [{
213
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsSelectComponent, decorators: [{
213
214
  type: Component,
214
215
  args: [{ selector: 'bs-select', imports: [BsForwardAriaDirective], changeDetection: ChangeDetectionStrategy.OnPush, schemas: [CUSTOM_ELEMENTS_SCHEMA], hostDirectives: [{
215
216
  directive: forwardRef(() => BsSelectValueAccessor),
@@ -1 +1 @@
1
- {"version":3,"file":"mintplayer-ng-bootstrap-select.mjs","sources":["../../../../libs/mintplayer-ng-bootstrap/select/src/value-accessors/select-value-accessor.ts","../../../../libs/mintplayer-ng-bootstrap/select/src/component/select.component.ts","../../../../libs/mintplayer-ng-bootstrap/select/src/component/select.component.html","../../../../libs/mintplayer-ng-bootstrap/select/mintplayer-ng-bootstrap-select.ts"],"sourcesContent":["import { Directive, effect, ElementRef, forwardRef, inject, input, OnDestroy, Renderer2 } from \"@angular/core\";\nimport { ControlValueAccessor, NG_VALUE_ACCESSOR } from \"@angular/forms\";\nimport { BsSelectComponent } from \"../component/select.component\";\n\n@Directive({\n selector: 'bs-select',\n providers: [{\n provide: NG_VALUE_ACCESSOR,\n useExisting: forwardRef(() => BsSelectValueAccessor),\n multi: true,\n }],\n host: {\n '(change)': 'hostOnChange($event)',\n '(blur)': 'hostBlur($event)',\n },\n})\nexport class BsSelectValueAccessor implements ControlValueAccessor {\n private _renderer = inject(Renderer2);\n private _elementRef = inject(ElementRef);\n private selectBox = inject(BsSelectComponent);\n\n onChange = (_: any) => {};\n onTouched = () => {};\n\n registerOnTouched(fn: () => void): void {\n this.onTouched = fn;\n }\n registerOnChange(fn: (p: any) => void) {\n this.onChange = (valueString: string) => {\n // View -> Model\n this.value = this.getOptionValue(valueString);\n fn(this.value);\n // fn(valueString);\n };\n }\n setDisabledState(isDisabled: boolean): void {\n this.setProperty('disabled', isDisabled);\n }\n protected setProperty(key: string, value: any): void {\n if (this.selectBox.selectBox()) {\n this._renderer.setProperty(this.selectBox.selectBox().nativeElement, key, value);\n }\n }\n\n hostOnChange(event: Event) {\n this.onChange((<any>event.target).value);\n }\n\n hostBlur(ev: Event) {\n this.onTouched();\n }\n\n value: any;\n optionMap = new Map<string, any>();\n idCounter = 0;\n\n private compareWithFunction: (value1: any, value2: any) => boolean = Object.is;\n readonly compareWith = input<((value1: any, value2: any) => boolean) | undefined>(undefined);\n\n constructor() {\n effect(() => {\n const value = this.compareWith();\n if (value !== undefined) {\n if (typeof value !== 'function') {\n throw new Error('compareWith must be a function');\n }\n this.compareWithFunction = value;\n }\n });\n }\n\n buildValueString(id: string | null, value: any) {\n if (id == null) {\n return `${value}`;\n }\n\n if (value && (typeof value === 'object')) {\n value = 'Object';\n }\n\n return `${id}: ${value}`.slice(0, 50);\n }\n\n /**\n * The id half of a `\"<id>: <value>\"` string, or null when there is no string\n * to read.\n *\n * Null is a real case, not defensive padding: `<option value=\"\">` is the\n * idiomatic way to write a placeholder (\"— none —\", \"Browser locale\"), and\n * `mp-select` normalizes an empty selection to `null` on its host. The host is\n * what `hostOnChange` reads, because `mp-select` re-dispatches a composed\n * `change` whose target is the element rather than the inner `<select>`. So\n * selecting a placeholder threw `can't access property \"split\", valueString is\n * null` and the model never updated — the control looked frozen on that option.\n */\n extractId(valueString: string | null | undefined): string | null {\n return valueString == null ? null : valueString.split(':')[0];\n }\n\n writeValue(value: any) {\n this.value = value;\n\n const id = this.getOptionId(value);\n const valueString = this.buildValueString(id, value);\n this.setProperty('value', valueString);\n }\n\n registerOption() {\n return (this.idCounter++).toString();\n }\n\n getOptionId(value: any) {\n for (const id of Array.from(this.optionMap.keys())) {\n if (this.compareWithFunction(this.optionMap.get(id), value)) {\n return id;\n }\n }\n\n // This shouldn't happen\n // debugger;\n \n return null;\n }\n\n getOptionValue(valueString: string | null | undefined) {\n const id = this.extractId(valueString);\n // Options declared with a plain `value` attribute are never registered in\n // optionMap — only `[ngValue]` registers — so falling through to the raw\n // string is the normal path for them, and passing null through is how a\n // placeholder selection reaches the model as \"nothing chosen\".\n return id !== null && this.optionMap.has(id) ? this.optionMap.get(id) : valueString;\n }\n}\n\n@Directive({\n selector: 'option',\n})\nexport class BsSelectOption implements OnDestroy {\n private element = inject(ElementRef);\n private renderer = inject(Renderer2);\n private select = inject(BsSelectValueAccessor, { optional: true, host: true });\n\n constructor() {\n if (this.select) {\n this.id = this.select.registerOption();\n }\n\n effect(() => {\n const val = this.ngValue();\n if (val !== undefined && this.select) {\n this.select.optionMap.set(this.id, val);\n this.setElementValue(this.select.buildValueString(this.id, val));\n this.select.writeValue(this.select.value);\n }\n });\n\n effect(() => {\n const val = this.value();\n if (val !== undefined) {\n this.setElementValue(val);\n if (this.select) {\n this.select.writeValue(this.select.value);\n }\n }\n });\n }\n\n id!: string;\n\n readonly ngValue = input<any>(undefined);\n\n readonly value = input<any>(undefined);\n\n setElementValue(value: string) {\n // console.log('setElementValue', value);\n // const nativeSelect = this.select['selectBox'].selectBox;\n // if (nativeSelect) {\n // this.renderer.setProperty(nativeSelect.nativeElement, 'value', value);\n // }\n this.renderer.setProperty(this.element.nativeElement, 'value', value);\n }\n\n ngOnDestroy() {\n if (this.select) {\n this.select.optionMap.delete(this.id);\n this.select.writeValue(this.select.value);\n }\n }\n}\n\n// @Directive({\n// selector: 'bs-select',\n// providers: [{\n// provide: NG_VALUE_ACCESSOR,\n// useExisting: forwardRef(() => BsSelectValueAccessor),\n// multi: true,\n// }],\n// })\n// export class BsSelectValueAccessor implements ControlValueAccessor, AfterViewInit, OnDestroy {\n// constructor(private host: BsSelectComponent) {}\n\n// destroyed$ = new Subject();\n\n// onValueChange?: (value: any) => void;\n// onTouched?: () => void;\n\n// //#region Lifecycle hooks\n// ngAfterViewInit() {\n// fromEvent(this.host.selectBox.nativeElement, 'change')\n// .pipe(takeUntil(this.destroyed$))\n// .subscribe((ev) => {\n// if (this.onValueChange) {\n// const val = (<HTMLSelectElement>ev.target).value;\n// console.log('selected', val);\n// this.onValueChange(val);\n// }\n// });\n// }\n\n// ngOnDestroy() {\n// this.destroyed$.next(true);\n// }\n// //#endregion\n\n// @Input('ngValue') set ngValue(value: any) {\n// if (this.host) {\n// this.host.opt\n// }\n// }\n\n// //#region OptionId mapping\n// private compareWithFunction: (value1: any, value2: any) => boolean = Object.is;\n// private optionMap = new Map<string, any>();\n// @Input() public set compareWith(fn: (value1: any, value2: any) => boolean) {\n// if (typeof fn !== 'function') {\n// throw new Error('compareWith must be a function');\n// }\n// this.compareWithFunction = fn;\n// }\n\n// private getOptionId(value: any) {\n// for (const id of Array.from(this.optionMap.keys())) {\n// if (this.compareWith(this.optionMap.get(id), value)) {\n// return id;\n// }\n// }\n// return null;\n// }\n\n// private getOptionValue(valueString: string) {\n// const id = this.extractId(valueString);\n// return this.optionMap.has(id) ? this.optionMap.get(id) : valueString;\n// }\n\n// private extractId(valueString: string) {\n// return valueString.split(':')[0];\n// }\n// //#endregion\n\n// //#region ControlValueAccessor implementation\n// registerOnChange(fn: (_: any) => void) {\n// this.onValueChange = (valueString: string) => {\n// this.value = this.getOptionValue(valueString);\n// fn(this.value);\n// };\n// }\n \n// registerOnTouched(fn: () => void) {\n// this.onTouched = fn;\n// }\n\n// value: any;\n// writeValue(value: any) {\n// this.value = value;\n// if (this.host.selectBox) {\n// // this.host.selectBox.nativeElement.selectedIndex = this.host.selectBox.nativeElement.options.item();\n// }\n// }\n\n// setDisabledState(isDisabled: boolean) {\n// if (this.host.selectBox) {\n// this.host.selectBox.nativeElement.disabled = isDisabled;\n// }\n// }\n// //#endregion\n\n// }\n","import {\n ChangeDetectionStrategy,\n Component,\n CUSTOM_ELEMENTS_SCHEMA,\n effect,\n ElementRef,\n forwardRef,\n inject,\n input,\n viewChild,\n} from '@angular/core';\nimport { BsSelectValueAccessor } from '../value-accessors/select-value-accessor';\nimport { BsSelectSize } from '../types/select-size';\nimport type { MpSelect } from '@mintplayer/web-components/select';\n\n// Side-effect import: registers <mp-select>.\nimport '@mintplayer/web-components/select';\nimport { BsForwardAriaDirective, BsControlValidityDirective } from '@mintplayer/ng-bootstrap/a11y';\n\n@Component({\n selector: 'bs-select',\n templateUrl: './select.component.html',\n imports: [BsForwardAriaDirective],\n styleUrls: ['./select.component.scss'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n schemas: [CUSTOM_ELEMENTS_SCHEMA],\n hostDirectives: [{\n directive: forwardRef(() => BsSelectValueAccessor),\n inputs: ['compareWith'],\n }, {\n directive: BsControlValidityDirective,\n inputs: ['errorMessages'],\n }],\n})\nexport class BsSelectComponent {\n constructor() {\n effect(() => {\n const el = this.selectBox()?.nativeElement;\n if (!el) return;\n el.size = this.size();\n el.multiple = this.multiple();\n el.numberVisible = this.numberVisible();\n el.disabled = this.disabled();\n });\n }\n\n // For debugging purposes\n identifier = input(0);\n\n /** Reference to the underlying `<mp-select>` WC. Read by\n * `BsSelectValueAccessor` to drive `value` / `disabled` via property\n * setters and listen for the bubbled, composed `change` event. */\n readonly selectBox = viewChild.required<ElementRef<MpSelect>>('selectBox');\n\n size = input<BsSelectSize>('md');\n multiple = input<boolean>(false);\n numberVisible = input<number | null>(null);\n disabled = input<boolean>(false);\n}\n","<mp-select bsForwardAria #selectBox>\n <ng-content></ng-content>\n</mp-select>\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["i1.BsSelectValueAccessor"],"mappings":";;;;;;;MAgBa,qBAAqB,CAAA;AAQhC,IAAA,iBAAiB,CAAC,EAAc,EAAA;AAC9B,QAAA,IAAI,CAAC,SAAS,GAAG,EAAE;IACrB;AACA,IAAA,gBAAgB,CAAC,EAAoB,EAAA;AACnC,QAAA,IAAI,CAAC,QAAQ,GAAG,CAAC,WAAmB,KAAI;;YAEtC,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC,cAAc,CAAC,WAAW,CAAC;AAC7C,YAAA,EAAE,CAAC,IAAI,CAAC,KAAK,CAAC;;AAEhB,QAAA,CAAC;IACH;AACA,IAAA,gBAAgB,CAAC,UAAmB,EAAA;AAClC,QAAA,IAAI,CAAC,WAAW,CAAC,UAAU,EAAE,UAAU,CAAC;IAC1C;IACU,WAAW,CAAC,GAAW,EAAE,KAAU,EAAA;AAC3C,QAAA,IAAI,IAAI,CAAC,SAAS,CAAC,SAAS,EAAE,EAAE;AAC9B,YAAA,IAAI,CAAC,SAAS,CAAC,WAAW,CAAC,IAAI,CAAC,SAAS,CAAC,SAAS,EAAE,CAAC,aAAa,EAAE,GAAG,EAAE,KAAK,CAAC;QAClF;IACF;AAEA,IAAA,YAAY,CAAC,KAAY,EAAA;QACvB,IAAI,CAAC,QAAQ,CAAO,KAAK,CAAC,MAAO,CAAC,KAAK,CAAC;IAC1C;AAEA,IAAA,QAAQ,CAAC,EAAS,EAAA;QAChB,IAAI,CAAC,SAAS,EAAE;IAClB;AASA,IAAA,WAAA,GAAA;AA1CQ,QAAA,IAAA,CAAA,SAAS,GAAG,MAAM,CAAC,SAAS,CAA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EAAA,QAAA,EAAA,CAAA,EAAA,IAAA,EAAA,EAAA,CAAA,KAAA,EAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,IAAA,EAAA,KAAA,EAAA,UAAA,EAAA,QAAA,EAAA,KAAA,EAAA,CAAA,EAAA,CAAA,EAAA,aAAA,EAAA,CAAA,EAAA,IAAA,EAAA,EAAA,CAAA,KAAA,EAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,IAAA,EAAA,KAAA,EAAA,eAAA,EAAA,QAAA,EAAA,KAAA,EAAA,CAAA,EAAA,CAAA,EAAA,QAAA,EAAA,CAAA,EAAA,IAAA,EAAA,EAAA,CAAA,KAAA,EAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,IAAA,EAAA,KAAA,EAAA,UAAA,EAAA,QAAA,EAAA,KAAA,EAAA,CAAA,EAAA,CAAA,EAAA,EAAA,CAAA;;AEpD3E;;AAEG;;;;"}
1
+ {"version":3,"file":"mintplayer-ng-bootstrap-select.mjs","sources":["../../../../libs/mintplayer-ng-bootstrap/select/src/value-accessors/select-value-accessor.ts","../../../../libs/mintplayer-ng-bootstrap/select/src/component/select.component.ts","../../../../libs/mintplayer-ng-bootstrap/select/src/component/select.component.html","../../../../libs/mintplayer-ng-bootstrap/select/mintplayer-ng-bootstrap-select.ts"],"sourcesContent":["import { Directive, effect, ElementRef, forwardRef, inject, input, OnDestroy, Renderer2 } from \"@angular/core\";\nimport { ControlValueAccessor, NG_VALUE_ACCESSOR } from \"@angular/forms\";\nimport { BsSelectComponent } from \"../component/select.component\";\n\n@Directive({\n selector: 'bs-select',\n providers: [{\n provide: NG_VALUE_ACCESSOR,\n useExisting: forwardRef(() => BsSelectValueAccessor),\n multi: true,\n }],\n host: {\n '(change)': 'hostOnChange($event)',\n '(blur)': 'hostBlur($event)',\n },\n})\nexport class BsSelectValueAccessor implements ControlValueAccessor {\n private _renderer = inject(Renderer2);\n private _elementRef = inject(ElementRef);\n private selectBox = inject(BsSelectComponent);\n\n onChange = (_: any) => {};\n onTouched = () => {};\n\n registerOnTouched(fn: () => void): void {\n this.onTouched = fn;\n }\n registerOnChange(fn: (p: any) => void) {\n this.onChange = (valueString: string) => {\n // View -> Model\n this.value = this.getOptionValue(valueString);\n fn(this.value);\n // fn(valueString);\n };\n }\n setDisabledState(isDisabled: boolean): void {\n this.setProperty('disabled', isDisabled);\n }\n protected setProperty(key: string, value: any): void {\n if (this.selectBox.selectBox()) {\n this._renderer.setProperty(this.selectBox.selectBox().nativeElement, key, value);\n }\n }\n\n hostOnChange(event: Event) {\n this.onChange((<any>event.target).value);\n }\n\n hostBlur(ev: Event) {\n this.onTouched();\n }\n\n value: any;\n optionMap = new Map<string, any>();\n idCounter = 0;\n\n private compareWithFunction: (value1: any, value2: any) => boolean = Object.is;\n readonly compareWith = input<((value1: any, value2: any) => boolean) | undefined>(undefined);\n\n constructor() {\n effect(() => {\n const value = this.compareWith();\n if (value !== undefined) {\n if (typeof value !== 'function') {\n throw new Error('compareWith must be a function');\n }\n this.compareWithFunction = value;\n }\n });\n }\n\n buildValueString(id: string | null, value: any) {\n if (id == null) {\n return `${value}`;\n }\n\n if (value && (typeof value === 'object')) {\n value = 'Object';\n }\n\n return `${id}: ${value}`.slice(0, 50);\n }\n\n /**\n * The id half of a `\"<id>: <value>\"` string, or null when there is no string\n * to read.\n *\n * Null is a real case, not defensive padding: `<option value=\"\">` is the\n * idiomatic way to write a placeholder (\"— none —\", \"Browser locale\"), and\n * `mp-select` normalizes an empty selection to `null` on its host. The host is\n * what `hostOnChange` reads, because `mp-select` re-dispatches a composed\n * `change` whose target is the element rather than the inner `<select>`. So\n * selecting a placeholder threw `can't access property \"split\", valueString is\n * null` and the model never updated — the control looked frozen on that option.\n */\n extractId(valueString: string | null | undefined): string | null {\n return valueString == null ? null : valueString.split(':')[0];\n }\n\n writeValue(value: any) {\n this.value = value;\n\n const id = this.getOptionId(value);\n const valueString = this.buildValueString(id, value);\n this.setProperty('value', valueString);\n }\n\n registerOption() {\n return (this.idCounter++).toString();\n }\n\n getOptionId(value: any) {\n for (const id of Array.from(this.optionMap.keys())) {\n if (this.compareWithFunction(this.optionMap.get(id), value)) {\n return id;\n }\n }\n\n // This shouldn't happen\n // debugger;\n \n return null;\n }\n\n getOptionValue(valueString: string | null | undefined) {\n const id = this.extractId(valueString);\n // Options declared with a plain `value` attribute are never registered in\n // optionMap — only `[ngValue]` registers — so falling through to the raw\n // string is the normal path for them, and passing null through is how a\n // placeholder selection reaches the model as \"nothing chosen\".\n return id !== null && this.optionMap.has(id) ? this.optionMap.get(id) : valueString;\n }\n}\n\n@Directive({\n selector: 'option',\n})\nexport class BsSelectOption implements OnDestroy {\n private element = inject(ElementRef);\n private renderer = inject(Renderer2);\n private select = inject(BsSelectValueAccessor, { optional: true, host: true });\n\n constructor() {\n if (this.select) {\n this.id = this.select.registerOption();\n }\n\n effect(() => {\n const val = this.ngValue();\n if (val !== undefined && this.select) {\n this.select.optionMap.set(this.id, val);\n this.setElementValue(this.select.buildValueString(this.id, val));\n this.select.writeValue(this.select.value);\n }\n });\n\n effect(() => {\n const val = this.value();\n if (val !== undefined) {\n this.setElementValue(val);\n if (this.select) {\n this.select.writeValue(this.select.value);\n }\n }\n });\n }\n\n id!: string;\n\n readonly ngValue = input<any>(undefined);\n\n readonly value = input<any>(undefined);\n\n setElementValue(value: string) {\n // console.log('setElementValue', value);\n // const nativeSelect = this.select['selectBox'].selectBox;\n // if (nativeSelect) {\n // this.renderer.setProperty(nativeSelect.nativeElement, 'value', value);\n // }\n this.renderer.setProperty(this.element.nativeElement, 'value', value);\n }\n\n ngOnDestroy() {\n if (this.select) {\n this.select.optionMap.delete(this.id);\n this.select.writeValue(this.select.value);\n }\n }\n}\n\n// @Directive({\n// selector: 'bs-select',\n// providers: [{\n// provide: NG_VALUE_ACCESSOR,\n// useExisting: forwardRef(() => BsSelectValueAccessor),\n// multi: true,\n// }],\n// })\n// export class BsSelectValueAccessor implements ControlValueAccessor, AfterViewInit, OnDestroy {\n// constructor(private host: BsSelectComponent) {}\n\n// destroyed$ = new Subject();\n\n// onValueChange?: (value: any) => void;\n// onTouched?: () => void;\n\n// //#region Lifecycle hooks\n// ngAfterViewInit() {\n// fromEvent(this.host.selectBox.nativeElement, 'change')\n// .pipe(takeUntil(this.destroyed$))\n// .subscribe((ev) => {\n// if (this.onValueChange) {\n// const val = (<HTMLSelectElement>ev.target).value;\n// console.log('selected', val);\n// this.onValueChange(val);\n// }\n// });\n// }\n\n// ngOnDestroy() {\n// this.destroyed$.next(true);\n// }\n// //#endregion\n\n// @Input('ngValue') set ngValue(value: any) {\n// if (this.host) {\n// this.host.opt\n// }\n// }\n\n// //#region OptionId mapping\n// private compareWithFunction: (value1: any, value2: any) => boolean = Object.is;\n// private optionMap = new Map<string, any>();\n// @Input() public set compareWith(fn: (value1: any, value2: any) => boolean) {\n// if (typeof fn !== 'function') {\n// throw new Error('compareWith must be a function');\n// }\n// this.compareWithFunction = fn;\n// }\n\n// private getOptionId(value: any) {\n// for (const id of Array.from(this.optionMap.keys())) {\n// if (this.compareWith(this.optionMap.get(id), value)) {\n// return id;\n// }\n// }\n// return null;\n// }\n\n// private getOptionValue(valueString: string) {\n// const id = this.extractId(valueString);\n// return this.optionMap.has(id) ? this.optionMap.get(id) : valueString;\n// }\n\n// private extractId(valueString: string) {\n// return valueString.split(':')[0];\n// }\n// //#endregion\n\n// //#region ControlValueAccessor implementation\n// registerOnChange(fn: (_: any) => void) {\n// this.onValueChange = (valueString: string) => {\n// this.value = this.getOptionValue(valueString);\n// fn(this.value);\n// };\n// }\n \n// registerOnTouched(fn: () => void) {\n// this.onTouched = fn;\n// }\n\n// value: any;\n// writeValue(value: any) {\n// this.value = value;\n// if (this.host.selectBox) {\n// // this.host.selectBox.nativeElement.selectedIndex = this.host.selectBox.nativeElement.options.item();\n// }\n// }\n\n// setDisabledState(isDisabled: boolean) {\n// if (this.host.selectBox) {\n// this.host.selectBox.nativeElement.disabled = isDisabled;\n// }\n// }\n// //#endregion\n\n// }\n","import {\n ChangeDetectionStrategy,\n Component,\n CUSTOM_ELEMENTS_SCHEMA,\n effect,\n ElementRef,\n forwardRef,\n inject,\n input,\n viewChild,\n} from '@angular/core';\nimport { BsSelectValueAccessor } from '../value-accessors/select-value-accessor';\nimport { BsSelectSize } from '../types/select-size';\nimport type { MpSelect } from '@mintplayer/web-components/select';\n\n// Side-effect import: registers <mp-select>.\nimport '@mintplayer/web-components/select';\nimport { BsForwardAriaDirective, BsControlValidityDirective } from '@mintplayer/ng-bootstrap/a11y';\n\n@Component({\n selector: 'bs-select',\n templateUrl: './select.component.html',\n imports: [BsForwardAriaDirective],\n styleUrls: ['./select.component.scss'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n schemas: [CUSTOM_ELEMENTS_SCHEMA],\n hostDirectives: [{\n directive: forwardRef(() => BsSelectValueAccessor),\n inputs: ['compareWith'],\n }, {\n directive: BsControlValidityDirective,\n inputs: ['errorMessages'],\n }],\n})\nexport class BsSelectComponent {\n constructor() {\n effect(() => {\n const el = this.selectBox()?.nativeElement;\n if (!el) return;\n el.size = this.size();\n el.multiple = this.multiple();\n el.numberVisible = this.numberVisible();\n el.disabled = this.disabled();\n });\n }\n\n // For debugging purposes\n identifier = input(0);\n\n /** Reference to the underlying `<mp-select>` WC. Read by\n * `BsSelectValueAccessor` to drive `value` / `disabled` via property\n * setters and listen for the bubbled, composed `change` event. */\n readonly selectBox = viewChild.required<ElementRef<MpSelect>>('selectBox');\n\n size = input<BsSelectSize>('md');\n multiple = input<boolean>(false);\n numberVisible = input<number | null>(null);\n disabled = input<boolean>(false);\n}\n","<mp-select bsForwardAria #selectBox>\n <ng-content></ng-content>\n</mp-select>\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["i1.BsSelectValueAccessor"],"mappings":";;;;;;;MAgBa,qBAAqB,CAAA;AAQhC,IAAA,iBAAiB,CAAC,EAAc,EAAA;AAC9B,QAAA,IAAI,CAAC,SAAS,GAAG,E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AAA,EAAA,CAAA,EAAA,IAAA,EAAA,EAAA,CAAA,KAAA,EAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,IAAA,EAAA,KAAA,EAAA,UAAA,EAAA,QAAA,EAAA,KAAA,EAAA,CAAA,EAAA,CAAA,EAAA,EAAA,CAAA;;AEpD3E;;AAEG;;;;"}
@@ -36,7 +36,8 @@ class BsShellComponent {
36
36
  ...(ngDevMode ? [{ debugName: "dismissOnNavigate" }] : /* istanbul ignore next */ []));
37
37
  /** Fires when the sidebar toggle flips (re-emits the WC's `statechange`). */
38
38
  this.statechange = output();
39
- this.shellRef = viewChild.required('wc');
39
+ this.shellRef = viewChild.required('wc', /* @ts-ignore */
40
+ ...(ngDevMode ? [{ debugName: "shellRef" }] : /* istanbul ignore next */ []));
40
41
  afterNextRender(() => {
41
42
  // Side-effect import registers <mp-shell>; client-only so SSR stays a
42
43
  // bare tag for DSD injection.
@@ -51,10 +52,10 @@ class BsShellComponent {
51
52
  toggle(force) {
52
53
  this.shellRef().nativeElement.toggle?.(force);
53
54
  }
54
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: BsShellComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
55
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "22.0.0", type: BsShellComponent, isStandalone: true, selector: "bs-shell", inputs: { state: { classPropertyName: "state", publicName: "state", isSignal: true, isRequired: false, transformFunction: null }, breakpoint: { classPropertyName: "breakpoint", publicName: "breakpoint", isSignal: true, isRequired: false, transformFunction: null }, dismissOnNavigate: { classPropertyName: "dismissOnNavigate", publicName: "dismissOnNavigate", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { statechange: "statechange" }, viewQueries: [{ propertyName: "shellRef", first: true, predicate: ["wc"], descendants: true, isSignal: true }], ngImport: i0, template: "<mp-shell bsForwardAria #wc [attr.state]=\"state()\" [attr.breakpoint]=\"breakpoint()\" [attr.dismiss-on-navigate]=\"dismissOnNavigate() ? '' : null\" (statechange)=\"onStatechange($event)\">\n <ng-content></ng-content>\n</mp-shell>\n", styles: [":host{display:flex;flex-direction:column}mp-shell{flex:1 1 auto;min-block-size:0}\n"], dependencies: [{ kind: "directive", type: BsForwardAriaDirective, selector: "[bsForwardAria]" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
55
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsShellComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
56
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "22.0.8", type: BsShellComponent, isStandalone: true, selector: "bs-shell", inputs: { state: { classPropertyName: "state", publicName: "state", isSignal: true, isRequired: false, transformFunction: null }, breakpoint: { classPropertyName: "breakpoint", publicName: "breakpoint", isSignal: true, isRequired: false, transformFunction: null }, dismissOnNavigate: { classPropertyName: "dismissOnNavigate", publicName: "dismissOnNavigate", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { statechange: "statechange" }, viewQueries: [{ propertyName: "shellRef", first: true, predicate: ["wc"], descendants: true, isSignal: true }], ngImport: i0, template: "<mp-shell bsForwardAria #wc [attr.state]=\"state()\" [attr.breakpoint]=\"breakpoint()\" [attr.dismiss-on-navigate]=\"dismissOnNavigate() ? '' : null\" (statechange)=\"onStatechange($event)\">\n <ng-content></ng-content>\n</mp-shell>\n", styles: [":host{display:flex;flex-direction:column}mp-shell{flex:1 1 auto;min-block-size:0}\n"], dependencies: [{ kind: "directive", type: BsForwardAriaDirective, selector: "[bsForwardAria]" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
56
57
  }
57
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: BsShellComponent, decorators: [{
58
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsShellComponent, decorators: [{
58
59
  type: Component,
59
60
  args: [{ selector: 'bs-shell', imports: [BsForwardAriaDirective], changeDetection: ChangeDetectionStrategy.OnPush, schemas: [CUSTOM_ELEMENTS_SCHEMA], template: "<mp-shell bsForwardAria #wc [attr.state]=\"state()\" [attr.breakpoint]=\"breakpoint()\" [attr.dismiss-on-navigate]=\"dismissOnNavigate() ? '' : null\" (statechange)=\"onStatechange($event)\">\n <ng-content></ng-content>\n</mp-shell>\n", styles: [":host{display:flex;flex-direction:column}mp-shell{flex:1 1 auto;min-block-size:0}\n"] }]
60
61
  }], ctorParameters: () => [], propDecorators: { state: [{ type: i0.Input, args: [{ isSignal: true, alias: "state", required: false }] }], breakpoint: [{ type: i0.Input, args: [{ isSignal: true, alias: "breakpoint", required: false }] }], dismissOnNavigate: [{ type: i0.Input, args: [{ isSignal: true, alias: "dismissOnNavigate", required: false }] }], statechange: [{ type: i0.Output, args: ["statechange"] }], shellRef: [{ type: i0.ViewChild, args: ['wc', { isSignal: true }] }] } });
@@ -70,10 +71,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.0", ngImpor
70
71
  * `slot="sidebar"` on its host.)
71
72
  */
72
73
  class BsShellSidebarDirective {
73
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: BsShellSidebarDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
74
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.0.0", type: BsShellSidebarDirective, isStandalone: true, selector: "[bsShellSidebar]", host: { properties: { "attr.slot": "'sidebar'" } }, ngImport: i0 }); }
74
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsShellSidebarDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
75
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.0.8", type: BsShellSidebarDirective, isStandalone: true, selector: "[bsShellSidebar]", host: { properties: { "attr.slot": "'sidebar'" } }, ngImport: i0 }); }
75
76
  }
76
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: BsShellSidebarDirective, decorators: [{
77
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsShellSidebarDirective, decorators: [{
77
78
  type: Directive,
78
79
  args: [{
79
80
  selector: '[bsShellSidebar]',
@@ -1 +1 @@
1
- {"version":3,"file":"mintplayer-ng-bootstrap-shell.mjs","sources":["../../../../libs/mintplayer-ng-bootstrap/shell/src/shell/shell.component.ts","../../../../libs/mintplayer-ng-bootstrap/shell/src/shell/shell.component.html","../../../../libs/mintplayer-ng-bootstrap/shell/src/shell-sidebar/shell-sidebar.directive.ts","../../../../libs/mintplayer-ng-bootstrap/shell/mintplayer-ng-bootstrap-shell.ts"],"sourcesContent":["import { afterNextRender, ChangeDetectionStrategy, Component, CUSTOM_ELEMENTS_SCHEMA, ElementRef, input, output, viewChild } from '@angular/core';\nimport { Breakpoint } from '@mintplayer/ng-bootstrap';\nimport type { MpShell, ShellStateChangeEventDetail } from '@mintplayer/web-components/shell';\nimport { BsShellState } from '../shell-state';\nimport { BsForwardAriaDirective } from '@mintplayer/ng-bootstrap/a11y';\n\n/**\n * `<bs-shell>` — Angular wrapper around the `<mp-shell>` web component.\n *\n * Layout, the responsive `auto` behaviour and the no-JS toggle all live in the\n * WC (single source of truth). This wrapper only bridges inputs to attributes\n * and projects content into the WC's slots:\n * - mark the sidebar element with `bsShellSidebar` (→ `slot=\"sidebar\"`);\n * - everything else becomes the main content.\n *\n * The WC is registered **client-side only** (`afterNextRender`); on the server\n * Angular emits a bare `<mp-shell>` tag and the SSR layer injects its\n * Declarative Shadow DOM (see `injectMpShellDsd`), so it renders with JS off.\n */\n@Component({\n selector: 'bs-shell',\n templateUrl: './shell.component.html',\n imports: [BsForwardAriaDirective],\n styleUrl: './shell.component.scss',\n changeDetection: ChangeDetectionStrategy.OnPush,\n schemas: [CUSTOM_ELEMENTS_SCHEMA],\n})\nexport class BsShellComponent {\n readonly state = input<BsShellState>('auto');\n readonly breakpoint = input<Breakpoint>('md');\n /** Auto-close the overlay drawer when a sidebar link is clicked (narrow mode only). */\n readonly dismissOnNavigate = input(false);\n\n /** Fires when the sidebar toggle flips (re-emits the WC's `statechange`). */\n readonly statechange = output<ShellStateChangeEventDetail>();\n\n private readonly shellRef = viewChild.required<ElementRef<MpShell>>('wc');\n\n protected onStatechange(event: Event) {\n // The WC's `statechange` is a general-purpose DOM event (bubbles + composed).\n // In Angular the public API is this typed `output()`, so consume the raw\n // event here. Without `stopPropagation` it keeps bubbling to the consumer's\n // `<bs-shell>` host, where their `(statechange)` binding fires a SECOND time\n // with the raw `CustomEvent` (Angular doesn't unwrap `.detail`), clobbering\n // whatever the typed emit just set.\n event.stopPropagation();\n this.statechange.emit((event as CustomEvent<ShellStateChangeEventDetail>).detail);\n }\n\n constructor() {\n afterNextRender(() => {\n // Side-effect import registers <mp-shell>; client-only so SSR stays a\n // bare tag for DSD injection.\n import('@mintplayer/web-components/shell');\n });\n }\n\n /** Set the expanded sidebar width (any CSS length, e.g. `'20rem'`). */\n setSize(size: string) {\n this.shellRef().nativeElement.setAttribute('size', size);\n }\n\n /** Programmatically open/close the sidebar (no-op until the WC has upgraded). */\n toggle(force?: boolean) {\n this.shellRef().nativeElement.toggle?.(force);\n }\n}\n","<mp-shell bsForwardAria #wc [attr.state]=\"state()\" [attr.breakpoint]=\"breakpoint()\" [attr.dismiss-on-navigate]=\"dismissOnNavigate() ? '' : null\" (statechange)=\"onStatechange($event)\">\n <ng-content></ng-content>\n</mp-shell>\n","import { Directive } from '@angular/core';\n\n/**\n * Marks the element that should be projected into `<mp-shell>`'s `sidebar`\n * slot. Use as a plain attribute on the sidebar element:\n *\n * <nav bsShellSidebar>…</nav>\n *\n * (Previously a structural directive capturing a `TemplateRef`; the WC migration\n * replaced template projection with a named slot, so this now just sets\n * `slot=\"sidebar\"` on its host.)\n */\n@Directive({\n selector: '[bsShellSidebar]',\n host: {\n '[attr.slot]': \"'sidebar'\",\n },\n})\nexport class BsShellSidebarDirective {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;AAMA;;;;;;;;;;;;AAYG;MASU,gBAAgB,CAAA;AAWjB,IAAA,aAAa,CAAC,KAAY,EAAA;;;;;;;QAOlC,KAAK,CAAC,eAAe,EAAE;QACvB,IAAI,CAAC,WAAW,CAAC,IAAI,CAAE,KAAkD,CAAC,MAAM,CAAC;IACnF;AAEA,IAAA,WAAA,GAAA;QArBS,IAAA,CAAA,KAAK,GAAG,KAAK,CAAe,MAAM;kFAAC;QACnC,IAAA,CAAA,UAAU,GAAG,KAAK,CAAa,IAAI;uFAAC;;QAEpC,IAAA,CAAA,iBAAiB,GAAG,KAAK,CAAC,KAAK;8FAAC;;QAGhC,IAAA,CAAA,WAAW,GAAG,MAAM,EAA+B;AAE3C,QAAA,IAAA,CAAA,QAAQ,GAAG,SAAS,CAAC,QAAQ,CAAsB,IAAI,CAAC;QAcvE,eAAe,CAAC,MAAK;;;YAGnB,OAAO,kCAAkC,CAAC;AAC5C,QAAA,CAAC,CAAC;IACJ;;AAGA,IAAA,OAAO,CAAC,IAAY,EAAA;AAClB,QAAA,IAAI,CAAC,QAAQ,EAAE,CAAC,aAAa,CAAC,YAAY,CAAC,MAAM,EAAE,IAAI,CAAC;IAC1D;;AAGA,IAAA,MAAM,CAAC,KAAe,EAAA;QACpB,IAAI,CAAC,QAAQ,EAAE,CAAC,aAAa,CAAC,MAAM,GAAG,KAAK,CAAC;IAC/C;8GAtCW,gBAAgB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;kGAAhB,gBAAgB,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,UA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EAAA,QAAA,EAAA,IAAA,EAAA,CAAA,EAAA,CAAA,EAAA,EAAA,CAAA;;AElC1E;;;;;;;;;AASG;MAOU,uBAAuB,CAAA;8GAAvB,uBAAuB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;kGAAvB,uBAAuB,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,kBAAA,EAAA,IAAA,EAAA,EAAA,UAAA,EAAA,EAAA,WAAA,EAAA,WAAA,EAAA,EAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA,CAAA;;2FAAvB,uBAAuB,EAAA,UAAA,EAAA,CAAA;kBANnC,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACT,oBAAA,QAAQ,EAAE,kBAAkB;AAC5B,oBAAA,IAAI,EAAE;AACJ,wBAAA,aAAa,EAAE,WAAW;AAC3B,qBAAA;AACF,iBAAA;;;ACjBD;;AAEG;;;;"}
1
+ {"version":3,"file":"mintplayer-ng-bootstrap-shell.mjs","sources":["../../../../libs/mintplayer-ng-bootstrap/shell/src/shell/shell.component.ts","../../../../libs/mintplayer-ng-bootstrap/shell/src/shell/shell.component.html","../../../../libs/mintplayer-ng-bootstrap/shell/src/shell-sidebar/shell-sidebar.directive.ts","../../../../libs/mintplayer-ng-bootstrap/shell/mintplayer-ng-bootstrap-shell.ts"],"sourcesContent":["import { afterNextRender, ChangeDetectionStrategy, Component, CUSTOM_ELEMENTS_SCHEMA, ElementRef, input, output, viewChild } from '@angular/core';\nimport { Breakpoint } from '@mintplayer/ng-bootstrap';\nimport type { MpShell, ShellStateChangeEventDetail } from '@mintplayer/web-components/shell';\nimport { BsShellState } from '../shell-state';\nimport { BsForwardAriaDirective } from '@mintplayer/ng-bootstrap/a11y';\n\n/**\n * `<bs-shell>` — Angular wrapper around the `<mp-shell>` web component.\n *\n * Layout, the responsive `auto` behaviour and the no-JS toggle all live in the\n * WC (single source of truth). This wrapper only bridges inputs to attributes\n * and projects content into the WC's slots:\n * - mark the sidebar element with `bsShellSidebar` (→ `slot=\"sidebar\"`);\n * - everything else becomes the main content.\n *\n * The WC is registered **client-side only** (`afterNextRender`); on the server\n * Angular emits a bare `<mp-shell>` tag and the SSR layer injects its\n * Declarative Shadow DOM (see `injectMpShellDsd`), so it renders with JS off.\n */\n@Component({\n selector: 'bs-shell',\n templateUrl: './shell.component.html',\n imports: [BsForwardAriaDirective],\n styleUrl: './shell.component.scss',\n changeDetection: ChangeDetectionStrategy.OnPush,\n schemas: [CUSTOM_ELEMENTS_SCHEMA],\n})\nexport class BsShellComponent {\n readonly state = input<BsShellState>('auto');\n readonly breakpoint = input<Breakpoint>('md');\n /** Auto-close the overlay drawer when a sidebar link is clicked (narrow mode only). */\n readonly dismissOnNavigate = input(false);\n\n /** Fires when the sidebar toggle flips (re-emits the WC's `statechange`). */\n readonly statechange = output<ShellStateChangeEventDetail>();\n\n private readonly shellRef = viewChild.required<ElementRef<MpShell>>('wc');\n\n protected onStatechange(event: Event) {\n // The WC's `statechange` is a general-purpose DOM event (bubbles + composed).\n // In Angular the public API is this typed `output()`, so consume the raw\n // event here. Without `stopPropagation` it keeps bubbling to the consumer's\n // `<bs-shell>` host, where their `(statechange)` binding fires a SECOND time\n // with the raw `CustomEvent` (Angular doesn't unwrap `.detail`), clobbering\n // whatever the typed emit just set.\n event.stopPropagation();\n this.statechange.emit((event as CustomEvent<ShellStateChangeEventDetail>).detail);\n }\n\n constructor() {\n afterNextRender(() => {\n // Side-effect import registers <mp-shell>; client-only so SSR stays a\n // bare tag for DSD injection.\n import('@mintplayer/web-components/shell');\n });\n }\n\n /** Set the expanded sidebar width (any CSS length, e.g. `'20rem'`). */\n setSize(size: string) {\n this.shellRef().nativeElement.setAttribute('size', size);\n }\n\n /** Programmatically open/close the sidebar (no-op until the WC has upgraded). */\n toggle(force?: boolean) {\n this.shellRef().nativeElement.toggle?.(force);\n }\n}\n","<mp-shell bsForwardAria #wc [attr.state]=\"state()\" [attr.breakpoint]=\"breakpoint()\" [attr.dismiss-on-navigate]=\"dismissOnNavigate() ? '' : null\" (statechange)=\"onStatechange($event)\">\n <ng-content></ng-content>\n</mp-shell>\n","import { Directive } from '@angular/core';\n\n/**\n * Marks the element that should be projected into `<mp-shell>`'s `sidebar`\n * slot. Use as a plain attribute on the sidebar element:\n *\n * <nav bsShellSidebar>…</nav>\n *\n * (Previously a structural directive capturing a `TemplateRef`; the WC migration\n * replaced template projection with a named slot, so this now just sets\n * `slot=\"sidebar\"` on its host.)\n */\n@Directive({\n selector: '[bsShellSidebar]',\n host: {\n '[attr.slot]': \"'sidebar'\",\n },\n})\nexport class BsShellSidebarDirective {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;AAMA;;;;;;;;;;;;AAYG;MASU,gBAAgB,CAAA;AAWjB,IAAA,aAAa,CAAC,KAAY,EAAA;;;;;;;QAOlC,KAAK,CAAC,eAAe,EAAE;QACvB,IAAI,CAAC,WAAW,CAAC,IAAI,CAAE,KAAkD,CAAC,MAAM,CAAC;IACnF;AAEA,IAAA,WAAA,GAAA;QArBS,IAAA,CAAA,KAAK,GAAG,KAAK,CAAe,MAAM;kFAAC;QACnC,IAAA,CAAA,UAAU,GAAG,KAAK,CAAa,IAAI;uFAAC;;QAEpC,IAAA,CAAA,iBAAiB,GAAG,KAAK,CAAC,KAAK;8FAAC;;QAGhC,IAAA,CAAA,WAAW,GAAG,MAAM,EAA+B;AAE3C,QAAA,IAAA,CAAA,QAAQ,GAAG,SAAS,CAAC,QAAQ,CAAsB,IAAI;qFAAC;QAcvE,eAAe,CAAC,MAAK;;;YAGnB,OAAO,kCAAkC,CAAC;AAC5C,QAAA,CAAC,CAAC;IACJ;;AAGA,IAAA,OAAO,CAAC,IAAY,EAAA;AAClB,QAAA,IAAI,CAAC,QAAQ,EAAE,CAAC,aAAa,CAAC,YAAY,CAAC,MAAM,EAAE,IAAI,CAAC;I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EAAA,CAAA,CAAA;;2FAKrB,gBAAgB,EAAA,UAAA,EAAA,CAAA;kBAR5B,SAAS;+BACE,UAAU,EAAA,OAAA,EAEX,CAAC,sBAAsB,CAAC,EAAA,eAAA,EAEhB,uBAAuB,CAAC,MAAM,EAAA,OAAA,EACtC,CAAC,sBAAsB,CAAC,EAAA,QAAA,EAAA,+OAAA,EAAA,MAAA,EAAA,CAAA,qFAAA,CAAA,EAAA;2cAWmC,IAAI,EAAA,EAAA,QAAA,EAAA,IAAA,EAAA,CAAA,EAAA,CAAA,EAAA,EAAA,CAAA;;AElC1E;;;;;;;;;AASG;MAOU,uBAAuB,CAAA;8GAAvB,uBAAuB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;kGAAvB,uBAAuB,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,kBAAA,EAAA,IAAA,EAAA,EAAA,UAAA,EAAA,EAAA,WAAA,EAAA,WAAA,EAAA,EAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA,CAAA;;2FAAvB,uBAAuB,EAAA,UAAA,EAAA,CAAA;kBANnC,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACT,oBAAA,QAAQ,EAAE,kBAAkB;AAC5B,oBAAA,IAAI,EAAE;AACJ,wBAAA,aAAa,EAAE,WAAW;AAC3B,qBAAA;AACF,iBAAA;;;ACjBD;;AAEG;;;;"}
@@ -37,7 +37,8 @@ class BsSignaturePadComponent {
37
37
  // [(signature)] binding; `signature.set()` in onSignatureChange drives it.
38
38
  this.signature = model({ strokes: [] }, /* @ts-ignore */
39
39
  ...(ngDevMode ? [{ debugName: "signature" }] : /* istanbul ignore next */ []));
40
- this.elementRef = viewChild.required('el');
40
+ this.elementRef = viewChild.required('el', /* @ts-ignore */
41
+ ...(ngDevMode ? [{ debugName: "elementRef" }] : /* istanbul ignore next */ []));
41
42
  // Forward model writes to the WC property. Writing back the same object
42
43
  // the WC just emitted is a no-op inside Lit (same reference), so the
43
44
  // event → model → property round trip cannot loop.
@@ -59,8 +60,8 @@ class BsSignaturePadComponent {
59
60
  clear() {
60
61
  this.elementRef()?.nativeElement.clear();
61
62
  }
62
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: BsSignaturePadComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
63
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "22.0.0", type: BsSignaturePadComponent, isStandalone: true, selector: "bs-signature-pad", inputs: { width: { classPropertyName: "width", publicName: "width", isSignal: true, isRequired: false, transformFunction: null }, height: { classPropertyName: "height", publicName: "height", isSignal: true, isRequired: false, transformFunction: null }, inputLabel: { classPropertyName: "inputLabel", publicName: "inputLabel", isSignal: true, isRequired: false, transformFunction: null }, typeLabel: { classPropertyName: "typeLabel", publicName: "typeLabel", isSignal: true, isRequired: false, transformFunction: null }, undoLabel: { classPropertyName: "undoLabel", publicName: "undoLabel", isSignal: true, isRequired: false, transformFunction: null }, clearLabel: { classPropertyName: "clearLabel", publicName: "clearLabel", isSignal: true, isRequired: false, transformFunction: null }, showAccessibilityToggle: { classPropertyName: "showAccessibilityToggle", publicName: "showAccessibilityToggle", isSignal: true, isRequired: false, transformFunction: null }, signature: { classPropertyName: "signature", publicName: "signature", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { signature: "signatureChange" }, viewQueries: [{ propertyName: "elementRef", first: true, predicate: ["el"], descendants: true, isSignal: true }], ngImport: i0, template: `
63
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsSignaturePadComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
64
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "22.0.8", type: BsSignaturePadComponent, isStandalone: true, selector: "bs-signature-pad", inputs: { width: { classPropertyName: "width", publicName: "width", isSignal: true, isRequired: false, transformFunction: null }, height: { classPropertyName: "height", publicName: "height", isSignal: true, isRequired: false, transformFunction: null }, inputLabel: { classPropertyName: "inputLabel", publicName: "inputLabel", isSignal: true, isRequired: false, transformFunction: null }, typeLabel: { classPropertyName: "typeLabel", publicName: "typeLabel", isSignal: true, isRequired: false, transformFunction: null }, undoLabel: { classPropertyName: "undoLabel", publicName: "undoLabel", isSignal: true, isRequired: false, transformFunction: null }, clearLabel: { classPropertyName: "clearLabel", publicName: "clearLabel", isSignal: true, isRequired: false, transformFunction: null }, showAccessibilityToggle: { classPropertyName: "showAccessibilityToggle", publicName: "showAccessibilityToggle", isSignal: true, isRequired: false, transformFunction: null }, signature: { classPropertyName: "signature", publicName: "signature", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { signature: "signatureChange" }, viewQueries: [{ propertyName: "elementRef", first: true, predicate: ["el"], descendants: true, isSignal: true }], ngImport: i0, template: `
64
65
  <mp-signature-pad bsForwardAria
65
66
  #el
66
67
  [attr.width]="width()"
@@ -74,7 +75,7 @@ class BsSignaturePadComponent {
74
75
  ></mp-signature-pad>
75
76
  `, isInline: true, styles: [":host{display:inline-block;max-width:100%}\n"], dependencies: [{ kind: "directive", type: BsForwardAriaDirective, selector: "[bsForwardAria]" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
76
77
  }
77
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: BsSignaturePadComponent, decorators: [{
78
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsSignaturePadComponent, decorators: [{
78
79
  type: Component,
79
80
  args: [{ selector: 'bs-signature-pad', template: `
80
81
  <mp-signature-pad bsForwardAria
@@ -1 +1 @@
1
- {"version":3,"file":"mintplayer-ng-bootstrap-signature-pad.mjs","sources":["../../../../libs/mintplayer-ng-bootstrap/signature-pad/src/component/signature-pad.component.ts","../../../../libs/mintplayer-ng-bootstrap/signature-pad/mintplayer-ng-bootstrap-signature-pad.ts"],"sourcesContent":["import {\n ChangeDetectionStrategy,\n Component,\n CUSTOM_ELEMENTS_SCHEMA,\n ElementRef,\n effect,\n input,\n model,\n viewChild,\n} from '@angular/core';\nimport { MpSignaturePadElement, Signature } from '@mintplayer/web-components/signature-pad';\nimport { BsForwardAriaDirective } from '@mintplayer/ng-bootstrap/a11y';\n\n// Side-effect: ensure mp-signature-pad is registered (a type-only usage would\n// let TypeScript elide the import and the element would never be defined).\nvoid MpSignaturePadElement;\n\n/**\n * `<bs-signature-pad>` — Angular wrapper around the `<mp-signature-pad>` web\n * component. The WC owns drawing, the typed-signature alternative, Undo/Clear\n * and ARIA; this wrapper bridges the `signature` two-way model and forwards\n * the optional label overrides.\n */\n@Component({\n selector: 'bs-signature-pad',\n template: `\n <mp-signature-pad bsForwardAria\n #el\n [attr.width]=\"width()\"\n [attr.height]=\"height()\"\n [attr.input-label]=\"inputLabel()\"\n [attr.type-label]=\"typeLabel()\"\n [attr.undo-label]=\"undoLabel()\"\n [attr.clear-label]=\"clearLabel()\"\n [attr.show-accessibility-toggle]=\"showAccessibilityToggle() ? null : 'false'\"\n (signature-change)=\"onSignatureChange($event)\"\n ></mp-signature-pad>\n `,\n // max-width mirrors the WC host's own cap: an inline-block's shrink-to-fit\n // floor is its content's intrinsic width, which percentage caps on the WC\n // cannot influence — without this the wrapper holds the pad at ~310px on\n // narrow viewports and the page scrolls horizontally.\n styles: [':host { display: inline-block; max-width: 100%; }'],\n imports: [BsForwardAriaDirective],\n schemas: [CUSTOM_ELEMENTS_SCHEMA],\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class BsSignaturePadComponent {\n readonly width = input(500);\n readonly height = input(300);\n readonly inputLabel = input<string | null>(null);\n readonly typeLabel = input<string | null>(null);\n readonly undoLabel = input<string | null>(null);\n readonly clearLabel = input<string | null>(null);\n /**\n * Shows the typed alternative; named identically to bs-color-picker's input.\n * ON by default — it is the only keyboard path — so turning it off is a\n * deliberate draw-only decision.\n */\n readonly showAccessibilityToggle = input(true);\n\n // `model()` already exposes a `signatureChange` output for two-way\n // [(signature)] binding; `signature.set()` in onSignatureChange drives it.\n readonly signature = model<Signature>({ strokes: [] });\n\n readonly elementRef = viewChild.required<ElementRef<MpSignaturePadElement>>('el');\n\n constructor() {\n // Forward model writes to the WC property. Writing back the same object\n // the WC just emitted is a no-op inside Lit (same reference), so the\n // event → model → property round trip cannot loop.\n effect(() => {\n const ref = this.elementRef();\n if (!ref) return;\n ref.nativeElement.signature = this.signature();\n });\n }\n\n protected onSignatureChange(event: Event): void {\n this.signature.set((event as CustomEvent<Signature>).detail);\n }\n\n /** Remove the most recent stroke. */\n undo(): void {\n this.elementRef()?.nativeElement.undo();\n }\n\n /** Wipe strokes and typed text. */\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":[],"mappings":";;;;;AAaA;AACA;AACA,KAAK,qBAAqB;AAE1B;;;;;AAKG;MAyBU,uBAAuB,CAAA;AAoBlC,IAAA,WAAA,GAAA;QAnBS,IAAA,CAAA,KAAK,GAAG,KAAK,CAAC,GAAG;kFAAC;QAClB,IAAA,CAAA,MAAM,GAAG,KAAK,CAAC,GAAG;mFAAC;QACnB,IAAA,CAAA,UAAU,GAAG,KAAK,CAAgB,IAAI;uFAAC;QACvC,IAAA,CAAA,SAAS,GAAG,KAAK,CAAgB,IAAI;sFAAC;QACtC,IAAA,CAAA,SAAS,GAAG,KAAK,CAAgB,IAAI;sFAAC;QACtC,IAAA,CAAA,UAAU,GAAG,KAAK,CAAgB,IAAI;uFAAC;AAChD;;;;AAIG;QACM,IAAA,CAAA,uBAAuB,GAAG,KAAK,CAAC,IAAI;oGAAC;;;AAIrC,QAAA,IAAA,CAAA,SAAS,GAAG,KAAK,CAAY,EAAE,OAAO,EAAE,EAAE,EAAE;sFAAC;AAE7C,QAAA,IAAA,CAAA,U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EAMS,sBAAsB,EAAA,QAAA,EAAA,iBAAA,EAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,CAAA,CAAA;;2FAIrB,uBAAuB,EAAA,UAAA,EAAA,CAAA;kBAxBnC,SAAS;AACE,YAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,kBAAkB,EAAA,QAAA,EAClB;;;;;;;;;;;;GAYT,EAAA,OAAA,EAMQ,CAAC,sBAAsB,CAAC,EAAA,OAAA,EACxB,CAAC,sBAAsB,CAAC,EAAA,eAAA,EAChB,uBAAuB,CAAC,MAAM,EAAA,MAAA,EAAA,CAAA,8CAAA,CAAA,EAAA;o7BAoB6B,IAAI,EAAA,EAAA,QAAA,EAAA,IAAA,EAAA,CAAA,EAAA,CAAA,EAAA,EAAA,CAAA;;ACjElF;;AAEG;;;;"}
1
+ {"version":3,"file":"mintplayer-ng-bootstrap-signature-pad.mjs","sources":["../../../../libs/mintplayer-ng-bootstrap/signature-pad/src/component/signature-pad.component.ts","../../../../libs/mintplayer-ng-bootstrap/signature-pad/mintplayer-ng-bootstrap-signature-pad.ts"],"sourcesContent":["import {\n ChangeDetectionStrategy,\n Component,\n CUSTOM_ELEMENTS_SCHEMA,\n ElementRef,\n effect,\n input,\n model,\n viewChild,\n} from '@angular/core';\nimport { MpSignaturePadElement, Signature } from '@mintplayer/web-components/signature-pad';\nimport { BsForwardAriaDirective } from '@mintplayer/ng-bootstrap/a11y';\n\n// Side-effect: ensure mp-signature-pad is registered (a type-only usage would\n// let TypeScript elide the import and the element would never be defined).\nvoid MpSignaturePadElement;\n\n/**\n * `<bs-signature-pad>` — Angular wrapper around the `<mp-signature-pad>` web\n * component. The WC owns drawing, the typed-signature alternative, Undo/Clear\n * and ARIA; this wrapper bridges the `signature` two-way model and forwards\n * the optional label overrides.\n */\n@Component({\n selector: 'bs-signature-pad',\n template: `\n <mp-signature-pad bsForwardAria\n #el\n [attr.width]=\"width()\"\n [attr.height]=\"height()\"\n [attr.input-label]=\"inputLabel()\"\n [attr.type-label]=\"typeLabel()\"\n [attr.undo-label]=\"undoLabel()\"\n [attr.clear-label]=\"clearLabel()\"\n [attr.show-accessibility-toggle]=\"showAccessibilityToggle() ? null : 'false'\"\n (signature-change)=\"onSignatureChange($event)\"\n ></mp-signature-pad>\n `,\n // max-width mirrors the WC host's own cap: an inline-block's shrink-to-fit\n // floor is its content's intrinsic width, which percentage caps on the WC\n // cannot influence — without this the wrapper holds the pad at ~310px on\n // narrow viewports and the page scrolls horizontally.\n styles: [':host { display: inline-block; max-width: 100%; }'],\n imports: [BsForwardAriaDirective],\n schemas: [CUSTOM_ELEMENTS_SCHEMA],\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class BsSignaturePadComponent {\n readonly width = input(500);\n readonly height = input(300);\n readonly inputLabel = input<string | null>(null);\n readonly typeLabel = input<string | null>(null);\n readonly undoLabel = input<string | null>(null);\n readonly clearLabel = input<string | null>(null);\n /**\n * Shows the typed alternative; named identically to bs-color-picker's input.\n * ON by default — it is the only keyboard path — so turning it off is a\n * deliberate draw-only decision.\n */\n readonly showAccessibilityToggle = input(true);\n\n // `model()` already exposes a `signatureChange` output for two-way\n // [(signature)] binding; `signature.set()` in onSignatureChange drives it.\n readonly signature = model<Signature>({ strokes: [] });\n\n readonly elementRef = viewChild.required<ElementRef<MpSignaturePadElement>>('el');\n\n constructor() {\n // Forward model writes to the WC property. Writing back the same object\n // the WC just emitted is a no-op inside Lit (same reference), so the\n // event → model → property round trip cannot loop.\n effect(() => {\n const ref = this.elementRef();\n if (!ref) return;\n ref.nativeElement.signature = this.signature();\n });\n }\n\n protected onSignatureChange(event: Event): void {\n this.signature.set((event as CustomEvent<Signature>).detail);\n }\n\n /** Remove the most recent stroke. */\n undo(): void {\n this.elementRef()?.nativeElement.undo();\n }\n\n /** Wipe strokes and typed text. */\n clear(): void {\n this.elementRef()?.nativeElement.clear();\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\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{
11
11
  .replace(/^-+/, '') // Trim - from start of text
12
12
  .replace(/-+$/, ''); // Trim - from end of text
13
13
  }
14
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: BsSlugifyPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
15
- static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "22.0.0", ngImport: i0, type: BsSlugifyPipe, isStandalone: true, name: "bsSlugify" }); }
14
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsSlugifyPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
15
+ static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "22.0.8", ngImport: i0, type: BsSlugifyPipe, isStandalone: true, name: "bsSlugify" }); }
16
16
  }
17
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: BsSlugifyPipe, decorators: [{
17
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsSlugifyPipe, decorators: [{
18
18
  type: Pipe,
19
19
  args: [{
20
20
  name: 'bsSlugify',
@@ -14,10 +14,10 @@ class BsSpinnerComponent {
14
14
  this.colorClass = computed(() => `text-${this.colors[this.color()]}`, /* @ts-ignore */
15
15
  ...(ngDevMode ? [{ debugName: "colorClass" }] : /* istanbul ignore next */ []));
16
16
  }
17
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: BsSpinnerComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
18
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.0.0", type: BsSpinnerComponent, isStandalone: true, selector: "bs-spinner", inputs: { type: { classPropertyName: "type", publicName: "type", isSignal: true, isRequired: false, transformFunction: null }, color: { classPropertyName: "color", publicName: "color", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: "<div [class]=\"[spinnerClass(), colorClass()]\" role=\"status\">\n <span class=\"visually-hidden\">Loading...</span>\n</div>\n", styles: [":host ::ng-deep .spinner-grow,:host ::ng-deep .spinner-border{display:inline-block;flex-shrink:0;width:var(--bs-spinner-width);height:var(--bs-spinner-height);vertical-align:var(--bs-spinner-vertical-align);border-radius:50%;animation:var(--bs-spinner-animation-speed) linear infinite var(--bs-spinner-animation-name)}@keyframes spinner-border{to{transform:rotate(360deg)}}:host ::ng-deep .spinner-border{--bs-spinner-width: 2rem;--bs-spinner-height: 2rem;--bs-spinner-vertical-align: -.125em;--bs-spinner-border-width: .25em;--bs-spinner-animation-speed: .75s;--bs-spinner-animation-name: spinner-border;border:var(--bs-spinner-border-width) solid currentcolor;border-right-color:transparent}:host ::ng-deep .spinner-border-sm{--bs-spinner-width: 1rem;--bs-spinner-height: 1rem;--bs-spinner-border-width: .2em}@keyframes spinner-grow{0%{transform:scale(0)}50%{opacity:1;transform:none}}:host ::ng-deep .spinner-grow{--bs-spinner-width: 2rem;--bs-spinner-height: 2rem;--bs-spinner-vertical-align: -.125em;--bs-spinner-animation-speed: .75s;--bs-spinner-animation-name: spinner-grow;background-color:currentcolor;opacity:0}:host ::ng-deep .spinner-grow-sm{--bs-spinner-width: 1rem;--bs-spinner-height: 1rem}@media(prefers-reduced-motion:reduce){:host ::ng-deep .spinner-border,:host ::ng-deep .spinner-grow{--bs-spinner-animation-speed: 1.5s}}:host ::ng-deep .spinner-border{animation:.75s linear infinite spinner-border}:host ::ng-deep .spinner-grow{animation:.75s linear infinite spinner-grow}@media(prefers-reduced-motion:reduce){:host ::ng-deep .spinner-border,:host ::ng-deep .spinner-grow{animation-duration:1.5s}}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
17
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsSpinnerComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
18
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.0.8", type: BsSpinnerComponent, isStandalone: true, selector: "bs-spinner", inputs: { type: { classPropertyName: "type", publicName: "type", isSignal: true, isRequired: false, transformFunction: null }, color: { classPropertyName: "color", publicName: "color", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: "<div [class]=\"[spinnerClass(), colorClass()]\" role=\"status\">\n <span class=\"visually-hidden\">Loading...</span>\n</div>\n", styles: [":host ::ng-deep .spinner-grow,:host ::ng-deep .spinner-border{display:inline-block;flex-shrink:0;width:var(--bs-spinner-width);height:var(--bs-spinner-height);vertical-align:var(--bs-spinner-vertical-align);border-radius:50%;animation:var(--bs-spinner-animation-speed) linear infinite var(--bs-spinner-animation-name)}@keyframes spinner-border{to{transform:rotate(360deg)}}:host ::ng-deep .spinner-border{--bs-spinner-width: 2rem;--bs-spinner-height: 2rem;--bs-spinner-vertical-align: -.125em;--bs-spinner-border-width: .25em;--bs-spinner-animation-speed: .75s;--bs-spinner-animation-name: spinner-border;border:var(--bs-spinner-border-width) solid currentcolor;border-right-color:transparent}:host ::ng-deep .spinner-border-sm{--bs-spinner-width: 1rem;--bs-spinner-height: 1rem;--bs-spinner-border-width: .2em}@keyframes spinner-grow{0%{transform:scale(0)}50%{opacity:1;transform:none}}:host ::ng-deep .spinner-grow{--bs-spinner-width: 2rem;--bs-spinner-height: 2rem;--bs-spinner-vertical-align: -.125em;--bs-spinner-animation-speed: .75s;--bs-spinner-animation-name: spinner-grow;background-color:currentcolor;opacity:0}:host ::ng-deep .spinner-grow-sm{--bs-spinner-width: 1rem;--bs-spinner-height: 1rem}@media(prefers-reduced-motion:reduce){:host ::ng-deep .spinner-border,:host ::ng-deep .spinner-grow{--bs-spinner-animation-speed: 1.5s}}:host ::ng-deep .spinner-border{animation:.75s linear infinite spinner-border}:host ::ng-deep .spinner-grow{animation:.75s linear infinite spinner-grow}@media(prefers-reduced-motion:reduce){:host ::ng-deep .spinner-border,:host ::ng-deep .spinner-grow{animation-duration:1.5s}}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
19
19
  }
20
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: BsSpinnerComponent, decorators: [{
20
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsSpinnerComponent, decorators: [{
21
21
  type: Component,
22
22
  args: [{ selector: 'bs-spinner', changeDetection: ChangeDetectionStrategy.OnPush, template: "<div [class]=\"[spinnerClass(), colorClass()]\" role=\"status\">\n <span class=\"visually-hidden\">Loading...</span>\n</div>\n", styles: [":host ::ng-deep .spinner-grow,:host ::ng-deep .spinner-border{display:inline-block;flex-shrink:0;width:var(--bs-spinner-width);height:var(--bs-spinner-height);vertical-align:var(--bs-spinner-vertical-align);border-radius:50%;animation:var(--bs-spinner-animation-speed) linear infinite var(--bs-spinner-animation-name)}@keyframes spinner-border{to{transform:rotate(360deg)}}:host ::ng-deep .spinner-border{--bs-spinner-width: 2rem;--bs-spinner-height: 2rem;--bs-spinner-vertical-align: -.125em;--bs-spinner-border-width: .25em;--bs-spinner-animation-speed: .75s;--bs-spinner-animation-name: spinner-border;border:var(--bs-spinner-border-width) solid currentcolor;border-right-color:transparent}:host ::ng-deep .spinner-border-sm{--bs-spinner-width: 1rem;--bs-spinner-height: 1rem;--bs-spinner-border-width: .2em}@keyframes spinner-grow{0%{transform:scale(0)}50%{opacity:1;transform:none}}:host ::ng-deep .spinner-grow{--bs-spinner-width: 2rem;--bs-spinner-height: 2rem;--bs-spinner-vertical-align: -.125em;--bs-spinner-animation-speed: .75s;--bs-spinner-animation-name: spinner-grow;background-color:currentcolor;opacity:0}:host ::ng-deep .spinner-grow-sm{--bs-spinner-width: 1rem;--bs-spinner-height: 1rem}@media(prefers-reduced-motion:reduce){:host ::ng-deep .spinner-border,:host ::ng-deep .spinner-grow{--bs-spinner-animation-speed: 1.5s}}:host ::ng-deep .spinner-border{animation:.75s linear infinite spinner-border}:host ::ng-deep .spinner-grow{animation:.75s linear infinite spinner-grow}@media(prefers-reduced-motion:reduce){:host ::ng-deep .spinner-border,:host ::ng-deep .spinner-grow{animation-duration:1.5s}}\n"] }]
23
23
  }], propDecorators: { type: [{ type: i0.Input, args: [{ isSignal: true, alias: "type", required: false }] }], color: [{ type: i0.Input, args: [{ isSignal: true, alias: "color", required: false }] }] } });
@@ -6,10 +6,10 @@ class BsSplitStringPipe {
6
6
  return value.split(seperator)
7
7
  .filter(line => !removeEmptyEntries || (line !== ''));
8
8
  }
9
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: BsSplitStringPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
10
- static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "22.0.0", ngImport: i0, type: BsSplitStringPipe, isStandalone: true, name: "bsSplitString" }); }
9
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsSplitStringPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
10
+ static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "22.0.8", ngImport: i0, type: BsSplitStringPipe, isStandalone: true, name: "bsSplitString" }); }
11
11
  }
12
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: BsSplitStringPipe, decorators: [{
12
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsSplitStringPipe, decorators: [{
13
13
  type: Pipe,
14
14
  args: [{
15
15
  name: 'bsSplitString',
@@ -91,10 +91,10 @@ class BsSplitterComponent {
91
91
  event.stopPropagation();
92
92
  this.resizeEnd.emit(event.detail);
93
93
  }
94
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: BsSplitterComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
95
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "22.0.0", type: BsSplitterComponent, isStandalone: true, selector: "bs-splitter", inputs: { orientation: { classPropertyName: "orientation", publicName: "orientation", isSignal: true, isRequired: false, transformFunction: null }, minPanelSize: { classPropertyName: "minPanelSize", publicName: "minPanelSize", isSignal: true, isRequired: false, transformFunction: null }, touchMode: { classPropertyName: "touchMode", publicName: "touchMode", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { resizeStart: "resizeStart", resizing: "resizing", resizeEnd: "resizeEnd" }, viewQueries: [{ propertyName: "element", first: true, predicate: ["element"], descendants: true, isSignal: true }], ngImport: i0, template: "<mp-splitter bsForwardAria\n #element\n [attr.orientation]=\"orientation()\"\n [attr.min-panel-size]=\"minPanelSizeAttr()\"\n [attr.touch-mode]=\"touchModeAttr()\"\n (resize-start)=\"onResizeStart($event)\"\n (resizing)=\"onResizing($event)\"\n (resize-end)=\"onResizeEnd($event)\">\n <ng-content></ng-content>\n</mp-splitter>\n", styles: ["bs-splitter{display:block;width:100%;height:100%}mp-splitter:not(:defined){display:flex;width:100%;height:100%;flex-direction:row}mp-splitter:not(:defined)>*{flex-grow:1;overflow:hidden;position:relative}mp-splitter:not(:defined)>*:not(:first-child){margin-left:-3px}mp-splitter:not(:defined)>*:not(:last-child){margin-right:-3px}mp-splitter:not(:defined)>*:not(:last-child):after{content:\"\";display:block;position:absolute;right:-7px;top:0;width:14px;height:100%;border-left:3px solid transparent;border-right:3px solid transparent;background-color:var(--bs-border-color, #eee);background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAeCAYAAADkftS9AAAAIklEQVQoU2M4c+bMfxAGAgYYmwGrIIiDjrELjpo5aiZeMwF+yNnOs5KSvgAAAABJRU5ErkJggg==);background-position:center center;background-repeat:no-repeat;background-clip:content-box;z-index:3}mp-splitter[orientation=vertical]:not(:defined){flex-direction:column}mp-splitter[orientation=vertical]:not(:defined)>*:not(:first-child){margin-left:0;margin-top:-3px}mp-splitter[orientation=vertical]:not(:defined)>*:not(:last-child){margin-right:0;margin-bottom:-3px}mp-splitter[orientation=vertical]:not(:defined)>*:not(:last-child):after{right:0;bottom:-7px;top:auto;width:100%;height:14px;border-left:0;border-right:0;border-top:3px solid transparent;border-bottom:3px solid transparent;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAB4AAAAFCAMAAABl/6zIAAAABlBMVEUAAADMzMzIT8AyAAAAAXRSTlMAQObYZgAAABRJREFUeAFjYGRkwIMJSeMHlBkOABP7AEGzSuPKAAAAAElFTkSuQmCC)}\n"], dependencies: [{ kind: "directive", type: BsForwardAriaDirective, selector: "[bsForwardAria]" }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
94
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsSplitterComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
95
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "22.0.8", type: BsSplitterComponent, isStandalone: true, selector: "bs-splitter", inputs: { orientation: { classPropertyName: "orientation", publicName: "orientation", isSignal: true, isRequired: false, transformFunction: null }, minPanelSize: { classPropertyName: "minPanelSize", publicName: "minPanelSize", isSignal: true, isRequired: false, transformFunction: null }, touchMode: { classPropertyName: "touchMode", publicName: "touchMode", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { resizeStart: "resizeStart", resizing: "resizing", resizeEnd: "resizeEnd" }, viewQueries: [{ propertyName: "element", first: true, predicate: ["element"], descendants: true, isSignal: true }], ngImport: i0, template: "<mp-splitter bsForwardAria\n #element\n [attr.orientation]=\"orientation()\"\n [attr.min-panel-size]=\"minPanelSizeAttr()\"\n [attr.touch-mode]=\"touchModeAttr()\"\n (resize-start)=\"onResizeStart($event)\"\n (resizing)=\"onResizing($event)\"\n (resize-end)=\"onResizeEnd($event)\">\n <ng-content></ng-content>\n</mp-splitter>\n", styles: ["bs-splitter{display:block;width:100%;height:100%}mp-splitter:not(:defined){display:flex;width:100%;height:100%;flex-direction:row}mp-splitter:not(:defined)>*{flex-grow:1;overflow:hidden;position:relative}mp-splitter:not(:defined)>*:not(:first-child){margin-left:-3px}mp-splitter:not(:defined)>*:not(:last-child){margin-right:-3px}mp-splitter:not(:defined)>*:not(:last-child):after{content:\"\";display:block;position:absolute;right:-7px;top:0;width:14px;height:100%;border-left:3px solid transparent;border-right:3px solid transparent;background-color:var(--bs-border-color, #eee);background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAeCAYAAADkftS9AAAAIklEQVQoU2M4c+bMfxAGAgYYmwGrIIiDjrELjpo5aiZeMwF+yNnOs5KSvgAAAABJRU5ErkJggg==);background-position:center center;background-repeat:no-repeat;background-clip:content-box;z-index:3}mp-splitter[orientation=vertical]:not(:defined){flex-direction:column}mp-splitter[orientation=vertical]:not(:defined)>*:not(:first-child){margin-left:0;margin-top:-3px}mp-splitter[orientation=vertical]:not(:defined)>*:not(:last-child){margin-right:0;margin-bottom:-3px}mp-splitter[orientation=vertical]:not(:defined)>*:not(:last-child):after{right:0;bottom:-7px;top:auto;width:100%;height:14px;border-left:0;border-right:0;border-top:3px solid transparent;border-bottom:3px solid transparent;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAB4AAAAFCAMAAABl/6zIAAAABlBMVEUAAADMzMzIT8AyAAAAAXRSTlMAQObYZgAAABRJREFUeAFjYGRkwIMJSeMHlBkOABP7AEGzSuPKAAAAAElFTkSuQmCC)}\n"], dependencies: [{ kind: "directive", type: BsForwardAriaDirective, selector: "[bsForwardAria]" }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
96
96
  }
97
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: BsSplitterComponent, decorators: [{
97
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsSplitterComponent, decorators: [{
98
98
  type: Component,
99
99
  args: [{ selector: 'bs-splitter', imports: [BsForwardAriaDirective], changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, schemas: [CUSTOM_ELEMENTS_SCHEMA], template: "<mp-splitter bsForwardAria\n #element\n [attr.orientation]=\"orientation()\"\n [attr.min-panel-size]=\"minPanelSizeAttr()\"\n [attr.touch-mode]=\"touchModeAttr()\"\n (resize-start)=\"onResizeStart($event)\"\n (resizing)=\"onResizing($event)\"\n (resize-end)=\"onResizeEnd($event)\">\n <ng-content></ng-content>\n</mp-splitter>\n", styles: ["bs-splitter{display:block;width:100%;height:100%}mp-splitter:not(:defined){display:flex;width:100%;height:100%;flex-direction:row}mp-splitter:not(:defined)>*{flex-grow:1;overflow:hidden;position:relative}mp-splitter:not(:defined)>*:not(:first-child){margin-left:-3px}mp-splitter:not(:defined)>*:not(:last-child){margin-right:-3px}mp-splitter:not(:defined)>*:not(:last-child):after{content:\"\";display:block;position:absolute;right:-7px;top:0;width:14px;height:100%;border-left:3px solid transparent;border-right:3px solid transparent;background-color:var(--bs-border-color, #eee);background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAeCAYAAADkftS9AAAAIklEQVQoU2M4c+bMfxAGAgYYmwGrIIiDjrELjpo5aiZeMwF+yNnOs5KSvgAAAABJRU5ErkJggg==);background-position:center center;background-repeat:no-repeat;background-clip:content-box;z-index:3}mp-splitter[orientation=vertical]:not(:defined){flex-direction:column}mp-splitter[orientation=vertical]:not(:defined)>*:not(:first-child){margin-left:0;margin-top:-3px}mp-splitter[orientation=vertical]:not(:defined)>*:not(:last-child){margin-right:0;margin-bottom:-3px}mp-splitter[orientation=vertical]:not(:defined)>*:not(:last-child):after{right:0;bottom:-7px;top:auto;width:100%;height:14px;border-left:0;border-right:0;border-top:3px solid transparent;border-bottom:3px solid transparent;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAB4AAAAFCAMAAABl/6zIAAAABlBMVEUAAADMzMzIT8AyAAAAAXRSTlMAQObYZgAAABRJREFUeAFjYGRkwIMJSeMHlBkOABP7AEGzSuPKAAAAAElFTkSuQmCC)}\n"] }]
100
100
  }], propDecorators: { orientation: [{ type: i0.Input, args: [{ isSignal: true, alias: "orientation", required: false }] }], minPanelSize: [{ type: i0.Input, args: [{ isSignal: true, alias: "minPanelSize", required: false }] }], touchMode: [{ type: i0.Input, args: [{ isSignal: true, alias: "touchMode", required: false }] }], resizeStart: [{ type: i0.Output, args: ["resizeStart"] }], resizing: [{ type: i0.Output, args: ["resizing"] }], resizeEnd: [{ type: i0.Output, args: ["resizeEnd"] }], element: [{ type: i0.ViewChild, args: ['element', { isSignal: true }] }] } });
@@ -3,10 +3,10 @@ import { Directive, viewChild, effect, ChangeDetectionStrategy, Component } from
3
3
  import { BsObserveSizeDirective } from '@mintplayer/ng-bootstrap/observe-size';
4
4
 
5
5
  class BsStickyFooterParentDirective {
6
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: BsStickyFooterParentDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
7
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.0.0", type: BsStickyFooterParentDirective, isStandalone: true, selector: "[bsStickyFooterParent]", host: { properties: { "style.margin-bottom.px": "marginBottom" } }, ngImport: i0 }); }
6
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsStickyFooterParentDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
7
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.0.8", type: BsStickyFooterParentDirective, isStandalone: true, selector: "[bsStickyFooterParent]", host: { properties: { "style.margin-bottom.px": "marginBottom" } }, ngImport: i0 }); }
8
8
  }
9
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: BsStickyFooterParentDirective, decorators: [{
9
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsStickyFooterParentDirective, decorators: [{
10
10
  type: Directive,
11
11
  args: [{
12
12
  selector: '[bsStickyFooterParent]',
@@ -20,7 +20,8 @@ class BsStickyFooterComponent {
20
20
  constructor(parent, injector) {
21
21
  this.parent = parent;
22
22
  this.injector = injector;
23
- this.sizeObserver = viewChild.required('sizeObserver');
23
+ this.sizeObserver = viewChild.required('sizeObserver', /* @ts-ignore */
24
+ ...(ngDevMode ? [{ debugName: "sizeObserver" }] : /* istanbul ignore next */ []));
24
25
  }
25
26
  ngAfterViewInit() {
26
27
  effect(() => {
@@ -30,10 +31,10 @@ class BsStickyFooterComponent {
30
31
  }
31
32
  }, { injector: this.injector });
32
33
  }
33
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: BsStickyFooterComponent, deps: [{ token: BsStickyFooterParentDirective }, { token: i0.Injector }], target: i0.ɵɵFactoryTarget.Component }); }
34
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "22.0.0", type: BsStickyFooterComponent, isStandalone: true, selector: "bs-sticky-footer", viewQueries: [{ propertyName: "sizeObserver", first: true, predicate: ["sizeObserver"], descendants: true, isSignal: true }], ngImport: i0, template: "<footer bsObserveSize #sizeObserver=\"bsObserveSize\" class=\"footer position-absolute\">\n <ng-content></ng-content>\n</footer>", styles: [".footer{bottom:0;left:0;right:0}::ng-deep html{position:relative;min-height:100%}\n"], dependencies: [{ kind: "directive", type: BsObserveSizeDirective, selector: "[bsObserveSize]", exportAs: ["bsObserveSize"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
34
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsStickyFooterComponent, deps: [{ token: BsStickyFooterParentDirective }, { token: i0.Injector }], target: i0.ɵɵFactoryTarget.Component }); }
35
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "22.0.8", type: BsStickyFooterComponent, isStandalone: true, selector: "bs-sticky-footer", viewQueries: [{ propertyName: "sizeObserver", first: true, predicate: ["sizeObserver"], descendants: true, isSignal: true }], ngImport: i0, template: "<footer bsObserveSize #sizeObserver=\"bsObserveSize\" class=\"footer position-absolute\">\n <ng-content></ng-content>\n</footer>", styles: [".footer{bottom:0;left:0;right:0}::ng-deep html{position:relative;min-height:100%}\n"], dependencies: [{ kind: "directive", type: BsObserveSizeDirective, selector: "[bsObserveSize]", exportAs: ["bsObserveSize"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
35
36
  }
36
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: BsStickyFooterComponent, decorators: [{
37
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsStickyFooterComponent, decorators: [{
37
38
  type: Component,
38
39
  args: [{ selector: 'bs-sticky-footer', imports: [BsObserveSizeDirective], changeDetection: ChangeDetectionStrategy.OnPush, template: "<footer bsObserveSize #sizeObserver=\"bsObserveSize\" class=\"footer position-absolute\">\n <ng-content></ng-content>\n</footer>", styles: [".footer{bottom:0;left:0;right:0}::ng-deep html{position:relative;min-height:100%}\n"] }]
39
40
  }], ctorParameters: () => [{ type: BsStickyFooterParentDirective }, { type: i0.Injector }], propDecorators: { sizeObserver: [{ type: i0.ViewChild, args: ['sizeObserver', { isSignal: true }] }] } });
@@ -1 +1 @@
1
- {"version":3,"file":"mintplayer-ng-bootstrap-sticky-footer.mjs","sources":["../../../../libs/mintplayer-ng-bootstrap/sticky-footer/src/sticky-footer-parent/sticky-footer-parent.directive.ts","../../../../libs/mintplayer-ng-bootstrap/sticky-footer/src/sticky-footer/sticky-footer.component.ts","../../../../libs/mintplayer-ng-bootstrap/sticky-footer/src/sticky-footer/sticky-footer.component.html","../../../../libs/mintplayer-ng-bootstrap/sticky-footer/mintplayer-ng-bootstrap-sticky-footer.ts"],"sourcesContent":["import { Directive } from '@angular/core';\n\n@Directive({\n selector: '[bsStickyFooterParent]',\n host: {\n '[style.margin-bottom.px]': 'marginBottom',\n },\n})\nexport class BsStickyFooterParentDirective {\n marginBottom?: number;\n}\n","import { AfterViewInit, Component, effect, Injector, viewChild, ChangeDetectionStrategy} from '@angular/core';\nimport { BsStickyFooterParentDirective } from '../sticky-footer-parent/sticky-footer-parent.directive';\nimport { BsObserveSizeDirective } from '@mintplayer/ng-bootstrap/observe-size';\n\n@Component({\n selector: 'bs-sticky-footer',\n templateUrl: './sticky-footer.component.html',\n styleUrls: ['./sticky-footer.component.scss'],\n imports: [BsObserveSizeDirective],\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class BsStickyFooterComponent implements AfterViewInit {\n constructor(\n private parent: BsStickyFooterParentDirective,\n private injector: Injector\n ) {}\n\n ngAfterViewInit() {\n effect(() => {\n const height = this.sizeObserver().height();\n if (height !== undefined) {\n this.parent.marginBottom = height;\n }\n }, { injector: this.injector });\n }\n\n readonly sizeObserver = viewChild.required<BsObserveSizeDirective>('sizeObserver');\n}\n","<footer bsObserveSize #sizeObserver=\"bsObserveSize\" class=\"footer position-absolute\">\n <ng-content></ng-content>\n</footer>","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["i1.BsStickyFooterParentDirective"],"mappings":";;;;MAQa,6BAA6B,CAAA;8GAA7B,6BAA6B,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;kGA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AAA,CAAA,cAAA,CAAA,EAAA,WAAA,EAAA,IAAA,EAAA,QAAA,EAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,EAAA,EAAA,QAAA,ECXpC,qIAES,EAAA,MAAA,EAAA,CAAA,qFAAA,CAAA,EAAA,YAAA,EAAA,CAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EDMG,sBAAsB,EAAA,QAAA,EAAA,iBAAA,EAAA,QAAA,EAAA,CAAA,eAAA,CAAA,EAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,CAAA,CAAA;;2FAGrB,uBAAuB,EAAA,UAAA,EAAA,CAAA;kBAPnC,SAAS;AACE,YAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,kBAAkB,WAGnB,CAAC,sBAAsB,CAAC,EAAA,eAAA,EAChB,uBAAuB,CAAC,MAAM,EAAA,QAAA,EAAA,qIAAA,EAAA,MAAA,EAAA,CAAA,qFAAA,CAAA,EAAA;kKAiBoB,cAAc,EAAA,EAAA,QAAA,EAAA,IAAA,EAAA,CAAA,EAAA,CAAA,EAAA,EAAA,CAAA;;AE1BnF;;AAEG;;;;"}
1
+ {"version":3,"file":"mintplayer-ng-bootstrap-sticky-footer.mjs","sources":["../../../../libs/mintplayer-ng-bootstrap/sticky-footer/src/sticky-footer-parent/sticky-footer-parent.directive.ts","../../../../libs/mintplayer-ng-bootstrap/sticky-footer/src/sticky-footer/sticky-footer.component.ts","../../../../libs/mintplayer-ng-bootstrap/sticky-footer/src/sticky-footer/sticky-footer.component.html","../../../../libs/mintplayer-ng-bootstrap/sticky-footer/mintplayer-ng-bootstrap-sticky-footer.ts"],"sourcesContent":["import { Directive } from '@angular/core';\n\n@Directive({\n selector: '[bsStickyFooterParent]',\n host: {\n '[style.margin-bottom.px]': 'marginBottom',\n },\n})\nexport class BsStickyFooterParentDirective {\n marginBottom?: number;\n}\n","import { AfterViewInit, Component, effect, Injector, viewChild, ChangeDetectionStrategy} from '@angular/core';\nimport { BsStickyFooterParentDirective } from '../sticky-footer-parent/sticky-footer-parent.directive';\nimport { BsObserveSizeDirective } from '@mintplayer/ng-bootstrap/observe-size';\n\n@Component({\n selector: 'bs-sticky-footer',\n templateUrl: './sticky-footer.component.html',\n styleUrls: ['./sticky-footer.component.scss'],\n imports: [BsObserveSizeDirective],\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class BsStickyFooterComponent implements AfterViewInit {\n constructor(\n private parent: BsStickyFooterParentDirective,\n private injector: Injector\n ) {}\n\n ngAfterViewInit() {\n effect(() => {\n const height = this.sizeObserver().height();\n if (height !== undefined) {\n this.parent.marginBottom = height;\n }\n }, { injector: this.injector });\n }\n\n readonly sizeObserver = viewChild.required<BsObserveSizeDirective>('sizeObserver');\n}\n","<footer bsObserveSize #sizeObserver=\"bsObserveSize\" class=\"footer position-absolute\">\n <ng-content></ng-content>\n</footer>","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["i1.BsStickyFooterParentDirective"],"mappings":";;;;MAQa,6BAA6B,CAAA;8GAA7B,6BAA6B,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;kGAA7B,6BAA6B,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,wBAAA,EAAA,IAAA,EAAA,EAAA,UAAA,EAAA,EAAA,wBAAA,EAAA,cAAA,EAAA,EAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA,CAAA;;2FAA7B,6BAA6B,EAAA,UAAA,EAAA,CAAA;kBANzC,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACT,oBAAA,QAAQ,EAAE,wBAAwB;AAClC,oBAAA,IAAI,EAAE;AACJ,wBAAA,0BAA0B,EAAE,cAAc;AAC3C,qBAAA;AACF,iBAAA;;;MCIY,uBAAuB,CAAA;IAClC,WAAA,CACU,MAAqC,EACrC,QAAkB,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