@coolon/angular-ui-powerups 16.1.0-alpha.256 → 16.1.0-alpha.258

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.
@@ -13,37 +13,11 @@ export declare class TableCellComponent<Row extends object> extends DisposableCo
13
13
  defaultClassNames: string;
14
14
  fillCell: boolean;
15
15
  padChild: boolean;
16
- private readonly detachedParentCdr;
17
16
  constructor();
18
17
  initialiseRenderer(ref: CdkPortalOutletAttachedRef): void;
19
18
  ngOnChanges(changes: SimpleChanges): void;
20
19
  getRendererPortal(): Portal<any>;
21
20
  getRowData(): RowData<Row>;
22
- /**
23
- * A CDK overlay attached through a `ComponentPortal` carrying a `ViewContainerRef` — MatTooltip is
24
- * the common case — creates its component in the TRIGGER's view container: `attachComponentPortal`
25
- * takes the `portal.viewContainerRef` branch and skips `ApplicationRef.attachView`, so only the DOM
26
- * node is relocated to the overlay container. The component stays a change-detection child of THIS
27
- * cell's view, which `aup-table-body` has detached. MatTooltip only calls `markForCheck()` on it,
28
- * and nothing sweeps a detached subtree, so the tooltip paints EMPTY. `mouseleave` tears the
29
- * overlay down, so every RE-hover rebuilds a component that needs a fresh check — which is why the
30
- * first hover of a cell can look fine and later ones don't.
31
- *
32
- * The deferral is the whole trick, and it must be a MACROTASK. `mouseenter` is dispatched as a
33
- * separate event per entered element, outermost first, so this cell's listener runs in an earlier
34
- * task than the trigger's — a `queueMicrotask` check drains before MatTooltip has even created the
35
- * overlay and is measurably a no-op (that is also why `markForCheck()`, which schedules a
36
- * microtask parent sweep, does not fix this).
37
- *
38
- * Scoped to this cell rather than routed through `DisposableComponent.scheduleParentSweep`: both
39
- * are correct once the timing is right, but the sweep only coalesces within a single microtask, and
40
- * each `mouseenter` is its own task — so it degenerates into one whole-table-body check per cell
41
- * entered, where this is one check of a single cell's view.
42
- *
43
- * `mouseenter` does not bubble, so this is one event per cell entered; it no-ops entirely for
44
- * tables that never detached.
45
- */
46
- protected refreshOverlaysOnHover(): void;
47
21
  static ɵfac: i0.ɵɵFactoryDeclaration<TableCellComponent<any>, never>;
48
22
  static ɵcmp: i0.ɵɵComponentDeclaration<TableCellComponent<any>, "aup-table-cell", never, { "row": { "alias": "row"; "required": false; }; "column": { "alias": "column"; "required": false; }; "tableModel": { "alias": "tableModel"; "required": false; }; }, {}, never, never, false, never>;
49
23
  }
@@ -25,8 +25,9 @@ import * as i0 from "@angular/core";
25
25
  * there is no ordering to race. (A listener on an ancestor element loses that race unpredictably: the
26
26
  * trigger's own `mouseenter` is a separate event dispatch.)
27
27
  *
28
- * Inherited options keep their Material names, e.g.
29
- * `<span [aupTooltip]="text" matTooltipPosition="above">`.
28
+ * Options are exposed with `aup`-prefixed aliases (`aupTooltipPosition`, `aupTooltipShowDelay`, …)
29
+ * alongside the inherited `matTooltip*` ones, e.g.
30
+ * `<span [aupTooltip]="text" aupTooltipPosition="above">`.
30
31
  */
31
32
  export declare class AupTooltipDirective extends MatTooltip {
32
33
  /**
@@ -37,15 +38,13 @@ export declare class AupTooltipDirective extends MatTooltip {
37
38
  * whichever enclosing view the node injector happens to resolve to.
38
39
  */
39
40
  private readonly container;
40
- set text(value: string);
41
- get text(): string;
42
41
  show(delay?: number, origin?: {
43
42
  x: number;
44
43
  y: number;
45
44
  }): void;
46
45
  private check;
47
46
  static ɵfac: i0.ɵɵFactoryDeclaration<AupTooltipDirective, never>;
48
- static ɵdir: i0.ɵɵDirectiveDeclaration<AupTooltipDirective, "[aupTooltip]", ["aupTooltip"], { "text": { "alias": "aupTooltip"; "required": false; }; }, {}, never, never, false, never>;
47
+ static ɵdir: i0.ɵɵDirectiveDeclaration<AupTooltipDirective, "[aupTooltip]", ["aupTooltip"], { "message": { "alias": "aupTooltip"; "required": false; }; "position": { "alias": "aupTooltipPosition"; "required": false; }; "positionAtOrigin": { "alias": "aupTooltipPositionAtOrigin"; "required": false; }; "disabled": { "alias": "aupTooltipDisabled"; "required": false; }; "showDelay": { "alias": "aupTooltipShowDelay"; "required": false; }; "hideDelay": { "alias": "aupTooltipHideDelay"; "required": false; }; "touchGestures": { "alias": "aupTooltipTouchGestures"; "required": false; }; "tooltipClass": { "alias": "aupTooltipClass"; "required": false; }; }, {}, never, never, false, never>;
49
48
  }
50
49
  export declare namespace AupTooltipDirective {
51
50
  /** Enough to land after `_onShow()` has set `_isMultiline`, small enough to be imperceptible. */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@coolon/angular-ui-powerups",
3
- "version": "16.1.0-alpha.256",
3
+ "version": "16.1.0-alpha.258",
4
4
  "peerDependencies": {
5
5
  "@angular/animations": "^16.2.9",
6
6
  "@angular/common": "^16.2.9",