@mintplayer/ng-bootstrap 22.27.0 → 22.29.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 (134) hide show
  1. package/_bootstrap.scss +4 -101
  2. package/fesm2022/mintplayer-ng-bootstrap-a11y.mjs +62 -30
  3. package/fesm2022/mintplayer-ng-bootstrap-a11y.mjs.map +1 -1
  4. package/fesm2022/mintplayer-ng-bootstrap-accordion.mjs +71 -64
  5. package/fesm2022/mintplayer-ng-bootstrap-accordion.mjs.map +1 -1
  6. package/fesm2022/mintplayer-ng-bootstrap-calendar.mjs +50 -46
  7. package/fesm2022/mintplayer-ng-bootstrap-calendar.mjs.map +1 -1
  8. package/fesm2022/mintplayer-ng-bootstrap-card.mjs +65 -94
  9. package/fesm2022/mintplayer-ng-bootstrap-card.mjs.map +1 -1
  10. package/fesm2022/mintplayer-ng-bootstrap-carousel.mjs +122 -97
  11. package/fesm2022/mintplayer-ng-bootstrap-carousel.mjs.map +1 -1
  12. package/fesm2022/mintplayer-ng-bootstrap-charts-hierarchy.mjs +80 -133
  13. package/fesm2022/mintplayer-ng-bootstrap-charts-hierarchy.mjs.map +1 -1
  14. package/fesm2022/mintplayer-ng-bootstrap-charts-sparkline.mjs +31 -19
  15. package/fesm2022/mintplayer-ng-bootstrap-charts-sparkline.mjs.map +1 -1
  16. package/fesm2022/mintplayer-ng-bootstrap-charts-trend.mjs +41 -46
  17. package/fesm2022/mintplayer-ng-bootstrap-charts-trend.mjs.map +1 -1
  18. package/fesm2022/mintplayer-ng-bootstrap-checkbox.mjs +76 -37
  19. package/fesm2022/mintplayer-ng-bootstrap-checkbox.mjs.map +1 -1
  20. package/fesm2022/mintplayer-ng-bootstrap-code-snippet.mjs +37 -82
  21. package/fesm2022/mintplayer-ng-bootstrap-code-snippet.mjs.map +1 -1
  22. package/fesm2022/mintplayer-ng-bootstrap-color-picker.mjs +1 -1
  23. package/fesm2022/mintplayer-ng-bootstrap-color-picker.mjs.map +1 -1
  24. package/fesm2022/mintplayer-ng-bootstrap-datatable.mjs +150 -813
  25. package/fesm2022/mintplayer-ng-bootstrap-datatable.mjs.map +1 -1
  26. package/fesm2022/mintplayer-ng-bootstrap-datepicker.mjs +172 -118
  27. package/fesm2022/mintplayer-ng-bootstrap-datepicker.mjs.map +1 -1
  28. package/fesm2022/mintplayer-ng-bootstrap-datetime-picker.mjs +180 -142
  29. package/fesm2022/mintplayer-ng-bootstrap-datetime-picker.mjs.map +1 -1
  30. package/fesm2022/mintplayer-ng-bootstrap-dock.mjs +66 -116
  31. package/fesm2022/mintplayer-ng-bootstrap-dock.mjs.map +1 -1
  32. package/fesm2022/mintplayer-ng-bootstrap-dropdown-menu.mjs +41 -46
  33. package/fesm2022/mintplayer-ng-bootstrap-dropdown-menu.mjs.map +1 -1
  34. package/fesm2022/mintplayer-ng-bootstrap-file-manager.mjs +80 -204
  35. package/fesm2022/mintplayer-ng-bootstrap-file-manager.mjs.map +1 -1
  36. package/fesm2022/mintplayer-ng-bootstrap-floating-labels.mjs +2 -2
  37. package/fesm2022/mintplayer-ng-bootstrap-floating-labels.mjs.map +1 -1
  38. package/fesm2022/mintplayer-ng-bootstrap-form.mjs +2 -2
  39. package/fesm2022/mintplayer-ng-bootstrap-form.mjs.map +1 -1
  40. package/fesm2022/mintplayer-ng-bootstrap-input-group.mjs +32 -17
  41. package/fesm2022/mintplayer-ng-bootstrap-input-group.mjs.map +1 -1
  42. package/fesm2022/mintplayer-ng-bootstrap-machine.mjs +220 -20
  43. package/fesm2022/mintplayer-ng-bootstrap-machine.mjs.map +1 -1
  44. package/fesm2022/mintplayer-ng-bootstrap-multi-range.mjs +98 -129
  45. package/fesm2022/mintplayer-ng-bootstrap-multi-range.mjs.map +1 -1
  46. package/fesm2022/mintplayer-ng-bootstrap-navbar.mjs +144 -265
  47. package/fesm2022/mintplayer-ng-bootstrap-navbar.mjs.map +1 -1
  48. package/fesm2022/mintplayer-ng-bootstrap-otp-input.mjs +133 -217
  49. package/fesm2022/mintplayer-ng-bootstrap-otp-input.mjs.map +1 -1
  50. package/fesm2022/mintplayer-ng-bootstrap-pagination.mjs +46 -25
  51. package/fesm2022/mintplayer-ng-bootstrap-pagination.mjs.map +1 -1
  52. package/fesm2022/mintplayer-ng-bootstrap-phone-input.mjs +166 -93
  53. package/fesm2022/mintplayer-ng-bootstrap-phone-input.mjs.map +1 -1
  54. package/fesm2022/mintplayer-ng-bootstrap-query-builder.mjs +148 -231
  55. package/fesm2022/mintplayer-ng-bootstrap-query-builder.mjs.map +1 -1
  56. package/fesm2022/mintplayer-ng-bootstrap-radio.mjs +133 -94
  57. package/fesm2022/mintplayer-ng-bootstrap-radio.mjs.map +1 -1
  58. package/fesm2022/mintplayer-ng-bootstrap-range.mjs +2 -2
  59. package/fesm2022/mintplayer-ng-bootstrap-range.mjs.map +1 -1
  60. package/fesm2022/mintplayer-ng-bootstrap-rating.mjs +76 -7
  61. package/fesm2022/mintplayer-ng-bootstrap-rating.mjs.map +1 -1
  62. package/fesm2022/mintplayer-ng-bootstrap-ribbon.mjs +766 -812
  63. package/fesm2022/mintplayer-ng-bootstrap-ribbon.mjs.map +1 -1
  64. package/fesm2022/mintplayer-ng-bootstrap-scheduler.mjs +206 -180
  65. package/fesm2022/mintplayer-ng-bootstrap-scheduler.mjs.map +1 -1
  66. package/fesm2022/mintplayer-ng-bootstrap-select.mjs +202 -141
  67. package/fesm2022/mintplayer-ng-bootstrap-select.mjs.map +1 -1
  68. package/fesm2022/mintplayer-ng-bootstrap-shell.mjs +113 -59
  69. package/fesm2022/mintplayer-ng-bootstrap-shell.mjs.map +1 -1
  70. package/fesm2022/mintplayer-ng-bootstrap-signature-pad.mjs +133 -76
  71. package/fesm2022/mintplayer-ng-bootstrap-signature-pad.mjs.map +1 -1
  72. package/fesm2022/mintplayer-ng-bootstrap-splitter.mjs +60 -87
  73. package/fesm2022/mintplayer-ng-bootstrap-splitter.mjs.map +1 -1
  74. package/fesm2022/mintplayer-ng-bootstrap-tab-control.mjs +86 -83
  75. package/fesm2022/mintplayer-ng-bootstrap-tab-control.mjs.map +1 -1
  76. package/fesm2022/mintplayer-ng-bootstrap-table.mjs +1 -2
  77. package/fesm2022/mintplayer-ng-bootstrap-table.mjs.map +1 -1
  78. package/fesm2022/mintplayer-ng-bootstrap-theming.mjs +38 -34
  79. package/fesm2022/mintplayer-ng-bootstrap-theming.mjs.map +1 -1
  80. package/fesm2022/mintplayer-ng-bootstrap-timeline.mjs +177 -147
  81. package/fesm2022/mintplayer-ng-bootstrap-timeline.mjs.map +1 -1
  82. package/fesm2022/mintplayer-ng-bootstrap-timepicker.mjs +200 -94
  83. package/fesm2022/mintplayer-ng-bootstrap-timepicker.mjs.map +1 -1
  84. package/fesm2022/mintplayer-ng-bootstrap-tree-select.mjs +186 -233
  85. package/fesm2022/mintplayer-ng-bootstrap-tree-select.mjs.map +1 -1
  86. package/fesm2022/mintplayer-ng-bootstrap-treeview.mjs +58 -136
  87. package/fesm2022/mintplayer-ng-bootstrap-treeview.mjs.map +1 -1
  88. package/fesm2022/mintplayer-ng-bootstrap-typeahead.mjs +22 -16
  89. package/fesm2022/mintplayer-ng-bootstrap-typeahead.mjs.map +1 -1
  90. package/package.json +11 -9
  91. package/types/mintplayer-ng-bootstrap-a11y.d.ts +40 -21
  92. package/types/mintplayer-ng-bootstrap-accordion.d.ts +36 -33
  93. package/types/mintplayer-ng-bootstrap-calendar.d.ts +39 -16
  94. package/types/mintplayer-ng-bootstrap-card.d.ts +25 -33
  95. package/types/mintplayer-ng-bootstrap-carousel.d.ts +70 -55
  96. package/types/mintplayer-ng-bootstrap-charts-hierarchy.d.ts +65 -45
  97. package/types/mintplayer-ng-bootstrap-charts-sparkline.d.ts +12 -3
  98. package/types/mintplayer-ng-bootstrap-charts-trend.d.ts +34 -19
  99. package/types/mintplayer-ng-bootstrap-checkbox.d.ts +34 -8
  100. package/types/mintplayer-ng-bootstrap-code-snippet.d.ts +32 -59
  101. package/types/mintplayer-ng-bootstrap-datatable.d.ts +217 -416
  102. package/types/mintplayer-ng-bootstrap-datepicker.d.ts +77 -29
  103. package/types/mintplayer-ng-bootstrap-datetime-picker.d.ts +83 -51
  104. package/types/mintplayer-ng-bootstrap-dock.d.ts +57 -38
  105. package/types/mintplayer-ng-bootstrap-dropdown-menu.d.ts +25 -30
  106. package/types/mintplayer-ng-bootstrap-file-manager.d.ts +61 -81
  107. package/types/mintplayer-ng-bootstrap-input-group.d.ts +17 -12
  108. package/types/mintplayer-ng-bootstrap-machine.d.ts +112 -4
  109. package/types/mintplayer-ng-bootstrap-multi-range.d.ts +53 -27
  110. package/types/mintplayer-ng-bootstrap-navbar.d.ts +88 -164
  111. package/types/mintplayer-ng-bootstrap-otp-input.d.ts +63 -30
  112. package/types/mintplayer-ng-bootstrap-pagination.d.ts +23 -7
  113. package/types/mintplayer-ng-bootstrap-phone-input.d.ts +77 -47
  114. package/types/mintplayer-ng-bootstrap-query-builder.d.ts +95 -98
  115. package/types/mintplayer-ng-bootstrap-radio.d.ts +68 -35
  116. package/types/mintplayer-ng-bootstrap-rating.d.ts +27 -2
  117. package/types/mintplayer-ng-bootstrap-ribbon.d.ts +546 -220
  118. package/types/mintplayer-ng-bootstrap-scheduler.d.ts +82 -197
  119. package/types/mintplayer-ng-bootstrap-select.d.ts +113 -53
  120. package/types/mintplayer-ng-bootstrap-shell.d.ts +59 -33
  121. package/types/mintplayer-ng-bootstrap-signature-pad.d.ts +63 -27
  122. package/types/mintplayer-ng-bootstrap-splitter.d.ts +45 -56
  123. package/types/mintplayer-ng-bootstrap-tab-control.d.ts +47 -26
  124. package/types/mintplayer-ng-bootstrap-table.d.ts +1 -2
  125. package/types/mintplayer-ng-bootstrap-theming.d.ts +19 -18
  126. package/types/mintplayer-ng-bootstrap-timeline.d.ts +287 -117
  127. package/types/mintplayer-ng-bootstrap-timepicker.d.ts +100 -27
  128. package/types/mintplayer-ng-bootstrap-tree-select.d.ts +188 -94
  129. package/types/mintplayer-ng-bootstrap-treeview.d.ts +74 -59
  130. package/types/mintplayer-ng-bootstrap-typeahead.d.ts +3 -0
  131. package/src/styles/utilities/cursor.scss +0 -12
  132. package/src/styles/utilities/overflow.scss +0 -12
  133. package/src/styles/utilities/white-space.scss +0 -12
  134. package/src/styles/utilities/width.scss +0 -14
