jmapcloud-ng-types 1.1.25 → 2.0.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/all-enums.ts +13 -52
- package/enums.ts +89 -0
- package/index.ts +31 -41
- package/package.json +3 -2
- package/public/app.d.ts +126 -163
- package/public/draw.d.ts +2 -2
- package/public/geometry.d.ts +1 -1
- package/public/global-aliases.d.ts +0 -10
- package/public/layer.d.ts +18 -14
- package/public/measure.d.ts +1 -1
- package/public/print.d.ts +3 -3
- package/public/selection.d.ts +1 -6
- package/register-enums.ts +10 -0
- package/public/message.d.ts +0 -39
- package/public/user.d.ts +0 -13
package/all-enums.ts
CHANGED
|
@@ -7,22 +7,13 @@ export const ALL_APP_DRAW_TYPES: JAPP_DRAW_TYPES[] = [
|
|
|
7
7
|
JAPP_DRAW_TYPES.TEXT
|
|
8
8
|
]
|
|
9
9
|
|
|
10
|
-
export const ALL_APP_MEASUREMENT_SYSTEMS: JAPP_MEASUREMENT_SYSTEMS[] = [
|
|
11
|
-
JAPP_MEASUREMENT_SYSTEMS.GEODETIC,
|
|
12
|
-
JAPP_MEASUREMENT_SYSTEMS.PLANAR
|
|
13
|
-
]
|
|
10
|
+
export const ALL_APP_MEASUREMENT_SYSTEMS: JAPP_MEASUREMENT_SYSTEMS[] = [JAPP_MEASUREMENT_SYSTEMS.GEODETIC, JAPP_MEASUREMENT_SYSTEMS.PLANAR]
|
|
14
11
|
|
|
15
|
-
export const ALL_APP_DRAW_MODES: JAPP_DRAW_MODES[] = [
|
|
16
|
-
JAPP_DRAW_MODES.DRAW,
|
|
17
|
-
JAPP_DRAW_MODES.SELECT,
|
|
18
|
-
JAPP_DRAW_MODES.DELETE
|
|
19
|
-
]
|
|
12
|
+
export const ALL_APP_DRAW_MODES: JAPP_DRAW_MODES[] = [JAPP_DRAW_MODES.DRAW, JAPP_DRAW_MODES.SELECT, JAPP_DRAW_MODES.DELETE]
|
|
20
13
|
|
|
21
|
-
export const ALL_APP_GEOMETRY_WIZARD_STEPS: JAPP_GEOMETRY_WIZARD_STEPS[] = [
|
|
22
|
-
JAPP_GEOMETRY_WIZARD_STEPS.SELECT_LAYER,
|
|
23
|
-
JAPP_GEOMETRY_WIZARD_STEPS.DRAW
|
|
24
|
-
]
|
|
14
|
+
export const ALL_APP_GEOMETRY_WIZARD_STEPS: JAPP_GEOMETRY_WIZARD_STEPS[] = [JAPP_GEOMETRY_WIZARD_STEPS.SELECT_LAYER, JAPP_GEOMETRY_WIZARD_STEPS.DRAW]
|
|
25
15
|
|
|
16
|
+
/** @deprecated The legacy layer dynamic-filter API was removed. */
|
|
26
17
|
export const ALL_APP_LAYER_DATE_FILTER_OPERATOR_TYPES: JAPP_LAYER_DATE_FILTER_OPERATOR_TYPES[] = [
|
|
27
18
|
JAPP_LAYER_DATE_FILTER_OPERATOR_TYPES.BEFORE,
|
|
28
19
|
JAPP_LAYER_DATE_FILTER_OPERATOR_TYPES.AFTER,
|
|
@@ -30,6 +21,7 @@ export const ALL_APP_LAYER_DATE_FILTER_OPERATOR_TYPES: JAPP_LAYER_DATE_FILTER_OP
|
|
|
30
21
|
JAPP_LAYER_DATE_FILTER_OPERATOR_TYPES.LAST_PERIOD
|
|
31
22
|
]
|
|
32
23
|
|
|
24
|
+
/** @deprecated The legacy layer dynamic-filter API was removed. */
|
|
33
25
|
export const ALL_APP_LAYER_TEXT_FILTER_OPERATOR_TYPES: JAPP_LAYER_TEXT_FILTER_OPERATOR_TYPES[] = [
|
|
34
26
|
JAPP_LAYER_TEXT_FILTER_OPERATOR_TYPES.CONTAINS,
|
|
35
27
|
JAPP_LAYER_TEXT_FILTER_OPERATOR_TYPES.DOES_NOT_CONTAIN,
|
|
@@ -37,6 +29,7 @@ export const ALL_APP_LAYER_TEXT_FILTER_OPERATOR_TYPES: JAPP_LAYER_TEXT_FILTER_OP
|
|
|
37
29
|
JAPP_LAYER_TEXT_FILTER_OPERATOR_TYPES.DOES_NOT_EQUALS
|
|
38
30
|
]
|
|
39
31
|
|
|
32
|
+
/** @deprecated The legacy layer dynamic-filter API was removed. */
|
|
40
33
|
export const ALL_APP_LAYER_NUMBER_FILTER_OPERATOR_TYPES: JAPP_LAYER_NUMBER_FILTER_OPERATOR_TYPES[] = [
|
|
41
34
|
JAPP_LAYER_NUMBER_FILTER_OPERATOR_TYPES.EQUALS,
|
|
42
35
|
JAPP_LAYER_NUMBER_FILTER_OPERATOR_TYPES.DOES_NOT_EQUALS,
|
|
@@ -44,6 +37,7 @@ export const ALL_APP_LAYER_NUMBER_FILTER_OPERATOR_TYPES: JAPP_LAYER_NUMBER_FILTE
|
|
|
44
37
|
JAPP_LAYER_NUMBER_FILTER_OPERATOR_TYPES.GREATER_THAN
|
|
45
38
|
]
|
|
46
39
|
|
|
40
|
+
/** @deprecated The legacy layer dynamic-filter API was removed. */
|
|
47
41
|
export const ALL_APP_LAYER_FILTER_DATE_PERIOD_TYPES: JAPP_LAYER_FILTER_DATE_PERIOD_TYPES[] = [
|
|
48
42
|
JAPP_LAYER_FILTER_DATE_PERIOD_TYPES.DAY,
|
|
49
43
|
JAPP_LAYER_FILTER_DATE_PERIOD_TYPES.WEEK,
|
|
@@ -51,47 +45,14 @@ export const ALL_APP_LAYER_FILTER_DATE_PERIOD_TYPES: JAPP_LAYER_FILTER_DATE_PERI
|
|
|
51
45
|
JAPP_LAYER_FILTER_DATE_PERIOD_TYPES.YEAR
|
|
52
46
|
]
|
|
53
47
|
|
|
54
|
-
export const ALL_APP_LAYER_EDITION_TABS: JAPP_LAYER_EDITION_TABS[] = [
|
|
55
|
-
JAPP_LAYER_EDITION_TABS.THEMATICS,
|
|
56
|
-
JAPP_LAYER_EDITION_TABS.DYNAMIC_FILTER,
|
|
57
|
-
JAPP_LAYER_EDITION_TABS.GENERAL
|
|
58
|
-
]
|
|
48
|
+
export const ALL_APP_LAYER_EDITION_TABS: JAPP_LAYER_EDITION_TABS[] = [JAPP_LAYER_EDITION_TABS.THEMATICS, JAPP_LAYER_EDITION_TABS.DYNAMIC_FILTER, JAPP_LAYER_EDITION_TABS.GENERAL]
|
|
59
49
|
|
|
60
|
-
export const
|
|
61
|
-
JAPP_MESSAGE_SEVERITIES.SUCCESS,
|
|
62
|
-
JAPP_MESSAGE_SEVERITIES.INFO,
|
|
63
|
-
JAPP_MESSAGE_SEVERITIES.WARNING,
|
|
64
|
-
JAPP_MESSAGE_SEVERITIES.ERROR
|
|
65
|
-
]
|
|
50
|
+
export const ALL_APP_PRINT_FILE_TYPES: JAPP_PRINT_FILE_TYPES[] = [JAPP_PRINT_FILE_TYPES.PNG, JAPP_PRINT_FILE_TYPES.JPEG, JAPP_PRINT_FILE_TYPES.PDF]
|
|
66
51
|
|
|
67
|
-
export const
|
|
68
|
-
JAPP_PRINT_FILE_TYPES.PNG,
|
|
69
|
-
JAPP_PRINT_FILE_TYPES.JPEG,
|
|
70
|
-
JAPP_PRINT_FILE_TYPES.PDF
|
|
71
|
-
]
|
|
52
|
+
export const ALL_APP_PRINT_PAPER_SIZES: JAPP_PRINT_PAPER_SIZES[] = [JAPP_PRINT_PAPER_SIZES.LETTER, JAPP_PRINT_PAPER_SIZES.LEGAL, JAPP_PRINT_PAPER_SIZES.A3, JAPP_PRINT_PAPER_SIZES.A4]
|
|
72
53
|
|
|
73
|
-
export const
|
|
74
|
-
JAPP_PRINT_PAPER_SIZES.LETTER,
|
|
75
|
-
JAPP_PRINT_PAPER_SIZES.LEGAL,
|
|
76
|
-
JAPP_PRINT_PAPER_SIZES.A3,
|
|
77
|
-
JAPP_PRINT_PAPER_SIZES.A4
|
|
78
|
-
]
|
|
54
|
+
export const ALL_APP_PRINT_LEGEND_POSITION: JAPP_PRINT_LEGEND_POSITION[] = [JAPP_PRINT_LEGEND_POSITION.TOP_RIGHT, JAPP_PRINT_LEGEND_POSITION.TOP_LEFT]
|
|
79
55
|
|
|
80
|
-
export const
|
|
81
|
-
JAPP_PRINT_LEGEND_POSITION.TOP_RIGHT,
|
|
82
|
-
JAPP_PRINT_LEGEND_POSITION.TOP_LEFT
|
|
83
|
-
]
|
|
56
|
+
export const ALL_APP_SELECTION_TYPES: JAPP_SELECTION_TYPES[] = [JAPP_DRAW_TYPES.POINT, JAPP_DRAW_TYPES.LINE_STRING, JAPP_DRAW_TYPES.RECTANGLE, JAPP_DRAW_TYPES.CIRCLE, JAPP_DRAW_TYPES.POLYGON]
|
|
84
57
|
|
|
85
|
-
export const
|
|
86
|
-
JAPP_DRAW_TYPES.POINT,
|
|
87
|
-
JAPP_DRAW_TYPES.LINE_STRING,
|
|
88
|
-
JAPP_DRAW_TYPES.RECTANGLE,
|
|
89
|
-
JAPP_DRAW_TYPES.CIRCLE,
|
|
90
|
-
JAPP_DRAW_TYPES.POLYGON
|
|
91
|
-
]
|
|
92
|
-
|
|
93
|
-
export const ALL_APP_MEASURE_TYPES: JAPP_MEASURE_TYPES[] = [
|
|
94
|
-
JAPP_DRAW_TYPES.POLYGON,
|
|
95
|
-
JAPP_DRAW_TYPES.LINE_STRING,
|
|
96
|
-
JAPP_DRAW_TYPES.CIRCLE
|
|
97
|
-
]
|
|
58
|
+
export const ALL_APP_MEASURE_TYPES: JAPP_MEASURE_TYPES[] = [JAPP_DRAW_TYPES.POLYGON, JAPP_DRAW_TYPES.LINE_STRING, JAPP_DRAW_TYPES.CIRCLE]
|
package/enums.ts
ADDED
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
// This file contains all enum declarations extracted from .d.ts files
|
|
2
|
+
// so they produce runtime JavaScript values.
|
|
3
|
+
|
|
4
|
+
// From layer.d.ts
|
|
5
|
+
/** @deprecated The legacy layer dynamic-filter API was removed. Kept only so the deprecated public API surface still type-checks. */
|
|
6
|
+
export enum JAPP_LAYER_DATE_FILTER_OPERATOR_TYPES {
|
|
7
|
+
BEFORE = "before",
|
|
8
|
+
AFTER = "after",
|
|
9
|
+
BETWEEN = "between",
|
|
10
|
+
LAST_PERIOD = "lastPeriod"
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
/** @deprecated The legacy layer dynamic-filter API was removed. Kept only so the deprecated public API surface still type-checks. */
|
|
14
|
+
export enum JAPP_LAYER_TEXT_FILTER_OPERATOR_TYPES {
|
|
15
|
+
CONTAINS = "contains",
|
|
16
|
+
DOES_NOT_CONTAIN = "doesNotContain",
|
|
17
|
+
EQUALS = "equals",
|
|
18
|
+
DOES_NOT_EQUALS = "doesNotEqual"
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
/** @deprecated The legacy layer dynamic-filter API was removed. Kept only so the deprecated public API surface still type-checks. */
|
|
22
|
+
export enum JAPP_LAYER_NUMBER_FILTER_OPERATOR_TYPES {
|
|
23
|
+
EQUALS = "equals",
|
|
24
|
+
DOES_NOT_EQUALS = "doesNotEqual",
|
|
25
|
+
SMALLER_THAN = "smallerThan",
|
|
26
|
+
GREATER_THAN = "greaterThan"
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
/** @deprecated The legacy layer dynamic-filter API was removed. Kept only so the deprecated public API surface still type-checks. */
|
|
30
|
+
export enum JAPP_LAYER_FILTER_DATE_PERIOD_TYPES {
|
|
31
|
+
DAY = "day",
|
|
32
|
+
WEEK = "week",
|
|
33
|
+
MONTH = "month",
|
|
34
|
+
YEAR = "year"
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
export enum JAPP_LAYER_EDITION_TABS {
|
|
38
|
+
THEMATICS = "thematics",
|
|
39
|
+
DYNAMIC_FILTER = "dynamic-filter",
|
|
40
|
+
GENERAL = "general"
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
// From print.d.ts
|
|
44
|
+
export enum JAPP_PRINT_FILE_TYPES {
|
|
45
|
+
PNG = "png",
|
|
46
|
+
JPEG = "jpeg",
|
|
47
|
+
PDF = "pdf"
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
export enum JAPP_PRINT_PAPER_SIZES {
|
|
51
|
+
LETTER = "letter",
|
|
52
|
+
LEGAL = "legal",
|
|
53
|
+
A3 = "a3",
|
|
54
|
+
A4 = "a4",
|
|
55
|
+
CUSTOM = "custom"
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
export enum JAPP_PRINT_LEGEND_POSITION {
|
|
59
|
+
TOP_RIGHT = "top-right",
|
|
60
|
+
TOP_LEFT = "top-left"
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
// From measure.d.ts
|
|
64
|
+
export enum JAPP_MEASUREMENT_SYSTEMS {
|
|
65
|
+
PLANAR = "planar",
|
|
66
|
+
GEODETIC = "geodetic"
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
// From draw.d.ts
|
|
70
|
+
export enum JAPP_DRAW_TYPES {
|
|
71
|
+
POINT = "point",
|
|
72
|
+
POLYGON = "polygon",
|
|
73
|
+
LINE_STRING = "line_string",
|
|
74
|
+
RECTANGLE = "rectangle",
|
|
75
|
+
CIRCLE = "circle",
|
|
76
|
+
TEXT = "text"
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
export enum JAPP_DRAW_MODES {
|
|
80
|
+
DRAW = "draw",
|
|
81
|
+
SELECT = "select",
|
|
82
|
+
DELETE = "delete"
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
// From geometry.d.ts
|
|
86
|
+
export enum JAPP_GEOMETRY_WIZARD_STEPS {
|
|
87
|
+
SELECT_LAYER = "select-layer",
|
|
88
|
+
DRAW = "draw"
|
|
89
|
+
}
|
package/index.ts
CHANGED
|
@@ -1,4 +1,8 @@
|
|
|
1
|
-
import type { JEventModule } from "jmapcloud-ng-core-types"
|
|
1
|
+
import type { JAppMessageService, JEventModule } from "jmapcloud-ng-core-types"
|
|
2
|
+
|
|
3
|
+
// Re-exported so existing `import { JAppMessageService } from "jmapcloud-ng-types"`
|
|
4
|
+
// callers keep resolving after the slice moved into ng-core-types.
|
|
5
|
+
export type { JAppMessageService } from "jmapcloud-ng-core-types"
|
|
2
6
|
|
|
3
7
|
export interface JAppState {
|
|
4
8
|
panel: JAppPanelState
|
|
@@ -11,16 +15,15 @@ export interface JAppState {
|
|
|
11
15
|
print: JAppPrintState
|
|
12
16
|
project: JAppProjectState
|
|
13
17
|
annotation: JAppAnnotationState
|
|
14
|
-
message: JAppMessageState
|
|
15
|
-
user: JAppUserState
|
|
16
18
|
feature: JAppFeatureState
|
|
17
19
|
geometry: JAppGeometryState
|
|
18
|
-
|
|
20
|
+
dataGrid: JAppDataGridState
|
|
19
21
|
}
|
|
20
22
|
|
|
21
|
-
export
|
|
22
|
-
|
|
23
|
-
|
|
23
|
+
export type JAppActiveDataGrid = { type: "table"; id: JId } | { type: "layer"; id: JId }
|
|
24
|
+
|
|
25
|
+
export interface JAppDataGridState {
|
|
26
|
+
activeDataGrid: JAppActiveDataGrid | undefined
|
|
24
27
|
}
|
|
25
28
|
|
|
26
29
|
export type { JApplicationOptions } from "./public/startup-options.d.ts"
|
|
@@ -48,6 +51,7 @@ export interface JAppFeatureState {
|
|
|
48
51
|
export interface JAppProjectState {
|
|
49
52
|
urlExist: boolean
|
|
50
53
|
showProjectList: boolean
|
|
54
|
+
presentationShowOnOpen: boolean
|
|
51
55
|
}
|
|
52
56
|
|
|
53
57
|
export interface JAppPanelState {
|
|
@@ -56,8 +60,8 @@ export interface JAppPanelState {
|
|
|
56
60
|
}
|
|
57
61
|
|
|
58
62
|
export interface JAppLayerState {
|
|
63
|
+
isLayerOrderActive: boolean
|
|
59
64
|
treeFilter: JAppLayerTreeFilterState
|
|
60
|
-
popupMenuLayerId: JId | undefined
|
|
61
65
|
editionActiveTab: JAPP_LAYER_EDITION_TABS
|
|
62
66
|
inEditionLayerId: JId | undefined
|
|
63
67
|
isDynamicFilterDialogOpened: boolean
|
|
@@ -119,14 +123,11 @@ export interface JAppPrintState {
|
|
|
119
123
|
isOrientationPortrait: boolean
|
|
120
124
|
base64Image: string
|
|
121
125
|
pageTitle: string
|
|
122
|
-
pageSubTitle: string
|
|
123
126
|
isDateVisible: boolean
|
|
124
127
|
isNorthArrowVisible: boolean
|
|
125
128
|
isScaleVisible: boolean
|
|
126
129
|
isLegend: boolean
|
|
127
|
-
isHiResolution: boolean
|
|
128
130
|
legendTitle: string
|
|
129
|
-
legendSubTitle: string
|
|
130
131
|
legendPosition: JAPP_PRINT_LEGEND_POSITION
|
|
131
132
|
filterList: any[]
|
|
132
133
|
}
|
|
@@ -139,16 +140,6 @@ export interface JAppSelectionState {
|
|
|
139
140
|
draw: JAppDrawState
|
|
140
141
|
}
|
|
141
142
|
|
|
142
|
-
export interface JAppMessageState {
|
|
143
|
-
messages: JAppMessage[]
|
|
144
|
-
overlayMessages: JAppOverlayMessage[]
|
|
145
|
-
confirmMessage: JAppConfirmMessage | undefined
|
|
146
|
-
}
|
|
147
|
-
|
|
148
|
-
export interface JAppUserState {
|
|
149
|
-
actions: JAppUserAction[]
|
|
150
|
-
}
|
|
151
|
-
|
|
152
143
|
export interface JApplicationService extends JApplicationMainService {
|
|
153
144
|
User: JApplicationUserService
|
|
154
145
|
Panel: JAppPanelService
|
|
@@ -190,17 +181,7 @@ export interface JAppFeatureService {
|
|
|
190
181
|
export interface JAppProjectService {
|
|
191
182
|
activateById(projectId: JId): JProject
|
|
192
183
|
setSelectionPanelVisibility(isVisible: boolean): void
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
export interface JAppMessageService {
|
|
196
|
-
error(message: string, options?: JAppMessageOptions): void
|
|
197
|
-
warning(message: string, options?: JAppMessageOptions): void
|
|
198
|
-
info(message: string, options?: JAppMessageOptions): void
|
|
199
|
-
success(message: string, options?: JAppMessageOptions): void
|
|
200
|
-
confirmMessage(params: JAppConfirmMessage): void
|
|
201
|
-
display(message: string, options?: JAppMessageOptions): void
|
|
202
|
-
displayWaitingOverlay(message: string): string
|
|
203
|
-
closeWaitingOverlay(messageId?: string): void
|
|
184
|
+
setPresentationShowOnOpen(value: boolean): void
|
|
204
185
|
}
|
|
205
186
|
|
|
206
187
|
export interface JAppAnnotationService {
|
|
@@ -347,7 +328,9 @@ export interface JAppPrintService {
|
|
|
347
328
|
isScaleControlVisible(): boolean
|
|
348
329
|
setPageTitle(title: string): void
|
|
349
330
|
getPageTitle(): string
|
|
331
|
+
/** @deprecated Removed API. This method now does nothing. */
|
|
350
332
|
setPageSubTitle(subTitle: string): void
|
|
333
|
+
/** @deprecated Removed API. This method now does nothing and returns an empty string. */
|
|
351
334
|
getPageSubTitle(): string
|
|
352
335
|
setDateVisibility(isVisible: boolean): void
|
|
353
336
|
isDateVisibile(): boolean
|
|
@@ -360,16 +343,18 @@ export interface JAppPrintService {
|
|
|
360
343
|
isOrientationPortrait(): boolean
|
|
361
344
|
setFileType(fileType: JAPP_PRINT_FILE_TYPES): void
|
|
362
345
|
getFileType(): JAPP_PRINT_FILE_TYPES
|
|
346
|
+
/** @deprecated Hi-resolution export is always active. This method now does nothing. */
|
|
363
347
|
setHiResolution(isHiResolution: boolean): void
|
|
348
|
+
/** @deprecated Hi-resolution export is always active. This method now always returns true. */
|
|
364
349
|
getHiResolution(): boolean
|
|
365
|
-
takeCapture(
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
customRatioHeight?: number
|
|
369
|
-
): Promise<void | JAppPrintCaptureResult>
|
|
350
|
+
takeCapture(returnAsScreenCaptureResult?: boolean, customRatioWidth?: number, customRatioHeight?: number): Promise<void | JAppPrintCaptureResult>
|
|
351
|
+
setLegendVisibility(isVisible: boolean): void
|
|
352
|
+
isLegendVisible(): boolean
|
|
370
353
|
}
|
|
371
354
|
|
|
372
355
|
export interface JAppLayerService {
|
|
356
|
+
getLayerOrderActive(): boolean
|
|
357
|
+
setLayerOrderActive(isActive: boolean): void
|
|
373
358
|
Tree: JAppLayerTreeService
|
|
374
359
|
Edition: JAppLayerEditionService
|
|
375
360
|
}
|
|
@@ -411,13 +396,21 @@ export interface JAppLayerTreeFilterService {
|
|
|
411
396
|
isActive(): boolean
|
|
412
397
|
setActive(active: boolean): void
|
|
413
398
|
applyToMap(): void
|
|
399
|
+
/** @deprecated Removed API. This method now does nothing and always returns false. */
|
|
414
400
|
existById(filterId: number): boolean
|
|
401
|
+
/** @deprecated Removed API. This method now does nothing and always returns false. */
|
|
415
402
|
oneFilterExistForMetadataId(metadataId: JId): boolean
|
|
403
|
+
/** @deprecated Removed API. This method now returns an empty result. */
|
|
416
404
|
getAll(): JAppGetAllFiltersResult
|
|
405
|
+
/** @deprecated Removed API. Filters no longer exist, so this method always throws "Filter id not found", matching the original error contract. */
|
|
417
406
|
getById(filterId: number): JAppAnyLayerFilter
|
|
407
|
+
/** @deprecated Removed API. This method now does nothing and returns the input filter unchanged. */
|
|
418
408
|
add(filter: JAppAnyLayerFilter): JAppAnyLayerFilter
|
|
409
|
+
/** @deprecated Removed API. Filters no longer exist, so this method always throws "Filter id not found", matching the original error contract. */
|
|
419
410
|
deleteById(filterId: number): JAppAnyLayerFilter
|
|
411
|
+
/** @deprecated Removed API. This method now does nothing. */
|
|
420
412
|
openAddFilterDialog(): void
|
|
413
|
+
/** @deprecated Removed API. This method now does nothing. */
|
|
421
414
|
closeAddFilterDialog(): void
|
|
422
415
|
}
|
|
423
416
|
|
|
@@ -452,10 +445,7 @@ export interface JAppExtensionEventModule extends JEventModule {
|
|
|
452
445
|
|
|
453
446
|
export interface JAppUIEventModule extends JEventModule {
|
|
454
447
|
on: {
|
|
455
|
-
sidePanelVisibilityChanged(
|
|
456
|
-
listenerId: string,
|
|
457
|
-
fn: (params: JAppUISidePanelVisibilityChangedEventParams) => void
|
|
458
|
-
): void
|
|
448
|
+
sidePanelVisibilityChanged(listenerId: string, fn: (params: JAppUISidePanelVisibilityChangedEventParams) => void): void
|
|
459
449
|
sidePanelWidthChanged(listenerId: string, fn: (params: JAppUISidePanelWidthChangedEventParams) => void): void
|
|
460
450
|
}
|
|
461
451
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "jmapcloud-ng-types",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "2.0.2",
|
|
4
4
|
"description": "JMap Cloud specific version of JMap Cloud NG types and interfaces",
|
|
5
5
|
"main": "src/app.ts",
|
|
6
6
|
"types": "ambient.d.ts",
|
|
@@ -21,11 +21,12 @@
|
|
|
21
21
|
},
|
|
22
22
|
"homepage": "https://github.com/k2geospatial/jmapcloud-ng-types#readme",
|
|
23
23
|
"devDependencies": {
|
|
24
|
-
"@types/react": "^18.3.2",
|
|
25
24
|
"@fortawesome/fontawesome-svg-core": "7.2.0",
|
|
25
|
+
"@types/react": "^18.3.2",
|
|
26
26
|
"jmapcloud-ng-core-types": "../ng-core-types",
|
|
27
27
|
"maplibre-gl": "^4.7.1",
|
|
28
28
|
"react": "18.3.1",
|
|
29
|
+
"rollup-plugin-visualizer": "^5.14.0",
|
|
29
30
|
"typedoc": "^0.25.13"
|
|
30
31
|
}
|
|
31
32
|
}
|
package/public/app.d.ts
CHANGED
|
@@ -3,24 +3,13 @@ import type { JAPP_DRAW_MODES, JAPP_DRAW_TYPES, JAppDrawStyle } from "./draw.d.t
|
|
|
3
3
|
import type { JAppExtension, JAppExtensionEventParams } from "./extension.d.ts"
|
|
4
4
|
import type { JFormDialogParams, JSubFormDialogParams } from "./form.d.ts"
|
|
5
5
|
import type { JAppGeometryUpdateParams } from "./geometry.d.ts"
|
|
6
|
-
import type {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
JAppGetAllFiltersResult,
|
|
10
|
-
JAppLayerEventParams
|
|
11
|
-
} from "./layer.d.ts"
|
|
12
|
-
import type {
|
|
13
|
-
JAPP_MEASUREMENT_SYSTEMS,
|
|
14
|
-
JAPP_MEASURE_TYPES,
|
|
15
|
-
JAppMeasure,
|
|
16
|
-
JAppMeasureCreationEventParams
|
|
17
|
-
} from "./measure.d.ts"
|
|
18
|
-
import type { JAppConfirmMessage, JAppMessageOptions } from "./message.d.ts"
|
|
6
|
+
import type { JAPP_LAYER_EDITION_TABS, JAppAnyLayerFilter, JAppGetAllFiltersResult, JAppLayerEventParams } from "./layer.d.ts"
|
|
7
|
+
import type { JAPP_MEASUREMENT_SYSTEMS, JAPP_MEASURE_TYPES, JAppMeasure, JAppMeasureCreationEventParams } from "./measure.d.ts"
|
|
8
|
+
import type { JAppConfirmMessage, JAppMessageOptions, JAppUserAction } from "jmapcloud-ng-core-types"
|
|
19
9
|
import type { JAppPanel, JAppPanelActivationParams, JAppPanelDeactivationParams } from "./panel.d.ts"
|
|
20
10
|
import type { JAPP_PRINT_FILE_TYPES, JAppPaperFormat, JAppPrintCaptureResult } from "./print.d.ts"
|
|
21
11
|
import type { JAPP_SELECTION_TYPES } from "./selection.d.ts"
|
|
22
12
|
import type { JAppUISidePanelVisibilityChangedEventParams, JAppUISidePanelWidthChangedEventParams } from "./ui.d.ts"
|
|
23
|
-
import type { JAppUserAction } from "./user.d.ts"
|
|
24
13
|
declare global {
|
|
25
14
|
namespace JMapCloudNgApp {
|
|
26
15
|
/**
|
|
@@ -1331,6 +1320,23 @@ declare global {
|
|
|
1331
1320
|
* ```
|
|
1332
1321
|
*/
|
|
1333
1322
|
function setSelectionPanelVisibility(isVisible: boolean): void
|
|
1323
|
+
|
|
1324
|
+
/**
|
|
1325
|
+
* **JMap.Application.Project.setPresentationShowOnOpen**
|
|
1326
|
+
*
|
|
1327
|
+
* Controls whether the project presentation dialog auto-opens when a project is loaded.
|
|
1328
|
+
*
|
|
1329
|
+
* The preference is stored per project. Passing `false` prevents the dialog from appearing
|
|
1330
|
+
* automatically the next time this project is activated; passing `true` re-enables it.
|
|
1331
|
+
*
|
|
1332
|
+
* @param value true to auto-open the presentation dialog on project load, false to suppress it
|
|
1333
|
+
* @example
|
|
1334
|
+
* ```ts
|
|
1335
|
+
* // stop auto-opening the presentation dialog for the current project
|
|
1336
|
+
* JMap.Application.Project.setPresentationShowOnOpen(false)
|
|
1337
|
+
* ```
|
|
1338
|
+
*/
|
|
1339
|
+
function setPresentationShowOnOpen(value: boolean): void
|
|
1334
1340
|
}
|
|
1335
1341
|
|
|
1336
1342
|
/**
|
|
@@ -1339,6 +1345,36 @@ declare global {
|
|
|
1339
1345
|
* You can manage the layer panel here.
|
|
1340
1346
|
*/
|
|
1341
1347
|
namespace Layer {
|
|
1348
|
+
/**
|
|
1349
|
+
* **JMap.Application.Layer.getLayerOrderActive**
|
|
1350
|
+
*
|
|
1351
|
+
* Tests if the layer order panel is currently active (visible).
|
|
1352
|
+
*
|
|
1353
|
+
* @example
|
|
1354
|
+
* ```ts
|
|
1355
|
+
* // returns true if the layer order panel is visible
|
|
1356
|
+
* const isLayerOrderActive = JMap.Application.Layer.getLayerOrderActive()
|
|
1357
|
+
* ```
|
|
1358
|
+
*/
|
|
1359
|
+
function getLayerOrderActive(): boolean
|
|
1360
|
+
|
|
1361
|
+
/**
|
|
1362
|
+
* **JMap.Application.Layer.setLayerOrderActive**
|
|
1363
|
+
*
|
|
1364
|
+
* Displays or hides the layer order panel.
|
|
1365
|
+
*
|
|
1366
|
+
* @param isActive true to display the layer order panel, false to hide it
|
|
1367
|
+
* @example
|
|
1368
|
+
* ```ts
|
|
1369
|
+
* // display the layer order panel
|
|
1370
|
+
* JMap.Application.Layer.setLayerOrderActive(true)
|
|
1371
|
+
*
|
|
1372
|
+
* // hide the layer order panel
|
|
1373
|
+
* JMap.Application.Layer.setLayerOrderActive(false)
|
|
1374
|
+
* ```
|
|
1375
|
+
*/
|
|
1376
|
+
function setLayerOrderActive(isActive: boolean): void
|
|
1377
|
+
|
|
1342
1378
|
/**
|
|
1343
1379
|
* **JMap.Application.Layer.Tree**
|
|
1344
1380
|
*
|
|
@@ -1374,10 +1410,7 @@ declare global {
|
|
|
1374
1410
|
* Tests if the layer tree filters are applied.
|
|
1375
1411
|
*
|
|
1376
1412
|
* Layer tree filters are applied (in action) only if the filtering is active ({@link JMap.Application.Layer.Tree.Filter.isActive} returns true)
|
|
1377
|
-
* and
|
|
1378
|
-
*
|
|
1379
|
-
* a) the name filter contains at least 2 characters
|
|
1380
|
-
* b) one of the layer filters has been added to the filtering configuration
|
|
1413
|
+
* and the name filter contains at least 2 characters.
|
|
1381
1414
|
*
|
|
1382
1415
|
* @example
|
|
1383
1416
|
* ```ts
|
|
@@ -1453,158 +1486,85 @@ declare global {
|
|
|
1453
1486
|
/**
|
|
1454
1487
|
* **JMap.Application.Layer.Tree.Filter.existById**
|
|
1455
1488
|
*
|
|
1456
|
-
*
|
|
1489
|
+
* Removed API. This method now does nothing and always returns false.
|
|
1457
1490
|
*
|
|
1458
|
-
* @
|
|
1459
|
-
* @
|
|
1460
|
-
*
|
|
1461
|
-
* // create a filter
|
|
1462
|
-
* JMap.Application.Layer.Tree.Filter.add({
|
|
1463
|
-
* 1,
|
|
1464
|
-
* metadataItemId: 0,
|
|
1465
|
-
* type: "date",
|
|
1466
|
-
* operator: "between",
|
|
1467
|
-
* value: [new Date("2021-06-02T00:00:00"),new Date("2021-06-22:T00:00:00")]
|
|
1468
|
-
* })
|
|
1469
|
-
*
|
|
1470
|
-
* // will return true
|
|
1471
|
-
* JMap.Application.Layer.Tree.Filter.existById(1)
|
|
1472
|
-
* ```
|
|
1491
|
+
* @deprecated This method was removed and now does nothing.
|
|
1492
|
+
* @param filterId Unused
|
|
1493
|
+
* @returns Always false
|
|
1473
1494
|
*/
|
|
1474
1495
|
function existById(filterId: number): boolean
|
|
1475
1496
|
|
|
1476
1497
|
/**
|
|
1477
1498
|
* **JMap.Application.Layer.Tree.Filter.oneFilterExistForMetadataId**
|
|
1478
1499
|
*
|
|
1479
|
-
*
|
|
1480
|
-
*
|
|
1481
|
-
* @param metadataId the metadata id
|
|
1482
|
-
* @example
|
|
1483
|
-
* ```ts
|
|
1484
|
-
* // filter collection is initially empty
|
|
1485
|
-
*
|
|
1486
|
-
* // create a filter
|
|
1487
|
-
* JMap.Application.Layer.Tree.Filter.add({
|
|
1488
|
-
* 1,
|
|
1489
|
-
* metadataItemId: 0,
|
|
1490
|
-
* type: "date",
|
|
1491
|
-
* operator: "between",
|
|
1492
|
-
* value: [new Date("2021-06-02T00:00:00"),new Date("2021-06-22:T00:00:00")]
|
|
1493
|
-
* })
|
|
1500
|
+
* Removed API. This method now does nothing and always returns false.
|
|
1494
1501
|
*
|
|
1495
|
-
*
|
|
1496
|
-
*
|
|
1497
|
-
*
|
|
1502
|
+
* @deprecated This method was removed and now does nothing.
|
|
1503
|
+
* @param metadataId Unused
|
|
1504
|
+
* @returns Always false
|
|
1498
1505
|
*/
|
|
1499
1506
|
function oneFilterExistForMetadataId(metadataId: JId): boolean
|
|
1500
1507
|
|
|
1501
1508
|
/**
|
|
1502
1509
|
* **JMap.Application.Layer.Tree.Filter.getAll**
|
|
1503
1510
|
*
|
|
1504
|
-
*
|
|
1511
|
+
* Removed API. This method now does nothing and always returns an empty result.
|
|
1505
1512
|
*
|
|
1506
|
-
* @
|
|
1507
|
-
*
|
|
1508
|
-
* // get filters configuration
|
|
1509
|
-
* console.log(JMap.Application.Layer.Tree.Filter.getAll())
|
|
1510
|
-
* // {
|
|
1511
|
-
* // "nameFilter":"Mont",
|
|
1512
|
-
* // "filters":[
|
|
1513
|
-
* // {"id":1,
|
|
1514
|
-
* // "metadataItemId":0,
|
|
1515
|
-
* // "operator":"between",
|
|
1516
|
-
* // "type":"date",
|
|
1517
|
-
* // "value":[
|
|
1518
|
-
* // "2021-06-01T10:25:00.000Z",
|
|
1519
|
-
* // "2021-06-22T10:25:00.000Z"
|
|
1520
|
-
* // ]
|
|
1521
|
-
* // }
|
|
1522
|
-
* // ]
|
|
1523
|
-
* // }
|
|
1524
|
-
* ```
|
|
1513
|
+
* @deprecated This method was removed and now does nothing.
|
|
1514
|
+
* @returns An empty result `{ nameFilter: "", filters: [] }`
|
|
1525
1515
|
*/
|
|
1526
1516
|
function getAll(): JAppGetAllFiltersResult
|
|
1527
1517
|
|
|
1528
1518
|
/**
|
|
1529
1519
|
* **JMap.Application.Layer.Tree.Filter.getById**
|
|
1530
1520
|
*
|
|
1531
|
-
*
|
|
1521
|
+
* Removed API. Filters no longer exist, so this method always throws `Filter id="..." not found`,
|
|
1522
|
+
* matching the original error contract when no matching filter was present.
|
|
1532
1523
|
*
|
|
1533
|
-
* @
|
|
1534
|
-
* @
|
|
1535
|
-
*
|
|
1536
|
-
* // get filter id=1
|
|
1537
|
-
* JMap.Application.Layer.Tree.Filter.getById(1)
|
|
1538
|
-
* // {"id":1,
|
|
1539
|
-
* // "metadataItemId":0,
|
|
1540
|
-
* // "operator":"between",
|
|
1541
|
-
* // "type":"date",
|
|
1542
|
-
* // "value":[
|
|
1543
|
-
* // "2021-06-01T10:25:00.000Z",
|
|
1544
|
-
* // "2021-06-22T10:25:00.000Z"
|
|
1545
|
-
* // ]
|
|
1546
|
-
* // }
|
|
1547
|
-
* ```
|
|
1524
|
+
* @deprecated This method was removed. Always throws.
|
|
1525
|
+
* @param filterId Unused
|
|
1526
|
+
* @throws Always — `Filter id="${filterId}" not found`
|
|
1548
1527
|
*/
|
|
1549
1528
|
function getById(filterId: number): JAppAnyLayerFilter
|
|
1550
1529
|
|
|
1551
1530
|
/**
|
|
1552
1531
|
* **JMap.Application.Layer.Tree.Filter.add**
|
|
1553
1532
|
*
|
|
1554
|
-
*
|
|
1533
|
+
* Removed API. This method now does nothing and returns the input filter unchanged.
|
|
1555
1534
|
*
|
|
1556
|
-
* @
|
|
1557
|
-
* @
|
|
1558
|
-
*
|
|
1559
|
-
* // add a filter to the config
|
|
1560
|
-
* JMap.Application.Layer.Tree.Filter.add({
|
|
1561
|
-
* 1,
|
|
1562
|
-
* metadataItemId: 0,
|
|
1563
|
-
* type: "date",
|
|
1564
|
-
* operator: "between",
|
|
1565
|
-
* value: [new Date("2021-06-02T00:00:00"),new Date("2021-06-22:T00:00:00")]
|
|
1566
|
-
* })
|
|
1567
|
-
* ```
|
|
1535
|
+
* @deprecated This method was removed and now does nothing.
|
|
1536
|
+
* @param filter Unused, returned as-is
|
|
1537
|
+
* @returns The input filter, unchanged
|
|
1568
1538
|
*/
|
|
1569
1539
|
function add(filter: JAppAnyLayerFilter): JAppAnyLayerFilter
|
|
1570
1540
|
|
|
1571
1541
|
/**
|
|
1572
1542
|
* **JMap.Application.Layer.Tree.Filter.deleteById**
|
|
1573
1543
|
*
|
|
1574
|
-
*
|
|
1544
|
+
* Removed API. Filters no longer exist, so this method always throws `Filter id="..." not found`,
|
|
1545
|
+
* matching the original error contract when no matching filter was present.
|
|
1575
1546
|
*
|
|
1576
|
-
* @
|
|
1577
|
-
* @
|
|
1578
|
-
*
|
|
1579
|
-
* // delete filter id=1
|
|
1580
|
-
* JMap.Application.Layer.Tree.Filter.deleteById(1)
|
|
1581
|
-
* ```
|
|
1547
|
+
* @deprecated This method was removed. Always throws.
|
|
1548
|
+
* @param filterId Unused
|
|
1549
|
+
* @throws Always — `Filter id="${filterId}" not found`
|
|
1582
1550
|
*/
|
|
1583
1551
|
function deleteById(filterId: number): JAppAnyLayerFilter
|
|
1584
1552
|
|
|
1585
1553
|
/**
|
|
1586
1554
|
* **JMap.Application.Layer.Tree.Filter.openAddFilterDialog**
|
|
1587
1555
|
*
|
|
1588
|
-
*
|
|
1556
|
+
* Removed API. This method now does nothing.
|
|
1589
1557
|
*
|
|
1590
|
-
* @
|
|
1591
|
-
* ```ts
|
|
1592
|
-
* // open Add Filter UI
|
|
1593
|
-
* JMap.Application.Layer.Tree.Filter.openAddFilterDialog()
|
|
1594
|
-
* ```
|
|
1558
|
+
* @deprecated This method was removed and now does nothing.
|
|
1595
1559
|
*/
|
|
1596
1560
|
function openAddFilterDialog(): void
|
|
1597
1561
|
|
|
1598
1562
|
/**
|
|
1599
1563
|
* **JMap.Application.Layer.Tree.Filter.closeAddFilterDialog**
|
|
1600
1564
|
*
|
|
1601
|
-
*
|
|
1565
|
+
* Removed API. This method now does nothing.
|
|
1602
1566
|
*
|
|
1603
|
-
* @
|
|
1604
|
-
* ```ts
|
|
1605
|
-
* // close Add Filter UI
|
|
1606
|
-
* JMap.Application.Layer.Tree.Filter.closeAddFilterDialog()
|
|
1607
|
-
* ```
|
|
1567
|
+
* @deprecated This method was removed and now does nothing.
|
|
1608
1568
|
*/
|
|
1609
1569
|
function closeAddFilterDialog(): void
|
|
1610
1570
|
}
|
|
@@ -1997,7 +1957,7 @@ declare global {
|
|
|
1997
1957
|
*
|
|
1998
1958
|
* @example
|
|
1999
1959
|
* ```ts
|
|
2000
|
-
* // returns "3.
|
|
1960
|
+
* // returns "3.5625rem"
|
|
2001
1961
|
* JMap.Application.UI.SidePanel.getWidthCloseInRem()
|
|
2002
1962
|
* ```
|
|
2003
1963
|
*/
|
|
@@ -2271,28 +2231,20 @@ declare global {
|
|
|
2271
2231
|
/**
|
|
2272
2232
|
* **JMap.Application.Print.setPageSubTitle**
|
|
2273
2233
|
*
|
|
2274
|
-
*
|
|
2234
|
+
* Removed API. This method now does nothing.
|
|
2275
2235
|
*
|
|
2276
|
-
* @
|
|
2277
|
-
* @param subTitle
|
|
2278
|
-
* @example
|
|
2279
|
-
* ```ts
|
|
2280
|
-
* // set subtitle
|
|
2281
|
-
* JMap.Application.Print.setPageSubTitle("My custom subtitle")
|
|
2282
|
-
* ```
|
|
2236
|
+
* @deprecated This method was removed and now does nothing.
|
|
2237
|
+
* @param subTitle Unused
|
|
2283
2238
|
*/
|
|
2284
2239
|
function setPageSubTitle(subTitle: string): void
|
|
2285
2240
|
|
|
2286
2241
|
/**
|
|
2287
2242
|
* **JMap.Application.Print.getPageSubTitle**
|
|
2288
2243
|
*
|
|
2289
|
-
*
|
|
2244
|
+
* Removed API. This method now always returns an empty string.
|
|
2290
2245
|
*
|
|
2291
|
-
* @
|
|
2292
|
-
*
|
|
2293
|
-
* // returns the displayed subtitle
|
|
2294
|
-
* JMap.Application.Print.getPageSubTitle()
|
|
2295
|
-
* ```
|
|
2246
|
+
* @deprecated This method was removed and now does nothing.
|
|
2247
|
+
* @returns Always an empty string
|
|
2296
2248
|
*/
|
|
2297
2249
|
function getPageSubTitle(): string
|
|
2298
2250
|
|
|
@@ -2356,6 +2308,36 @@ declare global {
|
|
|
2356
2308
|
*/
|
|
2357
2309
|
function setNorthArrowVisibility(isVisible: boolean): void
|
|
2358
2310
|
|
|
2311
|
+
/**
|
|
2312
|
+
* **JMap.Application.Print.isLegendVisible**
|
|
2313
|
+
*
|
|
2314
|
+
* Returns true if the legend is displayed in the print layout.
|
|
2315
|
+
*
|
|
2316
|
+
* @example
|
|
2317
|
+
* ```ts
|
|
2318
|
+
* // returns true if the legend is visible
|
|
2319
|
+
* JMap.Application.Print.isLegendVisible()
|
|
2320
|
+
* ```
|
|
2321
|
+
*/
|
|
2322
|
+
function isLegendVisible(): boolean
|
|
2323
|
+
|
|
2324
|
+
/**
|
|
2325
|
+
* **JMap.Application.Print.setLegendVisibility**
|
|
2326
|
+
*
|
|
2327
|
+
* Sets the legend visible or hidden in the print layout.
|
|
2328
|
+
*
|
|
2329
|
+
* @param isVisible true to display, false to hide
|
|
2330
|
+
* @example
|
|
2331
|
+
* ```ts
|
|
2332
|
+
* // Hide the legend
|
|
2333
|
+
* JMap.Application.Print.setLegendVisibility(false)
|
|
2334
|
+
*
|
|
2335
|
+
* // Show the legend
|
|
2336
|
+
* JMap.Application.Print.setLegendVisibility(true)
|
|
2337
|
+
* ```
|
|
2338
|
+
*/
|
|
2339
|
+
function setLegendVisibility(isVisible: boolean): void
|
|
2340
|
+
|
|
2359
2341
|
/**
|
|
2360
2342
|
* **JMap.Application.Print.getAllPaperFormats**
|
|
2361
2343
|
*
|
|
@@ -2465,29 +2447,20 @@ declare global {
|
|
|
2465
2447
|
/**
|
|
2466
2448
|
* **JMap.Application.Print.setHiResolution**
|
|
2467
2449
|
*
|
|
2468
|
-
*
|
|
2450
|
+
* High-resolution export is always active. This method now does nothing.
|
|
2469
2451
|
*
|
|
2470
|
-
* @
|
|
2471
|
-
* @param isHiResolution
|
|
2472
|
-
* @example
|
|
2473
|
-
* ```ts
|
|
2474
|
-
* // set export mode to hi resolution
|
|
2475
|
-
* JMap.Application.Print.setHiResolution(true)
|
|
2476
|
-
* ```
|
|
2452
|
+
* @deprecated Hi-resolution export is always active now. This method does nothing.
|
|
2453
|
+
* @param isHiResolution Unused
|
|
2477
2454
|
*/
|
|
2478
2455
|
function setHiResolution(isHiResolution: boolean): void
|
|
2479
2456
|
|
|
2480
2457
|
/**
|
|
2481
2458
|
* **JMap.Application.Print.getHiResolution**
|
|
2482
2459
|
*
|
|
2483
|
-
*
|
|
2460
|
+
* High-resolution export is always active. This method now always returns true.
|
|
2484
2461
|
*
|
|
2485
|
-
* @
|
|
2486
|
-
*
|
|
2487
|
-
* // get export resolution
|
|
2488
|
-
* JMap.Application.Print.getHiResolution()
|
|
2489
|
-
* // true
|
|
2490
|
-
* ```
|
|
2462
|
+
* @deprecated Hi-resolution export is always active now. This method always returns true.
|
|
2463
|
+
* @returns Always true
|
|
2491
2464
|
*/
|
|
2492
2465
|
function getHiResolution(): boolean
|
|
2493
2466
|
|
|
@@ -2526,11 +2499,7 @@ declare global {
|
|
|
2526
2499
|
* )
|
|
2527
2500
|
* ```
|
|
2528
2501
|
*/
|
|
2529
|
-
function takeCapture(
|
|
2530
|
-
returnAsScreenCaptureResult?: boolean,
|
|
2531
|
-
customRatioWidth?: number,
|
|
2532
|
-
customRatioHeight?: number
|
|
2533
|
-
): Promise<void | JAppPrintCaptureResult>
|
|
2502
|
+
function takeCapture(returnAsScreenCaptureResult?: boolean, customRatioWidth?: number, customRatioHeight?: number): Promise<void | JAppPrintCaptureResult>
|
|
2534
2503
|
}
|
|
2535
2504
|
|
|
2536
2505
|
/**
|
|
@@ -2952,10 +2921,7 @@ declare global {
|
|
|
2952
2921
|
* )
|
|
2953
2922
|
* ```
|
|
2954
2923
|
*/
|
|
2955
|
-
function sidePanelVisibilityChanged(
|
|
2956
|
-
listenerId: string,
|
|
2957
|
-
fn: (params: JAppUISidePanelVisibilityChangedEventParams) => void
|
|
2958
|
-
): void
|
|
2924
|
+
function sidePanelVisibilityChanged(listenerId: string, fn: (params: JAppUISidePanelVisibilityChangedEventParams) => void): void
|
|
2959
2925
|
|
|
2960
2926
|
/**
|
|
2961
2927
|
* ***JMap.Application.Event.UI.on.sidePanelWidthChanged***
|
|
@@ -2973,10 +2939,7 @@ declare global {
|
|
|
2973
2939
|
* )
|
|
2974
2940
|
* ```
|
|
2975
2941
|
*/
|
|
2976
|
-
function sidePanelWidthChanged(
|
|
2977
|
-
listenerId: string,
|
|
2978
|
-
fn: (params: JAppUISidePanelWidthChangedEventParams) => void
|
|
2979
|
-
): void
|
|
2942
|
+
function sidePanelWidthChanged(listenerId: string, fn: (params: JAppUISidePanelWidthChangedEventParams) => void): void
|
|
2980
2943
|
}
|
|
2981
2944
|
|
|
2982
2945
|
/**
|
package/public/draw.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export {}
|
|
2
2
|
// ALL_APP_DRAW_TYPES in all-enum.ts
|
|
3
|
-
export
|
|
3
|
+
export enum JAPP_DRAW_TYPES {
|
|
4
4
|
POINT = "point",
|
|
5
5
|
POLYGON = "polygon",
|
|
6
6
|
LINE_STRING = "line_string",
|
|
@@ -10,7 +10,7 @@ export const enum JAPP_DRAW_TYPES {
|
|
|
10
10
|
}
|
|
11
11
|
|
|
12
12
|
// ALL_APP_DRAW_MODES in all-enum.ts
|
|
13
|
-
export
|
|
13
|
+
export enum JAPP_DRAW_MODES {
|
|
14
14
|
DRAW = "draw",
|
|
15
15
|
SELECT = "select",
|
|
16
16
|
DELETE = "delete"
|
package/public/geometry.d.ts
CHANGED
|
@@ -10,13 +10,11 @@ import type * as geometrydts from "./geometry.d.ts"
|
|
|
10
10
|
import type * as layerdts from "./layer.d.ts"
|
|
11
11
|
import type * as mapcontextdts from "./map-context.d.ts"
|
|
12
12
|
import type * as measuredts from "./measure.d.ts"
|
|
13
|
-
import type * as messagedts from "./message.d.ts"
|
|
14
13
|
import type * as paneldts from "./panel.d.ts"
|
|
15
14
|
import type * as printdts from "./print.d.ts"
|
|
16
15
|
import type * as selectiondts from "./selection.d.ts"
|
|
17
16
|
import type * as startupoptionsdts from "./startup-options.d.ts"
|
|
18
17
|
import type * as uidts from "./ui.d.ts"
|
|
19
|
-
import type * as userdts from "./user.d.ts"
|
|
20
18
|
|
|
21
19
|
/** @internal @hidden */
|
|
22
20
|
declare global {
|
|
@@ -50,7 +48,6 @@ declare global {
|
|
|
50
48
|
/** @internal */ type JAppLayerAnyFilterOperatorType = layerdts.JAppLayerAnyFilterOperatorType
|
|
51
49
|
/** @internal */ type JAppLayerTreeFilterState = layerdts.JAppLayerTreeFilterState
|
|
52
50
|
/** @internal */ type JAppGetAllFiltersResult = layerdts.JAppGetAllFiltersResult
|
|
53
|
-
/** @internal */ type JAppLayerIdByFilterId = layerdts.JAppLayerIdByFilterId
|
|
54
51
|
/** @internal */ type JAppAnyLayerFilter = layerdts.JAppAnyLayerFilter
|
|
55
52
|
/** @internal */ type JAppBaseLayerFilter = layerdts.JAppBaseLayerFilter
|
|
56
53
|
/** @internal */ type JAppNumberLayerFilter = layerdts.JAppNumberLayerFilter
|
|
@@ -65,12 +62,6 @@ declare global {
|
|
|
65
62
|
/** @internal */ type JAppMeasureEdge = measuredts.JAppMeasureEdge
|
|
66
63
|
/** @internal */ type JAppMeasure = measuredts.JAppMeasure
|
|
67
64
|
/** @internal */ type JAppMeasureCreationEventParams = measuredts.JAppMeasureCreationEventParams
|
|
68
|
-
/** @internal */ type JAPP_MESSAGE_SEVERITIES = messagedts.JAPP_MESSAGE_SEVERITIES
|
|
69
|
-
/** @internal */ const JAPP_MESSAGE_SEVERITIES: typeof messagedts.JAPP_MESSAGE_SEVERITIES
|
|
70
|
-
/** @internal */ type JAppMessage = messagedts.JAppMessage
|
|
71
|
-
/** @internal */ type JAppOverlayMessage = messagedts.JAppOverlayMessage
|
|
72
|
-
/** @internal */ type JAppConfirmMessage = messagedts.JAppConfirmMessage
|
|
73
|
-
/** @internal */ type JAppMessageOptions = messagedts.JAppMessageOptions
|
|
74
65
|
/** @internal */ type JAppPanelActivationParams = paneldts.JAppPanelActivationParams
|
|
75
66
|
/** @internal */ type JAppPanelDeactivationParams = paneldts.JAppPanelDeactivationParams
|
|
76
67
|
/** @internal */ type JAppPanelLeaveResponse = paneldts.JAppPanelLeaveResponse
|
|
@@ -87,5 +78,4 @@ declare global {
|
|
|
87
78
|
/** @internal */ type JApplicationOptions = startupoptionsdts.JApplicationOptions
|
|
88
79
|
/** @internal */ type JAppUISidePanelVisibilityChangedEventParams = uidts.JAppUISidePanelVisibilityChangedEventParams
|
|
89
80
|
/** @internal */ type JAppUISidePanelWidthChangedEventParams = uidts.JAppUISidePanelWidthChangedEventParams
|
|
90
|
-
/** @internal */ type JAppUserAction = userdts.JAppUserAction
|
|
91
81
|
}
|
package/public/layer.d.ts
CHANGED
|
@@ -1,30 +1,35 @@
|
|
|
1
1
|
export {}
|
|
2
|
+
|
|
3
|
+
/** @deprecated The legacy layer dynamic-filter API was removed. Kept only so the deprecated public API surface still type-checks. */
|
|
2
4
|
// ALL_APP_LAYER_DATE_FILTER_OPERATOR_TYPES in all-enum.ts
|
|
3
|
-
export
|
|
5
|
+
export enum JAPP_LAYER_DATE_FILTER_OPERATOR_TYPES {
|
|
4
6
|
BEFORE = "before",
|
|
5
7
|
AFTER = "after",
|
|
6
8
|
BETWEEN = "between",
|
|
7
9
|
LAST_PERIOD = "lastPeriod"
|
|
8
10
|
}
|
|
9
11
|
|
|
12
|
+
/** @deprecated The legacy layer dynamic-filter API was removed. Kept only so the deprecated public API surface still type-checks. */
|
|
10
13
|
// ALL_APP_LAYER_TEXT_FILTER_OPERATOR_TYPES in all-enum.ts
|
|
11
|
-
export
|
|
14
|
+
export enum JAPP_LAYER_TEXT_FILTER_OPERATOR_TYPES {
|
|
12
15
|
CONTAINS = "contains",
|
|
13
16
|
DOES_NOT_CONTAIN = "doesNotContain",
|
|
14
17
|
EQUALS = "equals",
|
|
15
18
|
DOES_NOT_EQUALS = "doesNotEqual"
|
|
16
19
|
}
|
|
17
20
|
|
|
21
|
+
/** @deprecated The legacy layer dynamic-filter API was removed. Kept only so the deprecated public API surface still type-checks. */
|
|
18
22
|
// ALL_APP_LAYER_NUMBER_FILTER_OPERATOR_TYPES in all-enum.ts
|
|
19
|
-
export
|
|
23
|
+
export enum JAPP_LAYER_NUMBER_FILTER_OPERATOR_TYPES {
|
|
20
24
|
EQUALS = "equals",
|
|
21
25
|
DOES_NOT_EQUALS = "doesNotEqual",
|
|
22
26
|
SMALLER_THAN = "smallerThan",
|
|
23
27
|
GREATER_THAN = "greaterThan"
|
|
24
28
|
}
|
|
25
29
|
|
|
30
|
+
/** @deprecated The legacy layer dynamic-filter API was removed. Kept only so the deprecated public API surface still type-checks. */
|
|
26
31
|
// ALL_APP_LAYER_FILTER_DATE_PERIOD_TYPES in all-enum.ts
|
|
27
|
-
export
|
|
32
|
+
export enum JAPP_LAYER_FILTER_DATE_PERIOD_TYPES {
|
|
28
33
|
DAY = "day",
|
|
29
34
|
WEEK = "week",
|
|
30
35
|
MONTH = "month",
|
|
@@ -32,52 +37,51 @@ export const enum JAPP_LAYER_FILTER_DATE_PERIOD_TYPES {
|
|
|
32
37
|
}
|
|
33
38
|
|
|
34
39
|
// ALL_APP_LAYER_EDITION_TABS in all-enum.ts
|
|
35
|
-
export
|
|
40
|
+
export enum JAPP_LAYER_EDITION_TABS {
|
|
36
41
|
THEMATICS = "thematics",
|
|
37
42
|
DYNAMIC_FILTER = "dynamic-filter",
|
|
38
43
|
GENERAL = "general"
|
|
39
44
|
}
|
|
40
45
|
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
| JAPP_LAYER_TEXT_FILTER_OPERATOR_TYPES
|
|
44
|
-
| JAPP_LAYER_NUMBER_FILTER_OPERATOR_TYPES
|
|
46
|
+
/** @deprecated The legacy layer dynamic-filter API was removed. */
|
|
47
|
+
export type JAppLayerAnyFilterOperatorType = JAPP_LAYER_DATE_FILTER_OPERATOR_TYPES | JAPP_LAYER_TEXT_FILTER_OPERATOR_TYPES | JAPP_LAYER_NUMBER_FILTER_OPERATOR_TYPES
|
|
45
48
|
|
|
46
49
|
export interface JAppLayerTreeFilterState {
|
|
47
50
|
active: boolean
|
|
48
|
-
isAddingFilter: boolean
|
|
49
51
|
nameFilter: string
|
|
50
|
-
filters: JAppAnyLayerFilter[]
|
|
51
52
|
exactlyMatchedTreeItemIds: JId[]
|
|
52
53
|
expandedMatchedTreeItemIds: JId[]
|
|
53
|
-
layerIdsByFilterId: JAppLayerIdByFilterId
|
|
54
54
|
}
|
|
55
55
|
|
|
56
|
+
/** @deprecated The legacy layer dynamic-filter API was removed. */
|
|
56
57
|
export interface JAppGetAllFiltersResult {
|
|
57
58
|
nameFilter: string
|
|
58
59
|
filters: JAppAnyLayerFilter[]
|
|
59
60
|
}
|
|
60
61
|
|
|
61
|
-
|
|
62
|
-
|
|
62
|
+
/** @deprecated The legacy layer dynamic-filter API was removed. */
|
|
63
63
|
export type JAppAnyLayerFilter = JAppNumberLayerFilter | JAppTextLayerFilter | JAppDateLayerFilter
|
|
64
64
|
|
|
65
|
+
/** @deprecated The legacy layer dynamic-filter API was removed. */
|
|
65
66
|
export interface JAppBaseLayerFilter {
|
|
66
67
|
id: number
|
|
67
68
|
metadataItemId: JId
|
|
68
69
|
type: JLAYER_METADATA_TYPES
|
|
69
70
|
}
|
|
70
71
|
|
|
72
|
+
/** @deprecated The legacy layer dynamic-filter API was removed. */
|
|
71
73
|
export interface JAppNumberLayerFilter extends JAppBaseLayerFilter {
|
|
72
74
|
operator: JAPP_LAYER_NUMBER_FILTER_OPERATOR_TYPES
|
|
73
75
|
value: number
|
|
74
76
|
}
|
|
75
77
|
|
|
78
|
+
/** @deprecated The legacy layer dynamic-filter API was removed. */
|
|
76
79
|
export interface JAppTextLayerFilter extends JAppBaseLayerFilter {
|
|
77
80
|
operator: JAPP_LAYER_TEXT_FILTER_OPERATOR_TYPES
|
|
78
81
|
value: string
|
|
79
82
|
}
|
|
80
83
|
|
|
84
|
+
/** @deprecated The legacy layer dynamic-filter API was removed. */
|
|
81
85
|
export interface JAppDateLayerFilter extends JAppBaseLayerFilter {
|
|
82
86
|
operator: JAPP_LAYER_DATE_FILTER_OPERATOR_TYPES
|
|
83
87
|
datePeriod?: JAPP_LAYER_FILTER_DATE_PERIOD_TYPES
|
package/public/measure.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ export {}
|
|
|
3
3
|
export type JAPP_MEASURE_TYPES = JAPP_DRAW_TYPES.POLYGON | JAPP_DRAW_TYPES.LINE_STRING | JAPP_DRAW_TYPES.CIRCLE
|
|
4
4
|
|
|
5
5
|
// ALL_APP_MEASUREMENT_SYSTEMS in all-enum.ts
|
|
6
|
-
export
|
|
6
|
+
export enum JAPP_MEASUREMENT_SYSTEMS {
|
|
7
7
|
PLANAR = "planar",
|
|
8
8
|
GEODETIC = "geodetic"
|
|
9
9
|
}
|
package/public/print.d.ts
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
export {}
|
|
2
2
|
// ALL_APP_PRINT_FILE_TYPES in all-enum.ts
|
|
3
|
-
export
|
|
3
|
+
export enum JAPP_PRINT_FILE_TYPES {
|
|
4
4
|
PNG = "png",
|
|
5
5
|
JPEG = "jpeg",
|
|
6
6
|
PDF = "pdf"
|
|
7
7
|
}
|
|
8
8
|
|
|
9
9
|
// ALL_APP_PRINT_PAPER_SIZES in all-enum.ts
|
|
10
|
-
export
|
|
10
|
+
export enum JAPP_PRINT_PAPER_SIZES {
|
|
11
11
|
LETTER = "letter",
|
|
12
12
|
LEGAL = "legal",
|
|
13
13
|
A3 = "a3",
|
|
@@ -16,7 +16,7 @@ export const enum JAPP_PRINT_PAPER_SIZES {
|
|
|
16
16
|
}
|
|
17
17
|
|
|
18
18
|
// ALL_APP_PRINT_LEGEND_POSITION in all-enum.ts
|
|
19
|
-
export
|
|
19
|
+
export enum JAPP_PRINT_LEGEND_POSITION {
|
|
20
20
|
TOP_RIGHT = "top-right",
|
|
21
21
|
TOP_LEFT = "top-left"
|
|
22
22
|
}
|
package/public/selection.d.ts
CHANGED
|
@@ -1,8 +1,3 @@
|
|
|
1
1
|
import type { JAPP_DRAW_TYPES } from "./draw.d.ts"
|
|
2
2
|
export {}
|
|
3
|
-
export type JAPP_SELECTION_TYPES =
|
|
4
|
-
| JAPP_DRAW_TYPES.POINT
|
|
5
|
-
| JAPP_DRAW_TYPES.LINE_STRING
|
|
6
|
-
| JAPP_DRAW_TYPES.RECTANGLE
|
|
7
|
-
| JAPP_DRAW_TYPES.CIRCLE
|
|
8
|
-
| JAPP_DRAW_TYPES.POLYGON
|
|
3
|
+
export type JAPP_SELECTION_TYPES = JAPP_DRAW_TYPES.POINT | JAPP_DRAW_TYPES.LINE_STRING | JAPP_DRAW_TYPES.RECTANGLE | JAPP_DRAW_TYPES.CIRCLE | JAPP_DRAW_TYPES.POLYGON
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file registers all enums on globalThis so they're available as ambient values at runtime.
|
|
3
|
+
* Required because Vite/esbuild doesn't support const enum inlining from .d.ts files.
|
|
4
|
+
* Import this file early in the application entry point.
|
|
5
|
+
*/
|
|
6
|
+
import * as enums from "./enums"
|
|
7
|
+
|
|
8
|
+
for (const [key, value] of Object.entries(enums)) {
|
|
9
|
+
;(globalThis as any)[key] = value
|
|
10
|
+
}
|
package/public/message.d.ts
DELETED
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
export {}
|
|
2
|
-
// ALL_APP_MESSAGE_SEVERITIES in all-enum.ts
|
|
3
|
-
export const enum JAPP_MESSAGE_SEVERITIES {
|
|
4
|
-
SUCCESS = "success",
|
|
5
|
-
INFO = "info",
|
|
6
|
-
WARNING = "warning",
|
|
7
|
-
ERROR = "error"
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
export interface JAppMessage {
|
|
11
|
-
id: string
|
|
12
|
-
text: string
|
|
13
|
-
severity: JAPP_MESSAGE_SEVERITIES
|
|
14
|
-
expired: boolean
|
|
15
|
-
duration: number | null
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
export interface JAppOverlayMessage {
|
|
19
|
-
id: string
|
|
20
|
-
text: string
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
export interface JAppConfirmMessage {
|
|
24
|
-
message: string
|
|
25
|
-
title: string
|
|
26
|
-
isInputMessage?: boolean
|
|
27
|
-
isInputOptional?: boolean
|
|
28
|
-
inputPlaceholder?: string
|
|
29
|
-
confirmButtonLabel?: string
|
|
30
|
-
cancelButtonLabel?: string
|
|
31
|
-
locale?: JLOCALES
|
|
32
|
-
onSuccess: (input: string) => any
|
|
33
|
-
onCancel?: () => any
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
export interface JAppMessageOptions {
|
|
37
|
-
severity?: JAPP_MESSAGE_SEVERITIES
|
|
38
|
-
duration?: number | null
|
|
39
|
-
}
|
package/public/user.d.ts
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
export {}
|
|
2
|
-
export interface JAppUserAction {
|
|
3
|
-
id: string
|
|
4
|
-
label: string | JTranslationItem
|
|
5
|
-
/**
|
|
6
|
-
* must be a fontawsome IconDefinition or a valid <img> src (url or base64 data)
|
|
7
|
-
*/
|
|
8
|
-
icon: import("@fortawesome/fontawesome-svg-core").IconDefinition | string
|
|
9
|
-
isHelp?: boolean
|
|
10
|
-
href?: string
|
|
11
|
-
disabled?: boolean
|
|
12
|
-
onClick?: React.MouseEventHandler<HTMLLIElement>
|
|
13
|
-
}
|