@mintplayer/ng-bootstrap 22.30.0 → 22.32.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (149) hide show
  1. package/README.md +12 -11
  2. package/_bootstrap.scss +2 -4
  3. package/a11y/forms/package.json +4 -0
  4. package/fesm2022/mintplayer-ng-bootstrap-a11y-forms.mjs +120 -0
  5. package/fesm2022/mintplayer-ng-bootstrap-a11y-forms.mjs.map +1 -0
  6. package/fesm2022/mintplayer-ng-bootstrap-a11y.mjs +2 -109
  7. package/fesm2022/mintplayer-ng-bootstrap-a11y.mjs.map +1 -1
  8. package/fesm2022/mintplayer-ng-bootstrap-accordion.mjs +3 -1
  9. package/fesm2022/mintplayer-ng-bootstrap-accordion.mjs.map +1 -1
  10. package/fesm2022/mintplayer-ng-bootstrap-alert.mjs +7 -3
  11. package/fesm2022/mintplayer-ng-bootstrap-alert.mjs.map +1 -1
  12. package/fesm2022/mintplayer-ng-bootstrap-badge.mjs +7 -3
  13. package/fesm2022/mintplayer-ng-bootstrap-badge.mjs.map +1 -1
  14. package/fesm2022/mintplayer-ng-bootstrap-breadcrumb.mjs +12 -5
  15. package/fesm2022/mintplayer-ng-bootstrap-breadcrumb.mjs.map +1 -1
  16. package/fesm2022/mintplayer-ng-bootstrap-button-group.mjs +7 -3
  17. package/fesm2022/mintplayer-ng-bootstrap-button-group.mjs.map +1 -1
  18. package/fesm2022/mintplayer-ng-bootstrap-card.mjs +74 -83
  19. package/fesm2022/mintplayer-ng-bootstrap-card.mjs.map +1 -1
  20. package/fesm2022/mintplayer-ng-bootstrap-carousel.mjs +3 -0
  21. package/fesm2022/mintplayer-ng-bootstrap-carousel.mjs.map +1 -1
  22. package/fesm2022/mintplayer-ng-bootstrap-checkbox.mjs +9 -5
  23. package/fesm2022/mintplayer-ng-bootstrap-checkbox.mjs.map +1 -1
  24. package/fesm2022/mintplayer-ng-bootstrap-close.mjs +7 -3
  25. package/fesm2022/mintplayer-ng-bootstrap-close.mjs.map +1 -1
  26. package/fesm2022/mintplayer-ng-bootstrap-datatable.mjs +9 -3
  27. package/fesm2022/mintplayer-ng-bootstrap-datatable.mjs.map +1 -1
  28. package/fesm2022/mintplayer-ng-bootstrap-datepicker.mjs +4 -2
  29. package/fesm2022/mintplayer-ng-bootstrap-datepicker.mjs.map +1 -1
  30. package/fesm2022/mintplayer-ng-bootstrap-datetime-picker.mjs +4 -2
  31. package/fesm2022/mintplayer-ng-bootstrap-datetime-picker.mjs.map +1 -1
  32. package/fesm2022/mintplayer-ng-bootstrap-dropdown-divider.mjs +9 -2
  33. package/fesm2022/mintplayer-ng-bootstrap-dropdown-divider.mjs.map +1 -1
  34. package/fesm2022/mintplayer-ng-bootstrap-dropdown-menu.mjs +12 -4
  35. package/fesm2022/mintplayer-ng-bootstrap-dropdown-menu.mjs.map +1 -1
  36. package/fesm2022/mintplayer-ng-bootstrap-file-manager.mjs +3 -1
  37. package/fesm2022/mintplayer-ng-bootstrap-file-manager.mjs.map +1 -1
  38. package/fesm2022/mintplayer-ng-bootstrap-file-upload.mjs +1 -1
  39. package/fesm2022/mintplayer-ng-bootstrap-file-upload.mjs.map +1 -1
  40. package/fesm2022/mintplayer-ng-bootstrap-floating-labels.mjs +6 -2
  41. package/fesm2022/mintplayer-ng-bootstrap-floating-labels.mjs.map +1 -1
  42. package/fesm2022/mintplayer-ng-bootstrap-for.mjs +8 -4
  43. package/fesm2022/mintplayer-ng-bootstrap-for.mjs.map +1 -1
  44. package/fesm2022/mintplayer-ng-bootstrap-form.mjs +7 -2
  45. package/fesm2022/mintplayer-ng-bootstrap-form.mjs.map +1 -1
  46. package/fesm2022/mintplayer-ng-bootstrap-grid.mjs +40 -12
  47. package/fesm2022/mintplayer-ng-bootstrap-grid.mjs.map +1 -1
  48. package/fesm2022/mintplayer-ng-bootstrap-input-group.mjs +3 -1
  49. package/fesm2022/mintplayer-ng-bootstrap-input-group.mjs.map +1 -1
  50. package/fesm2022/mintplayer-ng-bootstrap-list-group.mjs +23 -6
  51. package/fesm2022/mintplayer-ng-bootstrap-list-group.mjs.map +1 -1
  52. package/fesm2022/mintplayer-ng-bootstrap-machine.mjs +16 -4
  53. package/fesm2022/mintplayer-ng-bootstrap-machine.mjs.map +1 -1
  54. package/fesm2022/mintplayer-ng-bootstrap-modal.mjs +23 -7
  55. package/fesm2022/mintplayer-ng-bootstrap-modal.mjs.map +1 -1
  56. package/fesm2022/mintplayer-ng-bootstrap-nav.mjs +93 -0
  57. package/fesm2022/mintplayer-ng-bootstrap-nav.mjs.map +1 -0
  58. package/fesm2022/mintplayer-ng-bootstrap-navbar-toggler.mjs +7 -3
  59. package/fesm2022/mintplayer-ng-bootstrap-navbar-toggler.mjs.map +1 -1
  60. package/fesm2022/mintplayer-ng-bootstrap-navbar.mjs +43 -1
  61. package/fesm2022/mintplayer-ng-bootstrap-navbar.mjs.map +1 -1
  62. package/fesm2022/mintplayer-ng-bootstrap-offcanvas.mjs +15 -6
  63. package/fesm2022/mintplayer-ng-bootstrap-offcanvas.mjs.map +1 -1
  64. package/fesm2022/mintplayer-ng-bootstrap-otp-input.mjs +4 -2
  65. package/fesm2022/mintplayer-ng-bootstrap-otp-input.mjs.map +1 -1
  66. package/fesm2022/mintplayer-ng-bootstrap-pagination.mjs +7 -4
  67. package/fesm2022/mintplayer-ng-bootstrap-pagination.mjs.map +1 -1
  68. package/fesm2022/mintplayer-ng-bootstrap-phone-input.mjs +4 -2
  69. package/fesm2022/mintplayer-ng-bootstrap-phone-input.mjs.map +1 -1
  70. package/fesm2022/mintplayer-ng-bootstrap-placeholder.mjs +22 -16
  71. package/fesm2022/mintplayer-ng-bootstrap-placeholder.mjs.map +1 -1
  72. package/fesm2022/mintplayer-ng-bootstrap-popover.mjs +22 -7
  73. package/fesm2022/mintplayer-ng-bootstrap-popover.mjs.map +1 -1
  74. package/fesm2022/mintplayer-ng-bootstrap-progress-bar.mjs +13 -6
  75. package/fesm2022/mintplayer-ng-bootstrap-progress-bar.mjs.map +1 -1
  76. package/fesm2022/mintplayer-ng-bootstrap-query-builder.mjs +4 -0
  77. package/fesm2022/mintplayer-ng-bootstrap-query-builder.mjs.map +1 -1
  78. package/fesm2022/mintplayer-ng-bootstrap-radio.mjs +9 -5
  79. package/fesm2022/mintplayer-ng-bootstrap-radio.mjs.map +1 -1
  80. package/fesm2022/mintplayer-ng-bootstrap-range.mjs +7 -3
  81. package/fesm2022/mintplayer-ng-bootstrap-range.mjs.map +1 -1
  82. package/fesm2022/mintplayer-ng-bootstrap-scheduler.mjs +2 -0
  83. package/fesm2022/mintplayer-ng-bootstrap-scheduler.mjs.map +1 -1
  84. package/fesm2022/mintplayer-ng-bootstrap-scrollspy.mjs +19 -9
  85. package/fesm2022/mintplayer-ng-bootstrap-scrollspy.mjs.map +1 -1
  86. package/fesm2022/mintplayer-ng-bootstrap-select.mjs +4 -2
  87. package/fesm2022/mintplayer-ng-bootstrap-select.mjs.map +1 -1
  88. package/fesm2022/mintplayer-ng-bootstrap-signature-pad.mjs +4 -2
  89. package/fesm2022/mintplayer-ng-bootstrap-signature-pad.mjs.map +1 -1
  90. package/fesm2022/mintplayer-ng-bootstrap-spinner.mjs +25 -11
  91. package/fesm2022/mintplayer-ng-bootstrap-spinner.mjs.map +1 -1
  92. package/fesm2022/mintplayer-ng-bootstrap-sticky-footer.mjs +14 -4
  93. package/fesm2022/mintplayer-ng-bootstrap-sticky-footer.mjs.map +1 -1
  94. package/fesm2022/mintplayer-ng-bootstrap-tab-control.mjs +3 -1
  95. package/fesm2022/mintplayer-ng-bootstrap-tab-control.mjs.map +1 -1
  96. package/fesm2022/mintplayer-ng-bootstrap-table.mjs +9 -14
  97. package/fesm2022/mintplayer-ng-bootstrap-table.mjs.map +1 -1
  98. package/fesm2022/mintplayer-ng-bootstrap-timepicker.mjs +5 -2
  99. package/fesm2022/mintplayer-ng-bootstrap-timepicker.mjs.map +1 -1
  100. package/fesm2022/mintplayer-ng-bootstrap-toast.mjs +23 -8
  101. package/fesm2022/mintplayer-ng-bootstrap-toast.mjs.map +1 -1
  102. package/fesm2022/mintplayer-ng-bootstrap-tooltip.mjs +7 -3
  103. package/fesm2022/mintplayer-ng-bootstrap-tooltip.mjs.map +1 -1
  104. package/fesm2022/mintplayer-ng-bootstrap-typeahead.mjs +4 -1
  105. package/fesm2022/mintplayer-ng-bootstrap-typeahead.mjs.map +1 -1
  106. package/nav/package.json +4 -0
  107. package/package.json +11 -8
  108. package/types/mintplayer-ng-bootstrap-a11y-forms.d.ts +64 -0
  109. package/types/mintplayer-ng-bootstrap-a11y.d.ts +2 -62
  110. package/types/mintplayer-ng-bootstrap-alert.d.ts +1 -0
  111. package/types/mintplayer-ng-bootstrap-badge.d.ts +1 -0
  112. package/types/mintplayer-ng-bootstrap-breadcrumb.d.ts +2 -0
  113. package/types/mintplayer-ng-bootstrap-button-group.d.ts +1 -0
  114. package/types/mintplayer-ng-bootstrap-card.d.ts +14 -3
  115. package/types/mintplayer-ng-bootstrap-checkbox.d.ts +1 -1
  116. package/types/mintplayer-ng-bootstrap-close.d.ts +1 -0
  117. package/types/mintplayer-ng-bootstrap-datatable.d.ts +4 -2
  118. package/types/mintplayer-ng-bootstrap-datepicker.d.ts +1 -1
  119. package/types/mintplayer-ng-bootstrap-datetime-picker.d.ts +1 -1
  120. package/types/mintplayer-ng-bootstrap-dropdown-divider.d.ts +1 -0
  121. package/types/mintplayer-ng-bootstrap-for.d.ts +5 -5
  122. package/types/mintplayer-ng-bootstrap-form.d.ts +1 -0
  123. package/types/mintplayer-ng-bootstrap-grid.d.ts +14 -0
  124. package/types/mintplayer-ng-bootstrap-list-group.d.ts +15 -8
  125. package/types/mintplayer-ng-bootstrap-machine.d.ts +13 -2
  126. package/types/mintplayer-ng-bootstrap-modal.d.ts +2 -0
  127. package/types/mintplayer-ng-bootstrap-nav.d.ts +52 -0
  128. package/types/mintplayer-ng-bootstrap-navbar-toggler.d.ts +1 -0
  129. package/types/mintplayer-ng-bootstrap-navbar.d.ts +17 -1
  130. package/types/mintplayer-ng-bootstrap-otp-input.d.ts +1 -1
  131. package/types/mintplayer-ng-bootstrap-pagination.d.ts +1 -0
  132. package/types/mintplayer-ng-bootstrap-phone-input.d.ts +1 -1
  133. package/types/mintplayer-ng-bootstrap-placeholder.d.ts +10 -10
  134. package/types/mintplayer-ng-bootstrap-popover.d.ts +3 -0
  135. package/types/mintplayer-ng-bootstrap-progress-bar.d.ts +2 -0
  136. package/types/mintplayer-ng-bootstrap-radio.d.ts +1 -1
  137. package/types/mintplayer-ng-bootstrap-range.d.ts +1 -0
  138. package/types/mintplayer-ng-bootstrap-scrollspy.d.ts +1 -0
  139. package/types/mintplayer-ng-bootstrap-select.d.ts +1 -1
  140. package/types/mintplayer-ng-bootstrap-signature-pad.d.ts +1 -1
  141. package/types/mintplayer-ng-bootstrap-spinner.d.ts +14 -7
  142. package/types/mintplayer-ng-bootstrap-sticky-footer.d.ts +7 -1
  143. package/types/mintplayer-ng-bootstrap-table.d.ts +2 -6
  144. package/types/mintplayer-ng-bootstrap-timepicker.d.ts +1 -1
  145. package/types/mintplayer-ng-bootstrap-toast.d.ts +2 -0
  146. package/container/package.json +0 -4
  147. package/fesm2022/mintplayer-ng-bootstrap-container.mjs +0 -18
  148. package/fesm2022/mintplayer-ng-bootstrap-container.mjs.map +0 -1
  149. package/types/mintplayer-ng-bootstrap-container.d.ts +0 -8
