@mintplayer/ng-bootstrap 22.31.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 (148) 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 +4 -0
  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 +2 -0
  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-datepicker.d.ts +1 -1
  118. package/types/mintplayer-ng-bootstrap-datetime-picker.d.ts +1 -1
  119. package/types/mintplayer-ng-bootstrap-dropdown-divider.d.ts +1 -0
  120. package/types/mintplayer-ng-bootstrap-for.d.ts +5 -5
  121. package/types/mintplayer-ng-bootstrap-form.d.ts +1 -0
  122. package/types/mintplayer-ng-bootstrap-grid.d.ts +14 -0
  123. package/types/mintplayer-ng-bootstrap-list-group.d.ts +15 -8
  124. package/types/mintplayer-ng-bootstrap-machine.d.ts +13 -2
  125. package/types/mintplayer-ng-bootstrap-modal.d.ts +2 -0
  126. package/types/mintplayer-ng-bootstrap-nav.d.ts +52 -0
  127. package/types/mintplayer-ng-bootstrap-navbar-toggler.d.ts +1 -0
  128. package/types/mintplayer-ng-bootstrap-navbar.d.ts +17 -1
  129. package/types/mintplayer-ng-bootstrap-otp-input.d.ts +1 -1
  130. package/types/mintplayer-ng-bootstrap-pagination.d.ts +1 -0
  131. package/types/mintplayer-ng-bootstrap-phone-input.d.ts +1 -1
  132. package/types/mintplayer-ng-bootstrap-placeholder.d.ts +10 -10
  133. package/types/mintplayer-ng-bootstrap-popover.d.ts +3 -0
  134. package/types/mintplayer-ng-bootstrap-progress-bar.d.ts +2 -0
  135. package/types/mintplayer-ng-bootstrap-radio.d.ts +1 -1
  136. package/types/mintplayer-ng-bootstrap-range.d.ts +1 -0
  137. package/types/mintplayer-ng-bootstrap-scrollspy.d.ts +1 -0
  138. package/types/mintplayer-ng-bootstrap-select.d.ts +1 -1
  139. package/types/mintplayer-ng-bootstrap-signature-pad.d.ts +1 -1
  140. package/types/mintplayer-ng-bootstrap-spinner.d.ts +14 -7
  141. package/types/mintplayer-ng-bootstrap-sticky-footer.d.ts +7 -1
  142. package/types/mintplayer-ng-bootstrap-table.d.ts +2 -6
  143. package/types/mintplayer-ng-bootstrap-timepicker.d.ts +1 -1
  144. package/types/mintplayer-ng-bootstrap-toast.d.ts +2 -0
  145. package/container/package.json +0 -4
  146. package/fesm2022/mintplayer-ng-bootstrap-container.mjs +0 -18
  147. package/fesm2022/mintplayer-ng-bootstrap-container.mjs.map +0 -1
  148. package/types/mintplayer-ng-bootstrap-container.d.ts +0 -8
@@ -109,7 +109,7 @@ class BsFileUploadComponent {
109
109
  }
110
110
  }
