@genesislcap/foundation-workspace 15.80.0 → 15.81.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.
@@ -60,63 +60,322 @@
60
60
  },
61
61
  {
62
62
  "kind": "javascript-module",
63
- "path": "src/workspace/filter-registry.ts",
63
+ "path": "src/workspace-manager/index.ts",
64
+ "declarations": [],
65
+ "exports": [
66
+ {
67
+ "kind": "js",
68
+ "name": "*",
69
+ "declaration": {
70
+ "name": "*",
71
+ "package": "./workspace-manager"
72
+ }
73
+ }
74
+ ]
75
+ },
76
+ {
77
+ "kind": "javascript-module",
78
+ "path": "src/workspace-manager/workspace-manager.styles.ts",
79
+ "declarations": [
80
+ {
81
+ "kind": "variable",
82
+ "name": "WorkspaceManagerStyles",
83
+ "default": "css`\n .workspace-manager {\n display: flex;\n gap: 10px;\n align-items: center;\n }\n\n .dialog-content {\n padding: 16px;\n min-width: 400px;\n max-width: 400px;\n display: flex;\n flex-direction: column;\n max-height: 90vh;\n overflow: hidden;\n }\n\n .button-group {\n display: flex;\n gap: 8px;\n justify-content: flex-end;\n }\n\n .workspace-list {\n display: flex;\n flex-direction: column;\n gap: 12px;\n max-height: 400px;\n overflow-y: auto;\n margin: 10px 0;\n align-items: unset;\n }\n\n rapid-label {\n margin-bottom: 10px;\n display: block;\n }\n\n .empty-state {\n padding: 24px;\n text-align: center;\n color: var(--neutral-foreground-hint);\n }\n\n .save-mode-selector {\n margin-bottom: 16px;\n }\n\n .warning-message {\n margin: 12px 0;\n padding: 12px;\n border: 1px solid var(--warning-color);\n border-radius: 4px;\n font-size: 14px;\n }\n\n .workspace-item {\n padding: 12px;\n border: 1px solid var(--neutral-stroke-rest);\n border-radius: 4px;\n background: var(--neutral-fill-rest);\n cursor: pointer;\n display: flex;\n align-items: center;\n gap: 5px;\n }\n\n .workspace-item:hover {\n background: var(--neutral-fill-hover);\n }\n\n .workspace-item::part(control) {\n margin-top: 2px;\n }\n\n .workspace-info {\n flex: 1;\n margin-left: 8px;\n }\n\n .workspace-name {\n font-weight: 600;\n margin-bottom: 4px;\n display: flex;\n align-items: center;\n gap: 8px;\n }\n\n .workspace-date {\n font-size: 12px;\n color: var(--neutral-foreground-hint);\n }\n\n .workspace-description {\n font-size: 12px;\n color: var(--neutral-foreground-hint);\n margin-top: 4px;\n white-space: pre-wrap;\n word-break: break-word;\n line-height: 1.4;\n }\n\n .loading-container {\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n padding: 24px;\n }\n\n .save-field {\n margin-bottom: 20px;\n }\n`"
84
+ }
85
+ ],
86
+ "exports": [
87
+ {
88
+ "kind": "js",
89
+ "name": "WorkspaceManagerStyles",
90
+ "declaration": {
91
+ "name": "WorkspaceManagerStyles",
92
+ "module": "src/workspace-manager/workspace-manager.styles.ts"
93
+ }
94
+ }
95
+ ]
96
+ },
97
+ {
98
+ "kind": "javascript-module",
99
+ "path": "src/workspace-manager/workspace-manager.template.ts",
100
+ "declarations": [
101
+ {
102
+ "kind": "variable",
103
+ "name": "WORKSPACE_DESCRIPTION_MAX",
104
+ "type": {
105
+ "text": "number"
106
+ },
107
+ "default": "200"
108
+ },
109
+ {
110
+ "kind": "variable",
111
+ "name": "workspaceHeaderPartial",
112
+ "type": {
113
+ "text": "ViewTemplate<WorkspaceManager>"
114
+ },
115
+ "default": "html`\n <div class=\"workspace-manager\">\n <rapid-button @click=${(x) => x.openSaveDialog()}>\n <rapid-icon name=\"download\"></rapid-icon>\n Save Workspace\n </rapid-button>\n <rapid-button @click=${(x) => x.openLoadDialog()}>\n <rapid-icon name=\"upload\"></rapid-icon>\n Load Workspace\n </rapid-button>\n </div>\n`"
116
+ },
117
+ {
118
+ "kind": "variable",
119
+ "name": "workspaceSaveModalPartial",
120
+ "type": {
121
+ "text": "ViewTemplate<WorkspaceManager>"
122
+ },
123
+ "default": "html`\n <rapid-modal ${ref('saveModal')}>\n <h2 slot=\"top\">Save Workspace</h2>\n <div class=\"dialog-content\">\n <div class=\"save-mode-selector\">\n <rapid-segmented-control value=\"${sync((x) => x.saveMode)}\">\n <rapid-segmented-item value=\"create\">Create</rapid-segmented-item>\n <rapid-segmented-item value=\"overwrite\">Overwrite</rapid-segmented-item>\n ${when(\n () => false,\n html<WorkspaceManager>`\n <rapid-segmented-item value=\"shared\">Share</rapid-segmented-item>\n `,\n )}\n </rapid-segmented-control>\n </div>\n ${when(\n (x) => x.saveMode === 'create',\n html<WorkspaceManager>`\n <rapid-label>Workspace Name:</rapid-label>\n <rapid-text-field\n class=\"save-field\"\n :value=${(x) => x.workspaceName}\n @input=${(x, c) => (x.workspaceName = (c.event.target as HTMLInputElement).value)}\n placeholder=\"Enter workspace name\"\n ></rapid-text-field>\n <rapid-label>\n Description (optional, max ${WORKSPACE_DESCRIPTION_MAX} characters):\n </rapid-label>\n <rapid-text-area\n class=\"save-field workspace-description-input\"\n maxlength=\"${WORKSPACE_DESCRIPTION_MAX}\"\n :value=${(x) => x.workspaceDescription}\n @input=${(x, c) =>\n x.updateWorkspaceDescription((c.event.target as HTMLTextAreaElement).value)}\n placeholder=\"Add a description for this workspace\"\n rows=\"3\"\n ></rapid-text-area>\n ${when(\n (x) => x.workspaceName && x.isWorkspaceExisting(x.workspaceName),\n html`\n <div class=\"warning-message\">\n <rapid-icon name=\"triangle-exclamation\"></rapid-icon>\n A workspace with this name already exists. Use \"Overwrite Existing Workspace\" to\n replace it.\n </div>\n `,\n )}\n `,\n )}\n ${when(\n (x) => x.saveMode === 'overwrite',\n html<WorkspaceManager>`\n ${when(\n (x) => x.savedWorkspaces.length === 0,\n html`\n <div class=\"empty-state\">No saved workspaces to overwrite</div>\n `,\n )}\n <rapid-label>Select Workspace to Overwrite:</rapid-label>\n <rapid-radio-group\n class=\"workspace-list\"\n value=${sync((x) => x.selectedWorkspaceToOverwrite)}\n orientation=\"vertical\"\n >\n ${repeat(\n (x) => x.savedWorkspaces,\n html<SavedWorkspace>`\n <rapid-radio value=${(x) => x.name} class=\"workspace-item\">\n <div class=\"workspace-info\">\n <div class=\"workspace-name\">${(x) => x.name}</div>\n <div class=\"workspace-date\">\n Saved: ${(x) => new Date(x.savedAt).toLocaleString()}\n </div>\n ${when(\n (w) => w.description,\n html<SavedWorkspace>`\n <div class=\"workspace-description\">${(w) => w.description}</div>\n `,\n )}\n </div>\n </rapid-radio>\n `,\n )}\n </rapid-radio-group>\n <rapid-label>Description (optional):</rapid-label>\n <rapid-text-area\n class=\"save-field\"\n :value=${(x) => x.workspaceDescription}\n maxlength=\"${WORKSPACE_DESCRIPTION_MAX}\"\n @input=${(x, c) =>\n x.updateWorkspaceDescription((c.event.target as HTMLTextAreaElement).value)}\n placeholder=\"Add a description for this workspace\"\n rows=\"3\"\n ></rapid-text-area>\n <div class=\"warning-message\">\n <rapid-icon name=\"triangle-exclamation\"></rapid-icon>\n This will permanently replace the selected workspace. This action cannot be undone.\n </div>\n `,\n )}\n ${when(\n () => false,\n html<WorkspaceManager>`\n <h3>Share existing workspace:</h3>\n ${whenElse(\n (x) => x.savedWorkspaces.length === 0,\n html`\n <div class=\"empty-state\">No saved workspaces to share</div>\n `,\n html<WorkspaceManager>`\n <div class=\"workspace-list\">\n ${repeat(\n (x) => x.savedWorkspaces,\n html<SavedWorkspace>`\n <div class=\"workspace-item\">\n <div class=\"workspace-info\">\n <div class=\"workspace-name\">${(w) => w.name}</div>\n <div class=\"workspace-date\">\n Saved: ${(w) => new Date(w.savedAt).toLocaleString()}\n </div>\n ${when(\n (w) => w.description,\n html<SavedWorkspace>`\n <div class=\"workspace-description\">${(w) => w.description}</div>\n `,\n )}\n </div>\n <div class=\"button-group\">\n <rapid-button\n appearance=\"primary\"\n @click=${(w, c: ExecutionContext<WorkspaceManager>) =>\n c.parent.shareExistingWorkspace(w.name)}\n >\n Share\n </rapid-button>\n </div>\n </div>\n `,\n )}\n </div>\n `,\n )}\n <h3>My Shared Workspaces</h3>\n ${whenElse(\n (x) =>\n x.sharedWorkspaces.filter((w) => w.userName === x.auth?.loggedUserResult?.username)\n .length === 0,\n html`\n <div class=\"empty-state\">You have not shared any workspaces</div>\n `,\n html<WorkspaceManager>`\n <div class=\"workspace-list\">\n ${repeat(\n (x) =>\n x.sharedWorkspaces.filter(\n (w) => w.userName === x.auth?.loggedUserResult?.username,\n ),\n html<SharedWorkspace>`\n <div class=\"workspace-item\">\n <div class=\"workspace-info\">\n <div class=\"workspace-name\">${(w) => w.name}</div>\n <div class=\"workspace-date\">\n Shared on\n ${(w) => new Date((w.modifiedOn || w.createdOn) as any).toLocaleString()}\n </div>\n ${when(\n (w) => w.description,\n html<SharedWorkspace>`\n <div class=\"workspace-description\">${(w) => w.description}</div>\n `,\n )}\n </div>\n <div class=\"button-group\">\n <rapid-button\n appearance=\"primary\"\n @click=${(w, c: ExecutionContext<WorkspaceManager>) =>\n c.parent.modifySharedWorkspace(w)}\n >\n Save\n </rapid-button>\n <rapid-button\n appearance=\"danger\"\n @click=${(w, c: ExecutionContext<WorkspaceManager>) =>\n c.parent.confirmDeleteSharedWorkspace(w)}\n >\n Delete\n </rapid-button>\n </div>\n </div>\n `,\n )}\n </div>\n `,\n )}\n `,\n )}\n <div class=\"button-group\">\n <rapid-button\n @click=${(x) => x.saveWorkspace()}\n appearance=\"primary\"\n ?disabled=${(x) =>\n (x.saveMode === 'create' && !x.workspaceName.trim()) ||\n (x.saveMode === 'overwrite' && !x.selectedWorkspaceToOverwrite) ||\n x.saveMode === 'shared' ||\n (x.workspaceName && x.isWorkspaceExisting(x.workspaceName))}\n >\n ${(x) =>\n x.saveMode === 'create' ? 'Create' : x.saveMode === 'overwrite' ? 'Overwrite' : 'Save'}\n </rapid-button>\n <rapid-button appearance=\"outline\" @click=${(x) => x.closeSaveDialog()}>\n Cancel\n </rapid-button>\n </div>\n <div class=\"workspace-dialog-boundary\" ${ref('sharedWorkspaceDialogBoundary')}></div>\n </div>\n </rapid-modal>\n`"
124
+ },
125
+ {
126
+ "kind": "variable",
127
+ "name": "workspaceLoadModalPartial",
128
+ "type": {
129
+ "text": "ViewTemplate<WorkspaceManager>"
130
+ },
131
+ "default": "html`\n <rapid-modal ${ref('loadModal')}>\n <h2 slot=\"top\">Load Workspace</h2>\n <div class=\"dialog-content\">\n ${when(\n (x) => x.applyingWorkspace || x.isLoading,\n html`\n <div class=\"loading-container\">\n <div>Loading...</div>\n </div>\n `,\n )}\n ${when(\n (x) => !x.applyingWorkspace,\n html<WorkspaceManager>`\n ${when(\n () => false,\n html<WorkspaceManager>`\n <rapid-segmented-control value=\"${sync((x) => x.loadMode)}\">\n <rapid-segmented-item value=\"MY\">My Workspaces</rapid-segmented-item>\n\n <rapid-segmented-item value=\"SHARED\">Shared Workspaces</rapid-segmented-item>\n </rapid-segmented-control>\n `,\n )}\n ${when(\n (x) => x.loadMode === 'MY',\n html`\n <div class=\"workspace-list\">\n ${repeat(\n (x) => x.savedWorkspaces,\n html<SavedWorkspace>`\n <div class=\"workspace-item\">\n <div class=\"workspace-info\">\n <div class=\"workspace-name\">${(w) => w.name}</div>\n <div class=\"workspace-date\">\n Saved: ${(w) => new Date(w.savedAt).toLocaleString()}\n </div>\n ${when(\n (w) => w.description,\n html<SavedWorkspace>`\n <div class=\"workspace-description\">${(w) => w.description}</div>\n `,\n )}\n </div>\n <div class=\"button-group\">\n <rapid-button\n appearance=\"primary\"\n @click=${(w, c: ExecutionContext<WorkspaceManager>) =>\n c.parent.loadWorkspace(w.name)}\n >\n Load\n </rapid-button>\n <rapid-button\n appearance=\"danger\"\n @click=${(w, c: ExecutionContext<WorkspaceManager>) =>\n c.parent.confirmDeleteWorkspace(w.name)}\n >\n Delete\n </rapid-button>\n </div>\n </div>\n `,\n )}\n ${when(\n (x) => x.savedWorkspaces.length === 0,\n html`\n <div class=\"empty-state\">No saved workspaces found</div>\n `,\n )}\n </div>\n `,\n )}\n ${when(\n () => false,\n html`\n <div class=\"workspace-section\">\n <div class=\"workspace-list\">\n ${repeat(\n (x) => x.sharedWorkspaces,\n html<SharedWorkspace>`\n <div class=\"workspace-item\">\n <div class=\"workspace-info\">\n <div class=\"workspace-name\">${(w) => w.name}</div>\n <div class=\"workspace-date\">\n Shared by ${(w) => w.userName} ·\n ${(w) =>\n new Date((w.modifiedOn || w.createdOn) as any).toLocaleString()}\n </div>\n ${when(\n (w) => w.description,\n html<SharedWorkspace>`\n <div class=\"workspace-description\">${(w) => w.description}</div>\n `,\n )}\n </div>\n <div class=\"button-group\">\n <rapid-button\n appearance=\"primary\"\n @click=${(w, c: ExecutionContext<WorkspaceManager>) =>\n c.parent.loadSharedWorkspace(w)}\n >\n Load\n </rapid-button>\n </div>\n </div>\n `,\n )}\n </div>\n ${when(\n (x) => x.sharedWorkspaces.length === 0,\n html`\n <div class=\"empty-state\">No shared workspaces available</div>\n `,\n )}\n </div>\n `,\n )}\n `,\n )}\n <div class=\"button-group\">\n <rapid-button appearance=\"outline\" @click=${(x) => x.closeLoadDialog()}>Close</rapid-button>\n </div>\n </div>\n <div class=\"workspace-dialog-boundary\" ${ref('dialogBoundary')}></div>\n </rapid-modal>\n`"
132
+ },
133
+ {
134
+ "kind": "variable",
135
+ "name": "WorkspaceManagerTemplate",
136
+ "default": "html<WorkspaceManager>`\n ${workspaceHeaderPartial} ${workspaceSaveModalPartial} ${workspaceLoadModalPartial}\n`"
137
+ }
138
+ ],
139
+ "exports": [
140
+ {
141
+ "kind": "js",
142
+ "name": "WORKSPACE_DESCRIPTION_MAX",
143
+ "declaration": {
144
+ "name": "WORKSPACE_DESCRIPTION_MAX",
145
+ "module": "src/workspace-manager/workspace-manager.template.ts"
146
+ }
147
+ },
148
+ {
149
+ "kind": "js",
150
+ "name": "workspaceHeaderPartial",
151
+ "declaration": {
152
+ "name": "workspaceHeaderPartial",
153
+ "module": "src/workspace-manager/workspace-manager.template.ts"
154
+ }
155
+ },
156
+ {
157
+ "kind": "js",
158
+ "name": "workspaceSaveModalPartial",
159
+ "declaration": {
160
+ "name": "workspaceSaveModalPartial",
161
+ "module": "src/workspace-manager/workspace-manager.template.ts"
162
+ }
163
+ },
164
+ {
165
+ "kind": "js",
166
+ "name": "workspaceLoadModalPartial",
167
+ "declaration": {
168
+ "name": "workspaceLoadModalPartial",
169
+ "module": "src/workspace-manager/workspace-manager.template.ts"
170
+ }
171
+ },
172
+ {
173
+ "kind": "js",
174
+ "name": "WorkspaceManagerTemplate",
175
+ "declaration": {
176
+ "name": "WorkspaceManagerTemplate",
177
+ "module": "src/workspace-manager/workspace-manager.template.ts"
178
+ }
179
+ }
180
+ ]
181
+ },
182
+ {
183
+ "kind": "javascript-module",
184
+ "path": "src/workspace-manager/workspace-manager.ts",
64
185
  "declarations": [
65
186
  {
66
187
  "kind": "class",
67
- "description": "Default filter registry implementation.",
68
- "name": "DefaultFilterRegistry",
188
+ "description": "Workspace persistence UI (save/load + share/delete shared workspaces).",
189
+ "name": "WorkspaceManager",
69
190
  "members": [
70
191
  {
71
192
  "kind": "field",
72
- "name": "filters",
193
+ "name": "workspaceName",
73
194
  "type": {
74
- "text": "Map<string, FilterRegistration>"
195
+ "text": "string"
75
196
  },
76
- "privacy": "private",
77
- "default": "new Map()"
197
+ "default": "''"
78
198
  },
79
199
  {
80
200
  "kind": "field",
81
- "name": "stored",
201
+ "name": "workspaceDescription",
82
202
  "type": {
83
- "text": "Map<string, SavedFilterValue>"
203
+ "text": "string"
204
+ },
205
+ "default": "''"
206
+ },
207
+ {
208
+ "kind": "field",
209
+ "name": "savedWorkspaces",
210
+ "type": {
211
+ "text": "SavedWorkspace[]"
212
+ },
213
+ "default": "[]"
214
+ },
215
+ {
216
+ "kind": "field",
217
+ "name": "sharedWorkspaces",
218
+ "type": {
219
+ "text": "SharedWorkspace[]"
220
+ },
221
+ "default": "[]"
222
+ },
223
+ {
224
+ "kind": "field",
225
+ "name": "isLoading",
226
+ "type": {
227
+ "text": "boolean"
228
+ },
229
+ "default": "false"
230
+ },
231
+ {
232
+ "kind": "field",
233
+ "name": "applyingWorkspace",
234
+ "type": {
235
+ "text": "boolean"
236
+ },
237
+ "default": "false"
238
+ },
239
+ {
240
+ "kind": "field",
241
+ "name": "loadMode",
242
+ "type": {
243
+ "text": "LoadMode"
244
+ },
245
+ "default": "'MY'"
246
+ },
247
+ {
248
+ "kind": "field",
249
+ "name": "saveModal",
250
+ "type": {
251
+ "text": "Modal"
252
+ }
253
+ },
254
+ {
255
+ "kind": "field",
256
+ "name": "loadModal",
257
+ "type": {
258
+ "text": "Modal"
259
+ }
260
+ },
261
+ {
262
+ "kind": "field",
263
+ "name": "saveMode",
264
+ "type": {
265
+ "text": "'create' | 'overwrite' | 'shared'"
266
+ },
267
+ "default": "'create'"
268
+ },
269
+ {
270
+ "kind": "field",
271
+ "name": "selectedWorkspaceToOverwrite",
272
+ "type": {
273
+ "text": "string"
274
+ },
275
+ "default": "''"
276
+ },
277
+ {
278
+ "kind": "field",
279
+ "name": "workspaceToShare",
280
+ "type": {
281
+ "text": "string"
282
+ },
283
+ "default": "''"
284
+ },
285
+ {
286
+ "kind": "field",
287
+ "name": "dialogBoundary",
288
+ "type": {
289
+ "text": "HTMLElement"
290
+ }
291
+ },
292
+ {
293
+ "kind": "field",
294
+ "name": "sharedWorkspaceDialogBoundary",
295
+ "type": {
296
+ "text": "HTMLElement"
297
+ }
298
+ },
299
+ {
300
+ "kind": "field",
301
+ "name": "layoutRegistry",
302
+ "type": {
303
+ "text": "LayoutRegistry"
304
+ }
305
+ },
306
+ {
307
+ "kind": "field",
308
+ "name": "gridRegistry",
309
+ "type": {
310
+ "text": "GridRegistry"
311
+ }
312
+ },
313
+ {
314
+ "kind": "field",
315
+ "name": "filterRegistry",
316
+ "type": {
317
+ "text": "FilterRegistry"
318
+ }
319
+ },
320
+ {
321
+ "kind": "field",
322
+ "name": "workspaceState",
323
+ "type": {
324
+ "text": "WorkspaceState"
325
+ }
326
+ },
327
+ {
328
+ "kind": "field",
329
+ "name": "connect",
330
+ "type": {
331
+ "text": "Connect"
332
+ }
333
+ },
334
+ {
335
+ "kind": "field",
336
+ "name": "auth",
337
+ "type": {
338
+ "text": "Auth"
339
+ }
340
+ },
341
+ {
342
+ "kind": "field",
343
+ "name": "canShareWorkspace",
344
+ "type": {
345
+ "text": "boolean"
346
+ }
347
+ },
348
+ {
349
+ "kind": "field",
350
+ "name": "sharedWorkspacesEnabled",
351
+ "type": {
352
+ "text": "boolean"
84
353
  },
85
354
  "privacy": "private",
86
- "default": "new Map()"
355
+ "readonly": true,
356
+ "default": "false"
87
357
  },
88
358
  {
89
359
  "kind": "method",
90
- "name": "registerFilter",
360
+ "name": "sanitizeDescription",
361
+ "privacy": "private",
91
362
  "return": {
92
363
  "type": {
93
- "text": "void"
364
+ "text": "string"
94
365
  }
95
366
  },
96
367
  "parameters": [
97
368
  {
98
- "name": "filterKey",
369
+ "name": "input",
99
370
  "type": {
100
371
  "text": "string"
101
372
  }
102
- },
103
- {
104
- "name": "getFilterValue",
105
- "type": {
106
- "text": "() => SavedFilterValue | null"
107
- }
108
- },
109
- {
110
- "name": "setFilterValue",
111
- "type": {
112
- "text": "(value: string) => void"
113
- }
114
373
  }
115
374
  ]
116
375
  },
117
376
  {
118
377
  "kind": "method",
119
- "name": "unregisterFilter",
378
+ "name": "updateWorkspaceDescription",
120
379
  "return": {
121
380
  "type": {
122
381
  "text": "void"
@@ -124,7 +383,7 @@
124
383
  },
125
384
  "parameters": [
126
385
  {
127
- "name": "filterKey",
386
+ "name": "raw",
128
387
  "type": {
129
388
  "text": "string"
130
389
  }
@@ -133,151 +392,149 @@
133
392
  },
134
393
  {
135
394
  "kind": "method",
136
- "name": "getAllFiltersValues",
395
+ "name": "setDescriptionFromSelectedWorkspace",
396
+ "privacy": "private",
137
397
  "return": {
138
398
  "type": {
139
- "text": "SavedFilterValue[]"
399
+ "text": "void"
140
400
  }
141
401
  }
142
402
  },
143
403
  {
144
404
  "kind": "method",
145
- "name": "applyFiltersValues",
405
+ "name": "refreshSavedWorkspaces",
146
406
  "return": {
147
407
  "type": {
148
- "text": "void"
408
+ "text": "Promise<void>"
149
409
  }
150
- },
151
- "parameters": [
152
- {
153
- "name": "filtersValues",
154
- "type": {
155
- "text": "SavedFilterValue[]"
156
- }
410
+ }
411
+ },
412
+ {
413
+ "kind": "method",
414
+ "name": "refreshSharedWorkspaces",
415
+ "return": {
416
+ "type": {
417
+ "text": "Promise<void>"
157
418
  }
158
- ]
419
+ }
159
420
  },
160
421
  {
161
422
  "kind": "method",
162
- "name": "readValue",
423
+ "name": "notifyError",
163
424
  "privacy": "private",
164
425
  "return": {
165
426
  "type": {
166
- "text": "SavedFilterValue"
427
+ "text": "void"
167
428
  }
168
429
  },
169
430
  "parameters": [
170
431
  {
171
- "name": "registration",
172
- "type": {
173
- "text": "FilterRegistration"
174
- }
432
+ "name": "body",
433
+ "default": "'Error'"
175
434
  }
176
435
  ]
177
- }
178
- ]
179
- },
180
- {
181
- "kind": "variable",
182
- "name": "FilterRegistry",
183
- "description": "DI token for filter registry."
184
- }
185
- ],
186
- "exports": [
187
- {
188
- "kind": "js",
189
- "name": "DefaultFilterRegistry",
190
- "declaration": {
191
- "name": "DefaultFilterRegistry",
192
- "module": "src/workspace/filter-registry.ts"
193
- }
194
- },
195
- {
196
- "kind": "js",
197
- "name": "FilterRegistry",
198
- "declaration": {
199
- "name": "FilterRegistry",
200
- "module": "src/workspace/filter-registry.ts"
201
- }
202
- }
203
- ]
204
- },
205
- {
206
- "kind": "javascript-module",
207
- "path": "src/workspace/grid-registry.ts",
208
- "declarations": [
209
- {
210
- "kind": "class",
211
- "description": "Default grid registry implementation.",
212
- "name": "DefaultGridRegistry",
213
- "members": [
214
- {
215
- "kind": "field",
216
- "name": "filterSettleMs",
217
- "default": "1500",
218
- "description": "Quiet period after the last start-up event before the filter guard ends.",
219
- "type": {
220
- "text": "number"
221
- }
222
436
  },
223
437
  {
224
- "kind": "field",
225
- "name": "filterGuardMaxMs",
226
- "default": "10000",
227
- "description": "Longest the filter guard runs after it is armed, however often it is re-armed.",
228
- "type": {
229
- "text": "number"
230
- }
231
- },
232
- {
233
- "kind": "field",
234
- "name": "maxFilterReapplies",
235
- "default": "3",
236
- "description": "Most re-applies the filter guard makes per arming.",
237
- "type": {
238
- "text": "number"
438
+ "kind": "method",
439
+ "name": "saveWorkspace",
440
+ "return": {
441
+ "type": {
442
+ "text": "Promise<void>"
443
+ }
239
444
  }
240
445
  },
241
446
  {
242
- "kind": "field",
243
- "name": "grids",
244
- "type": {
245
- "text": "Map<string, GridRegistration>"
246
- },
447
+ "kind": "method",
448
+ "name": "applyWorkspace",
247
449
  "privacy": "private",
248
- "default": "new Map()"
450
+ "return": {
451
+ "type": {
452
+ "text": "Promise<void>"
453
+ }
454
+ },
455
+ "parameters": [
456
+ {
457
+ "name": "workspace",
458
+ "type": {
459
+ "text": "SavedWorkspace"
460
+ }
461
+ }
462
+ ],
463
+ "description": "Seeds every registry's store with the workspace's entries (replacing whatever was stored,\neven when a list is empty) and applies them to what's mounted; unmounted grids, layouts and\nfilters pick theirs up when they register. Grids and filters are seeded before layouts:\nloading a layout rebuilds its panes, and the grids/filters inside re-register straight away."
249
464
  },
250
465
  {
251
- "kind": "field",
252
- "name": "stored",
253
- "type": {
254
- "text": "Map<string, SavedGridSettings>"
466
+ "kind": "method",
467
+ "name": "loadWorkspace",
468
+ "return": {
469
+ "type": {
470
+ "text": "Promise<void>"
471
+ }
255
472
  },
256
- "privacy": "private",
257
- "default": "new Map()"
473
+ "parameters": [
474
+ {
475
+ "name": "workspaceName",
476
+ "type": {
477
+ "text": "string"
478
+ }
479
+ }
480
+ ]
258
481
  },
259
482
  {
260
- "kind": "field",
261
- "name": "listeners",
483
+ "kind": "method",
484
+ "name": "requestSharedWorkspace",
262
485
  "privacy": "private",
263
- "default": "new Map<GridRegistration, [string, GridEventListener][]>()"
486
+ "return": {
487
+ "type": {
488
+ "text": "Promise<any[]>"
489
+ }
490
+ },
491
+ "parameters": [
492
+ {
493
+ "name": "SHARED_WORKSPACE_ID",
494
+ "type": {
495
+ "text": "string"
496
+ }
497
+ }
498
+ ]
264
499
  },
265
500
  {
266
- "kind": "field",
267
- "name": "guards",
268
- "privacy": "private",
269
- "default": "new Map<GridRegistration, FilterGuard>()"
501
+ "kind": "method",
502
+ "name": "loadSharedWorkspace",
503
+ "return": {
504
+ "type": {
505
+ "text": "Promise<void>"
506
+ }
507
+ },
508
+ "parameters": [
509
+ {
510
+ "name": "shared",
511
+ "type": {
512
+ "text": "{\n id: string;\n name: string;\n userName: string;\n createdOn?: string | number;\n modifiedOn?: string | number;\n data: string;\n }"
513
+ }
514
+ }
515
+ ]
270
516
  },
271
517
  {
272
- "kind": "field",
273
- "name": "settled",
274
- "privacy": "private",
275
- "default": "new Set<GridRegistration>()",
276
- "description": "Registrations whose first data has rendered or whose filters the user has changed."
518
+ "kind": "method",
519
+ "name": "deleteWorkspace",
520
+ "return": {
521
+ "type": {
522
+ "text": "Promise<void>"
523
+ }
524
+ },
525
+ "parameters": [
526
+ {
527
+ "name": "workspaceName",
528
+ "type": {
529
+ "text": "string"
530
+ }
531
+ }
532
+ ]
277
533
  },
278
534
  {
279
535
  "kind": "method",
280
- "name": "registerGrid",
536
+ "name": "showDeleteConfirmation",
537
+ "privacy": "private",
281
538
  "return": {
282
539
  "type": {
283
540
  "text": "void"
@@ -285,36 +542,34 @@
285
542
  },
286
543
  "parameters": [
287
544
  {
288
- "name": "gridKey",
545
+ "name": "title",
289
546
  "type": {
290
547
  "text": "string"
291
548
  }
292
549
  },
293
550
  {
294
- "name": "gridApi",
551
+ "name": "body",
295
552
  "type": {
296
- "text": "unknown"
553
+ "text": "string"
297
554
  }
298
555
  },
299
556
  {
300
- "name": "columnApi",
557
+ "name": "actionFunction",
301
558
  "type": {
302
- "text": "unknown"
559
+ "text": "() => void"
303
560
  }
304
561
  },
305
562
  {
306
- "name": "filterPersistence",
307
- "optional": true,
563
+ "name": "dialogBoundary",
308
564
  "type": {
309
- "text": "GridFilterPersistence"
565
+ "text": "HTMLElement"
310
566
  }
311
567
  }
312
568
  ]
313
569
  },
314
570
  {
315
571
  "kind": "method",
316
- "name": "applyStoredSettings",
317
- "privacy": "private",
572
+ "name": "confirmDeleteWorkspace",
318
573
  "return": {
319
574
  "type": {
320
575
  "text": "void"
@@ -322,109 +577,110 @@
322
577
  },
323
578
  "parameters": [
324
579
  {
325
- "name": "registration",
326
- "type": {
327
- "text": "GridRegistration"
328
- }
329
- },
330
- {
331
- "name": "options",
332
- "optional": true,
580
+ "name": "workspaceName",
333
581
  "type": {
334
- "text": "{ applyFilters?: boolean }"
582
+ "text": "string"
335
583
  }
336
584
  }
337
- ],
338
- "description": "Applies the stored settings for a grid, unless it already has exactly that state."
585
+ ]
339
586
  },
340
587
  {
341
588
  "kind": "method",
342
- "name": "getGrid",
589
+ "name": "modifySharedWorkspace",
343
590
  "return": {
344
591
  "type": {
345
- "text": "GridRegistration | null"
592
+ "text": "Promise<void>"
346
593
  }
347
594
  },
348
595
  "parameters": [
349
596
  {
350
- "name": "gridKey",
597
+ "name": "sharedWorkspace",
351
598
  "type": {
352
- "text": "string"
599
+ "text": "SharedWorkspace"
353
600
  }
354
601
  }
355
602
  ]
356
603
  },
357
604
  {
358
605
  "kind": "method",
359
- "name": "unregisterGrid",
606
+ "name": "deleteSharedWorkspace",
360
607
  "return": {
361
608
  "type": {
362
- "text": "void"
609
+ "text": "Promise<void>"
363
610
  }
364
611
  },
365
612
  "parameters": [
366
613
  {
367
- "name": "gridKey",
614
+ "name": "sharedWorkspace",
368
615
  "type": {
369
- "text": "string"
616
+ "text": "SharedWorkspace"
370
617
  }
371
618
  }
372
619
  ]
373
620
  },
374
621
  {
375
622
  "kind": "method",
376
- "name": "getAllGridsSettings",
623
+ "name": "confirmDeleteSharedWorkspace",
377
624
  "return": {
378
625
  "type": {
379
- "text": "SavedGridSettings[]"
626
+ "text": "void"
380
627
  }
381
- }
628
+ },
629
+ "parameters": [
630
+ {
631
+ "name": "sharedWorkspace",
632
+ "type": {
633
+ "text": "SharedWorkspace"
634
+ }
635
+ }
636
+ ]
382
637
  },
383
638
  {
384
639
  "kind": "method",
385
- "name": "applyGridSettings",
640
+ "name": "shareExistingWorkspace",
386
641
  "return": {
387
642
  "type": {
388
- "text": "Promise<boolean>"
643
+ "text": "Promise<void>"
389
644
  }
390
645
  },
391
646
  "parameters": [
392
647
  {
393
- "name": "gridSetting",
394
- "type": {
395
- "text": "SavedGridSettings"
396
- }
397
- },
398
- {
399
- "name": "options",
400
- "optional": true,
648
+ "name": "workspaceName",
401
649
  "type": {
402
- "text": "{ applyColumns?: boolean; applyFilters?: boolean }"
650
+ "text": "string"
403
651
  }
404
652
  }
405
653
  ]
406
654
  },
407
655
  {
408
656
  "kind": "method",
409
- "name": "applyAllGridsSettings",
657
+ "name": "openSaveDialog",
410
658
  "return": {
411
659
  "type": {
412
660
  "text": "Promise<void>"
413
661
  }
662
+ }
663
+ },
664
+ {
665
+ "kind": "method",
666
+ "name": "isWorkspaceExisting",
667
+ "return": {
668
+ "type": {
669
+ "text": "boolean"
670
+ }
414
671
  },
415
672
  "parameters": [
416
673
  {
417
- "name": "gridsSettings",
674
+ "name": "workspaceName",
418
675
  "type": {
419
- "text": "SavedGridSettings[]"
676
+ "text": "string"
420
677
  }
421
678
  }
422
679
  ]
423
680
  },
424
681
  {
425
682
  "kind": "method",
426
- "name": "applyFilterModel",
427
- "privacy": "private",
683
+ "name": "saveModeChanged",
428
684
  "return": {
429
685
  "type": {
430
686
  "text": "void"
@@ -432,24 +688,22 @@
432
688
  },
433
689
  "parameters": [
434
690
  {
435
- "name": "registration",
691
+ "name": "oldValue",
436
692
  "type": {
437
- "text": "GridRegistration"
693
+ "text": "string"
438
694
  }
439
695
  },
440
696
  {
441
- "name": "filterModel",
697
+ "name": "newValue",
442
698
  "type": {
443
- "text": "Record<string, unknown>"
699
+ "text": "string"
444
700
  }
445
701
  }
446
- ],
447
- "description": "Writes a filter model into the grid's own persistence, then onto the grid, and records what\nthe grid reports back so the guard can tell a later replacement from AG Grid's normalisation."
702
+ ]
448
703
  },
449
704
  {
450
705
  "kind": "method",
451
- "name": "reapplyStoredFilter",
452
- "privacy": "private",
706
+ "name": "selectedWorkspaceToOverwriteChanged",
453
707
  "return": {
454
708
  "type": {
455
709
  "text": "void"
@@ -457,134 +711,215 @@
457
711
  },
458
712
  "parameters": [
459
713
  {
460
- "name": "registration",
714
+ "name": "oldValue",
461
715
  "type": {
462
- "text": "GridRegistration"
716
+ "text": "string"
717
+ }
718
+ },
719
+ {
720
+ "name": "newValue",
721
+ "type": {
722
+ "text": "string"
463
723
  }
464
724
  }
465
725
  ]
466
726
  },
467
727
  {
468
728
  "kind": "method",
469
- "name": "filterWasReplaced",
470
- "privacy": "private",
729
+ "name": "openLoadDialog",
471
730
  "return": {
472
731
  "type": {
473
- "text": "boolean"
474
- }
475
- },
476
- "parameters": [
477
- {
478
- "name": "registration",
479
- "type": {
480
- "text": "GridRegistration"
481
- }
732
+ "text": "void"
482
733
  }
483
- ],
484
- "description": "Whether the grid's filter model moved away from what the registry last applied — a stale\nrestore or other programmatic change, rather than AG Grid normalising the applied model (which\nreads back the same each time)."
734
+ }
485
735
  },
486
736
  {
487
737
  "kind": "method",
488
- "name": "armFilterGuard",
489
- "privacy": "private",
738
+ "name": "closeSaveDialog",
490
739
  "return": {
491
740
  "type": {
492
741
  "text": "void"
493
742
  }
494
- },
495
- "parameters": [
496
- {
497
- "name": "registration",
498
- "type": {
499
- "text": "GridRegistration"
500
- }
501
- }
502
- ]
743
+ }
503
744
  },
504
745
  {
505
746
  "kind": "method",
506
- "name": "touchFilterGuard",
507
- "privacy": "private",
747
+ "name": "closeLoadDialog",
508
748
  "return": {
509
749
  "type": {
510
750
  "text": "void"
511
751
  }
752
+ }
753
+ },
754
+ {
755
+ "kind": "field",
756
+ "name": "_presentation",
757
+ "type": {
758
+ "text": "ComponentPresentation | null | undefined"
512
759
  },
513
- "parameters": [
514
- {
515
- "name": "registration",
516
- "type": {
517
- "text": "GridRegistration"
518
- }
519
- }
520
- ],
521
- "description": "Restarts the settle timer: the grid just did something that can precede a stale restore."
760
+ "privacy": "private",
761
+ "default": "void 0",
762
+ "inheritedFrom": {
763
+ "name": "FoundationElement",
764
+ "module": "src/foundation-element/foundation-element.ts"
765
+ }
766
+ },
767
+ {
768
+ "kind": "field",
769
+ "name": "$presentation",
770
+ "type": {
771
+ "text": "ComponentPresentation | null"
772
+ },
773
+ "privacy": "public",
774
+ "description": "A property which resolves the ComponentPresentation instance\nfor the current component.",
775
+ "inheritedFrom": {
776
+ "name": "FoundationElement",
777
+ "module": "src/foundation-element/foundation-element.ts"
778
+ }
779
+ },
780
+ {
781
+ "kind": "field",
782
+ "name": "template",
783
+ "type": {
784
+ "text": "ElementViewTemplate | void | null"
785
+ },
786
+ "privacy": "public",
787
+ "description": "Sets the template of the element instance. When undefined,\nthe element will attempt to resolve the template from\nthe associated presentation or custom element definition.",
788
+ "inheritedFrom": {
789
+ "name": "FoundationElement",
790
+ "module": "src/foundation-element/foundation-element.ts"
791
+ }
522
792
  },
523
793
  {
524
794
  "kind": "method",
525
- "name": "guardActive",
526
- "privacy": "private",
795
+ "name": "templateChanged",
796
+ "privacy": "protected",
527
797
  "return": {
528
798
  "type": {
529
- "text": "boolean"
799
+ "text": "void"
530
800
  }
531
801
  },
532
- "parameters": [
533
- {
534
- "name": "registration",
535
- "type": {
536
- "text": "GridRegistration"
537
- }
538
- }
539
- ]
802
+ "inheritedFrom": {
803
+ "name": "FoundationElement",
804
+ "module": "src/foundation-element/foundation-element.ts"
805
+ }
806
+ },
807
+ {
808
+ "kind": "field",
809
+ "name": "styles",
810
+ "type": {
811
+ "text": "ElementStyles | void | null"
812
+ },
813
+ "privacy": "public",
814
+ "description": "Sets the default styles for the element instance. When undefined,\nthe element will attempt to resolve default styles from\nthe associated presentation or custom element definition.",
815
+ "inheritedFrom": {
816
+ "name": "FoundationElement",
817
+ "module": "src/foundation-element/foundation-element.ts"
818
+ }
540
819
  },
541
820
  {
542
821
  "kind": "method",
543
- "name": "endFilterGuard",
544
- "privacy": "private",
822
+ "name": "stylesChanged",
823
+ "privacy": "protected",
545
824
  "return": {
546
825
  "type": {
547
- "text": "void"
548
- }
549
- },
550
- "parameters": [
551
- {
552
- "name": "registration",
553
- "type": {
554
- "text": "GridRegistration"
555
- }
826
+ "text": "void"
556
827
  }
557
- ]
828
+ },
829
+ "inheritedFrom": {
830
+ "name": "FoundationElement",
831
+ "module": "src/foundation-element/foundation-element.ts"
832
+ }
558
833
  },
559
834
  {
560
835
  "kind": "method",
561
- "name": "addListener",
562
- "privacy": "private",
836
+ "name": "compose",
837
+ "privacy": "public",
838
+ "static": true,
839
+ "return": {
840
+ "type": {
841
+ "text": "(\n overrideDefinition?: OverrideFoundationElementDefinition<T>\n ) => FoundationElementRegistry<T, K>"
842
+ }
843
+ },
563
844
  "parameters": [
564
845
  {
565
- "name": "registration",
566
- "type": {
567
- "text": "GridRegistration"
568
- }
569
- },
570
- {
571
- "name": "type",
846
+ "name": "this",
572
847
  "type": {
573
- "text": "string"
848
+ "text": "K"
574
849
  }
575
850
  },
576
851
  {
577
- "name": "listener",
852
+ "name": "elementDefinition",
578
853
  "type": {
579
- "text": "GridEventListener"
580
- }
854
+ "text": "T"
855
+ },
856
+ "description": "The definition of the element to create the registry\nfunction for."
581
857
  }
582
- ]
858
+ ],
859
+ "description": "Defines an element registry function with a set of element definition defaults.",
860
+ "inheritedFrom": {
861
+ "name": "FoundationElement",
862
+ "module": "src/foundation-element/foundation-element.ts"
863
+ }
864
+ }
865
+ ],
866
+ "superclass": {
867
+ "name": "FoundationElement",
868
+ "package": "@genesislcap/web-core"
869
+ },
870
+ "tagName": "workspace-manager",
871
+ "customElement": true
872
+ }
873
+ ],
874
+ "exports": [
875
+ {
876
+ "kind": "js",
877
+ "name": "WorkspaceManager",
878
+ "declaration": {
879
+ "name": "WorkspaceManager",
880
+ "module": "src/workspace-manager/workspace-manager.ts"
881
+ }
882
+ },
883
+ {
884
+ "kind": "custom-element-definition",
885
+ "name": "workspace-manager",
886
+ "declaration": {
887
+ "name": "WorkspaceManager",
888
+ "module": "src/workspace-manager/workspace-manager.ts"
889
+ }
890
+ }
891
+ ]
892
+ },
893
+ {
894
+ "kind": "javascript-module",
895
+ "path": "src/workspace/filter-registry.ts",
896
+ "declarations": [
897
+ {
898
+ "kind": "class",
899
+ "description": "Default filter registry implementation.",
900
+ "name": "DefaultFilterRegistry",
901
+ "members": [
902
+ {
903
+ "kind": "field",
904
+ "name": "filters",
905
+ "type": {
906
+ "text": "Map<string, FilterRegistration>"
907
+ },
908
+ "privacy": "private",
909
+ "default": "new Map()"
583
910
  },
584
911
  {
585
- "kind": "method",
586
- "name": "removeListener",
912
+ "kind": "field",
913
+ "name": "stored",
914
+ "type": {
915
+ "text": "Map<string, SavedFilterValue>"
916
+ },
587
917
  "privacy": "private",
918
+ "default": "new Map()"
919
+ },
920
+ {
921
+ "kind": "method",
922
+ "name": "registerFilter",
588
923
  "return": {
589
924
  "type": {
590
925
  "text": "void"
@@ -592,48 +927,28 @@
592
927
  },
593
928
  "parameters": [
594
929
  {
595
- "name": "registration",
930
+ "name": "filterKey",
596
931
  "type": {
597
- "text": "GridRegistration"
932
+ "text": "string"
598
933
  }
599
934
  },
600
935
  {
601
- "name": "type",
936
+ "name": "getFilterValue",
602
937
  "type": {
603
- "text": "string"
938
+ "text": "() => SavedFilterValue | null"
604
939
  }
605
940
  },
606
941
  {
607
- "name": "listener",
942
+ "name": "setFilterValue",
608
943
  "type": {
609
- "text": "GridEventListener"
944
+ "text": "(value: string) => void"
610
945
  }
611
946
  }
612
947
  ]
613
948
  },
614
949
  {
615
950
  "kind": "method",
616
- "name": "storeSnapshot",
617
- "privacy": "private",
618
- "return": {
619
- "type": {
620
- "text": "void"
621
- }
622
- },
623
- "parameters": [
624
- {
625
- "name": "registration",
626
- "type": {
627
- "text": "GridRegistration"
628
- }
629
- }
630
- ],
631
- "description": "Stores a grid's live state over its stored entry, except what the grid can't report yet:\n- nothing, once its API is destroyed (grid-pro destroys the outgoing grid before the new one\n re-registers, and a destroyed v36 API returns `undefined` rather than throwing);\n- the stored column state and filter model while the grid has no columns: before datasource\n columns exist, and after a datasource restart clears them (AG Grid then drops every filter,\n before grid-pro rebuilds the grid). With nothing stored, the filter model is left out, so the\n next registration leaves grid-pro to restore its own persisted filters;\n- the stored filter model until the first data renders or the user filters, since before that\n the grid may not have applied it yet (its columns or grid-pro's restore still pending)."
632
- },
633
- {
634
- "kind": "method",
635
- "name": "detach",
636
- "privacy": "private",
951
+ "name": "unregisterFilter",
637
952
  "return": {
638
953
  "type": {
639
954
  "text": "void"
@@ -641,193 +956,125 @@
641
956
  },
642
957
  "parameters": [
643
958
  {
644
- "name": "registration",
959
+ "name": "filterKey",
645
960
  "type": {
646
- "text": "GridRegistration"
961
+ "text": "string"
647
962
  }
648
963
  }
649
- ],
650
- "description": "Removes a registration's grid listeners and stops its filter guard."
964
+ ]
651
965
  },
652
966
  {
653
967
  "kind": "method",
654
- "name": "hasSettings",
655
- "privacy": "private",
968
+ "name": "getAllFiltersValues",
656
969
  "return": {
657
970
  "type": {
658
- "text": "boolean"
659
- }
660
- },
661
- "parameters": [
662
- {
663
- "name": "grid",
664
- "type": {
665
- "text": "GridRegistration"
666
- }
667
- },
668
- {
669
- "name": "settings",
670
- "type": {
671
- "text": "SavedGridSettings"
672
- }
971
+ "text": "SavedFilterValue[]"
673
972
  }
674
- ],
675
- "description": "Whether the grid already has exactly these settings, so re-applying them is a no-op."
973
+ }
676
974
  },
677
975
  {
678
976
  "kind": "method",
679
- "name": "readFilterModel",
680
- "privacy": "private",
977
+ "name": "applyFiltersValues",
681
978
  "return": {
682
979
  "type": {
683
- "text": "string"
980
+ "text": "void"
684
981
  }
685
982
  },
686
983
  "parameters": [
687
984
  {
688
- "name": "grid",
985
+ "name": "filtersValues",
689
986
  "type": {
690
- "text": "GridRegistration"
987
+ "text": "SavedFilterValue[]"
691
988
  }
692
989
  }
693
990
  ]
694
991
  },
695
992
  {
696
993
  "kind": "method",
697
- "name": "getGridSettings",
994
+ "name": "readValue",
698
995
  "privacy": "private",
699
996
  "return": {
700
997
  "type": {
701
- "text": "SavedGridSettings | null"
998
+ "text": "SavedFilterValue"
702
999
  }
703
1000
  },
704
1001
  "parameters": [
705
1002
  {
706
- "name": "gridKey",
707
- "type": {
708
- "text": "string"
709
- }
710
- },
711
- {
712
- "name": "grid",
1003
+ "name": "registration",
713
1004
  "type": {
714
- "text": "GridRegistration"
1005
+ "text": "FilterRegistration"
715
1006
  }
716
1007
  }
717
1008
  ]
718
1009
  }
719
- ]
720
- },
721
- {
722
- "kind": "variable",
723
- "name": "GridRegistry",
724
- "description": "DI token for grid registry."
725
- }
726
- ],
727
- "exports": [
728
- {
729
- "kind": "js",
730
- "name": "DefaultGridRegistry",
731
- "declaration": {
732
- "name": "DefaultGridRegistry",
733
- "module": "src/workspace/grid-registry.ts"
734
- }
735
- },
736
- {
737
- "kind": "js",
738
- "name": "GridRegistry",
739
- "declaration": {
740
- "name": "GridRegistry",
741
- "module": "src/workspace/grid-registry.ts"
742
- }
743
- }
744
- ]
745
- },
746
- {
747
- "kind": "javascript-module",
748
- "path": "src/workspace/index.ts",
749
- "declarations": [],
750
- "exports": [
751
- {
752
- "kind": "js",
753
- "name": "*",
754
- "declaration": {
755
- "name": "*",
756
- "package": "./workspace.types"
757
- }
758
- },
759
- {
760
- "kind": "js",
761
- "name": "*",
762
- "declaration": {
763
- "name": "*",
764
- "package": "./workspace-state.types"
765
- }
766
- },
767
- {
768
- "kind": "js",
769
- "name": "*",
770
- "declaration": {
771
- "name": "*",
772
- "package": "./workspace-state"
773
- }
774
- },
775
- {
776
- "kind": "js",
777
- "name": "*",
778
- "declaration": {
779
- "name": "*",
780
- "package": "./layout-registry"
781
- }
782
- },
783
- {
784
- "kind": "js",
785
- "name": "*",
786
- "declaration": {
787
- "name": "*",
788
- "package": "./grid-registry"
789
- }
1010
+ ]
790
1011
  },
791
1012
  {
792
- "kind": "js",
793
- "name": "*",
794
- "declaration": {
795
- "name": "*",
796
- "package": "./filter-registry"
797
- }
798
- },
1013
+ "kind": "variable",
1014
+ "name": "FilterRegistry",
1015
+ "description": "DI token for filter registry."
1016
+ }
1017
+ ],
1018
+ "exports": [
799
1019
  {
800
1020
  "kind": "js",
801
- "name": "*",
1021
+ "name": "DefaultFilterRegistry",
802
1022
  "declaration": {
803
- "name": "*",
804
- "package": "./grid-register"
1023
+ "name": "DefaultFilterRegistry",
1024
+ "module": "src/workspace/filter-registry.ts"
805
1025
  }
806
1026
  },
807
1027
  {
808
1028
  "kind": "js",
809
- "name": "*",
1029
+ "name": "FilterRegistry",
810
1030
  "declaration": {
811
- "name": "*",
812
- "package": "./layout-wrapper"
1031
+ "name": "FilterRegistry",
1032
+ "module": "src/workspace/filter-registry.ts"
813
1033
  }
814
1034
  }
815
1035
  ]
