@mintplayer/ng-bootstrap 22.32.0 → 22.34.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/fesm2022/mintplayer-ng-bootstrap-a11y.mjs +3 -166
- package/fesm2022/mintplayer-ng-bootstrap-a11y.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-accordion.mjs +71 -140
- package/fesm2022/mintplayer-ng-bootstrap-accordion.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-alert.mjs +33 -63
- package/fesm2022/mintplayer-ng-bootstrap-alert.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-badge.mjs +23 -30
- package/fesm2022/mintplayer-ng-bootstrap-badge.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-breadcrumb.mjs +37 -22
- package/fesm2022/mintplayer-ng-bootstrap-breadcrumb.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-button-group.mjs +25 -9
- package/fesm2022/mintplayer-ng-bootstrap-button-group.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-calendar.mjs +5 -9
- package/fesm2022/mintplayer-ng-bootstrap-calendar.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-card.mjs +157 -219
- package/fesm2022/mintplayer-ng-bootstrap-card.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-carousel.mjs +7 -9
- package/fesm2022/mintplayer-ng-bootstrap-carousel.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-charts-hierarchy.mjs +12 -14
- package/fesm2022/mintplayer-ng-bootstrap-charts-hierarchy.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-charts-sparkline.mjs +31 -40
- package/fesm2022/mintplayer-ng-bootstrap-charts-sparkline.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-charts-trend.mjs +8 -8
- package/fesm2022/mintplayer-ng-bootstrap-charts-trend.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-checkbox.mjs +313 -212
- package/fesm2022/mintplayer-ng-bootstrap-checkbox.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-close.mjs +25 -15
- package/fesm2022/mintplayer-ng-bootstrap-close.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-code-snippet.mjs +7 -7
- package/fesm2022/mintplayer-ng-bootstrap-code-snippet.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-color-picker.mjs +87 -676
- package/fesm2022/mintplayer-ng-bootstrap-color-picker.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-context-menu.mjs +52 -119
- package/fesm2022/mintplayer-ng-bootstrap-context-menu.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-datatable.mjs +15 -27
- package/fesm2022/mintplayer-ng-bootstrap-datatable.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-datepicker.mjs +6 -10
- package/fesm2022/mintplayer-ng-bootstrap-datepicker.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-datetime-picker.mjs +7 -9
- package/fesm2022/mintplayer-ng-bootstrap-datetime-picker.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-dock.mjs +5 -7
- package/fesm2022/mintplayer-ng-bootstrap-dock.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-dropdown.mjs +201 -197
- package/fesm2022/mintplayer-ng-bootstrap-dropdown.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-file-manager.mjs +9 -19
- package/fesm2022/mintplayer-ng-bootstrap-file-manager.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-file-upload.mjs +64 -123
- package/fesm2022/mintplayer-ng-bootstrap-file-upload.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-floating-labels.mjs +18 -32
- package/fesm2022/mintplayer-ng-bootstrap-floating-labels.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-form.mjs +52 -38
- package/fesm2022/mintplayer-ng-bootstrap-form.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-grid.mjs +64 -119
- package/fesm2022/mintplayer-ng-bootstrap-grid.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-input-group.mjs +23 -38
- package/fesm2022/mintplayer-ng-bootstrap-input-group.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-list-group.mjs +44 -44
- package/fesm2022/mintplayer-ng-bootstrap-list-group.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-machine.mjs +201 -18
- package/fesm2022/mintplayer-ng-bootstrap-machine.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-marquee.mjs +27 -12
- package/fesm2022/mintplayer-ng-bootstrap-marquee.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-modal.mjs +61 -261
- package/fesm2022/mintplayer-ng-bootstrap-modal.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-multi-range.mjs +13 -15
- package/fesm2022/mintplayer-ng-bootstrap-multi-range.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-nav.mjs +3 -4
- package/fesm2022/mintplayer-ng-bootstrap-nav.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-navbar-toggler.mjs +30 -18
- package/fesm2022/mintplayer-ng-bootstrap-navbar-toggler.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-navbar.mjs +20 -90
- package/fesm2022/mintplayer-ng-bootstrap-navbar.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-offcanvas.mjs +52 -401
- package/fesm2022/mintplayer-ng-bootstrap-offcanvas.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-otp-input.mjs +7 -7
- package/fesm2022/mintplayer-ng-bootstrap-otp-input.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-pagination.mjs +27 -50
- package/fesm2022/mintplayer-ng-bootstrap-pagination.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-parallax.mjs +21 -12
- package/fesm2022/mintplayer-ng-bootstrap-parallax.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-phone-input.mjs +8 -10
- package/fesm2022/mintplayer-ng-bootstrap-phone-input.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-placeholder.mjs +26 -54
- package/fesm2022/mintplayer-ng-bootstrap-placeholder.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-playlist-toggler.mjs +29 -15
- package/fesm2022/mintplayer-ng-bootstrap-playlist-toggler.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-popover.mjs +56 -267
- package/fesm2022/mintplayer-ng-bootstrap-popover.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-priority-nav.mjs +60 -335
- package/fesm2022/mintplayer-ng-bootstrap-priority-nav.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-progress-bar.mjs +47 -63
- package/fesm2022/mintplayer-ng-bootstrap-progress-bar.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-query-builder.mjs +8 -16
- package/fesm2022/mintplayer-ng-bootstrap-query-builder.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-radio.mjs +232 -169
- package/fesm2022/mintplayer-ng-bootstrap-radio.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-range.mjs +85 -47
- package/fesm2022/mintplayer-ng-bootstrap-range.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-rating.mjs +80 -137
- package/fesm2022/mintplayer-ng-bootstrap-rating.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-resizable.mjs +29 -326
- package/fesm2022/mintplayer-ng-bootstrap-resizable.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-ribbon.mjs +49 -65
- package/fesm2022/mintplayer-ng-bootstrap-ribbon.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-scheduler.mjs +16 -24
- package/fesm2022/mintplayer-ng-bootstrap-scheduler.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-scrollspy.mjs +48 -181
- package/fesm2022/mintplayer-ng-bootstrap-scrollspy.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-select.mjs +9 -9
- package/fesm2022/mintplayer-ng-bootstrap-select.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-shell.mjs +52 -108
- package/fesm2022/mintplayer-ng-bootstrap-shell.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-signature-pad.mjs +7 -9
- package/fesm2022/mintplayer-ng-bootstrap-signature-pad.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-splitter.mjs +7 -7
- package/fesm2022/mintplayer-ng-bootstrap-splitter.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-sticky-footer.mjs +35 -40
- package/fesm2022/mintplayer-ng-bootstrap-sticky-footer.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-tab-control.mjs +61 -101
- package/fesm2022/mintplayer-ng-bootstrap-tab-control.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-table.mjs +29 -23
- package/fesm2022/mintplayer-ng-bootstrap-table.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-theming.mjs +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-theming.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-tile-manager.mjs +67 -306
- package/fesm2022/mintplayer-ng-bootstrap-tile-manager.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-timeline.mjs +7 -9
- package/fesm2022/mintplayer-ng-bootstrap-timeline.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-timepicker.mjs +13 -17
- package/fesm2022/mintplayer-ng-bootstrap-timepicker.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-toast.mjs +103 -152
- package/fesm2022/mintplayer-ng-bootstrap-toast.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-tooltip.mjs +50 -157
- package/fesm2022/mintplayer-ng-bootstrap-tooltip.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-tree-select.mjs +10 -12
- package/fesm2022/mintplayer-ng-bootstrap-tree-select.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-treeview.mjs +11 -13
- package/fesm2022/mintplayer-ng-bootstrap-treeview.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-typeahead.mjs +159 -234
- package/fesm2022/mintplayer-ng-bootstrap-typeahead.mjs.map +1 -1
- package/package.json +2 -22
- package/types/mintplayer-ng-bootstrap-a11y.d.ts +2 -81
- package/types/mintplayer-ng-bootstrap-accordion.d.ts +51 -86
- package/types/mintplayer-ng-bootstrap-alert.d.ts +20 -28
- package/types/mintplayer-ng-bootstrap-badge.d.ts +12 -12
- package/types/mintplayer-ng-bootstrap-breadcrumb.d.ts +29 -8
- package/types/mintplayer-ng-bootstrap-button-group.d.ts +14 -4
- package/types/mintplayer-ng-bootstrap-calendar.d.ts +1 -5
- package/types/mintplayer-ng-bootstrap-card.d.ts +93 -78
- package/types/mintplayer-ng-bootstrap-carousel.d.ts +4 -6
- package/types/mintplayer-ng-bootstrap-charts-hierarchy.d.ts +4 -6
- package/types/mintplayer-ng-bootstrap-charts-sparkline.d.ts +24 -17
- package/types/mintplayer-ng-bootstrap-charts-trend.d.ts +3 -3
- package/types/mintplayer-ng-bootstrap-checkbox.d.ts +143 -91
- package/types/mintplayer-ng-bootstrap-close.d.ts +16 -5
- package/types/mintplayer-ng-bootstrap-code-snippet.d.ts +3 -3
- package/types/mintplayer-ng-bootstrap-color-picker.d.ts +42 -226
- package/types/mintplayer-ng-bootstrap-context-menu.d.ts +35 -17
- package/types/mintplayer-ng-bootstrap-datatable.d.ts +23 -35
- package/types/mintplayer-ng-bootstrap-datepicker.d.ts +2 -6
- package/types/mintplayer-ng-bootstrap-datetime-picker.d.ts +2 -4
- package/types/mintplayer-ng-bootstrap-dock.d.ts +6 -8
- package/types/mintplayer-ng-bootstrap-dropdown.d.ts +122 -54
- package/types/mintplayer-ng-bootstrap-file-manager.d.ts +10 -20
- package/types/mintplayer-ng-bootstrap-file-upload.d.ts +62 -44
- package/types/mintplayer-ng-bootstrap-floating-labels.d.ts +12 -15
- package/types/mintplayer-ng-bootstrap-form.d.ts +32 -11
- package/types/mintplayer-ng-bootstrap-grid.d.ts +38 -31
- package/types/mintplayer-ng-bootstrap-input-group.d.ts +11 -22
- package/types/mintplayer-ng-bootstrap-list-group.d.ts +28 -14
- package/types/mintplayer-ng-bootstrap-machine.d.ts +101 -4
- package/types/mintplayer-ng-bootstrap-marquee.d.ts +18 -5
- package/types/mintplayer-ng-bootstrap-modal.d.ts +43 -86
- package/types/mintplayer-ng-bootstrap-multi-range.d.ts +4 -6
- package/types/mintplayer-ng-bootstrap-nav.d.ts +3 -3
- package/types/mintplayer-ng-bootstrap-navbar-toggler.d.ts +21 -6
- package/types/mintplayer-ng-bootstrap-navbar.d.ts +15 -42
- package/types/mintplayer-ng-bootstrap-offcanvas.d.ts +35 -112
- package/types/mintplayer-ng-bootstrap-otp-input.d.ts +4 -3
- package/types/mintplayer-ng-bootstrap-pagination.d.ts +22 -35
- package/types/mintplayer-ng-bootstrap-parallax.d.ts +14 -4
- package/types/mintplayer-ng-bootstrap-phone-input.d.ts +5 -6
- package/types/mintplayer-ng-bootstrap-placeholder.d.ts +17 -16
- package/types/mintplayer-ng-bootstrap-playlist-toggler.d.ts +22 -6
- package/types/mintplayer-ng-bootstrap-popover.d.ts +35 -61
- package/types/mintplayer-ng-bootstrap-priority-nav.d.ts +80 -68
- package/types/mintplayer-ng-bootstrap-progress-bar.d.ts +34 -19
- package/types/mintplayer-ng-bootstrap-query-builder.d.ts +12 -20
- package/types/mintplayer-ng-bootstrap-radio.d.ts +112 -84
- package/types/mintplayer-ng-bootstrap-range.d.ts +35 -13
- package/types/mintplayer-ng-bootstrap-rating.d.ts +33 -42
- package/types/mintplayer-ng-bootstrap-resizable.d.ts +24 -114
- package/types/mintplayer-ng-bootstrap-ribbon.d.ts +21 -37
- package/types/mintplayer-ng-bootstrap-scheduler.d.ts +19 -27
- package/types/mintplayer-ng-bootstrap-scrollspy.d.ts +26 -51
- package/types/mintplayer-ng-bootstrap-select.d.ts +8 -7
- package/types/mintplayer-ng-bootstrap-shell.d.ts +40 -63
- package/types/mintplayer-ng-bootstrap-signature-pad.d.ts +4 -6
- package/types/mintplayer-ng-bootstrap-splitter.d.ts +3 -3
- package/types/mintplayer-ng-bootstrap-sticky-footer.d.ts +23 -19
- package/types/mintplayer-ng-bootstrap-tab-control.d.ts +61 -57
- package/types/mintplayer-ng-bootstrap-table.d.ts +21 -12
- package/types/mintplayer-ng-bootstrap-tile-manager.d.ts +94 -154
- package/types/mintplayer-ng-bootstrap-timeline.d.ts +23 -25
- package/types/mintplayer-ng-bootstrap-timepicker.d.ts +3 -7
- package/types/mintplayer-ng-bootstrap-toast.d.ts +92 -55
- package/types/mintplayer-ng-bootstrap-tooltip.d.ts +34 -33
- package/types/mintplayer-ng-bootstrap-tree-select.d.ts +14 -16
- package/types/mintplayer-ng-bootstrap-treeview.d.ts +12 -13
- package/types/mintplayer-ng-bootstrap-typeahead.d.ts +109 -133
- package/calendar-month/package.json +0 -4
- package/dropdown-divider/package.json +0 -4
- package/dropdown-menu/package.json +0 -4
- package/fesm2022/mintplayer-ng-bootstrap-calendar-month.mjs +0 -136
- package/fesm2022/mintplayer-ng-bootstrap-calendar-month.mjs.map +0 -1
- package/fesm2022/mintplayer-ng-bootstrap-dropdown-divider.mjs +0 -30
- package/fesm2022/mintplayer-ng-bootstrap-dropdown-divider.mjs.map +0 -1
- package/fesm2022/mintplayer-ng-bootstrap-dropdown-menu.mjs +0 -169
- package/fesm2022/mintplayer-ng-bootstrap-dropdown-menu.mjs.map +0 -1
- package/fesm2022/mintplayer-ng-bootstrap-has-overlay.mjs +0 -32
- package/fesm2022/mintplayer-ng-bootstrap-has-overlay.mjs.map +0 -1
- package/fesm2022/mintplayer-ng-bootstrap-no-noscript.mjs +0 -31
- package/fesm2022/mintplayer-ng-bootstrap-no-noscript.mjs.map +0 -1
- package/has-overlay/package.json +0 -4
- package/no-noscript/package.json +0 -4
- package/types/mintplayer-ng-bootstrap-calendar-month.d.ts +0 -54
- package/types/mintplayer-ng-bootstrap-dropdown-divider.d.ts +0 -9
- package/types/mintplayer-ng-bootstrap-dropdown-menu.d.ts +0 -94
- package/types/mintplayer-ng-bootstrap-has-overlay.d.ts +0 -22
- package/types/mintplayer-ng-bootstrap-no-noscript.d.ts +0 -11
|
@@ -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 { 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,CAAA;AAH1C,IAAA,WAAA,GAAA;AAIW,QAAA,IAAA,CAAA,QAAQ,GAA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C;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
|
+
{"version":3,"file":"mintplayer-ng-bootstrap-accordion.mjs","sources":["../../../../libs/mintplayer-ng-bootstrap/accordion/src/generated/accordion.component.generated.ts","../../../../libs/mintplayer-ng-bootstrap/accordion/src/generated/accordion.view.generated.html","../../../../libs/mintplayer-ng-bootstrap/accordion/src/generated/accordion-tab.component.generated.ts","../../../../libs/mintplayer-ng-bootstrap/accordion/src/generated/accordion-tab.view.generated.html","../../../../libs/mintplayer-ng-bootstrap/accordion/src/generated/index.ts","../../../../libs/mintplayer-ng-bootstrap/accordion/src/index.ts","../../../../libs/mintplayer-ng-bootstrap/accordion/mintplayer-ng-bootstrap-accordion.ts"],"sourcesContent":["// GENERATED from the accordion manifest (accordion) by @mintplayer/nx-component-compiler. Do not edit.\nimport { ChangeDetectionStrategy, Component, ElementRef, booleanAttribute, inject, input, output } from '@angular/core';\nimport { provideCoreContext, useCore, useScopedStyles } from '@mintplayer/ng-bootstrap/machine';\nimport { ACCORDION, accordionCore, type AccordionInputs, type AccordionMethods, accordionScopedStyles, type AccordionTabToggle } from '@mintplayer/ui-core/accordion';\nimport { bootstrapAccordion } from '@mintplayer/ui-core/bootstrap/accordion';\n\n/**\n * A Bootstrap accordion on native `<details name>` (#458): every tab opens and closes with\n * JavaScript off, and single-open is the platform's exclusivity. Declare `accordion-tab`s as\n * content. Up/Down/Home/End move between headers.\n */\n@Component({\n selector: 'bs-accordion',\n templateUrl: './accordion.view.generated.html',\n imports: [],\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: [provideCoreContext(ACCORDION, BsAccordionComponent)],\n})\nexport class BsAccordionComponent {\n /** The host element. */\n readonly elementRef = inject<ElementRef<HTMLElement>>(ElementRef);\n\n /** Allow several tabs open at once. */\n readonly multi = input<AccordionInputs['multi'], unknown>(false, { transform: booleanAttribute });\n /** Paint the open header with the Bootstrap active background. */\n readonly highlightActiveTab = input<AccordionInputs['highlightActiveTab'], unknown>(false, { transform: booleanAttribute });\n /** A tab of this accordion (never a nested one's) opened or closed. */\n readonly tabToggle = output<AccordionTabToggle>();\n\n readonly #core = useCore(accordionCore, { inputs: () => ({ multi: this.multi(), highlightActiveTab: this.highlightActiveTab() }), idPrefix: 'bs-accordion', outputs: { tabToggle: this.tabToggle }, hostBag: (props) => ({ ...props.root, 'data-mps': 'accordion' }) });\n /** What this component hands its content. */\n readonly provided = this.#core.provided;\n /** The template's props. */\n protected readonly props = this.#core.props;\n\n constructor() {\n useScopedStyles(bootstrapAccordion.key, bootstrapAccordion.css, { order: bootstrapAccordion.order }); useScopedStyles('accordion', accordionScopedStyles);\n }\n\n /** Close every open tab, and every accordion nested inside them. */\n closeAll(...args: Parameters<AccordionMethods['closeAll']>): ReturnType<AccordionMethods['closeAll']> {\n return this.#core.call('closeAll', args) as ReturnType<AccordionMethods['closeAll']>;\n }\n}\n","<!-- GENERATED from libs/mintplayer-ui-core/accordion/src/templates/accordion.view.vue by @mintplayer/nx-component-compiler. Do not edit. -->\n<ng-content />\n","// GENERATED from the accordion manifest (accordion-tab) by @mintplayer/nx-component-compiler. Do not edit.\nimport { ChangeDetectionStrategy, Component, Directive, ElementRef, TemplateRef, booleanAttribute, computed, contentChild, inject, input, model } from '@angular/core';\nimport { NgTemplateOutlet } from '@angular/common';\nimport { MpPropsDirective, useCore, useScopedStyles } from '@mintplayer/ng-bootstrap/machine';\nimport { accordionScopedStyles, accordionTabCore, type AccordionTabInputs, type AccordionTabMethods } from '@mintplayer/ui-core/accordion';\nimport { bootstrapAccordion } from '@mintplayer/ui-core/bootstrap/accordion';\n\n/** The `header` slot of `<bs-accordion-tab>`: `<ng-template bsAccordionTabHeader>` or `*bsAccordionTabHeader`. */\n@Directive({ selector: '[bsAccordionTabHeader]' })\nexport class BsAccordionTabHeaderDirective {\n readonly templateRef = inject<TemplateRef<unknown>>(TemplateRef);\n}\n\n/**\n * One tab of an accordion: a `<details>` whose `header` slot is the summary and whose content is\n * the body. `open` is two-way.\n */\n@Component({\n selector: 'bs-accordion-tab',\n templateUrl: './accordion-tab.view.generated.html',\n imports: [MpPropsDirective, NgTemplateOutlet],\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class BsAccordionTabComponent {\n /** The host element. */\n readonly elementRef = inject<ElementRef<HTMLElement>>(ElementRef);\n\n readonly open = model<AccordionTabInputs['open']>(false);\n readonly disabled = input<AccordionTabInputs['disabled'], unknown>(false, { transform: booleanAttribute });\n\n private readonly headerSlot = contentChild(BsAccordionTabHeaderDirective);\n /** The template's named slots. */\n protected readonly slots = computed(() => ({ header: this.headerSlot()?.templateRef }));\n readonly #core = useCore(accordionTabCore, { inputs: () => ({ open: this.open(), disabled: this.disabled() }), idPrefix: 'bs-accordion-tab', hostScope: 'accordion', models: {open: this.open } });\n /** The template's props. */\n protected readonly props = this.#core.props;\n\n constructor() {\n useScopedStyles(bootstrapAccordion.key, bootstrapAccordion.css, { order: bootstrapAccordion.order }); useScopedStyles('accordion', accordionScopedStyles);\n }\n\n /** Open or close the tab through its `<details>`, so exclusivity and the nested collapse apply. */\n setOpen(...args: Parameters<AccordionTabMethods['setOpen']>): ReturnType<AccordionTabMethods['setOpen']> {\n return this.#core.call('setOpen', args) as ReturnType<AccordionTabMethods['setOpen']>;\n }\n}\n","<!-- GENERATED from libs/mintplayer-ui-core/accordion/src/templates/accordion-tab.view.vue by @mintplayer/nx-component-compiler. Do not edit. -->\n@let p_view = props().view;\n<details data-mps=\"accordion\" [mpProps]=\"p_view.item\" #root>\n <summary data-mps=\"accordion\" [mpProps]=\"p_view.summary\">\n @if (slots().header; as slot_header) {\n <ng-container [ngTemplateOutlet]=\"slot_header\" />\n }\n </summary>\n <div data-mps=\"accordion\" [mpProps]=\"p_view.content\">\n <ng-content />\n </div>\n</details>\n","// GENERATED from the accordion manifest by @mintplayer/nx-component-compiler. Do not edit.\nexport { BsAccordionComponent } from './accordion.component.generated';\nexport { BsAccordionTabComponent, BsAccordionTabHeaderDirective } from './accordion-tab.component.generated';\n","// Generated from @mintplayer/ui-core/accordion (#458 M4, D10): bs-accordion, bs-accordion-tab and\n// the *bsAccordionTabHeader slot.\nexport * from './generated';\nexport type { AccordionTabToggle } from '@mintplayer/ui-core/accordion';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;AAAA;AAMA;;;;AAIG;MAQU,oBAAoB,CAAA;AAWtB,IAAA,KAAK;AAMd,IAAA,WAAA,GAAA;;AAfS,QAAA,IAAA,CAAA,UAAU,GAAG,MAAM,CAA0B,UAAU,CAAC;;QAGxD,IAAA,CAAA,KAAK,GAAG,KAAK,CAAoC,KAAK,6EAAI,SAAS,EAAE,gBAAgB,EAAA,CAAG;;QAExF,IAAA,CAAA,kBAAkB,GAAG,KAAK,CAAiD,KAAK,0FAAI,SAAS,EAAE,gBAAgB,EAAA,CAAG;;QAElH,IAAA,CAAA,SAAS,GAAG,MAAM,EAAsB;A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A6B,EAAA,WAAA,EAAA,IAAA,EAAA,QAAA,EAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,EAAA,EAAA,QAAA,EC9B1E,whBAYA,EAAA,YAAA,EAAA,CAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EDQY,gBAAgB,wGAAE,gBAAgB,EAAA,QAAA,EAAA,oBAAA,EAAA,MAAA,EAAA,CAAA,yBAAA,EAAA,kBAAA,EAAA,0BAAA,CAAA,EAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,CAAA,CAAA;;2FAGjC,uBAAuB,EAAA,UAAA,EAAA,CAAA;kBANnC,SAAS;+BACE,kBAAkB,EAAA,OAAA,EAEnB,CAAC,gBAAgB,EAAE,gBAAgB,CAAC,EAAA,eAAA,EAC5B,uBAAuB,CAAC,MAAM,EAAA,QAAA,EAAA,whBAAA,EAAA;4VASJ,6BAA6B,CAAA,EAAA,EAAA,QAAA,EAAA,IAAA,EAAA,CAAA,EAAA,CAAA,EAAA,EAAA,CAAA;;AE9B1E;;ACAA;AACA;;ACDA;;AAEG;;;;"}
|
|
@@ -1,80 +1,50 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { inject,
|
|
3
|
-
import {
|
|
2
|
+
import { inject, ElementRef, input, booleanAttribute, model, ChangeDetectionStrategy, Component } from '@angular/core';
|
|
3
|
+
import { useCore, useScopedStyles, MpPropsDirective } from '@mintplayer/ng-bootstrap/machine';
|
|
4
|
+
import { alertCore, alertScopedStyles } from '@mintplayer/ui-core/alert';
|
|
4
5
|
import { bootstrapAlert } from '@mintplayer/ui-core/bootstrap/alert';
|
|
5
|
-
import {
|
|
6
|
-
import { Color } from '@mintplayer/ng-bootstrap';
|
|
6
|
+
import { bootstrapClose } from '@mintplayer/ui-core/bootstrap/close';
|
|
7
7
|
|
|
8
|
+
// GENERATED from the alert manifest (alert) by @mintplayer/nx-component-compiler. Do not edit.
|
|
9
|
+
/**
|
|
10
|
+
* Bootstrap's contextual alert. `visible` is two-way; `dismissible` adds a close button named by
|
|
11
|
+
* `closeLabel` that hides it and keeps focus on the page. `announce` opts in to `role="alert"`.
|
|
12
|
+
*/
|
|
8
13
|
class BsAlertComponent {
|
|
14
|
+
#core;
|
|
9
15
|
constructor() {
|
|
10
|
-
|
|
11
|
-
this.
|
|
12
|
-
this.
|
|
13
|
-
...(ngDevMode ? [{ debugName: "
|
|
14
|
-
|
|
15
|
-
this.
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
this.
|
|
19
|
-
...(ngDevMode ? [{ debugName: "
|
|
20
|
-
this
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
* focus to <body> — their next keystroke goes nowhere. Re-home it on the next
|
|
27
|
-
* tabbable after the alert (reading order continues naturally), falling back
|
|
28
|
-
* to the previous one at the end of a page.
|
|
29
|
-
*/
|
|
30
|
-
rescueFocus() {
|
|
31
|
-
const host = this.hostRef.nativeElement;
|
|
32
|
-
if (!host.contains(document.activeElement))
|
|
33
|
-
return;
|
|
34
|
-
const tabbables = Array.from(document.querySelectorAll('a[href], button:not([disabled]), input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex="-1"])')).filter((el) => !host.contains(el));
|
|
35
|
-
const after = tabbables.find((el) => host.compareDocumentPosition(el) & Node.DOCUMENT_POSITION_FOLLOWING);
|
|
36
|
-
(after ?? tabbables[tabbables.length - 1])?.focus();
|
|
37
|
-
}
|
|
38
|
-
onAfterOpenedOrClosed(isVisible) {
|
|
39
|
-
// During SSR prerender, the FadeInOut `done` callback can fire after
|
|
40
|
-
// Angular has torn down the route's application — emitting on a
|
|
41
|
-
// destroyed OutputRef hits NG0953 on every prerendered page.
|
|
42
|
-
if (this.destroyRef.destroyed)
|
|
43
|
-
return;
|
|
44
|
-
this.afterOpenedOrClosed.emit(isVisible);
|
|
16
|
+
/** The host element. */
|
|
17
|
+
this.elementRef = inject(ElementRef);
|
|
18
|
+
this.color = input('primary', /* @ts-ignore */
|
|
19
|
+
...(ngDevMode ? [{ debugName: "color" }] : /* istanbul ignore next */ []));
|
|
20
|
+
this.announce = input(false, { ...(ngDevMode ? { debugName: "announce" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
21
|
+
this.dismissible = input(false, { ...(ngDevMode ? { debugName: "dismissible" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
22
|
+
this.closeLabel = input('Close', /* @ts-ignore */
|
|
23
|
+
...(ngDevMode ? [{ debugName: "closeLabel" }] : /* istanbul ignore next */ []));
|
|
24
|
+
this.visible = model(true, /* @ts-ignore */
|
|
25
|
+
...(ngDevMode ? [{ debugName: "visible" }] : /* istanbul ignore next */ []));
|
|
26
|
+
this.#core = useCore(alertCore, { inputs: () => ({ color: this.color(), announce: this.announce(), dismissible: this.dismissible(), closeLabel: this.closeLabel(), visible: this.visible() }), idPrefix: 'bs-alert', hostBag: (props) => ({ ...props.view.root, 'data-mps': 'alert' }), models: { visible: this.visible } });
|
|
27
|
+
/** The template's props. */
|
|
28
|
+
this.props = this.#core.props;
|
|
29
|
+
useScopedStyles(bootstrapAlert.key, bootstrapAlert.css, { order: bootstrapAlert.order });
|
|
30
|
+
useScopedStyles(bootstrapClose.key, bootstrapClose.css, { order: bootstrapClose.order });
|
|
31
|
+
useScopedStyles('alert', alertScopedStyles);
|
|
45
32
|
}
|
|
46
33
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsAlertComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
47
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.8", type: BsAlertComponent, isStandalone: true, selector: "bs-alert", inputs: {
|
|
34
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.8", type: BsAlertComponent, isStandalone: true, selector: "bs-alert", inputs: { color: { classPropertyName: "color", publicName: "color", isSignal: true, isRequired: false, transformFunction: null }, announce: { classPropertyName: "announce", publicName: "announce", isSignal: true, isRequired: false, transformFunction: null }, dismissible: { classPropertyName: "dismissible", publicName: "dismissible", isSignal: true, isRequired: false, transformFunction: null }, closeLabel: { classPropertyName: "closeLabel", publicName: "closeLabel", isSignal: true, isRequired: false, transformFunction: null }, visible: { classPropertyName: "visible", publicName: "visible", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { visible: "visibleChange" }, ngImport: i0, template: "<!-- GENERATED from libs/mintplayer-ui-core/alert/src/templates/alert.view.vue by @mintplayer/nx-component-compiler. Do not edit. -->\n@let p_view = props().view;\n<ng-content />\n@if (p_view.dismiss) {\n <button data-mps=\"alert\" [mpProps]=\"p_view.dismiss\"></button>\n}\n", dependencies: [{ kind: "directive", type: MpPropsDirective, selector: "[mpProps],[mpHostAttrs]", inputs: ["mpProps", "mpHostAttrs"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
48
35
|
}
|
|
49
36
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsAlertComponent, decorators: [{
|
|
50
37
|
type: Component,
|
|
51
|
-
args: [{ selector: 'bs-alert',
|
|
52
|
-
}], ctorParameters: () => [], propDecorators: {
|
|
38
|
+
args: [{ selector: 'bs-alert', imports: [MpPropsDirective], changeDetection: ChangeDetectionStrategy.OnPush, template: "<!-- GENERATED from libs/mintplayer-ui-core/alert/src/templates/alert.view.vue by @mintplayer/nx-component-compiler. Do not edit. -->\n@let p_view = props().view;\n<ng-content />\n@if (p_view.dismiss) {\n <button data-mps=\"alert\" [mpProps]=\"p_view.dismiss\"></button>\n}\n" }]
|
|
39
|
+
}], ctorParameters: () => [], propDecorators: { color: [{ type: i0.Input, args: [{ isSignal: true, alias: "color", required: false }] }], announce: [{ type: i0.Input, args: [{ isSignal: true, alias: "announce", required: false }] }], dismissible: [{ type: i0.Input, args: [{ isSignal: true, alias: "dismissible", required: false }] }], closeLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "closeLabel", required: false }] }], visible: [{ type: i0.Input, args: [{ isSignal: true, alias: "visible", required: false }] }, { type: i0.Output, args: ["visibleChange"] }] } });
|
|
53
40
|
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
/** Accessible name of the icon-only close button. Override to translate. */
|
|
58
|
-
this.ariaLabel = input('Close', /* @ts-ignore */
|
|
59
|
-
...(ngDevMode ? [{ debugName: "ariaLabel" }] : /* istanbul ignore next */ []));
|
|
60
|
-
}
|
|
61
|
-
closeAlert() {
|
|
62
|
-
// Order matters: the rescue must read focus while the button still exists.
|
|
63
|
-
this.alert.rescueFocus();
|
|
64
|
-
this.alert.isVisible.set(false);
|
|
65
|
-
return false;
|
|
66
|
-
}
|
|
67
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsAlertCloseComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
68
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.0.8", type: BsAlertCloseComponent, isStandalone: true, selector: "bs-alert-close", inputs: { ariaLabel: { classPropertyName: "ariaLabel", publicName: "ariaLabel", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: "<button type=\"button\" class=\"btn float-end\" [attr.aria-label]=\"ariaLabel()\" (click)=\"closeAlert()\">\n <span class=\"text-dark\" aria-hidden=\"true\">\u00D7</span>\n</button>\n", styles: ["button{top:0;right:0;border:0;position:absolute;padding:.75rem 1.25rem!important;background:transparent}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
69
|
-
}
|
|
70
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsAlertCloseComponent, decorators: [{
|
|
71
|
-
type: Component,
|
|
72
|
-
args: [{ selector: 'bs-alert-close', changeDetection: ChangeDetectionStrategy.OnPush, template: "<button type=\"button\" class=\"btn float-end\" [attr.aria-label]=\"ariaLabel()\" (click)=\"closeAlert()\">\n <span class=\"text-dark\" aria-hidden=\"true\">\u00D7</span>\n</button>\n", styles: ["button{top:0;right:0;border:0;position:absolute;padding:.75rem 1.25rem!important;background:transparent}\n"] }]
|
|
73
|
-
}], propDecorators: { ariaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaLabel", required: false }] }] } });
|
|
41
|
+
// GENERATED from the alert manifest by @mintplayer/nx-component-compiler. Do not edit.
|
|
42
|
+
|
|
43
|
+
// Generated from @mintplayer/ui-core/alert (#458 D10).
|
|
74
44
|
|
|
75
45
|
/**
|
|
76
46
|
* Generated bundle index. Do not edit.
|
|
77
47
|
*/
|
|
78
48
|
|
|
79
|
-
export {
|
|
49
|
+
export { BsAlertComponent };
|
|
80
50
|
//# sourceMappingURL=mintplayer-ng-bootstrap-alert.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mintplayer-ng-bootstrap-alert.mjs","sources":["../../../../libs/mintplayer-ng-bootstrap/alert/src/
|
|
1
|
+
{"version":3,"file":"mintplayer-ng-bootstrap-alert.mjs","sources":["../../../../libs/mintplayer-ng-bootstrap/alert/src/generated/alert.component.generated.ts","../../../../libs/mintplayer-ng-bootstrap/alert/src/generated/alert.view.generated.html","../../../../libs/mintplayer-ng-bootstrap/alert/src/generated/index.ts","../../../../libs/mintplayer-ng-bootstrap/alert/src/index.ts","../../../../libs/mintplayer-ng-bootstrap/alert/mintplayer-ng-bootstrap-alert.ts"],"sourcesContent":["// GENERATED from the alert manifest (alert) by @mintplayer/nx-component-compiler. Do not edit.\nimport { ChangeDetectionStrategy, Component, ElementRef, booleanAttribute, inject, input, model } from '@angular/core';\nimport { MpPropsDirective, useCore, useScopedStyles } from '@mintplayer/ng-bootstrap/machine';\nimport { alertCore, type AlertInputs, alertScopedStyles } from '@mintplayer/ui-core/alert';\nimport { bootstrapAlert } from '@mintplayer/ui-core/bootstrap/alert';\nimport { bootstrapClose } from '@mintplayer/ui-core/bootstrap/close';\n\n/**\n * Bootstrap's contextual alert. `visible` is two-way; `dismissible` adds a close button named by\n * `closeLabel` that hides it and keeps focus on the page. `announce` opts in to `role=\"alert\"`.\n */\n@Component({\n selector: 'bs-alert',\n templateUrl: './alert.view.generated.html',\n imports: [MpPropsDirective],\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class BsAlertComponent {\n /** The host element. */\n readonly elementRef = inject<ElementRef<HTMLElement>>(ElementRef);\n\n readonly color = input<AlertInputs['color']>('primary');\n readonly announce = input<AlertInputs['announce'], unknown>(false, { transform: booleanAttribute });\n readonly dismissible = input<AlertInputs['dismissible'], unknown>(false, { transform: booleanAttribute });\n readonly closeLabel = input<AlertInputs['closeLabel']>('Close');\n readonly visible = model<AlertInputs['visible']>(true);\n\n readonly #core = useCore(alertCore, { inputs: () => ({ color: this.color(), announce: this.announce(), dismissible: this.dismissible(), closeLabel: this.closeLabel(), visible: this.visible() }), idPrefix: 'bs-alert', hostBag: (props) => ({ ...props.view.root, 'data-mps': 'alert' }), models: {visible: this.visible } });\n /** The template's props. */\n protected readonly props = this.#core.props;\n\n constructor() {\n useScopedStyles(bootstrapAlert.key, bootstrapAlert.css, { order: bootstrapAlert.order }); useScopedStyles(bootstrapClose.key, bootstrapClose.css, { order: bootstrapClose.order }); useScopedStyles('alert', alertScopedStyles);\n }\n}\n","<!-- GENERATED from libs/mintplayer-ui-core/alert/src/templates/alert.view.vue by @mintplayer/nx-component-compiler. Do not edit. -->\n@let p_view = props().view;\n<ng-content />\n@if (p_view.dismiss) {\n <button data-mps=\"alert\" [mpProps]=\"p_view.dismiss\"></button>\n}\n","// GENERATED from the alert manifest by @mintplayer/nx-component-compiler. Do not edit.\nexport { BsAlertComponent } from './alert.component.generated';\n","// Generated from @mintplayer/ui-core/alert (#458 D10).\nexport * from './generated';\n","/**\n * Generated bundle index. Do not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AA,YAAA,EAAA,CAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EDQY,gBAAgB,EAAA,QAAA,EAAA,yBAAA,EAAA,MAAA,EAAA,CAAA,SAAA,EAAA,aAAA,CAAA,EAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,CAAA,CAAA;;2FAGf,gBAAgB,EAAA,UAAA,EAAA,CAAA;kBAN5B,SAAS;AACE,YAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,UAAU,WAEX,CAAC,gBAAgB,CAAC,EAAA,eAAA,EACV,uBAAuB,CAAC,MAAM,EAAA,QAAA,EAAA,sRAAA,EAAA;;;AEfjD;;ACAA;;ACAA;;AAEG;;;;"}
|
|
@@ -1,45 +1,38 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { input,
|
|
3
|
-
import {
|
|
2
|
+
import { inject, ElementRef, input, booleanAttribute, ChangeDetectionStrategy, Component } from '@angular/core';
|
|
3
|
+
import { useCore, useScopedStyles } from '@mintplayer/ng-bootstrap/machine';
|
|
4
|
+
import { badgeCore, badgeScopedStyles } from '@mintplayer/ui-core/badge';
|
|
4
5
|
import { bootstrapBadge } from '@mintplayer/ui-core/bootstrap/badge';
|
|
5
|
-
import { Color } from '@mintplayer/ng-bootstrap';
|
|
6
6
|
|
|
7
|
-
//
|
|
8
|
-
|
|
9
|
-
// with the text colour color-contrast() picks (black on warning, info and light).
|
|
10
|
-
// It exists for the eight theme colours only; the other three pair a background
|
|
11
|
-
// with a text utility, the way `<bs-card [color]>` colours them.
|
|
12
|
-
const pairedColorClasses = {
|
|
13
|
-
[Color.body]: 'bg-body text-body',
|
|
14
|
-
[Color.white]: 'bg-white text-black',
|
|
15
|
-
[Color.transparent]: 'bg-transparent text-reset',
|
|
16
|
-
};
|
|
7
|
+
// GENERATED from the badge manifest (badge) by @mintplayer/nx-component-compiler. Do not edit.
|
|
8
|
+
/** Bootstrap's badge: a `.badge` around its content in a `color`, with a visually hidden `unit` that says what a number counts. */
|
|
17
9
|
class BsBadgeComponent {
|
|
10
|
+
#core;
|
|
18
11
|
constructor() {
|
|
19
|
-
|
|
20
|
-
this.
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
* What the number counts ('unread messages'): a bare '3' badge is
|
|
24
|
-
* meaningless out of visual context. Appended visually hidden.
|
|
25
|
-
*/
|
|
12
|
+
/** The host element. */
|
|
13
|
+
this.elementRef = inject(ElementRef);
|
|
14
|
+
this.color = input('primary', /* @ts-ignore */
|
|
15
|
+
...(ngDevMode ? [{ debugName: "color" }] : /* istanbul ignore next */ []));
|
|
26
16
|
this.unit = input(null, /* @ts-ignore */
|
|
27
17
|
...(ngDevMode ? [{ debugName: "unit" }] : /* istanbul ignore next */ []));
|
|
28
|
-
|
|
29
|
-
this
|
|
30
|
-
|
|
31
|
-
this.
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
useBootstrap(bootstrapBadge);
|
|
18
|
+
this.decorative = input(false, { ...(ngDevMode ? { debugName: "decorative" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
19
|
+
this.#core = useCore(badgeCore, { inputs: () => ({ color: this.color(), unit: this.unit(), decorative: this.decorative() }), idPrefix: 'bs-badge', hostBag: (props) => ({ ...props.root, 'data-mps': 'badge' }) });
|
|
20
|
+
/** The template's props. */
|
|
21
|
+
this.props = this.#core.props;
|
|
22
|
+
useScopedStyles(bootstrapBadge.key, bootstrapBadge.css, { order: bootstrapBadge.order });
|
|
23
|
+
useScopedStyles('badge', badgeScopedStyles);
|
|
35
24
|
}
|
|
36
25
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsBadgeComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
37
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.8", type: BsBadgeComponent, isStandalone: true, selector: "bs-badge", inputs: {
|
|
26
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.8", type: BsBadgeComponent, isStandalone: true, selector: "bs-badge", inputs: { color: { classPropertyName: "color", publicName: "color", 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: "<!-- GENERATED from libs/mintplayer-ui-core/badge/src/templates/badge.view.vue by @mintplayer/nx-component-compiler. Do not edit. -->\n@let p_unit = props().unit;\n<ng-content />\n@if (p_unit) {\n <span data-mps=\"badge\" class=\"visually-hidden\">\n {{ p_unit }}\n </span>\n}\n", changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
38
27
|
}
|
|
39
28
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsBadgeComponent, decorators: [{
|
|
40
29
|
type: Component,
|
|
41
|
-
args: [{ selector: 'bs-badge', changeDetection: ChangeDetectionStrategy.OnPush, template: "
|
|
42
|
-
}], ctorParameters: () => [], propDecorators: {
|
|
30
|
+
args: [{ selector: 'bs-badge', imports: [], changeDetection: ChangeDetectionStrategy.OnPush, template: "<!-- GENERATED from libs/mintplayer-ui-core/badge/src/templates/badge.view.vue by @mintplayer/nx-component-compiler. Do not edit. -->\n@let p_unit = props().unit;\n<ng-content />\n@if (p_unit) {\n <span data-mps=\"badge\" class=\"visually-hidden\">\n {{ p_unit }}\n </span>\n}\n" }]
|
|
31
|
+
}], ctorParameters: () => [], propDecorators: { color: [{ type: i0.Input, args: [{ isSignal: true, alias: "color", required: false }] }], unit: [{ type: i0.Input, args: [{ isSignal: true, alias: "unit", required: false }] }], decorative: [{ type: i0.Input, args: [{ isSignal: true, alias: "decorative", required: false }] }] } });
|
|
32
|
+
|
|
33
|
+
// GENERATED from the badge manifest by @mintplayer/nx-component-compiler. Do not edit.
|
|
34
|
+
|
|
35
|
+
// Generated from @mintplayer/ui-core/badge (#458 D10).
|
|
43
36
|
|
|
44
37
|
/**
|
|
45
38
|
* 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.
|
|
1
|
+
{"version":3,"file":"mintplayer-ng-bootstrap-badge.mjs","sources":["../../../../libs/mintplayer-ng-bootstrap/badge/src/generated/badge.component.generated.ts","../../../../libs/mintplayer-ng-bootstrap/badge/src/generated/badge.view.generated.html","../../../../libs/mintplayer-ng-bootstrap/badge/src/generated/index.ts","../../../../libs/mintplayer-ng-bootstrap/badge/src/index.ts","../../../../libs/mintplayer-ng-bootstrap/badge/mintplayer-ng-bootstrap-badge.ts"],"sourcesContent":["// GENERATED from the badge manifest (badge) by @mintplayer/nx-component-compiler. Do not edit.\nimport { ChangeDetectionStrategy, Component, ElementRef, booleanAttribute, inject, input } from '@angular/core';\nimport { useCore, useScopedStyles } from '@mintplayer/ng-bootstrap/machine';\nimport { badgeCore, type BadgeInputs, badgeScopedStyles } from '@mintplayer/ui-core/badge';\nimport { bootstrapBadge } from '@mintplayer/ui-core/bootstrap/badge';\n\n/** Bootstrap's badge: a `.badge` around its content in a `color`, with a visually hidden `unit` that says what a number counts. */\n@Component({\n selector: 'bs-badge',\n templateUrl: './badge.view.generated.html',\n imports: [],\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class BsBadgeComponent {\n /** The host element. */\n readonly elementRef = inject<ElementRef<HTMLElement>>(ElementRef);\n\n readonly color = input<BadgeInputs['color']>('primary');\n readonly unit = input<BadgeInputs['unit']>(null);\n readonly decorative = input<BadgeInputs['decorative'], unknown>(false, { transform: booleanAttribute });\n\n readonly #core = useCore(badgeCore, { inputs: () => ({ color: this.color(), unit: this.unit(), decorative: this.decorative() }), idPrefix: 'bs-badge', hostBag: (props) => ({ ...props.root, 'data-mps': 'badge' }) });\n /** The template's props. */\n protected readonly props = this.#core.props;\n\n constructor() {\n useScopedStyles(bootstrapBadge.key, bootstrapBadge.css, { order: bootstrapBadge.order }); useScopedStyles('badge', badgeScopedStyles);\n }\n}\n","<!-- GENERATED from libs/mintplayer-ui-core/badge/src/templates/badge.view.vue by @mintplayer/nx-component-compiler. Do not edit. -->\n@let p_unit = props().unit;\n<ng-content />\n@if (p_unit) {\n <span data-mps=\"badge\" class=\"visually-hidden\">\n {{ p_unit }}\n </span>\n}\n","// GENERATED from the badge manifest by @mintplayer/nx-component-compiler. Do not edit.\nexport { BsBadgeComponent } from './badge.component.generated';\n","// Generated from @mintplayer/ui-core/badge (#458 D10).\nexport * from './generated';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;AAAA;AAMA;MAOa,gBAAgB,CAAA;AAQlB,IAAA,KAAK;AAId,IAAA,WAAA,GAAA;;AAVS,QAAA,IAAA,CAAA,UAAU,GAAG,MAAM,CAA0B,UAAU,CAAC;QAExD,IAAA,CAAA,KAAK,GAAG,KAAK,CAAuB,SAAS;kFAAC;QAC9C,IAAA,CAAA,IAAI,GAAG,KAAK,CAAsB,IAAI;iFAAC;QACvC,IAAA,CAAA,UAAU,GAAG,KAAK,CAAqC,KAAK,kFAAI,SAAS,EAAE,gBAAgB,EAAA,CAAG;AAE9F,QAAA,IAAA,CAAA,KAAK,GAAG,OAAO,CAAC,SAAS,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE,KAAK,EAAE,IAAI,CAAC,KAAK,EAAE,EAAE,IAAI,EAAE,IAAI,CAAC,IAAI,EAAE,EAAE,UAAU,EAAE,IAAI,CAAC,UAAU,EAAE,EAAE,CAAC,EAAE,QAAQ,EAAE,UAAU,EAAE,OAAO,EAAE,CAAC,KAAK,MAAM,EAAE,GAAG,KAAK,CAAC,IAAI,EAAE,UAAU,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC;;AAEnM,QAAA,IAAA,CAAA,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC,KAAK;AAGzC,QAAA,eAAe,CAAC,cAAc,CAAC,GAAG,EAAE,cAAc,CAAC,GAAG,EAAE,EAAE,KAAK,EAAE,cAAc,CAAC,KAAK,EAAE,CAAC;AAAE,QAAA,eAAe,CAAC,OAAO,EAAE,iBAAiB,CAAC;IACvI;8GAdW,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,ocCb7B,6RAQA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,CAAA,CAAA;;2FDKa,gBAAgB,EAAA,UAAA,EAAA,CAAA;kBAN5B,SAAS;AACE,YAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,UAAU,EAAA,OAAA,EAEX,EAAE,EAAA,eAAA,EACM,uBAAuB,CAAC,MAAM,EAAA,QAAA,EAAA,6RAAA,EAAA;;;AEXjD;;ACAA;;ACAA;;AAEG;;;;"}
|
|
@@ -1,45 +1,60 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { input, ChangeDetectionStrategy, Component } from '@angular/core';
|
|
3
|
-
import {
|
|
2
|
+
import { inject, ElementRef, input, ChangeDetectionStrategy, Component, booleanAttribute } from '@angular/core';
|
|
3
|
+
import { useHostAttrs, useCore, useScopedStyles, MpPropsDirective } from '@mintplayer/ng-bootstrap/machine';
|
|
4
|
+
import { breadcrumbCore, breadcrumbScopedStyles, breadcrumbItemCore } from '@mintplayer/ui-core/breadcrumb';
|
|
4
5
|
import { bootstrapBreadcrumb } from '@mintplayer/ui-core/bootstrap/breadcrumb';
|
|
5
6
|
|
|
7
|
+
// GENERATED from the breadcrumb manifest (breadcrumb) by @mintplayer/nx-component-compiler. Do not edit.
|
|
8
|
+
/** Bootstrap's breadcrumb: a `<nav>` landmark named by `label` around an ordered list of `breadcrumb-item`s. */
|
|
6
9
|
class BsBreadcrumbComponent {
|
|
10
|
+
#core;
|
|
7
11
|
constructor() {
|
|
8
|
-
/**
|
|
9
|
-
this.
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
12
|
+
/** The host element. */
|
|
13
|
+
this.elementRef = inject(ElementRef);
|
|
14
|
+
/** The consumer's aria-*, id and tabindex on the host, for the role-bearing node. */
|
|
15
|
+
this.hostAttrs = useHostAttrs();
|
|
16
|
+
this.label = input('Breadcrumb', /* @ts-ignore */
|
|
17
|
+
...(ngDevMode ? [{ debugName: "label" }] : /* istanbul ignore next */ []));
|
|
18
|
+
this.#core = useCore(breadcrumbCore, { inputs: () => ({ label: this.label() }), idPrefix: 'bs-breadcrumb', hostBag: (props) => ({ ...props.view.root, 'data-mps': 'breadcrumb' }) });
|
|
19
|
+
/** The template's props. */
|
|
20
|
+
this.props = this.#core.props;
|
|
21
|
+
useScopedStyles(bootstrapBreadcrumb.key, bootstrapBreadcrumb.css, { order: bootstrapBreadcrumb.order });
|
|
22
|
+
useScopedStyles('breadcrumb', breadcrumbScopedStyles);
|
|
13
23
|
}
|
|
14
24
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsBreadcrumbComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
15
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.0.8", type: BsBreadcrumbComponent, isStandalone: true, selector: "bs-breadcrumb", inputs: {
|
|
25
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.0.8", type: BsBreadcrumbComponent, isStandalone: true, selector: "bs-breadcrumb", inputs: { label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: "<!-- GENERATED from libs/mintplayer-ui-core/breadcrumb/src/templates/breadcrumb.view.vue by @mintplayer/nx-component-compiler. Do not edit. -->\n@let p_view = props().view;\n<nav data-mps=\"breadcrumb\" [mpProps]=\"p_view.nav\" [mpHostAttrs]=\"hostAttrs\">\n <ol data-mps=\"breadcrumb\" [mpProps]=\"p_view.list\">\n <ng-content />\n </ol>\n</nav>\n", dependencies: [{ kind: "directive", type: MpPropsDirective, selector: "[mpProps],[mpHostAttrs]", inputs: ["mpProps", "mpHostAttrs"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
16
26
|
}
|
|
17
27
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsBreadcrumbComponent, decorators: [{
|
|
18
28
|
type: Component,
|
|
19
|
-
args: [{ selector: 'bs-breadcrumb', changeDetection: ChangeDetectionStrategy.OnPush, template: "<nav data-mps=\"breadcrumb\" [
|
|
20
|
-
}], ctorParameters: () => [], propDecorators: {
|
|
29
|
+
args: [{ selector: 'bs-breadcrumb', imports: [MpPropsDirective], changeDetection: ChangeDetectionStrategy.OnPush, template: "<!-- GENERATED from libs/mintplayer-ui-core/breadcrumb/src/templates/breadcrumb.view.vue by @mintplayer/nx-component-compiler. Do not edit. -->\n@let p_view = props().view;\n<nav data-mps=\"breadcrumb\" [mpProps]=\"p_view.nav\" [mpHostAttrs]=\"hostAttrs\">\n <ol data-mps=\"breadcrumb\" [mpProps]=\"p_view.list\">\n <ng-content />\n </ol>\n</nav>\n" }]
|
|
30
|
+
}], ctorParameters: () => [], propDecorators: { label: [{ type: i0.Input, args: [{ isSignal: true, alias: "label", required: false }] }] } });
|
|
21
31
|
|
|
32
|
+
// GENERATED from the breadcrumb manifest (breadcrumb-item) by @mintplayer/nx-component-compiler. Do not edit.
|
|
33
|
+
/** One step of a breadcrumb: put a link in it, or plain text for the `active` (current) page. */
|
|
22
34
|
class BsBreadcrumbItemComponent {
|
|
35
|
+
#core;
|
|
23
36
|
constructor() {
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
37
|
+
/** The host element. */
|
|
38
|
+
this.elementRef = inject(ElementRef);
|
|
39
|
+
this.active = input(false, { ...(ngDevMode ? { debugName: "active" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
40
|
+
this.#core = useCore(breadcrumbItemCore, { inputs: () => ({ active: this.active() }), idPrefix: 'bs-breadcrumb-item', hostBag: (props) => ({ ...props.root, 'data-mps': 'breadcrumb', role: 'listitem' }) });
|
|
41
|
+
/** The template's props. */
|
|
42
|
+
this.props = this.#core.props;
|
|
43
|
+
useScopedStyles(bootstrapBreadcrumb.key, bootstrapBreadcrumb.css, { order: bootstrapBreadcrumb.order });
|
|
44
|
+
useScopedStyles('breadcrumb', breadcrumbScopedStyles);
|
|
28
45
|
}
|
|
29
46
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsBreadcrumbItemComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
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 } },
|
|
47
|
+
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 } }, ngImport: i0, template: "<!-- GENERATED from libs/mintplayer-ui-core/breadcrumb/src/templates/breadcrumb-item.view.vue by @mintplayer/nx-component-compiler. Do not edit. -->\n<ng-content />\n", changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
31
48
|
}
|
|
32
49
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsBreadcrumbItemComponent, decorators: [{
|
|
33
50
|
type: Component,
|
|
34
|
-
args: [{ selector: 'bs-breadcrumb-item', changeDetection: ChangeDetectionStrategy.OnPush,
|
|
35
|
-
'[attr.data-mps]': '"breadcrumb"',
|
|
36
|
-
'[class.breadcrumb-item]': 'true',
|
|
37
|
-
'[class.active]': 'active()',
|
|
38
|
-
'role': 'listitem',
|
|
39
|
-
'[attr.aria-current]': 'active() ? "page" : null',
|
|
40
|
-
}, template: "<ng-content></ng-content>\n" }]
|
|
51
|
+
args: [{ selector: 'bs-breadcrumb-item', imports: [], changeDetection: ChangeDetectionStrategy.OnPush, template: "<!-- GENERATED from libs/mintplayer-ui-core/breadcrumb/src/templates/breadcrumb-item.view.vue by @mintplayer/nx-component-compiler. Do not edit. -->\n<ng-content />\n" }]
|
|
41
52
|
}], ctorParameters: () => [], propDecorators: { active: [{ type: i0.Input, args: [{ isSignal: true, alias: "active", required: false }] }] } });
|
|
42
53
|
|
|
54
|
+
// GENERATED from the breadcrumb manifest by @mintplayer/nx-component-compiler. Do not edit.
|
|
55
|
+
|
|
56
|
+
// Generated from @mintplayer/ui-core/breadcrumb (#458 D10).
|
|
57
|
+
|
|
43
58
|
/**
|
|
44
59
|
* Generated bundle index. Do not edit.
|
|
45
60
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mintplayer-ng-bootstrap-breadcrumb.mjs","sources":["../../../../libs/mintplayer-ng-bootstrap/breadcrumb/src/
|
|
1
|
+
{"version":3,"file":"mintplayer-ng-bootstrap-breadcrumb.mjs","sources":["../../../../libs/mintplayer-ng-bootstrap/breadcrumb/src/generated/breadcrumb.component.generated.ts","../../../../libs/mintplayer-ng-bootstrap/breadcrumb/src/generated/breadcrumb.view.generated.html","../../../../libs/mintplayer-ng-bootstrap/breadcrumb/src/generated/breadcrumb-item.component.generated.ts","../../../../libs/mintplayer-ng-bootstrap/breadcrumb/src/generated/breadcrumb-item.view.generated.html","../../../../libs/mintplayer-ng-bootstrap/breadcrumb/src/generated/index.ts","../../../../libs/mintplayer-ng-bootstrap/breadcrumb/src/index.ts","../../../../libs/mintplayer-ng-bootstrap/breadcrumb/mintplayer-ng-bootstrap-breadcrumb.ts"],"sourcesContent":["// GENERATED from the breadcrumb manifest (breadcrumb) by @mintplayer/nx-component-compiler. Do not edit.\nimport { ChangeDetectionStrategy, Component, ElementRef, inject, input } from '@angular/core';\nimport { MpPropsDirective, useCore, useHostAttrs, useScopedStyles } from '@mintplayer/ng-bootstrap/machine';\nimport { breadcrumbCore, type BreadcrumbInputs, breadcrumbScopedStyles } from '@mintplayer/ui-core/breadcrumb';\nimport { bootstrapBreadcrumb } from '@mintplayer/ui-core/bootstrap/breadcrumb';\n\n/** Bootstrap's breadcrumb: a `<nav>` landmark named by `label` around an ordered list of `breadcrumb-item`s. */\n@Component({\n selector: 'bs-breadcrumb',\n templateUrl: './breadcrumb.view.generated.html',\n imports: [MpPropsDirective],\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class BsBreadcrumbComponent {\n /** The host element. */\n readonly elementRef = inject<ElementRef<HTMLElement>>(ElementRef);\n\n /** The consumer's aria-*, id and tabindex on the host, for the role-bearing node. */\n protected readonly hostAttrs = useHostAttrs();\n\n readonly label = input<BreadcrumbInputs['label']>('Breadcrumb');\n\n readonly #core = useCore(breadcrumbCore, { inputs: () => ({ label: this.label() }), idPrefix: 'bs-breadcrumb', hostBag: (props) => ({ ...props.view.root, 'data-mps': 'breadcrumb' }) });\n /** The template's props. */\n protected readonly props = this.#core.props;\n\n constructor() {\n useScopedStyles(bootstrapBreadcrumb.key, bootstrapBreadcrumb.css, { order: bootstrapBreadcrumb.order }); useScopedStyles('breadcrumb', breadcrumbScopedStyles);\n }\n}\n","<!-- GENERATED from libs/mintplayer-ui-core/breadcrumb/src/templates/breadcrumb.view.vue by @mintplayer/nx-component-compiler. Do not edit. -->\n@let p_view = props().view;\n<nav data-mps=\"breadcrumb\" [mpProps]=\"p_view.nav\" [mpHostAttrs]=\"hostAttrs\">\n <ol data-mps=\"breadcrumb\" [mpProps]=\"p_view.list\">\n <ng-content />\n </ol>\n</nav>\n","// GENERATED from the breadcrumb manifest (breadcrumb-item) by @mintplayer/nx-component-compiler. Do not edit.\nimport { ChangeDetectionStrategy, Component, ElementRef, booleanAttribute, inject, input } from '@angular/core';\nimport { useCore, useScopedStyles } from '@mintplayer/ng-bootstrap/machine';\nimport { breadcrumbItemCore, type BreadcrumbItemInputs, breadcrumbScopedStyles } from '@mintplayer/ui-core/breadcrumb';\nimport { bootstrapBreadcrumb } from '@mintplayer/ui-core/bootstrap/breadcrumb';\n\n/** One step of a breadcrumb: put a link in it, or plain text for the `active` (current) page. */\n@Component({\n selector: 'bs-breadcrumb-item',\n templateUrl: './breadcrumb-item.view.generated.html',\n imports: [],\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class BsBreadcrumbItemComponent {\n /** The host element. */\n readonly elementRef = inject<ElementRef<HTMLElement>>(ElementRef);\n\n readonly active = input<BreadcrumbItemInputs['active'], unknown>(false, { transform: booleanAttribute });\n\n readonly #core = useCore(breadcrumbItemCore, { inputs: () => ({ active: this.active() }), idPrefix: 'bs-breadcrumb-item', hostBag: (props) => ({ ...props.root, 'data-mps': 'breadcrumb', role: 'listitem' }) });\n /** The template's props. */\n protected readonly props = this.#core.props;\n\n constructor() {\n useScopedStyles(bootstrapBreadcrumb.key, bootstrapBreadcrumb.css, { order: bootstrapBreadcrumb.order }); useScopedStyles('breadcrumb', breadcrumbScopedStyles);\n }\n}\n","<!-- GENERATED from libs/mintplayer-ui-core/breadcrumb/src/templates/breadcrumb-item.view.vue by @mintplayer/nx-component-compiler. Do not edit. -->\n<ng-content />\n","// GENERATED from the breadcrumb manifest by @mintplayer/nx-component-compiler. Do not edit.\nexport { BsBreadcrumbComponent } from './breadcrumb.component.generated';\nexport { BsBreadcrumbItemComponent } from './breadcrumb-item.component.generated';\n","// Generated from @mintplayer/ui-core/breadcrumb (#458 D10).\nexport * from './generated';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;AAAA;AAMA;MAOa,qBAAqB,CAAA;AASvB,IAAA,KAAK;AAId,IAAA,WAAA,GAAA;;AAXS,QAAA,IAAA,CAAA,UAAU,GAAG,MAAM,CAA0B,UAAU,CAAC;;QAG9C,IAAA,CAAA,SAAS,GAAG,YAAY,EAAE;QAEpC,IAAA,CAAA,KAAK,GAAG,KAAK,CAA4B,YAAY;kFAAC;QAEtD,IAAA,CAAA,KAAK,GAAG,OAAO,CAAC,cAAc,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE,KAAK,EAAE,IAAI,CAAC,KAAK,EAAE,EAAE,CAAC,EAAE,QAAQ,EAAE,eAAe,EAAE,OAAO,EAAE,CAAC,KAAK,MAAM,EAAE,GAAG,KAAK,CAAC,IAAI,CAAC,IAAI,EAAE,UAAU,EAAE,YAAY,EAAE,CAAC,EAAE,CAAC;;AAErK,QAAA,IAAA,CAAA,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC,KAAK;AAGzC,QAAA,eAAe,CAAC,mBAAmB,CAAC,GAAG,EAAE,mBAAmB,CAAC,GAAG,EAAE,EAAE,KAAK,EAAE,mBAAmB,CAAC,KAAK,EAAE,CAAC;AAAE,QAAA,eAAe,CAAC,YAAY,EAAE,sBAAsB,CAAC;IAChK;8GAfW,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,eAAA,EAAA,MAAA,EAAA,EAAA,KAAA,EAAA,EAAA,iBAAA,EAAA,OAAA,EAAA,UAAA,EAAA,OAAA,EAAA,Q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AE,EAAE,KAAK,EAAE,mBAAmB,CAAC,KAAK,EAAE,CAAC;AAAE,QAAA,eAAe,CAAC,YAAY,EAAE,sBAAsB,CAAC;IAChK;8GAZW,yBAAyB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;AAAzB,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,IAAA,EAAA,yBAAyB,qNCbtC,wKAEA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,CAAA,CAAA;;2FDWa,yBAAyB,EAAA,UAAA,EAAA,CAAA;kBANrC,SAAS;AACE,YAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,oBAAoB,EAAA,OAAA,EAErB,EAAE,EAAA,eAAA,EACM,uBAAuB,CAAC,MAAM,EAAA,QAAA,EAAA,wKAAA,EAAA;;;AEXjD;;ACAA;;ACAA;;AAEG;;;;"}
|
|
@@ -1,22 +1,38 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { input, ChangeDetectionStrategy, Component } from '@angular/core';
|
|
3
|
-
import {
|
|
2
|
+
import { inject, ElementRef, input, booleanAttribute, ChangeDetectionStrategy, Component } from '@angular/core';
|
|
3
|
+
import { useCore, useScopedStyles } from '@mintplayer/ng-bootstrap/machine';
|
|
4
|
+
import { buttonGroupCore, buttonGroupScopedStyles } from '@mintplayer/ui-core/button-group';
|
|
4
5
|
import { bootstrapButtonGroup } from '@mintplayer/ui-core/bootstrap/button-group';
|
|
5
6
|
|
|
7
|
+
// GENERATED from the button-group manifest (button-group) by @mintplayer/nx-component-compiler. Do not edit.
|
|
8
|
+
/** Bootstrap's button group: a `role="group"` `.btn-group` named by `label`. It joins direct `.btn` children and buttons rendered inside a hosted child (a toggle button) alike. */
|
|
6
9
|
class BsButtonGroupComponent {
|
|
10
|
+
#core;
|
|
7
11
|
constructor() {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
+
/** The host element. */
|
|
13
|
+
this.elementRef = inject(ElementRef);
|
|
14
|
+
this.label = input(null, /* @ts-ignore */
|
|
15
|
+
...(ngDevMode ? [{ debugName: "label" }] : /* istanbul ignore next */ []));
|
|
16
|
+
this.vertical = input(false, { ...(ngDevMode ? { debugName: "vertical" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
17
|
+
this.size = input(null, /* @ts-ignore */
|
|
18
|
+
...(ngDevMode ? [{ debugName: "size" }] : /* istanbul ignore next */ []));
|
|
19
|
+
this.#core = useCore(buttonGroupCore, { inputs: () => ({ label: this.label(), vertical: this.vertical(), size: this.size() }), idPrefix: 'bs-button-group', hostBag: (props) => ({ ...props.root, 'data-mps': 'button-group' }) });
|
|
20
|
+
/** The template's props. */
|
|
21
|
+
this.props = this.#core.props;
|
|
22
|
+
useScopedStyles(bootstrapButtonGroup.key, bootstrapButtonGroup.css, { order: bootstrapButtonGroup.order });
|
|
23
|
+
useScopedStyles('button-group', buttonGroupScopedStyles);
|
|
12
24
|
}
|
|
13
25
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsButtonGroupComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
14
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.0.8", type: BsButtonGroupComponent, isStandalone: true, selector: "bs-button-group", inputs: {
|
|
26
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.0.8", type: BsButtonGroupComponent, isStandalone: true, selector: "bs-button-group", inputs: { label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, vertical: { classPropertyName: "vertical", publicName: "vertical", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: "<!-- GENERATED from libs/mintplayer-ui-core/button-group/src/templates/button-group.view.vue by @mintplayer/nx-component-compiler. Do not edit. -->\n<ng-content />\n", changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
15
27
|
}
|
|
16
28
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsButtonGroupComponent, decorators: [{
|
|
17
29
|
type: Component,
|
|
18
|
-
args: [{ selector: 'bs-button-group', changeDetection: ChangeDetectionStrategy.OnPush, template: "
|
|
19
|
-
}], ctorParameters: () => [], propDecorators: {
|
|
30
|
+
args: [{ selector: 'bs-button-group', imports: [], changeDetection: ChangeDetectionStrategy.OnPush, template: "<!-- GENERATED from libs/mintplayer-ui-core/button-group/src/templates/button-group.view.vue by @mintplayer/nx-component-compiler. Do not edit. -->\n<ng-content />\n" }]
|
|
31
|
+
}], ctorParameters: () => [], propDecorators: { label: [{ type: i0.Input, args: [{ isSignal: true, alias: "label", required: false }] }], vertical: [{ type: i0.Input, args: [{ isSignal: true, alias: "vertical", required: false }] }], size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }] } });
|
|
32
|
+
|
|
33
|
+
// GENERATED from the button-group manifest by @mintplayer/nx-component-compiler. Do not edit.
|
|
34
|
+
|
|
35
|
+
// Generated from @mintplayer/ui-core/button-group (#458 D10).
|
|
20
36
|
|
|
21
37
|
/**
|
|
22
38
|
* Generated bundle index. Do not edit.
|