@mintplayer/ng-bootstrap 22.34.0 → 22.36.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.
@@ -1,50 +1,86 @@
1
1
  import * as _angular_core from '@angular/core';
2
2
  import { ElementRef, TemplateRef } from '@angular/core';
3
3
  import * as _mintplayer_ui_core_dock from '@mintplayer/ui-core/dock';
4
- import { DockPaneActivatedEventDetail, DockMethods } from '@mintplayer/ui-core/dock';
5
- export { DOCK_LABELS, DockFloatingPaneBounds, DockFloatingStackLayout, DockLabels, DockLayout, DockLayoutInput, DockLayoutNode, DockLayoutSnapshot, DockPaneActivatedEventDetail, DockSplitNode, DockStackNode, EMPTY_DOCK_LAYOUT, mergeDockLabels } from '@mintplayer/ui-core/dock';
4
+ import { DockPaneActivatedEventDetail, DockPanesClosedEventDetail, DockMethods } from '@mintplayer/ui-core/dock';
5
+ export { DOCK_LABELS, DockClosedPane, DockFloatingPaneBounds, DockFloatingStackLayout, DockLabels, DockLayout, DockLayoutInput, DockLayoutNode, DockLayoutSnapshot, DockPaneActivatedEventDetail, DockPaneAnchor, DockPaneKind, DockPaneOptions, DockPanesClosedEventDetail, DockPanesOptions, DockSplitNode, DockStackNode, DockToolbarRow, DockToolbarTrays, DockTraySide, DockTraySlot, EMPTY_DOCK_LAYOUT, closeDockPane, closeDockPanes, dockOpenPanes, isDockPaneOpen, mergeDockLabels, openDockPane } from '@mintplayer/ui-core/dock';
6
6
 
7
7
  /** The `pane` slot of `<bs-dock-manager>`: `<ng-template bsDockManagerPane>` or `*bsDockManagerPane`. */
8
8
  declare class BsDockManagerPaneDirective {
9
9
  readonly templateRef: TemplateRef<{
10
10
  pane: string;
11
+ kind: "document" | "tool" | "toolbar";
12
+ floating: boolean;
13
+ active: boolean;
14
+ orientation: "horizontal" | "vertical";
15
+ overflowing: boolean;
11
16
  } & {
12
17
  $implicit: {
13
18
  pane: string;
19
+ kind: "document" | "tool" | "toolbar";
20
+ floating: boolean;
21
+ active: boolean;
22
+ orientation: "horizontal" | "vertical";
23
+ overflowing: boolean;
14
24
  }["pane"];
15
25
  }>;
16
26
  static ngTemplateContextGuard(_dir: BsDockManagerPaneDirective, ctx: unknown): ctx is {
17
27
  pane: string;
28
+ kind: 'document' | 'tool' | 'toolbar';
29
+ floating: boolean;
30
+ active: boolean;
31
+ orientation: 'horizontal' | 'vertical';
32
+ overflowing: boolean;
18
33
  } & {
19
34
  $implicit: {
20
35
  pane: string;
36
+ kind: 'document' | 'tool' | 'toolbar';
37
+ floating: boolean;
38
+ active: boolean;
39
+ orientation: 'horizontal' | 'vertical';
40
+ overflowing: boolean;
21
41
  }['pane'];
22
42
  };
23
43
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<BsDockManagerPaneDirective, never>;
24
44
  static ɵdir: _angular_core.ɵɵDirectiveDeclaration<BsDockManagerPaneDirective, "[bsDockManagerPane]", never, {}, {}, never, never, true, never>;
25
45
  }
26
46
  /**
27
- * A docking layout (#437): panes in tabbed stacks, split side by side and torn off into floating
28
- * windows, by pointer, touch long-press or the keyboard (M on a tab, then T/R/B/L/F or the arrows).
29
- * `layout` is two-way; the `pane` slot renders each pane by name. Strings come from `labels`.
47
+ * A docking layout (#437, #474): panes in tabbed stacks, split side by side, torn off into floating
48
+ * windows and docked along the outer edges; toolbars in trays along the four edges. By pointer, touch
49
+ * long-press or the keyboard (M on a tab, a caption or a toolbar thumb). `layout` is two-way; `panes`
50
+ * gives each pane its title, kind and options; the `pane` slot renders each pane by name. Strings come
51
+ * from `labels`.
30
52
  */