111
111
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsFileUploadComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
112
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.8", type: BsFileUploadComponent, isStandalone: true, selector: "bs-file-upload", inputs: { dropFilesCaption: { classPropertyName: "dropFilesCaption", publicName: "dropFilesCaption", isSignal: true, isRequired: false, transformFunction: null }, browseFilesCaption: { classPropertyName: "browseFilesCaption", publicName: "browseFilesCaption", isSignal: true, isRequired: false, transformFunction: null }, placeholder: { classPropertyName: "placeholder", publicName: "placeholder", isSignal: true, isRequired: false, transformFunction: null }, ariaLabel: { classPropertyName: "ariaLabel", publicName: "ariaLabel", isSignal: true, isRequired: false, transformFunction: null }, inputAriaLabel: { classPropertyName: "inputAriaLabel", publicName: "inputAriaLabel", isSignal: true, isRequired: false, transformFunction: null }, fileAddedAnnouncement: { classPropertyName: "fileAddedAnnouncement", publicName: "fileAddedAnnouncement", isSignal: true, isRequired: false, transformFunction: null }, filesAddedAnnouncement: { classPropertyName: "filesAddedAnnouncement", publicName: "filesAddedAnnouncement", isSignal: true, isRequired: false, transformFunction: null }, progressLabel: { classPropertyName: "progressLabel", publicName: "progressLabel", isSignal: true, isRequired: false, transformFunction: null }, files: { classPropertyName: "files", publicName: "files", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { files: "filesChange", filesDropped: "filesDropped" }, host: { listeners: { "dragover": "onDragOver($event)", "dragleave": "onDragLeave($event)", "drop": "onDrop($event)" } }, ngImport: i0, template: "<div class=\"dropzone border position-relative p-5\" role=\"region\" [attr.aria-label]=\"ariaLabel()\" [class.dragging]=\"isDraggingFile()\">\n <input type=\"file\" multiple #fileUpload (change)=\"onChange($event)\" [title]=\"placeholder()\" [placeholder]=\"placeholder()\" [attr.aria-label]=\"inputAriaLabel()\" class=\"position-absolute w-100 h-100\">\n <!-- <img src=\"/assets/ic-file-upload.svg\" [alt]=\"placeholder()\"> -->\n <span class=\"h3 d-block\" aria-hidden=\"true\">{{ dropFilesCaption() }}</span>\n <label class=\"btn btn-primary position-relative\" [bsFor]=\"fileUpload\">{{ browseFilesCaption() }}</label>\n</div>\n<bs-list-group class=\"files-list\">\n @for (upload of files(); track upload.index) {\n <bs-list-group-item>\n <ng-container *ngTemplateOutlet=\"fileTemplate() ?? defaultFileTemplate; context: { $implicit: upload }\"></ng-container>\n </bs-list-group-item>\n }\n</bs-list-group>\n\n<ng-template #defaultFileTemplate let-upload>\n <div class=\"d-flex flex-row mx-auto\">\n <div class=\"file-img\" aria-hidden=\"true\"></div>\n <div class=\"flex-grow-1 text-start px-2\">\n <span class=\"d-block text-truncate text-secondary\">{{ upload.file.name }}</span>\n <span class=\"d-block text-grey mb-0\">{{ upload.file.size | bsFormatBytes }}</span>\n <bs-progress [height]=\"4\">\n <bs-progress-bar [minimum]=\"0\" [maximum]=\"upload.file.size\" [value]=\"upload.progress\" [ariaLabel]=\"progressLabel()(upload.file.name)\"></bs-progress-bar>\n </bs-progress>\n </div>\n </div>\n</ng-template>\n", styles: [".dropzone{z-index:1}.dropzone.dragging{border:4px solid var(--bs-danger)!important;background:var(--bs-danger-bg-subtle);margin:-3px -3px -4px}.dropzone input{opacity:0;z-index:2;top:0;left:0}.dropzone .btn{z-index:5}.files-list{margin-top:-1px}.files-list .d-flex{max-width:400px}.text-grey{color:var(--bs-secondary-color)}.list-group span{margin:-5px auto}\n"], dependencies: [{ kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: BsForDirective, selector: "label[bsFor]", inputs: ["bsFor"] }, { kind: "component", type: BsListGroupComponent, selector: "bs-list-group" }, { kind: "component", type: BsListGroupItemComponent, selector: "bs-list-group-item", inputs: ["active", "disabled"] }, { kind: "component", type: BsProgressComponent, selector: "bs-progress", inputs: ["height", "isIndeterminate", "ariaLabel"] }, { kind: "component", type: BsProgressBarComponent, selector: "bs-progress-bar", inputs: ["minimum", "maximum", "value", "color", "striped", "animated", "ariaLabel", "valueText"] }, { kind: "pipe", type: BsFormatBytesPipe, name: "bsFormatBytes" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
112
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.8", type: BsFileUploadComponent, isStandalone: true, selector: "bs-file-upload", inputs: { dropFilesCaption: { classPropertyName: "dropFilesCaption", publicName: "dropFilesCaption", isSignal: true, isRequired: false, transformFunction: null }, browseFilesCaption: { classPropertyName: "browseFilesCaption", publicName: "browseFilesCaption", isSignal: true, isRequired: false, transformFunction: null }, placeholder: { classPropertyName: "placeholder", publicName: "placeholder", isSignal: true, isRequired: false, transformFunction: null }, ariaLabel: { classPropertyName: "ariaLabel", publicName: "ariaLabel", isSignal: true, isRequired: false, transformFunction: null }, inputAriaLabel: { classPropertyName: "inputAriaLabel", publicName: "inputAriaLabel", isSignal: true, isRequired: false, transformFunction: null }, fileAddedAnnouncement: { classPropertyName: "fileAddedAnnouncement", publicName: "fileAddedAnnouncement", isSignal: true, isRequired: false, transformFunction: null }, filesAddedAnnouncement: { classPropertyName: "filesAddedAnnouncement", publicName: "filesAddedAnnouncement", isSignal: true, isRequired: false, transformFunction: null }, progressLabel: { classPropertyName: "progressLabel", publicName: "progressLabel", isSignal: true, isRequired: false, transformFunction: null }, files: { classPropertyName: "files", publicName: "files", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { files: "filesChange", filesDropped: "filesDropped" }, host: { listeners: { "dragover": "onDragOver($event)", "dragleave": "onDragLeave($event)", "drop": "onDrop($event)" } }, ngImport: i0, template: "<div class=\"dropzone border position-relative p-5\" role=\"region\" [attr.aria-label]=\"ariaLabel()\" [class.dragging]=\"isDraggingFile()\">\n <input type=\"file\" multiple #fileUpload (change)=\"onChange($event)\" [title]=\"placeholder()\" [placeholder]=\"placeholder()\" [attr.aria-label]=\"inputAriaLabel()\" class=\"position-absolute w-100 h-100\">\n <!-- <img src=\"/assets/ic-file-upload.svg\" [alt]=\"placeholder()\"> -->\n <span class=\"h3 d-block\" aria-hidden=\"true\">{{ dropFilesCaption() }}</span>\n <label class=\"btn btn-primary position-relative\" [bsFor]=\"fileUpload\">{{ browseFilesCaption() }}</label>\n</div>\n<bs-list-group class=\"files-list\">\n @for (upload of files(); track upload.index) {\n <bs-list-group-item>\n <ng-container *ngTemplateOutlet=\"fileTemplate() ?? defaultFileTemplate; context: { $implicit: upload }\"></ng-container>\n </bs-list-group-item>\n }\n</bs-list-group>\n\n<ng-template #defaultFileTemplate let-upload>\n <div class=\"d-flex flex-row mx-auto\">\n <div class=\"file-img\" aria-hidden=\"true\"></div>\n <div class=\"flex-grow-1 text-start px-2\">\n <span class=\"d-block text-truncate text-secondary\">{{ upload.file.name }}</span>\n <span class=\"d-block text-grey mb-0\">{{ upload.file.size | bsFormatBytes }}</span>\n <bs-progress [height]=\"4\">\n <bs-progress-bar [minimum]=\"0\" [maximum]=\"upload.file.size\" [value]=\"upload.progress\" [ariaLabel]=\"progressLabel()(upload.file.name)\"></bs-progress-bar>\n </bs-progress>\n </div>\n </div>\n</ng-template>\n", styles: [".dropzone{z-index:1}.dropzone.dragging{border:4px solid var(--bs-danger)!important;background:var(--bs-danger-bg-subtle);margin:-3px -3px -4px}.dropzone input{opacity:0;z-index:2;top:0;left:0}.dropzone .btn{z-index:5}.files-list{margin-top:-1px}.files-list .d-flex{max-width:400px}.text-grey{color:var(--bs-secondary-color)}.list-group span{margin:-5px auto}\n"], dependencies: [{ kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: BsForDirective, selector: "label[bsFor]", inputs: ["bsFor"] }, { kind: "component", type: BsListGroupComponent, selector: "bs-list-group", inputs: ["flush"] }, { kind: "component", type: BsListGroupItemComponent, selector: "bs-list-group-item", inputs: ["active", "disabled"] }, { kind: "component", type: BsProgressComponent, selector: "bs-progress", inputs: ["height", "isIndeterminate", "ariaLabel"] }, { kind: "component", type: BsProgressBarComponent, selector: "bs-progress-bar", inputs: ["minimum", "maximum", "value", "color", "striped", "animated", "ariaLabel", "valueText"] }, { kind: "pipe", type: BsFormatBytesPipe, name: "bsFormatBytes" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
113
113
  }
114
114
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsFileUploadComponent, decorators: [{
115
115
  type: Component,
@@ -1 +1 @@
1
- {"version":3,"file":"mintplayer-ng-bootstrap-file-upload.mjs","sources":["../../../../libs/mintplayer-ng-bootstrap/file-upload/src/pipes/format-bytes/format-bytes.pipe.ts","../../../../libs/mintplayer-ng-bootstrap/file-upload/src/component/file-upload.component.ts","../../../../libs/mintplayer-ng-bootstrap/file-upload/src/component/file-upload.component.html","../../../../libs/mintplayer-ng-bootstrap/file-upload/src/directive/file-upload-template.directive.ts","../../../../libs/mintplayer-ng-bootstrap/file-upload/mintplayer-ng-bootstrap-file-upload.ts"],"sourcesContent":["import { Pipe, PipeTransform } from '@angular/core';\n\n@Pipe({\n name: 'bsFormatBytes',\n pure: true,\n})\nexport class BsFormatBytesPipe implements PipeTransform {\n\n transform(value: number, decimals = 2) {\n if (value === 0) {\n return \"0 Bytes\";\n }\n\n const k = 1024;\n const dm = decimals <= 0 ? 0 : decimals;\n const sizes = [\"Bytes\", \"KB\", \"MB\", \"GB\", \"TB\", \"PB\", \"EB\", \"ZB\", \"YB\"];\n // Clamped: below 1 byte the log is negative, and past the last unit there is no name.\n const i = Math.min(sizes.length - 1, Math.max(0, Math.floor(Math.log(value) / Math.log(k))));\n\n return parseFloat((value / Math.pow(k, i)).toFixed(dm)) + \" \" + sizes[i];\n }\n\n}\n","import { Component, inject, input, model, output, signal, TemplateRef, ChangeDetectionStrategy } from '@angular/core';\nimport { NgTemplateOutlet } from '@angular/common';\nimport { BsLiveAnnouncerService } from '@mintplayer/ng-bootstrap/a11y';\nimport { BsForDirective } from '@mintplayer/ng-bootstrap/for';\nimport { BsListGroupComponent } from '@mintplayer/ng-bootstrap/list-group';\nimport { BsListGroupItemComponent } from '@mintplayer/ng-bootstrap/list-group';\nimport { BsProgressComponent, BsProgressBarComponent } from '@mintplayer/ng-bootstrap/progress-bar';\nimport { Color } from '@mintplayer/ng-bootstrap';\nimport { FileUpload } from '../file-upload';\nimport { BsFormatBytesPipe } from '../pipes/format-bytes/format-bytes.pipe';\n\n@Component({\n selector: 'bs-file-upload',\n templateUrl: './file-upload.component.html',\n styleUrls: ['./file-upload.component.scss'],\n imports: [NgTemplateOutlet, BsForDirective, BsListGroupComponent, BsListGroupItemComponent, BsProgressComponent, BsProgressBarComponent, BsFormatBytesPipe],\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n '(dragover)': 'onDragOver($event)',\n '(dragleave)': 'onDragLeave($event)',\n '(drop)': 'onDrop($event)',\n },\n})\nexport class BsFileUploadComponent {\n private announcer = inject(BsLiveAnnouncerService);\n\n readonly dropFilesCaption = input('Drop your files here');\n readonly browseFilesCaption = input('Browse for files');\n readonly placeholder = input('Drop files to upload');\n readonly ariaLabel = input<string>('File upload drop zone');\n readonly inputAriaLabel = input<string>('Choose files to upload');\n /** Live-region announcement after one file is added. Override to translate. */\n readonly fileAddedAnnouncement = input<(fileName: string) => string>((fileName) => `Added ${fileName}`);\n /** Live-region announcement after several files are added at once. Override to translate. */\n readonly filesAddedAnnouncement = input<(count: number) => string>((count) => `Added ${count} files`);\n /** Accessible name of the default template's progress bar. Override to translate. */\n readonly progressLabel = input<(fileName: string) => string>((fileName) => `Upload progress for ${fileName}`);\n\n readonly colors = Color;\n isDraggingFile = signal(false);\n readonly fileTemplate = signal<TemplateRef<FileUpload> | undefined>(undefined);\n readonly files = model<FileUpload[]>([]);\n readonly filesDropped = output<FileUpload[]>();\n\n onChange(event: Event) {\n if (!event.target) return;\n if (!('files' in event.target)) return;\n if (!event.target['files']) return;\n\n const files = (<HTMLInputElement>event.target).files;\n if (!files) return;\n\n this.processDroppedFiles(files);\n }\n\n onDragOver(event: DragEvent) {\n event.preventDefault();\n event.stopPropagation();\n\n if (event.dataTransfer) {\n this.isDraggingFile.set(true);\n event.dataTransfer.effectAllowed = \"copy\";\n }\n }\n\n onDragLeave(event: DragEvent) {\n event.preventDefault();\n event.stopPropagation();\n this.isDraggingFile.set(false);\n }\n\n onDrop(event: DragEvent) {\n event.preventDefault();\n event.stopPropagation();\n this.isDraggingFile.set(false);\n if (event.dataTransfer && event.dataTransfer.files) {\n this.processDroppedFiles(event.dataTransfer.files);\n }\n }\n\n private processDroppedFiles(fileList: FileList) {\n const newFiles = [...Array(fileList.length).keys()]\n .map(i => fileList.item(i))\n .filter(f => !!f)\n .map((file, index) => <FileUpload>{ file, progress: 0, index: this.files().length + index });\n\n this.files.update(f => [...f, ...newFiles]);\n this.filesDropped.emit(newFiles);\n\n if (newFiles.length === 1) {\n this.announcer.announce(this.fileAddedAnnouncement()(newFiles[0].file.name));\n } else if (newFiles.length > 1) {\n this.announcer.announce(this.filesAddedAnnouncement()(newFiles.length));\n }\n }\n}\n","<div class=\"dropzone border position-relative p-5\" role=\"region\" [attr.aria-label]=\"ariaLabel()\" [class.dragging]=\"isDraggingFile()\">\n <input type=\"file\" multiple #fileUpload (change)=\"onChange($event)\" [title]=\"placeholder()\" [placeholder]=\"placeholder()\" [attr.aria-label]=\"inputAriaLabel()\" class=\"position-absolute w-100 h-100\">\n <!-- <img src=\"/assets/ic-file-upload.svg\" [alt]=\"placeholder()\"> -->\n <span class=\"h3 d-block\" aria-hidden=\"true\">{{ dropFilesCaption() }}</span>\n <label class=\"btn btn-primary position-relative\" [bsFor]=\"fileUpload\">{{ browseFilesCaption() }}</label>\n</div>\n<bs-list-group class=\"files-list\">\n @for (upload of files(); track upload.index) {\n <bs-list-group-item>\n <ng-container *ngTemplateOutlet=\"fileTemplate() ?? defaultFileTemplate; context: { $implicit: upload }\"></ng-container>\n </bs-list-group-item>\n }\n</bs-list-group>\n\n<ng-template #defaultFileTemplate let-upload>\n <div class=\"d-flex flex-row mx-auto\">\n <div class=\"file-img\" aria-hidden=\"true\"></div>\n <div class=\"flex-grow-1 text-start px-2\">\n <span class=\"d-block text-truncate text-secondary\">{{ upload.file.name }}</span>\n <span class=\"d-block text-grey mb-0\">{{ upload.file.size | bsFormatBytes }}</span>\n <bs-progress [height]=\"4\">\n <bs-progress-bar [minimum]=\"0\" [maximum]=\"upload.file.size\" [value]=\"upload.progress\" [ariaLabel]=\"progressLabel()(upload.file.name)\"></bs-progress-bar>\n </bs-progress>\n </div>\n </div>\n</ng-template>\n","import { Directive, inject, input, TemplateRef } from '@angular/core';\nimport { BsFileUploadComponent } from '../component/file-upload.component';\nimport { FileUpload } from '../file-upload';\n\n@Directive({\n selector: '[bsFileUploadTemplate]',\n})\nexport class BsFileUploadTemplateDirective {\n private fileUploadComponent = inject(BsFileUploadComponent);\n\n constructor() {\n const templateRef = inject(TemplateRef);\n this.fileUploadComponent.fileTemplate.set(templateRef);\n }\n\n readonly bsFileUploadTemplateOf = input<FileUpload[] | undefined>(undefined);\n\n static ngTemplateContextGuard(dir: BsFileUploadTemplateDirective, ctx: any): ctx is BsFileUploadTemplateContext {\n return true;\n }\n\n}\n\nexport class BsFileUploadTemplateContext {\n $implicit: FileUpload = null!;\n}","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;MAMa,iBAAiB,CAAA;AAE5B,IAAA,SAAS,CAAC,KAAa,EAAE,QAAQ,GAAG,CAAC,EAAA;AACnC,QAAA,IAAI,KAAK,KAAK,CAAC,EAAE;AACf,YAAA,OAAO,SAAS;QAClB;QAEA,MAAM,CAAC,GAAG,IAAI;AACd,QAAA,MAAM,EAAE,GAAG,QAAQ,IAAI,CAAC,GAAG,CAAC,GAAG,QAAQ;QACvC,MAAM,KAAK,GAAG,CAAC,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,CAAC;;AAEvE,QAAA,MAAM,CAAC,GAAG,IAAI,CAAC,GAAG,CAAC,KAAK,CAAC,MAAM,GAAG,CAAC,EAAE,IAAI,CAAC,GAAG,CAAC,CAAC,EAAE,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,GAAG,CAAC,KAAK,CAAC,GAAG,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CA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A,EAAA,IAAA,EAAA,UAAA,EAAA,KAAA,EAAA,iBAAA,EAAA,IAAA,EAAA,EAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA,CAAA;;2FAA7B,6BAA6B,EAAA,UAAA,EAAA,CAAA;kBAHzC,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACT,oBAAA,QAAQ,EAAE,wBAAwB;AACnC,iBAAA;;MAiBY,2BAA2B,CAAA;AAAxC,IAAA,WAAA,GAAA;QACE,IAAA,CAAA,SAAS,GAAe,IAAK;IAC/B;AAAC;;ACzBD;;AAEG;;;;"}
1
+ {"version":3,"file":"mintplayer-ng-bootstrap-file-upload.mjs","sources":["../../../../libs/mintplayer-ng-bootstrap/file-upload/src/pipes/format-bytes/format-bytes.pipe.ts","../../../../libs/mintplayer-ng-bootstrap/file-upload/src/component/file-upload.component.ts","../../../../libs/mintplayer-ng-bootstrap/file-upload/src/component/file-upload.component.html","../../../../libs/mintplayer-ng-bootstrap/file-upload/src/directive/file-upload-template.directive.ts","../../../../libs/mintplayer-ng-bootstrap/file-upload/mintplayer-ng-bootstrap-file-upload.ts"],"sourcesContent":["import { Pipe, PipeTransform } from '@angular/core';\n\n@Pipe({\n name: 'bsFormatBytes',\n pure: true,\n})\nexport class BsFormatBytesPipe implements PipeTransform {\n\n transform(value: number, decimals = 2) {\n if (value === 0) {\n return \"0 Bytes\";\n }\n\n const k = 1024;\n const dm = decimals <= 0 ? 0 : decimals;\n const sizes = [\"Bytes\", \"KB\", \"MB\", \"GB\", \"TB\", \"PB\", \"EB\", \"ZB\", \"YB\"];\n // Clamped: below 1 byte the log is negative, and past the last unit there is no name.\n const i = Math.min(sizes.length - 1, Math.max(0, Math.floor(Math.log(value) / Math.log(k))));\n\n return parseFloat((value / Math.pow(k, i)).toFixed(dm)) + \" \" + sizes[i];\n }\n\n}\n","import { Component, inject, input, model, output, signal, TemplateRef, ChangeDetectionStrategy } from '@angular/core';\nimport { NgTemplateOutlet } from '@angular/common';\nimport { BsLiveAnnouncerService } from '@mintplayer/ng-bootstrap/a11y';\nimport { BsForDirective } from '@mintplayer/ng-bootstrap/for';\nimport { BsListGroupComponent } from '@mintplayer/ng-bootstrap/list-group';\nimport { BsListGroupItemComponent } from '@mintplayer/ng-bootstrap/list-group';\nimport { BsProgressComponent, BsProgressBarComponent } from '@mintplayer/ng-bootstrap/progress-bar';\nimport { Color } from '@mintplayer/ng-bootstrap';\nimport { FileUpload } from '../file-upload';\nimport { BsFormatBytesPipe } from '../pipes/format-bytes/format-bytes.pipe';\n\n@Component({\n selector: 'bs-file-upload',\n templateUrl: './file-upload.component.html',\n styleUrls: ['./file-upload.component.scss'],\n imports: [NgTemplateOutlet, BsForDirective, BsListGroupComponent, BsListGroupItemComponent, BsProgressComponent, BsProgressBarComponent, BsFormatBytesPipe],\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n '(dragover)': 'onDragOver($event)',\n '(dragleave)': 'onDragLeave($event)',\n '(drop)': 'onDrop($event)',\n },\n})\nexport class BsFileUploadComponent {\n private announcer = inject(BsLiveAnnouncerService);\n\n readonly dropFilesCaption = input('Drop your files here');\n readonly browseFilesCaption = input('Browse for files');\n readonly placeholder = input('Drop files to upload');\n readonly ariaLabel = input<string>('File upload drop zone');\n readonly inputAriaLabel = input<string>('Choose files to upload');\n /** Live-region announcement after one file is added. Override to translate. */\n readonly fileAddedAnnouncement = input<(fileName: string) => string>((fileName) => `Added ${fileName}`);\n /** Live-region announcement after several files are added at once. Override to translate. */\n readonly filesAddedAnnouncement = input<(count: number) => string>((count) => `Added ${count} files`);\n /** Accessible name of the default template's progress bar. Override to translate. */\n readonly progressLabel = input<(fileName: string) => string>((fileName) => `Upload progress for ${fileName}`);\n\n readonly colors = Color;\n isDraggingFile = signal(false);\n readonly fileTemplate = signal<TemplateRef<FileUpload> | undefined>(undefined);\n readonly files = model<FileUpload[]>([]);\n readonly filesDropped = output<FileUpload[]>();\n\n onChange(event: Event) {\n if (!event.target) return;\n if (!('files' in event.target)) return;\n if (!event.target['files']) return;\n\n const files = (<HTMLInputElement>event.target).files;\n if (!files) return;\n\n this.processDroppedFiles(files);\n }\n\n onDragOver(event: DragEvent) {\n event.preventDefault();\n event.stopPropagation();\n\n if (event.dataTransfer) {\n this.isDraggingFile.set(true);\n event.dataTransfer.effectAllowed = \"copy\";\n }\n }\n\n onDragLeave(event: DragEvent) {\n event.preventDefault();\n event.stopPropagation();\n this.isDraggingFile.set(false);\n }\n\n onDrop(event: DragEvent) {\n event.preventDefault();\n event.stopPropagation();\n this.isDraggingFile.set(false);\n if (event.dataTransfer && event.dataTransfer.files) {\n this.processDroppedFiles(event.dataTransfer.files);\n }\n }\n\n private processDroppedFiles(fileList: FileList) {\n const newFiles = [...Array(fileList.length).keys()]\n .map(i => fileList.item(i))\n .filter(f => !!f)\n .map((file, index) => <FileUpload>{ file, progress: 0, index: this.files().length + index });\n\n this.files.update(f => [...f, ...newFiles]);\n this.filesDropped.emit(newFiles);\n\n if (newFiles.length === 1) {\n this.announcer.announce(this.fileAddedAnnouncement()(newFiles[0].file.name));\n } else if (newFiles.length > 1) {\n this.announcer.announce(this.filesAddedAnnouncement()(newFiles.length));\n }\n }\n}\n","<div class=\"dropzone border position-relative p-5\" role=\"region\" [attr.aria-label]=\"ariaLabel()\" [class.dragging]=\"isDraggingFile()\">\n <input type=\"file\" multiple #fileUpload (change)=\"onChange($event)\" [title]=\"placeholder()\" [placeholder]=\"placeholder()\" [attr.aria-label]=\"inputAriaLabel()\" class=\"position-absolute w-100 h-100\">\n <!-- <img src=\"/assets/ic-file-upload.svg\" [alt]=\"placeholder()\"> -->\n <span class=\"h3 d-block\" aria-hidden=\"true\">{{ dropFilesCaption() }}</span>\n <label class=\"btn btn-primary position-relative\" [bsFor]=\"fileUpload\">{{ browseFilesCaption() }}</label>\n</div>\n<bs-list-group class=\"files-list\">\n @for (upload of files(); track upload.index) {\n <bs-list-group-item>\n <ng-container *ngTemplateOutlet=\"fileTemplate() ?? defaultFileTemplate; context: { $implicit: upload }\"></ng-container>\n </bs-list-group-item>\n }\n</bs-list-group>\n\n<ng-template #defaultFileTemplate let-upload>\n <div class=\"d-flex flex-row mx-auto\">\n <div class=\"file-img\" aria-hidden=\"true\"></div>\n <div class=\"flex-grow-1 text-start px-2\">\n <span class=\"d-block text-truncate text-secondary\">{{ upload.file.name }}</span>\n <span class=\"d-block text-grey mb-0\">{{ upload.file.size | bsFormatBytes }}</span>\n <bs-progress [height]=\"4\">\n <bs-progress-bar [minimum]=\"0\" [maximum]=\"upload.file.size\" [value]=\"upload.progress\" [ariaLabel]=\"progressLabel()(upload.file.name)\"></bs-progress-bar>\n </bs-progress>\n </div>\n </div>\n</ng-template>\n","import { Directive, inject, input, TemplateRef } from '@angular/core';\nimport { BsFileUploadComponent } from '../component/file-upload.component';\nimport { FileUpload } from '../file-upload';\n\n@Directive({\n selector: '[bsFileUploadTemplate]',\n})\nexport class BsFileUploadTemplateDirective {\n private fileUploadComponent = inject(BsFileUploadComponent);\n\n constructor() {\n const templateRef = inject(TemplateRef);\n this.fileUploadComponent.fileTemplate.set(templateRef);\n }\n\n readonly bsFileUploadTemplateOf = input<FileUpload[] | undefined>(undefined);\n\n static ngTemplateContextGuard(dir: BsFileUploadTemplateDirective, ctx: any): ctx is BsFileUploadTemplateContext {\n return true;\n }\n\n}\n\nexport class BsFileUploadTemplateContext {\n $implicit: FileUpload = null!;\n}","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;MAMa,iBAAiB,CAAA;AAE5B,IAAA,SAAS,CAAC,KAAa,EAAE,QAAQ,GAAG,CAAC,EAAA;AACnC,QAAA,IAAI,KAAK,KAAK,CAAC,EAAE;AACf,YAAA,OAAO,SAAS;QAClB;QAEA,MAAM,CAAC,GAAG,IAAI;AACd,QAAA,MAAM,EAAE,GAAG,QAAQ,IAAI,CAAC,GAAG,CAAC,GAAG,QAAQ;QACvC,MAAM,KAAK,GAAG,CAAC,OAAO,EAAE,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,CAAC;IACxD;AAIA,IAAA,OAAO,sBAAsB,CAAC,GAAkC,EAAE,GAAQ,EAAA;AACxE,QAAA,OAAO,IAAI;IACb;8GAZW,6BAA6B,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;kGAA7B,6BAA6B,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,wBAAA,EAAA,MAAA,EAAA,EAAA,sBAAA,EAAA,EAAA,iBAAA,EAAA,wBAAA,EAAA,UAAA,EAAA,wBAAA,EAAA,QAAA,EAAA,IAAA,EAAA,UAAA,EAAA,KAAA,EAAA,iBAAA,EAAA,IAAA,EAAA,EAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA,CAAA;;2FAA7B,6BAA6B,EAAA,UAAA,EAAA,CAAA;kBAHzC,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACT,oBAAA,QAAQ,EAAE,wBAAwB;AACnC,iBAAA;;MAiBY,2BAA2B,CAAA;AAAxC,IAAA,WAAA,GAAA;QACE,IAAA,CAAA,SAAS,GAAe,IAAK;IAC/B;AAAC;;ACzBD;;AAEG;;;;"}
@@ -1,11 +1,15 @@
1
1
  import * as i0 from '@angular/core';
2
2
  import { inject, ElementRef, ChangeDetectionStrategy, Component } from '@angular/core';
3
+ import { useBootstrap } from '@mintplayer/ng-bootstrap/machine';
4
+ import { bootstrapForms } from '@mintplayer/ui-core/bootstrap/forms';
3
5
  import { BsFormComponent } from '@mintplayer/ng-bootstrap/form';
4
6
 
5
7
  let instanceCounter = 0;
6
8
  class BsFloatingLabelComponent {
7
9
  constructor() {
8
10
  this.hostRef = inject((ElementRef));
11
+ // #452: the forms partial ships with this component, scoped to the elements it stamps (data-mps="floating-label").
12
+ useBootstrap(bootstrapForms);
9
13
  const bsForm = inject(BsFormComponent, { optional: true });
10
14
  if (!bsForm) {
11
15
  throw '<bs-floating-label> must be inside a <bs-form>';
@@ -32,11 +36,11 @@ class BsFloatingLabelComponent {
32
36
  label.htmlFor = control.id;
33
37
  }
34
38
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsFloatingLabelComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
35
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "22.0.8", type: BsFloatingLabelComponent, isStandalone: true, selector: "bs-floating-label", ngImport: i0, template: "<div class=\"form-floating\">\n <!-- Widened from select=\"input\": Bootstrap's form-floating supports\n select and textarea too, and the narrow selector silently DROPPED\n those controls from projection entirely. -->\n <ng-content select=\"input,select,textarea\"></ng-content>\n <ng-content select=\"label\"></ng-content>\n</div>\n", changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
39
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "22.0.8", type: BsFloatingLabelComponent, isStandalone: true, selector: "bs-floating-label", ngImport: i0, template: "<div data-mps=\"floating-label\" class=\"form-floating\">\n <!-- Widened from select=\"input\": Bootstrap's form-floating supports\n select and textarea too, and the narrow selector silently DROPPED\n those controls from projection entirely. -->\n <ng-content select=\"input,select,textarea\"></ng-content>\n <ng-content select=\"label\"></ng-content>\n</div>\n", changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
36
40
  }
37
41
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsFloatingLabelComponent, decorators: [{
38
42
  type: Component,
39
- args: [{ selector: 'bs-floating-label', changeDetection: ChangeDetectionStrategy.OnPush, template: "<div class=\"form-floating\">\n <!-- Widened from select=\"input\": Bootstrap's form-floating supports\n select and textarea too, and the narrow selector silently DROPPED\n those controls from projection entirely. -->\n <ng-content select=\"input,select,textarea\"></ng-content>\n <ng-content select=\"label\"></ng-content>\n</div>\n" }]
43
+ args: [{ selector: 'bs-floating-label', changeDetection: ChangeDetectionStrategy.OnPush, template: "<div data-mps=\"floating-label\" class=\"form-floating\">\n <!-- Widened from select=\"input\": Bootstrap's form-floating supports\n select and textarea too, and the narrow selector silently DROPPED\n those controls from projection entirely. -->\n <ng-content select=\"input,select,textarea\"></ng-content>\n <ng-content select=\"label\"></ng-content>\n</div>\n" }]
40
44
  }], ctorParameters: () => [] });
41
45
 
42
46
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"mintplayer-ng-bootstrap-floating-labels.mjs","sources":["../../../../libs/mintplayer-ng-bootstrap/floating-labels/src/floating-label/floating-label.component.ts","../../../../libs/mintplayer-ng-bootstrap/floating-labels/src/floating-label/floating-label.component.html","../../../../libs/mintplayer-ng-bootstrap/floating-labels/mintplayer-ng-bootstrap-floating-labels.ts"],"sourcesContent":["import { AfterViewInit, Component, ChangeDetectionStrategy, ElementRef, inject } from '@angular/core';\nimport { BsFormComponent } from '@mintplayer/ng-bootstrap/form';\n\nlet instanceCounter = 0;\n\n@Component({\n selector: 'bs-floating-label',\n templateUrl: './floating-label.component.html',\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class BsFloatingLabelComponent implements AfterViewInit {\n private readonly hostRef = inject(ElementRef<HTMLElement>);\n\n constructor() {\n const bsForm = inject(BsFormComponent, { optional: true });\n if (!bsForm) {\n throw '<bs-floating-label> must be inside a <bs-form>';\n }\n }\n\n /**\n * Associate the projected `<label>` with the projected control.\n *\n * Bootstrap's floating-label pattern *looks* labelled with no association at\n * all — the label floats over the control purely via CSS — so the visual\n * result gives no hint that a screen reader announces an unnamed textbox.\n * `label`/`for` is the native mechanism and everything here is light DOM, so\n * a generated id is all that is missing. Consumer-authored `for`/`id` are\n * left untouched.\n */\n ngAfterViewInit(): void {\n const host = this.hostRef.nativeElement as HTMLElement;\n const control = host.querySelector<HTMLElement>('input, select, textarea');\n const label = host.querySelector<HTMLLabelElement>('label');\n if (!control || !label || label.htmlFor) return;\n\n if (!control.id) control.id = `bs-floating-label-${++instanceCounter}`;\n label.htmlFor = control.id;\n }\n}\n","<div class=\"form-floating\">\n <!-- Widened from select=\"input\": Bootstrap's form-floating supports\n select and textarea too, and the narrow selector silently DROPPED\n those controls from projection entirely. -->\n <ng-content select=\"input,select,textarea\"></ng-content>\n <ng-content select=\"label\"></ng-content>\n</div>\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;AAGA,IAAI,eAAe,GAAG,CAAC;MAOV,wBAAwB,CAAA;AAGnC,IAAA,WAAA,GAAA;AAFiB,QAAA,IAAA,CAAA,OAAO,GAAG,MAAM,EAAC,UAAuB,EAAC;AAGxD,QAAA,MAAM,MAAM,GAAG,MAAM,CAAC,eAAe,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;QAC1D,IAAI,CAAC,MAAM,EAAE;AACX,YAAA,MAAM,gDAAgD;QACxD;IACF;AAEA;;;;;;;;;AASG;IACH,eAAe,GAAA;AACb,QAAA,MAAM,IAAI,GAAG,IAAI,CAAC,OAAO,CAAC,aAA4B;QACtD,MAAM,OAAO,GAAG,IAAI,CAAC,aAAa,CAAc,yBAAyB,CAAC;QAC1E,MAAM,KAAK,GAAG,IAAI,CAAC,aAAa,CAAmB,OAAO,CAAC;QAC3D,IAAI,CAAC,OAAO,IAAI,CAAC,KAAK,IAAI,KAAK,CAAC,OAAO;YAAE;QAEzC,IAAI,CAAC,OAAO,CAAC,EAAE;AAAE,YAAA,OAAO,CAAC,EAAE,GAAG,qBAAqB,EAAE,eAAe,EAAE;AACtE,QAAA,KAAK,CAAC,OAAO,GAAG,OAAO,CAAC,EAAE;IAC5B;8GA5BW,wBAAwB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;AAAxB,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,IAAA,EAAA,wBAAwB,6ECVrC,wWAOA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,CAAA,CAAA;;2FDGa,wBAAwB,EAAA,UAAA,EAAA,CAAA;kBALpC,SAAS;+BACE,mBAAmB,EAAA,eAAA,EAEZ,uBAAuB,CAAC,MAAM,EAAA,QAAA,EAAA,wWAAA,EAAA;;;AERjD;;AAEG;;;;"}
1
+ {"version":3,"file":"mintplayer-ng-bootstrap-floating-labels.mjs","sources":["../../../../libs/mintplayer-ng-bootstrap/floating-labels/src/floating-label/floating-label.component.ts","../../../../libs/mintplayer-ng-bootstrap/floating-labels/src/floating-label/floating-label.component.html","../../../../libs/mintplayer-ng-bootstrap/floating-labels/mintplayer-ng-bootstrap-floating-labels.ts"],"sourcesContent":["import { AfterViewInit, Component, ChangeDetectionStrategy, ElementRef, inject } from '@angular/core';\nimport { useBootstrap } from '@mintplayer/ng-bootstrap/machine';\nimport { bootstrapForms } from '@mintplayer/ui-core/bootstrap/forms';\nimport { BsFormComponent } from '@mintplayer/ng-bootstrap/form';\n\nlet instanceCounter = 0;\n\n@Component({\n selector: 'bs-floating-label',\n templateUrl: './floating-label.component.html',\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class BsFloatingLabelComponent implements AfterViewInit {\n private readonly hostRef = inject(ElementRef<HTMLElement>);\n\n constructor() {\n // #452: the forms partial ships with this component, scoped to the elements it stamps (data-mps=\"floating-label\").\n useBootstrap(bootstrapForms);\n const bsForm = inject(BsFormComponent, { optional: true });\n if (!bsForm) {\n throw '<bs-floating-label> must be inside a <bs-form>';\n }\n }\n\n /**\n * Associate the projected `<label>` with the projected control.\n *\n * Bootstrap's floating-label pattern *looks* labelled with no association at\n * all — the label floats over the control purely via CSS — so the visual\n * result gives no hint that a screen reader announces an unnamed textbox.\n * `label`/`for` is the native mechanism and everything here is light DOM, so\n * a generated id is all that is missing. Consumer-authored `for`/`id` are\n * left untouched.\n */\n ngAfterViewInit(): void {\n const host = this.hostRef.nativeElement as HTMLElement;\n const control = host.querySelector<HTMLElement>('input, select, textarea');\n const label = host.querySelector<HTMLLabelElement>('label');\n if (!control || !label || label.htmlFor) return;\n\n if (!control.id) control.id = `bs-floating-label-${++instanceCounter}`;\n label.htmlFor = control.id;\n }\n}\n","<div data-mps=\"floating-label\" class=\"form-floating\">\n <!-- Widened from select=\"input\": Bootstrap's form-floating supports\n select and textarea too, and the narrow selector silently DROPPED\n those controls from projection entirely. -->\n <ng-content select=\"input,select,textarea\"></ng-content>\n <ng-content select=\"label\"></ng-content>\n</div>\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;AAKA,IAAI,eAAe,GAAG,CAAC;MAOV,wBAAwB,CAAA;AAGnC,IAAA,WAAA,GAAA;AAFiB,QAAA,IAAA,CAAA,OAAO,GAAG,MAAM,EAAC,UAAuB,EAAC;;QAIxD,YAAY,CAAC,cAAc,CAAC;AAC5B,QAAA,MAAM,MAAM,GAAG,MAAM,CAAC,eAAe,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;QAC1D,IAAI,CAAC,MAAM,EAAE;AACX,YAAA,MAAM,gDAAgD;QACxD;IACF;AAEA;;;;;;;;;AASG;IACH,eAAe,GAAA;AACb,QAAA,MAAM,IAAI,GAAG,IAAI,CAAC,OAAO,CAAC,aAA4B;QACtD,MAAM,OAAO,GAAG,IAAI,CAAC,aAAa,CAAc,yBAAyB,CAAC;QAC1E,MAAM,KAAK,GAAG,IAAI,CAAC,aAAa,CAAmB,OAAO,CAAC;QAC3D,IAAI,CAAC,OAAO,IAAI,CAAC,KAAK,IAAI,KAAK,CAAC,OAAO;YAAE;QAEzC,IAAI,CAAC,OAAO,CAAC,EAAE;AAAE,YAAA,OAAO,CAAC,EAAE,GAAG,qBAAqB,EAAE,eAAe,EAAE;AACtE,QAAA,KAAK,CAAC,OAAO,GAAG,OAAO,CAAC,EAAE;IAC5B;8GA9BW,wBAAwB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;AAAxB,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,IAAA,EAAA,wBAAwB,6ECZrC,oYAOA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,CAAA,CAAA;;2FDKa,wBAAwB,EAAA,UAAA,EAAA,CAAA;kBALpC,SAAS;+BACE,mBAAmB,EAAA,eAAA,EAEZ,uBAAuB,CAAC,MAAM,EAAA,QAAA,EAAA,oYAAA,EAAA;;;AEVjD;;AAEG;;;;"}
@@ -1,11 +1,13 @@
1
1
  import * as i0 from '@angular/core';
2
- import { input, effect, Directive } from '@angular/core';
2
+ import { input, signal, effect, Directive } from '@angular/core';
3
3
 
4
4
  class BsForDirective {
5
5
  static { this.counter = 1; }
6
6
  constructor() {
7
7
  this.bsFor = input(undefined, /* @ts-ignore */
8
8
  ...(ngDevMode ? [{ debugName: "bsFor" }] : /* istanbul ignore next */ []));
9
+ this.forValue = signal(undefined, /* @ts-ignore */
10
+ ...(ngDevMode ? [{ debugName: "forValue" }] : /* istanbul ignore next */ []));
9
11
  effect(() => {
10
12
  const value = this.bsFor();
11
13
  if (value !== undefined) {
@@ -15,13 +17,13 @@ class BsForDirective {
15
17
  const count = BsForDirective.counter++;
16
18
  this.target.id = `for-target-${count}`;
17
19
  }
18
- this.forValue = this.target.id;
20
+ this.forValue.set(this.target.id);
19
21
  }
20
22
  }
21
23
  });
22
24
  }
23
25
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsForDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
24
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "22.0.8", type: BsForDirective, isStandalone: true, selector: "label[bsFor]", inputs: { bsFor: { classPropertyName: "bsFor", publicName: "bsFor", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class.cursor-default": "true", "attr.for": "forValue" } }, ngImport: i0 }); }
26
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "22.0.8", type: BsForDirective, isStandalone: true, selector: "label[bsFor]", inputs: { bsFor: { classPropertyName: "bsFor", publicName: "bsFor", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class.cursor-default": "true", "attr.for": "forValue()" } }, ngImport: i0 }); }
25
27
  }
26
28
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsForDirective, decorators: [{
27
29
  type: Directive,
@@ -29,7 +31,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImpor
29
31
  selector: 'label[bsFor]',
30
32
  host: {
31
33
  '[class.cursor-default]': 'true',
32
- '[attr.for]': 'forValue',
34
+ // A signal: the effect below writes it, and a zoneless host binding re-renders
35
+ // only when a signal it reads changes.
36
+ '[attr.for]': 'forValue()',
33
37
  },
34
38
  }]
35
39
  }], ctorParameters: () => [], propDecorators: { bsFor: [{ type: i0.Input, args: [{ isSignal: true, alias: "bsFor", required: false }] }] } });
@@ -1 +1 @@
1
- {"version":3,"file":"mintplayer-ng-bootstrap-for.mjs","sources":["../../../../libs/mintplayer-ng-bootstrap/for/src/for.directive.ts","../../../../libs/mintplayer-ng-bootstrap/for/mintplayer-ng-bootstrap-for.ts"],"sourcesContent":["import { Directive, effect, input } from '@angular/core';\n\n@Directive({\n selector: 'label[bsFor]',\n host: {\n '[class.cursor-default]': 'true',\n '[attr.for]': 'forValue',\n },\n})\nexport class BsForDirective {\n\n static counter = 1;\n private target: any;\n readonly bsFor = input<any>(undefined);\n\n constructor() {\n effect(() => {\n const value = this.bsFor();\n if (value !== undefined) {\n this.target = value;\n if (this.target instanceof HTMLElement) {\n if (!this.target.id) {\n const count = BsForDirective.counter++;\n this.target.id = `for-target-${count}`;\n }\n this.forValue = this.target.id;\n }\n }\n });\n }\n\n forValue?: string;\n\n // @HostListener('click') onMouseClick() {\n // if (!('tagName' in this.target)) {\n // // Not a form-control, let's just assume the class has some \"focus\" method\n // this.target.focus();\n // } else if (this.target.tagName.toLowerCase() !== 'input') {\n // // HTML element, but not an input, probably a textarea\n // this.target.focus();\n // } else if (this.target.type.toLowerCase() === 'file') {\n // // HtmlInputElement for a file\n // this.target.click();\n // } else {\n // // HtmlInputElement\n // this.target.focus();\n // }\n // }\n\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;MASa,cAAc,CAAA;aAElB,IAAA,CAAA,OAAO,GAAG,CAAH,CAAK;AAInB,IAAA,WAAA,GAAA;QAFS,IAAA,CAAA,KAAK,GAAG,KAAK,CAAM,SAAS;kFAAC;QAGpC,MAAM,CAAC,MAAK;AACV,YAAA,MAAM,KAAK,GAAG,IAAI,CAAC,KAAK,EAAE;AAC1B,YAAA,IAAI,KAAK,KAAK,SAAS,EAAE;AACvB,gBAAA,IAAI,CAAC,MAAM,GAAG,KAAK;AACnB,gBAAA,IAAI,IAAI,CAAC,MAAM,YAAY,WAAW,EAAE;AACtC,oBAAA,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,EAAE,EAAE;AACnB,wBAAA,MAAM,KAAK,GAAG,cAAc,CAAC,OAAO,EAAE;wBACtC,IAAI,CAAC,MAAM,CAAC,EAAE,GAAG,CAAA,WAAA,EAAc,KAAK,EAAE;oBACxC;oBACA,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAC,MAAM,CAAC,EAAE;gBAChC;YACF;AACF,QAAA,CAAC,CAAC;IACJ;8GApBW,cAAc,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;kGAAd,cAAc,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,cAAA,EAAA,MAAA,EAAA,EAAA,KAAA,EAAA,EAAA,iBAAA,EAAA,OAAA,EAAA,UAAA,EAAA,OAAA,EAAA,QAAA,EAAA,IAAA,EAAA,UAAA,EAAA,KAAA,EAAA,iBAAA,EAAA,IAAA,EAAA,EAAA,EAAA,IAAA,EAAA,EAAA,UAAA,EAAA,EAAA,sBAAA,EAAA,MAAA,EAAA,UAAA,EAAA,UAAA,EAAA,EAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA,CAAA;;2FAAd,cAAc,EAAA,UAAA,EAAA,CAAA;kBAP1B,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACT,oBAAA,QAAQ,EAAE,cAAc;AACxB,oBAAA,IAAI,EAAE;AACJ,wBAAA,wBAAwB,EAAE,MAAM;AAChC,wBAAA,YAAY,EAAE,UAAU;AACzB,qBAAA;AACF,iBAAA;;;ACRD;;AAEG;;;;"}
1
+ {"version":3,"file":"mintplayer-ng-bootstrap-for.mjs","sources":["../../../../libs/mintplayer-ng-bootstrap/for/src/for.directive.ts","../../../../libs/mintplayer-ng-bootstrap/for/mintplayer-ng-bootstrap-for.ts"],"sourcesContent":["import { Directive, effect, input, signal } from '@angular/core';\n\n@Directive({\n selector: 'label[bsFor]',\n host: {\n '[class.cursor-default]': 'true',\n // A signal: the effect below writes it, and a zoneless host binding re-renders\n // only when a signal it reads changes.\n '[attr.for]': 'forValue()',\n },\n})\nexport class BsForDirective {\n\n static counter = 1;\n private target: any;\n readonly bsFor = input<any>(undefined);\n\n constructor() {\n effect(() => {\n const value = this.bsFor();\n if (value !== undefined) {\n this.target = value;\n if (this.target instanceof HTMLElement) {\n if (!this.target.id) {\n const count = BsForDirective.counter++;\n this.target.id = `for-target-${count}`;\n }\n this.forValue.set(this.target.id);\n }\n }\n });\n }\n\n readonly forValue = signal<string | undefined>(undefined);\n\n // @HostListener('click') onMouseClick() {\n // if (!('tagName' in this.target)) {\n // // Not a form-control, let's just assume the class has some \"focus\" method\n // this.target.focus();\n // } else if (this.target.tagName.toLowerCase() !== 'input') {\n // // HTML element, but not an input, probably a textarea\n // this.target.focus();\n // } else if (this.target.type.toLowerCase() === 'file') {\n // // HtmlInputElement for a file\n // this.target.click();\n // } else {\n // // HtmlInputElement\n // this.target.focus();\n // }\n // }\n\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;MAWa,cAAc,CAAA;aAElB,IAAA,CAAA,OAAO,GAAG,CAAH,CAAK;AAInB,IAAA,WAAA,GAAA;QAFS,IAAA,CAAA,KAAK,GAAG,KAAK,CAAM,SAAS;kFAAC;QAkB7B,IAAA,CAAA,QAAQ,GAAG,MAAM,CAAqB,SAAS;qFAAC;QAfvD,MAAM,CAAC,MAAK;AACV,YAAA,MAAM,KAAK,GAAG,IAAI,CAAC,KAAK,EAAE;AAC1B,YAAA,IAAI,KAAK,KAAK,SAAS,EAAE;AACvB,gBAAA,IAAI,CAAC,MAAM,GAAG,KAAK;AACnB,gBAAA,IAAI,IAAI,CAAC,MAAM,YAAY,WAAW,EAAE;AACtC,oBAAA,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,EAAE,EAAE;AACnB,wBAAA,MAAM,KAAK,GAAG,cAAc,CAAC,OAAO,EAAE;wBACtC,IAAI,CAAC,MAAM,CAAC,EAAE,GAAG,CAAA,WAAA,EAAc,KAAK,EAAE;oBACxC;oBACA,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,IAAI,CAAC,MAAM,CAAC,EAAE,CAAC;gBACnC;YACF;AACF,QAAA,CAAC,CAAC;IACJ;8GApBW,cAAc,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;kGAAd,cAAc,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,cAAA,EAAA,MAAA,EAAA,EAAA,KAAA,EAAA,EAAA,iBAAA,EAAA,OAAA,EAAA,UAAA,EAAA,OAAA,EAAA,QAAA,EAAA,IAAA,EAAA,UAAA,EAAA,KAAA,EAAA,iBAAA,EAAA,IAAA,EAAA,EAAA,EAAA,IAAA,EAAA,EAAA,UAAA,EAAA,EAAA,sBAAA,EAAA,MAAA,EAAA,UAAA,EAAA,YAAA,EAAA,EAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA,CAAA;;2FAAd,cAAc,EAAA,UAAA,EAAA,CAAA;kBAT1B,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACT,oBAAA,QAAQ,EAAE,cAAc;AACxB,oBAAA,IAAI,EAAE;AACJ,wBAAA,wBAAwB,EAAE,MAAM;;;AAGhC,wBAAA,YAAY,EAAE,YAAY;AAC3B,qBAAA;AACF,iBAAA;;;ACVD;;AAEG;;;;"}
@@ -1,5 +1,7 @@
1
1
  import * as i0 from '@angular/core';
2
2
  import { input, output, ChangeDetectionStrategy, Component, Directive, inject } from '@angular/core';
3
+ import { useBootstrap } from '@mintplayer/ng-bootstrap/machine';
4
+ import { bootstrapForms } from '@mintplayer/ui-core/bootstrap/forms';
3
5
 
4
6
  class BsFormComponent {
5
7
  constructor() {
@@ -39,19 +41,22 @@ class BsFormControlDirective {
39
41
  constructor() {
40
42
  this.form = inject(BsFormComponent, { optional: true });
41
43
  this.formControlClass = !!this.form;
44
+ // #452: the forms partial ships with this component, scoped to the elements it stamps (data-mps="form").
45
+ useBootstrap(bootstrapForms);
42
46
  }
43
47
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsFormControlDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
44
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.0.8", type: BsFormControlDirective, isStandalone: true, selector: "bs-form input:not(.no-form-control), bs-form textarea:not(.no-form-control)", host: { properties: { "class.form-control": "formControlClass" } }, ngImport: i0 }); }
48
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.0.8", type: BsFormControlDirective, isStandalone: true, selector: "bs-form input:not(.no-form-control), bs-form textarea:not(.no-form-control)", host: { properties: { "attr.data-mps": "\"form\"", "class.form-control": "formControlClass" } }, ngImport: i0 }); }
45
49
  }
46
50
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsFormControlDirective, decorators: [{
47
51
  type: Directive,
48
52
  args: [{
49
53
  selector: 'bs-form input:not(.no-form-control), bs-form textarea:not(.no-form-control)',
50
54
  host: {
55
+ '[attr.data-mps]': '"form"',
51
56
  '[class.form-control]': 'formControlClass',
52
57
  },
53
58
  }]
54
- }] });
59
+ }], ctorParameters: () => [] });
55
60
 
