jmapcloud-ng 1.1.10 → 1.1.12
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/.env.example +2 -0
- package/package.json +12 -42
- package/public/119.1c53fc837017c47d1253.js +1 -0
- package/public/131.276750e99f92fa70ea32.js +1 -0
- package/public/454.e8d826b85fdafb32135b.js +101 -0
- package/public/540.82b07e34b5894b9337ec.js +1 -0
- package/public/62.6982994e460b76a9aac9.js +89 -0
- package/public/index.js +1 -1
- package/public/ng-core/index.js +6 -6
- package/public/119.f6863709a73edd97a66d.js +0 -1
- package/public/130.9c79d2de0bb9a62d5b3f.js +0 -74
- package/public/401.6be6ff2986ff40152147.js +0 -1
- package/public/514.e4968ddf72da899214a5.js +0 -137
- package/public/540.e08ced81380db87a4acf.js +0 -1
- package/public/b520733890c5a5ebd989.gif +0 -0
package/.env.example
ADDED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "jmapcloud-ng",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.12",
|
|
4
4
|
"description": "K2 Geospatial Web Client",
|
|
5
5
|
"private": false,
|
|
6
6
|
"main": "public/index.js",
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
"test": "jest",
|
|
9
9
|
"lint": "export NODE_ENV='production'; node build/buildfile.js lint;",
|
|
10
10
|
"build": "node build/buildfile.js build ",
|
|
11
|
-
"build-vps": "export NODE_ENV='development' SERVER_JS_PATH='/var/www/html/ng/ng'
|
|
11
|
+
"build-vps": "export NODE_ENV='development' SERVER_JS_PATH='/var/www/html/ng/ng'; node build/buildfile.js build-vps;",
|
|
12
12
|
"build-cloud": "node build/buildfile.js build-cloud;",
|
|
13
13
|
"build-npm": "export NODE_ENV='production' BUILD_TARGET='npm'; node build/buildfile.js build-npm;",
|
|
14
14
|
"count-all": "find ./src -name '*.ts*' | xargs wc -l",
|
|
@@ -32,22 +32,14 @@
|
|
|
32
32
|
}
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|
|
35
|
-
"@fortawesome/fontawesome-svg-core": "
|
|
36
|
-
"@fortawesome/pro-duotone-svg-icons": "
|
|
37
|
-
"@fortawesome/pro-light-svg-icons": "
|
|
38
|
-
"@fortawesome/pro-regular-svg-icons": "
|
|
39
|
-
"@fortawesome/pro-solid-svg-icons": "
|
|
40
|
-
"@fortawesome/pro-thin-svg-icons": "
|
|
41
|
-
"@fortawesome/react-fontawesome": "
|
|
42
|
-
"@jsonforms/core": "3.3.0",
|
|
43
|
-
"@jsonforms/material-renderers": "3.3.0",
|
|
44
|
-
"@jsonforms/react": "3.3.0",
|
|
35
|
+
"@fortawesome/fontawesome-svg-core": "6.7.2",
|
|
36
|
+
"@fortawesome/pro-duotone-svg-icons": "6.7.2",
|
|
37
|
+
"@fortawesome/pro-light-svg-icons": "6.7.2",
|
|
38
|
+
"@fortawesome/pro-regular-svg-icons": "6.7.2",
|
|
39
|
+
"@fortawesome/pro-solid-svg-icons": "6.7.2",
|
|
40
|
+
"@fortawesome/pro-thin-svg-icons": "6.7.2",
|
|
41
|
+
"@fortawesome/react-fontawesome": "0.2.2",
|
|
45
42
|
"@mapbox/mapbox-gl-draw": "^1.5.0",
|
|
46
|
-
"@mui/material": "^5.15.18",
|
|
47
|
-
"@mui/x-data-grid-pro": "^5.17.26",
|
|
48
|
-
"@mui/x-date-pickers": "^6.19.4",
|
|
49
|
-
"@turf/circle": "^7.2.0",
|
|
50
|
-
"@turf/helpers": "^7.2.0",
|
|
51
43
|
"ajv": "^8.17.1",
|
|
52
44
|
"ajv-formats": "^3.0.1",
|
|
53
45
|
"color": "^4.2.3",
|
|
@@ -56,15 +48,15 @@
|
|
|
56
48
|
"formik": "^2.4.6",
|
|
57
49
|
"geometric": "^2.5.4",
|
|
58
50
|
"hast-util-to-html": "^9.0.5",
|
|
51
|
+
"jmapcloud-common": "../../../packages/jmapcloud-common",
|
|
52
|
+
"jmapcloud-theme": "../../../packages/jmapcloud-theme",
|
|
59
53
|
"jmapcloud-ng-core": "1.0.118",
|
|
60
54
|
"json-pointer": "^0.6.2",
|
|
61
55
|
"jspdf": "^2.5.1",
|
|
62
56
|
"mapbox-gl-draw-snap-mode-k2": "^0.0.23",
|
|
63
57
|
"maplibre-gl": "^4.7.1",
|
|
64
58
|
"normalize-diacritics": "^5.0.0",
|
|
65
|
-
"react": "^18.3.1",
|
|
66
59
|
"react-color": "^2.19.3",
|
|
67
|
-
"react-dom": "^18.3.1",
|
|
68
60
|
"react-hotkeys-hook": "^4.5.0",
|
|
69
61
|
"react-redux": "^9.1.2",
|
|
70
62
|
"react-rnd": "^10.5.2",
|
|
@@ -78,17 +70,6 @@
|
|
|
78
70
|
},
|
|
79
71
|
"devDependencies": {
|
|
80
72
|
"@auth0/auth0-spa-js": "^2.1.3",
|
|
81
|
-
"@babel/core": "^7.24.5",
|
|
82
|
-
"@babel/plugin-proposal-decorators": "^7.24.1",
|
|
83
|
-
"@babel/plugin-transform-arrow-functions": "^7.24.1",
|
|
84
|
-
"@babel/plugin-transform-class-properties": "^7.24.1",
|
|
85
|
-
"@babel/plugin-transform-object-assign": "^7.24.1",
|
|
86
|
-
"@babel/plugin-transform-react-jsx": "^7.23.4",
|
|
87
|
-
"@babel/plugin-transform-runtime": "^7.24.3",
|
|
88
|
-
"@babel/preset-env": "^7.24.5",
|
|
89
|
-
"@babel/preset-react": "^7.24.1",
|
|
90
|
-
"@babel/preset-typescript": "^7.24.1",
|
|
91
|
-
"@babel/runtime": "^7.24.5",
|
|
92
73
|
"@types/chai": "^4.3.16",
|
|
93
74
|
"@types/color": "^3.0.6",
|
|
94
75
|
"@types/geometric": "^2.5.3",
|
|
@@ -103,18 +84,11 @@
|
|
|
103
84
|
"@types/svg-parser": "^2.0.6",
|
|
104
85
|
"@types/uuid": "^9.0.8",
|
|
105
86
|
"@types/webpack-env": "^1.18.5",
|
|
106
|
-
"@typescript-eslint/eslint-plugin": "^7.9.0",
|
|
107
|
-
"@typescript-eslint/parser": "^7.9.0",
|
|
108
87
|
"babel-loader": "^9.1.3",
|
|
109
88
|
"chai": "^5.1.1",
|
|
110
89
|
"chai-http": "^4.4.0",
|
|
111
90
|
"css-loader": "^7.1.1",
|
|
112
91
|
"del": "^6.0.0",
|
|
113
|
-
"eslint": "^8.56.0",
|
|
114
|
-
"eslint-config-prettier": "^9.1.0",
|
|
115
|
-
"eslint-plugin-import": "^2.29.1",
|
|
116
|
-
"eslint-plugin-jsdoc": "^48.2.5",
|
|
117
|
-
"eslint-plugin-prefer-arrow": "^1.2.3",
|
|
118
92
|
"jest": "^29.7.0",
|
|
119
93
|
"jmapcloud-ng-core-types": "../ng-core-types",
|
|
120
94
|
"jmapcloud-ng-types": "../ng-types",
|
|
@@ -123,10 +97,6 @@
|
|
|
123
97
|
"style-loader": "^4.0.0",
|
|
124
98
|
"terser-webpack-plugin": "^5.3.10",
|
|
125
99
|
"ts-jest": "^29.3.4",
|
|
126
|
-
"ts-loader": "^9.5.1"
|
|
127
|
-
"typescript": "^5.4.5",
|
|
128
|
-
"webpack": "^5.91.0",
|
|
129
|
-
"webpack-bundle-analyzer": "^4.10.2",
|
|
130
|
-
"webpack-dev-server": "^5.0.4"
|
|
100
|
+
"ts-loader": "^9.5.1"
|
|
131
101
|
}
|
|
132
102
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkjmapcloud_ng=self.webpackChunkjmapcloud_ng||[]).push([[119],{90119:function(e,t,n){n.r(t),n.d(t,{startSelectionPage:function(){return startSelectionPage}});var i=n(49236),a=n(36870),l=n(86326),r=n(63776),o=n(61275),s=n(68737),d=n(82432),c=(n(80742),n(8380),n(1986),n(47531)),h=n(77608),u=n(15331),b=n(31665),p=n(5535),m=n(51682),g=n(92248),A=n(9940),f=n(12945),x=n(73726),C=n(12396),S=n(42432),j=n(63010),v=n(63641),y=n(76922),N=n(72387),T=n(69626),w=n(13326),_=n(65492);const D=(0,w.Ay)(_.A)({height:"1rem",borderRadius:"0.1rem",fontSize:"0.8rem","& > .MuiChip-label":{textAlign:"center",padding:"0.2rem",paddingLeft:"0.25rem",paddingRight:"0.25rem"}},{withTheme:!0});var E=n(67110),P=void 0;const k=function getCollator(){return(0,i.A)(this,P),new Intl.Collator(JMap.Language.getLocale(),{numeric:!0,sensitivity:"base"})}.bind(void 0),M=function compare(e,t,n,a){return(0,i.A)(this,P),null==e&&null!=t?a===E.C_.ASCENDANT?1:-1:null!=e&&null==t?a===E.C_.ASCENDANT?-1:1:a===E.C_.ASCENDANT?n.compare(e,t):n.compare(t,e)}.bind(void 0);var R=n(82324),L=n(64821);function EnhancedTableHead(e){var t=this;const{order:n,orderBy:l,onRequestSort:r}=e,o=function createSortHandler(e){var n=this;return(0,i.A)(this,t),function(t){(0,i.A)(this,n),r(t,e)}.bind(this)}.bind(this);return(0,a.jsx)(f.A,{children:(0,a.jsx)(C.A,{children:e.headCells.map(function(e){return(0,i.A)(this,t),(0,a.jsx)(g.A,{id:`selection-table-header-${e.id}`,align:"left",padding:e.disablePadding?"none":"normal",sortDirection:l===e.name&&n,children:(0,a.jsxs)(S.A,{id:`selection-table-header-${e.id}-label`,sx:{textTransform:"capitalize"},active:l===e.name,direction:l===e.name?n:E.C_.ASCENDANT,onClick:o(e.name),children:[e.label,l===e.name?(0,a.jsx)(u.A,{component:"span",sx:{border:0,clip:"rect(0 0 0 0)",height:1,margin:-1,overflow:"hidden",padding:0,position:"absolute",top:20,width:1},children:n===E.C_.DESCENDANT?"sorted descending":"sorted ascending"}):null]})},e.id)}.bind(this))})})}const I=(0,d.Ng)(function(e){var t=this;(0,i.A)(this,undefined);const n=(0,N.B)(e).selection.displayedLayerId,a=e.layer.allById[n],l=a?a.attributes:[],r=a?a.name:"-";return{selection:e.map.selection,displayedLayerId:n,layerName:r,headCells:l.map(function(e){return(0,i.A)(this,t),{id:e.id,name:e.name,disablePadding:!0,label:e.label,type:e.type}}.bind(this)),containerHeight:e.map.containerHeight}}.bind(void 0))(function SelectionTableFn(e){var t=this;const[n,r]=l.useState(E.C_.ASCENDANT),[o,d]=l.useState(""),[f,S]=l.useState(0),N=function handleRequestSort(e,a){(0,i.A)(this,t);const l=o===a&&n===E.C_.ASCENDANT;r(l?E.C_.DESCENDANT:E.C_.ASCENDANT),d(a)}.bind(this),w=function handleClick(e,n){(0,i.A)(this,t),JMap.Map.fitFeatures([n.jmap_feature_buff],{paddingBottom:(0,L.N)(),maxZoom:R.nD})}.bind(this),_=function handlePageChange(e,n){return(0,i.A)(this,t),S(n)}.bind(this),P=(e.selection[e.displayedLayerId]||[]).map(function(e){return(0,i.A)(this,t),{jmap_feature_buff:e,...e.properties}}.bind(this));let I=f;f*T.l>P.length&&(I=0);const H=k();return(0,a.jsxs)(u.A,{sx:function sx(e){return(0,i.A)(this,t),{backgroundColor:e.palette.background.paper,width:"100%",height:"100%",paddingLeft:".5rem",paddingRight:".5rem",borderRadius:0}}.bind(this),children:[(0,a.jsx)(b.A,{id:"selection-table-close-button",title:(0,y.Tl)("selection.close.table"),children:(0,a.jsx)(u.A,{sx:{position:"absolute",top:".5rem",right:".5rem",zIndex:2,cursor:"pointer"},children:(0,a.jsx)(h.g,{icon:c.GR,onClick:function onClick(){(0,i.A)(this,t),JMap.Application.Selection.closeTableTab()}.bind(this)})})}),(0,a.jsxs)(j.A,{sx:{position:"relative",left:"0.5rem"},children:[(0,a.jsx)(v.A,{id:"selection-table-layer-title",variant:"h6",color:"textPrimary",children:e.layerName}),(0,a.jsxs)(v.A,{id:"selection-table-count-title",sx:{fontSize:".95rem"},color:"textSecondary",children:[" : ",(0,y.Tl)("selection.layer.count",P.length)]})]}),(0,a.jsx)(A.A,{sx:{position:"relative",left:"0.5rem",width:"calc(100% - 1rem)",overflowY:"auto",overflowX:"auto",height:"calc(100% - 4rem)"},children:(0,a.jsxs)(p.A,{"aria-labelledby":"selection-table-title",size:"small","aria-label":"Selection table",children:[(0,a.jsx)(EnhancedTableHead,{headCells:e.headCells,order:n,orderBy:o,onRequestSort:N}),(0,a.jsx)(m.A,{children:P.sort(function(e,a){return(0,i.A)(this,t),M(e[o],a[o],H,n)}.bind(this)).slice(I*T.l,I*T.l+T.l).map(function(n,l){var r=this;return(0,i.A)(this,t),(0,a.jsx)(C.A,{id:`selection-table-row-${l}`,hover:!0,onClick:function onClick(e){return(0,i.A)(this,r),w(e,n)}.bind(this),tabIndex:-1,children:e.headCells.map(function(e,t){return(0,i.A)(this,r),(0,a.jsx)(g.A,{id:`selection-table-row-${l}-cell-${e.id}`,align:"number"===e.type?"right":"left",children:(o=e.type,d=n[e.name],null==d||"null"===d?(0,a.jsx)(D,{variant:"filled",color:"secondary",label:(0,y.Tl)(`data.${String(d)}`)}):"date"===o||"datetime"===o?JMap.Util.Date.format(d,{displayTime:"datetime"===o}):"string"===o&&s._t.test(d)?(0,a.jsx)("a",{href:d,target:"_blank",children:d}):String(d))},t);var o,d}.bind(this))},l)}.bind(this))})]})}),P.length>T.l&&(0,a.jsx)(x.A,{id:"selection-table-pagination",component:"div",count:P.length,rowsPerPage:T.l,page:I,onPageChange:_,labelRowsPerPage:(0,y.Tl)("row.per.page")})]})});var H=void 0;const J=function SelectionPageFn(e){return(0,i.A)(this,H),(0,a.jsx)(o.A,{theme:e.theme,children:(0,a.jsx)(I,{})})}.bind(void 0),$=(0,d.Ng)(function(e){return(0,i.A)(this,H),{theme:e.external[s.sZ].ui.theme}}.bind(void 0))(J),z=function SelectionPage(){return(0,i.A)(this,H),(0,a.jsx)(d.Kq,{store:JMap.getDataStore(),children:(0,a.jsx)($,{})})}.bind(void 0);function startSelectionPage(){var e=this;window.addEventListener("beforeunload",function(){(0,i.A)(this,e),JMap.Application.Selection.closeTableTab()}.bind(this));r.H(document.body).render((0,a.jsx)(l.StrictMode,{children:(0,a.jsx)(z,{})}))}}}]);
|