@coolon/angular-ui-powerups 16.1.0-alpha.239 → 16.1.0-alpha.241

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.
@@ -23,6 +23,19 @@ export declare class PopupMenuRendererComponent extends DisposableComponent {
23
23
  TrackBy: typeof Track;
24
24
  constructor();
25
25
  get children(): readonly PopupAwareComponent[];
26
+ /** True when the child matches one of the template's four `*ngIf` branches and will
27
+ * actually produce a rendered element. Everything else — notably `ButtonRendererComponent`
28
+ * entries that appear in `children` for other purposes — renders as nothing, so must be
29
+ * ignored when deciding whether a neighbouring separator has content to divide.
30
+ */
31
+ private willRender;
32
+ /** Children with orphan separators collapsed. When `visibleWhile(...)` hides a command,
33
+ * a separator sitting between hidden items — or at the top/bottom of the resulting
34
+ * menu — would render as an empty visual gap. This filters out (1) non-rendering
35
+ * entries, (2) leading separators, (3) consecutive separators, and (4) trailing
36
+ * separators, so separators appear only between two elements that actually paint.
37
+ */
38
+ get renderableChildren(): readonly PopupAwareComponent[];
26
39
  executeCommand(data: PopupAwareComponent): void;
27
40
  isCommandEnabled(data: PopupAwareComponent): boolean;
28
41
  /** A command with `visibleWhile(...)` false collapses out of the menu — matches `visibleWhile`
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@coolon/angular-ui-powerups",
3
- "version": "16.1.0-alpha.239",
3
+ "version": "16.1.0-alpha.241",
4
4
  "peerDependencies": {
5
5
  "@angular/animations": "^16.2.9",
6
6
  "@angular/common": "^16.2.9",
@@ -12,7 +12,7 @@
12
12
  "@angular/platform-browser-dynamic": "^16.2.9",
13
13
  "@angular/material-moment-adapter": "^16.2.10",
14
14
  "@angular/router": "^16.2.9",
15
- "@coolon/pectin": "^5.0.0-alpha.124",
15
+ "@coolon/pectin": "^5.0.0-alpha.125",
16
16
  "fast-typescript-memoize": "^1.1.1",
17
17
  "lodash-es": "^4.17.21",
18
18
  "marked": "4.0.10",