56
61
  /**
57
62
  * Generated bundle index. Do not edit.
@@ -1 +1 @@
1
- {"version":3,"file":"mintplayer-ng-bootstrap-form.mjs","sources":["../../../../libs/mintplayer-ng-bootstrap/form/src/form/form.component.ts","../../../../libs/mintplayer-ng-bootstrap/form/src/form/form.component.html","../../../../libs/mintplayer-ng-bootstrap/form/src/form-group/form-group.directive.ts","../../../../libs/mintplayer-ng-bootstrap/form/src/form-control/form-control.directive.ts","../../../../libs/mintplayer-ng-bootstrap/form/mintplayer-ng-bootstrap-form.ts"],"sourcesContent":["import { Component, input, output, ChangeDetectionStrategy} from '@angular/core';\n\n@Component({\n selector: 'bs-form',\n templateUrl: './form.component.html',\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class BsFormComponent {\n readonly action = input<string | undefined>(undefined);\n readonly method = input<'GET' | 'POST' | 'PUT' | 'DELETE' | undefined>(undefined);\n\n readonly submitted = output<Event>();\n onSubmit(ev: Event) {\n this.submitted.emit(ev);\n return false;\n }\n}\n","<!-- This IS the form: never nest another <form> in bs-form. The HTML parser\n drops a nested form tag, so a server-rendered page hydrates against a DOM\n one level shallower than the template. Put [formGroup] on a div instead. -->\n<form (submit)=\"onSubmit($event)\" [attr.action]=\"action() ?? null\" [attr.method]=\"method() ?? null\">\n <ng-content></ng-content>\n</form>\n","import { Directive } from '@angular/core';\n\n@Directive({\n selector: '[bsFormGroup]',\n host: {\n '[class.form-group]': 'true',\n },\n})\nexport class BsFormGroupDirective {\n}\n","import { Directive, inject } from '@angular/core';\nimport { BsFormComponent } from '../form/form.component';\n\n@Directive({\n selector: 'bs-form input:not(.no-form-control), bs-form textarea:not(.no-form-control)',\n host: {\n '[class.form-control]': 'formControlClass',\n },\n})\nexport class BsFormControlDirective {\n private form = inject(BsFormComponent, { optional: true });\n formControlClass = !!this.form;\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;MAOa,eAAe,CAAA;AAL5B,IAAA,WAAA,GAAA;QAMW,IAAA,CAAA,MAAM,GAAG,KAAK,CAAqB,SAAS;mFAAC;QAC7C,IAAA,CAAA,MAAM,GAAG,KAAK,CAAgD,SAAS;mFAAC;QAExE,IAAA,CAAA,SAAS,GAAG,MAAM,EAAS;AAKrC,IAAA;AAJC,IAAA,QAAQ,CAAC,EAAS,EAAA;AAChB,QAAA,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,EAAE,CAAC;AACvB,QAAA,OAAO,KAAK;IACd;8GARW,eAAe,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;AAAf,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,IAAA,EAAA,eAAe,0WCP5B,uYAMA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,CAAA,CAAA;;2FDCa,eAAe,EAAA,UAAA,EAAA,CAAA;kBAL3B,SAAS;+BACE,SAAS,EAAA,eAAA,EAEF,uBAAuB,CAAC,MAAM,EAAA,QAAA,EAAA,uYAAA,EAAA;;;MEGpC,oBAAoB,CAAA;8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version":3,"file":"mintplayer-ng-bootstrap-form.mjs","sources":["../../../../libs/mintplayer-ng-bootstrap/form/src/form/form.component.ts","../../../../libs/mintplayer-ng-bootstrap/form/src/form/form.component.html","../../../../libs/mintplayer-ng-bootstrap/form/src/form-group/form-group.directive.ts","../../../../libs/mintplayer-ng-bootstrap/form/src/form-control/form-control.directive.ts","../../../../libs/mintplayer-ng-bootstrap/form/mintplayer-ng-bootstrap-form.ts"],"sourcesContent":["import { Component, input, output, ChangeDetectionStrategy} from '@angular/core';\n\n@Component({\n selector: 'bs-form',\n templateUrl: './form.component.html',\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class BsFormComponent {\n readonly action = input<string | undefined>(undefined);\n readonly method = input<'GET' | 'POST' | 'PUT' | 'DELETE' | undefined>(undefined);\n\n readonly submitted = output<Event>();\n onSubmit(ev: Event) {\n this.submitted.emit(ev);\n return false;\n }\n}\n","<!-- This IS the form: never nest another <form> in bs-form. The HTML parser\n drops a nested form tag, so a server-rendered page hydrates against a DOM\n one level shallower than the template. Put [formGroup] on a div instead. -->\n<form (submit)=\"onSubmit($event)\" [attr.action]=\"action() ?? null\" [attr.method]=\"method() ?? null\">\n <ng-content></ng-content>\n</form>\n","import { Directive } from '@angular/core';\n\n@Directive({\n selector: '[bsFormGroup]',\n host: {\n '[class.form-group]': 'true',\n },\n})\nexport class BsFormGroupDirective {\n}\n","import { Directive, inject } from '@angular/core';\nimport { useBootstrap } from '@mintplayer/ng-bootstrap/machine';\nimport { bootstrapForms } from '@mintplayer/ui-core/bootstrap/forms';\nimport { BsFormComponent } from '../form/form.component';\n\n@Directive({\n selector: 'bs-form input:not(.no-form-control), bs-form textarea:not(.no-form-control)',\n host: {\n '[attr.data-mps]': '\"form\"',\n '[class.form-control]': 'formControlClass',\n },\n})\nexport class BsFormControlDirective {\n constructor() {\n // #452: the forms partial ships with this component, scoped to the elements it stamps (data-mps=\"form\").\n useBootstrap(bootstrapForms);\n }\n\n private form = inject(BsFormComponent, { optional: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CAAA;kBANhC,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACT,oBAAA,QAAQ,EAAE,eAAe;AACzB,oBAAA,IAAI,EAAE;AACJ,wBAAA,oBAAoB,EAAE,MAAM;AAC7B,qBAAA;AACF,iBAAA;;;MCKY,sBAAsB,CAAA;AACjC,IAAA,WAAA,GAAA;QAKQ,IAAA,CAAA,IAAI,GAAG,MAAM,CAAC,eAAe,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;AAC1D,QAAA,IAAA,CAAA,gBAAgB,GAAG,CAAC,CAAC,IAAI,CAAC,IAAI;;QAJ5B,YAAY,CAAC,cAAc,CAAC;IAC9B;8GAJW,sBAAsB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;kGAAtB,sBAAsB,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,6EAAA,EAAA,IAAA,EAAA,EAAA,UAAA,EAAA,EAAA,eAAA,EAAA,UAAA,EAAA,oBAAA,EAAA,kBAAA,EAAA,EAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA,CAAA;;2FAAtB,sBAAsB,EAAA,UAAA,EAAA,CAAA;kBAPlC,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACT,oBAAA,QAAQ,EAAE,6EAA6E;AACvF,oBAAA,IAAI,EAAE;AACJ,wBAAA,iBAAiB,EAAE,QAAQ;AAC3B,wBAAA,sBAAsB,EAAE,kBAAkB;AAC3C,qBAAA;AACF,iBAAA;;;ACXD;;AAEG;;;;"}
@@ -1,6 +1,9 @@
1
1
  import * as i0 from '@angular/core';
2
2
  import { input, computed, ChangeDetectionStrategy, Component, Directive } from '@angular/core';
3
- import { BsContainerComponent } from '@mintplayer/ng-bootstrap/container';
3
+ import { useBootstrap } from '@mintplayer/ng-bootstrap/machine';
4
+ import { bootstrapContainers } from '@mintplayer/ui-core/bootstrap/containers';
5
+ import { bootstrapGrid } from '@mintplayer/ui-core/bootstrap/grid';
6
+ import { bootstrapForms } from '@mintplayer/ui-core/bootstrap/forms';
4
7
 
5
8
  class BsGridComponent {
6
9
  constructor() {
@@ -15,18 +18,29 @@ class BsGridComponent {
15
18
  }
16
19
  }, /* @ts-ignore */
