spiderly 19.10.0 → 19.11.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.
@@ -160,8 +160,6 @@ export declare class SpiderlyDataTableComponent implements OnInit, AfterViewInit
160
160
  private static isActiveFilterMeta;
161
161
  private persistColumnVisibility;
162
162
  private restoreColumnVisibility;
163
- /** Parses a JSON entry from web storage; missing or corrupted entries read as null. */
164
- private static readStoredJson;
165
163
  /**
166
164
  * PrimeNG's persisted table state (filters/sort/pagination), read directly from storage
167
165
  * because we need it before PrimeNG's restoreState() runs on the first [value] change.
@@ -25,6 +25,12 @@ export declare class LayoutServiceBase implements OnDestroy {
25
25
  protected apiService: ApiSecurityService;
26
26
  protected config: ConfigServiceBase;
27
27
  protected authService: AuthServiceBase;
28
+ /**
29
+ * Only the desktop collapse persists across reloads (a durable preference,
30
+ * like the data table's column layout); the rest of LayoutState is
31
+ * deliberately transient.
32
+ */
33
+ private static readonly menuDesktopInactiveKey;
28
34
  userSubscription: Subscription;
29
35
  layoutConfig: AppConfig;
30
36
  state: LayoutState;
@@ -0,0 +1,4 @@
1
+ /** Parses a JSON entry from web storage; missing or corrupted entries read as null. */
2
+ export declare function readStoredJson(storage: Storage, key: string): any;
3
+ /** Writes a value to web storage as JSON; the counterpart of readStoredJson. */
4
+ export declare function writeStoredJson(storage: Storage, key: string, value: any): void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "spiderly",
3
- "version": "19.10.0",
3
+ "version": "19.11.0",
4
4
  "author": "Filip Trivan",
5
5
  "license": "MIT",
6
6
  "description": "Spiderly Angular Library to use in combination with Spiderly.",
@@ -33,11 +33,9 @@
33
33
  }
34
34
  }
35
35
 
36
- // The chooser lives inside a p-popover that PrimeNG appends to document.body
37
- // when opened, so these rules must NOT sit under `:host` — the compiled
38
- // `[_nghost] … [_ngcontent]` descendant selector stops matching once the
39
- // content leaves the host subtree. Top-level rules keep only the
40
- // `[_ngcontent]` attribute selector, which travels with the teleported nodes.
36
+ // Chooser content is teleported into document.body with the open p-popover, so
37
+ // its rules must stay top-level — `:host` nesting dies on teleport (see
38
+ // Angular/CLAUDE.md → overlay styling). Each rule is pinned by a spec assert.
41
39
  .column-chooser {
42
40
  display: flex;
43
41
  flex-direction: column;
@@ -65,6 +63,7 @@
65
63
  }
66
64
 
67
65
  :host {
66
+ // In-template content only — rules for teleported overlay content go at top level (see above).
68
67
  // The `.clickable` affordance is shared: clickable rows (navigateOnRowClick) and opt-in cells
69
68
  // (Column.onCellClick) both get a pointer cursor; cells additionally underline on hover.
70
69
  ::ng-deep .clickable {