@@ -1 +1 @@
1
- {"version":3,"file":"mintplayer-ng-bootstrap-placeholder.mjs","sources":["../../../../libs/mintplayer-ng-bootstrap/placeholder/src/placeholder/placeholder.component.ts","../../../../libs/mintplayer-ng-bootstrap/placeholder/src/placeholder/placeholder.component.html","../../../../libs/mintplayer-ng-bootstrap/placeholder/src/placeholder-field/placeholder-field.directive.ts","../../../../libs/mintplayer-ng-bootstrap/placeholder/mintplayer-ng-bootstrap-placeholder.ts"],"sourcesContent":["import { ChangeDetectionStrategy, Component, effect, inject, input, model } from '@angular/core';\nimport { BsLiveAnnouncerService } from '@mintplayer/ng-bootstrap/a11y';\n\n@Component({\n selector: 'bs-placeholder',\n templateUrl: './placeholder.component.html',\n styleUrls: ['./placeholder.component.scss'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n '[attr.aria-busy]': 'isLoading() ? \"true\" : null',\n },\n})\nexport class BsPlaceholderComponent {\n private announcer = inject(BsLiveAnnouncerService);\n\n isLoading = model<boolean>(false);\n loadingCompleteText = input<string>('Loading complete');\n\n private wasLoading = false;\n\n constructor() {\n effect(() => {\n const isLoading = this.isLoading();\n if (this.wasLoading && !isLoading) {\n this.announcer.announce(this.loadingCompleteText());\n }\n this.wasLoading = isLoading;\n });\n }\n}\n","<!-- The skeleton is pure decoration: aria-hidden keeps SRs from reading\n shimmering placeholder bars as content. aria-busy on the host (plus the\n announcer's completion message) is the semantic channel — never a\n subtree-wide aria-live, which would announce every skeleton mutation. -->\n<div class=\"placeholder-glow\" aria-hidden=\"true\">\n <ng-content></ng-content>\n</div>","import { Directive, effect, inject } from '@angular/core';\nimport { BsPlaceholderComponent } from '../placeholder/placeholder.component';\n\n@Directive({\n selector: '[bsPlaceholderField]',\n host: {\n '[attr.innerHtml]': 'html',\n '[style.min-width.px]': '80',\n '[style.margin-bottom.px]': 'marginBottom',\n '[class.placeholder]': 'placeholderClass',\n },\n})\nexport class BsPlaceholderFieldDirective {\n private placeholder = inject(BsPlaceholderComponent);\n\n constructor() {\n effect(() => {\n const isLoading = this.placeholder.isLoading();\n this.placeholderClass = isLoading;\n this.marginBottom = isLoading ? -1 : 0;\n this.html = isLoading ? '&nbsp;' : undefined;\n });\n }\n\n html?: string = undefined;\n marginBottom = 0;\n placeholderClass = true;\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;MAYa,sBAAsB,CAAA;AAQjC,IAAA,WAAA,GAAA;AAPQ,QAAA,IAAA,CAAA,SAAS,GAAG,MAAM,CAAC,sBAAsB,CAAC;QAElD,IAAA,CAAA,SAAS,GAAG,KAAK,CAA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AAY,GAAG,CAAC;QAChB,IAAA,CAAA,gBAAgB,GAAG,IAAI;QAVrB,MAAM,CAAC,MAAK;YACV,MAAM,SAAS,GAAG,IAAI,CAAC,WAAW,CAAC,SAAS,EAAE;AAC9C,YAAA,IAAI,CAAC,gBAAgB,GAAG,SAAS;AACjC,YAAA,IAAI,CAAC,YAAY,GAAG,SAAS,GAAG,CAAC,CAAC,GAAG,CAAC;AACtC,YAAA,IAAI,CAAC,IAAI,GAAG,SAAS,GAAG,QAAQ,GAAG,SAAS;AAC9C,QAAA,CAAC,CAAC;IACJ;8GAVW,2BAA2B,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;kGAA3B,2BAA2B,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,sBAAA,EAAA,IAAA,EAAA,EAAA,UAAA,EAAA,EAAA,gBAAA,EAAA,MAAA,EAAA,oBAAA,EAAA,IAAA,EAAA,wBAAA,EAAA,cAAA,EAAA,mBAAA,EAAA,kBAAA,EAAA,EAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA,CAAA;;2FAA3B,2BAA2B,EAAA,UAAA,EAAA,CAAA;kBATvC,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACT,oBAAA,QAAQ,EAAE,sBAAsB;AAChC,oBAAA,IAAI,EAAE;AACJ,wBAAA,kBAAkB,EAAE,MAAM;AAC1B,wBAAA,sBAAsB,EAAE,IAAI;AAC5B,wBAAA,0BAA0B,EAAE,cAAc;AAC1C,wBAAA,qBAAqB,EAAE,kBAAkB;AAC1C,qBAAA;AACF,iBAAA;;;ACXD;;AAEG;;;;"}
1
+ {"version":3,"file":"mintplayer-ng-bootstrap-placeholder.mjs","sources":["../../../../libs/mintplayer-ng-bootstrap/placeholder/src/placeholder/placeholder.component.ts","../../../../libs/mintplayer-ng-bootstrap/placeholder/src/placeholder/placeholder.component.html","../../../../libs/mintplayer-ng-bootstrap/placeholder/src/placeholder-field/placeholder-field.directive.ts","../../../../libs/mintplayer-ng-bootstrap/placeholder/mintplayer-ng-bootstrap-placeholder.ts"],"sourcesContent":["import { ChangeDetectionStrategy, Component, effect, inject, input, model } from '@angular/core';\nimport { useBootstrap } from '@mintplayer/ng-bootstrap/machine';\nimport { bootstrapPlaceholders } from '@mintplayer/ui-core/bootstrap/placeholders';\nimport { BsLiveAnnouncerService } from '@mintplayer/ng-bootstrap/a11y';\n\n@Component({\n selector: 'bs-placeholder',\n templateUrl: './placeholder.component.html',\n styleUrls: ['./placeholder.component.scss'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n '[attr.aria-busy]': 'isLoading() ? \"true\" : null',\n },\n})\nexport class BsPlaceholderComponent {\n private announcer = inject(BsLiveAnnouncerService);\n\n isLoading = model<boolean>(false);\n loadingCompleteText = input<string>('Loading complete');\n\n private wasLoading = false;\n\n constructor() {\n // #452: the placeholders partial ships with this component, scoped to the elements it stamps (data-mps=\"placeholder\").\n useBootstrap(bootstrapPlaceholders);\n effect(() => {\n const isLoading = this.isLoading();\n if (this.wasLoading && !isLoading) {\n this.announcer.announce(this.loadingCompleteText());\n }\n this.wasLoading = isLoading;\n });\n }\n}\n","<!-- The skeleton is pure decoration: aria-hidden keeps SRs from reading\n shimmering placeholder bars as content. aria-busy on the host (plus the\n announcer's completion message) is the semantic channel — never a\n subtree-wide aria-live, which would announce every skeleton mutation. -->\n<div data-mps=\"placeholder\" class=\"placeholder-glow\" aria-hidden=\"true\">\n <ng-content></ng-content>\n</div>","import { computed, Directive, inject } from '@angular/core';\nimport { useBootstrap } from '@mintplayer/ng-bootstrap/machine';\nimport { bootstrapPlaceholders } from '@mintplayer/ui-core/bootstrap/placeholders';\nimport { BsPlaceholderComponent } from '../placeholder/placeholder.component';\n\n@Directive({\n selector: '[bsPlaceholderField]',\n host: {\n '[attr.data-mps]': '\"placeholder\"',\n '[attr.innerHtml]': 'html()',\n '[style.min-width.px]': '80',\n '[style.margin-bottom.px]': 'marginBottom()',\n '[class.placeholder]': 'isLoading()',\n },\n})\nexport class BsPlaceholderFieldDirective {\n private placeholder = inject(BsPlaceholderComponent);\n\n constructor() {\n // #452: the placeholders partial ships with this component, scoped to the elements it stamps (data-mps=\"placeholder\").\n useBootstrap(bootstrapPlaceholders);\n }\n\n // Derived, not copied from an effect into plain fields: a host binding re-renders\n // only when a signal it reads changes (zoneless).\n protected readonly isLoading = computed(() => this.placeholder.isLoading());\n protected readonly marginBottom = computed(() => (this.isLoading() ? -1 : 0));\n protected readonly html = computed(() => (this.isLoading() ? '&nbsp;' : undefined));\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;MAca,sBAAsB,CAAA;AAQjC,IAAA,WAAA,GAAA;AAPQ,QAAA,IAAA,CAAA,SAAS,GAAG,MAAM,CAAC,sBAAsB,CAAC;QAElD,IAAA,CAAA,SAAS,GAAG,KAAK,CAAU,KAAK;sFAAC;QACjC,IAAA,CAAA,mBAAmB,GAAG,KAAK,CAAS,kBAAkB;gGAAC;QAE/C,IAAA,CAAA,UAAU,GAAG,KAAK;;QAIxB,YAAY,CAAC,qBAAqB,CAAC;QACnC,MAAM,CAAC,MAAK;AACV,YAAA,MAAM,SAAS,GAAG,IAAI,CAAC,SAAS,EAAE;AAClC,YAAA,IAAI,IAAI,CAAC,UAAU,IAAI,CAAC,SAAS,EAAE;gBACjC,IAAI,CAAC,SAAS,CAAC,QAAQ,CAAC,IAAI,CAAC,mBAAmB,EAAE,CAAC;YACrD;AACA,YAAA,IAAI,CAAC,UAAU,GAAG,SAAS;AAC7B,QAAA,CAAC,CAAC;IACJ;8GAlBW,sBAAsB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;AAAtB,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,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,wBAAA,EAAA,gBAAA,EAAA,mBAAA,EAAA,aAAA,EAAA,EAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA,CAAA;;2FAA3B,2BAA2B,EAAA,UAAA,EAAA,CAAA;kBAVvC,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACT,oBAAA,QAAQ,EAAE,sBAAsB;AAChC,oBAAA,IAAI,EAAE;AACJ,wBAAA,iBAAiB,EAAE,eAAe;AAClC,wBAAA,kBAAkB,EAAE,QAAQ;AAC5B,wBAAA,sBAAsB,EAAE,IAAI;AAC5B,wBAAA,0BAA0B,EAAE,gBAAgB;AAC5C,wBAAA,qBAAqB,EAAE,aAAa;AACrC,qBAAA;AACF,iBAAA;;;ACdD;;AAEG;;;;"}
@@ -1,6 +1,9 @@
1
1
  import { NgTemplateOutlet } from '@angular/common';
2
2
  import * as i0 from '@angular/core';
3
3
  import { InjectionToken, signal, Injectable, inject, Injector, input, computed, ChangeDetectionStrategy, Component, TemplateRef, ElementRef, effect, Directive } from '@angular/core';
4
+ import { useBootstrap } from '@mintplayer/ng-bootstrap/machine';
5
+ import { bootstrapPopover } from '@mintplayer/ui-core/bootstrap/popover';
6
+ import { bootstrapTransitions } from '@mintplayer/ui-core/bootstrap/transitions';
4
7
  import { FadeInOutAnimation } from '@mintplayer/ng-animations';
5
8
  import { BsOverlayFocusDirective, BsIdService, BsOverlayStackService } from '@mintplayer/ng-bootstrap/a11y';
6
9
  import { BsHasOverlayComponent } from '@mintplayer/ng-bootstrap/has-overlay';
@@ -52,16 +55,18 @@ class BsPopoverComponent {
52
55
  ...(ngDevMode ? [{ debugName: "marginClass" }] : /* istanbul ignore next */ []));
53
56
  this.positionClass = computed(() => `bs-popover-${this.position()}`, /* @ts-ignore */
54
57
  ...(ngDevMode ? [{ debugName: "positionClass" }] : /* istanbul ignore next */ []));
58
+ // #452: the popover and transitions partials ship with this component, scoped to the elements it stamps (data-mps="popover").
59
+ useBootstrap(bootstrapPopover, bootstrapTransitions);
55
60
  }
56
61
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsPopoverComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
57
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.8", type: BsPopoverComponent, isStandalone: true, selector: "bs-popover", inputs: { position: { classPropertyName: "position", publicName: "position", isSignal: true, isRequired: false, transformFunction: null }, isVisible: { classPropertyName: "isVisible", publicName: "isVisible", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class.position-relative": "true" } }, providers: [BsPopoverContextService], ngImport: i0, template: "@if (isVisible()) {\n <div class=\"popover position-relative fade show\"\n role=\"dialog\"\n [bsOverlayFocus]=\"isVisible()\"\n tabindex=\"-1\"\n [id]=\"popoverId\"\n [attr.aria-labelledby]=\"context.headerId()\"\n [attr.aria-describedby]=\"context.bodyId()\"\n [class]=\"[marginClass(), positionClass()]\"\n [@fadeInOut]>\n <ng-container *ngTemplateOutlet=\"template; injector: injector\"></ng-container>\n <div class=\"popover-arrow position-absolute\" aria-hidden=\"true\"></div>\n <bs-has-overlay></bs-has-overlay>\n </div>\n}\n", styles: [":host ::ng-deep .fade{transition:opacity .15s linear}@media(prefers-reduced-motion:reduce){:host ::ng-deep .fade{transition:none}}:host ::ng-deep .fade:not(.show){opacity:0}:host ::ng-deep .collapse:not(.show){display:none}:host ::ng-deep .collapsing{height:0;overflow:hidden;transition:height .35s ease}@media(prefers-reduced-motion:reduce){:host ::ng-deep .collapsing{transition:none}}:host ::ng-deep .collapsing.collapse-horizontal{width:0;height:auto;transition:width .35s ease}@media(prefers-reduced-motion:reduce){:host ::ng-deep .collapsing.collapse-horizontal{transition:none}}:host ::ng-deep .popover{--bs-popover-zindex: 1070;--bs-popover-max-width: 276px;--bs-popover-font-size: .875rem;--bs-popover-bg: var(--bs-body-bg);--bs-popover-border-width: var(--bs-border-width);--bs-popover-border-color: var(--bs-border-color-translucent);--bs-popover-border-radius: var(--bs-border-radius-lg);--bs-popover-inner-border-radius: calc(var(--bs-border-radius-lg) - var(--bs-border-width));--bs-popover-box-shadow: var(--bs-box-shadow);--bs-popover-header-padding-x: 1rem;--bs-popover-header-padding-y: .5rem;--bs-popover-header-font-size: 1rem;--bs-popover-header-color: inherit;--bs-popover-header-bg: var(--bs-secondary-bg);--bs-popover-body-padding-x: 1rem;--bs-popover-body-padding-y: 1rem;--bs-popover-body-color: var(--bs-body-color);--bs-popover-arrow-width: 1rem;--bs-popover-arrow-height: .5rem;--bs-popover-arrow-border: var(--bs-popover-border-color);z-index:var(--bs-popover-zindex);display:block;max-width:var(--bs-popover-max-width);font-family:var(--bs-font-sans-serif);font-style:normal;font-weight:400;line-height:1.5;text-align:left;text-align:start;text-decoration:none;text-shadow:none;text-transform:none;letter-spacing:normal;word-break:normal;white-space:normal;word-spacing:normal;line-break:auto;font-size:var(--bs-popover-font-size);word-wrap:break-word;background-color:var(--bs-popover-bg);background-clip:padding-box;border:var(--bs-popover-border-width) solid var(--bs-popover-border-color);border-radius:var(--bs-popover-border-radius)}:host ::ng-deep .popover .popover-arrow{display:block;width:var(--bs-popover-arrow-width);height:var(--bs-popover-arrow-height)}:host ::ng-deep .popover .popover-arrow:before,:host ::ng-deep .popover .popover-arrow:after{position:absolute;display:block;content:\"\";border-color:transparent;border-style:solid;border-width:0}:host ::ng-deep .bs-popover-top>.popover-arrow,:host ::ng-deep .bs-popover-auto[data-popper-placement^=top]>.popover-arrow{bottom:calc(-1 * (var(--bs-popover-arrow-height)) - var(--bs-popover-border-width))}:host ::ng-deep .bs-popover-top>.popover-arrow:before,:host ::ng-deep .bs-popover-auto[data-popper-placement^=top]>.popover-arrow:before,:host ::ng-deep .bs-popover-top>.popover-arrow:after,:host ::ng-deep .bs-popover-auto[data-popper-placement^=top]>.popover-arrow:after{border-width:var(--bs-popover-arrow-height) calc(var(--bs-popover-arrow-width) * .5) 0}:host ::ng-deep .bs-popover-top>.popover-arrow:before,:host ::ng-deep .bs-popover-auto[data-popper-placement^=top]>.popover-arrow:before{bottom:0;border-top-color:var(--bs-popover-arrow-border)}:host ::ng-deep .bs-popover-top>.popover-arrow:after,:host ::ng-deep .bs-popover-auto[data-popper-placement^=top]>.popover-arrow:after{bottom:var(--bs-popover-border-width);border-top-color:var(--bs-popover-bg)}:host ::ng-deep .bs-popover-end>.popover-arrow,:host ::ng-deep .bs-popover-auto[data-popper-placement^=right]>.popover-arrow{left:calc(-1 * (var(--bs-popover-arrow-height)) - var(--bs-popover-border-width));width:var(--bs-popover-arrow-height);height:var(--bs-popover-arrow-width)}:host ::ng-deep .bs-popover-end>.popover-arrow:before,:host ::ng-deep .bs-popover-auto[data-popper-placement^=right]>.popover-arrow:before,:host ::ng-deep .bs-popover-end>.popover-arrow:after,:host ::ng-deep .bs-popover-auto[data-popper-placement^=right]>.popover-arrow:after{border-width:calc(var(--bs-popover-arrow-width) * .5) var(--bs-popover-arrow-height) calc(var(--bs-popover-arrow-width) * .5) 0}:host ::ng-deep .bs-popover-end>.popover-arrow:before,:host ::ng-deep .bs-popover-auto[data-popper-placement^=right]>.popover-arrow:before{left:0;border-right-color:var(--bs-popover-arrow-border)}:host ::ng-deep .bs-popover-end>.popover-arrow:after,:host ::ng-deep .bs-popover-auto[data-popper-placement^=right]>.popover-arrow:after{left:var(--bs-popover-border-width);border-right-color:var(--bs-popover-bg)}:host ::ng-deep .bs-popover-bottom>.popover-arrow,:host ::ng-deep .bs-popover-auto[data-popper-placement^=bottom]>.popover-arrow{top:calc(-1 * (var(--bs-popover-arrow-height)) - var(--bs-popover-border-width))}:host ::ng-deep .bs-popover-bottom>.popover-arrow:before,:host ::ng-deep .bs-popover-auto[data-popper-placement^=bottom]>.popover-arrow:before,:host ::ng-deep .bs-popover-bottom>.popover-arrow:after,:host ::ng-deep .bs-popover-auto[data-popper-placement^=bottom]>.popover-arrow:after{border-width:0 calc(var(--bs-popover-arrow-width) * .5) var(--bs-popover-arrow-height)}:host ::ng-deep .bs-popover-bottom>.popover-arrow:before,:host ::ng-deep .bs-popover-auto[data-popper-placement^=bottom]>.popover-arrow:before{top:0;border-bottom-color:var(--bs-popover-arrow-border)}:host ::ng-deep .bs-popover-bottom>.popover-arrow:after,:host ::ng-deep .bs-popover-auto[data-popper-placement^=bottom]>.popover-arrow:after{top:var(--bs-popover-border-width);border-bottom-color:var(--bs-popover-bg)}:host ::ng-deep .bs-popover-bottom .popover-header:before,:host ::ng-deep .bs-popover-auto[data-popper-placement^=bottom] .popover-header:before{position:absolute;top:0;left:50%;display:block;width:var(--bs-popover-arrow-width);margin-left:calc(-.5 * var(--bs-popover-arrow-width));content:\"\";border-bottom:var(--bs-popover-border-width) solid var(--bs-popover-header-bg)}:host ::ng-deep .bs-popover-start>.popover-arrow,:host ::ng-deep .bs-popover-auto[data-popper-placement^=left]>.popover-arrow{right:calc(-1 * (var(--bs-popover-arrow-height)) - var(--bs-popover-border-width));width:var(--bs-popover-arrow-height);height:var(--bs-popover-arrow-width)}:host ::ng-deep .bs-popover-start>.popover-arrow:before,:host ::ng-deep .bs-popover-auto[data-popper-placement^=left]>.popover-arrow:before,:host ::ng-deep .bs-popover-start>.popover-arrow:after,:host ::ng-deep .bs-popover-auto[data-popper-placement^=left]>.popover-arrow:after{border-width:calc(var(--bs-popover-arrow-width) * .5) 0 calc(var(--bs-popover-arrow-width) * .5) var(--bs-popover-arrow-height)}:host ::ng-deep .bs-popover-start>.popover-arrow:before,:host ::ng-deep .bs-popover-auto[data-popper-placement^=left]>.popover-arrow:before{right:0;border-left-color:var(--bs-popover-arrow-border)}:host ::ng-deep .bs-popover-start>.popover-arrow:after,:host ::ng-deep .bs-popover-auto[data-popper-placement^=left]>.popover-arrow:after{right:var(--bs-popover-border-width);border-left-color:var(--bs-popover-bg)}:host ::ng-deep .popover-header{padding:var(--bs-popover-header-padding-y) var(--bs-popover-header-padding-x);margin-bottom:0;font-size:var(--bs-popover-header-font-size);color:var(--bs-popover-header-color);background-color:var(--bs-popover-header-bg);border-bottom:var(--bs-popover-border-width) solid var(--bs-popover-border-color);border-top-left-radius:var(--bs-popover-inner-border-radius);border-top-right-radius:var(--bs-popover-inner-border-radius)}:host ::ng-deep .popover-header:empty{display:none}:host ::ng-deep .popover-body{padding:var(--bs-popover-body-padding-y) var(--bs-popover-body-padding-x);color:var(--bs-popover-body-color)}.popover.bs-popover-top>.popover-arrow,:host ::ng-deep .popover.bs-popover-auto[data-popper-placement^=top]>.popover-arrow,.popover.bs-popover-bottom>.popover-arrow,:host ::ng-deep .popover.bs-popover-auto[data-popper-placement^=bottom]>.popover-arrow{left:50%;transform:translate(-50%)}.popover.bs-popover-start>.popover-arrow,:host ::ng-deep .popover.bs-popover-auto[data-popper-placement^=left]>.popover-arrow,.popover.bs-popover-end>.popover-arrow,:host ::ng-deep .popover.bs-popover-auto[data-popper-placement^=right]>.popover-arrow{top:50%;transform:translateY(-50%)}.popover:not(.show){pointer-events:none}\n"], dependencies: [{ kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: BsHasOverlayComponent, selector: "bs-has-overlay" }, { kind: "directive", type: BsOverlayFocusDirective, selector: "[bsOverlayFocus]", inputs: ["bsOverlayFocus", "initialFocus", "returnFocus"], exportAs: ["bsOverlayFocus"] }], animations: [FadeInOutAnimation], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
62
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.8", type: BsPopoverComponent, isStandalone: true, selector: "bs-popover", inputs: { position: { classPropertyName: "position", publicName: "position", isSignal: true, isRequired: false, transformFunction: null }, isVisible: { classPropertyName: "isVisible", publicName: "isVisible", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class.position-relative": "true" } }, providers: [BsPopoverContextService], ngImport: i0, template: "@if (isVisible()) {\n <div data-mps=\"popover\" class=\"popover position-relative fade show\"\n role=\"dialog\"\n [bsOverlayFocus]=\"isVisible()\"\n tabindex=\"-1\"\n [id]=\"popoverId\"\n [attr.aria-labelledby]=\"context.headerId()\"\n [attr.aria-describedby]=\"context.bodyId()\"\n [class]=\"[marginClass(), positionClass()]\"\n [@fadeInOut]>\n <ng-container *ngTemplateOutlet=\"template; injector: injector\"></ng-container>\n <div data-mps=\"popover\" class=\"popover-arrow position-absolute\" aria-hidden=\"true\"></div>\n <bs-has-overlay></bs-has-overlay>\n </div>\n}\n", styles: [".popover.bs-popover-top>.popover-arrow,.popover.bs-popover-bottom>.popover-arrow{left:50%;transform:translate(-50%)}.popover.bs-popover-start>.popover-arrow,.popover.bs-popover-end>.popover-arrow{top:50%;transform:translateY(-50%)}.popover:not(.show){pointer-events:none}\n"], dependencies: [{ kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: BsHasOverlayComponent, selector: "bs-has-overlay" }, { kind: "directive", type: BsOverlayFocusDirective, selector: "[bsOverlayFocus]", inputs: ["bsOverlayFocus", "initialFocus", "returnFocus"], exportAs: ["bsOverlayFocus"] }], animations: [FadeInOutAnimation], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
58
63
  }