@@ -14,11 +14,11 @@ class BsFormComponent {
14
14
  return false;
15
15
  }
16
16
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsFormComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
17
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.0.8", type: BsFormComponent, isStandalone: true, selector: "bs-form", inputs: { action: { classPropertyName: "action", publicName: "action", isSignal: true, isRequired: false, transformFunction: null }, method: { classPropertyName: "method", publicName: "method", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { submitted: "submitted" }, ngImport: i0, template: "<form (submit)=\"onSubmit($event)\" [action]=\"action()\" [method]=\"method()\">\n <ng-content></ng-content>\n</form>", styles: ["::ng-deep .form-label{margin-bottom:.5rem}::ng-deep .col-form-label{padding-top:calc(.375rem + var(--bs-border-width));padding-bottom:calc(.375rem + var(--bs-border-width));margin-bottom:0;font-size:inherit;line-height:1.5}::ng-deep .col-form-label-lg{padding-top:calc(.5rem + var(--bs-border-width));padding-bottom:calc(.5rem + var(--bs-border-width));font-size:1.25rem}::ng-deep .col-form-label-sm{padding-top:calc(.25rem + var(--bs-border-width));padding-bottom:calc(.25rem + var(--bs-border-width));font-size:.875rem}::ng-deep .form-text{margin-top:.25rem;font-size:.875em;color:var(--bs-secondary-color)}::ng-deep .form-control{display:block;width:100%;padding:.375rem .75rem;font-size:1rem;font-weight:400;line-height:1.5;color:var(--bs-body-color);appearance:none;background-color:var(--bs-body-bg);background-clip:padding-box;border:var(--bs-border-width) solid var(--bs-border-color);border-radius:var(--bs-border-radius);transition:border-color .15s ease-in-out,box-shadow .15s ease-in-out}@media(prefers-reduced-motion:reduce){::ng-deep .form-control{transition:none}}::ng-deep .form-control[type=file]{overflow:hidden}::ng-deep .form-control[type=file]:not(:disabled):not([readonly]){cursor:pointer}::ng-deep .form-control:focus{color:var(--bs-body-color);background-color:var(--bs-body-bg);border-color:#86b7fe;outline:0;box-shadow:0 0 0 .25rem #0d6efd40}::ng-deep .form-control::-webkit-date-and-time-value{min-width:85px;height:1.5em;margin:0}::ng-deep .form-control::-webkit-datetime-edit{display:block;padding:0}::ng-deep .form-control::placeholder{color:var(--bs-secondary-color);opacity:1}::ng-deep .form-control:disabled{background-color:var(--bs-secondary-bg);opacity:1}::ng-deep .form-control::file-selector-button{padding:.375rem .75rem;margin:-.375rem -.75rem;margin-inline-end:.75rem;color:var(--bs-body-color);background-color:var(--bs-tertiary-bg);pointer-events:none;border-color:inherit;border-style:solid;border-width:0;border-inline-end-width:var(--bs-border-width);border-radius:0;transition:color .15s ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out}@media(prefers-reduced-motion:reduce){::ng-deep .form-control::file-selector-button{transition:none}}::ng-deep .form-control:hover:not(:disabled):not([readonly])::file-selector-button{background-color:var(--bs-secondary-bg)}::ng-deep .form-control-plaintext{display:block;width:100%;padding:.375rem 0;margin-bottom:0;line-height:1.5;color:var(--bs-body-color);background-color:transparent;border:solid transparent;border-width:var(--bs-border-width) 0}::ng-deep .form-control-plaintext:focus{outline:0}::ng-deep .form-control-plaintext.form-control-sm,::ng-deep .form-control-plaintext.form-control-lg{padding-right:0;padding-left:0}::ng-deep .form-control-sm{min-height:calc(1.5em + .5rem + calc(var(--bs-border-width) * 2));padding:.25rem .5rem;font-size:.875rem;border-radius:var(--bs-border-radius-sm)}::ng-deep .form-control-sm::file-selector-button{padding:.25rem .5rem;margin:-.25rem -.5rem;margin-inline-end:.5rem}::ng-deep .form-control-lg{min-height:calc(1.5em + 1rem + calc(var(--bs-border-width) * 2));padding:.5rem 1rem;font-size:1.25rem;border-radius:var(--bs-border-radius-lg)}::ng-deep .form-control-lg::file-selector-button{padding:.5rem 1rem;margin:-.5rem -1rem;margin-inline-end:1rem}::ng-deep textarea.form-control{min-height:calc(1.5em + .75rem + calc(var(--bs-border-width) * 2))}::ng-deep textarea.form-control-sm{min-height:calc(1.5em + .5rem + calc(var(--bs-border-width) * 2))}::ng-deep textarea.form-control-lg{min-height:calc(1.5em + 1rem + calc(var(--bs-border-width) * 2))}::ng-deep .form-control-color{width:3rem;height:calc(1.5em + .75rem + calc(var(--bs-border-width) * 2));padding:.375rem}::ng-deep .form-control-color:not(:disabled):not([readonly]){cursor:pointer}::ng-deep .form-control-color::-moz-color-swatch{border:0!important;border-radius:var(--bs-border-radius)}::ng-deep .form-control-color::-webkit-color-swatch{border:0!important;border-radius:var(--bs-border-radius)}::ng-deep .form-control-color.form-control-sm{height:calc(1.5em + .5rem + calc(var(--bs-border-width) * 2))}::ng-deep .form-control-color.form-control-lg{height:calc(1.5em + 1rem + calc(var(--bs-border-width) * 2))}::ng-deep .valid-feedback{display:none;width:100%;margin-top:.25rem;font-size:.875em;color:var(--bs-form-valid-color)}::ng-deep .valid-tooltip{position:absolute;top:100%;z-index:5;display:none;max-width:100%;padding:.25rem .5rem;margin-top:.1rem;font-size:.875rem;color:#fff;background-color:var(--bs-success);border-radius:var(--bs-border-radius)}.was-validated ::ng-deep:valid~.valid-feedback,.was-validated ::ng-deep:valid~.valid-tooltip,::ng-deep .is-valid~.valid-feedback,::ng-deep .is-valid~.valid-tooltip{display:block}.was-validated ::ng-deep .form-control:valid,::ng-deep .form-control.is-valid{border-color:var(--bs-form-valid-border-color);padding-right:calc(1.5em + .75rem);background-image:url(\"data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%23198754' d='M2.3 6.73.6 4.53c-.4-1.04.46-1.4 1.1-.8l1.1 1.4 3.4-3.8c.6-.63 1.6-.27 1.2.7l-4 4.6c-.43.5-.8.4-1.1.1'/%3e%3c/svg%3e\");background-repeat:no-repeat;background-position:right calc(.375em + .1875rem) center;background-size:calc(.75em + .375rem) calc(.75em + .375rem)}.was-validated ::ng-deep .form-control:valid:focus,::ng-deep .form-control.is-valid:focus{border-color:var(--bs-form-valid-border-color);box-shadow:0 0 0 .25rem rgba(var(--bs-success-rgb),.25)}.was-validated ::ng-deep textarea.form-control:valid,::ng-deep textarea.form-control.is-valid{padding-right:calc(1.5em + .75rem);background-position:top calc(.375em + .1875rem) right calc(.375em + .1875rem)}.was-validated ::ng-deep .form-select:valid,::ng-deep .form-select.is-valid{border-color:var(--bs-form-valid-border-color)}.was-validated ::ng-deep .form-select:valid:not([multiple]):not([size]),.was-validated ::ng-deep .form-select:valid:not([multiple])[size=\"1\"],::ng-deep .form-select.is-valid:not([multiple]):not([size]),::ng-deep .form-select.is-valid:not([multiple])[size=\"1\"]{--bs-form-select-bg-icon: url(\"data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%23198754' d='M2.3 6.73.6 4.53c-.4-1.04.46-1.4 1.1-.8l1.1 1.4 3.4-3.8c.6-.63 1.6-.27 1.2.7l-4 4.6c-.43.5-.8.4-1.1.1'/%3e%3c/svg%3e\");padding-right:4.125rem;background-position:right .75rem center,center right 2.25rem;background-size:16px 12px,calc(.75em + .375rem) calc(.75em + .375rem)}.was-validated ::ng-deep .form-select:valid:focus,::ng-deep .form-select.is-valid:focus{border-color:var(--bs-form-valid-border-color);box-shadow:0 0 0 .25rem rgba(var(--bs-success-rgb),.25)}.was-validated ::ng-deep .form-control-color:valid,::ng-deep .form-control-color.is-valid{width:calc(3.75rem + 1.5em)}.was-validated ::ng-deep .form-check-input:valid,::ng-deep .form-check-input.is-valid{border-color:var(--bs-form-valid-border-color)}.was-validated ::ng-deep .form-check-input:valid:checked,::ng-deep .form-check-input.is-valid:checked{background-color:var(--bs-form-valid-color)}.was-validated ::ng-deep .form-check-input:valid:focus,::ng-deep .form-check-input.is-valid:focus{box-shadow:0 0 0 .25rem rgba(var(--bs-success-rgb),.25)}.was-validated ::ng-deep .form-check-input:valid~.form-check-label,::ng-deep .form-check-input.is-valid~.form-check-label{color:var(--bs-form-valid-color)}::ng-deep .form-check-inline .form-check-input~.valid-feedback{margin-left:.5em}.was-validated ::ng-deep .input-group>.form-control:not(:focus):valid,::ng-deep .input-group>.form-control:not(:focus).is-valid,.was-validated ::ng-deep .input-group>.form-select:not(:focus):valid,::ng-deep .input-group>.form-select:not(:focus).is-valid,.was-validated ::ng-deep .input-group>.form-floating:not(:focus-within):valid,::ng-deep .input-group>.form-floating:not(:focus-within).is-valid{z-index:3}::ng-deep .invalid-feedback{display:none;width:100%;margin-top:.25rem;font-size:.875em;color:var(--bs-form-invalid-color)}::ng-deep .invalid-tooltip{position:absolute;top:100%;z-index:5;display:none;max-width:100%;padding:.25rem .5rem;margin-top:.1rem;font-size:.875rem;color:#fff;background-color:var(--bs-danger);border-radius:var(--bs-border-radius)}.was-validated ::ng-deep:invalid~.invalid-feedback,.was-validated ::ng-deep:invalid~.invalid-tooltip,::ng-deep .is-invalid~.invalid-feedback,::ng-deep .is-invalid~.invalid-tooltip{display:block}.was-validated ::ng-deep .form-control:invalid,::ng-deep .form-control.is-invalid{border-color:var(--bs-form-invalid-border-color);padding-right:calc(1.5em + .75rem);background-image:url(\"data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23dc3545'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23dc3545' stroke='none'/%3e%3c/svg%3e\");background-repeat:no-repeat;background-position:right calc(.375em + .1875rem) center;background-size:calc(.75em + .375rem) calc(.75em + .375rem)}.was-validated ::ng-deep .form-control:invalid:focus,::ng-deep .form-control.is-invalid:focus{border-color:var(--bs-form-invalid-border-color);box-shadow:0 0 0 .25rem rgba(var(--bs-danger-rgb),.25)}.was-validated ::ng-deep textarea.form-control:invalid,::ng-deep textarea.form-control.is-invalid{padding-right:calc(1.5em + .75rem);background-position:top calc(.375em + .1875rem) right calc(.375em + .1875rem)}.was-validated ::ng-deep .form-select:invalid,::ng-deep .form-select.is-invalid{border-color:var(--bs-form-invalid-border-color)}.was-validated ::ng-deep .form-select:invalid:not([multiple]):not([size]),.was-validated ::ng-deep .form-select:invalid:not([multiple])[size=\"1\"],::ng-deep .form-select.is-invalid:not([multiple]):not([size]),::ng-deep .form-select.is-invalid:not([multiple])[size=\"1\"]{--bs-form-select-bg-icon: url(\"data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23dc3545'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23dc3545' stroke='none'/%3e%3c/svg%3e\");padding-right:4.125rem;background-position:right .75rem center,center right 2.25rem;background-size:16px 12px,calc(.75em + .375rem) calc(.75em + .375rem)}.was-validated ::ng-deep .form-select:invalid:focus,::ng-deep .form-select.is-invalid:focus{border-color:var(--bs-form-invalid-border-color);box-shadow:0 0 0 .25rem rgba(var(--bs-danger-rgb),.25)}.was-validated ::ng-deep .form-control-color:invalid,::ng-deep .form-control-color.is-invalid{width:calc(3.75rem + 1.5em)}.was-validated ::ng-deep .form-check-input:invalid,::ng-deep .form-check-input.is-invalid{border-color:var(--bs-form-invalid-border-color)}.was-validated ::ng-deep .form-check-input:invalid:checked,::ng-deep .form-check-input.is-invalid:checked{background-color:var(--bs-form-invalid-color)}.was-validated ::ng-deep .form-check-input:invalid:focus,::ng-deep .form-check-input.is-invalid:focus{box-shadow:0 0 0 .25rem rgba(var(--bs-danger-rgb),.25)}.was-validated ::ng-deep .form-check-input:invalid~.form-check-label,::ng-deep .form-check-input.is-invalid~.form-check-label{color:var(--bs-form-invalid-color)}::ng-deep .form-check-inline .form-check-input~.invalid-feedback{margin-left:.5em}.was-validated ::ng-deep .input-group>.form-control:not(:focus):invalid,::ng-deep .input-group>.form-control:not(:focus).is-invalid,.was-validated ::ng-deep .input-group>.form-select:not(:focus):invalid,::ng-deep .input-group>.form-select:not(:focus).is-invalid,.was-validated ::ng-deep .input-group>.form-floating:not(:focus-within):invalid,::ng-deep .input-group>.form-floating:not(:focus-within).is-invalid{z-index:4}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
17
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.0.8", type: BsFormComponent, isStandalone: true, selector: "bs-form", inputs: { action: { classPropertyName: "action", publicName: "action", isSignal: true, isRequired: false, transformFunction: null }, method: { classPropertyName: "method", publicName: "method", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { submitted: "submitted" }, ngImport: i0, template: "<!-- This IS the form: never nest another <form> in bs-form. The HTML parser\n drops a nested form tag, so a server-rendered page hydrates against a DOM\n one level shallower than the template. Put [formGroup] on a div instead. -->\n<form (submit)=\"onSubmit($event)\" [attr.action]=\"action() ?? null\" [attr.method]=\"method() ?? null\">\n <ng-content></ng-content>\n</form>\n", changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
18
18
  }
