jmapcloud-ng-types 1.1.25 → 1.1.26

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 CHANGED
@@ -7,21 +7,11 @@ 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
 
26
16
  export const ALL_APP_LAYER_DATE_FILTER_OPERATOR_TYPES: JAPP_LAYER_DATE_FILTER_OPERATOR_TYPES[] = [
27
17
  JAPP_LAYER_DATE_FILTER_OPERATOR_TYPES.BEFORE,
@@ -51,47 +41,16 @@ export const ALL_APP_LAYER_FILTER_DATE_PERIOD_TYPES: JAPP_LAYER_FILTER_DATE_PERI
51
41
  JAPP_LAYER_FILTER_DATE_PERIOD_TYPES.YEAR
52
42
  ]
53
43
 
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
- ]
44
+ 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
45
 
60
- export const ALL_APP_MESSAGE_SEVERITIES: JAPP_MESSAGE_SEVERITIES[] = [
61
- JAPP_MESSAGE_SEVERITIES.SUCCESS,
62
- JAPP_MESSAGE_SEVERITIES.INFO,
63
- JAPP_MESSAGE_SEVERITIES.WARNING,
64
- JAPP_MESSAGE_SEVERITIES.ERROR
65
- ]
46
+ export const ALL_APP_MESSAGE_SEVERITIES: JAPP_MESSAGE_SEVERITIES[] = [JAPP_MESSAGE_SEVERITIES.SUCCESS, JAPP_MESSAGE_SEVERITIES.INFO, JAPP_MESSAGE_SEVERITIES.WARNING, JAPP_MESSAGE_SEVERITIES.ERROR]
66
47
 
67
- export const ALL_APP_PRINT_FILE_TYPES: JAPP_PRINT_FILE_TYPES[] = [
68
- JAPP_PRINT_FILE_TYPES.PNG,
69
- JAPP_PRINT_FILE_TYPES.JPEG,
70
- JAPP_PRINT_FILE_TYPES.PDF
71
- ]
48
+ 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]
72
49
 
73
- export const ALL_APP_PRINT_PAPER_SIZES: JAPP_PRINT_PAPER_SIZES[] = [
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
- ]
50
+ 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]
79
51
 
80
- export const ALL_APP_PRINT_LEGEND_POSITION: JAPP_PRINT_LEGEND_POSITION[] = [
81
- JAPP_PRINT_LEGEND_POSITION.TOP_RIGHT,
82
- JAPP_PRINT_LEGEND_POSITION.TOP_LEFT
83
- ]
52
+ export const ALL_APP_PRINT_LEGEND_POSITION: JAPP_PRINT_LEGEND_POSITION[] = [JAPP_PRINT_LEGEND_POSITION.TOP_RIGHT, JAPP_PRINT_LEGEND_POSITION.TOP_LEFT]
84
53
 
