@mintplayer/ng-bootstrap 22.30.0 → 22.32.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 (149) hide show
  1. package/README.md +12 -11
  2. package/_bootstrap.scss +2 -4
  3. package/a11y/forms/package.json +4 -0
  4. package/fesm2022/mintplayer-ng-bootstrap-a11y-forms.mjs +120 -0
  5. package/fesm2022/mintplayer-ng-bootstrap-a11y-forms.mjs.map +1 -0
  6. package/fesm2022/mintplayer-ng-bootstrap-a11y.mjs +2 -109
  7. package/fesm2022/mintplayer-ng-bootstrap-a11y.mjs.map +1 -1
  8. package/fesm2022/mintplayer-ng-bootstrap-accordion.mjs +3 -1
  9. package/fesm2022/mintplayer-ng-bootstrap-accordion.mjs.map +1 -1
  10. package/fesm2022/mintplayer-ng-bootstrap-alert.mjs +7 -3
  11. package/fesm2022/mintplayer-ng-bootstrap-alert.mjs.map +1 -1
  12. package/fesm2022/mintplayer-ng-bootstrap-badge.mjs +7 -3
  13. package/fesm2022/mintplayer-ng-bootstrap-badge.mjs.map +1 -1
  14. package/fesm2022/mintplayer-ng-bootstrap-breadcrumb.mjs +12 -5
  15. package/fesm2022/mintplayer-ng-bootstrap-breadcrumb.mjs.map +1 -1
  16. package/fesm2022/mintplayer-ng-bootstrap-button-group.mjs +7 -3
  17. package/fesm2022/mintplayer-ng-bootstrap-button-group.mjs.map +1 -1
  18. package/fesm2022/mintplayer-ng-bootstrap-card.mjs +74 -83
  19. package/fesm2022/mintplayer-ng-bootstrap-card.mjs.map +1 -1
  20. package/fesm2022/mintplayer-ng-bootstrap-carousel.mjs +3 -0
  21. package/fesm2022/mintplayer-ng-bootstrap-carousel.mjs.map +1 -1
  22. package/fesm2022/mintplayer-ng-bootstrap-checkbox.mjs +9 -5
  23. package/fesm2022/mintplayer-ng-bootstrap-checkbox.mjs.map +1 -1
  24. package/fesm2022/mintplayer-ng-bootstrap-close.mjs +7 -3
  25. package/fesm2022/mintplayer-ng-bootstrap-close.mjs.map +1 -1
  26. package/fesm2022/mintplayer-ng-bootstrap-datatable.mjs +9 -3
  27. package/fesm2022/mintplayer-ng-bootstrap-datatable.mjs.map +1 -1
  28. package/fesm2022/mintplayer-ng-bootstrap-datepicker.mjs +4 -2
  29. package/fesm2022/mintplayer-ng-bootstrap-datepicker.mjs.map +1 -1
  30. package/fesm2022/mintplayer-ng-bootstrap-datetime-picker.mjs +4 -2
  31. package/fesm2022/mintplayer-ng-bootstrap-datetime-picker.mjs.map +1 -1
  32. package/fesm2022/mintplayer-ng-bootstrap-dropdown-divider.mjs +9 -2
  33. package/fesm2022/mintplayer-ng-bootstrap-dropdown-divider.mjs.map +1 -1
  34. package/fesm2022/mintplayer-ng-bootstrap-dropdown-menu.mjs +12 -4
  35. package/fesm2022/mintplayer-ng-bootstrap-dropdown-menu.mjs.map +1 -1
  36. package/fesm2022/mintplayer-ng-bootstrap-file-manager.mjs +3 -1
  37. package/fesm2022/mintplayer-ng-bootstrap-file-manager.mjs.map +1 -1
  38. package/fesm2022/mintplayer-ng-bootstrap-file-upload.mjs +1 -1
  39. package/fesm2022/mintplayer-ng-bootstrap-file-upload.mjs.map +1 -1
  40. package/fesm2022/mintplayer-ng-bootstrap-floating-labels.mjs +6 -2
  41. package/fesm2022/mintplayer-ng-bootstrap-floating-labels.mjs.map +1 -1
  42. package/fesm2022/mintplayer-ng-bootstrap-for.mjs +8 -4
  43. package/fesm2022/mintplayer-ng-bootstrap-for.mjs.map +1 -1
  44. package/fesm2022/mintplayer-ng-bootstrap-form.mjs +7 -2
  45. package/fesm2022/mintplayer-ng-bootstrap-form.mjs.map +1 -1
  46. package/fesm2022/mintplayer-ng-bootstrap-grid.mjs +40 -12
  47. package/fesm2022/mintplayer-ng-bootstrap-grid.mjs.map +1 -1
  48. package/fesm2022/mintplayer-ng-bootstrap-input-group.mjs +3 -1
  49. package/fesm2022/mintplayer-ng-bootstrap-input-group.mjs.map +1 -1
  50. package/fesm2022/mintplayer-ng-bootstrap-list-group.mjs +23 -6
  51. package/fesm2022/mintplayer-ng-bootstrap-list-group.mjs.map +1 -1
  52. package/fesm2022/mintplayer-ng-bootstrap-machine.mjs +16 -4
  53. package/fesm2022/mintplayer-ng-bootstrap-machine.mjs.map +1 -1
  54. package/fesm2022/mintplayer-ng-bootstrap-modal.mjs +23 -7
  55. package/fesm2022/mintplayer-ng-bootstrap-modal.mjs.map +1 -1
  56. package/fesm2022/mintplayer-ng-bootstrap-nav.mjs +93 -0
  57. package/fesm2022/mintplayer-ng-bootstrap-nav.mjs.map +1 -0
  58. package/fesm2022/mintplayer-ng-bootstrap-navbar-toggler.mjs +7 -3
  59. package/fesm2022/mintplayer-ng-bootstrap-navbar-toggler.mjs.map +1 -1
  60. package/fesm2022/mintplayer-ng-bootstrap-navbar.mjs +43 -1
  61. package/fesm2022/mintplayer-ng-bootstrap-navbar.mjs.map +1 -1
  62. package/fesm2022/mintplayer-ng-bootstrap-offcanvas.mjs +15 -6
  63. package/fesm2022/mintplayer-ng-bootstrap-offcanvas.mjs.map +1 -1
  64. package/fesm2022/mintplayer-ng-bootstrap-otp-input.mjs +4 -2
  65. package/fesm2022/mintplayer-ng-bootstrap-otp-input.mjs.map +1 -1
  66. package/fesm2022/mintplayer-ng-bootstrap-pagination.mjs +7 -4
  67. package/fesm2022/mintplayer-ng-bootstrap-pagination.mjs.map +1 -1
  68. package/fesm2022/mintplayer-ng-bootstrap-phone-input.mjs +4 -2
  69. package/fesm2022/mintplayer-ng-bootstrap-phone-input.mjs.map +1 -1
  70. package/fesm2022/mintplayer-ng-bootstrap-placeholder.mjs +22 -16
  71. package/fesm2022/mintplayer-ng-bootstrap-placeholder.mjs.map +1 -1
  72. package/fesm2022/mintplayer-ng-bootstrap-popover.mjs +22 -7
  73. package/fesm2022/mintplayer-ng-bootstrap-popover.mjs.map +1 -1
  74. package/fesm2022/mintplayer-ng-bootstrap-progress-bar.mjs +13 -6
  75. package/fesm2022/mintplayer-ng-bootstrap-progress-bar.mjs.map +1 -1
  76. package/fesm2022/mintplayer-ng-bootstrap-query-builder.mjs +4 -0
  77. package/fesm2022/mintplayer-ng-bootstrap-query-builder.mjs.map +1 -1
  78. package/fesm2022/mintplayer-ng-bootstrap-radio.mjs +9 -5
  79. package/fesm2022/mintplayer-ng-bootstrap-radio.mjs.map +1 -1
  80. package/fesm2022/mintplayer-ng-bootstrap-range.mjs +7 -3
  81. package/fesm2022/mintplayer-ng-bootstrap-range.mjs.map +1 -1
  82. package/fesm2022/mintplayer-ng-bootstrap-scheduler.mjs +2 -0
  83. package/fesm2022/mintplayer-ng-bootstrap-scheduler.mjs.map +1 -1
  84. package/fesm2022/mintplayer-ng-bootstrap-scrollspy.mjs +19 -9
  85. package/fesm2022/mintplayer-ng-bootstrap-scrollspy.mjs.map +1 -1
  86. package/fesm2022/mintplayer-ng-bootstrap-select.mjs +4 -2
  87. package/fesm2022/mintplayer-ng-bootstrap-select.mjs.map +1 -1
  88. package/fesm2022/mintplayer-ng-bootstrap-signature-pad.mjs +4 -2
  89. package/fesm2022/mintplayer-ng-bootstrap-signature-pad.mjs.map +1 -1
  90. package/fesm2022/mintplayer-ng-bootstrap-spinner.mjs +25 -11
  91. package/fesm2022/mintplayer-ng-bootstrap-spinner.mjs.map +1 -1
  92. package/fesm2022/mintplayer-ng-bootstrap-sticky-footer.mjs +14 -4
  93. package/fesm2022/mintplayer-ng-bootstrap-sticky-footer.mjs.map +1 -1
  94. package/fesm2022/mintplayer-ng-bootstrap-tab-control.mjs +3 -1
  95. package/fesm2022/mintplayer-ng-bootstrap-tab-control.mjs.map +1 -1
  96. package/fesm2022/mintplayer-ng-bootstrap-table.mjs +9 -14
  97. package/fesm2022/mintplayer-ng-bootstrap-table.mjs.map +1 -1
  98. package/fesm2022/mintplayer-ng-bootstrap-timepicker.mjs +5 -2
  99. package/fesm2022/mintplayer-ng-bootstrap-timepicker.mjs.map +1 -1
  100. package/fesm2022/mintplayer-ng-bootstrap-toast.mjs +23 -8
  101. package/fesm2022/mintplayer-ng-bootstrap-toast.mjs.map +1 -1
  102. package/fesm2022/mintplayer-ng-bootstrap-tooltip.mjs +7 -3
  103. package/fesm2022/mintplayer-ng-bootstrap-tooltip.mjs.map +1 -1
  104. package/fesm2022/mintplayer-ng-bootstrap-typeahead.mjs +4 -1
  105. package/fesm2022/mintplayer-ng-bootstrap-typeahead.mjs.map +1 -1
  106. package/nav/package.json +4 -0
  107. package/package.json +11 -8
  108. package/types/mintplayer-ng-bootstrap-a11y-forms.d.ts +64 -0
  109. package/types/mintplayer-ng-bootstrap-a11y.d.ts +2 -62
  110. package/types/mintplayer-ng-bootstrap-alert.d.ts +1 -0
  111. package/types/mintplayer-ng-bootstrap-badge.d.ts +1 -0
  112. package/types/mintplayer-ng-bootstrap-breadcrumb.d.ts +2 -0
  113. package/types/mintplayer-ng-bootstrap-button-group.d.ts +1 -0
  114. package/types/mintplayer-ng-bootstrap-card.d.ts +14 -3
  115. package/types/mintplayer-ng-bootstrap-checkbox.d.ts +1 -1
  116. package/types/mintplayer-ng-bootstrap-close.d.ts +1 -0
  117. package/types/mintplayer-ng-bootstrap-datatable.d.ts +4 -2
  118. package/types/mintplayer-ng-bootstrap-datepicker.d.ts +1 -1
  119. package/types/mintplayer-ng-bootstrap-datetime-picker.d.ts +1 -1
  120. package/types/mintplayer-ng-bootstrap-dropdown-divider.d.ts +1 -0
  121. package/types/mintplayer-ng-bootstrap-for.d.ts +5 -5
  122. package/types/mintplayer-ng-bootstrap-form.d.ts +1 -0
  123. package/types/mintplayer-ng-bootstrap-grid.d.ts +14 -0
  124. package/types/mintplayer-ng-bootstrap-list-group.d.ts +15 -8
  125. package/types/mintplayer-ng-bootstrap-machine.d.ts +13 -2
  126. package/types/mintplayer-ng-bootstrap-modal.d.ts +2 -0
  127. package/types/mintplayer-ng-bootstrap-nav.d.ts +52 -0
  128. package/types/mintplayer-ng-bootstrap-navbar-toggler.d.ts +1 -0
  129. package/types/mintplayer-ng-bootstrap-navbar.d.ts +17 -1
  130. package/types/mintplayer-ng-bootstrap-otp-input.d.ts +1 -1
  131. package/types/mintplayer-ng-bootstrap-pagination.d.ts +1 -0
  132. package/types/mintplayer-ng-bootstrap-phone-input.d.ts +1 -1
  133. package/types/mintplayer-ng-bootstrap-placeholder.d.ts +10 -10
  134. package/types/mintplayer-ng-bootstrap-popover.d.ts +3 -0
  135. package/types/mintplayer-ng-bootstrap-progress-bar.d.ts +2 -0
  136. package/types/mintplayer-ng-bootstrap-radio.d.ts +1 -1
  137. package/types/mintplayer-ng-bootstrap-range.d.ts +1 -0
  138. package/types/mintplayer-ng-bootstrap-scrollspy.d.ts +1 -0
  139. package/types/mintplayer-ng-bootstrap-select.d.ts +1 -1
  140. package/types/mintplayer-ng-bootstrap-signature-pad.d.ts +1 -1
  141. package/types/mintplayer-ng-bootstrap-spinner.d.ts +14 -7
  142. package/types/mintplayer-ng-bootstrap-sticky-footer.d.ts +7 -1
  143. package/types/mintplayer-ng-bootstrap-table.d.ts +2 -6
  144. package/types/mintplayer-ng-bootstrap-timepicker.d.ts +1 -1
  145. package/types/mintplayer-ng-bootstrap-toast.d.ts +2 -0
  146. package/container/package.json +0 -4
  147. package/fesm2022/mintplayer-ng-bootstrap-container.mjs +0 -18
  148. package/fesm2022/mintplayer-ng-bootstrap-container.mjs.map +0 -1
  149. package/types/mintplayer-ng-bootstrap-container.d.ts +0 -8
@@ -1,10 +1,12 @@
1
1
  import * as i0 from '@angular/core';
2
2
  import { inject, forwardRef, Directive, ElementRef, input, contentChildren, signal, effect, viewChild, model, computed, afterRenderEffect, ChangeDetectionStrategy, Component } from '@angular/core';
3
+ import { useBootstrap, MpPropsDirective } from '@mintplayer/ng-bootstrap/machine';
4
+ import { bootstrapForms } from '@mintplayer/ui-core/bootstrap/forms';
3
5
  import { NgTemplateOutlet } from '@angular/common';
4
6
  import { effectiveIndeterminate, checkboxClasses, connectCheckbox } from '@mintplayer/ui-core/checkbox';
5
- import * as i2 from '@mintplayer/ng-bootstrap/a11y';
6
- import { BsControlValidityDirective, takeHostAria, BsIdService } from '@mintplayer/ng-bootstrap/a11y';
7
- import { MpPropsDirective } from '@mintplayer/ng-bootstrap/machine';
7
+ import { takeHostAria, BsIdService } from '@mintplayer/ng-bootstrap/a11y';
8
+ import * as i2 from '@mintplayer/ng-bootstrap/a11y/forms';
9
+ import { BsControlValidityDirective } from '@mintplayer/ng-bootstrap/a11y/forms';
8
10
  import { NG_VALUE_ACCESSOR } from '@angular/forms';
9
11
 
10
12
  /**
@@ -241,6 +243,8 @@ class BsCheckboxComponent {
241
243
  return { ...bags, input: inputBag, labelFor: bags.labelFor === null ? null : String(inputBag['id']) };
242
244
  }, /* @ts-ignore */
243
245
  ...(ngDevMode ? [{ debugName: "bags" }] : /* istanbul ignore next */ []));
246
+ // #452: the forms partial ships with this component, scoped to the elements it stamps (data-mps="checkbox").
247
+ useBootstrap(bootstrapForms);
244
248
  // `indeterminate` has no attribute, so it is a browser-only property write;
245
249
  // aria-checked="mixed" in the bag already carries it in the SSR output.