59
64
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsPopoverComponent, decorators: [{
60
65
  type: Component,
61
66
  args: [{ selector: 'bs-popover', imports: [NgTemplateOutlet, BsHasOverlayComponent, BsOverlayFocusDirective], animations: [FadeInOutAnimation], changeDetection: ChangeDetectionStrategy.OnPush, providers: [BsPopoverContextService], host: {
62
67
  '[class.position-relative]': 'true',
63
- }, template: "@if (isVisible()) {\n <div class=\"popover position-relative fade show\"\n role=\"dialog\"\n [bsOverlayFocus]=\"isVisible()\"\n tabindex=\"-1\"\n [id]=\"popoverId\"\n [attr.aria-labelledby]=\"context.headerId()\"\n [attr.aria-describedby]=\"context.bodyId()\"\n [class]=\"[marginClass(), positionClass()]\"\n [@fadeInOut]>\n <ng-container *ngTemplateOutlet=\"template; injector: injector\"></ng-container>\n <div class=\"popover-arrow position-absolute\" aria-hidden=\"true\"></div>\n <bs-has-overlay></bs-has-overlay>\n </div>\n}\n", styles: [":host ::ng-deep .fade{transition:opacity .15s linear}@media(prefers-reduced-motion:reduce){:host ::ng-deep .fade{transition:none}}:host ::ng-deep .fade:not(.show){opacity:0}:host ::ng-deep .collapse:not(.show){display:none}:host ::ng-deep .collapsing{height:0;overflow:hidden;transition:height .35s ease}@media(prefers-reduced-motion:reduce){:host ::ng-deep .collapsing{transition:none}}:host ::ng-deep .collapsing.collapse-horizontal{width:0;height:auto;transition:width .35s ease}@media(prefers-reduced-motion:reduce){:host ::ng-deep .collapsing.collapse-horizontal{transition:none}}:host ::ng-deep .popover{--bs-popover-zindex: 1070;--bs-popover-max-width: 276px;--bs-popover-font-size: .875rem;--bs-popover-bg: var(--bs-body-bg);--bs-popover-border-width: var(--bs-border-width);--bs-popover-border-color: var(--bs-border-color-translucent);--bs-popover-border-radius: var(--bs-border-radius-lg);--bs-popover-inner-border-radius: calc(var(--bs-border-radius-lg) - var(--bs-border-width));--bs-popover-box-shadow: var(--bs-box-shadow);--bs-popover-header-padding-x: 1rem;--bs-popover-header-padding-y: .5rem;--bs-popover-header-font-size: 1rem;--bs-popover-header-color: inherit;--bs-popover-header-bg: var(--bs-secondary-bg);--bs-popover-body-padding-x: 1rem;--bs-popover-body-padding-y: 1rem;--bs-popover-body-color: var(--bs-body-color);--bs-popover-arrow-width: 1rem;--bs-popover-arrow-height: .5rem;--bs-popover-arrow-border: var(--bs-popover-border-color);z-index:var(--bs-popover-zindex);display:block;max-width:var(--bs-popover-max-width);font-family:var(--bs-font-sans-serif);font-style:normal;font-weight:400;line-height:1.5;text-align:left;text-align:start;text-decoration:none;text-shadow:none;text-transform:none;letter-spacing:normal;word-break:normal;white-space:normal;word-spacing:normal;line-break:auto;font-size:var(--bs-popover-font-size);word-wrap:break-word;background-color:var(--bs-popover-bg);background-clip:padding-box;border:var(--bs-popover-border-width) solid var(--bs-popover-border-color);border-radius:var(--bs-popover-border-radius)}:host ::ng-deep .popover .popover-arrow{display:block;width:var(--bs-popover-arrow-width);height:var(--bs-popover-arrow-height)}:host ::ng-deep .popover .popover-arrow:before,:host ::ng-deep .popover .popover-arrow:after{position:absolute;display:block;content:\"\";border-color:transparent;border-style:solid;border-width:0}:host ::ng-deep .bs-popover-top>.popover-arrow,:host ::ng-deep .bs-popover-auto[data-popper-placement^=top]>.popover-arrow{bottom:calc(-1 * (var(--bs-popover-arrow-height)) - var(--bs-popover-border-width))}:host ::ng-deep .bs-popover-top>.popover-arrow:before,:host ::ng-deep .bs-popover-auto[data-popper-placement^=top]>.popover-arrow:before,:host ::ng-deep .bs-popover-top>.popover-arrow:after,:host ::ng-deep .bs-popover-auto[data-popper-placement^=top]>.popover-arrow:after{border-width:var(--bs-popover-arrow-height) calc(var(--bs-popover-arrow-width) * .5) 0}:host ::ng-deep .bs-popover-top>.popover-arrow:before,:host ::ng-deep .bs-popover-auto[data-popper-placement^=top]>.popover-arrow:before{bottom:0;border-top-color:var(--bs-popover-arrow-border)}:host ::ng-deep .bs-popover-top>.popover-arrow:after,:host ::ng-deep .bs-popover-auto[data-popper-placement^=top]>.popover-arrow:after{bottom:var(--bs-popover-border-width);border-top-color:var(--bs-popover-bg)}:host ::ng-deep .bs-popover-end>.popover-arrow,:host ::ng-deep .bs-popover-auto[data-popper-placement^=right]>.popover-arrow{left:calc(-1 * (var(--bs-popover-arrow-height)) - var(--bs-popover-border-width));width:var(--bs-popover-arrow-height);height:var(--bs-popover-arrow-width)}:host ::ng-deep .bs-popover-end>.popover-arrow:before,:host ::ng-deep .bs-popover-auto[data-popper-placement^=right]>.popover-arrow:before,:host ::ng-deep .bs-popover-end>.popover-arrow:after,:host ::ng-deep .bs-popover-auto[data-popper-placement^=right]>.popover-arrow:after{border-width:calc(var(--bs-popover-arrow-width) * .5) var(--bs-popover-arrow-height) calc(var(--bs-popover-arrow-width) * .5) 0}:host ::ng-deep .bs-popover-end>.popover-arrow:before,:host ::ng-deep .bs-popover-auto[data-popper-placement^=right]>.popover-arrow:before{left:0;border-right-color:var(--bs-popover-arrow-border)}:host ::ng-deep .bs-popover-end>.popover-arrow:after,:host ::ng-deep .bs-popover-auto[data-popper-placement^=right]>.popover-arrow:after{left:var(--bs-popover-border-width);border-right-color:var(--bs-popover-bg)}:host ::ng-deep .bs-popover-bottom>.popover-arrow,:host ::ng-deep .bs-popover-auto[data-popper-placement^=bottom]>.popover-arrow{top:calc(-1 * (var(--bs-popover-arrow-height)) - var(--bs-popover-border-width))}:host ::ng-deep .bs-popover-bottom>.popover-arrow:before,:host ::ng-deep .bs-popover-auto[data-popper-placement^=bottom]>.popover-arrow:before,:host ::ng-deep .bs-popover-bottom>.popover-arrow:after,:host ::ng-deep .bs-popover-auto[data-popper-placement^=bottom]>.popover-arrow:after{border-width:0 calc(var(--bs-popover-arrow-width) * .5) var(--bs-popover-arrow-height)}:host ::ng-deep .bs-popover-bottom>.popover-arrow:before,:host ::ng-deep .bs-popover-auto[data-popper-placement^=bottom]>.popover-arrow:before{top:0;border-bottom-color:var(--bs-popover-arrow-border)}:host ::ng-deep .bs-popover-bottom>.popover-arrow:after,:host ::ng-deep .bs-popover-auto[data-popper-placement^=bottom]>.popover-arrow:after{top:var(--bs-popover-border-width);border-bottom-color:var(--bs-popover-bg)}:host ::ng-deep .bs-popover-bottom .popover-header:before,:host ::ng-deep .bs-popover-auto[data-popper-placement^=bottom] .popover-header:before{position:absolute;top:0;left:50%;display:block;width:var(--bs-popover-arrow-width);margin-left:calc(-.5 * var(--bs-popover-arrow-width));content:\"\";border-bottom:var(--bs-popover-border-width) solid var(--bs-popover-header-bg)}:host ::ng-deep .bs-popover-start>.popover-arrow,:host ::ng-deep .bs-popover-auto[data-popper-placement^=left]>.popover-arrow{right:calc(-1 * (var(--bs-popover-arrow-height)) - var(--bs-popover-border-width));width:var(--bs-popover-arrow-height);height:var(--bs-popover-arrow-width)}:host ::ng-deep .bs-popover-start>.popover-arrow:before,:host ::ng-deep .bs-popover-auto[data-popper-placement^=left]>.popover-arrow:before,:host ::ng-deep .bs-popover-start>.popover-arrow:after,:host ::ng-deep .bs-popover-auto[data-popper-placement^=left]>.popover-arrow:after{border-width:calc(var(--bs-popover-arrow-width) * .5) 0 calc(var(--bs-popover-arrow-width) * .5) var(--bs-popover-arrow-height)}:host ::ng-deep .bs-popover-start>.popover-arrow:before,:host ::ng-deep .bs-popover-auto[data-popper-placement^=left]>.popover-arrow:before{right:0;border-left-color:var(--bs-popover-arrow-border)}:host ::ng-deep .bs-popover-start>.popover-arrow:after,:host ::ng-deep .bs-popover-auto[data-popper-placement^=left]>.popover-arrow:after{right:var(--bs-popover-border-width);border-left-color:var(--bs-popover-bg)}:host ::ng-deep .popover-header{padding:var(--bs-popover-header-padding-y) var(--bs-popover-header-padding-x);margin-bottom:0;font-size:var(--bs-popover-header-font-size);color:var(--bs-popover-header-color);background-color:var(--bs-popover-header-bg);border-bottom:var(--bs-popover-border-width) solid var(--bs-popover-border-color);border-top-left-radius:var(--bs-popover-inner-border-radius);border-top-right-radius:var(--bs-popover-inner-border-radius)}:host ::ng-deep .popover-header:empty{display:none}:host ::ng-deep .popover-body{padding:var(--bs-popover-body-padding-y) var(--bs-popover-body-padding-x);color:var(--bs-popover-body-color)}.popover.bs-popover-top>.popover-arrow,:host ::ng-deep .popover.bs-popover-auto[data-popper-placement^=top]>.popover-arrow,.popover.bs-popover-bottom>.popover-arrow,:host ::ng-deep .popover.bs-popover-auto[data-popper-placement^=bottom]>.popover-arrow{left:50%;transform:translate(-50%)}.popover.bs-popover-start>.popover-arrow,:host ::ng-deep .popover.bs-popover-auto[data-popper-placement^=left]>.popover-arrow,.popover.bs-popover-end>.popover-arrow,:host ::ng-deep .popover.bs-popover-auto[data-popper-placement^=right]>.popover-arrow{top:50%;transform:translateY(-50%)}.popover:not(.show){pointer-events:none}\n"] }]
64
- }], propDecorators: { position: [{ type: i0.Input, args: [{ isSignal: true, alias: "position", required: false }] }], isVisible: [{ type: i0.Input, args: [{ isSignal: true, alias: "isVisible", required: false }] }] } });
68
+ }, template: "@if (isVisible()) {\n <div data-mps=\"popover\" class=\"popover position-relative fade show\"\n role=\"dialog\"\n [bsOverlayFocus]=\"isVisible()\"\n tabindex=\"-1\"\n [id]=\"popoverId\"\n [attr.aria-labelledby]=\"context.headerId()\"\n [attr.aria-describedby]=\"context.bodyId()\"\n [class]=\"[marginClass(), positionClass()]\"\n [@fadeInOut]>\n <ng-container *ngTemplateOutlet=\"template; injector: injector\"></ng-container>\n <div data-mps=\"popover\" class=\"popover-arrow position-absolute\" aria-hidden=\"true\"></div>\n <bs-has-overlay></bs-has-overlay>\n </div>\n}\n", styles: [".popover.bs-popover-top>.popover-arrow,.popover.bs-popover-bottom>.popover-arrow{left:50%;transform:translate(-50%)}.popover.bs-popover-start>.popover-arrow,.popover.bs-popover-end>.popover-arrow{top:50%;transform:translateY(-50%)}.popover:not(.show){pointer-events:none}\n"] }]
69
+ }], ctorParameters: () => [], propDecorators: { position: [{ type: i0.Input, args: [{ isSignal: true, alias: "position", required: false }] }], isVisible: [{ type: i0.Input, args: [{ isSignal: true, alias: "isVisible", required: false }] }] } });
65
70
 
66
71
  const PORTAL_FACTORY = new InjectionToken('PopoverPortalFactory');
67
72
 
@@ -240,32 +245,42 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImpor
240
245
  }], ctorParameters: () => [], propDecorators: { bsPopover: [{ type: i0.Input, args: [{ isSignal: true, alias: "bsPopover", required: false }] }], updatePosition: [{ type: i0.Input, args: [{ isSignal: true, alias: "updatePosition", required: false }] }] } });
241
246
 
242
247
  class BsPopoverBodyDirective {
248
+ constructor() {
249
+ // #452: the popover partial ships with this component, scoped to the elements it stamps (data-mps="popover").
250
+ useBootstrap(bootstrapPopover);
251
+ }
243
252
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsPopoverBodyDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
244
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.0.8", type: BsPopoverBodyDirective, isStandalone: true, selector: "[bsPopoverBody]", host: { properties: { "class.popover-body": "true" } }, ngImport: i0 }); }
253
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.0.8", type: BsPopoverBodyDirective, isStandalone: true, selector: "[bsPopoverBody]", host: { properties: { "attr.data-mps": "\"popover\"", "class.popover-body": "true" } }, ngImport: i0 }); }
245
254
  }
246
255
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsPopoverBodyDirective, decorators: [{
247
256
  type: Directive,
248
257
  args: [{
249
258
  selector: '[bsPopoverBody]',
250
259
  host: {
260
+ '[attr.data-mps]': '"popover"',
251
261
  '[class.popover-body]': 'true',
252
262
  },
253
263
  }]
254
- }] });
264
+ }], ctorParameters: () => [] });
255
265
 
256
266
  class BsPopoverHeaderDirective {
267
+ constructor() {
268
+ // #452: the popover partial ships with this component, scoped to the elements it stamps (data-mps="popover").
269
+ useBootstrap(bootstrapPopover);
270
+ }
257
271
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsPopoverHeaderDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
258
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.0.8", type: BsPopoverHeaderDirective, isStandalone: true, selector: "[bsPopoverHeader]", host: { properties: { "class.popover-header": "true" } }, ngImport: i0 }); }
272
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.0.8", type: BsPopoverHeaderDirective, isStandalone: true, selector: "[bsPopoverHeader]", host: { properties: { "attr.data-mps": "\"popover\"", "class.popover-header": "true" } }, ngImport: i0 }); }
259
273
  }
260
274
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsPopoverHeaderDirective, decorators: [{
261
275
  type: Directive,
262
276
  args: [{
263
277
  selector: '[bsPopoverHeader]',
264
278
  host: {
279
+ '[attr.data-mps]': '"popover"',
265
280
  '[class.popover-header]': 'true',
266
281
  },
267
282
  }]
268
- }] });
283
+ }], ctorParameters: () => [] });
269
284
 
