jmapcloud-ng-types 1.0.51 → 1.1.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/package.json +4 -3
- package/public/app.d.ts +1 -1
- package/public/panel.d.ts +4 -1
- package/public/user.d.ts +4 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "jmapcloud-ng-types",
|
|
3
|
-
"version": "1.0
|
|
3
|
+
"version": "1.1.0",
|
|
4
4
|
"description": "JMap Cloud specific version of JMap Cloud NG types and interfaces",
|
|
5
5
|
"main": "src/app.ts",
|
|
6
6
|
"scripts": {
|
|
@@ -23,8 +23,9 @@
|
|
|
23
23
|
"homepage": "https://github.com/k2geospatial/jmapcloud-ng-types#readme",
|
|
24
24
|
"devDependencies": {
|
|
25
25
|
"@types/react": "^18.3.2",
|
|
26
|
-
"
|
|
27
|
-
"
|
|
26
|
+
"@fortawesome/fontawesome-svg-core": "^6.7.2",
|
|
27
|
+
"jmapcloud-ng-core-types": "../ng-core-types",
|
|
28
|
+
"maplibre-gl": "^4.7.1",
|
|
28
29
|
"react": "^18.3.1",
|
|
29
30
|
"typedoc": "^0.25.13"
|
|
30
31
|
}
|
package/public/app.d.ts
CHANGED
|
@@ -3046,7 +3046,7 @@ declare namespace JMap {
|
|
|
3046
3046
|
* ```ts
|
|
3047
3047
|
* JMap.Application.User.addPopupMenuAction({
|
|
3048
3048
|
* id: "my-unique-id",
|
|
3049
|
-
* icon: "
|
|
3049
|
+
* icon: "https://link.to.my/image",
|
|
3050
3050
|
* label: { key: "my.custom.menu.item.translation.key", bundleId: "myTranslationBundleId"}, // label can also be a simple string
|
|
3051
3051
|
* isHelp: true, // if true will be displayed in the JMap help menu
|
|
3052
3052
|
* onClick: () => window.open("https://link-to-my-documentation", "_blanck")
|
package/public/panel.d.ts
CHANGED
|
@@ -13,7 +13,10 @@ declare interface JAppPanelLeaveResponse {
|
|
|
13
13
|
|
|
14
14
|
declare interface JAppPanel {
|
|
15
15
|
id: string
|
|
16
|
-
|
|
16
|
+
/**
|
|
17
|
+
* must be a fontawesome IconDefinition or a valid <img> src (url or base64 data), or an svg string
|
|
18
|
+
*/
|
|
19
|
+
icon: import("@fortawesome/fontawesome-svg-core").IconDefinition | string
|
|
17
20
|
iconTooltip: string | JTranslationItem | (() => string)
|
|
18
21
|
interactorId?: string | (() => string | undefined)
|
|
19
22
|
omitPanelHeader?: boolean
|
package/public/user.d.ts
CHANGED
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
declare interface JAppUserAction {
|
|
2
2
|
id: string
|
|
3
3
|
label: string | JTranslationItem
|
|
4
|
-
|
|
4
|
+
/**
|
|
5
|
+
* must be a fontawsome IconDefinition or a valid <img> src (url or base64 data)
|
|
6
|
+
*/
|
|
7
|
+
icon: import("@fortawesome/fontawesome-svg-core").IconDefinition | string
|
|
5
8
|
isHelp?: boolean
|
|
6
9
|
href?: string
|
|
7
10
|
disabled?: boolean
|