17
20
  ...(ngDevMode ? [{ debugName: "containerClass" }] : /* istanbul ignore next */ []));
21
+ // #452: the container and grid partials ship with the grid, scoped to the
22
+ // elements it (and the bsRow / column directives) stamp with data-mps.
23
+ useBootstrap(bootstrapContainers, bootstrapGrid);
18
24
  }
19
25
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsGridComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
20
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.0.8", type: BsGridComponent, isStandalone: true, selector: "bs-grid", inputs: { stopFullWidthAt: { classPropertyName: "stopFullWidthAt", publicName: "stopFullWidthAt", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: "<bs-container>\n <div [class]=\"containerClass()\">\n <ng-content></ng-content>\n </div>\n</bs-container>", styles: [":host ::ng-deep :root{--bs-breakpoint-xs: 0;--bs-breakpoint-sm: 576px;--bs-breakpoint-md: 768px;--bs-breakpoint-lg: 992px;--bs-breakpoint-xl: 1200px;--bs-breakpoint-xxl: 1400px}:host ::ng-deep .row{--bs-gutter-x: 1.5rem;--bs-gutter-y: 0;display:flex;flex-wrap:wrap;margin-top:calc(-1 * var(--bs-gutter-y));margin-right:calc(-.5 * var(--bs-gutter-x));margin-left:calc(-.5 * var(--bs-gutter-x))}:host ::ng-deep .row>*{flex-shrink:0;width:100%;max-width:100%;padding-right:calc(var(--bs-gutter-x) * .5);padding-left:calc(var(--bs-gutter-x) * .5);margin-top:var(--bs-gutter-y)}:host ::ng-deep .col{flex:1 0 0}:host ::ng-deep .row-cols-auto>*{flex:0 0 auto;width:auto}:host ::ng-deep .row-cols-1>*{flex:0 0 auto;width:100%}:host ::ng-deep .row-cols-2>*{flex:0 0 auto;width:50%}:host ::ng-deep .row-cols-3>*{flex:0 0 auto;width:33.33333333%}:host ::ng-deep .row-cols-4>*{flex:0 0 auto;width:25%}:host ::ng-deep .row-cols-5>*{flex:0 0 auto;width:20%}:host ::ng-deep .row-cols-6>*{flex:0 0 auto;width:16.66666667%}:host ::ng-deep .col-auto{flex:0 0 auto;width:auto}:host ::ng-deep .col-1{flex:0 0 auto;width:8.33333333%}:host ::ng-deep .col-2{flex:0 0 auto;width:16.66666667%}:host ::ng-deep .col-3{flex:0 0 auto;width:25%}:host ::ng-deep .col-4{flex:0 0 auto;width:33.33333333%}:host ::ng-deep .col-5{flex:0 0 auto;width:41.66666667%}:host ::ng-deep .col-6{flex:0 0 auto;width:50%}:host ::ng-deep .col-7{flex:0 0 auto;width:58.33333333%}:host ::ng-deep .col-8{flex:0 0 auto;width:66.66666667%}:host ::ng-deep .col-9{flex:0 0 auto;width:75%}:host ::ng-deep .col-10{flex:0 0 auto;width:83.33333333%}:host ::ng-deep .col-11{flex:0 0 auto;width:91.66666667%}:host ::ng-deep .col-12{flex:0 0 auto;width:100%}:host ::ng-deep .offset-1{margin-left:8.33333333%}:host ::ng-deep .offset-2{margin-left:16.66666667%}:host ::ng-deep .offset-3{margin-left:25%}:host ::ng-deep .offset-4{margin-left:33.33333333%}:host ::ng-deep .offset-5{margin-left:41.66666667%}:host ::ng-deep .offset-6{margin-left:50%}:host ::ng-deep .offset-7{margin-left:58.33333333%}:host ::ng-deep .offset-8{margin-left:66.66666667%}:host ::ng-deep .offset-9{margin-left:75%}:host ::ng-deep .offset-10{margin-left:83.33333333%}:host ::ng-deep .offset-11{margin-left:91.66666667%}:host ::ng-deep .g-0,:host ::ng-deep .gx-0{--bs-gutter-x: 0}:host ::ng-deep .g-0,:host ::ng-deep .gy-0{--bs-gutter-y: 0}:host ::ng-deep .g-1,:host ::ng-deep .gx-1{--bs-gutter-x: .25rem}:host ::ng-deep .g-1,:host ::ng-deep .gy-1{--bs-gutter-y: .25rem}:host ::ng-deep .g-2,:host ::ng-deep .gx-2{--bs-gutter-x: .5rem}:host ::ng-deep .g-2,:host ::ng-deep .gy-2{--bs-gutter-y: .5rem}:host ::ng-deep .g-3,:host ::ng-deep .gx-3{--bs-gutter-x: 1rem}:host ::ng-deep .g-3,:host ::ng-deep .gy-3{--bs-gutter-y: 1rem}:host ::ng-deep .g-4,:host ::ng-deep .gx-4{--bs-gutter-x: 1.5rem}:host ::ng-deep .g-4,:host ::ng-deep .gy-4{--bs-gutter-y: 1.5rem}:host ::ng-deep .g-5,:host ::ng-deep .gx-5{--bs-gutter-x: 3rem}:host ::ng-deep .g-5,:host ::ng-deep .gy-5{--bs-gutter-y: 3rem}@media(min-width:576px){:host ::ng-deep .col-sm{flex:1 0 0}:host ::ng-deep .row-cols-sm-auto>*{flex:0 0 auto;width:auto}:host ::ng-deep .row-cols-sm-1>*{flex:0 0 auto;width:100%}:host ::ng-deep .row-cols-sm-2>*{flex:0 0 auto;width:50%}:host ::ng-deep .row-cols-sm-3>*{flex:0 0 auto;width:33.33333333%}:host ::ng-deep .row-cols-sm-4>*{flex:0 0 auto;width:25%}:host ::ng-deep .row-cols-sm-5>*{flex:0 0 auto;width:20%}:host ::ng-deep .row-cols-sm-6>*{flex:0 0 auto;width:16.66666667%}:host ::ng-deep .col-sm-auto{flex:0 0 auto;width:auto}:host ::ng-deep .col-sm-1{flex:0 0 auto;width:8.33333333%}:host ::ng-deep .col-sm-2{flex:0 0 auto;width:16.66666667%}:host ::ng-deep .col-sm-3{flex:0 0 auto;width:25%}:host ::ng-deep .col-sm-4{flex:0 0 auto;width:33.33333333%}:host ::ng-deep .col-sm-5{flex:0 0 auto;width:41.66666667%}:host ::ng-deep .col-sm-6{flex:0 0 auto;width:50%}:host ::ng-deep .col-sm-7{flex:0 0 auto;width:58.33333333%}:host ::ng-deep .col-sm-8{flex:0 0 auto;width:66.66666667%}:host ::ng-deep .col-sm-9{flex:0 0 auto;width:75%}:host ::ng-deep .col-sm-10{flex:0 0 auto;width:83.33333333%}:host ::ng-deep .col-sm-11{flex:0 0 auto;width:91.66666667%}:host ::ng-deep .col-sm-12{flex:0 0 auto;width:100%}:host ::ng-deep .offset-sm-0{margin-left:0}:host ::ng-deep .offset-sm-1{margin-left:8.33333333%}:host ::ng-deep .offset-sm-2{margin-left:16.66666667%}:host ::ng-deep .offset-sm-3{margin-left:25%}:host ::ng-deep .offset-sm-4{margin-left:33.33333333%}:host ::ng-deep .offset-sm-5{margin-left:41.66666667%}:host ::ng-deep .offset-sm-6{margin-left:50%}:host ::ng-deep .offset-sm-7{margin-left:58.33333333%}:host ::ng-deep .offset-sm-8{margin-left:66.66666667%}:host ::ng-deep .offset-sm-9{margin-left:75%}:host ::ng-deep .offset-sm-10{margin-left:83.33333333%}:host ::ng-deep .offset-sm-11{margin-left:91.66666667%}:host ::ng-deep .g-sm-0,:host ::ng-deep .gx-sm-0{--bs-gutter-x: 0}:host ::ng-deep .g-sm-0,:host ::ng-deep .gy-sm-0{--bs-gutter-y: 0}:host ::ng-deep .g-sm-1,:host ::ng-deep .gx-sm-1{--bs-gutter-x: .25rem}:host ::ng-deep .g-sm-1,:host ::ng-deep .gy-sm-1{--bs-gutter-y: .25rem}:host ::ng-deep .g-sm-2,:host ::ng-deep .gx-sm-2{--bs-gutter-x: .5rem}:host ::ng-deep .g-sm-2,:host ::ng-deep .gy-sm-2{--bs-gutter-y: .5rem}:host ::ng-deep .g-sm-3,:host ::ng-deep .gx-sm-3{--bs-gutter-x: 1rem}:host ::ng-deep .g-sm-3,:host ::ng-deep .gy-sm-3{--bs-gutter-y: 1rem}:host ::ng-deep .g-sm-4,:host ::ng-deep .gx-sm-4{--bs-gutter-x: 1.5rem}:host ::ng-deep .g-sm-4,:host ::ng-deep .gy-sm-4{--bs-gutter-y: 1.5rem}:host ::ng-deep .g-sm-5,:host ::ng-deep .gx-sm-5{--bs-gutter-x: 3rem}:host ::ng-deep .g-sm-5,:host ::ng-deep .gy-sm-5{--bs-gutter-y: 3rem}}@media(min-width:768px){:host ::ng-deep .col-md{flex:1 0 0}:host ::ng-deep .row-cols-md-auto>*{flex:0 0 auto;width:auto}:host ::ng-deep .row-cols-md-1>*{flex:0 0 auto;width:100%}:host ::ng-deep .row-cols-md-2>*{flex:0 0 auto;width:50%}:host ::ng-deep .row-cols-md-3>*{flex:0 0 auto;width:33.33333333%}:host ::ng-deep .row-cols-md-4>*{flex:0 0 auto;width:25%}:host ::ng-deep .row-cols-md-5>*{flex:0 0 auto;width:20%}:host ::ng-deep .row-cols-md-6>*{flex:0 0 auto;width:16.66666667%}:host ::ng-deep .col-md-auto{flex:0 0 auto;width:auto}:host ::ng-deep .col-md-1{flex:0 0 auto;width:8.33333333%}:host ::ng-deep .col-md-2{flex:0 0 auto;width:16.66666667%}:host ::ng-deep .col-md-3{flex:0 0 auto;width:25%}:host ::ng-deep .col-md-4{flex:0 0 auto;width:33.33333333%}:host ::ng-deep .col-md-5{flex:0 0 auto;width:41.66666667%}:host ::ng-deep .col-md-6{flex:0 0 auto;width:50%}:host ::ng-deep .col-md-7{flex:0 0 auto;width:58.33333333%}:host ::ng-deep .col-md-8{flex:0 0 auto;width:66.66666667%}:host ::ng-deep .col-md-9{flex:0 0 auto;width:75%}:host ::ng-deep .col-md-10{flex:0 0 auto;width:83.33333333%}:host ::ng-deep .col-md-11{flex:0 0 auto;width:91.66666667%}:host ::ng-deep .col-md-12{flex:0 0 auto;width:100%}:host ::ng-deep .offset-md-0{margin-left:0}:host ::ng-deep .offset-md-1{margin-left:8.33333333%}:host ::ng-deep .offset-md-2{margin-left:16.66666667%}:host ::ng-deep .offset-md-3{margin-left:25%}:host ::ng-deep .offset-md-4{margin-left:33.33333333%}:host ::ng-deep .offset-md-5{margin-left:41.66666667%}:host ::ng-deep .offset-md-6{margin-left:50%}:host ::ng-deep .offset-md-7{margin-left:58.33333333%}:host ::ng-deep .offset-md-8{margin-left:66.66666667%}:host ::ng-deep .offset-md-9{margin-left:75%}:host ::ng-deep .offset-md-10{margin-left:83.33333333%}:host ::ng-deep .offset-md-11{margin-left:91.66666667%}:host ::ng-deep .g-md-0,:host ::ng-deep .gx-md-0{--bs-gutter-x: 0}:host ::ng-deep .g-md-0,:host ::ng-deep .gy-md-0{--bs-gutter-y: 0}:host ::ng-deep .g-md-1,:host ::ng-deep .gx-md-1{--bs-gutter-x: .25rem}:host ::ng-deep .g-md-1,:host ::ng-deep .gy-md-1{--bs-gutter-y: .25rem}:host ::ng-deep .g-md-2,:host ::ng-deep .gx-md-2{--bs-gutter-x: .5rem}:host ::ng-deep .g-md-2,:host ::ng-deep .gy-md-2{--bs-gutter-y: .5rem}:host ::ng-deep .g-md-3,:host ::ng-deep .gx-md-3{--bs-gutter-x: 1rem}:host ::ng-deep .g-md-3,:host ::ng-deep .gy-md-3{--bs-gutter-y: 1rem}:host ::ng-deep .g-md-4,:host ::ng-deep .gx-md-4{--bs-gutter-x: 1.5rem}:host ::ng-deep .g-md-4,:host ::ng-deep .gy-md-4{--bs-gutter-y: 1.5rem}:host ::ng-deep .g-md-5,:host ::ng-deep .gx-md-5{--bs-gutter-x: 3rem}:host ::ng-deep .g-md-5,:host ::ng-deep .gy-md-5{--bs-gutter-y: 3rem}}@media(min-width:992px){:host ::ng-deep .col-lg{flex:1 0 0}:host ::ng-deep .row-cols-lg-auto>*{flex:0 0 auto;width:auto}:host ::ng-deep .row-cols-lg-1>*{flex:0 0 auto;width:100%}:host ::ng-deep .row-cols-lg-2>*{flex:0 0 auto;width:50%}:host ::ng-deep .row-cols-lg-3>*{flex:0 0 auto;width:33.33333333%}:host ::ng-deep .row-cols-lg-4>*{flex:0 0 auto;width:25%}:host ::ng-deep .row-cols-lg-5>*{flex:0 0 auto;width:20%}:host ::ng-deep .row-cols-lg-6>*{flex:0 0 auto;width:16.66666667%}:host ::ng-deep .col-lg-auto{flex:0 0 auto;width:auto}:host ::ng-deep .col-lg-1{flex:0 0 auto;width:8.33333333%}:host ::ng-deep .col-lg-2{flex:0 0 auto;width:16.66666667%}:host ::ng-deep .col-lg-3{flex:0 0 auto;width:25%}:host ::ng-deep .col-lg-4{flex:0 0 auto;width:33.33333333%}:host ::ng-deep .col-lg-5{flex:0 0 auto;width:41.66666667%}:host ::ng-deep .col-lg-6{flex:0 0 auto;width:50%}:host ::ng-deep .col-lg-7{flex:0 0 auto;width:58.33333333%}:host ::ng-deep .col-lg-8{flex:0 0 auto;width:66.66666667%}:host ::ng-deep .col-lg-9{flex:0 0 auto;width:75%}:host ::ng-deep .col-lg-10{flex:0 0 auto;width:83.33333333%}:host ::ng-deep .col-lg-11{flex:0 0 auto;width:91.66666667%}:host ::ng-deep .col-lg-12{flex:0 0 auto;width:100%}:host ::ng-deep .offset-lg-0{margin-left:0}:host ::ng-deep .offset-lg-1{margin-left:8.33333333%}:host ::ng-deep .offset-lg-2{margin-left:16.66666667%}:host ::ng-deep .offset-lg-3{margin-left:25%}:host ::ng-deep .offset-lg-4{margin-left:33.33333333%}:host ::ng-deep .offset-lg-5{margin-left:41.66666667%}:host ::ng-deep .offset-lg-6{margin-left:50%}:host ::ng-deep .offset-lg-7{margin-left:58.33333333%}:host ::ng-deep .offset-lg-8{margin-left:66.66666667%}:host ::ng-deep .offset-lg-9{margin-left:75%}:host ::ng-deep .offset-lg-10{margin-left:83.33333333%}:host ::ng-deep .offset-lg-11{margin-left:91.66666667%}:host ::ng-deep .g-lg-0,:host ::ng-deep .gx-lg-0{--bs-gutter-x: 0}:host ::ng-deep .g-lg-0,:host ::ng-deep .gy-lg-0{--bs-gutter-y: 0}:host ::ng-deep .g-lg-1,:host ::ng-deep .gx-lg-1{--bs-gutter-x: .25rem}:host ::ng-deep .g-lg-1,:host ::ng-deep .gy-lg-1{--bs-gutter-y: .25rem}:host ::ng-deep .g-lg-2,:host ::ng-deep .gx-lg-2{--bs-gutter-x: .5rem}:host ::ng-deep .g-lg-2,:host ::ng-deep .gy-lg-2{--bs-gutter-y: .5rem}:host ::ng-deep .g-lg-3,:host ::ng-deep .gx-lg-3{--bs-gutter-x: 1rem}:host ::ng-deep .g-lg-3,:host ::ng-deep .gy-lg-3{--bs-gutter-y: 1rem}:host ::ng-deep .g-lg-4,:host ::ng-deep .gx-lg-4{--bs-gutter-x: 1.5rem}:host ::ng-deep .g-lg-4,:host ::ng-deep .gy-lg-4{--bs-gutter-y: 1.5rem}:host ::ng-deep .g-lg-5,:host ::ng-deep .gx-lg-5{--bs-gutter-x: 3rem}:host ::ng-deep .g-lg-5,:host ::ng-deep .gy-lg-5{--bs-gutter-y: 3rem}}@media(min-width:1200px){:host ::ng-deep .col-xl{flex:1 0 0}:host ::ng-deep .row-cols-xl-auto>*{flex:0 0 auto;width:auto}:host ::ng-deep .row-cols-xl-1>*{flex:0 0 auto;width:100%}:host ::ng-deep .row-cols-xl-2>*{flex:0 0 auto;width:50%}:host ::ng-deep .row-cols-xl-3>*{flex:0 0 auto;width:33.33333333%}:host ::ng-deep .row-cols-xl-4>*{flex:0 0 auto;width:25%}:host ::ng-deep .row-cols-xl-5>*{flex:0 0 auto;width:20%}:host ::ng-deep .row-cols-xl-6>*{flex:0 0 auto;width:16.66666667%}:host ::ng-deep .col-xl-auto{flex:0 0 auto;width:auto}:host ::ng-deep .col-xl-1{flex:0 0 auto;width:8.33333333%}:host ::ng-deep .col-xl-2{flex:0 0 auto;width:16.66666667%}:host ::ng-deep .col-xl-3{flex:0 0 auto;width:25%}:host ::ng-deep .col-xl-4{flex:0 0 auto;width:33.33333333%}:host ::ng-deep .col-xl-5{flex:0 0 auto;width:41.66666667%}:host ::ng-deep .col-xl-6{flex:0 0 auto;width:50%}:host ::ng-deep .col-xl-7{flex:0 0 auto;width:58.33333333%}:host ::ng-deep .col-xl-8{flex:0 0 auto;width:66.66666667%}:host ::ng-deep .col-xl-9{flex:0 0 auto;width:75%}:host ::ng-deep .col-xl-10{flex:0 0 auto;width:83.33333333%}:host ::ng-deep .col-xl-11{flex:0 0 auto;width:91.66666667%}:host ::ng-deep .col-xl-12{flex:0 0 auto;width:100%}:host ::ng-deep .offset-xl-0{margin-left:0}:host ::ng-deep .offset-xl-1{margin-left:8.33333333%}:host ::ng-deep .offset-xl-2{margin-left:16.66666667%}:host ::ng-deep .offset-xl-3{margin-left:25%}:host ::ng-deep .offset-xl-4{margin-left:33.33333333%}:host ::ng-deep .offset-xl-5{margin-left:41.66666667%}:host ::ng-deep .offset-xl-6{margin-left:50%}:host ::ng-deep .offset-xl-7{margin-left:58.33333333%}:host ::ng-deep .offset-xl-8{margin-left:66.66666667%}:host ::ng-deep .offset-xl-9{margin-left:75%}:host ::ng-deep .offset-xl-10{margin-left:83.33333333%}:host ::ng-deep .offset-xl-11{margin-left:91.66666667%}:host ::ng-deep .g-xl-0,:host ::ng-deep .gx-xl-0{--bs-gutter-x: 0}:host ::ng-deep .g-xl-0,:host ::ng-deep .gy-xl-0{--bs-gutter-y: 0}:host ::ng-deep .g-xl-1,:host ::ng-deep .gx-xl-1{--bs-gutter-x: .25rem}:host ::ng-deep .g-xl-1,:host ::ng-deep .gy-xl-1{--bs-gutter-y: .25rem}:host ::ng-deep .g-xl-2,:host ::ng-deep .gx-xl-2{--bs-gutter-x: .5rem}:host ::ng-deep .g-xl-2,:host ::ng-deep .gy-xl-2{--bs-gutter-y: .5rem}:host ::ng-deep .g-xl-3,:host ::ng-deep .gx-xl-3{--bs-gutter-x: 1rem}:host ::ng-deep .g-xl-3,:host ::ng-deep .gy-xl-3{--bs-gutter-y: 1rem}:host ::ng-deep .g-xl-4,:host ::ng-deep .gx-xl-4{--bs-gutter-x: 1.5rem}:host ::ng-deep .g-xl-4,:host ::ng-deep .gy-xl-4{--bs-gutter-y: 1.5rem}:host ::ng-deep .g-xl-5,:host ::ng-deep .gx-xl-5{--bs-gutter-x: 3rem}:host ::ng-deep .g-xl-5,:host ::ng-deep .gy-xl-5{--bs-gutter-y: 3rem}}@media(min-width:1400px){:host ::ng-deep .col-xxl{flex:1 0 0}:host ::ng-deep .row-cols-xxl-auto>*{flex:0 0 auto;width:auto}:host ::ng-deep .row-cols-xxl-1>*{flex:0 0 auto;width:100%}:host ::ng-deep .row-cols-xxl-2>*{flex:0 0 auto;width:50%}:host ::ng-deep .row-cols-xxl-3>*{flex:0 0 auto;width:33.33333333%}:host ::ng-deep .row-cols-xxl-4>*{flex:0 0 auto;width:25%}:host ::ng-deep .row-cols-xxl-5>*{flex:0 0 auto;width:20%}:host ::ng-deep .row-cols-xxl-6>*{flex:0 0 auto;width:16.66666667%}:host ::ng-deep .col-xxl-auto{flex:0 0 auto;width:auto}:host ::ng-deep .col-xxl-1{flex:0 0 auto;width:8.33333333%}:host ::ng-deep .col-xxl-2{flex:0 0 auto;width:16.66666667%}:host ::ng-deep .col-xxl-3{flex:0 0 auto;width:25%}:host ::ng-deep .col-xxl-4{flex:0 0 auto;width:33.33333333%}:host ::ng-deep .col-xxl-5{flex:0 0 auto;width:41.66666667%}:host ::ng-deep .col-xxl-6{flex:0 0 auto;width:50%}:host ::ng-deep .col-xxl-7{flex:0 0 auto;width:58.33333333%}:host ::ng-deep .col-xxl-8{flex:0 0 auto;width:66.66666667%}:host ::ng-deep .col-xxl-9{flex:0 0 auto;width:75%}:host ::ng-deep .col-xxl-10{flex:0 0 auto;width:83.33333333%}:host ::ng-deep .col-xxl-11{flex:0 0 auto;width:91.66666667%}:host ::ng-deep .col-xxl-12{flex:0 0 auto;width:100%}:host ::ng-deep .offset-xxl-0{margin-left:0}:host ::ng-deep .offset-xxl-1{margin-left:8.33333333%}:host ::ng-deep .offset-xxl-2{margin-left:16.66666667%}:host ::ng-deep .offset-xxl-3{margin-left:25%}:host ::ng-deep .offset-xxl-4{margin-left:33.33333333%}:host ::ng-deep .offset-xxl-5{margin-left:41.66666667%}:host ::ng-deep .offset-xxl-6{margin-left:50%}:host ::ng-deep .offset-xxl-7{margin-left:58.33333333%}:host ::ng-deep .offset-xxl-8{margin-left:66.66666667%}:host ::ng-deep .offset-xxl-9{margin-left:75%}:host ::ng-deep .offset-xxl-10{margin-left:83.33333333%}:host ::ng-deep .offset-xxl-11{margin-left:91.66666667%}:host ::ng-deep .g-xxl-0,:host ::ng-deep .gx-xxl-0{--bs-gutter-x: 0}:host ::ng-deep .g-xxl-0,:host ::ng-deep .gy-xxl-0{--bs-gutter-y: 0}:host ::ng-deep .g-xxl-1,:host ::ng-deep .gx-xxl-1{--bs-gutter-x: .25rem}:host ::ng-deep .g-xxl-1,:host ::ng-deep .gy-xxl-1{--bs-gutter-y: .25rem}:host ::ng-deep .g-xxl-2,:host ::ng-deep .gx-xxl-2{--bs-gutter-x: .5rem}:host ::ng-deep .g-xxl-2,:host ::ng-deep .gy-xxl-2{--bs-gutter-y: .5rem}:host ::ng-deep .g-xxl-3,:host ::ng-deep .gx-xxl-3{--bs-gutter-x: 1rem}:host ::ng-deep .g-xxl-3,:host ::ng-deep .gy-xxl-3{--bs-gutter-y: 1rem}:host ::ng-deep .g-xxl-4,:host ::ng-deep .gx-xxl-4{--bs-gutter-x: 1.5rem}:host ::ng-deep .g-xxl-4,:host ::ng-deep .gy-xxl-4{--bs-gutter-y: 1.5rem}:host ::ng-deep .g-xxl-5,:host ::ng-deep .gx-xxl-5{--bs-gutter-x: 3rem}:host ::ng-deep .g-xxl-5,:host ::ng-deep .gy-xxl-5{--bs-gutter-y: 3rem}}:host{display:contents}\n"], dependencies: [{ kind: "component", type: BsContainerComponent, selector: "bs-container" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
26
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.0.8", type: BsGridComponent, isStandalone: true, selector: "bs-grid", inputs: { stopFullWidthAt: { classPropertyName: "stopFullWidthAt", publicName: "stopFullWidthAt", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: "<div [class]=\"containerClass()\" data-mps=\"grid\">\n <ng-content></ng-content>\n</div>\n", styles: [":host{display:contents}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
21
27
  }
22
28
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsGridComponent, decorators: [{
23
29
  type: Component,
24
- args: [{ selector: 'bs-grid', imports: [BsContainerComponent], changeDetection: ChangeDetectionStrategy.OnPush, template: "<bs-container>\n <div [class]=\"containerClass()\">\n <ng-content></ng-content>\n </div>\n</bs-container>", styles: [":host ::ng-deep :root{--bs-breakpoint-xs: 0;--bs-breakpoint-sm: 576px;--bs-breakpoint-md: 768px;--bs-breakpoint-lg: 992px;--bs-breakpoint-xl: 1200px;--bs-breakpoint-xxl: 1400px}:host ::ng-deep .row{--bs-gutter-x: 1.5rem;--bs-gutter-y: 0;display:flex;flex-wrap:wrap;margin-top:calc(-1 * var(--bs-gutter-y));margin-right:calc(-.5 * var(--bs-gutter-x));margin-left:calc(-.5 * var(--bs-gutter-x))}:host ::ng-deep .row>*{flex-shrink:0;width:100%;max-width:100%;padding-right:calc(var(--bs-gutter-x) * .5);padding-left:calc(var(--bs-gutter-x) * .5);margin-top:var(--bs-gutter-y)}:host ::ng-deep .col{flex:1 0 0}:host ::ng-deep .row-cols-auto>*{flex:0 0 auto;width:auto}:host ::ng-deep .row-cols-1>*{flex:0 0 auto;width:100%}:host ::ng-deep .row-cols-2>*{flex:0 0 auto;width:50%}:host ::ng-deep .row-cols-3>*{flex:0 0 auto;width:33.33333333%}:host ::ng-deep .row-cols-4>*{flex:0 0 auto;width:25%}:host ::ng-deep .row-cols-5>*{flex:0 0 auto;width:20%}:host ::ng-deep .row-cols-6>*{flex:0 0 auto;width:16.66666667%}:host ::ng-deep .col-auto{flex:0 0 auto;width:auto}:host ::ng-deep .col-1{flex:0 0 auto;width:8.33333333%}:host ::ng-deep .col-2{flex:0 0 auto;width:16.66666667%}:host ::ng-deep .col-3{flex:0 0 auto;width:25%}:host ::ng-deep .col-4{flex:0 0 auto;width:33.33333333%}:host ::ng-deep .col-5{flex:0 0 auto;width:41.66666667%}:host ::ng-deep .col-6{flex:0 0 auto;width:50%}:host ::ng-deep .col-7{flex:0 0 auto;width:58.33333333%}:host ::ng-deep .col-8{flex:0 0 auto;width:66.66666667%}:host ::ng-deep .col-9{flex:0 0 auto;width:75%}:host ::ng-deep .col-10{flex:0 0 auto;width:83.33333333%}:host ::ng-deep .col-11{flex:0 0 auto;width:91.66666667%}:host ::ng-deep .col-12{flex:0 0 auto;width:100%}:host ::ng-deep .offset-1{margin-left:8.33333333%}:host ::ng-deep .offset-2{margin-left:16.66666667%}:host ::ng-deep .offset-3{margin-left:25%}:host ::ng-deep .offset-4{margin-left:33.33333333%}:host ::ng-deep .offset-5{margin-left:41.66666667%}:host ::ng-deep .offset-6{margin-left:50%}:host ::ng-deep .offset-7{margin-left:58.33333333%}:host ::ng-deep .offset-8{margin-left:66.66666667%}:host ::ng-deep .offset-9{margin-left:75%}:host ::ng-deep .offset-10{margin-left:83.33333333%}:host ::ng-deep .offset-11{margin-left:91.66666667%}:host ::ng-deep .g-0,:host ::ng-deep .gx-0{--bs-gutter-x: 0}:host ::ng-deep .g-0,:host ::ng-deep .gy-0{--bs-gutter-y: 0}:host ::ng-deep .g-1,:host ::ng-deep .gx-1{--bs-gutter-x: .25rem}:host ::ng-deep .g-1,:host ::ng-deep .gy-1{--bs-gutter-y: .25rem}:host ::ng-deep .g-2,:host ::ng-deep .gx-2{--bs-gutter-x: .5rem}:host ::ng-deep .g-2,:host ::ng-deep .gy-2{--bs-gutter-y: .5rem}:host ::ng-deep .g-3,:host ::ng-deep .gx-3{--bs-gutter-x: 1rem}:host ::ng-deep .g-3,:host ::ng-deep .gy-3{--bs-gutter-y: 1rem}:host ::ng-deep .g-4,:host ::ng-deep .gx-4{--bs-gutter-x: 1.5rem}:host ::ng-deep .g-4,:host ::ng-deep .gy-4{--bs-gutter-y: 1.5rem}:host ::ng-deep .g-5,:host ::ng-deep .gx-5{--bs-gutter-x: 3rem}:host ::ng-deep .g-5,:host ::ng-deep .gy-5{--bs-gutter-y: 3rem}@media(min-width:576px){:host ::ng-deep .col-sm{flex:1 0 0}:host ::ng-deep .row-cols-sm-auto>*{flex:0 0 auto;width:auto}:host ::ng-deep .row-cols-sm-1>*{flex:0 0 auto;width:100%}:host ::ng-deep .row-cols-sm-2>*{flex:0 0 auto;width:50%}:host ::ng-deep .row-cols-sm-3>*{flex:0 0 auto;width:33.33333333%}:host ::ng-deep .row-cols-sm-4>*{flex:0 0 auto;width:25%}:host ::ng-deep .row-cols-sm-5>*{flex:0 0 auto;width:20%}:host ::ng-deep .row-cols-sm-6>*{flex:0 0 auto;width:16.66666667%}:host ::ng-deep .col-sm-auto{flex:0 0 auto;width:auto}:host ::ng-deep .col-sm-1{flex:0 0 auto;width:8.33333333%}:host ::ng-deep .col-sm-2{flex:0 0 auto;width:16.66666667%}:host ::ng-deep .col-sm-3{flex:0 0 auto;width:25%}:host ::ng-deep .col-sm-4{flex:0 0 auto;width:33.33333333%}:host ::ng-deep .col-sm-5{flex:0 0 auto;width:41.66666667%}:host ::ng-deep .col-sm-6{flex:0 0 auto;width:50%}:host ::ng-deep .col-sm-7{flex:0 0 auto;width:58.33333333%}:host ::ng-deep .col-sm-8{flex:0 0 auto;width:66.66666667%}:host ::ng-deep .col-sm-9{flex:0 0 auto;width:75%}:host ::ng-deep .col-sm-10{flex:0 0 auto;width:83.33333333%}:host ::ng-deep .col-sm-11{flex:0 0 auto;width:91.66666667%}:host ::ng-deep .col-sm-12{flex:0 0 auto;width:100%}:host ::ng-deep .offset-sm-0{margin-left:0}:host ::ng-deep .offset-sm-1{margin-left:8.33333333%}:host ::ng-deep .offset-sm-2{margin-left:16.66666667%}:host ::ng-deep .offset-sm-3{margin-left:25%}:host ::ng-deep .offset-sm-4{margin-left:33.33333333%}:host ::ng-deep .offset-sm-5{margin-left:41.66666667%}:host ::ng-deep .offset-sm-6{margin-left:50%}:host ::ng-deep .offset-sm-7{margin-left:58.33333333%}:host ::ng-deep .offset-sm-8{margin-left:66.66666667%}:host ::ng-deep .offset-sm-9{margin-left:75%}:host ::ng-deep .offset-sm-10{margin-left:83.33333333%}:host ::ng-deep .offset-sm-11{margin-left:91.66666667%}:host ::ng-deep .g-sm-0,:host ::ng-deep .gx-sm-0{--bs-gutter-x: 0}:host ::ng-deep .g-sm-0,:host ::ng-deep .gy-sm-0{--bs-gutter-y: 0}:host ::ng-deep .g-sm-1,:host ::ng-deep .gx-sm-1{--bs-gutter-x: .25rem}:host ::ng-deep .g-sm-1,:host ::ng-deep .gy-sm-1{--bs-gutter-y: .25rem}:host ::ng-deep .g-sm-2,:host ::ng-deep .gx-sm-2{--bs-gutter-x: .5rem}:host ::ng-deep .g-sm-2,:host ::ng-deep .gy-sm-2{--bs-gutter-y: .5rem}:host ::ng-deep .g-sm-3,:host ::ng-deep .gx-sm-3{--bs-gutter-x: 1rem}:host ::ng-deep .g-sm-3,:host ::ng-deep .gy-sm-3{--bs-gutter-y: 1rem}:host ::ng-deep .g-sm-4,:host ::ng-deep .gx-sm-4{--bs-gutter-x: 1.5rem}:host ::ng-deep .g-sm-4,:host ::ng-deep .gy-sm-4{--bs-gutter-y: 1.5rem}:host ::ng-deep .g-sm-5,:host ::ng-deep .gx-sm-5{--bs-gutter-x: 3rem}:host ::ng-deep .g-sm-5,:host ::ng-deep .gy-sm-5{--bs-gutter-y: 3rem}}@media(min-width:768px){:host ::ng-deep .col-md{flex:1 0 0}:host ::ng-deep .row-cols-md-auto>*{flex:0 0 auto;width:auto}:host ::ng-deep .row-cols-md-1>*{flex:0 0 auto;width:100%}:host ::ng-deep .row-cols-md-2>*{flex:0 0 auto;width:50%}:host ::ng-deep .row-cols-md-3>*{flex:0 0 auto;width:33.33333333%}:host ::ng-deep .row-cols-md-4>*{flex:0 0 auto;width:25%}:host ::ng-deep .row-cols-md-5>*{flex:0 0 auto;width:20%}:host ::ng-deep .row-cols-md-6>*{flex:0 0 auto;width:16.66666667%}:host ::ng-deep .col-md-auto{flex:0 0 auto;width:auto}:host ::ng-deep .col-md-1{flex:0 0 auto;width:8.33333333%}:host ::ng-deep .col-md-2{flex:0 0 auto;width:16.66666667%}:host ::ng-deep .col-md-3{flex:0 0 auto;width:25%}:host ::ng-deep .col-md-4{flex:0 0 auto;width:33.33333333%}:host ::ng-deep .col-md-5{flex:0 0 auto;width:41.66666667%}:host ::ng-deep .col-md-6{flex:0 0 auto;width:50%}:host ::ng-deep .col-md-7{flex:0 0 auto;width:58.33333333%}:host ::ng-deep .col-md-8{flex:0 0 auto;width:66.66666667%}:host ::ng-deep .col-md-9{flex:0 0 auto;width:75%}:host ::ng-deep .col-md-10{flex:0 0 auto;width:83.33333333%}:host ::ng-deep .col-md-11{flex:0 0 auto;width:91.66666667%}:host ::ng-deep .col-md-12{flex:0 0 auto;width:100%}:host ::ng-deep .offset-md-0{margin-left:0}:host ::ng-deep .offset-md-1{margin-left:8.33333333%}:host ::ng-deep .offset-md-2{margin-left:16.66666667%}:host ::ng-deep .offset-md-3{margin-left:25%}:host ::ng-deep .offset-md-4{margin-left:33.33333333%}:host ::ng-deep .offset-md-5{margin-left:41.66666667%}:host ::ng-deep .offset-md-6{margin-left:50%}:host ::ng-deep .offset-md-7{margin-left:58.33333333%}:host ::ng-deep .offset-md-8{margin-left:66.66666667%}:host ::ng-deep .offset-md-9{margin-left:75%}:host ::ng-deep .offset-md-10{margin-left:83.33333333%}:host ::ng-deep .offset-md-11{margin-left:91.66666667%}:host ::ng-deep .g-md-0,:host ::ng-deep .gx-md-0{--bs-gutter-x: 0}:host ::ng-deep .g-md-0,:host ::ng-deep .gy-md-0{--bs-gutter-y: 0}:host ::ng-deep .g-md-1,:host ::ng-deep .gx-md-1{--bs-gutter-x: .25rem}:host ::ng-deep .g-md-1,:host ::ng-deep .gy-md-1{--bs-gutter-y: .25rem}:host ::ng-deep .g-md-2,:host ::ng-deep .gx-md-2{--bs-gutter-x: .5rem}:host ::ng-deep .g-md-2,:host ::ng-deep .gy-md-2{--bs-gutter-y: .5rem}:host ::ng-deep .g-md-3,:host ::ng-deep .gx-md-3{--bs-gutter-x: 1rem}:host ::ng-deep .g-md-3,:host ::ng-deep .gy-md-3{--bs-gutter-y: 1rem}:host ::ng-deep .g-md-4,:host ::ng-deep .gx-md-4{--bs-gutter-x: 1.5rem}:host ::ng-deep .g-md-4,:host ::ng-deep .gy-md-4{--bs-gutter-y: 1.5rem}:host ::ng-deep .g-md-5,:host ::ng-deep .gx-md-5{--bs-gutter-x: 3rem}:host ::ng-deep .g-md-5,:host ::ng-deep .gy-md-5{--bs-gutter-y: 3rem}}@media(min-width:992px){:host ::ng-deep .col-lg{flex:1 0 0}:host ::ng-deep .row-cols-lg-auto>*{flex:0 0 auto;width:auto}:host ::ng-deep .row-cols-lg-1>*{flex:0 0 auto;width:100%}:host ::ng-deep .row-cols-lg-2>*{flex:0 0 auto;width:50%}:host ::ng-deep .row-cols-lg-3>*{flex:0 0 auto;width:33.33333333%}:host ::ng-deep .row-cols-lg-4>*{flex:0 0 auto;width:25%}:host ::ng-deep .row-cols-lg-5>*{flex:0 0 auto;width:20%}:host ::ng-deep .row-cols-lg-6>*{flex:0 0 auto;width:16.66666667%}:host ::ng-deep .col-lg-auto{flex:0 0 auto;width:auto}:host ::ng-deep .col-lg-1{flex:0 0 auto;width:8.33333333%}:host ::ng-deep .col-lg-2{flex:0 0 auto;width:16.66666667%}:host ::ng-deep .col-lg-3{flex:0 0 auto;width:25%}:host ::ng-deep .col-lg-4{flex:0 0 auto;width:33.33333333%}:host ::ng-deep .col-lg-5{flex:0 0 auto;width:41.66666667%}:host ::ng-deep .col-lg-6{flex:0 0 auto;width:50%}:host ::ng-deep .col-lg-7{flex:0 0 auto;width:58.33333333%}:host ::ng-deep .col-lg-8{flex:0 0 auto;width:66.66666667%}:host ::ng-deep .col-lg-9{flex:0 0 auto;width:75%}:host ::ng-deep .col-lg-10{flex:0 0 auto;width:83.33333333%}:host ::ng-deep .col-lg-11{flex:0 0 auto;width:91.66666667%}:host ::ng-deep .col-lg-12{flex:0 0 auto;width:100%}:host ::ng-deep .offset-lg-0{margin-left:0}:host ::ng-deep .offset-lg-1{margin-left:8.33333333%}:host ::ng-deep .offset-lg-2{margin-left:16.66666667%}:host ::ng-deep .offset-lg-3{margin-left:25%}:host ::ng-deep .offset-lg-4{margin-left:33.33333333%}:host ::ng-deep .offset-lg-5{margin-left:41.66666667%}:host ::ng-deep .offset-lg-6{margin-left:50%}:host ::ng-deep .offset-lg-7{margin-left:58.33333333%}:host ::ng-deep .offset-lg-8{margin-left:66.66666667%}:host ::ng-deep .offset-lg-9{margin-left:75%}:host ::ng-deep .offset-lg-10{margin-left:83.33333333%}:host ::ng-deep .offset-lg-11{margin-left:91.66666667%}:host ::ng-deep .g-lg-0,:host ::ng-deep .gx-lg-0{--bs-gutter-x: 0}:host ::ng-deep .g-lg-0,:host ::ng-deep .gy-lg-0{--bs-gutter-y: 0}:host ::ng-deep .g-lg-1,:host ::ng-deep .gx-lg-1{--bs-gutter-x: .25rem}:host ::ng-deep .g-lg-1,:host ::ng-deep .gy-lg-1{--bs-gutter-y: .25rem}:host ::ng-deep .g-lg-2,:host ::ng-deep .gx-lg-2{--bs-gutter-x: .5rem}:host ::ng-deep .g-lg-2,:host ::ng-deep .gy-lg-2{--bs-gutter-y: .5rem}:host ::ng-deep .g-lg-3,:host ::ng-deep .gx-lg-3{--bs-gutter-x: 1rem}:host ::ng-deep .g-lg-3,:host ::ng-deep .gy-lg-3{--bs-gutter-y: 1rem}:host ::ng-deep .g-lg-4,:host ::ng-deep .gx-lg-4{--bs-gutter-x: 1.5rem}:host ::ng-deep .g-lg-4,:host ::ng-deep .gy-lg-4{--bs-gutter-y: 1.5rem}:host ::ng-deep .g-lg-5,:host ::ng-deep .gx-lg-5{--bs-gutter-x: 3rem}:host ::ng-deep .g-lg-5,:host ::ng-deep .gy-lg-5{--bs-gutter-y: 3rem}}@media(min-width:1200px){:host ::ng-deep .col-xl{flex:1 0 0}:host ::ng-deep .row-cols-xl-auto>*{flex:0 0 auto;width:auto}:host ::ng-deep .row-cols-xl-1>*{flex:0 0 auto;width:100%}:host ::ng-deep .row-cols-xl-2>*{flex:0 0 auto;width:50%}:host ::ng-deep .row-cols-xl-3>*{flex:0 0 auto;width:33.33333333%}:host ::ng-deep .row-cols-xl-4>*{flex:0 0 auto;width:25%}:host ::ng-deep .row-cols-xl-5>*{flex:0 0 auto;width:20%}:host ::ng-deep .row-cols-xl-6>*{flex:0 0 auto;width:16.66666667%}:host ::ng-deep .col-xl-auto{flex:0 0 auto;width:auto}:host ::ng-deep .col-xl-1{flex:0 0 auto;width:8.33333333%}:host ::ng-deep .col-xl-2{flex:0 0 auto;width:16.66666667%}:host ::ng-deep .col-xl-3{flex:0 0 auto;width:25%}:host ::ng-deep .col-xl-4{flex:0 0 auto;width:33.33333333%}:host ::ng-deep .col-xl-5{flex:0 0 auto;width:41.66666667%}:host ::ng-deep .col-xl-6{flex:0 0 auto;width:50%}:host ::ng-deep .col-xl-7{flex:0 0 auto;width:58.33333333%}:host ::ng-deep .col-xl-8{flex:0 0 auto;width:66.66666667%}:host ::ng-deep .col-xl-9{flex:0 0 auto;width:75%}:host ::ng-deep .col-xl-10{flex:0 0 auto;width:83.33333333%}:host ::ng-deep .col-xl-11{flex:0 0 auto;width:91.66666667%}:host ::ng-deep .col-xl-12{flex:0 0 auto;width:100%}:host ::ng-deep .offset-xl-0{margin-left:0}:host ::ng-deep .offset-xl-1{margin-left:8.33333333%}:host ::ng-deep .offset-xl-2{margin-left:16.66666667%}:host ::ng-deep .offset-xl-3{margin-left:25%}:host ::ng-deep .offset-xl-4{margin-left:33.33333333%}:host ::ng-deep .offset-xl-5{margin-left:41.66666667%}:host ::ng-deep .offset-xl-6{margin-left:50%}:host ::ng-deep .offset-xl-7{margin-left:58.33333333%}:host ::ng-deep .offset-xl-8{margin-left:66.66666667%}:host ::ng-deep .offset-xl-9{margin-left:75%}:host ::ng-deep .offset-xl-10{margin-left:83.33333333%}:host ::ng-deep .offset-xl-11{margin-left:91.66666667%}:host ::ng-deep .g-xl-0,:host ::ng-deep .gx-xl-0{--bs-gutter-x: 0}:host ::ng-deep .g-xl-0,:host ::ng-deep .gy-xl-0{--bs-gutter-y: 0}:host ::ng-deep .g-xl-1,:host ::ng-deep .gx-xl-1{--bs-gutter-x: .25rem}:host ::ng-deep .g-xl-1,:host ::ng-deep .gy-xl-1{--bs-gutter-y: .25rem}:host ::ng-deep .g-xl-2,:host ::ng-deep .gx-xl-2{--bs-gutter-x: .5rem}:host ::ng-deep .g-xl-2,:host ::ng-deep .gy-xl-2{--bs-gutter-y: .5rem}:host ::ng-deep .g-xl-3,:host ::ng-deep .gx-xl-3{--bs-gutter-x: 1rem}:host ::ng-deep .g-xl-3,:host ::ng-deep .gy-xl-3{--bs-gutter-y: 1rem}:host ::ng-deep .g-xl-4,:host ::ng-deep .gx-xl-4{--bs-gutter-x: 1.5rem}:host ::ng-deep .g-xl-4,:host ::ng-deep .gy-xl-4{--bs-gutter-y: 1.5rem}:host ::ng-deep .g-xl-5,:host ::ng-deep .gx-xl-5{--bs-gutter-x: 3rem}:host ::ng-deep .g-xl-5,:host ::ng-deep .gy-xl-5{--bs-gutter-y: 3rem}}@media(min-width:1400px){:host ::ng-deep .col-xxl{flex:1 0 0}:host ::ng-deep .row-cols-xxl-auto>*{flex:0 0 auto;width:auto}:host ::ng-deep .row-cols-xxl-1>*{flex:0 0 auto;width:100%}:host ::ng-deep .row-cols-xxl-2>*{flex:0 0 auto;width:50%}:host ::ng-deep .row-cols-xxl-3>*{flex:0 0 auto;width:33.33333333%}:host ::ng-deep .row-cols-xxl-4>*{flex:0 0 auto;width:25%}:host ::ng-deep .row-cols-xxl-5>*{flex:0 0 auto;width:20%}:host ::ng-deep .row-cols-xxl-6>*{flex:0 0 auto;width:16.66666667%}:host ::ng-deep .col-xxl-auto{flex:0 0 auto;width:auto}:host ::ng-deep .col-xxl-1{flex:0 0 auto;width:8.33333333%}:host ::ng-deep .col-xxl-2{flex:0 0 auto;width:16.66666667%}:host ::ng-deep .col-xxl-3{flex:0 0 auto;width:25%}:host ::ng-deep .col-xxl-4{flex:0 0 auto;width:33.33333333%}:host ::ng-deep .col-xxl-5{flex:0 0 auto;width:41.66666667%}:host ::ng-deep .col-xxl-6{flex:0 0 auto;width:50%}:host ::ng-deep .col-xxl-7{flex:0 0 auto;width:58.33333333%}:host ::ng-deep .col-xxl-8{flex:0 0 auto;width:66.66666667%}:host ::ng-deep .col-xxl-9{flex:0 0 auto;width:75%}:host ::ng-deep .col-xxl-10{flex:0 0 auto;width:83.33333333%}:host ::ng-deep .col-xxl-11{flex:0 0 auto;width:91.66666667%}:host ::ng-deep .col-xxl-12{flex:0 0 auto;width:100%}:host ::ng-deep .offset-xxl-0{margin-left:0}:host ::ng-deep .offset-xxl-1{margin-left:8.33333333%}:host ::ng-deep .offset-xxl-2{margin-left:16.66666667%}:host ::ng-deep .offset-xxl-3{margin-left:25%}:host ::ng-deep .offset-xxl-4{margin-left:33.33333333%}:host ::ng-deep .offset-xxl-5{margin-left:41.66666667%}:host ::ng-deep .offset-xxl-6{margin-left:50%}:host ::ng-deep .offset-xxl-7{margin-left:58.33333333%}:host ::ng-deep .offset-xxl-8{margin-left:66.66666667%}:host ::ng-deep .offset-xxl-9{margin-left:75%}:host ::ng-deep .offset-xxl-10{margin-left:83.33333333%}:host ::ng-deep .offset-xxl-11{margin-left:91.66666667%}:host ::ng-deep .g-xxl-0,:host ::ng-deep .gx-xxl-0{--bs-gutter-x: 0}:host ::ng-deep .g-xxl-0,:host ::ng-deep .gy-xxl-0{--bs-gutter-y: 0}:host ::ng-deep .g-xxl-1,:host ::ng-deep .gx-xxl-1{--bs-gutter-x: .25rem}:host ::ng-deep .g-xxl-1,:host ::ng-deep .gy-xxl-1{--bs-gutter-y: .25rem}:host ::ng-deep .g-xxl-2,:host ::ng-deep .gx-xxl-2{--bs-gutter-x: .5rem}:host ::ng-deep .g-xxl-2,:host ::ng-deep .gy-xxl-2{--bs-gutter-y: .5rem}:host ::ng-deep .g-xxl-3,:host ::ng-deep .gx-xxl-3{--bs-gutter-x: 1rem}:host ::ng-deep .g-xxl-3,:host ::ng-deep .gy-xxl-3{--bs-gutter-y: 1rem}:host ::ng-deep .g-xxl-4,:host ::ng-deep .gx-xxl-4{--bs-gutter-x: 1.5rem}:host ::ng-deep .g-xxl-4,:host ::ng-deep .gy-xxl-4{--bs-gutter-y: 1.5rem}:host ::ng-deep .g-xxl-5,:host ::ng-deep .gx-xxl-5{--bs-gutter-x: 3rem}:host ::ng-deep .g-xxl-5,:host ::ng-deep .gy-xxl-5{--bs-gutter-y: 3rem}}:host{display:contents}\n"] }]
25
- }], propDecorators: { stopFullWidthAt: [{ type: i0.Input, args: [{ isSignal: true, alias: "stopFullWidthAt", required: false }] }] } });
30
+ args: [{ selector: 'bs-grid', changeDetection: ChangeDetectionStrategy.OnPush, template: "<div [class]=\"containerClass()\" data-mps=\"grid\">\n <ng-content></ng-content>\n</div>\n", styles: [":host{display:contents}\n"] }]
31
+ }], ctorParameters: () => [], propDecorators: { stopFullWidthAt: [{ type: i0.Input, args: [{ isSignal: true, alias: "stopFullWidthAt", required: false }] }] } });
26
32
 