270
285
  /**
271
286
  * Generated bundle index. Do not edit.
@@ -1 +1 @@
1
- {"version":3,"file":"mintplayer-ng-bootstrap-popover.mjs","sources":["../../../../libs/mintplayer-ng-bootstrap/popover/src/providers/popover-content.provider.ts","../../../../libs/mintplayer-ng-bootstrap/popover/src/providers/popover-id.provider.ts","../../../../libs/mintplayer-ng-bootstrap/popover/src/services/popover-context.service.ts","../../../../libs/mintplayer-ng-bootstrap/popover/src/component/popover.component.ts","../../../../libs/mintplayer-ng-bootstrap/popover/src/component/popover.component.html","../../../../libs/mintplayer-ng-bootstrap/popover/src/providers/portal-factory.provider.ts","../../../../libs/mintplayer-ng-bootstrap/popover/src/directives/popover/popover.directive.ts","../../../../libs/mintplayer-ng-bootstrap/popover/src/directives/popover-body/popover-body.directive.ts","../../../../libs/mintplayer-ng-bootstrap/popover/src/directives/popover-header/popover-header.directive.ts","../../../../libs/mintplayer-ng-bootstrap/popover/mintplayer-ng-bootstrap-popover.ts"],"sourcesContent":["import { InjectionToken, TemplateRef } from \"@angular/core\";\n\nexport const POPOVER_CONTENT = new InjectionToken<TemplateRef<any>>('PopoverContent');","import { InjectionToken } from '@angular/core';\n\n/** The dom id assigned to the rendered popover dialog so the trigger can point at it via aria-controls. */\nexport const POPOVER_ID = new InjectionToken<string>('POPOVER_ID');\n","import { Injectable, signal } from '@angular/core';\n\n/**\n * Component-scoped state shared between BsPopoverComponent (the dialog renderer)\n * and the bsPopoverHeader / bsPopoverBody directives applied to the user's\n * template. Provides the ids for aria-labelledby and aria-describedby.\n */\n@Injectable()\nexport class BsPopoverContextService {\n readonly headerId = signal<string | null>(null);\n readonly bodyId = signal<string | null>(null);\n}\n","import { NgTemplateOutlet } from '@angular/common';\nimport { ChangeDetectionStrategy, Component, computed, inject, Injector, input, TemplateRef } from '@angular/core';\nimport { FadeInOutAnimation } from '@mintplayer/ng-animations';\nimport { Position } from '@mintplayer/ng-bootstrap';\nimport { BsOverlayFocusDirective } from '@mintplayer/ng-bootstrap/a11y';\nimport { BsHasOverlayComponent } from '@mintplayer/ng-bootstrap/has-overlay';\nimport { POPOVER_CONTENT } from '../providers/popover-content.provider';\nimport { POPOVER_ID } from '../providers/popover-id.provider';\nimport { BsPopoverContextService } from '../services/popover-context.service';\n\n@Component({\n selector: 'bs-popover',\n templateUrl: './popover.component.html',\n styleUrls: ['./popover.component.scss'],\n imports: [NgTemplateOutlet, BsHasOverlayComponent, BsOverlayFocusDirective],\n animations: [FadeInOutAnimation],\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: [BsPopoverContextService],\n host: {\n '[class.position-relative]': 'true',\n },\n})\nexport class BsPopoverComponent {\n template = inject<TemplateRef<any>>(POPOVER_CONTENT);\n popoverId = inject(POPOVER_ID);\n context = inject(BsPopoverContextService);\n injector = inject(Injector);\n\n position = input<Position>('bottom');\n isVisible = input<boolean>(false);\n\n marginClass = computed(() => {\n switch (this.position()) {\n case 'top': return 'mb-2';\n case 'start': return 'me-2';\n case 'end': return 'ms-2';\n default: return 'mt-2';\n }\n });\n\n positionClass = computed(() => `bs-popover-${this.position()}`);\n}\n","@if (isVisible()) {\n <div class=\"popover position-relative fade show\"\n role=\"dialog\"\n [bsOverlayFocus]=\"isVisible()\"\n tabindex=\"-1\"\n [id]=\"popoverId\"\n [attr.aria-labelledby]=\"context.headerId()\"\n [attr.aria-describedby]=\"context.bodyId()\"\n [class]=\"[marginClass(), positionClass()]\"\n [@fadeInOut]>\n <ng-container *ngTemplateOutlet=\"template; injector: injector\"></ng-container>\n <div class=\"popover-arrow position-absolute\" aria-hidden=\"true\"></div>\n <bs-has-overlay></bs-has-overlay>\n </div>\n}\n","import { ComponentPortal } from \"@angular/cdk/portal\";\nimport { InjectionToken, Injector } from \"@angular/core\";\n\nexport const PORTAL_FACTORY = new InjectionToken<(injector: Injector) => ComponentPortal<any>>('PopoverPortalFactory');","import { ConnectedPosition, Overlay, OverlayRef } from '@angular/cdk/overlay';\nimport { ComponentPortal } from '@angular/cdk/portal';\nimport { Position } from '@mintplayer/ng-bootstrap';\nimport { AfterViewInit, ComponentRef, Directive, ElementRef, Host, inject, Injector, input, OnDestroy, signal, SkipSelf, TemplateRef, computed, effect } from '@angular/core';\nimport { BsIdService, BsOverlayStackService } from '@mintplayer/ng-bootstrap/a11y';\nimport { BsPopoverComponent } from '../../component/popover.component';\nimport { POPOVER_CONTENT } from '../../providers/popover-content.provider';\nimport { POPOVER_ID } from '../../providers/popover-id.provider';\nimport { PORTAL_FACTORY } from '../../providers/portal-factory.provider';\n\n@Directive({\n selector: '*[bsPopover]',\n providers: [{\n provide: PORTAL_FACTORY,\n useValue: (injector: Injector) => {\n return new ComponentPortal(BsPopoverComponent, null, injector);\n }\n }],\n host: {\n '(document:keydown.escape)': 'onEscape()',\n },\n})\nexport class BsPopoverDirective implements AfterViewInit, OnDestroy {\n\n private overlay = inject(Overlay);\n private templateRef = inject(TemplateRef<any>);\n private parentInjector = inject(Injector);\n private portalFactory = inject(PORTAL_FACTORY);\n private parent = inject(ElementRef, { host: true, skipSelf: true });\n private ids = inject(BsIdService);\n private overlayStack = inject(BsOverlayStackService);\n private readonly popoverId = this.ids.next('bs-popover');\n private stackToken: symbol | null = null;\n\n bsPopover = input<Position>('bottom');\n updatePosition = input(false);\n\n private localInjector: Injector | null = null;\n private portal: ComponentPortal<any> | null = null;\n private overlayRef: OverlayRef | null = null;\n private component: ComponentRef<BsPopoverComponent> | null = null;\n isVisible = signal<boolean>(false);\n\n connectedPosition = computed<ConnectedPosition>(() => {\n const position = this.bsPopover();\n switch (position) {\n case 'top':\n return {\n originX: \"center\",\n originY: \"top\",\n overlayX: \"center\",\n overlayY: \"bottom\"\n };\n case 'start':\n return {\n originX: \"start\",\n originY: \"center\",\n overlayX: \"end\",\n overlayY: \"center\",\n };\n case 'end':\n return {\n originX: \"end\",\n originY: \"center\",\n overlayX: \"start\",\n overlayY: \"center\"\n };\n default:\n return {\n originX: \"center\",\n originY: \"bottom\",\n overlayX: \"center\",\n overlayY: \"top\"\n };\n }\n });\n\n constructor() {\n effect(() => {\n const position = this.bsPopover();\n if (this.component) {\n this.component.setInput('position', position);\n }\n });\n\n effect(() => {\n const isVisible = this.isVisible();\n if (this.component) {\n this.component.setInput('isVisible', isVisible);\n }\n this.parent.nativeElement.setAttribute('aria-expanded', isVisible ? 'true' : 'false');\n\n if (isVisible && this.stackToken === null) {\n this.stackToken = this.overlayStack.push();\n } else if (!isVisible && this.stackToken !== null) {\n this.overlayStack.release(this.stackToken);\n this.stackToken = null;\n }\n });\n\n effect(() => {\n const connectedPosition = this.connectedPosition();\n if (this.overlayRef) {\n setTimeout(() => {\n this.overlayRef?.updatePositionStrategy(this.overlay.position()\n .flexibleConnectedTo(this.parent)\n .withPositions([connectedPosition]));\n }, 20);\n }\n });\n }\n\n ngAfterViewInit() {\n const connectedPosition = this.connectedPosition();\n this.localInjector = Injector.create({\n providers: [\n { provide: POPOVER_CONTENT, useValue: this.templateRef },\n { provide: POPOVER_ID, useValue: this.popoverId },\n ],\n parent: this.parentInjector\n });\n this.portal = this.portalFactory(this.localInjector);\n this.overlayRef = this.overlay.create({\n scrollStrategy: this.overlay.scrollStrategies.reposition(),\n positionStrategy: this.overlay.position()\n .flexibleConnectedTo(this.parent)\n .withPositions([connectedPosition]),\n });\n this.component = this.overlayRef.attach<BsPopoverComponent>(this.portal);\n this.component.setInput('position', this.bsPopover());\n\n // Trigger ARIA: identifies the trigger as a disclosure that opens a dialog.\n this.parent.nativeElement.setAttribute('aria-haspopup', 'dialog');\n this.parent.nativeElement.setAttribute('aria-controls', this.popoverId);\n this.parent.nativeElement.setAttribute('aria-expanded', 'false');\n\n /* addEventListener rather than the .onclick property — the property write\n silently CLOBBERED any click handler the consumer had on their trigger. */\n const toggle = () => {\n if (this.updatePosition()) {\n this.overlayRef?.updatePosition();\n }\n this.isVisible.set(!this.isVisible());\n };\n this.parent.nativeElement.addEventListener('click', toggle);\n\n // A popover trigger on a non-focusable element (span, div, icon) could not\n // be opened by keyboard at all. Make it a real button-like control; native\n // buttons/links are left exactly as they are.\n const el = this.parent.nativeElement as HTMLElement;\n const nativelyFocusable = el.matches('button, a[href], input, select, textarea, [tabindex]');\n if (!nativelyFocusable) {\n el.setAttribute('tabindex', '0');\n if (!el.hasAttribute('role')) el.setAttribute('role', 'button');\n el.addEventListener('keydown', (ev: KeyboardEvent) => {\n if (ev.key === 'Enter' || ev.key === ' ') {\n ev.preventDefault();\n toggle();\n }\n });\n }\n }\n\n onEscape() {\n if (this.isVisible() && this.stackToken !== null && this.overlayStack.isTop(this.stackToken)) {\n this.isVisible.set(false);\n }\n }\n\n ngOnDestroy() {\n if (this.stackToken !== null) {\n this.overlayStack.release(this.stackToken);\n this.stackToken = null;\n }\n if (this.overlayRef) {\n this.overlayRef.detach();\n this.overlayRef.dispose();\n this.overlayRef = null;\n }\n }\n}\n","import { Directive } from '@angular/core';\n\n@Directive({\n selector: '[bsPopoverBody]',\n host: {\n '[class.popover-body]': 'true',\n },\n})\nexport class BsPopoverBodyDirective {\n}\n","import { Directive } from '@angular/core';\n\n@Directive({\n selector: '[bsPopoverHeader]',\n host: {\n '[class.popover-header]': 'true',\n },\n})\nexport class BsPopoverHeaderDirective {\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;AAEO,MAAM,eAAe,GAAG,IAAI,cAAc,CAAmB,gBAAgB,CAAC;;ACArF;AACO,MAAM,UAAU,GAAG,IAAI,cAAc,CAAS,YAA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AAA,UAAA,EAAA,EAAA,oBAAA,EAAA,MAAA,EAAA,EAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA,CAAA;;2FAAtB,sBAAsB,EAAA,UAAA,EAAA,CAAA;kBANlC,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACT,oBAAA,QAAQ,EAAE,iBAAiB;AAC3B,oBAAA,IAAI,EAAE;AACJ,wBAAA,sBAAsB,EAAE,MAAM;AAC/B,qBAAA;AACF,iBAAA;;;MCCY,wBAAwB,CAAA;8GAAxB,wBAAwB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;kGAAxB,wBAAwB,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,mBAAA,EAAA,IAAA,EAAA,EAAA,UAAA,EAAA,EAAA,sBAAA,EAAA,MAAA,EAAA,EAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA,CAAA;;2FAAxB,wBAAwB,EAAA,UAAA,EAAA,CAAA;kBANpC,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACT,oBAAA,QAAQ,EAAE,mBAAmB;AAC7B,oBAAA,IAAI,EAAE;AACJ,wBAAA,wBAAwB,EAAE,MAAM;AACjC,qBAAA;AACF,iBAAA;;;ACPD;;AAEG;;;;"}
1
+ {"version":3,"file":"mintplayer-ng-bootstrap-popover.mjs","sources":["../../../../libs/mintplayer-ng-bootstrap/popover/src/providers/popover-content.provider.ts","../../../../libs/mintplayer-ng-bootstrap/popover/src/providers/popover-id.provider.ts","../../../../libs/mintplayer-ng-bootstrap/popover/src/services/popover-context.service.ts","../../../../libs/mintplayer-ng-bootstrap/popover/src/component/popover.component.ts","../../../../libs/mintplayer-ng-bootstrap/popover/src/component/popover.component.html","../../../../libs/mintplayer-ng-bootstrap/popover/src/providers/portal-factory.provider.ts","../../../../libs/mintplayer-ng-bootstrap/popover/src/directives/popover/popover.directive.ts","../../../../libs/mintplayer-ng-bootstrap/popover/src/directives/popover-body/popover-body.directive.ts","../../../../libs/mintplayer-ng-bootstrap/popover/src/directives/popover-header/popover-header.directive.ts","../../../../libs/mintplayer-ng-bootstrap/popover/mintplayer-ng-bootstrap-popover.ts"],"sourcesContent":["import { InjectionToken, TemplateRef } from \"@angular/core\";\n\nexport const POPOVER_CONTENT = new InjectionToken<TemplateRef<any>>('PopoverContent');","import { InjectionToken } from '@angular/core';\n\n/** The dom id assigned to the rendered popover dialog so the trigger can point at it via aria-controls. */\nexport const POPOVER_ID = new InjectionToken<string>('POPOVER_ID');\n","import { Injectable, signal } from '@angular/core';\n\n/**\n * Component-scoped state shared between BsPopoverComponent (the dialog renderer)\n * and the bsPopoverHeader / bsPopoverBody directives applied to the user's\n * template. Provides the ids for aria-labelledby and aria-describedby.\n */\n@Injectable()\nexport class BsPopoverContextService {\n readonly headerId = signal<string | null>(null);\n readonly bodyId = signal<string | null>(null);\n}\n","import { NgTemplateOutlet } from '@angular/common';\nimport { ChangeDetectionStrategy, Component, computed, inject, Injector, input, TemplateRef } from '@angular/core';\nimport { useBootstrap } from '@mintplayer/ng-bootstrap/machine';\nimport { bootstrapPopover } from '@mintplayer/ui-core/bootstrap/popover';\nimport { bootstrapTransitions } from '@mintplayer/ui-core/bootstrap/transitions';\nimport { FadeInOutAnimation } from '@mintplayer/ng-animations';\nimport { Position } from '@mintplayer/ng-bootstrap';\nimport { BsOverlayFocusDirective } from '@mintplayer/ng-bootstrap/a11y';\nimport { BsHasOverlayComponent } from '@mintplayer/ng-bootstrap/has-overlay';\nimport { POPOVER_CONTENT } from '../providers/popover-content.provider';\nimport { POPOVER_ID } from '../providers/popover-id.provider';\nimport { BsPopoverContextService } from '../services/popover-context.service';\n\n@Component({\n selector: 'bs-popover',\n templateUrl: './popover.component.html',\n styleUrls: ['./popover.component.scss'],\n imports: [NgTemplateOutlet, BsHasOverlayComponent, BsOverlayFocusDirective],\n animations: [FadeInOutAnimation],\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: [BsPopoverContextService],\n host: {\n '[class.position-relative]': 'true',\n },\n})\nexport class BsPopoverComponent {\n constructor() {\n // #452: the popover and transitions partials ship with this component, scoped to the elements it stamps (data-mps=\"popover\").\n useBootstrap(bootstrapPopover, bootstrapTransitions);\n }\n\n template = inject<TemplateRef<any>>(POPOVER_CONTENT);\n popoverId = inject(POPOVER_ID);\n context = inject(BsPopoverContextService);\n injector = inject(Injector);\n\n position = input<Position>('bottom');\n isVisible = input<boolean>(false);\n\n marginClass = computed(() => {\n switch (this.position()) {\n case 'top': return 'mb-2';\n case 'start': return 'me-2';\n case 'end': return 'ms-2';\n default: return 'mt-2';\n }\n });\n\n positionClass = computed(() => `bs-popover-${this.position()}`);\n}\n","@if (isVisible()) {\n <div data-mps=\"popover\" class=\"popover position-relative fade show\"\n role=\"dialog\"\n [bsOverlayFocus]=\"isVisible()\"\n tabindex=\"-1\"\n [id]=\"popoverId\"\n [attr.aria-labelledby]=\"context.headerId()\"\n [attr.aria-describedby]=\"context.bodyId()\"\n [class]=\"[marginClass(), positionClass()]\"\n [@fadeInOut]>\n <ng-container *ngTemplateOutlet=\"template; injector: injector\"></ng-container>\n <div data-mps=\"popover\" class=\"popover-arrow position-absolute\" aria-hidden=\"true\"></div>\n <bs-has-overlay></bs-has-overlay>\n </div>\n}\n","import { ComponentPortal } from \"@angular/cdk/portal\";\nimport { InjectionToken, Injector } from \"@angular/core\";\n\nexport const PORTAL_FACTORY = new InjectionToken<(injector: Injector) => ComponentPortal<any>>('PopoverPortalFactory');","import { ConnectedPosition, Overlay, OverlayRef } from '@angular/cdk/overlay';\nimport { ComponentPortal } from '@angular/cdk/portal';\nimport { Position } from '@mintplayer/ng-bootstrap';\nimport { AfterViewInit, ComponentRef, Directive, ElementRef, Host, inject, Injector, input, OnDestroy, signal, SkipSelf, TemplateRef, computed, effect } from '@angular/core';\nimport { BsIdService, BsOverlayStackService } from '@mintplayer/ng-bootstrap/a11y';\nimport { BsPopoverComponent } from '../../component/popover.component';\nimport { POPOVER_CONTENT } from '../../providers/popover-content.provider';\nimport { POPOVER_ID } from '../../providers/popover-id.provider';\nimport { PORTAL_FACTORY } from '../../providers/portal-factory.provider';\n\n@Directive({\n selector: '*[bsPopover]',\n providers: [{\n provide: PORTAL_FACTORY,\n useValue: (injector: Injector) => {\n return new ComponentPortal(BsPopoverComponent, null, injector);\n }\n }],\n host: {\n '(document:keydown.escape)': 'onEscape()',\n },\n})\nexport class BsPopoverDirective implements AfterViewInit, OnDestroy {\n\n private overlay = inject(Overlay);\n private templateRef = inject(TemplateRef<any>);\n private parentInjector = inject(Injector);\n private portalFactory = inject(PORTAL_FACTORY);\n private parent = inject(ElementRef, { host: true, skipSelf: true });\n private ids = inject(BsIdService);\n private overlayStack = inject(BsOverlayStackService);\n private readonly popoverId = this.ids.next('bs-popover');\n private stackToken: symbol | null = null;\n\n bsPopover = input<Position>('bottom');\n updatePosition = input(false);\n\n private localInjector: Injector | null = null;\n private portal: ComponentPortal<any> | null = null;\n private overlayRef: OverlayRef | null = null;\n private component: ComponentRef<BsPopoverComponent> | null = null;\n isVisible = signal<boolean>(false);\n\n connectedPosition = computed<ConnectedPosition>(() => {\n const position = this.bsPopover();\n switch (position) {\n case 'top':\n return {\n originX: \"center\",\n originY: \"top\",\n overlayX: \"center\",\n overlayY: \"bottom\"\n };\n case 'start':\n return {\n originX: \"start\",\n originY: \"center\",\n overlayX: \"end\",\n overlayY: \"center\",\n };\n case 'end':\n return {\n originX: \"end\",\n originY: \"center\",\n overlayX: \"start\",\n overlayY: \"center\"\n };\n default:\n return {\n originX: \"center\",\n originY: \"bottom\",\n overlayX: \"center\",\n overlayY: \"top\"\n };\n }\n });\n\n constructor() {\n effect(() => {\n const position = this.bsPopover();\n if (this.component) {\n this.component.setInput('position', position);\n }\n });\n\n effect(() => {\n const isVisible = this.isVisible();\n if (this.component) {\n this.component.setInput('isVisible', isVisible);\n }\n this.parent.nativeElement.setAttribute('aria-expanded', isVisible ? 'true' : 'false');\n\n if (isVisible && this.stackToken === null) {\n this.stackToken = this.overlayStack.push();\n } else if (!isVisible && this.stackToken !== null) {\n this.overlayStack.release(this.stackToken);\n this.stackToken = null;\n }\n });\n\n effect(() => {\n const connectedPosition = this.connectedPosition();\n if (this.overlayRef) {\n setTimeout(() => {\n this.overlayRef?.updatePositionStrategy(this.overlay.position()\n .flexibleConnectedTo(this.parent)\n .withPositions([connectedPosition]));\n }, 20);\n }\n });\n }\n\n ngAfterViewInit() {\n const connectedPosition = this.connectedPosition();\n this.localInjector = Injector.create({\n providers: [\n { provide: POPOVER_CONTENT, useValue: this.templateRef },\n { provide: POPOVER_ID, useValue: this.popoverId },\n ],\n parent: this.parentInjector\n });\n this.portal = this.portalFactory(this.localInjector);\n this.overlayRef = this.overlay.create({\n scrollStrategy: this.overlay.scrollStrategies.reposition(),\n positionStrategy: this.overlay.position()\n .flexibleConnectedTo(this.parent)\n .withPositions([connectedPosition]),\n });\n this.component = this.overlayRef.attach<BsPopoverComponent>(this.portal);\n this.component.setInput('position', this.bsPopover());\n\n // Trigger ARIA: identifies the trigger as a disclosure that opens a dialog.\n this.parent.nativeElement.setAttribute('aria-haspopup', 'dialog');\n this.parent.nativeElement.setAttribute('aria-controls', this.popoverId);\n this.parent.nativeElement.setAttribute('aria-expanded', 'false');\n\n /* addEventListener rather than the .onclick property — the property write\n silently CLOBBERED any click handler the consumer had on their trigger. */\n const toggle = () => {\n if (this.updatePosition()) {\n this.overlayRef?.updatePosition();\n }\n this.isVisible.set(!this.isVisible());\n };\n this.parent.nativeElement.addEventListener('click', toggle);\n\n // A popover trigger on a non-focusable element (span, div, icon) could not\n // be opened by keyboard at all. Make it a real button-like control; native\n // buttons/links are left exactly as they are.\n const el = this.parent.nativeElement as HTMLElement;\n const nativelyFocusable = el.matches('button, a[href], input, select, textarea, [tabindex]');\n if (!nativelyFocusable) {\n el.setAttribute('tabindex', '0');\n if (!el.hasAttribute('role')) el.setAttribute('role', 'button');\n el.addEventListener('keydown', (ev: KeyboardEvent) => {\n if (ev.key === 'Enter' || ev.key === ' ') {\n ev.preventDefault();\n toggle();\n }\n });\n }\n }\n\n onEscape() {\n if (this.isVisible() && this.stackToken !== null && this.overlayStack.isTop(this.stackToken)) {\n this.isVisible.set(false);\n }\n }\n\n ngOnDestroy() {\n if (this.stackToken !== null) {\n this.overlayStack.release(this.stackToken);\n this.stackToken = null;\n }\n if (this.overlayRef) {\n this.overlayRef.detach();\n this.overlayRef.dispose();\n this.overlayRef = null;\n }\n }\n}\n","import { Directive } from '@angular/core';\nimport { useBootstrap } from '@mintplayer/ng-bootstrap/machine';\nimport { bootstrapPopover } from '@mintplayer/ui-core/bootstrap/popover';\n\n@Directive({\n selector: '[bsPopoverBody]',\n host: {\n '[attr.data-mps]': '\"popover\"',\n '[class.popover-body]': 'true',\n },\n})\nexport class BsPopoverBodyDirective {\n constructor() {\n // #452: the popover partial ships with this component, scoped to the elements it stamps (data-mps=\"popover\").\n useBootstrap(bootstrapPopover);\n }\n\n}\n","import { Directive } from '@angular/core';\nimport { useBootstrap } from '@mintplayer/ng-bootstrap/machine';\nimport { bootstrapPopover } from '@mintplayer/ui-core/bootstrap/popover';\n\n@Directive({\n selector: '[bsPopoverHeader]',\n host: {\n '[attr.data-mps]': '\"popover\"',\n '[class.popover-header]': 'true',\n },\n})\nexport class BsPopoverHeaderDirective {\n constructor() {\n // #452: the popover partial ships with this component, scoped to the elements it stamps (data-mps=\"popover\").\n useBootstrap(bootstrapPopover);\n }\n\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;;AAEO,MAAM,eAAe,GAAG,IAAI,cAAc,CAAmB,gBAAgB,CAAC;;ACArF;AACO,MAAM,UAAU,GAAG,IAAI,cAAc,CAAS,YAAY,CAAC;;ACDlE;;;;AAIG;MAEU,uBAAuB,CAAA;AADpC,IAAA,WAAA,GAAA;QAEW,IAAA,CAAA,QAAQ,GAAG,MAAM,CAAgB,IA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,EAAA,EAAA,eAAA,EAAA,aAAA,EAAA,oBAAA,EAAA,MAAA,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,iBAAiB;AAC3B,oBAAA,IAAI,EAAE;AACJ,wBAAA,iBAAiB,EAAE,WAAW;AAC9B,wBAAA,sBAAsB,EAAE,MAAM;AAC/B,qBAAA;AACF,iBAAA;;;MCCY,wBAAwB,CAAA;AACnC,IAAA,WAAA,GAAA;;QAEE,YAAY,CAAC,gBAAgB,CAAC;IAChC;8GAJW,wBAAwB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;kGAAxB,wBAAwB,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,mBAAA,EAAA,IAAA,EAAA,EAAA,UAAA,EAAA,EAAA,eAAA,EAAA,aAAA,EAAA,sBAAA,EAAA,MAAA,EAAA,EAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA,CAAA;;2FAAxB,wBAAwB,EAAA,UAAA,EAAA,CAAA;kBAPpC,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACT,oBAAA,QAAQ,EAAE,mBAAmB;AAC7B,oBAAA,IAAI,EAAE;AACJ,wBAAA,iBAAiB,EAAE,WAAW;AAC9B,wBAAA,wBAAwB,EAAE,MAAM;AACjC,qBAAA;AACF,iBAAA;;;ACVD;;AAEG;;;;"}
@@ -1,5 +1,7 @@
1
1
  import * as i0 from '@angular/core';
2
2
  import { input, ChangeDetectionStrategy, Component, computed } from '@angular/core';
3
+ import { useBootstrap } from '@mintplayer/ng-bootstrap/machine';
4
+ import { bootstrapProgress } from '@mintplayer/ui-core/bootstrap/progress';
3
5
  import { Color } from '@mintplayer/ng-bootstrap';
4
6
 
5
7
  class BsProgressComponent {
@@ -10,9 +12,11 @@ class BsProgressComponent {
10
12
  ...(ngDevMode ? [{ debugName: "isIndeterminate" }] : /* istanbul ignore next */ []));
11
13
  this.ariaLabel = input('Loading', /* @ts-ignore */
12
14
  ...(ngDevMode ? [{ debugName: "ariaLabel" }] : /* istanbul ignore next */ []));
15
+ // #452: the progress partial ships with this component, scoped to the elements it stamps (data-mps="progress").
16
+ useBootstrap(bootstrapProgress);
13
17
  }
14
18
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsProgressComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
15
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.8", type: BsProgressComponent, isStandalone: true, selector: "bs-progress", inputs: { height: { classPropertyName: "height", publicName: "height", isSignal: true, isRequired: false, transformFunction: null }, isIndeterminate: { classPropertyName: "isIndeterminate", publicName: "isIndeterminate", isSignal: true, isRequired: false, transformFunction: null }, ariaLabel: { classPropertyName: "ariaLabel", publicName: "ariaLabel", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "style.height.px": "height()", "class.d-block": "true", "class.overflow-hidden": "true" } }, ngImport: i0, template: "<div class=\"progress\">\n @if (isIndeterminate()) {\n <div class=\"progress-bar progress-bar-infinite bg-primary\" role=\"progressbar\" [attr.aria-label]=\"ariaLabel()\"></div>\n } @else {\n <ng-content></ng-content>\n }\n</div>\n", styles: ["@keyframes progress-bar-stripes{0%{background-position-x:var(--bs-progress-height)}}:host .progress,:host .progress-stacked{--bs-progress-height: 1rem;--bs-progress-font-size: .75rem;--bs-progress-bg: var(--bs-secondary-bg);--bs-progress-border-radius: var(--bs-border-radius);--bs-progress-box-shadow: var(--bs-box-shadow-inset);--bs-progress-bar-color: #fff;--bs-progress-bar-bg: #0d6efd;--bs-progress-bar-transition: width .6s ease;display:flex;height:var(--bs-progress-height);overflow:hidden;font-size:var(--bs-progress-font-size);background-color:var(--bs-progress-bg);border-radius:var(--bs-progress-border-radius)}:host .progress-bar{display:flex;flex-direction:column;justify-content:center;overflow:hidden;color:var(--bs-progress-bar-color);text-align:center;white-space:nowrap;background-color:var(--bs-progress-bar-bg);transition:var(--bs-progress-bar-transition)}@media(prefers-reduced-motion:reduce){:host .progress-bar{transition:none}}:host .progress-bar-striped{background-image:linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);background-size:var(--bs-progress-height) var(--bs-progress-height)}:host .progress-stacked>.progress{overflow:visible}:host .progress-stacked>.progress>.progress-bar{width:100%}:host .progress-bar-animated{animation:1s linear infinite progress-bar-stripes}@media(prefers-reduced-motion:reduce){:host .progress-bar-animated{animation:none}}:host .progress-bar-infinite{animation:progress-infinite 1.5s infinite}@keyframes progress-infinite{0%{width:10%;margin-left:0%}25%{width:70%;margin-left:15%}50%{width:10%;margin-left:90%}75%{width:70%;margin-left:15%}to{width:10%;margin-left:0%}}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
19
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.8", type: BsProgressComponent, isStandalone: true, selector: "bs-progress", inputs: { height: { classPropertyName: "height", publicName: "height", isSignal: true, isRequired: false, transformFunction: null }, isIndeterminate: { classPropertyName: "isIndeterminate", publicName: "isIndeterminate", isSignal: true, isRequired: false, transformFunction: null }, ariaLabel: { classPropertyName: "ariaLabel", publicName: "ariaLabel", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "style.height.px": "height()", "class.d-block": "true", "class.overflow-hidden": "true" } }, ngImport: i0, template: "<div data-mps=\"progress\" class=\"progress\">\n @if (isIndeterminate()) {\n <div data-mps=\"progress\" class=\"progress-bar progress-bar-infinite bg-primary\" role=\"progressbar\" [attr.aria-label]=\"ariaLabel()\"></div>\n } @else {\n <ng-content></ng-content>\n }\n</div>\n", styles: [".progress-bar-infinite{animation:progress-infinite 1.5s infinite}@keyframes progress-infinite{0%{width:10%;margin-left:0%}25%{width:70%;margin-left:15%}50%{width:10%;margin-left:90%}75%{width:70%;margin-left:15%}to{width:10%;margin-left:0%}}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
16
20
  }
17
21
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsProgressComponent, decorators: [{
18
22
  type: Component,
@@ -20,8 +24,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImpor
20
24
  '[style.height.px]': 'height()',
21
25
  '[class.d-block]': 'true',
22
26
  '[class.overflow-hidden]': 'true',
23
- }, template: "<div class=\"progress\">\n @if (isIndeterminate()) {\n <div class=\"progress-bar progress-bar-infinite bg-primary\" role=\"progressbar\" [attr.aria-label]=\"ariaLabel()\"></div>\n } @else {\n <ng-content></ng-content>\n }\n</div>\n", styles: ["@keyframes progress-bar-stripes{0%{background-position-x:var(--bs-progress-height)}}:host .progress,:host .progress-stacked{--bs-progress-height: 1rem;--bs-progress-font-size: .75rem;--bs-progress-bg: var(--bs-secondary-bg);--bs-progress-border-radius: var(--bs-border-radius);--bs-progress-box-shadow: var(--bs-box-shadow-inset);--bs-progress-bar-color: #fff;--bs-progress-bar-bg: #0d6efd;--bs-progress-bar-transition: width .6s ease;display:flex;height:var(--bs-progress-height);overflow:hidden;font-size:var(--bs-progress-font-size);background-color:var(--bs-progress-bg);border-radius:var(--bs-progress-border-radius)}:host .progress-bar{display:flex;flex-direction:column;justify-content:center;overflow:hidden;color:var(--bs-progress-bar-color);text-align:center;white-space:nowrap;background-color:var(--bs-progress-bar-bg);transition:var(--bs-progress-bar-transition)}@media(prefers-reduced-motion:reduce){:host .progress-bar{transition:none}}:host .progress-bar-striped{background-image:linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);background-size:var(--bs-progress-height) var(--bs-progress-height)}:host .progress-stacked>.progress{overflow:visible}:host .progress-stacked>.progress>.progress-bar{width:100%}:host .progress-bar-animated{animation:1s linear infinite progress-bar-stripes}@media(prefers-reduced-motion:reduce){:host .progress-bar-animated{animation:none}}:host .progress-bar-infinite{animation:progress-infinite 1.5s infinite}@keyframes progress-infinite{0%{width:10%;margin-left:0%}25%{width:70%;margin-left:15%}50%{width:10%;margin-left:90%}75%{width:70%;margin-left:15%}to{width:10%;margin-left:0%}}\n"] }]
24
- }], propDecorators: { height: [{ type: i0.Input, args: [{ isSignal: true, alias: "height", required: false }] }], isIndeterminate: [{ type: i0.Input, args: [{ isSignal: true, alias: "isIndeterminate", required: false }] }], ariaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaLabel", required: false }] }] } });
27
+ }, template: "<div data-mps=\"progress\" class=\"progress\">\n @if (isIndeterminate()) {\n <div data-mps=\"progress\" class=\"progress-bar progress-bar-infinite bg-primary\" role=\"progressbar\" [attr.aria-label]=\"ariaLabel()\"></div>\n } @else {\n <ng-content></ng-content>\n }\n</div>\n", styles: [".progress-bar-infinite{animation:progress-infinite 1.5s infinite}@keyframes progress-infinite{0%{width:10%;margin-left:0%}25%{width:70%;margin-left:15%}50%{width:10%;margin-left:90%}75%{width:70%;margin-left:15%}to{width:10%;margin-left:0%}}\n"] }]
28
+ }], ctorParameters: () => [], propDecorators: { height: [{ type: i0.Input, args: [{ isSignal: true, alias: "height", required: false }] }], isIndeterminate: [{ type: i0.Input, args: [{ isSignal: true, alias: "isIndeterminate", required: false }] }], ariaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaLabel", required: false }] }] } });
25
29
 
26
30
  class BsProgressBarComponent {
27
31
  constructor() {
@@ -57,13 +61,16 @@ class BsProgressBarComponent {
57
61
  return `bg-${name}`;
58
62
  }, /* @ts-ignore */
59
63
  ...(ngDevMode ? [{ debugName: "colorClassComputed" }] : /* istanbul ignore next */ []));
64
+ // #452: the progress partial ships with this component, scoped to the elements it stamps (data-mps="progress").
65
+ useBootstrap(bootstrapProgress);
60
66
  }
61
67
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsProgressBarComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
62
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.0.8", type: BsProgressBarComponent, isStandalone: true, selector: "bs-progress-bar", inputs: { minimum: { classPropertyName: "minimum", publicName: "minimum", isSignal: true, isRequired: false, transformFunction: null }, maximum: { classPropertyName: "maximum", publicName: "maximum", isSignal: true, isRequired: false, transformFunction: null }, value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null }, color: { classPropertyName: "color", publicName: "color", isSignal: true, isRequired: false, transformFunction: null }, striped: { classPropertyName: "striped", publicName: "striped", isSignal: true, isRequired: false, transformFunction: null }, animated: { classPropertyName: "animated", publicName: "animated", isSignal: true, isRequired: false, transformFunction: null }, ariaLabel: { classPropertyName: "ariaLabel", publicName: "ariaLabel", isSignal: true, isRequired: false, transformFunction: null }, valueText: { classPropertyName: "valueText", publicName: "valueText", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class.progress-bar": "true", "class.progress-bar-striped": "striped()", "class.progress-bar-animated": "animated()", "class": "colorClassComputed()", "style.width": "width()", "attr.role": "\"progressbar\"", "attr.aria-valuenow": "value()", "attr.aria-valuemin": "minimum()", "attr.aria-valuemax": "maximum()", "attr.aria-label": "ariaLabel()", "attr.aria-valuetext": "valueText()" } }, ngImport: i0, template: "", styles: ["@keyframes progress-bar-stripes{0%{background-position-x:var(--bs-progress-height)}}:host ::ng-deep .progress,:host ::ng-deep .progress-stacked{--bs-progress-height: 1rem;--bs-progress-font-size: .75rem;--bs-progress-bg: var(--bs-secondary-bg);--bs-progress-border-radius: var(--bs-border-radius);--bs-progress-box-shadow: var(--bs-box-shadow-inset);--bs-progress-bar-color: #fff;--bs-progress-bar-bg: #0d6efd;--bs-progress-bar-transition: width .6s ease;display:flex;height:var(--bs-progress-height);overflow:hidden;font-size:var(--bs-progress-font-size);background-color:var(--bs-progress-bg);border-radius:var(--bs-progress-border-radius)}:host ::ng-deep .progress-bar{display:flex;flex-direction:column;justify-content:center;overflow:hidden;color:var(--bs-progress-bar-color);text-align:center;white-space:nowrap;background-color:var(--bs-progress-bar-bg);transition:var(--bs-progress-bar-transition)}@media(prefers-reduced-motion:reduce){:host ::ng-deep .progress-bar{transition:none}}:host ::ng-deep .progress-bar-striped{background-image:linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);background-size:var(--bs-progress-height) var(--bs-progress-height)}:host ::ng-deep .progress-stacked>.progress{overflow:visible}:host ::ng-deep .progress-stacked>.progress>.progress-bar{width:100%}:host ::ng-deep .progress-bar-animated{animation:1s linear infinite progress-bar-stripes}@media(prefers-reduced-motion:reduce){:host ::ng-deep .progress-bar-animated{animation:none}}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
68
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.0.8", type: BsProgressBarComponent, isStandalone: true, selector: "bs-progress-bar", inputs: { minimum: { classPropertyName: "minimum", publicName: "minimum", isSignal: true, isRequired: false, transformFunction: null }, maximum: { classPropertyName: "maximum", publicName: "maximum", isSignal: true, isRequired: false, transformFunction: null }, value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null }, color: { classPropertyName: "color", publicName: "color", isSignal: true, isRequired: false, transformFunction: null }, striped: { classPropertyName: "striped", publicName: "striped", isSignal: true, isRequired: false, transformFunction: null }, animated: { classPropertyName: "animated", publicName: "animated", isSignal: true, isRequired: false, transformFunction: null }, ariaLabel: { classPropertyName: "ariaLabel", publicName: "ariaLabel", isSignal: true, isRequired: false, transformFunction: null }, valueText: { classPropertyName: "valueText", publicName: "valueText", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "attr.data-mps": "\"progress\"", "class.progress-bar": "true", "class.progress-bar-striped": "striped()", "class.progress-bar-animated": "animated()", "class": "colorClassComputed()", "style.width": "width()", "attr.role": "\"progressbar\"", "attr.aria-valuenow": "value()", "attr.aria-valuemin": "minimum()", "attr.aria-valuemax": "maximum()", "attr.aria-label": "ariaLabel()", "attr.aria-valuetext": "valueText()" } }, ngImport: i0, template: "", styles: [""], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
63
69
  }
