@edsis/ui 21.3.12 → 21.3.15

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/nav/README.md CHANGED
@@ -66,18 +66,19 @@ nav.setCollapsed('erp-sidebar', true);
66
66
  nav.toggleCollapsed('erp-sidebar');
67
67
  ```
68
68
 
69
- Service defaults are stored in `localStorage` under:
69
+ Only the primary sidebar navigation (`id="main"`) persists preferences in `localStorage` under:
70
70
 
71
- - `nav-vertical-appearance`
72
- - `nav-horizontal-appearance`
71
+ - `nav-orientation`
72
+ - `nav-appearance`
73
+ - `nav-position`
74
+ - `nav-appearance-mode`
73
75
 
74
- Instance preferences are stored under:
76
+ `nav-appearance-mode` depends on the active vertical appearance:
75
77
 
76
- - `nav:{id}:orientation`
77
- - `nav:{id}:appearance`
78
- - `nav:{id}:position`
79
- - `nav:{id}:collapsed`
80
- - `nav:{id}:dockbar-mode`
78
+ - sidebar: `default` or `collapsed`
79
+ - dockbar: `sticky` or `drawer`
80
+
81
+ Any other navigation id, such as `erp-navbar`, only keeps its state in memory for the active instance. Consumers should provide those values explicitly at usage time or rely on the built-in defaults.
81
82
 
82
83
  ## Icons
83
84
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@edsis/ui",
3
- "version": "21.3.12",
3
+ "version": "21.3.15",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/edsis/angular.git"
@@ -116,12 +116,23 @@ declare class NavService {
116
116
  private resolveCollapsed;
117
117
  private resolveDockbarMode;
118
118
  private persistState;
119
- private readOrientationAppearance;
120
- private ensureAppearanceDefaults;
119
+ private defaultAppearance;
120
+ private cleanupLegacyStorage;
121
121
  private storage;
122
122
  private readStorage;
123
+ private readInstanceStorage;
124
+ private readPersistedAppearanceMode;
123
125
  private writeStorage;
126
+ private removeStorage;
127
+ private clearInstanceStorage;
128
+ private migrateLegacyPersistedStorage;
124
129
  private instanceStorageKey;
130
+ private persistedStorageKey;
131
+ private persistedAppearanceMode;
132
+ private resolveLegacyAppearanceMode;
133
+ private shouldPersistInstanceState;
134
+ private isLegacyInstanceStorageKey;
135
+ private isPersistedAppearanceMode;
125
136
  private normalizeId;
126
137
  private withoutKey;
127
138
  private resolvePanelArgs;