33
+ /**
34
+ * Puts Bootstrap's `.row` on the element. The directive owns that class, so it
35
+ * stamps the element (`data-mps`) and installs the grid part (#452): the
36
+ * scoped part matches only stamped elements.
37
+ */
27
38
  class BsGridRowDirective {
39
+ constructor() {
40
+ useBootstrap(bootstrapGrid);
41
+ }
28
42
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsGridRowDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
29
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.0.8", type: BsGridRowDirective, isStandalone: true, selector: "[bsRow]", host: { properties: { "class.row": "true" } }, ngImport: i0 }); }
43
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.0.8", type: BsGridRowDirective, isStandalone: true, selector: "[bsRow]", host: { properties: { "class.row": "true", "attr.data-mps": "\"grid\"" } }, ngImport: i0 }); }
30
44
  }
31
45
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsGridRowDirective, decorators: [{
32
46
  type: Directive,
@@ -34,9 +48,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImpor
34
48
  selector: '[bsRow]',
35
49
  host: {
36
50
  '[class.row]': 'true',
51
+ '[attr.data-mps]': '"grid"',
37
52
  },
38
53
  }]
39
- }] });
54
+ }], ctorParameters: () => [] });
40
55
 
41
56
  class BsGridColumnDirective {
42
57
  constructor() {
@@ -80,9 +95,10 @@ class BsGridColumnDirective {
80
95
  .join(' ') || null;
81
96
  }, /* @ts-ignore */
82
97
  ...(ngDevMode ? [{ debugName: "classList" }] : /* istanbul ignore next */ []));
98
+ useBootstrap(bootstrapGrid);
83
99
  }
