@disy/cadenza.js 2.6.0 → 2.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +2 -0
- package/apidoc/assets/search.js +1 -1
- package/apidoc/classes/AbortError.html +2 -2
- package/apidoc/classes/CadenzaClient.html +19 -17
- package/apidoc/classes/CadenzaError.html +3 -3
- package/apidoc/functions/cadenza.html +1 -1
- package/apidoc/index.html +4 -1
- package/apidoc/interfaces/CadenzaEvent.html +3 -3
- package/apidoc/interfaces/ExternalLinkKey.html +3 -3
- package/apidoc/interfaces/Geometry.html +2 -2
- package/apidoc/interfaces/PageSource.html +2 -2
- package/apidoc/types/CadenzaChangeSelectionEvent.html +2 -1
- package/apidoc/types/CadenzaDrillThroughEvent.html +1 -1
- package/apidoc/types/CadenzaEditGeometryCancelEvent.html +1 -1
- package/apidoc/types/CadenzaEditGeometryOkEvent.html +1 -1
- package/apidoc/types/CadenzaEditGeometryUpdateEvent.html +1 -1
- package/apidoc/types/CadenzaErrorEvent.html +1 -1
- package/apidoc/types/CadenzaEventByType.html +1 -1
- package/apidoc/types/CadenzaEventType.html +1 -1
- package/apidoc/types/CadenzaObjectInfoEvent.html +1 -1
- package/apidoc/types/CadenzaSelectObjectsCancelEvent.html +1 -1
- package/apidoc/types/CadenzaSelectObjectsOkEvent.html +2 -1
- package/apidoc/types/DataType.html +1 -1
- package/apidoc/types/EmbeddingTargetId.html +1 -1
- package/apidoc/types/Extent.html +1 -1
- package/apidoc/types/FilterVariables.html +1 -1
- package/apidoc/types/GeometryType.html +1 -1
- package/apidoc/types/GlobalId.html +1 -1
- package/apidoc/types/OpaqueString.html +1 -1
- package/apidoc/types/OperationMode.html +1 -1
- package/apidoc/types/TablePart.html +1 -1
- package/apidoc/types/UiFeature.html +1 -1
- package/apidoc/types/WorkbookLayerPath.html +1 -1
- package/cadenza.d.ts +18 -2
- package/cadenza.js +17 -2
- package/package.json +1 -1
- package/sandbox.html +3 -0
package/cadenza.d.ts
CHANGED
|
@@ -309,6 +309,10 @@ export class CadenzaClient {
|
|
|
309
309
|
filter?: FilterVariables | undefined;
|
|
310
310
|
parts?: TablePart[] | undefined;
|
|
311
311
|
} | undefined, ...args: any[]): void;
|
|
312
|
+
/**
|
|
313
|
+
* Reload the views of a worksheet.
|
|
314
|
+
*/
|
|
315
|
+
reload(): void;
|
|
312
316
|
#private;
|
|
313
317
|
}
|
|
314
318
|
/**
|
|
@@ -342,7 +346,11 @@ export class CadenzaClient {
|
|
|
342
346
|
* @property {TYPE} type - The event type
|
|
343
347
|
* @property {DETAIL} detail - Optional event details (depending on the event type)
|
|
344
348
|
*/
|
|
345
|
-
/**
|
|
349
|
+
/**
|
|
350
|
+
* @typedef {CadenzaEvent<'change:selection', undefined | {layer: WorkbookLayerPath, values: unknown[][]}>} CadenzaChangeSelectionEvent - When the user changed the selection.
|
|
351
|
+
*
|
|
352
|
+
* For a selection in a workbook map view with activated feature info, the values also include the geometries of the selected objects.
|
|
353
|
+
*/
|
|
346
354
|
/**
|
|
347
355
|
* @typedef {CadenzaEvent<'drillThrough', {context?: string, values: unknown[][]}>} CadenzaDrillThroughEvent - When the user executed a POST message drill-through.
|
|
348
356
|
* <p>
|
|
@@ -357,7 +365,11 @@ export class CadenzaClient {
|
|
|
357
365
|
/** @typedef {CadenzaEvent<'editGeometry:cancel'>} CadenzaEditGeometryCancelEvent - When the user cancelled the geometry editing. */
|
|
358
366
|
/** @typedef {CadenzaEvent<'error', {type: string, message?: string}>} CadenzaErrorEvent - An error event that is mapped to a {@link CadenzaError} */
|
|
359
367
|
/** @typedef {CadenzaEvent<'objectInfo', {layer: WorkbookLayerPath, objectInfos: {selectionIndex: number, elements: {attributePrintName: string, formattedValue: string}[]}}>} CadenzaObjectInfoEvent - When the user opened the object info flyout. */
|
|
360
|
-
/**
|
|
368
|
+
/**
|
|
369
|
+
* @typedef {CadenzaEvent<'selectObjects:ok', {layer: WorkbookLayerPath, values: unknown[][]}>} CadenzaSelectObjectsOkEvent - When the user submitted the selection.
|
|
370
|
+
*
|
|
371
|
+
* For a selection in a workbook map view with activated feature info, the values also include the geometries of the selected objects.
|
|
372
|
+
*/
|
|
361
373
|
/** @typedef {CadenzaEvent<'selectObjects:cancel'>} CadenzaSelectObjectsCancelEvent - When the user cancelled the selection. */
|
|
362
374
|
export class AbortError extends DOMException {
|
|
363
375
|
constructor();
|
|
@@ -505,6 +517,8 @@ export type CadenzaEvent<TYPE extends string, DETAIL = unknown> = {
|
|
|
505
517
|
};
|
|
506
518
|
/**
|
|
507
519
|
* - When the user changed the selection.
|
|
520
|
+
*
|
|
521
|
+
* For a selection in a workbook map view with activated feature info, the values also include the geometries of the selected objects.
|
|
508
522
|
*/
|
|
509
523
|
export type CadenzaChangeSelectionEvent = CadenzaEvent<'change:selection', undefined | {
|
|
510
524
|
layer: string[];
|
|
@@ -561,6 +575,8 @@ export type CadenzaObjectInfoEvent = CadenzaEvent<'objectInfo', {
|
|
|
561
575
|
}>;
|
|
562
576
|
/**
|
|
563
577
|
* - When the user submitted the selection.
|
|
578
|
+
*
|
|
579
|
+
* For a selection in a workbook map view with activated feature info, the values also include the geometries of the selected objects.
|
|
564
580
|
*/
|
|
565
581
|
export type CadenzaSelectObjectsOkEvent = CadenzaEvent<'selectObjects:ok', {
|
|
566
582
|
layer: string[];
|
package/cadenza.js
CHANGED
|
@@ -676,6 +676,13 @@ export class CadenzaClient {
|
|
|
676
676
|
const params = createParams({ dataType, fileName, filter, parts });
|
|
677
677
|
this.#download(resolvePath(source), params);
|
|
678
678
|
}
|
|
679
|
+
/**
|
|
680
|
+
* Reload the views of a worksheet.
|
|
681
|
+
*/
|
|
682
|
+
reload() {
|
|
683
|
+
this.#log('CadenzaClient#reload');
|
|
684
|
+
this.#postEvent('reload');
|
|
685
|
+
}
|
|
679
686
|
#download(/** @type string */ path, /** @type URLSearchParams */ params) {
|
|
680
687
|
const url = this.#createUrl(path, params);
|
|
681
688
|
const a = document.createElement('a');
|
|
@@ -901,7 +908,11 @@ function array(/** @type unknown */ value) {
|
|
|
901
908
|
* @typedef {CadenzaEvent<'change:extent', {extent: Extent}>} CadenzaChangeExtentEvent - When the user moved the map.
|
|
902
909
|
* The extent is transformed according to the `useMapSrs` option.
|
|
903
910
|
*/
|
|
904
|
-
/**
|
|
911
|
+
/**
|
|
912
|
+
* @typedef {CadenzaEvent<'change:selection', undefined | {layer: WorkbookLayerPath, values: unknown[][]}>} CadenzaChangeSelectionEvent - When the user changed the selection.
|
|
913
|
+
*
|
|
914
|
+
* For a selection in a workbook map view with activated feature info, the values also include the geometries of the selected objects.
|
|
915
|
+
*/
|
|
905
916
|
/**
|
|
906
917
|
* @typedef {CadenzaEvent<'drillThrough', {context?: string, values: unknown[][]}>} CadenzaDrillThroughEvent - When the user executed a POST message drill-through.
|
|
907
918
|
* <p>
|
|
@@ -916,7 +927,11 @@ function array(/** @type unknown */ value) {
|
|
|
916
927
|
/** @typedef {CadenzaEvent<'editGeometry:cancel'>} CadenzaEditGeometryCancelEvent - When the user cancelled the geometry editing. */
|
|
917
928
|
/** @typedef {CadenzaEvent<'error', {type: string, message?: string}>} CadenzaErrorEvent - An error event that is mapped to a {@link CadenzaError} */
|
|
918
929
|
/** @typedef {CadenzaEvent<'objectInfo', {layer: WorkbookLayerPath, objectInfos: {selectionIndex: number, elements: {attributePrintName: string, formattedValue: string}[]}}>} CadenzaObjectInfoEvent - When the user opened the object info flyout. */
|
|
919
|
-
/**
|
|
930
|
+
/**
|
|
931
|
+
* @typedef {CadenzaEvent<'selectObjects:ok', {layer: WorkbookLayerPath, values: unknown[][]}>} CadenzaSelectObjectsOkEvent - When the user submitted the selection.
|
|
932
|
+
*
|
|
933
|
+
* For a selection in a workbook map view with activated feature info, the values also include the geometries of the selected objects.
|
|
934
|
+
*/
|
|
920
935
|
/** @typedef {CadenzaEvent<'selectObjects:cancel'>} CadenzaSelectObjectsCancelEvent - When the user cancelled the selection. */
|
|
921
936
|
export class AbortError extends DOMException {
|
|
922
937
|
constructor() {
|
package/package.json
CHANGED
package/sandbox.html
CHANGED
|
@@ -139,6 +139,7 @@
|
|
|
139
139
|
showPage: data => cadenzaClient.show({ page: data.page }, getOptions(data)),
|
|
140
140
|
showMap: data => cadenzaClient.showMap(data.embeddingTargetId, getOptions(data)),
|
|
141
141
|
expandNavigator: data => cadenzaClient.expandNavigator(data.expandNavigator === 'on'),
|
|
142
|
+
reload: () => cadenzaClient.reload(),
|
|
142
143
|
getData: async data => {
|
|
143
144
|
const dataType = data.dataType;
|
|
144
145
|
const result = await cadenzaClient.getData(dataType);
|
|
@@ -261,6 +262,7 @@
|
|
|
261
262
|
<!--option value="setSelection">Set Selection</option-->
|
|
262
263
|
<!--option value="addSelection">Add Selection</option-->
|
|
263
264
|
<!--option value="removeSelection">Remove Selection</option-->
|
|
265
|
+
<option value="reload">Reload worksheet views</option>
|
|
264
266
|
</optgroup>
|
|
265
267
|
<optgroup label="Map Dialogs">
|
|
266
268
|
<option value="createGeometry">Create Geometry</option>
|
|
@@ -506,6 +508,7 @@
|
|
|
506
508
|
<template data-action="setSelection" data-common="layer,layer-selection"></template>
|
|
507
509
|
<template data-action="addSelection" data-common="layer,layer-selection"></template>
|
|
508
510
|
<template data-action="removeSelection" data-common="layer,layer-selection"></template>
|
|
511
|
+
<template data-action="reload">No Paramters needed.</template>
|
|
509
512
|
|
|
510
513
|
<template id="common-layer-selection">
|
|
511
514
|
<div>
|