85
- export const ALL_APP_SELECTION_TYPES: JAPP_SELECTION_TYPES[] = [
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
- ]
54
+ 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]
92
55
 
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
- ]
56
+ 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,93 @@
1
+ // This file contains all enum declarations extracted from .d.ts files
2
+ // so they produce runtime JavaScript values.
3
+
4
+ // From message.d.ts
5
+ export enum JAPP_MESSAGE_SEVERITIES {
6
+ SUCCESS = "success",
7
+ INFO = "info",
8
+ WARNING = "warning",
9
+ ERROR = "error"
10
+ }
11
+
12
+ // From layer.d.ts
13
+ export enum JAPP_LAYER_DATE_FILTER_OPERATOR_TYPES {
14
+ BEFORE = "before",
15
+ AFTER = "after",
16
+ BETWEEN = "between",
17
+ LAST_PERIOD = "lastPeriod"
18
+ }
19
+
20
+ export enum JAPP_LAYER_TEXT_FILTER_OPERATOR_TYPES {
21
+ CONTAINS = "contains",
22
+ DOES_NOT_CONTAIN = "doesNotContain",
23
+ EQUALS = "equals",
24
+ DOES_NOT_EQUALS = "doesNotEqual"
25
+ }
26
+
27
+ export enum JAPP_LAYER_NUMBER_FILTER_OPERATOR_TYPES {
28
+ EQUALS = "equals",
29
+ DOES_NOT_EQUALS = "doesNotEqual",
30
+ SMALLER_THAN = "smallerThan",
31
+ GREATER_THAN = "greaterThan"
32
+ }
33
+
34
+ export enum JAPP_LAYER_FILTER_DATE_PERIOD_TYPES {
35
+ DAY = "day",
36
+ WEEK = "week",
37
+ MONTH = "month",
38
+ YEAR = "year"
39
+ }
40
+
41
+ export enum JAPP_LAYER_EDITION_TABS {
42
+ THEMATICS = "thematics",
43
+ DYNAMIC_FILTER = "dynamic-filter",
44
+ GENERAL = "general"
45
+ }
46
+
47
+ // From print.d.ts
48
+ export enum JAPP_PRINT_FILE_TYPES {
49
+ PNG = "png",
50
+ JPEG = "jpeg",
51
+ PDF = "pdf"
52
+ }
53
+
54
+ export enum JAPP_PRINT_PAPER_SIZES {
55
+ LETTER = "letter",
56
+ LEGAL = "legal",
57
+ A3 = "a3",
58
+ A4 = "a4",
59
+ CUSTOM = "custom"
60
+ }
61
+
62
+ export enum JAPP_PRINT_LEGEND_POSITION {
63
+ TOP_RIGHT = "top-right",
64
+ TOP_LEFT = "top-left"
65
+ }
66
+
67
+ // From measure.d.ts
68
+ export enum JAPP_MEASUREMENT_SYSTEMS {
69
+ PLANAR = "planar",
70
+ GEODETIC = "geodetic"
71
+ }
72
+
73
+ // From draw.d.ts
74
+ export enum JAPP_DRAW_TYPES {
75
+ POINT = "point",
76
+ POLYGON = "polygon",
77
+ LINE_STRING = "line_string",
78
+ RECTANGLE = "rectangle",
79
+ CIRCLE = "circle",
80
+ TEXT = "text"
81
+ }
82
+
83
+ export enum JAPP_DRAW_MODES {
84
+ DRAW = "draw",
85
+ SELECT = "select",
86
+ DELETE = "delete"
87
+ }
88
+
89
+ // From geometry.d.ts
90
+ export enum JAPP_GEOMETRY_WIZARD_STEPS {
91
+ SELECT_LAYER = "select-layer",
92
+ DRAW = "draw"
93
+ }
package/index.ts CHANGED
@@ -119,14 +119,11 @@ export interface JAppPrintState {
119
119
  isOrientationPortrait: boolean
120
120
  base64Image: string
121
121
  pageTitle: string
122
- pageSubTitle: string
123
122
  isDateVisible: boolean
124
123
  isNorthArrowVisible: boolean
125
124
  isScaleVisible: boolean
126
125
  isLegend: boolean
127
- isHiResolution: boolean
128
126
  legendTitle: string
129
- legendSubTitle: string
130
127
  legendPosition: JAPP_PRINT_LEGEND_POSITION
131
128
  filterList: any[]
132
129
  }