84
100
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsGridColumnDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
85
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "22.0.8", type: BsGridColumnDirective, isStandalone: true, selector: "[xxs],[xs],[sm],[md],[lg],[xl],[xxl]", inputs: { xxs: { classPropertyName: "xxs", publicName: "xxs", isSignal: true, isRequired: false, transformFunction: null }, xs: { classPropertyName: "xs", publicName: "xs", isSignal: true, isRequired: false, transformFunction: null }, sm: { classPropertyName: "sm", publicName: "sm", isSignal: true, isRequired: false, transformFunction: null }, md: { classPropertyName: "md", publicName: "md", isSignal: true, isRequired: false, transformFunction: null }, lg: { classPropertyName: "lg", publicName: "lg", isSignal: true, isRequired: false, transformFunction: null }, xl: { classPropertyName: "xl", publicName: "xl", isSignal: true, isRequired: false, transformFunction: null }, xxl: { classPropertyName: "xxl", publicName: "xxl", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class": "classList()" } }, ngImport: i0 }); }
101
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "22.0.8", type: BsGridColumnDirective, isStandalone: true, selector: "[xxs],[xs],[sm],[md],[lg],[xl],[xxl]", inputs: { xxs: { classPropertyName: "xxs", publicName: "xxs", isSignal: true, isRequired: false, transformFunction: null }, xs: { classPropertyName: "xs", publicName: "xs", isSignal: true, isRequired: false, transformFunction: null }, sm: { classPropertyName: "sm", publicName: "sm", isSignal: true, isRequired: false, transformFunction: null }, md: { classPropertyName: "md", publicName: "md", isSignal: true, isRequired: false, transformFunction: null }, lg: { classPropertyName: "lg", publicName: "lg", isSignal: true, isRequired: false, transformFunction: null }, xl: { classPropertyName: "xl", publicName: "xl", isSignal: true, isRequired: false, transformFunction: null }, xxl: { classPropertyName: "xxl", publicName: "xxl", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class": "classList()", "attr.data-mps": "\"grid\"" } }, ngImport: i0 }); }
86
102
  }