816
1036
  },
817
1037
  {
818
1038
  "kind": "javascript-module",
819
- "path": "src/workspace/layout-registry.ts",
1039
+ "path": "src/workspace/grid-registry.ts",
820
1040
  "declarations": [
821
1041
  {
822
1042
  "kind": "class",
823
- "description": "Default layout registry implementation.",
824
- "name": "DefaultLayoutRegistry",
1043
+ "description": "Default grid registry implementation.",
1044
+ "name": "DefaultGridRegistry",
825
1045
  "members": [
826
1046
  {
827
1047
  "kind": "field",
828
- "name": "layouts",
1048
+ "name": "filterSettleMs",
1049
+ "default": "1500",
1050
+ "description": "Quiet period after the last start-up event before the filter guard ends.",
829
1051
  "type": {
830
- "text": "Map<string, WorkspaceLayout>"
1052
+ "text": "number"
1053
+ }
1054
+ },
1055
+ {
1056
+ "kind": "field",
1057
+ "name": "filterGuardMaxMs",
1058
+ "default": "10000",
1059
+ "description": "Longest the filter guard runs after it is armed, however often it is re-armed.",
1060
+ "type": {
1061
+ "text": "number"
1062
+ }
1063
+ },
1064
+ {
1065
+ "kind": "field",
1066
+ "name": "maxFilterReapplies",
1067
+ "default": "3",
1068
+ "description": "Most re-applies the filter guard makes per arming.",
1069
+ "type": {
1070
+ "text": "number"
1071
+ }
1072
+ },
1073
+ {
1074
+ "kind": "field",
1075
+ "name": "grids",
1076
+ "type": {
1077
+ "text": "Map<string, GridRegistration>"
831
1078
  },
832
1079
  "privacy": "private",
833
1080
  "default": "new Map()"
@@ -836,21 +1083,33 @@
836
1083
  "kind": "field",
837
1084
  "name": "stored",
838
1085
  "type": {
839
- "text": "Map<string, SerialisedLayout>"
1086
+ "text": "Map<string, SavedGridSettings>"
840
1087
  },
841
1088
  "privacy": "private",
842
1089
  "default": "new Map()"
843
1090
  },
844
1091
  {
845
1092
  "kind": "field",
846
- "name": "waiting",
1093
+ "name": "listeners",
847
1094
  "privacy": "private",
848
- "default": "new WeakSet<WorkspaceLayout>()",
849
- "description": "Layouts with a stored-config load queued for their first load."
1095
+ "default": "new Map<GridRegistration, [string, GridEventListener][]>()"
1096
+ },
1097
+ {
1098
+ "kind": "field",
1099
+ "name": "guards",
1100
+ "privacy": "private",
1101
+ "default": "new Map<GridRegistration, FilterGuard>()"
1102
+ },
1103
+ {
1104
+ "kind": "field",
1105
+ "name": "settled",
1106
+ "privacy": "private",
1107
+ "default": "new Set<GridRegistration>()",
1108
+ "description": "Registrations whose first data has rendered or whose filters the user has changed."
850
1109
  },
851
1110
  {
852
1111
  "kind": "method",
853
- "name": "registerLayout",
1112
+ "name": "registerGrid",
854
1113
  "return": {
855
1114
  "type": {
856
1115
  "text": "void"
@@ -858,22 +1117,36 @@
858
1117
  },
859
1118
  "parameters": [
860
1119
  {
861
- "name": "layoutKey",
1120
+ "name": "gridKey",
862
1121
  "type": {
863
1122
  "text": "string"
864
1123
  }
865
1124
  },
866
1125
  {
867
- "name": "layout",
1126
+ "name": "gridApi",
868
1127
  "type": {
869
- "text": "WorkspaceLayout"
1128
+ "text": "unknown"
1129
+ }
1130
+ },
1131
+ {
1132
+ "name": "columnApi",
1133
+ "type": {
1134
+ "text": "unknown"
1135
+ }
1136
+ },
1137
+ {
1138
+ "name": "filterPersistence",
1139
+ "optional": true,
1140
+ "type": {
1141
+ "text": "GridFilterPersistence"
870
1142
  }
871
1143
  }
872
1144
  ]
873
1145
  },
874
1146
  {
875
1147
  "kind": "method",
876
- "name": "unregisterLayout",
1148
+ "name": "applyStoredSettings",
1149
+ "privacy": "private",
877
1150
  "return": {
878
1151
  "type": {
879
1152
  "text": "void"
@@ -881,7 +1154,32 @@
881
1154
  },
882
1155
  "parameters": [
883
1156
  {
884
- "name": "layoutKey",
1157
+ "name": "registration",
1158
+ "type": {
1159
+ "text": "GridRegistration"
1160
+ }
1161
+ },
1162
+ {
1163
+ "name": "options",
1164
+ "optional": true,
1165
+ "type": {
1166
+ "text": "{ applyFilters?: boolean }"
1167
+ }
1168
+ }
1169
+ ],
1170
+ "description": "Applies the stored settings for a grid, unless it already has exactly that state."
1171
+ },
1172
+ {
1173
+ "kind": "method",
1174
+ "name": "getGrid",
1175
+ "return": {
1176
+ "type": {
1177
+ "text": "GridRegistration | null"
1178
+ }
1179
+ },
1180
+ "parameters": [
1181
+ {
1182
+ "name": "gridKey",
885
1183
  "type": {
886
1184
  "text": "string"
887
1185
  }
@@ -890,52 +1188,74 @@
890
1188
  },
891
1189
  {
892
1190
  "kind": "method",
893
- "name": "getLayoutsConfigs",
1191
+ "name": "unregisterGrid",
894
1192
  "return": {
895
1193
  "type": {
896
- "text": "SavedLayout[]"
1194
+ "text": "void"
1195
+ }
1196
+ },
1197
+ "parameters": [
1198
+ {
1199
+ "name": "gridKey",
1200
+ "type": {
1201
+ "text": "string"
1202
+ }
1203
+ }
1204
+ ]
1205
+ },
1206
+ {
1207
+ "kind": "method",
1208
+ "name": "getAllGridsSettings",
1209
+ "return": {
1210
+ "type": {
1211
+ "text": "SavedGridSettings[]"
897
1212
  }
898
1213
  }
899
1214
  },
900
1215
  {
901
1216
  "kind": "method",
902
- "name": "applySavedLayouts",
1217
+ "name": "applyGridSettings",
903
1218
  "return": {
904
1219
  "type": {
905
- "text": "Promise<void>"
1220
+ "text": "Promise<boolean>"
906
1221
  }
907
1222
  },
908
1223
  "parameters": [
909
1224
  {
910
- "name": "savedLayouts",
1225
+ "name": "gridSetting",
911
1226
  "type": {
912
- "text": "SavedLayout[]"
1227
+ "text": "SavedGridSettings"
1228
+ }
1229
+ },
1230
+ {
1231
+ "name": "options",
1232
+ "optional": true,
1233
+ "type": {
1234
+ "text": "{ applyColumns?: boolean; applyFilters?: boolean }"
913
1235
  }
914
1236
  }
915
1237
  ]
916
1238
  },
917
1239
  {
918
1240
  "kind": "method",
919
- "name": "readLayout",
920
- "privacy": "private",
1241
+ "name": "applyAllGridsSettings",
921
1242
  "return": {
922
1243
  "type": {
923
- "text": "SerialisedLayout | null"
1244
+ "text": "Promise<void>"
924
1245
  }
925
1246
  },
926
1247
  "parameters": [
927
1248
  {
928
- "name": "layout",
1249
+ "name": "gridsSettings",
929
1250
  "type": {
930
- "text": "WorkspaceLayout"
1251
+ "text": "SavedGridSettings[]"
931
1252
  }
932
1253
  }
933
- ],
934
- "description": "A layout's config is only meaningful once it has finished its first load; before that it has\nno panes yet, and storing that would wipe the saved config."
1254
+ ]
935
1255
  },
936
1256
  {
937
1257
  "kind": "method",
938
- "name": "loadStored",
1258
+ "name": "applyFilterModel",
939
1259
  "privacy": "private",
940
1260
  "return": {
941
1261
  "type": {
@@ -944,212 +1264,208 @@
944
1264
  },
945
1265
  "parameters": [
946
1266
  {
947
- "name": "layoutKey",
1267
+ "name": "registration",
948
1268
  "type": {
949
- "text": "string"
1269
+ "text": "GridRegistration"
950
1270
  }
951
1271
  },
952
1272
  {
953
- "name": "layout",
1273
+ "name": "filterModel",
954
1274
  "type": {
955
- "text": "WorkspaceLayout"
1275
+ "text": "Record<string, unknown>"
956
1276
  }
957
1277
  }
958
1278
  ],
959
- "description": "Loads a layout's stored config once it has finished its first load. The config is read at load\ntime, so a workspace loaded while waiting wins, and a layout waiting already isn't queued twice;\nnothing loads into a layout that has since unregistered or been replaced under its key."
960
- }
961
- ]
962
- },
963
- {
964
- "kind": "variable",
965
- "name": "LayoutRegistry",
966
- "description": "DI token for layout registry."
967
- }
968
- ],
969
- "exports": [
970
- {
971
- "kind": "js",
972
- "name": "DefaultLayoutRegistry",
973
- "declaration": {
974
- "name": "DefaultLayoutRegistry",
975
- "module": "src/workspace/layout-registry.ts"
976
- }
977
- },
978
- {
979
- "kind": "js",
980
- "name": "LayoutRegistry",
981
- "declaration": {
982
- "name": "LayoutRegistry",
983
- "module": "src/workspace/layout-registry.ts"
984
- }
985
- }
986
- ]
987
- },
988
- {
989
- "kind": "javascript-module",
990
- "path": "src/workspace/workspace-state.ts",
991
- "declarations": [
992
- {
993
- "kind": "class",
994
- "description": "Default workspace persistence implementation backed by KVStorage.",
995
- "name": "DefaultWorkspaceState",
996
- "members": [
997
- {
998
- "kind": "field",
999
- "name": "STORAGE_PREFIX",
1000
- "type": {
1001
- "text": "string"
1002
- },
1003
- "privacy": "private",
1004
- "readonly": true,
1005
- "default": "'workspace_'"
1279
+ "description": "Writes a filter model into the grid's own persistence, then onto the grid, and records what\nthe grid reports back so the guard can tell a later replacement from AG Grid's normalisation."
1006
1280
  },
1007
1281
  {
1008
- "kind": "field",
1009
- "name": "WORKSPACES_LIST_KEY",
1010
- "type": {
1011
- "text": "string"
1012
- },
1282
+ "kind": "method",
1283
+ "name": "reapplyStoredFilter",
1013
1284
  "privacy": "private",
1014
- "readonly": true,
1015
- "default": "'workspaces_list'"
1016
- },
1017
- {
1018
- "kind": "field",
1019
- "name": "currentWorkspace",
1020
- "type": {
1021
- "text": "SavedWorkspace | null"
1285
+ "return": {
1286
+ "type": {
1287
+ "text": "void"
1288
+ }
1022
1289
  },
1023
- "privacy": "private",
1024
- "default": "null"
1290
+ "parameters": [
1291
+ {
1292
+ "name": "registration",
1293
+ "type": {
1294
+ "text": "GridRegistration"
1295
+ }
1296
+ }
1297
+ ]
1025
1298
  },
1026
1299
  {
1027
1300
  "kind": "method",
1028
- "name": "getCurrentUsername",
1301
+ "name": "filterWasReplaced",
1029
1302
  "privacy": "private",
1030
1303
  "return": {
1031
1304
  "type": {
1032
- "text": "string"
1305
+ "text": "boolean"
1033
1306
  }
1034
- }
1307
+ },
1308
+ "parameters": [
1309
+ {
1310
+ "name": "registration",
1311
+ "type": {
1312
+ "text": "GridRegistration"
1313
+ }
1314
+ }
1315
+ ],
1316
+ "description": "Whether the grid's filter model moved away from what the registry last applied — a stale\nrestore or other programmatic change, rather than AG Grid normalising the applied model (which\nreads back the same each time)."
1035
1317
  },
1036
1318
  {
1037
1319
  "kind": "method",
1038
- "name": "getWorkspaceStorageKey",
1320
+ "name": "armFilterGuard",
1039
1321
  "privacy": "private",
1040
1322
  "return": {
1041
1323
  "type": {
1042
- "text": "string"
1324
+ "text": "void"
1043
1325
  }
1044
1326
  },
1045
1327
  "parameters": [
1046
1328
  {
1047
- "name": "workspaceName",
1329
+ "name": "registration",
1048
1330
  "type": {
1049
- "text": "string"
1331
+ "text": "GridRegistration"
1050
1332
  }
1051
1333
  }
1052
1334
  ]
1053
1335
  },
1054
1336
  {
1055
1337
  "kind": "method",
1056
- "name": "getWorkspacesListKey",
1338
+ "name": "touchFilterGuard",
1057
1339
  "privacy": "private",
1058
1340
  "return": {
1059
1341
  "type": {
1060
- "text": "string"
1342
+ "text": "void"
1061
1343
  }
1062
- }
1344
+ },
1345
+ "parameters": [
1346
+ {
1347
+ "name": "registration",
1348
+ "type": {
1349
+ "text": "GridRegistration"
1350
+ }
1351
+ }
1352
+ ],
1353
+ "description": "Restarts the settle timer: the grid just did something that can precede a stale restore."
1063
1354
  },
1064
1355
  {
1065
1356
  "kind": "method",
1066
- "name": "saveWorkspace",
1357
+ "name": "guardActive",
1358
+ "privacy": "private",
1067
1359
  "return": {
1068
1360
  "type": {
1069
- "text": "Promise<void>"
1361
+ "text": "boolean"
1070
1362
  }
1071
1363
  },
1072
1364
  "parameters": [
1073
1365
  {
1074
- "name": "workspaceName",
1366
+ "name": "registration",
1075
1367
  "type": {
1076
- "text": "string"
1368
+ "text": "GridRegistration"
1077
1369
  }
1078
- },
1370
+ }
1371
+ ]
1372
+ },
1373
+ {
1374
+ "kind": "method",
1375
+ "name": "endFilterGuard",
1376
+ "privacy": "private",
1377
+ "return": {
1378
+ "type": {
1379
+ "text": "void"
1380
+ }
1381
+ },
1382
+ "parameters": [
1079
1383
  {
1080
- "name": "layouts",
1384
+ "name": "registration",
1081
1385
  "type": {
1082
- "text": "SavedLayout[]"
1386
+ "text": "GridRegistration"
1083
1387
  }
1084
- },
1388
+ }
1389
+ ]
1390
+ },
1391
+ {
1392
+ "kind": "method",
1393
+ "name": "addListener",
1394
+ "privacy": "private",
1395
+ "parameters": [
1085
1396
  {
1086
- "name": "grids",
1397
+ "name": "registration",
1087
1398
  "type": {
1088
- "text": "SavedGridSettings[]"
1399
+ "text": "GridRegistration"
1089
1400
  }
1090
1401
  },
1091
1402
  {
1092
- "name": "filters",
1403
+ "name": "type",
1093
1404
  "type": {
1094
- "text": "SavedFilterValue[]"
1405
+ "text": "string"
1095
1406
  }
1096
1407
  },
1097
1408
  {
1098
- "name": "description",
1099
- "optional": true,
1409
+ "name": "listener",
1100
1410
  "type": {
1101
- "text": "string"
1411
+ "text": "GridEventListener"
1102
1412
  }
1103
1413
  }
1104
1414
  ]
1105
1415
  },
1106
1416
  {
1107
1417
  "kind": "method",
1108
- "name": "loadWorkspace",
1418
+ "name": "removeListener",
1419
+ "privacy": "private",
1109
1420
  "return": {
1110
1421
  "type": {
1111
- "text": "Promise<SavedWorkspace | null>"
1422
+ "text": "void"
1112
1423
  }
1113
1424
  },
1114
1425
  "parameters": [
1115
1426
  {
1116
- "name": "workspaceName",
1427
+ "name": "registration",
1428
+ "type": {
1429
+ "text": "GridRegistration"
1430
+ }
1431
+ },
1432
+ {
1433
+ "name": "type",
1117
1434
  "type": {
1118
1435
  "text": "string"
1119
1436
  }
1437
+ },
1438
+ {
1439
+ "name": "listener",
1440
+ "type": {
1441
+ "text": "GridEventListener"
1442
+ }
1120
1443
  }
1121
1444
  ]
1122
1445
  },
1123
1446
  {
1124
1447
  "kind": "method",
1125
- "name": "getWorkspace",
1448
+ "name": "storeSnapshot",
1126
1449
  "privacy": "private",
1127
1450
  "return": {
1128
1451
  "type": {
1129
- "text": "Promise<SavedWorkspace | null>"
1452
+ "text": "void"
1130
1453
  }
1131
1454
  },
1132
1455
  "parameters": [
1133
1456
  {
1134
- "name": "workspaceName",
1457
+ "name": "registration",
1135
1458
  "type": {
1136
- "text": "string"
1459
+ "text": "GridRegistration"
1137
1460
  }
1138
1461
  }
1139
- ]
1140
- },
1141
- {
1142
- "kind": "method",
1143
- "name": "getCurrentWorkspace",
1144
- "return": {
1145
- "type": {
1146
- "text": "SavedWorkspace | null"
1147
- }
1148
- }
1462
+ ],
1463
+ "description": "Stores a grid's live state over its stored entry, except what the grid can't report yet:\n- nothing, once its API is destroyed (grid-pro destroys the outgoing grid before the new one\n re-registers, and a destroyed v36 API returns `undefined` rather than throwing);\n- the stored column state and filter model while the grid has no columns: before datasource\n columns exist, and after a datasource restart clears them (AG Grid then drops every filter,\n before grid-pro rebuilds the grid). With nothing stored, the filter model is left out, so the\n next registration leaves grid-pro to restore its own persisted filters;\n- the stored filter model until the first data renders or the user filters, since before that\n the grid may not have applied it yet (its columns or grid-pro's restore still pending)."
1149
1464
  },
1150
1465
  {
1151
1466
  "kind": "method",
1152
- "name": "setCurrentWorkspace",
1467
+ "name": "detach",
1468
+ "privacy": "private",
1153
1469
  "return": {
1154
1470
  "type": {
1155
1471
  "text": "void"
@@ -1157,72 +1473,78 @@
1157
1473
  },
1158
1474
  "parameters": [
1159
1475
  {
1160
- "name": "workspace",
1476
+ "name": "registration",
1161
1477
  "type": {
1162
- "text": "SavedWorkspace | null"
1478
+ "text": "GridRegistration"
1163
1479
  }
1164
1480
  }
1165
- ]
1166
- },
1167
- {
1168
- "kind": "method",
1169
- "name": "getSavedWorkspaces",
1170
- "return": {
1171
- "type": {
1172
- "text": "Promise<SavedWorkspace[]>"
1173
- }
1174
- }
1481
+ ],
1482
+ "description": "Removes a registration's grid listeners and stops its filter guard."
1175
1483
  },
1176
1484
  {
1177
1485
  "kind": "method",
1178
- "name": "deleteWorkspace",
1486
+ "name": "hasSettings",
1487
+ "privacy": "private",
1179
1488
  "return": {
1180
1489
  "type": {
1181
- "text": "Promise<void>"
1490
+ "text": "boolean"
1182
1491
  }
1183
1492
  },
1184
1493
  "parameters": [
1185
1494
  {
1186
- "name": "workspaceName",
1495
+ "name": "grid",
1187
1496
  "type": {
1188
- "text": "string"
1497
+ "text": "GridRegistration"
1498
+ }
1499
+ },
1500
+ {
1501
+ "name": "settings",
1502
+ "type": {
1503
+ "text": "SavedGridSettings"
1189
1504
  }
1190
1505
  }
1191
- ]
1506
+ ],
1507
+ "description": "Whether the grid already has exactly these settings, so re-applying them is a no-op."
1192
1508
  },
1193
1509
  {
1194
1510
  "kind": "method",
1195
- "name": "updateWorkspacesList",
1511
+ "name": "readFilterModel",
1196
1512
  "privacy": "private",
1197
1513
  "return": {
1198
1514
  "type": {
1199
- "text": "Promise<void>"
1515
+ "text": "string"
1200
1516
  }
1201
1517
  },
1202
1518
  "parameters": [
1203
1519
  {
1204
- "name": "workspaceName",
1520
+ "name": "grid",
1205
1521
  "type": {
1206
- "text": "string"
1522
+ "text": "GridRegistration"
1207
1523
  }
1208
1524
  }
1209
1525
  ]
1210
1526
  },
1211
1527
  {
1212
1528
  "kind": "method",
1213
- "name": "removeFromWorkspacesList",
1529
+ "name": "getGridSettings",
1214
1530
  "privacy": "private",
1215
1531
  "return": {
1216
1532
  "type": {
1217
- "text": "Promise<void>"
1533
+ "text": "SavedGridSettings | null"
1218
1534
  }
1219
1535
  },
1220
1536
  "parameters": [
1221
1537
  {
1222
- "name": "workspaceName",
1538
+ "name": "gridKey",
1223
1539
  "type": {
1224
1540
  "text": "string"
1225
1541
  }
1542
+ },
1543
+ {
1544
+ "name": "grid",
1545
+ "type": {
1546
+ "text": "GridRegistration"
1547
+ }
1226
1548
  }
1227
1549
  ]
1228
1550
  }
@@ -1230,359 +1552,137 @@
1230
1552
  },
1231
1553
  {
1232
1554
  "kind": "variable",
1233
- "name": "WorkspaceState",
1234
- "description": "DI token for workspace state."
1235
- }
1236
- ],
1237
- "exports": [
1238
- {
1239
- "kind": "js",
1240
- "name": "DefaultWorkspaceState",
1241
- "declaration": {
1242
- "name": "DefaultWorkspaceState",
1243
- "module": "src/workspace/workspace-state.ts"
1244
- }
1245
- },
1246
- {
1247
- "kind": "js",
1248
- "name": "WorkspaceState",
1249
- "declaration": {
1250
- "name": "WorkspaceState",
1251
- "module": "src/workspace/workspace-state.ts"
1252
- }
1253
- }
1254
- ]
1255
- },
1256
- {
1257
- "kind": "javascript-module",
1258
- "path": "src/workspace/workspace-state.types.ts",
1259
- "declarations": [],
1260
- "exports": []
1261
- },
1262
- {
1263
- "kind": "javascript-module",
1264
- "path": "src/workspace/workspace.types.ts",
1265
- "declarations": [],
1266
- "exports": []
1267
- },
1268
- {
1269
- "kind": "javascript-module",
1270
- "path": "src/workspace-manager/index.ts",
1271
- "declarations": [],
1272
- "exports": [
1273
- {
1274
- "kind": "js",
1275
- "name": "*",
1276
- "declaration": {
1277
- "name": "*",
1278
- "package": "./workspace-manager"
1279
- }
1280
- }
1281
- ]
1282
- },
1283
- {
1284
- "kind": "javascript-module",
1285
- "path": "src/workspace-manager/workspace-manager.styles.ts",
1286
- "declarations": [
1287
- {
1288
- "kind": "variable",
1289
- "name": "WorkspaceManagerStyles",
1290
- "default": "css`\n .workspace-manager {\n display: flex;\n gap: 10px;\n align-items: center;\n }\n\n .dialog-content {\n padding: 16px;\n min-width: 400px;\n max-width: 400px;\n display: flex;\n flex-direction: column;\n max-height: 90vh;\n overflow: hidden;\n }\n\n .button-group {\n display: flex;\n gap: 8px;\n justify-content: flex-end;\n }\n\n .workspace-list {\n display: flex;\n flex-direction: column;\n gap: 12px;\n max-height: 400px;\n overflow-y: auto;\n margin: 10px 0;\n align-items: unset;\n }\n\n rapid-label {\n margin-bottom: 10px;\n display: block;\n }\n\n .empty-state {\n padding: 24px;\n text-align: center;\n color: var(--neutral-foreground-hint);\n }\n\n .save-mode-selector {\n margin-bottom: 16px;\n }\n\n .warning-message {\n margin: 12px 0;\n padding: 12px;\n border: 1px solid var(--warning-color);\n border-radius: 4px;\n font-size: 14px;\n }\n\n .workspace-item {\n padding: 12px;\n border: 1px solid var(--neutral-stroke-rest);\n border-radius: 4px;\n background: var(--neutral-fill-rest);\n cursor: pointer;\n display: flex;\n align-items: center;\n gap: 5px;\n }\n\n .workspace-item:hover {\n background: var(--neutral-fill-hover);\n }\n\n .workspace-item::part(control) {\n margin-top: 2px;\n }\n\n .workspace-info {\n flex: 1;\n margin-left: 8px;\n }\n\n .workspace-name {\n font-weight: 600;\n margin-bottom: 4px;\n display: flex;\n align-items: center;\n gap: 8px;\n }\n\n .workspace-date {\n font-size: 12px;\n color: var(--neutral-foreground-hint);\n }\n\n .workspace-description {\n font-size: 12px;\n color: var(--neutral-foreground-hint);\n margin-top: 4px;\n white-space: pre-wrap;\n word-break: break-word;\n line-height: 1.4;\n }\n\n .loading-container {\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n padding: 24px;\n }\n\n .save-field {\n margin-bottom: 20px;\n }\n`"
1555
+ "name": "GridRegistry",
1556
+ "description": "DI token for grid registry."
1291
1557
  }
1292
1558
  ],
1293
1559
  "exports": [
1294
1560
  {
1295
1561
  "kind": "js",
1296
- "name": "WorkspaceManagerStyles",
1562
+ "name": "DefaultGridRegistry",
1297
1563
  "declaration": {
1298
- "name": "WorkspaceManagerStyles",
1299
- "module": "src/workspace-manager/workspace-manager.styles.ts"
1564
+ "name": "DefaultGridRegistry",
1565
+ "module": "src/workspace/grid-registry.ts"
1566
+ }
1567
+ },
1568
+ {
1569
+ "kind": "js",
1570
+ "name": "GridRegistry",
1571
+ "declaration": {
1572
+ "name": "GridRegistry",
1573
+ "module": "src/workspace/grid-registry.ts"
1300
1574
  }
1301
1575
  }
1302
1576
  ]
1303
1577
  },
