jmapcloud-ng-types 1.1.14 → 1.1.16
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/ambient.d.ts +19 -0
- package/index.ts +3 -1
- package/package.json +2 -1
- package/public/app.d.ts +7 -3
- package/public/startup-options.d.ts +10 -36
package/ambient.d.ts
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/// <reference path="./public/app.d.ts" />
|
|
2
|
+
/// <reference path="./public/startup-options.d.ts" />
|
|
3
|
+
/// <reference path="./public/annotation.d.ts" />
|
|
4
|
+
/// <reference path="./public/draw.d.ts" />
|
|
5
|
+
/// <reference path="./public/extension.d.ts" />
|
|
6
|
+
/// <reference path="./public/form.d.ts" />
|
|
7
|
+
/// <reference path="./public/geometry.d.ts" />
|
|
8
|
+
/// <reference path="./public/layer.d.ts" />
|
|
9
|
+
/// <reference path="./public/map-context.d.ts" />
|
|
10
|
+
/// <reference path="./public/measure.d.ts" />
|
|
11
|
+
/// <reference path="./public/message.d.ts" />
|
|
12
|
+
/// <reference path="./public/panel.d.ts" />
|
|
13
|
+
/// <reference path="./public/print.d.ts" />
|
|
14
|
+
/// <reference path="./public/selection.d.ts" />
|
|
15
|
+
/// <reference path="./public/ui.d.ts" />
|
|
16
|
+
/// <reference path="./public/user.d.ts" />
|
|
17
|
+
|
|
18
|
+
export * from "./index"
|
|
19
|
+
export {}
|
package/index.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { JEventModule } from "jmapcloud-ng-core-types"
|
|
1
|
+
import type { JEventModule } from "jmapcloud-ng-core-types"
|
|
2
2
|
|
|
3
3
|
export interface JAppState {
|
|
4
4
|
panel: JAppPanelState
|
|
@@ -23,6 +23,8 @@ export interface JAppTableState {
|
|
|
23
23
|
activeTableId: JId | undefined
|
|
24
24
|
}
|
|
25
25
|
|
|
26
|
+
export type { JApplicationOptions } from "./public/startup-options.d.ts"
|
|
27
|
+
|
|
26
28
|
export interface JAppGeometryState {
|
|
27
29
|
layerId: JId | undefined
|
|
28
30
|
featureId: JId | undefined // needed for update
|
package/package.json
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "jmapcloud-ng-types",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.16",
|
|
4
4
|
"description": "JMap Cloud specific version of JMap Cloud NG types and interfaces",
|
|
5
5
|
"main": "src/app.ts",
|
|
6
|
+
"types": "ambient.d.ts",
|
|
6
7
|
"scripts": {
|
|
7
8
|
"test": "echo \"Error: no test specified\" && exit 1",
|
|
8
9
|
"pub-github": "node build/buildfile.js publish-github;",
|
package/public/app.d.ts
CHANGED
|
@@ -1,7 +1,5 @@
|
|
|
1
|
-
export {}
|
|
2
|
-
|
|
3
1
|
declare global {
|
|
4
|
-
namespace
|
|
2
|
+
namespace JMapNg {
|
|
5
3
|
/**
|
|
6
4
|
* **JMap.Application**
|
|
7
5
|
*
|
|
@@ -3486,6 +3484,12 @@ declare global {
|
|
|
3486
3484
|
function openForm(params: JFormDialogParams): void
|
|
3487
3485
|
}
|
|
3488
3486
|
}
|
|
3487
|
+
|
|
3488
|
+
interface JCoreService {
|
|
3489
|
+
Application: typeof JMapNg.Application
|
|
3490
|
+
}
|
|
3489
3491
|
}
|
|
3490
3492
|
|
|
3491
3493
|
}
|
|
3494
|
+
|
|
3495
|
+
export {}
|
|
@@ -1,39 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
/**
|
|
3
|
-
* This section is about the JMap Cloud NG startup options.
|
|
4
|
-
*
|
|
5
|
-
* An example of how to configure the application startup options :
|
|
6
|
-
* @example
|
|
7
|
-
* ```html
|
|
8
|
-
* <html>
|
|
9
|
-
* ...
|
|
10
|
-
* <body>
|
|
11
|
-
* <div id="custom-app"></div>
|
|
12
|
-
* <script>
|
|
13
|
-
* window.JMAP_OPTIONS = {
|
|
14
|
-
* projectId: 10,
|
|
15
|
-
* restBaseUrl: "http://my-jmap-server/services/rest/v2.0",
|
|
16
|
-
* session: {
|
|
17
|
-
* token: 2345677654
|
|
18
|
-
* },
|
|
19
|
-
* application: {
|
|
20
|
-
* // will create the application in the div id="custom-app"
|
|
21
|
-
* containerId: "custom-app"
|
|
22
|
-
* }
|
|
23
|
-
* }
|
|
24
|
-
* </script>
|
|
25
|
-
* ...
|
|
26
|
-
* <script defer type="text/javascript" src="https://cdn.jsdelivr.net/npm/jmapcloud-ng-core@0.5.0/public/index.js"></script>
|
|
27
|
-
* <script defer type="text/javascript" src="https://cdn.jsdelivr.net/npm/jmapcloud-ng@0.1.1/public/index.js"></script>
|
|
28
|
-
* </body>
|
|
29
|
-
* </html>
|
|
30
|
-
*
|
|
31
|
-
* ```
|
|
32
|
-
*/
|
|
33
|
-
application?: JApplicationOptions
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
declare interface JApplicationOptions {
|
|
1
|
+
export interface JApplicationOptions {
|
|
37
2
|
/**
|
|
38
3
|
* When the application start it will create or use an existing div container in which the app will be inserted into.
|
|
39
4
|
*
|
|
@@ -349,3 +314,12 @@ declare interface JApplicationOptions {
|
|
|
349
314
|
*/
|
|
350
315
|
extensions?: JAppExtension[]
|
|
351
316
|
}
|
|
317
|
+
|
|
318
|
+
// Augment the core startup options to include NG application options.
|
|
319
|
+
declare module "jmapcloud-ng-core-types" {
|
|
320
|
+
interface JCoreOptions {
|
|
321
|
+
application?: JApplicationOptions
|
|
322
|
+
}
|
|
323
|
+
}
|
|
324
|
+
|
|
325
|
+
export {}
|