@genesislcap/foundation-workspace 15.19.4 → 15.19.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/custom-elements.json +1002 -1002
- package/package.json +15 -15
|
@@ -60,434 +60,322 @@
|
|
|
60
60
|
},
|
|
61
61
|
{
|
|
62
62
|
"kind": "javascript-module",
|
|
63
|
-
"path": "src/workspace/
|
|
64
|
-
"declarations": [
|
|
65
|
-
{
|
|
66
|
-
"kind": "class",
|
|
67
|
-
"description": "",
|
|
68
|
-
"name": "DefaultFilterRegistry",
|
|
69
|
-
"members": [
|
|
70
|
-
{
|
|
71
|
-
"kind": "field",
|
|
72
|
-
"name": "filters",
|
|
73
|
-
"type": {
|
|
74
|
-
"text": "Map<string, FilterRegistration>"
|
|
75
|
-
},
|
|
76
|
-
"privacy": "private",
|
|
77
|
-
"default": "new Map()"
|
|
78
|
-
},
|
|
79
|
-
{
|
|
80
|
-
"kind": "method",
|
|
81
|
-
"name": "registerFilter",
|
|
82
|
-
"return": {
|
|
83
|
-
"type": {
|
|
84
|
-
"text": "void"
|
|
85
|
-
}
|
|
86
|
-
},
|
|
87
|
-
"parameters": [
|
|
88
|
-
{
|
|
89
|
-
"name": "filterKey",
|
|
90
|
-
"type": {
|
|
91
|
-
"text": "string"
|
|
92
|
-
}
|
|
93
|
-
},
|
|
94
|
-
{
|
|
95
|
-
"name": "getFilterValue",
|
|
96
|
-
"type": {
|
|
97
|
-
"text": "() => SavedFilterValue | null"
|
|
98
|
-
}
|
|
99
|
-
},
|
|
100
|
-
{
|
|
101
|
-
"name": "setFilterValue",
|
|
102
|
-
"type": {
|
|
103
|
-
"text": "(value: string) => void"
|
|
104
|
-
}
|
|
105
|
-
}
|
|
106
|
-
]
|
|
107
|
-
},
|
|
108
|
-
{
|
|
109
|
-
"kind": "method",
|
|
110
|
-
"name": "unregisterFilter",
|
|
111
|
-
"return": {
|
|
112
|
-
"type": {
|
|
113
|
-
"text": "void"
|
|
114
|
-
}
|
|
115
|
-
},
|
|
116
|
-
"parameters": [
|
|
117
|
-
{
|
|
118
|
-
"name": "filterKey",
|
|
119
|
-
"type": {
|
|
120
|
-
"text": "string"
|
|
121
|
-
}
|
|
122
|
-
}
|
|
123
|
-
]
|
|
124
|
-
},
|
|
125
|
-
{
|
|
126
|
-
"kind": "method",
|
|
127
|
-
"name": "getAllFiltersValues",
|
|
128
|
-
"return": {
|
|
129
|
-
"type": {
|
|
130
|
-
"text": "SavedFilterValue[]"
|
|
131
|
-
}
|
|
132
|
-
}
|
|
133
|
-
},
|
|
134
|
-
{
|
|
135
|
-
"kind": "method",
|
|
136
|
-
"name": "applyFiltersValues",
|
|
137
|
-
"return": {
|
|
138
|
-
"type": {
|
|
139
|
-
"text": "void"
|
|
140
|
-
}
|
|
141
|
-
},
|
|
142
|
-
"parameters": [
|
|
143
|
-
{
|
|
144
|
-
"name": "filtersValues",
|
|
145
|
-
"type": {
|
|
146
|
-
"text": "SavedFilterValue[]"
|
|
147
|
-
}
|
|
148
|
-
}
|
|
149
|
-
]
|
|
150
|
-
}
|
|
151
|
-
]
|
|
152
|
-
},
|
|
153
|
-
{
|
|
154
|
-
"kind": "variable",
|
|
155
|
-
"name": "FilterRegistry",
|
|
156
|
-
"description": "DI token for filter registry."
|
|
157
|
-
}
|
|
158
|
-
],
|
|
63
|
+
"path": "src/workspace-manager/index.ts",
|
|
64
|
+
"declarations": [],
|
|
159
65
|
"exports": [
|
|
160
66
|
{
|
|
161
67
|
"kind": "js",
|
|
162
|
-
"name": "
|
|
163
|
-
"declaration": {
|
|
164
|
-
"name": "DefaultFilterRegistry",
|
|
165
|
-
"module": "src/workspace/filter-registry.ts"
|
|
166
|
-
}
|
|
167
|
-
},
|
|
168
|
-
{
|
|
169
|
-
"kind": "js",
|
|
170
|
-
"name": "FilterRegistry",
|
|
68
|
+
"name": "*",
|
|
171
69
|
"declaration": {
|
|
172
|
-
"name": "
|
|
173
|
-
"
|
|
70
|
+
"name": "*",
|
|
71
|
+
"package": "./workspace-manager"
|
|
174
72
|
}
|
|
175
73
|
}
|
|
176
74
|
]
|
|
177
75
|
},
|
|
178
76
|
{
|
|
179
77
|
"kind": "javascript-module",
|
|
180
|
-
"path": "src/workspace/
|
|
78
|
+
"path": "src/workspace-manager/workspace-manager.styles.ts",
|
|
181
79
|
"declarations": [
|
|
182
|
-
{
|
|
183
|
-
"kind": "class",
|
|
184
|
-
"description": "",
|
|
185
|
-
"name": "DefaultGridRegistry",
|
|
186
|
-
"members": [
|
|
187
|
-
{
|
|
188
|
-
"kind": "field",
|
|
189
|
-
"name": "grids",
|
|
190
|
-
"type": {
|
|
191
|
-
"text": "Map<string, GridRegistration>"
|
|
192
|
-
},
|
|
193
|
-
"privacy": "private",
|
|
194
|
-
"default": "new Map()"
|
|
195
|
-
},
|
|
196
|
-
{
|
|
197
|
-
"kind": "field",
|
|
198
|
-
"name": "cachedSettings",
|
|
199
|
-
"type": {
|
|
200
|
-
"text": "Map<string, SavedGridSettings>"
|
|
201
|
-
},
|
|
202
|
-
"privacy": "private",
|
|
203
|
-
"default": "new Map()"
|
|
204
|
-
},
|
|
205
|
-
{
|
|
206
|
-
"kind": "method",
|
|
207
|
-
"name": "registerGrid",
|
|
208
|
-
"return": {
|
|
209
|
-
"type": {
|
|
210
|
-
"text": "void"
|
|
211
|
-
}
|
|
212
|
-
},
|
|
213
|
-
"parameters": [
|
|
214
|
-
{
|
|
215
|
-
"name": "gridKey",
|
|
216
|
-
"type": {
|
|
217
|
-
"text": "string"
|
|
218
|
-
}
|
|
219
|
-
},
|
|
220
|
-
{
|
|
221
|
-
"name": "gridApi",
|
|
222
|
-
"type": {
|
|
223
|
-
"text": "unknown"
|
|
224
|
-
}
|
|
225
|
-
},
|
|
226
|
-
{
|
|
227
|
-
"name": "columnApi",
|
|
228
|
-
"type": {
|
|
229
|
-
"text": "unknown"
|
|
230
|
-
}
|
|
231
|
-
}
|
|
232
|
-
]
|
|
233
|
-
},
|
|
234
|
-
{
|
|
235
|
-
"kind": "method",
|
|
236
|
-
"name": "getGrid",
|
|
237
|
-
"return": {
|
|
238
|
-
"type": {
|
|
239
|
-
"text": "GridRegistration | null"
|
|
240
|
-
}
|
|
241
|
-
},
|
|
242
|
-
"parameters": [
|
|
243
|
-
{
|
|
244
|
-
"name": "gridKey",
|
|
245
|
-
"type": {
|
|
246
|
-
"text": "string"
|
|
247
|
-
}
|
|
248
|
-
}
|
|
249
|
-
]
|
|
250
|
-
},
|
|
251
|
-
{
|
|
252
|
-
"kind": "method",
|
|
253
|
-
"name": "unregisterGrid",
|
|
254
|
-
"return": {
|
|
255
|
-
"type": {
|
|
256
|
-
"text": "void"
|
|
257
|
-
}
|
|
258
|
-
},
|
|
259
|
-
"parameters": [
|
|
260
|
-
{
|
|
261
|
-
"name": "gridKey",
|
|
262
|
-
"type": {
|
|
263
|
-
"text": "string"
|
|
264
|
-
}
|
|
265
|
-
}
|
|
266
|
-
]
|
|
267
|
-
},
|
|
268
|
-
{
|
|
269
|
-
"kind": "method",
|
|
270
|
-
"name": "getAllGridsSettings",
|
|
271
|
-
"return": {
|
|
272
|
-
"type": {
|
|
273
|
-
"text": "SavedGridSettings[]"
|
|
274
|
-
}
|
|
275
|
-
}
|
|
276
|
-
},
|
|
277
|
-
{
|
|
278
|
-
"kind": "method",
|
|
279
|
-
"name": "applyGridSettings",
|
|
280
|
-
"return": {
|
|
281
|
-
"type": {
|
|
282
|
-
"text": "Promise<boolean>"
|
|
283
|
-
}
|
|
284
|
-
},
|
|
285
|
-
"parameters": [
|
|
286
|
-
{
|
|
287
|
-
"name": "gridSetting",
|
|
288
|
-
"type": {
|
|
289
|
-
"text": "SavedGridSettings"
|
|
290
|
-
}
|
|
291
|
-
},
|
|
292
|
-
{
|
|
293
|
-
"name": "options",
|
|
294
|
-
"optional": true,
|
|
295
|
-
"type": {
|
|
296
|
-
"text": "{ applyColumns?: boolean; applyFilters?: boolean }"
|
|
297
|
-
}
|
|
298
|
-
}
|
|
299
|
-
]
|
|
300
|
-
},
|
|
301
|
-
{
|
|
302
|
-
"kind": "method",
|
|
303
|
-
"name": "applyAllGridsSettings",
|
|
304
|
-
"return": {
|
|
305
|
-
"type": {
|
|
306
|
-
"text": "Promise<void>"
|
|
307
|
-
}
|
|
308
|
-
},
|
|
309
|
-
"parameters": [
|
|
310
|
-
{
|
|
311
|
-
"name": "gridsSettings",
|
|
312
|
-
"type": {
|
|
313
|
-
"text": "SavedGridSettings[]"
|
|
314
|
-
}
|
|
315
|
-
},
|
|
316
|
-
{
|
|
317
|
-
"name": "maxRetries",
|
|
318
|
-
"default": "3",
|
|
319
|
-
"type": {
|
|
320
|
-
"text": "number"
|
|
321
|
-
}
|
|
322
|
-
}
|
|
323
|
-
]
|
|
324
|
-
},
|
|
325
|
-
{
|
|
326
|
-
"kind": "method",
|
|
327
|
-
"name": "getGridSettings",
|
|
328
|
-
"privacy": "private",
|
|
329
|
-
"return": {
|
|
330
|
-
"type": {
|
|
331
|
-
"text": "SavedGridSettings | null"
|
|
332
|
-
}
|
|
333
|
-
},
|
|
334
|
-
"parameters": [
|
|
335
|
-
{
|
|
336
|
-
"name": "gridKey",
|
|
337
|
-
"type": {
|
|
338
|
-
"text": "string"
|
|
339
|
-
}
|
|
340
|
-
},
|
|
341
|
-
{
|
|
342
|
-
"name": "grid",
|
|
343
|
-
"type": {
|
|
344
|
-
"text": "GridRegistration"
|
|
345
|
-
}
|
|
346
|
-
}
|
|
347
|
-
]
|
|
348
|
-
}
|
|
349
|
-
]
|
|
350
|
-
},
|
|
351
80
|
{
|
|
352
81
|
"kind": "variable",
|
|
353
|
-
"name": "
|
|
354
|
-
"
|
|
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`"
|
|
355
84
|
}
|
|
356
85
|
],
|
|
357
86
|
"exports": [
|
|
358
87
|
{
|
|
359
88
|
"kind": "js",
|
|
360
|
-
"name": "
|
|
361
|
-
"declaration": {
|
|
362
|
-
"name": "DefaultGridRegistry",
|
|
363
|
-
"module": "src/workspace/grid-registry.ts"
|
|
364
|
-
}
|
|
365
|
-
},
|
|
366
|
-
{
|
|
367
|
-
"kind": "js",
|
|
368
|
-
"name": "GridRegistry",
|
|
89
|
+
"name": "WorkspaceManagerStyles",
|
|
369
90
|
"declaration": {
|
|
370
|
-
"name": "
|
|
371
|
-
"module": "src/workspace/
|
|
91
|
+
"name": "WorkspaceManagerStyles",
|
|
92
|
+
"module": "src/workspace-manager/workspace-manager.styles.ts"
|
|
372
93
|
}
|
|
373
94
|
}
|
|
374
95
|
]
|
|
375
96
|
},
|
|
376
97
|
{
|
|
377
98
|
"kind": "javascript-module",
|
|
378
|
-
"path": "src/workspace/
|
|
379
|
-
"declarations": [
|
|
380
|
-
"exports": [
|
|
99
|
+
"path": "src/workspace-manager/workspace-manager.template.ts",
|
|
100
|
+
"declarations": [
|
|
381
101
|
{
|
|
382
|
-
"kind": "
|
|
383
|
-
"name": "
|
|
384
|
-
"
|
|
385
|
-
"
|
|
386
|
-
|
|
387
|
-
|
|
102
|
+
"kind": "variable",
|
|
103
|
+
"name": "WORKSPACE_DESCRIPTION_MAX",
|
|
104
|
+
"type": {
|
|
105
|
+
"text": "number"
|
|
106
|
+
},
|
|
107
|
+
"default": "200"
|
|
388
108
|
},
|
|
389
109
|
{
|
|
390
|
-
"kind": "
|
|
391
|
-
"name": "
|
|
392
|
-
"
|
|
393
|
-
"
|
|
394
|
-
|
|
395
|
-
}
|
|
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`"
|
|
396
116
|
},
|
|
397
117
|
{
|
|
398
|
-
"kind": "
|
|
399
|
-
"name": "
|
|
400
|
-
"
|
|
401
|
-
"
|
|
402
|
-
|
|
403
|
-
}
|
|
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`"
|
|
404
132
|
},
|
|
133
|
+
{
|
|
134
|
+
"kind": "variable",
|
|
135
|
+
"name": "WorkspaceManagerTemplate",
|
|
136
|
+
"default": "html<WorkspaceManager>`\n ${workspaceHeaderPartial} ${workspaceSaveModalPartial} ${workspaceLoadModalPartial}\n`"
|
|
137
|
+
}
|
|
138
|
+
],
|
|
139
|
+
"exports": [
|
|
405
140
|
{
|
|
406
141
|
"kind": "js",
|
|
407
|
-
"name": "
|
|
142
|
+
"name": "WORKSPACE_DESCRIPTION_MAX",
|
|
408
143
|
"declaration": {
|
|
409
|
-
"name": "
|
|
410
|
-
"
|
|
144
|
+
"name": "WORKSPACE_DESCRIPTION_MAX",
|
|
145
|
+
"module": "src/workspace-manager/workspace-manager.template.ts"
|
|
411
146
|
}
|
|
412
147
|
},
|
|
413
148
|
{
|
|
414
149
|
"kind": "js",
|
|
415
|
-
"name": "
|
|
150
|
+
"name": "workspaceHeaderPartial",
|
|
416
151
|
"declaration": {
|
|
417
|
-
"name": "
|
|
418
|
-
"
|
|
152
|
+
"name": "workspaceHeaderPartial",
|
|
153
|
+
"module": "src/workspace-manager/workspace-manager.template.ts"
|
|
419
154
|
}
|
|
420
155
|
},
|
|
421
156
|
{
|
|
422
157
|
"kind": "js",
|
|
423
|
-
"name": "
|
|
158
|
+
"name": "workspaceSaveModalPartial",
|
|
424
159
|
"declaration": {
|
|
425
|
-
"name": "
|
|
426
|
-
"
|
|
160
|
+
"name": "workspaceSaveModalPartial",
|
|
161
|
+
"module": "src/workspace-manager/workspace-manager.template.ts"
|
|
427
162
|
}
|
|
428
163
|
},
|
|
429
164
|
{
|
|
430
165
|
"kind": "js",
|
|
431
|
-
"name": "
|
|
166
|
+
"name": "workspaceLoadModalPartial",
|
|
432
167
|
"declaration": {
|
|
433
|
-
"name": "
|
|
434
|
-
"
|
|
168
|
+
"name": "workspaceLoadModalPartial",
|
|
169
|
+
"module": "src/workspace-manager/workspace-manager.template.ts"
|
|
435
170
|
}
|
|
436
171
|
},
|
|
437
172
|
{
|
|
438
173
|
"kind": "js",
|
|
439
|
-
"name": "
|
|
174
|
+
"name": "WorkspaceManagerTemplate",
|
|
440
175
|
"declaration": {
|
|
441
|
-
"name": "
|
|
442
|
-
"
|
|
176
|
+
"name": "WorkspaceManagerTemplate",
|
|
177
|
+
"module": "src/workspace-manager/workspace-manager.template.ts"
|
|
443
178
|
}
|
|
444
179
|
}
|
|
445
180
|
]
|
|
446
181
|
},
|
|
447
182
|
{
|
|
448
183
|
"kind": "javascript-module",
|
|
449
|
-
"path": "src/workspace/
|
|
184
|
+
"path": "src/workspace-manager/workspace-manager.ts",
|
|
450
185
|
"declarations": [
|
|
451
186
|
{
|
|
452
187
|
"kind": "class",
|
|
453
|
-
"description": "
|
|
454
|
-
"name": "
|
|
188
|
+
"description": "Workspace persistence UI (save/load + share/delete shared workspaces).",
|
|
189
|
+
"name": "WorkspaceManager",
|
|
455
190
|
"members": [
|
|
456
191
|
{
|
|
457
192
|
"kind": "field",
|
|
458
|
-
"name": "
|
|
193
|
+
"name": "workspaceName",
|
|
194
|
+
"type": {
|
|
195
|
+
"text": "string"
|
|
196
|
+
},
|
|
197
|
+
"default": "''"
|
|
198
|
+
},
|
|
199
|
+
{
|
|
200
|
+
"kind": "field",
|
|
201
|
+
"name": "workspaceDescription",
|
|
202
|
+
"type": {
|
|
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",
|
|
459
272
|
"type": {
|
|
460
|
-
"text": "
|
|
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"
|
|
461
353
|
},
|
|
462
354
|
"privacy": "private",
|
|
463
|
-
"
|
|
355
|
+
"readonly": true,
|
|
356
|
+
"default": "false"
|
|
464
357
|
},
|
|
465
358
|
{
|
|
466
359
|
"kind": "method",
|
|
467
|
-
"name": "
|
|
360
|
+
"name": "sanitizeDescription",
|
|
361
|
+
"privacy": "private",
|
|
468
362
|
"return": {
|
|
469
363
|
"type": {
|
|
470
|
-
"text": "
|
|
364
|
+
"text": "string"
|
|
471
365
|
}
|
|
472
366
|
},
|
|
473
367
|
"parameters": [
|
|
474
368
|
{
|
|
475
|
-
"name": "
|
|
369
|
+
"name": "input",
|
|
476
370
|
"type": {
|
|
477
371
|
"text": "string"
|
|
478
372
|
}
|
|
479
|
-
},
|
|
480
|
-
{
|
|
481
|
-
"name": "layout",
|
|
482
|
-
"type": {
|
|
483
|
-
"text": "FoundationLayout"
|
|
484
|
-
}
|
|
485
373
|
}
|
|
486
374
|
]
|
|
487
375
|
},
|
|
488
376
|
{
|
|
489
377
|
"kind": "method",
|
|
490
|
-
"name": "
|
|
378
|
+
"name": "updateWorkspaceDescription",
|
|
491
379
|
"return": {
|
|
492
380
|
"type": {
|
|
493
381
|
"text": "void"
|
|
@@ -495,7 +383,7 @@
|
|
|
495
383
|
},
|
|
496
384
|
"parameters": [
|
|
497
385
|
{
|
|
498
|
-
"name": "
|
|
386
|
+
"name": "raw",
|
|
499
387
|
"type": {
|
|
500
388
|
"text": "string"
|
|
501
389
|
}
|
|
@@ -504,133 +392,48 @@
|
|
|
504
392
|
},
|
|
505
393
|
{
|
|
506
394
|
"kind": "method",
|
|
507
|
-
"name": "
|
|
395
|
+
"name": "setDescriptionFromSelectedWorkspace",
|
|
396
|
+
"privacy": "private",
|
|
508
397
|
"return": {
|
|
509
398
|
"type": {
|
|
510
|
-
"text": "
|
|
399
|
+
"text": "void"
|
|
511
400
|
}
|
|
512
401
|
}
|
|
513
402
|
},
|
|
514
403
|
{
|
|
515
404
|
"kind": "method",
|
|
516
|
-
"name": "
|
|
405
|
+
"name": "refreshSavedWorkspaces",
|
|
517
406
|
"return": {
|
|
518
407
|
"type": {
|
|
519
408
|
"text": "Promise<void>"
|
|
520
409
|
}
|
|
521
|
-
}
|
|
522
|
-
"parameters": [
|
|
523
|
-
{
|
|
524
|
-
"name": "savedLayouts",
|
|
525
|
-
"type": {
|
|
526
|
-
"text": "SavedLayout[]"
|
|
527
|
-
}
|
|
528
|
-
}
|
|
529
|
-
]
|
|
530
|
-
}
|
|
531
|
-
]
|
|
532
|
-
},
|
|
533
|
-
{
|
|
534
|
-
"kind": "variable",
|
|
535
|
-
"name": "LayoutRegistry",
|
|
536
|
-
"description": "DI token for layout registry."
|
|
537
|
-
}
|
|
538
|
-
],
|
|
539
|
-
"exports": [
|
|
540
|
-
{
|
|
541
|
-
"kind": "js",
|
|
542
|
-
"name": "DefaultLayoutRegistry",
|
|
543
|
-
"declaration": {
|
|
544
|
-
"name": "DefaultLayoutRegistry",
|
|
545
|
-
"module": "src/workspace/layout-registry.ts"
|
|
546
|
-
}
|
|
547
|
-
},
|
|
548
|
-
{
|
|
549
|
-
"kind": "js",
|
|
550
|
-
"name": "LayoutRegistry",
|
|
551
|
-
"declaration": {
|
|
552
|
-
"name": "LayoutRegistry",
|
|
553
|
-
"module": "src/workspace/layout-registry.ts"
|
|
554
|
-
}
|
|
555
|
-
}
|
|
556
|
-
]
|
|
557
|
-
},
|
|
558
|
-
{
|
|
559
|
-
"kind": "javascript-module",
|
|
560
|
-
"path": "src/workspace/workspace-state.ts",
|
|
561
|
-
"declarations": [
|
|
562
|
-
{
|
|
563
|
-
"kind": "class",
|
|
564
|
-
"description": "Default workspace persistence implementation backed by KVStorage.",
|
|
565
|
-
"name": "DefaultWorkspaceState",
|
|
566
|
-
"members": [
|
|
567
|
-
{
|
|
568
|
-
"kind": "field",
|
|
569
|
-
"name": "STORAGE_PREFIX",
|
|
570
|
-
"type": {
|
|
571
|
-
"text": "string"
|
|
572
|
-
},
|
|
573
|
-
"privacy": "private",
|
|
574
|
-
"readonly": true,
|
|
575
|
-
"default": "'workspace_'"
|
|
576
|
-
},
|
|
577
|
-
{
|
|
578
|
-
"kind": "field",
|
|
579
|
-
"name": "WORKSPACES_LIST_KEY",
|
|
580
|
-
"type": {
|
|
581
|
-
"text": "string"
|
|
582
|
-
},
|
|
583
|
-
"privacy": "private",
|
|
584
|
-
"readonly": true,
|
|
585
|
-
"default": "'workspaces_list'"
|
|
586
|
-
},
|
|
587
|
-
{
|
|
588
|
-
"kind": "field",
|
|
589
|
-
"name": "currentWorkspace",
|
|
590
|
-
"type": {
|
|
591
|
-
"text": "SavedWorkspace | null"
|
|
592
|
-
},
|
|
593
|
-
"privacy": "private",
|
|
594
|
-
"default": "null"
|
|
410
|
+
}
|
|
595
411
|
},
|
|
596
412
|
{
|
|
597
413
|
"kind": "method",
|
|
598
|
-
"name": "
|
|
599
|
-
"privacy": "private",
|
|
414
|
+
"name": "refreshSharedWorkspaces",
|
|
600
415
|
"return": {
|
|
601
416
|
"type": {
|
|
602
|
-
"text": "
|
|
417
|
+
"text": "Promise<void>"
|
|
603
418
|
}
|
|
604
419
|
}
|
|
605
420
|
},
|
|
606
421
|
{
|
|
607
422
|
"kind": "method",
|
|
608
|
-
"name": "
|
|
423
|
+
"name": "notifyError",
|
|
609
424
|
"privacy": "private",
|
|
610
425
|
"return": {
|
|
611
426
|
"type": {
|
|
612
|
-
"text": "
|
|
427
|
+
"text": "void"
|
|
613
428
|
}
|
|
614
429
|
},
|
|
615
430
|
"parameters": [
|
|
616
431
|
{
|
|
617
|
-
"name": "
|
|
618
|
-
"
|
|
619
|
-
"text": "string"
|
|
620
|
-
}
|
|
432
|
+
"name": "body",
|
|
433
|
+
"default": "'Error'"
|
|
621
434
|
}
|
|
622
435
|
]
|
|
623
436
|
},
|
|
624
|
-
{
|
|
625
|
-
"kind": "method",
|
|
626
|
-
"name": "getWorkspacesListKey",
|
|
627
|
-
"privacy": "private",
|
|
628
|
-
"return": {
|
|
629
|
-
"type": {
|
|
630
|
-
"text": "string"
|
|
631
|
-
}
|
|
632
|
-
}
|
|
633
|
-
},
|
|
634
437
|
{
|
|
635
438
|
"kind": "method",
|
|
636
439
|
"name": "saveWorkspace",
|
|
@@ -638,65 +441,32 @@
|
|
|
638
441
|
"type": {
|
|
639
442
|
"text": "Promise<void>"
|
|
640
443
|
}
|
|
641
|
-
}
|
|
642
|
-
"parameters": [
|
|
643
|
-
{
|
|
644
|
-
"name": "workspaceName",
|
|
645
|
-
"type": {
|
|
646
|
-
"text": "string"
|
|
647
|
-
}
|
|
648
|
-
},
|
|
649
|
-
{
|
|
650
|
-
"name": "layouts",
|
|
651
|
-
"type": {
|
|
652
|
-
"text": "SavedLayout[]"
|
|
653
|
-
}
|
|
654
|
-
},
|
|
655
|
-
{
|
|
656
|
-
"name": "grids",
|
|
657
|
-
"type": {
|
|
658
|
-
"text": "SavedGridSettings[]"
|
|
659
|
-
}
|
|
660
|
-
},
|
|
661
|
-
{
|
|
662
|
-
"name": "filters",
|
|
663
|
-
"type": {
|
|
664
|
-
"text": "SavedFilterValue[]"
|
|
665
|
-
}
|
|
666
|
-
},
|
|
667
|
-
{
|
|
668
|
-
"name": "description",
|
|
669
|
-
"optional": true,
|
|
670
|
-
"type": {
|
|
671
|
-
"text": "string"
|
|
672
|
-
}
|
|
673
|
-
}
|
|
674
|
-
]
|
|
444
|
+
}
|
|
675
445
|
},
|
|
676
446
|
{
|
|
677
447
|
"kind": "method",
|
|
678
|
-
"name": "
|
|
448
|
+
"name": "applyWorkspace",
|
|
449
|
+
"privacy": "private",
|
|
679
450
|
"return": {
|
|
680
451
|
"type": {
|
|
681
|
-
"text": "Promise<
|
|
452
|
+
"text": "Promise<void>"
|
|
682
453
|
}
|
|
683
454
|
},
|
|
684
455
|
"parameters": [
|
|
685
456
|
{
|
|
686
|
-
"name": "
|
|
457
|
+
"name": "workspace",
|
|
687
458
|
"type": {
|
|
688
|
-
"text": "
|
|
459
|
+
"text": "SavedWorkspace"
|
|
689
460
|
}
|
|
690
461
|
}
|
|
691
462
|
]
|
|
692
463
|
},
|
|
693
464
|
{
|
|
694
465
|
"kind": "method",
|
|
695
|
-
"name": "
|
|
696
|
-
"privacy": "private",
|
|
466
|
+
"name": "loadWorkspace",
|
|
697
467
|
"return": {
|
|
698
468
|
"type": {
|
|
699
|
-
"text": "Promise<
|
|
469
|
+
"text": "Promise<void>"
|
|
700
470
|
}
|
|
701
471
|
},
|
|
702
472
|
"parameters": [
|
|
@@ -710,42 +480,25 @@
|
|
|
710
480
|
},
|
|
711
481
|
{
|
|
712
482
|
"kind": "method",
|
|
713
|
-
"name": "
|
|
714
|
-
"
|
|
715
|
-
"type": {
|
|
716
|
-
"text": "SavedWorkspace | null"
|
|
717
|
-
}
|
|
718
|
-
}
|
|
719
|
-
},
|
|
720
|
-
{
|
|
721
|
-
"kind": "method",
|
|
722
|
-
"name": "setCurrentWorkspace",
|
|
483
|
+
"name": "requestSharedWorkspace",
|
|
484
|
+
"privacy": "private",
|
|
723
485
|
"return": {
|
|
724
486
|
"type": {
|
|
725
|
-
"text": "
|
|
487
|
+
"text": "Promise<any[]>"
|
|
726
488
|
}
|
|
727
489
|
},
|
|
728
490
|
"parameters": [
|
|
729
491
|
{
|
|
730
|
-
"name": "
|
|
492
|
+
"name": "SHARED_WORKSPACE_ID",
|
|
731
493
|
"type": {
|
|
732
|
-
"text": "
|
|
494
|
+
"text": "string"
|
|
733
495
|
}
|
|
734
496
|
}
|
|
735
497
|
]
|
|
736
498
|
},
|
|
737
499
|
{
|
|
738
500
|
"kind": "method",
|
|
739
|
-
"name": "
|
|
740
|
-
"return": {
|
|
741
|
-
"type": {
|
|
742
|
-
"text": "Promise<SavedWorkspace[]>"
|
|
743
|
-
}
|
|
744
|
-
}
|
|
745
|
-
},
|
|
746
|
-
{
|
|
747
|
-
"kind": "method",
|
|
748
|
-
"name": "deleteWorkspace",
|
|
501
|
+
"name": "loadSharedWorkspace",
|
|
749
502
|
"return": {
|
|
750
503
|
"type": {
|
|
751
504
|
"text": "Promise<void>"
|
|
@@ -753,17 +506,16 @@
|
|
|
753
506
|
},
|
|
754
507
|
"parameters": [
|
|
755
508
|
{
|
|
756
|
-
"name": "
|
|
509
|
+
"name": "shared",
|
|
757
510
|
"type": {
|
|
758
|
-
"text": "string"
|
|
511
|
+
"text": "{\n id: string;\n name: string;\n userName: string;\n createdOn?: string | number;\n modifiedOn?: string | number;\n data: string;\n }"
|
|
759
512
|
}
|
|
760
513
|
}
|
|
761
514
|
]
|
|
762
515
|
},
|
|
763
516
|
{
|
|
764
517
|
"kind": "method",
|
|
765
|
-
"name": "
|
|
766
|
-
"privacy": "private",
|
|
518
|
+
"name": "deleteWorkspace",
|
|
767
519
|
"return": {
|
|
768
520
|
"type": {
|
|
769
521
|
"text": "Promise<void>"
|
|
@@ -780,379 +532,413 @@
|
|
|
780
532
|
},
|
|
781
533
|
{
|
|
782
534
|
"kind": "method",
|
|
783
|
-
"name": "
|
|
535
|
+
"name": "showDeleteConfirmation",
|
|
784
536
|
"privacy": "private",
|
|
785
537
|
"return": {
|
|
786
538
|
"type": {
|
|
787
|
-
"text": "
|
|
539
|
+
"text": "void"
|
|
788
540
|
}
|
|
789
541
|
},
|
|
790
542
|
"parameters": [
|
|
791
543
|
{
|
|
792
|
-
"name": "
|
|
544
|
+
"name": "title",
|
|
793
545
|
"type": {
|
|
794
546
|
"text": "string"
|
|
795
547
|
}
|
|
548
|
+
},
|
|
549
|
+
{
|
|
550
|
+
"name": "body",
|
|
551
|
+
"type": {
|
|
552
|
+
"text": "string"
|
|
553
|
+
}
|
|
554
|
+
},
|
|
555
|
+
{
|
|
556
|
+
"name": "actionFunction",
|
|
557
|
+
"type": {
|
|
558
|
+
"text": "() => void"
|
|
559
|
+
}
|
|
560
|
+
},
|
|
561
|
+
{
|
|
562
|
+
"name": "dialogBoundary",
|
|
563
|
+
"type": {
|
|
564
|
+
"text": "HTMLElement"
|
|
565
|
+
}
|
|
796
566
|
}
|
|
797
567
|
]
|
|
798
|
-
}
|
|
799
|
-
]
|
|
800
|
-
},
|
|
801
|
-
{
|
|
802
|
-
"kind": "variable",
|
|
803
|
-
"name": "WorkspaceState",
|
|
804
|
-
"description": "DI token for workspace state."
|
|
805
|
-
}
|
|
806
|
-
],
|
|
807
|
-
"exports": [
|
|
808
|
-
{
|
|
809
|
-
"kind": "js",
|
|
810
|
-
"name": "DefaultWorkspaceState",
|
|
811
|
-
"declaration": {
|
|
812
|
-
"name": "DefaultWorkspaceState",
|
|
813
|
-
"module": "src/workspace/workspace-state.ts"
|
|
814
|
-
}
|
|
815
|
-
},
|
|
816
|
-
{
|
|
817
|
-
"kind": "js",
|
|
818
|
-
"name": "WorkspaceState",
|
|
819
|
-
"declaration": {
|
|
820
|
-
"name": "WorkspaceState",
|
|
821
|
-
"module": "src/workspace/workspace-state.ts"
|
|
822
|
-
}
|
|
823
|
-
}
|
|
824
|
-
]
|
|
825
|
-
},
|
|
826
|
-
{
|
|
827
|
-
"kind": "javascript-module",
|
|
828
|
-
"path": "src/workspace/workspace-state.types.ts",
|
|
829
|
-
"declarations": [],
|
|
830
|
-
"exports": []
|
|
831
|
-
},
|
|
832
|
-
{
|
|
833
|
-
"kind": "javascript-module",
|
|
834
|
-
"path": "src/workspace/workspace.types.ts",
|
|
835
|
-
"declarations": [],
|
|
836
|
-
"exports": []
|
|
837
|
-
},
|
|
838
|
-
{
|
|
839
|
-
"kind": "javascript-module",
|
|
840
|
-
"path": "src/workspace-manager/index.ts",
|
|
841
|
-
"declarations": [],
|
|
842
|
-
"exports": [
|
|
843
|
-
{
|
|
844
|
-
"kind": "js",
|
|
845
|
-
"name": "*",
|
|
846
|
-
"declaration": {
|
|
847
|
-
"name": "*",
|
|
848
|
-
"package": "./workspace-manager"
|
|
849
|
-
}
|
|
850
|
-
}
|
|
851
|
-
]
|
|
852
|
-
},
|
|
853
|
-
{
|
|
854
|
-
"kind": "javascript-module",
|
|
855
|
-
"path": "src/workspace-manager/workspace-manager.styles.ts",
|
|
856
|
-
"declarations": [
|
|
857
|
-
{
|
|
858
|
-
"kind": "variable",
|
|
859
|
-
"name": "WorkspaceManagerStyles",
|
|
860
|
-
"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`"
|
|
861
|
-
}
|
|
862
|
-
],
|
|
863
|
-
"exports": [
|
|
864
|
-
{
|
|
865
|
-
"kind": "js",
|
|
866
|
-
"name": "WorkspaceManagerStyles",
|
|
867
|
-
"declaration": {
|
|
868
|
-
"name": "WorkspaceManagerStyles",
|
|
869
|
-
"module": "src/workspace-manager/workspace-manager.styles.ts"
|
|
870
|
-
}
|
|
871
|
-
}
|
|
872
|
-
]
|
|
873
|
-
},
|
|
874
|
-
{
|
|
875
|
-
"kind": "javascript-module",
|
|
876
|
-
"path": "src/workspace-manager/workspace-manager.template.ts",
|
|
877
|
-
"declarations": [
|
|
878
|
-
{
|
|
879
|
-
"kind": "variable",
|
|
880
|
-
"name": "WORKSPACE_DESCRIPTION_MAX",
|
|
881
|
-
"type": {
|
|
882
|
-
"text": "number"
|
|
883
|
-
},
|
|
884
|
-
"default": "200"
|
|
885
|
-
},
|
|
886
|
-
{
|
|
887
|
-
"kind": "variable",
|
|
888
|
-
"name": "workspaceHeaderPartial",
|
|
889
|
-
"type": {
|
|
890
|
-
"text": "ViewTemplate<WorkspaceManager>"
|
|
891
|
-
},
|
|
892
|
-
"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`"
|
|
893
|
-
},
|
|
894
|
-
{
|
|
895
|
-
"kind": "variable",
|
|
896
|
-
"name": "workspaceSaveModalPartial",
|
|
897
|
-
"type": {
|
|
898
|
-
"text": "ViewTemplate<WorkspaceManager>"
|
|
899
|
-
},
|
|
900
|
-
"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`"
|
|
901
|
-
},
|
|
902
|
-
{
|
|
903
|
-
"kind": "variable",
|
|
904
|
-
"name": "workspaceLoadModalPartial",
|
|
905
|
-
"type": {
|
|
906
|
-
"text": "ViewTemplate<WorkspaceManager>"
|
|
907
|
-
},
|
|
908
|
-
"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`"
|
|
909
|
-
},
|
|
910
|
-
{
|
|
911
|
-
"kind": "variable",
|
|
912
|
-
"name": "WorkspaceManagerTemplate",
|
|
913
|
-
"default": "html<WorkspaceManager>`\n ${workspaceHeaderPartial} ${workspaceSaveModalPartial} ${workspaceLoadModalPartial}\n`"
|
|
914
|
-
}
|
|
915
|
-
],
|
|
916
|
-
"exports": [
|
|
917
|
-
{
|
|
918
|
-
"kind": "js",
|
|
919
|
-
"name": "WORKSPACE_DESCRIPTION_MAX",
|
|
920
|
-
"declaration": {
|
|
921
|
-
"name": "WORKSPACE_DESCRIPTION_MAX",
|
|
922
|
-
"module": "src/workspace-manager/workspace-manager.template.ts"
|
|
923
|
-
}
|
|
924
|
-
},
|
|
925
|
-
{
|
|
926
|
-
"kind": "js",
|
|
927
|
-
"name": "workspaceHeaderPartial",
|
|
928
|
-
"declaration": {
|
|
929
|
-
"name": "workspaceHeaderPartial",
|
|
930
|
-
"module": "src/workspace-manager/workspace-manager.template.ts"
|
|
931
|
-
}
|
|
932
|
-
},
|
|
933
|
-
{
|
|
934
|
-
"kind": "js",
|
|
935
|
-
"name": "workspaceSaveModalPartial",
|
|
936
|
-
"declaration": {
|
|
937
|
-
"name": "workspaceSaveModalPartial",
|
|
938
|
-
"module": "src/workspace-manager/workspace-manager.template.ts"
|
|
939
|
-
}
|
|
940
|
-
},
|
|
941
|
-
{
|
|
942
|
-
"kind": "js",
|
|
943
|
-
"name": "workspaceLoadModalPartial",
|
|
944
|
-
"declaration": {
|
|
945
|
-
"name": "workspaceLoadModalPartial",
|
|
946
|
-
"module": "src/workspace-manager/workspace-manager.template.ts"
|
|
947
|
-
}
|
|
948
|
-
},
|
|
949
|
-
{
|
|
950
|
-
"kind": "js",
|
|
951
|
-
"name": "WorkspaceManagerTemplate",
|
|
952
|
-
"declaration": {
|
|
953
|
-
"name": "WorkspaceManagerTemplate",
|
|
954
|
-
"module": "src/workspace-manager/workspace-manager.template.ts"
|
|
955
|
-
}
|
|
956
|
-
}
|
|
957
|
-
]
|
|
958
|
-
},
|
|
959
|
-
{
|
|
960
|
-
"kind": "javascript-module",
|
|
961
|
-
"path": "src/workspace-manager/workspace-manager.ts",
|
|
962
|
-
"declarations": [
|
|
963
|
-
{
|
|
964
|
-
"kind": "class",
|
|
965
|
-
"description": "Workspace persistence UI (save/load + share/delete shared workspaces).",
|
|
966
|
-
"name": "WorkspaceManager",
|
|
967
|
-
"members": [
|
|
968
|
-
{
|
|
969
|
-
"kind": "field",
|
|
970
|
-
"name": "workspaceName",
|
|
971
|
-
"type": {
|
|
972
|
-
"text": "string"
|
|
973
|
-
},
|
|
974
|
-
"default": "''"
|
|
975
|
-
},
|
|
976
|
-
{
|
|
977
|
-
"kind": "field",
|
|
978
|
-
"name": "workspaceDescription",
|
|
979
|
-
"type": {
|
|
980
|
-
"text": "string"
|
|
981
|
-
},
|
|
982
|
-
"default": "''"
|
|
983
568
|
},
|
|
984
569
|
{
|
|
985
|
-
"kind": "
|
|
986
|
-
"name": "
|
|
987
|
-
"
|
|
988
|
-
"
|
|
570
|
+
"kind": "method",
|
|
571
|
+
"name": "confirmDeleteWorkspace",
|
|
572
|
+
"return": {
|
|
573
|
+
"type": {
|
|
574
|
+
"text": "void"
|
|
575
|
+
}
|
|
989
576
|
},
|
|
990
|
-
"
|
|
577
|
+
"parameters": [
|
|
578
|
+
{
|
|
579
|
+
"name": "workspaceName",
|
|
580
|
+
"type": {
|
|
581
|
+
"text": "string"
|
|
582
|
+
}
|
|
583
|
+
}
|
|
584
|
+
]
|
|
991
585
|
},
|
|
992
586
|
{
|
|
993
|
-
"kind": "
|
|
994
|
-
"name": "
|
|
995
|
-
"
|
|
996
|
-
"
|
|
587
|
+
"kind": "method",
|
|
588
|
+
"name": "modifySharedWorkspace",
|
|
589
|
+
"return": {
|
|
590
|
+
"type": {
|
|
591
|
+
"text": "Promise<void>"
|
|
592
|
+
}
|
|
997
593
|
},
|
|
998
|
-
"
|
|
594
|
+
"parameters": [
|
|
595
|
+
{
|
|
596
|
+
"name": "sharedWorkspace",
|
|
597
|
+
"type": {
|
|
598
|
+
"text": "SharedWorkspace"
|
|
599
|
+
}
|
|
600
|
+
}
|
|
601
|
+
]
|
|
999
602
|
},
|
|
1000
603
|
{
|
|
1001
|
-
"kind": "
|
|
1002
|
-
"name": "
|
|
1003
|
-
"
|
|
1004
|
-
"
|
|
604
|
+
"kind": "method",
|
|
605
|
+
"name": "deleteSharedWorkspace",
|
|
606
|
+
"return": {
|
|
607
|
+
"type": {
|
|
608
|
+
"text": "Promise<void>"
|
|
609
|
+
}
|
|
1005
610
|
},
|
|
1006
|
-
"
|
|
611
|
+
"parameters": [
|
|
612
|
+
{
|
|
613
|
+
"name": "sharedWorkspace",
|
|
614
|
+
"type": {
|
|
615
|
+
"text": "SharedWorkspace"
|
|
616
|
+
}
|
|
617
|
+
}
|
|
618
|
+
]
|
|
1007
619
|
},
|
|
1008
620
|
{
|
|
1009
|
-
"kind": "
|
|
1010
|
-
"name": "
|
|
1011
|
-
"
|
|
1012
|
-
"
|
|
621
|
+
"kind": "method",
|
|
622
|
+
"name": "confirmDeleteSharedWorkspace",
|
|
623
|
+
"return": {
|
|
624
|
+
"type": {
|
|
625
|
+
"text": "void"
|
|
626
|
+
}
|
|
1013
627
|
},
|
|
1014
|
-
"
|
|
628
|
+
"parameters": [
|
|
629
|
+
{
|
|
630
|
+
"name": "sharedWorkspace",
|
|
631
|
+
"type": {
|
|
632
|
+
"text": "SharedWorkspace"
|
|
633
|
+
}
|
|
634
|
+
}
|
|
635
|
+
]
|
|
1015
636
|
},
|
|
1016
637
|
{
|
|
1017
|
-
"kind": "
|
|
1018
|
-
"name": "
|
|
1019
|
-
"
|
|
1020
|
-
"
|
|
638
|
+
"kind": "method",
|
|
639
|
+
"name": "shareExistingWorkspace",
|
|
640
|
+
"return": {
|
|
641
|
+
"type": {
|
|
642
|
+
"text": "Promise<void>"
|
|
643
|
+
}
|
|
1021
644
|
},
|
|
1022
|
-
"
|
|
645
|
+
"parameters": [
|
|
646
|
+
{
|
|
647
|
+
"name": "workspaceName",
|
|
648
|
+
"type": {
|
|
649
|
+
"text": "string"
|
|
650
|
+
}
|
|
651
|
+
}
|
|
652
|
+
]
|
|
1023
653
|
},
|
|
1024
654
|
{
|
|
1025
|
-
"kind": "
|
|
1026
|
-
"name": "
|
|
1027
|
-
"
|
|
1028
|
-
"
|
|
655
|
+
"kind": "method",
|
|
656
|
+
"name": "openSaveDialog",
|
|
657
|
+
"return": {
|
|
658
|
+
"type": {
|
|
659
|
+
"text": "Promise<void>"
|
|
660
|
+
}
|
|
1029
661
|
}
|
|
1030
662
|
},
|
|
1031
663
|
{
|
|
1032
|
-
"kind": "
|
|
1033
|
-
"name": "
|
|
1034
|
-
"
|
|
1035
|
-
"
|
|
1036
|
-
|
|
664
|
+
"kind": "method",
|
|
665
|
+
"name": "isWorkspaceExisting",
|
|
666
|
+
"return": {
|
|
667
|
+
"type": {
|
|
668
|
+
"text": "boolean"
|
|
669
|
+
}
|
|
670
|
+
},
|
|
671
|
+
"parameters": [
|
|
672
|
+
{
|
|
673
|
+
"name": "workspaceName",
|
|
674
|
+
"type": {
|
|
675
|
+
"text": "string"
|
|
676
|
+
}
|
|
677
|
+
}
|
|
678
|
+
]
|
|
1037
679
|
},
|
|
1038
680
|
{
|
|
1039
|
-
"kind": "
|
|
1040
|
-
"name": "
|
|
1041
|
-
"
|
|
1042
|
-
"
|
|
681
|
+
"kind": "method",
|
|
682
|
+
"name": "saveModeChanged",
|
|
683
|
+
"return": {
|
|
684
|
+
"type": {
|
|
685
|
+
"text": "void"
|
|
686
|
+
}
|
|
1043
687
|
},
|
|
1044
|
-
"
|
|
688
|
+
"parameters": [
|
|
689
|
+
{
|
|
690
|
+
"name": "oldValue",
|
|
691
|
+
"type": {
|
|
692
|
+
"text": "string"
|
|
693
|
+
}
|
|
694
|
+
},
|
|
695
|
+
{
|
|
696
|
+
"name": "newValue",
|
|
697
|
+
"type": {
|
|
698
|
+
"text": "string"
|
|
699
|
+
}
|
|
700
|
+
}
|
|
701
|
+
]
|
|
1045
702
|
},
|
|
1046
703
|
{
|
|
1047
|
-
"kind": "
|
|
1048
|
-
"name": "
|
|
1049
|
-
"
|
|
1050
|
-
"
|
|
704
|
+
"kind": "method",
|
|
705
|
+
"name": "selectedWorkspaceToOverwriteChanged",
|
|
706
|
+
"return": {
|
|
707
|
+
"type": {
|
|
708
|
+
"text": "void"
|
|
709
|
+
}
|
|
1051
710
|
},
|
|
1052
|
-
"
|
|
711
|
+
"parameters": [
|
|
712
|
+
{
|
|
713
|
+
"name": "oldValue",
|
|
714
|
+
"type": {
|
|
715
|
+
"text": "string"
|
|
716
|
+
}
|
|
717
|
+
},
|
|
718
|
+
{
|
|
719
|
+
"name": "newValue",
|
|
720
|
+
"type": {
|
|
721
|
+
"text": "string"
|
|
722
|
+
}
|
|
723
|
+
}
|
|
724
|
+
]
|
|
1053
725
|
},
|
|
1054
726
|
{
|
|
1055
|
-
"kind": "
|
|
1056
|
-
"name": "
|
|
1057
|
-
"
|
|
1058
|
-
"
|
|
1059
|
-
|
|
1060
|
-
|
|
727
|
+
"kind": "method",
|
|
728
|
+
"name": "openLoadDialog",
|
|
729
|
+
"return": {
|
|
730
|
+
"type": {
|
|
731
|
+
"text": "void"
|
|
732
|
+
}
|
|
733
|
+
}
|
|
1061
734
|
},
|
|
1062
735
|
{
|
|
1063
|
-
"kind": "
|
|
1064
|
-
"name": "
|
|
1065
|
-
"
|
|
1066
|
-
"
|
|
736
|
+
"kind": "method",
|
|
737
|
+
"name": "closeSaveDialog",
|
|
738
|
+
"return": {
|
|
739
|
+
"type": {
|
|
740
|
+
"text": "void"
|
|
741
|
+
}
|
|
1067
742
|
}
|
|
1068
743
|
},
|
|
1069
744
|
{
|
|
1070
|
-
"kind": "
|
|
1071
|
-
"name": "
|
|
1072
|
-
"
|
|
1073
|
-
"
|
|
745
|
+
"kind": "method",
|
|
746
|
+
"name": "closeLoadDialog",
|
|
747
|
+
"return": {
|
|
748
|
+
"type": {
|
|
749
|
+
"text": "void"
|
|
750
|
+
}
|
|
1074
751
|
}
|
|
1075
752
|
},
|
|
1076
753
|
{
|
|
1077
754
|
"kind": "field",
|
|
1078
|
-
"name": "
|
|
755
|
+
"name": "_presentation",
|
|
1079
756
|
"type": {
|
|
1080
|
-
"text": "
|
|
757
|
+
"text": "ComponentPresentation | null | undefined"
|
|
758
|
+
},
|
|
759
|
+
"privacy": "private",
|
|
760
|
+
"default": "void 0",
|
|
761
|
+
"inheritedFrom": {
|
|
762
|
+
"name": "FoundationElement",
|
|
763
|
+
"module": "src/foundation-element/foundation-element.ts"
|
|
1081
764
|
}
|
|
1082
765
|
},
|
|
1083
766
|
{
|
|
1084
767
|
"kind": "field",
|
|
1085
|
-
"name": "
|
|
768
|
+
"name": "$presentation",
|
|
1086
769
|
"type": {
|
|
1087
|
-
"text": "
|
|
770
|
+
"text": "ComponentPresentation | null"
|
|
771
|
+
},
|
|
772
|
+
"privacy": "public",
|
|
773
|
+
"description": "A property which resolves the ComponentPresentation instance\nfor the current component.",
|
|
774
|
+
"inheritedFrom": {
|
|
775
|
+
"name": "FoundationElement",
|
|
776
|
+
"module": "src/foundation-element/foundation-element.ts"
|
|
1088
777
|
}
|
|
1089
778
|
},
|
|
1090
779
|
{
|
|
1091
780
|
"kind": "field",
|
|
1092
|
-
"name": "
|
|
781
|
+
"name": "template",
|
|
1093
782
|
"type": {
|
|
1094
|
-
"text": "
|
|
783
|
+
"text": "ElementViewTemplate | void | null"
|
|
784
|
+
},
|
|
785
|
+
"privacy": "public",
|
|
786
|
+
"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.",
|
|
787
|
+
"inheritedFrom": {
|
|
788
|
+
"name": "FoundationElement",
|
|
789
|
+
"module": "src/foundation-element/foundation-element.ts"
|
|
1095
790
|
}
|
|
1096
791
|
},
|
|
1097
792
|
{
|
|
1098
|
-
"kind": "
|
|
1099
|
-
"name": "
|
|
1100
|
-
"
|
|
1101
|
-
|
|
793
|
+
"kind": "method",
|
|
794
|
+
"name": "templateChanged",
|
|
795
|
+
"privacy": "protected",
|
|
796
|
+
"return": {
|
|
797
|
+
"type": {
|
|
798
|
+
"text": "void"
|
|
799
|
+
}
|
|
800
|
+
},
|
|
801
|
+
"inheritedFrom": {
|
|
802
|
+
"name": "FoundationElement",
|
|
803
|
+
"module": "src/foundation-element/foundation-element.ts"
|
|
1102
804
|
}
|
|
1103
805
|
},
|
|
1104
806
|
{
|
|
1105
807
|
"kind": "field",
|
|
1106
|
-
"name": "
|
|
808
|
+
"name": "styles",
|
|
1107
809
|
"type": {
|
|
1108
|
-
"text": "
|
|
810
|
+
"text": "ElementStyles | void | null"
|
|
811
|
+
},
|
|
812
|
+
"privacy": "public",
|
|
813
|
+
"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.",
|
|
814
|
+
"inheritedFrom": {
|
|
815
|
+
"name": "FoundationElement",
|
|
816
|
+
"module": "src/foundation-element/foundation-element.ts"
|
|
1109
817
|
}
|
|
1110
818
|
},
|
|
1111
819
|
{
|
|
1112
|
-
"kind": "
|
|
1113
|
-
"name": "
|
|
1114
|
-
"
|
|
1115
|
-
|
|
820
|
+
"kind": "method",
|
|
821
|
+
"name": "stylesChanged",
|
|
822
|
+
"privacy": "protected",
|
|
823
|
+
"return": {
|
|
824
|
+
"type": {
|
|
825
|
+
"text": "void"
|
|
826
|
+
}
|
|
827
|
+
},
|
|
828
|
+
"inheritedFrom": {
|
|
829
|
+
"name": "FoundationElement",
|
|
830
|
+
"module": "src/foundation-element/foundation-element.ts"
|
|
1116
831
|
}
|
|
1117
832
|
},
|
|
1118
833
|
{
|
|
1119
|
-
"kind": "
|
|
1120
|
-
"name": "
|
|
1121
|
-
"
|
|
1122
|
-
|
|
834
|
+
"kind": "method",
|
|
835
|
+
"name": "compose",
|
|
836
|
+
"privacy": "public",
|
|
837
|
+
"static": true,
|
|
838
|
+
"return": {
|
|
839
|
+
"type": {
|
|
840
|
+
"text": "(\n overrideDefinition?: OverrideFoundationElementDefinition<T>\n ) => FoundationElementRegistry<T, K>"
|
|
841
|
+
}
|
|
842
|
+
},
|
|
843
|
+
"parameters": [
|
|
844
|
+
{
|
|
845
|
+
"name": "this",
|
|
846
|
+
"type": {
|
|
847
|
+
"text": "K"
|
|
848
|
+
}
|
|
849
|
+
},
|
|
850
|
+
{
|
|
851
|
+
"name": "elementDefinition",
|
|
852
|
+
"type": {
|
|
853
|
+
"text": "T"
|
|
854
|
+
},
|
|
855
|
+
"description": "The definition of the element to create the registry\nfunction for."
|
|
856
|
+
}
|
|
857
|
+
],
|
|
858
|
+
"description": "Defines an element registry function with a set of element definition defaults.",
|
|
859
|
+
"inheritedFrom": {
|
|
860
|
+
"name": "FoundationElement",
|
|
861
|
+
"module": "src/foundation-element/foundation-element.ts"
|
|
1123
862
|
}
|
|
1124
|
-
}
|
|
863
|
+
}
|
|
864
|
+
],
|
|
865
|
+
"superclass": {
|
|
866
|
+
"name": "FoundationElement",
|
|
867
|
+
"package": "@genesislcap/web-core"
|
|
868
|
+
},
|
|
869
|
+
"tagName": "workspace-manager",
|
|
870
|
+
"customElement": true
|
|
871
|
+
}
|
|
872
|
+
],
|
|
873
|
+
"exports": [
|
|
874
|
+
{
|
|
875
|
+
"kind": "js",
|
|
876
|
+
"name": "WorkspaceManager",
|
|
877
|
+
"declaration": {
|
|
878
|
+
"name": "WorkspaceManager",
|
|
879
|
+
"module": "src/workspace-manager/workspace-manager.ts"
|
|
880
|
+
}
|
|
881
|
+
},
|
|
882
|
+
{
|
|
883
|
+
"kind": "custom-element-definition",
|
|
884
|
+
"name": "workspace-manager",
|
|
885
|
+
"declaration": {
|
|
886
|
+
"name": "WorkspaceManager",
|
|
887
|
+
"module": "src/workspace-manager/workspace-manager.ts"
|
|
888
|
+
}
|
|
889
|
+
}
|
|
890
|
+
]
|
|
891
|
+
},
|
|
892
|
+
{
|
|
893
|
+
"kind": "javascript-module",
|
|
894
|
+
"path": "src/workspace/filter-registry.ts",
|
|
895
|
+
"declarations": [
|
|
896
|
+
{
|
|
897
|
+
"kind": "class",
|
|
898
|
+
"description": "",
|
|
899
|
+
"name": "DefaultFilterRegistry",
|
|
900
|
+
"members": [
|
|
1125
901
|
{
|
|
1126
902
|
"kind": "field",
|
|
1127
|
-
"name": "
|
|
903
|
+
"name": "filters",
|
|
1128
904
|
"type": {
|
|
1129
|
-
"text": "
|
|
905
|
+
"text": "Map<string, FilterRegistration>"
|
|
1130
906
|
},
|
|
1131
907
|
"privacy": "private",
|
|
1132
|
-
"
|
|
1133
|
-
"default": "false"
|
|
908
|
+
"default": "new Map()"
|
|
1134
909
|
},
|
|
1135
910
|
{
|
|
1136
911
|
"kind": "method",
|
|
1137
|
-
"name": "
|
|
1138
|
-
"privacy": "private",
|
|
912
|
+
"name": "registerFilter",
|
|
1139
913
|
"return": {
|
|
1140
914
|
"type": {
|
|
1141
|
-
"text": "
|
|
915
|
+
"text": "void"
|
|
1142
916
|
}
|
|
1143
917
|
},
|
|
1144
918
|
"parameters": [
|
|
1145
919
|
{
|
|
1146
|
-
"name": "
|
|
920
|
+
"name": "filterKey",
|
|
1147
921
|
"type": {
|
|
1148
922
|
"text": "string"
|
|
1149
923
|
}
|
|
924
|
+
},
|
|
925
|
+
{
|
|
926
|
+
"name": "getFilterValue",
|
|
927
|
+
"type": {
|
|
928
|
+
"text": "() => SavedFilterValue | null"
|
|
929
|
+
}
|
|
930
|
+
},
|
|
931
|
+
{
|
|
932
|
+
"name": "setFilterValue",
|
|
933
|
+
"type": {
|
|
934
|
+
"text": "(value: string) => void"
|
|
935
|
+
}
|
|
1150
936
|
}
|
|
1151
937
|
]
|
|
1152
938
|
},
|
|
1153
939
|
{
|
|
1154
940
|
"kind": "method",
|
|
1155
|
-
"name": "
|
|
941
|
+
"name": "unregisterFilter",
|
|
1156
942
|
"return": {
|
|
1157
943
|
"type": {
|
|
1158
944
|
"text": "void"
|
|
@@ -1160,7 +946,7 @@
|
|
|
1160
946
|
},
|
|
1161
947
|
"parameters": [
|
|
1162
948
|
{
|
|
1163
|
-
"name": "
|
|
949
|
+
"name": "filterKey",
|
|
1164
950
|
"type": {
|
|
1165
951
|
"text": "string"
|
|
1166
952
|
}
|
|
@@ -1169,36 +955,87 @@
|
|
|
1169
955
|
},
|
|
1170
956
|
{
|
|
1171
957
|
"kind": "method",
|
|
1172
|
-
"name": "
|
|
1173
|
-
"privacy": "private",
|
|
958
|
+
"name": "getAllFiltersValues",
|
|
1174
959
|
"return": {
|
|
1175
960
|
"type": {
|
|
1176
|
-
"text": "
|
|
961
|
+
"text": "SavedFilterValue[]"
|
|
1177
962
|
}
|
|
1178
963
|
}
|
|
1179
964
|
},
|
|
1180
965
|
{
|
|
1181
966
|
"kind": "method",
|
|
1182
|
-
"name": "
|
|
967
|
+
"name": "applyFiltersValues",
|
|
1183
968
|
"return": {
|
|
1184
969
|
"type": {
|
|
1185
|
-
"text": "
|
|
970
|
+
"text": "void"
|
|
1186
971
|
}
|
|
1187
|
-
}
|
|
972
|
+
},
|
|
973
|
+
"parameters": [
|
|
974
|
+
{
|
|
975
|
+
"name": "filtersValues",
|
|
976
|
+
"type": {
|
|
977
|
+
"text": "SavedFilterValue[]"
|
|
978
|
+
}
|
|
979
|
+
}
|
|
980
|
+
]
|
|
981
|
+
}
|
|
982
|
+
]
|
|
983
|
+
},
|
|
984
|
+
{
|
|
985
|
+
"kind": "variable",
|
|
986
|
+
"name": "FilterRegistry",
|
|
987
|
+
"description": "DI token for filter registry."
|
|
988
|
+
}
|
|
989
|
+
],
|
|
990
|
+
"exports": [
|
|
991
|
+
{
|
|
992
|
+
"kind": "js",
|
|
993
|
+
"name": "DefaultFilterRegistry",
|
|
994
|
+
"declaration": {
|
|
995
|
+
"name": "DefaultFilterRegistry",
|
|
996
|
+
"module": "src/workspace/filter-registry.ts"
|
|
997
|
+
}
|
|
998
|
+
},
|
|
999
|
+
{
|
|
1000
|
+
"kind": "js",
|
|
1001
|
+
"name": "FilterRegistry",
|
|
1002
|
+
"declaration": {
|
|
1003
|
+
"name": "FilterRegistry",
|
|
1004
|
+
"module": "src/workspace/filter-registry.ts"
|
|
1005
|
+
}
|
|
1006
|
+
}
|
|
1007
|
+
]
|
|
1008
|
+
},
|
|
1009
|
+
{
|
|
1010
|
+
"kind": "javascript-module",
|
|
1011
|
+
"path": "src/workspace/grid-registry.ts",
|
|
1012
|
+
"declarations": [
|
|
1013
|
+
{
|
|
1014
|
+
"kind": "class",
|
|
1015
|
+
"description": "",
|
|
1016
|
+
"name": "DefaultGridRegistry",
|
|
1017
|
+
"members": [
|
|
1018
|
+
{
|
|
1019
|
+
"kind": "field",
|
|
1020
|
+
"name": "grids",
|
|
1021
|
+
"type": {
|
|
1022
|
+
"text": "Map<string, GridRegistration>"
|
|
1023
|
+
},
|
|
1024
|
+
"privacy": "private",
|
|
1025
|
+
"default": "new Map()"
|
|
1188
1026
|
},
|
|
1189
1027
|
{
|
|
1190
|
-
"kind": "
|
|
1191
|
-
"name": "
|
|
1192
|
-
"
|
|
1193
|
-
"
|
|
1194
|
-
|
|
1195
|
-
|
|
1196
|
-
|
|
1028
|
+
"kind": "field",
|
|
1029
|
+
"name": "cachedSettings",
|
|
1030
|
+
"type": {
|
|
1031
|
+
"text": "Map<string, SavedGridSettings>"
|
|
1032
|
+
},
|
|
1033
|
+
"privacy": "private",
|
|
1034
|
+
"default": "new Map()"
|
|
1197
1035
|
},
|
|
1198
1036
|
{
|
|
1199
1037
|
"kind": "method",
|
|
1200
|
-
"name": "
|
|
1201
|
-
"privacy": "private",
|
|
1038
|
+
"name": "registerGrid",
|
|
1202
1039
|
"return": {
|
|
1203
1040
|
"type": {
|
|
1204
1041
|
"text": "void"
|
|
@@ -1206,49 +1043,53 @@
|
|
|
1206
1043
|
},
|
|
1207
1044
|
"parameters": [
|
|
1208
1045
|
{
|
|
1209
|
-
"name": "
|
|
1210
|
-
"
|
|
1046
|
+
"name": "gridKey",
|
|
1047
|
+
"type": {
|
|
1048
|
+
"text": "string"
|
|
1049
|
+
}
|
|
1050
|
+
},
|
|
1051
|
+
{
|
|
1052
|
+
"name": "gridApi",
|
|
1053
|
+
"type": {
|
|
1054
|
+
"text": "unknown"
|
|
1055
|
+
}
|
|
1056
|
+
},
|
|
1057
|
+
{
|
|
1058
|
+
"name": "columnApi",
|
|
1059
|
+
"type": {
|
|
1060
|
+
"text": "unknown"
|
|
1061
|
+
}
|
|
1211
1062
|
}
|
|
1212
1063
|
]
|
|
1213
1064
|
},
|
|
1214
1065
|
{
|
|
1215
1066
|
"kind": "method",
|
|
1216
|
-
"name": "
|
|
1217
|
-
"return": {
|
|
1218
|
-
"type": {
|
|
1219
|
-
"text": "Promise<void>"
|
|
1220
|
-
}
|
|
1221
|
-
}
|
|
1222
|
-
},
|
|
1223
|
-
{
|
|
1224
|
-
"kind": "method",
|
|
1225
|
-
"name": "applyWorkspace",
|
|
1226
|
-
"privacy": "private",
|
|
1067
|
+
"name": "getGrid",
|
|
1227
1068
|
"return": {
|
|
1228
1069
|
"type": {
|
|
1229
|
-
"text": "
|
|
1070
|
+
"text": "GridRegistration | null"
|
|
1230
1071
|
}
|
|
1231
1072
|
},
|
|
1232
1073
|
"parameters": [
|
|
1233
1074
|
{
|
|
1234
|
-
"name": "
|
|
1075
|
+
"name": "gridKey",
|
|
1235
1076
|
"type": {
|
|
1236
|
-
"text": "
|
|
1077
|
+
"text": "string"
|
|
1237
1078
|
}
|
|
1238
1079
|
}
|
|
1239
1080
|
]
|
|
1240
1081
|
},
|
|
1241
1082
|
{
|
|
1242
1083
|
"kind": "method",
|
|
1243
|
-
"name": "
|
|
1084
|
+
"name": "unregisterGrid",
|
|
1244
1085
|
"return": {
|
|
1245
1086
|
"type": {
|
|
1246
|
-
"text": "
|
|
1087
|
+
"text": "void"
|
|
1247
1088
|
}
|
|
1248
1089
|
},
|
|
1249
1090
|
"parameters": [
|
|
1250
1091
|
{
|
|
1251
|
-
"name": "
|
|
1092
|
+
"name": "gridKey",
|
|
1252
1093
|
"type": {
|
|
1253
1094
|
"text": "string"
|
|
1254
1095
|
}
|
|
@@ -1257,25 +1098,40 @@
|
|
|
1257
1098
|
},
|
|
1258
1099
|
{
|
|
1259
1100
|
"kind": "method",
|
|
1260
|
-
"name": "
|
|
1261
|
-
"privacy": "private",
|
|
1101
|
+
"name": "getAllGridsSettings",
|
|
1262
1102
|
"return": {
|
|
1263
1103
|
"type": {
|
|
1264
|
-
"text": "
|
|
1104
|
+
"text": "SavedGridSettings[]"
|
|
1105
|
+
}
|
|
1106
|
+
}
|
|
1107
|
+
},
|
|
1108
|
+
{
|
|
1109
|
+
"kind": "method",
|
|
1110
|
+
"name": "applyGridSettings",
|
|
1111
|
+
"return": {
|
|
1112
|
+
"type": {
|
|
1113
|
+
"text": "Promise<boolean>"
|
|
1265
1114
|
}
|
|
1266
1115
|
},
|
|
1267
1116
|
"parameters": [
|
|
1268
1117
|
{
|
|
1269
|
-
"name": "
|
|
1118
|
+
"name": "gridSetting",
|
|
1119
|
+
"type": {
|
|
1120
|
+
"text": "SavedGridSettings"
|
|
1121
|
+
}
|
|
1122
|
+
},
|
|
1123
|
+
{
|
|
1124
|
+
"name": "options",
|
|
1125
|
+
"optional": true,
|
|
1270
1126
|
"type": {
|
|
1271
|
-
"text": "
|
|
1127
|
+
"text": "{ applyColumns?: boolean; applyFilters?: boolean }"
|
|
1272
1128
|
}
|
|
1273
1129
|
}
|
|
1274
1130
|
]
|
|
1275
1131
|
},
|
|
1276
1132
|
{
|
|
1277
1133
|
"kind": "method",
|
|
1278
|
-
"name": "
|
|
1134
|
+
"name": "applyAllGridsSettings",
|
|
1279
1135
|
"return": {
|
|
1280
1136
|
"type": {
|
|
1281
1137
|
"text": "Promise<void>"
|
|
@@ -1283,34 +1139,163 @@
|
|
|
1283
1139
|
},
|
|
1284
1140
|
"parameters": [
|
|
1285
1141
|
{
|
|
1286
|
-
"name": "
|
|
1142
|
+
"name": "gridsSettings",
|
|
1287
1143
|
"type": {
|
|
1288
|
-
"text": "
|
|
1144
|
+
"text": "SavedGridSettings[]"
|
|
1145
|
+
}
|
|
1146
|
+
},
|
|
1147
|
+
{
|
|
1148
|
+
"name": "maxRetries",
|
|
1149
|
+
"default": "3",
|
|
1150
|
+
"type": {
|
|
1151
|
+
"text": "number"
|
|
1289
1152
|
}
|
|
1290
1153
|
}
|
|
1291
1154
|
]
|
|
1292
1155
|
},
|
|
1293
1156
|
{
|
|
1294
1157
|
"kind": "method",
|
|
1295
|
-
"name": "
|
|
1158
|
+
"name": "getGridSettings",
|
|
1159
|
+
"privacy": "private",
|
|
1296
1160
|
"return": {
|
|
1297
1161
|
"type": {
|
|
1298
|
-
"text": "
|
|
1162
|
+
"text": "SavedGridSettings | null"
|
|
1299
1163
|
}
|
|
1300
1164
|
},
|
|
1301
1165
|
"parameters": [
|
|
1302
1166
|
{
|
|
1303
|
-
"name": "
|
|
1167
|
+
"name": "gridKey",
|
|
1304
1168
|
"type": {
|
|
1305
1169
|
"text": "string"
|
|
1306
1170
|
}
|
|
1171
|
+
},
|
|
1172
|
+
{
|
|
1173
|
+
"name": "grid",
|
|
1174
|
+
"type": {
|
|
1175
|
+
"text": "GridRegistration"
|
|
1176
|
+
}
|
|
1307
1177
|
}
|
|
1308
1178
|
]
|
|
1179
|
+
}
|
|
1180
|
+
]
|
|
1181
|
+
},
|
|
1182
|
+
{
|
|
1183
|
+
"kind": "variable",
|
|
1184
|
+
"name": "GridRegistry",
|
|
1185
|
+
"description": "DI token for grid registry."
|
|
1186
|
+
}
|
|
1187
|
+
],
|
|
1188
|
+
"exports": [
|
|
1189
|
+
{
|
|
1190
|
+
"kind": "js",
|
|
1191
|
+
"name": "DefaultGridRegistry",
|
|
1192
|
+
"declaration": {
|
|
1193
|
+
"name": "DefaultGridRegistry",
|
|
1194
|
+
"module": "src/workspace/grid-registry.ts"
|
|
1195
|
+
}
|
|
1196
|
+
},
|
|
1197
|
+
{
|
|
1198
|
+
"kind": "js",
|
|
1199
|
+
"name": "GridRegistry",
|
|
1200
|
+
"declaration": {
|
|
1201
|
+
"name": "GridRegistry",
|
|
1202
|
+
"module": "src/workspace/grid-registry.ts"
|
|
1203
|
+
}
|
|
1204
|
+
}
|
|
1205
|
+
]
|
|
1206
|
+
},
|
|
1207
|
+
{
|
|
1208
|
+
"kind": "javascript-module",
|
|
1209
|
+
"path": "src/workspace/index.ts",
|
|
1210
|
+
"declarations": [],
|
|
1211
|
+
"exports": [
|
|
1212
|
+
{
|
|
1213
|
+
"kind": "js",
|
|
1214
|
+
"name": "*",
|
|
1215
|
+
"declaration": {
|
|
1216
|
+
"name": "*",
|
|
1217
|
+
"package": "./workspace.types"
|
|
1218
|
+
}
|
|
1219
|
+
},
|
|
1220
|
+
{
|
|
1221
|
+
"kind": "js",
|
|
1222
|
+
"name": "*",
|
|
1223
|
+
"declaration": {
|
|
1224
|
+
"name": "*",
|
|
1225
|
+
"package": "./workspace-state.types"
|
|
1226
|
+
}
|
|
1227
|
+
},
|
|
1228
|
+
{
|
|
1229
|
+
"kind": "js",
|
|
1230
|
+
"name": "*",
|
|
1231
|
+
"declaration": {
|
|
1232
|
+
"name": "*",
|
|
1233
|
+
"package": "./workspace-state"
|
|
1234
|
+
}
|
|
1235
|
+
},
|
|
1236
|
+
{
|
|
1237
|
+
"kind": "js",
|
|
1238
|
+
"name": "*",
|
|
1239
|
+
"declaration": {
|
|
1240
|
+
"name": "*",
|
|
1241
|
+
"package": "./layout-registry"
|
|
1242
|
+
}
|
|
1243
|
+
},
|
|
1244
|
+
{
|
|
1245
|
+
"kind": "js",
|
|
1246
|
+
"name": "*",
|
|
1247
|
+
"declaration": {
|
|
1248
|
+
"name": "*",
|
|
1249
|
+
"package": "./grid-registry"
|
|
1250
|
+
}
|
|
1251
|
+
},
|
|
1252
|
+
{
|
|
1253
|
+
"kind": "js",
|
|
1254
|
+
"name": "*",
|
|
1255
|
+
"declaration": {
|
|
1256
|
+
"name": "*",
|
|
1257
|
+
"package": "./filter-registry"
|
|
1258
|
+
}
|
|
1259
|
+
},
|
|
1260
|
+
{
|
|
1261
|
+
"kind": "js",
|
|
1262
|
+
"name": "*",
|
|
1263
|
+
"declaration": {
|
|
1264
|
+
"name": "*",
|
|
1265
|
+
"package": "./grid-register"
|
|
1266
|
+
}
|
|
1267
|
+
},
|
|
1268
|
+
{
|
|
1269
|
+
"kind": "js",
|
|
1270
|
+
"name": "*",
|
|
1271
|
+
"declaration": {
|
|
1272
|
+
"name": "*",
|
|
1273
|
+
"package": "./layout-wrapper"
|
|
1274
|
+
}
|
|
1275
|
+
}
|
|
1276
|
+
]
|
|
1277
|
+
},
|
|
1278
|
+
{
|
|
1279
|
+
"kind": "javascript-module",
|
|
1280
|
+
"path": "src/workspace/layout-registry.ts",
|
|
1281
|
+
"declarations": [
|
|
1282
|
+
{
|
|
1283
|
+
"kind": "class",
|
|
1284
|
+
"description": "Default layout registry implementation.",
|
|
1285
|
+
"name": "DefaultLayoutRegistry",
|
|
1286
|
+
"members": [
|
|
1287
|
+
{
|
|
1288
|
+
"kind": "field",
|
|
1289
|
+
"name": "layouts",
|
|
1290
|
+
"type": {
|
|
1291
|
+
"text": "Map<string, FoundationLayout>"
|
|
1292
|
+
},
|
|
1293
|
+
"privacy": "private",
|
|
1294
|
+
"default": "new Map()"
|
|
1309
1295
|
},
|
|
1310
1296
|
{
|
|
1311
1297
|
"kind": "method",
|
|
1312
|
-
"name": "
|
|
1313
|
-
"privacy": "private",
|
|
1298
|
+
"name": "registerLayout",
|
|
1314
1299
|
"return": {
|
|
1315
1300
|
"type": {
|
|
1316
1301
|
"text": "void"
|
|
@@ -1318,34 +1303,22 @@
|
|
|
1318
1303
|
},
|
|
1319
1304
|
"parameters": [
|
|
1320
1305
|
{
|
|
1321
|
-
"name": "
|
|
1322
|
-
"type": {
|
|
1323
|
-
"text": "string"
|
|
1324
|
-
}
|
|
1325
|
-
},
|
|
1326
|
-
{
|
|
1327
|
-
"name": "body",
|
|
1306
|
+
"name": "layoutKey",
|
|
1328
1307
|
"type": {
|
|
1329
1308
|
"text": "string"
|
|
1330
1309
|
}
|
|
1331
1310
|
},
|
|
1332
1311
|
{
|
|
1333
|
-
"name": "
|
|
1334
|
-
"type": {
|
|
1335
|
-
"text": "() => void"
|
|
1336
|
-
}
|
|
1337
|
-
},
|
|
1338
|
-
{
|
|
1339
|
-
"name": "dialogBoundary",
|
|
1312
|
+
"name": "layout",
|
|
1340
1313
|
"type": {
|
|
1341
|
-
"text": "
|
|
1314
|
+
"text": "FoundationLayout"
|
|
1342
1315
|
}
|
|
1343
1316
|
}
|
|
1344
1317
|
]
|
|
1345
1318
|
},
|
|
1346
1319
|
{
|
|
1347
1320
|
"kind": "method",
|
|
1348
|
-
"name": "
|
|
1321
|
+
"name": "unregisterLayout",
|
|
1349
1322
|
"return": {
|
|
1350
1323
|
"type": {
|
|
1351
1324
|
"text": "void"
|
|
@@ -1353,7 +1326,7 @@
|
|
|
1353
1326
|
},
|
|
1354
1327
|
"parameters": [
|
|
1355
1328
|
{
|
|
1356
|
-
"name": "
|
|
1329
|
+
"name": "layoutKey",
|
|
1357
1330
|
"type": {
|
|
1358
1331
|
"text": "string"
|
|
1359
1332
|
}
|
|
@@ -1362,24 +1335,16 @@
|
|
|
1362
1335
|
},
|
|
1363
1336
|
{
|
|
1364
1337
|
"kind": "method",
|
|
1365
|
-
"name": "
|
|
1338
|
+
"name": "getLayoutsConfigs",
|
|
1366
1339
|
"return": {
|
|
1367
1340
|
"type": {
|
|
1368
|
-
"text": "
|
|
1369
|
-
}
|
|
1370
|
-
},
|
|
1371
|
-
"parameters": [
|
|
1372
|
-
{
|
|
1373
|
-
"name": "sharedWorkspace",
|
|
1374
|
-
"type": {
|
|
1375
|
-
"text": "SharedWorkspace"
|
|
1376
|
-
}
|
|
1341
|
+
"text": "SavedLayout[]"
|
|
1377
1342
|
}
|
|
1378
|
-
|
|
1343
|
+
}
|
|
1379
1344
|
},
|
|
1380
1345
|
{
|
|
1381
1346
|
"kind": "method",
|
|
1382
|
-
"name": "
|
|
1347
|
+
"name": "applySavedLayouts",
|
|
1383
1348
|
"return": {
|
|
1384
1349
|
"type": {
|
|
1385
1350
|
"text": "Promise<void>"
|
|
@@ -1387,36 +1352,95 @@
|
|
|
1387
1352
|
},
|
|
1388
1353
|
"parameters": [
|
|
1389
1354
|
{
|
|
1390
|
-
"name": "
|
|
1355
|
+
"name": "savedLayouts",
|
|
1391
1356
|
"type": {
|
|
1392
|
-
"text": "
|
|
1357
|
+
"text": "SavedLayout[]"
|
|
1393
1358
|
}
|
|
1394
1359
|
}
|
|
1395
1360
|
]
|
|
1361
|
+
}
|
|
1362
|
+
]
|
|
1363
|
+
},
|
|
1364
|
+
{
|
|
1365
|
+
"kind": "variable",
|
|
1366
|
+
"name": "LayoutRegistry",
|
|
1367
|
+
"description": "DI token for layout registry."
|
|
1368
|
+
}
|
|
1369
|
+
],
|
|
1370
|
+
"exports": [
|
|
1371
|
+
{
|
|
1372
|
+
"kind": "js",
|
|
1373
|
+
"name": "DefaultLayoutRegistry",
|
|
1374
|
+
"declaration": {
|
|
1375
|
+
"name": "DefaultLayoutRegistry",
|
|
1376
|
+
"module": "src/workspace/layout-registry.ts"
|
|
1377
|
+
}
|
|
1378
|
+
},
|
|
1379
|
+
{
|
|
1380
|
+
"kind": "js",
|
|
1381
|
+
"name": "LayoutRegistry",
|
|
1382
|
+
"declaration": {
|
|
1383
|
+
"name": "LayoutRegistry",
|
|
1384
|
+
"module": "src/workspace/layout-registry.ts"
|
|
1385
|
+
}
|
|
1386
|
+
}
|
|
1387
|
+
]
|
|
1388
|
+
},
|
|
1389
|
+
{
|
|
1390
|
+
"kind": "javascript-module",
|
|
1391
|
+
"path": "src/workspace/workspace-state.ts",
|
|
1392
|
+
"declarations": [
|
|
1393
|
+
{
|
|
1394
|
+
"kind": "class",
|
|
1395
|
+
"description": "Default workspace persistence implementation backed by KVStorage.",
|
|
1396
|
+
"name": "DefaultWorkspaceState",
|
|
1397
|
+
"members": [
|
|
1398
|
+
{
|
|
1399
|
+
"kind": "field",
|
|
1400
|
+
"name": "STORAGE_PREFIX",
|
|
1401
|
+
"type": {
|
|
1402
|
+
"text": "string"
|
|
1403
|
+
},
|
|
1404
|
+
"privacy": "private",
|
|
1405
|
+
"readonly": true,
|
|
1406
|
+
"default": "'workspace_'"
|
|
1407
|
+
},
|
|
1408
|
+
{
|
|
1409
|
+
"kind": "field",
|
|
1410
|
+
"name": "WORKSPACES_LIST_KEY",
|
|
1411
|
+
"type": {
|
|
1412
|
+
"text": "string"
|
|
1413
|
+
},
|
|
1414
|
+
"privacy": "private",
|
|
1415
|
+
"readonly": true,
|
|
1416
|
+
"default": "'workspaces_list'"
|
|
1417
|
+
},
|
|
1418
|
+
{
|
|
1419
|
+
"kind": "field",
|
|
1420
|
+
"name": "currentWorkspace",
|
|
1421
|
+
"type": {
|
|
1422
|
+
"text": "SavedWorkspace | null"
|
|
1423
|
+
},
|
|
1424
|
+
"privacy": "private",
|
|
1425
|
+
"default": "null"
|
|
1396
1426
|
},
|
|
1397
1427
|
{
|
|
1398
1428
|
"kind": "method",
|
|
1399
|
-
"name": "
|
|
1429
|
+
"name": "getCurrentUsername",
|
|
1430
|
+
"privacy": "private",
|
|
1400
1431
|
"return": {
|
|
1401
1432
|
"type": {
|
|
1402
|
-
"text": "
|
|
1403
|
-
}
|
|
1404
|
-
},
|
|
1405
|
-
"parameters": [
|
|
1406
|
-
{
|
|
1407
|
-
"name": "sharedWorkspace",
|
|
1408
|
-
"type": {
|
|
1409
|
-
"text": "SharedWorkspace"
|
|
1410
|
-
}
|
|
1433
|
+
"text": "string"
|
|
1411
1434
|
}
|
|
1412
|
-
|
|
1435
|
+
}
|
|
1413
1436
|
},
|
|
1414
1437
|
{
|
|
1415
1438
|
"kind": "method",
|
|
1416
|
-
"name": "
|
|
1439
|
+
"name": "getWorkspaceStorageKey",
|
|
1440
|
+
"privacy": "private",
|
|
1417
1441
|
"return": {
|
|
1418
1442
|
"type": {
|
|
1419
|
-
"text": "
|
|
1443
|
+
"text": "string"
|
|
1420
1444
|
}
|
|
1421
1445
|
},
|
|
1422
1446
|
"parameters": [
|
|
@@ -1430,19 +1454,20 @@
|
|
|
1430
1454
|
},
|
|
1431
1455
|
{
|
|
1432
1456
|
"kind": "method",
|
|
1433
|
-
"name": "
|
|
1457
|
+
"name": "getWorkspacesListKey",
|
|
1458
|
+
"privacy": "private",
|
|
1434
1459
|
"return": {
|
|
1435
1460
|
"type": {
|
|
1436
|
-
"text": "
|
|
1461
|
+
"text": "string"
|
|
1437
1462
|
}
|
|
1438
1463
|
}
|
|
1439
1464
|
},
|
|
1440
1465
|
{
|
|
1441
1466
|
"kind": "method",
|
|
1442
|
-
"name": "
|
|
1467
|
+
"name": "saveWorkspace",
|
|
1443
1468
|
"return": {
|
|
1444
1469
|
"type": {
|
|
1445
|
-
"text": "
|
|
1470
|
+
"text": "Promise<void>"
|
|
1446
1471
|
}
|
|
1447
1472
|
},
|
|
1448
1473
|
"parameters": [
|
|
@@ -1451,26 +1476,45 @@
|
|
|
1451
1476
|
"type": {
|
|
1452
1477
|
"text": "string"
|
|
1453
1478
|
}
|
|
1479
|
+
},
|
|
1480
|
+
{
|
|
1481
|
+
"name": "layouts",
|
|
1482
|
+
"type": {
|
|
1483
|
+
"text": "SavedLayout[]"
|
|
1484
|
+
}
|
|
1485
|
+
},
|
|
1486
|
+
{
|
|
1487
|
+
"name": "grids",
|
|
1488
|
+
"type": {
|
|
1489
|
+
"text": "SavedGridSettings[]"
|
|
1490
|
+
}
|
|
1491
|
+
},
|
|
1492
|
+
{
|
|
1493
|
+
"name": "filters",
|
|
1494
|
+
"type": {
|
|
1495
|
+
"text": "SavedFilterValue[]"
|
|
1496
|
+
}
|
|
1497
|
+
},
|
|
1498
|
+
{
|
|
1499
|
+
"name": "description",
|
|
1500
|
+
"optional": true,
|
|
1501
|
+
"type": {
|
|
1502
|
+
"text": "string"
|
|
1503
|
+
}
|
|
1454
1504
|
}
|
|
1455
1505
|
]
|
|
1456
1506
|
},
|
|
1457
1507
|
{
|
|
1458
1508
|
"kind": "method",
|
|
1459
|
-
"name": "
|
|
1509
|
+
"name": "loadWorkspace",
|
|
1460
1510
|
"return": {
|
|
1461
1511
|
"type": {
|
|
1462
|
-
"text": "
|
|
1512
|
+
"text": "Promise<SavedWorkspace | null>"
|
|
1463
1513
|
}
|
|
1464
1514
|
},
|
|
1465
1515
|
"parameters": [
|
|
1466
1516
|
{
|
|
1467
|
-
"name": "
|
|
1468
|
-
"type": {
|
|
1469
|
-
"text": "string"
|
|
1470
|
-
}
|
|
1471
|
-
},
|
|
1472
|
-
{
|
|
1473
|
-
"name": "newValue",
|
|
1517
|
+
"name": "workspaceName",
|
|
1474
1518
|
"type": {
|
|
1475
1519
|
"text": "string"
|
|
1476
1520
|
}
|
|
@@ -1479,21 +1523,16 @@
|
|
|
1479
1523
|
},
|
|
1480
1524
|
{
|
|
1481
1525
|
"kind": "method",
|
|
1482
|
-
"name": "
|
|
1526
|
+
"name": "getWorkspace",
|
|
1527
|
+
"privacy": "private",
|
|
1483
1528
|
"return": {
|
|
1484
1529
|
"type": {
|
|
1485
|
-
"text": "
|
|
1530
|
+
"text": "Promise<SavedWorkspace | null>"
|
|
1486
1531
|
}
|
|
1487
1532
|
},
|
|
1488
1533
|
"parameters": [
|
|
1489
1534
|
{
|
|
1490
|
-
"name": "
|
|
1491
|
-
"type": {
|
|
1492
|
-
"text": "string"
|
|
1493
|
-
}
|
|
1494
|
-
},
|
|
1495
|
-
{
|
|
1496
|
-
"name": "newValue",
|
|
1535
|
+
"name": "workspaceName",
|
|
1497
1536
|
"type": {
|
|
1498
1537
|
"text": "string"
|
|
1499
1538
|
}
|
|
@@ -1502,170 +1541,131 @@
|
|
|
1502
1541
|
},
|
|
1503
1542
|
{
|
|
1504
1543
|
"kind": "method",
|
|
1505
|
-
"name": "
|
|
1544
|
+
"name": "getCurrentWorkspace",
|
|
1506
1545
|
"return": {
|
|
1507
1546
|
"type": {
|
|
1508
|
-
"text": "
|
|
1547
|
+
"text": "SavedWorkspace | null"
|
|
1509
1548
|
}
|
|
1510
1549
|
}
|
|
1511
1550
|
},
|
|
1512
1551
|
{
|
|
1513
1552
|
"kind": "method",
|
|
1514
|
-
"name": "
|
|
1553
|
+
"name": "setCurrentWorkspace",
|
|
1515
1554
|
"return": {
|
|
1516
1555
|
"type": {
|
|
1517
1556
|
"text": "void"
|
|
1518
1557
|
}
|
|
1519
|
-
}
|
|
1558
|
+
},
|
|
1559
|
+
"parameters": [
|
|
1560
|
+
{
|
|
1561
|
+
"name": "workspace",
|
|
1562
|
+
"type": {
|
|
1563
|
+
"text": "SavedWorkspace | null"
|
|
1564
|
+
}
|
|
1565
|
+
}
|
|
1566
|
+
]
|
|
1520
1567
|
},
|
|
1521
1568
|
{
|
|
1522
1569
|
"kind": "method",
|
|
1523
|
-
"name": "
|
|
1570
|
+
"name": "getSavedWorkspaces",
|
|
1524
1571
|
"return": {
|
|
1525
1572
|
"type": {
|
|
1526
|
-
"text": "
|
|
1573
|
+
"text": "Promise<SavedWorkspace[]>"
|
|
1527
1574
|
}
|
|
1528
1575
|
}
|
|
1529
1576
|
},
|
|
1530
|
-
{
|
|
1531
|
-
"kind": "field",
|
|
1532
|
-
"name": "_presentation",
|
|
1533
|
-
"type": {
|
|
1534
|
-
"text": "ComponentPresentation | null | undefined"
|
|
1535
|
-
},
|
|
1536
|
-
"privacy": "private",
|
|
1537
|
-
"default": "void 0",
|
|
1538
|
-
"inheritedFrom": {
|
|
1539
|
-
"name": "FoundationElement",
|
|
1540
|
-
"module": "src/foundation-element/foundation-element.ts"
|
|
1541
|
-
}
|
|
1542
|
-
},
|
|
1543
|
-
{
|
|
1544
|
-
"kind": "field",
|
|
1545
|
-
"name": "$presentation",
|
|
1546
|
-
"type": {
|
|
1547
|
-
"text": "ComponentPresentation | null"
|
|
1548
|
-
},
|
|
1549
|
-
"privacy": "public",
|
|
1550
|
-
"description": "A property which resolves the ComponentPresentation instance\nfor the current component.",
|
|
1551
|
-
"inheritedFrom": {
|
|
1552
|
-
"name": "FoundationElement",
|
|
1553
|
-
"module": "src/foundation-element/foundation-element.ts"
|
|
1554
|
-
}
|
|
1555
|
-
},
|
|
1556
|
-
{
|
|
1557
|
-
"kind": "field",
|
|
1558
|
-
"name": "template",
|
|
1559
|
-
"type": {
|
|
1560
|
-
"text": "ElementViewTemplate | void | null"
|
|
1561
|
-
},
|
|
1562
|
-
"privacy": "public",
|
|
1563
|
-
"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.",
|
|
1564
|
-
"inheritedFrom": {
|
|
1565
|
-
"name": "FoundationElement",
|
|
1566
|
-
"module": "src/foundation-element/foundation-element.ts"
|
|
1567
|
-
}
|
|
1568
|
-
},
|
|
1569
1577
|
{
|
|
1570
1578
|
"kind": "method",
|
|
1571
|
-
"name": "
|
|
1572
|
-
"privacy": "protected",
|
|
1579
|
+
"name": "deleteWorkspace",
|
|
1573
1580
|
"return": {
|
|
1574
1581
|
"type": {
|
|
1575
|
-
"text": "void"
|
|
1582
|
+
"text": "Promise<void>"
|
|
1576
1583
|
}
|
|
1577
1584
|
},
|
|
1578
|
-
"
|
|
1579
|
-
|
|
1580
|
-
|
|
1581
|
-
|
|
1582
|
-
|
|
1583
|
-
|
|
1584
|
-
|
|
1585
|
-
|
|
1586
|
-
"type": {
|
|
1587
|
-
"text": "ElementStyles | void | null"
|
|
1588
|
-
},
|
|
1589
|
-
"privacy": "public",
|
|
1590
|
-
"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.",
|
|
1591
|
-
"inheritedFrom": {
|
|
1592
|
-
"name": "FoundationElement",
|
|
1593
|
-
"module": "src/foundation-element/foundation-element.ts"
|
|
1594
|
-
}
|
|
1585
|
+
"parameters": [
|
|
1586
|
+
{
|
|
1587
|
+
"name": "workspaceName",
|
|
1588
|
+
"type": {
|
|
1589
|
+
"text": "string"
|
|
1590
|
+
}
|
|
1591
|
+
}
|
|
1592
|
+
]
|
|
1595
1593
|
},
|
|
1596
1594
|
{
|
|
1597
1595
|
"kind": "method",
|
|
1598
|
-
"name": "
|
|
1599
|
-
"privacy": "
|
|
1596
|
+
"name": "updateWorkspacesList",
|
|
1597
|
+
"privacy": "private",
|
|
1600
1598
|
"return": {
|
|
1601
1599
|
"type": {
|
|
1602
|
-
"text": "void"
|
|
1600
|
+
"text": "Promise<void>"
|
|
1603
1601
|
}
|
|
1604
1602
|
},
|
|
1605
|
-
"
|
|
1606
|
-
|
|
1607
|
-
|
|
1608
|
-
|
|
1603
|
+
"parameters": [
|
|
1604
|
+
{
|
|
1605
|
+
"name": "workspaceName",
|
|
1606
|
+
"type": {
|
|
1607
|
+
"text": "string"
|
|
1608
|
+
}
|
|
1609
|
+
}
|
|
1610
|
+
]
|
|
1609
1611
|
},
|
|
1610
1612
|
{
|
|
1611
1613
|
"kind": "method",
|
|
1612
|
-
"name": "
|
|
1613
|
-
"privacy": "
|
|
1614
|
-
"static": true,
|
|
1614
|
+
"name": "removeFromWorkspacesList",
|
|
1615
|
+
"privacy": "private",
|
|
1615
1616
|
"return": {
|
|
1616
1617
|
"type": {
|
|
1617
|
-
"text": "
|
|
1618
|
+
"text": "Promise<void>"
|
|
1618
1619
|
}
|
|
1619
1620
|
},
|
|
1620
1621
|
"parameters": [
|
|
1621
1622
|
{
|
|
1622
|
-
"name": "
|
|
1623
|
+
"name": "workspaceName",
|
|
1623
1624
|
"type": {
|
|
1624
|
-
"text": "
|
|
1625
|
+
"text": "string"
|
|
1625
1626
|
}
|
|
1626
|
-
},
|
|
1627
|
-
{
|
|
1628
|
-
"name": "elementDefinition",
|
|
1629
|
-
"type": {
|
|
1630
|
-
"text": "T"
|
|
1631
|
-
},
|
|
1632
|
-
"description": "The definition of the element to create the registry\nfunction for."
|
|
1633
1627
|
}
|
|
1634
|
-
]
|
|
1635
|
-
"description": "Defines an element registry function with a set of element definition defaults.",
|
|
1636
|
-
"inheritedFrom": {
|
|
1637
|
-
"name": "FoundationElement",
|
|
1638
|
-
"module": "src/foundation-element/foundation-element.ts"
|
|
1639
|
-
}
|
|
1628
|
+
]
|
|
1640
1629
|
}
|
|
1641
|
-
]
|
|
1642
|
-
|
|
1643
|
-
|
|
1644
|
-
|
|
1645
|
-
|
|
1646
|
-
"
|
|
1647
|
-
"customElement": true
|
|
1630
|
+
]
|
|
1631
|
+
},
|
|
1632
|
+
{
|
|
1633
|
+
"kind": "variable",
|
|
1634
|
+
"name": "WorkspaceState",
|
|
1635
|
+
"description": "DI token for workspace state."
|
|
1648
1636
|
}
|
|
1649
1637
|
],
|
|
1650
1638
|
"exports": [
|
|
1651
1639
|
{
|
|
1652
1640
|
"kind": "js",
|
|
1653
|
-
"name": "
|
|
1641
|
+
"name": "DefaultWorkspaceState",
|
|
1654
1642
|
"declaration": {
|
|
1655
|
-
"name": "
|
|
1656
|
-
"module": "src/workspace
|
|
1643
|
+
"name": "DefaultWorkspaceState",
|
|
1644
|
+
"module": "src/workspace/workspace-state.ts"
|
|
1657
1645
|
}
|
|
1658
1646
|
},
|
|
1659
1647
|
{
|
|
1660
|
-
"kind": "
|
|
1661
|
-
"name": "
|
|
1648
|
+
"kind": "js",
|
|
1649
|
+
"name": "WorkspaceState",
|
|
1662
1650
|
"declaration": {
|
|
1663
|
-
"name": "
|
|
1664
|
-
"module": "src/workspace
|
|
1651
|
+
"name": "WorkspaceState",
|
|
1652
|
+
"module": "src/workspace/workspace-state.ts"
|
|
1665
1653
|
}
|
|
1666
1654
|
}
|
|
1667
1655
|
]
|
|
1668
1656
|
},
|
|
1657
|
+
{
|
|
1658
|
+
"kind": "javascript-module",
|
|
1659
|
+
"path": "src/workspace/workspace-state.types.ts",
|
|
1660
|
+
"declarations": [],
|
|
1661
|
+
"exports": []
|
|
1662
|
+
},
|
|
1663
|
+
{
|
|
1664
|
+
"kind": "javascript-module",
|
|
1665
|
+
"path": "src/workspace/workspace.types.ts",
|
|
1666
|
+
"declarations": [],
|
|
1667
|
+
"exports": []
|
|
1668
|
+
},
|
|
1669
1669
|
{
|
|
1670
1670
|
"kind": "javascript-module",
|
|
1671
1671
|
"path": "src/workspace/grid-register/grid-register.template.ts",
|