@mintplayer/ng-bootstrap 22.5.0 → 22.6.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-accordion.mjs +128 -74
- package/fesm2022/mintplayer-ng-bootstrap-accordion.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-carousel.mjs +82 -246
- package/fesm2022/mintplayer-ng-bootstrap-carousel.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-dropdown-menu.mjs +2 -2
- package/fesm2022/mintplayer-ng-bootstrap-dropdown-menu.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-navbar.mjs +25 -4
- package/fesm2022/mintplayer-ng-bootstrap-navbar.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-observe-size.mjs +48 -0
- package/fesm2022/mintplayer-ng-bootstrap-observe-size.mjs.map +1 -0
- package/fesm2022/mintplayer-ng-bootstrap-priority-nav.mjs +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-priority-nav.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-splitter.mjs +106 -0
- package/fesm2022/mintplayer-ng-bootstrap-splitter.mjs.map +1 -0
- package/fesm2022/mintplayer-ng-bootstrap-sticky-footer.mjs +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-sticky-footer.mjs.map +1 -1
- package/observe-size/package.json +4 -0
- package/package.json +9 -2
- package/splitter/package.json +4 -0
- package/types/mintplayer-ng-bootstrap-accordion.d.ts +88 -27
- package/types/mintplayer-ng-bootstrap-carousel.d.ts +57 -109
- package/types/mintplayer-ng-bootstrap-navbar.d.ts +14 -1
- package/types/mintplayer-ng-bootstrap-observe-size.d.ts +24 -0
- package/types/mintplayer-ng-bootstrap-priority-nav.d.ts +1 -1
- package/types/mintplayer-ng-bootstrap-splitter.d.ts +66 -0
- package/types/mintplayer-ng-bootstrap-sticky-footer.d.ts +1 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mintplayer-ng-bootstrap-splitter.mjs","sources":["../../../../libs/mintplayer-ng-bootstrap/splitter/src/splitter/splitter.component.ts","../../../../libs/mintplayer-ng-bootstrap/splitter/src/splitter/splitter.component.html","../../../../libs/mintplayer-ng-bootstrap/splitter/mintplayer-ng-bootstrap-splitter.ts"],"sourcesContent":["import {\n ChangeDetectionStrategy,\n Component,\n computed,\n CUSTOM_ELEMENTS_SCHEMA,\n ElementRef,\n input,\n output,\n viewChild,\n ViewEncapsulation,\n} from '@angular/core';\n// Eager side-effect registration: the splitter has no DSD chrome to protect,\n// and deferring to afterNextRender would flash the `:not(:defined)` fallback\n// layout on every load.\nimport '@mintplayer/web-components/splitter';\nimport type {\n Direction,\n MpSplitter,\n ResizeKey,\n SplitterResizeEventDetail,\n} from '@mintplayer/web-components/splitter';\n\n/**\n * `<bs-splitter>` — Angular wrapper around the `<mp-splitter>` web component.\n *\n * Panes are plain content children; the WC slots each direct child into its\n * own resizable panel and inserts draggable/keyboard-operable dividers\n * between them. Nest splitters to build dock-style layouts:\n *\n * <bs-splitter>\n * <div>Left</div>\n * <bs-splitter orientation=\"vertical\" [minPanelSize]=\"80\">\n * <div>Top</div>\n * <div>Bottom</div>\n * </bs-splitter>\n * </bs-splitter>\n *\n * Each wrapper claims exactly the events of its own `<mp-splitter>`: the\n * target guard keeps a nested splitter's bubbled events from being re-emitted\n * by the outer wrapper, and `stopPropagation()` *after* the guard ensures a\n * claimed event is delivered once, as a typed output only. The stop is\n * required: Angular registers BOTH a DOM listener and the output subscription\n * for an element event binding, so a consumer's `(resizing)` handler would\n * otherwise also receive the identically-named bubbling CustomEvent raw.\n * Unclaimed events (from a nested raw `<mp-splitter>`) bubble on untouched.\n *\n * Before the custom element upgrades (or with JS off), a `:not(:defined)`\n * fallback stylesheet renders the panes as a static flex layout with visible\n * divider chrome, so server-rendered pages don't flash unstyled content.\n */\n@Component({\n selector: 'bs-splitter',\n templateUrl: './splitter.component.html',\n styleUrls: ['./splitter.component.scss'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n // The fallback stylesheet must match the CONSUMER-projected pane children,\n // which never carry this component's emulated-encapsulation attribute —\n // so the styles ship unscoped. They stay inert once the element upgrades\n // (`:not(:defined)` no longer matches).\n encapsulation: ViewEncapsulation.None,\n schemas: [CUSTOM_ELEMENTS_SCHEMA],\n})\nexport class BsSplitterComponent {\n /** Axis along which the panes are laid out (and resized). */\n readonly orientation = input<Direction>('horizontal');\n /** Minimum pane size in px a divider can shrink a pane to (WC default 50). */\n readonly minPanelSize = input<number | null>(null);\n /** Widen the invisible divider hit area for touch use. */\n readonly touchMode = input(false);\n\n /** A divider drag started. Detail: current `{ sizes, orientation }`. */\n readonly resizeStart = output<SplitterResizeEventDetail>();\n /** Fires on every drag-preview frame with the in-flight sizes. */\n readonly resizing = output<SplitterResizeEventDetail>();\n /** Drag or keyboard resize committed. Detail: final `{ sizes, orientation }`. */\n readonly resizeEnd = output<SplitterResizeEventDetail>();\n\n protected readonly element = viewChild<ElementRef<MpSplitter>>('element');\n\n protected readonly minPanelSizeAttr = computed(() => {\n const value = this.minPanelSize();\n return value != null ? String(value) : null;\n });\n protected readonly touchModeAttr = computed(() => (this.touchMode() ? '' : null));\n\n /** Current pane sizes in px, in document order. */\n getPanelSizes(): number[] {\n return this.element()?.nativeElement.getPanelSizes() ?? [];\n }\n\n /** Programmatically distribute pane sizes (px, one entry per pane). */\n setPanelSizes(sizes: number[]): void {\n this.element()?.nativeElement.setPanelSizes(sizes);\n }\n\n /**\n * Drive a keyboard-style resize on divider `dividerIndex` (arrows ±10%,\n * `fine` = ±1%, Home/End to the limits).\n */\n resizeDividerBy(dividerIndex: number, key: ResizeKey, fine = false): void {\n this.element()?.nativeElement.resizeDividerBy(dividerIndex, key, fine);\n }\n\n protected onResizeStart(event: Event): void {\n if (event.target !== this.element()?.nativeElement) return;\n event.stopPropagation();\n this.resizeStart.emit((event as CustomEvent<SplitterResizeEventDetail>).detail);\n }\n\n protected onResizing(event: Event): void {\n if (event.target !== this.element()?.nativeElement) return;\n event.stopPropagation();\n this.resizing.emit((event as CustomEvent<SplitterResizeEventDetail>).detail);\n }\n\n protected onResizeEnd(event: Event): void {\n if (event.target !== this.element()?.nativeElement) return;\n event.stopPropagation();\n this.resizeEnd.emit((event as CustomEvent<SplitterResizeEventDetail>).detail);\n }\n}\n","<mp-splitter\n #element\n [attr.orientation]=\"orientation()\"\n [attr.min-panel-size]=\"minPanelSizeAttr()\"\n [attr.touch-mode]=\"touchModeAttr()\"\n (resize-start)=\"onResizeStart($event)\"\n (resizing)=\"onResizing($event)\"\n (resize-end)=\"onResizeEnd($event)\">\n <ng-content></ng-content>\n</mp-splitter>\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":"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"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
2
|
import { Directive, viewChild, effect, ChangeDetectionStrategy, Component } from '@angular/core';
|
|
3
|
-
import { BsObserveSizeDirective } from '@mintplayer/ng-
|
|
3
|
+
import { BsObserveSizeDirective } from '@mintplayer/ng-bootstrap/observe-size';
|
|
4
4
|
|
|
5
5
|
class BsStickyFooterParentDirective {
|
|
6
6
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: BsStickyFooterParentDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mintplayer-ng-bootstrap-sticky-footer.mjs","sources":["../../../../libs/mintplayer-ng-bootstrap/sticky-footer/src/sticky-footer-parent/sticky-footer-parent.directive.ts","../../../../libs/mintplayer-ng-bootstrap/sticky-footer/src/sticky-footer/sticky-footer.component.ts","../../../../libs/mintplayer-ng-bootstrap/sticky-footer/src/sticky-footer/sticky-footer.component.html","../../../../libs/mintplayer-ng-bootstrap/sticky-footer/mintplayer-ng-bootstrap-sticky-footer.ts"],"sourcesContent":["import { Directive } from '@angular/core';\n\n@Directive({\n selector: '[bsStickyFooterParent]',\n host: {\n '[style.margin-bottom.px]': 'marginBottom',\n },\n})\nexport class BsStickyFooterParentDirective {\n marginBottom?: number;\n}\n","import { AfterViewInit, Component, effect, Injector, viewChild, ChangeDetectionStrategy} from '@angular/core';\nimport { BsStickyFooterParentDirective } from '../sticky-footer-parent/sticky-footer-parent.directive';\nimport { BsObserveSizeDirective } from '@mintplayer/ng-
|
|
1
|
+
{"version":3,"file":"mintplayer-ng-bootstrap-sticky-footer.mjs","sources":["../../../../libs/mintplayer-ng-bootstrap/sticky-footer/src/sticky-footer-parent/sticky-footer-parent.directive.ts","../../../../libs/mintplayer-ng-bootstrap/sticky-footer/src/sticky-footer/sticky-footer.component.ts","../../../../libs/mintplayer-ng-bootstrap/sticky-footer/src/sticky-footer/sticky-footer.component.html","../../../../libs/mintplayer-ng-bootstrap/sticky-footer/mintplayer-ng-bootstrap-sticky-footer.ts"],"sourcesContent":["import { Directive } from '@angular/core';\n\n@Directive({\n selector: '[bsStickyFooterParent]',\n host: {\n '[style.margin-bottom.px]': 'marginBottom',\n },\n})\nexport class BsStickyFooterParentDirective {\n marginBottom?: number;\n}\n","import { AfterViewInit, Component, effect, Injector, viewChild, ChangeDetectionStrategy} from '@angular/core';\nimport { BsStickyFooterParentDirective } from '../sticky-footer-parent/sticky-footer-parent.directive';\nimport { BsObserveSizeDirective } from '@mintplayer/ng-bootstrap/observe-size';\n\n@Component({\n selector: 'bs-sticky-footer',\n templateUrl: './sticky-footer.component.html',\n styleUrls: ['./sticky-footer.component.scss'],\n imports: [BsObserveSizeDirective],\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class BsStickyFooterComponent implements AfterViewInit {\n constructor(\n private parent: BsStickyFooterParentDirective,\n private injector: Injector\n ) {}\n\n ngAfterViewInit() {\n effect(() => {\n const height = this.sizeObserver().height();\n if (height !== undefined) {\n this.parent.marginBottom = height;\n }\n }, { injector: this.injector });\n }\n\n readonly sizeObserver = viewChild.required<BsObserveSizeDirective>('sizeObserver');\n}\n","<footer bsObserveSize #sizeObserver=\"bsObserveSize\" class=\"footer position-absolute\">\n <ng-content></ng-content>\n</footer>","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["i1.BsStickyFooterParentDirective"],"mappings":";;;;MAQa,6BAA6B,CAAA;8GAA7B,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,IAAA,EAAA,EAAA,UAAA,EAAA,EAAA,wBAAA,EAAA,cAAA,EAAA,EAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA,CAAA;;2FAA7B,6BAA6B,EAAA,UAAA,EAAA,CAAA;kBANzC,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACT,oBAAA,QAAQ,EAAE,wBAAwB;AAClC,oBAAA,IAAI,EAAE;AACJ,wBAAA,0BAA0B,EAAE,cAAc;AAC3C,qBAAA;AACF,iBAAA;;;MCIY,uBAAuB,CAAA;IAClC,WAAA,CACU,MAAqC,EACrC,QAAkB,EAAA;QADlB,IAAA,CAAA,MAAM,GAAN,MAAM;QACN,IAAA,CAAA,QAAQ,GAAR,QAAQ;AAYT,QAAA,IAAA,CAAA,YAAY,GAAG,SAAS,CAAC,QAAQ,CAAyB,cAAc,CAAC;IAX/E;IAEH,eAAe,GAAA;QACb,MAAM,CAAC,MAAK;YACV,MAAM,MAAM,GAAG,IAAI,CAAC,YAAY,EAAE,CAAC,MAAM,EAAE;AAC3C,YAAA,IAAI,MAAM,KAAK,SAAS,EAAE;AACxB,gBAAA,IAAI,CAAC,MAAM,CAAC,YAAY,GAAG,MAAM;YACnC;QACF,CAAC,EAAE,EAAE,QAAQ,EAAE,IAAI,CAAC,QAAQ,EAAE,CAAC;IACjC;8GAbW,uBAAuB,EAAA,IAAA,EAAA,CAAA,EAAA,KAAA,EAAAA,6BAAA,EAAA,EAAA,EAAA,KAAA,EAAA,EAAA,CAAA,QAAA,EAAA,CAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;kGAAvB,uBAAuB,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,kBAAA,EAAA,WAAA,EAAA,CAAA,EAAA,YAAA,EAAA,cAAA,EAAA,KAAA,EAAA,IAAA,EAAA,SAAA,EAAA,CAAA,cAAA,CAAA,EAAA,WAAA,EAAA,IAAA,EAAA,QAAA,EAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,EAAA,EAAA,QAAA,ECXpC,qIAES,EAAA,MAAA,EAAA,CAAA,qFAAA,CAAA,EAAA,YAAA,EAAA,CAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EDMG,sBAAsB,EAAA,QAAA,EAAA,iBAAA,EAAA,QAAA,EAAA,CAAA,eAAA,CAAA,EAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,CAAA,CAAA;;2FAGrB,uBAAuB,EAAA,UAAA,EAAA,CAAA;kBAPnC,SAAS;AACE,YAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,kBAAkB,WAGnB,CAAC,sBAAsB,CAAC,EAAA,eAAA,EAChB,uBAAuB,CAAC,MAAM,EAAA,QAAA,EAAA,qIAAA,EAAA,MAAA,EAAA,CAAA,qFAAA,CAAA,EAAA;kKAiBoB,cAAc,EAAA,EAAA,QAAA,EAAA,IAAA,EAAA,CAAA,EAAA,CAAA,EAAA,EAAA,CAAA;;AE1BnF;;AAEG;;;;"}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mintplayer/ng-bootstrap",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "22.
|
|
4
|
+
"version": "22.6.0",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
|
@@ -221,6 +221,10 @@
|
|
|
221
221
|
"types": "./types/mintplayer-ng-bootstrap-no-noscript.d.ts",
|
|
222
222
|
"default": "./fesm2022/mintplayer-ng-bootstrap-no-noscript.mjs"
|
|
223
223
|
},
|
|
224
|
+
"./observe-size": {
|
|
225
|
+
"types": "./types/mintplayer-ng-bootstrap-observe-size.d.ts",
|
|
226
|
+
"default": "./fesm2022/mintplayer-ng-bootstrap-observe-size.mjs"
|
|
227
|
+
},
|
|
224
228
|
"./offcanvas": {
|
|
225
229
|
"types": "./types/mintplayer-ng-bootstrap-offcanvas.d.ts",
|
|
226
230
|
"default": "./fesm2022/mintplayer-ng-bootstrap-offcanvas.mjs"
|
|
@@ -321,6 +325,10 @@
|
|
|
321
325
|
"types": "./types/mintplayer-ng-bootstrap-split-string.d.ts",
|
|
322
326
|
"default": "./fesm2022/mintplayer-ng-bootstrap-split-string.mjs"
|
|
323
327
|
},
|
|
328
|
+
"./splitter": {
|
|
329
|
+
"types": "./types/mintplayer-ng-bootstrap-splitter.d.ts",
|
|
330
|
+
"default": "./fesm2022/mintplayer-ng-bootstrap-splitter.mjs"
|
|
331
|
+
},
|
|
324
332
|
"./sticky-footer": {
|
|
325
333
|
"types": "./types/mintplayer-ng-bootstrap-sticky-footer.d.ts",
|
|
326
334
|
"default": "./fesm2022/mintplayer-ng-bootstrap-sticky-footer.mjs"
|
|
@@ -404,7 +412,6 @@
|
|
|
404
412
|
"@mintplayer/ng-animations": "^22.0.0",
|
|
405
413
|
"@mintplayer/pagination": "^2.3.0",
|
|
406
414
|
"@mintplayer/ng-focus-on-load": "^22.0.0",
|
|
407
|
-
"@mintplayer/ng-swiper": "^22.0.0",
|
|
408
415
|
"@mintplayer/web-components": "^2.0.0",
|
|
409
416
|
"lit": "^3.3.0"
|
|
410
417
|
},
|
|
@@ -1,39 +1,100 @@
|
|
|
1
1
|
import * as _angular_core from '@angular/core';
|
|
2
|
-
import
|
|
2
|
+
import { TemplateRef, ElementRef } from '@angular/core';
|
|
3
|
+
import { MpAccordion } from '@mintplayer/web-components/accordion';
|
|
4
|
+
export * from '@mintplayer/web-components/accordion';
|
|
3
5
|
|
|
6
|
+
/**
|
|
7
|
+
* `*bsAccordionTabHeader` — declares the header content of the enclosing
|
|
8
|
+
* `<bs-accordion-tab>`.
|
|
9
|
+
*
|
|
10
|
+
* It is a template rather than projected content because the header has to
|
|
11
|
+
* end up as a direct child of `<mp-accordion>` (named slots accept nothing
|
|
12
|
+
* else) while being authored inside the tab it belongs to. The parent
|
|
13
|
+
* accordion renders each captured template into the matching header slot.
|
|
14
|
+
*
|
|
15
|
+
* Mirrors `*bsTabPageHeader` on `bs-tab-control`. Replaces the former
|
|
16
|
+
* `<bs-accordion-tab-header>` component.
|
|
17
|
+
*
|
|
18
|
+
* <bs-accordion>
|
|
19
|
+
* <bs-accordion-tab>
|
|
20
|
+
* <ng-container *bsAccordionTabHeader>Profile</ng-container>
|
|
21
|
+
* Body content here
|
|
22
|
+
* </bs-accordion-tab>
|
|
23
|
+
* </bs-accordion>
|
|
24
|
+
*/
|
|
25
|
+
declare class BsAccordionTabHeaderDirective {
|
|
26
|
+
readonly template: TemplateRef<any>;
|
|
27
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<BsAccordionTabHeaderDirective, never>;
|
|
28
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<BsAccordionTabHeaderDirective, "[bsAccordionTabHeader]", never, {}, {}, never, never, true, never>;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
* `<bs-accordion-tab>` — one tab of a `<bs-accordion>`.
|
|
33
|
+
*
|
|
34
|
+
* This host element IS the tab marker the web component reads: it carries
|
|
35
|
+
* `accordion-tab`, its index slot and the tab's state, and its projected
|
|
36
|
+
* children become the tab body. There is no separate `<mp-accordion-tab>`
|
|
37
|
+
* here — an Angular component can only render inside its own host, which
|
|
38
|
+
* would put that element one level too deep to be slotted.
|
|
39
|
+
*
|
|
40
|
+
* The header is declared with `*bsAccordionTabHeader` and rendered by the
|
|
41
|
+
* parent accordion (see `BsAccordionComponent`).
|
|
42
|
+
*/
|
|
4
43
|
declare class BsAccordionTabComponent {
|
|
5
|
-
accordion: BsAccordionComponent;
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
readonly
|
|
9
|
-
|
|
10
|
-
|
|
44
|
+
readonly accordion: BsAccordionComponent;
|
|
45
|
+
/** Two-way: whether this tab is open. */
|
|
46
|
+
readonly isActive: _angular_core.ModelSignal<boolean>;
|
|
47
|
+
readonly disabled: _angular_core.InputSignal<boolean>;
|
|
48
|
+
readonly headerTemplate: _angular_core.Signal<BsAccordionTabHeaderDirective | undefined>;
|
|
49
|
+
/** Position among its siblings — the tab's identity for slots and events. */
|
|
50
|
+
readonly index: _angular_core.Signal<number>;
|
|
51
|
+
/**
|
|
52
|
+
* Open or close this tab through the web component, so single-open
|
|
53
|
+
* exclusivity and the nested-accordion collapse both apply — unlike
|
|
54
|
+
* writing `isActive` directly.
|
|
55
|
+
*/
|
|
11
56
|
setActive(value: boolean): void;
|
|
12
57
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<BsAccordionTabComponent, never>;
|
|
13
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<BsAccordionTabComponent, "bs-accordion-tab", never, { "isActive": { "alias": "isActive"; "required": false; "isSignal": true; }; }, { "isActive": "isActiveChange"; }, ["
|
|
58
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<BsAccordionTabComponent, "bs-accordion-tab", never, { "isActive": { "alias": "isActive"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; }, { "isActive": "isActiveChange"; }, ["headerTemplate"], ["*"], true, never>;
|
|
14
59
|
}
|
|
15
60
|
|
|
61
|
+
/**
|
|
62
|
+
* `<bs-accordion>` — Angular wrapper around the `<mp-accordion>` web component.
|
|
63
|
+
*
|
|
64
|
+
* <bs-accordion [multi]="true">
|
|
65
|
+
* <bs-accordion-tab [(isActive)]="open">
|
|
66
|
+
* <ng-container *bsAccordionTabHeader>Profile</ng-container>
|
|
67
|
+
* Body content
|
|
68
|
+
* </bs-accordion-tab>
|
|
69
|
+
* </bs-accordion>
|
|
70
|
+
*
|
|
71
|
+
* Each tab's header is HOISTED out of the tab and rendered here, as a sibling
|
|
72
|
+
* of the tab's own marker element. Named slots only accept direct children of
|
|
73
|
+
* the shadow host, and an Angular component can only render inside its own
|
|
74
|
+
* host element — so a header authored inside `<bs-accordion-tab>` could never
|
|
75
|
+
* reach the accordion's shadow on its own. `*bsAccordionTabHeader` captures it
|
|
76
|
+
* as a template that this component renders in the right place.
|
|
77
|
+
*
|
|
78
|
+
* The WC owns interaction, ARIA, animation and the no-JS tier; this wrapper
|
|
79
|
+
* bridges inputs to attributes and the toggle event back into each tab's
|
|
80
|
+
* `isActive` model.
|
|
81
|
+
*/
|
|
16
82
|
declare class BsAccordionComponent {
|
|
17
|
-
|
|
18
|
-
|
|
83
|
+
/** Allow several tabs to stay open at once (checkbox machine with JS off). */
|
|
84
|
+
readonly multi: _angular_core.InputSignal<boolean>;
|
|
85
|
+
/** Paint the open header with the Bootstrap active background. */
|
|
86
|
+
readonly highlightActiveTab: _angular_core.InputSignal<boolean>;
|
|
19
87
|
readonly tabPages: _angular_core.Signal<readonly BsAccordionTabComponent[]>;
|
|
20
|
-
readonly
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
88
|
+
protected readonly element: _angular_core.Signal<ElementRef<MpAccordion> | undefined>;
|
|
89
|
+
protected readonly multiAttr: _angular_core.Signal<"" | null>;
|
|
90
|
+
protected readonly highlightActiveTabAttr: _angular_core.Signal<"" | null>;
|
|
91
|
+
/** Close every open tab, and every accordion nested inside them. */
|
|
92
|
+
closeAll(): void;
|
|
93
|
+
/** Drive a tab through the WC so nested accordions collapse with it. */
|
|
94
|
+
setActive(index: number, active: boolean): void;
|
|
95
|
+
protected onTabToggle(event: Event): void;
|
|
27
96
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<BsAccordionComponent, never>;
|
|
28
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<BsAccordionComponent, "bs-accordion", never, { "
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
declare class BsAccordionTabHeaderComponent {
|
|
32
|
-
accordionTab: BsAccordionTabComponent;
|
|
33
|
-
headerClicked(event: Event): void;
|
|
34
|
-
headerKeydown(event: KeyboardEvent): void;
|
|
35
|
-
static ɵfac: _angular_core.ɵɵFactoryDeclaration<BsAccordionTabHeaderComponent, never>;
|
|
36
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<BsAccordionTabHeaderComponent, "bs-accordion-tab-header", never, {}, {}, never, ["*"], true, never>;
|
|
97
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<BsAccordionComponent, "bs-accordion", never, { "multi": { "alias": "multi"; "required": false; "isSignal": true; }; "highlightActiveTab": { "alias": "highlightActiveTab"; "required": false; "isSignal": true; }; }, {}, ["tabPages"], ["*"], true, never>;
|
|
37
98
|
}
|
|
38
99
|
|
|
39
|
-
export { BsAccordionComponent, BsAccordionTabComponent,
|
|
100
|
+
export { BsAccordionComponent, BsAccordionTabComponent, BsAccordionTabHeaderDirective };
|
|
@@ -1,121 +1,69 @@
|
|
|
1
1
|
import * as _angular_core from '@angular/core';
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { BsSwipeContainerDirective } from '@mintplayer/ng-swiper/swiper';
|
|
5
|
-
import * as i1 from '@mintplayer/ng-bootstrap/reduced-motion';
|
|
6
|
-
|
|
7
|
-
declare class BsCarouselImageDirective {
|
|
8
|
-
private templateRef;
|
|
9
|
-
private carousel;
|
|
10
|
-
private element;
|
|
11
|
-
itemTemplate: TemplateRef<any>;
|
|
12
|
-
id: number;
|
|
13
|
-
isFirst: boolean;
|
|
14
|
-
constructor();
|
|
15
|
-
static ɵfac: _angular_core.ɵɵFactoryDeclaration<BsCarouselImageDirective, never>;
|
|
16
|
-
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<BsCarouselImageDirective, "*[bsCarouselImage]", never, {}, {}, never, never, true, never>;
|
|
17
|
-
}
|
|
2
|
+
import { ElementRef } from '@angular/core';
|
|
3
|
+
import { CarouselAnimation, CarouselOrientation, MpCarousel } from '@mintplayer/web-components/carousel';
|
|
18
4
|
|
|
19
5
|
/**
|
|
20
|
-
*
|
|
21
|
-
*
|
|
6
|
+
* `<bs-carousel>` — Angular wrapper around the `<mp-carousel>` web component.
|
|
7
|
+
*
|
|
8
|
+
* Slides are plain content children (no structural directive):
|
|
9
|
+
*
|
|
10
|
+
* <bs-carousel animation="fade" [indicators]="true" [interval]="4000" ariaLabel="Photos">
|
|
11
|
+
* <img src="a.png" alt="…">
|
|
12
|
+
* <img src="b.png" alt="…">
|
|
13
|
+
* </bs-carousel>
|
|
22
14
|
*
|
|
23
|
-
*
|
|
24
|
-
*
|
|
25
|
-
*
|
|
26
|
-
*
|
|
27
|
-
*
|
|
15
|
+
* Track layout, gestures, keyboard, ARIA, the radio-driven no-JS tier and the
|
|
16
|
+
* height contract all live in the WC (single source of UI truth); this wrapper
|
|
17
|
+
* only bridges inputs to attributes and re-emits the WC's typed events. A
|
|
18
|
+
* custom play/pause control can be projected with `slot="play-pause"` — wire
|
|
19
|
+
* it to `togglePaused()` (or listen to `pausedChange`).
|
|
20
|
+
*
|
|
21
|
+
* The WC is registered **client-side only** (`afterNextRender`); on the server
|
|
22
|
+
* Angular emits a bare `<mp-carousel>` tag and the SSR layer injects its
|
|
23
|
+
* Declarative Shadow DOM (see `injectMpCarouselDsd`), so the carousel renders
|
|
24
|
+
* — and navigates — with JS off.
|
|
28
25
|
*/
|
|
29
|
-
|
|
30
|
-
/**
|
|
31
|
-
|
|
32
|
-
/**
|
|
33
|
-
|
|
34
|
-
/**
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
readonly
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
readonly
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
indicators: _angular_core.InputSignal<boolean>;
|
|
58
|
-
keyboardEvents: _angular_core.InputSignal<boolean>;
|
|
59
|
-
orientation: _angular_core.InputSignal<"horizontal" | "vertical">;
|
|
60
|
-
animation: _angular_core.InputSignal<"fade" | "slide" | "none">;
|
|
61
|
-
interval: _angular_core.InputSignal<number | null>;
|
|
62
|
-
wrap: _angular_core.InputSignal<boolean>;
|
|
63
|
-
ariaLabel: _angular_core.InputSignal<string | null>;
|
|
64
|
-
paused: _angular_core.ModelSignal<boolean>;
|
|
65
|
-
/**
|
|
66
|
-
* Template projected via `*bsCarouselPlayPause`. When set, the carousel
|
|
67
|
-
* renders it in a control row above the slides. Per APG, auto-advancing
|
|
68
|
-
* carousels must expose a play/pause control — this is how consumers
|
|
69
|
-
* provide one without us imposing a button style.
|
|
70
|
-
*/
|
|
71
|
-
readonly playPauseTemplate: _angular_core.WritableSignal<TemplateRef<BsCarouselPlayPauseContext> | null>;
|
|
72
|
-
slideChange: _angular_core.OutputEmitterRef<number>;
|
|
73
|
-
animationStart: _angular_core.OutputEmitterRef<void>;
|
|
74
|
-
animationEnd: _angular_core.OutputEmitterRef<void>;
|
|
75
|
-
imageCount: _angular_core.Signal<number>;
|
|
76
|
-
readonly innerElement: _angular_core.Signal<ElementRef<HTMLDivElement> | undefined>;
|
|
77
|
-
readonly swipeContainer: _angular_core.Signal<BsSwipeContainerDirective | undefined>;
|
|
78
|
-
slideHeight: _angular_core.Signal<number>;
|
|
79
|
-
firstImageTemplate: _angular_core.Signal<TemplateRef<any> | null>;
|
|
80
|
-
lastImageTemplate: _angular_core.Signal<TemplateRef<any> | null>;
|
|
81
|
-
readonly animationsDisabled: _angular_core.WritableSignal<boolean>;
|
|
82
|
-
/**
|
|
83
|
-
* `aria-live` value for the slide viewport. Stays `off` while
|
|
84
|
-
* auto-advance is actually rotating — otherwise the SR would re-read the
|
|
85
|
-
* active slide every interval — and switches to `polite` whenever the
|
|
86
|
-
* rotation is paused (by `paused`, missing/zero `interval`, or
|
|
87
|
-
* `prefers-reduced-motion`), so manual prev/next/indicator clicks get
|
|
88
|
-
* announced.
|
|
89
|
-
*/
|
|
90
|
-
readonly slideAriaLive: _angular_core.Signal<"off" | "polite">;
|
|
26
|
+
declare class BsCarouselComponent {
|
|
27
|
+
/** Slide transition: `slide` (default), `fade`, or `none`. */
|
|
28
|
+
readonly animation: _angular_core.InputSignal<CarouselAnimation>;
|
|
29
|
+
/** Slide axis; vertical also pins every slide to the tallest one. */
|
|
30
|
+
readonly orientation: _angular_core.InputSignal<CarouselOrientation>;
|
|
31
|
+
/** Show the indicator dots. */
|
|
32
|
+
readonly indicators: _angular_core.InputSignal<boolean>;
|
|
33
|
+
/** Auto-advance interval in ms; `null`/`0` disables autoplay. */
|
|
34
|
+
readonly interval: _angular_core.InputSignal<number | null>;
|
|
35
|
+
/** Wrap around at the ends (buttons, keyboard AND swipe). */
|
|
36
|
+
readonly wrap: _angular_core.InputSignal<boolean>;
|
|
37
|
+
/** Arrow/Home/End navigation on the focused viewport. */
|
|
38
|
+
readonly keyboardEvents: _angular_core.InputSignal<boolean>;
|
|
39
|
+
/** Accessible label for the carousel region. */
|
|
40
|
+
readonly ariaLabel: _angular_core.InputSignal<string | null>;
|
|
41
|
+
/** Two-way: whether autoplay is paused. */
|
|
42
|
+
readonly paused: _angular_core.ModelSignal<boolean>;
|
|
43
|
+
/** The committed slide index changed. */
|
|
44
|
+
readonly slideChange: _angular_core.OutputEmitterRef<number>;
|
|
45
|
+
readonly animationStart: _angular_core.OutputEmitterRef<void>;
|
|
46
|
+
readonly animationEnd: _angular_core.OutputEmitterRef<void>;
|
|
47
|
+
protected readonly element: _angular_core.Signal<ElementRef<MpCarousel> | undefined>;
|
|
48
|
+
/** Presence/string-or-absent attributes derived once via signals. */
|
|
49
|
+
protected readonly indicatorsAttr: _angular_core.Signal<"" | null>;
|
|
50
|
+
protected readonly intervalAttr: _angular_core.Signal<string | null>;
|
|
51
|
+
protected readonly wrapAttr: _angular_core.Signal<"false" | null>;
|
|
52
|
+
protected readonly keyboardEventsAttr: _angular_core.Signal<"false" | null>;
|
|
53
|
+
protected readonly pausedAttr: _angular_core.Signal<"" | null>;
|
|
91
54
|
constructor();
|
|
92
|
-
/** Resume auto-advance. No-op if `interval` is unset or reduce-motion is on. */
|
|
93
|
-
play(): void;
|
|
94
|
-
/** Pause auto-advance. Manual prev/next/goto still work. */
|
|
95
|
-
pause(): void;
|
|
96
|
-
/** Toggle the paused state. Used as the `toggle` callback in `BsCarouselPlayPauseContext`. */
|
|
97
|
-
togglePaused: () => void;
|
|
98
|
-
private clearAutoAdvance;
|
|
99
55
|
previous(): void;
|
|
100
56
|
next(): void;
|
|
101
57
|
goto(index: number): void;
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
58
|
+
play(): void;
|
|
59
|
+
pause(): void;
|
|
60
|
+
togglePaused: () => void;
|
|
61
|
+
protected onSlideChange(event: Event): void;
|
|
62
|
+
protected onPausedChange(event: Event): void;
|
|
63
|
+
protected onAnimationStart(event: Event): void;
|
|
64
|
+
protected onAnimationEnd(event: Event): void;
|
|
108
65
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<BsCarouselComponent, never>;
|
|
109
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<BsCarouselComponent, "bs-carousel", never, { "
|
|
110
|
-
}
|
|
111
|
-
|
|
112
|
-
declare class BsCarouselImgDirective {
|
|
113
|
-
private image;
|
|
114
|
-
fetchPriority: 'high' | 'low' | 'auto';
|
|
115
|
-
constructor();
|
|
116
|
-
static ɵfac: _angular_core.ɵɵFactoryDeclaration<BsCarouselImgDirective, never>;
|
|
117
|
-
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<BsCarouselImgDirective, "img", never, {}, {}, never, never, true, never>;
|
|
66
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<BsCarouselComponent, "bs-carousel", never, { "animation": { "alias": "animation"; "required": false; "isSignal": true; }; "orientation": { "alias": "orientation"; "required": false; "isSignal": true; }; "indicators": { "alias": "indicators"; "required": false; "isSignal": true; }; "interval": { "alias": "interval"; "required": false; "isSignal": true; }; "wrap": { "alias": "wrap"; "required": false; "isSignal": true; }; "keyboardEvents": { "alias": "keyboardEvents"; "required": false; "isSignal": true; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; "isSignal": true; }; "paused": { "alias": "paused"; "required": false; "isSignal": true; }; }, { "paused": "pausedChange"; "slideChange": "slideChange"; "animationStart": "animationStart"; "animationEnd": "animationEnd"; }, never, ["*"], true, never>;
|
|
118
67
|
}
|
|
119
68
|
|
|
120
|
-
export { BsCarouselComponent
|
|
121
|
-
export type { BsCarouselPlayPauseContext };
|
|
69
|
+
export { BsCarouselComponent };
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import * as _angular_core from '@angular/core';
|
|
2
2
|
import { ElementRef, TemplateRef, OnDestroy } from '@angular/core';
|
|
3
3
|
import { NavbarBreakpoint, NavbarExpandedChangeEventDetail } from '@mintplayer/web-components/navbar';
|
|
4
|
+
import * as i1 from '@angular/router';
|
|
4
5
|
|
|
5
6
|
/**
|
|
6
7
|
* `<bs-navbar>` — Angular wrapper around the `<mp-navbar>` web component.
|
|
@@ -146,12 +147,24 @@ declare class BsNavbarDropdownLabelDirective {
|
|
|
146
147
|
* consumer template's nesting, not the projection site — the internally
|
|
147
148
|
* rendered menu is invisible to projected children's injectors), so nested
|
|
148
149
|
* `<bs-navbar-item>`s render their `.dropdown-item` shape.
|
|
150
|
+
*
|
|
151
|
+
* **Active-route trigger highlighting:** a `RouterLinkActive` host directive
|
|
152
|
+
* collects the projected descendant `routerLink`s; when any is active
|
|
153
|
+
* (non-exact — the whole subtree counts, like the legacy `[bsNavbarTrigger]`
|
|
154
|
+
* prefix match) the WC gets its `active` attribute, which recolors the
|
|
155
|
+
* shadow-rendered trigger (primary background for submenu triggers). Nested
|
|
156
|
+
* dropdowns each report their own subtree, so the full trigger chain of the
|
|
157
|
+
* active route highlights. Renders server-side, so it works with JS off.
|
|
158
|
+
*
|
|
149
159
|
* Reveal/positioning and the no-JS `:focus-within` fallback all live in the WC.
|
|
150
160
|
*/
|
|
151
161
|
declare class BsNavbarDropdownComponent {
|
|
152
162
|
protected readonly label: _angular_core.Signal<BsNavbarDropdownLabelDirective>;
|
|
163
|
+
/** A projected descendant link's route is active → highlight the trigger. */
|
|
164
|
+
protected readonly routeActive: _angular_core.WritableSignal<boolean>;
|
|
165
|
+
constructor();
|
|
153
166
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<BsNavbarDropdownComponent, never>;
|
|
154
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<BsNavbarDropdownComponent, "bs-navbar-dropdown", never, {}, {}, ["label"], ["*"], true,
|
|
167
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<BsNavbarDropdownComponent, "bs-navbar-dropdown", never, {}, {}, ["label"], ["*"], true, [{ directive: typeof i1.RouterLinkActive; inputs: {}; outputs: {}; }]>;
|
|
155
168
|
}
|
|
156
169
|
|
|
157
170
|
/**
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import * as _angular_core from '@angular/core';
|
|
2
|
+
import { AfterViewInit, OnDestroy } from '@angular/core';
|
|
3
|
+
|
|
4
|
+
interface Size {
|
|
5
|
+
width: number;
|
|
6
|
+
height: number;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
declare class BsObserveSizeDirective implements AfterViewInit, OnDestroy {
|
|
10
|
+
private element;
|
|
11
|
+
private platformId;
|
|
12
|
+
private observer?;
|
|
13
|
+
constructor();
|
|
14
|
+
size: _angular_core.WritableSignal<Size | undefined>;
|
|
15
|
+
width: _angular_core.Signal<number | undefined>;
|
|
16
|
+
height: _angular_core.Signal<number | undefined>;
|
|
17
|
+
ngAfterViewInit(): void;
|
|
18
|
+
ngOnDestroy(): void;
|
|
19
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<BsObserveSizeDirective, never>;
|
|
20
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<BsObserveSizeDirective, "[bsObserveSize]", ["bsObserveSize"], {}, {}, never, never, true, never>;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
export { BsObserveSizeDirective };
|
|
24
|
+
export type { Size };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as _angular_core from '@angular/core';
|
|
2
2
|
import { TemplateRef } from '@angular/core';
|
|
3
3
|
import { Breakpoint } from '@mintplayer/ng-bootstrap';
|
|
4
|
-
import { BsObserveSizeDirective } from '@mintplayer/ng-
|
|
4
|
+
import { BsObserveSizeDirective } from '@mintplayer/ng-bootstrap/observe-size';
|
|
5
5
|
|
|
6
6
|
declare class BsPriorityNavItemDirective {
|
|
7
7
|
templateRef: TemplateRef<any>;
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import * as _angular_core from '@angular/core';
|
|
2
|
+
import { ElementRef } from '@angular/core';
|
|
3
|
+
import { Direction, SplitterResizeEventDetail, MpSplitter, ResizeKey } from '@mintplayer/web-components/splitter';
|
|
4
|
+
export * from '@mintplayer/web-components/splitter';
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* `<bs-splitter>` — Angular wrapper around the `<mp-splitter>` web component.
|
|
8
|
+
*
|
|
9
|
+
* Panes are plain content children; the WC slots each direct child into its
|
|
10
|
+
* own resizable panel and inserts draggable/keyboard-operable dividers
|
|
11
|
+
* between them. Nest splitters to build dock-style layouts:
|
|
12
|
+
*
|
|
13
|
+
* <bs-splitter>
|
|
14
|
+
* <div>Left</div>
|
|
15
|
+
* <bs-splitter orientation="vertical" [minPanelSize]="80">
|
|
16
|
+
* <div>Top</div>
|
|
17
|
+
* <div>Bottom</div>
|
|
18
|
+
* </bs-splitter>
|
|
19
|
+
* </bs-splitter>
|
|
20
|
+
*
|
|
21
|
+
* Each wrapper claims exactly the events of its own `<mp-splitter>`: the
|
|
22
|
+
* target guard keeps a nested splitter's bubbled events from being re-emitted
|
|
23
|
+
* by the outer wrapper, and `stopPropagation()` *after* the guard ensures a
|
|
24
|
+
* claimed event is delivered once, as a typed output only. The stop is
|
|
25
|
+
* required: Angular registers BOTH a DOM listener and the output subscription
|
|
26
|
+
* for an element event binding, so a consumer's `(resizing)` handler would
|
|
27
|
+
* otherwise also receive the identically-named bubbling CustomEvent raw.
|
|
28
|
+
* Unclaimed events (from a nested raw `<mp-splitter>`) bubble on untouched.
|
|
29
|
+
*
|
|
30
|
+
* Before the custom element upgrades (or with JS off), a `:not(:defined)`
|
|
31
|
+
* fallback stylesheet renders the panes as a static flex layout with visible
|
|
32
|
+
* divider chrome, so server-rendered pages don't flash unstyled content.
|
|
33
|
+
*/
|
|
34
|
+
declare class BsSplitterComponent {
|
|
35
|
+
/** Axis along which the panes are laid out (and resized). */
|
|
36
|
+
readonly orientation: _angular_core.InputSignal<Direction>;
|
|
37
|
+
/** Minimum pane size in px a divider can shrink a pane to (WC default 50). */
|
|
38
|
+
readonly minPanelSize: _angular_core.InputSignal<number | null>;
|
|
39
|
+
/** Widen the invisible divider hit area for touch use. */
|
|
40
|
+
readonly touchMode: _angular_core.InputSignal<boolean>;
|
|
41
|
+
/** A divider drag started. Detail: current `{ sizes, orientation }`. */
|
|
42
|
+
readonly resizeStart: _angular_core.OutputEmitterRef<SplitterResizeEventDetail>;
|
|
43
|
+
/** Fires on every drag-preview frame with the in-flight sizes. */
|
|
44
|
+
readonly resizing: _angular_core.OutputEmitterRef<SplitterResizeEventDetail>;
|
|
45
|
+
/** Drag or keyboard resize committed. Detail: final `{ sizes, orientation }`. */
|
|
46
|
+
readonly resizeEnd: _angular_core.OutputEmitterRef<SplitterResizeEventDetail>;
|
|
47
|
+
protected readonly element: _angular_core.Signal<ElementRef<MpSplitter> | undefined>;
|
|
48
|
+
protected readonly minPanelSizeAttr: _angular_core.Signal<string | null>;
|
|
49
|
+
protected readonly touchModeAttr: _angular_core.Signal<"" | null>;
|
|
50
|
+
/** Current pane sizes in px, in document order. */
|
|
51
|
+
getPanelSizes(): number[];
|
|
52
|
+
/** Programmatically distribute pane sizes (px, one entry per pane). */
|
|
53
|
+
setPanelSizes(sizes: number[]): void;
|
|
54
|
+
/**
|
|
55
|
+
* Drive a keyboard-style resize on divider `dividerIndex` (arrows ±10%,
|
|
56
|
+
* `fine` = ±1%, Home/End to the limits).
|
|
57
|
+
*/
|
|
58
|
+
resizeDividerBy(dividerIndex: number, key: ResizeKey, fine?: boolean): void;
|
|
59
|
+
protected onResizeStart(event: Event): void;
|
|
60
|
+
protected onResizing(event: Event): void;
|
|
61
|
+
protected onResizeEnd(event: Event): void;
|
|
62
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<BsSplitterComponent, never>;
|
|
63
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<BsSplitterComponent, "bs-splitter", never, { "orientation": { "alias": "orientation"; "required": false; "isSignal": true; }; "minPanelSize": { "alias": "minPanelSize"; "required": false; "isSignal": true; }; "touchMode": { "alias": "touchMode"; "required": false; "isSignal": true; }; }, { "resizeStart": "resizeStart"; "resizing": "resizing"; "resizeEnd": "resizeEnd"; }, never, ["*"], true, never>;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
export { BsSplitterComponent };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
2
|
import { AfterViewInit, Injector } from '@angular/core';
|
|
3
|
-
import { BsObserveSizeDirective } from '@mintplayer/ng-
|
|
3
|
+
import { BsObserveSizeDirective } from '@mintplayer/ng-bootstrap/observe-size';
|
|
4
4
|
|
|
5
5
|
declare class BsStickyFooterParentDirective {
|
|
6
6
|
marginBottom?: number;
|