@genesislcap/foundation-workspace 14.461.0 → 14.461.2
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/custom-elements-manifest.config.js +14 -0
- package/dist/custom-elements.json +2240 -0
- package/dist/dts/react.d.ts +67 -0
- package/dist/dts/workspace/grid-register/grid-register.d.ts.map +1 -1
- package/dist/dts/workspace/layout-wrapper/layout-wrapper.d.ts.map +1 -1
- package/dist/esm/workspace/grid-register/grid-register.js +1 -2
- package/dist/esm/workspace/layout-wrapper/layout-wrapper.js +1 -2
- package/dist/react.cjs +32 -0
- package/dist/react.mjs +24 -0
- package/package.json +27 -16
- package/src/workspace/grid-register/grid-register.ts +1 -3
- package/src/workspace/layout-wrapper/layout-wrapper.ts +1 -3
|
@@ -0,0 +1,2240 @@
|
|
|
1
|
+
{
|
|
2
|
+
"schemaVersion": "1.0.0",
|
|
3
|
+
"readme": "",
|
|
4
|
+
"modules": [
|
|
5
|
+
{
|
|
6
|
+
"kind": "javascript-module",
|
|
7
|
+
"path": "src/index.ts",
|
|
8
|
+
"declarations": [],
|
|
9
|
+
"exports": [
|
|
10
|
+
{
|
|
11
|
+
"kind": "js",
|
|
12
|
+
"name": "*",
|
|
13
|
+
"declaration": {
|
|
14
|
+
"name": "*",
|
|
15
|
+
"package": "./workspace"
|
|
16
|
+
}
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
"kind": "js",
|
|
20
|
+
"name": "*",
|
|
21
|
+
"declaration": {
|
|
22
|
+
"name": "*",
|
|
23
|
+
"package": "./workspace-manager"
|
|
24
|
+
}
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
"kind": "js",
|
|
28
|
+
"name": "workspaceComponents",
|
|
29
|
+
"declaration": {
|
|
30
|
+
"name": "workspaceComponents",
|
|
31
|
+
"module": "./workspace-components"
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
]
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
"kind": "javascript-module",
|
|
38
|
+
"path": "src/workspace-components.ts",
|
|
39
|
+
"declarations": [
|
|
40
|
+
{
|
|
41
|
+
"kind": "variable",
|
|
42
|
+
"name": "workspaceComponents",
|
|
43
|
+
"type": {
|
|
44
|
+
"text": "object"
|
|
45
|
+
},
|
|
46
|
+
"default": "{\n workspaceManager: () => ({\n register(_container?: Container, ..._rest: any[]) {\n // Custom elements are defined by decorators at module import time.\n void WorkspaceManager;\n },\n }),\n\n layoutWrapper: () => ({\n register(_container?: Container, ..._rest: any[]) {\n void LayoutWrapper;\n },\n }),\n\n gridRegister: () => ({\n register(_container?: Container, ..._rest: any[]) {\n void GridRegister;\n },\n }),\n\n register(container?: Container, ...rest: any[]) {\n if (!container) {\n // Preserve backward compatibility with callers that iterate keys.\n return;\n }\n\n for (const key in this) {\n if (key === 'register') {\n continue;\n }\n\n // The values of this object are functions that return a component\n // registration object with a `.register(...)` method.\n (this as any)[key]().register(container, ...rest);\n }\n },\n}",
|
|
47
|
+
"description": "Registration object for workspace-related components.\n\nMirrors the shape of `rapidGridComponents` so it can be passed into\n`provideDesignSystem().register(...)` without additional glue code."
|
|
48
|
+
}
|
|
49
|
+
],
|
|
50
|
+
"exports": [
|
|
51
|
+
{
|
|
52
|
+
"kind": "js",
|
|
53
|
+
"name": "workspaceComponents",
|
|
54
|
+
"declaration": {
|
|
55
|
+
"name": "workspaceComponents",
|
|
56
|
+
"module": "src/workspace-components.ts"
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
]
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
"kind": "javascript-module",
|
|
63
|
+
"path": "src/workspace/filter-registry.ts",
|
|
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
|
+
],
|
|
159
|
+
"exports": [
|
|
160
|
+
{
|
|
161
|
+
"kind": "js",
|
|
162
|
+
"name": "DefaultFilterRegistry",
|
|
163
|
+
"declaration": {
|
|
164
|
+
"name": "DefaultFilterRegistry",
|
|
165
|
+
"module": "src/workspace/filter-registry.ts"
|
|
166
|
+
}
|
|
167
|
+
},
|
|
168
|
+
{
|
|
169
|
+
"kind": "js",
|
|
170
|
+
"name": "FilterRegistry",
|
|
171
|
+
"declaration": {
|
|
172
|
+
"name": "FilterRegistry",
|
|
173
|
+
"module": "src/workspace/filter-registry.ts"
|
|
174
|
+
}
|
|
175
|
+
}
|
|
176
|
+
]
|
|
177
|
+
},
|
|
178
|
+
{
|
|
179
|
+
"kind": "javascript-module",
|
|
180
|
+
"path": "src/workspace/grid-registry.ts",
|
|
181
|
+
"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
|
+
{
|
|
352
|
+
"kind": "variable",
|
|
353
|
+
"name": "GridRegistry",
|
|
354
|
+
"description": "DI token for grid registry."
|
|
355
|
+
}
|
|
356
|
+
],
|
|
357
|
+
"exports": [
|
|
358
|
+
{
|
|
359
|
+
"kind": "js",
|
|
360
|
+
"name": "DefaultGridRegistry",
|
|
361
|
+
"declaration": {
|
|
362
|
+
"name": "DefaultGridRegistry",
|
|
363
|
+
"module": "src/workspace/grid-registry.ts"
|
|
364
|
+
}
|
|
365
|
+
},
|
|
366
|
+
{
|
|
367
|
+
"kind": "js",
|
|
368
|
+
"name": "GridRegistry",
|
|
369
|
+
"declaration": {
|
|
370
|
+
"name": "GridRegistry",
|
|
371
|
+
"module": "src/workspace/grid-registry.ts"
|
|
372
|
+
}
|
|
373
|
+
}
|
|
374
|
+
]
|
|
375
|
+
},
|
|
376
|
+
{
|
|
377
|
+
"kind": "javascript-module",
|
|
378
|
+
"path": "src/workspace/index.ts",
|
|
379
|
+
"declarations": [],
|
|
380
|
+
"exports": [
|
|
381
|
+
{
|
|
382
|
+
"kind": "js",
|
|
383
|
+
"name": "*",
|
|
384
|
+
"declaration": {
|
|
385
|
+
"name": "*",
|
|
386
|
+
"package": "./workspace.types"
|
|
387
|
+
}
|
|
388
|
+
},
|
|
389
|
+
{
|
|
390
|
+
"kind": "js",
|
|
391
|
+
"name": "*",
|
|
392
|
+
"declaration": {
|
|
393
|
+
"name": "*",
|
|
394
|
+
"package": "./workspace-state.types"
|
|
395
|
+
}
|
|
396
|
+
},
|
|
397
|
+
{
|
|
398
|
+
"kind": "js",
|
|
399
|
+
"name": "*",
|
|
400
|
+
"declaration": {
|
|
401
|
+
"name": "*",
|
|
402
|
+
"package": "./workspace-state"
|
|
403
|
+
}
|
|
404
|
+
},
|
|
405
|
+
{
|
|
406
|
+
"kind": "js",
|
|
407
|
+
"name": "*",
|
|
408
|
+
"declaration": {
|
|
409
|
+
"name": "*",
|
|
410
|
+
"package": "./layout-registry"
|
|
411
|
+
}
|
|
412
|
+
},
|
|
413
|
+
{
|
|
414
|
+
"kind": "js",
|
|
415
|
+
"name": "*",
|
|
416
|
+
"declaration": {
|
|
417
|
+
"name": "*",
|
|
418
|
+
"package": "./grid-registry"
|
|
419
|
+
}
|
|
420
|
+
},
|
|
421
|
+
{
|
|
422
|
+
"kind": "js",
|
|
423
|
+
"name": "*",
|
|
424
|
+
"declaration": {
|
|
425
|
+
"name": "*",
|
|
426
|
+
"package": "./filter-registry"
|
|
427
|
+
}
|
|
428
|
+
},
|
|
429
|
+
{
|
|
430
|
+
"kind": "js",
|
|
431
|
+
"name": "*",
|
|
432
|
+
"declaration": {
|
|
433
|
+
"name": "*",
|
|
434
|
+
"package": "./grid-register"
|
|
435
|
+
}
|
|
436
|
+
},
|
|
437
|
+
{
|
|
438
|
+
"kind": "js",
|
|
439
|
+
"name": "*",
|
|
440
|
+
"declaration": {
|
|
441
|
+
"name": "*",
|
|
442
|
+
"package": "./layout-wrapper"
|
|
443
|
+
}
|
|
444
|
+
}
|
|
445
|
+
]
|
|
446
|
+
},
|
|
447
|
+
{
|
|
448
|
+
"kind": "javascript-module",
|
|
449
|
+
"path": "src/workspace/layout-registry.ts",
|
|
450
|
+
"declarations": [
|
|
451
|
+
{
|
|
452
|
+
"kind": "class",
|
|
453
|
+
"description": "Default layout registry implementation.",
|
|
454
|
+
"name": "DefaultLayoutRegistry",
|
|
455
|
+
"members": [
|
|
456
|
+
{
|
|
457
|
+
"kind": "field",
|
|
458
|
+
"name": "layouts",
|
|
459
|
+
"type": {
|
|
460
|
+
"text": "Map<string, FoundationLayout>"
|
|
461
|
+
},
|
|
462
|
+
"privacy": "private",
|
|
463
|
+
"default": "new Map()"
|
|
464
|
+
},
|
|
465
|
+
{
|
|
466
|
+
"kind": "method",
|
|
467
|
+
"name": "registerLayout",
|
|
468
|
+
"return": {
|
|
469
|
+
"type": {
|
|
470
|
+
"text": "void"
|
|
471
|
+
}
|
|
472
|
+
},
|
|
473
|
+
"parameters": [
|
|
474
|
+
{
|
|
475
|
+
"name": "layoutKey",
|
|
476
|
+
"type": {
|
|
477
|
+
"text": "string"
|
|
478
|
+
}
|
|
479
|
+
},
|
|
480
|
+
{
|
|
481
|
+
"name": "layout",
|
|
482
|
+
"type": {
|
|
483
|
+
"text": "FoundationLayout"
|
|
484
|
+
}
|
|
485
|
+
}
|
|
486
|
+
]
|
|
487
|
+
},
|
|
488
|
+
{
|
|
489
|
+
"kind": "method",
|
|
490
|
+
"name": "unregisterLayout",
|
|
491
|
+
"return": {
|
|
492
|
+
"type": {
|
|
493
|
+
"text": "void"
|
|
494
|
+
}
|
|
495
|
+
},
|
|
496
|
+
"parameters": [
|
|
497
|
+
{
|
|
498
|
+
"name": "layoutKey",
|
|
499
|
+
"type": {
|
|
500
|
+
"text": "string"
|
|
501
|
+
}
|
|
502
|
+
}
|
|
503
|
+
]
|
|
504
|
+
},
|
|
505
|
+
{
|
|
506
|
+
"kind": "method",
|
|
507
|
+
"name": "getLayoutsConfigs",
|
|
508
|
+
"return": {
|
|
509
|
+
"type": {
|
|
510
|
+
"text": "SavedLayout[]"
|
|
511
|
+
}
|
|
512
|
+
}
|
|
513
|
+
},
|
|
514
|
+
{
|
|
515
|
+
"kind": "method",
|
|
516
|
+
"name": "applySavedLayouts",
|
|
517
|
+
"return": {
|
|
518
|
+
"type": {
|
|
519
|
+
"text": "Promise<void>"
|
|
520
|
+
}
|
|
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"
|
|
595
|
+
},
|
|
596
|
+
{
|
|
597
|
+
"kind": "method",
|
|
598
|
+
"name": "getCurrentUsername",
|
|
599
|
+
"privacy": "private",
|
|
600
|
+
"return": {
|
|
601
|
+
"type": {
|
|
602
|
+
"text": "string"
|
|
603
|
+
}
|
|
604
|
+
}
|
|
605
|
+
},
|
|
606
|
+
{
|
|
607
|
+
"kind": "method",
|
|
608
|
+
"name": "getWorkspaceStorageKey",
|
|
609
|
+
"privacy": "private",
|
|
610
|
+
"return": {
|
|
611
|
+
"type": {
|
|
612
|
+
"text": "string"
|
|
613
|
+
}
|
|
614
|
+
},
|
|
615
|
+
"parameters": [
|
|
616
|
+
{
|
|
617
|
+
"name": "workspaceName",
|
|
618
|
+
"type": {
|
|
619
|
+
"text": "string"
|
|
620
|
+
}
|
|
621
|
+
}
|
|
622
|
+
]
|
|
623
|
+
},
|
|
624
|
+
{
|
|
625
|
+
"kind": "method",
|
|
626
|
+
"name": "getWorkspacesListKey",
|
|
627
|
+
"privacy": "private",
|
|
628
|
+
"return": {
|
|
629
|
+
"type": {
|
|
630
|
+
"text": "string"
|
|
631
|
+
}
|
|
632
|
+
}
|
|
633
|
+
},
|
|
634
|
+
{
|
|
635
|
+
"kind": "method",
|
|
636
|
+
"name": "saveWorkspace",
|
|
637
|
+
"return": {
|
|
638
|
+
"type": {
|
|
639
|
+
"text": "Promise<void>"
|
|
640
|
+
}
|
|
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
|
+
]
|
|
675
|
+
},
|
|
676
|
+
{
|
|
677
|
+
"kind": "method",
|
|
678
|
+
"name": "loadWorkspace",
|
|
679
|
+
"return": {
|
|
680
|
+
"type": {
|
|
681
|
+
"text": "Promise<SavedWorkspace | null>"
|
|
682
|
+
}
|
|
683
|
+
},
|
|
684
|
+
"parameters": [
|
|
685
|
+
{
|
|
686
|
+
"name": "workspaceName",
|
|
687
|
+
"type": {
|
|
688
|
+
"text": "string"
|
|
689
|
+
}
|
|
690
|
+
}
|
|
691
|
+
]
|
|
692
|
+
},
|
|
693
|
+
{
|
|
694
|
+
"kind": "method",
|
|
695
|
+
"name": "getWorkspace",
|
|
696
|
+
"privacy": "private",
|
|
697
|
+
"return": {
|
|
698
|
+
"type": {
|
|
699
|
+
"text": "Promise<SavedWorkspace | null>"
|
|
700
|
+
}
|
|
701
|
+
},
|
|
702
|
+
"parameters": [
|
|
703
|
+
{
|
|
704
|
+
"name": "workspaceName",
|
|
705
|
+
"type": {
|
|
706
|
+
"text": "string"
|
|
707
|
+
}
|
|
708
|
+
}
|
|
709
|
+
]
|
|
710
|
+
},
|
|
711
|
+
{
|
|
712
|
+
"kind": "method",
|
|
713
|
+
"name": "getCurrentWorkspace",
|
|
714
|
+
"return": {
|
|
715
|
+
"type": {
|
|
716
|
+
"text": "SavedWorkspace | null"
|
|
717
|
+
}
|
|
718
|
+
}
|
|
719
|
+
},
|
|
720
|
+
{
|
|
721
|
+
"kind": "method",
|
|
722
|
+
"name": "setCurrentWorkspace",
|
|
723
|
+
"return": {
|
|
724
|
+
"type": {
|
|
725
|
+
"text": "void"
|
|
726
|
+
}
|
|
727
|
+
},
|
|
728
|
+
"parameters": [
|
|
729
|
+
{
|
|
730
|
+
"name": "workspace",
|
|
731
|
+
"type": {
|
|
732
|
+
"text": "SavedWorkspace | null"
|
|
733
|
+
}
|
|
734
|
+
}
|
|
735
|
+
]
|
|
736
|
+
},
|
|
737
|
+
{
|
|
738
|
+
"kind": "method",
|
|
739
|
+
"name": "getSavedWorkspaces",
|
|
740
|
+
"return": {
|
|
741
|
+
"type": {
|
|
742
|
+
"text": "Promise<SavedWorkspace[]>"
|
|
743
|
+
}
|
|
744
|
+
}
|
|
745
|
+
},
|
|
746
|
+
{
|
|
747
|
+
"kind": "method",
|
|
748
|
+
"name": "deleteWorkspace",
|
|
749
|
+
"return": {
|
|
750
|
+
"type": {
|
|
751
|
+
"text": "Promise<void>"
|
|
752
|
+
}
|
|
753
|
+
},
|
|
754
|
+
"parameters": [
|
|
755
|
+
{
|
|
756
|
+
"name": "workspaceName",
|
|
757
|
+
"type": {
|
|
758
|
+
"text": "string"
|
|
759
|
+
}
|
|
760
|
+
}
|
|
761
|
+
]
|
|
762
|
+
},
|
|
763
|
+
{
|
|
764
|
+
"kind": "method",
|
|
765
|
+
"name": "updateWorkspacesList",
|
|
766
|
+
"privacy": "private",
|
|
767
|
+
"return": {
|
|
768
|
+
"type": {
|
|
769
|
+
"text": "Promise<void>"
|
|
770
|
+
}
|
|
771
|
+
},
|
|
772
|
+
"parameters": [
|
|
773
|
+
{
|
|
774
|
+
"name": "workspaceName",
|
|
775
|
+
"type": {
|
|
776
|
+
"text": "string"
|
|
777
|
+
}
|
|
778
|
+
}
|
|
779
|
+
]
|
|
780
|
+
},
|
|
781
|
+
{
|
|
782
|
+
"kind": "method",
|
|
783
|
+
"name": "removeFromWorkspacesList",
|
|
784
|
+
"privacy": "private",
|
|
785
|
+
"return": {
|
|
786
|
+
"type": {
|
|
787
|
+
"text": "Promise<void>"
|
|
788
|
+
}
|
|
789
|
+
},
|
|
790
|
+
"parameters": [
|
|
791
|
+
{
|
|
792
|
+
"name": "workspaceName",
|
|
793
|
+
"type": {
|
|
794
|
+
"text": "string"
|
|
795
|
+
}
|
|
796
|
+
}
|
|
797
|
+
]
|
|
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
|
+
},
|
|
984
|
+
{
|
|
985
|
+
"kind": "field",
|
|
986
|
+
"name": "savedWorkspaces",
|
|
987
|
+
"type": {
|
|
988
|
+
"text": "SavedWorkspace[]"
|
|
989
|
+
},
|
|
990
|
+
"default": "[]"
|
|
991
|
+
},
|
|
992
|
+
{
|
|
993
|
+
"kind": "field",
|
|
994
|
+
"name": "sharedWorkspaces",
|
|
995
|
+
"type": {
|
|
996
|
+
"text": "SharedWorkspace[]"
|
|
997
|
+
},
|
|
998
|
+
"default": "[]"
|
|
999
|
+
},
|
|
1000
|
+
{
|
|
1001
|
+
"kind": "field",
|
|
1002
|
+
"name": "isLoading",
|
|
1003
|
+
"type": {
|
|
1004
|
+
"text": "boolean"
|
|
1005
|
+
},
|
|
1006
|
+
"default": "false"
|
|
1007
|
+
},
|
|
1008
|
+
{
|
|
1009
|
+
"kind": "field",
|
|
1010
|
+
"name": "applyingWorkspace",
|
|
1011
|
+
"type": {
|
|
1012
|
+
"text": "boolean"
|
|
1013
|
+
},
|
|
1014
|
+
"default": "false"
|
|
1015
|
+
},
|
|
1016
|
+
{
|
|
1017
|
+
"kind": "field",
|
|
1018
|
+
"name": "loadMode",
|
|
1019
|
+
"type": {
|
|
1020
|
+
"text": "LoadMode"
|
|
1021
|
+
},
|
|
1022
|
+
"default": "'MY'"
|
|
1023
|
+
},
|
|
1024
|
+
{
|
|
1025
|
+
"kind": "field",
|
|
1026
|
+
"name": "saveModal",
|
|
1027
|
+
"type": {
|
|
1028
|
+
"text": "Modal"
|
|
1029
|
+
}
|
|
1030
|
+
},
|
|
1031
|
+
{
|
|
1032
|
+
"kind": "field",
|
|
1033
|
+
"name": "loadModal",
|
|
1034
|
+
"type": {
|
|
1035
|
+
"text": "Modal"
|
|
1036
|
+
}
|
|
1037
|
+
},
|
|
1038
|
+
{
|
|
1039
|
+
"kind": "field",
|
|
1040
|
+
"name": "saveMode",
|
|
1041
|
+
"type": {
|
|
1042
|
+
"text": "'create' | 'overwrite' | 'shared'"
|
|
1043
|
+
},
|
|
1044
|
+
"default": "'create'"
|
|
1045
|
+
},
|
|
1046
|
+
{
|
|
1047
|
+
"kind": "field",
|
|
1048
|
+
"name": "selectedWorkspaceToOverwrite",
|
|
1049
|
+
"type": {
|
|
1050
|
+
"text": "string"
|
|
1051
|
+
},
|
|
1052
|
+
"default": "''"
|
|
1053
|
+
},
|
|
1054
|
+
{
|
|
1055
|
+
"kind": "field",
|
|
1056
|
+
"name": "workspaceToShare",
|
|
1057
|
+
"type": {
|
|
1058
|
+
"text": "string"
|
|
1059
|
+
},
|
|
1060
|
+
"default": "''"
|
|
1061
|
+
},
|
|
1062
|
+
{
|
|
1063
|
+
"kind": "field",
|
|
1064
|
+
"name": "dialogBoundary",
|
|
1065
|
+
"type": {
|
|
1066
|
+
"text": "HTMLElement"
|
|
1067
|
+
}
|
|
1068
|
+
},
|
|
1069
|
+
{
|
|
1070
|
+
"kind": "field",
|
|
1071
|
+
"name": "sharedWorkspaceDialogBoundary",
|
|
1072
|
+
"type": {
|
|
1073
|
+
"text": "HTMLElement"
|
|
1074
|
+
}
|
|
1075
|
+
},
|
|
1076
|
+
{
|
|
1077
|
+
"kind": "field",
|
|
1078
|
+
"name": "layoutRegistry",
|
|
1079
|
+
"type": {
|
|
1080
|
+
"text": "LayoutRegistry"
|
|
1081
|
+
}
|
|
1082
|
+
},
|
|
1083
|
+
{
|
|
1084
|
+
"kind": "field",
|
|
1085
|
+
"name": "gridRegistry",
|
|
1086
|
+
"type": {
|
|
1087
|
+
"text": "GridRegistry"
|
|
1088
|
+
}
|
|
1089
|
+
},
|
|
1090
|
+
{
|
|
1091
|
+
"kind": "field",
|
|
1092
|
+
"name": "filterRegistry",
|
|
1093
|
+
"type": {
|
|
1094
|
+
"text": "FilterRegistry"
|
|
1095
|
+
}
|
|
1096
|
+
},
|
|
1097
|
+
{
|
|
1098
|
+
"kind": "field",
|
|
1099
|
+
"name": "workspaceState",
|
|
1100
|
+
"type": {
|
|
1101
|
+
"text": "WorkspaceState"
|
|
1102
|
+
}
|
|
1103
|
+
},
|
|
1104
|
+
{
|
|
1105
|
+
"kind": "field",
|
|
1106
|
+
"name": "connect",
|
|
1107
|
+
"type": {
|
|
1108
|
+
"text": "Connect"
|
|
1109
|
+
}
|
|
1110
|
+
},
|
|
1111
|
+
{
|
|
1112
|
+
"kind": "field",
|
|
1113
|
+
"name": "auth",
|
|
1114
|
+
"type": {
|
|
1115
|
+
"text": "Auth"
|
|
1116
|
+
}
|
|
1117
|
+
},
|
|
1118
|
+
{
|
|
1119
|
+
"kind": "field",
|
|
1120
|
+
"name": "canShareWorkspace",
|
|
1121
|
+
"type": {
|
|
1122
|
+
"text": "boolean"
|
|
1123
|
+
}
|
|
1124
|
+
},
|
|
1125
|
+
{
|
|
1126
|
+
"kind": "field",
|
|
1127
|
+
"name": "sharedWorkspacesEnabled",
|
|
1128
|
+
"type": {
|
|
1129
|
+
"text": "boolean"
|
|
1130
|
+
},
|
|
1131
|
+
"privacy": "private",
|
|
1132
|
+
"readonly": true,
|
|
1133
|
+
"default": "false"
|
|
1134
|
+
},
|
|
1135
|
+
{
|
|
1136
|
+
"kind": "method",
|
|
1137
|
+
"name": "sanitizeDescription",
|
|
1138
|
+
"privacy": "private",
|
|
1139
|
+
"return": {
|
|
1140
|
+
"type": {
|
|
1141
|
+
"text": "string"
|
|
1142
|
+
}
|
|
1143
|
+
},
|
|
1144
|
+
"parameters": [
|
|
1145
|
+
{
|
|
1146
|
+
"name": "input",
|
|
1147
|
+
"type": {
|
|
1148
|
+
"text": "string"
|
|
1149
|
+
}
|
|
1150
|
+
}
|
|
1151
|
+
]
|
|
1152
|
+
},
|
|
1153
|
+
{
|
|
1154
|
+
"kind": "method",
|
|
1155
|
+
"name": "updateWorkspaceDescription",
|
|
1156
|
+
"return": {
|
|
1157
|
+
"type": {
|
|
1158
|
+
"text": "void"
|
|
1159
|
+
}
|
|
1160
|
+
},
|
|
1161
|
+
"parameters": [
|
|
1162
|
+
{
|
|
1163
|
+
"name": "raw",
|
|
1164
|
+
"type": {
|
|
1165
|
+
"text": "string"
|
|
1166
|
+
}
|
|
1167
|
+
}
|
|
1168
|
+
]
|
|
1169
|
+
},
|
|
1170
|
+
{
|
|
1171
|
+
"kind": "method",
|
|
1172
|
+
"name": "setDescriptionFromSelectedWorkspace",
|
|
1173
|
+
"privacy": "private",
|
|
1174
|
+
"return": {
|
|
1175
|
+
"type": {
|
|
1176
|
+
"text": "void"
|
|
1177
|
+
}
|
|
1178
|
+
}
|
|
1179
|
+
},
|
|
1180
|
+
{
|
|
1181
|
+
"kind": "method",
|
|
1182
|
+
"name": "refreshSavedWorkspaces",
|
|
1183
|
+
"return": {
|
|
1184
|
+
"type": {
|
|
1185
|
+
"text": "Promise<void>"
|
|
1186
|
+
}
|
|
1187
|
+
}
|
|
1188
|
+
},
|
|
1189
|
+
{
|
|
1190
|
+
"kind": "method",
|
|
1191
|
+
"name": "refreshSharedWorkspaces",
|
|
1192
|
+
"return": {
|
|
1193
|
+
"type": {
|
|
1194
|
+
"text": "Promise<void>"
|
|
1195
|
+
}
|
|
1196
|
+
}
|
|
1197
|
+
},
|
|
1198
|
+
{
|
|
1199
|
+
"kind": "method",
|
|
1200
|
+
"name": "notifyError",
|
|
1201
|
+
"privacy": "private",
|
|
1202
|
+
"return": {
|
|
1203
|
+
"type": {
|
|
1204
|
+
"text": "void"
|
|
1205
|
+
}
|
|
1206
|
+
},
|
|
1207
|
+
"parameters": [
|
|
1208
|
+
{
|
|
1209
|
+
"name": "body",
|
|
1210
|
+
"default": "'Error'"
|
|
1211
|
+
}
|
|
1212
|
+
]
|
|
1213
|
+
},
|
|
1214
|
+
{
|
|
1215
|
+
"kind": "method",
|
|
1216
|
+
"name": "saveWorkspace",
|
|
1217
|
+
"return": {
|
|
1218
|
+
"type": {
|
|
1219
|
+
"text": "Promise<void>"
|
|
1220
|
+
}
|
|
1221
|
+
}
|
|
1222
|
+
},
|
|
1223
|
+
{
|
|
1224
|
+
"kind": "method",
|
|
1225
|
+
"name": "applyWorkspace",
|
|
1226
|
+
"privacy": "private",
|
|
1227
|
+
"return": {
|
|
1228
|
+
"type": {
|
|
1229
|
+
"text": "Promise<void>"
|
|
1230
|
+
}
|
|
1231
|
+
},
|
|
1232
|
+
"parameters": [
|
|
1233
|
+
{
|
|
1234
|
+
"name": "workspace",
|
|
1235
|
+
"type": {
|
|
1236
|
+
"text": "SavedWorkspace"
|
|
1237
|
+
}
|
|
1238
|
+
}
|
|
1239
|
+
]
|
|
1240
|
+
},
|
|
1241
|
+
{
|
|
1242
|
+
"kind": "method",
|
|
1243
|
+
"name": "loadWorkspace",
|
|
1244
|
+
"return": {
|
|
1245
|
+
"type": {
|
|
1246
|
+
"text": "Promise<void>"
|
|
1247
|
+
}
|
|
1248
|
+
},
|
|
1249
|
+
"parameters": [
|
|
1250
|
+
{
|
|
1251
|
+
"name": "workspaceName",
|
|
1252
|
+
"type": {
|
|
1253
|
+
"text": "string"
|
|
1254
|
+
}
|
|
1255
|
+
}
|
|
1256
|
+
]
|
|
1257
|
+
},
|
|
1258
|
+
{
|
|
1259
|
+
"kind": "method",
|
|
1260
|
+
"name": "requestSharedWorkspace",
|
|
1261
|
+
"privacy": "private",
|
|
1262
|
+
"return": {
|
|
1263
|
+
"type": {
|
|
1264
|
+
"text": "Promise<any[]>"
|
|
1265
|
+
}
|
|
1266
|
+
},
|
|
1267
|
+
"parameters": [
|
|
1268
|
+
{
|
|
1269
|
+
"name": "SHARED_WORKSPACE_ID",
|
|
1270
|
+
"type": {
|
|
1271
|
+
"text": "string"
|
|
1272
|
+
}
|
|
1273
|
+
}
|
|
1274
|
+
]
|
|
1275
|
+
},
|
|
1276
|
+
{
|
|
1277
|
+
"kind": "method",
|
|
1278
|
+
"name": "loadSharedWorkspace",
|
|
1279
|
+
"return": {
|
|
1280
|
+
"type": {
|
|
1281
|
+
"text": "Promise<void>"
|
|
1282
|
+
}
|
|
1283
|
+
},
|
|
1284
|
+
"parameters": [
|
|
1285
|
+
{
|
|
1286
|
+
"name": "shared",
|
|
1287
|
+
"type": {
|
|
1288
|
+
"text": "{\n id: string;\n name: string;\n userName: string;\n createdOn?: string | number;\n modifiedOn?: string | number;\n data: string;\n }"
|
|
1289
|
+
}
|
|
1290
|
+
}
|
|
1291
|
+
]
|
|
1292
|
+
},
|
|
1293
|
+
{
|
|
1294
|
+
"kind": "method",
|
|
1295
|
+
"name": "deleteWorkspace",
|
|
1296
|
+
"return": {
|
|
1297
|
+
"type": {
|
|
1298
|
+
"text": "Promise<void>"
|
|
1299
|
+
}
|
|
1300
|
+
},
|
|
1301
|
+
"parameters": [
|
|
1302
|
+
{
|
|
1303
|
+
"name": "workspaceName",
|
|
1304
|
+
"type": {
|
|
1305
|
+
"text": "string"
|
|
1306
|
+
}
|
|
1307
|
+
}
|
|
1308
|
+
]
|
|
1309
|
+
},
|
|
1310
|
+
{
|
|
1311
|
+
"kind": "method",
|
|
1312
|
+
"name": "showDeleteConfirmation",
|
|
1313
|
+
"privacy": "private",
|
|
1314
|
+
"return": {
|
|
1315
|
+
"type": {
|
|
1316
|
+
"text": "void"
|
|
1317
|
+
}
|
|
1318
|
+
},
|
|
1319
|
+
"parameters": [
|
|
1320
|
+
{
|
|
1321
|
+
"name": "title",
|
|
1322
|
+
"type": {
|
|
1323
|
+
"text": "string"
|
|
1324
|
+
}
|
|
1325
|
+
},
|
|
1326
|
+
{
|
|
1327
|
+
"name": "body",
|
|
1328
|
+
"type": {
|
|
1329
|
+
"text": "string"
|
|
1330
|
+
}
|
|
1331
|
+
},
|
|
1332
|
+
{
|
|
1333
|
+
"name": "actionFunction",
|
|
1334
|
+
"type": {
|
|
1335
|
+
"text": "() => void"
|
|
1336
|
+
}
|
|
1337
|
+
},
|
|
1338
|
+
{
|
|
1339
|
+
"name": "dialogBoundary",
|
|
1340
|
+
"type": {
|
|
1341
|
+
"text": "HTMLElement"
|
|
1342
|
+
}
|
|
1343
|
+
}
|
|
1344
|
+
]
|
|
1345
|
+
},
|
|
1346
|
+
{
|
|
1347
|
+
"kind": "method",
|
|
1348
|
+
"name": "confirmDeleteWorkspace",
|
|
1349
|
+
"return": {
|
|
1350
|
+
"type": {
|
|
1351
|
+
"text": "void"
|
|
1352
|
+
}
|
|
1353
|
+
},
|
|
1354
|
+
"parameters": [
|
|
1355
|
+
{
|
|
1356
|
+
"name": "workspaceName",
|
|
1357
|
+
"type": {
|
|
1358
|
+
"text": "string"
|
|
1359
|
+
}
|
|
1360
|
+
}
|
|
1361
|
+
]
|
|
1362
|
+
},
|
|
1363
|
+
{
|
|
1364
|
+
"kind": "method",
|
|
1365
|
+
"name": "modifySharedWorkspace",
|
|
1366
|
+
"return": {
|
|
1367
|
+
"type": {
|
|
1368
|
+
"text": "Promise<void>"
|
|
1369
|
+
}
|
|
1370
|
+
},
|
|
1371
|
+
"parameters": [
|
|
1372
|
+
{
|
|
1373
|
+
"name": "sharedWorkspace",
|
|
1374
|
+
"type": {
|
|
1375
|
+
"text": "SharedWorkspace"
|
|
1376
|
+
}
|
|
1377
|
+
}
|
|
1378
|
+
]
|
|
1379
|
+
},
|
|
1380
|
+
{
|
|
1381
|
+
"kind": "method",
|
|
1382
|
+
"name": "deleteSharedWorkspace",
|
|
1383
|
+
"return": {
|
|
1384
|
+
"type": {
|
|
1385
|
+
"text": "Promise<void>"
|
|
1386
|
+
}
|
|
1387
|
+
},
|
|
1388
|
+
"parameters": [
|
|
1389
|
+
{
|
|
1390
|
+
"name": "sharedWorkspace",
|
|
1391
|
+
"type": {
|
|
1392
|
+
"text": "SharedWorkspace"
|
|
1393
|
+
}
|
|
1394
|
+
}
|
|
1395
|
+
]
|
|
1396
|
+
},
|
|
1397
|
+
{
|
|
1398
|
+
"kind": "method",
|
|
1399
|
+
"name": "confirmDeleteSharedWorkspace",
|
|
1400
|
+
"return": {
|
|
1401
|
+
"type": {
|
|
1402
|
+
"text": "void"
|
|
1403
|
+
}
|
|
1404
|
+
},
|
|
1405
|
+
"parameters": [
|
|
1406
|
+
{
|
|
1407
|
+
"name": "sharedWorkspace",
|
|
1408
|
+
"type": {
|
|
1409
|
+
"text": "SharedWorkspace"
|
|
1410
|
+
}
|
|
1411
|
+
}
|
|
1412
|
+
]
|
|
1413
|
+
},
|
|
1414
|
+
{
|
|
1415
|
+
"kind": "method",
|
|
1416
|
+
"name": "shareExistingWorkspace",
|
|
1417
|
+
"return": {
|
|
1418
|
+
"type": {
|
|
1419
|
+
"text": "Promise<void>"
|
|
1420
|
+
}
|
|
1421
|
+
},
|
|
1422
|
+
"parameters": [
|
|
1423
|
+
{
|
|
1424
|
+
"name": "workspaceName",
|
|
1425
|
+
"type": {
|
|
1426
|
+
"text": "string"
|
|
1427
|
+
}
|
|
1428
|
+
}
|
|
1429
|
+
]
|
|
1430
|
+
},
|
|
1431
|
+
{
|
|
1432
|
+
"kind": "method",
|
|
1433
|
+
"name": "openSaveDialog",
|
|
1434
|
+
"return": {
|
|
1435
|
+
"type": {
|
|
1436
|
+
"text": "Promise<void>"
|
|
1437
|
+
}
|
|
1438
|
+
}
|
|
1439
|
+
},
|
|
1440
|
+
{
|
|
1441
|
+
"kind": "method",
|
|
1442
|
+
"name": "isWorkspaceExisting",
|
|
1443
|
+
"return": {
|
|
1444
|
+
"type": {
|
|
1445
|
+
"text": "boolean"
|
|
1446
|
+
}
|
|
1447
|
+
},
|
|
1448
|
+
"parameters": [
|
|
1449
|
+
{
|
|
1450
|
+
"name": "workspaceName",
|
|
1451
|
+
"type": {
|
|
1452
|
+
"text": "string"
|
|
1453
|
+
}
|
|
1454
|
+
}
|
|
1455
|
+
]
|
|
1456
|
+
},
|
|
1457
|
+
{
|
|
1458
|
+
"kind": "method",
|
|
1459
|
+
"name": "saveModeChanged",
|
|
1460
|
+
"return": {
|
|
1461
|
+
"type": {
|
|
1462
|
+
"text": "void"
|
|
1463
|
+
}
|
|
1464
|
+
},
|
|
1465
|
+
"parameters": [
|
|
1466
|
+
{
|
|
1467
|
+
"name": "oldValue",
|
|
1468
|
+
"type": {
|
|
1469
|
+
"text": "string"
|
|
1470
|
+
}
|
|
1471
|
+
},
|
|
1472
|
+
{
|
|
1473
|
+
"name": "newValue",
|
|
1474
|
+
"type": {
|
|
1475
|
+
"text": "string"
|
|
1476
|
+
}
|
|
1477
|
+
}
|
|
1478
|
+
]
|
|
1479
|
+
},
|
|
1480
|
+
{
|
|
1481
|
+
"kind": "method",
|
|
1482
|
+
"name": "selectedWorkspaceToOverwriteChanged",
|
|
1483
|
+
"return": {
|
|
1484
|
+
"type": {
|
|
1485
|
+
"text": "void"
|
|
1486
|
+
}
|
|
1487
|
+
},
|
|
1488
|
+
"parameters": [
|
|
1489
|
+
{
|
|
1490
|
+
"name": "oldValue",
|
|
1491
|
+
"type": {
|
|
1492
|
+
"text": "string"
|
|
1493
|
+
}
|
|
1494
|
+
},
|
|
1495
|
+
{
|
|
1496
|
+
"name": "newValue",
|
|
1497
|
+
"type": {
|
|
1498
|
+
"text": "string"
|
|
1499
|
+
}
|
|
1500
|
+
}
|
|
1501
|
+
]
|
|
1502
|
+
},
|
|
1503
|
+
{
|
|
1504
|
+
"kind": "method",
|
|
1505
|
+
"name": "openLoadDialog",
|
|
1506
|
+
"return": {
|
|
1507
|
+
"type": {
|
|
1508
|
+
"text": "void"
|
|
1509
|
+
}
|
|
1510
|
+
}
|
|
1511
|
+
},
|
|
1512
|
+
{
|
|
1513
|
+
"kind": "method",
|
|
1514
|
+
"name": "closeSaveDialog",
|
|
1515
|
+
"return": {
|
|
1516
|
+
"type": {
|
|
1517
|
+
"text": "void"
|
|
1518
|
+
}
|
|
1519
|
+
}
|
|
1520
|
+
},
|
|
1521
|
+
{
|
|
1522
|
+
"kind": "method",
|
|
1523
|
+
"name": "closeLoadDialog",
|
|
1524
|
+
"return": {
|
|
1525
|
+
"type": {
|
|
1526
|
+
"text": "void"
|
|
1527
|
+
}
|
|
1528
|
+
}
|
|
1529
|
+
},
|
|
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
|
+
{
|
|
1570
|
+
"kind": "method",
|
|
1571
|
+
"name": "templateChanged",
|
|
1572
|
+
"privacy": "protected",
|
|
1573
|
+
"return": {
|
|
1574
|
+
"type": {
|
|
1575
|
+
"text": "void"
|
|
1576
|
+
}
|
|
1577
|
+
},
|
|
1578
|
+
"inheritedFrom": {
|
|
1579
|
+
"name": "FoundationElement",
|
|
1580
|
+
"module": "src/foundation-element/foundation-element.ts"
|
|
1581
|
+
}
|
|
1582
|
+
},
|
|
1583
|
+
{
|
|
1584
|
+
"kind": "field",
|
|
1585
|
+
"name": "styles",
|
|
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
|
+
}
|
|
1595
|
+
},
|
|
1596
|
+
{
|
|
1597
|
+
"kind": "method",
|
|
1598
|
+
"name": "stylesChanged",
|
|
1599
|
+
"privacy": "protected",
|
|
1600
|
+
"return": {
|
|
1601
|
+
"type": {
|
|
1602
|
+
"text": "void"
|
|
1603
|
+
}
|
|
1604
|
+
},
|
|
1605
|
+
"inheritedFrom": {
|
|
1606
|
+
"name": "FoundationElement",
|
|
1607
|
+
"module": "src/foundation-element/foundation-element.ts"
|
|
1608
|
+
}
|
|
1609
|
+
},
|
|
1610
|
+
{
|
|
1611
|
+
"kind": "method",
|
|
1612
|
+
"name": "compose",
|
|
1613
|
+
"privacy": "public",
|
|
1614
|
+
"static": true,
|
|
1615
|
+
"return": {
|
|
1616
|
+
"type": {
|
|
1617
|
+
"text": "(\n overrideDefinition?: OverrideFoundationElementDefinition<T>\n ) => FoundationElementRegistry<T, K>"
|
|
1618
|
+
}
|
|
1619
|
+
},
|
|
1620
|
+
"parameters": [
|
|
1621
|
+
{
|
|
1622
|
+
"name": "this",
|
|
1623
|
+
"type": {
|
|
1624
|
+
"text": "K"
|
|
1625
|
+
}
|
|
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
|
+
}
|
|
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
|
+
}
|
|
1640
|
+
}
|
|
1641
|
+
],
|
|
1642
|
+
"superclass": {
|
|
1643
|
+
"name": "FoundationElement",
|
|
1644
|
+
"package": "@genesislcap/web-core"
|
|
1645
|
+
},
|
|
1646
|
+
"tagName": "workspace-manager",
|
|
1647
|
+
"customElement": true
|
|
1648
|
+
}
|
|
1649
|
+
],
|
|
1650
|
+
"exports": [
|
|
1651
|
+
{
|
|
1652
|
+
"kind": "js",
|
|
1653
|
+
"name": "WorkspaceManager",
|
|
1654
|
+
"declaration": {
|
|
1655
|
+
"name": "WorkspaceManager",
|
|
1656
|
+
"module": "src/workspace-manager/workspace-manager.ts"
|
|
1657
|
+
}
|
|
1658
|
+
},
|
|
1659
|
+
{
|
|
1660
|
+
"kind": "custom-element-definition",
|
|
1661
|
+
"name": "workspace-manager",
|
|
1662
|
+
"declaration": {
|
|
1663
|
+
"name": "WorkspaceManager",
|
|
1664
|
+
"module": "src/workspace-manager/workspace-manager.ts"
|
|
1665
|
+
}
|
|
1666
|
+
}
|
|
1667
|
+
]
|
|
1668
|
+
},
|
|
1669
|
+
{
|
|
1670
|
+
"kind": "javascript-module",
|
|
1671
|
+
"path": "src/workspace/grid-register/grid-register.template.ts",
|
|
1672
|
+
"declarations": [
|
|
1673
|
+
{
|
|
1674
|
+
"kind": "variable",
|
|
1675
|
+
"name": "GridRegisterTemplate",
|
|
1676
|
+
"type": {
|
|
1677
|
+
"text": "ViewTemplate<GridRegister>"
|
|
1678
|
+
},
|
|
1679
|
+
"default": "html`\n <slot></slot>\n`"
|
|
1680
|
+
}
|
|
1681
|
+
],
|
|
1682
|
+
"exports": [
|
|
1683
|
+
{
|
|
1684
|
+
"kind": "js",
|
|
1685
|
+
"name": "GridRegisterTemplate",
|
|
1686
|
+
"declaration": {
|
|
1687
|
+
"name": "GridRegisterTemplate",
|
|
1688
|
+
"module": "src/workspace/grid-register/grid-register.template.ts"
|
|
1689
|
+
}
|
|
1690
|
+
}
|
|
1691
|
+
]
|
|
1692
|
+
},
|
|
1693
|
+
{
|
|
1694
|
+
"kind": "javascript-module",
|
|
1695
|
+
"path": "src/workspace/grid-register/grid-register.ts",
|
|
1696
|
+
"declarations": [
|
|
1697
|
+
{
|
|
1698
|
+
"kind": "class",
|
|
1699
|
+
"description": "Registers an AG Grid instance so workspace state can apply/load it.",
|
|
1700
|
+
"name": "GridRegister",
|
|
1701
|
+
"members": [
|
|
1702
|
+
{
|
|
1703
|
+
"kind": "field",
|
|
1704
|
+
"name": "gridKey",
|
|
1705
|
+
"type": {
|
|
1706
|
+
"text": "string"
|
|
1707
|
+
}
|
|
1708
|
+
},
|
|
1709
|
+
{
|
|
1710
|
+
"kind": "field",
|
|
1711
|
+
"name": "designSystemPrefix",
|
|
1712
|
+
"type": {
|
|
1713
|
+
"text": "string"
|
|
1714
|
+
},
|
|
1715
|
+
"default": "'rapid'"
|
|
1716
|
+
},
|
|
1717
|
+
{
|
|
1718
|
+
"kind": "field",
|
|
1719
|
+
"name": "gridRegistry",
|
|
1720
|
+
"type": {
|
|
1721
|
+
"text": "GridRegistry"
|
|
1722
|
+
}
|
|
1723
|
+
},
|
|
1724
|
+
{
|
|
1725
|
+
"kind": "field",
|
|
1726
|
+
"name": "workspaceState",
|
|
1727
|
+
"type": {
|
|
1728
|
+
"text": "WorkspaceState"
|
|
1729
|
+
}
|
|
1730
|
+
},
|
|
1731
|
+
{
|
|
1732
|
+
"kind": "field",
|
|
1733
|
+
"name": "gridElement",
|
|
1734
|
+
"type": {
|
|
1735
|
+
"text": "GridPro | null"
|
|
1736
|
+
},
|
|
1737
|
+
"privacy": "private",
|
|
1738
|
+
"default": "null"
|
|
1739
|
+
},
|
|
1740
|
+
{
|
|
1741
|
+
"kind": "field",
|
|
1742
|
+
"name": "gridApi",
|
|
1743
|
+
"type": {
|
|
1744
|
+
"text": "GridApi | null"
|
|
1745
|
+
},
|
|
1746
|
+
"privacy": "private",
|
|
1747
|
+
"default": "null"
|
|
1748
|
+
},
|
|
1749
|
+
{
|
|
1750
|
+
"kind": "field",
|
|
1751
|
+
"name": "columnApi",
|
|
1752
|
+
"type": {
|
|
1753
|
+
"text": "ColumnApi | null"
|
|
1754
|
+
},
|
|
1755
|
+
"privacy": "private",
|
|
1756
|
+
"default": "null"
|
|
1757
|
+
},
|
|
1758
|
+
{
|
|
1759
|
+
"kind": "method",
|
|
1760
|
+
"name": "findAndRegisterGrid",
|
|
1761
|
+
"privacy": "private",
|
|
1762
|
+
"return": {
|
|
1763
|
+
"type": {
|
|
1764
|
+
"text": "void"
|
|
1765
|
+
}
|
|
1766
|
+
}
|
|
1767
|
+
},
|
|
1768
|
+
{
|
|
1769
|
+
"kind": "field",
|
|
1770
|
+
"name": "handleGridReady",
|
|
1771
|
+
"privacy": "private",
|
|
1772
|
+
"readonly": true
|
|
1773
|
+
},
|
|
1774
|
+
{
|
|
1775
|
+
"kind": "method",
|
|
1776
|
+
"name": "attachToGridApis",
|
|
1777
|
+
"privacy": "private",
|
|
1778
|
+
"return": {
|
|
1779
|
+
"type": {
|
|
1780
|
+
"text": "void"
|
|
1781
|
+
}
|
|
1782
|
+
}
|
|
1783
|
+
},
|
|
1784
|
+
{
|
|
1785
|
+
"kind": "method",
|
|
1786
|
+
"name": "detachFromGridApis",
|
|
1787
|
+
"privacy": "private",
|
|
1788
|
+
"return": {
|
|
1789
|
+
"type": {
|
|
1790
|
+
"text": "void"
|
|
1791
|
+
}
|
|
1792
|
+
}
|
|
1793
|
+
},
|
|
1794
|
+
{
|
|
1795
|
+
"kind": "method",
|
|
1796
|
+
"name": "loadWorkspaceSettings",
|
|
1797
|
+
"privacy": "private",
|
|
1798
|
+
"return": {
|
|
1799
|
+
"type": {
|
|
1800
|
+
"text": "Promise<void>"
|
|
1801
|
+
}
|
|
1802
|
+
},
|
|
1803
|
+
"parameters": [
|
|
1804
|
+
{
|
|
1805
|
+
"name": "options",
|
|
1806
|
+
"optional": true,
|
|
1807
|
+
"type": {
|
|
1808
|
+
"text": "{ applyColumns?: boolean }"
|
|
1809
|
+
}
|
|
1810
|
+
}
|
|
1811
|
+
]
|
|
1812
|
+
},
|
|
1813
|
+
{
|
|
1814
|
+
"kind": "method",
|
|
1815
|
+
"name": "loadWorkspaceColumnState",
|
|
1816
|
+
"privacy": "private",
|
|
1817
|
+
"return": {
|
|
1818
|
+
"type": {
|
|
1819
|
+
"text": "Promise<void>"
|
|
1820
|
+
}
|
|
1821
|
+
}
|
|
1822
|
+
},
|
|
1823
|
+
{
|
|
1824
|
+
"kind": "field",
|
|
1825
|
+
"name": "_presentation",
|
|
1826
|
+
"type": {
|
|
1827
|
+
"text": "ComponentPresentation | null | undefined"
|
|
1828
|
+
},
|
|
1829
|
+
"privacy": "private",
|
|
1830
|
+
"default": "void 0",
|
|
1831
|
+
"inheritedFrom": {
|
|
1832
|
+
"name": "FoundationElement",
|
|
1833
|
+
"module": "src/foundation-element/foundation-element.ts"
|
|
1834
|
+
}
|
|
1835
|
+
},
|
|
1836
|
+
{
|
|
1837
|
+
"kind": "field",
|
|
1838
|
+
"name": "$presentation",
|
|
1839
|
+
"type": {
|
|
1840
|
+
"text": "ComponentPresentation | null"
|
|
1841
|
+
},
|
|
1842
|
+
"privacy": "public",
|
|
1843
|
+
"description": "A property which resolves the ComponentPresentation instance\nfor the current component.",
|
|
1844
|
+
"inheritedFrom": {
|
|
1845
|
+
"name": "FoundationElement",
|
|
1846
|
+
"module": "src/foundation-element/foundation-element.ts"
|
|
1847
|
+
}
|
|
1848
|
+
},
|
|
1849
|
+
{
|
|
1850
|
+
"kind": "field",
|
|
1851
|
+
"name": "template",
|
|
1852
|
+
"type": {
|
|
1853
|
+
"text": "ElementViewTemplate | void | null"
|
|
1854
|
+
},
|
|
1855
|
+
"privacy": "public",
|
|
1856
|
+
"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.",
|
|
1857
|
+
"inheritedFrom": {
|
|
1858
|
+
"name": "FoundationElement",
|
|
1859
|
+
"module": "src/foundation-element/foundation-element.ts"
|
|
1860
|
+
}
|
|
1861
|
+
},
|
|
1862
|
+
{
|
|
1863
|
+
"kind": "method",
|
|
1864
|
+
"name": "templateChanged",
|
|
1865
|
+
"privacy": "protected",
|
|
1866
|
+
"return": {
|
|
1867
|
+
"type": {
|
|
1868
|
+
"text": "void"
|
|
1869
|
+
}
|
|
1870
|
+
},
|
|
1871
|
+
"inheritedFrom": {
|
|
1872
|
+
"name": "FoundationElement",
|
|
1873
|
+
"module": "src/foundation-element/foundation-element.ts"
|
|
1874
|
+
}
|
|
1875
|
+
},
|
|
1876
|
+
{
|
|
1877
|
+
"kind": "field",
|
|
1878
|
+
"name": "styles",
|
|
1879
|
+
"type": {
|
|
1880
|
+
"text": "ElementStyles | void | null"
|
|
1881
|
+
},
|
|
1882
|
+
"privacy": "public",
|
|
1883
|
+
"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.",
|
|
1884
|
+
"inheritedFrom": {
|
|
1885
|
+
"name": "FoundationElement",
|
|
1886
|
+
"module": "src/foundation-element/foundation-element.ts"
|
|
1887
|
+
}
|
|
1888
|
+
},
|
|
1889
|
+
{
|
|
1890
|
+
"kind": "method",
|
|
1891
|
+
"name": "stylesChanged",
|
|
1892
|
+
"privacy": "protected",
|
|
1893
|
+
"return": {
|
|
1894
|
+
"type": {
|
|
1895
|
+
"text": "void"
|
|
1896
|
+
}
|
|
1897
|
+
},
|
|
1898
|
+
"inheritedFrom": {
|
|
1899
|
+
"name": "FoundationElement",
|
|
1900
|
+
"module": "src/foundation-element/foundation-element.ts"
|
|
1901
|
+
}
|
|
1902
|
+
},
|
|
1903
|
+
{
|
|
1904
|
+
"kind": "method",
|
|
1905
|
+
"name": "compose",
|
|
1906
|
+
"privacy": "public",
|
|
1907
|
+
"static": true,
|
|
1908
|
+
"return": {
|
|
1909
|
+
"type": {
|
|
1910
|
+
"text": "(\n overrideDefinition?: OverrideFoundationElementDefinition<T>\n ) => FoundationElementRegistry<T, K>"
|
|
1911
|
+
}
|
|
1912
|
+
},
|
|
1913
|
+
"parameters": [
|
|
1914
|
+
{
|
|
1915
|
+
"name": "this",
|
|
1916
|
+
"type": {
|
|
1917
|
+
"text": "K"
|
|
1918
|
+
}
|
|
1919
|
+
},
|
|
1920
|
+
{
|
|
1921
|
+
"name": "elementDefinition",
|
|
1922
|
+
"type": {
|
|
1923
|
+
"text": "T"
|
|
1924
|
+
},
|
|
1925
|
+
"description": "The definition of the element to create the registry\nfunction for."
|
|
1926
|
+
}
|
|
1927
|
+
],
|
|
1928
|
+
"description": "Defines an element registry function with a set of element definition defaults.",
|
|
1929
|
+
"inheritedFrom": {
|
|
1930
|
+
"name": "FoundationElement",
|
|
1931
|
+
"module": "src/foundation-element/foundation-element.ts"
|
|
1932
|
+
}
|
|
1933
|
+
}
|
|
1934
|
+
],
|
|
1935
|
+
"attributes": [
|
|
1936
|
+
{
|
|
1937
|
+
"name": "grid-key",
|
|
1938
|
+
"type": {
|
|
1939
|
+
"text": "string"
|
|
1940
|
+
},
|
|
1941
|
+
"fieldName": "gridKey"
|
|
1942
|
+
},
|
|
1943
|
+
{
|
|
1944
|
+
"name": "design-system-prefix",
|
|
1945
|
+
"type": {
|
|
1946
|
+
"text": "string"
|
|
1947
|
+
},
|
|
1948
|
+
"default": "'rapid'",
|
|
1949
|
+
"fieldName": "designSystemPrefix"
|
|
1950
|
+
}
|
|
1951
|
+
],
|
|
1952
|
+
"superclass": {
|
|
1953
|
+
"name": "FoundationElement",
|
|
1954
|
+
"package": "@genesislcap/web-core"
|
|
1955
|
+
},
|
|
1956
|
+
"tagName": "grid-register",
|
|
1957
|
+
"customElement": true
|
|
1958
|
+
}
|
|
1959
|
+
],
|
|
1960
|
+
"exports": [
|
|
1961
|
+
{
|
|
1962
|
+
"kind": "js",
|
|
1963
|
+
"name": "GridRegister",
|
|
1964
|
+
"declaration": {
|
|
1965
|
+
"name": "GridRegister",
|
|
1966
|
+
"module": "src/workspace/grid-register/grid-register.ts"
|
|
1967
|
+
}
|
|
1968
|
+
},
|
|
1969
|
+
{
|
|
1970
|
+
"kind": "custom-element-definition",
|
|
1971
|
+
"name": "grid-register",
|
|
1972
|
+
"declaration": {
|
|
1973
|
+
"name": "GridRegister",
|
|
1974
|
+
"module": "src/workspace/grid-register/grid-register.ts"
|
|
1975
|
+
}
|
|
1976
|
+
}
|
|
1977
|
+
]
|
|
1978
|
+
},
|
|
1979
|
+
{
|
|
1980
|
+
"kind": "javascript-module",
|
|
1981
|
+
"path": "src/workspace/grid-register/index.ts",
|
|
1982
|
+
"declarations": [],
|
|
1983
|
+
"exports": [
|
|
1984
|
+
{
|
|
1985
|
+
"kind": "js",
|
|
1986
|
+
"name": "*",
|
|
1987
|
+
"declaration": {
|
|
1988
|
+
"name": "*",
|
|
1989
|
+
"package": "./grid-register"
|
|
1990
|
+
}
|
|
1991
|
+
}
|
|
1992
|
+
]
|
|
1993
|
+
},
|
|
1994
|
+
{
|
|
1995
|
+
"kind": "javascript-module",
|
|
1996
|
+
"path": "src/workspace/layout-wrapper/index.ts",
|
|
1997
|
+
"declarations": [],
|
|
1998
|
+
"exports": [
|
|
1999
|
+
{
|
|
2000
|
+
"kind": "js",
|
|
2001
|
+
"name": "*",
|
|
2002
|
+
"declaration": {
|
|
2003
|
+
"name": "*",
|
|
2004
|
+
"package": "./layout-wrapper"
|
|
2005
|
+
}
|
|
2006
|
+
}
|
|
2007
|
+
]
|
|
2008
|
+
},
|
|
2009
|
+
{
|
|
2010
|
+
"kind": "javascript-module",
|
|
2011
|
+
"path": "src/workspace/layout-wrapper/layout-wrapper.template.ts",
|
|
2012
|
+
"declarations": [
|
|
2013
|
+
{
|
|
2014
|
+
"kind": "variable",
|
|
2015
|
+
"name": "LayoutWrapperTemplate",
|
|
2016
|
+
"type": {
|
|
2017
|
+
"text": "ViewTemplate<LayoutWrapper>"
|
|
2018
|
+
},
|
|
2019
|
+
"default": "html`\n <slot></slot>\n`"
|
|
2020
|
+
}
|
|
2021
|
+
],
|
|
2022
|
+
"exports": [
|
|
2023
|
+
{
|
|
2024
|
+
"kind": "js",
|
|
2025
|
+
"name": "LayoutWrapperTemplate",
|
|
2026
|
+
"declaration": {
|
|
2027
|
+
"name": "LayoutWrapperTemplate",
|
|
2028
|
+
"module": "src/workspace/layout-wrapper/layout-wrapper.template.ts"
|
|
2029
|
+
}
|
|
2030
|
+
}
|
|
2031
|
+
]
|
|
2032
|
+
},
|
|
2033
|
+
{
|
|
2034
|
+
"kind": "javascript-module",
|
|
2035
|
+
"path": "src/workspace/layout-wrapper/layout-wrapper.ts",
|
|
2036
|
+
"declarations": [
|
|
2037
|
+
{
|
|
2038
|
+
"kind": "class",
|
|
2039
|
+
"description": "Registers a layout instance so workspace state can apply/load it.",
|
|
2040
|
+
"name": "LayoutWrapper",
|
|
2041
|
+
"members": [
|
|
2042
|
+
{
|
|
2043
|
+
"kind": "field",
|
|
2044
|
+
"name": "layoutKey",
|
|
2045
|
+
"type": {
|
|
2046
|
+
"text": "string"
|
|
2047
|
+
}
|
|
2048
|
+
},
|
|
2049
|
+
{
|
|
2050
|
+
"kind": "field",
|
|
2051
|
+
"name": "designSystemPrefix",
|
|
2052
|
+
"type": {
|
|
2053
|
+
"text": "string"
|
|
2054
|
+
},
|
|
2055
|
+
"default": "'rapid'"
|
|
2056
|
+
},
|
|
2057
|
+
{
|
|
2058
|
+
"kind": "field",
|
|
2059
|
+
"name": "layoutRegistry",
|
|
2060
|
+
"type": {
|
|
2061
|
+
"text": "LayoutRegistry"
|
|
2062
|
+
}
|
|
2063
|
+
},
|
|
2064
|
+
{
|
|
2065
|
+
"kind": "field",
|
|
2066
|
+
"name": "layoutElement",
|
|
2067
|
+
"type": {
|
|
2068
|
+
"text": "FoundationLayout | null"
|
|
2069
|
+
},
|
|
2070
|
+
"privacy": "private",
|
|
2071
|
+
"default": "null"
|
|
2072
|
+
},
|
|
2073
|
+
{
|
|
2074
|
+
"kind": "method",
|
|
2075
|
+
"name": "findAndRegisterLayout",
|
|
2076
|
+
"privacy": "private",
|
|
2077
|
+
"return": {
|
|
2078
|
+
"type": {
|
|
2079
|
+
"text": "void"
|
|
2080
|
+
}
|
|
2081
|
+
}
|
|
2082
|
+
},
|
|
2083
|
+
{
|
|
2084
|
+
"kind": "field",
|
|
2085
|
+
"name": "_presentation",
|
|
2086
|
+
"type": {
|
|
2087
|
+
"text": "ComponentPresentation | null | undefined"
|
|
2088
|
+
},
|
|
2089
|
+
"privacy": "private",
|
|
2090
|
+
"default": "void 0",
|
|
2091
|
+
"inheritedFrom": {
|
|
2092
|
+
"name": "FoundationElement",
|
|
2093
|
+
"module": "src/foundation-element/foundation-element.ts"
|
|
2094
|
+
}
|
|
2095
|
+
},
|
|
2096
|
+
{
|
|
2097
|
+
"kind": "field",
|
|
2098
|
+
"name": "$presentation",
|
|
2099
|
+
"type": {
|
|
2100
|
+
"text": "ComponentPresentation | null"
|
|
2101
|
+
},
|
|
2102
|
+
"privacy": "public",
|
|
2103
|
+
"description": "A property which resolves the ComponentPresentation instance\nfor the current component.",
|
|
2104
|
+
"inheritedFrom": {
|
|
2105
|
+
"name": "FoundationElement",
|
|
2106
|
+
"module": "src/foundation-element/foundation-element.ts"
|
|
2107
|
+
}
|
|
2108
|
+
},
|
|
2109
|
+
{
|
|
2110
|
+
"kind": "field",
|
|
2111
|
+
"name": "template",
|
|
2112
|
+
"type": {
|
|
2113
|
+
"text": "ElementViewTemplate | void | null"
|
|
2114
|
+
},
|
|
2115
|
+
"privacy": "public",
|
|
2116
|
+
"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.",
|
|
2117
|
+
"inheritedFrom": {
|
|
2118
|
+
"name": "FoundationElement",
|
|
2119
|
+
"module": "src/foundation-element/foundation-element.ts"
|
|
2120
|
+
}
|
|
2121
|
+
},
|
|
2122
|
+
{
|
|
2123
|
+
"kind": "method",
|
|
2124
|
+
"name": "templateChanged",
|
|
2125
|
+
"privacy": "protected",
|
|
2126
|
+
"return": {
|
|
2127
|
+
"type": {
|
|
2128
|
+
"text": "void"
|
|
2129
|
+
}
|
|
2130
|
+
},
|
|
2131
|
+
"inheritedFrom": {
|
|
2132
|
+
"name": "FoundationElement",
|
|
2133
|
+
"module": "src/foundation-element/foundation-element.ts"
|
|
2134
|
+
}
|
|
2135
|
+
},
|
|
2136
|
+
{
|
|
2137
|
+
"kind": "field",
|
|
2138
|
+
"name": "styles",
|
|
2139
|
+
"type": {
|
|
2140
|
+
"text": "ElementStyles | void | null"
|
|
2141
|
+
},
|
|
2142
|
+
"privacy": "public",
|
|
2143
|
+
"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.",
|
|
2144
|
+
"inheritedFrom": {
|
|
2145
|
+
"name": "FoundationElement",
|
|
2146
|
+
"module": "src/foundation-element/foundation-element.ts"
|
|
2147
|
+
}
|
|
2148
|
+
},
|
|
2149
|
+
{
|
|
2150
|
+
"kind": "method",
|
|
2151
|
+
"name": "stylesChanged",
|
|
2152
|
+
"privacy": "protected",
|
|
2153
|
+
"return": {
|
|
2154
|
+
"type": {
|
|
2155
|
+
"text": "void"
|
|
2156
|
+
}
|
|
2157
|
+
},
|
|
2158
|
+
"inheritedFrom": {
|
|
2159
|
+
"name": "FoundationElement",
|
|
2160
|
+
"module": "src/foundation-element/foundation-element.ts"
|
|
2161
|
+
}
|
|
2162
|
+
},
|
|
2163
|
+
{
|
|
2164
|
+
"kind": "method",
|
|
2165
|
+
"name": "compose",
|
|
2166
|
+
"privacy": "public",
|
|
2167
|
+
"static": true,
|
|
2168
|
+
"return": {
|
|
2169
|
+
"type": {
|
|
2170
|
+
"text": "(\n overrideDefinition?: OverrideFoundationElementDefinition<T>\n ) => FoundationElementRegistry<T, K>"
|
|
2171
|
+
}
|
|
2172
|
+
},
|
|
2173
|
+
"parameters": [
|
|
2174
|
+
{
|
|
2175
|
+
"name": "this",
|
|
2176
|
+
"type": {
|
|
2177
|
+
"text": "K"
|
|
2178
|
+
}
|
|
2179
|
+
},
|
|
2180
|
+
{
|
|
2181
|
+
"name": "elementDefinition",
|
|
2182
|
+
"type": {
|
|
2183
|
+
"text": "T"
|
|
2184
|
+
},
|
|
2185
|
+
"description": "The definition of the element to create the registry\nfunction for."
|
|
2186
|
+
}
|
|
2187
|
+
],
|
|
2188
|
+
"description": "Defines an element registry function with a set of element definition defaults.",
|
|
2189
|
+
"inheritedFrom": {
|
|
2190
|
+
"name": "FoundationElement",
|
|
2191
|
+
"module": "src/foundation-element/foundation-element.ts"
|
|
2192
|
+
}
|
|
2193
|
+
}
|
|
2194
|
+
],
|
|
2195
|
+
"attributes": [
|
|
2196
|
+
{
|
|
2197
|
+
"name": "layout-key",
|
|
2198
|
+
"type": {
|
|
2199
|
+
"text": "string"
|
|
2200
|
+
},
|
|
2201
|
+
"fieldName": "layoutKey"
|
|
2202
|
+
},
|
|
2203
|
+
{
|
|
2204
|
+
"name": "design-system-prefix",
|
|
2205
|
+
"type": {
|
|
2206
|
+
"text": "string"
|
|
2207
|
+
},
|
|
2208
|
+
"default": "'rapid'",
|
|
2209
|
+
"fieldName": "designSystemPrefix"
|
|
2210
|
+
}
|
|
2211
|
+
],
|
|
2212
|
+
"superclass": {
|
|
2213
|
+
"name": "FoundationElement",
|
|
2214
|
+
"package": "@genesislcap/web-core"
|
|
2215
|
+
},
|
|
2216
|
+
"tagName": "layout-register",
|
|
2217
|
+
"customElement": true
|
|
2218
|
+
}
|
|
2219
|
+
],
|
|
2220
|
+
"exports": [
|
|
2221
|
+
{
|
|
2222
|
+
"kind": "js",
|
|
2223
|
+
"name": "LayoutWrapper",
|
|
2224
|
+
"declaration": {
|
|
2225
|
+
"name": "LayoutWrapper",
|
|
2226
|
+
"module": "src/workspace/layout-wrapper/layout-wrapper.ts"
|
|
2227
|
+
}
|
|
2228
|
+
},
|
|
2229
|
+
{
|
|
2230
|
+
"kind": "custom-element-definition",
|
|
2231
|
+
"name": "layout-register",
|
|
2232
|
+
"declaration": {
|
|
2233
|
+
"name": "LayoutWrapper",
|
|
2234
|
+
"module": "src/workspace/layout-wrapper/layout-wrapper.ts"
|
|
2235
|
+
}
|
|
2236
|
+
}
|
|
2237
|
+
]
|
|
2238
|
+
}
|
|
2239
|
+
]
|
|
2240
|
+
}
|