87
103
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsGridColumnDirective, decorators: [{
88
104
  type: Directive,
@@ -90,16 +106,19 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImpor
90
106
  selector: '[xxs],[xs],[sm],[md],[lg],[xl],[xxl]',
91
107
  host: {
92
108
  '[class]': 'classList()',
109
+ // #452: the directive owns the col-* classes, so it stamps the element for the scoped grid part.
110
+ '[attr.data-mps]': '"grid"',
93
111
  },
94
112
  }]
95
- }], propDecorators: { xxs: [{ type: i0.Input, args: [{ isSignal: true, alias: "xxs", required: false }] }], xs: [{ type: i0.Input, args: [{ isSignal: true, alias: "xs", required: false }] }], sm: [{ type: i0.Input, args: [{ isSignal: true, alias: "sm", required: false }] }], md: [{ type: i0.Input, args: [{ isSignal: true, alias: "md", required: false }] }], lg: [{ type: i0.Input, args: [{ isSignal: true, alias: "lg", required: false }] }], xl: [{ type: i0.Input, args: [{ isSignal: true, alias: "xl", required: false }] }], xxl: [{ type: i0.Input, args: [{ isSignal: true, alias: "xxl", required: false }] }] } });
113
+ }], ctorParameters: () => [], propDecorators: { xxs: [{ type: i0.Input, args: [{ isSignal: true, alias: "xxs", required: false }] }], xs: [{ type: i0.Input, args: [{ isSignal: true, alias: "xs", required: false }] }], sm: [{ type: i0.Input, args: [{ isSignal: true, alias: "sm", required: false }] }], md: [{ type: i0.Input, args: [{ isSignal: true, alias: "md", required: false }] }], lg: [{ type: i0.Input, args: [{ isSignal: true, alias: "lg", required: false }] }], xl: [{ type: i0.Input, args: [{ isSignal: true, alias: "xl", required: false }] }], xxl: [{ type: i0.Input, args: [{ isSignal: true, alias: "xxl", required: false }] }] } });
96
114
  class BsGridColDirective {
97
115
  constructor() {
98
116
  this.col = input(undefined, /* @ts-ignore */
99
117
  ...(ngDevMode ? [{ debugName: "col" }] : /* istanbul ignore next */ []));
118
+ useBootstrap(bootstrapGrid);
100
119
  }
101
120
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsGridColDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
102
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "22.0.8", type: BsGridColDirective, isStandalone: true, selector: "[col]", inputs: { col: { classPropertyName: "col", publicName: "col", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class.col": "true" } }, ngImport: i0 }); }
121
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "22.0.8", type: BsGridColDirective, isStandalone: true, selector: "[col]", inputs: { col: { classPropertyName: "col", publicName: "col", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class.col": "true", "attr.data-mps": "\"grid\"" } }, ngImport: i0 }); }
103
122
  }
104
123
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsGridColDirective, decorators: [{
105
124
  type: Directive,
@@ -107,13 +126,21 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImpor
107
126
  selector: '[col]',
108
127
  host: {
109
128
  '[class.col]': 'true',
129
+ '[attr.data-mps]': '"grid"',
110
130
  },
111
131
  }]
112
- }], propDecorators: { col: [{ type: i0.Input, args: [{ isSignal: true, alias: "col", required: false }] }] } });
132
+ }], ctorParameters: () => [], propDecorators: { col: [{ type: i0.Input, args: [{ isSignal: true, alias: "col", required: false }] }] } });
113
133
 
134
+ /**
135
+ * Puts Bootstrap's `.col-form-label` on the element, stamps it (`data-mps`)
136
+ * and installs the forms part that styles it (#452).
137
+ */
114
138
  class BsColFormLabelDirective {
139
+ constructor() {
140
+ useBootstrap(bootstrapForms);
141
+ }
115
142
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsColFormLabelDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
116
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.0.8", type: BsColFormLabelDirective, isStandalone: true, selector: "[bsColFormLabel]", host: { properties: { "class.col-form-label": "true" } }, ngImport: i0 }); }
143
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.0.8", type: BsColFormLabelDirective, isStandalone: true, selector: "[bsColFormLabel]", host: { properties: { "class.col-form-label": "true", "attr.data-mps": "\"grid\"" } }, ngImport: i0 }); }
117
144
  }
118
145
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsColFormLabelDirective, decorators: [{
119
146
  type: Directive,
@@ -121,9 +148,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImpor
121
148
  selector: '[bsColFormLabel]',
122
149
  host: {
123
150
  '[class.col-form-label]': 'true',
151
+ '[attr.data-mps]': '"grid"',
124
152
  },
125
153
  }]
126
- }] });
154
+ }], ctorParameters: () => [] });
127
155
 