64
70
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsProgressBarComponent, decorators: [{
65
71
  type: Component,
66
72
  args: [{ selector: 'bs-progress-bar', changeDetection: ChangeDetectionStrategy.OnPush, host: {
73
+ '[attr.data-mps]': '"progress"',
67
74
  '[class.progress-bar]': 'true',
68
75
  '[class.progress-bar-striped]': 'striped()',
69
76
  '[class.progress-bar-animated]': 'animated()',
@@ -75,8 +82,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImpor
75
82
  '[attr.aria-valuemax]': 'maximum()',
76
83
  '[attr.aria-label]': 'ariaLabel()',
77
84
  '[attr.aria-valuetext]': 'valueText()',
78
- }, template: "", styles: ["@keyframes progress-bar-stripes{0%{background-position-x:var(--bs-progress-height)}}:host ::ng-deep .progress,:host ::ng-deep .progress-stacked{--bs-progress-height: 1rem;--bs-progress-font-size: .75rem;--bs-progress-bg: var(--bs-secondary-bg);--bs-progress-border-radius: var(--bs-border-radius);--bs-progress-box-shadow: var(--bs-box-shadow-inset);--bs-progress-bar-color: #fff;--bs-progress-bar-bg: #0d6efd;--bs-progress-bar-transition: width .6s ease;display:flex;height:var(--bs-progress-height);overflow:hidden;font-size:var(--bs-progress-font-size);background-color:var(--bs-progress-bg);border-radius:var(--bs-progress-border-radius)}:host ::ng-deep .progress-bar{display:flex;flex-direction:column;justify-content:center;overflow:hidden;color:var(--bs-progress-bar-color);text-align:center;white-space:nowrap;background-color:var(--bs-progress-bar-bg);transition:var(--bs-progress-bar-transition)}@media(prefers-reduced-motion:reduce){:host ::ng-deep .progress-bar{transition:none}}:host ::ng-deep .progress-bar-striped{background-image:linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);background-size:var(--bs-progress-height) var(--bs-progress-height)}:host ::ng-deep .progress-stacked>.progress{overflow:visible}:host ::ng-deep .progress-stacked>.progress>.progress-bar{width:100%}:host ::ng-deep .progress-bar-animated{animation:1s linear infinite progress-bar-stripes}@media(prefers-reduced-motion:reduce){:host ::ng-deep .progress-bar-animated{animation:none}}\n"] }]
79
- }], propDecorators: { minimum: [{ type: i0.Input, args: [{ isSignal: true, alias: "minimum", required: false }] }], maximum: [{ type: i0.Input, args: [{ isSignal: true, alias: "maximum", required: false }] }], value: [{ type: i0.Input, args: [{ isSignal: true, alias: "value", required: false }] }], color: [{ type: i0.Input, args: [{ isSignal: true, alias: "color", required: false }] }], striped: [{ type: i0.Input, args: [{ isSignal: true, alias: "striped", required: false }] }], animated: [{ type: i0.Input, args: [{ isSignal: true, alias: "animated", required: false }] }], ariaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaLabel", required: false }] }], valueText: [{ type: i0.Input, args: [{ isSignal: true, alias: "valueText", required: false }] }] } });
85
+ }, template: "" }]
86
+ }], ctorParameters: () => [], propDecorators: { minimum: [{ type: i0.Input, args: [{ isSignal: true, alias: "minimum", required: false }] }], maximum: [{ type: i0.Input, args: [{ isSignal: true, alias: "maximum", required: false }] }], value: [{ type: i0.Input, args: [{ isSignal: true, alias: "value", required: false }] }], color: [{ type: i0.Input, args: [{ isSignal: true, alias: "color", required: false }] }], striped: [{ type: i0.Input, args: [{ isSignal: true, alias: "striped", required: false }] }], animated: [{ type: i0.Input, args: [{ isSignal: true, alias: "animated", required: false }] }], ariaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaLabel", required: false }] }], valueText: [{ type: i0.Input, args: [{ isSignal: true, alias: "valueText", required: false }] }] } });
80
87
 
81
88
  /**
82
89
  * Generated bundle index. Do not edit.
@@ -1 +1 @@
1
- {"version":3,"file":"mintplayer-ng-bootstrap-progress-bar.mjs","sources":["../../../../libs/mintplayer-ng-bootstrap/progress-bar/src/progress/progress.component.ts","../../../../libs/mintplayer-ng-bootstrap/progress-bar/src/progress/progress.component.html","../../../../libs/mintplayer-ng-bootstrap/progress-bar/src/progress-bar/progress-bar.component.ts","../../../../libs/mintplayer-ng-bootstrap/progress-bar/src/progress-bar/progress-bar.component.html","../../../../libs/mintplayer-ng-bootstrap/progress-bar/mintplayer-ng-bootstrap-progress-bar.ts"],"sourcesContent":["import { Component, input, ChangeDetectionStrategy} from '@angular/core';\n\n@Component({\n selector: 'bs-progress',\n templateUrl: './progress.component.html',\n styleUrls: ['./progress.component.scss'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n '[style.height.px]': 'height()',\n '[class.d-block]': 'true',\n '[class.overflow-hidden]': 'true',\n },\n})\nexport class BsProgressComponent {\n readonly height = input<number | null>(null);\n readonly isIndeterminate = input(false);\n readonly ariaLabel = input<string>('Loading');\n}\n","<div class=\"progress\">\n @if (isIndeterminate()) {\n <div class=\"progress-bar progress-bar-infinite bg-primary\" role=\"progressbar\" [attr.aria-label]=\"ariaLabel()\"></div>\n } @else {\n <ng-content></ng-content>\n }\n</div>\n","import { ChangeDetectionStrategy, Component, computed, input } from '@angular/core';\nimport { Color } from '@mintplayer/ng-bootstrap';\n\n@Component({\n selector: 'bs-progress-bar',\n templateUrl: './progress-bar.component.html',\n styleUrls: ['./progress-bar.component.scss'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n '[class.progress-bar]': 'true',\n '[class.progress-bar-striped]': 'striped()',\n '[class.progress-bar-animated]': 'animated()',\n '[class]': 'colorClassComputed()',\n '[style.width]': 'width()',\n '[attr.role]': '\"progressbar\"',\n '[attr.aria-valuenow]': 'value()',\n '[attr.aria-valuemin]': 'minimum()',\n '[attr.aria-valuemax]': 'maximum()',\n '[attr.aria-label]': 'ariaLabel()',\n '[attr.aria-valuetext]': 'valueText()',\n },\n})\nexport class BsProgressBarComponent {\n\n minimum = input<number>(0);\n maximum = input<number>(100);\n value = input<number>(50);\n color = input<Color>(Color.primary);\n striped = input(false);\n animated = input(false);\n /** Accessible name for the progressbar. Override for localisation. */\n ariaLabel = input<string>('Progress');\n /** Human reading of the value ('3 of 5 steps') when the raw number misleads. */\n valueText = input<string | null>(null);\n\n percentage = computed(() => {\n const min = this.minimum();\n const max = this.maximum();\n const val = this.value();\n return (val - min) / (max - min) * 100;\n });\n\n width = computed(() => `${this.percentage()}%`);\n\n colorClassComputed = computed(() => {\n const name = Color[this.color()];\n return `bg-${name}`;\n });\n}\n","","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;MAaa,mBAAmB,CAAA;AAXhC,IAAA,WAAA,GAAA;QAYW,IAAA,CAAA,MAAM,GAAG,KAAK,CAAgB,IAAI;mFAAC;QACnC,IAAA,CAAA,eAAe,GAAG,KAAK,CAAC,KAAK;4FAAC;QAC9B,IAAA,CAAA,SAAS,GAAG,KAAK,CAAS,SAAS;sFAAC;AAC9C,IAAA;8GAJY,mBAAmB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;AAAnB,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,IAAA,EAAA,mBAAmB,2lBCbhC,gQAOA,EAAA,MAAA,EAAA,CAAA,otDAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA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AA,EAAA,EAAA,EAAA,MAAA,EAAA,CAAA,ujDAAA,CAAA,EAAA;;;AEpBH;;AAEG;;;;"}
1
+ {"version":3,"file":"mintplayer-ng-bootstrap-progress-bar.mjs","sources":["../../../../libs/mintplayer-ng-bootstrap/progress-bar/src/progress/progress.component.ts","../../../../libs/mintplayer-ng-bootstrap/progress-bar/src/progress/progress.component.html","../../../../libs/mintplayer-ng-bootstrap/progress-bar/src/progress-bar/progress-bar.component.ts","../../../../libs/mintplayer-ng-bootstrap/progress-bar/src/progress-bar/progress-bar.component.html","../../../../libs/mintplayer-ng-bootstrap/progress-bar/mintplayer-ng-bootstrap-progress-bar.ts"],"sourcesContent":["import { Component, input, ChangeDetectionStrategy} from '@angular/core';\nimport { useBootstrap } from '@mintplayer/ng-bootstrap/machine';\nimport { bootstrapProgress } from '@mintplayer/ui-core/bootstrap/progress';\n\n@Component({\n selector: 'bs-progress',\n templateUrl: './progress.component.html',\n styleUrls: ['./progress.component.scss'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n '[style.height.px]': 'height()',\n '[class.d-block]': 'true',\n '[class.overflow-hidden]': 'true',\n },\n})\nexport class BsProgressComponent {\n constructor() {\n // #452: the progress partial ships with this component, scoped to the elements it stamps (data-mps=\"progress\").\n useBootstrap(bootstrapProgress);\n }\n\n readonly height = input<number | null>(null);\n readonly isIndeterminate = input(false);\n readonly ariaLabel = input<string>('Loading');\n}\n","<div data-mps=\"progress\" class=\"progress\">\n @if (isIndeterminate()) {\n <div data-mps=\"progress\" class=\"progress-bar progress-bar-infinite bg-primary\" role=\"progressbar\" [attr.aria-label]=\"ariaLabel()\"></div>\n } @else {\n <ng-content></ng-content>\n }\n</div>\n","import { ChangeDetectionStrategy, Component, computed, input } from '@angular/core';\nimport { useBootstrap } from '@mintplayer/ng-bootstrap/machine';\nimport { bootstrapProgress } from '@mintplayer/ui-core/bootstrap/progress';\nimport { Color } from '@mintplayer/ng-bootstrap';\n\n@Component({\n selector: 'bs-progress-bar',\n templateUrl: './progress-bar.component.html',\n styleUrls: ['./progress-bar.component.scss'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n '[attr.data-mps]': '\"progress\"',\n '[class.progress-bar]': 'true',\n '[class.progress-bar-striped]': 'striped()',\n '[class.progress-bar-animated]': 'animated()',\n '[class]': 'colorClassComputed()',\n '[style.width]': 'width()',\n '[attr.role]': '\"progressbar\"',\n '[attr.aria-valuenow]': 'value()',\n '[attr.aria-valuemin]': 'minimum()',\n '[attr.aria-valuemax]': 'maximum()',\n '[attr.aria-label]': 'ariaLabel()',\n '[attr.aria-valuetext]': 'valueText()',\n },\n})\nexport class BsProgressBarComponent {\n constructor() {\n // #452: the progress partial ships with this component, scoped to the elements it stamps (data-mps=\"progress\").\n useBootstrap(bootstrapProgress);\n }\n\n\n minimum = input<number>(0);\n maximum = input<number>(100);\n value = input<number>(50);\n color = input<Color>(Color.primary);\n striped = input(false);\n animated = input(false);\n /** Accessible name for the progressbar. Override for localisation. */\n ariaLabel = input<string>('Progress');\n /** Human reading of the value ('3 of 5 steps') when the raw number misleads. */\n valueText = input<string | null>(null);\n\n percentage = computed(() => {\n const min = this.minimum();\n const max = this.maximum();\n const val = this.value();\n return (val - min) / (max - min) * 100;\n });\n\n width = computed(() => `${this.percentage()}%`);\n\n colorClassComputed = computed(() => {\n const name = Color[this.color()];\n return `bg-${name}`;\n });\n}\n","","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;MAea,mBAAmB,CAAA;AAC9B,IAAA,WAAA,GAAA;QAKS,IAAA,CAAA,MAAM,GAAG,KAAK,CAAgB,IAAI;mFAAC;QACnC,IAAA,CAAA,eAAe,GAAG,KAAK,CAAC,KAAK;4FAAC;QAC9B,IAAA,CAAA,SAAS,GAAG,KAAK,CAAS,SAAS;sFAAC;;QAL3C,YAAY,CAAC,iBAAiB,CAAC;IACjC;8GAJW,mBAAmB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA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C9B,wBAAA,8BAA8B,EAAE,WAAW;AAC3C,wBAAA,+BAA+B,EAAE,YAAY;AAC7C,wBAAA,SAAS,EAAE,sBAAsB;AACjC,wBAAA,eAAe,EAAE,SAAS;AAC1B,wBAAA,aAAa,EAAE,eAAe;AAC9B,wBAAA,sBAAsB,EAAE,SAAS;AACjC,wBAAA,sBAAsB,EAAE,WAAW;AACnC,wBAAA,sBAAsB,EAAE,WAAW;AACnC,wBAAA,mBAAmB,EAAE,aAAa;AAClC,wBAAA,uBAAuB,EAAE,aAAa;AACvC,qBAAA,EAAA,QAAA,EAAA,EAAA,EAAA;;;AEvBH;;AAEG;;;;"}
@@ -4,6 +4,8 @@ import { NgTemplateOutlet } from '@angular/common';
4
4
  import { useCore, useScopedStyles, MpPropsDirective } from '@mintplayer/ng-bootstrap/machine';
5
5
  import { queryBuilderCore, queryBuilderScopedStyles } from '@mintplayer/ui-core/query-builder';
6
6
  export { DEFAULT_MESSAGES, DEFAULT_OPERATOR_CATALOG, MaxDepthExceededError, addChild, addEmptyConditionTo, addEmptyGroupTo, addEmptySubqueryTo, changeConditionField, changeConditionOperator, cloneTree, collectDescendantIds, defaultValueFor, emptyCondition, emptyGroup, emptySubquery, findNodeById, mapTree, moveNode, newId, operatorsForType, removeNode, renderExpression, setGroupLogic, updateCondition, validateOperatorOverrides, valueShapeFor, visitTree } from '@mintplayer/ui-core/query-builder';
7
+ import { bootstrapForms } from '@mintplayer/ui-core/bootstrap/forms';
8
+ import { bootstrapButtonGroup } from '@mintplayer/ui-core/bootstrap/button-group';
7
9
  import { NG_VALUE_ACCESSOR } from '@angular/forms';
8
10
 
9
11
  /**
@@ -162,6 +164,8 @@ class BsQueryBuilderComponent {
162
164
  this.#core = useCore(queryBuilderCore, { inputs: extendInputs(() => ({ query: this.query(), schema: this.schema(), rootEntity: this.rootEntity(), multiEntityPickerEnabled: this.multiEntityPickerEnabled(), selectedFields: this.selectedFields(), sortBy: this.sortBy(), disabled: this.disabled(), messages: this.messages(), maxDepth: this.maxDepth(), showPreview: this.showPreview(), showSavedQueries: this.showSavedQueries(), savedQueries: this.savedQueries() })), idPrefix: 'bs-query-builder', outputs: { queryChange: this.querychange, rootEntityChange: this.rootentitychange, selectedFieldsChange: this.selectedfieldschange, sortByChange: this.sortbychange, saveQuery: this.savequery, loadQuery: this.loadquery, deleteQuery: this.deletequery }, hostBag: (props) => ({ ...props.view.root, 'data-mps': 'query-builder' }), models: { query: this.query, rootEntity: this.rootEntity, selectedFields: this.selectedFields, sortBy: this.sortBy } });
163
165
  /** The template's props. */
164
166
  this.props = this.#core.props;
167
+ useScopedStyles(bootstrapForms.key, bootstrapForms.css, { order: bootstrapForms.order });
168
+ useScopedStyles(bootstrapButtonGroup.key, bootstrapButtonGroup.css, { order: bootstrapButtonGroup.order });
165
169
  useScopedStyles('query-builder', queryBuilderScopedStyles);
166
170
  }
