@mintplayer/ng-bootstrap 22.31.0 → 22.32.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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 +4 -0
- 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 +2 -0
- 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-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 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mintplayer-ng-bootstrap-accordion.mjs","sources":["../../../../libs/mintplayer-ng-bootstrap/accordion/src/accordion-tab-header/accordion-tab-header.directive.ts","../../../../libs/mintplayer-ng-bootstrap/accordion/src/accordion-tab/accordion-tab.component.ts","../../../../libs/mintplayer-ng-bootstrap/accordion/src/accordion-tab/accordion-tab.component.html","../../../../libs/mintplayer-ng-bootstrap/accordion/src/accordion/accordion.component.ts","../../../../libs/mintplayer-ng-bootstrap/accordion/src/accordion/accordion.component.html","../../../../libs/mintplayer-ng-bootstrap/accordion/mintplayer-ng-bootstrap-accordion.ts"],"sourcesContent":["import { Directive, inject, TemplateRef } from '@angular/core';\n\n/**\n * `*bsAccordionTabHeader` — declares the header content of the enclosing\n * `<bs-accordion-tab>`.\n *\n * It is a template rather than projected content because the header lands in\n * the row's `<summary>` while the rest of the tab's content lands in the\n * collapsible region, and one `<ng-content>` cannot feed two places. The tab\n * renders the captured template into its summary.\n *\n * Mirrors `*bsTabPageHeader` on `bs-tab-control`. Replaces the former\n * `<bs-accordion-tab-header>` component.\n *\n * <bs-accordion>\n * <bs-accordion-tab>\n * <ng-container *bsAccordionTabHeader>Profile</ng-container>\n * Body content here\n * </bs-accordion-tab>\n * </bs-accordion>\n */\n@Directive({\n selector: '[bsAccordionTabHeader]',\n})\nexport class BsAccordionTabHeaderDirective {\n readonly template = inject(TemplateRef);\n}\n","import {\n ChangeDetectionStrategy,\n Component,\n computed,\n contentChild,\n inject,\n input,\n model,\n TemplateRef,\n viewChild,\n} from '@angular/core';\nimport { BsAccordionComponent } from '../accordion/accordion.component';\nimport { BsAccordionTabHeaderDirective } from '../accordion-tab-header/accordion-tab-header.directive';\n\n/**\n * `<bs-accordion-tab>` — one tab of a `<bs-accordion>`.\n *\n * It renders nothing in place: its projected children become a template\n * (`body`) that the parent accordion renders inside the tab's `<details>`,\n * together with the `*bsAccordionTabHeader` template. The parent renders\n * every row so the rows are siblings (see `BsAccordionComponent`).\n */\n@Component({\n selector: 'bs-accordion-tab',\n templateUrl: './accordion-tab.component.html',\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: { hidden: '' },\n})\nexport class BsAccordionTabComponent {\n readonly accordion = inject(BsAccordionComponent);\n\n /** Two-way: whether this tab is open. */\n readonly isActive = model<boolean>(false);\n readonly disabled = input<boolean>(false);\n\n readonly headerTemplate = contentChild(BsAccordionTabHeaderDirective);\n /** The tab's projected content, rendered by the parent accordion. */\n readonly body = viewChild<TemplateRef<unknown>>('body');\n\n /** Position among its siblings. */\n readonly index = computed(() => this.accordion.tabPages().indexOf(this));\n\n /**\n * Open or close this tab through its `<details>`, so single-open\n * exclusivity and the nested-accordion collapse both apply — unlike\n * writing `isActive` directly.\n */\n setActive(value: boolean): void {\n this.accordion.setActive(this.index(), value);\n }\n}\n","<ng-template #body><ng-content /></ng-template>\n","import { NgTemplateOutlet } from '@angular/common';\nimport {\n ChangeDetectionStrategy,\n Component,\n computed,\n contentChildren,\n DestroyRef,\n ElementRef,\n forwardRef,\n inject,\n input,\n} from '@angular/core';\nimport { BsIdService } from '@mintplayer/ng-bootstrap/a11y';\nimport { MpPropsDirective, useScopedStyles } from '@mintplayer/ng-bootstrap/machine';\nimport {\n ACCORDION_SCOPE,\n accordionKeydown,\n accordionRows,\n accordionScopedStyles,\n accordionSummaryClick,\n accordionToggled,\n closeAccordion,\n connectAccordion,\n connectAccordionTab,\n} from '@mintplayer/ui-core/accordion';\nimport { BsAccordionTabComponent } from '../accordion-tab/accordion-tab.component';\n\n/**\n * `<bs-accordion>` — Bootstrap accordion on native `<details name>` (#437).\n *\n * <bs-accordion [multi]=\"true\">\n * <bs-accordion-tab [(isActive)]=\"open\">\n * <ng-container *bsAccordionTabHeader>Profile</ng-container>\n * Body content\n * </bs-accordion-tab>\n * </bs-accordion>\n *\n * Renders the markup of `@mintplayer/ui-core/accordion` in its own template,\n * so the server-rendered page is the working accordion: each tab is a\n * `<details>`, which opens and closes with JavaScript off, and single-open is\n * the platform's `name` exclusivity. The host is the `.accordion` root.\n *\n * The rows are rendered here, as siblings, rather than by each tab: Bootstrap\n * draws the borders between items with `:first-of-type`, which a per-tab host\n * element would break. Each tab hands over its header and body as templates.\n */\n@Component({\n selector: 'bs-accordion',\n templateUrl: './accordion.component.html',\n changeDetection: ChangeDetectionStrategy.OnPush,\n imports: [MpPropsDirective, NgTemplateOutlet],\n host: {\n '[attr.data-mps]': 'root()[\"data-mps\"]',\n '[class.accordion]': 'true',\n '[attr.data-highlight-active]': 'root()[\"data-highlight-active\"]',\n },\n})\nexport class BsAccordionComponent {\n /** Allow several tabs to stay open at once. */\n readonly multi = input(false);\n /** Paint the open header with the Bootstrap active background. */\n readonly highlightActiveTab = input(false);\n\n readonly tabPages = contentChildren<BsAccordionTabComponent>(\n forwardRef(() => BsAccordionTabComponent),\n );\n\n private readonly host = inject(ElementRef).nativeElement as HTMLElement;\n private readonly id = inject(BsIdService).next('bs-accordion');\n\n private readonly options = computed(() => ({\n id: this.id,\n multi: this.multi(),\n highlightActiveTab: this.highlightActiveTab(),\n }));\n protected readonly root = computed(() => connectAccordion(this.options()));\n protected readonly views = computed(() =>\n this.tabPages().map((tab, index) => connectAccordionTab(this.options(), index, { disabled: tab.disabled() })),\n );\n\n constructor() {\n useScopedStyles(ACCORDION_SCOPE, accordionScopedStyles);\n // `toggle` does not bubble, so a host listener never hears it: one\n // capture-phase listener on the root hears every row.\n const onToggle = (event: Event) => {\n const change = accordionToggled(this.host, event, this.multi());\n if (change) this.tabPages()[change.index]?.isActive.set(change.active);\n };\n this.host.addEventListener('toggle', onToggle, { capture: true });\n inject(DestroyRef).onDestroy(() => this.host.removeEventListener('toggle', onToggle, { capture: true }));\n }\n\n /** Close every open tab, and every accordion nested inside them. */\n closeAll(): void {\n closeAccordion(this.host);\n }\n\n /**\n * Open or close a tab through its `<details>`, so single-open exclusivity\n * and the nested-accordion collapse both apply.\n */\n setActive(index: number, active: boolean): void {\n const row = accordionRows(this.host)[index];\n if (row) row.open = active;\n }\n\n protected onSummaryClick(event: Event, tab: BsAccordionTabComponent): void {\n accordionSummaryClick(event, tab.disabled());\n }\n\n protected onSummaryKeydown(event: KeyboardEvent, index: number, tab: BsAccordionTabComponent): void {\n accordionKeydown(this.host, event, index, tab.disabled());\n }\n}\n","@for (tab of tabPages(); track tab; let i = $index) {\n @let view = views()[i];\n <details [mpProps]=\"view.item\" [attr.open]=\"tab.isActive() ? '' : null\">\n <summary [mpProps]=\"view.summary\" (click)=\"onSummaryClick($event, tab)\" (keydown)=\"onSummaryKeydown($event, i, tab)\">\n <ng-container [ngTemplateOutlet]=\"tab.headerTemplate()?.template ?? null\" />\n </summary>\n <div [mpProps]=\"view.content\"><ng-container [ngTemplateOutlet]=\"tab.body() ?? null\" /></div>\n </details>\n}\n<ng-content />\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;AAEA;;;;;;;;;;;;;;;;;;AAkBG;MAIU,6BAA6B,CAAA;AAH1C,IAAA,WAAA,GAAA;AAIW,QAAA,IAAA,CAAA,QAAQ,GAAG,MAAM,CAAC,WAAW,CAAC;AACxC,IAAA;8GAFY,6BAA6B,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAA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AA,IAAA,EAAA,EAAA,CAAA,KAAA,EAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,IAAA,EAAA,KAAA,EAAA,OAAA,EAAA,QAAA,EAAA,KAAA,EAAA,CAAA,EAAA,CAAA,EAAA,kBAAA,EAAA,CAAA,EAAA,IAAA,EAAA,EAAA,CAAA,KAAA,EAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,IAAA,EAAA,KAAA,EAAA,oBAAA,EAAA,QAAA,EAAA,KAAA,EAAA,CAAA,EAAA,CAAA,EAAA,QAAA,EAAA,CAAA,EAAA,IAAA,EAAA,EAAA,CAAA,eAAA,EAAA,IAAA,EAAA,CAAA,UAAU,CAAC,MAAM,uBAAuB,CAAC,EAAA,EAAA,QAAA,EAAA,IAAA,EAAA,CAAA,EAAA,CAAA,EAAA,EAAA,CAAA;;AEhE7C;;AAEG;;;;"}
|
|
1
|
+
{"version":3,"file":"mintplayer-ng-bootstrap-accordion.mjs","sources":["../../../../libs/mintplayer-ng-bootstrap/accordion/src/accordion-tab-header/accordion-tab-header.directive.ts","../../../../libs/mintplayer-ng-bootstrap/accordion/src/accordion-tab/accordion-tab.component.ts","../../../../libs/mintplayer-ng-bootstrap/accordion/src/accordion-tab/accordion-tab.component.html","../../../../libs/mintplayer-ng-bootstrap/accordion/src/accordion/accordion.component.ts","../../../../libs/mintplayer-ng-bootstrap/accordion/src/accordion/accordion.component.html","../../../../libs/mintplayer-ng-bootstrap/accordion/mintplayer-ng-bootstrap-accordion.ts"],"sourcesContent":["import { Directive, inject, TemplateRef } from '@angular/core';\n\n/**\n * `*bsAccordionTabHeader` — declares the header content of the enclosing\n * `<bs-accordion-tab>`.\n *\n * It is a template rather than projected content because the header lands in\n * the row's `<summary>` while the rest of the tab's content lands in the\n * collapsible region, and one `<ng-content>` cannot feed two places. The tab\n * renders the captured template into its summary.\n *\n * Mirrors `*bsTabPageHeader` on `bs-tab-control`. Replaces the former\n * `<bs-accordion-tab-header>` component.\n *\n * <bs-accordion>\n * <bs-accordion-tab>\n * <ng-container *bsAccordionTabHeader>Profile</ng-container>\n * Body content here\n * </bs-accordion-tab>\n * </bs-accordion>\n */\n@Directive({\n selector: '[bsAccordionTabHeader]',\n})\nexport class BsAccordionTabHeaderDirective {\n readonly template = inject(TemplateRef);\n}\n","import {\n ChangeDetectionStrategy,\n Component,\n computed,\n contentChild,\n inject,\n input,\n model,\n TemplateRef,\n viewChild,\n} from '@angular/core';\nimport { BsAccordionComponent } from '../accordion/accordion.component';\nimport { BsAccordionTabHeaderDirective } from '../accordion-tab-header/accordion-tab-header.directive';\n\n/**\n * `<bs-accordion-tab>` — one tab of a `<bs-accordion>`.\n *\n * It renders nothing in place: its projected children become a template\n * (`body`) that the parent accordion renders inside the tab's `<details>`,\n * together with the `*bsAccordionTabHeader` template. The parent renders\n * every row so the rows are siblings (see `BsAccordionComponent`).\n */\n@Component({\n selector: 'bs-accordion-tab',\n templateUrl: './accordion-tab.component.html',\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: { hidden: '' },\n})\nexport class BsAccordionTabComponent {\n readonly accordion = inject(BsAccordionComponent);\n\n /** Two-way: whether this tab is open. */\n readonly isActive = model<boolean>(false);\n readonly disabled = input<boolean>(false);\n\n readonly headerTemplate = contentChild(BsAccordionTabHeaderDirective);\n /** The tab's projected content, rendered by the parent accordion. */\n readonly body = viewChild<TemplateRef<unknown>>('body');\n\n /** Position among its siblings. */\n readonly index = computed(() => this.accordion.tabPages().indexOf(this));\n\n /**\n * Open or close this tab through its `<details>`, so single-open\n * exclusivity and the nested-accordion collapse both apply — unlike\n * writing `isActive` directly.\n */\n setActive(value: boolean): void {\n this.accordion.setActive(this.index(), value);\n }\n}\n","<ng-template #body><ng-content /></ng-template>\n","import { bootstrapAccordion } from '@mintplayer/ui-core/bootstrap/accordion';\nimport { NgTemplateOutlet } from '@angular/common';\nimport {\n ChangeDetectionStrategy,\n Component,\n computed,\n contentChildren,\n DestroyRef,\n ElementRef,\n forwardRef,\n inject,\n input,\n} from '@angular/core';\nimport { BsIdService } from '@mintplayer/ng-bootstrap/a11y';\nimport { MpPropsDirective, useBootstrap, useScopedStyles } from '@mintplayer/ng-bootstrap/machine';\nimport {\n ACCORDION_SCOPE,\n accordionKeydown,\n accordionRows,\n accordionScopedStyles,\n accordionSummaryClick,\n accordionToggled,\n closeAccordion,\n connectAccordion,\n connectAccordionTab,\n} from '@mintplayer/ui-core/accordion';\nimport { BsAccordionTabComponent } from '../accordion-tab/accordion-tab.component';\n\n/**\n * `<bs-accordion>` — Bootstrap accordion on native `<details name>` (#437).\n *\n * <bs-accordion [multi]=\"true\">\n * <bs-accordion-tab [(isActive)]=\"open\">\n * <ng-container *bsAccordionTabHeader>Profile</ng-container>\n * Body content\n * </bs-accordion-tab>\n * </bs-accordion>\n *\n * Renders the markup of `@mintplayer/ui-core/accordion` in its own template,\n * so the server-rendered page is the working accordion: each tab is a\n * `<details>`, which opens and closes with JavaScript off, and single-open is\n * the platform's `name` exclusivity. The host is the `.accordion` root.\n *\n * The rows are rendered here, as siblings, rather than by each tab: Bootstrap\n * draws the borders between items with `:first-of-type`, which a per-tab host\n * element would break. Each tab hands over its header and body as templates.\n */\n@Component({\n selector: 'bs-accordion',\n templateUrl: './accordion.component.html',\n changeDetection: ChangeDetectionStrategy.OnPush,\n imports: [MpPropsDirective, NgTemplateOutlet],\n host: {\n '[attr.data-mps]': 'root()[\"data-mps\"]',\n '[class.accordion]': 'true',\n '[attr.data-highlight-active]': 'root()[\"data-highlight-active\"]',\n },\n})\nexport class BsAccordionComponent {\n /** Allow several tabs to stay open at once. */\n readonly multi = input(false);\n /** Paint the open header with the Bootstrap active background. */\n readonly highlightActiveTab = input(false);\n\n readonly tabPages = contentChildren<BsAccordionTabComponent>(\n forwardRef(() => BsAccordionTabComponent),\n );\n\n private readonly host = inject(ElementRef).nativeElement as HTMLElement;\n private readonly id = inject(BsIdService).next('bs-accordion');\n\n private readonly options = computed(() => ({\n id: this.id,\n multi: this.multi(),\n highlightActiveTab: this.highlightActiveTab(),\n }));\n protected readonly root = computed(() => connectAccordion(this.options()));\n protected readonly views = computed(() =>\n this.tabPages().map((tab, index) => connectAccordionTab(this.options(), index, { disabled: tab.disabled() })),\n );\n\n constructor() {\n useBootstrap(bootstrapAccordion);\n useScopedStyles(ACCORDION_SCOPE, accordionScopedStyles);\n // `toggle` does not bubble, so a host listener never hears it: one\n // capture-phase listener on the root hears every row.\n const onToggle = (event: Event) => {\n const change = accordionToggled(this.host, event, this.multi());\n if (change) this.tabPages()[change.index]?.isActive.set(change.active);\n };\n this.host.addEventListener('toggle', onToggle, { capture: true });\n inject(DestroyRef).onDestroy(() => this.host.removeEventListener('toggle', onToggle, { capture: true }));\n }\n\n /** Close every open tab, and every accordion nested inside them. */\n closeAll(): void {\n closeAccordion(this.host);\n }\n\n /**\n * Open or close a tab through its `<details>`, so single-open exclusivity\n * and the nested-accordion collapse both apply.\n */\n setActive(index: number, active: boolean): void {\n const row = accordionRows(this.host)[index];\n if (row) row.open = active;\n }\n\n protected onSummaryClick(event: Event, tab: BsAccordionTabComponent): void {\n accordionSummaryClick(event, tab.disabled());\n }\n\n protected onSummaryKeydown(event: KeyboardEvent, index: number, tab: BsAccordionTabComponent): void {\n accordionKeydown(this.host, event, index, tab.disabled());\n }\n}\n","@for (tab of tabPages(); track tab; let i = $index) {\n @let view = views()[i];\n <details [mpProps]=\"view.item\" [attr.open]=\"tab.isActive() ? '' : null\">\n <summary [mpProps]=\"view.summary\" (click)=\"onSummaryClick($event, tab)\" (keydown)=\"onSummaryKeydown($event, i, tab)\">\n <ng-container [ngTemplateOutlet]=\"tab.headerTemplate()?.template ?? null\" />\n </summary>\n <div [mpProps]=\"view.content\"><ng-container [ngTemplateOutlet]=\"tab.body() ?? null\" /></div>\n </details>\n}\n<ng-content />\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;AAEA;;;;;;;;;;;;;;;;;;AAkBG;MAIU,6BAA6B,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vC,wBAAA,mBAAmB,EAAE,MAAM;AAC3B,wBAAA,8BAA8B,EAAE,iCAAiC;AAClE,qBAAA,EAAA,QAAA,EAAA,khBAAA,EAAA;AASC,SAAA,CAAA,EAAA,cAAA,EAAA,MAAA,EAAA,EAAA,cAAA,EAAA,EAAA,KAAA,EAAA,CAAA,EAAA,IAAA,EAAA,EAAA,CAAA,KAAA,EAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,IAAA,EAAA,KAAA,EAAA,OAAA,EAAA,QAAA,EAAA,KAAA,EAAA,CAAA,EAAA,CAAA,EAAA,kBAAA,EAAA,CAAA,EAAA,IAAA,EAAA,EAAA,CAAA,KAAA,EAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,IAAA,EAAA,KAAA,EAAA,oBAAA,EAAA,QAAA,EAAA,KAAA,EAAA,CAAA,EAAA,CAAA,EAAA,QAAA,EAAA,CAAA,EAAA,IAAA,EAAA,EAAA,CAAA,eAAA,EAAA,IAAA,EAAA,CAAA,UAAU,CAAC,MAAM,uBAAuB,CAAC,EAAA,EAAA,QAAA,EAAA,IAAA,EAAA,CAAA,EAAA,CAAA,EAAA,EAAA,CAAA;;AEjE7C;;AAEG;;;;"}
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
2
|
import { inject, DestroyRef, ElementRef, input, model, output, ChangeDetectionStrategy, Component } from '@angular/core';
|
|
3
|
+
import { useBootstrap } from '@mintplayer/ng-bootstrap/machine';
|
|
4
|
+
import { bootstrapAlert } from '@mintplayer/ui-core/bootstrap/alert';
|
|
3
5
|
import { FadeInOutAnimation } from '@mintplayer/ng-animations';
|
|
4
6
|
import { Color } from '@mintplayer/ng-bootstrap';
|
|
5
7
|
|
|
@@ -16,6 +18,8 @@ class BsAlertComponent {
|
|
|
16
18
|
this.isVisible = model(true, /* @ts-ignore */
|
|
17
19
|
...(ngDevMode ? [{ debugName: "isVisible" }] : /* istanbul ignore next */ []));
|
|
18
20
|
this.afterOpenedOrClosed = output();
|
|
21
|
+
// #452: the alert partial ships with this component, scoped to the elements it stamps (data-mps="alert").
|
|
22
|
+
useBootstrap(bootstrapAlert);
|
|
19
23
|
}
|
|
20
24
|
/**
|
|
21
25
|
* Dismissing destroys the close button the user just pressed, which drops
|
|
@@ -40,12 +44,12 @@ class BsAlertComponent {
|
|
|
40
44
|
this.afterOpenedOrClosed.emit(isVisible);
|
|
41
45
|
}
|
|
42
46
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsAlertComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
43
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.8", type: BsAlertComponent, isStandalone: true, selector: "bs-alert", inputs: { type: { classPropertyName: "type", publicName: "type", isSignal: true, isRequired: false, transformFunction: null }, announce: { classPropertyName: "announce", publicName: "announce", isSignal: true, isRequired: false, transformFunction: null }, isVisible: { classPropertyName: "isVisible", publicName: "isVisible", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { isVisible: "isVisibleChange", afterOpenedOrClosed: "afterOpenedOrClosed" }, ngImport: i0, template: "@if (isVisible()) {\n <div class=\"mb-3 overflow-hidden\" [@fadeInOut] (@fadeInOut.done)=\"onAfterOpenedOrClosed(isVisible())\">\n <!-- role=\"alert\" is OPT-IN: most usages are static banners present at\n page load, and a forced alert role re-announces them as urgent\n interruptions on every render. Set [announce]=\"true\" for genuine\n dynamic alerts. -->\n <div class=\"alert mb-0\" [class]=\"'alert-' + colors[type()]\" [attr.role]=\"announce() ? 'alert' : null\">\n <ng-content></ng-content>\n </div>\n </div>\n}\n", styles: [":host ::ng-deep .alert
|
|
47
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.8", type: BsAlertComponent, isStandalone: true, selector: "bs-alert", inputs: { type: { classPropertyName: "type", publicName: "type", isSignal: true, isRequired: false, transformFunction: null }, announce: { classPropertyName: "announce", publicName: "announce", isSignal: true, isRequired: false, transformFunction: null }, isVisible: { classPropertyName: "isVisible", publicName: "isVisible", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { isVisible: "isVisibleChange", afterOpenedOrClosed: "afterOpenedOrClosed" }, ngImport: i0, template: "@if (isVisible()) {\n <div data-mps=\"alert\" class=\"mb-3 overflow-hidden\" [@fadeInOut] (@fadeInOut.done)=\"onAfterOpenedOrClosed(isVisible())\">\n <!-- role=\"alert\" is OPT-IN: most usages are static banners present at\n page load, and a forced alert role re-announces them as urgent\n interruptions on every render. Set [announce]=\"true\" for genuine\n dynamic alerts. -->\n <div data-mps=\"alert\" class=\"alert mb-0\" [class]=\"'alert-' + colors[type()]\" [attr.role]=\"announce() ? 'alert' : null\">\n <ng-content></ng-content>\n </div>\n </div>\n}\n", styles: [":host ::ng-deep .alert .btn{bottom:0;display:inline-flex;align-items:center}\n"], animations: [FadeInOutAnimation], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
44
48
|
}
|
|
45
49
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsAlertComponent, decorators: [{
|
|
46
50
|
type: Component,
|
|
47
|
-
args: [{ selector: 'bs-alert', animations: [FadeInOutAnimation], changeDetection: ChangeDetectionStrategy.OnPush, template: "@if (isVisible()) {\n <div class=\"mb-3 overflow-hidden\" [@fadeInOut] (@fadeInOut.done)=\"onAfterOpenedOrClosed(isVisible())\">\n <!-- role=\"alert\" is OPT-IN: most usages are static banners present at\n page load, and a forced alert role re-announces them as urgent\n interruptions on every render. Set [announce]=\"true\" for genuine\n dynamic alerts. -->\n <div class=\"alert mb-0\" [class]=\"'alert-' + colors[type()]\" [attr.role]=\"announce() ? 'alert' : null\">\n <ng-content></ng-content>\n </div>\n </div>\n}\n", styles: [":host ::ng-deep .alert
|
|
48
|
-
}], propDecorators: { type: [{ type: i0.Input, args: [{ isSignal: true, alias: "type", required: false }] }], announce: [{ type: i0.Input, args: [{ isSignal: true, alias: "announce", required: false }] }], isVisible: [{ type: i0.Input, args: [{ isSignal: true, alias: "isVisible", required: false }] }, { type: i0.Output, args: ["isVisibleChange"] }], afterOpenedOrClosed: [{ type: i0.Output, args: ["afterOpenedOrClosed"] }] } });
|
|
51
|
+
args: [{ selector: 'bs-alert', animations: [FadeInOutAnimation], changeDetection: ChangeDetectionStrategy.OnPush, template: "@if (isVisible()) {\n <div data-mps=\"alert\" class=\"mb-3 overflow-hidden\" [@fadeInOut] (@fadeInOut.done)=\"onAfterOpenedOrClosed(isVisible())\">\n <!-- role=\"alert\" is OPT-IN: most usages are static banners present at\n page load, and a forced alert role re-announces them as urgent\n interruptions on every render. Set [announce]=\"true\" for genuine\n dynamic alerts. -->\n <div data-mps=\"alert\" class=\"alert mb-0\" [class]=\"'alert-' + colors[type()]\" [attr.role]=\"announce() ? 'alert' : null\">\n <ng-content></ng-content>\n </div>\n </div>\n}\n", styles: [":host ::ng-deep .alert .btn{bottom:0;display:inline-flex;align-items:center}\n"] }]
|
|
52
|
+
}], ctorParameters: () => [], propDecorators: { type: [{ type: i0.Input, args: [{ isSignal: true, alias: "type", required: false }] }], announce: [{ type: i0.Input, args: [{ isSignal: true, alias: "announce", required: false }] }], isVisible: [{ type: i0.Input, args: [{ isSignal: true, alias: "isVisible", required: false }] }, { type: i0.Output, args: ["isVisibleChange"] }], afterOpenedOrClosed: [{ type: i0.Output, args: ["afterOpenedOrClosed"] }] } });
|
|
49
53
|
|
|
50
54
|
class BsAlertCloseComponent {
|
|
51
55
|
constructor() {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mintplayer-ng-bootstrap-alert.mjs","sources":["../../../../libs/mintplayer-ng-bootstrap/alert/src/alert/alert.component.ts","../../../../libs/mintplayer-ng-bootstrap/alert/src/alert/alert.component.html","../../../../libs/mintplayer-ng-bootstrap/alert/src/alert-close/alert-close.component.ts","../../../../libs/mintplayer-ng-bootstrap/alert/src/alert-close/alert-close.component.html","../../../../libs/mintplayer-ng-bootstrap/alert/mintplayer-ng-bootstrap-alert.ts"],"sourcesContent":["import { ChangeDetectionStrategy, Component, DestroyRef, ElementRef, inject, input, model, output } from '@angular/core';\nimport { FadeInOutAnimation } from '@mintplayer/ng-animations';\nimport { Color } from '@mintplayer/ng-bootstrap';\n\n@Component({\n selector: 'bs-alert',\n templateUrl: './alert.component.html',\n styleUrls: ['./alert.component.scss'],\n animations: [ FadeInOutAnimation ],\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class BsAlertComponent {\n\n private destroyRef = inject(DestroyRef);\n private hostRef = inject(ElementRef<HTMLElement>);\n\n type = input<Color>(Color.primary);\n /** Opt-in role=\"alert\" for genuinely dynamic alerts (defaults off — static banners must not interrupt). */\n readonly announce = input(false);\n colors = Color;\n\n isVisible = model<boolean>(true);\n\n /**\n * Dismissing destroys the close button the user just pressed, which drops\n * focus to <body> — their next keystroke goes nowhere. Re-home it on the next\n * tabbable after the alert (reading order continues naturally), falling back\n * to the previous one at the end of a page.\n */\n rescueFocus(): void {\n const host = this.hostRef.nativeElement as HTMLElement;\n if (!host.contains(document.activeElement)) return;\n const tabbables = Array.from(\n document.querySelectorAll<HTMLElement>(\n 'a[href], button:not([disabled]), input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex=\"-1\"])',\n ),\n ).filter((el) => !host.contains(el));\n const after = tabbables.find(\n (el) => host.compareDocumentPosition(el) & Node.DOCUMENT_POSITION_FOLLOWING,\n );\n (after ?? tabbables[tabbables.length - 1])?.focus();\n }\n\n afterOpenedOrClosed = output<boolean>();\n\n onAfterOpenedOrClosed(isVisible: boolean) {\n // During SSR prerender, the FadeInOut `done` callback can fire after\n // Angular has torn down the route's application — emitting on a\n // destroyed OutputRef hits NG0953 on every prerendered page.\n if (this.destroyRef.destroyed) return;\n this.afterOpenedOrClosed.emit(isVisible);\n }\n}\n","@if (isVisible()) {\n <div class=\"mb-3 overflow-hidden\" [@fadeInOut] (@fadeInOut.done)=\"onAfterOpenedOrClosed(isVisible())\">\n <!-- role=\"alert\" is OPT-IN: most usages are static banners present at\n page load, and a forced alert role re-announces them as urgent\n interruptions on every render. Set [announce]=\"true\" for genuine\n dynamic alerts. -->\n <div class=\"alert mb-0\" [class]=\"'alert-' + colors[type()]\" [attr.role]=\"announce() ? 'alert' : null\">\n <ng-content></ng-content>\n </div>\n </div>\n}\n","import { Component, inject, input, ChangeDetectionStrategy} from '@angular/core';\nimport { BsAlertComponent } from '../alert/alert.component';\n\n@Component({\n selector: 'bs-alert-close',\n templateUrl: './alert-close.component.html',\n styleUrls: ['./alert-close.component.scss'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class BsAlertCloseComponent {\n private alert = inject(BsAlertComponent);\n\n /** Accessible name of the icon-only close button. Override to translate. */\n readonly ariaLabel = input('Close');\n\n closeAlert() {\n // Order matters: the rescue must read focus while the button still exists.\n this.alert.rescueFocus();\n this.alert.isVisible.set(false);\n return false;\n }\n\n}\n","<button type=\"button\" class=\"btn float-end\" [attr.aria-label]=\"ariaLabel()\" (click)=\"closeAlert()\">\n <span class=\"text-dark\" aria-hidden=\"true\">×</span>\n</button>\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"mintplayer-ng-bootstrap-alert.mjs","sources":["../../../../libs/mintplayer-ng-bootstrap/alert/src/alert/alert.component.ts","../../../../libs/mintplayer-ng-bootstrap/alert/src/alert/alert.component.html","../../../../libs/mintplayer-ng-bootstrap/alert/src/alert-close/alert-close.component.ts","../../../../libs/mintplayer-ng-bootstrap/alert/src/alert-close/alert-close.component.html","../../../../libs/mintplayer-ng-bootstrap/alert/mintplayer-ng-bootstrap-alert.ts"],"sourcesContent":["import { ChangeDetectionStrategy, Component, DestroyRef, ElementRef, inject, input, model, output } from '@angular/core';\nimport { useBootstrap } from '@mintplayer/ng-bootstrap/machine';\nimport { bootstrapAlert } from '@mintplayer/ui-core/bootstrap/alert';\nimport { FadeInOutAnimation } from '@mintplayer/ng-animations';\nimport { Color } from '@mintplayer/ng-bootstrap';\n\n@Component({\n selector: 'bs-alert',\n templateUrl: './alert.component.html',\n styleUrls: ['./alert.component.scss'],\n animations: [ FadeInOutAnimation ],\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class BsAlertComponent {\n constructor() {\n // #452: the alert partial ships with this component, scoped to the elements it stamps (data-mps=\"alert\").\n useBootstrap(bootstrapAlert);\n }\n\n\n private destroyRef = inject(DestroyRef);\n private hostRef = inject(ElementRef<HTMLElement>);\n\n type = input<Color>(Color.primary);\n /** Opt-in role=\"alert\" for genuinely dynamic alerts (defaults off — static banners must not interrupt). */\n readonly announce = input(false);\n colors = Color;\n\n isVisible = model<boolean>(true);\n\n /**\n * Dismissing destroys the close button the user just pressed, which drops\n * focus to <body> — their next keystroke goes nowhere. Re-home it on the next\n * tabbable after the alert (reading order continues naturally), falling back\n * to the previous one at the end of a page.\n */\n rescueFocus(): void {\n const host = this.hostRef.nativeElement as HTMLElement;\n if (!host.contains(document.activeElement)) return;\n const tabbables = Array.from(\n document.querySelectorAll<HTMLElement>(\n 'a[href], button:not([disabled]), input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex=\"-1\"])',\n ),\n ).filter((el) => !host.contains(el));\n const after = tabbables.find(\n (el) => host.compareDocumentPosition(el) & Node.DOCUMENT_POSITION_FOLLOWING,\n );\n (after ?? tabbables[tabbables.length - 1])?.focus();\n }\n\n afterOpenedOrClosed = output<boolean>();\n\n onAfterOpenedOrClosed(isVisible: boolean) {\n // During SSR prerender, the FadeInOut `done` callback can fire after\n // Angular has torn down the route's application — emitting on a\n // destroyed OutputRef hits NG0953 on every prerendered page.\n if (this.destroyRef.destroyed) return;\n this.afterOpenedOrClosed.emit(isVisible);\n }\n}\n","@if (isVisible()) {\n <div data-mps=\"alert\" class=\"mb-3 overflow-hidden\" [@fadeInOut] (@fadeInOut.done)=\"onAfterOpenedOrClosed(isVisible())\">\n <!-- role=\"alert\" is OPT-IN: most usages are static banners present at\n page load, and a forced alert role re-announces them as urgent\n interruptions on every render. Set [announce]=\"true\" for genuine\n dynamic alerts. -->\n <div data-mps=\"alert\" class=\"alert mb-0\" [class]=\"'alert-' + colors[type()]\" [attr.role]=\"announce() ? 'alert' : null\">\n <ng-content></ng-content>\n </div>\n </div>\n}\n","import { Component, inject, input, ChangeDetectionStrategy} from '@angular/core';\nimport { BsAlertComponent } from '../alert/alert.component';\n\n@Component({\n selector: 'bs-alert-close',\n templateUrl: './alert-close.component.html',\n styleUrls: ['./alert-close.component.scss'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class BsAlertCloseComponent {\n private alert = inject(BsAlertComponent);\n\n /** Accessible name of the icon-only close button. Override to translate. */\n readonly ariaLabel = input('Close');\n\n closeAlert() {\n // Order matters: the rescue must read focus while the button still exists.\n this.alert.rescueFocus();\n this.alert.isVisible.set(false);\n return false;\n }\n\n}\n","<button type=\"button\" class=\"btn float-end\" [attr.aria-label]=\"ariaLabel()\" (click)=\"closeAlert()\">\n <span class=\"text-dark\" aria-hidden=\"true\">×</span>\n</button>\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;MAaa,gBAAgB,CAAA;AAC3B,IAAA,WAAA,GAAA;AAMQ,QAAA,IAAA,CAAA,UAAU,GAAG,MAAM,CAAC,UAAU,CAAC;AAC/B,QAAA,IAAA,CAAA,OAAO,GAAG,MAAM,EAAC,UAAuB,EAAC;AAEjD,QAAA,IAAA,CAAA,IAAI,GAAG,KAAK,CAAQ,KAAK,CAAC,OAAO;iFAAC;;QAEzB,IAAA,CAAA,QAAQ,GAAG,KAAK,CAAC,KAAK;qFAAC;QAChC,IAAA,CAAA,MAAM,GAAG,KAAK;QAEd,IAAA,CAAA,SAAS,GAAG,KAAK,CAAU,IAAI;sFAAC;QAsBhC,I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d;8GAXW,qBAAqB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;AAArB,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,IAAA,EAAA,qBAAqB,0NCTlC,4LAGA,EAAA,MAAA,EAAA,CAAA,4GAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,CAAA,CAAA;;2FDMa,qBAAqB,EAAA,UAAA,EAAA,CAAA;kBANjC,SAAS;+BACE,gBAAgB,EAAA,eAAA,EAGT,uBAAuB,CAAC,MAAM,EAAA,QAAA,EAAA,4LAAA,EAAA,MAAA,EAAA,CAAA,4GAAA,CAAA,EAAA;;;AEPjD;;AAEG;;;;"}
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
2
|
import { input, computed, ChangeDetectionStrategy, Component } from '@angular/core';
|
|
3
|
+
import { useBootstrap } from '@mintplayer/ng-bootstrap/machine';
|
|
4
|
+
import { bootstrapBadge } from '@mintplayer/ui-core/bootstrap/badge';
|
|
3
5
|
import { Color } from '@mintplayer/ng-bootstrap';
|
|
4
6
|
|
|
5
7
|
// `.badge` paints white text, and `bg-{color}` sets only the background: white
|
|
@@ -28,14 +30,16 @@ class BsBadgeComponent {
|
|
|
28
30
|
...(ngDevMode ? [{ debugName: "decorative" }] : /* istanbul ignore next */ []));
|
|
29
31
|
this.colorClass = computed(() => pairedColorClasses[this.type()] ?? `text-bg-${this.colors[this.type()]}`, /* @ts-ignore */
|
|
30
32
|
...(ngDevMode ? [{ debugName: "colorClass" }] : /* istanbul ignore next */ []));
|
|
33
|
+
// #452: the badge partial ships with this component, scoped to the elements it stamps (data-mps="badge").
|
|
34
|
+
useBootstrap(bootstrapBadge);
|
|
31
35
|
}
|
|
32
36
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsBadgeComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
33
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.8", type: BsBadgeComponent, isStandalone: true, selector: "bs-badge", inputs: { type: { classPropertyName: "type", publicName: "type", isSignal: true, isRequired: false, transformFunction: null }, unit: { classPropertyName: "unit", publicName: "unit", isSignal: true, isRequired: false, transformFunction: null }, decorative: { classPropertyName: "decorative", publicName: "decorative", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: "<span class=\"badge\" [class]=\"colorClass()\" [attr.aria-hidden]=\"decorative() ? 'true' : null\">\n <ng-content></ng-content>\n @if (unit(); as u) {\n <span class=\"visually-hidden-unit\">&ngsp;{{ u }}</span>\n }\n</span>\n", styles: ["
|
|
37
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.8", type: BsBadgeComponent, isStandalone: true, selector: "bs-badge", inputs: { type: { classPropertyName: "type", publicName: "type", isSignal: true, isRequired: false, transformFunction: null }, unit: { classPropertyName: "unit", publicName: "unit", isSignal: true, isRequired: false, transformFunction: null }, decorative: { classPropertyName: "decorative", publicName: "decorative", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: "<span data-mps=\"badge\" class=\"badge\" [class]=\"colorClass()\" [attr.aria-hidden]=\"decorative() ? 'true' : null\">\n <ng-content></ng-content>\n @if (unit(); as u) {\n <span data-mps=\"badge\" class=\"visually-hidden-unit\">&ngsp;{{ u }}</span>\n }\n</span>\n", styles: [".visually-hidden-unit{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
34
38
|
}
|
|
35
39
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsBadgeComponent, decorators: [{
|
|
36
40
|
type: Component,
|
|
37
|
-
args: [{ selector: 'bs-badge', changeDetection: ChangeDetectionStrategy.OnPush, template: "<span class=\"badge\" [class]=\"colorClass()\" [attr.aria-hidden]=\"decorative() ? 'true' : null\">\n <ng-content></ng-content>\n @if (unit(); as u) {\n <span class=\"visually-hidden-unit\">&ngsp;{{ u }}</span>\n }\n</span>\n", styles: ["
|
|
38
|
-
}], propDecorators: { type: [{ type: i0.Input, args: [{ isSignal: true, alias: "type", required: false }] }], unit: [{ type: i0.Input, args: [{ isSignal: true, alias: "unit", required: false }] }], decorative: [{ type: i0.Input, args: [{ isSignal: true, alias: "decorative", required: false }] }] } });
|
|
41
|
+
args: [{ selector: 'bs-badge', changeDetection: ChangeDetectionStrategy.OnPush, template: "<span data-mps=\"badge\" class=\"badge\" [class]=\"colorClass()\" [attr.aria-hidden]=\"decorative() ? 'true' : null\">\n <ng-content></ng-content>\n @if (unit(); as u) {\n <span data-mps=\"badge\" class=\"visually-hidden-unit\">&ngsp;{{ u }}</span>\n }\n</span>\n", styles: [".visually-hidden-unit{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}\n"] }]
|
|
42
|
+
}], ctorParameters: () => [], propDecorators: { type: [{ type: i0.Input, args: [{ isSignal: true, alias: "type", required: false }] }], unit: [{ type: i0.Input, args: [{ isSignal: true, alias: "unit", required: false }] }], decorative: [{ type: i0.Input, args: [{ isSignal: true, alias: "decorative", required: false }] }] } });
|
|
39
43
|
|
|
40
44
|
/**
|
|
41
45
|
* Generated bundle index. Do not edit.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mintplayer-ng-bootstrap-badge.mjs","sources":["../../../../libs/mintplayer-ng-bootstrap/badge/src/badge.component.ts","../../../../libs/mintplayer-ng-bootstrap/badge/src/badge.component.html","../../../../libs/mintplayer-ng-bootstrap/badge/mintplayer-ng-bootstrap-badge.ts"],"sourcesContent":["import { ChangeDetectionStrategy, Component, computed, input } from '@angular/core';\nimport { Color } from '@mintplayer/ng-bootstrap';\n\n// `.badge` paints white text, and `bg-{color}` sets only the background: white\n// on warning was 1.63:1. Bootstrap's `text-bg-{color}` pairs each theme colour\n// with the text colour color-contrast() picks (black on warning, info and light).\n// It exists for the eight theme colours only; the other three pair a background\n// with a text utility, the way `<bs-card [color]>` colours them.\nconst pairedColorClasses: Partial<Record<Color, string>> = {\n [Color.body]: 'bg-body text-body',\n [Color.white]: 'bg-white text-black',\n [Color.transparent]: 'bg-transparent text-reset',\n};\n\n@Component({\n selector: 'bs-badge',\n templateUrl: './badge.component.html',\n styleUrls: ['./badge.component.scss'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class BsBadgeComponent {\n colors = Color;\n\n type = input<Color>(Color.primary);\n /**\n * What the number counts ('unread messages'): a bare '3' badge is\n * meaningless out of visual context. Appended visually hidden.\n */\n unit = input<string | null>(null);\n /** Purely decorative badges leave the accessibility tree entirely. */\n decorative = input(false);\n\n colorClass = computed(() => pairedColorClasses[this.type()] ?? `text-bg-${this.colors[this.type()]}`);\n}\n","<span class=\"badge\" [class]=\"colorClass()\" [attr.aria-hidden]=\"decorative() ? 'true' : null\">\n <ng-content></ng-content>\n @if (unit(); as u) {\n <span class=\"visually-hidden-unit\">&ngsp;{{ u }}</span>\n }\n</span>\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"mintplayer-ng-bootstrap-badge.mjs","sources":["../../../../libs/mintplayer-ng-bootstrap/badge/src/badge.component.ts","../../../../libs/mintplayer-ng-bootstrap/badge/src/badge.component.html","../../../../libs/mintplayer-ng-bootstrap/badge/mintplayer-ng-bootstrap-badge.ts"],"sourcesContent":["import { ChangeDetectionStrategy, Component, computed, input } from '@angular/core';\nimport { useBootstrap } from '@mintplayer/ng-bootstrap/machine';\nimport { bootstrapBadge } from '@mintplayer/ui-core/bootstrap/badge';\nimport { Color } from '@mintplayer/ng-bootstrap';\n\n// `.badge` paints white text, and `bg-{color}` sets only the background: white\n// on warning was 1.63:1. Bootstrap's `text-bg-{color}` pairs each theme colour\n// with the text colour color-contrast() picks (black on warning, info and light).\n// It exists for the eight theme colours only; the other three pair a background\n// with a text utility, the way `<bs-card [color]>` colours them.\nconst pairedColorClasses: Partial<Record<Color, string>> = {\n [Color.body]: 'bg-body text-body',\n [Color.white]: 'bg-white text-black',\n [Color.transparent]: 'bg-transparent text-reset',\n};\n\n@Component({\n selector: 'bs-badge',\n templateUrl: './badge.component.html',\n styleUrls: ['./badge.component.scss'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class BsBadgeComponent {\n constructor() {\n // #452: the badge partial ships with this component, scoped to the elements it stamps (data-mps=\"badge\").\n useBootstrap(bootstrapBadge);\n }\n\n colors = Color;\n\n type = input<Color>(Color.primary);\n /**\n * What the number counts ('unread messages'): a bare '3' badge is\n * meaningless out of visual context. Appended visually hidden.\n */\n unit = input<string | null>(null);\n /** Purely decorative badges leave the accessibility tree entirely. */\n decorative = input(false);\n\n colorClass = computed(() => pairedColorClasses[this.type()] ?? `text-bg-${this.colors[this.type()]}`);\n}\n","<span data-mps=\"badge\" class=\"badge\" [class]=\"colorClass()\" [attr.aria-hidden]=\"decorative() ? 'true' : null\">\n <ng-content></ng-content>\n @if (unit(); as u) {\n <span data-mps=\"badge\" class=\"visually-hidden-unit\">&ngsp;{{ u }}</span>\n }\n</span>\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;AAKA;AACA;AACA;AACA;AACA;AACA,MAAM,kBAAkB,GAAmC;AACzD,IAAA,CAAC,KAAK,CAAC,IAAI,GAAG,mBAAmB;AACjC,IAAA,CAAC,KAAK,CAAC,KAAK,GAAG,qBAAqB;AACpC,IAAA,CAAC,KAAK,CAAC,WAAW,GAAG,2BAA2B;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-bootstrap/machine';
|
|
4
|
+
import { bootstrapBreadcrumb } from '@mintplayer/ui-core/bootstrap/breadcrumb';
|
|
3
5
|
|
|
4
6
|
class BsBreadcrumbComponent {
|
|
5
7
|
constructor() {
|
|
6
8
|
/** Accessible name for the breadcrumb landmark. Override for localisation. */
|
|
7
9
|
this.ariaLabel = input('breadcrumb', /* @ts-ignore */
|
|
8
10
|
...(ngDevMode ? [{ debugName: "ariaLabel" }] : /* istanbul ignore next */ []));
|
|
11
|
+
// #452: the breadcrumb partial ships with this component, scoped to the elements it stamps (data-mps="breadcrumb").
|
|
12
|
+
useBootstrap(bootstrapBreadcrumb);
|
|
9
13
|
}
|
|
10
14
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsBreadcrumbComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
11
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.0.8", type: BsBreadcrumbComponent, isStandalone: true, selector: "bs-breadcrumb", inputs: { ariaLabel: { classPropertyName: "ariaLabel", publicName: "ariaLabel", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: "<nav [attr.aria-label]=\"ariaLabel()\">\n <ol class=\"breadcrumb\">\n <ng-content></ng-content>\n </ol>\n</nav>", styles: ["
|
|
15
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.0.8", type: BsBreadcrumbComponent, isStandalone: true, selector: "bs-breadcrumb", inputs: { ariaLabel: { classPropertyName: "ariaLabel", publicName: "ariaLabel", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: "<nav data-mps=\"breadcrumb\" [attr.aria-label]=\"ariaLabel()\">\n <ol data-mps=\"breadcrumb\" class=\"breadcrumb\">\n <ng-content></ng-content>\n </ol>\n</nav>", styles: [""], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
12
16
|
}
|
|
13
17
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsBreadcrumbComponent, decorators: [{
|
|
14
18
|
type: Component,
|
|
15
|
-
args: [{ selector: 'bs-breadcrumb', changeDetection: ChangeDetectionStrategy.OnPush, template: "<nav [attr.aria-label]=\"ariaLabel()\">\n <ol class=\"breadcrumb\">\n <ng-content></ng-content>\n </ol>\n</nav>"
|
|
16
|
-
}], propDecorators: { ariaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaLabel", required: false }] }] } });
|
|
19
|
+
args: [{ selector: 'bs-breadcrumb', changeDetection: ChangeDetectionStrategy.OnPush, template: "<nav data-mps=\"breadcrumb\" [attr.aria-label]=\"ariaLabel()\">\n <ol data-mps=\"breadcrumb\" class=\"breadcrumb\">\n <ng-content></ng-content>\n </ol>\n</nav>" }]
|
|
20
|
+
}], ctorParameters: () => [], propDecorators: { ariaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaLabel", required: false }] }] } });
|
|
17
21
|
|
|
18
22
|
class BsBreadcrumbItemComponent {
|
|
19
23
|
constructor() {
|
|
20
24
|
this.active = input(false, /* @ts-ignore */
|
|
21
25
|
...(ngDevMode ? [{ debugName: "active" }] : /* istanbul ignore next */ []));
|
|
26
|
+
// #452: the breadcrumb partial ships with this component, scoped to the elements it stamps (data-mps="breadcrumb").
|
|
27
|
+
useBootstrap(bootstrapBreadcrumb);
|
|
22
28
|
}
|
|
23
29
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsBreadcrumbItemComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
24
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.0.8", type: BsBreadcrumbItemComponent, isStandalone: true, selector: "bs-breadcrumb-item", inputs: { active: { classPropertyName: "active", publicName: "active", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "role": "listitem" }, properties: { "class.breadcrumb-item": "true", "class.active": "active()", "attr.aria-current": "active() ? \"page\" : null" } }, ngImport: i0, template: "<ng-content></ng-content>\n", styles: [""], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
30
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.0.8", type: BsBreadcrumbItemComponent, isStandalone: true, selector: "bs-breadcrumb-item", inputs: { active: { classPropertyName: "active", publicName: "active", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "role": "listitem" }, properties: { "attr.data-mps": "\"breadcrumb\"", "class.breadcrumb-item": "true", "class.active": "active()", "attr.aria-current": "active() ? \"page\" : null" } }, ngImport: i0, template: "<ng-content></ng-content>\n", styles: [""], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
25
31
|
}
|
|
26
32
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsBreadcrumbItemComponent, decorators: [{
|
|
27
33
|
type: Component,
|
|
28
34
|
args: [{ selector: 'bs-breadcrumb-item', changeDetection: ChangeDetectionStrategy.OnPush, host: {
|
|
35
|
+
'[attr.data-mps]': '"breadcrumb"',
|
|
29
36
|
'[class.breadcrumb-item]': 'true',
|
|
30
37
|
'[class.active]': 'active()',
|
|
31
38
|
'role': 'listitem',
|
|
32
39
|
'[attr.aria-current]': 'active() ? "page" : null',
|
|
33
40
|
}, template: "<ng-content></ng-content>\n" }]
|
|
34
|
-
}], propDecorators: { active: [{ type: i0.Input, args: [{ isSignal: true, alias: "active", required: false }] }] } });
|
|
41
|
+
}], ctorParameters: () => [], propDecorators: { active: [{ type: i0.Input, args: [{ isSignal: true, alias: "active", required: false }] }] } });
|
|
35
42
|
|
|
36
43
|
/**
|
|
37
44
|
* Generated bundle index. Do not edit.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mintplayer-ng-bootstrap-breadcrumb.mjs","sources":["../../../../libs/mintplayer-ng-bootstrap/breadcrumb/src/breadcrumb/breadcrumb.component.ts","../../../../libs/mintplayer-ng-bootstrap/breadcrumb/src/breadcrumb/breadcrumb.component.html","../../../../libs/mintplayer-ng-bootstrap/breadcrumb/src/breadcrumb-item/breadcrumb-item.component.ts","../../../../libs/mintplayer-ng-bootstrap/breadcrumb/src/breadcrumb-item/breadcrumb-item.component.html","../../../../libs/mintplayer-ng-bootstrap/breadcrumb/mintplayer-ng-bootstrap-breadcrumb.ts"],"sourcesContent":["import { Component, ChangeDetectionStrategy, input } from '@angular/core';\n\n@Component({\n selector: 'bs-breadcrumb',\n templateUrl: './breadcrumb.component.html',\n styleUrls: ['./breadcrumb.component.scss'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class BsBreadcrumbComponent {\n /** Accessible name for the breadcrumb landmark. Override for localisation. */\n ariaLabel = input<string>('breadcrumb');\n}\n","<nav [attr.aria-label]=\"ariaLabel()\">\n <ol class=\"breadcrumb\">\n <ng-content></ng-content>\n </ol>\n</nav>","import { Component, ChangeDetectionStrategy, input } from '@angular/core';\n\n@Component({\n selector: 'bs-breadcrumb-item',\n templateUrl: './breadcrumb-item.component.html',\n styleUrls: ['./breadcrumb-item.component.scss'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n '[class.breadcrumb-item]': 'true',\n '[class.active]': 'active()',\n 'role': 'listitem',\n '[attr.aria-current]': 'active() ? \"page\" : null',\n },\n})\nexport class BsBreadcrumbItemComponent {\n readonly active = input(false);\n}\n","<ng-content></ng-content>\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"mintplayer-ng-bootstrap-breadcrumb.mjs","sources":["../../../../libs/mintplayer-ng-bootstrap/breadcrumb/src/breadcrumb/breadcrumb.component.ts","../../../../libs/mintplayer-ng-bootstrap/breadcrumb/src/breadcrumb/breadcrumb.component.html","../../../../libs/mintplayer-ng-bootstrap/breadcrumb/src/breadcrumb-item/breadcrumb-item.component.ts","../../../../libs/mintplayer-ng-bootstrap/breadcrumb/src/breadcrumb-item/breadcrumb-item.component.html","../../../../libs/mintplayer-ng-bootstrap/breadcrumb/mintplayer-ng-bootstrap-breadcrumb.ts"],"sourcesContent":["import { Component, ChangeDetectionStrategy, input } from '@angular/core';\nimport { useBootstrap } from '@mintplayer/ng-bootstrap/machine';\nimport { bootstrapBreadcrumb } from '@mintplayer/ui-core/bootstrap/breadcrumb';\n\n@Component({\n selector: 'bs-breadcrumb',\n templateUrl: './breadcrumb.component.html',\n styleUrls: ['./breadcrumb.component.scss'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class BsBreadcrumbComponent {\n constructor() {\n // #452: the breadcrumb partial ships with this component, scoped to the elements it stamps (data-mps=\"breadcrumb\").\n useBootstrap(bootstrapBreadcrumb);\n }\n\n /** Accessible name for the breadcrumb landmark. Override for localisation. */\n ariaLabel = input<string>('breadcrumb');\n}\n","<nav data-mps=\"breadcrumb\" [attr.aria-label]=\"ariaLabel()\">\n <ol data-mps=\"breadcrumb\" class=\"breadcrumb\">\n <ng-content></ng-content>\n </ol>\n</nav>","import { Component, ChangeDetectionStrategy, input } from '@angular/core';\nimport { useBootstrap } from '@mintplayer/ng-bootstrap/machine';\nimport { bootstrapBreadcrumb } from '@mintplayer/ui-core/bootstrap/breadcrumb';\n\n@Component({\n selector: 'bs-breadcrumb-item',\n templateUrl: './breadcrumb-item.component.html',\n styleUrls: ['./breadcrumb-item.component.scss'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n '[attr.data-mps]': '\"breadcrumb\"',\n '[class.breadcrumb-item]': 'true',\n '[class.active]': 'active()',\n 'role': 'listitem',\n '[attr.aria-current]': 'active() ? \"page\" : null',\n },\n})\nexport class BsBreadcrumbItemComponent {\n constructor() {\n // #452: the breadcrumb partial ships with this component, scoped to the elements it stamps (data-mps=\"breadcrumb\").\n useBootstrap(bootstrapBreadcrumb);\n }\n\n readonly active = input(false);\n}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CAAA;;2FDgBa,yBAAyB,EAAA,UAAA,EAAA,CAAA;kBAbrC,SAAS;AACE,YAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,oBAAoB,EAAA,eAAA,EAGb,uBAAuB,CAAC,MAAM,EAAA,IAAA,EACzC;AACJ,wBAAA,iBAAiB,EAAE,cAAc;AACjC,wBAAA,yBAAyB,EAAE,MAAM;AACjC,wBAAA,gBAAgB,EAAE,UAAU;AAC5B,wBAAA,MAAM,EAAE,UAAU;AAClB,wBAAA,qBAAqB,EAAE,0BAA0B;AAClD,qBAAA,EAAA,QAAA,EAAA,6BAAA,EAAA;;;AEfH;;AAEG;;;;"}
|
|
@@ -1,18 +1,22 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
2
|
import { input, ChangeDetectionStrategy, Component } from '@angular/core';
|
|
3
|
+
import { useBootstrap } from '@mintplayer/ng-bootstrap/machine';
|
|
4
|
+
import { bootstrapButtonGroup } from '@mintplayer/ui-core/bootstrap/button-group';
|
|
3
5
|
|
|
4
6
|
class BsButtonGroupComponent {
|
|
5
7
|
constructor() {
|
|
6
8
|
this.ariaLabel = input(null, /* @ts-ignore */
|
|
7
9
|
...(ngDevMode ? [{ debugName: "ariaLabel" }] : /* istanbul ignore next */ []));
|
|
10
|
+
// #452: the button-group partial ships with this component, scoped to the elements it stamps (data-mps="button-group").
|
|
11
|
+
useBootstrap(bootstrapButtonGroup);
|
|
8
12
|
}
|
|
9
13
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsButtonGroupComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
10
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.0.8", type: BsButtonGroupComponent, isStandalone: true, selector: "bs-button-group", inputs: { ariaLabel: { classPropertyName: "ariaLabel", publicName: "ariaLabel", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: "<div class=\"btn-group\" role=\"group\" [attr.aria-label]=\"ariaLabel()\">\n <ng-content></ng-content>\n</div>\n", styles: ["
|
|
14
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.0.8", type: BsButtonGroupComponent, isStandalone: true, selector: "bs-button-group", inputs: { ariaLabel: { classPropertyName: "ariaLabel", publicName: "ariaLabel", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: "<div data-mps=\"button-group\" class=\"btn-group\" role=\"group\" [attr.aria-label]=\"ariaLabel()\">\n <ng-content></ng-content>\n</div>\n", styles: [""], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
11
15
|
}
|
|
12
16
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsButtonGroupComponent, decorators: [{
|
|
13
17
|
type: Component,
|
|
14
|
-
args: [{ selector: 'bs-button-group', changeDetection: ChangeDetectionStrategy.OnPush, template: "<div class=\"btn-group\" role=\"group\" [attr.aria-label]=\"ariaLabel()\">\n <ng-content></ng-content>\n</div>\n"
|
|
15
|
-
}], propDecorators: { ariaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaLabel", required: false }] }] } });
|
|
18
|
+
args: [{ selector: 'bs-button-group', changeDetection: ChangeDetectionStrategy.OnPush, template: "<div data-mps=\"button-group\" class=\"btn-group\" role=\"group\" [attr.aria-label]=\"ariaLabel()\">\n <ng-content></ng-content>\n</div>\n" }]
|
|
19
|
+
}], ctorParameters: () => [], propDecorators: { ariaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaLabel", required: false }] }] } });
|
|
16
20
|
|
|
17
21
|
/**
|
|
18
22
|
* Generated bundle index. Do not edit.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mintplayer-ng-bootstrap-button-group.mjs","sources":["../../../../libs/mintplayer-ng-bootstrap/button-group/src/button-group/button-group.component.ts","../../../../libs/mintplayer-ng-bootstrap/button-group/src/button-group/button-group.component.html","../../../../libs/mintplayer-ng-bootstrap/button-group/mintplayer-ng-bootstrap-button-group.ts"],"sourcesContent":["import { Component, ChangeDetectionStrategy, input } from '@angular/core';\n\n@Component({\n selector: 'bs-button-group',\n templateUrl: './button-group.component.html',\n styleUrls: ['./button-group.component.scss'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class BsButtonGroupComponent {\n ariaLabel = input<string | null>(null);\n}\n","<div class=\"btn-group\" role=\"group\" [attr.aria-label]=\"ariaLabel()\">\n <ng-content></ng-content>\n</div>\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"mintplayer-ng-bootstrap-button-group.mjs","sources":["../../../../libs/mintplayer-ng-bootstrap/button-group/src/button-group/button-group.component.ts","../../../../libs/mintplayer-ng-bootstrap/button-group/src/button-group/button-group.component.html","../../../../libs/mintplayer-ng-bootstrap/button-group/mintplayer-ng-bootstrap-button-group.ts"],"sourcesContent":["import { Component, ChangeDetectionStrategy, input } from '@angular/core';\nimport { useBootstrap } from '@mintplayer/ng-bootstrap/machine';\nimport { bootstrapButtonGroup } from '@mintplayer/ui-core/bootstrap/button-group';\n\n@Component({\n selector: 'bs-button-group',\n templateUrl: './button-group.component.html',\n styleUrls: ['./button-group.component.scss'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class BsButtonGroupComponent {\n constructor() {\n // #452: the button-group partial ships with this component, scoped to the elements it stamps (data-mps=\"button-group\").\n useBootstrap(bootstrapButtonGroup);\n }\n\n ariaLabel = input<string | null>(null);\n}\n","<div data-mps=\"button-group\" class=\"btn-group\" role=\"group\" [attr.aria-label]=\"ariaLabel()\">\n <ng-content></ng-content>\n</div>\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;MAUa,sBAAsB,CAAA;AACjC,IAAA,WAAA,GAAA;QAKA,IAAA,CAAA,SAAS,GAAG,KAAK,CAAgB,IAAI;sFAAC;;QAHpC,YAAY,CAAC,oBAAoB,CAAC;IACpC;8GAJW,sBAAsB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;AAAtB,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,IAAA,EAAA,sBAAsB,2NCVnC,+IAGA,EAAA,MAAA,EAAA,CAAA,EAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,CAAA,CAAA;;2FDOa,sBAAsB,EAAA,UAAA,EAAA,CAAA;kBANlC,SAAS;+BACE,iBAAiB,EAAA,eAAA,EAGV,uBAAuB,CAAC,MAAM,EAAA,QAAA,EAAA,+IAAA,EAAA;;;AERjD;;AAEG;;;;"}
|