@@ -347,8 +344,6 @@ export interface JAppPrintService {
347
344
  isScaleControlVisible(): boolean
348
345
  setPageTitle(title: string): void
349
346
  getPageTitle(): string
350
- setPageSubTitle(subTitle: string): void
351
- getPageSubTitle(): string
352
347
  setDateVisibility(isVisible: boolean): void
353
348
  isDateVisibile(): boolean
354
349
  setNorthArrowVisibility(isVisible: boolean): void
@@ -360,13 +355,9 @@ export interface JAppPrintService {
360
355
  isOrientationPortrait(): boolean
361
356
  setFileType(fileType: JAPP_PRINT_FILE_TYPES): void
362
357
  getFileType(): JAPP_PRINT_FILE_TYPES
363
- setHiResolution(isHiResolution: boolean): void
364
- getHiResolution(): boolean
365
- takeCapture(
366
- returnAsScreenCaptureResult?: boolean,
367
- customRatioWidth?: number,
368
- customRatioHeight?: number
369
- ): Promise<void | JAppPrintCaptureResult>
358
+ takeCapture(returnAsScreenCaptureResult?: boolean, customRatioWidth?: number, customRatioHeight?: number): Promise<void | JAppPrintCaptureResult>
359
+ setLegendVisibility(isVisible: boolean): void
360
+ isLegendVisible(): boolean
370
361
  }
371
362
 
372
363
  export interface JAppLayerService {
@@ -452,10 +443,7 @@ export interface JAppExtensionEventModule extends JEventModule {
452
443
 
453
444
  export interface JAppUIEventModule extends JEventModule {
454
445
  on: {
455
- sidePanelVisibilityChanged(
456
- listenerId: string,
457
- fn: (params: JAppUISidePanelVisibilityChangedEventParams) => void
458
- ): void
446
+ sidePanelVisibilityChanged(listenerId: string, fn: (params: JAppUISidePanelVisibilityChangedEventParams) => void): void
459
447
  sidePanelWidthChanged(listenerId: string, fn: (params: JAppUISidePanelWidthChangedEventParams) => void): void
460
448
  }
461
449
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jmapcloud-ng-types",
3
- "version": "1.1.25",
3
+ "version": "1.1.26",
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",
package/public/app.d.ts CHANGED
@@ -3,18 +3,8 @@ 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
- JAPP_LAYER_EDITION_TABS,
8
- JAppAnyLayerFilter,
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"
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"
18
8
  import type { JAppConfirmMessage, JAppMessageOptions } from "./message.d.ts"
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"
@@ -2268,34 +2258,6 @@ declare global {
2268
2258
  */
2269
2259
  function getPageTitle(): string
2270
2260
 
2271
- /**
2272
- * **JMap.Application.Print.setPageSubTitle**
2273
- *
2274
- * Sets the subtitle displayed in the bottom of the print layout.
2275
- *
2276
- * @throws if subTitle is not a string
2277
- * @param subTitle The subtitle displayed in the bottom of the print layout
2278
- * @example
2279
- * ```ts
2280
- * // set subtitle
2281
- * JMap.Application.Print.setPageSubTitle("My custom subtitle")
2282
- * ```
2283
- */
2284
- function setPageSubTitle(subTitle: string): void
2285
-
2286
- /**
2287
- * **JMap.Application.Print.getPageSubTitle**
2288
- *
2289
- * Returns the subtitle displayed in the bottom of the print layout.
2290
- *
2291
- * @example
2292
- * ```ts
2293
- * // returns the displayed subtitle
2294
- * JMap.Application.Print.getPageSubTitle()
2295
- * ```
2296
- */
2297
- function getPageSubTitle(): string
2298
-
2299
2261
  /**
2300
2262
  * **JMap.Application.Print.isDateVisibile**
2301
2263
  *
@@ -2356,6 +2318,36 @@ declare global {
2356
2318
  */
2357
2319
  function setNorthArrowVisibility(isVisible: boolean): void
2358
2320
 
2321
+ /**
2322
+ * **JMap.Application.Print.isLegendVisible**
2323
+ *
2324
+ * Returns true if the legend is displayed in the print layout.
2325
+ *
2326
+ * @example
2327
+ * ```ts
2328
+ * // returns true if the legend is visible
2329
+ * JMap.Application.Print.isLegendVisible()
2330
+ * ```
2331
+ */
2332
+ function isLegendVisible(): boolean
2333
+
2334
+ /**
2335
+ * **JMap.Application.Print.setLegendVisibility**
2336
+ *
2337
+ * Sets the legend visible or hidden in the print layout.
2338
+ *
2339
+ * @param isVisible true to display, false to hide
2340
+ * @example
2341
+ * ```ts
2342
+ * // Hide the legend
2343
+ * JMap.Application.Print.setLegendVisibility(false)
2344
+ *
2345
+ * // Show the legend
2346
+ * JMap.Application.Print.setLegendVisibility(true)
2347
+ * ```
2348
+ */
2349
+ function setLegendVisibility(isVisible: boolean): void
2350
+
2359
2351
  /**
2360
2352
  * **JMap.Application.Print.getAllPaperFormats**
2361
2353
  *
@@ -2462,35 +2454,6 @@ declare global {
2462
2454
  */
2463
2455
  function setFileType(fileType: JAPP_PRINT_FILE_TYPES): void
2464
2456
 
2465
- /**
2466
- * **JMap.Application.Print.setHiResolution**
2467
- *
2468
- * Sets the parameter determining if the map will be exported in hi resolution or not.
2469
- *
2470
- * @throws if isHiResolution is not a boolean
2471
- * @param isHiResolution true or false
2472
- * @example
2473
- * ```ts
2474
- * // set export mode to hi resolution
2475
- * JMap.Application.Print.setHiResolution(true)
2476
- * ```
2477
- */
2478
- function setHiResolution(isHiResolution: boolean): void
2479
-
2480
- /**
2481
- * **JMap.Application.Print.getHiResolution**
2482
- *
2483
- * Returns true if the map export is set to hi resolution, false otherwise.
2484
- *
2485
- * @example
2486
- * ```ts
2487
- * // get export resolution
2488
- * JMap.Application.Print.getHiResolution()
2489
- * // true
2490
- * ```
2491
- */
2492
- function getHiResolution(): boolean
2493
-
2494
2457
  /**
2495
2458
  * **JMap.Application.Print.takeCapture**
2496
2459
  *
@@ -2526,11 +2489,7 @@ declare global {
2526
2489
  * )
2527
2490
  * ```
2528
2491
  */
2529
- function takeCapture(
2530
- returnAsScreenCaptureResult?: boolean,
2531
- customRatioWidth?: number,
2532
- customRatioHeight?: number
2533
- ): Promise<void | JAppPrintCaptureResult>
2492
+ function takeCapture(returnAsScreenCaptureResult?: boolean, customRatioWidth?: number, customRatioHeight?: number): Promise<void | JAppPrintCaptureResult>
2534
2493
  }
2535
2494
 
2536
2495
  /**
@@ -2952,10 +2911,7 @@ declare global {
2952
2911
  * )
2953
2912
  * ```
2954
2913
  */
2955
- function sidePanelVisibilityChanged(
2956
- listenerId: string,
2957
- fn: (params: JAppUISidePanelVisibilityChangedEventParams) => void
2958
- ): void
2914
+ function sidePanelVisibilityChanged(listenerId: string, fn: (params: JAppUISidePanelVisibilityChangedEventParams) => void): void
2959
2915
 
2960
2916
  /**
2961
2917
  * ***JMap.Application.Event.UI.on.sidePanelWidthChanged***
@@ -2973,10 +2929,7 @@ declare global {
2973
2929
  * )
2974
2930
  * ```
2975
2931
  */
2976
- function sidePanelWidthChanged(
2977
- listenerId: string,
2978
- fn: (params: JAppUISidePanelWidthChangedEventParams) => void
2979
- ): void
2932
+ function sidePanelWidthChanged(listenerId: string, fn: (params: JAppUISidePanelWidthChangedEventParams) => void): void
2980
2933
  }
2981
2934
 
2982
2935
  /**
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 const enum JAPP_DRAW_TYPES {
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 const enum JAPP_DRAW_MODES {
13
+ export enum JAPP_DRAW_MODES {
14
14
  DRAW = "draw",
15
15
  SELECT = "select",
16
16
  DELETE = "delete"
@@ -1,6 +1,6 @@
1
1
  export {}
2
2
  // ALL_APP_GEOMETRY_WIZARD_STEPS in all-enum.ts
3
- export const enum JAPP_GEOMETRY_WIZARD_STEPS {
3
+ export enum JAPP_GEOMETRY_WIZARD_STEPS {
4
4
  SELECT_LAYER = "select-layer",
5
5
  DRAW = "draw"
6
6
  }
package/public/layer.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  export {}
2
2
  // ALL_APP_LAYER_DATE_FILTER_OPERATOR_TYPES in all-enum.ts
3
- export const enum JAPP_LAYER_DATE_FILTER_OPERATOR_TYPES {
3
+ export enum JAPP_LAYER_DATE_FILTER_OPERATOR_TYPES {
4
4
  BEFORE = "before",
5
5
  AFTER = "after",
6
6
  BETWEEN = "between",
@@ -8,7 +8,7 @@ export const enum JAPP_LAYER_DATE_FILTER_OPERATOR_TYPES {
8
8
  }
9
9
 
10
10
  // ALL_APP_LAYER_TEXT_FILTER_OPERATOR_TYPES in all-enum.ts
11
- export const enum JAPP_LAYER_TEXT_FILTER_OPERATOR_TYPES {
11
+ export enum JAPP_LAYER_TEXT_FILTER_OPERATOR_TYPES {
12
12
  CONTAINS = "contains",
13
13
  DOES_NOT_CONTAIN = "doesNotContain",
14
14
  EQUALS = "equals",
@@ -16,7 +16,7 @@ export const enum JAPP_LAYER_TEXT_FILTER_OPERATOR_TYPES {
16
16
  }
17
17
 
18
18
  // ALL_APP_LAYER_NUMBER_FILTER_OPERATOR_TYPES in all-enum.ts
19
- export const enum JAPP_LAYER_NUMBER_FILTER_OPERATOR_TYPES {
19
+ export enum JAPP_LAYER_NUMBER_FILTER_OPERATOR_TYPES {
20
20
  EQUALS = "equals",
21
21
  DOES_NOT_EQUALS = "doesNotEqual",
22
22
  SMALLER_THAN = "smallerThan",
@@ -24,7 +24,7 @@ export const enum JAPP_LAYER_NUMBER_FILTER_OPERATOR_TYPES {
24
24
  }
25
25
 
26
26
  // ALL_APP_LAYER_FILTER_DATE_PERIOD_TYPES in all-enum.ts
27
- export const enum JAPP_LAYER_FILTER_DATE_PERIOD_TYPES {
27
+ export enum JAPP_LAYER_FILTER_DATE_PERIOD_TYPES {
28
28
  DAY = "day",
29
29
  WEEK = "week",
30
30
  MONTH = "month",
@@ -32,16 +32,13 @@ export const enum JAPP_LAYER_FILTER_DATE_PERIOD_TYPES {
32
32
  }
33
33
 
34
34
  // ALL_APP_LAYER_EDITION_TABS in all-enum.ts
35
- export const enum JAPP_LAYER_EDITION_TABS {
35
+ export enum JAPP_LAYER_EDITION_TABS {
36
36
  THEMATICS = "thematics",
37
37
  DYNAMIC_FILTER = "dynamic-filter",
38
38
  GENERAL = "general"
39
39
  }
40
40
 
41
- export type JAppLayerAnyFilterOperatorType =
42
- | JAPP_LAYER_DATE_FILTER_OPERATOR_TYPES
43
- | JAPP_LAYER_TEXT_FILTER_OPERATOR_TYPES
44
- | JAPP_LAYER_NUMBER_FILTER_OPERATOR_TYPES
41
+ export type JAppLayerAnyFilterOperatorType = JAPP_LAYER_DATE_FILTER_OPERATOR_TYPES | JAPP_LAYER_TEXT_FILTER_OPERATOR_TYPES | JAPP_LAYER_NUMBER_FILTER_OPERATOR_TYPES
45
42
 
46
43
  export interface JAppLayerTreeFilterState {
47
44
  active: boolean
@@ -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 const enum JAPP_MEASUREMENT_SYSTEMS {
6
+ export enum JAPP_MEASUREMENT_SYSTEMS {
7
7
  PLANAR = "planar",
8
8
  GEODETIC = "geodetic"
9
9
  }
@@ -1,6 +1,6 @@
1
1
  export {}
2
2
  // ALL_APP_MESSAGE_SEVERITIES in all-enum.ts
3
- export const enum JAPP_MESSAGE_SEVERITIES {
3
+ export enum JAPP_MESSAGE_SEVERITIES {
4
4
  SUCCESS = "success",
5
5
  INFO = "info",
6
6
  WARNING = "warning",
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 const enum JAPP_PRINT_FILE_TYPES {
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 const enum JAPP_PRINT_PAPER_SIZES {
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 const enum JAPP_PRINT_LEGEND_POSITION {
19
+ export enum JAPP_PRINT_LEGEND_POSITION {
20
20
  TOP_RIGHT = "top-right",
21
21
  TOP_LEFT = "top-left"
22
22
  }
@@ -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
+ }