167
171
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsQueryBuilderComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
@@ -1 +1 @@
1
- {"version":3,"file":"mintplayer-ng-bootstrap-query-builder.mjs","sources":["../../../../libs/mintplayer-ng-bootstrap/query-builder/src/value-accessor/query-builder-value-accessor.ts","../../../../libs/mintplayer-ng-bootstrap/query-builder/src/query-builder.angular.ts","../../../../libs/mintplayer-ng-bootstrap/query-builder/src/generated/query-builder.component.generated.ts","../../../../libs/mintplayer-ng-bootstrap/query-builder/src/generated/query-builder.view.generated.html","../../../../libs/mintplayer-ng-bootstrap/query-builder/src/generated/index.ts","../../../../libs/mintplayer-ng-bootstrap/query-builder/src/index.ts","../../../../libs/mintplayer-ng-bootstrap/query-builder/mintplayer-ng-bootstrap-query-builder.ts"],"sourcesContent":["import { DestroyRef, Directive, Injector, OnInit, forwardRef, inject, signal } from '@angular/core';\nimport { ControlValueAccessor, NG_VALUE_ACCESSOR } from '@angular/forms';\nimport type { Expression } from '@mintplayer/ui-core/query-builder';\nimport { BsQueryBuilderComponent } from '../generated';\n\n/**\n * The `ControlValueAccessor` of `bs-query-builder` (a host directive of the\n * generated component, see `query-builder.angular.ts`). A bound form control\n * drives the tree through `viewValue`; every edit the user makes reaches the\n * form through the component's `query` model, which a form write never touches.\n */\n@Directive({\n providers: [{ provide: NG_VALUE_ACCESSOR, useExisting: forwardRef(() => BsQueryBuilderValueAccessor), multi: true }],\n host: {\n '(focusout)': 'onTouched()',\n },\n})\nexport class BsQueryBuilderValueAccessor implements ControlValueAccessor, OnInit {\n private readonly injector = inject(Injector);\n private readonly destroyRef = inject(DestroyRef);\n\n /** A form control drives the tree: its `viewValue` wins over the `query` input. */\n readonly bound = signal(false);\n readonly viewValue = signal<Expression | null>(null);\n readonly disabled = signal(false);\n\n private onChange: (value: Expression | null) => void = () => undefined;\n onTouched: () => void = () => undefined;\n\n ngOnInit(): void {\n // The component is created after its host directives, so it is looked up here.\n const sub = this.injector.get(BsQueryBuilderComponent).query.subscribe((value) => {\n if (!this.bound() || value === this.viewValue()) return;\n this.viewValue.set(value);\n this.onChange(value);\n });\n this.destroyRef.onDestroy(() => sub.unsubscribe());\n }\n\n writeValue(value: Expression | null | undefined): void {\n this.viewValue.set(value ?? null);\n }\n\n registerOnChange(fn: (value: Expression | null) => void): void {\n this.bound.set(true);\n this.onChange = fn;\n }\n\n registerOnTouched(fn: () => void): void {\n this.onTouched = fn;\n }\n\n setDisabledState(isDisabled: boolean): void {\n this.disabled.set(isDisabled);\n }\n}\n","import { computed, inject } from '@angular/core';\nimport type { QueryBuilderInputs } from '@mintplayer/ui-core/query-builder';\nimport { BsQueryBuilderValueAccessor } from './value-accessor/query-builder-value-accessor';\n\n/*\n * The Angular extension of the generated `bs-query-builder` (PRD #437 D10\n * escape hatch): Angular forms. A bound form control drives the tree and the\n * disabled state.\n */\n\nexport const hostDirectives = [BsQueryBuilderValueAccessor];\n\nexport function extendInputs(inputs: () => QueryBuilderInputs): () => QueryBuilderInputs {\n const accessor = inject(BsQueryBuilderValueAccessor, { self: true });\n return computed<QueryBuilderInputs>(() => {\n const value = inputs();\n return {\n ...value,\n query: accessor.bound() ? accessor.viewValue() : value.query,\n disabled: value.disabled || accessor.disabled(),\n };\n });\n}\n","// GENERATED from the query-builder manifest (query-builder) by @mintplayer/nx-component-compiler. Do not edit.\nimport { ChangeDetectionStrategy, Component, Directive, ElementRef, TemplateRef, booleanAttribute, computed, contentChild, inject, input, model, numberAttribute, output } from '@angular/core';\nimport { NgTemplateOutlet } from '@angular/common';\nimport { MpPropsDirective, useCore, useScopedStyles } from '@mintplayer/ng-bootstrap/machine';\nimport { type EditorContext, type Expression, queryBuilderCore, type QueryBuilderInputs, type QueryBuilderNode, queryBuilderScopedStyles, type QueryBuilderView, type SavedQueryNameDetail, type SaveQueryDetail, type SortDescriptor } from '@mintplayer/ui-core/query-builder';\nimport { hostDirectives as ext_hostDirectives, extendInputs as ext_extendInputs } from '../query-builder.angular';\n\n/** The `editor` slot of `<bs-query-builder>`: `<ng-template bsQueryBuilderEditor>` or `*bsQueryBuilderEditor`. */\n@Directive({ selector: '[bsQueryBuilderEditor]' })\nexport class BsQueryBuilderEditorDirective {\n readonly templateRef = inject<TemplateRef<{ ctx: EditorContext } & { $implicit: { ctx: EditorContext } }>>(TemplateRef);\n static ngTemplateContextGuard(_dir: BsQueryBuilderEditorDirective, ctx: unknown): ctx is { ctx: EditorContext } & { $implicit: { ctx: EditorContext } } {\n return true;\n }\n}\n\n/** Types the `QueryBuilderItem` partial's context in this template. */\n@Directive({ selector: 'ng-template[mpPartialQueryBuilderItem]' })\nexport class QueryBuilderItemPartial {\n static ngTemplateContextGuard(_dir: QueryBuilderItemPartial, ctx: unknown): ctx is { node: QueryBuilderNode; view: QueryBuilderView } {\n return true;\n }\n}\n\n/**\n * A visual editor for a filter expression: AND/OR groups, conditions and sub-queries over a relation (#437).\n *\n * `query` is two-way. The tree renders as flat rows, so the server render shows the whole query.\n * A field with `editor: 'custom'` renders its value through the `editor` slot, which receives an\n * `EditorContext` (call `ctx.onChange(next)`). Rows reorder by dragging the handle, or with\n * Alt+Up/Down on a row. An `aria-label` names it.\n */\n@Component({\n selector: 'bs-query-builder',\n templateUrl: './query-builder.view.generated.html',\n imports: [MpPropsDirective, NgTemplateOutlet, QueryBuilderItemPartial],\n changeDetection: ChangeDetectionStrategy.OnPush,\n hostDirectives: ext_hostDirectives,\n})\nexport class BsQueryBuilderComponent {\n /** The host element. */\n readonly elementRef = inject<ElementRef<HTMLElement>>(ElementRef);\n\n readonly query = model<QueryBuilderInputs['query']>(null);\n readonly schema = input<QueryBuilderInputs['schema']>([]);\n readonly rootEntity = model<QueryBuilderInputs['rootEntity']>('');\n readonly multiEntityPickerEnabled = input<QueryBuilderInputs['multiEntityPickerEnabled'], unknown>(false, { transform: booleanAttribute });\n readonly selectedFields = model<QueryBuilderInputs['selectedFields']>([]);\n readonly sortBy = model<QueryBuilderInputs['sortBy']>([]);\n readonly disabled = input<QueryBuilderInputs['disabled'], unknown>(false, { transform: booleanAttribute });\n readonly messages = input<QueryBuilderInputs['messages']>();\n readonly maxDepth = input<QueryBuilderInputs['maxDepth'], unknown>(32, { transform: (v: unknown) => numberAttribute(v) as QueryBuilderInputs['maxDepth'] });\n readonly showPreview = input<QueryBuilderInputs['showPreview'], unknown>(false, { transform: booleanAttribute });\n readonly showSavedQueries = input<QueryBuilderInputs['showSavedQueries'], unknown>(false, { transform: booleanAttribute });\n readonly savedQueries = input<QueryBuilderInputs['savedQueries']>([]);\n /** The user edited the query. */\n readonly querychange = output<Expression>();\n /** The user picked another entity in the toolbar. */\n readonly rootentitychange = output<string>();\n /** The projected columns changed. */\n readonly selectedfieldschange = output<string[]>();\n /** The sort changed. */\n readonly sortbychange = output<SortDescriptor[]>();\n /** Save the current query under a name. */\n readonly savequery = output<SaveQueryDetail>();\n /** Load the named saved query. */\n readonly loadquery = output<SavedQueryNameDetail>();\n /** Delete the named saved query. */\n readonly deletequery = output<SavedQueryNameDetail>();\n\n private readonly editorSlot = contentChild(BsQueryBuilderEditorDirective);\n /** The template's named slots. */\n protected readonly slots = computed(() => ({ editor: this.editorSlot()?.templateRef }));\n readonly #core = useCore(queryBuilderCore, { inputs: ext_extendInputs(() => ({ query: this.query(), schema: this.schema(), rootEntity: this.rootEntity(), multiEntityPickerEnabled: this.multiEntityPickerEnabled(), selectedFields: this.selectedFields(), sortBy: this.sortBy(), disabled: this.disabled(), messages: this.messages(), maxDepth: this.maxDepth(), showPreview: this.showPreview(), showSavedQueries: this.showSavedQueries(), savedQueries: this.savedQueries() })), idPrefix: 'bs-query-builder', outputs: { queryChange: this.querychange, rootEntityChange: this.rootentitychange, selectedFieldsChange: this.selectedfieldschange, sortByChange: this.sortbychange, saveQuery: this.savequery, loadQuery: this.loadquery, deleteQuery: this.deletequery }, hostBag: (props) => ({ ...props.view.root, 'data-mps': 'query-builder' }), models: { query: this.query, rootEntity: this.rootEntity, selectedFields: this.selectedFields, sortBy: this.sortBy } });\n /** The template's props. */\n protected readonly props = this.#core.props;\n\n constructor() {\n useScopedStyles('query-builder', queryBuilderScopedStyles);\n }\n}\n","<!-- GENERATED from libs/mintplayer-ui-core/query-builder/src/templates/query-builder.view.vue by @mintplayer/nx-component-compiler. Do not edit. -->\n@let p_view = props().view;\n@if (p_view.toolbar) {\n <div data-mps=\"query-builder\" [mpProps]=\"p_view.toolbarBox\">\n <label data-mps=\"query-builder\" [mpProps]=\"p_view.toolbarLabel\">\n {{ p_view.text.entity }}\n : \n <select data-mps=\"query-builder\" [mpProps]=\"p_view.entity\">\n @for (o of p_view.entities; track o.key) {\n <option data-mps=\"query-builder\" [mpProps]=\"o.bag\">\n {{ o.label }}\n </option>\n }\n </select>\n </label>\n @if (p_view.projection) {\n <span data-mps=\"query-builder\" [mpProps]=\"p_view.projectionBox\">\n <span data-mps=\"query-builder\" [mpProps]=\"p_view.toolbarLabel\">\n {{ p_view.text.columns }}\n :\n </span>\n @for (p of p_view.projections; track p.key) {\n <label data-mps=\"query-builder\" [mpProps]=\"p.box\">\n <input data-mps=\"query-builder\" [mpProps]=\"p.input\">\n {{ p.label }}\n </label>\n }\n </span>\n }\n @if (p_view.projection) {\n <span data-mps=\"query-builder\" [mpProps]=\"p_view.sortBox\">\n <span data-mps=\"query-builder\" [mpProps]=\"p_view.toolbarLabel\">\n {{ p_view.text.sortBy }}\n :\n </span>\n @for (s of p_view.sorts; track s.key) {\n <span data-mps=\"query-builder\" [mpProps]=\"s.box\">\n <select data-mps=\"query-builder\" [mpProps]=\"s.field\">\n @for (o of s.fields; track o.key) {\n <option data-mps=\"query-builder\" [mpProps]=\"o.bag\">\n {{ o.label }}\n </option>\n }\n </select>\n <select data-mps=\"query-builder\" [mpProps]=\"s.direction\">\n @for (o of s.directions; track o.key) {\n <option data-mps=\"query-builder\" [mpProps]=\"o.bag\">\n {{ o.label }}\n </option>\n }\n </select>\n <button data-mps=\"query-builder\" [mpProps]=\"s.remove\">\n ×\n </button>\n </span>\n }\n <button data-mps=\"query-builder\" [mpProps]=\"p_view.sortAdd\">\n + \n {{ p_view.text.addSort }}\n </button>\n </span>\n }\n </div>\n}\n@if (p_view.saved) {\n <div data-mps=\"query-builder\" [mpProps]=\"p_view.savedBox\">\n <div data-mps=\"query-builder\" [mpProps]=\"p_view.savedList\">\n @if (p_view.savedQueries.length === 0) {\n <span data-mps=\"query-builder\" [mpProps]=\"p_view.savedEmpty\">\n {{ p_view.text.noSavedQueries }}\n </span>\n }\n @for (q of p_view.savedQueries; track q.key) {\n <span data-mps=\"query-builder\" [mpProps]=\"q.box\">\n <button data-mps=\"query-builder\" [mpProps]=\"q.load\">\n {{ q.loadText }}\n </button>\n <button data-mps=\"query-builder\" [mpProps]=\"q.remove\">\n {{ p_view.text.deleteQuery }}\n </button>\n </span>\n }\n </div>\n <span data-mps=\"query-builder\" [mpProps]=\"p_view.savedNew\">\n <input data-mps=\"query-builder\" [mpProps]=\"p_view.savedName\">\n <button data-mps=\"query-builder\" [mpProps]=\"p_view.savedSave\">\n 💾 \n {{ p_view.text.saveCurrentAs }}\n </button>\n </span>\n </div>\n}\n@if (p_view.preview) {\n <pre data-mps=\"query-builder\" [mpProps]=\"p_view.previewBox\">\n {{ p_view.previewText }}\n </pre>\n}\n<ul data-mps=\"query-builder\" [mpProps]=\"p_view.list\">\n <ng-container [ngTemplateOutlet]=\"partial_QueryBuilderItem\" [ngTemplateOutletContext]=\"{ node: p_view.tree, view: p_view }\" />\n</ul>\n<ng-template #partial_QueryBuilderItem mpPartialQueryBuilderItem let-pp_node=\"node\" let-pp_view=\"view\">\n <li data-mps=\"query-builder\" [mpProps]=\"pp_node.item\">\n @if (pp_node.kind === 'group') {\n <div data-mps=\"query-builder\" [mpProps]=\"pp_node.group.header\">\n <span data-mps=\"query-builder\" [mpProps]=\"pp_node.group.logic\">\n <button data-mps=\"query-builder\" [mpProps]=\"pp_node.group.and\">\n {{ pp_view.text.logicAnd }}\n </button>\n <button data-mps=\"query-builder\" [mpProps]=\"pp_node.group.or\">\n {{ pp_view.text.logicOr }}\n </button>\n </span>\n <span data-mps=\"query-builder\" [mpProps]=\"pp_node.group.actions\">\n <button data-mps=\"query-builder\" [mpProps]=\"pp_node.group.addCondition\">\n + \n {{ pp_view.text.addCondition }}\n </button>\n <button data-mps=\"query-builder\" [mpProps]=\"pp_node.group.addGroup\">\n + \n {{ pp_view.text.addGroup }}\n </button>\n @if (pp_node.group.canAddSubquery) {\n <button data-mps=\"query-builder\" [mpProps]=\"pp_node.group.addSubquery\">\n + \n {{ pp_view.text.addSubquery }}\n </button>\n }\n @if (pp_node.group.removable) {\n <button data-mps=\"query-builder\" [mpProps]=\"pp_node.group.remove\">\n ×\n </button>\n }\n </span>\n </div>\n } @else if (pp_node.kind === 'condition') {\n <div data-mps=\"query-builder\" [mpProps]=\"pp_node.condition.box\">\n <button data-mps=\"query-builder\" [mpProps]=\"pp_node.condition.handle\">\n ⋮\n </button>\n <select data-mps=\"query-builder\" [mpProps]=\"pp_node.condition.field\">\n @for (o of pp_node.condition.fields; track o.key) {\n <option data-mps=\"query-builder\" [mpProps]=\"o.bag\">\n {{ o.label }}\n </option>\n }\n </select>\n <select data-mps=\"query-builder\" [mpProps]=\"pp_node.condition.operator\">\n @for (o of pp_node.condition.operators; track o.key) {\n <option data-mps=\"query-builder\" [mpProps]=\"o.bag\">\n {{ o.label }}\n </option>\n }\n </select>\n @if (pp_node.condition.hasEditor) {\n <span data-mps=\"query-builder\" [mpProps]=\"pp_node.condition.editor.wrap\">\n @if (pp_node.condition.editor.custom) {\n @if (slots().editor; as slot_editor) {\n <ng-container [ngTemplateOutlet]=\"slot_editor\" [ngTemplateOutletContext]=\"{ $implicit: { ctx: pp_node.condition.editor.ctx }, ctx: pp_node.condition.editor.ctx }\" />\n }\n } @else if (pp_node.condition.editor.isSelect) {\n <select data-mps=\"query-builder\" [mpProps]=\"pp_node.condition.editor.select\">\n @for (o of pp_node.condition.editor.options; track o.key) {\n <option data-mps=\"query-builder\" [mpProps]=\"o.bag\">\n {{ o.label }}\n </option>\n }\n </select>\n } @else if (pp_node.condition.editor.isChips) {\n <span data-mps=\"query-builder\" [mpProps]=\"pp_node.condition.editor.chipBox\">\n @for (c of pp_node.condition.editor.chips; track c.key) {\n <span data-mps=\"query-builder\" [mpProps]=\"c.bag\">\n {{ c.label }}\n <button data-mps=\"query-builder\" [mpProps]=\"c.remove\">\n ×\n </button>\n </span>\n }\n <input data-mps=\"query-builder\" [mpProps]=\"pp_node.condition.editor.chipAdd\">\n </span>\n } @else {\n <span data-mps=\"query-builder\" [mpProps]=\"pp_node.condition.editor.inputBox\">\n @for (inp of pp_node.condition.editor.inputs; track inp.key) {\n @if (inp.sep) {\n <span data-mps=\"query-builder\" [mpProps]=\"pp_node.condition.editor.sep\">\n … \n </span>\n }\n <input data-mps=\"query-builder\" [mpProps]=\"inp.bag\">\n }\n </span>\n }\n </span>\n }\n <button data-mps=\"query-builder\" [mpProps]=\"pp_node.condition.remove\">\n ×\n </button>\n </div>\n } @else if (pp_node.kind === 'subquery') {\n <div data-mps=\"query-builder\" [mpProps]=\"pp_node.subquery.header\">\n <span data-mps=\"query-builder\" [mpProps]=\"pp_view.subqueryField\">\n {{ pp_node.subquery.fieldLabel }}\n </span>\n <span data-mps=\"query-builder\" [mpProps]=\"pp_view.subqueryOperator\">\n {{ pp_node.subquery.operatorLabel }}\n </span>\n @if (pp_node.subquery.target) {\n <span data-mps=\"query-builder\" [mpProps]=\"pp_view.subqueryTarget\">\n (\n {{ pp_node.subquery.target }}\n )\n </span>\n }\n <button data-mps=\"query-builder\" [mpProps]=\"pp_node.subquery.remove\">\n ×\n </button>\n </div>\n } @else {\n <div data-mps=\"query-builder\" [mpProps]=\"pp_node.note\">\n {{ pp_node.text }}\n </div>\n }\n @if (pp_node.children.length) {\n <ul data-mps=\"query-builder\" [mpProps]=\"pp_node.list\">\n @for (child of pp_node.children; track child.key) {\n <ng-container [ngTemplateOutlet]=\"partial_QueryBuilderItem\" [ngTemplateOutletContext]=\"{ node: child, view: pp_view }\" />\n }\n </ul>\n }\n </li>\n</ng-template>\n","// GENERATED from the query-builder manifest by @mintplayer/nx-component-compiler. Do not edit.\nexport { BsQueryBuilderComponent, BsQueryBuilderEditorDirective } from './query-builder.component.generated';\n","// The query builder is generated from @mintplayer/ui-core/query-builder (PRD #437 D10).\nexport * from './generated';\nexport * from './value-accessor/query-builder-value-accessor';\nexport {\n DEFAULT_MESSAGES,\n DEFAULT_OPERATOR_CATALOG,\n MaxDepthExceededError,\n addChild,\n addEmptyConditionTo,\n addEmptyGroupTo,\n addEmptySubqueryTo,\n changeConditionField,\n changeConditionOperator,\n cloneTree,\n collectDescendantIds,\n defaultValueFor,\n emptyCondition,\n emptyGroup,\n emptySubquery,\n findNodeById,\n mapTree,\n moveNode,\n newId,\n operatorsForType,\n removeNode,\n renderExpression,\n setGroupLogic,\n updateCondition,\n validateOperatorOverrides,\n valueShapeFor,\n visitTree,\n} from '@mintplayer/ui-core/query-builder';\nexport type {\n Condition,\n EditorContext,\n EntitySchema,\n Expression,\n FieldDef,\n FieldDefOption,\n FieldType,\n Group,\n Operator,\n OperatorCatalog,\n OperatorOverrides,\n QueryBuilderMessages,\n RenderExpressionOptions,\n SaveQueryDetail,\n SavedQuery,\n SavedQueryNameDetail,\n SortDescriptor,\n SubQueryCondition,\n TreeVisitor,\n ValidateOperatorOverridesResult,\n ValueShape,\n VisitTreeOptions,\n VisitorContext,\n} from '@mintplayer/ui-core/query-builder';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["ext_extendInputs","i1.BsQueryBuilderValueAccessor","ext_hostDirectives"],"mappings":";;;;;;;;AAKA;;;;;AAKG;MAOU,2BAA2B,CAAA;AANxC,IAAA,WAAA,GAAA;AAOmB,QAAA,IAAA,CAAA,QAAQ,GAAG,MAAM,CAAC,QAAQ,CAAC;AAC3B,QAAA,IAAA,CAAA,UAAU,GAAG,MAAM,CAAC,UAAU,CAAC;;QAGvC,IAAA,CAAA,KAAK,GAAG,MAAM,CAAC,KAAK;kFAAC;QACrB,IAAA,CAAA,SAAS,GAAG,MAAM,CAAoB,IAAI;sFAAC;QAC3C,IAAA,CAAA,QAAQ,GAAG,MAAM,CAAC,KAAK;qFAAC;AAEzB,QAAA,IAAA,CAAA,QAAQ,GAAuC,MAAM,SAAS;AACtE,QAAA,IAAA,CAAA,SAAS,GAAe,MAAM,SAAS;AA4BxC,IAAA;IA1BC,QAAQ,GAAA;;AAEN,QAAA,MAAM,GAAG,GAAG,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,uBAAuB,CAAC,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC,KAAK,KAAI;YAC/E,IAAI,CAAC,IAAI,CAAC,KAAK,EAAE,IAAI,KAAK,KAAK,IAAI,CAAC,SAAS,EAAE;gBAAE;AACjD,YAAA,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,KAAK,CAAC;AACzB,YAAA,IAAI,CAAC,QAAQ,CAAC,KAAK,CAAC;AACtB,QAAA,CAAC,CAAC;AAC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EAAA,CAAA,CAAA;;2FAqBvB,uBAAuB,EAAA,UAAA,EAAA,CAAA;kBAPnC,SAAS;AACE,YAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,kBAAkB,EAAA,OAAA,EAEnB,CAAC,gBAAgB,EAAE,gBAAgB,EAAE,uBAAuB,CAAC,EAAA,eAAA,EACrD,uBAAuB,CAAC,MAAM,kBAC/BC,cAAkB,EAAA,QAAA,EAAA,shTAAA,EAAA;26DAiCS,6BAA6B,CAAA,EAAA,EAAA,QAAA,EAAA,IAAA,EAAA,CAAA,EAAA,CAAA,EAAA,EAAA,CAAA;;AEtE1E;;ACAA;;ACAA;;AAEG;;;;"}
1
+ {"version":3,"file":"mintplayer-ng-bootstrap-query-builder.mjs","sources":["../../../../libs/mintplayer-ng-bootstrap/query-builder/src/value-accessor/query-builder-value-accessor.ts","../../../../libs/mintplayer-ng-bootstrap/query-builder/src/query-builder.angular.ts","../../../../libs/mintplayer-ng-bootstrap/query-builder/src/generated/query-builder.component.generated.ts","../../../../libs/mintplayer-ng-bootstrap/query-builder/src/generated/query-builder.view.generated.html","../../../../libs/mintplayer-ng-bootstrap/query-builder/src/generated/index.ts","../../../../libs/mintplayer-ng-bootstrap/query-builder/src/index.ts","../../../../libs/mintplayer-ng-bootstrap/query-builder/mintplayer-ng-bootstrap-query-builder.ts"],"sourcesContent":["import { DestroyRef, Directive, Injector, OnInit, forwardRef, inject, signal } from '@angular/core';\nimport { ControlValueAccessor, NG_VALUE_ACCESSOR } from '@angular/forms';\nimport type { Expression } from '@mintplayer/ui-core/query-builder';\nimport { BsQueryBuilderComponent } from '../generated';\n\n/**\n * The `ControlValueAccessor` of `bs-query-builder` (a host directive of the\n * generated component, see `query-builder.angular.ts`). A bound form control\n * drives the tree through `viewValue`; every edit the user makes reaches the\n * form through the component's `query` model, which a form write never touches.\n */\n@Directive({\n providers: [{ provide: NG_VALUE_ACCESSOR, useExisting: forwardRef(() => BsQueryBuilderValueAccessor), multi: true }],\n host: {\n '(focusout)': 'onTouched()',\n },\n})\nexport class BsQueryBuilderValueAccessor implements ControlValueAccessor, OnInit {\n private readonly injector = inject(Injector);\n private readonly destroyRef = inject(DestroyRef);\n\n /** A form control drives the tree: its `viewValue` wins over the `query` input. */\n readonly bound = signal(false);\n readonly viewValue = signal<Expression | null>(null);\n readonly disabled = signal(false);\n\n private onChange: (value: Expression | null) => void = () => undefined;\n onTouched: () => void = () => undefined;\n\n ngOnInit(): void {\n // The component is created after its host directives, so it is looked up here.\n const sub = this.injector.get(BsQueryBuilderComponent).query.subscribe((value) => {\n if (!this.bound() || value === this.viewValue()) return;\n this.viewValue.set(value);\n this.onChange(value);\n });\n this.destroyRef.onDestroy(() => sub.unsubscribe());\n }\n\n writeValue(value: Expression | null | undefined): void {\n this.viewValue.set(value ?? null);\n }\n\n registerOnChange(fn: (value: Expression | null) => void): void {\n this.bound.set(true);\n this.onChange = fn;\n }\n\n registerOnTouched(fn: () => void): void {\n this.onTouched = fn;\n }\n\n setDisabledState(isDisabled: boolean): void {\n this.disabled.set(isDisabled);\n }\n}\n","import { computed, inject } from '@angular/core';\nimport type { QueryBuilderInputs } from '@mintplayer/ui-core/query-builder';\nimport { BsQueryBuilderValueAccessor } from './value-accessor/query-builder-value-accessor';\n\n/*\n * The Angular extension of the generated `bs-query-builder` (PRD #437 D10\n * escape hatch): Angular forms. A bound form control drives the tree and the\n * disabled state.\n */\n\nexport const hostDirectives = [BsQueryBuilderValueAccessor];\n\nexport function extendInputs(inputs: () => QueryBuilderInputs): () => QueryBuilderInputs {\n const accessor = inject(BsQueryBuilderValueAccessor, { self: true });\n return computed<QueryBuilderInputs>(() => {\n const value = inputs();\n return {\n ...value,\n query: accessor.bound() ? accessor.viewValue() : value.query,\n disabled: value.disabled || accessor.disabled(),\n };\n });\n}\n","// GENERATED from the query-builder manifest (query-builder) by @mintplayer/nx-component-compiler. Do not edit.\nimport { ChangeDetectionStrategy, Component, Directive, ElementRef, TemplateRef, booleanAttribute, computed, contentChild, inject, input, model, numberAttribute, output } from '@angular/core';\nimport { NgTemplateOutlet } from '@angular/common';\nimport { MpPropsDirective, useCore, useScopedStyles } from '@mintplayer/ng-bootstrap/machine';\nimport { type EditorContext, type Expression, queryBuilderCore, type QueryBuilderInputs, type QueryBuilderNode, queryBuilderScopedStyles, type QueryBuilderView, type SavedQueryNameDetail, type SaveQueryDetail, type SortDescriptor } from '@mintplayer/ui-core/query-builder';\nimport { bootstrapForms } from '@mintplayer/ui-core/bootstrap/forms';\nimport { bootstrapButtonGroup } from '@mintplayer/ui-core/bootstrap/button-group';\nimport { hostDirectives as ext_hostDirectives, extendInputs as ext_extendInputs } from '../query-builder.angular';\n\n/** The `editor` slot of `<bs-query-builder>`: `<ng-template bsQueryBuilderEditor>` or `*bsQueryBuilderEditor`. */\n@Directive({ selector: '[bsQueryBuilderEditor]' })\nexport class BsQueryBuilderEditorDirective {\n readonly templateRef = inject<TemplateRef<{ ctx: EditorContext } & { $implicit: { ctx: EditorContext } }>>(TemplateRef);\n static ngTemplateContextGuard(_dir: BsQueryBuilderEditorDirective, ctx: unknown): ctx is { ctx: EditorContext } & { $implicit: { ctx: EditorContext } } {\n return true;\n }\n}\n\n/** Types the `QueryBuilderItem` partial's context in this template. */\n@Directive({ selector: 'ng-template[mpPartialQueryBuilderItem]' })\nexport class QueryBuilderItemPartial {\n static ngTemplateContextGuard(_dir: QueryBuilderItemPartial, ctx: unknown): ctx is { node: QueryBuilderNode; view: QueryBuilderView } {\n return true;\n }\n}\n\n/**\n * A visual editor for a filter expression: AND/OR groups, conditions and sub-queries over a relation (#437).\n *\n * `query` is two-way. The tree renders as flat rows, so the server render shows the whole query.\n * A field with `editor: 'custom'` renders its value through the `editor` slot, which receives an\n * `EditorContext` (call `ctx.onChange(next)`). Rows reorder by dragging the handle, or with\n * Alt+Up/Down on a row. An `aria-label` names it.\n */\n@Component({\n selector: 'bs-query-builder',\n templateUrl: './query-builder.view.generated.html',\n imports: [MpPropsDirective, NgTemplateOutlet, QueryBuilderItemPartial],\n changeDetection: ChangeDetectionStrategy.OnPush,\n hostDirectives: ext_hostDirectives,\n})\nexport class BsQueryBuilderComponent {\n /** The host element. */\n readonly elementRef = inject<ElementRef<HTMLElement>>(ElementRef);\n\n readonly query = model<QueryBuilderInputs['query']>(null);\n readonly schema = input<QueryBuilderInputs['schema']>([]);\n readonly rootEntity = model<QueryBuilderInputs['rootEntity']>('');\n readonly multiEntityPickerEnabled = input<QueryBuilderInputs['multiEntityPickerEnabled'], unknown>(false, { transform: booleanAttribute });\n readonly selectedFields = model<QueryBuilderInputs['selectedFields']>([]);\n readonly sortBy = model<QueryBuilderInputs['sortBy']>([]);\n readonly disabled = input<QueryBuilderInputs['disabled'], unknown>(false, { transform: booleanAttribute });\n readonly messages = input<QueryBuilderInputs['messages']>();\n readonly maxDepth = input<QueryBuilderInputs['maxDepth'], unknown>(32, { transform: (v: unknown) => numberAttribute(v) as QueryBuilderInputs['maxDepth'] });\n readonly showPreview = input<QueryBuilderInputs['showPreview'], unknown>(false, { transform: booleanAttribute });\n readonly showSavedQueries = input<QueryBuilderInputs['showSavedQueries'], unknown>(false, { transform: booleanAttribute });\n readonly savedQueries = input<QueryBuilderInputs['savedQueries']>([]);\n /** The user edited the query. */\n readonly querychange = output<Expression>();\n /** The user picked another entity in the toolbar. */\n readonly rootentitychange = output<string>();\n /** The projected columns changed. */\n readonly selectedfieldschange = output<string[]>();\n /** The sort changed. */\n readonly sortbychange = output<SortDescriptor[]>();\n /** Save the current query under a name. */\n readonly savequery = output<SaveQueryDetail>();\n /** Load the named saved query. */\n readonly loadquery = output<SavedQueryNameDetail>();\n /** Delete the named saved query. */\n readonly deletequery = output<SavedQueryNameDetail>();\n\n private readonly editorSlot = contentChild(BsQueryBuilderEditorDirective);\n /** The template's named slots. */\n protected readonly slots = computed(() => ({ editor: this.editorSlot()?.templateRef }));\n readonly #core = useCore(queryBuilderCore, { inputs: ext_extendInputs(() => ({ query: this.query(), schema: this.schema(), rootEntity: this.rootEntity(), multiEntityPickerEnabled: this.multiEntityPickerEnabled(), selectedFields: this.selectedFields(), sortBy: this.sortBy(), disabled: this.disabled(), messages: this.messages(), maxDepth: this.maxDepth(), showPreview: this.showPreview(), showSavedQueries: this.showSavedQueries(), savedQueries: this.savedQueries() })), idPrefix: 'bs-query-builder', outputs: { queryChange: this.querychange, rootEntityChange: this.rootentitychange, selectedFieldsChange: this.selectedfieldschange, sortByChange: this.sortbychange, saveQuery: this.savequery, loadQuery: this.loadquery, deleteQuery: this.deletequery }, hostBag: (props) => ({ ...props.view.root, 'data-mps': 'query-builder' }), models: { query: this.query, rootEntity: this.rootEntity, selectedFields: this.selectedFields, sortBy: this.sortBy } });\n /** The template's props. */\n protected readonly props = this.#core.props;\n\n constructor() {\n useScopedStyles(bootstrapForms.key, bootstrapForms.css, { order: bootstrapForms.order }); useScopedStyles(bootstrapButtonGroup.key, bootstrapButtonGroup.css, { order: bootstrapButtonGroup.order }); useScopedStyles('query-builder', queryBuilderScopedStyles);\n }\n}\n","<!-- GENERATED from libs/mintplayer-ui-core/query-builder/src/templates/query-builder.view.vue by @mintplayer/nx-component-compiler. Do not edit. -->\n@let p_view = props().view;\n@if (p_view.toolbar) {\n <div data-mps=\"query-builder\" [mpProps]=\"p_view.toolbarBox\">\n <label data-mps=\"query-builder\" [mpProps]=\"p_view.toolbarLabel\">\n {{ p_view.text.entity }}\n : \n <select data-mps=\"query-builder\" [mpProps]=\"p_view.entity\">\n @for (o of p_view.entities; track o.key) {\n <option data-mps=\"query-builder\" [mpProps]=\"o.bag\">\n {{ o.label }}\n </option>\n }\n </select>\n </label>\n @if (p_view.projection) {\n <span data-mps=\"query-builder\" [mpProps]=\"p_view.projectionBox\">\n <span data-mps=\"query-builder\" [mpProps]=\"p_view.toolbarLabel\">\n {{ p_view.text.columns }}\n :\n </span>\n @for (p of p_view.projections; track p.key) {\n <label data-mps=\"query-builder\" [mpProps]=\"p.box\">\n <input data-mps=\"query-builder\" [mpProps]=\"p.input\">\n {{ p.label }}\n </label>\n }\n </span>\n }\n @if (p_view.projection) {\n <span data-mps=\"query-builder\" [mpProps]=\"p_view.sortBox\">\n <span data-mps=\"query-builder\" [mpProps]=\"p_view.toolbarLabel\">\n {{ p_view.text.sortBy }}\n :\n </span>\n @for (s of p_view.sorts; track s.key) {\n <span data-mps=\"query-builder\" [mpProps]=\"s.box\">\n <select data-mps=\"query-builder\" [mpProps]=\"s.field\">\n @for (o of s.fields; track o.key) {\n <option data-mps=\"query-builder\" [mpProps]=\"o.bag\">\n {{ o.label }}\n </option>\n }\n </select>\n <select data-mps=\"query-builder\" [mpProps]=\"s.direction\">\n @for (o of s.directions; track o.key) {\n <option data-mps=\"query-builder\" [mpProps]=\"o.bag\">\n {{ o.label }}\n </option>\n }\n </select>\n <button data-mps=\"query-builder\" [mpProps]=\"s.remove\">\n ×\n </button>\n </span>\n }\n <button data-mps=\"query-builder\" [mpProps]=\"p_view.sortAdd\">\n + \n {{ p_view.text.addSort }}\n </button>\n </span>\n }\n </div>\n}\n@if (p_view.saved) {\n <div data-mps=\"query-builder\" [mpProps]=\"p_view.savedBox\">\n <div data-mps=\"query-builder\" [mpProps]=\"p_view.savedList\">\n @if (p_view.savedQueries.length === 0) {\n <span data-mps=\"query-builder\" [mpProps]=\"p_view.savedEmpty\">\n {{ p_view.text.noSavedQueries }}\n </span>\n }\n @for (q of p_view.savedQueries; track q.key) {\n <span data-mps=\"query-builder\" [mpProps]=\"q.box\">\n <button data-mps=\"query-builder\" [mpProps]=\"q.load\">\n {{ q.loadText }}\n </button>\n <button data-mps=\"query-builder\" [mpProps]=\"q.remove\">\n {{ p_view.text.deleteQuery }}\n </button>\n </span>\n }\n </div>\n <span data-mps=\"query-builder\" [mpProps]=\"p_view.savedNew\">\n <input data-mps=\"query-builder\" [mpProps]=\"p_view.savedName\">\n <button data-mps=\"query-builder\" [mpProps]=\"p_view.savedSave\">\n 💾 \n {{ p_view.text.saveCurrentAs }}\n </button>\n </span>\n </div>\n}\n@if (p_view.preview) {\n <pre data-mps=\"query-builder\" [mpProps]=\"p_view.previewBox\">\n {{ p_view.previewText }}\n </pre>\n}\n<ul data-mps=\"query-builder\" [mpProps]=\"p_view.list\">\n <ng-container [ngTemplateOutlet]=\"partial_QueryBuilderItem\" [ngTemplateOutletContext]=\"{ node: p_view.tree, view: p_view }\" />\n</ul>\n<ng-template #partial_QueryBuilderItem mpPartialQueryBuilderItem let-pp_node=\"node\" let-pp_view=\"view\">\n <li data-mps=\"query-builder\" [mpProps]=\"pp_node.item\">\n @if (pp_node.kind === 'group') {\n <div data-mps=\"query-builder\" [mpProps]=\"pp_node.group.header\">\n <span data-mps=\"query-builder\" [mpProps]=\"pp_node.group.logic\">\n <button data-mps=\"query-builder\" [mpProps]=\"pp_node.group.and\">\n {{ pp_view.text.logicAnd }}\n </button>\n <button data-mps=\"query-builder\" [mpProps]=\"pp_node.group.or\">\n {{ pp_view.text.logicOr }}\n </button>\n </span>\n <span data-mps=\"query-builder\" [mpProps]=\"pp_node.group.actions\">\n <button data-mps=\"query-builder\" [mpProps]=\"pp_node.group.addCondition\">\n + \n {{ pp_view.text.addCondition }}\n </button>\n <button data-mps=\"query-builder\" [mpProps]=\"pp_node.group.addGroup\">\n + \n {{ pp_view.text.addGroup }}\n </button>\n @if (pp_node.group.canAddSubquery) {\n <button data-mps=\"query-builder\" [mpProps]=\"pp_node.group.addSubquery\">\n + \n {{ pp_view.text.addSubquery }}\n </button>\n }\n @if (pp_node.group.removable) {\n <button data-mps=\"query-builder\" [mpProps]=\"pp_node.group.remove\">\n ×\n </button>\n }\n </span>\n </div>\n } @else if (pp_node.kind === 'condition') {\n <div data-mps=\"query-builder\" [mpProps]=\"pp_node.condition.box\">\n <button data-mps=\"query-builder\" [mpProps]=\"pp_node.condition.handle\">\n ⋮\n </button>\n <select data-mps=\"query-builder\" [mpProps]=\"pp_node.condition.field\">\n @for (o of pp_node.condition.fields; track o.key) {\n <option data-mps=\"query-builder\" [mpProps]=\"o.bag\">\n {{ o.label }}\n </option>\n }\n </select>\n <select data-mps=\"query-builder\" [mpProps]=\"pp_node.condition.operator\">\n @for (o of pp_node.condition.operators; track o.key) {\n <option data-mps=\"query-builder\" [mpProps]=\"o.bag\">\n {{ o.label }}\n </option>\n }\n </select>\n @if (pp_node.condition.hasEditor) {\n <span data-mps=\"query-builder\" [mpProps]=\"pp_node.condition.editor.wrap\">\n @if (pp_node.condition.editor.custom) {\n @if (slots().editor; as slot_editor) {\n <ng-container [ngTemplateOutlet]=\"slot_editor\" [ngTemplateOutletContext]=\"{ $implicit: { ctx: pp_node.condition.editor.ctx }, ctx: pp_node.condition.editor.ctx }\" />\n }\n } @else if (pp_node.condition.editor.isSelect) {\n <select data-mps=\"query-builder\" [mpProps]=\"pp_node.condition.editor.select\">\n @for (o of pp_node.condition.editor.options; track o.key) {\n <option data-mps=\"query-builder\" [mpProps]=\"o.bag\">\n {{ o.label }}\n </option>\n }\n </select>\n } @else if (pp_node.condition.editor.isChips) {\n <span data-mps=\"query-builder\" [mpProps]=\"pp_node.condition.editor.chipBox\">\n @for (c of pp_node.condition.editor.chips; track c.key) {\n <span data-mps=\"query-builder\" [mpProps]=\"c.bag\">\n {{ c.label }}\n <button data-mps=\"query-builder\" [mpProps]=\"c.remove\">\n ×\n </button>\n </span>\n }\n <input data-mps=\"query-builder\" [mpProps]=\"pp_node.condition.editor.chipAdd\">\n </span>\n } @else {\n <span data-mps=\"query-builder\" [mpProps]=\"pp_node.condition.editor.inputBox\">\n @for (inp of pp_node.condition.editor.inputs; track inp.key) {\n @if (inp.sep) {\n <span data-mps=\"query-builder\" [mpProps]=\"pp_node.condition.editor.sep\">\n … \n </span>\n }\n <input data-mps=\"query-builder\" [mpProps]=\"inp.bag\">\n }\n </span>\n }\n </span>\n }\n <button data-mps=\"query-builder\" [mpProps]=\"pp_node.condition.remove\">\n ×\n </button>\n </div>\n } @else if (pp_node.kind === 'subquery') {\n <div data-mps=\"query-builder\" [mpProps]=\"pp_node.subquery.header\">\n <span data-mps=\"query-builder\" [mpProps]=\"pp_view.subqueryField\">\n {{ pp_node.subquery.fieldLabel }}\n </span>\n <span data-mps=\"query-builder\" [mpProps]=\"pp_view.subqueryOperator\">\n {{ pp_node.subquery.operatorLabel }}\n </span>\n @if (pp_node.subquery.target) {\n <span data-mps=\"query-builder\" [mpProps]=\"pp_view.subqueryTarget\">\n (\n {{ pp_node.subquery.target }}\n )\n </span>\n }\n <button data-mps=\"query-builder\" [mpProps]=\"pp_node.subquery.remove\">\n ×\n </button>\n </div>\n } @else {\n <div data-mps=\"query-builder\" [mpProps]=\"pp_node.note\">\n {{ pp_node.text }}\n </div>\n }\n @if (pp_node.children.length) {\n <ul data-mps=\"query-builder\" [mpProps]=\"pp_node.list\">\n @for (child of pp_node.children; track child.key) {\n <ng-container [ngTemplateOutlet]=\"partial_QueryBuilderItem\" [ngTemplateOutletContext]=\"{ node: child, view: pp_view }\" />\n }\n </ul>\n }\n </li>\n</ng-template>\n","// GENERATED from the query-builder manifest by @mintplayer/nx-component-compiler. Do not edit.\nexport { BsQueryBuilderComponent, BsQueryBuilderEditorDirective } from './query-builder.component.generated';\n","// The query builder is generated from @mintplayer/ui-core/query-builder (PRD #437 D10).\nexport * from './generated';\nexport * from './value-accessor/query-builder-value-accessor';\nexport {\n DEFAULT_MESSAGES,\n DEFAULT_OPERATOR_CATALOG,\n MaxDepthExceededError,\n addChild,\n addEmptyConditionTo,\n addEmptyGroupTo,\n addEmptySubqueryTo,\n changeConditionField,\n changeConditionOperator,\n cloneTree,\n collectDescendantIds,\n defaultValueFor,\n emptyCondition,\n emptyGroup,\n emptySubquery,\n findNodeById,\n mapTree,\n moveNode,\n newId,\n operatorsForType,\n removeNode,\n renderExpression,\n setGroupLogic,\n updateCondition,\n validateOperatorOverrides,\n valueShapeFor,\n visitTree,\n} from '@mintplayer/ui-core/query-builder';\nexport type {\n Condition,\n EditorContext,\n EntitySchema,\n Expression,\n FieldDef,\n FieldDefOption,\n FieldType,\n Group,\n Operator,\n OperatorCatalog,\n OperatorOverrides,\n QueryBuilderMessages,\n RenderExpressionOptions,\n SaveQueryDetail,\n SavedQuery,\n SavedQueryNameDetail,\n SortDescriptor,\n SubQueryCondition,\n TreeVisitor,\n ValidateOperatorOverridesResult,\n ValueShape,\n VisitTreeOptions,\n VisitorContext,\n} from '@mintplayer/ui-core/query-builder';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["ext_extendInputs","i1.BsQueryBuilderValueAccessor","ext_hostDirectives"],"mappings":";;;;;;;;;;AAKA;;;;;AAKG;MAOU,2BAA2B,CAAA;AANxC,IAAA,WAAA,GAAA;AAOmB,QAAA,IAAA,CAAA,QAAQ,GAAG,MAAM,CAAC,QAAQ,CAAC;AAC3B,QAAA,IAAA,CAAA,UAAU,GAAG,MAAM,CAAC,UAAU,CAAC;;QAGvC,IAAA,CAAA,KAAK,GAAG,MAAM,CAAC,KAAK;kFAAC;QACrB,IAAA,CAAA,SAAS,GAAG,MAAM,CAAoB,IAAI;sFAAC;QAC3C,IAAA,CAAA,QAAQ,GAAG,MAAM,CAAC,KAAK;qFAAC;AAEzB,QAAA,IAAA,CAAA,QAAQ,GAAuC,MAAM,SAAS;AACtE,QAAA,IAAA,CAAA,SAAS,GAAe,MAAM,SAAS;AA4BxC,IAAA;IA1BC,QAAQ,GAAA;;AAEN,QAAA,MAAM,GAAG,GAAG,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,uBAAuB,CAAC,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC,KAAK,KAAI;YAC/E,IAAI,CAAC,IAAI,CAAC,KAAK,EAAE,IAAI,KAAK,KAAK,IAAI,CAAC,SAAS,EAAE;gBAAE;AACjD,YAAA,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,KAAK,CAAC;AACzB,YAAA,IAAI,CAAC,QAAQ,CAAC,KAAK,CAAC;AACtB,QAAA,CAAC,CAAC;AACF,QAAA,IAAI,CAAC,UAAU,CAAC,SAAS,CAAC,MAA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