31
53
  declare class BsDockManagerComponent {
32
54
  #private;
33
55
  /** The host element. */
34
56
  readonly elementRef: ElementRef<HTMLElement>;
35
57
  readonly layout: _angular_core.ModelSignal<_mintplayer_ui_core_dock.DockLayoutInput>;
58
+ readonly panes: _angular_core.InputSignal<_mintplayer_ui_core_dock.DockPanesOptions | null>;
59
+ readonly minPaneSize: _angular_core.InputSignalWithTransform<number, unknown>;
36
60
  readonly debugLayoutIntegrity: _angular_core.InputSignalWithTransform<boolean, unknown>;
37
61
  readonly labels: _angular_core.InputSignal<Partial<_mintplayer_ui_core_dock.DockLabels> | null>;
38
62
  /** A tab was activated. */
39
63
  readonly paneActivated: _angular_core.OutputEmitterRef<DockPaneActivatedEventDetail>;
64
+ /** The user closed panes: every pane name one close removed. */
65
+ readonly panesClosed: _angular_core.OutputEmitterRef<DockPanesClosedEventDetail>;
40
66
  private readonly paneSlot;
41
67
  /** The template's named slots. */
42
68
  protected readonly slots: _angular_core.Signal<{
43
69
  pane: TemplateRef<{
44
70
  pane: string;
71
+ kind: "document" | "tool" | "toolbar";
72
+ floating: boolean;
73
+ active: boolean;
74
+ orientation: "horizontal" | "vertical";
75
+ overflowing: boolean;
45
76
  } & {
46
77
  $implicit: {
47
78
  pane: string;
79
+ kind: "document" | "tool" | "toolbar";
80
+ floating: boolean;
81
+ active: boolean;
82
+ orientation: "horizontal" | "vertical";
83
+ overflowing: boolean;
48
84
  }["pane"];
49
85
  }> | undefined;
50
86
  }>;
@@ -56,7 +92,7 @@ declare class BsDockManagerComponent {
56
92
  /** A copy of the current layout snapshot. */
57
93
  captureLayout(...args: Parameters<DockMethods['captureLayout']>): ReturnType<DockMethods['captureLayout']>;
58
94
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<BsDockManagerComponent, never>;
59
- static ɵcmp: _angular_core.ɵɵComponentDeclaration<BsDockManagerComponent, "bs-dock-manager", never, { "layout": { "alias": "layout"; "required": false; "isSignal": true; }; "debugLayoutIntegrity": { "alias": "debugLayoutIntegrity"; "required": false; "isSignal": true; }; "labels": { "alias": "labels"; "required": false; "isSignal": true; }; }, { "layout": "layoutChange"; "paneActivated": "paneActivated"; }, ["paneSlot"], never, true, never>;
95
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<BsDockManagerComponent, "bs-dock-manager", never, { "layout": { "alias": "layout"; "required": false; "isSignal": true; }; "panes": { "alias": "panes"; "required": false; "isSignal": true; }; "minPaneSize": { "alias": "minPaneSize"; "required": false; "isSignal": true; }; "debugLayoutIntegrity": { "alias": "debugLayoutIntegrity"; "required": false; "isSignal": true; }; "labels": { "alias": "labels"; "required": false; "isSignal": true; }; }, { "layout": "layoutChange"; "paneActivated": "paneActivated"; "panesClosed": "panesClosed"; }, ["paneSlot"], never, true, never>;
60
96
  }
61
97
 
62
98
  export { BsDockManagerComponent, BsDockManagerPaneDirective };
@@ -1,6 +1,7 @@
1
1
  import * as _mintplayer_ui_core_component from '@mintplayer/ui-core/component';
2
2
  import * as _mintplayer_ui_core_dropdown from '@mintplayer/ui-core/dropdown';
3
3
  import { DropdownSelectEventDetail } from '@mintplayer/ui-core/dropdown';
4
+ import * as _mintplayer_ui_core_overlay from '@mintplayer/ui-core/overlay';
4
5
  import * as _angular_core from '@angular/core';
5
6
  import { ElementRef, TemplateRef } from '@angular/core';
6
7
  import * as i1 from '@angular/router';
@@ -14,7 +15,8 @@ declare class BsDropdownPanelComponent {
14
15
  /** The panel's id, which the trigger's `aria-controls` names. */
15
16
  readonly overlayId: _angular_core.InputSignal<string>;
16
17
  readonly side: _angular_core.InputSignal<string>;
17
- readonly shown: _angular_core.InputSignalWithTransform<boolean, unknown>;
18
+ /** The overlay phase: `.show` while shown, `hidden` while closed (#465). */
19
+ readonly phase: _angular_core.InputSignal<_mintplayer_ui_core_overlay.OverlayPhase>;
18
20
  readonly hasPopup: _angular_core.InputSignal<string>;
19
21
  /** The trigger's id, naming a dialog panel. */
20
22
  readonly triggerId: _angular_core.InputSignal<string | null>;
@@ -26,7 +28,7 @@ declare class BsDropdownPanelComponent {
26
28
  }>;
27
29
  constructor();
28
30
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<BsDropdownPanelComponent, never>;
29
- static ɵcmp: _angular_core.ɵɵComponentDeclaration<BsDropdownPanelComponent, "bs-dropdown-panel", never, { "overlayId": { "alias": "overlayId"; "required": false; "isSignal": true; }; "side": { "alias": "side"; "required": false; "isSignal": true; }; "shown": { "alias": "shown"; "required": false; "isSignal": true; }; "hasPopup": { "alias": "hasPopup"; "required": false; "isSignal": true; }; "triggerId": { "alias": "triggerId"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
31
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<BsDropdownPanelComponent, "bs-dropdown-panel", never, { "overlayId": { "alias": "overlayId"; "required": false; "isSignal": true; }; "side": { "alias": "side"; "required": false; "isSignal": true; }; "phase": { "alias": "phase"; "required": false; "isSignal": true; }; "hasPopup": { "alias": "hasPopup"; "required": false; "isSignal": true; }; "triggerId": { "alias": "triggerId"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
30
32
  }
31
33
 
32
34
  /** The `labelTemplate` slot of `<bs-dropdown-menu>`: `<ng-template bsDropdownMenuLabelTemplate>` or `*bsDropdownMenuLabelTemplate`. */
@@ -12,7 +12,8 @@ declare class BsPopoverPanelComponent {
12
12
  /** The panel's id, which the trigger's `aria-controls` names. */
13
13
  readonly overlayId: _angular_core.InputSignal<string>;
14
14
  readonly side: _angular_core.InputSignal<_mintplayer_ui_core_overlay.AnchorSide>;
15
- readonly shown: _angular_core.InputSignalWithTransform<boolean, unknown>;
15
+ /** The overlay phase: `.show` while shown, `hidden` while closed (#465). */
16
+ readonly phase: _angular_core.InputSignal<_mintplayer_ui_core_overlay.OverlayPhase>;
16
17
  readonly heading: _angular_core.InputSignal<string | null>;
17
18
  /** The trigger's id, naming the dialog when there is no title. */
18
19
  readonly triggerId: _angular_core.InputSignal<string | null>;
@@ -22,7 +23,7 @@ declare class BsPopoverPanelComponent {
22
23
  }>;
23
24
  constructor();
24
25
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<BsPopoverPanelComponent, never>;
25
- static ɵcmp: _angular_core.ɵɵComponentDeclaration<BsPopoverPanelComponent, "bs-popover-panel", never, { "overlayId": { "alias": "overlayId"; "required": false; "isSignal": true; }; "side": { "alias": "side"; "required": false; "isSignal": true; }; "shown": { "alias": "shown"; "required": false; "isSignal": true; }; "heading": { "alias": "heading"; "required": false; "isSignal": true; }; "triggerId": { "alias": "triggerId"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
26
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<BsPopoverPanelComponent, "bs-popover-panel", never, { "overlayId": { "alias": "overlayId"; "required": false; "isSignal": true; }; "side": { "alias": "side"; "required": false; "isSignal": true; }; "phase": { "alias": "phase"; "required": false; "isSignal": true; }; "heading": { "alias": "heading"; "required": false; "isSignal": true; }; "triggerId": { "alias": "triggerId"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
26
27
  }
27
28
 
28
29
  /**
@@ -38,18 +38,24 @@ declare class BsSplitterComponent {
38
38
  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; }; "labels": { "alias": "labels"; "required": false; "isSignal": true; }; }, { "resizeStart": "resizeStart"; "resizing": "resizing"; "resizeEnd": "resizeEnd"; }, never, ["*"], true, never>;
39
39
  }
40
40
 
41
- /** One panel of a splitter. Its content fills the panel. */
41
+ /**
42
+ * One panel of a splitter. Its content fills the panel. `size` makes it its content's size (`auto`) or
43
+ * fixed px, so the dividers beside it do not move; `minSize` and `maxSize` bound what a divider can do.
44
+ */
42
45
  declare class BsSplitterPanelComponent {
43
46
  #private;
44
47
  /** The host element. */
45
48
  readonly elementRef: ElementRef<HTMLElement>;
49
+ readonly size: _angular_core.InputSignal<_mintplayer_ui_core_splitter.SplitterPanelSize>;
50
+ readonly minSize: _angular_core.InputSignalWithTransform<number | null, unknown>;
51
+ readonly maxSize: _angular_core.InputSignalWithTransform<number | null, unknown>;
46
52
  /** The template's props. */
47
53
  protected readonly props: _angular_core.Signal<{
48
54
  view: _mintplayer_ui_core_splitter.SplitterPanelView;
49
55
  }>;
50
56
  constructor();
51
57
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<BsSplitterPanelComponent, never>;
52
- static ɵcmp: _angular_core.ɵɵComponentDeclaration<BsSplitterPanelComponent, "bs-splitter-panel", never, {}, {}, never, ["*"], true, never>;
58
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<BsSplitterPanelComponent, "bs-splitter-panel", never, { "size": { "alias": "size"; "required": false; "isSignal": true; }; "minSize": { "alias": "minSize"; "required": false; "isSignal": true; }; "maxSize": { "alias": "maxSize"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
53
59
  }
54
60
 
55
61
  export { BsSplitterComponent, BsSplitterPanelComponent };
@@ -12,14 +12,15 @@ declare class BsTooltipPanelComponent {
12
12
  /** The panel's id, which the trigger's `aria-describedby` names. */
13
13
  readonly overlayId: _angular_core.InputSignal<string>;
14
14
  readonly side: _angular_core.InputSignal<_mintplayer_ui_core_overlay.AnchorSide>;
15
- readonly shown: _angular_core.InputSignalWithTransform<boolean, unknown>;
15
+ /** The overlay phase: `.show` while shown, `hidden` while closed (#465). */
16
+ readonly phase: _angular_core.InputSignal<_mintplayer_ui_core_overlay.OverlayPhase>;
16
17
  /** The template's props. */
17
18
  protected readonly props: _angular_core.Signal<{
18
19
  view: _mintplayer_ui_core_tooltip.TooltipPanelView;
19
20
  }>;
20
21
  constructor();
21
22
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<BsTooltipPanelComponent, never>;
22
- static ɵcmp: _angular_core.ɵɵComponentDeclaration<BsTooltipPanelComponent, "bs-tooltip-panel", never, { "overlayId": { "alias": "overlayId"; "required": false; "isSignal": true; }; "side": { "alias": "side"; "required": false; "isSignal": true; }; "shown": { "alias": "shown"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
23
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<BsTooltipPanelComponent, "bs-tooltip-panel", never, { "overlayId": { "alias": "overlayId"; "required": false; "isSignal": true; }; "side": { "alias": "side"; "required": false; "isSignal": true; }; "phase": { "alias": "phase"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
23
24
  }
24
25
 
25
26
  /**