19
19
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsFormComponent, decorators: [{
20
20
  type: Component,
21
- args: [{ selector: 'bs-form', changeDetection: ChangeDetectionStrategy.OnPush, template: "<form (submit)=\"onSubmit($event)\" [action]=\"action()\" [method]=\"method()\">\n <ng-content></ng-content>\n</form>", styles: ["::ng-deep .form-label{margin-bottom:.5rem}::ng-deep .col-form-label{padding-top:calc(.375rem + var(--bs-border-width));padding-bottom:calc(.375rem + var(--bs-border-width));margin-bottom:0;font-size:inherit;line-height:1.5}::ng-deep .col-form-label-lg{padding-top:calc(.5rem + var(--bs-border-width));padding-bottom:calc(.5rem + var(--bs-border-width));font-size:1.25rem}::ng-deep .col-form-label-sm{padding-top:calc(.25rem + var(--bs-border-width));padding-bottom:calc(.25rem + var(--bs-border-width));font-size:.875rem}::ng-deep .form-text{margin-top:.25rem;font-size:.875em;color:var(--bs-secondary-color)}::ng-deep .form-control{display:block;width:100%;padding:.375rem .75rem;font-size:1rem;font-weight:400;line-height:1.5;color:var(--bs-body-color);appearance:none;background-color:var(--bs-body-bg);background-clip:padding-box;border:var(--bs-border-width) solid var(--bs-border-color);border-radius:var(--bs-border-radius);transition:border-color .15s ease-in-out,box-shadow .15s ease-in-out}@media(prefers-reduced-motion:reduce){::ng-deep .form-control{transition:none}}::ng-deep .form-control[type=file]{overflow:hidden}::ng-deep .form-control[type=file]:not(:disabled):not([readonly]){cursor:pointer}::ng-deep .form-control:focus{color:var(--bs-body-color);background-color:var(--bs-body-bg);border-color:#86b7fe;outline:0;box-shadow:0 0 0 .25rem #0d6efd40}::ng-deep .form-control::-webkit-date-and-time-value{min-width:85px;height:1.5em;margin:0}::ng-deep .form-control::-webkit-datetime-edit{display:block;padding:0}::ng-deep .form-control::placeholder{color:var(--bs-secondary-color);opacity:1}::ng-deep .form-control:disabled{background-color:var(--bs-secondary-bg);opacity:1}::ng-deep .form-control::file-selector-button{padding:.375rem .75rem;margin:-.375rem -.75rem;margin-inline-end:.75rem;color:var(--bs-body-color);background-color:var(--bs-tertiary-bg);pointer-events:none;border-color:inherit;border-style:solid;border-width:0;border-inline-end-width:var(--bs-border-width);border-radius:0;transition:color .15s ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out}@media(prefers-reduced-motion:reduce){::ng-deep .form-control::file-selector-button{transition:none}}::ng-deep .form-control:hover:not(:disabled):not([readonly])::file-selector-button{background-color:var(--bs-secondary-bg)}::ng-deep .form-control-plaintext{display:block;width:100%;padding:.375rem 0;margin-bottom:0;line-height:1.5;color:var(--bs-body-color);background-color:transparent;border:solid transparent;border-width:var(--bs-border-width) 0}::ng-deep .form-control-plaintext:focus{outline:0}::ng-deep .form-control-plaintext.form-control-sm,::ng-deep .form-control-plaintext.form-control-lg{padding-right:0;padding-left:0}::ng-deep .form-control-sm{min-height:calc(1.5em + .5rem + calc(var(--bs-border-width) * 2));padding:.25rem .5rem;font-size:.875rem;border-radius:var(--bs-border-radius-sm)}::ng-deep .form-control-sm::file-selector-button{padding:.25rem .5rem;margin:-.25rem -.5rem;margin-inline-end:.5rem}::ng-deep .form-control-lg{min-height:calc(1.5em + 1rem + calc(var(--bs-border-width) * 2));padding:.5rem 1rem;font-size:1.25rem;border-radius:var(--bs-border-radius-lg)}::ng-deep .form-control-lg::file-selector-button{padding:.5rem 1rem;margin:-.5rem -1rem;margin-inline-end:1rem}::ng-deep textarea.form-control{min-height:calc(1.5em + .75rem + calc(var(--bs-border-width) * 2))}::ng-deep textarea.form-control-sm{min-height:calc(1.5em + .5rem + calc(var(--bs-border-width) * 2))}::ng-deep textarea.form-control-lg{min-height:calc(1.5em + 1rem + calc(var(--bs-border-width) * 2))}::ng-deep .form-control-color{width:3rem;height:calc(1.5em + .75rem + calc(var(--bs-border-width) * 2));padding:.375rem}::ng-deep .form-control-color:not(:disabled):not([readonly]){cursor:pointer}::ng-deep .form-control-color::-moz-color-swatch{border:0!important;border-radius:var(--bs-border-radius)}::ng-deep .form-control-color::-webkit-color-swatch{border:0!important;border-radius:var(--bs-border-radius)}::ng-deep .form-control-color.form-control-sm{height:calc(1.5em + .5rem + calc(var(--bs-border-width) * 2))}::ng-deep .form-control-color.form-control-lg{height:calc(1.5em + 1rem + calc(var(--bs-border-width) * 2))}::ng-deep .valid-feedback{display:none;width:100%;margin-top:.25rem;font-size:.875em;color:var(--bs-form-valid-color)}::ng-deep .valid-tooltip{position:absolute;top:100%;z-index:5;display:none;max-width:100%;padding:.25rem .5rem;margin-top:.1rem;font-size:.875rem;color:#fff;background-color:var(--bs-success);border-radius:var(--bs-border-radius)}.was-validated ::ng-deep:valid~.valid-feedback,.was-validated ::ng-deep:valid~.valid-tooltip,::ng-deep .is-valid~.valid-feedback,::ng-deep .is-valid~.valid-tooltip{display:block}.was-validated ::ng-deep .form-control:valid,::ng-deep .form-control.is-valid{border-color:var(--bs-form-valid-border-color);padding-right:calc(1.5em + .75rem);background-image:url(\"data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%23198754' d='M2.3 6.73.6 4.53c-.4-1.04.46-1.4 1.1-.8l1.1 1.4 3.4-3.8c.6-.63 1.6-.27 1.2.7l-4 4.6c-.43.5-.8.4-1.1.1'/%3e%3c/svg%3e\");background-repeat:no-repeat;background-position:right calc(.375em + .1875rem) center;background-size:calc(.75em + .375rem) calc(.75em + .375rem)}.was-validated ::ng-deep .form-control:valid:focus,::ng-deep .form-control.is-valid:focus{border-color:var(--bs-form-valid-border-color);box-shadow:0 0 0 .25rem rgba(var(--bs-success-rgb),.25)}.was-validated ::ng-deep textarea.form-control:valid,::ng-deep textarea.form-control.is-valid{padding-right:calc(1.5em + .75rem);background-position:top calc(.375em + .1875rem) right calc(.375em + .1875rem)}.was-validated ::ng-deep .form-select:valid,::ng-deep .form-select.is-valid{border-color:var(--bs-form-valid-border-color)}.was-validated ::ng-deep .form-select:valid:not([multiple]):not([size]),.was-validated ::ng-deep .form-select:valid:not([multiple])[size=\"1\"],::ng-deep .form-select.is-valid:not([multiple]):not([size]),::ng-deep .form-select.is-valid:not([multiple])[size=\"1\"]{--bs-form-select-bg-icon: url(\"data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%23198754' d='M2.3 6.73.6 4.53c-.4-1.04.46-1.4 1.1-.8l1.1 1.4 3.4-3.8c.6-.63 1.6-.27 1.2.7l-4 4.6c-.43.5-.8.4-1.1.1'/%3e%3c/svg%3e\");padding-right:4.125rem;background-position:right .75rem center,center right 2.25rem;background-size:16px 12px,calc(.75em + .375rem) calc(.75em + .375rem)}.was-validated ::ng-deep .form-select:valid:focus,::ng-deep .form-select.is-valid:focus{border-color:var(--bs-form-valid-border-color);box-shadow:0 0 0 .25rem rgba(var(--bs-success-rgb),.25)}.was-validated ::ng-deep .form-control-color:valid,::ng-deep .form-control-color.is-valid{width:calc(3.75rem + 1.5em)}.was-validated ::ng-deep .form-check-input:valid,::ng-deep .form-check-input.is-valid{border-color:var(--bs-form-valid-border-color)}.was-validated ::ng-deep .form-check-input:valid:checked,::ng-deep .form-check-input.is-valid:checked{background-color:var(--bs-form-valid-color)}.was-validated ::ng-deep .form-check-input:valid:focus,::ng-deep .form-check-input.is-valid:focus{box-shadow:0 0 0 .25rem rgba(var(--bs-success-rgb),.25)}.was-validated ::ng-deep .form-check-input:valid~.form-check-label,::ng-deep .form-check-input.is-valid~.form-check-label{color:var(--bs-form-valid-color)}::ng-deep .form-check-inline .form-check-input~.valid-feedback{margin-left:.5em}.was-validated ::ng-deep .input-group>.form-control:not(:focus):valid,::ng-deep .input-group>.form-control:not(:focus).is-valid,.was-validated ::ng-deep .input-group>.form-select:not(:focus):valid,::ng-deep .input-group>.form-select:not(:focus).is-valid,.was-validated ::ng-deep .input-group>.form-floating:not(:focus-within):valid,::ng-deep .input-group>.form-floating:not(:focus-within).is-valid{z-index:3}::ng-deep .invalid-feedback{display:none;width:100%;margin-top:.25rem;font-size:.875em;color:var(--bs-form-invalid-color)}::ng-deep .invalid-tooltip{position:absolute;top:100%;z-index:5;display:none;max-width:100%;padding:.25rem .5rem;margin-top:.1rem;font-size:.875rem;color:#fff;background-color:var(--bs-danger);border-radius:var(--bs-border-radius)}.was-validated ::ng-deep:invalid~.invalid-feedback,.was-validated ::ng-deep:invalid~.invalid-tooltip,::ng-deep .is-invalid~.invalid-feedback,::ng-deep .is-invalid~.invalid-tooltip{display:block}.was-validated ::ng-deep .form-control:invalid,::ng-deep .form-control.is-invalid{border-color:var(--bs-form-invalid-border-color);padding-right:calc(1.5em + .75rem);background-image:url(\"data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23dc3545'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23dc3545' stroke='none'/%3e%3c/svg%3e\");background-repeat:no-repeat;background-position:right calc(.375em + .1875rem) center;background-size:calc(.75em + .375rem) calc(.75em + .375rem)}.was-validated ::ng-deep .form-control:invalid:focus,::ng-deep .form-control.is-invalid:focus{border-color:var(--bs-form-invalid-border-color);box-shadow:0 0 0 .25rem rgba(var(--bs-danger-rgb),.25)}.was-validated ::ng-deep textarea.form-control:invalid,::ng-deep textarea.form-control.is-invalid{padding-right:calc(1.5em + .75rem);background-position:top calc(.375em + .1875rem) right calc(.375em + .1875rem)}.was-validated ::ng-deep .form-select:invalid,::ng-deep .form-select.is-invalid{border-color:var(--bs-form-invalid-border-color)}.was-validated ::ng-deep .form-select:invalid:not([multiple]):not([size]),.was-validated ::ng-deep .form-select:invalid:not([multiple])[size=\"1\"],::ng-deep .form-select.is-invalid:not([multiple]):not([size]),::ng-deep .form-select.is-invalid:not([multiple])[size=\"1\"]{--bs-form-select-bg-icon: url(\"data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23dc3545'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23dc3545' stroke='none'/%3e%3c/svg%3e\");padding-right:4.125rem;background-position:right .75rem center,center right 2.25rem;background-size:16px 12px,calc(.75em + .375rem) calc(.75em + .375rem)}.was-validated ::ng-deep .form-select:invalid:focus,::ng-deep .form-select.is-invalid:focus{border-color:var(--bs-form-invalid-border-color);box-shadow:0 0 0 .25rem rgba(var(--bs-danger-rgb),.25)}.was-validated ::ng-deep .form-control-color:invalid,::ng-deep .form-control-color.is-invalid{width:calc(3.75rem + 1.5em)}.was-validated ::ng-deep .form-check-input:invalid,::ng-deep .form-check-input.is-invalid{border-color:var(--bs-form-invalid-border-color)}.was-validated ::ng-deep .form-check-input:invalid:checked,::ng-deep .form-check-input.is-invalid:checked{background-color:var(--bs-form-invalid-color)}.was-validated ::ng-deep .form-check-input:invalid:focus,::ng-deep .form-check-input.is-invalid:focus{box-shadow:0 0 0 .25rem rgba(var(--bs-danger-rgb),.25)}.was-validated ::ng-deep .form-check-input:invalid~.form-check-label,::ng-deep .form-check-input.is-invalid~.form-check-label{color:var(--bs-form-invalid-color)}::ng-deep .form-check-inline .form-check-input~.invalid-feedback{margin-left:.5em}.was-validated ::ng-deep .input-group>.form-control:not(:focus):invalid,::ng-deep .input-group>.form-control:not(:focus).is-invalid,.was-validated ::ng-deep .input-group>.form-select:not(:focus):invalid,::ng-deep .input-group>.form-select:not(:focus).is-invalid,.was-validated ::ng-deep .input-group>.form-floating:not(:focus-within):invalid,::ng-deep .input-group>.form-floating:not(:focus-within).is-invalid{z-index:4}\n"] }]
21
+ args: [{ selector: 'bs-form', changeDetection: ChangeDetectionStrategy.OnPush, template: "<!-- This IS the form: never nest another <form> in bs-form. The HTML parser\n drops a nested form tag, so a server-rendered page hydrates against a DOM\n one level shallower than the template. Put [formGroup] on a div instead. -->\n<form (submit)=\"onSubmit($event)\" [attr.action]=\"action() ?? null\" [attr.method]=\"method() ?? null\">\n <ng-content></ng-content>\n</form>\n" }]
22
22
  }], propDecorators: { action: [{ type: i0.Input, args: [{ isSignal: true, alias: "action", required: false }] }], method: [{ type: i0.Input, args: [{ isSignal: true, alias: "method", required: false }] }], submitted: [{ type: i0.Output, args: ["submitted"] }] } });
