@mintplayer/ng-bootstrap 22.19.0 → 22.20.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/_bootstrap.scss +10 -0
- package/fesm2022/mintplayer-ng-bootstrap-accordion.mjs +3 -0
- package/fesm2022/mintplayer-ng-bootstrap-accordion.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-alert.mjs +6 -3
- package/fesm2022/mintplayer-ng-bootstrap-alert.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-button-type.mjs +9 -11
- package/fesm2022/mintplayer-ng-bootstrap-button-type.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-calendar.mjs +2 -4
- package/fesm2022/mintplayer-ng-bootstrap-calendar.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-carousel.mjs +3 -1
- package/fesm2022/mintplayer-ng-bootstrap-carousel.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-charts-hierarchy.mjs +36 -56
- package/fesm2022/mintplayer-ng-bootstrap-charts-hierarchy.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-charts-sparkline.mjs +10 -18
- package/fesm2022/mintplayer-ng-bootstrap-charts-sparkline.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-charts-trend.mjs +13 -24
- package/fesm2022/mintplayer-ng-bootstrap-charts-trend.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-checkbox.mjs +6 -15
- package/fesm2022/mintplayer-ng-bootstrap-checkbox.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-code-snippet.mjs +5 -7
- package/fesm2022/mintplayer-ng-bootstrap-code-snippet.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-color-picker.mjs +17 -6
- package/fesm2022/mintplayer-ng-bootstrap-color-picker.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-context-menu.mjs +47 -50
- package/fesm2022/mintplayer-ng-bootstrap-context-menu.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-copy.mjs +8 -5
- package/fesm2022/mintplayer-ng-bootstrap-copy.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-datatable.mjs +19 -55
- package/fesm2022/mintplayer-ng-bootstrap-datatable.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-datepicker.mjs +2 -4
- package/fesm2022/mintplayer-ng-bootstrap-datepicker.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-datetime-picker.mjs +2 -4
- package/fesm2022/mintplayer-ng-bootstrap-datetime-picker.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-dropdown-menu.mjs +4 -2
- package/fesm2022/mintplayer-ng-bootstrap-dropdown-menu.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-dropdown.mjs +21 -7
- package/fesm2022/mintplayer-ng-bootstrap-dropdown.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-enhanced-paste.mjs +19 -14
- package/fesm2022/mintplayer-ng-bootstrap-enhanced-paste.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-enum.mjs +15 -12
- package/fesm2022/mintplayer-ng-bootstrap-enum.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-file-manager.mjs +3 -3
- package/fesm2022/mintplayer-ng-bootstrap-file-manager.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-file-upload.mjs +16 -6
- package/fesm2022/mintplayer-ng-bootstrap-file-upload.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-modal.mjs +21 -4
- package/fesm2022/mintplayer-ng-bootstrap-modal.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-offcanvas.mjs +26 -10
- package/fesm2022/mintplayer-ng-bootstrap-offcanvas.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-otp-input.mjs +4 -1
- package/fesm2022/mintplayer-ng-bootstrap-otp-input.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-pagination.mjs +2 -4
- package/fesm2022/mintplayer-ng-bootstrap-pagination.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-phone-input.mjs +8 -11
- package/fesm2022/mintplayer-ng-bootstrap-phone-input.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-priority-nav.mjs +73 -67
- package/fesm2022/mintplayer-ng-bootstrap-priority-nav.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-query-builder.mjs +4 -16
- package/fesm2022/mintplayer-ng-bootstrap-query-builder.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-radio.mjs +11 -22
- package/fesm2022/mintplayer-ng-bootstrap-radio.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-range.mjs +2 -4
- package/fesm2022/mintplayer-ng-bootstrap-range.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-resizable.mjs +188 -249
- package/fesm2022/mintplayer-ng-bootstrap-resizable.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-scheduler.mjs +64 -146
- package/fesm2022/mintplayer-ng-bootstrap-scheduler.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-scrollspy.mjs +37 -30
- package/fesm2022/mintplayer-ng-bootstrap-scrollspy.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-select.mjs +9 -25
- package/fesm2022/mintplayer-ng-bootstrap-select.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-signature-pad.mjs +2 -4
- package/fesm2022/mintplayer-ng-bootstrap-signature-pad.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-splitter.mjs +3 -0
- package/fesm2022/mintplayer-ng-bootstrap-splitter.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-tab-control.mjs +6 -6
- package/fesm2022/mintplayer-ng-bootstrap-tab-control.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-theming.mjs +150 -83
- package/fesm2022/mintplayer-ng-bootstrap-theming.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-tile-manager.mjs +3 -0
- package/fesm2022/mintplayer-ng-bootstrap-tile-manager.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-timeline.mjs +46 -44
- package/fesm2022/mintplayer-ng-bootstrap-timeline.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-timepicker.mjs +2 -4
- package/fesm2022/mintplayer-ng-bootstrap-timepicker.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-tooltip.mjs +63 -89
- package/fesm2022/mintplayer-ng-bootstrap-tooltip.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-tree-select.mjs +6 -14
- package/fesm2022/mintplayer-ng-bootstrap-tree-select.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-treeview.mjs +25 -56
- package/fesm2022/mintplayer-ng-bootstrap-treeview.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-typeahead.mjs +1 -0
- package/fesm2022/mintplayer-ng-bootstrap-typeahead.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-user-agent.mjs +47 -58
- package/fesm2022/mintplayer-ng-bootstrap-user-agent.mjs.map +1 -1
- package/package.json +2 -2
- package/types/mintplayer-ng-bootstrap-alert.d.ts +3 -1
- package/types/mintplayer-ng-bootstrap-button-type.d.ts +6 -6
- package/types/mintplayer-ng-bootstrap-calendar.d.ts +1 -1
- package/types/mintplayer-ng-bootstrap-carousel.d.ts +0 -1
- package/types/mintplayer-ng-bootstrap-charts-hierarchy.d.ts +1 -1
- package/types/mintplayer-ng-bootstrap-charts-sparkline.d.ts +1 -1
- package/types/mintplayer-ng-bootstrap-charts-trend.d.ts +1 -1
- package/types/mintplayer-ng-bootstrap-color-picker.d.ts +9 -3
- package/types/mintplayer-ng-bootstrap-context-menu.d.ts +8 -10
- package/types/mintplayer-ng-bootstrap-copy.d.ts +3 -1
- package/types/mintplayer-ng-bootstrap-datatable.d.ts +3 -4
- 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-menu.d.ts +3 -1
- package/types/mintplayer-ng-bootstrap-dropdown.d.ts +3 -0
- package/types/mintplayer-ng-bootstrap-enhanced-paste.d.ts +6 -1
- package/types/mintplayer-ng-bootstrap-enum.d.ts +17 -4
- package/types/mintplayer-ng-bootstrap-file-manager.d.ts +2 -3
- package/types/mintplayer-ng-bootstrap-file-upload.d.ts +7 -1
- package/types/mintplayer-ng-bootstrap-modal.d.ts +9 -1
- package/types/mintplayer-ng-bootstrap-offcanvas.d.ts +10 -1
- package/types/mintplayer-ng-bootstrap-otp-input.d.ts +1 -1
- package/types/mintplayer-ng-bootstrap-pagination.d.ts +1 -1
- package/types/mintplayer-ng-bootstrap-priority-nav.d.ts +1 -1
- package/types/mintplayer-ng-bootstrap-query-builder.d.ts +2 -3
- package/types/mintplayer-ng-bootstrap-resizable.d.ts +65 -31
- package/types/mintplayer-ng-bootstrap-scheduler.d.ts +27 -21
- package/types/mintplayer-ng-bootstrap-scrollspy.d.ts +18 -2
- package/types/mintplayer-ng-bootstrap-select.d.ts +1 -1
- package/types/mintplayer-ng-bootstrap-tab-control.d.ts +2 -2
- package/types/mintplayer-ng-bootstrap-theming.d.ts +86 -54
- package/types/mintplayer-ng-bootstrap-timeline.d.ts +27 -5
- package/types/mintplayer-ng-bootstrap-timepicker.d.ts +1 -1
- package/types/mintplayer-ng-bootstrap-tooltip.d.ts +18 -17
- package/types/mintplayer-ng-bootstrap-tree-select.d.ts +3 -4
- package/types/mintplayer-ng-bootstrap-treeview.d.ts +4 -4
- package/types/mintplayer-ng-bootstrap-user-agent.d.ts +13 -4
package/_bootstrap.scss
CHANGED
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
// --mp-color-mode (PRD dark-mode D6): the token component sheets query with
|
|
2
|
+
// `@container style(--mp-color-mode: dark)`. Must stay the first statement.
|
|
3
|
+
@use '@mintplayer/web-components/theming/color-mode.css';
|
|
1
4
|
// Import our own utilities
|
|
2
5
|
@import "bootstrap/scss/bootstrap-utilities.scss";
|
|
3
6
|
// CDK a11y utility styles: BsLiveAnnouncerService wraps CDK's LiveAnnouncer,
|
|
@@ -29,6 +32,13 @@
|
|
|
29
32
|
|
|
30
33
|
// Layout & components
|
|
31
34
|
|
|
35
|
+
// The [data-bs-theme=dark] token block below is pruned by Angular's critical-CSS
|
|
36
|
+
// inliner (beasties), because the static index.html carries no data-bs-theme.
|
|
37
|
+
// Beasties' include markers cannot keep it (PRD dark-mode D5c, measured): the
|
|
38
|
+
// production minifier strips plain comments, and beasties ignores the loud
|
|
39
|
+
// comment form that survives. Apps must therefore set
|
|
40
|
+
// optimization.styles.inlineCritical to false; see the ng demo's project.json
|
|
41
|
+
// and `nx run ng-bootstrap-demo:check-critical-css`.
|
|
32
42
|
@import "bootstrap/scss/root";
|
|
33
43
|
@import "bootstrap/scss/reboot";
|
|
34
44
|
@import "bootstrap/scss/type";
|
|
@@ -115,6 +115,9 @@ class BsAccordionComponent {
|
|
|
115
115
|
...(ngDevMode ? [{ debugName: "highlightActiveTab" }] : /* istanbul ignore next */ []));
|
|
116
116
|
this.tabPages = contentChildren(forwardRef(() => BsAccordionTabComponent), /* @ts-ignore */
|
|
117
117
|
...(ngDevMode ? [{ debugName: "tabPages" }] : /* istanbul ignore next */ []));
|
|
118
|
+
// Deliberately NOT viewChild.required: public methods read it, and a caller that reaches
|
|
119
|
+
// this component through DI (a child's constructor, say) can call one before this
|
|
120
|
+
// component's view exists. There, NG0951 would throw where the guard is a no-op.
|
|
118
121
|
this.element = viewChild('element', /* @ts-ignore */
|
|
119
122
|
...(ngDevMode ? [{ debugName: "element" }] : /* istanbul ignore next */ []));
|
|
120
123
|
this.multiAttr = computed(() => (this.multi() ? '' : null), /* @ts-ignore */
|
|
@@ -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 has to\n * end up as a direct child of `<mp-accordion>` (named slots accept nothing\n * else) while being authored inside the tab it belongs to. The parent\n * accordion renders each captured template into the matching header slot.\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} 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 * This host element IS the tab marker the web component reads: it carries\n * `accordion-tab`, its index slot and the tab's state, and its projected\n * children become the tab body. There is no separate `<mp-accordion-tab>`\n * here — an Angular component can only render inside its own host, which\n * would put that element one level too deep to be slotted.\n *\n * The header is declared with `*bsAccordionTabHeader` and rendered by the\n * parent accordion (see `BsAccordionComponent`).\n */\n@Component({\n selector: 'bs-accordion-tab',\n templateUrl: './accordion-tab.component.html',\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n 'accordion-tab': '',\n '[attr.slot]': '\"c\" + index()',\n '[attr.is-active]': 'isActive() ? \"\" : null',\n '[attr.disabled]': 'disabled() ? \"\" : null',\n },\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\n /** Position among its siblings — the tab's identity for slots and events. */\n readonly index = computed(() => this.accordion.tabPages().indexOf(this));\n\n /**\n * Open or close this tab through the web component, 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-content></ng-content>\n","import { NgTemplateOutlet } from '@angular/common';\nimport {\n ChangeDetectionStrategy,\n Component,\n computed,\n contentChildren,\n CUSTOM_ELEMENTS_SCHEMA,\n ElementRef,\n forwardRef,\n input,\n viewChild,\n} from '@angular/core';\n// Eager side-effect registration: the SSR chrome is injected as Declarative\n// Shadow DOM, so there is no unstyled window to protect by deferring.\nimport '@mintplayer/web-components/accordion';\nimport type { AccordionTabToggleDetail, MpAccordion } from '@mintplayer/web-components/accordion';\nimport { BsAccordionTabComponent } from '../accordion-tab/accordion-tab.component';\nimport { BsForwardAriaDirective } from '@mintplayer/ng-bootstrap/a11y';\n\n/**\n * `<bs-accordion>` — Angular wrapper around the `<mp-accordion>` web component.\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 * Each tab's header is HOISTED out of the tab and rendered here, as a sibling\n * of the tab's own marker element. Named slots only accept direct children of\n * the shadow host, and an Angular component can only render inside its own\n * host element — so a header authored inside `<bs-accordion-tab>` could never\n * reach the accordion's shadow on its own. `*bsAccordionTabHeader` captures it\n * as a template that this component renders in the right place.\n *\n * The WC owns interaction, ARIA, animation and the no-JS tier; this wrapper\n * bridges inputs to attributes and the toggle event back into each tab's\n * `isActive` model.\n */\n@Component({\n selector: 'bs-accordion',\n templateUrl: './accordion.component.html',\n styleUrls: ['./accordion.component.scss'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n imports: [BsForwardAriaDirective, NgTemplateOutlet],\n schemas: [CUSTOM_ELEMENTS_SCHEMA],\n})\nexport class BsAccordionComponent {\n /** Allow several tabs to stay open at once (checkbox machine with JS off). */\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 protected readonly element = viewChild<ElementRef<MpAccordion>>('element');\n\n protected readonly multiAttr = computed(() => (this.multi() ? '' : null));\n protected readonly highlightActiveTabAttr = computed(() =>\n this.highlightActiveTab() ? '' : null,\n );\n\n /** Close every open tab, and every accordion nested inside them. */\n closeAll(): void {\n this.element()?.nativeElement.closeAll();\n }\n\n /** Drive a tab through the WC so nested accordions collapse with it. */\n setActive(index: number, active: boolean): void {\n const accordion = this.element()?.nativeElement;\n if (active) accordion?.open(index);\n else accordion?.close(index);\n }\n\n protected onTabToggle(event: Event): void {\n // Nesting is the normal case here and the WC's event is composed, so a\n // descendant accordion's toggles pass straight through this host. Claim\n // only our own — then stop, since this accordion has already handled it.\n if (event.target !== this.element()?.nativeElement) return;\n event.stopPropagation();\n\n const detail = (event as CustomEvent<AccordionTabToggleDetail>).detail;\n this.tabPages()[detail.index]?.isActive.set(detail.active);\n }\n}\n","<mp-accordion bsForwardAria\n #element\n [attr.multi]=\"multiAttr()\"\n [attr.highlight-active-tab]=\"highlightActiveTabAttr()\"\n (mp-accordion-tab-toggle)=\"onTabToggle($event)\">\n @for (tab of tabPages(); track tab; let i = $index) {\n <span accordion-header [attr.slot]=\"'h' + i\">\n @if (tab.headerTemplate(); as header) {\n <ng-container [ngTemplateOutlet]=\"header.template\"></ng-container>\n }\n </span>\n }\n <ng-content></ng-content>\n</mp-accordion>\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,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;kGAA7B,6BAA6B,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,wBAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA,CAAA;;2FAA7B,6BAA6B,EAAA,UAAA,EAAA,CAAA;kBAHzC,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACT,oBAAA,QAAQ,EAAE,wBAAwB;AACnC,iBAAA;;;ACXD;;;;;;;;;;;AAWG;MAYU,uBAAuB,CAAA;AAXpC,IAAA,WAAA,GAAA;AAYW,QAAA,IAAA,CAAA,SAAS,GAAG,MAAM,CAAC,oBAAoB,CAAC;;QAGxC,IAAA,CAAA,QAAQ,GAAG,KAAK,CAAU,KAAK;qFAAC;QAChC,IAAA,CAAA,QAAQ,GAAG,KAAK,CAAU,KAAK;qFAAC;QAEhC,IAAA,CAAA,cAAc,GAAG,YAAY,CAAC,6BAA6B;2FAAC;;AAG5D,QAAA,IAAA,CAAA,KAAK,GAAG,QAAQ,CAAC,MAAM,IAAI,CAAC,SAAS,CAAC,QAAQ,EAAE,C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AAA;;2FAGvC,oBAAoB,EAAA,UAAA,EAAA,CAAA;kBARhC,SAAS;AACE,YAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,cAAc,EAAA,eAAA,EAGP,uBAAuB,CAAC,MAAM,EAAA,OAAA,EACtC,CAAC,sBAAsB,EAAE,gBAAgB,CAAC,EAAA,OAAA,EAC1C,CAAC,sBAAsB,CAAC,EAAA,QAAA,EAAA,2hBAAA,EAAA,MAAA,EAAA,CAAA,wBAAA,CAAA,EAAA;AAS/B,SAAA,CAAA,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,iEAGqB,SAAS,EAAA,EAAA,QAAA,EAAA,IAAA,EAAA,CAAA,EAAA,CAAA,EAAA,EAAA,CAAA;;AE1D3E;;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 has to\n * end up as a direct child of `<mp-accordion>` (named slots accept nothing\n * else) while being authored inside the tab it belongs to. The parent\n * accordion renders each captured template into the matching header slot.\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} 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 * This host element IS the tab marker the web component reads: it carries\n * `accordion-tab`, its index slot and the tab's state, and its projected\n * children become the tab body. There is no separate `<mp-accordion-tab>`\n * here — an Angular component can only render inside its own host, which\n * would put that element one level too deep to be slotted.\n *\n * The header is declared with `*bsAccordionTabHeader` and rendered by the\n * parent accordion (see `BsAccordionComponent`).\n */\n@Component({\n selector: 'bs-accordion-tab',\n templateUrl: './accordion-tab.component.html',\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n 'accordion-tab': '',\n '[attr.slot]': '\"c\" + index()',\n '[attr.is-active]': 'isActive() ? \"\" : null',\n '[attr.disabled]': 'disabled() ? \"\" : null',\n },\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\n /** Position among its siblings — the tab's identity for slots and events. */\n readonly index = computed(() => this.accordion.tabPages().indexOf(this));\n\n /**\n * Open or close this tab through the web component, 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-content></ng-content>\n","import { NgTemplateOutlet } from '@angular/common';\nimport {\n ChangeDetectionStrategy,\n Component,\n computed,\n contentChildren,\n CUSTOM_ELEMENTS_SCHEMA,\n ElementRef,\n forwardRef,\n input,\n viewChild,\n} from '@angular/core';\n// Eager side-effect registration: the SSR chrome is injected as Declarative\n// Shadow DOM, so there is no unstyled window to protect by deferring.\nimport '@mintplayer/web-components/accordion';\nimport type { AccordionTabToggleDetail, MpAccordion } from '@mintplayer/web-components/accordion';\nimport { BsAccordionTabComponent } from '../accordion-tab/accordion-tab.component';\nimport { BsForwardAriaDirective } from '@mintplayer/ng-bootstrap/a11y';\n\n/**\n * `<bs-accordion>` — Angular wrapper around the `<mp-accordion>` web component.\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 * Each tab's header is HOISTED out of the tab and rendered here, as a sibling\n * of the tab's own marker element. Named slots only accept direct children of\n * the shadow host, and an Angular component can only render inside its own\n * host element — so a header authored inside `<bs-accordion-tab>` could never\n * reach the accordion's shadow on its own. `*bsAccordionTabHeader` captures it\n * as a template that this component renders in the right place.\n *\n * The WC owns interaction, ARIA, animation and the no-JS tier; this wrapper\n * bridges inputs to attributes and the toggle event back into each tab's\n * `isActive` model.\n */\n@Component({\n selector: 'bs-accordion',\n templateUrl: './accordion.component.html',\n styleUrls: ['./accordion.component.scss'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n imports: [BsForwardAriaDirective, NgTemplateOutlet],\n schemas: [CUSTOM_ELEMENTS_SCHEMA],\n})\nexport class BsAccordionComponent {\n /** Allow several tabs to stay open at once (checkbox machine with JS off). */\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 // Deliberately NOT viewChild.required: public methods read it, and a caller that reaches\n // this component through DI (a child's constructor, say) can call one before this\n // component's view exists. There, NG0951 would throw where the guard is a no-op.\n protected readonly element = viewChild<ElementRef<MpAccordion>>('element');\n\n protected readonly multiAttr = computed(() => (this.multi() ? '' : null));\n protected readonly highlightActiveTabAttr = computed(() =>\n this.highlightActiveTab() ? '' : null,\n );\n\n /** Close every open tab, and every accordion nested inside them. */\n closeAll(): void {\n this.element()?.nativeElement.closeAll();\n }\n\n /** Drive a tab through the WC so nested accordions collapse with it. */\n setActive(index: number, active: boolean): void {\n const accordion = this.element()?.nativeElement;\n if (active) accordion?.open(index);\n else accordion?.close(index);\n }\n\n protected onTabToggle(event: Event): void {\n // Nesting is the normal case here and the WC's event is composed, so a\n // descendant accordion's toggles pass straight through this host. Claim\n // only our own — then stop, since this accordion has already handled it.\n if (event.target !== this.element()?.nativeElement) return;\n event.stopPropagation();\n\n const detail = (event as CustomEvent<AccordionTabToggleDetail>).detail;\n this.tabPages()[detail.index]?.isActive.set(detail.active);\n }\n}\n","<mp-accordion bsForwardAria\n #element\n [attr.multi]=\"multiAttr()\"\n [attr.highlight-active-tab]=\"highlightActiveTabAttr()\"\n (mp-accordion-tab-toggle)=\"onTabToggle($event)\">\n @for (tab of tabPages(); track tab; let i = $index) {\n <span accordion-header [attr.slot]=\"'h' + i\">\n @if (tab.headerTemplate(); as header) {\n <ng-container [ngTemplateOutlet]=\"header.template\"></ng-container>\n }\n </span>\n }\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,sBAAsB,CAAC,EAAA,QAAA,EAAA,2hBAAA,EAAA,MAAA,EAAA,CAAA,wBAAA,CAAA,EAAA;AAS/B,SAAA,CAAA,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,iEAMqB,SAAS,EAAA,EAAA,QAAA,EAAA,IAAA,EAAA,CAAA,EAAA,CAAA,EAAA,EAAA,CAAA;;AE7D3E;;AAEG;;;;"}
|
|
@@ -50,6 +50,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImpor
|
|
|
50
50
|
class BsAlertCloseComponent {
|
|
51
51
|
constructor() {
|
|
52
52
|
this.alert = inject(BsAlertComponent);
|
|
53
|
+
/** Accessible name of the icon-only close button. Override to translate. */
|
|
54
|
+
this.ariaLabel = input('Close', /* @ts-ignore */
|
|
55
|
+
...(ngDevMode ? [{ debugName: "ariaLabel" }] : /* istanbul ignore next */ []));
|
|
53
56
|
}
|
|
54
57
|
closeAlert() {
|
|
55
58
|
// Order matters: the rescue must read focus while the button still exists.
|
|
@@ -58,12 +61,12 @@ class BsAlertCloseComponent {
|
|
|
58
61
|
return false;
|
|
59
62
|
}
|
|
60
63
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsAlertCloseComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
61
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "
|
|
64
|
+
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 }); }
|
|
62
65
|
}
|
|
63
66
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsAlertCloseComponent, decorators: [{
|
|
64
67
|
type: Component,
|
|
65
|
-
args: [{ selector: 'bs-alert-close', changeDetection: ChangeDetectionStrategy.OnPush, template: "<button class=\"btn float-end\" (click)=\"closeAlert()\">\n <span class=\"text-dark\">\u00D7</span>\n</button
|
|
66
|
-
}] });
|
|
68
|
+
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"] }]
|
|
69
|
+
}], propDecorators: { ariaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaLabel", required: false }] }] } });
|
|
67
70
|
|
|
68
71
|
/**
|
|
69
72
|
* Generated bundle index. Do not edit.
|
|
@@ -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, 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 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 class=\"btn float-end\" (click)=\"closeAlert()\">\n <span class=\"text-dark\">×</span>\n</button
|
|
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":";;;;;MAWa,gBAAgB,CAAA;AAP7B,IAAA,WAAA,GAAA;AASU,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,IAAA,CAAA,mBAAmB,GAAG,MAAM,EAAW;AASxC,IAAA;AA7BC;;;;;AAKG;IACH,WAAW,GAAA;AACT,QAAA,MAAM,IAAI,GAAG,IAAI,CAAC,OAAO,CAAC,aAA4B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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,22 +1,20 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { input,
|
|
2
|
+
import { input, computed, Directive } from '@angular/core';
|
|
3
3
|
import { Color } from '@mintplayer/ng-bootstrap';
|
|
4
4
|
|
|
5
5
|
class BsButtonTypeDirective {
|
|
6
6
|
constructor() {
|
|
7
|
-
this.buttonClass = 'btn-transparent';
|
|
8
7
|
this.color = input(undefined, /* @ts-ignore */
|
|
9
8
|
...(ngDevMode ? [{ debugName: "color" }] : /* istanbul ignore next */ []));
|
|
10
|
-
effect
|
|
9
|
+
/** Derived, not written from an effect: clearing the colour must restore the transparent style. */
|
|
10
|
+
this.buttonClass = computed(() => {
|
|
11
11
|
const value = this.color();
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
}
|
|
16
|
-
});
|
|
12
|
+
return value === undefined ? 'btn-transparent' : `btn-${Color[value]}`;
|
|
13
|
+
}, /* @ts-ignore */
|
|
14
|
+
...(ngDevMode ? [{ debugName: "buttonClass" }] : /* istanbul ignore next */ []));
|
|
17
15
|
}
|
|
18
16
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsButtonTypeDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
19
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "22.0.8", type: BsButtonTypeDirective, isStandalone: true, selector: "button[color],input[type=\"button\"][color],input[type=\"submit\"][color],a[color]", inputs: { color: { classPropertyName: "color", publicName: "color", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class.btn": "true", "class": "buttonClass" } }, ngImport: i0 }); }
|
|
17
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "22.0.8", type: BsButtonTypeDirective, isStandalone: true, selector: "button[color],input[type=\"button\"][color],input[type=\"submit\"][color],a[color]", inputs: { color: { classPropertyName: "color", publicName: "color", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class.btn": "true", "class": "buttonClass()" } }, ngImport: i0 }); }
|
|
20
18
|
}
|
|
21
19
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsButtonTypeDirective, decorators: [{
|
|
22
20
|
type: Directive,
|
|
@@ -24,10 +22,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImpor
|
|
|
24
22
|
selector: 'button[color],input[type="button"][color],input[type="submit"][color],a[color]',
|
|
25
23
|
host: {
|
|
26
24
|
'[class.btn]': 'true',
|
|
27
|
-
'[class]': 'buttonClass',
|
|
25
|
+
'[class]': 'buttonClass()',
|
|
28
26
|
},
|
|
29
27
|
}]
|
|
30
|
-
}],
|
|
28
|
+
}], propDecorators: { color: [{ type: i0.Input, args: [{ isSignal: true, alias: "color", required: false }] }] } });
|
|
31
29
|
|
|
32
30
|
/**
|
|
33
31
|
* Generated bundle index. Do not edit.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mintplayer-ng-bootstrap-button-type.mjs","sources":["../../../../libs/mintplayer-ng-bootstrap/button-type/src/button-type/button-type.directive.ts","../../../../libs/mintplayer-ng-bootstrap/button-type/mintplayer-ng-bootstrap-button-type.ts"],"sourcesContent":["import {
|
|
1
|
+
{"version":3,"file":"mintplayer-ng-bootstrap-button-type.mjs","sources":["../../../../libs/mintplayer-ng-bootstrap/button-type/src/button-type/button-type.directive.ts","../../../../libs/mintplayer-ng-bootstrap/button-type/mintplayer-ng-bootstrap-button-type.ts"],"sourcesContent":["import { computed, Directive, input } from '@angular/core';\nimport { Color } from '@mintplayer/ng-bootstrap';\n\n@Directive({\n selector: 'button[color],input[type=\"button\"][color],input[type=\"submit\"][color],a[color]',\n host: {\n '[class.btn]': 'true',\n '[class]': 'buttonClass()',\n },\n})\nexport class BsButtonTypeDirective {\n readonly color = input<Color | undefined>(undefined);\n\n /** Derived, not written from an effect: clearing the colour must restore the transparent style. */\n readonly buttonClass = computed(() => {\n const value = this.color();\n return value === undefined ? 'btn-transparent' : `btn-${Color[value]}`;\n });\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;MAUa,qBAAqB,CAAA;AAPlC,IAAA,WAAA,GAAA;QAQW,IAAA,CAAA,KAAK,GAAG,KAAK,CAAoB,SAAS;kFAAC;;AAG3C,QAAA,IAAA,CAAA,WAAW,GAAG,QAAQ,CAAC,MAAK;AACnC,YAAA,MAAM,KAAK,GAAG,IAAI,CAAC,KAAK,EAAE;AAC1B,YAAA,OAAO,KAAK,KAAK,SAAS,GAAG,iBAAiB,GAAG,OAAO,KAAK,CAAC,KAAK,CAAC,EAAE;QACxE,CAAC;wFAAC;AACH,IAAA;8GARY,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,oFAAA,EAAA,MAAA,EAAA,EAAA,KAAA,EAAA,EAAA,iBAAA,EAAA,OAAA,EAAA,UAAA,EAAA,OAAA,EAAA,QAAA,EAAA,IAAA,EAAA,UAAA,EAAA,KAAA,EAAA,iBAAA,EAAA,IAAA,EAAA,EAAA,EAAA,IAAA,EAAA,EAAA,UAAA,EAAA,EAAA,WAAA,EAAA,MAAA,EAAA,OAAA,EAAA,eAAA,EAAA,EAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA,CAAA;;2FAArB,qBAAqB,EAAA,UAAA,EAAA,CAAA;kBAPjC,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACT,oBAAA,QAAQ,EAAE,gFAAgF;AAC1F,oBAAA,IAAI,EAAE;AACJ,wBAAA,aAAa,EAAE,MAAM;AACrB,wBAAA,SAAS,EAAE,eAAe;AAC3B,qBAAA;AACF,iBAAA;;;ACTD;;AAEG;;;;"}
|
|
@@ -22,13 +22,11 @@ class BsCalendarComponent {
|
|
|
22
22
|
...(ngDevMode ? [{ debugName: "firstDayOfWeek" }] : /* istanbul ignore next */ []));
|
|
23
23
|
this.locale = input(undefined, /* @ts-ignore */
|
|
24
24
|
...(ngDevMode ? [{ debugName: "locale" }] : /* istanbul ignore next */ []));
|
|
25
|
-
this.wcRef = viewChild('wc', /* @ts-ignore */
|
|
25
|
+
this.wcRef = viewChild.required('wc', /* @ts-ignore */
|
|
26
26
|
...(ngDevMode ? [{ debugName: "wcRef" }] : /* istanbul ignore next */ []));
|
|
27
27
|
// Sync Angular signal state into the WC properties on every change.
|
|
28
28
|
effect(() => {
|
|
29
|
-
const wc = this.wcRef()
|
|
30
|
-
if (!wc)
|
|
31
|
-
return;
|
|
29
|
+
const wc = this.wcRef().nativeElement;
|
|
32
30
|
wc.selectedDate = this.selectedDate();
|
|
33
31
|
wc.currentMonth = this.currentMonth();
|
|
34
32
|
wc.disableDateFn = this.disableDateFn() ?? null;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mintplayer-ng-bootstrap-calendar.mjs","sources":["../../../../libs/mintplayer-ng-bootstrap/calendar/src/calendar.component.ts","../../../../libs/mintplayer-ng-bootstrap/calendar/src/calendar.component.html","../../../../libs/mintplayer-ng-bootstrap/calendar/mintplayer-ng-bootstrap-calendar.ts"],"sourcesContent":["import {\n AfterViewInit,\n ChangeDetectionStrategy,\n Component,\n CUSTOM_ELEMENTS_SCHEMA,\n effect,\n ElementRef,\n input,\n model,\n viewChild,\n} from '@angular/core';\nimport { FirstDayOfWeek, MpCalendarElement } from '@mintplayer/web-components/calendar';\n\n// Side-effect: registers <mp-calendar>. Importing the element class is enough —\n// the file calls customElements.define() on load.\nvoid MpCalendarElement;\n\n@Component({\n selector: 'bs-calendar',\n templateUrl: './calendar.component.html',\n styleUrls: ['./calendar.component.scss'],\n schemas: [CUSTOM_ELEMENTS_SCHEMA],\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class BsCalendarComponent implements AfterViewInit {\n currentMonth = model<Date>(new Date());\n selectedDate = model<Date>(new Date());\n disableDateFn = input<((date: Date) => boolean) | undefined>(undefined);\n min = input<Date | undefined>(undefined);\n max = input<Date | undefined>(undefined);\n firstDayOfWeek = input<FirstDayOfWeek>(1);\n locale = input<string | undefined>(undefined);\n\n readonly wcRef = viewChild<ElementRef<MpCalendarElement>>('wc');\n\n constructor() {\n // Sync Angular signal state into the WC properties on every change.\n effect(() => {\n const wc = this.wcRef()
|
|
1
|
+
{"version":3,"file":"mintplayer-ng-bootstrap-calendar.mjs","sources":["../../../../libs/mintplayer-ng-bootstrap/calendar/src/calendar.component.ts","../../../../libs/mintplayer-ng-bootstrap/calendar/src/calendar.component.html","../../../../libs/mintplayer-ng-bootstrap/calendar/mintplayer-ng-bootstrap-calendar.ts"],"sourcesContent":["import {\n AfterViewInit,\n ChangeDetectionStrategy,\n Component,\n CUSTOM_ELEMENTS_SCHEMA,\n effect,\n ElementRef,\n input,\n model,\n viewChild,\n} from '@angular/core';\nimport { FirstDayOfWeek, MpCalendarElement } from '@mintplayer/web-components/calendar';\n\n// Side-effect: registers <mp-calendar>. Importing the element class is enough —\n// the file calls customElements.define() on load.\nvoid MpCalendarElement;\n\n@Component({\n selector: 'bs-calendar',\n templateUrl: './calendar.component.html',\n styleUrls: ['./calendar.component.scss'],\n schemas: [CUSTOM_ELEMENTS_SCHEMA],\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class BsCalendarComponent implements AfterViewInit {\n currentMonth = model<Date>(new Date());\n selectedDate = model<Date>(new Date());\n disableDateFn = input<((date: Date) => boolean) | undefined>(undefined);\n min = input<Date | undefined>(undefined);\n max = input<Date | undefined>(undefined);\n firstDayOfWeek = input<FirstDayOfWeek>(1);\n locale = input<string | undefined>(undefined);\n\n readonly wcRef = viewChild.required<ElementRef<MpCalendarElement>>('wc');\n\n constructor() {\n // Sync Angular signal state into the WC properties on every change.\n effect(() => {\n const wc = this.wcRef().nativeElement;\n wc.selectedDate = this.selectedDate();\n wc.currentMonth = this.currentMonth();\n wc.disableDateFn = this.disableDateFn() ?? null;\n wc.min = this.min() ?? null;\n wc.max = this.max() ?? null;\n wc.firstDayOfWeek = this.firstDayOfWeek();\n wc.locale = this.locale();\n // SSR / pre-upgrade: requestUpdate only exists after customElements has\n // registered the Lit class. The DOM element is the upgrade target but\n // may still be a plain HTMLElement at the first effect tick.\n wc.requestUpdate?.();\n });\n }\n\n ngAfterViewInit(): void {\n // Initial sync happens via effect once the view child resolves.\n }\n\n onSelectedDateChange(event: Event): void {\n const detail = (event as CustomEvent<Date>).detail;\n if (detail instanceof Date) this.selectedDate.set(detail);\n }\n\n onCurrentMonthChange(event: Event): void {\n const detail = (event as CustomEvent<Date>).detail;\n if (detail instanceof Date) this.currentMonth.set(detail);\n }\n}\n","<mp-calendar\n #wc\n (selected-date-change)=\"onSelectedDateChange($event)\"\n (current-month-change)=\"onCurrentMonthChange($event)\">\n</mp-calendar>\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;AAaA;AACA;AACA,KAAK,iBAAiB;MAST,mBAAmB,CAAA;AAW9B,IAAA,WAAA,GAAA;AAVA,QAAA,IAAA,CAAA,YAAY,GAAG,KAAK,CAAO,IAAI,IAAI,E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AC,MAAM,CAAC;IAC3D;AAEA,IAAA,oBAAoB,CAAC,KAAY,EAAA;AAC/B,QAAA,MAAM,MAAM,GAAI,KAA2B,CAAC,MAAM;QAClD,IAAI,MAAM,YAAY,IAAI;AAAE,YAAA,IAAI,CAAC,YAAY,CAAC,GAAG,CAAC,MAAM,CAAC;IAC3D;8GAzCW,mBAAmB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;AAAnB,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,IAAA,EAAA,mBAAmB,irCCxBhC,8JAKA,EAAA,MAAA,EAAA,CAAA,EAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,CAAA,CAAA;;2FDmBa,mBAAmB,EAAA,UAAA,EAAA,CAAA;kBAP/B,SAAS;AACE,YAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,aAAa,WAGd,CAAC,sBAAsB,CAAC,EAAA,eAAA,EAChB,uBAAuB,CAAC,MAAM,EAAA,QAAA,EAAA,8JAAA,EAAA;i3BAWoB,IAAI,EAAA,EAAA,QAAA,EAAA,IAAA,EAAA,CAAA,EAAA,CAAA,EAAA,EAAA,CAAA;;AEjCzE;;AAEG;;;;"}
|
|
@@ -43,7 +43,6 @@ class BsCarouselComponent {
|
|
|
43
43
|
/** Arrow/Home/End navigation on the focused viewport. */
|
|
44
44
|
this.keyboardEvents = input(true, /* @ts-ignore */
|
|
45
45
|
...(ngDevMode ? [{ debugName: "keyboardEvents" }] : /* istanbul ignore next */ []));
|
|
46
|
-
/** Accessible label for the carousel region. */
|
|
47
46
|
/** Two-way: whether autoplay is paused. */
|
|
48
47
|
this.paused = model(false, /* @ts-ignore */
|
|
49
48
|
...(ngDevMode ? [{ debugName: "paused" }] : /* istanbul ignore next */ []));
|
|
@@ -51,6 +50,9 @@ class BsCarouselComponent {
|
|
|
51
50
|
this.slideChange = output();
|
|
52
51
|
this.animationStart = output();
|
|
53
52
|
this.animationEnd = output();
|
|
53
|
+
// Deliberately NOT viewChild.required: public methods read it, and a caller that reaches
|
|
54
|
+
// this component through DI (a child's constructor, say) can call one before this
|
|
55
|
+
// component's view exists. There, NG0951 would throw where the guard is a no-op.
|
|
54
56
|
this.element = viewChild('element', /* @ts-ignore */
|
|
55
57
|
...(ngDevMode ? [{ debugName: "element" }] : /* istanbul ignore next */ []));
|
|
56
58
|
/** Presence/string-or-absent attributes derived once via signals. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mintplayer-ng-bootstrap-carousel.mjs","sources":["../../../../libs/mintplayer-ng-bootstrap/carousel/src/carousel/carousel.component.ts","../../../../libs/mintplayer-ng-bootstrap/carousel/src/carousel/carousel.component.html","../../../../libs/mintplayer-ng-bootstrap/carousel/mintplayer-ng-bootstrap-carousel.ts"],"sourcesContent":["import {\n afterNextRender,\n ChangeDetectionStrategy,\n Component,\n computed,\n CUSTOM_ELEMENTS_SCHEMA,\n ElementRef,\n input,\n model,\n output,\n viewChild,\n} from '@angular/core';\nimport type {\n CarouselAnimation,\n CarouselOrientation,\n CarouselPausedChangeEventDetail,\n CarouselSlideChangeEventDetail,\n MpCarousel,\n} from '@mintplayer/web-components/carousel';\nimport { BsForwardAriaDirective } from '@mintplayer/ng-bootstrap/a11y';\n\n/**\n * `<bs-carousel>` — Angular wrapper around the `<mp-carousel>` web component.\n *\n * Slides are plain content children (no structural directive):\n *\n * <bs-carousel animation=\"fade\" [indicators]=\"true\" [interval]=\"4000\" aria-label=\"Photos\">\n * <img src=\"a.png\" alt=\"…\">\n * <img src=\"b.png\" alt=\"…\">\n * </bs-carousel>\n *\n * Track layout, gestures, keyboard, ARIA, the radio-driven no-JS tier and the\n * height contract all live in the WC (single source of UI truth); this wrapper\n * only bridges inputs to attributes and re-emits the WC's typed events. A\n * custom play/pause control can be projected with `slot=\"play-pause\"` — wire\n * it to `togglePaused()` (or listen to `pausedChange`).\n *\n * The WC is registered **client-side only** (`afterNextRender`); on the server\n * Angular emits a bare `<mp-carousel>` tag and the SSR layer injects its\n * Declarative Shadow DOM (see `injectMpCarouselDsd`), so the carousel renders\n * — and navigates — with JS off.\n */\n@Component({\n selector: 'bs-carousel',\n templateUrl: './carousel.component.html',\n imports: [BsForwardAriaDirective],\n changeDetection: ChangeDetectionStrategy.OnPush,\n schemas: [CUSTOM_ELEMENTS_SCHEMA],\n})\nexport class BsCarouselComponent {\n /** Slide transition: `slide` (default), `fade`, or `none`. */\n readonly animation = input<CarouselAnimation>('slide');\n /** Slide axis; vertical also pins every slide to the tallest one. */\n readonly orientation = input<CarouselOrientation>('horizontal');\n /** Show the indicator dots. */\n readonly indicators = input(false);\n /** Auto-advance interval in ms; `null`/`0` disables autoplay. */\n readonly interval = input<number | null>(null);\n /** Wrap around at the ends (buttons, keyboard AND swipe). */\n readonly wrap = input(true);\n /** Arrow/Home/End navigation on the focused viewport. */\n readonly keyboardEvents = input(true);\n /**
|
|
1
|
+
{"version":3,"file":"mintplayer-ng-bootstrap-carousel.mjs","sources":["../../../../libs/mintplayer-ng-bootstrap/carousel/src/carousel/carousel.component.ts","../../../../libs/mintplayer-ng-bootstrap/carousel/src/carousel/carousel.component.html","../../../../libs/mintplayer-ng-bootstrap/carousel/mintplayer-ng-bootstrap-carousel.ts"],"sourcesContent":["import {\n afterNextRender,\n ChangeDetectionStrategy,\n Component,\n computed,\n CUSTOM_ELEMENTS_SCHEMA,\n ElementRef,\n input,\n model,\n output,\n viewChild,\n} from '@angular/core';\nimport type {\n CarouselAnimation,\n CarouselOrientation,\n CarouselPausedChangeEventDetail,\n CarouselSlideChangeEventDetail,\n MpCarousel,\n} from '@mintplayer/web-components/carousel';\nimport { BsForwardAriaDirective } from '@mintplayer/ng-bootstrap/a11y';\n\n/**\n * `<bs-carousel>` — Angular wrapper around the `<mp-carousel>` web component.\n *\n * Slides are plain content children (no structural directive):\n *\n * <bs-carousel animation=\"fade\" [indicators]=\"true\" [interval]=\"4000\" aria-label=\"Photos\">\n * <img src=\"a.png\" alt=\"…\">\n * <img src=\"b.png\" alt=\"…\">\n * </bs-carousel>\n *\n * Track layout, gestures, keyboard, ARIA, the radio-driven no-JS tier and the\n * height contract all live in the WC (single source of UI truth); this wrapper\n * only bridges inputs to attributes and re-emits the WC's typed events. A\n * custom play/pause control can be projected with `slot=\"play-pause\"` — wire\n * it to `togglePaused()` (or listen to `pausedChange`).\n *\n * The WC is registered **client-side only** (`afterNextRender`); on the server\n * Angular emits a bare `<mp-carousel>` tag and the SSR layer injects its\n * Declarative Shadow DOM (see `injectMpCarouselDsd`), so the carousel renders\n * — and navigates — with JS off.\n */\n@Component({\n selector: 'bs-carousel',\n templateUrl: './carousel.component.html',\n imports: [BsForwardAriaDirective],\n changeDetection: ChangeDetectionStrategy.OnPush,\n schemas: [CUSTOM_ELEMENTS_SCHEMA],\n})\nexport class BsCarouselComponent {\n /** Slide transition: `slide` (default), `fade`, or `none`. */\n readonly animation = input<CarouselAnimation>('slide');\n /** Slide axis; vertical also pins every slide to the tallest one. */\n readonly orientation = input<CarouselOrientation>('horizontal');\n /** Show the indicator dots. */\n readonly indicators = input(false);\n /** Auto-advance interval in ms; `null`/`0` disables autoplay. */\n readonly interval = input<number | null>(null);\n /** Wrap around at the ends (buttons, keyboard AND swipe). */\n readonly wrap = input(true);\n /** Arrow/Home/End navigation on the focused viewport. */\n readonly keyboardEvents = input(true);\n /** Two-way: whether autoplay is paused. */\n readonly paused = model(false);\n\n /** The committed slide index changed. */\n readonly slideChange = output<number>();\n readonly animationStart = output<void>();\n readonly animationEnd = output<void>();\n\n // Deliberately NOT viewChild.required: public methods read it, and a caller that reaches\n // this component through DI (a child's constructor, say) can call one before this\n // component's view exists. There, NG0951 would throw where the guard is a no-op.\n protected readonly element = viewChild<ElementRef<MpCarousel>>('element');\n\n /** Presence/string-or-absent attributes derived once via signals. */\n protected readonly indicatorsAttr = computed(() => (this.indicators() ? '' : null));\n protected readonly intervalAttr = computed(() => {\n const value = this.interval();\n return value && value > 0 ? String(value) : null;\n });\n protected readonly wrapAttr = computed(() => (this.wrap() ? null : 'false'));\n protected readonly keyboardEventsAttr = computed(() => (this.keyboardEvents() ? null : 'false'));\n protected readonly pausedAttr = computed(() => (this.paused() ? '' : null));\n\n constructor() {\n afterNextRender(() => {\n // Side-effect import registers <mp-carousel>; client-only so SSR stays\n // a bare tag for DSD injection.\n import('@mintplayer/web-components/carousel');\n });\n }\n\n previous(): void {\n this.element()?.nativeElement.previous?.();\n }\n\n next(): void {\n this.element()?.nativeElement.next?.();\n }\n\n goto(index: number): void {\n this.element()?.nativeElement.goto?.(index);\n }\n\n play(): void {\n this.paused.set(false);\n }\n\n pause(): void {\n this.paused.set(true);\n }\n\n togglePaused = (): void => {\n this.paused.set(!this.paused());\n };\n\n protected onSlideChange(event: Event) {\n // stopPropagation so the composed WC event doesn't ALSO fire the\n // consumer's binding on the <bs-carousel> host with the raw CustomEvent.\n event.stopPropagation();\n this.slideChange.emit((event as CustomEvent<CarouselSlideChangeEventDetail>).detail.index);\n }\n\n protected onPausedChange(event: Event) {\n event.stopPropagation();\n this.paused.set((event as CustomEvent<CarouselPausedChangeEventDetail>).detail.paused);\n }\n\n protected onAnimationStart(event: Event) {\n event.stopPropagation();\n this.animationStart.emit();\n }\n\n protected onAnimationEnd(event: Event) {\n event.stopPropagation();\n this.animationEnd.emit();\n }\n}\n","<mp-carousel bsForwardAria\n #element\n [attr.animation]=\"animation()\"\n [attr.orientation]=\"orientation()\"\n [attr.indicators]=\"indicatorsAttr()\"\n [attr.interval]=\"intervalAttr()\"\n [attr.wrap]=\"wrapAttr()\"\n [attr.keyboard-events]=\"keyboardEventsAttr()\"\n [attr.paused]=\"pausedAttr()\"\n (slide-change)=\"onSlideChange($event)\"\n (paused-change)=\"onPausedChange($event)\"\n (animation-start)=\"onAnimationStart($event)\"\n (animation-end)=\"onAnimationEnd($event)\">\n <ng-content></ng-content>\n</mp-carousel>\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;AAqBA;;;;;;;;;;;;;;;;;;;;AAoBG;MAQU,mBAAmB,CAAA;AAoC9B,IAAA,WAAA,GAAA;;QAlCS,IAAA,CAAA,SAAS,GAAG,KAAK,CAAoB,OAAO;sFAAC;;QAE7C,IAAA,CAAA,WAAW,GAAG,KAAK,CAAsB,YAAY;wFAAC;;QAEtD,IAAA,CAAA,UAAU,GAAG,KAAK,CAAC,KAAK;uFAAC;;QAEzB,IAAA,CAAA,QAAQ,GAAG,KAAK,CAAgB,IAAI;qFAAC;;QAErC,IAAA,CAAA,IAAI,GAAG,KAAK,CAAC,IAAI;iFAAC;;QAElB,IAAA,CAAA,cAAc,GAAG,KAAK,CAAC,IAAI;2FAAC;;QAE5B,IAAA,CAAA,MAAM,GAAG,KAAK,CAAC,KAAK;mFAAC;;QAGrB,IAAA,CAAA,WAAW,GAAG,MAAM,EAAU;QAC9B,IAAA,CAAA,cAAc,GAAG,MAAM,EAAQ;QAC/B,IAAA,CAAA,YAAY,GAAG,MAAM,EAAQ;;;;QAKnB,IAAA,CAAA,OAAO,GAAG,SAAS,CAAyB,SAAS;oFAAC;;AAGtD,QAAA,IAAA,CAAA,cAAc,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,UAAU,EAAE,GAAG,EAAE,GAAG,IAAI,CAAC;2FAAC;AAChE,QAAA,IAAA,CAAA,YAAY,GAAG,QAAQ,CAAC,MAAK;AAC9C,YAAA,MAAM,KAAK,GAAG,IAAI,CAAC,QAAQ,EAAE;AAC7B,YAAA,OAAO,KAAK,IAAI,KAAK,GAAG,CAAC,GAAG,MAAM,CAAC,KAAK,CAAC,GAAG,IAAI;QAClD,CAAC;yFAAC;AACiB,QAAA,IAAA,CAAA,QAAQ,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,IAAI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.nodeLoadError = output();
|
|
75
|
-
this.chartRef = viewChild('chart', /* @ts-ignore */
|
|
75
|
+
this.chartRef = viewChild.required('chart', /* @ts-ignore */
|
|
76
76
|
...(ngDevMode ? [{ debugName: "chartRef" }] : /* istanbul ignore next */ []));
|
|
77
77
|
// One effect per input, deliberately: a `data` write must not re-fire on
|
|
78
78
|
// every zoom tick and vice versa.
|
|
79
|
-
effect(() => { const el = this.chartRef()
|
|
80
|
-
|
|
81
|
-
effect(() => { const el = this.chartRef()
|
|
82
|
-
el.layout = this.layout(); });
|
|
83
|
-
effect(() => { const el = this.chartRef()?.nativeElement; if (el)
|
|
84
|
-
el.rootId = this.rootId(); });
|
|
79
|
+
effect(() => { const el = this.chartRef().nativeElement; el.data = this.data(); });
|
|
80
|
+
effect(() => { const el = this.chartRef().nativeElement; el.layout = this.layout(); });
|
|
81
|
+
effect(() => { const el = this.chartRef().nativeElement; el.rootId = this.rootId(); });
|
|
85
82
|
effect(() => {
|
|
86
|
-
const el = this.chartRef()
|
|
83
|
+
const el = this.chartRef().nativeElement;
|
|
87
84
|
const depth = this.maxDepth();
|
|
88
|
-
if (
|
|
85
|
+
if (depth !== undefined)
|
|
89
86
|
el.maxDepth = depth;
|
|
90
87
|
});
|
|
91
|
-
effect(() => { const el = this.chartRef()
|
|
92
|
-
|
|
93
|
-
effect(() => { const el = this.chartRef()
|
|
94
|
-
|
|
95
|
-
effect(() => { const el = this.chartRef()
|
|
96
|
-
|
|
97
|
-
effect(() => { const el = this.chartRef()?.nativeElement; if (el)
|
|
98
|
-
el.labelFontSize = this.labelFontSize(); });
|
|
99
|
-
effect(() => { const el = this.chartRef()?.nativeElement; if (el)
|
|
100
|
-
el.backdrop = this.backdrop(); });
|
|
101
|
-
effect(() => { const el = this.chartRef()?.nativeElement; if (el)
|
|
102
|
-
el.zoomGestures = this.zoomGestures(); });
|
|
88
|
+
effect(() => { const el = this.chartRef().nativeElement; el.minAngle = this.minAngle(); });
|
|
89
|
+
effect(() => { const el = this.chartRef().nativeElement; el.minSize = this.minSize(); });
|
|
90
|
+
effect(() => { const el = this.chartRef().nativeElement; el.showLabels = this.showLabels(); });
|
|
91
|
+
effect(() => { const el = this.chartRef().nativeElement; el.labelFontSize = this.labelFontSize(); });
|
|
92
|
+
effect(() => { const el = this.chartRef().nativeElement; el.backdrop = this.backdrop(); });
|
|
93
|
+
effect(() => { const el = this.chartRef().nativeElement; el.zoomGestures = this.zoomGestures(); });
|
|
103
94
|
effect(() => {
|
|
104
|
-
const el = this.chartRef()
|
|
95
|
+
const el = this.chartRef().nativeElement;
|
|
105
96
|
const label = this.zoomHintLabel();
|
|
106
|
-
if (
|
|
97
|
+
if (label !== undefined)
|
|
107
98
|
el.zoomHintLabel = label;
|
|
108
99
|
});
|
|
109
|
-
effect(() => { const el = this.chartRef()
|
|
110
|
-
el.showBreadcrumb = this.showBreadcrumb(); });
|
|
100
|
+
effect(() => { const el = this.chartRef().nativeElement; el.showBreadcrumb = this.showBreadcrumb(); });
|
|
111
101
|
effect(() => {
|
|
112
|
-
const el = this.chartRef()
|
|
102
|
+
const el = this.chartRef().nativeElement;
|
|
113
103
|
const label = this.breadcrumbLabel();
|
|
114
|
-
if (
|
|
104
|
+
if (label !== undefined)
|
|
115
105
|
el.breadcrumbLabel = label;
|
|
116
106
|
});
|
|
117
|
-
effect(() => { const el = this.chartRef()
|
|
118
|
-
|
|
119
|
-
effect(() => { const el = this.chartRef()
|
|
120
|
-
|
|
121
|
-
effect(() => { const el = this.chartRef()
|
|
122
|
-
|
|
123
|
-
effect(() => { const el = this.chartRef()?.nativeElement; if (el)
|
|
124
|
-
el.colorEnd = this.colorEnd(); });
|
|
125
|
-
effect(() => { const el = this.chartRef()?.nativeElement; if (el)
|
|
126
|
-
el.transitionDuration = this.transitionDuration(); });
|
|
127
|
-
effect(() => { const el = this.chartRef()?.nativeElement; if (el)
|
|
128
|
-
el.locale = this.locale(); });
|
|
107
|
+
effect(() => { const el = this.chartRef().nativeElement; el.colorMin = this.colorMin(); });
|
|
108
|
+
effect(() => { const el = this.chartRef().nativeElement; el.colorMax = this.colorMax(); });
|
|
109
|
+
effect(() => { const el = this.chartRef().nativeElement; el.colorStart = this.colorStart(); });
|
|
110
|
+
effect(() => { const el = this.chartRef().nativeElement; el.colorEnd = this.colorEnd(); });
|
|
111
|
+
effect(() => { const el = this.chartRef().nativeElement; el.transitionDuration = this.transitionDuration(); });
|
|
112
|
+
effect(() => { const el = this.chartRef().nativeElement; el.locale = this.locale(); });
|
|
129
113
|
effect(() => {
|
|
130
|
-
const el = this.chartRef()
|
|
131
|
-
|
|
132
|
-
el.inputLabel = this.inputLabel() ?? null;
|
|
114
|
+
const el = this.chartRef().nativeElement;
|
|
115
|
+
el.inputLabel = this.inputLabel() ?? null;
|
|
133
116
|
});
|
|
134
117
|
effect(() => {
|
|
135
|
-
const el = this.chartRef()
|
|
118
|
+
const el = this.chartRef().nativeElement;
|
|
136
119
|
const label = this.zoomOutLabel();
|
|
137
|
-
if (
|
|
120
|
+
if (label !== undefined)
|
|
138
121
|
el.zoomOutLabel = label;
|
|
139
122
|
});
|
|
140
123
|
effect(() => {
|
|
141
|
-
const el = this.chartRef()
|
|
124
|
+
const el = this.chartRef().nativeElement;
|
|
142
125
|
const label = this.metricUnitLabel();
|
|
143
|
-
if (
|
|
126
|
+
if (label !== undefined)
|
|
144
127
|
el.metricUnitLabel = label;
|
|
145
128
|
});
|
|
146
129
|
effect(() => {
|
|
147
|
-
const el = this.chartRef()
|
|
130
|
+
const el = this.chartRef().nativeElement;
|
|
148
131
|
const label = this.valueUnitLabel();
|
|
149
|
-
if (
|
|
132
|
+
if (label !== undefined)
|
|
150
133
|
el.valueUnitLabel = label;
|
|
151
134
|
});
|
|
152
135
|
effect(() => {
|
|
153
|
-
const el = this.chartRef()
|
|
136
|
+
const el = this.chartRef().nativeElement;
|
|
154
137
|
const label = this.loadingLabel();
|
|
155
|
-
if (
|
|
138
|
+
if (label !== undefined)
|
|
156
139
|
el.loadingLabel = label;
|
|
157
140
|
});
|
|
158
|
-
effect(() => { const el = this.chartRef()
|
|
159
|
-
|
|
160
|
-
effect(() => { const el = this.chartRef()
|
|
161
|
-
el.labelFormatter = this.labelFormatter(); });
|
|
162
|
-
effect(() => { const el = this.chartRef()?.nativeElement; if (el)
|
|
163
|
-
el.loadChildren = this.loadChildren(); });
|
|
141
|
+
effect(() => { const el = this.chartRef().nativeElement; el.tooltipFormatter = this.tooltipFormatter(); });
|
|
142
|
+
effect(() => { const el = this.chartRef().nativeElement; el.labelFormatter = this.labelFormatter(); });
|
|
143
|
+
effect(() => { const el = this.chartRef().nativeElement; el.loadChildren = this.loadChildren(); });
|
|
164
144
|
}
|
|
165
145
|
onZoom(event) {
|
|
166
146
|
const detail = event.detail;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mintplayer-ng-bootstrap-charts-hierarchy.mjs","sources":["../../../../libs/mintplayer-ng-bootstrap/charts/hierarchy/src/hierarchy-chart/hierarchy-chart.component.ts","../../../../libs/mintplayer-ng-bootstrap/charts/hierarchy/src/hierarchy-chart/hierarchy-chart.component.html","../../../../libs/mintplayer-ng-bootstrap/charts/hierarchy/mintplayer-ng-bootstrap-charts-hierarchy.ts"],"sourcesContent":["import {\n ChangeDetectionStrategy,\n Component,\n CUSTOM_ELEMENTS_SCHEMA,\n effect,\n ElementRef,\n input,\n model,\n output,\n viewChild,\n} from '@angular/core';\nimport {\n MpHierarchyChart,\n type HierarchyChartLayout,\n type HierarchyChildrenLoader,\n type HierarchyHoverEventDetail,\n type HierarchyLoadErrorEventDetail,\n type HierarchyNode,\n type HierarchyNodeEventDetail,\n type HierarchyNodeFormatter,\n} from '@mintplayer/web-components/charts/hierarchy';\n\n// Side-effect import: registers the `<mp-hierarchy-chart>` custom element.\nimport '@mintplayer/web-components/charts/hierarchy';\n\nimport { BsForwardAriaDirective } from '@mintplayer/ng-bootstrap/a11y';\n\n@Component({\n selector: 'bs-hierarchy-chart',\n templateUrl: './hierarchy-chart.component.html',\n styleUrls: ['./hierarchy-chart.component.scss'],\n imports: [BsForwardAriaDirective],\n schemas: [CUSTOM_ELEMENTS_SCHEMA],\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class BsHierarchyChartComponent {\n readonly data = input<HierarchyNode | undefined>(undefined);\n readonly layout = input<HierarchyChartLayout>('sunburst');\n readonly rootId = model<string | undefined>(undefined);\n /**\n * Levels rendered outward from the focus, or `'auto'` for every loaded level.\n * Unset leaves the element's own default: `'auto'`, or a 2-level window when\n * a `loadChildren` loader is bound.\n */\n readonly maxDepth = input<number | 'auto' | undefined>(undefined);\n readonly minAngle = input<number>(0.2);\n readonly minSize = input<number>(4);\n readonly showLabels = input<boolean>(true);\n /** Label font size in device px, constant across host size and zoom. */\n readonly labelFontSize = input<number>(12);\n /** Opaque color behind the chart for label contrast; unset = auto-detected. */\n readonly backdrop = input<string | undefined>(undefined);\n /** Gesture allowlist for the geometric zoom: 'wheel pinch' | 'wheel' | 'pinch' | 'none'. */\n readonly zoomGestures = input<string>('wheel pinch');\n readonly zoomHintLabel = input<string | undefined>(undefined);\n /** Renders the focus path as buttons above the chart. */\n readonly showBreadcrumb = input<boolean>(false);\n readonly breadcrumbLabel = input<string | undefined>(undefined);\n readonly colorMin = input<number>(0);\n readonly colorMax = input<number>(100);\n readonly colorStart = input<string>('#fe0000');\n readonly colorEnd = input<string>('#21b577');\n readonly transitionDuration = input<number>(300);\n readonly locale = input<string | undefined>(undefined);\n readonly inputLabel = input<string | undefined>(undefined);\n readonly zoomOutLabel = input<string | undefined>(undefined);\n readonly metricUnitLabel = input<string | undefined>(undefined);\n readonly valueUnitLabel = input<string | undefined>(undefined);\n readonly loadingLabel = input<string | undefined>(undefined);\n readonly tooltipFormatter = input<HierarchyNodeFormatter | undefined>(undefined);\n readonly labelFormatter = input<HierarchyNodeFormatter | undefined>(undefined);\n readonly loadChildren = input<HierarchyChildrenLoader | undefined>(undefined);\n\n readonly zoom = output<HierarchyNodeEventDetail>();\n readonly nodeSelect = output<HierarchyNodeEventDetail>();\n readonly nodeHover = output<HierarchyHoverEventDetail>();\n readonly nodeLoadError = output<HierarchyLoadErrorEventDetail>();\n\n readonly chartRef = viewChild<ElementRef<MpHierarchyChart>>('chart');\n\n constructor() {\n // One effect per input, deliberately: a `data` write must not re-fire on\n // every zoom tick and vice versa.\n effect(() => { const el = this.chartRef()?.nativeElement; if (el) el.data = this.data(); });\n effect(() => { const el = this.chartRef()?.nativeElement; if (el) el.layout = this.layout(); });\n effect(() => { const el = this.chartRef()?.nativeElement; if (el) el.rootId = this.rootId(); });\n effect(() => {\n const el = this.chartRef()?.nativeElement;\n const depth = this.maxDepth();\n if (el && depth !== undefined) el.maxDepth = depth;\n });\n effect(() => { const el = this.chartRef()?.nativeElement; if (el) el.minAngle = this.minAngle(); });\n effect(() => { const el = this.chartRef()?.nativeElement; if (el) el.minSize = this.minSize(); });\n effect(() => { const el = this.chartRef()?.nativeElement; if (el) el.showLabels = this.showLabels(); });\n effect(() => { const el = this.chartRef()?.nativeElement; if (el) el.labelFontSize = this.labelFontSize(); });\n effect(() => { const el = this.chartRef()?.nativeElement; if (el) el.backdrop = this.backdrop(); });\n effect(() => { const el = this.chartRef()?.nativeElement; if (el) el.zoomGestures = this.zoomGestures(); });\n effect(() => {\n const el = this.chartRef()?.nativeElement;\n const label = this.zoomHintLabel();\n if (el && label !== undefined) el.zoomHintLabel = label;\n });\n effect(() => { const el = this.chartRef()?.nativeElement; if (el) el.showBreadcrumb = this.showBreadcrumb(); });\n effect(() => {\n const el = this.chartRef()?.nativeElement;\n const label = this.breadcrumbLabel();\n if (el && label !== undefined) el.breadcrumbLabel = label;\n });\n effect(() => { const el = this.chartRef()?.nativeElement; if (el) el.colorMin = this.colorMin(); });\n effect(() => { const el = this.chartRef()?.nativeElement; if (el) el.colorMax = this.colorMax(); });\n effect(() => { const el = this.chartRef()?.nativeElement; if (el) el.colorStart = this.colorStart(); });\n effect(() => { const el = this.chartRef()?.nativeElement; if (el) el.colorEnd = this.colorEnd(); });\n effect(() => { const el = this.chartRef()?.nativeElement; if (el) el.transitionDuration = this.transitionDuration(); });\n effect(() => { const el = this.chartRef()?.nativeElement; if (el) el.locale = this.locale(); });\n effect(() => {\n const el = this.chartRef()?.nativeElement;\n if (el) el.inputLabel = this.inputLabel() ?? null;\n });\n effect(() => {\n const el = this.chartRef()?.nativeElement;\n const label = this.zoomOutLabel();\n if (el && label !== undefined) el.zoomOutLabel = label;\n });\n effect(() => {\n const el = this.chartRef()?.nativeElement;\n const label = this.metricUnitLabel();\n if (el && label !== undefined) el.metricUnitLabel = label;\n });\n effect(() => {\n const el = this.chartRef()?.nativeElement;\n const label = this.valueUnitLabel();\n if (el && label !== undefined) el.valueUnitLabel = label;\n });\n effect(() => {\n const el = this.chartRef()?.nativeElement;\n const label = this.loadingLabel();\n if (el && label !== undefined) el.loadingLabel = label;\n });\n effect(() => { const el = this.chartRef()?.nativeElement; if (el) el.tooltipFormatter = this.tooltipFormatter(); });\n effect(() => { const el = this.chartRef()?.nativeElement; if (el) el.labelFormatter = this.labelFormatter(); });\n effect(() => { const el = this.chartRef()?.nativeElement; if (el) el.loadChildren = this.loadChildren(); });\n }\n\n protected onZoom(event: Event): void {\n const detail = (event as CustomEvent<HierarchyNodeEventDetail>).detail;\n this.rootId.set((event.target as MpHierarchyChart).rootId);\n this.zoom.emit(detail);\n }\n\n protected onNodeSelect(event: Event): void {\n this.nodeSelect.emit((event as CustomEvent<HierarchyNodeEventDetail>).detail);\n }\n\n protected onNodeHover(event: Event): void {\n this.nodeHover.emit((event as CustomEvent<HierarchyHoverEventDetail>).detail);\n }\n\n protected onNodeLoadError(event: Event): void {\n this.nodeLoadError.emit((event as CustomEvent<HierarchyLoadErrorEventDetail>).detail);\n }\n}\n","<mp-hierarchy-chart bsForwardAria\n #chart\n class=\"bs-hierarchy-chart\"\n (hierarchy-zoom)=\"onZoom($event)\"\n (hierarchy-node-select)=\"onNodeSelect($event)\"\n (hierarchy-node-hover)=\"onNodeHover($event)\"\n (hierarchy-node-load-error)=\"onNodeLoadError($event)\"\n></mp-hierarchy-chart>\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;MAmCa,yBAAyB,CAAA;AA6CpC,IAAA,WAAA,GAAA;QA5CS,IAAA,CAAA,IAAI,GAAG,KAAK,CAA4B,SAAS;iFAAC;QAClD,IAAA,CAAA,MAAM,GAAG,KAAK,CAAuB,UAAU;mFAAC;QAChD,IAAA,CAAA,MAAM,GAAG,KAAK,CAAqB,SAAS;mFAAC;AACtD;;;;AAIG;QACM,IAAA,CAAA,QAAQ,GAAG,KAAK,CAA8B,SAAS;qFAAC;QACxD,IAAA,CAAA,QAAQ,GAAG,KAAK,CAAS,GAAG;qFAAC;QAC7B,IAAA,CAAA,OAAO,GAAG,KAAK,CAAS,CAAC;oFAAC;QAC1B,IAAA,CAAA,UAAU,GAAG,KAAK,CAAU,IAAI;uFAAC;;QAEjC,IAAA,CAAA,aAAa,GAAG,KAAK,CAAS,EAAE;0FAAC;;QAEjC,IAAA,CAAA,QAAQ,GAAG,KAAK,CAAqB,SAAS;qFAAC;;QAE/C,IAAA,CAAA,YAAY,GAAG,KAAK,CAAS,aAAa;yFAAC;QAC3C,IAAA,CAAA,aAAa,GAAG,KAAK,CAAqB,SAAS;0FAAC;;QAEpD,IAAA,CAAA,cAAc,GAAG,KAAK,CAAU,KAAK;2FAAC;QACtC,IAAA,CAAA,eAAe,GAAG,KAAK,CAAqB,SAAS;4FAAC;QACtD,IAAA,CAAA,QAAQ,GAAG,KAAK,CAAS,CAAC;qFAAC;QAC3B,IAAA,CAAA,QAAQ,GAAG,KAAK,CAAS,GAAG;qFAAC;QAC7B,IAAA,CAAA,UAAU,GAAG,KAAK,CAAS,SAAS;uFAAC;QACrC,IAAA,CAAA,QAAQ,GAAG,KAAK,CAAS,SAAS;qFAAC;QACnC,IAAA,CAAA,kBAAkB,GAAG,KAAK,CAAS,GAAG;+FAAC;QACvC,I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A,cAAA,EAAA,QAAA,EAAA,IAAA,EAAA,UAAA,EAAA,KAAA,EAAA,iBAAA,EAAA,IAAA,EAAA,EAAA,EAAA,OAAA,EAAA,EAAA,MAAA,EAAA,cAAA,EAAA,IAAA,EAAA,MAAA,EAAA,UAAA,EAAA,YAAA,EAAA,SAAA,EAAA,WAAA,EAAA,aAAA,EAAA,eAAA,EAAA,EAAA,WAAA,EAAA,CAAA,EAAA,YAAA,EAAA,UAAA,EAAA,KAAA,EAAA,IAAA,EAAA,SAAA,EAAA,CAAA,OAAA,CAAA,EAAA,WAAA,EAAA,IAAA,EAAA,QAAA,EAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,EAAA,EAAA,QAAA,ECnCtC,+SAQA,EAAA,MAAA,EAAA,CAAA,wBAAA,CAAA,EAAA,YAAA,EAAA,CAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EDuBY,sBAAsB,EAAA,QAAA,EAAA,iBAAA,EAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,CAAA,CAAA;;2FAIrB,yBAAyB,EAAA,UAAA,EAAA,CAAA;kBARrC,SAAS;+BACE,oBAAoB,EAAA,OAAA,EAGrB,CAAC,sBAAsB,CAAC,EAAA,OAAA,EACxB,CAAC,sBAAsB,CAAC,EAAA,eAAA,EAChB,uBAAuB,CAAC,MAAM,EAAA,QAAA,EAAA,+SAAA,EAAA,MAAA,EAAA,CAAA,wBAAA,CAAA,EAAA;uhGA6Ca,OAAO,EAAA,EAAA,QAAA,EAAA,IAAA,EAAA,CAAA,EAAA,CAAA,EAAA,EAAA,CAAA;;AE9ErE;;AAEG;;;;"}
|
|
1
|
+
{"version":3,"file":"mintplayer-ng-bootstrap-charts-hierarchy.mjs","sources":["../../../../libs/mintplayer-ng-bootstrap/charts/hierarchy/src/hierarchy-chart/hierarchy-chart.component.ts","../../../../libs/mintplayer-ng-bootstrap/charts/hierarchy/src/hierarchy-chart/hierarchy-chart.component.html","../../../../libs/mintplayer-ng-bootstrap/charts/hierarchy/mintplayer-ng-bootstrap-charts-hierarchy.ts"],"sourcesContent":["import {\n ChangeDetectionStrategy,\n Component,\n CUSTOM_ELEMENTS_SCHEMA,\n effect,\n ElementRef,\n input,\n model,\n output,\n viewChild,\n} from '@angular/core';\nimport {\n MpHierarchyChart,\n type HierarchyChartLayout,\n type HierarchyChildrenLoader,\n type HierarchyHoverEventDetail,\n type HierarchyLoadErrorEventDetail,\n type HierarchyNode,\n type HierarchyNodeEventDetail,\n type HierarchyNodeFormatter,\n} from '@mintplayer/web-components/charts/hierarchy';\n\n// Side-effect import: registers the `<mp-hierarchy-chart>` custom element.\nimport '@mintplayer/web-components/charts/hierarchy';\n\nimport { BsForwardAriaDirective } from '@mintplayer/ng-bootstrap/a11y';\n\n@Component({\n selector: 'bs-hierarchy-chart',\n templateUrl: './hierarchy-chart.component.html',\n styleUrls: ['./hierarchy-chart.component.scss'],\n imports: [BsForwardAriaDirective],\n schemas: [CUSTOM_ELEMENTS_SCHEMA],\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class BsHierarchyChartComponent {\n readonly data = input<HierarchyNode | undefined>(undefined);\n readonly layout = input<HierarchyChartLayout>('sunburst');\n readonly rootId = model<string | undefined>(undefined);\n /**\n * Levels rendered outward from the focus, or `'auto'` for every loaded level.\n * Unset leaves the element's own default: `'auto'`, or a 2-level window when\n * a `loadChildren` loader is bound.\n */\n readonly maxDepth = input<number | 'auto' | undefined>(undefined);\n readonly minAngle = input<number>(0.2);\n readonly minSize = input<number>(4);\n readonly showLabels = input<boolean>(true);\n /** Label font size in device px, constant across host size and zoom. */\n readonly labelFontSize = input<number>(12);\n /** Opaque color behind the chart for label contrast; unset = auto-detected. */\n readonly backdrop = input<string | undefined>(undefined);\n /** Gesture allowlist for the geometric zoom: 'wheel pinch' | 'wheel' | 'pinch' | 'none'. */\n readonly zoomGestures = input<string>('wheel pinch');\n readonly zoomHintLabel = input<string | undefined>(undefined);\n /** Renders the focus path as buttons above the chart. */\n readonly showBreadcrumb = input<boolean>(false);\n readonly breadcrumbLabel = input<string | undefined>(undefined);\n readonly colorMin = input<number>(0);\n readonly colorMax = input<number>(100);\n readonly colorStart = input<string>('#fe0000');\n readonly colorEnd = input<string>('#21b577');\n readonly transitionDuration = input<number>(300);\n readonly locale = input<string | undefined>(undefined);\n readonly inputLabel = input<string | undefined>(undefined);\n readonly zoomOutLabel = input<string | undefined>(undefined);\n readonly metricUnitLabel = input<string | undefined>(undefined);\n readonly valueUnitLabel = input<string | undefined>(undefined);\n readonly loadingLabel = input<string | undefined>(undefined);\n readonly tooltipFormatter = input<HierarchyNodeFormatter | undefined>(undefined);\n readonly labelFormatter = input<HierarchyNodeFormatter | undefined>(undefined);\n readonly loadChildren = input<HierarchyChildrenLoader | undefined>(undefined);\n\n readonly zoom = output<HierarchyNodeEventDetail>();\n readonly nodeSelect = output<HierarchyNodeEventDetail>();\n readonly nodeHover = output<HierarchyHoverEventDetail>();\n readonly nodeLoadError = output<HierarchyLoadErrorEventDetail>();\n\n readonly chartRef = viewChild.required<ElementRef<MpHierarchyChart>>('chart');\n\n constructor() {\n // One effect per input, deliberately: a `data` write must not re-fire on\n // every zoom tick and vice versa.\n effect(() => { const el = this.chartRef().nativeElement; el.data = this.data(); });\n effect(() => { const el = this.chartRef().nativeElement; el.layout = this.layout(); });\n effect(() => { const el = this.chartRef().nativeElement; el.rootId = this.rootId(); });\n effect(() => {\n const el = this.chartRef().nativeElement;\n const depth = this.maxDepth();\n if (depth !== undefined) el.maxDepth = depth;\n });\n effect(() => { const el = this.chartRef().nativeElement; el.minAngle = this.minAngle(); });\n effect(() => { const el = this.chartRef().nativeElement; el.minSize = this.minSize(); });\n effect(() => { const el = this.chartRef().nativeElement; el.showLabels = this.showLabels(); });\n effect(() => { const el = this.chartRef().nativeElement; el.labelFontSize = this.labelFontSize(); });\n effect(() => { const el = this.chartRef().nativeElement; el.backdrop = this.backdrop(); });\n effect(() => { const el = this.chartRef().nativeElement; el.zoomGestures = this.zoomGestures(); });\n effect(() => {\n const el = this.chartRef().nativeElement;\n const label = this.zoomHintLabel();\n if (label !== undefined) el.zoomHintLabel = label;\n });\n effect(() => { const el = this.chartRef().nativeElement; el.showBreadcrumb = this.showBreadcrumb(); });\n effect(() => {\n const el = this.chartRef().nativeElement;\n const label = this.breadcrumbLabel();\n if (label !== undefined) el.breadcrumbLabel = label;\n });\n effect(() => { const el = this.chartRef().nativeElement; el.colorMin = this.colorMin(); });\n effect(() => { const el = this.chartRef().nativeElement; el.colorMax = this.colorMax(); });\n effect(() => { const el = this.chartRef().nativeElement; el.colorStart = this.colorStart(); });\n effect(() => { const el = this.chartRef().nativeElement; el.colorEnd = this.colorEnd(); });\n effect(() => { const el = this.chartRef().nativeElement; el.transitionDuration = this.transitionDuration(); });\n effect(() => { const el = this.chartRef().nativeElement; el.locale = this.locale(); });\n effect(() => {\n const el = this.chartRef().nativeElement;\n el.inputLabel = this.inputLabel() ?? null;\n });\n effect(() => {\n const el = this.chartRef().nativeElement;\n const label = this.zoomOutLabel();\n if (label !== undefined) el.zoomOutLabel = label;\n });\n effect(() => {\n const el = this.chartRef().nativeElement;\n const label = this.metricUnitLabel();\n if (label !== undefined) el.metricUnitLabel = label;\n });\n effect(() => {\n const el = this.chartRef().nativeElement;\n const label = this.valueUnitLabel();\n if (label !== undefined) el.valueUnitLabel = label;\n });\n effect(() => {\n const el = this.chartRef().nativeElement;\n const label = this.loadingLabel();\n if (label !== undefined) el.loadingLabel = label;\n });\n effect(() => { const el = this.chartRef().nativeElement; el.tooltipFormatter = this.tooltipFormatter(); });\n effect(() => { const el = this.chartRef().nativeElement; el.labelFormatter = this.labelFormatter(); });\n effect(() => { const el = this.chartRef().nativeElement; el.loadChildren = this.loadChildren(); });\n }\n\n protected onZoom(event: Event): void {\n const detail = (event as CustomEvent<HierarchyNodeEventDetail>).detail;\n this.rootId.set((event.target as MpHierarchyChart).rootId);\n this.zoom.emit(detail);\n }\n\n protected onNodeSelect(event: Event): void {\n this.nodeSelect.emit((event as CustomEvent<HierarchyNodeEventDetail>).detail);\n }\n\n protected onNodeHover(event: Event): void {\n this.nodeHover.emit((event as CustomEvent<HierarchyHoverEventDetail>).detail);\n }\n\n protected onNodeLoadError(event: Event): void {\n this.nodeLoadError.emit((event as CustomEvent<HierarchyLoadErrorEventDetail>).detail);\n }\n}\n","<mp-hierarchy-chart bsForwardAria\n #chart\n class=\"bs-hierarchy-chart\"\n (hierarchy-zoom)=\"onZoom($event)\"\n (hierarchy-node-select)=\"onNodeSelect($event)\"\n (hierarchy-node-hover)=\"onNodeHover($event)\"\n (hierarchy-node-load-error)=\"onNodeLoadError($event)\"\n></mp-hierarchy-chart>\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;MAmCa,yBAAyB,CAAA;AA6CpC,IAAA,WAAA,GAAA;QA5CS,IAAA,CAAA,IAAI,GAAG,KAAK,CAA4B,SAAS;iFAAC;QAClD,IAAA,CAAA,MAAM,GAAG,KAAK,CAAuB,UAAU;mFAAC;QAChD,IAAA,CAAA,MAAM,GAAG,KAAK,CAAqB,SAAS;mFAAC;AACtD;;;;AAIG;QACM,IAAA,CAAA,QAAQ,GAAG,KAAK,CAA8B,SAAS;qFAAC;QACxD,IAAA,CAAA,QAAQ,GAAG,KAAK,CAAS,GAAG;qFAAC;QAC7B,IAAA,CAAA,OAAO,GAAG,KAAK,CAAS,CAAC;oFAAC;QAC1B,IAAA,CAAA,UAAU,GAAG,KAAK,CAAU,IAAI;uFAAC;;QAEjC,IAAA,CAAA,aAAa,GAAG,KAAK,CAAS,EAAE;0FAAC;;QAEjC,IAAA,CAAA,QAAQ,GAAG,KAAK,CAAqB,SAAS;qFAAC;;QAE/C,IAAA,CAAA,YAAY,GAAG,KAAK,CAAS,aAAa;yFAAC;QAC3C,IAAA,CAAA,aAAa,GAAG,KAAK,CAAqB,SAAS;0FAAC;;QAEpD,IAAA,CAAA,cAAc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