246
250
  afterRenderEffect(() => {
@@ -255,7 +259,7 @@ class BsCheckboxComponent {
255
259
  this.indeterminate.set(false);
256
260
  }
257
261
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsCheckboxComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
258
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.8", type: BsCheckboxComponent, isStandalone: true, selector: "bs-checkbox, bs-toggle-button", inputs: { type: { classPropertyName: "type", publicName: "type", isSignal: true, isRequired: false, transformFunction: null }, color: { classPropertyName: "color", publicName: "color", isSignal: true, isRequired: false, transformFunction: null }, isToggled: { classPropertyName: "isToggled", publicName: "isToggled", isSignal: true, isRequired: false, transformFunction: null }, indeterminate: { classPropertyName: "indeterminate", publicName: "indeterminate", isSignal: true, isRequired: false, transformFunction: null }, name: { classPropertyName: "name", publicName: "name", isSignal: true, isRequired: false, transformFunction: null }, value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, group: { classPropertyName: "group", publicName: "group", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { isToggled: "isToggledChange", indeterminate: "indeterminateChange" }, host: { classAttribute: "d-inline-block" }, viewQueries: [{ propertyName: "inputRef", first: true, predicate: ["input"], descendants: true, isSignal: true }], hostDirectives: [{ directive: BsCheckboxValueAccessor }, { directive: i2.BsControlValidityDirective, inputs: ["errorMessages", "errorMessages"] }], ngImport: i0, template: "@if (classes().root; as rootClass) {\n <label [class]=\"rootClass\">\n <input #input type=\"checkbox\" [class]=\"classes().input\" [mpProps]=\"bags().input\" [checked]=\"checked()\" [attr.checked]=\"checked() ? '' : null\" (change)=\"onChange($event)\">\n <span [class]=\"classes().label\"><ng-container [ngTemplateOutlet]=\"content\"></ng-container></span>\n </label>\n} @else {\n <input #input type=\"checkbox\" [class]=\"classes().input\" [mpProps]=\"bags().input\" [checked]=\"checked()\" [attr.checked]=\"checked() ? '' : null\" (change)=\"onChange($event)\">\n <label [class]=\"classes().label\" [attr.for]=\"bags().labelFor\"><ng-container [ngTemplateOutlet]=\"content\"></ng-container></label>\n}\n@if (bags().feedback; as feedback) {\n <div [mpProps]=\"feedback.attrs\">{{ feedback.text }}</div>\n}\n<ng-template #content><ng-content></ng-content></ng-template>\n", dependencies: [{ kind: "directive", type: MpPropsDirective, selector: "[mpProps]", inputs: ["mpProps"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
262
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.8", type: BsCheckboxComponent, isStandalone: true, selector: "bs-checkbox, bs-toggle-button", inputs: { type: { classPropertyName: "type", publicName: "type", isSignal: true, isRequired: false, transformFunction: null }, color: { classPropertyName: "color", publicName: "color", isSignal: true, isRequired: false, transformFunction: null }, isToggled: { classPropertyName: "isToggled", publicName: "isToggled", isSignal: true, isRequired: false, transformFunction: null }, indeterminate: { classPropertyName: "indeterminate", publicName: "indeterminate", isSignal: true, isRequired: false, transformFunction: null }, name: { classPropertyName: "name", publicName: "name", isSignal: true, isRequired: false, transformFunction: null }, value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, group: { classPropertyName: "group", publicName: "group", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { isToggled: "isToggledChange", indeterminate: "indeterminateChange" }, host: { classAttribute: "d-inline-block" }, viewQueries: [{ propertyName: "inputRef", first: true, predicate: ["input"], descendants: true, isSignal: true }], hostDirectives: [{ directive: BsCheckboxValueAccessor }, { directive: i2.BsControlValidityDirective, inputs: ["errorMessages", "errorMessages"] }], ngImport: i0, template: "@if (classes().root; as rootClass) {\n <label data-mps=\"checkbox\" [class]=\"rootClass\">\n <input data-mps=\"checkbox\" #input type=\"checkbox\" [class]=\"classes().input\" [mpProps]=\"bags().input\" [checked]=\"checked()\" [attr.checked]=\"checked() ? '' : null\" (change)=\"onChange($event)\">\n <span data-mps=\"checkbox\" [class]=\"classes().label\"><ng-container [ngTemplateOutlet]=\"content\"></ng-container></span>\n </label>\n} @else {\n <input data-mps=\"checkbox\" #input type=\"checkbox\" [class]=\"classes().input\" [mpProps]=\"bags().input\" [checked]=\"checked()\" [attr.checked]=\"checked() ? '' : null\" (change)=\"onChange($event)\">\n <label data-mps=\"checkbox\" [class]=\"classes().label\" [attr.for]=\"bags().labelFor\"><ng-container [ngTemplateOutlet]=\"content\"></ng-container></label>\n}\n@if (bags().feedback; as feedback) {\n <div data-mps=\"checkbox\" [mpProps]=\"feedback.attrs\">{{ feedback.text }}</div>\n}\n<ng-template #content><ng-content></ng-content></ng-template>\n", dependencies: [{ kind: "directive", type: MpPropsDirective, selector: "[mpProps]", inputs: ["mpProps"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
259
263
  }
260
264
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsCheckboxComponent, decorators: [{
261
265
  type: Component,
@@ -264,7 +268,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImpor
264
268
  inputs: ['errorMessages'],
265
269
  }], host: {
266
270
  'class': 'd-inline-block',
267
- }, template: "@if (classes().root; as rootClass) {\n <label [class]=\"rootClass\">\n <input #input type=\"checkbox\" [class]=\"classes().input\" [mpProps]=\"bags().input\" [checked]=\"checked()\" [attr.checked]=\"checked() ? '' : null\" (change)=\"onChange($event)\">\n <span [class]=\"classes().label\"><ng-container [ngTemplateOutlet]=\"content\"></ng-container></span>\n </label>\n} @else {\n <input #input type=\"checkbox\" [class]=\"classes().input\" [mpProps]=\"bags().input\" [checked]=\"checked()\" [attr.checked]=\"checked() ? '' : null\" (change)=\"onChange($event)\">\n <label [class]=\"classes().label\" [attr.for]=\"bags().labelFor\"><ng-container [ngTemplateOutlet]=\"content\"></ng-container></label>\n}\n@if (bags().feedback; as feedback) {\n <div [mpProps]=\"feedback.attrs\">{{ feedback.text }}</div>\n}\n<ng-template #content><ng-content></ng-content></ng-template>\n" }]
271
+ }, template: "@if (classes().root; as rootClass) {\n <label data-mps=\"checkbox\" [class]=\"rootClass\">\n <input data-mps=\"checkbox\" #input type=\"checkbox\" [class]=\"classes().input\" [mpProps]=\"bags().input\" [checked]=\"checked()\" [attr.checked]=\"checked() ? '' : null\" (change)=\"onChange($event)\">\n <span data-mps=\"checkbox\" [class]=\"classes().label\"><ng-container [ngTemplateOutlet]=\"content\"></ng-container></span>\n </label>\n} @else {\n <input data-mps=\"checkbox\" #input type=\"checkbox\" [class]=\"classes().input\" [mpProps]=\"bags().input\" [checked]=\"checked()\" [attr.checked]=\"checked() ? '' : null\" (change)=\"onChange($event)\">\n <label data-mps=\"checkbox\" [class]=\"classes().label\" [attr.for]=\"bags().labelFor\"><ng-container [ngTemplateOutlet]=\"content\"></ng-container></label>\n}\n@if (bags().feedback; as feedback) {\n <div data-mps=\"checkbox\" [mpProps]=\"feedback.attrs\">{{ feedback.text }}</div>\n}\n<ng-template #content><ng-content></ng-content></ng-template>\n" }]
268
272
  }], ctorParameters: () => [], propDecorators: { inputRef: [{ type: i0.ViewChild, args: ['input', { isSignal: true }] }], type: [{ type: i0.Input, args: [{ isSignal: true, alias: "type", required: false }] }], color: [{ type: i0.Input, args: [{ isSignal: true, alias: "color", required: false }] }], isToggled: [{ type: i0.Input, args: [{ isSignal: true, alias: "isToggled", required: false }] }, { type: i0.Output, args: ["isToggledChange"] }], indeterminate: [{ type: i0.Input, args: [{ isSignal: true, alias: "indeterminate", required: false }] }, { type: i0.Output, args: ["indeterminateChange"] }], name: [{ type: i0.Input, args: [{ isSignal: true, alias: "name", required: false }] }], value: [{ type: i0.Input, args: [{ isSignal: true, alias: "value", required: false }] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], group: [{ type: i0.Input, args: [{ isSignal: true, alias: "group", required: false }] }] } });
269
273
 
270
274
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"mintplayer-ng-bootstrap-checkbox.mjs","sources":["../../../../libs/mintplayer-ng-bootstrap/checkbox/src/value-accessor/checkbox-value-accessor.ts","../../../../libs/mintplayer-ng-bootstrap/checkbox/src/directives/checkbox-group/checkbox-group.directive.ts","../../../../libs/mintplayer-ng-bootstrap/checkbox/src/component/checkbox.component.ts","../../../../libs/mintplayer-ng-bootstrap/checkbox/src/component/checkbox.component.html","../../../../libs/mintplayer-ng-bootstrap/checkbox/mintplayer-ng-bootstrap-checkbox.ts"],"sourcesContent":["import { Directive, forwardRef, inject } from '@angular/core';\nimport { ControlValueAccessor, NG_VALUE_ACCESSOR } from '@angular/forms';\nimport { BsCheckboxComponent } from '../component/checkbox.component';\n\n/**\n * Single-mode (standalone) value accessor for `<bs-checkbox>`. Emits a\n * `boolean` reflecting the checked state. For multi-mode use, bind\n * `[formControl]` on `[bsCheckboxGroup]` instead — that directive owns\n * its own `string[]` accessor.\n */\n@Directive({\n selector: 'bs-checkbox',\n providers: [{\n provide: NG_VALUE_ACCESSOR,\n useExisting: forwardRef(() => BsCheckboxValueAccessor),\n multi: true,\n }],\n host: {\n // The inner native input's change and blur bubble to the host.\n '(change)': 'onChangeEvent($event)',\n '(focusout)': 'onTouched?.()',\n },\n})\nexport class BsCheckboxValueAccessor implements ControlValueAccessor {\n\n private host = inject(BsCheckboxComponent);\n\n onValueChange?: (value: boolean) => void;\n onTouched?: () => void;\n\n onChangeEvent(ev: Event) {\n const target = ev.target as HTMLInputElement | null;\n if (!this.onValueChange || target?.type !== 'checkbox') return;\n this.onValueChange(target.checked);\n }\n\n registerOnChange(fn: (_: boolean) => void) {\n this.onValueChange = fn;\n }\n\n registerOnTouched(fn: () => void) {\n this.onTouched = fn;\n }\n\n writeValue(value: boolean) {\n this.host.isToggled.set(value);\n }\n\n setDisabledState(isDisabled: boolean) {\n this.host.formDisabled.set(isDisabled);\n }\n}\n","import { contentChildren, Directive, effect, ElementRef, forwardRef, inject, input, signal } from '@angular/core';\nimport { ControlValueAccessor, NG_VALUE_ACCESSOR } from '@angular/forms';\nimport { BsCheckboxComponent } from '../../component/checkbox.component';\n\n/**\n * Groups N `<bs-checkbox>` children into a multi-select FormControl whose\n * value is a `string[]` of every checked child's `value()`. The group's\n * `[name]` is the form-array name; the accessor appends the `[]` suffix\n * automatically on each child's inner `<input>` for traditional-form\n * submission. Per-instance `[name]` on each child is ignored when the\n * child resolves into a group.\n *\n * Acts as its own `ControlValueAccessor` — bind `[formControl]` / `[(ngModel)]`\n * directly on the element carrying `[bsCheckboxGroup]`. Listens to bubbled\n * `change` events from the children to recompute the array on every toggle.\n */\n@Directive({\n selector: '[bsCheckboxGroup]',\n exportAs: 'bsCheckboxGroup',\n providers: [{\n provide: NG_VALUE_ACCESSOR,\n useExisting: forwardRef(() => BsCheckboxGroupDirective),\n multi: true,\n }],\n host: {\n '(change)': 'onChildChange()',\n // The inner inputs' focusout bubbles to the group host. The\n // stored onTouched was never CALLED before, which kept every\n // invalid-after-touched mirror dead (audit 4.9 prerequisite).\n '(focusout)': 'onTouched?.()',\n },\n})\nexport class BsCheckboxGroupDirective implements ControlValueAccessor {\n\n private readonly host = inject(ElementRef).nativeElement as HTMLElement;\n\n readonly name = input<string | null>(null);\n\n /** Accessible name for the group (written as `aria-label`). A bare\n * `role=\"group\"` is announced as nothing at all; the label is what makes\n * the grouping audible (\"Toppings, group\"). */\n readonly label = input<string | null>(null);\n // Wrap in forwardRef: BsCheckboxComponent imports this directive (for\n // `inject(BsCheckboxGroupDirective, {...})`), so the two modules form a\n // cycle. Whichever side webpack/vite evaluates first sees `undefined` for\n // the other's exports at field-initialiser time, which makes the recorded\n // query predicate null — ng-mocks' MockDirective then fails with \"the\n // query selector wasn't defined\" on consumers that mock the group.\n readonly checkboxes = contentChildren<BsCheckboxComponent>(forwardRef(() => BsCheckboxComponent), { descendants: true });\n\n /** Most-recently-written form value. An effect syncs each child's\n * `isToggled` whenever this OR the\n * `checkboxes()` set changes, so an initial `writeValue` that lands\n * before children register still applies once the `contentChildren`\n * query populates. */\n private readonly currentValue = signal<readonly string[]>([]);\n\n private onValueChange?: (value: string[]) => void;\n // protected, not private: the focusout host binding compiles outside the\n // class body under AOT and cannot reach a private member.\n protected onTouched?: () => void;\n\n constructor() {\n // role=\"group\" so the checkboxes announce as one named cluster — but only\n // on hosts whose implicit role is generic. Structural hosts (the tbody\n // row-selection shape) have load-bearing native semantics that a group\n // role would destroy, and a consumer-set role always wins.\n const structural = ['TABLE', 'THEAD', 'TBODY', 'TFOOT', 'TR', 'UL', 'OL', 'LI'];\n if (!this.host.hasAttribute('role') && !structural.includes(this.host.tagName)) {\n this.host.setAttribute('role', 'group');\n }\n effect(() => {\n const label = this.label();\n if (label !== null) this.host.setAttribute('aria-label', label);\n });\n effect(() => {\n const arr = this.currentValue();\n this.checkboxes().map((cb) => {\n const v = cb.value();\n const isSelected = v != null && arr.includes(v);\n cb.isToggled.set(isSelected);\n });\n });\n }\n\n onChildChange() {\n if (!this.onValueChange) return;\n const result = this.checkboxes()\n .filter(cb => !!cb.isToggled() && cb.value() != null)\n .map(cb => cb.value()!);\n this.onValueChange(result);\n }\n\n registerOnChange(fn: (_: string[]) => void) {\n this.onValueChange = fn;\n }\n\n registerOnTouched(fn: () => void) {\n this.onTouched = fn;\n }\n\n writeValue(value: string[] | null) {\n this.currentValue.set(Array.isArray(value) ? value : []);\n }\n\n setDisabledState(isDisabled: boolean) {\n this.checkboxes().map((cb) => cb.formDisabled.set(isDisabled));\n }\n}\n","import {\n afterRenderEffect,\n ChangeDetectionStrategy,\n Component,\n computed,\n ElementRef,\n inject,\n input,\n model,\n signal,\n viewChild,\n} from '@angular/core';\nimport { NgTemplateOutlet } from '@angular/common';\nimport {\n checkboxClasses,\n connectCheckbox,\n effectiveIndeterminate,\n type CheckboxInputBag,\n type CheckboxState,\n type ToggleButtonColor,\n} from '@mintplayer/ui-core/checkbox';\nimport { BsControlValidityDirective, BsIdService, takeHostAria } from '@mintplayer/ng-bootstrap/a11y';\nimport { MpPropsDirective } from '@mintplayer/ng-bootstrap/machine';\nimport { BsCheckboxValueAccessor } from '../value-accessor/checkbox-value-accessor';\nimport { BsCheckboxGroupDirective } from '../directives/checkbox-group/checkbox-group.directive';\nimport { BsCheckboxType } from '../types/checkbox-type';\n\n/**\n * A native `<input type=checkbox>` in Bootstrap's `.form-check` /\n * `.form-switch` / `.btn-check` markup, rendered by this component's own\n * template (#437): it submits, toggles and announces with JavaScript off,\n * and SSR emits the real control. The ARIA contract comes from\n * `@mintplayer/ui-core/checkbox`; the consumer's `aria-*` / `id` /\n * `tabindex` on `<bs-checkbox>` land on the input.\n */\n@Component({\n // bs-toggle-button is the toggle-button front: the same control, type fixed.\n selector: 'bs-checkbox, bs-toggle-button',\n templateUrl: './checkbox.component.html',\n imports: [MpPropsDirective, NgTemplateOutlet],\n changeDetection: ChangeDetectionStrategy.OnPush,\n hostDirectives: [BsCheckboxValueAccessor, {\n directive: BsControlValidityDirective,\n inputs: ['errorMessages'],\n }],\n host: {\n 'class': 'd-inline-block',\n },\n})\nexport class BsCheckboxComponent {\n\n private readonly parentGroup = inject(BsCheckboxGroupDirective, { optional: true, skipSelf: true });\n private readonly validity = inject(BsControlValidityDirective, { self: true });\n private readonly host = inject(ElementRef).nativeElement as HTMLElement;\n private readonly hostAria = takeHostAria(this.host);\n private readonly id = inject(BsIdService).next('bs-checkbox');\n private readonly inputRef = viewChild<ElementRef<HTMLInputElement>>('input');\n\n type = input<BsCheckboxType>('checkbox');\n /** Button colour of a `toggle_button`; ignored by the other types. */\n color = input<ToggleButtonColor>('primary');\n isToggled = model<boolean | null>(false);\n indeterminate = model<boolean>(false);\n name = input<string | null>(null);\n value = input<string | null>(null);\n disabled = input<boolean>(false);\n group = input<BsCheckboxGroupDirective | null>(null);\n\n /** Written by the value accessor and by `[bsCheckboxGroup]` (`setDisabledState`). */\n readonly formDisabled = signal(false);\n\n /** Explicit `[group]` input wins over the DI-injected ancestor. */\n readonly resolvedGroup = computed(() => this.group() ?? this.parentGroup ?? null);\n\n /** Single-mode → component's own `[name]`. Multi-mode → group's `[name]` + `[]`. */\n readonly nameResult = computed(() => {\n const group = this.resolvedGroup();\n if (group) {\n const groupName = group.name();\n return groupName == null ? null : `${groupName}[]`;\n }\n return this.name();\n });\n\n readonly checked = computed(() => !!this.isToggled());\n\n /** `<bs-toggle-button>` is a toggle button whatever `[type]` says. */\n private readonly isToggleButtonHost = this.host.localName === 'bs-toggle-button';\n readonly resolvedType = computed<BsCheckboxType>(() => this.isToggleButtonHost ? 'toggle_button' : this.type());\n\n private readonly state = computed<CheckboxState>(() => ({\n type: this.resolvedType(),\n checked: this.checked(),\n indeterminate: effectiveIndeterminate({ type: this.resolvedType(), indeterminate: this.indeterminate() }),\n disabled: this.disabled() || this.formDisabled(),\n required: this.validity.required(),\n invalid: this.validity.invalid(),\n name: this.nameResult(),\n value: this.value(),\n errorText: this.validity.errorText(),\n }));\n\n readonly classes = computed(() => checkboxClasses(this.resolvedType(), this.color(), this.state().invalid));\n\n readonly bags = computed(() => {\n const { 'aria-describedby': describedBy, ...aria } = this.hostAria;\n const bags = connectCheckbox(this.state(), this.id, describedBy);\n const inputBag: CheckboxInputBag = { ...bags.input, ...aria, 'aria-describedby': bags.input['aria-describedby'] };\n return { ...bags, input: inputBag, labelFor: bags.labelFor === null ? null : String(inputBag['id']) };\n });\n\n constructor() {\n // `indeterminate` has no attribute, so it is a browser-only property write;\n // aria-checked=\"mixed\" in the bag already carries it in the SSR output.\n afterRenderEffect(() => {\n const el = this.inputRef()?.nativeElement;\n if (el) el.indeterminate = this.state().indeterminate;\n });\n }\n\n onChange(ev: Event) {\n // A user toggle always clears the mixed state, natively and here.\n this.isToggled.set((ev.target as HTMLInputElement).checked);\n this.indeterminate.set(false);\n }\n\n}\n","@if (classes().root; as rootClass) {\n <label [class]=\"rootClass\">\n <input #input type=\"checkbox\" [class]=\"classes().input\" [mpProps]=\"bags().input\" [checked]=\"checked()\" [attr.checked]=\"checked() ? '' : null\" (change)=\"onChange($event)\">\n <span [class]=\"classes().label\"><ng-container [ngTemplateOutlet]=\"content\"></ng-container></span>\n </label>\n} @else {\n <input #input type=\"checkbox\" [class]=\"classes().input\" [mpProps]=\"bags().input\" [checked]=\"checked()\" [attr.checked]=\"checked() ? '' : null\" (change)=\"onChange($event)\">\n <label [class]=\"classes().label\" [attr.for]=\"bags().labelFor\"><ng-container [ngTemplateOutlet]=\"content\"></ng-container></label>\n}\n@if (bags().feedback; as feedback) {\n <div [mpProps]=\"feedback.attrs\">{{ feedback.text }}</div>\n}\n<ng-template #content><ng-content></ng-content></ng-template>\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["i1.BsCheckboxValueAccessor"],"mappings":";;;;;;;;;AAIA;;;;;AAKG;MAcU,uBAAuB,CAAA;AAbpC,IAAA,WAAA,GAAA;AAeU,QAAA,IAAA,CAAA,IAAI,GAAG,MAAM,CAAC,mBAAmB,CAAC;AA0B3C,IAAA;AArBC,IAAA,aAAa,CAAC,EAAS,EAAA;AACrB,QAAA,MAAM,MAAM,GAAG,EAAE,CAAC,MAAiC;QACnD,IAAI,CAAC,IAAI,CAAC,aAAa,IAAI,MAAM,EAAE,IAAI,KAAK,UAAU;YAAE;AACxD,QAAA,IAAI,CAAC,aAAa,CAAC,MAAM,CAAC,OAAO,CAAC;IACpC;AAEA,IAAA,gBAAgB,CAAC,EAAwB,EAAA;AACvC,QAAA,IAAI,CAAC,aAAa,GAAG,EAAE;IACzB;AAEA,IAAA,iBAAiB,CAAC,EAAc,EAAA;AAC9B,QAAA,IAAI,CAAC,SAAS,GAAG,EAAE;IACrB;AAEA,IAAA,UAAU,CAAC,KAAc,EAAA;QACvB,IAAI,CAAC,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,KAAK,CAAC;IAChC;AAEA,IAAA,gBAAgB,CAAC,UAAmB,EAAA;QAClC,IAAI,CAAC,IAAI,CAAC,YAAY,CAAC,GAAG,CAAC,UAAU,CAAC;IACxC;8GA3BW,uBAAuB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;AAAvB,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,IAAA,EAAA,uBAAuB,mJAXvB,CAAC;AACV,gBAAA,OAAO,EAAE,iBAAiB;AAC1B,gBAAA,W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EAAA,CAAA,iBAAA,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,EAAA,EAAA,IAAA,EAAA,EAAA,CAAA,MAAA,EAAA,IAAA,EAAA,CAAA,qBAAA,CAAA,EAAA,CAAA,EAAA,IAAA,EAAA,CAAA,EAAA,IAAA,EAAA,EAAA,CAAA,KAAA,EAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,IAAA,EAAA,KAAA,EAAA,MAAA,EAAA,QAAA,EAAA,KAAA,EAAA,CAAA,EAAA,CAAA,EAAA,KAAA,EAAA,CAAA,EAAA,IAAA,EAAA,EAAA,CAAA,KAAA,EAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,IAAA,EAAA,KAAA,EAAA,OAAA,EAAA,QAAA,EAAA,KAAA,EAAA,CAAA,EAAA,CAAA,EAAA,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,KAAA,EAAA,CAAA,EAAA,IAAA,EAAA,EAAA,CAAA,KAAA,EAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,IAAA,EAAA,KAAA,EAAA,OAAA,EAAA,QAAA,EAAA,KAAA,EAAA,CAAA,EAAA,CAAA,EAAA,EAAA,CAAA;;AExD7E;;AAEG;;;;"}
1
+ {"version":3,"file":"mintplayer-ng-bootstrap-checkbox.mjs","sources":["../../../../libs/mintplayer-ng-bootstrap/checkbox/src/value-accessor/checkbox-value-accessor.ts","../../../../libs/mintplayer-ng-bootstrap/checkbox/src/directives/checkbox-group/checkbox-group.directive.ts","../../../../libs/mintplayer-ng-bootstrap/checkbox/src/component/checkbox.component.ts","../../../../libs/mintplayer-ng-bootstrap/checkbox/src/component/checkbox.component.html","../../../../libs/mintplayer-ng-bootstrap/checkbox/mintplayer-ng-bootstrap-checkbox.ts"],"sourcesContent":["import { Directive, forwardRef, inject } from '@angular/core';\nimport { ControlValueAccessor, NG_VALUE_ACCESSOR } from '@angular/forms';\nimport { BsCheckboxComponent } from '../component/checkbox.component';\n\n/**\n * Single-mode (standalone) value accessor for `<bs-checkbox>`. Emits a\n * `boolean` reflecting the checked state. For multi-mode use, bind\n * `[formControl]` on `[bsCheckboxGroup]` instead — that directive owns\n * its own `string[]` accessor.\n */\n@Directive({\n selector: 'bs-checkbox',\n providers: [{\n provide: NG_VALUE_ACCESSOR,\n useExisting: forwardRef(() => BsCheckboxValueAccessor),\n multi: true,\n }],\n host: {\n // The inner native input's change and blur bubble to the host.\n '(change)': 'onChangeEvent($event)',\n '(focusout)': 'onTouched?.()',\n },\n})\nexport class BsCheckboxValueAccessor implements ControlValueAccessor {\n\n private host = inject(BsCheckboxComponent);\n\n onValueChange?: (value: boolean) => void;\n onTouched?: () => void;\n\n onChangeEvent(ev: Event) {\n const target = ev.target as HTMLInputElement | null;\n if (!this.onValueChange || target?.type !== 'checkbox') return;\n this.onValueChange(target.checked);\n }\n\n registerOnChange(fn: (_: boolean) => void) {\n this.onValueChange = fn;\n }\n\n registerOnTouched(fn: () => void) {\n this.onTouched = fn;\n }\n\n writeValue(value: boolean) {\n this.host.isToggled.set(value);\n }\n\n setDisabledState(isDisabled: boolean) {\n this.host.formDisabled.set(isDisabled);\n }\n}\n","import { contentChildren, Directive, effect, ElementRef, forwardRef, inject, input, signal } from '@angular/core';\nimport { ControlValueAccessor, NG_VALUE_ACCESSOR } from '@angular/forms';\nimport { BsCheckboxComponent } from '../../component/checkbox.component';\n\n/**\n * Groups N `<bs-checkbox>` children into a multi-select FormControl whose\n * value is a `string[]` of every checked child's `value()`. The group's\n * `[name]` is the form-array name; the accessor appends the `[]` suffix\n * automatically on each child's inner `<input>` for traditional-form\n * submission. Per-instance `[name]` on each child is ignored when the\n * child resolves into a group.\n *\n * Acts as its own `ControlValueAccessor` — bind `[formControl]` / `[(ngModel)]`\n * directly on the element carrying `[bsCheckboxGroup]`. Listens to bubbled\n * `change` events from the children to recompute the array on every toggle.\n */\n@Directive({\n selector: '[bsCheckboxGroup]',\n exportAs: 'bsCheckboxGroup',\n providers: [{\n provide: NG_VALUE_ACCESSOR,\n useExisting: forwardRef(() => BsCheckboxGroupDirective),\n multi: true,\n }],\n host: {\n '(change)': 'onChildChange()',\n // The inner inputs' focusout bubbles to the group host. The\n // stored onTouched was never CALLED before, which kept every\n // invalid-after-touched mirror dead (audit 4.9 prerequisite).\n '(focusout)': 'onTouched?.()',\n },\n})\nexport class BsCheckboxGroupDirective implements ControlValueAccessor {\n\n private readonly host = inject(ElementRef).nativeElement as HTMLElement;\n\n readonly name = input<string | null>(null);\n\n /** Accessible name for the group (written as `aria-label`). A bare\n * `role=\"group\"` is announced as nothing at all; the label is what makes\n * the grouping audible (\"Toppings, group\"). */\n readonly label = input<string | null>(null);\n // Wrap in forwardRef: BsCheckboxComponent imports this directive (for\n // `inject(BsCheckboxGroupDirective, {...})`), so the two modules form a\n // cycle. Whichever side webpack/vite evaluates first sees `undefined` for\n // the other's exports at field-initialiser time, which makes the recorded\n // query predicate null — ng-mocks' MockDirective then fails with \"the\n // query selector wasn't defined\" on consumers that mock the group.\n readonly checkboxes = contentChildren<BsCheckboxComponent>(forwardRef(() => BsCheckboxComponent), { descendants: true });\n\n /** Most-recently-written form value. An effect syncs each child's\n * `isToggled` whenever this OR the\n * `checkboxes()` set changes, so an initial `writeValue` that lands\n * before children register still applies once the `contentChildren`\n * query populates. */\n private readonly currentValue = signal<readonly string[]>([]);\n\n private onValueChange?: (value: string[]) => void;\n // protected, not private: the focusout host binding compiles outside the\n // class body under AOT and cannot reach a private member.\n protected onTouched?: () => void;\n\n constructor() {\n // role=\"group\" so the checkboxes announce as one named cluster — but only\n // on hosts whose implicit role is generic. Structural hosts (the tbody\n // row-selection shape) have load-bearing native semantics that a group\n // role would destroy, and a consumer-set role always wins.\n const structural = ['TABLE', 'THEAD', 'TBODY', 'TFOOT', 'TR', 'UL', 'OL', 'LI'];\n if (!this.host.hasAttribute('role') && !structural.includes(this.host.tagName)) {\n this.host.setAttribute('role', 'group');\n }\n effect(() => {\n const label = this.label();\n if (label !== null) this.host.setAttribute('aria-label', label);\n });\n effect(() => {\n const arr = this.currentValue();\n this.checkboxes().map((cb) => {\n const v = cb.value();\n const isSelected = v != null && arr.includes(v);\n cb.isToggled.set(isSelected);\n });\n });\n }\n\n onChildChange() {\n if (!this.onValueChange) return;\n const result = this.checkboxes()\n .filter(cb => !!cb.isToggled() && cb.value() != null)\n .map(cb => cb.value()!);\n this.onValueChange(result);\n }\n\n registerOnChange(fn: (_: string[]) => void) {\n this.onValueChange = fn;\n }\n\n registerOnTouched(fn: () => void) {\n this.onTouched = fn;\n }\n\n writeValue(value: string[] | null) {\n this.currentValue.set(Array.isArray(value) ? value : []);\n }\n\n setDisabledState(isDisabled: boolean) {\n this.checkboxes().map((cb) => cb.formDisabled.set(isDisabled));\n }\n}\n","import {\n afterRenderEffect,\n ChangeDetectionStrategy,\n Component,\n computed,\n ElementRef,\n inject,\n input,\n model,\n signal,\n viewChild,\n} from '@angular/core';\nimport { useBootstrap } from '@mintplayer/ng-bootstrap/machine';\nimport { bootstrapForms } from '@mintplayer/ui-core/bootstrap/forms';\nimport { NgTemplateOutlet } from '@angular/common';\nimport {\n checkboxClasses,\n connectCheckbox,\n effectiveIndeterminate,\n type CheckboxInputBag,\n type CheckboxState,\n type ToggleButtonColor,\n} from '@mintplayer/ui-core/checkbox';\nimport { BsIdService, takeHostAria } from '@mintplayer/ng-bootstrap/a11y';\nimport { BsControlValidityDirective } from '@mintplayer/ng-bootstrap/a11y/forms';\nimport { MpPropsDirective } from '@mintplayer/ng-bootstrap/machine';\nimport { BsCheckboxValueAccessor } from '../value-accessor/checkbox-value-accessor';\nimport { BsCheckboxGroupDirective } from '../directives/checkbox-group/checkbox-group.directive';\nimport { BsCheckboxType } from '../types/checkbox-type';\n\n/**\n * A native `<input type=checkbox>` in Bootstrap's `.form-check` /\n * `.form-switch` / `.btn-check` markup, rendered by this component's own\n * template (#437): it submits, toggles and announces with JavaScript off,\n * and SSR emits the real control. The ARIA contract comes from\n * `@mintplayer/ui-core/checkbox`; the consumer's `aria-*` / `id` /\n * `tabindex` on `<bs-checkbox>` land on the input.\n */\n@Component({\n // bs-toggle-button is the toggle-button front: the same control, type fixed.\n selector: 'bs-checkbox, bs-toggle-button',\n templateUrl: './checkbox.component.html',\n imports: [MpPropsDirective, NgTemplateOutlet],\n changeDetection: ChangeDetectionStrategy.OnPush,\n hostDirectives: [BsCheckboxValueAccessor, {\n directive: BsControlValidityDirective,\n inputs: ['errorMessages'],\n }],\n host: {\n 'class': 'd-inline-block',\n },\n})\nexport class BsCheckboxComponent {\n\n private readonly parentGroup = inject(BsCheckboxGroupDirective, { optional: true, skipSelf: true });\n private readonly validity = inject(BsControlValidityDirective, { self: true });\n private readonly host = inject(ElementRef).nativeElement as HTMLElement;\n private readonly hostAria = takeHostAria(this.host);\n private readonly id = inject(BsIdService).next('bs-checkbox');\n private readonly inputRef = viewChild<ElementRef<HTMLInputElement>>('input');\n\n type = input<BsCheckboxType>('checkbox');\n /** Button colour of a `toggle_button`; ignored by the other types. */\n color = input<ToggleButtonColor>('primary');\n isToggled = model<boolean | null>(false);\n indeterminate = model<boolean>(false);\n name = input<string | null>(null);\n value = input<string | null>(null);\n disabled = input<boolean>(false);\n group = input<BsCheckboxGroupDirective | null>(null);\n\n /** Written by the value accessor and by `[bsCheckboxGroup]` (`setDisabledState`). */\n readonly formDisabled = signal(false);\n\n /** Explicit `[group]` input wins over the DI-injected ancestor. */\n readonly resolvedGroup = computed(() => this.group() ?? this.parentGroup ?? null);\n\n /** Single-mode → component's own `[name]`. Multi-mode → group's `[name]` + `[]`. */\n readonly nameResult = computed(() => {\n const group = this.resolvedGroup();\n if (group) {\n const groupName = group.name();\n return groupName == null ? null : `${groupName}[]`;\n }\n return this.name();\n });\n\n readonly checked = computed(() => !!this.isToggled());\n\n /** `<bs-toggle-button>` is a toggle button whatever `[type]` says. */\n private readonly isToggleButtonHost = this.host.localName === 'bs-toggle-button';\n readonly resolvedType = computed<BsCheckboxType>(() => this.isToggleButtonHost ? 'toggle_button' : this.type());\n\n private readonly state = computed<CheckboxState>(() => ({\n type: this.resolvedType(),\n checked: this.checked(),\n indeterminate: effectiveIndeterminate({ type: this.resolvedType(), indeterminate: this.indeterminate() }),\n disabled: this.disabled() || this.formDisabled(),\n required: this.validity.required(),\n invalid: this.validity.invalid(),\n name: this.nameResult(),\n value: this.value(),\n errorText: this.validity.errorText(),\n }));\n\n readonly classes = computed(() => checkboxClasses(this.resolvedType(), this.color(), this.state().invalid));\n\n readonly bags = computed(() => {\n const { 'aria-describedby': describedBy, ...aria } = this.hostAria;\n const bags = connectCheckbox(this.state(), this.id, describedBy);\n const inputBag: CheckboxInputBag = { ...bags.input, ...aria, 'aria-describedby': bags.input['aria-describedby'] };\n return { ...bags, input: inputBag, labelFor: bags.labelFor === null ? null : String(inputBag['id']) };\n });\n\n constructor() {\n // #452: the forms partial ships with this component, scoped to the elements it stamps (data-mps=\"checkbox\").\n useBootstrap(bootstrapForms);\n // `indeterminate` has no attribute, so it is a browser-only property write;\n // aria-checked=\"mixed\" in the bag already carries it in the SSR output.\n afterRenderEffect(() => {\n const el = this.inputRef()?.nativeElement;\n if (el) el.indeterminate = this.state().indeterminate;\n });\n }\n\n onChange(ev: Event) {\n // A user toggle always clears the mixed state, natively and here.\n this.isToggled.set((ev.target as HTMLInputElement).checked);\n this.indeterminate.set(false);\n }\n\n}\n","@if (classes().root; as rootClass) {\n <label data-mps=\"checkbox\" [class]=\"rootClass\">\n <input data-mps=\"checkbox\" #input type=\"checkbox\" [class]=\"classes().input\" [mpProps]=\"bags().input\" [checked]=\"checked()\" [attr.checked]=\"checked() ? '' : null\" (change)=\"onChange($event)\">\n <span data-mps=\"checkbox\" [class]=\"classes().label\"><ng-container [ngTemplateOutlet]=\"content\"></ng-container></span>\n </label>\n} @else {\n <input data-mps=\"checkbox\" #input type=\"checkbox\" [class]=\"classes().input\" [mpProps]=\"bags().input\" [checked]=\"checked()\" [attr.checked]=\"checked() ? '' : null\" (change)=\"onChange($event)\">\n <label data-mps=\"checkbox\" [class]=\"classes().label\" [attr.for]=\"bags().labelFor\"><ng-container [ngTemplateOutlet]=\"content\"></ng-container></label>\n}\n@if (bags().feedback; as feedback) {\n <div data-mps=\"checkbox\" [mpProps]=\"feedback.attrs\">{{ feedback.text }}</div>\n}\n<ng-template #content><ng-content></ng-content></ng-template>\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["i1.BsCheckboxValueAccessor"],"mappings":";;;;;;;;;;;AAIA;;;;;AAKG;MAcU,uBAAuB,CAAA;AAbpC,IAAA,WAAA,GAAA;AAeU,QAAA,IAAA,CAAA,IAAI,GAAG,MAAM,CAAC,mBAAmB,CAAC;AA0B3C,IAAA;AArBC,IAAA,aAAa,CAAC,EAAS,EAAA;AACrB,QAAA,MAAM,MAAM,GAAG,EAAE,CAAC,MAAiC;QACnD,IAAI,CAAC,IAAI,CAAC,aAAa,IAAI,MAAM,EAAE,IAAI,KAAK,UAAU;YAAE;AACxD,QAAA,IAAI,CAAC,aAAa,CAAC,MAAM,CAAC,OAAO,CAAC;IACpC;AAEA,IAAA,gBAAgB,CAAC,EAAwB,EAAA;AACvC,QAAA,IAAI,CAAC,aAAa,GAAG,EAAE;IACzB;AAEA,IAAA,iBAAiB,CAAC,EAAc,EAAA;AAC9B,QAAA,IAAI,CAAC,SAAS,GAAG,EAAE;IACrB;AAEA,IAAA,UAAU,CAAC,KAAc,EAAA;QACvB,IAAI,CAAC,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,KAAK,CA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IAAA,EAAA,KAAA,EAAA,UAAA,EAAA,QAAA,EAAA,KAAA,EAAA,CAAA,EAAA,CAAA,EAAA,KAAA,EAAA,CAAA,EAAA,IAAA,EAAA,EAAA,CAAA,KAAA,EAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,IAAA,EAAA,KAAA,EAAA,OAAA,EAAA,QAAA,EAAA,KAAA,EAAA,CAAA,EAAA,CAAA,EAAA,EAAA,CAAA;;AE3D7E;;AAEG;;;;"}
@@ -1,5 +1,7 @@
1
1
  import * as i0 from '@angular/core';
2
2
  import { input, output, ChangeDetectionStrategy, Component } from '@angular/core';
3
+ import { useBootstrap } from '@mintplayer/ng-bootstrap/machine';
4
+ import { bootstrapClose } from '@mintplayer/ui-core/bootstrap/close';
3
5
 
4
6
  class BsCloseComponent {
5
7
  constructor() {
@@ -7,18 +9,20 @@ class BsCloseComponent {
7
9
  this.ariaLabel = input('Close', /* @ts-ignore */
8
10
  ...(ngDevMode ? [{ debugName: "ariaLabel" }] : /* istanbul ignore next */ []));
9
11
  this.click = output();
12
+ // #452: the close partial ships with this component, scoped to the elements it stamps (data-mps="close").
13
+ useBootstrap(bootstrapClose);
10
14
  }
11
15
  onClose(ev) {
12
16
  this.click.emit();
13
17
  ev.stopImmediatePropagation();
14
18
  }
15
19
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsCloseComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
16
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.0.8", type: BsCloseComponent, isStandalone: true, selector: "bs-close", inputs: { ariaLabel: { classPropertyName: "ariaLabel", publicName: "ariaLabel", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { click: "click" }, ngImport: i0, template: "<button type=\"button\" (click)=\"onClose($event)\" class=\"btn-close\" [attr.aria-label]=\"ariaLabel()\"></button>", styles: [":host ::ng-deep .btn-close{--bs-btn-close-color: #000;--bs-btn-close-bg: url(\"data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23000'%3e%3cpath d='M.293.293a1 1 0 0 1 1.414 0L8 6.586 14.293.293a1 1 0 1 1 1.414 1.414L9.414 8l6.293 6.293a1 1 0 0 1-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 0 1-1.414-1.414L6.586 8 .293 1.707a1 1 0 0 1 0-1.414'/%3e%3c/svg%3e\");--bs-btn-close-opacity: .5;--bs-btn-close-hover-opacity: .75;--bs-btn-close-focus-shadow: 0 0 0 .25rem rgba(13, 110, 253, .25);--bs-btn-close-focus-opacity: 1;--bs-btn-close-disabled-opacity: .25;box-sizing:content-box;width:1em;height:1em;padding:.25em;color:var(--bs-btn-close-color);background:transparent var(--bs-btn-close-bg) center/1em auto no-repeat;filter:var(--bs-btn-close-filter);border:0;border-radius:.375rem;opacity:var(--bs-btn-close-opacity)}:host ::ng-deep .btn-close:hover{color:var(--bs-btn-close-color);text-decoration:none;opacity:var(--bs-btn-close-hover-opacity)}:host ::ng-deep .btn-close:focus{outline:0;box-shadow:var(--bs-btn-close-focus-shadow);opacity:var(--bs-btn-close-focus-opacity)}:host ::ng-deep .btn-close:disabled,:host ::ng-deep .btn-close.disabled{pointer-events:none;-webkit-user-select:none;user-select:none;opacity:var(--bs-btn-close-disabled-opacity)}:host ::ng-deep .btn-close-white{--bs-btn-close-filter: invert(1) grayscale(100%) brightness(200%)}:host ::ng-deep :root,:host ::ng-deep [data-bs-theme=light]{--bs-btn-close-filter: }:host ::ng-deep [data-bs-theme=dark]{--bs-btn-close-filter: invert(1) grayscale(100%) brightness(200%)}:host-context([data-bs-theme=dark]) ::ng-deep .btn-close{filter:invert(1) grayscale(100%) brightness(200%)}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
20
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.0.8", type: BsCloseComponent, isStandalone: true, selector: "bs-close", inputs: { ariaLabel: { classPropertyName: "ariaLabel", publicName: "ariaLabel", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { click: "click" }, ngImport: i0, template: "<button data-mps=\"close\" type=\"button\" (click)=\"onClose($event)\" class=\"btn-close\" [attr.aria-label]=\"ariaLabel()\"></button>", styles: [""], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
17
21
  }
18
22
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsCloseComponent, decorators: [{
19
23
  type: Component,
20
- args: [{ selector: 'bs-close', changeDetection: ChangeDetectionStrategy.OnPush, template: "<button type=\"button\" (click)=\"onClose($event)\" class=\"btn-close\" [attr.aria-label]=\"ariaLabel()\"></button>", styles: [":host ::ng-deep .btn-close{--bs-btn-close-color: #000;--bs-btn-close-bg: url(\"data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23000'%3e%3cpath d='M.293.293a1 1 0 0 1 1.414 0L8 6.586 14.293.293a1 1 0 1 1 1.414 1.414L9.414 8l6.293 6.293a1 1 0 0 1-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 0 1-1.414-1.414L6.586 8 .293 1.707a1 1 0 0 1 0-1.414'/%3e%3c/svg%3e\");--bs-btn-close-opacity: .5;--bs-btn-close-hover-opacity: .75;--bs-btn-close-focus-shadow: 0 0 0 .25rem rgba(13, 110, 253, .25);--bs-btn-close-focus-opacity: 1;--bs-btn-close-disabled-opacity: .25;box-sizing:content-box;width:1em;height:1em;padding:.25em;color:var(--bs-btn-close-color);background:transparent var(--bs-btn-close-bg) center/1em auto no-repeat;filter:var(--bs-btn-close-filter);border:0;border-radius:.375rem;opacity:var(--bs-btn-close-opacity)}:host ::ng-deep .btn-close:hover{color:var(--bs-btn-close-color);text-decoration:none;opacity:var(--bs-btn-close-hover-opacity)}:host ::ng-deep .btn-close:focus{outline:0;box-shadow:var(--bs-btn-close-focus-shadow);opacity:var(--bs-btn-close-focus-opacity)}:host ::ng-deep .btn-close:disabled,:host ::ng-deep .btn-close.disabled{pointer-events:none;-webkit-user-select:none;user-select:none;opacity:var(--bs-btn-close-disabled-opacity)}:host ::ng-deep .btn-close-white{--bs-btn-close-filter: invert(1) grayscale(100%) brightness(200%)}:host ::ng-deep :root,:host ::ng-deep [data-bs-theme=light]{--bs-btn-close-filter: }:host ::ng-deep [data-bs-theme=dark]{--bs-btn-close-filter: invert(1) grayscale(100%) brightness(200%)}:host-context([data-bs-theme=dark]) ::ng-deep .btn-close{filter:invert(1) grayscale(100%) brightness(200%)}\n"] }]
21
- }], propDecorators: { ariaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaLabel", required: false }] }], click: [{ type: i0.Output, args: ["click"] }] } });
24
+ args: [{ selector: 'bs-close', changeDetection: ChangeDetectionStrategy.OnPush, template: "<button data-mps=\"close\" type=\"button\" (click)=\"onClose($event)\" class=\"btn-close\" [attr.aria-label]=\"ariaLabel()\"></button>" }]
25
+ }], ctorParameters: () => [], propDecorators: { ariaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaLabel", required: false }] }], click: [{ type: i0.Output, args: ["click"] }] } });
22
26
 
23
27
  /**
24
28
  * Generated bundle index. Do not edit.
@@ -1 +1 @@
1
- {"version":3,"file":"mintplayer-ng-bootstrap-close.mjs","sources":["../../../../libs/mintplayer-ng-bootstrap/close/src/close.component.ts","../../../../libs/mintplayer-ng-bootstrap/close/src/close.component.html","../../../../libs/mintplayer-ng-bootstrap/close/mintplayer-ng-bootstrap-close.ts"],"sourcesContent":["import { ChangeDetectionStrategy, Component, input, output } from '@angular/core';\n\n@Component({\n selector: 'bs-close',\n templateUrl: './close.component.html',\n styleUrls: ['./close.component.scss'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class BsCloseComponent {\n /** Accessible name for the close button. Override for localisation. */\n ariaLabel = input<string>('Close');\n\n click = output<void>();\n\n onClose(ev: MouseEvent) {\n this.click.emit();\n ev.stopImmediatePropagation();\n }\n}\n","<button type=\"button\" (click)=\"onClose($event)\" class=\"btn-close\" [attr.aria-label]=\"ariaLabel()\"></button>","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;MAQa,gBAAgB,CAAA;AAN7B,IAAA,WAAA,GAAA;;QAQE,IAAA,CAAA,SAAS,GAAG,KAAK,CAAS,OAAO;sFAAC;QAElC,IAAA,CAAA,KAAK,GAAG,MAAM,EAAQ;AAMvB,IAAA;AAJC,IAAA,OAAO,CAAC,EAAc,EAAA;AACpB,QAAA,IAAI,CAAC,KAAK,CAAC,IAAI,EAAE;QACjB,EAAE,CAAC,wBAAwB,EAAE;IAC/B;8GATW,gBAAgB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;AAAhB,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,IAAA,EAAA,gBAAgB,iPCR7B,qHAA2G,EAAA,MAAA,EAAA,CAAA,wpDAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,CAAA,CAAA;;2FDQ9F,gBAAgB,EAAA,UAAA,EAAA,CAAA;kBAN5B,SAAS;+BACE,UAAU,EAAA,eAAA,EAGH,uBAAuB,CAAC,MAAM,EAAA,QAAA,EAAA,qHAAA,EAAA,MAAA,EAAA,CAAA,wpDAAA,CAAA,EAAA;;;AENjD;;AAEG;;;;"}
1
+ {"version":3,"file":"mintplayer-ng-bootstrap-close.mjs","sources":["../../../../libs/mintplayer-ng-bootstrap/close/src/close.component.ts","../../../../libs/mintplayer-ng-bootstrap/close/src/close.component.html","../../../../libs/mintplayer-ng-bootstrap/close/mintplayer-ng-bootstrap-close.ts"],"sourcesContent":["import { ChangeDetectionStrategy, Component, input, output } from '@angular/core';\nimport { useBootstrap } from '@mintplayer/ng-bootstrap/machine';\nimport { bootstrapClose } from '@mintplayer/ui-core/bootstrap/close';\n\n@Component({\n selector: 'bs-close',\n templateUrl: './close.component.html',\n styleUrls: ['./close.component.scss'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class BsCloseComponent {\n constructor() {\n // #452: the close partial ships with this component, scoped to the elements it stamps (data-mps=\"close\").\n useBootstrap(bootstrapClose);\n }\n\n /** Accessible name for the close button. Override for localisation. */\n ariaLabel = input<string>('Close');\n\n click = output<void>();\n\n onClose(ev: MouseEvent) {\n this.click.emit();\n ev.stopImmediatePropagation();\n }\n}\n","<button data-mps=\"close\" type=\"button\" (click)=\"onClose($event)\" class=\"btn-close\" [attr.aria-label]=\"ariaLabel()\"></button>","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;MAUa,gBAAgB,CAAA;AAC3B,IAAA,WAAA,GAAA;;QAMA,IAAA,CAAA,SAAS,GAAG,KAAK,CAAS,OAAO;sFAAC;QAElC,IAAA,CAAA,KAAK,GAAG,MAAM,EAAQ;;QANpB,YAAY,CAAC,cAAc,CAAC;IAC9B;AAOA,IAAA,OAAO,CAAC,EAAc,EAAA;AACpB,QAAA,IAAI,CAAC,KAAK,CAAC,IAAI,EAAE;QACjB,EAAE,CAAC,wBAAwB,EAAE;IAC/B;8GAdW,gBAAgB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;AAAhB,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,IAAA,EAAA,gBAAgB,iPCV7B,wIAA4H,EAAA,MAAA,EAAA,CAAA,EAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,CAAA,CAAA;;2FDU/G,gBAAgB,EAAA,UAAA,EAAA,CAAA;kBAN5B,SAAS;+BACE,UAAU,EAAA,eAAA,EAGH,uBAAuB,CAAC,MAAM,EAAA,QAAA,EAAA,wIAAA,EAAA;;;AERjD;;AAEG;;;;"}
@@ -4,6 +4,8 @@ import { NgTemplateOutlet } from '@angular/common';
4
4
  import { useCore, useScopedStyles, MpPropsDirective } from '@mintplayer/ng-bootstrap/machine';
5
5
  import { datatableCore, datatableScopedStyles } from '@mintplayer/ui-core/datatable';
6
6
  export { DEFAULT_DATATABLE_LABELS, cellText, computeNextSort, sortRows } from '@mintplayer/ui-core/datatable';
7
+ import { bootstrapForms } from '@mintplayer/ui-core/bootstrap/forms';
8
+ import { bootstrapPagination } from '@mintplayer/ui-core/bootstrap/pagination';
7
9
 
8
10
  // GENERATED from the datatable manifest (datatable) by @mintplayer/nx-component-compiler. Do not edit.
9
11
  /** The `header` slot of `<bs-datatable>`: `<ng-template bsDatatableHeader>` or `*bsDatatableHeader`. */
@@ -167,6 +169,8 @@ class BsDatatableComponent {
167
169
  this.rowcollapse = output();
168
170
  /** A `fetch` call rejected. */
169
171
  this.loaderror = output();
172
+ /** A response the table applied, or the page 1 it was seeded with on the server (`seeded: true`, `fetch` not called); carries the response `extra`. */
173
+ this.pageload = output();
170
174
  /** The column filters, after the user changed them; `fetch` (or the consumer, over `data`) applies them. */
171
175
  this.filterschange = output();
172
176
  this.headerSlot = contentChild(BsDatatableHeaderDirective, /* @ts-ignore */
@@ -180,9 +184,11 @@ class BsDatatableComponent {
180
184
  /** The template's named slots. */
181
185
  this.slots = computed(() => ({ header: this.headerSlot()?.templateRef, cell: this.cellSlot()?.templateRef, row: this.rowSlot()?.templateRef, filter: this.filterSlot()?.templateRef }), /* @ts-ignore */
182
186
  ...(ngDevMode ? [{ debugName: "slots" }] : /* istanbul ignore next */ []));
183
- this.#core = useCore(datatableCore, { inputs: () => ({ columns: this.columns(), data: this.data(), fetch: this.fetch(), caption: this.caption(), labels: this.labels(), inputLabel: this.inputLabel(), sortColumns: this.sortColumns(), page: this.page(), perPage: this.perPage(), perPageOptions: this.perPageOptions(), pagination: this.pagination(), autoSort: this.autoSort(), selectionMode: this.selectionMode(), selectedIds: this.selectedIds(), cutIds: this.cutIds(), focusedRowKey: this.focusedRowKey(), rowLabel: this.rowLabel(), rowKey: this.rowKey(), tree: this.tree(), idKey: this.idKey(), childCountKey: this.childCountKey(), treeIndent: this.treeIndent(), expandedIds: this.expandedIds(), selectionStrategy: this.selectionStrategy(), loading: this.loading(), emptyMessage: this.emptyMessage(), virtualScroll: this.virtualScroll(), itemSize: this.itemSize(), virtualBuffer: this.virtualBuffer(), fill: this.fill(), resizableColumns: this.resizableColumns(), hrefFor: this.hrefFor(), distincts: this.distincts(), filters: this.filters(), fetchParams: this.fetchParams(), stateKey: this.stateKey() }), idPrefix: 'bs-datatable', outputs: { sortColumnsChange: this.sortcolumnschange, pageChange: this.pagechange, perPageChange: this.perpagechange, selectedIdsChange: this.selectedidschange, expandedIdsChange: this.expandedidschange, rowClick: this.rowclick, rowDblClick: this.rowdblclick, rowContextMenu: this.rowcontextmenu, selectionChanged: this.selectionchanged, rowExpand: this.rowexpand, rowCollapse: this.rowcollapse, loadError: this.loaderror, filtersChange: this.filterschange }, hostBag: (props) => ({ ...props.view.root, 'data-mps': 'datatable' }), models: { sortColumns: this.sortColumns, page: this.page, perPage: this.perPage, selectedIds: this.selectedIds, expandedIds: this.expandedIds, filters: this.filters } });
187
+ this.#core = useCore(datatableCore, { inputs: () => ({ columns: this.columns(), data: this.data(), fetch: this.fetch(), caption: this.caption(), labels: this.labels(), inputLabel: this.inputLabel(), sortColumns: this.sortColumns(), page: this.page(), perPage: this.perPage(), perPageOptions: this.perPageOptions(), pagination: this.pagination(), autoSort: this.autoSort(), selectionMode: this.selectionMode(), selectedIds: this.selectedIds(), cutIds: this.cutIds(), focusedRowKey: this.focusedRowKey(), rowLabel: this.rowLabel(), rowKey: this.rowKey(), tree: this.tree(), idKey: this.idKey(), childCountKey: this.childCountKey(), treeIndent: this.treeIndent(), expandedIds: this.expandedIds(), selectionStrategy: this.selectionStrategy(), loading: this.loading(), emptyMessage: this.emptyMessage(), virtualScroll: this.virtualScroll(), itemSize: this.itemSize(), virtualBuffer: this.virtualBuffer(), fill: this.fill(), resizableColumns: this.resizableColumns(), hrefFor: this.hrefFor(), distincts: this.distincts(), filters: this.filters(), fetchParams: this.fetchParams(), stateKey: this.stateKey() }), idPrefix: 'bs-datatable', outputs: { sortColumnsChange: this.sortcolumnschange, pageChange: this.pagechange, perPageChange: this.perpagechange, selectedIdsChange: this.selectedidschange, expandedIdsChange: this.expandedidschange, rowClick: this.rowclick, rowDblClick: this.rowdblclick, rowContextMenu: this.rowcontextmenu, selectionChanged: this.selectionchanged, rowExpand: this.rowexpand, rowCollapse: this.rowcollapse, loadError: this.loaderror, pageLoad: this.pageload, filtersChange: this.filterschange }, hostBag: (props) => ({ ...props.view.root, 'data-mps': 'datatable' }), models: { sortColumns: this.sortColumns, page: this.page, perPage: this.perPage, selectedIds: this.selectedIds, expandedIds: this.expandedIds, filters: this.filters } });
184
188
  /** The template's props. */
185
189
  this.props = this.#core.props;
190
+ useScopedStyles(bootstrapForms.key, bootstrapForms.css, { order: bootstrapForms.order });
191
+ useScopedStyles(bootstrapPagination.key, bootstrapPagination.css, { order: bootstrapPagination.order });
186
192
  useScopedStyles('datatable', datatableScopedStyles);
187
193
  }
188
194
  /** Re-query `fetch` for the current sort, page and page size; `{ resetPage: true }` also returns to page 1. */
@@ -190,12 +196,12 @@ class BsDatatableComponent {
190
196
  return this.#core.call('reload', args);
191
197
  }
192
198
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsDatatableComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
193
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.8", type: BsDatatableComponent, isStandalone: true, selector: "bs-datatable", inputs: { columns: { classPropertyName: "columns", publicName: "columns", isSignal: true, isRequired: false, transformFunction: null }, data: { classPropertyName: "data", publicName: "data", isSignal: true, isRequired: false, transformFunction: null }, fetch: { classPropertyName: "fetch", publicName: "fetch", isSignal: true, isRequired: false, transformFunction: null }, caption: { classPropertyName: "caption", publicName: "caption", isSignal: true, isRequired: false, transformFunction: null }, labels: { classPropertyName: "labels", publicName: "labels", isSignal: true, isRequired: false, transformFunction: null }, inputLabel: { classPropertyName: "inputLabel", publicName: "inputLabel", isSignal: true, isRequired: false, transformFunction: null }, sortColumns: { classPropertyName: "sortColumns", publicName: "sortColumns", isSignal: true, isRequired: false, transformFunction: null }, page: { classPropertyName: "page", publicName: "page", isSignal: true, isRequired: false, transformFunction: null }, perPage: { classPropertyName: "perPage", publicName: "perPage", isSignal: true, isRequired: false, transformFunction: null }, perPageOptions: { classPropertyName: "perPageOptions", publicName: "perPageOptions", isSignal: true, isRequired: false, transformFunction: null }, pagination: { classPropertyName: "pagination", publicName: "pagination", isSignal: true, isRequired: false, transformFunction: null }, autoSort: { classPropertyName: "autoSort", publicName: "autoSort", isSignal: true, isRequired: false, transformFunction: null }, selectionMode: { classPropertyName: "selectionMode", publicName: "selectionMode", isSignal: true, isRequired: false, transformFunction: null }, selectedIds: { classPropertyName: "selectedIds", publicName: "selectedIds", isSignal: true, isRequired: false, transformFunction: null }, cutIds: { classPropertyName: "cutIds", publicName: "cutIds", isSignal: true, isRequired: false, transformFunction: null }, focusedRowKey: { classPropertyName: "focusedRowKey", publicName: "focusedRowKey", isSignal: true, isRequired: false, transformFunction: null }, rowLabel: { classPropertyName: "rowLabel", publicName: "rowLabel", isSignal: true, isRequired: false, transformFunction: null }, rowKey: { classPropertyName: "rowKey", publicName: "rowKey", isSignal: true, isRequired: false, transformFunction: null }, tree: { classPropertyName: "tree", publicName: "tree", isSignal: true, isRequired: false, transformFunction: null }, idKey: { classPropertyName: "idKey", publicName: "idKey", isSignal: true, isRequired: false, transformFunction: null }, childCountKey: { classPropertyName: "childCountKey", publicName: "childCountKey", isSignal: true, isRequired: false, transformFunction: null }, treeIndent: { classPropertyName: "treeIndent", publicName: "treeIndent", isSignal: true, isRequired: false, transformFunction: null }, expandedIds: { classPropertyName: "expandedIds", publicName: "expandedIds", isSignal: true, isRequired: false, transformFunction: null }, selectionStrategy: { classPropertyName: "selectionStrategy", publicName: "selectionStrategy", isSignal: true, isRequired: false, transformFunction: null }, loading: { classPropertyName: "loading", publicName: "loading", isSignal: true, isRequired: false, transformFunction: null }, emptyMessage: { classPropertyName: "emptyMessage", publicName: "emptyMessage", isSignal: true, isRequired: false, transformFunction: null }, virtualScroll: { classPropertyName: "virtualScroll", publicName: "virtualScroll", isSignal: true, isRequired: false, transformFunction: null }, itemSize: { classPropertyName: "itemSize", publicName: "itemSize", isSignal: true, isRequired: false, transformFunction: null }, virtualBuffer: { classPropertyName: "virtualBuffer", publicName: "virtualBuffer", isSignal: true, isRequired: false, transformFunction: null }, fill: { classPropertyName: "fill", publicName: "fill", isSignal: true, isRequired: false, transformFunction: null }, resizableColumns: { classPropertyName: "resizableColumns", publicName: "resizableColumns", isSignal: true, isRequired: false, transformFunction: null }, hrefFor: { classPropertyName: "hrefFor", publicName: "hrefFor", isSignal: true, isRequired: false, transformFunction: null }, distincts: { classPropertyName: "distincts", publicName: "distincts", isSignal: true, isRequired: false, transformFunction: null }, filters: { classPropertyName: "filters", publicName: "filters", isSignal: true, isRequired: false, transformFunction: null }, fetchParams: { classPropertyName: "fetchParams", publicName: "fetchParams", isSignal: true, isRequired: false, transformFunction: null }, stateKey: { classPropertyName: "stateKey", publicName: "stateKey", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { sortColumns: "sortColumnsChange", page: "pageChange", perPage: "perPageChange", selectedIds: "selectedIdsChange", expandedIds: "expandedIdsChange", filters: "filtersChange", sortcolumnschange: "sortcolumnschange", pagechange: "pagechange", perpagechange: "perpagechange", selectedidschange: "selectedidschange", expandedidschange: "expandedidschange", rowclick: "rowclick", rowdblclick: "rowdblclick", rowcontextmenu: "rowcontextmenu", selectionchanged: "selectionchanged", rowexpand: "rowexpand", rowcollapse: "rowcollapse", loaderror: "loaderror", filterschange: "filterschange" }, queries: [{ propertyName: "headerSlot", first: true, predicate: BsDatatableHeaderDirective, descendants: true, isSignal: true }, { propertyName: "cellSlot", first: true, predicate: BsDatatableCellDirective, descendants: true, isSignal: true }, { propertyName: "rowSlot", first: true, predicate: BsDatatableRowDirective, descendants: true, isSignal: true }, { propertyName: "filterSlot", first: true, predicate: BsDatatableFilterDirective, descendants: true, isSignal: true }], ngImport: i0, template: "<!-- GENERATED from libs/mintplayer-ui-core/datatable/src/templates/datatable.view.vue by @mintplayer/nx-component-compiler. Do not edit. -->\n@let p_view = props().view;\n<div data-mps=\"datatable\" [mpProps]=\"p_view.live\">\n {{ p_view.announcement }}\n</div>\n<div data-mps=\"datatable\" [mpProps]=\"p_view.shell\">\n <div data-mps=\"datatable\" [mpProps]=\"p_view.scroll\">\n <table data-mps=\"datatable\" [mpProps]=\"p_view.table\" [style]=\"p_view.tableStyle\">\n @if (p_view.caption) {\n <caption data-mps=\"datatable\" [mpProps]=\"p_view.captionBag\">\n {{ p_view.caption }}\n </caption>\n }\n <thead data-mps=\"datatable\" [mpProps]=\"p_view.thead\">\n <tr data-mps=\"datatable\" [mpProps]=\"p_view.headerRow\">\n @if (p_view.chevronHeader) {\n <th data-mps=\"datatable\" [mpProps]=\"p_view.chevronHeader\"></th>\n }\n @if (p_view.checkHeader) {\n <th data-mps=\"datatable\" [mpProps]=\"p_view.checkHeader\">\n <input data-mps=\"datatable\" [mpProps]=\"p_view.deselectAll\" [checked]=\"false\" [indeterminate]=\"p_view.anySelected\">\n </th>\n }\n @for (h of p_view.headers; track h.key) {\n <th data-mps=\"datatable\" [mpProps]=\"h.th\" [style]=\"h.style\">\n @if (h.sortHref) {\n <a data-mps=\"datatable\" [mpProps]=\"h.sort\" [attr.href]=\"h.sortHref\">\n <span data-mps=\"datatable\" [mpProps]=\"h.text\">\n @if (slots().header; as slot_header) {\n <ng-container [ngTemplateOutlet]=\"slot_header\" [ngTemplateOutletContext]=\"{ $implicit: { column: h.column }, column: h.column }\" />\n } @else {\n {{ h.label }}\n }\n </span>\n @if (h.sortIndex) {\n <span data-mps=\"datatable\" [mpProps]=\"h.sortIndex\">\n {{ h.sortIndexText }}\n </span>\n }\n </a>\n } @else if (h.sortable) {\n <button data-mps=\"datatable\" [mpProps]=\"h.sort\">\n <span data-mps=\"datatable\" [mpProps]=\"h.text\">\n @if (slots().header; as slot_header) {\n <ng-container [ngTemplateOutlet]=\"slot_header\" [ngTemplateOutletContext]=\"{ $implicit: { column: h.column }, column: h.column }\" />\n } @else {\n {{ h.label }}\n }\n </span>\n @if (h.sortIndex) {\n <span data-mps=\"datatable\" [mpProps]=\"h.sortIndex\">\n {{ h.sortIndexText }}\n </span>\n }\n </button>\n } @else {\n <span data-mps=\"datatable\" [mpProps]=\"h.plain\">\n <span data-mps=\"datatable\" [mpProps]=\"h.text\">\n @if (slots().header; as slot_header) {\n <ng-container [ngTemplateOutlet]=\"slot_header\" [ngTemplateOutletContext]=\"{ $implicit: { column: h.column }, column: h.column }\" />\n } @else {\n {{ h.label }}\n }\n </span>\n </span>\n }\n @if (h.resize) {\n <span data-mps=\"datatable\" [mpProps]=\"h.resize\"></span>\n }\n </th>\n }\n </tr>\n @if (p_view.filterRow) {\n <tr data-mps=\"datatable\" [mpProps]=\"p_view.filterRow\">\n @if (p_view.filterChevronCell) {\n <th data-mps=\"datatable\" [mpProps]=\"p_view.filterChevronCell\"></th>\n }\n @if (p_view.filterCheckCell) {\n <th data-mps=\"datatable\" [mpProps]=\"p_view.filterCheckCell\"></th>\n }\n @for (fc of p_view.filterCells; track fc.key) {\n <th data-mps=\"datatable\" [mpProps]=\"fc.th\">\n @if (fc.trigger) {\n <button data-mps=\"datatable\" [mpProps]=\"fc.trigger\">\n <svg data-mps=\"datatable\" [mpProps]=\"fc.icon\">\n <path data-mps=\"datatable\" [mpProps]=\"fc.path\"></path>\n </svg>\n @if (fc.summary) {\n <span data-mps=\"datatable\" [mpProps]=\"fc.summary\">\n {{ fc.summaryText }}\n </span>\n }\n </button>\n }\n @if (fc.panel) {\n <div data-mps=\"datatable\" [mpProps]=\"fc.panel\">\n @if (fc.open && fc.open.custom) {\n <div data-mps=\"datatable\" [mpProps]=\"fc.open.body\">\n @if (slots().filter; as slot_filter) {\n <ng-container [ngTemplateOutlet]=\"slot_filter\" [ngTemplateOutletContext]=\"{ $implicit: { column: fc.open.column, ctx: fc.open.ctx }, column: fc.open.column, ctx: fc.open.ctx }\" />\n }\n </div>\n } @else if (fc.open) {\n <div data-mps=\"datatable\" [mpProps]=\"fc.open.body\">\n <button data-mps=\"datatable\" [mpProps]=\"fc.open.clear\">\n {{ fc.open.clearText }}\n </button>\n @if (fc.open.comparison) {\n <div data-mps=\"datatable\" [mpProps]=\"fc.open.comparison.wrap\">\n <select data-mps=\"datatable\" [mpProps]=\"fc.open.comparison.operator\">\n @for (op of fc.open.comparison.operators; track op.key) {\n <option data-mps=\"datatable\" [mpProps]=\"op.option\">\n {{ op.text }}\n </option>\n }\n </select>\n <input data-mps=\"datatable\" [mpProps]=\"fc.open.comparison.operand\" [value]=\"fc.open.comparison.operandText\">\n </div>\n }\n @if (fc.open.comparison && fc.open.comparison.applied) {\n <small data-mps=\"datatable\" [mpProps]=\"fc.open.comparison.applied\">\n {{ fc.open.comparison.appliedText }}\n </small>\n }\n @if (fc.open.list) {\n <input data-mps=\"datatable\" [mpProps]=\"fc.open.list.search\" [value]=\"fc.open.list.term\">\n }\n @if (fc.open.list) {\n <button data-mps=\"datatable\" [mpProps]=\"fc.open.list.invert\">\n {{ fc.open.list.invertText }}\n </button>\n }\n @if (fc.open.list) {\n <div data-mps=\"datatable\" [mpProps]=\"fc.open.list.group\">\n @if (fc.open.list.loading) {\n <span data-mps=\"datatable\" [mpProps]=\"fc.open.list.loading\">\n {{ fc.open.list.loadingText }}\n </span>\n }\n @for (opt of fc.open.list.options; track opt.key) {\n <label data-mps=\"datatable\" [mpProps]=\"opt.label\">\n <input data-mps=\"datatable\" [mpProps]=\"opt.input\" [checked]=\"opt.checked\">\n <span data-mps=\"datatable\">\n {{ opt.text }}\n </span>\n </label>\n }\n @if (fc.open.list.noValues) {\n <span data-mps=\"datatable\" [mpProps]=\"fc.open.list.noValues\">\n {{ fc.open.list.noValuesText }}\n </span>\n }\n </div>\n }\n @if (fc.open.list && fc.open.list.hasMore) {\n <span data-mps=\"datatable\" [mpProps]=\"fc.open.list.hasMore\">\n {{ fc.open.list.hasMoreText }}\n </span>\n }\n </div>\n }\n </div>\n }\n </th>\n }\n </tr>\n }\n </thead>\n <tbody data-mps=\"datatable\" [mpProps]=\"p_view.tbody\">\n @if (p_view.stateCell) {\n <tr data-mps=\"datatable\" [mpProps]=\"p_view.stateRow\">\n <td data-mps=\"datatable\" [mpProps]=\"p_view.stateCell\">\n {{ p_view.stateText }}\n </td>\n </tr>\n }\n @if (p_view.spacerTop) {\n <tr data-mps=\"datatable\" [mpProps]=\"p_view.spacerTop.tr\">\n <td data-mps=\"datatable\" [mpProps]=\"p_view.spacerTop.td\" [style]=\"p_view.spacerTop.style\"></td>\n </tr>\n }\n @for (r of p_view.rows; track r.key) {\n <tr data-mps=\"datatable\" [mpProps]=\"r.tr\">\n @if (r.chevronCell) {\n <td data-mps=\"datatable\" [mpProps]=\"r.chevronCell\" [style]=\"r.chevronStyle\">\n @if (r.chevron) {\n <button data-mps=\"datatable\" [mpProps]=\"r.chevron\">\n {{ r.chevronText }}\n </button>\n }\n </td>\n }\n @if (r.checkCell) {\n <td data-mps=\"datatable\" [mpProps]=\"r.checkCell\">\n @if (r.check) {\n <input data-mps=\"datatable\" [mpProps]=\"r.check\" [checked]=\"r.checked\" [indeterminate]=\"r.indeterminate\">\n }\n </td>\n }\n @if (r.placeholder) {\n <td data-mps=\"datatable\" [mpProps]=\"r.placeholder\">\n \u2026\n </td>\n } @else {\n @if (slots().row; as slot_row) {\n <ng-container [ngTemplateOutlet]=\"slot_row\" [ngTemplateOutletContext]=\"{ $implicit: { row: r.row, rowIndex: r.rowIndex, ctx: r.ctx }, row: r.row, rowIndex: r.rowIndex, ctx: r.ctx }\" />\n } @else {\n @for (c of r.cells; track c.key) {\n <td data-mps=\"datatable\" [mpProps]=\"c.td\">\n @if (slots().cell; as slot_cell) {\n <ng-container [ngTemplateOutlet]=\"slot_cell\" [ngTemplateOutletContext]=\"{ $implicit: { row: r.row, column: c.column, rowIndex: r.rowIndex }, row: r.row, column: c.column, rowIndex: r.rowIndex }\" />\n } @else {\n {{ c.text }}\n }\n </td>\n }\n }\n }\n </tr>\n }\n @if (p_view.spacerBottom) {\n <tr data-mps=\"datatable\" [mpProps]=\"p_view.spacerBottom.tr\">\n <td data-mps=\"datatable\" [mpProps]=\"p_view.spacerBottom.td\" [style]=\"p_view.spacerBottom.style\"></td>\n </tr>\n }\n </tbody>\n </table>\n </div>\n @if (p_view.footer) {\n <div data-mps=\"datatable\" [mpProps]=\"p_view.footer\">\n @for (p of p_view.pagers; track p.key) {\n <nav data-mps=\"datatable\" [mpProps]=\"p.nav\">\n <ul data-mps=\"datatable\" [mpProps]=\"p.list\">\n @for (e of p.entries; track e.key) {\n <li data-mps=\"datatable\" [mpProps]=\"e.item\">\n @if (e.gap) {\n <span data-mps=\"datatable\" [mpProps]=\"e.link\">\n {{ e.text }}\n </span>\n } @else if (e.anchor) {\n <a data-mps=\"datatable\" [mpProps]=\"e.link\" [attr.href]=\"e.href\">\n {{ e.text }}\n </a>\n } @else {\n <button data-mps=\"datatable\" [mpProps]=\"e.link\">\n {{ e.text }}\n </button>\n }\n </li>\n }\n </ul>\n </nav>\n }\n </div>\n }\n</div>\n<div data-mps=\"datatable\" [mpProps]=\"p_view.resizePanel\">\n <div data-mps=\"datatable\" [mpProps]=\"p_view.resizeSteps\">\n <button data-mps=\"datatable\" [mpProps]=\"p_view.narrower\">\n <span data-mps=\"datatable\" [mpProps]=\"p_view.stepGlyph\">\n \u2212\n </span>\n </button>\n <output data-mps=\"datatable\" [mpProps]=\"p_view.widthOutput\">\n {{ p_view.widthText }}\n </output>\n <button data-mps=\"datatable\" [mpProps]=\"p_view.wider\">\n <span data-mps=\"datatable\" [mpProps]=\"p_view.stepGlyph\">\n +\n </span>\n </button>\n </div>\n <button data-mps=\"datatable\" [mpProps]=\"p_view.fit\">\n {{ p_view.labels.fitColumn }}\n </button>\n <button data-mps=\"datatable\" [mpProps]=\"p_view.reset\">\n {{ p_view.labels.resetColumn }}\n </button>\n</div>\n", dependencies: [{ kind: "directive", type: MpPropsDirective, selector: "[mpProps]", inputs: ["mpProps"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
199
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.8", type: BsDatatableComponent, isStandalone: true, selector: "bs-datatable", inputs: { columns: { classPropertyName: "columns", publicName: "columns", isSignal: true, isRequired: false, transformFunction: null }, data: { classPropertyName: "data", publicName: "data", isSignal: true, isRequired: false, transformFunction: null }, fetch: { classPropertyName: "fetch", publicName: "fetch", isSignal: true, isRequired: false, transformFunction: null }, caption: { classPropertyName: "caption", publicName: "caption", isSignal: true, isRequired: false, transformFunction: null }, labels: { classPropertyName: "labels", publicName: "labels", isSignal: true, isRequired: false, transformFunction: null }, inputLabel: { classPropertyName: "inputLabel", publicName: "inputLabel", isSignal: true, isRequired: false, transformFunction: null }, sortColumns: { classPropertyName: "sortColumns", publicName: "sortColumns", isSignal: true, isRequired: false, transformFunction: null }, page: { classPropertyName: "page", publicName: "page", isSignal: true, isRequired: false, transformFunction: null }, perPage: { classPropertyName: "perPage", publicName: "perPage", isSignal: true, isRequired: false, transformFunction: null }, perPageOptions: { classPropertyName: "perPageOptions", publicName: "perPageOptions", isSignal: true, isRequired: false, transformFunction: null }, pagination: { classPropertyName: "pagination", publicName: "pagination", isSignal: true, isRequired: false, transformFunction: null }, autoSort: { classPropertyName: "autoSort", publicName: "autoSort", isSignal: true, isRequired: false, transformFunction: null }, selectionMode: { classPropertyName: "selectionMode", publicName: "selectionMode", isSignal: true, isRequired: false, transformFunction: null }, selectedIds: { classPropertyName: "selectedIds", publicName: "selectedIds", isSignal: true, isRequired: false, transformFunction: null }, cutIds: { classPropertyName: "cutIds", publicName: "cutIds", isSignal: true, isRequired: false, transformFunction: null }, focusedRowKey: { classPropertyName: "focusedRowKey", publicName: "focusedRowKey", isSignal: true, isRequired: false, transformFunction: null }, rowLabel: { classPropertyName: "rowLabel", publicName: "rowLabel", isSignal: true, isRequired: false, transformFunction: null }, rowKey: { classPropertyName: "rowKey", publicName: "rowKey", isSignal: true, isRequired: false, transformFunction: null }, tree: { classPropertyName: "tree", publicName: "tree", isSignal: true, isRequired: false, transformFunction: null }, idKey: { classPropertyName: "idKey", publicName: "idKey", isSignal: true, isRequired: false, transformFunction: null }, childCountKey: { classPropertyName: "childCountKey", publicName: "childCountKey", isSignal: true, isRequired: false, transformFunction: null }, treeIndent: { classPropertyName: "treeIndent", publicName: "treeIndent", isSignal: true, isRequired: false, transformFunction: null }, expandedIds: { classPropertyName: "expandedIds", publicName: "expandedIds", isSignal: true, isRequired: false, transformFunction: null }, selectionStrategy: { classPropertyName: "selectionStrategy", publicName: "selectionStrategy", isSignal: true, isRequired: false, transformFunction: null }, loading: { classPropertyName: "loading", publicName: "loading", isSignal: true, isRequired: false, transformFunction: null }, emptyMessage: { classPropertyName: "emptyMessage", publicName: "emptyMessage", isSignal: true, isRequired: false, transformFunction: null }, virtualScroll: { classPropertyName: "virtualScroll", publicName: "virtualScroll", isSignal: true, isRequired: false, transformFunction: null }, itemSize: { classPropertyName: "itemSize", publicName: "itemSize", isSignal: true, isRequired: false, transformFunction: null }, virtualBuffer: { classPropertyName: "virtualBuffer", publicName: "virtualBuffer", isSignal: true, isRequired: false, transformFunction: null }, fill: { classPropertyName: "fill", publicName: "fill", isSignal: true, isRequired: false, transformFunction: null }, resizableColumns: { classPropertyName: "resizableColumns", publicName: "resizableColumns", isSignal: true, isRequired: false, transformFunction: null }, hrefFor: { classPropertyName: "hrefFor", publicName: "hrefFor", isSignal: true, isRequired: false, transformFunction: null }, distincts: { classPropertyName: "distincts", publicName: "distincts", isSignal: true, isRequired: false, transformFunction: null }, filters: { classPropertyName: "filters", publicName: "filters", isSignal: true, isRequired: false, transformFunction: null }, fetchParams: { classPropertyName: "fetchParams", publicName: "fetchParams", isSignal: true, isRequired: false, transformFunction: null }, stateKey: { classPropertyName: "stateKey", publicName: "stateKey", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { sortColumns: "sortColumnsChange", page: "pageChange", perPage: "perPageChange", selectedIds: "selectedIdsChange", expandedIds: "expandedIdsChange", filters: "filtersChange", sortcolumnschange: "sortcolumnschange", pagechange: "pagechange", perpagechange: "perpagechange", selectedidschange: "selectedidschange", expandedidschange: "expandedidschange", rowclick: "rowclick", rowdblclick: "rowdblclick", rowcontextmenu: "rowcontextmenu", selectionchanged: "selectionchanged", rowexpand: "rowexpand", rowcollapse: "rowcollapse", loaderror: "loaderror", pageload: "pageload", filterschange: "filterschange" }, queries: [{ propertyName: "headerSlot", first: true, predicate: BsDatatableHeaderDirective, descendants: true, isSignal: true }, { propertyName: "cellSlot", first: true, predicate: BsDatatableCellDirective, descendants: true, isSignal: true }, { propertyName: "rowSlot", first: true, predicate: BsDatatableRowDirective, descendants: true, isSignal: true }, { propertyName: "filterSlot", first: true, predicate: BsDatatableFilterDirective, descendants: true, isSignal: true }], ngImport: i0, template: "<!-- GENERATED from libs/mintplayer-ui-core/datatable/src/templates/datatable.view.vue by @mintplayer/nx-component-compiler. Do not edit. -->\n@let p_view = props().view;\n<div data-mps=\"datatable\" [mpProps]=\"p_view.live\">\n {{ p_view.announcement }}\n</div>\n<div data-mps=\"datatable\" [mpProps]=\"p_view.shell\">\n <div data-mps=\"datatable\" [mpProps]=\"p_view.scroll\">\n <table data-mps=\"datatable\" [mpProps]=\"p_view.table\" [style]=\"p_view.tableStyle\">\n @if (p_view.caption) {\n <caption data-mps=\"datatable\" [mpProps]=\"p_view.captionBag\">\n {{ p_view.caption }}\n </caption>\n }\n <thead data-mps=\"datatable\" [mpProps]=\"p_view.thead\">\n <tr data-mps=\"datatable\" [mpProps]=\"p_view.headerRow\">\n @if (p_view.chevronHeader) {\n <th data-mps=\"datatable\" [mpProps]=\"p_view.chevronHeader\"></th>\n }\n @if (p_view.checkHeader) {\n <th data-mps=\"datatable\" [mpProps]=\"p_view.checkHeader\">\n <input data-mps=\"datatable\" [mpProps]=\"p_view.deselectAll\" [checked]=\"false\" [indeterminate]=\"p_view.anySelected\">\n </th>\n }\n @for (h of p_view.headers; track h.key) {\n <th data-mps=\"datatable\" [mpProps]=\"h.th\" [style]=\"h.style\">\n @if (h.sortHref) {\n <a data-mps=\"datatable\" [mpProps]=\"h.sort\" [attr.href]=\"h.sortHref\">\n <span data-mps=\"datatable\" [mpProps]=\"h.text\">\n @if (slots().header; as slot_header) {\n <ng-container [ngTemplateOutlet]=\"slot_header\" [ngTemplateOutletContext]=\"{ $implicit: { column: h.column }, column: h.column }\" />\n } @else {\n {{ h.label }}\n }\n </span>\n @if (h.sortIndex) {\n <span data-mps=\"datatable\" [mpProps]=\"h.sortIndex\">\n {{ h.sortIndexText }}\n </span>\n }\n </a>\n } @else if (h.sortable) {\n <button data-mps=\"datatable\" [mpProps]=\"h.sort\">\n <span data-mps=\"datatable\" [mpProps]=\"h.text\">\n @if (slots().header; as slot_header) {\n <ng-container [ngTemplateOutlet]=\"slot_header\" [ngTemplateOutletContext]=\"{ $implicit: { column: h.column }, column: h.column }\" />\n } @else {\n {{ h.label }}\n }\n </span>\n @if (h.sortIndex) {\n <span data-mps=\"datatable\" [mpProps]=\"h.sortIndex\">\n {{ h.sortIndexText }}\n </span>\n }\n </button>\n } @else {\n <span data-mps=\"datatable\" [mpProps]=\"h.plain\">\n <span data-mps=\"datatable\" [mpProps]=\"h.text\">\n @if (slots().header; as slot_header) {\n <ng-container [ngTemplateOutlet]=\"slot_header\" [ngTemplateOutletContext]=\"{ $implicit: { column: h.column }, column: h.column }\" />\n } @else {\n {{ h.label }}\n }\n </span>\n </span>\n }\n @if (h.resize) {\n <span data-mps=\"datatable\" [mpProps]=\"h.resize\"></span>\n }\n </th>\n }\n </tr>\n @if (p_view.filterRow) {\n <tr data-mps=\"datatable\" [mpProps]=\"p_view.filterRow\">\n @if (p_view.filterChevronCell) {\n <th data-mps=\"datatable\" [mpProps]=\"p_view.filterChevronCell\"></th>\n }\n @if (p_view.filterCheckCell) {\n <th data-mps=\"datatable\" [mpProps]=\"p_view.filterCheckCell\"></th>\n }\n @for (fc of p_view.filterCells; track fc.key) {\n <th data-mps=\"datatable\" [mpProps]=\"fc.th\">\n @if (fc.trigger) {\n <button data-mps=\"datatable\" [mpProps]=\"fc.trigger\">\n <svg data-mps=\"datatable\" [mpProps]=\"fc.icon\">\n <path data-mps=\"datatable\" [mpProps]=\"fc.path\"></path>\n </svg>\n @if (fc.summary) {\n <span data-mps=\"datatable\" [mpProps]=\"fc.summary\">\n {{ fc.summaryText }}\n </span>\n }\n </button>\n }\n @if (fc.panel) {\n <div data-mps=\"datatable\" [mpProps]=\"fc.panel\">\n @if (fc.open && fc.open.custom) {\n <div data-mps=\"datatable\" [mpProps]=\"fc.open.body\">\n @if (slots().filter; as slot_filter) {\n <ng-container [ngTemplateOutlet]=\"slot_filter\" [ngTemplateOutletContext]=\"{ $implicit: { column: fc.open.column, ctx: fc.open.ctx }, column: fc.open.column, ctx: fc.open.ctx }\" />\n }\n </div>\n } @else if (fc.open) {\n <div data-mps=\"datatable\" [mpProps]=\"fc.open.body\">\n <button data-mps=\"datatable\" [mpProps]=\"fc.open.clear\">\n {{ fc.open.clearText }}\n </button>\n @if (fc.open.comparison) {\n <div data-mps=\"datatable\" [mpProps]=\"fc.open.comparison.wrap\">\n <select data-mps=\"datatable\" [mpProps]=\"fc.open.comparison.operator\">\n @for (op of fc.open.comparison.operators; track op.key) {\n <option data-mps=\"datatable\" [mpProps]=\"op.option\">\n {{ op.text }}\n </option>\n }\n </select>\n <input data-mps=\"datatable\" [mpProps]=\"fc.open.comparison.operand\" [value]=\"fc.open.comparison.operandText\">\n </div>\n }\n @if (fc.open.comparison && fc.open.comparison.applied) {\n <small data-mps=\"datatable\" [mpProps]=\"fc.open.comparison.applied\">\n {{ fc.open.comparison.appliedText }}\n </small>\n }\n @if (fc.open.list) {\n <input data-mps=\"datatable\" [mpProps]=\"fc.open.list.search\" [value]=\"fc.open.list.term\">\n }\n @if (fc.open.list) {\n <button data-mps=\"datatable\" [mpProps]=\"fc.open.list.invert\">\n {{ fc.open.list.invertText }}\n </button>\n }\n @if (fc.open.list) {\n <div data-mps=\"datatable\" [mpProps]=\"fc.open.list.group\">\n @if (fc.open.list.loading) {\n <span data-mps=\"datatable\" [mpProps]=\"fc.open.list.loading\">\n {{ fc.open.list.loadingText }}\n </span>\n }\n @for (opt of fc.open.list.options; track opt.key) {\n <label data-mps=\"datatable\" [mpProps]=\"opt.label\">\n <input data-mps=\"datatable\" [mpProps]=\"opt.input\" [checked]=\"opt.checked\">\n <span data-mps=\"datatable\">\n {{ opt.text }}\n </span>\n </label>\n }\n @if (fc.open.list.noValues) {\n <span data-mps=\"datatable\" [mpProps]=\"fc.open.list.noValues\">\n {{ fc.open.list.noValuesText }}\n </span>\n }\n </div>\n }\n @if (fc.open.list && fc.open.list.hasMore) {\n <span data-mps=\"datatable\" [mpProps]=\"fc.open.list.hasMore\">\n {{ fc.open.list.hasMoreText }}\n </span>\n }\n </div>\n }\n </div>\n }\n </th>\n }\n </tr>\n }\n </thead>\n <tbody data-mps=\"datatable\" [mpProps]=\"p_view.tbody\">\n @if (p_view.stateCell) {\n <tr data-mps=\"datatable\" [mpProps]=\"p_view.stateRow\">\n <td data-mps=\"datatable\" [mpProps]=\"p_view.stateCell\">\n {{ p_view.stateText }}\n </td>\n </tr>\n }\n @if (p_view.spacerTop) {\n <tr data-mps=\"datatable\" [mpProps]=\"p_view.spacerTop.tr\">\n <td data-mps=\"datatable\" [mpProps]=\"p_view.spacerTop.td\" [style]=\"p_view.spacerTop.style\"></td>\n </tr>\n }\n @for (r of p_view.rows; track r.key) {\n <tr data-mps=\"datatable\" [mpProps]=\"r.tr\">\n @if (r.chevronCell) {\n <td data-mps=\"datatable\" [mpProps]=\"r.chevronCell\" [style]=\"r.chevronStyle\">\n @if (r.chevron) {\n <button data-mps=\"datatable\" [mpProps]=\"r.chevron\">\n {{ r.chevronText }}\n </button>\n }\n </td>\n }\n @if (r.checkCell) {\n <td data-mps=\"datatable\" [mpProps]=\"r.checkCell\">\n @if (r.check) {\n <input data-mps=\"datatable\" [mpProps]=\"r.check\" [checked]=\"r.checked\" [indeterminate]=\"r.indeterminate\">\n }\n </td>\n }\n @if (r.placeholder) {\n <td data-mps=\"datatable\" [mpProps]=\"r.placeholder\">\n \u2026\n </td>\n } @else {\n @if (slots().row; as slot_row) {\n <ng-container [ngTemplateOutlet]=\"slot_row\" [ngTemplateOutletContext]=\"{ $implicit: { row: r.row, rowIndex: r.rowIndex, ctx: r.ctx }, row: r.row, rowIndex: r.rowIndex, ctx: r.ctx }\" />\n } @else {\n @for (c of r.cells; track c.key) {\n <td data-mps=\"datatable\" [mpProps]=\"c.td\">\n @if (slots().cell; as slot_cell) {\n <ng-container [ngTemplateOutlet]=\"slot_cell\" [ngTemplateOutletContext]=\"{ $implicit: { row: r.row, column: c.column, rowIndex: r.rowIndex }, row: r.row, column: c.column, rowIndex: r.rowIndex }\" />\n } @else {\n {{ c.text }}\n }\n </td>\n }\n }\n }\n </tr>\n }\n @if (p_view.spacerBottom) {\n <tr data-mps=\"datatable\" [mpProps]=\"p_view.spacerBottom.tr\">\n <td data-mps=\"datatable\" [mpProps]=\"p_view.spacerBottom.td\" [style]=\"p_view.spacerBottom.style\"></td>\n </tr>\n }\n </tbody>\n </table>\n </div>\n @if (p_view.footer) {\n <div data-mps=\"datatable\" [mpProps]=\"p_view.footer\">\n @for (p of p_view.pagers; track p.key) {\n <nav data-mps=\"datatable\" [mpProps]=\"p.nav\">\n <ul data-mps=\"datatable\" [mpProps]=\"p.list\">\n @for (e of p.entries; track e.key) {\n <li data-mps=\"datatable\" [mpProps]=\"e.item\">\n @if (e.gap) {\n <span data-mps=\"datatable\" [mpProps]=\"e.link\">\n {{ e.text }}\n </span>\n } @else if (e.anchor) {\n <a data-mps=\"datatable\" [mpProps]=\"e.link\" [attr.href]=\"e.href\">\n {{ e.text }}\n </a>\n } @else {\n <button data-mps=\"datatable\" [mpProps]=\"e.link\">\n {{ e.text }}\n </button>\n }\n </li>\n }\n </ul>\n </nav>\n }\n </div>\n }\n</div>\n<div data-mps=\"datatable\" [mpProps]=\"p_view.resizePanel\">\n <div data-mps=\"datatable\" [mpProps]=\"p_view.resizeSteps\">\n <button data-mps=\"datatable\" [mpProps]=\"p_view.narrower\">\n <span data-mps=\"datatable\" [mpProps]=\"p_view.stepGlyph\">\n \u2212\n </span>\n </button>\n <output data-mps=\"datatable\" [mpProps]=\"p_view.widthOutput\">\n {{ p_view.widthText }}\n </output>\n <button data-mps=\"datatable\" [mpProps]=\"p_view.wider\">\n <span data-mps=\"datatable\" [mpProps]=\"p_view.stepGlyph\">\n +\n </span>\n </button>\n </div>\n <button data-mps=\"datatable\" [mpProps]=\"p_view.fit\">\n {{ p_view.labels.fitColumn }}\n </button>\n <button data-mps=\"datatable\" [mpProps]=\"p_view.reset\">\n {{ p_view.labels.resetColumn }}\n </button>\n</div>\n", dependencies: [{ kind: "directive", type: MpPropsDirective, selector: "[mpProps]", inputs: ["mpProps"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
194
200
  }
195
201
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsDatatableComponent, decorators: [{
196
202
  type: Component,
197
203
  args: [{ selector: 'bs-datatable', imports: [MpPropsDirective, NgTemplateOutlet], changeDetection: ChangeDetectionStrategy.OnPush, template: "<!-- GENERATED from libs/mintplayer-ui-core/datatable/src/templates/datatable.view.vue by @mintplayer/nx-component-compiler. Do not edit. -->\n@let p_view = props().view;\n<div data-mps=\"datatable\" [mpProps]=\"p_view.live\">\n {{ p_view.announcement }}\n</div>\n<div data-mps=\"datatable\" [mpProps]=\"p_view.shell\">\n <div data-mps=\"datatable\" [mpProps]=\"p_view.scroll\">\n <table data-mps=\"datatable\" [mpProps]=\"p_view.table\" [style]=\"p_view.tableStyle\">\n @if (p_view.caption) {\n <caption data-mps=\"datatable\" [mpProps]=\"p_view.captionBag\">\n {{ p_view.caption }}\n </caption>\n }\n <thead data-mps=\"datatable\" [mpProps]=\"p_view.thead\">\n <tr data-mps=\"datatable\" [mpProps]=\"p_view.headerRow\">\n @if (p_view.chevronHeader) {\n <th data-mps=\"datatable\" [mpProps]=\"p_view.chevronHeader\"></th>\n }\n @if (p_view.checkHeader) {\n <th data-mps=\"datatable\" [mpProps]=\"p_view.checkHeader\">\n <input data-mps=\"datatable\" [mpProps]=\"p_view.deselectAll\" [checked]=\"false\" [indeterminate]=\"p_view.anySelected\">\n </th>\n }\n @for (h of p_view.headers; track h.key) {\n <th data-mps=\"datatable\" [mpProps]=\"h.th\" [style]=\"h.style\">\n @if (h.sortHref) {\n <a data-mps=\"datatable\" [mpProps]=\"h.sort\" [attr.href]=\"h.sortHref\">\n <span data-mps=\"datatable\" [mpProps]=\"h.text\">\n @if (slots().header; as slot_header) {\n <ng-container [ngTemplateOutlet]=\"slot_header\" [ngTemplateOutletContext]=\"{ $implicit: { column: h.column }, column: h.column }\" />\n } @else {\n {{ h.label }}\n }\n </span>\n @if (h.sortIndex) {\n <span data-mps=\"datatable\" [mpProps]=\"h.sortIndex\">\n {{ h.sortIndexText }}\n </span>\n }\n </a>\n } @else if (h.sortable) {\n <button data-mps=\"datatable\" [mpProps]=\"h.sort\">\n <span data-mps=\"datatable\" [mpProps]=\"h.text\">\n @if (slots().header; as slot_header) {\n <ng-container [ngTemplateOutlet]=\"slot_header\" [ngTemplateOutletContext]=\"{ $implicit: { column: h.column }, column: h.column }\" />\n } @else {\n {{ h.label }}\n }\n </span>\n @if (h.sortIndex) {\n <span data-mps=\"datatable\" [mpProps]=\"h.sortIndex\">\n {{ h.sortIndexText }}\n </span>\n }\n </button>\n } @else {\n <span data-mps=\"datatable\" [mpProps]=\"h.plain\">\n <span data-mps=\"datatable\" [mpProps]=\"h.text\">\n @if (slots().header; as slot_header) {\n <ng-container [ngTemplateOutlet]=\"slot_header\" [ngTemplateOutletContext]=\"{ $implicit: { column: h.column }, column: h.column }\" />\n } @else {\n {{ h.label }}\n }\n </span>\n </span>\n }\n @if (h.resize) {\n <span data-mps=\"datatable\" [mpProps]=\"h.resize\"></span>\n }\n </th>\n }\n </tr>\n @if (p_view.filterRow) {\n <tr data-mps=\"datatable\" [mpProps]=\"p_view.filterRow\">\n @if (p_view.filterChevronCell) {\n <th data-mps=\"datatable\" [mpProps]=\"p_view.filterChevronCell\"></th>\n }\n @if (p_view.filterCheckCell) {\n <th data-mps=\"datatable\" [mpProps]=\"p_view.filterCheckCell\"></th>\n }\n @for (fc of p_view.filterCells; track fc.key) {\n <th data-mps=\"datatable\" [mpProps]=\"fc.th\">\n @if (fc.trigger) {\n <button data-mps=\"datatable\" [mpProps]=\"fc.trigger\">\n <svg data-mps=\"datatable\" [mpProps]=\"fc.icon\">\n <path data-mps=\"datatable\" [mpProps]=\"fc.path\"></path>\n </svg>\n @if (fc.summary) {\n <span data-mps=\"datatable\" [mpProps]=\"fc.summary\">\n {{ fc.summaryText }}\n </span>\n }\n </button>\n }\n @if (fc.panel) {\n <div data-mps=\"datatable\" [mpProps]=\"fc.panel\">\n @if (fc.open && fc.open.custom) {\n <div data-mps=\"datatable\" [mpProps]=\"fc.open.body\">\n @if (slots().filter; as slot_filter) {\n <ng-container [ngTemplateOutlet]=\"slot_filter\" [ngTemplateOutletContext]=\"{ $implicit: { column: fc.open.column, ctx: fc.open.ctx }, column: fc.open.column, ctx: fc.open.ctx }\" />\n }\n </div>\n } @else if (fc.open) {\n <div data-mps=\"datatable\" [mpProps]=\"fc.open.body\">\n <button data-mps=\"datatable\" [mpProps]=\"fc.open.clear\">\n {{ fc.open.clearText }}\n </button>\n @if (fc.open.comparison) {\n <div data-mps=\"datatable\" [mpProps]=\"fc.open.comparison.wrap\">\n <select data-mps=\"datatable\" [mpProps]=\"fc.open.comparison.operator\">\n @for (op of fc.open.comparison.operators; track op.key) {\n <option data-mps=\"datatable\" [mpProps]=\"op.option\">\n {{ op.text }}\n </option>\n }\n </select>\n <input data-mps=\"datatable\" [mpProps]=\"fc.open.comparison.operand\" [value]=\"fc.open.comparison.operandText\">\n </div>\n }\n @if (fc.open.comparison && fc.open.comparison.applied) {\n <small data-mps=\"datatable\" [mpProps]=\"fc.open.comparison.applied\">\n {{ fc.open.comparison.appliedText }}\n </small>\n }\n @if (fc.open.list) {\n <input data-mps=\"datatable\" [mpProps]=\"fc.open.list.search\" [value]=\"fc.open.list.term\">\n }\n @if (fc.open.list) {\n <button data-mps=\"datatable\" [mpProps]=\"fc.open.list.invert\">\n {{ fc.open.list.invertText }}\n </button>\n }\n @if (fc.open.list) {\n <div data-mps=\"datatable\" [mpProps]=\"fc.open.list.group\">\n @if (fc.open.list.loading) {\n <span data-mps=\"datatable\" [mpProps]=\"fc.open.list.loading\">\n {{ fc.open.list.loadingText }}\n </span>\n }\n @for (opt of fc.open.list.options; track opt.key) {\n <label data-mps=\"datatable\" [mpProps]=\"opt.label\">\n <input data-mps=\"datatable\" [mpProps]=\"opt.input\" [checked]=\"opt.checked\">\n <span data-mps=\"datatable\">\n {{ opt.text }}\n </span>\n </label>\n }\n @if (fc.open.list.noValues) {\n <span data-mps=\"datatable\" [mpProps]=\"fc.open.list.noValues\">\n {{ fc.open.list.noValuesText }}\n </span>\n }\n </div>\n }\n @if (fc.open.list && fc.open.list.hasMore) {\n <span data-mps=\"datatable\" [mpProps]=\"fc.open.list.hasMore\">\n {{ fc.open.list.hasMoreText }}\n </span>\n }\n </div>\n }\n </div>\n }\n </th>\n }\n </tr>\n }\n </thead>\n <tbody data-mps=\"datatable\" [mpProps]=\"p_view.tbody\">\n @if (p_view.stateCell) {\n <tr data-mps=\"datatable\" [mpProps]=\"p_view.stateRow\">\n <td data-mps=\"datatable\" [mpProps]=\"p_view.stateCell\">\n {{ p_view.stateText }}\n </td>\n </tr>\n }\n @if (p_view.spacerTop) {\n <tr data-mps=\"datatable\" [mpProps]=\"p_view.spacerTop.tr\">\n <td data-mps=\"datatable\" [mpProps]=\"p_view.spacerTop.td\" [style]=\"p_view.spacerTop.style\"></td>\n </tr>\n }\n @for (r of p_view.rows; track r.key) {\n <tr data-mps=\"datatable\" [mpProps]=\"r.tr\">\n @if (r.chevronCell) {\n <td data-mps=\"datatable\" [mpProps]=\"r.chevronCell\" [style]=\"r.chevronStyle\">\n @if (r.chevron) {\n <button data-mps=\"datatable\" [mpProps]=\"r.chevron\">\n {{ r.chevronText }}\n </button>\n }\n </td>\n }\n @if (r.checkCell) {\n <td data-mps=\"datatable\" [mpProps]=\"r.checkCell\">\n @if (r.check) {\n <input data-mps=\"datatable\" [mpProps]=\"r.check\" [checked]=\"r.checked\" [indeterminate]=\"r.indeterminate\">\n }\n </td>\n }\n @if (r.placeholder) {\n <td data-mps=\"datatable\" [mpProps]=\"r.placeholder\">\n \u2026\n </td>\n } @else {\n @if (slots().row; as slot_row) {\n <ng-container [ngTemplateOutlet]=\"slot_row\" [ngTemplateOutletContext]=\"{ $implicit: { row: r.row, rowIndex: r.rowIndex, ctx: r.ctx }, row: r.row, rowIndex: r.rowIndex, ctx: r.ctx }\" />\n } @else {\n @for (c of r.cells; track c.key) {\n <td data-mps=\"datatable\" [mpProps]=\"c.td\">\n @if (slots().cell; as slot_cell) {\n <ng-container [ngTemplateOutlet]=\"slot_cell\" [ngTemplateOutletContext]=\"{ $implicit: { row: r.row, column: c.column, rowIndex: r.rowIndex }, row: r.row, column: c.column, rowIndex: r.rowIndex }\" />\n } @else {\n {{ c.text }}\n }\n </td>\n }\n }\n }\n </tr>\n }\n @if (p_view.spacerBottom) {\n <tr data-mps=\"datatable\" [mpProps]=\"p_view.spacerBottom.tr\">\n <td data-mps=\"datatable\" [mpProps]=\"p_view.spacerBottom.td\" [style]=\"p_view.spacerBottom.style\"></td>\n </tr>\n }\n </tbody>\n </table>\n </div>\n @if (p_view.footer) {\n <div data-mps=\"datatable\" [mpProps]=\"p_view.footer\">\n @for (p of p_view.pagers; track p.key) {\n <nav data-mps=\"datatable\" [mpProps]=\"p.nav\">\n <ul data-mps=\"datatable\" [mpProps]=\"p.list\">\n @for (e of p.entries; track e.key) {\n <li data-mps=\"datatable\" [mpProps]=\"e.item\">\n @if (e.gap) {\n <span data-mps=\"datatable\" [mpProps]=\"e.link\">\n {{ e.text }}\n </span>\n } @else if (e.anchor) {\n <a data-mps=\"datatable\" [mpProps]=\"e.link\" [attr.href]=\"e.href\">\n {{ e.text }}\n </a>\n } @else {\n <button data-mps=\"datatable\" [mpProps]=\"e.link\">\n {{ e.text }}\n </button>\n }\n </li>\n }\n </ul>\n </nav>\n }\n </div>\n }\n</div>\n<div data-mps=\"datatable\" [mpProps]=\"p_view.resizePanel\">\n <div data-mps=\"datatable\" [mpProps]=\"p_view.resizeSteps\">\n <button data-mps=\"datatable\" [mpProps]=\"p_view.narrower\">\n <span data-mps=\"datatable\" [mpProps]=\"p_view.stepGlyph\">\n \u2212\n </span>\n </button>\n <output data-mps=\"datatable\" [mpProps]=\"p_view.widthOutput\">\n {{ p_view.widthText }}\n </output>\n <button data-mps=\"datatable\" [mpProps]=\"p_view.wider\">\n <span data-mps=\"datatable\" [mpProps]=\"p_view.stepGlyph\">\n +\n </span>\n </button>\n </div>\n <button data-mps=\"datatable\" [mpProps]=\"p_view.fit\">\n {{ p_view.labels.fitColumn }}\n </button>\n <button data-mps=\"datatable\" [mpProps]=\"p_view.reset\">\n {{ p_view.labels.resetColumn }}\n </button>\n</div>\n" }]
198
- }], ctorParameters: () => [], propDecorators: { columns: [{ type: i0.Input, args: [{ isSignal: true, alias: "columns", required: false }] }], data: [{ type: i0.Input, args: [{ isSignal: true, alias: "data", required: false }] }], fetch: [{ type: i0.Input, args: [{ isSignal: true, alias: "fetch", required: false }] }], caption: [{ type: i0.Input, args: [{ isSignal: true, alias: "caption", required: false }] }], labels: [{ type: i0.Input, args: [{ isSignal: true, alias: "labels", required: false }] }], inputLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "inputLabel", required: false }] }], sortColumns: [{ type: i0.Input, args: [{ isSignal: true, alias: "sortColumns", required: false }] }, { type: i0.Output, args: ["sortColumnsChange"] }], page: [{ type: i0.Input, args: [{ isSignal: true, alias: "page", required: false }] }, { type: i0.Output, args: ["pageChange"] }], perPage: [{ type: i0.Input, args: [{ isSignal: true, alias: "perPage", required: false }] }, { type: i0.Output, args: ["perPageChange"] }], perPageOptions: [{ type: i0.Input, args: [{ isSignal: true, alias: "perPageOptions", required: false }] }], pagination: [{ type: i0.Input, args: [{ isSignal: true, alias: "pagination", required: false }] }], autoSort: [{ type: i0.Input, args: [{ isSignal: true, alias: "autoSort", required: false }] }], selectionMode: [{ type: i0.Input, args: [{ isSignal: true, alias: "selectionMode", required: false }] }], selectedIds: [{ type: i0.Input, args: [{ isSignal: true, alias: "selectedIds", required: false }] }, { type: i0.Output, args: ["selectedIdsChange"] }], cutIds: [{ type: i0.Input, args: [{ isSignal: true, alias: "cutIds", required: false }] }], focusedRowKey: [{ type: i0.Input, args: [{ isSignal: true, alias: "focusedRowKey", required: false }] }], rowLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "rowLabel", required: false }] }], rowKey: [{ type: i0.Input, args: [{ isSignal: true, alias: "rowKey", required: false }] }], tree: [{ type: i0.Input, args: [{ isSignal: true, alias: "tree", required: false }] }], idKey: [{ type: i0.Input, args: [{ isSignal: true, alias: "idKey", required: false }] }], childCountKey: [{ type: i0.Input, args: [{ isSignal: true, alias: "childCountKey", required: false }] }], treeIndent: [{ type: i0.Input, args: [{ isSignal: true, alias: "treeIndent", required: false }] }], expandedIds: [{ type: i0.Input, args: [{ isSignal: true, alias: "expandedIds", required: false }] }, { type: i0.Output, args: ["expandedIdsChange"] }], selectionStrategy: [{ type: i0.Input, args: [{ isSignal: true, alias: "selectionStrategy", required: false }] }], loading: [{ type: i0.Input, args: [{ isSignal: true, alias: "loading", required: false }] }], emptyMessage: [{ type: i0.Input, args: [{ isSignal: true, alias: "emptyMessage", required: false }] }], virtualScroll: [{ type: i0.Input, args: [{ isSignal: true, alias: "virtualScroll", required: false }] }], itemSize: [{ type: i0.Input, args: [{ isSignal: true, alias: "itemSize", required: false }] }], virtualBuffer: [{ type: i0.Input, args: [{ isSignal: true, alias: "virtualBuffer", required: false }] }], fill: [{ type: i0.Input, args: [{ isSignal: true, alias: "fill", required: false }] }], resizableColumns: [{ type: i0.Input, args: [{ isSignal: true, alias: "resizableColumns", required: false }] }], hrefFor: [{ type: i0.Input, args: [{ isSignal: true, alias: "hrefFor", required: false }] }], distincts: [{ type: i0.Input, args: [{ isSignal: true, alias: "distincts", required: false }] }], filters: [{ type: i0.Input, args: [{ isSignal: true, alias: "filters", required: false }] }, { type: i0.Output, args: ["filtersChange"] }], fetchParams: [{ type: i0.Input, args: [{ isSignal: true, alias: "fetchParams", required: false }] }], stateKey: [{ type: i0.Input, args: [{ isSignal: true, alias: "stateKey", required: false }] }], sortcolumnschange: [{ type: i0.Output, args: ["sortcolumnschange"] }], pagechange: [{ type: i0.Output, args: ["pagechange"] }], perpagechange: [{ type: i0.Output, args: ["perpagechange"] }], selectedidschange: [{ type: i0.Output, args: ["selectedidschange"] }], expandedidschange: [{ type: i0.Output, args: ["expandedidschange"] }], rowclick: [{ type: i0.Output, args: ["rowclick"] }], rowdblclick: [{ type: i0.Output, args: ["rowdblclick"] }], rowcontextmenu: [{ type: i0.Output, args: ["rowcontextmenu"] }], selectionchanged: [{ type: i0.Output, args: ["selectionchanged"] }], rowexpand: [{ type: i0.Output, args: ["rowexpand"] }], rowcollapse: [{ type: i0.Output, args: ["rowcollapse"] }], loaderror: [{ type: i0.Output, args: ["loaderror"] }], filterschange: [{ type: i0.Output, args: ["filterschange"] }], headerSlot: [{ type: i0.ContentChild, args: [i0.forwardRef(() => BsDatatableHeaderDirective), { isSignal: true }] }], cellSlot: [{ type: i0.ContentChild, args: [i0.forwardRef(() => BsDatatableCellDirective), { isSignal: true }] }], rowSlot: [{ type: i0.ContentChild, args: [i0.forwardRef(() => BsDatatableRowDirective), { isSignal: true }] }], filterSlot: [{ type: i0.ContentChild, args: [i0.forwardRef(() => BsDatatableFilterDirective), { isSignal: true }] }] } });
204
+ }], ctorParameters: () => [], propDecorators: { columns: [{ type: i0.Input, args: [{ isSignal: true, alias: "columns", required: false }] }], data: [{ type: i0.Input, args: [{ isSignal: true, alias: "data", required: false }] }], fetch: [{ type: i0.Input, args: [{ isSignal: true, alias: "fetch", required: false }] }], caption: [{ type: i0.Input, args: [{ isSignal: true, alias: "caption", required: false }] }], labels: [{ type: i0.Input, args: [{ isSignal: true, alias: "labels", required: false }] }], inputLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "inputLabel", required: false }] }], sortColumns: [{ type: i0.Input, args: [{ isSignal: true, alias: "sortColumns", required: false }] }, { type: i0.Output, args: ["sortColumnsChange"] }], page: [{ type: i0.Input, args: [{ isSignal: true, alias: "page", required: false }] }, { type: i0.Output, args: ["pageChange"] }], perPage: [{ type: i0.Input, args: [{ isSignal: true, alias: "perPage", required: false }] }, { type: i0.Output, args: ["perPageChange"] }], perPageOptions: [{ type: i0.Input, args: [{ isSignal: true, alias: "perPageOptions", required: false }] }], pagination: [{ type: i0.Input, args: [{ isSignal: true, alias: "pagination", required: false }] }], autoSort: [{ type: i0.Input, args: [{ isSignal: true, alias: "autoSort", required: false }] }], selectionMode: [{ type: i0.Input, args: [{ isSignal: true, alias: "selectionMode", required: false }] }], selectedIds: [{ type: i0.Input, args: [{ isSignal: true, alias: "selectedIds", required: false }] }, { type: i0.Output, args: ["selectedIdsChange"] }], cutIds: [{ type: i0.Input, args: [{ isSignal: true, alias: "cutIds", required: false }] }], focusedRowKey: [{ type: i0.Input, args: [{ isSignal: true, alias: "focusedRowKey", required: false }] }], rowLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "rowLabel", required: false }] }], rowKey: [{ type: i0.Input, args: [{ isSignal: true, alias: "rowKey", required: false }] }], tree: [{ type: i0.Input, args: [{ isSignal: true, alias: "tree", required: false }] }], idKey: [{ type: i0.Input, args: [{ isSignal: true, alias: "idKey", required: false }] }], childCountKey: [{ type: i0.Input, args: [{ isSignal: true, alias: "childCountKey", required: false }] }], treeIndent: [{ type: i0.Input, args: [{ isSignal: true, alias: "treeIndent", required: false }] }], expandedIds: [{ type: i0.Input, args: [{ isSignal: true, alias: "expandedIds", required: false }] }, { type: i0.Output, args: ["expandedIdsChange"] }], selectionStrategy: [{ type: i0.Input, args: [{ isSignal: true, alias: "selectionStrategy", required: false }] }], loading: [{ type: i0.Input, args: [{ isSignal: true, alias: "loading", required: false }] }], emptyMessage: [{ type: i0.Input, args: [{ isSignal: true, alias: "emptyMessage", required: false }] }], virtualScroll: [{ type: i0.Input, args: [{ isSignal: true, alias: "virtualScroll", required: false }] }], itemSize: [{ type: i0.Input, args: [{ isSignal: true, alias: "itemSize", required: false }] }], virtualBuffer: [{ type: i0.Input, args: [{ isSignal: true, alias: "virtualBuffer", required: false }] }], fill: [{ type: i0.Input, args: [{ isSignal: true, alias: "fill", required: false }] }], resizableColumns: [{ type: i0.Input, args: [{ isSignal: true, alias: "resizableColumns", required: false }] }], hrefFor: [{ type: i0.Input, args: [{ isSignal: true, alias: "hrefFor", required: false }] }], distincts: [{ type: i0.Input, args: [{ isSignal: true, alias: "distincts", required: false }] }], filters: [{ type: i0.Input, args: [{ isSignal: true, alias: "filters", required: false }] }, { type: i0.Output, args: ["filtersChange"] }], fetchParams: [{ type: i0.Input, args: [{ isSignal: true, alias: "fetchParams", required: false }] }], stateKey: [{ type: i0.Input, args: [{ isSignal: true, alias: "stateKey", required: false }] }], sortcolumnschange: [{ type: i0.Output, args: ["sortcolumnschange"] }], pagechange: [{ type: i0.Output, args: ["pagechange"] }], perpagechange: [{ type: i0.Output, args: ["perpagechange"] }], selectedidschange: [{ type: i0.Output, args: ["selectedidschange"] }], expandedidschange: [{ type: i0.Output, args: ["expandedidschange"] }], rowclick: [{ type: i0.Output, args: ["rowclick"] }], rowdblclick: [{ type: i0.Output, args: ["rowdblclick"] }], rowcontextmenu: [{ type: i0.Output, args: ["rowcontextmenu"] }], selectionchanged: [{ type: i0.Output, args: ["selectionchanged"] }], rowexpand: [{ type: i0.Output, args: ["rowexpand"] }], rowcollapse: [{ type: i0.Output, args: ["rowcollapse"] }], loaderror: [{ type: i0.Output, args: ["loaderror"] }], pageload: [{ type: i0.Output, args: ["pageload"] }], filterschange: [{ type: i0.Output, args: ["filterschange"] }], headerSlot: [{ type: i0.ContentChild, args: [i0.forwardRef(() => BsDatatableHeaderDirective), { isSignal: true }] }], cellSlot: [{ type: i0.ContentChild, args: [i0.forwardRef(() => BsDatatableCellDirective), { isSignal: true }] }], rowSlot: [{ type: i0.ContentChild, args: [i0.forwardRef(() => BsDatatableRowDirective), { isSignal: true }] }], filterSlot: [{ type: i0.ContentChild, args: [i0.forwardRef(() => BsDatatableFilterDirective), { isSignal: true }] }] } });
199
205
 
200
206
  // GENERATED from the datatable manifest by @mintplayer/nx-component-compiler. Do not edit.
201
207