23
23
 
24
24
  class BsFormGroupDirective {
@@ -1 +1 @@
1
- {"version":3,"file":"mintplayer-ng-bootstrap-form.mjs","sources":["../../../../libs/mintplayer-ng-bootstrap/form/src/form/form.component.ts","../../../../libs/mintplayer-ng-bootstrap/form/src/form/form.component.html","../../../../libs/mintplayer-ng-bootstrap/form/src/form-group/form-group.directive.ts","../../../../libs/mintplayer-ng-bootstrap/form/src/form-control/form-control.directive.ts","../../../../libs/mintplayer-ng-bootstrap/form/mintplayer-ng-bootstrap-form.ts"],"sourcesContent":["import { Component, input, output, ChangeDetectionStrategy} from '@angular/core';\n\n@Component({\n selector: 'bs-form',\n templateUrl: './form.component.html',\n styleUrls: ['./form.component.scss'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class BsFormComponent {\n readonly action = input<string | undefined>(undefined);\n readonly method = input<'GET' | 'POST' | 'PUT' | 'DELETE' | undefined>(undefined);\n\n readonly submitted = output<Event>();\n onSubmit(ev: Event) {\n this.submitted.emit(ev);\n return false;\n }\n}\n","<form (submit)=\"onSubmit($event)\" [action]=\"action()\" [method]=\"method()\">\n <ng-content></ng-content>\n</form>","import { Directive } from '@angular/core';\n\n@Directive({\n selector: '[bsFormGroup]',\n host: {\n '[class.form-group]': 'true',\n },\n})\nexport class BsFormGroupDirective {\n}\n","import { Directive, inject } from '@angular/core';\nimport { BsFormComponent } from '../form/form.component';\n\n@Directive({\n selector: 'bs-form input:not(.no-form-control), bs-form textarea:not(.no-form-control)',\n host: {\n '[class.form-control]': 'formControlClass',\n },\n})\nexport class BsFormControlDirective {\n private form = inject(BsFormComponent, { optional: true });\n formControlClass = !!this.form;\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;MAQa,eAAe,CAAA;AAN5B,IAAA,WAAA,GAAA;QAOW,IAAA,CAAA,MAAM,GAAG,KAAK,CAAqB,SAAS;mFAAC;QAC7C,IAAA,CAAA,MAAM,GAAG,KAAK,CAAgD,SAAS;mFAAC;QAExE,IAAA,CAAA,SAAS,GAAG,MAAM,EAAS;AAKrC,IAAA;AAJC,IAAA,QAAQ,CAAC,EAAS,EAAA;AAChB,QAAA,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,EAAE,C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IAAA,CAAA,gBAAgB,GAAG,CAAC,CAAC,IAAI,CAAC,IAAI;AAC/B,IAAA;8GAHY,sBAAsB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;kGAAtB,sBAAsB,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,6EAAA,EAAA,IAAA,EAAA,EAAA,UAAA,EAAA,EAAA,oBAAA,EAAA,kBAAA,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,6EAA6E;AACvF,oBAAA,IAAI,EAAE;AACJ,wBAAA,sBAAsB,EAAE,kBAAkB;AAC3C,qBAAA;AACF,iBAAA;;;ACRD;;AAEG;;;;"}
1
+ {"version":3,"file":"mintplayer-ng-bootstrap-form.mjs","sources":["../../../../libs/mintplayer-ng-bootstrap/form/src/form/form.component.ts","../../../../libs/mintplayer-ng-bootstrap/form/src/form/form.component.html","../../../../libs/mintplayer-ng-bootstrap/form/src/form-group/form-group.directive.ts","../../../../libs/mintplayer-ng-bootstrap/form/src/form-control/form-control.directive.ts","../../../../libs/mintplayer-ng-bootstrap/form/mintplayer-ng-bootstrap-form.ts"],"sourcesContent":["import { Component, input, output, ChangeDetectionStrategy} from '@angular/core';\n\n@Component({\n selector: 'bs-form',\n templateUrl: './form.component.html',\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class BsFormComponent {\n readonly action = input<string | undefined>(undefined);\n readonly method = input<'GET' | 'POST' | 'PUT' | 'DELETE' | undefined>(undefined);\n\n readonly submitted = output<Event>();\n onSubmit(ev: Event) {\n this.submitted.emit(ev);\n return false;\n }\n}\n","<!-- This IS the form: never nest another <form> in bs-form. The HTML parser\n drops a nested form tag, so a server-rendered page hydrates against a DOM\n one level shallower than the template. Put [formGroup] on a div instead. -->\n<form (submit)=\"onSubmit($event)\" [attr.action]=\"action() ?? null\" [attr.method]=\"method() ?? null\">\n <ng-content></ng-content>\n</form>\n","import { Directive } from '@angular/core';\n\n@Directive({\n selector: '[bsFormGroup]',\n host: {\n '[class.form-group]': 'true',\n },\n})\nexport class BsFormGroupDirective {\n}\n","import { Directive, inject } from '@angular/core';\nimport { BsFormComponent } from '../form/form.component';\n\n@Directive({\n selector: 'bs-form input:not(.no-form-control), bs-form textarea:not(.no-form-control)',\n host: {\n '[class.form-control]': 'formControlClass',\n },\n})\nexport class BsFormControlDirective {\n private form = inject(BsFormComponent, { optional: true });\n formControlClass = !!this.form;\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;MAOa,eAAe,CAAA;AAL5B,IAAA,WAAA,GAAA;QAMW,IAAA,CAAA,MAAM,GAAG,KAAK,CAAqB,SAAS;mFAAC;QAC7C,IAAA,CAAA,MAAM,GAAG,KAAK,CAAgD,SAAS;mFAAC;QAExE,IAAA,CAAA,SAAS,GAAG,MAAM,EAAS;AAKrC,IAAA;AAJC,IAAA,QAAQ,CAAC,EAAS,EAAA;AAChB,QAAA,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,EAAE,CAAC;AACvB,QAAA,OAAO,KAAK;IACd;8GARW,eAAe,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;AAAf,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,IAAA,EAAA,eAAe,0WCP5B,uYAMA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,CAAA,CAAA;;2FDCa,eAAe,EAAA,UAAA,EAAA,CAAA;kBAL3B,SAAS;+BACE,SAAS,EAAA,eAA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BAAA,sBAAsB,EAAE,kBAAkB;AAC3C,qBAAA;AACF,iBAAA;;;ACRD;;AAEG;;;;"}
@@ -1,35 +1,50 @@
1
1
  import * as i0 from '@angular/core';
2
- import { input, computed, CUSTOM_ELEMENTS_SCHEMA, ChangeDetectionStrategy, Component } from '@angular/core';
3
- import { BsForwardAriaDirective } from '@mintplayer/ng-bootstrap/a11y';
4
- import '@mintplayer/web-components/input-group';
2
+ import { input, computed, inject, HostAttributeToken, ChangeDetectionStrategy, Component } from '@angular/core';
3
+ import { useScopedStyles } from '@mintplayer/ng-bootstrap/machine';
4
+ import { INPUT_GROUP_SCOPE, inputGroupClasses, inputGroupRole, inputGroupScopedStyles } from '@mintplayer/ui-core/input-group';
5
5
 
6
6
  /**
7
7
  * `<bs-input-group>` — joins its children into one visually continuous control.
8
8
  *
9
- * Now a wrapper over `<mp-input-group>`. The previous version was a
10
- * `<div class="input-group">` plus a `::ng-deep` import of Bootstrap's module,
11
- * which could not style a `<bs-select>`: the rules Bootstrap keys on
12
- * `.input-group > .form-select` cannot reach inside that component's shadow root,
13
- * so a select in a group got neither the flex sizing nor collapsed inner corners.
14
- * The WC solves it with two channels (see `input-group.styles.scss`), which is why
15
- * the styling moved there rather than being duplicated here.
9
+ * The host IS Bootstrap's `.input-group` (PRD #437 wave A): its children are
10
+ * its direct children, so the baseline's `.input-group > .form-control` rules
11
+ * apply as written and a consumer's `aria-*` / `id` already sits on the
12
+ * element that carries the role. The scoped sheet adds RTL and the sizing of
13
+ * controls rendered inside a framework host (`<bs-select>`).
14
+ *
15
+ * The role is `group` only when the group is named. The name is read from the
16
+ * host's static attributes, so SSR emits the same role; a group named through
17
+ * a binding passes `role="group"` itself.
16
18
  */
17
19
  class BsInputGroupComponent {
18
20
  constructor() {
19
- /** Bootstrap sizing, applied to light-DOM and `mp-*` children alike. */
21
+ /** Bootstrap sizing; `md` adds no class. */
20
22
  this.size = input('md', /* @ts-ignore */
21
23
  ...(ngDevMode ? [{ debugName: "size" }] : /* istanbul ignore next */ []));
22
- /** `md` is the absence of a size in Bootstrap, so it is not written at all. */
23
- this.sizeAttr = computed(() => (this.size() === 'md' ? null : this.size()), /* @ts-ignore */
24
- ...(ngDevMode ? [{ debugName: "sizeAttr" }] : /* istanbul ignore next */ []));
24
+ this.scope = INPUT_GROUP_SCOPE;
25
+ this.classes = computed(() => inputGroupClasses(this.size()).join(' '), /* @ts-ignore */
26
+ ...(ngDevMode ? [{ debugName: "classes" }] : /* istanbul ignore next */ []));
27
+ this.role = inject(new HostAttributeToken('role'), { optional: true }) ??
28
+ inputGroupRole(inject(new HostAttributeToken('aria-label'), { optional: true }) !== null ||
29
+ inject(new HostAttributeToken('aria-labelledby'), { optional: true }) !== null);
30
+ useScopedStyles(INPUT_GROUP_SCOPE, inputGroupScopedStyles);
25
31
  }
26
32
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsInputGroupComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
27
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.0.8", type: BsInputGroupComponent, isStandalone: true, selector: "bs-input-group", inputs: { size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: "<mp-input-group bsForwardAria [attr.size]=\"sizeAttr()\">\n <ng-content></ng-content>\n</mp-input-group>\n", dependencies: [{ kind: "directive", type: BsForwardAriaDirective, selector: "[bsForwardAria]" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
33
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.0.8", type: BsInputGroupComponent, isStandalone: true, selector: "bs-input-group", inputs: { size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class": "classes()", "attr.data-mps": "scope", "attr.role": "role" } }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
28
34
  }
29
35
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsInputGroupComponent, decorators: [{
30
36
  type: Component,
31
- args: [{ selector: 'bs-input-group', imports: [BsForwardAriaDirective], changeDetection: ChangeDetectionStrategy.OnPush, schemas: [CUSTOM_ELEMENTS_SCHEMA], template: "<mp-input-group bsForwardAria [attr.size]=\"sizeAttr()\">\n <ng-content></ng-content>\n</mp-input-group>\n" }]
32
- }], propDecorators: { size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }] } });
37
+ args: [{
38
+ selector: 'bs-input-group',
39
+ template: '<ng-content></ng-content>',
40
+ changeDetection: ChangeDetectionStrategy.OnPush,
41
+ host: {
42
+ '[class]': 'classes()',
43
+ '[attr.data-mps]': 'scope',
44
+ '[attr.role]': 'role',
45
+ },
46
+ }]
47
+ }], ctorParameters: () => [], propDecorators: { size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }] } });
33
48
 
