@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.
- package/README.md +12 -11
- package/_bootstrap.scss +2 -4
- package/a11y/forms/package.json +4 -0
- package/fesm2022/mintplayer-ng-bootstrap-a11y-forms.mjs +120 -0
- package/fesm2022/mintplayer-ng-bootstrap-a11y-forms.mjs.map +1 -0
- package/fesm2022/mintplayer-ng-bootstrap-a11y.mjs +2 -109
- package/fesm2022/mintplayer-ng-bootstrap-a11y.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-accordion.mjs +3 -1
- package/fesm2022/mintplayer-ng-bootstrap-accordion.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-alert.mjs +7 -3
- package/fesm2022/mintplayer-ng-bootstrap-alert.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-badge.mjs +7 -3
- package/fesm2022/mintplayer-ng-bootstrap-badge.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-breadcrumb.mjs +12 -5
- package/fesm2022/mintplayer-ng-bootstrap-breadcrumb.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-button-group.mjs +7 -3
- package/fesm2022/mintplayer-ng-bootstrap-button-group.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-card.mjs +74 -83
- package/fesm2022/mintplayer-ng-bootstrap-card.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-carousel.mjs +3 -0
- package/fesm2022/mintplayer-ng-bootstrap-carousel.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-checkbox.mjs +9 -5
- package/fesm2022/mintplayer-ng-bootstrap-checkbox.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-close.mjs +7 -3
- package/fesm2022/mintplayer-ng-bootstrap-close.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-datatable.mjs +9 -3
- package/fesm2022/mintplayer-ng-bootstrap-datatable.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-datepicker.mjs +4 -2
- package/fesm2022/mintplayer-ng-bootstrap-datepicker.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-datetime-picker.mjs +4 -2
- package/fesm2022/mintplayer-ng-bootstrap-datetime-picker.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-dropdown-divider.mjs +9 -2
- package/fesm2022/mintplayer-ng-bootstrap-dropdown-divider.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-dropdown-menu.mjs +12 -4
- package/fesm2022/mintplayer-ng-bootstrap-dropdown-menu.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-file-manager.mjs +3 -1
- package/fesm2022/mintplayer-ng-bootstrap-file-manager.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-file-upload.mjs +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-file-upload.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-floating-labels.mjs +6 -2
- package/fesm2022/mintplayer-ng-bootstrap-floating-labels.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-for.mjs +8 -4
- package/fesm2022/mintplayer-ng-bootstrap-for.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-form.mjs +7 -2
- package/fesm2022/mintplayer-ng-bootstrap-form.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-grid.mjs +40 -12
- package/fesm2022/mintplayer-ng-bootstrap-grid.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-input-group.mjs +3 -1
- package/fesm2022/mintplayer-ng-bootstrap-input-group.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-list-group.mjs +23 -6
- package/fesm2022/mintplayer-ng-bootstrap-list-group.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-machine.mjs +16 -4
- package/fesm2022/mintplayer-ng-bootstrap-machine.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-modal.mjs +23 -7
- package/fesm2022/mintplayer-ng-bootstrap-modal.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-nav.mjs +93 -0
- package/fesm2022/mintplayer-ng-bootstrap-nav.mjs.map +1 -0
- package/fesm2022/mintplayer-ng-bootstrap-navbar-toggler.mjs +7 -3
- package/fesm2022/mintplayer-ng-bootstrap-navbar-toggler.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-navbar.mjs +43 -1
- package/fesm2022/mintplayer-ng-bootstrap-navbar.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-offcanvas.mjs +15 -6
- package/fesm2022/mintplayer-ng-bootstrap-offcanvas.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-otp-input.mjs +4 -2
- package/fesm2022/mintplayer-ng-bootstrap-otp-input.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-pagination.mjs +7 -4
- package/fesm2022/mintplayer-ng-bootstrap-pagination.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-phone-input.mjs +4 -2
- package/fesm2022/mintplayer-ng-bootstrap-phone-input.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-placeholder.mjs +22 -16
- package/fesm2022/mintplayer-ng-bootstrap-placeholder.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-popover.mjs +22 -7
- package/fesm2022/mintplayer-ng-bootstrap-popover.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-progress-bar.mjs +13 -6
- package/fesm2022/mintplayer-ng-bootstrap-progress-bar.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-query-builder.mjs +4 -0
- package/fesm2022/mintplayer-ng-bootstrap-query-builder.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-radio.mjs +9 -5
- package/fesm2022/mintplayer-ng-bootstrap-radio.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-range.mjs +7 -3
- package/fesm2022/mintplayer-ng-bootstrap-range.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-scheduler.mjs +2 -0
- package/fesm2022/mintplayer-ng-bootstrap-scheduler.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-scrollspy.mjs +19 -9
- package/fesm2022/mintplayer-ng-bootstrap-scrollspy.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-select.mjs +4 -2
- package/fesm2022/mintplayer-ng-bootstrap-select.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-signature-pad.mjs +4 -2
- package/fesm2022/mintplayer-ng-bootstrap-signature-pad.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-spinner.mjs +25 -11
- package/fesm2022/mintplayer-ng-bootstrap-spinner.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-sticky-footer.mjs +14 -4
- package/fesm2022/mintplayer-ng-bootstrap-sticky-footer.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-tab-control.mjs +3 -1
- package/fesm2022/mintplayer-ng-bootstrap-tab-control.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-table.mjs +9 -14
- package/fesm2022/mintplayer-ng-bootstrap-table.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-timepicker.mjs +5 -2
- package/fesm2022/mintplayer-ng-bootstrap-timepicker.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-toast.mjs +23 -8
- package/fesm2022/mintplayer-ng-bootstrap-toast.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-tooltip.mjs +7 -3
- package/fesm2022/mintplayer-ng-bootstrap-tooltip.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-typeahead.mjs +4 -1
- package/fesm2022/mintplayer-ng-bootstrap-typeahead.mjs.map +1 -1
- package/nav/package.json +4 -0
- package/package.json +11 -8
- package/types/mintplayer-ng-bootstrap-a11y-forms.d.ts +64 -0
- package/types/mintplayer-ng-bootstrap-a11y.d.ts +2 -62
- package/types/mintplayer-ng-bootstrap-alert.d.ts +1 -0
- package/types/mintplayer-ng-bootstrap-badge.d.ts +1 -0
- package/types/mintplayer-ng-bootstrap-breadcrumb.d.ts +2 -0
- package/types/mintplayer-ng-bootstrap-button-group.d.ts +1 -0
- package/types/mintplayer-ng-bootstrap-card.d.ts +14 -3
- package/types/mintplayer-ng-bootstrap-checkbox.d.ts +1 -1
- package/types/mintplayer-ng-bootstrap-close.d.ts +1 -0
- package/types/mintplayer-ng-bootstrap-datatable.d.ts +4 -2
- package/types/mintplayer-ng-bootstrap-datepicker.d.ts +1 -1
- package/types/mintplayer-ng-bootstrap-datetime-picker.d.ts +1 -1
- package/types/mintplayer-ng-bootstrap-dropdown-divider.d.ts +1 -0
- package/types/mintplayer-ng-bootstrap-for.d.ts +5 -5
- package/types/mintplayer-ng-bootstrap-form.d.ts +1 -0
- package/types/mintplayer-ng-bootstrap-grid.d.ts +14 -0
- package/types/mintplayer-ng-bootstrap-list-group.d.ts +15 -8
- package/types/mintplayer-ng-bootstrap-machine.d.ts +13 -2
- package/types/mintplayer-ng-bootstrap-modal.d.ts +2 -0
- package/types/mintplayer-ng-bootstrap-nav.d.ts +52 -0
- package/types/mintplayer-ng-bootstrap-navbar-toggler.d.ts +1 -0
- package/types/mintplayer-ng-bootstrap-navbar.d.ts +17 -1
- package/types/mintplayer-ng-bootstrap-otp-input.d.ts +1 -1
- package/types/mintplayer-ng-bootstrap-pagination.d.ts +1 -0
- package/types/mintplayer-ng-bootstrap-phone-input.d.ts +1 -1
- package/types/mintplayer-ng-bootstrap-placeholder.d.ts +10 -10
- package/types/mintplayer-ng-bootstrap-popover.d.ts +3 -0
- package/types/mintplayer-ng-bootstrap-progress-bar.d.ts +2 -0
- package/types/mintplayer-ng-bootstrap-radio.d.ts +1 -1
- package/types/mintplayer-ng-bootstrap-range.d.ts +1 -0
- package/types/mintplayer-ng-bootstrap-scrollspy.d.ts +1 -0
- package/types/mintplayer-ng-bootstrap-select.d.ts +1 -1
- package/types/mintplayer-ng-bootstrap-signature-pad.d.ts +1 -1
- package/types/mintplayer-ng-bootstrap-spinner.d.ts +14 -7
- package/types/mintplayer-ng-bootstrap-sticky-footer.d.ts +7 -1
- package/types/mintplayer-ng-bootstrap-table.d.ts +2 -6
- package/types/mintplayer-ng-bootstrap-timepicker.d.ts +1 -1
- package/types/mintplayer-ng-bootstrap-toast.d.ts +2 -0
- package/container/package.json +0 -4
- package/fesm2022/mintplayer-ng-bootstrap-container.mjs +0 -18
- package/fesm2022/mintplayer-ng-bootstrap-container.mjs.map +0 -1
- package/types/mintplayer-ng-bootstrap-container.d.ts +0 -8
|
@@ -1,14 +1,7 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { ChangeDetectionStrategy, Component
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsTableStylesComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
6
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "22.0.8", type: BsTableStylesComponent, isStandalone: true, selector: "bs-table-styles", ngImport: i0, template: '<ng-content></ng-content>', isInline: true, styles: [":host{display:contents}:host ::ng-deep *,:host ::ng-deep *:before,:host ::ng-deep *:after{box-sizing:border-box}@media(prefers-reduced-motion:no-preference){:host ::ng-deep :root{scroll-behavior:smooth}}:host ::ng-deep body{margin:0;font-family:var(--bs-body-font-family);font-size:var(--bs-body-font-size);font-weight:var(--bs-body-font-weight);line-height:var(--bs-body-line-height);color:var(--bs-body-color);text-align:var(--bs-body-text-align);background-color:var(--bs-body-bg);-webkit-text-size-adjust:100%;-webkit-tap-highlight-color:rgba(0,0,0,0)}:host ::ng-deep hr{margin:1rem 0;color:inherit;border:0;border-top:var(--bs-border-width) solid;opacity:.25}:host ::ng-deep h6,:host ::ng-deep h5,:host ::ng-deep h4,:host ::ng-deep h3,:host ::ng-deep h2,:host ::ng-deep h1{margin-top:0;margin-bottom:.5rem;font-weight:500;line-height:1.2;color:var(--bs-heading-color)}:host ::ng-deep h1{font-size:calc(1.375rem + 1.5vw)}@media(min-width:1200px){:host ::ng-deep h1{font-size:2.5rem}}:host ::ng-deep h2{font-size:calc(1.325rem + .9vw)}@media(min-width:1200px){:host ::ng-deep h2{font-size:2rem}}:host ::ng-deep h3{font-size:calc(1.3rem + .6vw)}@media(min-width:1200px){:host ::ng-deep h3{font-size:1.75rem}}:host ::ng-deep h4{font-size:calc(1.275rem + .3vw)}@media(min-width:1200px){:host ::ng-deep h4{font-size:1.5rem}}:host ::ng-deep h5{font-size:1.25rem}:host ::ng-deep h6{font-size:1rem}:host ::ng-deep p{margin-top:0;margin-bottom:1rem}:host ::ng-deep abbr[title]{text-decoration:underline dotted;cursor:help;text-decoration-skip-ink:none}:host ::ng-deep address{margin-bottom:1rem;font-style:normal;line-height:inherit}:host ::ng-deep ol,:host ::ng-deep ul{padding-left:2rem}:host ::ng-deep ol,:host ::ng-deep ul,:host ::ng-deep dl{margin-top:0;margin-bottom:1rem}:host ::ng-deep ol ol,:host ::ng-deep ul ul,:host ::ng-deep ol ul,:host ::ng-deep ul ol{margin-bottom:0}:host ::ng-deep dt{font-weight:700}:host ::ng-deep dd{margin-bottom:.5rem;margin-left:0}:host ::ng-deep blockquote{margin:0 0 1rem}:host ::ng-deep b,:host ::ng-deep strong{font-weight:bolder}:host ::ng-deep small{font-size:.875em}:host ::ng-deep mark{padding:.1875em;color:var(--bs-highlight-color);background-color:var(--bs-highlight-bg)}:host ::ng-deep sub,:host ::ng-deep sup{position:relative;font-size:.75em;line-height:0;vertical-align:baseline}:host ::ng-deep sub{bottom:-.25em}:host ::ng-deep sup{top:-.5em}:host ::ng-deep a{color:rgba(var(--bs-link-color-rgb),var(--bs-link-opacity, 1));text-decoration:underline}:host ::ng-deep a:hover{--bs-link-color-rgb: var(--bs-link-hover-color-rgb)}:host ::ng-deep a:not([href]):not([class]),:host ::ng-deep a:not([href]):not([class]):hover{color:inherit;text-decoration:none}:host ::ng-deep pre,:host ::ng-deep code,:host ::ng-deep kbd,:host ::ng-deep samp{font-family:var(--bs-font-monospace);font-size:1em}:host ::ng-deep pre{display:block;margin-top:0;margin-bottom:1rem;overflow:auto;font-size:.875em}:host ::ng-deep pre code{font-size:inherit;color:inherit;word-break:normal}:host ::ng-deep code{font-size:.875em;color:var(--bs-code-color);word-wrap:break-word}a>:host ::ng-deep code{color:inherit}:host ::ng-deep kbd{padding:.1875rem .375rem;font-size:.875em;color:var(--bs-body-bg);background-color:var(--bs-body-color);border-radius:.25rem}:host ::ng-deep kbd kbd{padding:0;font-size:1em}:host ::ng-deep figure{margin:0 0 1rem}:host ::ng-deep img,:host ::ng-deep svg{vertical-align:middle}:host ::ng-deep table{caption-side:bottom;border-collapse:collapse}:host ::ng-deep caption{padding-top:.5rem;padding-bottom:.5rem;color:var(--bs-secondary-color);text-align:left}:host ::ng-deep th{text-align:inherit;text-align:-webkit-match-parent}:host ::ng-deep thead,:host ::ng-deep tbody,:host ::ng-deep tfoot,:host ::ng-deep tr,:host ::ng-deep td,:host ::ng-deep th{border-color:inherit;border-style:solid;border-width:0}:host ::ng-deep label{display:inline-block}:host ::ng-deep button{border-radius:0}:host ::ng-deep button:focus:not(:focus-visible){outline:0}:host ::ng-deep input,:host ::ng-deep button,:host ::ng-deep select,:host ::ng-deep optgroup,:host ::ng-deep textarea{margin:0;font-family:inherit;font-size:inherit;line-height:inherit}:host ::ng-deep button,:host ::ng-deep select{text-transform:none}:host ::ng-deep [role=button]{cursor:pointer}:host ::ng-deep select{word-wrap:normal}:host ::ng-deep select:disabled{opacity:1}:host ::ng-deep [list]:not([type=date]):not([type=datetime-local]):not([type=month]):not([type=week]):not([type=time])::-webkit-calendar-picker-indicator{display:none!important}:host ::ng-deep button,:host ::ng-deep [type=button],:host ::ng-deep [type=reset],:host ::ng-deep [type=submit]{-webkit-appearance:button}:host ::ng-deep button:not(:disabled),:host ::ng-deep [type=button]:not(:disabled),:host ::ng-deep [type=reset]:not(:disabled),:host ::ng-deep [type=submit]:not(:disabled){cursor:pointer}:host ::ng-deep ::-moz-focus-inner{padding:0;border-style:none}:host ::ng-deep textarea{resize:vertical}:host ::ng-deep fieldset{min-width:0;padding:0;margin:0;border:0}:host ::ng-deep legend{float:left;width:100%;padding:0;margin-bottom:.5rem;line-height:inherit;font-size:calc(1.275rem + .3vw)}@media(min-width:1200px){:host ::ng-deep legend{font-size:1.5rem}}:host ::ng-deep legend+*{clear:left}:host ::ng-deep ::-webkit-datetime-edit-fields-wrapper,:host ::ng-deep ::-webkit-datetime-edit-text,:host ::ng-deep ::-webkit-datetime-edit-minute,:host ::ng-deep ::-webkit-datetime-edit-hour-field,:host ::ng-deep ::-webkit-datetime-edit-day-field,:host ::ng-deep ::-webkit-datetime-edit-month-field,:host ::ng-deep ::-webkit-datetime-edit-year-field{padding:0}:host ::ng-deep ::-webkit-inner-spin-button{height:auto}:host ::ng-deep [type=search]{-webkit-appearance:textfield;outline-offset:-2px}:host ::ng-deep [type=search]::-webkit-search-cancel-button{cursor:pointer;filter:grayscale(1)}:host ::ng-deep ::-webkit-search-decoration{-webkit-appearance:none}:host ::ng-deep ::-webkit-color-swatch-wrapper{padding:0}:host ::ng-deep ::file-selector-button{font:inherit;-webkit-appearance:button}:host ::ng-deep output{display:inline-block}:host ::ng-deep iframe{border:0}:host ::ng-deep summary{display:list-item;cursor:pointer}:host ::ng-deep progress{vertical-align:baseline}:host ::ng-deep [hidden]{display:none!important}:host ::ng-deep .table{--bs-table-color-type: initial;--bs-table-bg-type: initial;--bs-table-color-state: initial;--bs-table-bg-state: initial;--bs-table-color: var(--bs-emphasis-color);--bs-table-bg: var(--bs-body-bg);--bs-table-border-color: var(--bs-border-color);--bs-table-accent-bg: transparent;--bs-table-striped-color: var(--bs-emphasis-color);--bs-table-striped-bg: rgba(var(--bs-emphasis-color-rgb), .05);--bs-table-active-color: var(--bs-emphasis-color);--bs-table-active-bg: rgba(var(--bs-emphasis-color-rgb), .1);--bs-table-hover-color: var(--bs-emphasis-color);--bs-table-hover-bg: rgba(var(--bs-emphasis-color-rgb), .075);width:100%;margin-bottom:1rem;vertical-align:top;border-color:var(--bs-table-border-color)}:host ::ng-deep .table>:not(caption)>*>*{padding:.5rem;color:var(--bs-table-color-state, var(--bs-table-color-type, var(--bs-table-color)));background-color:var(--bs-table-bg);border-bottom-width:var(--bs-border-width);box-shadow:inset 0 0 0 9999px var(--bs-table-bg-state, var(--bs-table-bg-type, var(--bs-table-accent-bg)))}:host ::ng-deep .table>tbody{vertical-align:inherit}:host ::ng-deep .table>thead{vertical-align:bottom}:host ::ng-deep .table-group-divider{border-top:calc(var(--bs-border-width) * 2) solid currentcolor}:host ::ng-deep .caption-top{caption-side:top}:host ::ng-deep .table-sm>:not(caption)>*>*{padding:.25rem}:host ::ng-deep .table-bordered>:not(caption)>*{border-width:var(--bs-border-width) 0}:host ::ng-deep .table-bordered>:not(caption)>*>*{border-width:0 var(--bs-border-width)}:host ::ng-deep .table-borderless>:not(caption)>*>*{border-bottom-width:0}:host ::ng-deep .table-borderless>:not(:first-child){border-top-width:0}:host ::ng-deep .table-striped>tbody>tr:nth-of-type(odd)>*{--bs-table-color-type: var(--bs-table-striped-color);--bs-table-bg-type: var(--bs-table-striped-bg)}:host ::ng-deep .table-striped-columns>:not(caption)>tr>:nth-child(2n){--bs-table-color-type: var(--bs-table-striped-color);--bs-table-bg-type: var(--bs-table-striped-bg)}:host ::ng-deep .table-active{--bs-table-color-state: var(--bs-table-active-color);--bs-table-bg-state: var(--bs-table-active-bg)}:host ::ng-deep .table-hover>tbody>tr:hover>*{--bs-table-color-state: var(--bs-table-hover-color);--bs-table-bg-state: var(--bs-table-hover-bg)}:host ::ng-deep .table-primary{--bs-table-color: #000;--bs-table-bg: rgb(81.0196078431%, 88.6274509804%, 99.8431372549%);--bs-table-border-color: rgb(64.8156862745%, 70.9019607843%, 79.8745098039%);--bs-table-striped-bg: rgb(76.968627451%, 84.1960784314%, 94.8509803922%);--bs-table-striped-color: #000;--bs-table-active-bg: rgb(72.9176470588%, 79.7647058824%, 89.8588235294%);--bs-table-active-color: #000;--bs-table-hover-bg: rgb(74.9431372549%, 81.9803921569%, 92.3549019608%);--bs-table-hover-color: #000;color:var(--bs-table-color);border-color:var(--bs-table-border-color)}:host ::ng-deep .table-secondary{--bs-table-color: #000;--bs-table-bg: rgb(88.4705882353%, 89.1764705882%, 89.8039215686%);--bs-table-border-color: rgb(70.7764705882%, 71.3411764706%, 71.8431372549%);--bs-table-striped-bg: rgb(84.0470588235%, 84.7176470588%, 85.3137254902%);--bs-table-striped-color: #000;--bs-table-active-bg: rgb(79.6235294118%, 80.2588235294%, 80.8235294118%);--bs-table-active-color: #000;--bs-table-hover-bg: rgb(81.8352941176%, 82.4882352941%, 83.068627451%);--bs-table-hover-color: #000;color:var(--bs-table-color);border-color:var(--bs-table-border-color)}:host ::ng-deep .table-success{--bs-table-color: #000;--bs-table-bg: rgb(81.9607843137%, 90.5882352941%, 86.5882352941%);--bs-table-border-color: rgb(65.568627451%, 72.4705882353%, 69.2705882353%);--bs-table-striped-bg: rgb(77.862745098%, 86.0588235294%, 82.2588235294%);--bs-table-striped-color: #000;--bs-table-active-bg: rgb(73.7647058824%, 81.5294117647%, 77.9294117647%);--bs-table-active-color: #000;--bs-table-hover-bg: rgb(75.8137254902%, 83.7941176471%, 80.0941176471%);--bs-table-hover-color: #000;color:var(--bs-table-color);border-color:var(--bs-table-border-color)}:host ::ng-deep .table-info{--bs-table-color: #000;--bs-table-bg: rgb(81.0196078431%, 95.8431372549%, 98.8235294118%);--bs-table-border-color: rgb(64.8156862745%, 76.6745098039%, 79.0588235294%);--bs-table-striped-bg: rgb(76.968627451%, 91.0509803922%, 93.8823529412%);--bs-table-striped-color: #000;--bs-table-active-bg: rgb(72.9176470588%, 86.2588235294%, 88.9411764706%);--bs-table-active-color: #000;--bs-table-hover-bg: rgb(74.9431372549%, 88.6549019608%, 91.4117647059%);--bs-table-hover-color: #000;color:var(--bs-table-color);border-color:var(--bs-table-border-color)}:host ::ng-deep .table-warning{--bs-table-color: #000;--bs-table-bg: rgb(100%, 95.137254902%, 80.5490196078%);--bs-table-border-color: rgb(80%, 76.1098039216%, 64.4392156863%);--bs-table-striped-bg: rgb(95%, 90.3803921569%, 76.5215686275%);--bs-table-striped-color: #000;--bs-table-active-bg: rgb(90%, 85.6235294118%, 72.4941176471%);--bs-table-active-color: #000;--bs-table-hover-bg: rgb(92.5%, 88.0019607843%, 74.5078431373%);--bs-table-hover-color: #000;color:var(--bs-table-color);border-color:var(--bs-table-border-color)}:host ::ng-deep .table-danger{--bs-table-color: #000;--bs-table-bg: rgb(97.2549019608%, 84.1568627451%, 85.4117647059%);--bs-table-border-color: rgb(77.8039215686%, 67.3254901961%, 68.3294117647%);--bs-table-striped-bg: rgb(92.3921568627%, 79.9490196078%, 81.1411764706%);--bs-table-striped-color: #000;--bs-table-active-bg: rgb(87.5294117647%, 75.7411764706%, 76.8705882353%);--bs-table-active-color: #000;--bs-table-hover-bg: rgb(89.9607843137%, 77.8450980392%, 79.0058823529%);--bs-table-hover-color: #000;color:var(--bs-table-color);border-color:var(--bs-table-border-color)}:host ::ng-deep .table-light{--bs-table-color: #000;--bs-table-bg: #f8f9fa;--bs-table-border-color: rgb(77.8039215686%, 78.1176470588%, 78.431372549%);--bs-table-striped-bg: rgb(92.3921568627%, 92.7647058824%, 93.137254902%);--bs-table-striped-color: #000;--bs-table-active-bg: rgb(87.5294117647%, 87.8823529412%, 88.2352941176%);--bs-table-active-color: #000;--bs-table-hover-bg: rgb(89.9607843137%, 90.3235294118%, 90.6862745098%);--bs-table-hover-color: #000;color:var(--bs-table-color);border-color:var(--bs-table-border-color)}:host ::ng-deep .table-dark{--bs-table-color: #fff;--bs-table-bg: #212529;--bs-table-border-color: rgb(30.3529411765%, 31.6078431373%, 32.862745098%);--bs-table-striped-bg: rgb(17.2941176471%, 18.7843137255%, 20.2745098039%);--bs-table-striped-color: #fff;--bs-table-active-bg: rgb(21.6470588235%, 23.0588235294%, 24.4705882353%);--bs-table-active-color: #fff;--bs-table-hover-bg: rgb(19.4705882353%, 20.9215686275%, 22.3725490196%);--bs-table-hover-color: #fff;color:var(--bs-table-color);border-color:var(--bs-table-border-color)}:host ::ng-deep .table-responsive{overflow-x:auto;-webkit-overflow-scrolling:touch}@media(max-width:575.98px){:host ::ng-deep .table-responsive-sm{overflow-x:auto;-webkit-overflow-scrolling:touch}}@media(max-width:767.98px){:host ::ng-deep .table-responsive-md{overflow-x:auto;-webkit-overflow-scrolling:touch}}@media(max-width:991.98px){:host ::ng-deep .table-responsive-lg{overflow-x:auto;-webkit-overflow-scrolling:touch}}@media(max-width:1199.98px){:host ::ng-deep .table-responsive-xl{overflow-x:auto;-webkit-overflow-scrolling:touch}}@media(max-width:1399.98px){:host ::ng-deep .table-responsive-xxl{overflow-x:auto;-webkit-overflow-scrolling:touch}}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
7
|
-
}
|
|
8
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsTableStylesComponent, decorators: [{
|
|
9
|
-
type: Component,
|
|
10
|
-
args: [{ selector: 'bs-table-styles', template: '<ng-content></ng-content>', changeDetection: ChangeDetectionStrategy.OnPush, styles: [":host{display:contents}:host ::ng-deep *,:host ::ng-deep *:before,:host ::ng-deep *:after{box-sizing:border-box}@media(prefers-reduced-motion:no-preference){:host ::ng-deep :root{scroll-behavior:smooth}}:host ::ng-deep body{margin:0;font-family:var(--bs-body-font-family);font-size:var(--bs-body-font-size);font-weight:var(--bs-body-font-weight);line-height:var(--bs-body-line-height);color:var(--bs-body-color);text-align:var(--bs-body-text-align);background-color:var(--bs-body-bg);-webkit-text-size-adjust:100%;-webkit-tap-highlight-color:rgba(0,0,0,0)}:host ::ng-deep hr{margin:1rem 0;color:inherit;border:0;border-top:var(--bs-border-width) solid;opacity:.25}:host ::ng-deep h6,:host ::ng-deep h5,:host ::ng-deep h4,:host ::ng-deep h3,:host ::ng-deep h2,:host ::ng-deep h1{margin-top:0;margin-bottom:.5rem;font-weight:500;line-height:1.2;color:var(--bs-heading-color)}:host ::ng-deep h1{font-size:calc(1.375rem + 1.5vw)}@media(min-width:1200px){:host ::ng-deep h1{font-size:2.5rem}}:host ::ng-deep h2{font-size:calc(1.325rem + .9vw)}@media(min-width:1200px){:host ::ng-deep h2{font-size:2rem}}:host ::ng-deep h3{font-size:calc(1.3rem + .6vw)}@media(min-width:1200px){:host ::ng-deep h3{font-size:1.75rem}}:host ::ng-deep h4{font-size:calc(1.275rem + .3vw)}@media(min-width:1200px){:host ::ng-deep h4{font-size:1.5rem}}:host ::ng-deep h5{font-size:1.25rem}:host ::ng-deep h6{font-size:1rem}:host ::ng-deep p{margin-top:0;margin-bottom:1rem}:host ::ng-deep abbr[title]{text-decoration:underline dotted;cursor:help;text-decoration-skip-ink:none}:host ::ng-deep address{margin-bottom:1rem;font-style:normal;line-height:inherit}:host ::ng-deep ol,:host ::ng-deep ul{padding-left:2rem}:host ::ng-deep ol,:host ::ng-deep ul,:host ::ng-deep dl{margin-top:0;margin-bottom:1rem}:host ::ng-deep ol ol,:host ::ng-deep ul ul,:host ::ng-deep ol ul,:host ::ng-deep ul ol{margin-bottom:0}:host ::ng-deep dt{font-weight:700}:host ::ng-deep dd{margin-bottom:.5rem;margin-left:0}:host ::ng-deep blockquote{margin:0 0 1rem}:host ::ng-deep b,:host ::ng-deep strong{font-weight:bolder}:host ::ng-deep small{font-size:.875em}:host ::ng-deep mark{padding:.1875em;color:var(--bs-highlight-color);background-color:var(--bs-highlight-bg)}:host ::ng-deep sub,:host ::ng-deep sup{position:relative;font-size:.75em;line-height:0;vertical-align:baseline}:host ::ng-deep sub{bottom:-.25em}:host ::ng-deep sup{top:-.5em}:host ::ng-deep a{color:rgba(var(--bs-link-color-rgb),var(--bs-link-opacity, 1));text-decoration:underline}:host ::ng-deep a:hover{--bs-link-color-rgb: var(--bs-link-hover-color-rgb)}:host ::ng-deep a:not([href]):not([class]),:host ::ng-deep a:not([href]):not([class]):hover{color:inherit;text-decoration:none}:host ::ng-deep pre,:host ::ng-deep code,:host ::ng-deep kbd,:host ::ng-deep samp{font-family:var(--bs-font-monospace);font-size:1em}:host ::ng-deep pre{display:block;margin-top:0;margin-bottom:1rem;overflow:auto;font-size:.875em}:host ::ng-deep pre code{font-size:inherit;color:inherit;word-break:normal}:host ::ng-deep code{font-size:.875em;color:var(--bs-code-color);word-wrap:break-word}a>:host ::ng-deep code{color:inherit}:host ::ng-deep kbd{padding:.1875rem .375rem;font-size:.875em;color:var(--bs-body-bg);background-color:var(--bs-body-color);border-radius:.25rem}:host ::ng-deep kbd kbd{padding:0;font-size:1em}:host ::ng-deep figure{margin:0 0 1rem}:host ::ng-deep img,:host ::ng-deep svg{vertical-align:middle}:host ::ng-deep table{caption-side:bottom;border-collapse:collapse}:host ::ng-deep caption{padding-top:.5rem;padding-bottom:.5rem;color:var(--bs-secondary-color);text-align:left}:host ::ng-deep th{text-align:inherit;text-align:-webkit-match-parent}:host ::ng-deep thead,:host ::ng-deep tbody,:host ::ng-deep tfoot,:host ::ng-deep tr,:host ::ng-deep td,:host ::ng-deep th{border-color:inherit;border-style:solid;border-width:0}:host ::ng-deep label{display:inline-block}:host ::ng-deep button{border-radius:0}:host ::ng-deep button:focus:not(:focus-visible){outline:0}:host ::ng-deep input,:host ::ng-deep button,:host ::ng-deep select,:host ::ng-deep optgroup,:host ::ng-deep textarea{margin:0;font-family:inherit;font-size:inherit;line-height:inherit}:host ::ng-deep button,:host ::ng-deep select{text-transform:none}:host ::ng-deep [role=button]{cursor:pointer}:host ::ng-deep select{word-wrap:normal}:host ::ng-deep select:disabled{opacity:1}:host ::ng-deep [list]:not([type=date]):not([type=datetime-local]):not([type=month]):not([type=week]):not([type=time])::-webkit-calendar-picker-indicator{display:none!important}:host ::ng-deep button,:host ::ng-deep [type=button],:host ::ng-deep [type=reset],:host ::ng-deep [type=submit]{-webkit-appearance:button}:host ::ng-deep button:not(:disabled),:host ::ng-deep [type=button]:not(:disabled),:host ::ng-deep [type=reset]:not(:disabled),:host ::ng-deep [type=submit]:not(:disabled){cursor:pointer}:host ::ng-deep ::-moz-focus-inner{padding:0;border-style:none}:host ::ng-deep textarea{resize:vertical}:host ::ng-deep fieldset{min-width:0;padding:0;margin:0;border:0}:host ::ng-deep legend{float:left;width:100%;padding:0;margin-bottom:.5rem;line-height:inherit;font-size:calc(1.275rem + .3vw)}@media(min-width:1200px){:host ::ng-deep legend{font-size:1.5rem}}:host ::ng-deep legend+*{clear:left}:host ::ng-deep ::-webkit-datetime-edit-fields-wrapper,:host ::ng-deep ::-webkit-datetime-edit-text,:host ::ng-deep ::-webkit-datetime-edit-minute,:host ::ng-deep ::-webkit-datetime-edit-hour-field,:host ::ng-deep ::-webkit-datetime-edit-day-field,:host ::ng-deep ::-webkit-datetime-edit-month-field,:host ::ng-deep ::-webkit-datetime-edit-year-field{padding:0}:host ::ng-deep ::-webkit-inner-spin-button{height:auto}:host ::ng-deep [type=search]{-webkit-appearance:textfield;outline-offset:-2px}:host ::ng-deep [type=search]::-webkit-search-cancel-button{cursor:pointer;filter:grayscale(1)}:host ::ng-deep ::-webkit-search-decoration{-webkit-appearance:none}:host ::ng-deep ::-webkit-color-swatch-wrapper{padding:0}:host ::ng-deep ::file-selector-button{font:inherit;-webkit-appearance:button}:host ::ng-deep output{display:inline-block}:host ::ng-deep iframe{border:0}:host ::ng-deep summary{display:list-item;cursor:pointer}:host ::ng-deep progress{vertical-align:baseline}:host ::ng-deep [hidden]{display:none!important}:host ::ng-deep .table{--bs-table-color-type: initial;--bs-table-bg-type: initial;--bs-table-color-state: initial;--bs-table-bg-state: initial;--bs-table-color: var(--bs-emphasis-color);--bs-table-bg: var(--bs-body-bg);--bs-table-border-color: var(--bs-border-color);--bs-table-accent-bg: transparent;--bs-table-striped-color: var(--bs-emphasis-color);--bs-table-striped-bg: rgba(var(--bs-emphasis-color-rgb), .05);--bs-table-active-color: var(--bs-emphasis-color);--bs-table-active-bg: rgba(var(--bs-emphasis-color-rgb), .1);--bs-table-hover-color: var(--bs-emphasis-color);--bs-table-hover-bg: rgba(var(--bs-emphasis-color-rgb), .075);width:100%;margin-bottom:1rem;vertical-align:top;border-color:var(--bs-table-border-color)}:host ::ng-deep .table>:not(caption)>*>*{padding:.5rem;color:var(--bs-table-color-state, var(--bs-table-color-type, var(--bs-table-color)));background-color:var(--bs-table-bg);border-bottom-width:var(--bs-border-width);box-shadow:inset 0 0 0 9999px var(--bs-table-bg-state, var(--bs-table-bg-type, var(--bs-table-accent-bg)))}:host ::ng-deep .table>tbody{vertical-align:inherit}:host ::ng-deep .table>thead{vertical-align:bottom}:host ::ng-deep .table-group-divider{border-top:calc(var(--bs-border-width) * 2) solid currentcolor}:host ::ng-deep .caption-top{caption-side:top}:host ::ng-deep .table-sm>:not(caption)>*>*{padding:.25rem}:host ::ng-deep .table-bordered>:not(caption)>*{border-width:var(--bs-border-width) 0}:host ::ng-deep .table-bordered>:not(caption)>*>*{border-width:0 var(--bs-border-width)}:host ::ng-deep .table-borderless>:not(caption)>*>*{border-bottom-width:0}:host ::ng-deep .table-borderless>:not(:first-child){border-top-width:0}:host ::ng-deep .table-striped>tbody>tr:nth-of-type(odd)>*{--bs-table-color-type: var(--bs-table-striped-color);--bs-table-bg-type: var(--bs-table-striped-bg)}:host ::ng-deep .table-striped-columns>:not(caption)>tr>:nth-child(2n){--bs-table-color-type: var(--bs-table-striped-color);--bs-table-bg-type: var(--bs-table-striped-bg)}:host ::ng-deep .table-active{--bs-table-color-state: var(--bs-table-active-color);--bs-table-bg-state: var(--bs-table-active-bg)}:host ::ng-deep .table-hover>tbody>tr:hover>*{--bs-table-color-state: var(--bs-table-hover-color);--bs-table-bg-state: var(--bs-table-hover-bg)}:host ::ng-deep .table-primary{--bs-table-color: #000;--bs-table-bg: rgb(81.0196078431%, 88.6274509804%, 99.8431372549%);--bs-table-border-color: rgb(64.8156862745%, 70.9019607843%, 79.8745098039%);--bs-table-striped-bg: rgb(76.968627451%, 84.1960784314%, 94.8509803922%);--bs-table-striped-color: #000;--bs-table-active-bg: rgb(72.9176470588%, 79.7647058824%, 89.8588235294%);--bs-table-active-color: #000;--bs-table-hover-bg: rgb(74.9431372549%, 81.9803921569%, 92.3549019608%);--bs-table-hover-color: #000;color:var(--bs-table-color);border-color:var(--bs-table-border-color)}:host ::ng-deep .table-secondary{--bs-table-color: #000;--bs-table-bg: rgb(88.4705882353%, 89.1764705882%, 89.8039215686%);--bs-table-border-color: rgb(70.7764705882%, 71.3411764706%, 71.8431372549%);--bs-table-striped-bg: rgb(84.0470588235%, 84.7176470588%, 85.3137254902%);--bs-table-striped-color: #000;--bs-table-active-bg: rgb(79.6235294118%, 80.2588235294%, 80.8235294118%);--bs-table-active-color: #000;--bs-table-hover-bg: rgb(81.8352941176%, 82.4882352941%, 83.068627451%);--bs-table-hover-color: #000;color:var(--bs-table-color);border-color:var(--bs-table-border-color)}:host ::ng-deep .table-success{--bs-table-color: #000;--bs-table-bg: rgb(81.9607843137%, 90.5882352941%, 86.5882352941%);--bs-table-border-color: rgb(65.568627451%, 72.4705882353%, 69.2705882353%);--bs-table-striped-bg: rgb(77.862745098%, 86.0588235294%, 82.2588235294%);--bs-table-striped-color: #000;--bs-table-active-bg: rgb(73.7647058824%, 81.5294117647%, 77.9294117647%);--bs-table-active-color: #000;--bs-table-hover-bg: rgb(75.8137254902%, 83.7941176471%, 80.0941176471%);--bs-table-hover-color: #000;color:var(--bs-table-color);border-color:var(--bs-table-border-color)}:host ::ng-deep .table-info{--bs-table-color: #000;--bs-table-bg: rgb(81.0196078431%, 95.8431372549%, 98.8235294118%);--bs-table-border-color: rgb(64.8156862745%, 76.6745098039%, 79.0588235294%);--bs-table-striped-bg: rgb(76.968627451%, 91.0509803922%, 93.8823529412%);--bs-table-striped-color: #000;--bs-table-active-bg: rgb(72.9176470588%, 86.2588235294%, 88.9411764706%);--bs-table-active-color: #000;--bs-table-hover-bg: rgb(74.9431372549%, 88.6549019608%, 91.4117647059%);--bs-table-hover-color: #000;color:var(--bs-table-color);border-color:var(--bs-table-border-color)}:host ::ng-deep .table-warning{--bs-table-color: #000;--bs-table-bg: rgb(100%, 95.137254902%, 80.5490196078%);--bs-table-border-color: rgb(80%, 76.1098039216%, 64.4392156863%);--bs-table-striped-bg: rgb(95%, 90.3803921569%, 76.5215686275%);--bs-table-striped-color: #000;--bs-table-active-bg: rgb(90%, 85.6235294118%, 72.4941176471%);--bs-table-active-color: #000;--bs-table-hover-bg: rgb(92.5%, 88.0019607843%, 74.5078431373%);--bs-table-hover-color: #000;color:var(--bs-table-color);border-color:var(--bs-table-border-color)}:host ::ng-deep .table-danger{--bs-table-color: #000;--bs-table-bg: rgb(97.2549019608%, 84.1568627451%, 85.4117647059%);--bs-table-border-color: rgb(77.8039215686%, 67.3254901961%, 68.3294117647%);--bs-table-striped-bg: rgb(92.3921568627%, 79.9490196078%, 81.1411764706%);--bs-table-striped-color: #000;--bs-table-active-bg: rgb(87.5294117647%, 75.7411764706%, 76.8705882353%);--bs-table-active-color: #000;--bs-table-hover-bg: rgb(89.9607843137%, 77.8450980392%, 79.0058823529%);--bs-table-hover-color: #000;color:var(--bs-table-color);border-color:var(--bs-table-border-color)}:host ::ng-deep .table-light{--bs-table-color: #000;--bs-table-bg: #f8f9fa;--bs-table-border-color: rgb(77.8039215686%, 78.1176470588%, 78.431372549%);--bs-table-striped-bg: rgb(92.3921568627%, 92.7647058824%, 93.137254902%);--bs-table-striped-color: #000;--bs-table-active-bg: rgb(87.5294117647%, 87.8823529412%, 88.2352941176%);--bs-table-active-color: #000;--bs-table-hover-bg: rgb(89.9607843137%, 90.3235294118%, 90.6862745098%);--bs-table-hover-color: #000;color:var(--bs-table-color);border-color:var(--bs-table-border-color)}:host ::ng-deep .table-dark{--bs-table-color: #fff;--bs-table-bg: #212529;--bs-table-border-color: rgb(30.3529411765%, 31.6078431373%, 32.862745098%);--bs-table-striped-bg: rgb(17.2941176471%, 18.7843137255%, 20.2745098039%);--bs-table-striped-color: #fff;--bs-table-active-bg: rgb(21.6470588235%, 23.0588235294%, 24.4705882353%);--bs-table-active-color: #fff;--bs-table-hover-bg: rgb(19.4705882353%, 20.9215686275%, 22.3725490196%);--bs-table-hover-color: #fff;color:var(--bs-table-color);border-color:var(--bs-table-border-color)}:host ::ng-deep .table-responsive{overflow-x:auto;-webkit-overflow-scrolling:touch}@media(max-width:575.98px){:host ::ng-deep .table-responsive-sm{overflow-x:auto;-webkit-overflow-scrolling:touch}}@media(max-width:767.98px){:host ::ng-deep .table-responsive-md{overflow-x:auto;-webkit-overflow-scrolling:touch}}@media(max-width:991.98px){:host ::ng-deep .table-responsive-lg{overflow-x:auto;-webkit-overflow-scrolling:touch}}@media(max-width:1199.98px){:host ::ng-deep .table-responsive-xl{overflow-x:auto;-webkit-overflow-scrolling:touch}}@media(max-width:1399.98px){:host ::ng-deep .table-responsive-xxl{overflow-x:auto;-webkit-overflow-scrolling:touch}}\n"] }]
|
|
11
|
-
}] });
|
|
2
|
+
import { input, ChangeDetectionStrategy, Component } from '@angular/core';
|
|
3
|
+
import { useBootstrap } from '@mintplayer/ng-bootstrap/machine';
|
|
4
|
+
import { bootstrapTables } from '@mintplayer/ui-core/bootstrap/tables';
|
|
12
5
|
|
|
13
6
|
class BsTableComponent {
|
|
14
7
|
constructor() {
|
|
@@ -28,18 +21,20 @@ class BsTableComponent {
|
|
|
28
21
|
*/
|
|
29
22
|
this.ariaRowCount = input(null, /* @ts-ignore */
|
|
30
23
|
...(ngDevMode ? [{ debugName: "ariaRowCount" }] : /* istanbul ignore next */ []));
|
|
24
|
+
// #452: the tables partial ships with the table, scoped to its stamped <table>.
|
|
25
|
+
useBootstrap(bootstrapTables);
|
|
31
26
|
}
|
|
32
27
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsTableComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
33
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.0.8", type: BsTableComponent, isStandalone: true, selector: "bs-table", inputs: { isResponsive: { classPropertyName: "isResponsive", publicName: "isResponsive", isSignal: true, isRequired: false, transformFunction: null }, striped: { classPropertyName: "striped", publicName: "striped", isSignal: true, isRequired: false, transformFunction: null }, hover: { classPropertyName: "hover", publicName: "hover", isSignal: true, isRequired: false, transformFunction: null }, border: { classPropertyName: "border", publicName: "border", isSignal: true, isRequired: false, transformFunction: null }, ariaRowCount: { classPropertyName: "ariaRowCount", publicName: "ariaRowCount", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: "<
|
|
28
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.0.8", type: BsTableComponent, isStandalone: true, selector: "bs-table", inputs: { isResponsive: { classPropertyName: "isResponsive", publicName: "isResponsive", isSignal: true, isRequired: false, transformFunction: null }, striped: { classPropertyName: "striped", publicName: "striped", isSignal: true, isRequired: false, transformFunction: null }, hover: { classPropertyName: "hover", publicName: "hover", isSignal: true, isRequired: false, transformFunction: null }, border: { classPropertyName: "border", publicName: "border", isSignal: true, isRequired: false, transformFunction: null }, ariaRowCount: { classPropertyName: "ariaRowCount", publicName: "ariaRowCount", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: "<div class=\"d-block\" data-mps=\"table\" [class.table-responsive]=\"isResponsive()\" [class.nowrap]=\"isResponsive()\">\n <table class=\"table\" data-mps=\"table\" cellspacing=\"0\"\n [class.mb-0]=\"isResponsive()\"\n [class.table-striped]=\"striped()\"\n [class.table-hover]=\"hover()\"\n [class.border]=\"border()\"\n [attr.aria-rowcount]=\"ariaRowCount()\">\n\n <ng-content></ng-content>\n\n </table>\n</div>\n", styles: [":host ::ng-deep .table-responsive.nowrap :is(th,td){white-space:nowrap}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
34
29
|
}
|
|
35
30
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsTableComponent, decorators: [{
|
|
36
31
|
type: Component,
|
|
37
|
-
args: [{ selector: 'bs-table',
|
|
38
|
-
}], propDecorators: { isResponsive: [{ type: i0.Input, args: [{ isSignal: true, alias: "isResponsive", required: false }] }], striped: [{ type: i0.Input, args: [{ isSignal: true, alias: "striped", required: false }] }], hover: [{ type: i0.Input, args: [{ isSignal: true, alias: "hover", required: false }] }], border: [{ type: i0.Input, args: [{ isSignal: true, alias: "border", required: false }] }], ariaRowCount: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaRowCount", required: false }] }] } });
|
|
32
|
+
args: [{ selector: 'bs-table', changeDetection: ChangeDetectionStrategy.OnPush, template: "<div class=\"d-block\" data-mps=\"table\" [class.table-responsive]=\"isResponsive()\" [class.nowrap]=\"isResponsive()\">\n <table class=\"table\" data-mps=\"table\" cellspacing=\"0\"\n [class.mb-0]=\"isResponsive()\"\n [class.table-striped]=\"striped()\"\n [class.table-hover]=\"hover()\"\n [class.border]=\"border()\"\n [attr.aria-rowcount]=\"ariaRowCount()\">\n\n <ng-content></ng-content>\n\n </table>\n</div>\n", styles: [":host ::ng-deep .table-responsive.nowrap :is(th,td){white-space:nowrap}\n"] }]
|
|
33
|
+
}], ctorParameters: () => [], propDecorators: { isResponsive: [{ type: i0.Input, args: [{ isSignal: true, alias: "isResponsive", required: false }] }], striped: [{ type: i0.Input, args: [{ isSignal: true, alias: "striped", required: false }] }], hover: [{ type: i0.Input, args: [{ isSignal: true, alias: "hover", required: false }] }], border: [{ type: i0.Input, args: [{ isSignal: true, alias: "border", required: false }] }], ariaRowCount: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaRowCount", required: false }] }] } });
|
|
39
34
|
|
|
40
35
|
/**
|
|
41
36
|
* Generated bundle index. Do not edit.
|
|
42
37
|
*/
|
|
43
38
|
|
|
44
|
-
export { BsTableComponent
|
|
39
|
+
export { BsTableComponent };
|
|
45
40
|
//# sourceMappingURL=mintplayer-ng-bootstrap-table.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mintplayer-ng-bootstrap-table.mjs","sources":["../../../../libs/mintplayer-ng-bootstrap/table/src/
|
|
1
|
+
{"version":3,"file":"mintplayer-ng-bootstrap-table.mjs","sources":["../../../../libs/mintplayer-ng-bootstrap/table/src/component/table.component.ts","../../../../libs/mintplayer-ng-bootstrap/table/src/component/table.component.html","../../../../libs/mintplayer-ng-bootstrap/table/mintplayer-ng-bootstrap-table.ts"],"sourcesContent":["import { ChangeDetectionStrategy, Component, input } from '@angular/core';\nimport { useBootstrap } from '@mintplayer/ng-bootstrap/machine';\nimport { bootstrapTables } from '@mintplayer/ui-core/bootstrap/tables';\n\n@Component({\n selector: 'bs-table',\n templateUrl: './table.component.html',\n styleUrls: ['./table.component.scss'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class BsTableComponent {\n constructor() {\n // #452: the tables partial ships with the table, scoped to its stamped <table>.\n useBootstrap(bootstrapTables);\n }\n\n isResponsive = input(false);\n striped = input(false);\n hover = input(false);\n border = input(false);\n /**\n * Forwards `aria-rowcount` onto the wrapped `<table>` element. Used by\n * virtualised consumers that need SR users to hear \"row N of Y\" with Y matching the full\n * record set, not the DOM slice. `null` (default) leaves the attribute\n * off entirely.\n */\n ariaRowCount = input<number | null>(null);\n}\n","<div class=\"d-block\" data-mps=\"table\" [class.table-responsive]=\"isResponsive()\" [class.nowrap]=\"isResponsive()\">\n <table class=\"table\" data-mps=\"table\" cellspacing=\"0\"\n [class.mb-0]=\"isResponsive()\"\n [class.table-striped]=\"striped()\"\n [class.table-hover]=\"hover()\"\n [class.border]=\"border()\"\n [attr.aria-rowcount]=\"ariaRowCount()\">\n\n <ng-content></ng-content>\n\n </table>\n</div>\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;MAUa,gBAAgB,CAAA;AAC3B,IAAA,WAAA,GAAA;QAKA,IAAA,CAAA,YAAY,GAAG,KAAK,CAAC,KAAK;yFAAC;QAC3B,IAAA,CAAA,OAAO,GAAG,KAAK,CAAC,KAAK;oFAAC;QACtB,IAAA,CAAA,KAAK,GAAG,KAAK,CAAC,KAAK;kFAAC;QACpB,IAAA,CAAA,MAAM,GAAG,KAAK,CAAC,KAAK;mFAAC;AACrB;;;;;AAKG;QACH,IAAA,CAAA,YAAY,GAAG,KAAK,CAAgB,IAAI;yFAAC;;QAbvC,YAAY,CAAC,eAAe,CAAC;IAC/B;8GAJW,gBAAgB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;AAAhB,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,IAAA,EAAA,gBAAgB,2tBCV7B,gdAYA,EAAA,MAAA,EAAA,CAAA,2EAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,CAAA,CAAA;;2FDFa,gBAAgB,EAAA,UAAA,EAAA,CAAA;kBAN5B,SAAS;+BACE,UAAU,EAAA,eAAA,EAGH,uBAAuB,CAAC,MAAM,EAAA,QAAA,EAAA,gdAAA,EAAA,MAAA,EAAA,CAAA,2EAAA,CAAA,EAAA;;;AERjD;;AAEG;;;;"}
|
|
@@ -2,8 +2,9 @@ import * as i0 from '@angular/core';
|
|
|
2
2
|
import { inject, ElementRef, model, input, numberAttribute, output, ChangeDetectionStrategy, Component, Injector, DestroyRef, signal, effect, untracked, forwardRef, Directive, computed, booleanAttribute } from '@angular/core';
|
|
3
3
|
import { useCore, useScopedStyles, MpPropsDirective } from '@mintplayer/ng-bootstrap/machine';
|
|
4
4
|
import { timeListCore, timepickerScopedStyles, minutesOfDay, timepickerCore } from '@mintplayer/ui-core/timepicker';
|
|
5
|
-
import
|
|
6
|
-
import
|
|
5
|
+
import { bootstrapForms } from '@mintplayer/ui-core/bootstrap/forms';
|
|
6
|
+
import * as i2 from '@mintplayer/ng-bootstrap/a11y/forms';
|
|
7
|
+
import { BsControlValidityDirective } from '@mintplayer/ng-bootstrap/a11y/forms';
|
|
7
8
|
import { NG_VALUE_ACCESSOR, NG_VALIDATORS } from '@angular/forms';
|
|
8
9
|
|
|
9
10
|
// GENERATED from the timepicker manifest (time-list) by @mintplayer/nx-component-compiler. Do not edit.
|
|
@@ -33,6 +34,7 @@ class BsTimeListComponent {
|
|
|
33
34
|
this.#core = useCore(timeListCore, { inputs: () => ({ selectedTime: this.selectedTime(), step: this.step(), minMinutes: this.minMinutes(), maxMinutes: this.maxMinutes(), hour12: this.hour12(), locale: this.locale(), labels: this.labels() }), idPrefix: 'bs-time-list', outputs: { selectedTimeChange: this.selectedtimechange }, hostBag: (props) => ({ ...props.view.root, 'data-mps': 'timepicker' }), models: { selectedTime: this.selectedTime } });
|
|
34
35
|
/** The template's props. */
|
|
35
36
|
this.props = this.#core.props;
|
|
37
|
+
useScopedStyles(bootstrapForms.key, bootstrapForms.css, { order: bootstrapForms.order });
|
|
36
38
|
useScopedStyles('timepicker', timepickerScopedStyles);
|
|
37
39
|
}
|
|
38
40
|
/** Focus the roving slot. */
|
|
@@ -208,6 +210,7 @@ class BsTimepickerComponent {
|
|
|
208
210
|
this.#core = useCore(timepickerCore, { inputs: extendInputs(() => ({ selectedTime: this.selectedTime(), step: this.step(), min: this.min(), max: this.max(), hour12: this.hour12(), locale: this.locale(), disabled: this.disabled(), placeholder: this.placeholder(), required: this.required(), invalid: this.invalid(), errorText: this.errorText(), inputLabel: this.inputLabel(), name: this.name(), labels: this.labels() })), idPrefix: 'bs-timepicker', outputs: { selectedTimeChange: this.selectedtimechange, openChange: this.openchange }, hostBag: (props) => ({ ...props.view.root, 'data-mps': 'timepicker' }), models: { selectedTime: this.selectedTime } });
|
|
209
211
|
/** The template's props. */
|
|
210
212
|
this.props = this.#core.props;
|
|
213
|
+
useScopedStyles(bootstrapForms.key, bootstrapForms.css, { order: bootstrapForms.order });
|
|
211
214
|
useScopedStyles('timepicker', timepickerScopedStyles);
|
|
212
215
|
}
|
|
213
216
|
/** Open the list (ignored when disabled). */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mintplayer-ng-bootstrap-timepicker.mjs","sources":["../../../../libs/mintplayer-ng-bootstrap/timepicker/src/generated/time-list.component.generated.ts","../../../../libs/mintplayer-ng-bootstrap/timepicker/src/generated/time-list.view.generated.html","../../../../libs/mintplayer-ng-bootstrap/timepicker/src/value-accessor/timepicker-value-accessor.ts","../../../../libs/mintplayer-ng-bootstrap/timepicker/src/timepicker.angular.ts","../../../../libs/mintplayer-ng-bootstrap/timepicker/src/generated/timepicker.component.generated.ts","../../../../libs/mintplayer-ng-bootstrap/timepicker/src/generated/timepicker.view.generated.html","../../../../libs/mintplayer-ng-bootstrap/timepicker/src/generated/index.ts","../../../../libs/mintplayer-ng-bootstrap/timepicker/mintplayer-ng-bootstrap-timepicker.ts"],"sourcesContent":["// GENERATED from the timepicker manifest (time-list) by @mintplayer/nx-component-compiler. Do not edit.\nimport { ChangeDetectionStrategy, Component, ElementRef, inject, input, model, numberAttribute, output } from '@angular/core';\nimport { MpPropsDirective, useCore, useScopedStyles } from '@mintplayer/ng-bootstrap/machine';\nimport { timeListCore, type TimeListInputs, type TimeListMethods, timepickerScopedStyles } from '@mintplayer/ui-core/timepicker';\n\n/**\n * A listbox of time slots (#437): one real button per option, a roving tabindex, the APG keymap\n * (arrows, Home/End, PageUp/PageDown one hour). Bounds are minutes from midnight.\n * With JavaScript off the slots render inert.\n */\n@Component({\n selector: 'bs-time-list',\n templateUrl: './time-list.view.generated.html',\n imports: [MpPropsDirective],\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class BsTimeListComponent {\n /** The host element. */\n readonly elementRef = inject<ElementRef<HTMLElement>>(ElementRef);\n\n readonly selectedTime = model<TimeListInputs['selectedTime']>(null);\n readonly step = input<TimeListInputs['step'], unknown>(15, { transform: (v: unknown) => numberAttribute(v) as TimeListInputs['step'] });\n readonly minMinutes = input<TimeListInputs['minMinutes'], unknown>(null, { transform: (v: unknown) => numberAttribute(v) as TimeListInputs['minMinutes'] });\n readonly maxMinutes = input<TimeListInputs['maxMinutes'], unknown>(null, { transform: (v: unknown) => numberAttribute(v) as TimeListInputs['maxMinutes'] });\n readonly hour12 = input<TimeListInputs['hour12']>('auto');\n readonly locale = input<TimeListInputs['locale']>(null);\n readonly labels = input<TimeListInputs['labels']>(null);\n /** A slot chosen by click, Enter or Space. */\n readonly selectedtimechange = output<Date>();\n\n readonly #core = useCore(timeListCore, { inputs: () => ({ selectedTime: this.selectedTime(), step: this.step(), minMinutes: this.minMinutes(), maxMinutes: this.maxMinutes(), hour12: this.hour12(), locale: this.locale(), labels: this.labels() }), idPrefix: 'bs-time-list', outputs: { selectedTimeChange: this.selectedtimechange }, hostBag: (props) => ({ ...props.view.root, 'data-mps': 'timepicker' }), models: { selectedTime: this.selectedTime } });\n /** The template's props. */\n protected readonly props = this.#core.props;\n\n constructor() {\n useScopedStyles('timepicker', timepickerScopedStyles);\n }\n\n /** Focus the roving slot. */\n focusList(...args: Parameters<TimeListMethods['focusList']>): ReturnType<TimeListMethods['focusList']> {\n return this.#core.call('focusList', args) as ReturnType<TimeListMethods['focusList']>;\n }\n}\n","<!-- GENERATED from libs/mintplayer-ui-core/timepicker/src/templates/time-list.view.vue by @mintplayer/nx-component-compiler. Do not edit. -->\n@let p_view = props().view;\n<ul data-mps=\"timepicker\" [mpProps]=\"p_view.list\">\n @for (slot of p_view.slots; track slot.key) {\n <li data-mps=\"timepicker\" [mpProps]=\"slot.item\">\n <button data-mps=\"timepicker\" [mpProps]=\"slot.option\">\n {{ slot.text }}\n </button>\n </li>\n }\n</ul>\n","import { DestroyRef, Directive, Injector, OnInit, effect, forwardRef, inject, signal, untracked } from '@angular/core';\nimport {\n AbstractControl,\n ControlValueAccessor,\n NG_VALIDATORS,\n NG_VALUE_ACCESSOR,\n ValidationErrors,\n Validator,\n} from '@angular/forms';\nimport { minutesOfDay } from '@mintplayer/ui-core/timepicker';\nimport { BsTimepickerComponent } from '../generated';\n\n/**\n * The `ControlValueAccessor` and `Validator` of `bs-timepicker` (a host\n * directive of the generated component, see `timepicker.angular.ts`). A bound\n * form control drives the picked time through `viewValue`; a pick reaches the\n * form through the component's `selectedTime` model, which a form write never\n * echoes. A null form value clears the field.\n *\n * Validation compares times of day: `min` (`{ min, actual }`) and `max`\n * (`{ max, actual }`).\n */\n@Directive({\n providers: [\n { provide: NG_VALUE_ACCESSOR, useExisting: forwardRef(() => BsTimepickerValueAccessor), multi: true },\n { provide: NG_VALIDATORS, useExisting: forwardRef(() => BsTimepickerValueAccessor), multi: true },\n ],\n host: {\n '(focusout)': 'onTouched()',\n },\n})\nexport class BsTimepickerValueAccessor implements ControlValueAccessor, Validator, OnInit {\n private readonly injector = inject(Injector);\n private readonly destroyRef = inject(DestroyRef);\n private component?: BsTimepickerComponent;\n\n /** A form control drives the time: its `viewValue` wins over the `selectedTime` input. */\n readonly bound = signal(false);\n readonly viewValue = signal<Date | null>(null);\n readonly disabled = signal(false);\n\n private onChange: (value: Date | null) => void = () => undefined;\n onTouched: () => void = () => undefined;\n private onValidatorChange: () => void = () => undefined;\n\n ngOnInit(): void {\n // The component is created after its host directives, so it is looked up here.\n const component = (this.component = this.injector.get(BsTimepickerComponent));\n const sub = component.selectedtimechange.subscribe((value) => {\n if (!this.bound() || minutesOfDay(value) === minutesOfDay(this.viewValue())) return;\n this.viewValue.set(value);\n this.onChange(value);\n });\n this.destroyRef.onDestroy(() => sub.unsubscribe());\n // The limits are inputs: a change re-runs validation.\n effect(\n () => {\n component.min();\n component.max();\n untracked(() => this.onValidatorChange());\n },\n { injector: this.injector },\n );\n }\n\n registerOnChange(fn: (value: Date | 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 registerOnValidatorChange(fn: () => void): void {\n this.onValidatorChange = fn;\n }\n\n writeValue(value: Date | null | undefined): void {\n this.viewValue.set(value instanceof Date ? value : null);\n }\n\n setDisabledState(isDisabled: boolean): void {\n this.disabled.set(isDisabled);\n }\n\n validate(control: AbstractControl): ValidationErrors | null {\n const value = control.value;\n const component = this.component;\n if (!(value instanceof Date) || !component) return null;\n const minutes = minutesOfDay(value)!;\n const min = component.min();\n const max = component.max();\n const errors: ValidationErrors = {\n ...(min && minutes < minutesOfDay(min)! ? { min: { min, actual: value } } : {}),\n ...(max && minutes > minutesOfDay(max)! ? { max: { max, actual: value } } : {}),\n };\n return Object.keys(errors).length ? errors : null;\n }\n}\n","import { computed, inject } from '@angular/core';\nimport { BsControlValidityDirective } from '@mintplayer/ng-bootstrap/a11y';\nimport type { TimepickerInputs } from '@mintplayer/ui-core/timepicker';\nimport { BsTimepickerValueAccessor } from './value-accessor/timepicker-value-accessor';\n\n/*\n * The Angular extension of the generated `bs-timepicker` (PRD #437 D10 escape\n * hatch): Angular forms. A bound form control drives the picked time and the\n * disabled state, its validity reaches the field's ARIA and message, and it is\n * validated against min and max.\n */\n\nexport const hostDirectives = [\n BsTimepickerValueAccessor,\n { directive: BsControlValidityDirective, inputs: ['errorMessages'] },\n];\n\nexport function extendInputs(inputs: () => TimepickerInputs): () => TimepickerInputs {\n const accessor = inject(BsTimepickerValueAccessor, { self: true });\n const validity = inject(BsControlValidityDirective, { self: true });\n return computed<TimepickerInputs>(() => {\n const value = inputs();\n return {\n ...value,\n selectedTime: accessor.bound() ? accessor.viewValue() : value.selectedTime,\n disabled: value.disabled || accessor.disabled(),\n invalid: value.invalid || validity.invalid(),\n required: value.required || validity.required(),\n errorText: value.errorText ?? validity.errorText(),\n };\n });\n}\n","// GENERATED from the timepicker manifest (timepicker) by @mintplayer/nx-component-compiler. Do not edit.\nimport { ChangeDetectionStrategy, Component, ElementRef, booleanAttribute, inject, input, model, numberAttribute, output } from '@angular/core';\nimport { MpPropsDirective, useCore, useScopedStyles } from '@mintplayer/ng-bootstrap/machine';\nimport { timepickerCore, type TimepickerInputs, type TimepickerMethods, timepickerScopedStyles } from '@mintplayer/ui-core/timepicker';\nimport { hostDirectives as ext_hostDirectives, extendInputs as ext_extendInputs } from '../timepicker.angular';\n\n/**\n * A time field with a slot-list popup (#437).\n *\n * With JavaScript off it is a native time field that submits `name` as HH:MM. Once hydrated the\n * field becomes a readonly display, a button opens the list in a native popover, and a hidden\n * input carries the submitted value.\n */\n@Component({\n selector: 'bs-timepicker',\n templateUrl: './timepicker.view.generated.html',\n imports: [MpPropsDirective],\n changeDetection: ChangeDetectionStrategy.OnPush,\n hostDirectives: ext_hostDirectives,\n})\nexport class BsTimepickerComponent {\n /** The host element. */\n readonly elementRef = inject<ElementRef<HTMLElement>>(ElementRef);\n\n readonly selectedTime = model<TimepickerInputs['selectedTime']>(null);\n readonly step = input<TimepickerInputs['step'], unknown>(15, { transform: (v: unknown) => numberAttribute(v) as TimepickerInputs['step'] });\n readonly min = input<TimepickerInputs['min']>(null);\n readonly max = input<TimepickerInputs['max']>(null);\n readonly hour12 = input<TimepickerInputs['hour12']>('auto');\n readonly locale = input<TimepickerInputs['locale']>(null);\n readonly disabled = input<TimepickerInputs['disabled'], unknown>(false, { transform: booleanAttribute });\n readonly placeholder = input<TimepickerInputs['placeholder']>(null);\n readonly required = input<TimepickerInputs['required'], unknown>(false, { transform: booleanAttribute });\n readonly invalid = input<TimepickerInputs['invalid'], unknown>(false, { transform: booleanAttribute });\n readonly errorText = input<TimepickerInputs['errorText']>(null);\n readonly inputLabel = input<TimepickerInputs['inputLabel']>(null);\n readonly name = input<TimepickerInputs['name']>(null);\n readonly labels = input<TimepickerInputs['labels']>(null);\n /** A slot picked in the list, or a time typed into the field before hydration. */\n readonly selectedtimechange = output<Date>();\n /** The popup opened (true) or closed (false). */\n readonly openchange = output<boolean>();\n\n readonly #core = useCore(timepickerCore, { inputs: ext_extendInputs(() => ({ selectedTime: this.selectedTime(), step: this.step(), min: this.min(), max: this.max(), hour12: this.hour12(), locale: this.locale(), disabled: this.disabled(), placeholder: this.placeholder(), required: this.required(), invalid: this.invalid(), errorText: this.errorText(), inputLabel: this.inputLabel(), name: this.name(), labels: this.labels() })), idPrefix: 'bs-timepicker', outputs: { selectedTimeChange: this.selectedtimechange, openChange: this.openchange }, hostBag: (props) => ({ ...props.view.root, 'data-mps': 'timepicker' }), models: { selectedTime: this.selectedTime } });\n /** The template's props. */\n protected readonly props = this.#core.props;\n\n constructor() {\n useScopedStyles('timepicker', timepickerScopedStyles);\n }\n\n /** Open the list (ignored when disabled). */\n open(...args: Parameters<TimepickerMethods['open']>): ReturnType<TimepickerMethods['open']> {\n return this.#core.call('open', args) as ReturnType<TimepickerMethods['open']>;\n }\n\n /** Close the list. */\n close(...args: Parameters<TimepickerMethods['close']>): ReturnType<TimepickerMethods['close']> {\n return this.#core.call('close', args) as ReturnType<TimepickerMethods['close']>;\n }\n}\n","<!-- GENERATED from libs/mintplayer-ui-core/timepicker/src/templates/timepicker.view.vue by @mintplayer/nx-component-compiler. Do not edit. -->\n@let p_view = props().view;\n<div data-mps=\"timepicker\" [mpProps]=\"p_view.group\">\n <input data-mps=\"timepicker\" [mpProps]=\"p_view.input\">\n @if (p_view.hidden) {\n <input data-mps=\"timepicker\" [mpProps]=\"p_view.hidden\">\n }\n @if (p_view.trigger) {\n <button data-mps=\"timepicker\" [mpProps]=\"p_view.trigger\"></button>\n }\n</div>\n@if (p_view.showFeedback) {\n <div data-mps=\"timepicker\" [mpProps]=\"p_view.feedback.attrs\">\n {{ p_view.feedback.text }}\n </div>\n}\n<div data-mps=\"timepicker\" [mpProps]=\"p_view.popup\">\n <div data-mps=\"timepicker\" [mpProps]=\"p_view.timeList.root\">\n <ul data-mps=\"timepicker\" [mpProps]=\"p_view.timeList.list\">\n @for (slot of p_view.timeList.slots; track slot.key) {\n <li data-mps=\"timepicker\" [mpProps]=\"slot.item\">\n <button data-mps=\"timepicker\" [mpProps]=\"slot.option\">\n {{ slot.text }}\n </button>\n </li>\n }\n </ul>\n </div>\n</div>\n","// GENERATED from the timepicker manifest by @mintplayer/nx-component-compiler. Do not edit.\nexport { BsTimeListComponent } from './time-list.component.generated';\nexport { BsTimepickerComponent } from './timepicker.component.generated';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["ext_extendInputs","i1.BsTimepickerValueAccessor","ext_hostDirectives"],"mappings":";;;;;;;;AAAA;AAKA;;;;AAIG;MAOU,mBAAmB,CAAA;AAcrB,IAAA,KAAK;AAId,IAAA,WAAA,GAAA;;AAhBS,QAAA,IAAA,CAAA,UAAU,GAAG,MAAM,CAA0B,UAAU,CAAC;QAExD,IAAA,CAAA,YAAY,GAAG,KAAK,CAAiC,IAAI;yFAAC;AAC1D,QAAA,IAAA,CAAA,IAAI,GAAG,KAAK,CAAkC,EAAE,EAAA,EAAA,IAAA,SAAA,GAAA,EAAA,SAAA,EAAA,MAAA,EAAA,8BAAA,EAAA,CAAA,EAAI,SAAS,EAAE,CAAC,CAAU,KAAK,eAAe,CAAC,CAAC,CAA2B,GAAG;AAC9H,QAAA,IAAA,CAAA,UAAU,GAAG,KAAK,CAAwC,IAAI,EAAA,EAAA,IAAA,SAAA,GAAA,EAAA,SAAA,EAAA,YAAA,EAAA,8BAAA,EAAA,CAAA,EAAI,SAAS,EAAE,CAAC,CAAU,KAAK,eAAe,CAAC,CAAC,CAAiC,GAAG;AAClJ,QAAA,IAAA,CAAA,UAAU,GAAG,KAAK,CAAwC,IAAI,EAAA,EAAA,IAAA,SAAA,GAAA,EAAA,SAAA,EAAA,YAAA,EAAA,8BAAA,EAAA,CAAA,EAAI,SAAS,EAAE,CAAC,CAAU,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AA,QAAA,EAAA,IAAA,EAAA,UAAA,EAAA,KAAA,EAAA,iBAAA,EAAA,IAAA,EAAA,EAAA,MAAA,EAAA,EAAA,iBAAA,EAAA,QAAA,EAAA,UAAA,EAAA,QAAA,EAAA,QAAA,EAAA,IAAA,EAAA,UAAA,EAAA,KAAA,EAAA,iBAAA,EAAA,IAAA,EAAA,EAAA,EAAA,OAAA,EAAA,EAAA,YAAA,EAAA,oBAAA,EAAA,kBAAA,EAAA,oBAAA,EAAA,UAAA,EAAA,YAAA,EAAA,EAAA,cAAA,EAAA,CAAA,EAAA,SAAA,EAAAC,yBAAA,EAAA,EAAA,EAAA,SAAA,EAAA,EAAA,CAAA,0BAAA,EAAA,MAAA,EAAA,CAAA,eAAA,EAAA,eAAA,CAAA,EAAA,CAAA,EAAA,QAAA,EAAA,EAAA,EAAA,QAAA,ECpBlC,qnCA6BA,EAAA,YAAA,EAAA,CAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EDbY,gBAAgB,EAAA,QAAA,EAAA,WAAA,EAAA,MAAA,EAAA,CAAA,SAAA,CAAA,EAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,CAAA,CAAA;;2FAIf,qBAAqB,EAAA,UAAA,EAAA,CAAA;kBAPjC,SAAS;+BACE,eAAe,EAAA,OAAA,EAEhB,CAAC,gBAAgB,CAAC,mBACV,uBAAuB,CAAC,MAAM,EAAA,cAAA,EAC/BC,cAAkB,EAAA,QAAA,EAAA,qnCAAA,EAAA;;;AElBpC;;ACAA;;AAEG;;;;"}
|
|
1
|
+
{"version":3,"file":"mintplayer-ng-bootstrap-timepicker.mjs","sources":["../../../../libs/mintplayer-ng-bootstrap/timepicker/src/generated/time-list.component.generated.ts","../../../../libs/mintplayer-ng-bootstrap/timepicker/src/generated/time-list.view.generated.html","../../../../libs/mintplayer-ng-bootstrap/timepicker/src/value-accessor/timepicker-value-accessor.ts","../../../../libs/mintplayer-ng-bootstrap/timepicker/src/timepicker.angular.ts","../../../../libs/mintplayer-ng-bootstrap/timepicker/src/generated/timepicker.component.generated.ts","../../../../libs/mintplayer-ng-bootstrap/timepicker/src/generated/timepicker.view.generated.html","../../../../libs/mintplayer-ng-bootstrap/timepicker/src/generated/index.ts","../../../../libs/mintplayer-ng-bootstrap/timepicker/mintplayer-ng-bootstrap-timepicker.ts"],"sourcesContent":["// GENERATED from the timepicker manifest (time-list) by @mintplayer/nx-component-compiler. Do not edit.\nimport { ChangeDetectionStrategy, Component, ElementRef, inject, input, model, numberAttribute, output } from '@angular/core';\nimport { MpPropsDirective, useCore, useScopedStyles } from '@mintplayer/ng-bootstrap/machine';\nimport { timeListCore, type TimeListInputs, type TimeListMethods, timepickerScopedStyles } from '@mintplayer/ui-core/timepicker';\nimport { bootstrapForms } from '@mintplayer/ui-core/bootstrap/forms';\n\n/**\n * A listbox of time slots (#437): one real button per option, a roving tabindex, the APG keymap\n * (arrows, Home/End, PageUp/PageDown one hour). Bounds are minutes from midnight.\n * With JavaScript off the slots render inert.\n */\n@Component({\n selector: 'bs-time-list',\n templateUrl: './time-list.view.generated.html',\n imports: [MpPropsDirective],\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class BsTimeListComponent {\n /** The host element. */\n readonly elementRef = inject<ElementRef<HTMLElement>>(ElementRef);\n\n readonly selectedTime = model<TimeListInputs['selectedTime']>(null);\n readonly step = input<TimeListInputs['step'], unknown>(15, { transform: (v: unknown) => numberAttribute(v) as TimeListInputs['step'] });\n readonly minMinutes = input<TimeListInputs['minMinutes'], unknown>(null, { transform: (v: unknown) => numberAttribute(v) as TimeListInputs['minMinutes'] });\n readonly maxMinutes = input<TimeListInputs['maxMinutes'], unknown>(null, { transform: (v: unknown) => numberAttribute(v) as TimeListInputs['maxMinutes'] });\n readonly hour12 = input<TimeListInputs['hour12']>('auto');\n readonly locale = input<TimeListInputs['locale']>(null);\n readonly labels = input<TimeListInputs['labels']>(null);\n /** A slot chosen by click, Enter or Space. */\n readonly selectedtimechange = output<Date>();\n\n readonly #core = useCore(timeListCore, { inputs: () => ({ selectedTime: this.selectedTime(), step: this.step(), minMinutes: this.minMinutes(), maxMinutes: this.maxMinutes(), hour12: this.hour12(), locale: this.locale(), labels: this.labels() }), idPrefix: 'bs-time-list', outputs: { selectedTimeChange: this.selectedtimechange }, hostBag: (props) => ({ ...props.view.root, 'data-mps': 'timepicker' }), models: { selectedTime: this.selectedTime } });\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('timepicker', timepickerScopedStyles);\n }\n\n /** Focus the roving slot. */\n focusList(...args: Parameters<TimeListMethods['focusList']>): ReturnType<TimeListMethods['focusList']> {\n return this.#core.call('focusList', args) as ReturnType<TimeListMethods['focusList']>;\n }\n}\n","<!-- GENERATED from libs/mintplayer-ui-core/timepicker/src/templates/time-list.view.vue by @mintplayer/nx-component-compiler. Do not edit. -->\n@let p_view = props().view;\n<ul data-mps=\"timepicker\" [mpProps]=\"p_view.list\">\n @for (slot of p_view.slots; track slot.key) {\n <li data-mps=\"timepicker\" [mpProps]=\"slot.item\">\n <button data-mps=\"timepicker\" [mpProps]=\"slot.option\">\n {{ slot.text }}\n </button>\n </li>\n }\n</ul>\n","import { DestroyRef, Directive, Injector, OnInit, effect, forwardRef, inject, signal, untracked } from '@angular/core';\nimport {\n AbstractControl,\n ControlValueAccessor,\n NG_VALIDATORS,\n NG_VALUE_ACCESSOR,\n ValidationErrors,\n Validator,\n} from '@angular/forms';\nimport { minutesOfDay } from '@mintplayer/ui-core/timepicker';\nimport { BsTimepickerComponent } from '../generated';\n\n/**\n * The `ControlValueAccessor` and `Validator` of `bs-timepicker` (a host\n * directive of the generated component, see `timepicker.angular.ts`). A bound\n * form control drives the picked time through `viewValue`; a pick reaches the\n * form through the component's `selectedTime` model, which a form write never\n * echoes. A null form value clears the field.\n *\n * Validation compares times of day: `min` (`{ min, actual }`) and `max`\n * (`{ max, actual }`).\n */\n@Directive({\n providers: [\n { provide: NG_VALUE_ACCESSOR, useExisting: forwardRef(() => BsTimepickerValueAccessor), multi: true },\n { provide: NG_VALIDATORS, useExisting: forwardRef(() => BsTimepickerValueAccessor), multi: true },\n ],\n host: {\n '(focusout)': 'onTouched()',\n },\n})\nexport class BsTimepickerValueAccessor implements ControlValueAccessor, Validator, OnInit {\n private readonly injector = inject(Injector);\n private readonly destroyRef = inject(DestroyRef);\n private component?: BsTimepickerComponent;\n\n /** A form control drives the time: its `viewValue` wins over the `selectedTime` input. */\n readonly bound = signal(false);\n readonly viewValue = signal<Date | null>(null);\n readonly disabled = signal(false);\n\n private onChange: (value: Date | null) => void = () => undefined;\n onTouched: () => void = () => undefined;\n private onValidatorChange: () => void = () => undefined;\n\n ngOnInit(): void {\n // The component is created after its host directives, so it is looked up here.\n const component = (this.component = this.injector.get(BsTimepickerComponent));\n const sub = component.selectedtimechange.subscribe((value) => {\n if (!this.bound() || minutesOfDay(value) === minutesOfDay(this.viewValue())) return;\n this.viewValue.set(value);\n this.onChange(value);\n });\n this.destroyRef.onDestroy(() => sub.unsubscribe());\n // The limits are inputs: a change re-runs validation.\n effect(\n () => {\n component.min();\n component.max();\n untracked(() => this.onValidatorChange());\n },\n { injector: this.injector },\n );\n }\n\n registerOnChange(fn: (value: Date | 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 registerOnValidatorChange(fn: () => void): void {\n this.onValidatorChange = fn;\n }\n\n writeValue(value: Date | null | undefined): void {\n this.viewValue.set(value instanceof Date ? value : null);\n }\n\n setDisabledState(isDisabled: boolean): void {\n this.disabled.set(isDisabled);\n }\n\n validate(control: AbstractControl): ValidationErrors | null {\n const value = control.value;\n const component = this.component;\n if (!(value instanceof Date) || !component) return null;\n const minutes = minutesOfDay(value)!;\n const min = component.min();\n const max = component.max();\n const errors: ValidationErrors = {\n ...(min && minutes < minutesOfDay(min)! ? { min: { min, actual: value } } : {}),\n ...(max && minutes > minutesOfDay(max)! ? { max: { max, actual: value } } : {}),\n };\n return Object.keys(errors).length ? errors : null;\n }\n}\n","import { computed, inject } from '@angular/core';\nimport { BsControlValidityDirective } from '@mintplayer/ng-bootstrap/a11y/forms';\nimport type { TimepickerInputs } from '@mintplayer/ui-core/timepicker';\nimport { BsTimepickerValueAccessor } from './value-accessor/timepicker-value-accessor';\n\n/*\n * The Angular extension of the generated `bs-timepicker` (PRD #437 D10 escape\n * hatch): Angular forms. A bound form control drives the picked time and the\n * disabled state, its validity reaches the field's ARIA and message, and it is\n * validated against min and max.\n */\n\nexport const hostDirectives = [\n BsTimepickerValueAccessor,\n { directive: BsControlValidityDirective, inputs: ['errorMessages'] },\n];\n\nexport function extendInputs(inputs: () => TimepickerInputs): () => TimepickerInputs {\n const accessor = inject(BsTimepickerValueAccessor, { self: true });\n const validity = inject(BsControlValidityDirective, { self: true });\n return computed<TimepickerInputs>(() => {\n const value = inputs();\n return {\n ...value,\n selectedTime: accessor.bound() ? accessor.viewValue() : value.selectedTime,\n disabled: value.disabled || accessor.disabled(),\n invalid: value.invalid || validity.invalid(),\n required: value.required || validity.required(),\n errorText: value.errorText ?? validity.errorText(),\n };\n });\n}\n","// GENERATED from the timepicker manifest (timepicker) by @mintplayer/nx-component-compiler. Do not edit.\nimport { ChangeDetectionStrategy, Component, ElementRef, booleanAttribute, inject, input, model, numberAttribute, output } from '@angular/core';\nimport { MpPropsDirective, useCore, useScopedStyles } from '@mintplayer/ng-bootstrap/machine';\nimport { timepickerCore, type TimepickerInputs, type TimepickerMethods, timepickerScopedStyles } from '@mintplayer/ui-core/timepicker';\nimport { bootstrapForms } from '@mintplayer/ui-core/bootstrap/forms';\nimport { hostDirectives as ext_hostDirectives, extendInputs as ext_extendInputs } from '../timepicker.angular';\n\n/**\n * A time field with a slot-list popup (#437).\n *\n * With JavaScript off it is a native time field that submits `name` as HH:MM. Once hydrated the\n * field becomes a readonly display, a button opens the list in a native popover, and a hidden\n * input carries the submitted value.\n */\n@Component({\n selector: 'bs-timepicker',\n templateUrl: './timepicker.view.generated.html',\n imports: [MpPropsDirective],\n changeDetection: ChangeDetectionStrategy.OnPush,\n hostDirectives: ext_hostDirectives,\n})\nexport class BsTimepickerComponent {\n /** The host element. */\n readonly elementRef = inject<ElementRef<HTMLElement>>(ElementRef);\n\n readonly selectedTime = model<TimepickerInputs['selectedTime']>(null);\n readonly step = input<TimepickerInputs['step'], unknown>(15, { transform: (v: unknown) => numberAttribute(v) as TimepickerInputs['step'] });\n readonly min = input<TimepickerInputs['min']>(null);\n readonly max = input<TimepickerInputs['max']>(null);\n readonly hour12 = input<TimepickerInputs['hour12']>('auto');\n readonly locale = input<TimepickerInputs['locale']>(null);\n readonly disabled = input<TimepickerInputs['disabled'], unknown>(false, { transform: booleanAttribute });\n readonly placeholder = input<TimepickerInputs['placeholder']>(null);\n readonly required = input<TimepickerInputs['required'], unknown>(false, { transform: booleanAttribute });\n readonly invalid = input<TimepickerInputs['invalid'], unknown>(false, { transform: booleanAttribute });\n readonly errorText = input<TimepickerInputs['errorText']>(null);\n readonly inputLabel = input<TimepickerInputs['inputLabel']>(null);\n readonly name = input<TimepickerInputs['name']>(null);\n readonly labels = input<TimepickerInputs['labels']>(null);\n /** A slot picked in the list, or a time typed into the field before hydration. */\n readonly selectedtimechange = output<Date>();\n /** The popup opened (true) or closed (false). */\n readonly openchange = output<boolean>();\n\n readonly #core = useCore(timepickerCore, { inputs: ext_extendInputs(() => ({ selectedTime: this.selectedTime(), step: this.step(), min: this.min(), max: this.max(), hour12: this.hour12(), locale: this.locale(), disabled: this.disabled(), placeholder: this.placeholder(), required: this.required(), invalid: this.invalid(), errorText: this.errorText(), inputLabel: this.inputLabel(), name: this.name(), labels: this.labels() })), idPrefix: 'bs-timepicker', outputs: { selectedTimeChange: this.selectedtimechange, openChange: this.openchange }, hostBag: (props) => ({ ...props.view.root, 'data-mps': 'timepicker' }), models: { selectedTime: this.selectedTime } });\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('timepicker', timepickerScopedStyles);\n }\n\n /** Open the list (ignored when disabled). */\n open(...args: Parameters<TimepickerMethods['open']>): ReturnType<TimepickerMethods['open']> {\n return this.#core.call('open', args) as ReturnType<TimepickerMethods['open']>;\n }\n\n /** Close the list. */\n close(...args: Parameters<TimepickerMethods['close']>): ReturnType<TimepickerMethods['close']> {\n return this.#core.call('close', args) as ReturnType<TimepickerMethods['close']>;\n }\n}\n","<!-- GENERATED from libs/mintplayer-ui-core/timepicker/src/templates/timepicker.view.vue by @mintplayer/nx-component-compiler. Do not edit. -->\n@let p_view = props().view;\n<div data-mps=\"timepicker\" [mpProps]=\"p_view.group\">\n <input data-mps=\"timepicker\" [mpProps]=\"p_view.input\">\n @if (p_view.hidden) {\n <input data-mps=\"timepicker\" [mpProps]=\"p_view.hidden\">\n }\n @if (p_view.trigger) {\n <button data-mps=\"timepicker\" [mpProps]=\"p_view.trigger\"></button>\n }\n</div>\n@if (p_view.showFeedback) {\n <div data-mps=\"timepicker\" [mpProps]=\"p_view.feedback.attrs\">\n {{ p_view.feedback.text }}\n </div>\n}\n<div data-mps=\"timepicker\" [mpProps]=\"p_view.popup\">\n <div data-mps=\"timepicker\" [mpProps]=\"p_view.timeList.root\">\n <ul data-mps=\"timepicker\" [mpProps]=\"p_view.timeList.list\">\n @for (slot of p_view.timeList.slots; track slot.key) {\n <li data-mps=\"timepicker\" [mpProps]=\"slot.item\">\n <button data-mps=\"timepicker\" [mpProps]=\"slot.option\">\n {{ slot.text }}\n </button>\n </li>\n }\n </ul>\n </div>\n</div>\n","// GENERATED from the timepicker manifest by @mintplayer/nx-component-compiler. Do not edit.\nexport { BsTimeListComponent } from './time-list.component.generated';\nexport { BsTimepickerComponent } from './timepicker.component.generated';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n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A,EAAA,QAAA,EAAA,IAAA,EAAA,UAAA,EAAA,KAAA,EAAA,iBAAA,EAAA,IAAA,EAAA,EAAA,EAAA,OAAA,EAAA,EAAA,YAAA,EAAA,oBAAA,EAAA,kBAAA,EAAA,oBAAA,EAAA,UAAA,EAAA,YAAA,EAAA,EAAA,cAAA,EAAA,CAAA,EAAA,SAAA,EAAAC,yBAAA,EAAA,EAAA,EAAA,SAAA,EAAA,EAAA,CAAA,0BAAA,EAAA,MAAA,EAAA,CAAA,eAAA,EAAA,eAAA,CAAA,EAAA,CAAA,EAAA,QAAA,EAAA,EAAA,EAAA,QAAA,ECrBlC,qnCA6BA,EAAA,YAAA,EAAA,CAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EDZY,gBAAgB,EAAA,QAAA,EAAA,WAAA,EAAA,MAAA,EAAA,CAAA,SAAA,CAAA,EAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,CAAA,CAAA;;2FAIf,qBAAqB,EAAA,UAAA,EAAA,CAAA;kBAPjC,SAAS;+BACE,eAAe,EAAA,OAAA,EAEhB,CAAC,gBAAgB,CAAC,mBACV,uBAAuB,CAAC,MAAM,EAAA,cAAA,EAC/BC,cAAkB,EAAA,QAAA,EAAA,qnCAAA,EAAA;;;AEnBpC;;ACAA;;AAEG;;;;"}
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
2
|
import { input, inject, ElementRef, effect, ChangeDetectionStrategy, Component, Pipe, InjectionToken, makeEnvironmentProviders, Injector, signal, Injectable, Directive } from '@angular/core';
|
|
3
|
+
import { useBootstrap } from '@mintplayer/ng-bootstrap/machine';
|
|
4
|
+
import { bootstrapToasts } from '@mintplayer/ui-core/bootstrap/toasts';
|
|
5
|
+
import { bootstrapTransitions } from '@mintplayer/ui-core/bootstrap/transitions';
|
|
3
6
|
import { BsLiveAnnouncerService } from '@mintplayer/ng-bootstrap/a11y';
|
|
4
7
|
import { NgTemplateOutlet } from '@angular/common';
|
|
5
8
|
import { BsHasOverlayComponent } from '@mintplayer/ng-bootstrap/has-overlay';
|
|
@@ -15,6 +18,8 @@ class BsToastComponent {
|
|
|
15
18
|
...(ngDevMode ? [{ debugName: "politeness" }] : /* istanbul ignore next */ []));
|
|
16
19
|
this.announcer = inject(BsLiveAnnouncerService);
|
|
17
20
|
this.host = inject(ElementRef);
|
|
21
|
+
// #452: the toasts and transitions partials ship with this component, scoped to the elements it stamps (data-mps="toast").
|
|
22
|
+
useBootstrap(bootstrapToasts, bootstrapTransitions);
|
|
18
23
|
// The old channel was role/aria-live ON the toast div — but the toast and
|
|
19
24
|
// its text mount in one task (ngTemplateOutlet), which most SRs never
|
|
20
25
|
// announce. The shared announcer region pre-exists, so routing the text
|
|
@@ -31,35 +36,45 @@ class BsToastComponent {
|
|
|
31
36
|
});
|
|
32
37
|
}
|
|
33
38
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsToastComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
34
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.0.8", type: BsToastComponent, isStandalone: true, selector: "bs-toast", inputs: { isVisible: { classPropertyName: "isVisible", publicName: "isVisible", isSignal: true, isRequired: false, transformFunction: null }, politeness: { classPropertyName: "politeness", publicName: "politeness", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: "<!-- No role/aria-live here: mounting region and text in one task is the\n pattern SRs miss (audit 4.8). BsLiveAnnouncerService is the channel. -->\n<div class=\"toast d-block fade mb-2 me-2\" [class.show]=\"isVisible()\">\n <ng-content></ng-content>\n</div>\n", styles: ["
|
|
39
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.0.8", type: BsToastComponent, isStandalone: true, selector: "bs-toast", inputs: { isVisible: { classPropertyName: "isVisible", publicName: "isVisible", isSignal: true, isRequired: false, transformFunction: null }, politeness: { classPropertyName: "politeness", publicName: "politeness", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: "<!-- No role/aria-live here: mounting region and text in one task is the\n pattern SRs miss (audit 4.8). BsLiveAnnouncerService is the channel. -->\n<div data-mps=\"toast\" class=\"toast d-block fade mb-2 me-2\" [class.show]=\"isVisible()\">\n <ng-content></ng-content>\n</div>\n", styles: [""], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
35
40
|
}
|
|
36
41
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsToastComponent, decorators: [{
|
|
37
42
|
type: Component,
|
|
38
|
-
args: [{ selector: 'bs-toast', changeDetection: ChangeDetectionStrategy.OnPush, template: "<!-- No role/aria-live here: mounting region and text in one task is the\n pattern SRs miss (audit 4.8). BsLiveAnnouncerService is the channel. -->\n<div class=\"toast d-block fade mb-2 me-2\" [class.show]=\"isVisible()\">\n <ng-content></ng-content>\n</div>\n"
|
|
43
|
+
args: [{ selector: 'bs-toast', changeDetection: ChangeDetectionStrategy.OnPush, template: "<!-- No role/aria-live here: mounting region and text in one task is the\n pattern SRs miss (audit 4.8). BsLiveAnnouncerService is the channel. -->\n<div data-mps=\"toast\" class=\"toast d-block fade mb-2 me-2\" [class.show]=\"isVisible()\">\n <ng-content></ng-content>\n</div>\n" }]
|
|
39
44
|
}], ctorParameters: () => [], propDecorators: { isVisible: [{ type: i0.Input, args: [{ isSignal: true, alias: "isVisible", required: false }] }], politeness: [{ type: i0.Input, args: [{ isSignal: true, alias: "politeness", required: false }] }] } });
|
|
40
45
|
|
|
41
46
|
class BsToastHeaderComponent {
|
|
47
|
+
constructor() {
|
|
48
|
+
// #452: the toasts partial ships with this component, scoped to the elements it stamps (data-mps="toast").
|
|
49
|
+
useBootstrap(bootstrapToasts);
|
|
50
|
+
}
|
|
42
51
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsToastHeaderComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
43
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "22.0.8", type: BsToastHeaderComponent, isStandalone: true, selector: "bs-toast-header", host: { properties: { "class.toast-header": "true" } }, ngImport: i0, template: "<ng-content></ng-content>", styles: [""], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
52
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "22.0.8", type: BsToastHeaderComponent, isStandalone: true, selector: "bs-toast-header", host: { properties: { "attr.data-mps": "\"toast\"", "class.toast-header": "true" } }, ngImport: i0, template: "<ng-content></ng-content>", styles: [""], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
44
53
|
}
|
|
45
54
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsToastHeaderComponent, decorators: [{
|
|
46
55
|
type: Component,
|
|
47
56
|
args: [{ selector: 'bs-toast-header', changeDetection: ChangeDetectionStrategy.OnPush, host: {
|
|
57
|
+
'[attr.data-mps]': '"toast"',
|
|
48
58
|
'[class.toast-header]': 'true',
|
|
49
59
|
}, template: "<ng-content></ng-content>" }]
|
|
50
|
-
}] });
|
|
60
|
+
}], ctorParameters: () => [] });
|
|
51
61
|
|
|
52
62
|
class BsToastBodyComponent {
|
|
63
|
+
constructor() {
|
|
64
|
+
// #452: the toasts partial ships with this component, scoped to the elements it stamps (data-mps="toast").
|
|
65
|
+
useBootstrap(bootstrapToasts);
|
|
66
|
+
}
|
|
53
67
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsToastBodyComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
54
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "22.0.8", type: BsToastBodyComponent, isStandalone: true, selector: "bs-toast-body", host: { properties: { "class.d-flex": "true", "class.toast-body": "true" } }, ngImport: i0, template: "<ng-content></ng-content>\n", styles: [""], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
68
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "22.0.8", type: BsToastBodyComponent, isStandalone: true, selector: "bs-toast-body", host: { properties: { "attr.data-mps": "\"toast\"", "class.d-flex": "true", "class.toast-body": "true" } }, ngImport: i0, template: "<ng-content></ng-content>\n", styles: [""], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
55
69
|
}
|
|
56
70
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsToastBodyComponent, decorators: [{
|
|
57
71
|
type: Component,
|
|
58
72
|
args: [{ selector: 'bs-toast-body', changeDetection: ChangeDetectionStrategy.OnPush, host: {
|
|
73
|
+
'[attr.data-mps]': '"toast"',
|
|
59
74
|
'[class.d-flex]': 'true',
|
|
60
75
|
'[class.toast-body]': 'true',
|
|
61
76
|
}, template: "<ng-content></ng-content>\n" }]
|
|
62
|
-
}] });
|
|
77
|
+
}], ctorParameters: () => [] });
|
|
63
78
|
|
|
64
79
|
class BsAddPropertiesPipe {
|
|
65
80
|
transform(value, toAdd) {
|
|
@@ -141,13 +156,13 @@ class BsToastContainerComponent {
|
|
|
141
156
|
this.toastService = inject(BsToastService);
|
|
142
157
|
}
|
|
143
158
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsToastContainerComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
144
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.8", type: BsToastContainerComponent, isStandalone: true, selector: "bs-toast-container", host: { properties: { "style.overflow-y": "\"auto\"" } }, ngImport: i0, template: "<bs-has-overlay></bs-has-overlay>\n@for (toast of toastService.toasts(); let i = $index; track i) {\n <ng-container [ngTemplateOutlet]=\"toast.template\" [ngTemplateOutletContext]=\"toast.context | bsAddProperties: {toastIndex: i}\"></ng-container>\n}\n", styles: [":host{pointer-events:none}:host ::ng-deep .toast{pointer-events:auto}
|
|
159
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.8", type: BsToastContainerComponent, isStandalone: true, selector: "bs-toast-container", host: { properties: { "style.overflow-y": "\"auto\"" } }, ngImport: i0, template: "<bs-has-overlay></bs-has-overlay>\n@for (toast of toastService.toasts(); let i = $index; track i) {\n <ng-container [ngTemplateOutlet]=\"toast.template\" [ngTemplateOutletContext]=\"toast.context | bsAddProperties: {toastIndex: i}\"></ng-container>\n}\n", styles: [":host{pointer-events:none}:host ::ng-deep .toast{pointer-events:auto}\n"], dependencies: [{ kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: BsHasOverlayComponent, selector: "bs-has-overlay" }, { kind: "pipe", type: BsAddPropertiesPipe, name: "bsAddProperties" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
145
160
|
}
|
|
146
161
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsToastContainerComponent, decorators: [{
|
|
147
162
|
type: Component,
|
|
148
163
|
args: [{ selector: 'bs-toast-container', imports: [NgTemplateOutlet, BsHasOverlayComponent, BsAddPropertiesPipe], changeDetection: ChangeDetectionStrategy.OnPush, host: {
|
|
149
164
|
'[style.overflow-y]': '"auto"',
|
|
150
|
-
}, template: "<bs-has-overlay></bs-has-overlay>\n@for (toast of toastService.toasts(); let i = $index; track i) {\n <ng-container [ngTemplateOutlet]=\"toast.template\" [ngTemplateOutletContext]=\"toast.context | bsAddProperties: {toastIndex: i}\"></ng-container>\n}\n", styles: [":host{pointer-events:none}:host ::ng-deep .toast{pointer-events:auto}
|
|
165
|
+
}, template: "<bs-has-overlay></bs-has-overlay>\n@for (toast of toastService.toasts(); let i = $index; track i) {\n <ng-container [ngTemplateOutlet]=\"toast.template\" [ngTemplateOutletContext]=\"toast.context | bsAddProperties: {toastIndex: i}\"></ng-container>\n}\n", styles: [":host{pointer-events:none}:host ::ng-deep .toast{pointer-events:auto}\n"] }]
|
|
151
166
|
}] });
|
|
152
167
|
|
|
153
168
|
class BsToastCloseDirective {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mintplayer-ng-bootstrap-toast.mjs","sources":["../../../../libs/mintplayer-ng-bootstrap/toast/src/components/toast/toast.component.ts","../../../../libs/mintplayer-ng-bootstrap/toast/src/components/toast/toast.component.html","../../../../libs/mintplayer-ng-bootstrap/toast/src/components/toast-header/toast-header.component.ts","../../../../libs/mintplayer-ng-bootstrap/toast/src/components/toast-header/toast-header.component.html","../../../../libs/mintplayer-ng-bootstrap/toast/src/components/toast-body/toast-body.component.ts","../../../../libs/mintplayer-ng-bootstrap/toast/src/components/toast-body/toast-body.component.html","../../../../libs/mintplayer-ng-bootstrap/toast/src/pipes/add-properties.pipe.ts","../../../../libs/mintplayer-ng-bootstrap/toast/src/providers/portal-factory.provider.ts","../../../../libs/mintplayer-ng-bootstrap/toast/src/services/toast/toast.service.ts","../../../../libs/mintplayer-ng-bootstrap/toast/src/components/toast-container/toast-container.component.ts","../../../../libs/mintplayer-ng-bootstrap/toast/src/components/toast-container/toast-container.component.html","../../../../libs/mintplayer-ng-bootstrap/toast/src/directives/toast-close/toast-close.directive.ts","../../../../libs/mintplayer-ng-bootstrap/toast/mintplayer-ng-bootstrap-toast.ts"],"sourcesContent":["import { ChangeDetectionStrategy, Component, ElementRef, computed, effect, inject, input } from '@angular/core';\nimport { BsLiveAnnouncerService } from '@mintplayer/ng-bootstrap/a11y';\n\nexport type BsToastPoliteness = 'polite' | 'assertive';\n\n@Component({\n selector: 'bs-toast',\n templateUrl: './toast.component.html',\n styleUrls: ['./toast.component.scss'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class BsToastComponent {\n isVisible = input(false);\n /** SR announcement urgency. 'assertive' for time-critical (errors), 'polite' for everything else. */\n politeness = input<BsToastPoliteness>('assertive');\n\n private readonly announcer = inject(BsLiveAnnouncerService);\n private readonly host = inject(ElementRef) as ElementRef<HTMLElement>;\n\n constructor() {\n // The old channel was role/aria-live ON the toast div — but the toast and\n // its text mount in one task (ngTemplateOutlet), which most SRs never\n // announce. The shared announcer region pre-exists, so routing the text\n // through it on the show transition is reliably spoken.\n effect(() => {\n if (!this.isVisible()) return;\n const politeness = this.politeness();\n queueMicrotask(() => {\n const text = this.host.nativeElement.textContent?.trim();\n if (text) void this.announcer.announce(text, politeness);\n });\n });\n }\n}\n","<!-- No role/aria-live here: mounting region and text in one task is the\n pattern SRs miss (audit 4.8). BsLiveAnnouncerService is the channel. -->\n<div class=\"toast d-block fade mb-2 me-2\" [class.show]=\"isVisible()\">\n <ng-content></ng-content>\n</div>\n","import { Component, ChangeDetectionStrategy} from '@angular/core';\n\n@Component({\n selector: 'bs-toast-header',\n templateUrl: './toast-header.component.html',\n styleUrls: ['./toast-header.component.scss'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n '[class.toast-header]': 'true',\n },\n})\nexport class BsToastHeaderComponent {\n}\n","<ng-content></ng-content>","import { Component, ChangeDetectionStrategy} from '@angular/core';\n\n@Component({\n selector: 'bs-toast-body',\n templateUrl: './toast-body.component.html',\n styleUrls: ['./toast-body.component.scss'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n '[class.d-flex]': 'true',\n '[class.toast-body]': 'true',\n },\n})\nexport class BsToastBodyComponent {\n}\n","<ng-content></ng-content>\n","import { Pipe, PipeTransform } from '@angular/core';\n\n@Pipe({\n name: 'bsAddProperties',\n})\nexport class BsAddPropertiesPipe implements PipeTransform {\n transform(value: Object | null, toAdd: Object) {\n return Object.assign({}, value ?? {}, toAdd);\n }\n}\n","import { ComponentPortal } from \"@angular/cdk/portal\";\nimport { EnvironmentProviders, InjectionToken, Injector, makeEnvironmentProviders } from \"@angular/core\";\nimport { BsToastContainerComponent } from \"../components/toast-container/toast-container.component\";\n\nexport const PORTAL_FACTORY = new InjectionToken<(injector: Injector) => ComponentPortal<any>>('ToastPortalFactory', {\n providedIn: 'root',\n factory: () => (injector: Injector) => new ComponentPortal(BsToastContainerComponent, null, injector),\n});\n\nexport function provideToast(): EnvironmentProviders {\n return makeEnvironmentProviders([\n {\n provide: PORTAL_FACTORY,\n useValue: (injector: Injector) => {\n return new ComponentPortal(BsToastContainerComponent, null, injector);\n }\n },\n ]);\n}","import { Overlay, OverlayRef } from '@angular/cdk/overlay';\nimport { ComponentPortal } from '@angular/cdk/portal';\nimport { inject, Injectable, Injector, signal, TemplateRef } from '@angular/core';\nimport { BsToastContainerComponent } from '../../components/toast-container/toast-container.component';\nimport { PORTAL_FACTORY } from '../../providers/portal-factory.provider';\n\n@Injectable({ providedIn: 'root' })\nexport class BsToastService {\n\n private overlayService = inject(Overlay);\n private rootInjector = inject(Injector);\n private portalFactory = inject<(injector: Injector) => ComponentPortal<any>>(PORTAL_FACTORY);\n\n overlayRef: OverlayRef | null = null;\n toasts = signal<ToastItem[]>([]);\n\n public pushToast(toast: TemplateRef<any>, context?: Object) {\n if (!this.overlayRef) {\n const injector = Injector.create({\n providers: [],\n parent: this.rootInjector,\n });\n const portal = this.portalFactory(injector);\n this.overlayRef = this.overlayService.create({\n scrollStrategy: this.overlayService.scrollStrategies.block(),\n positionStrategy: this.overlayService.position().global()\n .top('0').left('0').bottom('0').right('0'),\n hasBackdrop: false\n });\n const component = this.overlayRef.attach<BsToastContainerComponent>(portal);\n }\n\n context = context ?? {};\n const ctx = Object.assign(context, { isVisible: false });\n const item: ToastItem = { template: toast, context: ctx };\n this.toasts.update(toasts => [...toasts, item]);\n setTimeout(() => {\n this.toasts.update(toasts => toasts.map(t =>\n t === item ? { ...t, context: Object.assign({}, t.context, { isVisible: true }) } : t\n ));\n }, 20);\n }\n\n public close(index: number) {\n this.toasts.update(toasts => toasts.map((t, i) =>\n i === index ? { ...t, context: Object.assign({}, t.context, { isVisible: false }) } : t\n ));\n\n setTimeout(() => {\n this.toasts.update(toasts => toasts.filter((_, i) => i !== index));\n }, 400);\n }\n}\n\ninterface ToastItem {\n template: TemplateRef<any>;\n context: Object | null;\n}\n","import { NgTemplateOutlet } from '@angular/common';\nimport { ChangeDetectionStrategy, Component, inject } from '@angular/core';\nimport { BsHasOverlayComponent } from '@mintplayer/ng-bootstrap/has-overlay';\nimport { BsAddPropertiesPipe } from '../../pipes/add-properties.pipe';\nimport { BsToastService } from '../../services/toast/toast.service';\n\n@Component({\n selector: 'bs-toast-container',\n templateUrl: './toast-container.component.html',\n styleUrls: ['./toast-container.component.scss'],\n imports: [NgTemplateOutlet, BsHasOverlayComponent, BsAddPropertiesPipe],\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n '[style.overflow-y]': '\"auto\"',\n },\n})\nexport class BsToastContainerComponent {\n toastService = inject(BsToastService);\n}\n","<bs-has-overlay></bs-has-overlay>\n@for (toast of toastService.toasts(); let i = $index; track i) {\n <ng-container [ngTemplateOutlet]=\"toast.template\" [ngTemplateOutletContext]=\"toast.context | bsAddProperties: {toastIndex: i}\"></ng-container>\n}\n","import { Directive, inject, input } from '@angular/core';\nimport { BsToastService } from '../../services/toast/toast.service';\nimport { BsToastComponent } from '../../components/toast/toast.component';\n\n@Directive({\n selector: 'bs-close',\n host: {\n '(click)': 'onClick()',\n },\n})\nexport class BsToastCloseDirective {\n private toast = inject(BsToastComponent);\n private toastService = inject(BsToastService);\n\n onClick() {\n if (this.index() !== null) {\n this.toastService.close(this.index()!);\n }\n }\n\n readonly index = input<number | null>(null);\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;MAWa,gBAAgB,CAAA;AAQ3B,IAAA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AAY,GAAG,MAAM,CAAC,cAAc,CAAC;QAQpC,IAAA,CAAA,KAAK,GAAG,KAAK,CAAgB,IAAI;kFAAC;AAC5C,IAAA;IAPC,OAAO,GAAA;AACL,QAAA,IAAI,IAAI,CAAC,KAAK,EAAE,KAAK,IAAI,EAAE;YACzB,IAAI,CAAC,YAAY,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,EAAG,CAAC;QACxC;IACF;8GARW,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,UAAA,EAAA,MAAA,EAAA,EAAA,KAAA,EAAA,EAAA,iBAAA,EAAA,OAAA,EAAA,UAAA,EAAA,OAAA,EAAA,QAAA,EAAA,IAAA,EAAA,UAAA,EAAA,KAAA,EAAA,iBAAA,EAAA,IAAA,EAAA,EAAA,EAAA,IAAA,EAAA,EAAA,SAAA,EAAA,EAAA,OAAA,EAAA,WAAA,EAAA,EAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA,CAAA;;2FAArB,qBAAqB,EAAA,UAAA,EAAA,CAAA;kBANjC,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACT,oBAAA,QAAQ,EAAE,UAAU;AACpB,oBAAA,IAAI,EAAE;AACJ,wBAAA,SAAS,EAAE,WAAW;AACvB,qBAAA;AACF,iBAAA;;;ACTD;;AAEG;;;;"}
|
|
1
|
+
{"version":3,"file":"mintplayer-ng-bootstrap-toast.mjs","sources":["../../../../libs/mintplayer-ng-bootstrap/toast/src/components/toast/toast.component.ts","../../../../libs/mintplayer-ng-bootstrap/toast/src/components/toast/toast.component.html","../../../../libs/mintplayer-ng-bootstrap/toast/src/components/toast-header/toast-header.component.ts","../../../../libs/mintplayer-ng-bootstrap/toast/src/components/toast-header/toast-header.component.html","../../../../libs/mintplayer-ng-bootstrap/toast/src/components/toast-body/toast-body.component.ts","../../../../libs/mintplayer-ng-bootstrap/toast/src/components/toast-body/toast-body.component.html","../../../../libs/mintplayer-ng-bootstrap/toast/src/pipes/add-properties.pipe.ts","../../../../libs/mintplayer-ng-bootstrap/toast/src/providers/portal-factory.provider.ts","../../../../libs/mintplayer-ng-bootstrap/toast/src/services/toast/toast.service.ts","../../../../libs/mintplayer-ng-bootstrap/toast/src/components/toast-container/toast-container.component.ts","../../../../libs/mintplayer-ng-bootstrap/toast/src/components/toast-container/toast-container.component.html","../../../../libs/mintplayer-ng-bootstrap/toast/src/directives/toast-close/toast-close.directive.ts","../../../../libs/mintplayer-ng-bootstrap/toast/mintplayer-ng-bootstrap-toast.ts"],"sourcesContent":["import { ChangeDetectionStrategy, Component, ElementRef, computed, effect, inject, input } from '@angular/core';\nimport { useBootstrap } from '@mintplayer/ng-bootstrap/machine';\nimport { bootstrapToasts } from '@mintplayer/ui-core/bootstrap/toasts';\nimport { bootstrapTransitions } from '@mintplayer/ui-core/bootstrap/transitions';\nimport { BsLiveAnnouncerService } from '@mintplayer/ng-bootstrap/a11y';\n\nexport type BsToastPoliteness = 'polite' | 'assertive';\n\n@Component({\n selector: 'bs-toast',\n templateUrl: './toast.component.html',\n styleUrls: ['./toast.component.scss'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class BsToastComponent {\n isVisible = input(false);\n /** SR announcement urgency. 'assertive' for time-critical (errors), 'polite' for everything else. */\n politeness = input<BsToastPoliteness>('assertive');\n\n private readonly announcer = inject(BsLiveAnnouncerService);\n private readonly host = inject(ElementRef) as ElementRef<HTMLElement>;\n\n constructor() {\n // #452: the toasts and transitions partials ship with this component, scoped to the elements it stamps (data-mps=\"toast\").\n useBootstrap(bootstrapToasts, bootstrapTransitions);\n // The old channel was role/aria-live ON the toast div — but the toast and\n // its text mount in one task (ngTemplateOutlet), which most SRs never\n // announce. The shared announcer region pre-exists, so routing the text\n // through it on the show transition is reliably spoken.\n effect(() => {\n if (!this.isVisible()) return;\n const politeness = this.politeness();\n queueMicrotask(() => {\n const text = this.host.nativeElement.textContent?.trim();\n if (text) void this.announcer.announce(text, politeness);\n });\n });\n }\n}\n","<!-- No role/aria-live here: mounting region and text in one task is the\n pattern SRs miss (audit 4.8). BsLiveAnnouncerService is the channel. -->\n<div data-mps=\"toast\" class=\"toast d-block fade mb-2 me-2\" [class.show]=\"isVisible()\">\n <ng-content></ng-content>\n</div>\n","import { Component, ChangeDetectionStrategy} from '@angular/core';\nimport { useBootstrap } from '@mintplayer/ng-bootstrap/machine';\nimport { bootstrapToasts } from '@mintplayer/ui-core/bootstrap/toasts';\n\n@Component({\n selector: 'bs-toast-header',\n templateUrl: './toast-header.component.html',\n styleUrls: ['./toast-header.component.scss'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n '[attr.data-mps]': '\"toast\"',\n '[class.toast-header]': 'true',\n },\n})\nexport class BsToastHeaderComponent {\n constructor() {\n // #452: the toasts partial ships with this component, scoped to the elements it stamps (data-mps=\"toast\").\n useBootstrap(bootstrapToasts);\n }\n\n}\n","<ng-content></ng-content>","import { Component, ChangeDetectionStrategy} from '@angular/core';\nimport { useBootstrap } from '@mintplayer/ng-bootstrap/machine';\nimport { bootstrapToasts } from '@mintplayer/ui-core/bootstrap/toasts';\n\n@Component({\n selector: 'bs-toast-body',\n templateUrl: './toast-body.component.html',\n styleUrls: ['./toast-body.component.scss'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n '[attr.data-mps]': '\"toast\"',\n '[class.d-flex]': 'true',\n '[class.toast-body]': 'true',\n },\n})\nexport class BsToastBodyComponent {\n constructor() {\n // #452: the toasts partial ships with this component, scoped to the elements it stamps (data-mps=\"toast\").\n useBootstrap(bootstrapToasts);\n }\n\n}\n","<ng-content></ng-content>\n","import { Pipe, PipeTransform } from '@angular/core';\n\n@Pipe({\n name: 'bsAddProperties',\n})\nexport class BsAddPropertiesPipe implements PipeTransform {\n transform(value: Object | null, toAdd: Object) {\n return Object.assign({}, value ?? {}, toAdd);\n }\n}\n","import { ComponentPortal } from \"@angular/cdk/portal\";\nimport { EnvironmentProviders, InjectionToken, Injector, makeEnvironmentProviders } from \"@angular/core\";\nimport { BsToastContainerComponent } from \"../components/toast-container/toast-container.component\";\n\nexport const PORTAL_FACTORY = new InjectionToken<(injector: Injector) => ComponentPortal<any>>('ToastPortalFactory', {\n providedIn: 'root',\n factory: () => (injector: Injector) => new ComponentPortal(BsToastContainerComponent, null, injector),\n});\n\nexport function provideToast(): EnvironmentProviders {\n return makeEnvironmentProviders([\n {\n provide: PORTAL_FACTORY,\n useValue: (injector: Injector) => {\n return new ComponentPortal(BsToastContainerComponent, null, injector);\n }\n },\n ]);\n}","import { Overlay, OverlayRef } from '@angular/cdk/overlay';\nimport { ComponentPortal } from '@angular/cdk/portal';\nimport { inject, Injectable, Injector, signal, TemplateRef } from '@angular/core';\nimport { BsToastContainerComponent } from '../../components/toast-container/toast-container.component';\nimport { PORTAL_FACTORY } from '../../providers/portal-factory.provider';\n\n@Injectable({ providedIn: 'root' })\nexport class BsToastService {\n\n private overlayService = inject(Overlay);\n private rootInjector = inject(Injector);\n private portalFactory = inject<(injector: Injector) => ComponentPortal<any>>(PORTAL_FACTORY);\n\n overlayRef: OverlayRef | null = null;\n toasts = signal<ToastItem[]>([]);\n\n public pushToast(toast: TemplateRef<any>, context?: Object) {\n if (!this.overlayRef) {\n const injector = Injector.create({\n providers: [],\n parent: this.rootInjector,\n });\n const portal = this.portalFactory(injector);\n this.overlayRef = this.overlayService.create({\n scrollStrategy: this.overlayService.scrollStrategies.block(),\n positionStrategy: this.overlayService.position().global()\n .top('0').left('0').bottom('0').right('0'),\n hasBackdrop: false\n });\n const component = this.overlayRef.attach<BsToastContainerComponent>(portal);\n }\n\n context = context ?? {};\n const ctx = Object.assign(context, { isVisible: false });\n const item: ToastItem = { template: toast, context: ctx };\n this.toasts.update(toasts => [...toasts, item]);\n setTimeout(() => {\n this.toasts.update(toasts => toasts.map(t =>\n t === item ? { ...t, context: Object.assign({}, t.context, { isVisible: true }) } : t\n ));\n }, 20);\n }\n\n public close(index: number) {\n this.toasts.update(toasts => toasts.map((t, i) =>\n i === index ? { ...t, context: Object.assign({}, t.context, { isVisible: false }) } : t\n ));\n\n setTimeout(() => {\n this.toasts.update(toasts => toasts.filter((_, i) => i !== index));\n }, 400);\n }\n}\n\ninterface ToastItem {\n template: TemplateRef<any>;\n context: Object | null;\n}\n","import { NgTemplateOutlet } from '@angular/common';\nimport { ChangeDetectionStrategy, Component, inject } from '@angular/core';\nimport { BsHasOverlayComponent } from '@mintplayer/ng-bootstrap/has-overlay';\nimport { BsAddPropertiesPipe } from '../../pipes/add-properties.pipe';\nimport { BsToastService } from '../../services/toast/toast.service';\n\n@Component({\n selector: 'bs-toast-container',\n templateUrl: './toast-container.component.html',\n styleUrls: ['./toast-container.component.scss'],\n imports: [NgTemplateOutlet, BsHasOverlayComponent, BsAddPropertiesPipe],\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n '[style.overflow-y]': '\"auto\"',\n },\n})\nexport class BsToastContainerComponent {\n toastService = inject(BsToastService);\n}\n","<bs-has-overlay></bs-has-overlay>\n@for (toast of toastService.toasts(); let i = $index; track i) {\n <ng-container [ngTemplateOutlet]=\"toast.template\" [ngTemplateOutletContext]=\"toast.context | bsAddProperties: {toastIndex: i}\"></ng-container>\n}\n","import { Directive, inject, input } from '@angular/core';\nimport { BsToastService } from '../../services/toast/toast.service';\nimport { BsToastComponent } from '../../components/toast/toast.component';\n\n@Directive({\n selector: 'bs-close',\n host: {\n '(click)': 'onClick()',\n },\n})\nexport class BsToastCloseDirective {\n private toast = inject(BsToastComponent);\n private toastService = inject(BsToastService);\n\n onClick() {\n if (this.index() !== null) {\n this.toastService.close(this.index()!);\n }\n }\n\n readonly index = input<number | null>(null);\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;MAca,gBAAgB,CAAA;AAQ3B,IAAA,W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ategy, Component, ElementRef, Injector, TemplateRef, DestroyRef, Directive } from '@angular/core';
|
|
5
5
|
import { BsOverlayStackService, BsIdService } from '@mintplayer/ng-bootstrap/a11y';
|
|
6
6
|
import { NgTemplateOutlet } from '@angular/common';
|
|
7
|
+
import { useBootstrap } from '@mintplayer/ng-bootstrap/machine';
|
|
8
|
+
import { bootstrapTooltip } from '@mintplayer/ui-core/bootstrap/tooltip';
|
|
7
9
|
import { FadeInOutAnimation } from '@mintplayer/ng-animations';
|
|
8
10
|
import { BsHasOverlayComponent } from '@mintplayer/ng-bootstrap/has-overlay';
|
|
9
11
|
|
|
@@ -29,16 +31,18 @@ class BsTooltipComponent {
|
|
|
29
31
|
}
|
|
30
32
|
}, /* @ts-ignore */
|
|
31
33
|
...(ngDevMode ? [{ debugName: "marginClass" }] : /* istanbul ignore next */ []));
|
|
34
|
+
// #452: the tooltip partial ships with this component, scoped to the elements it stamps (data-mps="tooltip").
|
|
35
|
+
useBootstrap(bootstrapTooltip);
|
|
32
36
|
}
|
|
33
37
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsTooltipComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
34
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.0.8", type: BsTooltipComponent, isStandalone: true, selector: "bs-tooltip", inputs: { position: { classPropertyName: "position", publicName: "position", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class.position-relative": "true" } }, ngImport: i0, template: "<bs-has-overlay></bs-has-overlay>\n<div [@fadeInOut] class=\"tooltip position-absolute show\"\n [class]=\"[positionClass(), marginClass()]\"\n [id]=\"tooltipId\"\n role=\"tooltip\">\n <div class=\"tooltip-arrow position-absolute\" aria-hidden=\"true\"></div>\n <div class=\"tooltip-inner\">\n <ng-container *ngTemplateOutlet=\"template\"></ng-container>\n </div>\n</div>\n", styles: ["
|
|
38
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.0.8", type: BsTooltipComponent, isStandalone: true, selector: "bs-tooltip", inputs: { position: { classPropertyName: "position", publicName: "position", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class.position-relative": "true" } }, ngImport: i0, template: "<bs-has-overlay></bs-has-overlay>\n<div data-mps=\"tooltip\" [@fadeInOut] class=\"tooltip position-absolute show\"\n [class]=\"[positionClass(), marginClass()]\"\n [id]=\"tooltipId\"\n role=\"tooltip\">\n <div data-mps=\"tooltip\" class=\"tooltip-arrow position-absolute\" aria-hidden=\"true\"></div>\n <div data-mps=\"tooltip\" class=\"tooltip-inner\">\n <ng-container *ngTemplateOutlet=\"template\"></ng-container>\n </div>\n</div>\n", styles: [".tooltip.bs-tooltip-start{right:0}.tooltip.bs-tooltip-start,.tooltip.bs-tooltip-end{transform:translateY(-50%)}.tooltip.bs-tooltip-bottom{transform:translate(-50%)}.tooltip.bs-tooltip-top{transform:translate(-50%) translateY(calc(-100% - .3rem))}.tooltip.bs-tooltip-bottom .tooltip-arrow,.tooltip.bs-tooltip-top .tooltip-arrow{left:50%;transform:translate(-50%)}.tooltip.bs-tooltip-start .tooltip-arrow,.tooltip.bs-tooltip-end .tooltip-arrow{top:50%;transform:translateY(-50%)}\n"], dependencies: [{ kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: BsHasOverlayComponent, selector: "bs-has-overlay" }], animations: [FadeInOutAnimation], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
35
39
|
}
|
|
36
40
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsTooltipComponent, decorators: [{
|
|
37
41
|
type: Component,
|
|
38
42
|
args: [{ selector: 'bs-tooltip', imports: [NgTemplateOutlet, BsHasOverlayComponent], animations: [FadeInOutAnimation], changeDetection: ChangeDetectionStrategy.OnPush, host: {
|
|
39
43
|
'[class.position-relative]': 'true',
|
|
40
|
-
}, template: "<bs-has-overlay></bs-has-overlay>\n<div [@fadeInOut] class=\"tooltip position-absolute show\"\n [class]=\"[positionClass(), marginClass()]\"\n [id]=\"tooltipId\"\n role=\"tooltip\">\n <div class=\"tooltip-arrow position-absolute\" aria-hidden=\"true\"></div>\n <div class=\"tooltip-inner\">\n <ng-container *ngTemplateOutlet=\"template\"></ng-container>\n </div>\n</div>\n", styles: ["
|
|
41
|
-
}], propDecorators: { position: [{ type: i0.Input, args: [{ isSignal: true, alias: "position", required: false }] }] } });
|
|
44
|
+
}, template: "<bs-has-overlay></bs-has-overlay>\n<div data-mps=\"tooltip\" [@fadeInOut] class=\"tooltip position-absolute show\"\n [class]=\"[positionClass(), marginClass()]\"\n [id]=\"tooltipId\"\n role=\"tooltip\">\n <div data-mps=\"tooltip\" class=\"tooltip-arrow position-absolute\" aria-hidden=\"true\"></div>\n <div data-mps=\"tooltip\" class=\"tooltip-inner\">\n <ng-container *ngTemplateOutlet=\"template\"></ng-container>\n </div>\n</div>\n", styles: [".tooltip.bs-tooltip-start{right:0}.tooltip.bs-tooltip-start,.tooltip.bs-tooltip-end{transform:translateY(-50%)}.tooltip.bs-tooltip-bottom{transform:translate(-50%)}.tooltip.bs-tooltip-top{transform:translate(-50%) translateY(calc(-100% - .3rem))}.tooltip.bs-tooltip-bottom .tooltip-arrow,.tooltip.bs-tooltip-top .tooltip-arrow{left:50%;transform:translate(-50%)}.tooltip.bs-tooltip-start .tooltip-arrow,.tooltip.bs-tooltip-end .tooltip-arrow{top:50%;transform:translateY(-50%)}\n"] }]
|
|
45
|
+
}], ctorParameters: () => [], propDecorators: { position: [{ type: i0.Input, args: [{ isSignal: true, alias: "position", required: false }] }] } });
|
|
42
46
|
|
|
43
47
|
/** Where the tooltip attaches for each side of the trigger. */
|
|
44
48
|
const POSITIONS = {
|