1304
1578
  {
1305
1579
  "kind": "javascript-module",
1306
- "path": "src/workspace-manager/workspace-manager.template.ts",
1307
- "declarations": [
1308
- {
1309
- "kind": "variable",
1310
- "name": "WORKSPACE_DESCRIPTION_MAX",
1311
- "type": {
1312
- "text": "number"
1313
- },
1314
- "default": "200"
1315
- },
1580
+ "path": "src/workspace/index.ts",
1581
+ "declarations": [],
1582
+ "exports": [
1316
1583
  {
1317
- "kind": "variable",
1318
- "name": "workspaceHeaderPartial",
1319
- "type": {
1320
- "text": "ViewTemplate<WorkspaceManager>"
1321
- },
1322
- "default": "html`\n <div class=\"workspace-manager\">\n <rapid-button @click=${(x) => x.openSaveDialog()}>\n <rapid-icon name=\"download\"></rapid-icon>\n Save Workspace\n </rapid-button>\n <rapid-button @click=${(x) => x.openLoadDialog()}>\n <rapid-icon name=\"upload\"></rapid-icon>\n Load Workspace\n </rapid-button>\n </div>\n`"
1584
+ "kind": "js",
1585
+ "name": "*",
1586
+ "declaration": {
1587
+ "name": "*",
1588
+ "package": "./workspace.types"
1589
+ }
1323
1590
  },
1324
1591
  {
1325
- "kind": "variable",
1326
- "name": "workspaceSaveModalPartial",
1327
- "type": {
1328
- "text": "ViewTemplate<WorkspaceManager>"
1329
- },
1330
- "default": "html`\n <rapid-modal ${ref('saveModal')}>\n <h2 slot=\"top\">Save Workspace</h2>\n <div class=\"dialog-content\">\n <div class=\"save-mode-selector\">\n <rapid-segmented-control value=\"${sync((x) => x.saveMode)}\">\n <rapid-segmented-item value=\"create\">Create</rapid-segmented-item>\n <rapid-segmented-item value=\"overwrite\">Overwrite</rapid-segmented-item>\n ${when(\n () => false,\n html<WorkspaceManager>`\n <rapid-segmented-item value=\"shared\">Share</rapid-segmented-item>\n `,\n )}\n </rapid-segmented-control>\n </div>\n ${when(\n (x) => x.saveMode === 'create',\n html<WorkspaceManager>`\n <rapid-label>Workspace Name:</rapid-label>\n <rapid-text-field\n class=\"save-field\"\n :value=${(x) => x.workspaceName}\n @input=${(x, c) => (x.workspaceName = (c.event.target as HTMLInputElement).value)}\n placeholder=\"Enter workspace name\"\n ></rapid-text-field>\n <rapid-label>\n Description (optional, max ${WORKSPACE_DESCRIPTION_MAX} characters):\n </rapid-label>\n <rapid-text-area\n class=\"save-field workspace-description-input\"\n maxlength=\"${WORKSPACE_DESCRIPTION_MAX}\"\n :value=${(x) => x.workspaceDescription}\n @input=${(x, c) =>\n x.updateWorkspaceDescription((c.event.target as HTMLTextAreaElement).value)}\n placeholder=\"Add a description for this workspace\"\n rows=\"3\"\n ></rapid-text-area>\n ${when(\n (x) => x.workspaceName && x.isWorkspaceExisting(x.workspaceName),\n html`\n <div class=\"warning-message\">\n <rapid-icon name=\"triangle-exclamation\"></rapid-icon>\n A workspace with this name already exists. Use \"Overwrite Existing Workspace\" to\n replace it.\n </div>\n `,\n )}\n `,\n )}\n ${when(\n (x) => x.saveMode === 'overwrite',\n html<WorkspaceManager>`\n ${when(\n (x) => x.savedWorkspaces.length === 0,\n html`\n <div class=\"empty-state\">No saved workspaces to overwrite</div>\n `,\n )}\n <rapid-label>Select Workspace to Overwrite:</rapid-label>\n <rapid-radio-group\n class=\"workspace-list\"\n value=${sync((x) => x.selectedWorkspaceToOverwrite)}\n orientation=\"vertical\"\n >\n ${repeat(\n (x) => x.savedWorkspaces,\n html<SavedWorkspace>`\n <rapid-radio value=${(x) => x.name} class=\"workspace-item\">\n <div class=\"workspace-info\">\n <div class=\"workspace-name\">${(x) => x.name}</div>\n <div class=\"workspace-date\">\n Saved: ${(x) => new Date(x.savedAt).toLocaleString()}\n </div>\n ${when(\n (w) => w.description,\n html<SavedWorkspace>`\n <div class=\"workspace-description\">${(w) => w.description}</div>\n `,\n )}\n </div>\n </rapid-radio>\n `,\n )}\n </rapid-radio-group>\n <rapid-label>Description (optional):</rapid-label>\n <rapid-text-area\n class=\"save-field\"\n :value=${(x) => x.workspaceDescription}\n maxlength=\"${WORKSPACE_DESCRIPTION_MAX}\"\n @input=${(x, c) =>\n x.updateWorkspaceDescription((c.event.target as HTMLTextAreaElement).value)}\n placeholder=\"Add a description for this workspace\"\n rows=\"3\"\n ></rapid-text-area>\n <div class=\"warning-message\">\n <rapid-icon name=\"triangle-exclamation\"></rapid-icon>\n This will permanently replace the selected workspace. This action cannot be undone.\n </div>\n `,\n )}\n ${when(\n () => false,\n html<WorkspaceManager>`\n <h3>Share existing workspace:</h3>\n ${whenElse(\n (x) => x.savedWorkspaces.length === 0,\n html`\n <div class=\"empty-state\">No saved workspaces to share</div>\n `,\n html<WorkspaceManager>`\n <div class=\"workspace-list\">\n ${repeat(\n (x) => x.savedWorkspaces,\n html<SavedWorkspace>`\n <div class=\"workspace-item\">\n <div class=\"workspace-info\">\n <div class=\"workspace-name\">${(w) => w.name}</div>\n <div class=\"workspace-date\">\n Saved: ${(w) => new Date(w.savedAt).toLocaleString()}\n </div>\n ${when(\n (w) => w.description,\n html<SavedWorkspace>`\n <div class=\"workspace-description\">${(w) => w.description}</div>\n `,\n )}\n </div>\n <div class=\"button-group\">\n <rapid-button\n appearance=\"primary\"\n @click=${(w, c: ExecutionContext<WorkspaceManager>) =>\n c.parent.shareExistingWorkspace(w.name)}\n >\n Share\n </rapid-button>\n </div>\n </div>\n `,\n )}\n </div>\n `,\n )}\n <h3>My Shared Workspaces</h3>\n ${whenElse(\n (x) =>\n x.sharedWorkspaces.filter((w) => w.userName === x.auth?.loggedUserResult?.username)\n .length === 0,\n html`\n <div class=\"empty-state\">You have not shared any workspaces</div>\n `,\n html<WorkspaceManager>`\n <div class=\"workspace-list\">\n ${repeat(\n (x) =>\n x.sharedWorkspaces.filter(\n (w) => w.userName === x.auth?.loggedUserResult?.username,\n ),\n html<SharedWorkspace>`\n <div class=\"workspace-item\">\n <div class=\"workspace-info\">\n <div class=\"workspace-name\">${(w) => w.name}</div>\n <div class=\"workspace-date\">\n Shared on\n ${(w) => new Date((w.modifiedOn || w.createdOn) as any).toLocaleString()}\n </div>\n ${when(\n (w) => w.description,\n html<SharedWorkspace>`\n <div class=\"workspace-description\">${(w) => w.description}</div>\n `,\n )}\n </div>\n <div class=\"button-group\">\n <rapid-button\n appearance=\"primary\"\n @click=${(w, c: ExecutionContext<WorkspaceManager>) =>\n c.parent.modifySharedWorkspace(w)}\n >\n Save\n </rapid-button>\n <rapid-button\n appearance=\"danger\"\n @click=${(w, c: ExecutionContext<WorkspaceManager>) =>\n c.parent.confirmDeleteSharedWorkspace(w)}\n >\n Delete\n </rapid-button>\n </div>\n </div>\n `,\n )}\n </div>\n `,\n )}\n `,\n )}\n <div class=\"button-group\">\n <rapid-button\n @click=${(x) => x.saveWorkspace()}\n appearance=\"primary\"\n ?disabled=${(x) =>\n (x.saveMode === 'create' && !x.workspaceName.trim()) ||\n (x.saveMode === 'overwrite' && !x.selectedWorkspaceToOverwrite) ||\n x.saveMode === 'shared' ||\n (x.workspaceName && x.isWorkspaceExisting(x.workspaceName))}\n >\n ${(x) =>\n x.saveMode === 'create' ? 'Create' : x.saveMode === 'overwrite' ? 'Overwrite' : 'Save'}\n </rapid-button>\n <rapid-button appearance=\"outline\" @click=${(x) => x.closeSaveDialog()}>\n Cancel\n </rapid-button>\n </div>\n <div class=\"workspace-dialog-boundary\" ${ref('sharedWorkspaceDialogBoundary')}></div>\n </div>\n </rapid-modal>\n`"
1592
+ "kind": "js",
1593
+ "name": "*",
1594
+ "declaration": {
1595
+ "name": "*",
1596
+ "package": "./workspace-state.types"
1597
+ }
1331
1598
  },
1332
1599
  {
1333
- "kind": "variable",
1334
- "name": "workspaceLoadModalPartial",
1335
- "type": {
1336
- "text": "ViewTemplate<WorkspaceManager>"
1337
- },
1338
- "default": "html`\n <rapid-modal ${ref('loadModal')}>\n <h2 slot=\"top\">Load Workspace</h2>\n <div class=\"dialog-content\">\n ${when(\n (x) => x.applyingWorkspace || x.isLoading,\n html`\n <div class=\"loading-container\">\n <div>Loading...</div>\n </div>\n `,\n )}\n ${when(\n (x) => !x.applyingWorkspace,\n html<WorkspaceManager>`\n ${when(\n () => false,\n html<WorkspaceManager>`\n <rapid-segmented-control value=\"${sync((x) => x.loadMode)}\">\n <rapid-segmented-item value=\"MY\">My Workspaces</rapid-segmented-item>\n\n <rapid-segmented-item value=\"SHARED\">Shared Workspaces</rapid-segmented-item>\n </rapid-segmented-control>\n `,\n )}\n ${when(\n (x) => x.loadMode === 'MY',\n html`\n <div class=\"workspace-list\">\n ${repeat(\n (x) => x.savedWorkspaces,\n html<SavedWorkspace>`\n <div class=\"workspace-item\">\n <div class=\"workspace-info\">\n <div class=\"workspace-name\">${(w) => w.name}</div>\n <div class=\"workspace-date\">\n Saved: ${(w) => new Date(w.savedAt).toLocaleString()}\n </div>\n ${when(\n (w) => w.description,\n html<SavedWorkspace>`\n <div class=\"workspace-description\">${(w) => w.description}</div>\n `,\n )}\n </div>\n <div class=\"button-group\">\n <rapid-button\n appearance=\"primary\"\n @click=${(w, c: ExecutionContext<WorkspaceManager>) =>\n c.parent.loadWorkspace(w.name)}\n >\n Load\n </rapid-button>\n <rapid-button\n appearance=\"danger\"\n @click=${(w, c: ExecutionContext<WorkspaceManager>) =>\n c.parent.confirmDeleteWorkspace(w.name)}\n >\n Delete\n </rapid-button>\n </div>\n </div>\n `,\n )}\n ${when(\n (x) => x.savedWorkspaces.length === 0,\n html`\n <div class=\"empty-state\">No saved workspaces found</div>\n `,\n )}\n </div>\n `,\n )}\n ${when(\n () => false,\n html`\n <div class=\"workspace-section\">\n <div class=\"workspace-list\">\n ${repeat(\n (x) => x.sharedWorkspaces,\n html<SharedWorkspace>`\n <div class=\"workspace-item\">\n <div class=\"workspace-info\">\n <div class=\"workspace-name\">${(w) => w.name}</div>\n <div class=\"workspace-date\">\n Shared by ${(w) => w.userName} ·\n ${(w) =>\n new Date((w.modifiedOn || w.createdOn) as any).toLocaleString()}\n </div>\n ${when(\n (w) => w.description,\n html<SharedWorkspace>`\n <div class=\"workspace-description\">${(w) => w.description}</div>\n `,\n )}\n </div>\n <div class=\"button-group\">\n <rapid-button\n appearance=\"primary\"\n @click=${(w, c: ExecutionContext<WorkspaceManager>) =>\n c.parent.loadSharedWorkspace(w)}\n >\n Load\n </rapid-button>\n </div>\n </div>\n `,\n )}\n </div>\n ${when(\n (x) => x.sharedWorkspaces.length === 0,\n html`\n <div class=\"empty-state\">No shared workspaces available</div>\n `,\n )}\n </div>\n `,\n )}\n `,\n )}\n <div class=\"button-group\">\n <rapid-button appearance=\"outline\" @click=${(x) => x.closeLoadDialog()}>Close</rapid-button>\n </div>\n </div>\n <div class=\"workspace-dialog-boundary\" ${ref('dialogBoundary')}></div>\n </rapid-modal>\n`"
1600
+ "kind": "js",
1601
+ "name": "*",
1602
+ "declaration": {
1603
+ "name": "*",
1604
+ "package": "./workspace-state"
1605
+ }
1339
1606
  },
1340
- {
1341
- "kind": "variable",
1342
- "name": "WorkspaceManagerTemplate",
1343
- "default": "html<WorkspaceManager>`\n ${workspaceHeaderPartial} ${workspaceSaveModalPartial} ${workspaceLoadModalPartial}\n`"
1344
- }
1345
- ],
1346
- "exports": [
1347
1607
  {
1348
1608
  "kind": "js",
1349
- "name": "WORKSPACE_DESCRIPTION_MAX",
1609
+ "name": "*",
1350
1610
  "declaration": {
1351
- "name": "WORKSPACE_DESCRIPTION_MAX",
1352
- "module": "src/workspace-manager/workspace-manager.template.ts"
1611
+ "name": "*",
1612
+ "package": "./layout-registry"
1353
1613
  }
1354
1614
  },
1355
1615
  {
1356
1616
  "kind": "js",
1357
- "name": "workspaceHeaderPartial",
1617
+ "name": "*",
1358
1618
  "declaration": {
1359
- "name": "workspaceHeaderPartial",
1360
- "module": "src/workspace-manager/workspace-manager.template.ts"
1619
+ "name": "*",
1620
+ "package": "./grid-registry"
1361
1621
  }
1362
1622
  },
1363
1623
  {
1364
1624
  "kind": "js",
1365
- "name": "workspaceSaveModalPartial",
1625
+ "name": "*",
1366
1626
  "declaration": {
1367
- "name": "workspaceSaveModalPartial",
1368
- "module": "src/workspace-manager/workspace-manager.template.ts"
1627
+ "name": "*",
1628
+ "package": "./filter-registry"
1369
1629
  }
1370
1630
  },
1371
1631
  {
1372
1632
  "kind": "js",
1373
- "name": "workspaceLoadModalPartial",
1633
+ "name": "*",
1374
1634
  "declaration": {
1375
- "name": "workspaceLoadModalPartial",
1376
- "module": "src/workspace-manager/workspace-manager.template.ts"
1635
+ "name": "*",
1636
+ "package": "./grid-register"
1377
1637
  }
1378
1638
  },
1379
1639
  {
1380
1640
  "kind": "js",
1381
- "name": "WorkspaceManagerTemplate",
1641
+ "name": "*",
1382
1642
  "declaration": {
1383
- "name": "WorkspaceManagerTemplate",
1384
- "module": "src/workspace-manager/workspace-manager.template.ts"
1643
+ "name": "*",
1644
+ "package": "./layout-wrapper"
1385
1645
  }
1386
1646
  }
1387
1647
  ]
1388
1648
  },
1389
1649
  {
1390
1650
  "kind": "javascript-module",
1391
- "path": "src/workspace-manager/workspace-manager.ts",
1651
+ "path": "src/workspace/layout-registry.ts",
1392
1652
  "declarations": [
1393
1653
  {
1394
- "kind": "class",
1395
- "description": "Workspace persistence UI (save/load + share/delete shared workspaces).",
1396
- "name": "WorkspaceManager",
1397
- "members": [
1398
- {
1399
- "kind": "field",
1400
- "name": "workspaceName",
1401
- "type": {
1402
- "text": "string"
1403
- },
1404
- "default": "''"
1405
- },
1406
- {
1407
- "kind": "field",
1408
- "name": "workspaceDescription",
1409
- "type": {
1410
- "text": "string"
1411
- },
1412
- "default": "''"
1413
- },
1414
- {
1415
- "kind": "field",
1416
- "name": "savedWorkspaces",
1417
- "type": {
1418
- "text": "SavedWorkspace[]"
1419
- },
1420
- "default": "[]"
1421
- },
1422
- {
1423
- "kind": "field",
1424
- "name": "sharedWorkspaces",
1425
- "type": {
1426
- "text": "SharedWorkspace[]"
1427
- },
1428
- "default": "[]"
1429
- },
1430
- {
1431
- "kind": "field",
1432
- "name": "isLoading",
1433
- "type": {
1434
- "text": "boolean"
1435
- },
1436
- "default": "false"
1437
- },
1438
- {
1439
- "kind": "field",
1440
- "name": "applyingWorkspace",
1441
- "type": {
1442
- "text": "boolean"
1443
- },
1444
- "default": "false"
1445
- },
1446
- {
1447
- "kind": "field",
1448
- "name": "loadMode",
1449
- "type": {
1450
- "text": "LoadMode"
1451
- },
1452
- "default": "'MY'"
1453
- },
1454
- {
1455
- "kind": "field",
1456
- "name": "saveModal",
1457
- "type": {
1458
- "text": "Modal"
1459
- }
1460
- },
1461
- {
1462
- "kind": "field",
1463
- "name": "loadModal",
1464
- "type": {
1465
- "text": "Modal"
1466
- }
1467
- },
1468
- {
1469
- "kind": "field",
1470
- "name": "saveMode",
1471
- "type": {
1472
- "text": "'create' | 'overwrite' | 'shared'"
1473
- },
1474
- "default": "'create'"
1475
- },
1476
- {
1477
- "kind": "field",
1478
- "name": "selectedWorkspaceToOverwrite",
1479
- "type": {
1480
- "text": "string"
1481
- },
1482
- "default": "''"
1483
- },
1484
- {
1485
- "kind": "field",
1486
- "name": "workspaceToShare",
1487
- "type": {
1488
- "text": "string"
1489
- },
1490
- "default": "''"
1491
- },
1492
- {
1493
- "kind": "field",
1494
- "name": "dialogBoundary",
1495
- "type": {
1496
- "text": "HTMLElement"
1497
- }
1498
- },
1499
- {
1500
- "kind": "field",
1501
- "name": "sharedWorkspaceDialogBoundary",
1502
- "type": {
1503
- "text": "HTMLElement"
1504
- }
1505
- },
1506
- {
1507
- "kind": "field",
1508
- "name": "layoutRegistry",
1509
- "type": {
1510
- "text": "LayoutRegistry"
1511
- }
1512
- },
1513
- {
1514
- "kind": "field",
1515
- "name": "gridRegistry",
1516
- "type": {
1517
- "text": "GridRegistry"
1518
- }
1519
- },
1520
- {
1521
- "kind": "field",
1522
- "name": "filterRegistry",
1523
- "type": {
1524
- "text": "FilterRegistry"
1525
- }
1526
- },
1527
- {
1528
- "kind": "field",
1529
- "name": "workspaceState",
1530
- "type": {
1531
- "text": "WorkspaceState"
1532
- }
1533
- },
1534
- {
1535
- "kind": "field",
1536
- "name": "connect",
1537
- "type": {
1538
- "text": "Connect"
1539
- }
1540
- },
1541
- {
1542
- "kind": "field",
1543
- "name": "auth",
1544
- "type": {
1545
- "text": "Auth"
1546
- }
1547
- },
1654
+ "kind": "class",
1655
+ "description": "Default layout registry implementation.",
1656
+ "name": "DefaultLayoutRegistry",
1657
+ "members": [
1548
1658
  {
1549
1659
  "kind": "field",
1550
- "name": "canShareWorkspace",
1660
+ "name": "layouts",
1551
1661
  "type": {
1552
- "text": "boolean"
1553
- }
1662
+ "text": "Map<string, WorkspaceLayout>"
1663
+ },
1664
+ "privacy": "private",
1665
+ "default": "new Map()"
1554
1666
  },
1555
1667
  {
1556
1668
  "kind": "field",
1557
- "name": "sharedWorkspacesEnabled",
1669
+ "name": "stored",
1558
1670
  "type": {
1559
- "text": "boolean"
1671
+ "text": "Map<string, SerialisedLayout>"
1560
1672
  },
1561
1673
  "privacy": "private",
1562
- "readonly": true,
1563
- "default": "false"
1674
+ "default": "new Map()"
1564
1675
  },
1565
1676
  {
1566
- "kind": "method",
1567
- "name": "sanitizeDescription",
1677
+ "kind": "field",
1678
+ "name": "waiting",
1568
1679
  "privacy": "private",
1569
- "return": {
1570
- "type": {
1571
- "text": "string"
1572
- }
1573
- },
1574
- "parameters": [
1575
- {
1576
- "name": "input",
1577
- "type": {
1578
- "text": "string"
1579
- }
1580
- }
1581
- ]
1680
+ "default": "new WeakSet<WorkspaceLayout>()",
1681
+ "description": "Layouts with a stored-config load queued for their first load."
1582
1682
  },
1583
1683
  {
1584
1684
  "kind": "method",
1585
- "name": "updateWorkspaceDescription",
1685
+ "name": "registerLayout",
1586
1686
  "return": {
1587
1687
  "type": {
1588
1688
  "text": "void"
@@ -1590,96 +1690,30 @@
1590
1690
  },
1591
1691
  "parameters": [
1592
1692
  {
1593
- "name": "raw",
1693
+ "name": "layoutKey",
1594
1694
  "type": {
1595
1695
  "text": "string"
1596
1696
  }
1597
- }
1598
- ]
1599
- },
1600
- {
1601
- "kind": "method",
1602
- "name": "setDescriptionFromSelectedWorkspace",
1603
- "privacy": "private",
1604
- "return": {
1605
- "type": {
1606
- "text": "void"
1607
- }
1608
- }
1609
- },
1610
- {
1611
- "kind": "method",
1612
- "name": "refreshSavedWorkspaces",
1613
- "return": {
1614
- "type": {
1615
- "text": "Promise<void>"
1616
- }
1617
- }
1618
- },
1619
- {
1620
- "kind": "method",
1621
- "name": "refreshSharedWorkspaces",
1622
- "return": {
1623
- "type": {
1624
- "text": "Promise<void>"
1625
- }
1626
- }
1627
- },
1628
- {
1629
- "kind": "method",
1630
- "name": "notifyError",
1631
- "privacy": "private",
1632
- "return": {
1633
- "type": {
1634
- "text": "void"
1635
- }
1636
- },
1637
- "parameters": [
1638
- {
1639
- "name": "body",
1640
- "default": "'Error'"
1641
- }
1642
- ]
1643
- },
1644
- {
1645
- "kind": "method",
1646
- "name": "saveWorkspace",
1647
- "return": {
1648
- "type": {
1649
- "text": "Promise<void>"
1650
- }
1651
- }
1652
- },
1653
- {
1654
- "kind": "method",
1655
- "name": "applyWorkspace",
1656
- "privacy": "private",
1657
- "return": {
1658
- "type": {
1659
- "text": "Promise<void>"
1660
- }
1661
- },
1662
- "parameters": [
1697
+ },
1663
1698
  {
1664
- "name": "workspace",
1699
+ "name": "layout",
1665
1700
  "type": {
1666
- "text": "SavedWorkspace"
1701
+ "text": "WorkspaceLayout"
1667
1702
  }
1668
1703
  }
1669
- ],
1670
- "description": "Seeds every registry's store with the workspace's entries (replacing whatever was stored,\neven when a list is empty) and applies them to what's mounted; unmounted grids, layouts and\nfilters pick theirs up when they register. Grids and filters are seeded before layouts:\nloading a layout rebuilds its panes, and the grids/filters inside re-register straight away."
1704
+ ]
1671
1705
  },
1672
1706
  {
1673
1707
  "kind": "method",
1674
- "name": "loadWorkspace",
1708
+ "name": "unregisterLayout",
1675
1709
  "return": {
1676
1710
  "type": {
1677
- "text": "Promise<void>"
1711
+ "text": "void"
1678
1712
  }
1679
1713
  },
1680
1714
  "parameters": [
1681
1715
  {
1682
- "name": "workspaceName",
1716
+ "name": "layoutKey",
1683
1717
  "type": {
1684
1718
  "text": "string"
1685
1719
  }
@@ -1688,25 +1722,16 @@
1688
1722
  },
1689
1723
  {
1690
1724
  "kind": "method",
1691
- "name": "requestSharedWorkspace",
1692
- "privacy": "private",
1725
+ "name": "getLayoutsConfigs",
1693
1726
  "return": {
1694
1727
  "type": {
1695
- "text": "Promise<any[]>"
1696
- }
1697
- },
1698
- "parameters": [
1699
- {
1700
- "name": "SHARED_WORKSPACE_ID",
1701
- "type": {
1702
- "text": "string"
1703
- }
1728
+ "text": "SavedLayout[]"
1704
1729
  }
1705
- ]
1730
+ }
1706
1731
  },
1707
1732
  {
1708
1733
  "kind": "method",
1709
- "name": "loadSharedWorkspace",
1734
+ "name": "applySavedLayouts",
1710
1735
  "return": {
1711
1736
  "type": {
1712
1737
  "text": "Promise<void>"
@@ -1714,33 +1739,35 @@
1714
1739
  },
1715
1740
  "parameters": [
1716
1741
  {
1717
- "name": "shared",
1742
+ "name": "savedLayouts",
1718
1743
  "type": {
1719
- "text": "{\n id: string;\n name: string;\n userName: string;\n createdOn?: string | number;\n modifiedOn?: string | number;\n data: string;\n }"
1744
+ "text": "SavedLayout[]"
1720
1745
  }
1721
1746
  }
1722
1747
  ]
1723
1748
  },
1724
1749
  {
1725
1750
  "kind": "method",
1726
- "name": "deleteWorkspace",
1751
+ "name": "readLayout",
1752
+ "privacy": "private",
1727
1753
  "return": {
1728
1754
  "type": {
1729
- "text": "Promise<void>"
1755
+ "text": "SerialisedLayout | null"
1730
1756
  }
1731
1757
  },
1732
1758
  "parameters": [
1733
1759
  {
1734
- "name": "workspaceName",
1760
+ "name": "layout",
1735
1761
  "type": {
1736
- "text": "string"
1762
+ "text": "WorkspaceLayout"
1737
1763
  }
1738
1764
  }
1739
- ]
1765
+ ],
1766
+ "description": "A layout's config is only meaningful once it has finished its first load; before that it has\nno panes yet, and storing that would wipe the saved config."
1740
1767
  },
1741
1768
  {
1742
1769
  "kind": "method",
1743
- "name": "showDeleteConfirmation",
1770
+ "name": "loadStored",
1744
1771
  "privacy": "private",
1745
1772
  "return": {
1746
1773
  "type": {
@@ -1749,105 +1776,102 @@
1749
1776
  },
1750
1777
  "parameters": [
1751
1778
  {
1752
- "name": "title",
1753
- "type": {
1754
- "text": "string"
1755
- }
1756
- },
1757
- {
1758
- "name": "body",
1779
+ "name": "layoutKey",
1759
1780
  "type": {
1760
1781
  "text": "string"
1761
1782
  }
1762
1783
  },
1763
1784
  {
1764
- "name": "actionFunction",
1765
- "type": {
1766
- "text": "() => void"
1767
- }
1768
- },
1769
- {
1770
- "name": "dialogBoundary",
1785
+ "name": "layout",
1771
1786
  "type": {
1772
- "text": "HTMLElement"
1787
+ "text": "WorkspaceLayout"
1773
1788
  }
1774
1789
  }
1775
- ]
1776
- },
1790
+ ],
1791
+ "description": "Loads a layout's stored config once it has finished its first load. The config is read at load\ntime, so a workspace loaded while waiting wins, and a layout waiting already isn't queued twice;\nnothing loads into a layout that has since unregistered or been replaced under its key."
1792
+ }
1793
+ ]
1794
+ },
1795
+ {
1796
+ "kind": "variable",
1797
+ "name": "LayoutRegistry",
1798
+ "description": "DI token for layout registry."
1799
+ }
1800
+ ],
1801
+ "exports": [
1802
+ {
1803
+ "kind": "js",
1804
+ "name": "DefaultLayoutRegistry",
1805
+ "declaration": {
1806
+ "name": "DefaultLayoutRegistry",
1807
+ "module": "src/workspace/layout-registry.ts"
1808
+ }
1809
+ },
1810
+ {
1811
+ "kind": "js",
1812
+ "name": "LayoutRegistry",
1813
+ "declaration": {
1814
+ "name": "LayoutRegistry",
1815
+ "module": "src/workspace/layout-registry.ts"
1816
+ }
1817
+ }
1818
+ ]
1819
+ },
1820
+ {
1821
+ "kind": "javascript-module",
1822
+ "path": "src/workspace/workspace-state.ts",
1823
+ "declarations": [
1824
+ {
1825
+ "kind": "class",
1826
+ "description": "Default workspace persistence implementation backed by KVStorage.",
1827
+ "name": "DefaultWorkspaceState",
1828
+ "members": [
1777
1829
  {
1778
- "kind": "method",
1779
- "name": "confirmDeleteWorkspace",
1780
- "return": {
1781
- "type": {
1782
- "text": "void"
1783
- }
1830
+ "kind": "field",
1831
+ "name": "STORAGE_PREFIX",
1832
+ "type": {
1833
+ "text": "string"
1784
1834
  },
1785
- "parameters": [
1786
- {
1787
- "name": "workspaceName",
1788
- "type": {
1789
- "text": "string"
1790
- }
1791
- }
1792
- ]
1835
+ "privacy": "private",
1836
+ "readonly": true,
1837
+ "default": "'workspace_'"
1793
1838
  },
1794
1839
  {
1795
- "kind": "method",
1796
- "name": "modifySharedWorkspace",
1797
- "return": {
1798
- "type": {
1799
- "text": "Promise<void>"
1800
- }
1840
+ "kind": "field",
1841
+ "name": "WORKSPACES_LIST_KEY",
1842
+ "type": {
1843
+ "text": "string"
1801
1844
  },
1802
- "parameters": [
1803
- {
1804
- "name": "sharedWorkspace",
1805
- "type": {
1806
- "text": "SharedWorkspace"
1807
- }
1808
- }
1809
- ]
1845
+ "privacy": "private",
1846
+ "readonly": true,
1847
+ "default": "'workspaces_list'"
1810
1848
  },
1811
1849
  {
1812
- "kind": "method",
1813
- "name": "deleteSharedWorkspace",
1814
- "return": {
1815
- "type": {
1816
- "text": "Promise<void>"
1817
- }
1850
+ "kind": "field",
1851
+ "name": "currentWorkspace",
1852
+ "type": {
1853
+ "text": "SavedWorkspace | null"
1818
1854
  },
1819
- "parameters": [
1820
- {
1821
- "name": "sharedWorkspace",
1822
- "type": {
1823
- "text": "SharedWorkspace"
1824
- }
1825
- }
1826
- ]
1855
+ "privacy": "private",
1856
+ "default": "null"
1827
1857
  },
1828
1858
  {
1829
1859
  "kind": "method",
1830
- "name": "confirmDeleteSharedWorkspace",
1860
+ "name": "getCurrentUsername",
1861
+ "privacy": "private",
1831
1862
  "return": {
1832
1863
  "type": {
1833
- "text": "void"
1834
- }
1835
- },
1836
- "parameters": [
1837
- {
1838
- "name": "sharedWorkspace",
1839
- "type": {
1840
- "text": "SharedWorkspace"
1841
- }
1864
+ "text": "string"
1842
1865
  }
1843
- ]
1866
+ }
1844
1867
  },
1845
1868
  {
1846
1869
  "kind": "method",
1847
- "name": "shareExistingWorkspace",
1870
+ "name": "getWorkspaceStorageKey",
1871
+ "privacy": "private",
1848
1872
  "return": {
1849
1873
  "type": {
1850
- "text": "Promise<void>"
1874
+ "text": "string"
1851
1875
  }
1852
1876
  },
1853
1877
  "parameters": [
@@ -1861,19 +1885,20 @@
1861
1885
  },
1862
1886
  {
1863
1887
  "kind": "method",
1864
- "name": "openSaveDialog",
1888
+ "name": "getWorkspacesListKey",
1889
+ "privacy": "private",
1865
1890
  "return": {
1866
1891
  "type": {
1867
- "text": "Promise<void>"
1892
+ "text": "string"
1868
1893
  }
1869
1894
  }
1870
1895
  },
1871
1896
  {
1872
1897
  "kind": "method",
1873
- "name": "isWorkspaceExisting",
1898
+ "name": "saveWorkspace",
1874
1899
  "return": {
1875
1900
  "type": {
1876
- "text": "boolean"
1901
+ "text": "Promise<void>"
1877
1902
  }
1878
1903
  },
1879
1904
  "parameters": [
@@ -1882,26 +1907,45 @@
1882
1907
  "type": {
1883
1908
  "text": "string"
1884
1909
  }
1910
+ },
1911
+ {
1912
+ "name": "layouts",
1913
+ "type": {
1914
+ "text": "SavedLayout[]"
1915
+ }
1916
+ },
1917
+ {
1918
+ "name": "grids",
1919
+ "type": {
1920
+ "text": "SavedGridSettings[]"
1921
+ }
1922
+ },
1923
+ {
1924
+ "name": "filters",
1925
+ "type": {
1926
+ "text": "SavedFilterValue[]"
1927
+ }
1928
+ },
1929
+ {
1930
+ "name": "description",
1931
+ "optional": true,
1932
+ "type": {
1933
+ "text": "string"
1934
+ }
1885
1935
  }
1886
1936
  ]
1887
1937
  },
1888
1938
  {
1889
1939
  "kind": "method",
1890
- "name": "saveModeChanged",
1940
+ "name": "loadWorkspace",
1891
1941
  "return": {
1892
1942
  "type": {
1893
- "text": "void"
1943
+ "text": "Promise<SavedWorkspace | null>"
1894
1944
  }
1895
1945
  },
1896
1946
  "parameters": [
1897
1947
  {
1898
- "name": "oldValue",
1899
- "type": {
1900
- "text": "string"
1901
- }
1902
- },
1903
- {
1904
- "name": "newValue",
1948
+ "name": "workspaceName",
1905
1949
  "type": {
1906
1950
  "text": "string"
1907
1951
  }
@@ -1910,21 +1954,16 @@
1910
1954
  },
1911
1955
  {
1912
1956
  "kind": "method",
1913
- "name": "selectedWorkspaceToOverwriteChanged",
1957
+ "name": "getWorkspace",
1958
+ "privacy": "private",
1914
1959
  "return": {
1915
1960
  "type": {
1916
- "text": "void"
1961
+ "text": "Promise<SavedWorkspace | null>"
1917
1962
  }
1918
1963
  },
1919
1964
  "parameters": [
1920
1965
  {
1921
- "name": "oldValue",
1922
- "type": {
1923
- "text": "string"
1924
- }
1925
- },
1926
- {
1927
- "name": "newValue",
1966
+ "name": "workspaceName",
1928
1967
  "type": {
1929
1968
  "text": "string"
1930
1969
  }
@@ -1933,194 +1972,140 @@
1933
1972
  },
1934
1973
  {
1935
1974
  "kind": "method",
1936
- "name": "openLoadDialog",
1975
+ "name": "getCurrentWorkspace",
1937
1976
  "return": {
1938
1977
  "type": {
1939
- "text": "void"
1978
+ "text": "SavedWorkspace | null"
1940
1979
  }
1941
1980
  }
1942
1981
  },
1943
1982
  {
1944
1983
  "kind": "method",
1945
- "name": "closeSaveDialog",
1984
+ "name": "setCurrentWorkspace",
1946
1985
  "return": {
1947
1986
  "type": {
1948
1987
  "text": "void"
1949
1988
  }
1950
- }
1989
+ },
1990
+ "parameters": [
1991
+ {
1992
+ "name": "workspace",
1993
+ "type": {
1994
+ "text": "SavedWorkspace | null"
1995
+ }
1996
+ }
1997
+ ]
1951
1998
  },
1952
1999
  {
1953
2000
  "kind": "method",
1954
- "name": "closeLoadDialog",
2001
+ "name": "getSavedWorkspaces",
1955
2002
  "return": {
1956
2003
  "type": {
1957
- "text": "void"
2004
+ "text": "Promise<SavedWorkspace[]>"
1958
2005
  }
1959
2006
  }
1960
2007
  },
1961
- {
1962
- "kind": "field",
1963
- "name": "_presentation",
1964
- "type": {
1965
- "text": "ComponentPresentation | null | undefined"
1966
- },
1967
- "privacy": "private",
1968
- "default": "void 0",
1969
- "inheritedFrom": {
1970
- "name": "FoundationElement",
1971
- "module": "src/foundation-element/foundation-element.ts"
1972
- }
1973
- },
1974
- {
1975
- "kind": "field",
1976
- "name": "$presentation",
1977
- "type": {
1978
- "text": "ComponentPresentation | null"
1979
- },
1980
- "privacy": "public",
1981
- "description": "A property which resolves the ComponentPresentation instance\nfor the current component.",
1982
- "inheritedFrom": {
1983
- "name": "FoundationElement",
1984
- "module": "src/foundation-element/foundation-element.ts"
1985
- }
1986
- },
1987
- {
1988
- "kind": "field",
1989
- "name": "template",
1990
- "type": {
1991
- "text": "ElementViewTemplate | void | null"
1992
- },
1993
- "privacy": "public",
1994
- "description": "Sets the template of the element instance. When undefined,\nthe element will attempt to resolve the template from\nthe associated presentation or custom element definition.",
1995
- "inheritedFrom": {
1996
- "name": "FoundationElement",
1997
- "module": "src/foundation-element/foundation-element.ts"
1998
- }
1999
- },
2000
2008
  {
2001
2009
  "kind": "method",
2002
- "name": "templateChanged",
2003
- "privacy": "protected",
2010
+ "name": "deleteWorkspace",
2004
2011
  "return": {
2005
2012
  "type": {
2006
- "text": "void"
2013
+ "text": "Promise<void>"
2007
2014
  }
2008
2015
  },
2009
- "inheritedFrom": {
2010
- "name": "FoundationElement",
2011
- "module": "src/foundation-element/foundation-element.ts"
2012
- }
2013
- },
2014
- {
2015
- "kind": "field",
2016
- "name": "styles",
2017
- "type": {
2018
- "text": "ElementStyles | void | null"
2019
- },
2020
- "privacy": "public",
2021
- "description": "Sets the default styles for the element instance. When undefined,\nthe element will attempt to resolve default styles from\nthe associated presentation or custom element definition.",
2022
- "inheritedFrom": {
2023
- "name": "FoundationElement",
2024
- "module": "src/foundation-element/foundation-element.ts"
2025
- }
2016
+ "parameters": [
2017
+ {
2018
+ "name": "workspaceName",
2019
+ "type": {
2020
+ "text": "string"
2021
+ }
2022
+ }
2023
+ ]
2026
2024
  },
2027
2025
  {
2028
2026
  "kind": "method",
2029
- "name": "stylesChanged",
2030
- "privacy": "protected",
2027
+ "name": "updateWorkspacesList",
2028
+ "privacy": "private",
2031
2029
  "return": {
2032
2030
  "type": {
2033
- "text": "void"
2031
+ "text": "Promise<void>"
2034
2032
  }
2035
2033
  },
2036
- "inheritedFrom": {
2037
- "name": "FoundationElement",
2038
- "module": "src/foundation-element/foundation-element.ts"
2039
- }
2034
+ "parameters": [
2035
+ {
2036
+ "name": "workspaceName",
2037
+ "type": {
2038
+ "text": "string"
2039
+ }
2040
+ }
2041
+ ]
2040
2042
  },
2041
2043
  {
2042
2044
  "kind": "method",
2043
- "name": "compose",
2044
- "privacy": "public",
2045
- "static": true,
2045
+ "name": "removeFromWorkspacesList",
2046
+ "privacy": "private",
2046
2047
  "return": {
2047
2048
  "type": {
2048
- "text": "(\n overrideDefinition?: OverrideFoundationElementDefinition<T>\n ) => FoundationElementRegistry<T, K>"
2049
+ "text": "Promise<void>"
2049
2050
  }
2050
2051
  },
2051
2052
  "parameters": [
2052
2053
  {
2053
- "name": "this",
2054
+ "name": "workspaceName",
2054
2055
  "type": {
2055
- "text": "K"
2056
+ "text": "string"
2056
2057
  }
2057
- },
2058
- {
2059
- "name": "elementDefinition",
2060
- "type": {
2061
- "text": "T"
2062
- },
2063
- "description": "The definition of the element to create the registry\nfunction for."
2064
2058
  }
2065
- ],
2066
- "description": "Defines an element registry function with a set of element definition defaults.",
2067
- "inheritedFrom": {
2068
- "name": "FoundationElement",
2069
- "module": "src/foundation-element/foundation-element.ts"
2070
- }
2059
+ ]
2071
2060
  }
2072
- ],
2073
- "superclass": {
2074
- "name": "FoundationElement",
2075
- "package": "@genesislcap/web-core"
2076
- },
2077
- "tagName": "workspace-manager",
2078
- "customElement": true
2061
+ ]
2062
+ },
2063
+ {
2064
+ "kind": "variable",
2065
+ "name": "WorkspaceState",
2066
+ "description": "DI token for workspace state."
2079
2067
  }
2080
2068
  ],
2081
2069
  "exports": [
2082
2070
  {
2083
2071
  "kind": "js",
2084
- "name": "WorkspaceManager",
2072
+ "name": "DefaultWorkspaceState",
2085
2073
  "declaration": {
2086
- "name": "WorkspaceManager",
2087
- "module": "src/workspace-manager/workspace-manager.ts"
2074
+ "name": "DefaultWorkspaceState",
2075
+ "module": "src/workspace/workspace-state.ts"
2088
2076
  }
2089
2077
  },
2090
2078
  {
2091
- "kind": "custom-element-definition",
2092
- "name": "workspace-manager",
2079
+ "kind": "js",
2080
+ "name": "WorkspaceState",
2093
2081
  "declaration": {
2094
- "name": "WorkspaceManager",
2095
- "module": "src/workspace-manager/workspace-manager.ts"
2082
+ "name": "WorkspaceState",
2083
+ "module": "src/workspace/workspace-state.ts"
2096
2084
  }
2097
2085
  }
2098
2086
  ]
2099
2087
  },
2100
2088
  {
2101
2089
  "kind": "javascript-module",
2102
- "path": "src/workspace/layout-wrapper/index.ts",
2090
+ "path": "src/workspace/workspace-state.types.ts",
2103
2091
  "declarations": [],
2104
- "exports": [
2105
- {
2106
- "kind": "js",
2107
- "name": "*",
2108
- "declaration": {
2109
- "name": "*",
2110
- "package": "./layout-wrapper"
2111
- }
2112
- }
2113
- ]
2092
+ "exports": []
2114
2093
  },
2115
2094
  {
2116
2095
  "kind": "javascript-module",
2117
- "path": "src/workspace/layout-wrapper/layout-wrapper.template.ts",
2096
+ "path": "src/workspace/workspace.types.ts",
2097
+ "declarations": [],
2098
+ "exports": []
2099
+ },
2100
+ {
2101
+ "kind": "javascript-module",
2102
+ "path": "src/workspace/grid-register/grid-register.template.ts",
2118
2103
  "declarations": [
2119
2104
  {
2120
2105
  "kind": "variable",
2121
- "name": "LayoutWrapperTemplate",
2106
+ "name": "GridRegisterTemplate",
2122
2107
  "type": {
2123
- "text": "ViewTemplate<LayoutWrapper>"
2108
+ "text": "ViewTemplate<GridRegister>"
2124
2109
  },
2125
2110
  "default": "html`\n <slot></slot>\n`"
2126
2111
  }
@@ -2128,26 +2113,26 @@
2128
2113
  "exports": [
2129
2114
  {
2130
2115
  "kind": "js",
2131
- "name": "LayoutWrapperTemplate",
2116
+ "name": "GridRegisterTemplate",
2132
2117
  "declaration": {
2133
- "name": "LayoutWrapperTemplate",
2134
- "module": "src/workspace/layout-wrapper/layout-wrapper.template.ts"
2118
+ "name": "GridRegisterTemplate",
2119
+ "module": "src/workspace/grid-register/grid-register.template.ts"
2135
2120
  }
2136
2121
  }
2137
2122
  ]
2138
2123
  },
2139
2124
  {
2140
2125
  "kind": "javascript-module",
2141
- "path": "src/workspace/layout-wrapper/layout-wrapper.ts",
2126
+ "path": "src/workspace/grid-register/grid-register.ts",
2142
2127
  "declarations": [
2143
2128
  {
2144
2129
  "kind": "class",
2145
- "description": "Registers a layout instance so workspace state can apply/load it.",
2146
- "name": "LayoutWrapper",
2130
+ "description": "Registers an AG Grid instance so workspace state can apply/load it. Registering applies the\ngrid's stored column state (from the loaded workspace, or its last state this session) — see\n`DefaultGridRegistry`.",
2131
+ "name": "GridRegister",
2147
2132
  "members": [
2148
2133
  {
2149
2134
  "kind": "field",
2150
- "name": "layoutKey",
2135
+ "name": "gridKey",
2151
2136
  "type": {
2152
2137
  "text": "string"
2153
2138
  }
@@ -2162,23 +2147,69 @@
2162
2147
  },
2163
2148
  {
2164
2149
  "kind": "field",
2165
- "name": "layoutRegistry",
2150
+ "name": "gridRegistry",
2166
2151
  "type": {
2167
- "text": "LayoutRegistry"
2152
+ "text": "GridRegistry"
2168
2153
  }
2169
2154
  },
2170
2155
  {
2171
2156
  "kind": "field",
2172
- "name": "layoutElement",
2157
+ "name": "gridElement",
2173
2158
  "type": {
2174
- "text": "FoundationLayout | null"
2159
+ "text": "GridPro | GridProLegacy | null"
2160
+ },
2161
+ "privacy": "private",
2162
+ "default": "null",
2163
+ "description": "`<prefix>-grid-pro` is the AG Grid v36 `GridPro` by default; `GridProLegacy` is the v29 grid."
2164
+ },
2165
+ {
2166
+ "kind": "field",
2167
+ "name": "gridApi",
2168
+ "type": {
2169
+ "text": "GridPro['gridApi'] | GridProLegacy['gridApi'] | null"
2175
2170
  },
2176
2171
  "privacy": "private",
2177
2172
  "default": "null"
2178
2173
  },
2174
+ {
2175
+ "kind": "field",
2176
+ "name": "columnApi",
2177
+ "type": {
2178
+ "text": "ColumnApi | null"
2179
+ },
2180
+ "privacy": "private",
2181
+ "default": "null",
2182
+ "description": "Only the v29 grid has a column API; on v36 the column state lives on `gridApi`."
2183
+ },
2179
2184
  {
2180
2185
  "kind": "method",
2181
- "name": "findAndRegisterLayout",
2186
+ "name": "findAndRegisterGrid",
2187
+ "privacy": "private",
2188
+ "return": {
2189
+ "type": {
2190
+ "text": "void"
2191
+ }
2192
+ }
2193
+ },
2194
+ {
2195
+ "kind": "field",
2196
+ "name": "handleGridReady",
2197
+ "privacy": "private",
2198
+ "readonly": true
2199
+ },
2200
+ {
2201
+ "kind": "method",
2202
+ "name": "attachToGridApis",
2203
+ "privacy": "private",
2204
+ "return": {
2205
+ "type": {
2206
+ "text": "void"
2207
+ }
2208
+ }
2209
+ },
2210
+ {
2211
+ "kind": "method",
2212
+ "name": "detachFromGridApis",
2182
2213
  "privacy": "private",
2183
2214
  "return": {
2184
2215
  "type": {
@@ -2300,11 +2331,11 @@
2300
2331
  ],
2301
2332
  "attributes": [
2302
2333
  {
2303
- "name": "layout-key",
2334
+ "name": "grid-key",
2304
2335
  "type": {
2305
2336
  "text": "string"
2306
2337
  },
2307
- "fieldName": "layoutKey"
2338
+ "fieldName": "gridKey"
2308
2339
  },
2309
2340
  {
2310
2341
  "name": "design-system-prefix",
@@ -2319,38 +2350,68 @@
2319
2350
  "name": "FoundationElement",
2320
2351
  "package": "@genesislcap/web-core"
2321
2352
  },
2322
- "tagName": "layout-register",
2353
+ "tagName": "grid-register",
2323
2354
  "customElement": true
2324
2355
  }
2325
2356
  ],
2326
2357
  "exports": [
2327
2358
  {
2328
2359
  "kind": "js",
2329
- "name": "LayoutWrapper",
2360
+ "name": "GridRegister",
2330
2361
  "declaration": {
2331
- "name": "LayoutWrapper",
2332
- "module": "src/workspace/layout-wrapper/layout-wrapper.ts"
2362
+ "name": "GridRegister",
2363
+ "module": "src/workspace/grid-register/grid-register.ts"
2333
2364
  }
2334
2365
  },
2335
2366
  {
2336
2367
  "kind": "custom-element-definition",
2337
- "name": "layout-register",
2368
+ "name": "grid-register",
2338
2369
  "declaration": {
2339
- "name": "LayoutWrapper",
2340
- "module": "src/workspace/layout-wrapper/layout-wrapper.ts"
2370
+ "name": "GridRegister",
2371
+ "module": "src/workspace/grid-register/grid-register.ts"
2341
2372
  }
2342
2373
  }
2343
2374
  ]
2344
2375
  },
2345
2376
  {
2346
2377
  "kind": "javascript-module",
2347
- "path": "src/workspace/grid-register/grid-register.template.ts",
2378
+ "path": "src/workspace/grid-register/index.ts",
2379
+ "declarations": [],
2380
+ "exports": [
2381
+ {
2382
+ "kind": "js",
2383
+ "name": "*",
2384
+ "declaration": {
2385
+ "name": "*",
2386
+ "package": "./grid-register"
2387
+ }
2388
+ }
2389
+ ]
2390
+ },
2391
+ {
2392
+ "kind": "javascript-module",
2393
+ "path": "src/workspace/layout-wrapper/index.ts",
2394
+ "declarations": [],
2395
+ "exports": [
2396
+ {
2397
+ "kind": "js",
2398
+ "name": "*",
2399
+ "declaration": {
2400
+ "name": "*",
2401
+ "package": "./layout-wrapper"
2402
+ }
2403
+ }
2404
+ ]
2405
+ },
2406
+ {
2407
+ "kind": "javascript-module",
2408
+ "path": "src/workspace/layout-wrapper/layout-wrapper.template.ts",
2348
2409
  "declarations": [
2349
2410
  {
2350
2411
  "kind": "variable",
2351
- "name": "GridRegisterTemplate",
2412
+ "name": "LayoutWrapperTemplate",
2352
2413
  "type": {
2353
- "text": "ViewTemplate<GridRegister>"
2414
+ "text": "ViewTemplate<LayoutWrapper>"
2354
2415
  },
2355
2416
  "default": "html`\n <slot></slot>\n`"
2356
2417
  }
@@ -2358,26 +2419,26 @@
2358
2419
  "exports": [
2359
2420
  {
2360
2421
  "kind": "js",
2361
- "name": "GridRegisterTemplate",
2422
+ "name": "LayoutWrapperTemplate",
2362
2423
  "declaration": {
2363
- "name": "GridRegisterTemplate",
2364
- "module": "src/workspace/grid-register/grid-register.template.ts"
2424
+ "name": "LayoutWrapperTemplate",
2425
+ "module": "src/workspace/layout-wrapper/layout-wrapper.template.ts"
2365
2426
  }
2366
2427
  }
2367
2428
  ]
2368
2429
  },
2369
2430
  {
2370
2431
  "kind": "javascript-module",
2371
- "path": "src/workspace/grid-register/grid-register.ts",
2432
+ "path": "src/workspace/layout-wrapper/layout-wrapper.ts",
2372
2433
  "declarations": [
2373
2434
  {
2374
2435
  "kind": "class",
2375
- "description": "Registers an AG Grid instance so workspace state can apply/load it. Registering applies the\ngrid's stored column state (from the loaded workspace, or its last state this session) — see\n`DefaultGridRegistry`.",
2376
- "name": "GridRegister",
2436
+ "description": "Registers a layout instance so workspace state can apply/load it.",
2437
+ "name": "LayoutWrapper",
2377
2438
  "members": [
2378
2439
  {
2379
2440
  "kind": "field",
2380
- "name": "gridKey",
2441
+ "name": "layoutKey",
2381
2442
  "type": {
2382
2443
  "text": "string"
2383
2444
  }
@@ -2392,69 +2453,23 @@
2392
2453
  },
2393
2454
  {
2394
2455
  "kind": "field",
2395
- "name": "gridRegistry",
2456
+ "name": "layoutRegistry",
2396
2457
  "type": {
2397
- "text": "GridRegistry"
2458
+ "text": "LayoutRegistry"
2398
2459
  }
2399
2460
  },
2400
2461
  {
2401
2462
  "kind": "field",
2402
- "name": "gridElement",
2403
- "type": {
2404
- "text": "GridPro | GridProLegacy | null"
2405
- },
2406
- "privacy": "private",
2407
- "default": "null",
2408
- "description": "`<prefix>-grid-pro` is the AG Grid v36 `GridPro` by default; `GridProLegacy` is the v29 grid."
2409
- },
2410
- {
2411
- "kind": "field",
2412
- "name": "gridApi",
2463
+ "name": "layoutElement",
2413
2464
  "type": {
2414
- "text": "GridPro['gridApi'] | GridProLegacy['gridApi'] | null"
2465
+ "text": "FoundationLayout | null"
2415
2466
  },
2416
2467
  "privacy": "private",
2417
2468
  "default": "null"
2418
2469
  },
2419
- {
2420
- "kind": "field",
2421
- "name": "columnApi",
2422
- "type": {
2423
- "text": "ColumnApi | null"
2424
- },
2425
- "privacy": "private",
2426
- "default": "null",
2427
- "description": "Only the v29 grid has a column API; on v36 the column state lives on `gridApi`."
2428
- },
2429
- {
2430
- "kind": "method",
2431
- "name": "findAndRegisterGrid",
2432
- "privacy": "private",
2433
- "return": {
2434
- "type": {
2435
- "text": "void"
2436
- }
2437
- }
2438
- },
2439
- {
2440
- "kind": "field",
2441
- "name": "handleGridReady",
2442
- "privacy": "private",
2443
- "readonly": true
2444
- },
2445
- {
2446
- "kind": "method",
2447
- "name": "attachToGridApis",
2448
- "privacy": "private",
2449
- "return": {
2450
- "type": {
2451
- "text": "void"
2452
- }
2453
- }
2454
- },
2455
2470
  {
2456
2471
  "kind": "method",
2457
- "name": "detachFromGridApis",
2472
+ "name": "findAndRegisterLayout",
2458
2473
  "privacy": "private",
2459
2474
  "return": {
2460
2475
  "type": {
@@ -2576,11 +2591,11 @@
2576
2591
  ],
2577
2592
  "attributes": [
2578
2593
  {
2579
- "name": "grid-key",
2594
+ "name": "layout-key",
2580
2595
  "type": {
2581
2596
  "text": "string"
2582
2597
  },
2583
- "fieldName": "gridKey"
2598
+ "fieldName": "layoutKey"
2584
2599
  },
2585
2600
  {
2586
2601
  "name": "design-system-prefix",
@@ -2595,40 +2610,25 @@
2595
2610
  "name": "FoundationElement",
2596
2611
  "package": "@genesislcap/web-core"
2597
2612
  },
2598
- "tagName": "grid-register",
2613
+ "tagName": "layout-register",
2599
2614
  "customElement": true
2600
2615
  }
2601
2616
  ],
2602
2617
  "exports": [
2603
2618
  {
2604
2619
  "kind": "js",
2605
- "name": "GridRegister",
2620
+ "name": "LayoutWrapper",
2606
2621
  "declaration": {
2607
- "name": "GridRegister",
2608
- "module": "src/workspace/grid-register/grid-register.ts"
2622
+ "name": "LayoutWrapper",
2623
+ "module": "src/workspace/layout-wrapper/layout-wrapper.ts"
2609
2624
  }
2610
2625
  },
2611
2626
  {
2612
2627
  "kind": "custom-element-definition",
2613
- "name": "grid-register",
2614
- "declaration": {
2615
- "name": "GridRegister",
2616
- "module": "src/workspace/grid-register/grid-register.ts"
2617
- }
2618
- }
2619
- ]
2620
- },
2621
- {
2622
- "kind": "javascript-module",
2623
- "path": "src/workspace/grid-register/index.ts",
2624
- "declarations": [],
2625
- "exports": [
2626
- {
2627
- "kind": "js",
2628
- "name": "*",
2628
+ "name": "layout-register",
2629
2629
  "declaration": {
2630
- "name": "*",
2631
- "package": "./grid-register"
2630
+ "name": "LayoutWrapper",
2631
+ "module": "src/workspace/layout-wrapper/layout-wrapper.ts"
2632
2632
  }
2633
2633
  }
2634
2634
  ]