34
49
  /**
35
50
  * Generated bundle index. Do not edit.
@@ -1 +1 @@
1
- {"version":3,"file":"mintplayer-ng-bootstrap-input-group.mjs","sources":["../../../../libs/mintplayer-ng-bootstrap/input-group/src/input-group/input-group.component.ts","../../../../libs/mintplayer-ng-bootstrap/input-group/src/input-group/input-group.component.html","../../../../libs/mintplayer-ng-bootstrap/input-group/mintplayer-ng-bootstrap-input-group.ts"],"sourcesContent":["import { ChangeDetectionStrategy, Component, CUSTOM_ELEMENTS_SCHEMA, computed, input } from '@angular/core';\nimport { BsForwardAriaDirective } from '@mintplayer/ng-bootstrap/a11y';\n\n// Side-effect import: registers <mp-input-group>.\nimport '@mintplayer/web-components/input-group';\n\nexport type BsInputGroupSize = 'sm' | 'md' | 'lg';\n\n/**\n * `<bs-input-group>` — joins its children into one visually continuous control.\n *\n * Now a wrapper over `<mp-input-group>`. The previous version was a\n * `<div class=\"input-group\">` plus a `::ng-deep` import of Bootstrap's module,\n * which could not style a `<bs-select>`: the rules Bootstrap keys on\n * `.input-group > .form-select` cannot reach inside that component's shadow root,\n * so a select in a group got neither the flex sizing nor collapsed inner corners.\n * The WC solves it with two channels (see `input-group.styles.scss`), which is why\n * the styling moved there rather than being duplicated here.\n */\n@Component({\n selector: 'bs-input-group',\n templateUrl: './input-group.component.html',\n imports: [BsForwardAriaDirective],\n changeDetection: ChangeDetectionStrategy.OnPush,\n schemas: [CUSTOM_ELEMENTS_SCHEMA],\n})\nexport class BsInputGroupComponent {\n /** Bootstrap sizing, applied to light-DOM and `mp-*` children alike. */\n readonly size = input<BsInputGroupSize>('md');\n\n /** `md` is the absence of a size in Bootstrap, so it is not written at all. */\n protected readonly sizeAttr = computed(() => (this.size() === 'md' ? null : this.size()));\n}\n","<mp-input-group bsForwardAria [attr.size]=\"sizeAttr()\">\n <ng-content></ng-content>\n</mp-input-group>\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;AAQA;;;;;;;;;;AAUG;MAQU,qBAAqB,CAAA;AAPlC,IAAA,WAAA,GAAA;;QASW,IAAA,CAAA,IAAI,GAAG,KAAK,CAAmB,IAAI;iFAAC;;QAG1B,IAAA,CAAA,QAAQ,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,IAAI,EAAE,KAAK,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC,IAAI,EAAE,CAAC;qFAAC;AAC1F,IAAA;8GANY,qBAAqB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;kGAArB,qBAAqB,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,gBAAA,EAAA,MAAA,EAAA,EAAA,IAAA,EAAA,EAAA,iBAAA,EAAA,MAAA,EAAA,UAAA,EAAA,MAAA,EAAA,QAAA,EAAA,IAAA,EAAA,UAAA,EAAA,KAAA,EAAA,iBAAA,EAAA,IAAA,EAAA,EAAA,EAAA,QAAA,EAAA,EAAA,EAAA,QAAA,EC1BlC,+GAGA,EAAA,YAAA,EAAA,CAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EDmBY,sBAAsB,EAAA,QAAA,EAAA,iBAAA,EAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,CAAA,CAAA;;2FAIrB,qBAAqB,EAAA,UAAA,EAAA,CAAA;kBAPjC,SAAS;+BACE,gBAAgB,EAAA,OAAA,EAEjB,CAAC,sBAAsB,CAAC,EAAA,eAAA,EAChB,uBAAuB,CAAC,MAAM,EAAA,OAAA,EACtC,CAAC,sBAAsB,CAAC,EAAA,QAAA,EAAA,+GAAA,EAAA;;;AExBnC;;AAEG;;;;"}
1
+ {"version":3,"file":"mintplayer-ng-bootstrap-input-group.mjs","sources":["../../../../libs/mintplayer-ng-bootstrap/input-group/src/input-group/input-group.component.ts","../../../../libs/mintplayer-ng-bootstrap/input-group/mintplayer-ng-bootstrap-input-group.ts"],"sourcesContent":["import { ChangeDetectionStrategy, Component, HostAttributeToken, computed, inject, input } from '@angular/core';\nimport { useScopedStyles } from '@mintplayer/ng-bootstrap/machine';\nimport {\n INPUT_GROUP_SCOPE,\n inputGroupClasses,\n inputGroupRole,\n inputGroupScopedStyles,\n type InputGroupSize,\n} from '@mintplayer/ui-core/input-group';\n\nexport type BsInputGroupSize = InputGroupSize;\n\n/**\n * `<bs-input-group>` — joins its children into one visually continuous control.\n *\n * The host IS Bootstrap's `.input-group` (PRD #437 wave A): its children are\n * its direct children, so the baseline's `.input-group > .form-control` rules\n * apply as written and a consumer's `aria-*` / `id` already sits on the\n * element that carries the role. The scoped sheet adds RTL and the sizing of\n * controls rendered inside a framework host (`<bs-select>`).\n *\n * The role is `group` only when the group is named. The name is read from the\n * host's static attributes, so SSR emits the same role; a group named through\n * a binding passes `role=\"group\"` itself.\n */\n@Component({\n selector: 'bs-input-group',\n template: '<ng-content></ng-content>',\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n '[class]': 'classes()',\n '[attr.data-mps]': 'scope',\n '[attr.role]': 'role',\n },\n})\nexport class BsInputGroupComponent {\n /** Bootstrap sizing; `md` adds no class. */\n readonly size = input<BsInputGroupSize>('md');\n\n protected readonly scope = INPUT_GROUP_SCOPE;\n protected readonly classes = computed(() => inputGroupClasses(this.size()).join(' '));\n protected readonly role =\n inject(new HostAttributeToken('role'), { optional: true }) ??\n inputGroupRole(\n inject(new HostAttributeToken('aria-label'), { optional: true }) !== null ||\n inject(new HostAttributeToken('aria-labelledby'), { optional: true }) !== null,\n );\n\n constructor() {\n useScopedStyles(INPUT_GROUP_SCOPE, inputGroupScopedStyles);\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;AAYA;;;;;;;;;;;;AAYG;MAWU,qBAAqB,CAAA;AAahC,IAAA,WAAA,GAAA;;QAXS,IAAA,CAAA,IAAI,GAAG,KAAK,CAAmB,IAAI;iFAAC;QAE1B,IAAA,CAAA,KAAK,GAAG,iBAAiB;AACzB,QAAA,IAAA,CAAA,OAAO,GAAG,QAAQ,CAAC,MAAM,iBAAiB,CAAC,IAAI,CAAC,IAAI,EAAE,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC;oFAAC;AAClE,QAAA,IAAA,CAAA,IAAI,GACrB,MAAM,CAAC,IAAI,kBAAkB,CAAC,MAAM,CAAC,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;AAC1D,YAAA,cAAc,CACZ,MAAM,CAAC,IAAI,kBAAkB,CAAC,YAAY,CAAC,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC,KAAK,IAAI;AACvE,gBAAA,MAAM,CAAC,IAAI,kBAAkB,CAAC,iBAAiB,CAAC,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC,KAAK,IAAI,CACjF;AAGD,QAAA,eAAe,CAAC,iBAAiB,EAAE,sBAAsB,CAAC;IAC5D;8GAfW,qBAAqB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;AAArB,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,IAAA,EAAA,qBAAqB,0SARtB,2BAA2B,EAAA,QAAA,EAAA,IAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,CAAA,CAAA;;2FAQ1B,qBAAqB,EAAA,UAAA,EAAA,CAAA;kBAVjC,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACT,oBAAA,QAAQ,EAAE,gBAAgB;AAC1B,oBAAA,QAAQ,EAAE,2BAA2B;oBACrC,eAAe,EAAE,uBAAuB,CAAC,MAAM;AAC/C,oBAAA,IAAI,EAAE;AACJ,wBAAA,SAAS,EAAE,WAAW;AACtB,wBAAA,iBAAiB,EAAE,OAAO;AAC1B,wBAAA,aAAa,EAAE,MAAM;AACtB,qBAAA;AACF,iBAAA;;;AClCD;;AAEG;;;;"}
@@ -1,7 +1,10 @@
1
1
  import * as i0 from '@angular/core';
2
- import { signal, inject, DestroyRef, input, ElementRef, Renderer2, effect, Directive, PLATFORM_ID, DOCUMENT } from '@angular/core';
2
+ import { signal, inject, DestroyRef, input, ElementRef, Renderer2, effect, Directive, PLATFORM_ID, DOCUMENT, InjectionToken, untracked, computed, afterNextRender, TemplateRef, ViewContainerRef, Pipe } from '@angular/core';
3
3
  import { isPlatformServer } from '@angular/common';
4
4
  import { writeScopedStyleTag, installLightStyles } from '@mintplayer/ui-core/scoped-styles';
5
+ import { BsIdService } from '@mintplayer/ng-bootstrap/a11y';
6
+ import { coreRuntime } from '@mintplayer/ui-core/component';
7
+ import { DomSanitizer } from '@angular/platform-browser';
5
8
 
6
9
  /**
7
10
  * Bridge a `@mintplayer/ui-core` store into Angular's reactivity: a read-only
@@ -48,24 +51,7 @@ class MpPropsDirective {
48
51
  this.element = inject(ElementRef).nativeElement;
49
52
  this.renderer = inject(Renderer2);
50
53
  this.applied = {};
51
- effect(() => this.apply(this.mpProps() ?? {}));
52
- }
53
- apply(next) {
54
- const previous = this.applied;
55
- Object.keys(previous)
56
- .filter((name) => !(name in next) || next[name] === null || next[name] === undefined || next[name] === false)
57
- .forEach((name) => this.renderer.removeAttribute(this.element, name));
58
- Object.entries(next)
59
- .filter(([name, value]) => value !== null && value !== undefined && value !== false)
60
- .filter(([name]) => {
61
- if (isRefused(name)) {
62
- throw new Error(`[mpProps] refuses to set "${name}"; bind it explicitly in the template.`);
63
- }
64
- return true;
65
- })
66
- .filter(([name, value]) => !Object.is(previous[name], value))
67
- .forEach(([name, value]) => this.renderer.setAttribute(this.element, name, value === true ? '' : String(value)));
68
- this.applied = next;
54
+ effect(() => (this.applied = applyPropBag(this.renderer, this.element, this.applied, this.mpProps() ?? {})));
69
55
  }
70
56
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: MpPropsDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
71
57
  static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "22.0.8", type: MpPropsDirective, isStandalone: true, selector: "[mpProps]", inputs: { mpProps: { classPropertyName: "mpProps", publicName: "mpProps", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0 }); }
@@ -74,6 +60,23 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImpor
74
60
  type: Directive,
75
61
  args: [{ selector: '[mpProps]' }]
76
62
  }], ctorParameters: () => [], propDecorators: { mpProps: [{ type: i0.Input, args: [{ isSignal: true, alias: "mpProps", required: false }] }] } });
63
+ /** Write `next` onto `element`, removing what `previous` set and `next` drops. Returns `next`. */
64
+ function applyPropBag(renderer, element, previous, next) {
65
+ Object.keys(previous)
66
+ .filter((name) => !(name in next) || next[name] === null || next[name] === undefined || next[name] === false)
67
+ .forEach((name) => renderer.removeAttribute(element, name));
68
+ Object.entries(next)
69
+ .filter(([, value]) => value !== null && value !== undefined && value !== false)
70
+ .filter(([name]) => {
71
+ if (isRefused(name)) {
72
+ throw new Error(`[mpProps] refuses to set "${name}"; bind it explicitly in the template.`);
73
+ }
74
+ return true;
75
+ })
76
+ .filter(([name, value]) => !Object.is(previous[name], value))
77
+ .forEach(([name, value]) => renderer.setAttribute(element, name, value === true ? '' : String(value)));
78
+ return next;
79
+ }
77
80
 
78
81
  /**
79
82
  * Install a core's scoped stylesheet from an Angular front. In the browser it
@@ -83,6 +86,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImpor
83
86
  * request's `DOCUMENT` head — the client registry then treats it as already
84
87
  * installed. No string post-processing of the response is involved.
85
88
  *
89
+ * In the browser it also repairs the event-replay body shift (below) — every
90
+ * front calls this first thing, so the repair runs before any front's
91
+ * projected children are hydrated.
92
+ *
86
93
  * Call from the component's constructor (an injection context).
87
94
  */
88
95
  function useScopedStyles(key, cssText) {
@@ -90,13 +97,206 @@ function useScopedStyles(key, cssText) {
90
97
  writeScopedStyleTag(inject(DOCUMENT), key, cssText);
91
98
  }
92
99
  else {
100
+ repairEventReplayBodyPaths(inject(DOCUMENT));
93
101
  installLightStyles(key, cssText);
94
102
  }
95
103
  }
104
+ /**
105
+ * Angular SSR defect (platform-server 22): `_annotateForHydration` records the
106
+ * hydration paths, and only THEN `insertEventRecordScript` adds the replay
107
+ * `<script>` right after `#ng-event-dispatch-contract` in `<body>`. A node
108
+ * whose path is body-relative — any projected node a front renders outside
109
+ * its own host (an accordion tab's body inside the accordion's `<details>`, a
110
+ * tab page's body inside the tab control's panel) — is then looked up one
111
+ * sibling off, and hydration throws "Cannot read properties of null
112
+ * (reading 'nextSibling')". The replay script has already run by the time any
113
+ * component is constructed, so removing its element restores the body the
114
+ * paths were computed against. Idempotent; a no-op without event replay.
115
+ */
116
+ function repairEventReplayBodyPaths(doc) {
117
+ const replay = doc.getElementById('ng-event-dispatch-contract')?.nextSibling;
118
+ if (replay instanceof HTMLScriptElement && replay.textContent?.startsWith('window.__jsaction_bootstrap('))
119
+ replay.remove();
120
+ }
121
+
122
+ /**
123
+ * Apply a core's attribute bag to the component's own host element: the host
124
+ * twin of `[mpProps]`, for a compiled template whose root is marked `mp-host`
125
+ * (the root element IS the host, so the template holds only its children).
126
+ *
127
+ * Diffs like `[mpProps]` and writes through `Renderer2`, so the attributes are
128
+ * in the server-rendered HTML. `class` is merged token by token, never
129
+ * written as an attribute: the consumer's own classes on the host survive.
130
+ *
131
+ * constructor() { useHostProps(() => this.view().root); }
132
+ */
133
+ function useHostProps(bag) {
134
+ const element = inject(ElementRef).nativeElement;
135
+ const renderer = inject(Renderer2);
136
+ let applied = {};
137
+ let classes = [];
138
+ effect(() => {
139
+ const { class: className, ...rest } = bag() ?? {};
140
+ const next = typeof className === 'string' ? className.split(/\s+/).filter(Boolean) : [];
141
+ classes.filter((name) => !next.includes(name)).forEach((name) => renderer.removeClass(element, name));
142
+ next.filter((name) => !classes.includes(name)).forEach((name) => renderer.addClass(element, name));
143
+ classes = next;
144
+ applied = applyPropBag(renderer, element, applied, rest);
145
+ });
146
+ }
147
+
148
+ const tokens = new WeakMap();
149
+ /** The Angular token for a core context: one per context object. */
150
+ function coreContextToken(context) {
151
+ let token = tokens.get(context);
152
+ if (!token) {
153
+ token = new InjectionToken(`mp-core-context:${context.name}`);
154
+ tokens.set(context, token);
155
+ }
156
+ return token;
157
+ }
158
+ /** Provides `context` to the component's content, read from the component's `useCore().provided`. */
159
+ function provideCoreContext(context, component) {
160
+ return { provide: coreContextToken(context), useFactory: () => inject(component).provided };
161
+ }
162
+ /**
163
+ * Host a `ComponentCore` in a generated Angular component (PRD #437 D10).
164
+ * Call it in a field initializer. The template's root is the host element
165
+ * where `hostBag` is given, else the host's first element child.
166
+ */
167
+ function useCore(core, options) {
168
+ const element = inject(ElementRef).nativeElement;
169
+ const consumed = core.consume ? inject(coreContextToken(core.consume), { optional: true, skipSelf: true }) : null;
170
+ const id = inject(BsIdService).next(options.idPrefix);
171
+ // Read once: a host attribute is static content, and Angular does not observe it.
172
+ const label = element.getAttribute('aria-label');
173
+ const hydrated = signal(false, /* @ts-ignore */
174
+ ...(ngDevMode ? [{ debugName: "hydrated" }] : /* istanbul ignore next */ []));
175
+ // The state is seeded at its first read, in the first change detection: the
176
+ // template's bindings have set the inputs by then. In the constructor they
177
+ // have not, and the server would render a bound model input's default.
178
+ const written = signal(null, /* @ts-ignore */
179
+ ...(ngDevMode ? [{ debugName: "written" }] : /* istanbul ignore next */ []));
180
+ let seeded = null;
181
+ const seed = () => {
182
+ if (seeded)
183
+ return seeded;
184
+ const inputs = untracked(options.inputs);
185
+ // The baseline the state was seeded from: inputs that change before attaching
186
+ // (a form control writing its value) reach inputsChanged on attach.
187
+ runtime.inputs(inputs);
188
+ return (seeded = core.state ? core.state(inputs) : {});
189
+ };
190
+ const state = computed(() => written() ?? seed(), /* @ts-ignore */
191
+ ...(ngDevMode ? [{ debugName: "state" }] : /* istanbul ignore next */ []));
192
+ const args = computed(() => ({
193
+ inputs: options.inputs(),
194
+ state: state(),
195
+ id,
196
+ hydrated: hydrated(),
197
+ context: (consumed ? consumed() : core.consume?.defaultValue),
198
+ label,
199
+ api: () => runtime.api,
200
+ }), /* @ts-ignore */
201
+ ...(ngDevMode ? [{ debugName: "args" }] : /* istanbul ignore next */ []));
202
+ const props = computed(() => core.view(args()), /* @ts-ignore */
203
+ ...(ngDevMode ? [{ debugName: "props" }] : /* istanbul ignore next */ []));
204
+ const provided = computed(() => core.provide?.(args()), /* @ts-ignore */
205
+ ...(ngDevMode ? [{ debugName: "provided" }] : /* istanbul ignore next */ []));
206
+ const hostBag = options.hostBag ?? core.host?.bind(core);
207
+ if (hostBag)
208
+ useHostProps(() => hostBag(props()));
209
+ const runtime = coreRuntime(core, {
210
+ inputs: () => untracked(options.inputs),
211
+ state: () => untracked(state),
212
+ setState: (next) => written.set(next),
213
+ emit: (name, detail) => options.outputs?.[name]?.emit(detail),
214
+ models: Object.keys(options.models ?? {}),
215
+ writeModel: (name, value) => options.models?.[name]?.set(value),
216
+ });
217
+ afterNextRender(() => {
218
+ hydrated.set(true);
219
+ const root = options.hostBag ? element : element.firstElementChild;
220
+ if (root)
221
+ runtime.attachTo(root);
222
+ });
223
+ effect(() => {
224
+ const inputs = options.inputs();
225
+ untracked(() => runtime.inputs(inputs));
226
+ });
227
+ inject(DestroyRef).onDestroy(() => runtime.dispose());
228
+ return { props, provided, call: (name, callArgs) => runtime.call(name, callArgs) };
229
+ }
230
+
231
+ /**
232
+ * Render an `<ng-template>` into another element, the compiled form of a view's
233
+ * `<teleport :to>`. The twin of React's `createPortal`, Vue's `<Teleport>` and
234
+ * Lit's `teleport()`. The view lives in this container, so change detection and
235
+ * destruction follow the component, but its root nodes are moved into `to`, as
236
+ * CDK's DomPortalOutlet does. Nothing renders while `to` is null, which is the
237
+ * server's case. A core hands a target whose identity never changes (the
238
+ * dock's per-pane hosts), so the content's state survives wherever the core
239
+ * moves that target.
240
+ *
241
+ * <ng-template [mpTeleport]="view.paneHosts[pane]">...</ng-template>
242
+ */
243
+ class MpTeleportDirective {
244
+ constructor() {
245
+ this.mpTeleport = input(null, /* @ts-ignore */
246
+ ...(ngDevMode ? [{ debugName: "mpTeleport" }] : /* istanbul ignore next */ []));
247
+ this.template = inject(TemplateRef);
248
+ this.container = inject(ViewContainerRef);
249
+ this.view = null;
250
+ effect(() => {
251
+ const to = this.mpTeleport() ?? null;
252
+ if (!to) {
253
+ this.container.clear();
254
+ this.view = null;
255
+ return;
256
+ }
257
+ this.view ??= this.container.createEmbeddedView(this.template);
258
+ // The view's nodes render in place first; detectChanges fills them before they move.
259
+ this.view.detectChanges();
260
+ this.view.rootNodes.filter((node) => node.parentNode !== to).forEach((node) => to.appendChild(node));
261
+ });
262
+ inject(DestroyRef).onDestroy(() => this.container.clear());
263
+ }
264
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: MpTeleportDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
265
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "22.0.8", type: MpTeleportDirective, isStandalone: true, selector: "[mpTeleport]", inputs: { mpTeleport: { classPropertyName: "mpTeleport", publicName: "mpTeleport", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0 }); }
266
+ }
267
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: MpTeleportDirective, decorators: [{
268
+ type: Directive,
269
+ args: [{ selector: '[mpTeleport]' }]
270
+ }], ctorParameters: () => [], propDecorators: { mpTeleport: [{ type: i0.Input, args: [{ isSignal: true, alias: "mpTeleport", required: false }] }] } });
271
+
272
+ /**
273
+ * Marks core-produced markup as trusted for `[innerHTML]`: the compiled form of
274
+ * a view's `v-html`. The view contract is that `v-html` only ever carries markup
275
+ * the core produced (flag and file-type SVGs, highlighted code rows), which the
276
+ * React, Vue and Lit fronts insert as-is. Angular's sanitiser would instead drop
277
+ * every `<svg>` — an empty flag, an icon-less file manager — so the Angular front
278
+ * trusts it the same way.
279
+ *
280
+ * <span [innerHTML]="view.flagHtml | mpTrustedHtml"></span>
281
+ */
282
+ class MpTrustedHtmlPipe {
283
+ constructor() {
284
+ this.sanitizer = inject(DomSanitizer);
285
+ }
286
+ transform(html) {
287
+ return this.sanitizer.bypassSecurityTrustHtml(html ?? '');
288
+ }
289
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: MpTrustedHtmlPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
290
+ static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "22.0.8", ngImport: i0, type: MpTrustedHtmlPipe, isStandalone: true, name: "mpTrustedHtml" }); }
291
+ }
292
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: MpTrustedHtmlPipe, decorators: [{
293
+ type: Pipe,
294
+ args: [{ name: 'mpTrustedHtml' }]
295
+ }] });
96
296
 