128
156
  /**
129
157
  * Generated bundle index. Do not edit.
@@ -1 +1 @@
1
- {"version":3,"file":"mintplayer-ng-bootstrap-grid.mjs","sources":["../../../../libs/mintplayer-ng-bootstrap/grid/src/component/grid.component.ts","../../../../libs/mintplayer-ng-bootstrap/grid/src/component/grid.component.html","../../../../libs/mintplayer-ng-bootstrap/grid/src/directives/row/row.directive.ts","../../../../libs/mintplayer-ng-bootstrap/grid/src/directives/column/column.directive.ts","../../../../libs/mintplayer-ng-bootstrap/grid/src/directives/col-form-label/col-form-label.directive.ts","../../../../libs/mintplayer-ng-bootstrap/grid/mintplayer-ng-bootstrap-grid.ts"],"sourcesContent":["import { ChangeDetectionStrategy, Component, computed, input } from '@angular/core';\nimport { Breakpoint } from '@mintplayer/ng-bootstrap';\nimport { BsContainerComponent } from '@mintplayer/ng-bootstrap/container';\n\n@Component({\n selector: 'bs-grid',\n templateUrl: './grid.component.html',\n styleUrls: ['./grid.component.scss'],\n imports: [BsContainerComponent],\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class BsGridComponent {\n\n stopFullWidthAt = input<Breakpoint | 'never'>('sm');\n\n containerClass = computed(() => {\n const stopFullWidthAt = this.stopFullWidthAt();\n switch (stopFullWidthAt) {\n case 'sm': return 'container';\n case 'never': return 'container-fluid';\n default: return `container-${stopFullWidthAt}`;\n }\n });\n}\n","<bs-container>\n <div [class]=\"containerClass()\">\n <ng-content></ng-content>\n </div>\n</bs-container>","import { Directive } from '@angular/core';\n\n@Directive({\n selector: '[bsRow]',\n host: {\n '[class.row]': 'true',\n },\n})\nexport class BsGridRowDirective {\n}\n","import { Directive, computed, input } from '@angular/core';\n\n@Directive({\n selector: '[xxs],[xs],[sm],[md],[lg],[xl],[xxl]',\n host: {\n '[class]': 'classList()',\n },\n})\nexport class BsGridColumnDirective {\n\n xxs = input<number | undefined>(undefined);\n xs = input<number | undefined>(undefined);\n sm = input<number | undefined>(undefined);\n md = input<number | undefined>(undefined);\n lg = input<number | undefined>(undefined);\n xl = input<number | undefined>(undefined);\n xxl = input<number | undefined>(undefined);\n\n classList = computed(() => {\n const sizes = {\n xxs: this.xxs(),\n xs: this.xs(),\n sm: this.sm(),\n md: this.md(),\n lg: this.lg(),\n xl: this.xl(),\n xxl: this.xxl(),\n };\n return Object.keys(sizes)\n .map(key => ({\n key,\n value: (<any>sizes)[key],\n }))\n .filter(v => v.value)\n .map(v => {\n switch (v.key) {\n case '': return 'col';\n case 'xxs': return `col-${v.value}`;\n default: return `col-${v.key}-${v.value}`;\n }\n })\n .join(' ') || null;\n });\n}\n\n@Directive({\n selector: '[col]',\n host: {\n '[class.col]': 'true',\n },\n})\nexport class BsGridColDirective {\n readonly col = input<undefined>(undefined);\n}\n","import { Directive } from '@angular/core';\n\n@Directive({\n selector: '[bsColFormLabel]',\n host: {\n '[class.col-form-label]': 'true',\n },\n})\nexport class BsColFormLabelDirective {\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;MAWa,eAAe,CAAA;AAP5B,IAAA,WAAA,GAAA;QASE,IAAA,CAAA,eAAe,GAAG,KAAK,CAAuB,IAAI;4FAAC;AAEnD,QAAA,IAAA,CAAA,cAAc,GAAG,QAAQ,CAAC,MAAK;AAC7B,YAAA,MAAM,eAAe,GAAG,IAAI,CAAC,eAAe,EAAE;YAC9C,QAAQ,eAAe;AACrB,gBAAA,KAAK,IAAI,EAAE,OAAO,WAAW;AAC7B,gBAAA,KAAK,OAAO,EAAE,OAAO,iBAAiB;AACtC,gBAAA,SAAS,OAAO,CAAA,UAAA,EAAa,eAAe,EAAE;;QAElD,CAAC;2FAAC;AACH,IAAA;8GAZY,eAAe,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;kGAAf,eAAe,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,SAAA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,aAAa,EAAE,MAAM;AACtB,qBAAA;AACF,iBAAA;;;MC1CY,uBAAuB,CAAA;8GAAvB,uBAAuB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;kGAAvB,uBAAuB,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,kBAAA,EAAA,IAAA,EAAA,EAAA,UAAA,EAAA,EAAA,sBAAA,EAAA,MAAA,EAAA,EAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA,CAAA;;2FAAvB,uBAAuB,EAAA,UAAA,EAAA,CAAA;kBANnC,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACT,oBAAA,QAAQ,EAAE,kBAAkB;AAC5B,oBAAA,IAAI,EAAE;AACJ,wBAAA,wBAAwB,EAAE,MAAM;AACjC,qBAAA;AACF,iBAAA;;;ACPD;;AAEG;;;;"}
1
+ {"version":3,"file":"mintplayer-ng-bootstrap-grid.mjs","sources":["../../../../libs/mintplayer-ng-bootstrap/grid/src/component/grid.component.ts","../../../../libs/mintplayer-ng-bootstrap/grid/src/component/grid.component.html","../../../../libs/mintplayer-ng-bootstrap/grid/src/directives/row/row.directive.ts","../../../../libs/mintplayer-ng-bootstrap/grid/src/directives/column/column.directive.ts","../../../../libs/mintplayer-ng-bootstrap/grid/src/directives/col-form-label/col-form-label.directive.ts","../../../../libs/mintplayer-ng-bootstrap/grid/mintplayer-ng-bootstrap-grid.ts"],"sourcesContent":["import { ChangeDetectionStrategy, Component, computed, input } from '@angular/core';\nimport { Breakpoint } from '@mintplayer/ng-bootstrap';\nimport { useBootstrap } from '@mintplayer/ng-bootstrap/machine';\nimport { bootstrapContainers } from '@mintplayer/ui-core/bootstrap/containers';\nimport { bootstrapGrid } from '@mintplayer/ui-core/bootstrap/grid';\n\n@Component({\n selector: 'bs-grid',\n templateUrl: './grid.component.html',\n styleUrls: ['./grid.component.scss'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class BsGridComponent {\n constructor() {\n // #452: the container and grid partials ship with the grid, scoped to the\n // elements it (and the bsRow / column directives) stamp with data-mps.\n useBootstrap(bootstrapContainers, bootstrapGrid);\n }\n\n stopFullWidthAt = input<Breakpoint | 'never'>('sm');\n\n containerClass = computed(() => {\n const stopFullWidthAt = this.stopFullWidthAt();\n switch (stopFullWidthAt) {\n case 'sm': return 'container';\n case 'never': return 'container-fluid';\n default: return `container-${stopFullWidthAt}`;\n }\n });\n}\n","<div [class]=\"containerClass()\" data-mps=\"grid\">\n <ng-content></ng-content>\n</div>\n","import { Directive } from '@angular/core';\nimport { useBootstrap } from '@mintplayer/ng-bootstrap/machine';\nimport { bootstrapGrid } from '@mintplayer/ui-core/bootstrap/grid';\n\n/**\n * Puts Bootstrap's `.row` on the element. The directive owns that class, so it\n * stamps the element (`data-mps`) and installs the grid part (#452): the\n * scoped part matches only stamped elements.\n */\n@Directive({\n selector: '[bsRow]',\n host: {\n '[class.row]': 'true',\n '[attr.data-mps]': '\"grid\"',\n },\n})\nexport class BsGridRowDirective {\n constructor() {\n useBootstrap(bootstrapGrid);\n }\n}\n","import { Directive, computed, input } from '@angular/core';\nimport { useBootstrap } from '@mintplayer/ng-bootstrap/machine';\nimport { bootstrapGrid } from '@mintplayer/ui-core/bootstrap/grid';\n\n@Directive({\n selector: '[xxs],[xs],[sm],[md],[lg],[xl],[xxl]',\n host: {\n '[class]': 'classList()',\n // #452: the directive owns the col-* classes, so it stamps the element for the scoped grid part.\n '[attr.data-mps]': '\"grid\"',\n },\n})\nexport class BsGridColumnDirective {\n constructor() {\n useBootstrap(bootstrapGrid);\n }\n\n xxs = input<number | undefined>(undefined);\n xs = input<number | undefined>(undefined);\n sm = input<number | undefined>(undefined);\n md = input<number | undefined>(undefined);\n lg = input<number | undefined>(undefined);\n xl = input<number | undefined>(undefined);\n xxl = input<number | undefined>(undefined);\n\n classList = computed(() => {\n const sizes = {\n xxs: this.xxs(),\n xs: this.xs(),\n sm: this.sm(),\n md: this.md(),\n lg: this.lg(),\n xl: this.xl(),\n xxl: this.xxl(),\n };\n return Object.keys(sizes)\n .map(key => ({\n key,\n value: (<any>sizes)[key],\n }))\n .filter(v => v.value)\n .map(v => {\n switch (v.key) {\n case '': return 'col';\n case 'xxs': return `col-${v.value}`;\n default: return `col-${v.key}-${v.value}`;\n }\n })\n .join(' ') || null;\n });\n}\n\n@Directive({\n selector: '[col]',\n host: {\n '[class.col]': 'true',\n '[attr.data-mps]': '\"grid\"',\n },\n})\nexport class BsGridColDirective {\n constructor() {\n useBootstrap(bootstrapGrid);\n }\n readonly col = input<undefined>(undefined);\n}\n","import { Directive } from '@angular/core';\nimport { useBootstrap } from '@mintplayer/ng-bootstrap/machine';\nimport { bootstrapForms } from '@mintplayer/ui-core/bootstrap/forms';\n\n/**\n * Puts Bootstrap's `.col-form-label` on the element, stamps it (`data-mps`)\n * and installs the forms part that styles it (#452).\n */\n@Directive({\n selector: '[bsColFormLabel]',\n host: {\n '[class.col-form-label]': 'true',\n '[attr.data-mps]': '\"grid\"',\n },\n})\nexport class BsColFormLabelDirective {\n constructor() {\n useBootstrap(bootstrapForms);\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;MAYa,eAAe,CAAA;AAC1B,IAAA,WAAA,GAAA;QAMA,IAAA,CAAA,eAAe,GAAG,KAAK,CAAuB,IAAI;4FAAC;AAEnD,QAAA,IAAA,CAAA,cAAc,GAAG,QAAQ,CAAC,MAAK;AAC7B,YAAA,MAAM,eAAe,GAAG,IAAI,CAAC,eAAe,EAAE;YAC9C,QAAQ,eAAe;AACrB,gBAAA,KAAK,IAAI,EAAE,OAAO,WAAW;AAC7B,gBAAA,KAAK,OAAO,EAAE,OAAO,iBAAiB;AACtC,gBAAA,SAAS,OAAO,CAAA,UAAA,EAAa,eAAe,EAAE;;QAElD,CAAC;2FAAC;;;AAZA,QAAA,YAAY,CAAC,mBAAmB,EA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lB,kBAAkB,EAAA,UAAA,EAAA,CAAA;kBAP9B,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACT,oBAAA,QAAQ,EAAE,OAAO;AACjB,oBAAA,IAAI,EAAE;AACJ,wBAAA,aAAa,EAAE,MAAM;AACrB,wBAAA,iBAAiB,EAAE,QAAQ;AAC5B,qBAAA;AACF,iBAAA;;;ACtDD;;;AAGG;MAQU,uBAAuB,CAAA;AAClC,IAAA,WAAA,GAAA;QACE,YAAY,CAAC,cAAc,CAAC;IAC9B;8GAHW,uBAAuB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;kGAAvB,uBAAuB,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,kBAAA,EAAA,IAAA,EAAA,EAAA,UAAA,EAAA,EAAA,sBAAA,EAAA,MAAA,EAAA,eAAA,EAAA,UAAA,EAAA,EAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA,CAAA;;2FAAvB,uBAAuB,EAAA,UAAA,EAAA,CAAA;kBAPnC,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACT,oBAAA,QAAQ,EAAE,kBAAkB;AAC5B,oBAAA,IAAI,EAAE;AACJ,wBAAA,wBAAwB,EAAE,MAAM;AAChC,wBAAA,iBAAiB,EAAE,QAAQ;AAC5B,qBAAA;AACF,iBAAA;;;ACdD;;AAEG;;;;"}
@@ -1,6 +1,7 @@
1
+ import { bootstrapForms } from '@mintplayer/ui-core/bootstrap/forms';
1
2
  import * as i0 from '@angular/core';
2
3
  import { input, computed, inject, HostAttributeToken, ChangeDetectionStrategy, Component } from '@angular/core';
3
- import { useScopedStyles } from '@mintplayer/ng-bootstrap/machine';
4
+ import { useBootstrap, useScopedStyles } from '@mintplayer/ng-bootstrap/machine';
4
5
  import { INPUT_GROUP_SCOPE, inputGroupClasses, inputGroupRole, inputGroupScopedStyles } from '@mintplayer/ui-core/input-group';
5
6
 
6
7
  /**
@@ -27,6 +28,7 @@ class BsInputGroupComponent {
27
28
  this.role = inject(new HostAttributeToken('role'), { optional: true }) ??
28
29
  inputGroupRole(inject(new HostAttributeToken('aria-label'), { optional: true }) !== null ||
29
30
  inject(new HostAttributeToken('aria-labelledby'), { optional: true }) !== null);
31
+ useBootstrap(bootstrapForms);
30
32
  useScopedStyles(INPUT_GROUP_SCOPE, inputGroupScopedStyles);
31
33
  }
32
34
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsInputGroupComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
@@ -1 +1 @@
1
- {"version":3,"file":"mintplayer-ng-bootstrap-input-group.mjs","sources":["../../../../libs/mintplayer-ng-bootstrap/input-group/src/input-group/input-group.component.ts","../../../../libs/mintplayer-ng-bootstrap/input-group/mintplayer-ng-bootstrap-input-group.ts"],"sourcesContent":["import { ChangeDetectionStrategy, Component, HostAttributeToken, computed, inject, input } from '@angular/core';\nimport { useScopedStyles } from '@mintplayer/ng-bootstrap/machine';\nimport {\n INPUT_GROUP_SCOPE,\n inputGroupClasses,\n inputGroupRole,\n inputGroupScopedStyles,\n type InputGroupSize,\n} from '@mintplayer/ui-core/input-group';\n\nexport type BsInputGroupSize = InputGroupSize;\n\n/**\n * `<bs-input-group>` — joins its children into one visually continuous control.\n *\n * The host IS Bootstrap's `.input-group` (PRD #437 wave A): its children are\n * its direct children, so the baseline's `.input-group > .form-control` rules\n * apply as written and a consumer's `aria-*` / `id` already sits on the\n * element that carries the role. The scoped sheet adds RTL and the sizing of\n * controls rendered inside a framework host (`<bs-select>`).\n *\n * The role is `group` only when the group is named. The name is read from the\n * host's static attributes, so SSR emits the same role; a group named through\n * a binding passes `role=\"group\"` itself.\n */\n@Component({\n selector: 'bs-input-group',\n template: '<ng-content></ng-content>',\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n '[class]': 'classes()',\n '[attr.data-mps]': 'scope',\n '[attr.role]': 'role',\n },\n})\nexport class BsInputGroupComponent {\n /** Bootstrap sizing; `md` adds no class. */\n readonly size = input<BsInputGroupSize>('md');\n\n protected readonly scope = INPUT_GROUP_SCOPE;\n protected readonly classes = computed(() => inputGroupClasses(this.size()).join(' '));\n protected readonly role =\n inject(new HostAttributeToken('role'), { optional: true }) ??\n inputGroupRole(\n inject(new HostAttributeToken('aria-label'), { optional: true }) !== null ||\n inject(new HostAttributeToken('aria-labelledby'), { optional: true }) !== null,\n );\n\n constructor() {\n useScopedStyles(INPUT_GROUP_SCOPE, inputGroupScopedStyles);\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;AAYA;;;;;;;;;;;;AAYG;MAWU,qBAAqB,CAAA;AAahC,IAAA,WAAA,GAAA;;QAXS,IAAA,CAAA,IAAI,GAAG,KAAK,CAAmB,IAAI;iFAAC;QAE1B,IAAA,CAAA,KAAK,GAAG,iBAAiB;AACzB,QAAA,IAAA,CAAA,OAAO,GAAG,QAAQ,CAAC,MAAM,iBAAiB,CAAC,IAAI,CAAC,IAAI,EAAE,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC;oFAAC;AAClE,QAAA,IAAA,CAAA,IAAI,GACrB,MAAM,CAAC,IAAI,kBAAkB,CAAC,MAAM,CAAC,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;AAC1D,YAAA,cAAc,CACZ,MAAM,CAAC,IAAI,kBAAkB,CAAC,YAAY,CAAC,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC,KAAK,IAAI;AACvE,gBAAA,MAAM,CAAC,IAAI,kBAAkB,CAAC,iBAAiB,CAAC,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC,KAAK,IAAI,CACjF;AAGD,QAAA,eAAe,CAAC,iBAAiB,EAAE,sBAAsB,CAAC;IAC5D;8GAfW,qBAAqB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;AAArB,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,IAAA,EAAA,qBAAqB,0SARtB,2BAA2B,EAAA,QAAA,EAAA,IAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,CAAA,CAAA;;2FAQ1B,qBAAqB,EAAA,UAAA,EAAA,CAAA;kBAVjC,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACT,oBAAA,QAAQ,EAAE,gBAAgB;AAC1B,oBAAA,QAAQ,EAAE,2BAA2B;oBACrC,eAAe,EAAE,uBAAuB,CAAC,MAAM;AAC/C,oBAAA,IAAI,EAAE;AACJ,wBAAA,SAAS,EAAE,WAAW;AACtB,wBAAA,iBAAiB,EAAE,OAAO;AAC1B,wBAAA,aAAa,EAAE,MAAM;AACtB,qBAAA;AACF,iBAAA;;;AClCD;;AAEG;;;;"}
1
+ {"version":3,"file":"mintplayer-ng-bootstrap-input-group.mjs","sources":["../../../../libs/mintplayer-ng-bootstrap/input-group/src/input-group/input-group.component.ts","../../../../libs/mintplayer-ng-bootstrap/input-group/mintplayer-ng-bootstrap-input-group.ts"],"sourcesContent":["import { bootstrapForms } from '@mintplayer/ui-core/bootstrap/forms';\nimport { ChangeDetectionStrategy, Component, HostAttributeToken, computed, inject, input } from '@angular/core';\nimport { useBootstrap, useScopedStyles } from '@mintplayer/ng-bootstrap/machine';\nimport {\n INPUT_GROUP_SCOPE,\n inputGroupClasses,\n inputGroupRole,\n inputGroupScopedStyles,\n type InputGroupSize,\n} from '@mintplayer/ui-core/input-group';\n\nexport type BsInputGroupSize = InputGroupSize;\n\n/**\n * `<bs-input-group>` — joins its children into one visually continuous control.\n *\n * The host IS Bootstrap's `.input-group` (PRD #437 wave A): its children are\n * its direct children, so the baseline's `.input-group > .form-control` rules\n * apply as written and a consumer's `aria-*` / `id` already sits on the\n * element that carries the role. The scoped sheet adds RTL and the sizing of\n * controls rendered inside a framework host (`<bs-select>`).\n *\n * The role is `group` only when the group is named. The name is read from the\n * host's static attributes, so SSR emits the same role; a group named through\n * a binding passes `role=\"group\"` itself.\n */\n@Component({\n selector: 'bs-input-group',\n template: '<ng-content></ng-content>',\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n '[class]': 'classes()',\n '[attr.data-mps]': 'scope',\n '[attr.role]': 'role',\n },\n})\nexport class BsInputGroupComponent {\n /** Bootstrap sizing; `md` adds no class. */\n readonly size = input<BsInputGroupSize>('md');\n\n protected readonly scope = INPUT_GROUP_SCOPE;\n protected readonly classes = computed(() => inputGroupClasses(this.size()).join(' '));\n protected readonly role =\n inject(new HostAttributeToken('role'), { optional: true }) ??\n inputGroupRole(\n inject(new HostAttributeToken('aria-label'), { optional: true }) !== null ||\n inject(new HostAttributeToken('aria-labelledby'), { optional: true }) !== null,\n );\n\n constructor() {\n useBootstrap(bootstrapForms);\n useScopedStyles(INPUT_GROUP_SCOPE, inputGroupScopedStyles);\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;AAaA;;;;;;;;;;;;AAYG;MAWU,qBAAqB,CAAA;AAahC,IAAA,WAAA,GAAA;;QAXS,IAAA,CAAA,IAAI,GAAG,KAAK,CAAmB,IAAI;iFAAC;QAE1B,IAAA,CAAA,KAAK,GAAG,iBAAiB;AACzB,QAAA,IAAA,CAAA,OAAO,GAAG,QAAQ,CAAC,MAAM,iBAAiB,CAAC,IAAI,CAAC,IAAI,EAAE,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC;oFAAC;AAClE,QAAA,IAAA,CAAA,IAAI,GACrB,MAAM,CAAC,IAAI,kBAAkB,CAAC,MAAM,CAAC,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;AAC1D,YAAA,cAAc,CACZ,MAA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