@interopio/workspaces-api 3.5.0 → 3.5.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/changelog.md +4 -0
- package/dist/workspaces.es.js +34 -2
- package/dist/workspaces.es.js.map +1 -1
- package/dist/workspaces.umd.js +34 -2
- package/dist/workspaces.umd.js.map +1 -1
- package/dist/workspaces.umd.min.js +1 -1
- package/package.json +2 -2
- package/workspaces.d.ts +88 -16
package/workspaces.d.ts
CHANGED
|
@@ -235,6 +235,9 @@ export namespace IOConnectWorkspaces {
|
|
|
235
235
|
/** The possible window states for a workspaces frame. */
|
|
236
236
|
export type FrameState = "maximized" | "minimized" | "normal";
|
|
237
237
|
|
|
238
|
+
/** The possible types of window dragging inside a workspaces frame */
|
|
239
|
+
export type WindowDragMode = "keepInside" | "autoEject";
|
|
240
|
+
|
|
238
241
|
/** An object describing the options of the builder. */
|
|
239
242
|
export interface BuilderConfig {
|
|
240
243
|
/** A string defining the type of the builder. */
|
|
@@ -252,7 +255,10 @@ export namespace IOConnectWorkspaces {
|
|
|
252
255
|
/** Position of the workspace in relation to it's siblings in the frame. */
|
|
253
256
|
position?: number;
|
|
254
257
|
|
|
255
|
-
/**
|
|
258
|
+
/**
|
|
259
|
+
* Provides the opportunity to open a workspace with no tab header
|
|
260
|
+
* @default false
|
|
261
|
+
*/
|
|
256
262
|
noTabHeader?: boolean;
|
|
257
263
|
|
|
258
264
|
/** Used for replacing the specified workspace instead of creating a new one */
|
|
@@ -261,53 +267,99 @@ export namespace IOConnectWorkspaces {
|
|
|
261
267
|
/** Controls when the windows inside this workspace should load when the workspace is created or restored */
|
|
262
268
|
loadStrategy?: LoadingStrategy;
|
|
263
269
|
|
|
264
|
-
/**
|
|
270
|
+
/**
|
|
271
|
+
* Controls the users ability to drop outside windows in the workspace
|
|
272
|
+
* @default true
|
|
273
|
+
*/
|
|
265
274
|
allowDrop?: boolean;
|
|
266
275
|
|
|
267
|
-
/**
|
|
276
|
+
/**
|
|
277
|
+
* Controls the users ability to drop windows in the left-most zone of the workspace
|
|
278
|
+
* @default true
|
|
279
|
+
*/
|
|
268
280
|
allowDropLeft?: boolean;
|
|
269
281
|
|
|
270
|
-
/**
|
|
282
|
+
/**
|
|
283
|
+
* Controls the users ability to drop windows in the top-most zone of the workspace
|
|
284
|
+
* @default true
|
|
285
|
+
*/
|
|
271
286
|
allowDropTop?: boolean;
|
|
272
287
|
|
|
273
|
-
/**
|
|
288
|
+
/**
|
|
289
|
+
* Controls the users ability to drop windows in the right-most zone of the workspace
|
|
290
|
+
* @default true
|
|
291
|
+
*/
|
|
274
292
|
allowDropRight?: boolean;
|
|
275
293
|
|
|
276
|
-
/**
|
|
294
|
+
/**
|
|
295
|
+
* Controls the users ability to drop windows in the bottom-most zone of the workspace
|
|
296
|
+
* @default true
|
|
297
|
+
*/
|
|
277
298
|
allowDropBottom?: boolean;
|
|
278
299
|
|
|
279
|
-
/**
|
|
300
|
+
/**
|
|
301
|
+
* Controls the users ability to extract windows from the workspace
|
|
302
|
+
* @default true
|
|
303
|
+
*/
|
|
280
304
|
allowExtract?: boolean;
|
|
281
305
|
|
|
282
|
-
/**
|
|
306
|
+
/**
|
|
307
|
+
* Control the users ability to reorder windows in the workspace
|
|
308
|
+
* @default true
|
|
309
|
+
*/
|
|
283
310
|
allowWindowReorder?: boolean;
|
|
284
311
|
|
|
285
|
-
/**
|
|
312
|
+
/**
|
|
313
|
+
* Controls the visibility of the save workspace button located in the workspace tab
|
|
314
|
+
* @default true
|
|
315
|
+
*/
|
|
286
316
|
showSaveButton?: boolean;
|
|
287
317
|
|
|
288
|
-
/**
|
|
318
|
+
/**
|
|
319
|
+
* Controls whether a workspace tab can be reordered in the frame
|
|
320
|
+
* @default true
|
|
321
|
+
*/
|
|
289
322
|
allowWorkspaceTabReorder?: boolean;
|
|
290
323
|
|
|
291
|
-
/**
|
|
324
|
+
/**
|
|
325
|
+
* Controls whether a workspace tab can be extracted from the frame (available only for **io.Connect Desktop**).
|
|
326
|
+
* @default true
|
|
327
|
+
*/
|
|
292
328
|
allowWorkspaceTabExtract?: boolean;
|
|
293
329
|
|
|
294
|
-
/**
|
|
330
|
+
/**
|
|
331
|
+
* Controls the visibility of the close button located in the workspaces tab
|
|
332
|
+
* @default true
|
|
333
|
+
*/
|
|
295
334
|
showCloseButton?: boolean;
|
|
296
335
|
|
|
297
|
-
/**
|
|
336
|
+
/**
|
|
337
|
+
* Prevents the splitters for being draggable, so the windows cannot be resized
|
|
338
|
+
* @default true
|
|
339
|
+
*/
|
|
298
340
|
allowSplitters?: boolean;
|
|
299
341
|
|
|
300
|
-
/**
|
|
342
|
+
/**
|
|
343
|
+
* Controls the visibility of all close button located in the windows' tab elements
|
|
344
|
+
* @default true
|
|
345
|
+
*/
|
|
301
346
|
showWindowCloseButtons?: boolean;
|
|
302
347
|
|
|
303
|
-
/**
|
|
348
|
+
/**
|
|
349
|
+
* Controls the visibility of all eject buttons located in the groups' headers
|
|
350
|
+
* @default true
|
|
351
|
+
*/
|
|
304
352
|
showEjectButtons?: boolean;
|
|
305
353
|
|
|
306
|
-
/**
|
|
354
|
+
/**
|
|
355
|
+
* Controls the visibility of all the add window buttons (the ones with the plus icon) located in the group headers
|
|
356
|
+
* @default true
|
|
357
|
+
*/
|
|
307
358
|
showAddWindowButtons?: boolean;
|
|
308
359
|
|
|
309
360
|
/**
|
|
310
361
|
* Controls whether the workspace will be opened in a pinned or in a normal state
|
|
362
|
+
* @default false
|
|
311
363
|
*/
|
|
312
364
|
isPinned?: boolean;
|
|
313
365
|
|
|
@@ -318,6 +370,7 @@ export namespace IOConnectWorkspaces {
|
|
|
318
370
|
|
|
319
371
|
/**
|
|
320
372
|
* Controls whether the workspace will be focused or not in the frame when opened
|
|
373
|
+
* @default true
|
|
321
374
|
*/
|
|
322
375
|
isSelected?: boolean;
|
|
323
376
|
|
|
@@ -325,6 +378,12 @@ export namespace IOConnectWorkspaces {
|
|
|
325
378
|
* Specifies where in the frame should the workspace be placed
|
|
326
379
|
*/
|
|
327
380
|
positionIndex?: number;
|
|
381
|
+
|
|
382
|
+
/**
|
|
383
|
+
* Mode for dragging the windows that are part of the Workspace. If set to `"autoEject"` (available only for **io.Connect Desktop**), when the user drags a Workspace window, it will be ejected from the Workspace during the dragging operation and the user will be able to drop it back inside the Workspace, or out of the Workspace.
|
|
384
|
+
* If set to `"keepInside"`, the window won't be ejected from the Workspace when being dragged and the user will be able to drop it only inside the Workspace.
|
|
385
|
+
*/
|
|
386
|
+
windowDragMode?: "keepInside" | "autoEject";
|
|
328
387
|
}
|
|
329
388
|
|
|
330
389
|
/** A config object which provides fine grain control when locking a workspace */
|
|
@@ -1153,6 +1212,13 @@ export namespace IOConnectWorkspaces {
|
|
|
1153
1212
|
*/
|
|
1154
1213
|
lock(config?: WorkspaceLockConfig | ((config: WorkspaceLockConfig) => WorkspaceLockConfig)): Promise<void>;
|
|
1155
1214
|
|
|
1215
|
+
/**
|
|
1216
|
+
* Sets the mode for dragging the windows that are part of the Workspace. *Available only for **io.Connect Desktop**.*
|
|
1217
|
+
* @param mode Mode for dragging the Workspace windows. If set to `"autoEject"`, when the user drags a Workspace window, it will be ejected from the Workspace during the dragging operation and the user will be able to drop it back inside the Workspace, or out of the Workspace.
|
|
1218
|
+
* If set to `"keepInside"`, the window won't be ejected from the Workspace when being dragged and the user will be able to drop it only inside the Workspace.
|
|
1219
|
+
*/
|
|
1220
|
+
setWindowDragMode(mode: "keepInside" | "autoEject"): Promise<void>;
|
|
1221
|
+
|
|
1156
1222
|
/**
|
|
1157
1223
|
* Notifies when this workspace is closed.
|
|
1158
1224
|
* @param callback Callback function to handle the event.
|
|
@@ -1210,6 +1276,12 @@ export namespace IOConnectWorkspaces {
|
|
|
1210
1276
|
*/
|
|
1211
1277
|
isPinned?: boolean;
|
|
1212
1278
|
|
|
1279
|
+
/**
|
|
1280
|
+
* Mode for dragging the windows that are part of the Workspace. If set to `"autoEject"` (available only for **io.Connect Desktop**), when the user drags a Workspace window, it will be ejected from the Workspace during the dragging operation and the user will be able to drop it back inside the Workspace, or out of the Workspace.
|
|
1281
|
+
* If set to `"keepInside"`, the window won't be ejected from the Workspace when being dragged and the user will be able to drop it only inside the Workspace.
|
|
1282
|
+
*/
|
|
1283
|
+
windowDragMode?: "keepInside" | "autoEject";
|
|
1284
|
+
|
|
1213
1285
|
/**
|
|
1214
1286
|
* The icon related to the workspace in the same format as it was passed
|
|
1215
1287
|
*/
|