97
297
  /**
98
298
  * Generated bundle index. Do not edit.
99
299
  */
100
300
 
101
- export { MpPropsDirective, machineSignal, useScopedStyles };
301
+ export { MpPropsDirective, MpTeleportDirective, MpTrustedHtmlPipe, applyPropBag, coreContextToken, machineSignal, provideCoreContext, repairEventReplayBodyPaths, useCore, useHostProps, useScopedStyles };
102
302
  //# sourceMappingURL=mintplayer-ng-bootstrap-machine.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"mintplayer-ng-bootstrap-machine.mjs","sources":["../../../../libs/mintplayer-ng-bootstrap/machine/src/machine-signal.ts","../../../../libs/mintplayer-ng-bootstrap/machine/src/props.directive.ts","../../../../libs/mintplayer-ng-bootstrap/machine/src/scoped-styles.ts","../../../../libs/mintplayer-ng-bootstrap/machine/mintplayer-ng-bootstrap-machine.ts"],"sourcesContent":["import { DestroyRef, inject, Signal, signal } from '@angular/core';\nimport type { Store } from '@mintplayer/ui-core/store';\n\n/**\n * Bridge a `@mintplayer/ui-core` store into Angular's reactivity: a read-only\n * `Signal` of the store's snapshot, kept current by `subscribe` and released on\n * the injection context's `DestroyRef`.\n *\n * The signal is set synchronously from the store's notification; Angular\n * coalesces the resulting change detection, so a command that commits one\n * snapshot costs one render (measured in `machine-signal.spec.ts`, spike S1).\n */\nexport function machineSignal<S extends object>(store: Store<S>, destroyRef: DestroyRef = inject(DestroyRef)): Signal<S> {\n const state = signal<S>(store.snapshot);\n const unsubscribe = store.subscribe((snapshot) => state.set(snapshot));\n destroyRef.onDestroy(unsubscribe);\n return state.asReadonly();\n}\n","import { Directive, effect, ElementRef, inject, input, Renderer2 } from '@angular/core';\n\n/** An attribute bag as a core's `connect()` returns it. `null`/`undefined`/`false` remove the attribute; `true` sets it empty. */\nexport type PropBag = Record<string, string | number | boolean | null | undefined>;\n\n/**\n * Attribute names a bag may never set. A bag is data the core computed, but a\n * generic setter is still an injection sink, so URL-bearing and script-bearing\n * attributes are refused outright rather than sanitised.\n */\nconst REFUSED = new Set(['href', 'src', 'srcdoc', 'xlink:href', 'style', 'action', 'formaction', 'data']);\n\nfunction isRefused(name: string): boolean {\n return REFUSED.has(name) || name.startsWith('on');\n}\n\n/**\n * Apply a core's attribute bag to the host element — the Angular stand-in for\n * JSX/Lit/Vue attribute spread. The directive diffs the previous and next bag:\n * a key that disappears is *removed* from the DOM (a stale\n * `aria-activedescendant` would otherwise survive a close), and unchanged keys\n * are not rewritten.\n *\n * Attributes are written through `Renderer2`, so they land in the server-\n * rendered HTML and are re-applied identically after hydration (spike S2 in\n * docs/prd/typeahead-wc-436.md). Consumers never see a bag: the front's own\n * template binds `[mpProps]=\"api().input\"` on its own nodes.\n */\n@Directive({ selector: '[mpProps]' })\nexport class MpPropsDirective {\n readonly mpProps = input<PropBag | null | undefined>(null);\n\n private readonly element = inject(ElementRef).nativeElement as Element;\n private readonly renderer = inject(Renderer2);\n private applied: PropBag = {};\n\n constructor() {\n effect(() => this.apply(this.mpProps() ?? {}));\n }\n\n private apply(next: PropBag): void {\n const previous = this.applied;\n Object.keys(previous)\n .filter((name) => !(name in next) || next[name] === null || next[name] === undefined || next[name] === false)\n .forEach((name) => this.renderer.removeAttribute(this.element, name));\n Object.entries(next)\n .filter(([name, value]) => value !== null && value !== undefined && value !== false)\n .filter(([name]) => {\n if (isRefused(name)) {\n throw new Error(`[mpProps] refuses to set \"${name}\"; bind it explicitly in the template.`);\n }\n return true;\n })\n .filter(([name, value]) => !Object.is(previous[name], value))\n .forEach(([name, value]) => this.renderer.setAttribute(this.element, name, value === true ? '' : String(value)));\n this.applied = next;\n }\n}\n","import { DOCUMENT, inject, PLATFORM_ID } from '@angular/core';\nimport { isPlatformServer } from '@angular/common';\nimport { installLightStyles, writeScopedStyleTag } from '@mintplayer/ui-core/scoped-styles';\n\n/**\n * Install a core's scoped stylesheet from an Angular front. In the browser it\n * goes through the shared registry (`installLightStyles`: once per key,\n * cross-bundle safe). On the server the registry cannot run, so the marker\n * `<style data-mp-light-styles=\"<key>\">` is written straight into the\n * request's `DOCUMENT` head — the client registry then treats it as already\n * installed. No string post-processing of the response is involved.\n *\n * Call from the component's constructor (an injection context).\n */\nexport function useScopedStyles(key: string, cssText: string): void {\n if (isPlatformServer(inject(PLATFORM_ID))) {\n writeScopedStyleTag(inject(DOCUMENT), key, cssText);\n } else {\n installLightStyles(key, cssText);\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;AAGA;;;;;;;;AAQG;AACG,SAAU,aAAa,CAAmB,KAAe,EAAE,UAAA,GAAyB,MAAM,CAAC,UAAU,CAAC,EAAA;AAC1G,IAAA,MAAM,KAAK,GAAG,MAAM,CAAI,KAAK,CAAC,QAAQ;8EAAC;AACvC,IAAA,MAAM,WAAW,GAAG,KAAK,CAAC,SAAS,CAAC,CAAC,QAAQ,KAAK,KAAK,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;AACtE,IAAA,UAAU,CAAC,SAAS,CAAC,WAAW,CAAC;AACjC,IAAA,OAAO,KAAK,CAAC,UAAU,EAAE;AAC3B;;ACZA;;;;AAIG;AACH,MAAM,OAAO,GAAG,IAAI,GAAG,CAAC,CAAC,MAAM,EAAE,KAAK,EAAE,QAAQ,EAAE,YAAY,EAAE,OAAO,EAAE,QAAQ,EAAE,YAAY,EAAE,MAAM,CAAC,CAAC;AAEzG,SAAS,SAAS,CAAC,IAAY,EAAA;AAC7B,IAAA,OAAO,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,IAAI,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC;AACnD;AAEA;;;;;;;;;;;AAWG;MAEU,gBAAgB,CAAA;AAO3B,IAAA,WAAA,GAAA;QANS,IAAA,CAAA,O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/machine/src/props.directive.ts","../../../../libs/mintplayer-ng-bootstrap/machine/src/scoped-styles.ts","../../../../libs/mintplayer-ng-bootstrap/machine/src/host-props.ts","../../../../libs/mintplayer-ng-bootstrap/machine/src/core.ts","../../../../libs/mintplayer-ng-bootstrap/machine/src/teleport.directive.ts","../../../../libs/mintplayer-ng-bootstrap/machine/src/trusted-html.pipe.ts","../../../../libs/mintplayer-ng-bootstrap/machine/mintplayer-ng-bootstrap-machine.ts"],"sourcesContent":["import { DestroyRef, inject, Signal, signal } from '@angular/core';\nimport type { Store } from '@mintplayer/ui-core/store';\n\n/**\n * Bridge a `@mintplayer/ui-core` store into Angular's reactivity: a read-only\n * `Signal` of the store's snapshot, kept current by `subscribe` and released on\n * the injection context's `DestroyRef`.\n *\n * The signal is set synchronously from the store's notification; Angular\n * coalesces the resulting change detection, so a command that commits one\n * snapshot costs one render (measured in `machine-signal.spec.ts`, spike S1).\n */\nexport function machineSignal<S extends object>(store: Store<S>, destroyRef: DestroyRef = inject(DestroyRef)): Signal<S> {\n const state = signal<S>(store.snapshot);\n const unsubscribe = store.subscribe((snapshot) => state.set(snapshot));\n destroyRef.onDestroy(unsubscribe);\n return state.asReadonly();\n}\n","import { Directive, effect, ElementRef, inject, input, Renderer2 } from '@angular/core';\n\n/** An attribute bag as a core's `connect()` returns it. `null`/`undefined`/`false` remove the attribute; `true` sets it empty. */\nexport type PropBag = Record<string, string | number | boolean | null | undefined>;\n\n/**\n * Attribute names a bag may never set. A bag is data the core computed, but a\n * generic setter is still an injection sink, so URL-bearing and script-bearing\n * attributes are refused outright rather than sanitised.\n */\nconst REFUSED = new Set(['href', 'src', 'srcdoc', 'xlink:href', 'style', 'action', 'formaction', 'data']);\n\nfunction isRefused(name: string): boolean {\n return REFUSED.has(name) || name.startsWith('on');\n}\n\n/**\n * Apply a core's attribute bag to the host element — the Angular stand-in for\n * JSX/Lit/Vue attribute spread. The directive diffs the previous and next bag:\n * a key that disappears is *removed* from the DOM (a stale\n * `aria-activedescendant` would otherwise survive a close), and unchanged keys\n * are not rewritten.\n *\n * Attributes are written through `Renderer2`, so they land in the server-\n * rendered HTML and are re-applied identically after hydration (spike S2 in\n * docs/prd/typeahead-wc-436.md). Consumers never see a bag: the front's own\n * template binds `[mpProps]=\"api().input\"` on its own nodes.\n */\n@Directive({ selector: '[mpProps]' })\nexport class MpPropsDirective {\n readonly mpProps = input<PropBag | null | undefined>(null);\n\n private readonly element = inject(ElementRef).nativeElement as Element;\n private readonly renderer = inject(Renderer2);\n private applied: PropBag = {};\n\n constructor() {\n effect(() => (this.applied = applyPropBag(this.renderer, this.element, this.applied, this.mpProps() ?? {})));\n }\n}\n\n/** Write `next` onto `element`, removing what `previous` set and `next` drops. Returns `next`. */\nexport function applyPropBag(renderer: Renderer2, element: Element, previous: PropBag, next: PropBag): PropBag {\n Object.keys(previous)\n .filter((name) => !(name in next) || next[name] === null || next[name] === undefined || next[name] === false)\n .forEach((name) => renderer.removeAttribute(element, name));\n Object.entries(next)\n .filter(([, value]) => value !== null && value !== undefined && value !== false)\n .filter(([name]) => {\n if (isRefused(name)) {\n throw new Error(`[mpProps] refuses to set \"${name}\"; bind it explicitly in the template.`);\n }\n return true;\n })\n .filter(([name, value]) => !Object.is(previous[name], value))\n .forEach(([name, value]) => renderer.setAttribute(element, name, value === true ? '' : String(value)));\n return next;\n}\n","import { DOCUMENT, inject, PLATFORM_ID } from '@angular/core';\nimport { isPlatformServer } from '@angular/common';\nimport { installLightStyles, writeScopedStyleTag } from '@mintplayer/ui-core/scoped-styles';\n\n/**\n * Install a core's scoped stylesheet from an Angular front. In the browser it\n * goes through the shared registry (`installLightStyles`: once per key,\n * cross-bundle safe). On the server the registry cannot run, so the marker\n * `<style data-mp-light-styles=\"<key>\">` is written straight into the\n * request's `DOCUMENT` head — the client registry then treats it as already\n * installed. No string post-processing of the response is involved.\n *\n * In the browser it also repairs the event-replay body shift (below) — every\n * front calls this first thing, so the repair runs before any front's\n * projected children are hydrated.\n *\n * Call from the component's constructor (an injection context).\n */\nexport function useScopedStyles(key: string, cssText: string): void {\n if (isPlatformServer(inject(PLATFORM_ID))) {\n writeScopedStyleTag(inject(DOCUMENT), key, cssText);\n } else {\n repairEventReplayBodyPaths(inject(DOCUMENT));\n installLightStyles(key, cssText);\n }\n}\n\n/**\n * Angular SSR defect (platform-server 22): `_annotateForHydration` records the\n * hydration paths, and only THEN `insertEventRecordScript` adds the replay\n * `<script>` right after `#ng-event-dispatch-contract` in `<body>`. A node\n * whose path is body-relative — any projected node a front renders outside\n * its own host (an accordion tab's body inside the accordion's `<details>`, a\n * tab page's body inside the tab control's panel) — is then looked up one\n * sibling off, and hydration throws \"Cannot read properties of null\n * (reading 'nextSibling')\". The replay script has already run by the time any\n * component is constructed, so removing its element restores the body the\n * paths were computed against. Idempotent; a no-op without event replay.\n */\nexport function repairEventReplayBodyPaths(doc: Document): void {\n const replay = doc.getElementById('ng-event-dispatch-contract')?.nextSibling;\n if (replay instanceof HTMLScriptElement && replay.textContent?.startsWith('window.__jsaction_bootstrap(')) replay.remove();\n}\n","import { effect, ElementRef, inject, Renderer2 } from '@angular/core';\nimport { applyPropBag, type PropBag } from './props.directive';\n\n/**\n * Apply a core's attribute bag to the component's own host element: the host\n * twin of `[mpProps]`, for a compiled template whose root is marked `mp-host`\n * (the root element IS the host, so the template holds only its children).\n *\n * Diffs like `[mpProps]` and writes through `Renderer2`, so the attributes are\n * in the server-rendered HTML. `class` is merged token by token, never\n * written as an attribute: the consumer's own classes on the host survive.\n *\n * constructor() { useHostProps(() => this.view().root); }\n */\nexport function useHostProps(bag: () => PropBag | null | undefined): void {\n const element = inject(ElementRef).nativeElement as Element;\n const renderer = inject(Renderer2);\n let applied: PropBag = {};\n let classes: string[] = [];\n effect(() => {\n const { class: className, ...rest } = bag() ?? {};\n const next = typeof className === 'string' ? className.split(/\\s+/).filter(Boolean) : [];\n classes.filter((name) => !next.includes(name)).forEach((name) => renderer.removeClass(element, name));\n next.filter((name) => !classes.includes(name)).forEach((name) => renderer.addClass(element, name));\n classes = next;\n applied = applyPropBag(renderer, element, applied, rest);\n });\n}\n","import {\n afterNextRender,\n computed,\n DestroyRef,\n effect,\n ElementRef,\n inject,\n InjectionToken,\n signal,\n untracked,\n type Provider,\n type Signal,\n type Type,\n} from '@angular/core';\nimport { BsIdService } from '@mintplayer/ng-bootstrap/a11y';\nimport { coreRuntime, type ComponentCore, type CoreBag, type CoreContext, type ViewArgs } from '@mintplayer/ui-core/component';\nimport { useHostProps } from './host-props';\n\nconst tokens = new WeakMap<CoreContext<unknown>, InjectionToken<Signal<unknown>>>();\n\n/** The Angular token for a core context: one per context object. */\nexport function coreContextToken<T>(context: CoreContext<T>): InjectionToken<Signal<T>> {\n let token = tokens.get(context as CoreContext<unknown>);\n if (!token) {\n token = new InjectionToken<Signal<unknown>>(`mp-core-context:${context.name}`);\n tokens.set(context as CoreContext<unknown>, token);\n }\n return token as InjectionToken<Signal<T>>;\n}\n\n/** Provides `context` to the component's content, read from the component's `useCore().provided`. */\nexport function provideCoreContext<T>(context: CoreContext<T>, component: Type<{ readonly provided: Signal<T> }>): Provider {\n return { provide: coreContextToken(context), useFactory: () => inject(component).provided };\n}\n\nexport interface UseCoreOptions<I, P> {\n readonly inputs: () => I;\n /** Prefix of the deterministic id, e.g. `bs-navbar`. */\n readonly idPrefix: string;\n /** The outputs by name; `api.emit` calls their `emit`. */\n readonly outputs?: Readonly<Record<string, { emit(detail: never): void }>>;\n /** The host element's bag, where the template root is the host (`mp-host`). Default: `core.host`. */\n readonly hostBag?: (props: P) => CoreBag | null | undefined;\n /** Two-way inputs (`model()`), by name; written back when the core changes the state of the same name. */\n readonly models?: Readonly<Record<string, { set(value: never): void }>>;\n}\n\nexport interface CoreHandle<P, PC> {\n /** The template's props. */\n readonly props: Signal<P>;\n /** The value this component provides to its content. */\n readonly provided: Signal<PC>;\n /** Runs a core method; does nothing before the first client render. */\n call(name: string, args: unknown[]): unknown;\n}\n\n/**\n * Host a `ComponentCore` in a generated Angular component (PRD #437 D10).\n * Call it in a field initializer. The template's root is the host element\n * where `hostBag` is given, else the host's first element child.\n */\nexport function useCore<I, S, P, E, C, PC, M>(core: ComponentCore<I, S, P, E, C, PC, M>, options: UseCoreOptions<I, P>): CoreHandle<P, PC> {\n const element = inject<ElementRef<HTMLElement>>(ElementRef).nativeElement;\n const consumed = core.consume ? inject(coreContextToken(core.consume), { optional: true, skipSelf: true }) : null;\n const id = inject(BsIdService).next(options.idPrefix);\n // Read once: a host attribute is static content, and Angular does not observe it.\n const label = element.getAttribute('aria-label');\n const hydrated = signal(false);\n // The state is seeded at its first read, in the first change detection: the\n // template's bindings have set the inputs by then. In the constructor they\n // have not, and the server would render a bound model input's default.\n const written = signal<S | null>(null);\n let seeded: S | null = null;\n const seed = (): S => {\n if (seeded) return seeded;\n const inputs = untracked(options.inputs);\n // The baseline the state was seeded from: inputs that change before attaching\n // (a form control writing its value) reach inputsChanged on attach.\n runtime.inputs(inputs);\n return (seeded = core.state ? core.state(inputs) : ({} as S));\n };\n const state = computed(() => written() ?? seed());\n\n const args = computed<ViewArgs<I, S, C, E>>(() => ({\n inputs: options.inputs(),\n state: state(),\n id,\n hydrated: hydrated(),\n context: (consumed ? consumed() : core.consume?.defaultValue) as C,\n label,\n api: () => runtime.api,\n }));\n const props = computed(() => core.view(args()));\n const provided = computed(() => core.provide?.(args()) as PC);\n\n const hostBag = options.hostBag ?? core.host?.bind(core);\n if (hostBag) useHostProps(() => hostBag(props()));\n\n const runtime = coreRuntime(core, {\n inputs: () => untracked(options.inputs),\n state: () => untracked(state),\n setState: (next) => written.set(next),\n emit: (name, detail) => options.outputs?.[name]?.emit(detail as never),\n models: Object.keys(options.models ?? {}) as never,\n writeModel: (name, value) => options.models?.[name]?.set(value as never),\n });\n afterNextRender(() => {\n hydrated.set(true);\n const root = options.hostBag ? element : (element.firstElementChild as HTMLElement | null);\n if (root) runtime.attachTo(root);\n });\n effect(() => {\n const inputs = options.inputs();\n untracked(() => runtime.inputs(inputs));\n });\n inject(DestroyRef).onDestroy(() => runtime.dispose());\n\n return { props, provided, call: (name, callArgs) => runtime.call(name, callArgs) };\n}\n","import { DestroyRef, Directive, effect, EmbeddedViewRef, inject, input, TemplateRef, ViewContainerRef } from '@angular/core';\n\n/**\n * Render an `<ng-template>` into another element, the compiled form of a view's\n * `<teleport :to>`. The twin of React's `createPortal`, Vue's `<Teleport>` and\n * Lit's `teleport()`. The view lives in this container, so change detection and\n * destruction follow the component, but its root nodes are moved into `to`, as\n * CDK's DomPortalOutlet does. Nothing renders while `to` is null, which is the\n * server's case. A core hands a target whose identity never changes (the\n * dock's per-pane hosts), so the content's state survives wherever the core\n * moves that target.\n *\n * <ng-template [mpTeleport]=\"view.paneHosts[pane]\">...</ng-template>\n */\n@Directive({ selector: '[mpTeleport]' })\nexport class MpTeleportDirective {\n readonly mpTeleport = input<Element | null | undefined>(null);\n\n private readonly template = inject(TemplateRef);\n private readonly container = inject(ViewContainerRef);\n private view: EmbeddedViewRef<unknown> | null = null;\n\n constructor() {\n effect(() => {\n const to = this.mpTeleport() ?? null;\n if (!to) {\n this.container.clear();\n this.view = null;\n return;\n }\n this.view ??= this.container.createEmbeddedView(this.template);\n // The view's nodes render in place first; detectChanges fills them before they move.\n this.view.detectChanges();\n this.view.rootNodes.filter((node: Node) => node.parentNode !== to).forEach((node: Node) => to.appendChild(node));\n });\n inject(DestroyRef).onDestroy(() => this.container.clear());\n }\n}\n","import { inject, Pipe, PipeTransform } from '@angular/core';\nimport { DomSanitizer, SafeHtml } from '@angular/platform-browser';\n\n/**\n * Marks core-produced markup as trusted for `[innerHTML]`: the compiled form of\n * a view's `v-html`. The view contract is that `v-html` only ever carries markup\n * the core produced (flag and file-type SVGs, highlighted code rows), which the\n * React, Vue and Lit fronts insert as-is. Angular's sanitiser would instead drop\n * every `<svg>` — an empty flag, an icon-less file manager — so the Angular front\n * trusts it the same way.\n *\n * <span [innerHTML]=\"view.flagHtml | mpTrustedHtml\"></span>\n */\n@Pipe({ name: 'mpTrustedHtml' })\nexport class MpTrustedHtmlPipe implements PipeTransform {\n private readonly sanitizer = inject(DomSanitizer);\n\n transform(html: string | null | undefined): SafeHtml {\n return this.sanitizer.bypassSecurityTrustHtml(html ?? '');\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;AAGA;;;;;;;;AAQG;AACG,SAAU,aAAa,CAAmB,KAAe,EAAE,UAAA,GAAyB,MAAM,CAAC,UAAU,CAAC,EAAA;AAC1G,IAAA,MAAM,KAAK,GAAG,MAAM,CAAI,KAAK,CAAC,QAAQ;8EAAC;AACvC,IAAA,MAAM,WAAW,GAAG,KAAK,CAAC,SAAS,CAAC,CAAC,QAAQ,KAAK,KAAK,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;AACtE,IAAA,UAAU,CAAC,SAAS,CAAC,WAAW,CAAC;AACjC,IAAA,OAAO,KAAK,CAAC,UAAU,EAAE;AAC3B;;ACZA;;;;AAIG;AACH,MAAM,OAAO,GAAG,IAAI,GAAG,CAAC,CAAC,MAAM,EAAE,KAAK,EAAE,QAAQ,EAAE,YAAY,EAAE,OAAO,EAAE,QAAQ,EAAE,YAAY,EAAE,MAAM,CAAC,CAAC;AAEzG,SAAS,SAAS,CAAC,IAAY,EAAA;AAC7B,IAAA,OAAO,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,IAAI,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC;AACnD;AAEA;;;;;;;;;;;AAWG;MAEU,gBAAgB,CAAA;AAO3B,IAAA,WAAA,GAAA;QANS,IAAA,CAAA,OAAO,GAAG,KAAK,CAA6B,IAAI;oFAAC;AAEzC,QAAA,IAAA,CAAA,OAAO,GAAG,MAAM,CAAC,UAAU,CAAC,CAAC,aAAwB;AACrD,QAAA,IAAA,CAAA,QAAQ,GAAG,MAAM,CAAC,SAAS,CAAC;QACrC,IAAA,CAAA,OAAO,GAAY,EAAE;AAG3B,QAAA,MAAM,CAAC,O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