@geogirafe/lib-geoportal 1.1.0-dev.2387914979 → 1.1.0-dev.2402672760

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.
Files changed (261) hide show
  1. package/api/api.js +1 -0
  2. package/api/apicontext.js +1 -0
  3. package/api/apigeogirafeapp.js +1 -0
  4. package/api/apisessionmanager.js +1 -0
  5. package/base/GirafeDraggableElement.js +1 -0
  6. package/base/GirafeHTMLElement.js +1 -0
  7. package/base/GirafeHTMLElement.spec.js +1 -0
  8. package/base/GirafeResizableElement.js +1 -0
  9. package/base/GirafeResizableElement.spec.js +1 -0
  10. package/base/GirafeSingleton.spec.js +1 -0
  11. package/buildtools/generate-dev-certs.cmd +1 -0
  12. package/buildtools/generate-dev-certs.sh +1 -0
  13. package/buildtools/lib-inline.js +1 -0
  14. package/buildtools/main.js +1 -0
  15. package/buildtools/tools.js +1 -0
  16. package/buildtools/vite-inline-templates-plugin.js +1 -0
  17. package/buildtools/vite-restart-plugin.js +1 -0
  18. package/components/about/component.js +1 -0
  19. package/components/alignnorthbutton-mobile/component.js +1 -0
  20. package/components/auth/component.js +1 -0
  21. package/components/auth-mobile/component.js +1 -0
  22. package/components/basemap/component.js +1 -0
  23. package/components/contact/component.js +1 -0
  24. package/components/context-menu/custom-context-menu/component.js +1 -0
  25. package/components/context-menu/default-context-menu/contextmenustate.js +1 -0
  26. package/components/coordinate/component.js +1 -0
  27. package/components/cross-section/scatterplot.js +1 -0
  28. package/components/cross-section/utils.js +1 -0
  29. package/components/displaymenubutton-mobile/component.js +1 -0
  30. package/components/displayselectorbutton-mobile/component.js +1 -0
  31. package/components/drawing/cesiumDrawing.js +1 -0
  32. package/components/drawing/component-mobile.js +1 -0
  33. package/components/drawing/drawingFeature.js +1 -0
  34. package/components/drawing/olDrawing.js +1 -0
  35. package/components/drawing-container-mobile/component.js +1 -0
  36. package/components/edit/component.js +1 -0
  37. package/components/edit/editform/component.js +1 -0
  38. package/components/extlayers/component.js +1 -0
  39. package/components/geolocation-mobile/component.js +1 -0
  40. package/components/help/component.js +1 -0
  41. package/components/infobox/component.js +1 -0
  42. package/components/infowindow/component.js +1 -0
  43. package/components/infowindow/component.spec.js +1 -0
  44. package/components/layout/component.js +1 -0
  45. package/components/lr-panel/component.js +1 -0
  46. package/components/map/component.js +1 -0
  47. package/components/map/tools/contextmenu.js +1 -0
  48. package/components/map/tools/focusfeature.spec.js +1 -0
  49. package/components/map/tools/viewmanager.js +1 -0
  50. package/components/map/tools/wmtsmanager.js +1 -0
  51. package/components/menu-buttons-mobile/MenuMobile3dButton.js +1 -0
  52. package/components/menu-buttons-mobile/MenuMobileDrawingButton.js +1 -0
  53. package/components/menu-buttons-mobile/MenuMobileOfflineButton.js +1 -0
  54. package/components/menu-mobile/component.js +1 -0
  55. package/components/menubutton/component.js +1 -0
  56. package/components/modals/component.js +1 -0
  57. package/components/navigation/component.js +1 -0
  58. package/components/offline/component.js +1 -0
  59. package/components/offline/component.spec.js +1 -0
  60. package/components/print/component.spec.js +1 -0
  61. package/components/print/tools/MFPEncoder.spec.js +1 -0
  62. package/components/print/tools/MFPLegendEncoder.spec.js +1 -0
  63. package/components/print/tools/PrintManager.spec.js +1 -0
  64. package/components/print/tools/printMaskManager.spec.js +1 -0
  65. package/components/prototypebanner/component.js +1 -0
  66. package/components/querybuilder/component.js +1 -0
  67. package/components/scale/component.js +1 -0
  68. package/components/search/component.js +1 -0
  69. package/components/search-mobile/component.js +1 -0
  70. package/components/selectiongrid/component.js +1 -0
  71. package/components/selectiontool/component.js +1 -0
  72. package/components/selectionwindow/component.spec.js +1 -0
  73. package/components/share/component.js +1 -0
  74. package/components/share/sharestate.spec.js +1 -0
  75. package/components/share/tools/gmfsharemanager.js +1 -0
  76. package/components/swipe-up-panel-mobile/component.js +1 -0
  77. package/components/themes/component.js +1 -0
  78. package/components/themes-mobile/group/component.js +1 -0
  79. package/components/themes-mobile/layer/component.js +1 -0
  80. package/components/themes-mobile/layer-selected/component.js +1 -0
  81. package/components/themes-mobile/theme/component.js +1 -0
  82. package/components/themes-mobile/themes-select/component.js +1 -0
  83. package/components/timerestriction/component.js +1 -0
  84. package/components/timerestriction/timepicker/component.js +1 -0
  85. package/components/timerestriction/timeslider/component.js +1 -0
  86. package/components/timerestriction/timeslider/component.spec.js +1 -0
  87. package/components/timerestriction/tools/timewidget.js +1 -0
  88. package/components/treeview/tools/draghelper.spec.js +1 -0
  89. package/components/treeview/tools/treeviewelement.js +1 -0
  90. package/components/treeview/tools/treeviewfilter.spec.js +1 -0
  91. package/components/treeview/treeviewgroup/component.js +1 -0
  92. package/components/treeview/treeviewitem/component.js +1 -0
  93. package/components/treeview/treeviewroot/component.js +1 -0
  94. package/components/userpreferences/component.js +1 -0
  95. package/components/userpreferences/component.spec.js +1 -0
  96. package/components/videorecord/component.js +1 -0
  97. package/decs.d.ts +1 -0
  98. package/main.iframe.js +1 -0
  99. package/main.js +1 -0
  100. package/main.mobile.js +1 -0
  101. package/models/basemaps/basemapempty.js +1 -0
  102. package/models/basemaps/basemaposm.js +1 -0
  103. package/models/basemaps/basemapswisstopovectortiles.js +1 -0
  104. package/models/customtheme.js +1 -0
  105. package/models/events.js +1 -0
  106. package/models/layers/baselayer.js +1 -0
  107. package/models/layers/grouplayer.js +1 -0
  108. package/models/layers/layer.js +1 -0
  109. package/models/layers/layerconsts.js +1 -0
  110. package/models/layers/layerdrawing.js +1 -0
  111. package/models/layers/layerosm.js +1 -0
  112. package/models/layers/layervectortiles.js +1 -0
  113. package/models/layers/layerwmts.js +1 -0
  114. package/models/layers/layerwmtsexternal.js +1 -0
  115. package/models/layers/snappablelayer.js +1 -0
  116. package/models/layers/themelayer.js +1 -0
  117. package/models/layers/timeawarelayer.js +1 -0
  118. package/models/selection.js +1 -0
  119. package/models/serverogcapifeatures.js +1 -0
  120. package/models/xmlTypes.js +1 -0
  121. package/package.json +1 -1
  122. package/service-worker.js +1 -0
  123. package/styles/common.css +1 -0
  124. package/styles/common.mobile.css +1 -0
  125. package/styles/girafecolorpicker.css +1 -0
  126. package/styles/iframe.css +1 -0
  127. package/styles/index.css +1 -0
  128. package/styles/mobile.css +1 -0
  129. package/styles/resizable.css +1 -0
  130. package/styles/splash.css +1 -0
  131. package/styles/variables.css +1 -0
  132. package/styles/window.css +32 -35
  133. package/templates/api.html +1 -0
  134. package/templates/iframe.html +1 -0
  135. package/templates/index.html +1 -0
  136. package/templates/mobile.html +1 -0
  137. package/templates/public/about.json +1 -1
  138. package/templates/vite.config.js +1 -0
  139. package/tools/app/geogirafe-component.js +1 -0
  140. package/tools/app/geogirafeapp-mobile.js +1 -0
  141. package/tools/app/geogirafeapp.js +2 -1
  142. package/tools/app/lifecyclemanager.d.ts +7 -0
  143. package/tools/app/lifecyclemanager.js +21 -1
  144. package/tools/auth/authmanager.js +1 -0
  145. package/tools/auth/openidconnectmanager.js +1 -0
  146. package/tools/auth/pluginmanager.js +1 -0
  147. package/tools/auth/silentlogincallback.html +1 -0
  148. package/tools/configuration/configmanager.js +1 -0
  149. package/tools/configuration/configmanager.spec.js +1 -0
  150. package/tools/configuration/girafeconfig.js +1 -0
  151. package/tools/context/context.js +1 -0
  152. package/tools/error/errormanager.js +1 -0
  153. package/tools/error/errormanager.spec.js +1 -0
  154. package/tools/export/csvmanager.js +1 -0
  155. package/tools/export/csvmanager.spec.js +1 -0
  156. package/tools/export/download.js +1 -0
  157. package/tools/export/download.spec.js +1 -0
  158. package/tools/featuretogriddatabyid.spec.js +1 -0
  159. package/tools/functionalities.js +1 -0
  160. package/tools/geoconsts.js +1 -0
  161. package/tools/geometrytools.js +1 -0
  162. package/tools/i18n/i18nmanager.js +1 -0
  163. package/tools/i18n/i18nmanager.spec.js +1 -0
  164. package/tools/layers/layermanager.js +1 -0
  165. package/tools/layers/simplemasklayer.spec.js +1 -0
  166. package/tools/layers/snapmanager.js +1 -0
  167. package/tools/legendhelper.js +1 -0
  168. package/tools/localfile/localfilemanager.js +1 -0
  169. package/tools/logging/logmanager.js +1 -0
  170. package/tools/logging/logmanager.spec.js +1 -0
  171. package/tools/offline/offlinemanager.js +1 -0
  172. package/tools/offline/offlinemanager.spec.js +1 -0
  173. package/tools/ogcapi/demolayers.js +1 -0
  174. package/tools/ogcapi/ogcapiclient.spec.js +1 -0
  175. package/tools/ogcapi/ogcapiconformance.js +1 -0
  176. package/tools/ogcapi/ogcapifeaturesclient.spec.js +1 -0
  177. package/tools/ogcapi/ogcapifeaturesclientgeorama.js +1 -0
  178. package/tools/ogcapi/ogcapifeaturesclientgmf.js +1 -0
  179. package/tools/ogcapi/ogcapifeaturesmanager.spec.js +1 -0
  180. package/tools/ogcapi/ogcapifeaturesschema.js +1 -0
  181. package/tools/ogcapi/ogcapifeaturesschema.spec.js +1 -0
  182. package/tools/onboarding/onboardingmanager.js +1 -0
  183. package/tools/ordering/orderingmanager.js +1 -0
  184. package/tools/ordering/orderingmanager.spec.js +1 -0
  185. package/tools/raster/rasterutils.js +1 -0
  186. package/tools/resizewindow.js +1 -0
  187. package/tools/resizewindow.spec.js +1 -0
  188. package/tools/share/serializers/activebasemapsserializer.spec.js +1 -0
  189. package/tools/share/serializers/customlayersserializer.js +1 -0
  190. package/tools/share/serializers/globeserializer.spec.js +1 -0
  191. package/tools/share/serializers/layerconfigserializer.spec.js +1 -0
  192. package/tools/share/serializers/mappositionserializer.spec.js +1 -0
  193. package/tools/share/serializers/selectionserializer.spec.js +1 -0
  194. package/tools/share/sessionmanager.js +1 -0
  195. package/tools/share/sharemanager.js +1 -0
  196. package/tools/share/stateserializer.js +1 -0
  197. package/tools/state/brain/brain.array.spec.js +1 -0
  198. package/tools/state/brain/brain.base.spec.js +1 -0
  199. package/tools/state/brain/brain.date.spec.js +1 -0
  200. package/tools/state/brain/brain.ignored.spec.js +1 -0
  201. package/tools/state/brain/brain.js +1 -0
  202. package/tools/state/brain/brain.object.spec.js +1 -0
  203. package/tools/state/brain/brain.primitive.spec.js +1 -0
  204. package/tools/state/brain/brain.supported.spec.js +1 -0
  205. package/tools/state/brain/decorators.js +1 -0
  206. package/tools/state/brain/equality.js +1 -0
  207. package/tools/state/brain/equality.spec.js +1 -0
  208. package/tools/state/brain/serialize.js +1 -0
  209. package/tools/state/brain/tools.js +1 -0
  210. package/tools/state/mapManager.js +1 -0
  211. package/tools/state/mapposition.spec.js +1 -0
  212. package/tools/state/state.d.ts +2 -0
  213. package/tools/state/state.js +5 -0
  214. package/tools/state/stateToggleManager.spec.js +1 -0
  215. package/tools/state/statemanager.js +1 -0
  216. package/tools/state/statemanager.spec.js +1 -0
  217. package/tools/state/userInteractionManager.js +1 -0
  218. package/tools/state/userinteractionevent.js +1 -0
  219. package/tools/tests/globalmocking.js +1 -0
  220. package/tools/tests/layerhelpers.js +1 -0
  221. package/tools/tests/mockconfig.js +1 -0
  222. package/tools/tests/mockcontext.js +1 -0
  223. package/tools/tests/mockhelper.js +1 -0
  224. package/tools/tests/olhelpers.js +1 -0
  225. package/tools/tests/testhelper.js +1 -0
  226. package/tools/tests/wmswfsmanagermocking.js +1 -0
  227. package/tools/themes/customthemesmanager.js +1 -0
  228. package/tools/themes/themefavoritesmanager.js +1 -0
  229. package/tools/themes/themefavoritesmanager.spec.js +3 -2
  230. package/tools/themes/themes-config.js +1 -0
  231. package/tools/themes/themeshelper.js +1 -0
  232. package/tools/themes/themeshelper.spec.js +1 -0
  233. package/tools/themes/themesmanager.js +3 -2
  234. package/tools/themes/themesmanager.spec.js +1 -0
  235. package/tools/themes/userlayermanager.js +1 -0
  236. package/tools/time/layertimeformatter.spec.js +1 -0
  237. package/tools/url/permalinkmanager-constants.js +1 -0
  238. package/tools/url/permalinkmanager.js +1 -0
  239. package/tools/url/permalinkmanager.spec.js +1 -0
  240. package/tools/url/urlmanager.js +1 -0
  241. package/tools/userdata/userdatamanager.js +1 -0
  242. package/tools/userdata/userdatamanager.spec.js +1 -0
  243. package/tools/utils/debounce.js +1 -0
  244. package/tools/utils/debounce.spec.js +1 -0
  245. package/tools/utils/girafecolorpicker.js +1 -0
  246. package/tools/utils/olutils.spec.js +1 -0
  247. package/tools/utils/pathUtils.js +1 -0
  248. package/tools/utils/pathUtils.spec.js +1 -0
  249. package/tools/utils/qrcode.js +1 -0
  250. package/tools/utils/swhelper.js +1 -0
  251. package/tools/utils/utils.spec.js +1 -0
  252. package/tools/vendorspecificogcservermanager.js +1 -0
  253. package/tools/wfs/wfsclient.spec.js +1 -0
  254. package/tools/wfs/wfsfilter.js +1 -0
  255. package/tools/wfs/wfsmanager.spec.js +1 -0
  256. package/tools/wfs/wfsparser.spec.js +1 -0
  257. package/tools/wms/wmsclient.js +1 -0
  258. package/tools/wms/wmsclient.spec.js +1 -0
  259. package/tools/wms/wmslegendhelper.js +1 -0
  260. package/tools/wms/wmsmanager.spec.js +1 -0
  261. package/typings/common.d.ts +1 -0
@@ -1,3 +1,4 @@
1
+ // SPDX-License-Identifier: Apache-2.0
1
2
  import { describe, test, expect } from 'vitest';
2
3
  import GroupLayer from '../../../models/layers/grouplayer';
3
4
  import LayerWms from '../../../models/layers/layerwms';
@@ -1,3 +1,4 @@
1
+ // SPDX-License-Identifier: Apache-2.0
1
2
  import GirafeHTMLElement from '../../../base/GirafeHTMLElement.js';
2
3
  import { isTimeAwareLayer } from '../../../models/layers/timeawarelayer.js';
3
4
  import { isSnappableLayer } from '../../../models/layers/snappablelayer.js';
@@ -1,3 +1,4 @@
1
+ // SPDX-License-Identifier: Apache-2.0
1
2
  import { afterAll, beforeAll, beforeEach, describe, expect, it } from 'vitest';
2
3
  import { createTestOgcServer } from '../../../tools/tests/layerhelpers';
3
4
  import GroupLayer from '../../../models/layers/grouplayer';
@@ -1,5 +1,6 @@
1
1
  import { htmlFor as uHtmlFor } from 'uhtml/keyed';
2
2
  import { html as uHtml } from 'uhtml';
3
+ // SPDX-License-Identifier: Apache-2.0
3
4
  import GroupLayer from '../../../models/layers/grouplayer.js';
4
5
  import TreeViewGroupElement from '../tools/treeviewgroupelement.js';
5
6
  class TreeViewGroupComponent extends TreeViewGroupElement {
@@ -1,4 +1,5 @@
1
1
  import { html as uHtml } from 'uhtml';
2
+ // SPDX-License-Identifier: Apache-2.0
2
3
  import tippy from 'tippy.js';
3
4
  import LayerWms from '../../../models/layers/layerwms.js';
4
5
  import LayerLocalFile from '../../../models/layers/layerlocalfile.js';
@@ -1,5 +1,6 @@
1
1
  import { htmlFor as uHtmlFor } from 'uhtml/keyed';
2
2
  import { html as uHtml } from 'uhtml';
3
+ // SPDX-License-Identifier: Apache-2.0
3
4
  import GirafeHTMLElement from '../../../base/GirafeHTMLElement.js';
4
5
  import GroupLayer from '../../../models/layers/grouplayer.js';
5
6
  import ThemeLayer from '../../../models/layers/themelayer.js';
@@ -1,5 +1,6 @@
1
1
  import { htmlFor as uHtmlFor } from 'uhtml/keyed';
2
2
  import { html as uHtml } from 'uhtml';
3
+ // SPDX-License-Identifier: Apache-2.0
3
4
  import GirafeHTMLElement from '../../base/GirafeHTMLElement.js';
4
5
  import { PreferenceGroups, UserPreference } from './userPreference.js';
5
6
  import { getPropertyByPath, setPropertyByPath } from '../../tools/utils/pathUtils.js';
@@ -1,3 +1,4 @@
1
+ // SPDX-License-Identifier: Apache-2.0
1
2
  import { it, expect, describe, beforeAll, afterAll } from 'vitest';
2
3
  import UserPreferencesComponent from './component';
3
4
  import MockHelper from '../../tools/tests/mockhelper';
@@ -1,4 +1,5 @@
1
1
  import { html as uHtml } from 'uhtml';
2
+ // SPDX-License-Identifier: Apache-2.0
2
3
  import GirafeHTMLElement from '../../base/GirafeHTMLElement.js';
3
4
  import { v4 as uuidv4 } from 'uuid';
4
5
  class VideoRecordComponent extends GirafeHTMLElement {
package/decs.d.ts CHANGED
@@ -1,2 +1,3 @@
1
+ // SPDX-License-Identifier: Apache-2.0
1
2
  declare module 'tippy.js';
2
3
  declare module 'olcs';
package/main.iframe.js CHANGED
@@ -1,3 +1,4 @@
1
+ // SPDX-License-Identifier: Apache-2.0
1
2
  import { SplashScreen } from './main.tools';
2
3
  import GeoGirafeApp from './tools/app/geogirafeapp.js';
3
4
  // Display the splash-screen
package/main.js CHANGED
@@ -1,3 +1,4 @@
1
+ // SPDX-License-Identifier: Apache-2.0
1
2
  import { redirectTo, SplashScreen } from './main.tools';
2
3
  import GeoGirafeApp from './tools/app/geogirafeapp.js';
3
4
  const shouldSkipRedirect = new URLSearchParams(globalThis.location.search).has('no_redirect');
package/main.mobile.js CHANGED
@@ -1,3 +1,4 @@
1
+ // SPDX-License-Identifier: Apache-2.0
1
2
  import { redirectTo, SplashScreen } from './main.tools';
2
3
  import GeoGirafeAppMobile from './tools/app/geogirafeapp-mobile.js';
3
4
  const shouldSkipRedirect = new URLSearchParams(globalThis.location.search).has('no_redirect');
@@ -1,3 +1,4 @@
1
+ // SPDX-License-Identifier: Apache-2.0
1
2
  import Basemap from './basemap.js';
2
3
  export default class BasemapEmpty extends Basemap {
3
4
  constructor() {
@@ -1,3 +1,4 @@
1
+ // SPDX-License-Identifier: Apache-2.0
1
2
  import LayerConsts from '../layers/layerconsts.js';
2
3
  import LayerOsm from '../layers/layerosm.js';
3
4
  import Basemap from './basemap.js';
@@ -1,3 +1,4 @@
1
+ // SPDX-License-Identifier: Apache-2.0
1
2
  import LayerConsts from '../layers/layerconsts.js';
2
3
  import LayerVectorTiles from '../layers/layervectortiles.js';
3
4
  import Basemap from './basemap.js';
@@ -1,3 +1,4 @@
1
+ // SPDX-License-Identifier: Apache-2.0
1
2
  import ThemeLayer from './layers/themelayer.js';
2
3
  import CustomIcon from '../components/themes/images/custom.svg';
3
4
  export default class CustomTheme {
package/models/events.js CHANGED
@@ -1,3 +1,4 @@
1
+ // SPDX-License-Identifier: Apache-2.0
1
2
  var GeoEvents;
2
3
  (function (GeoEvents) {
3
4
  GeoEvents["CustomEventType"] = "GeoGirafe.App";
@@ -4,6 +4,7 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
4
4
  else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
5
5
  return c > 3 && r && Object.defineProperty(target, key, r), r;
6
6
  };
7
+ // SPDX-License-Identifier: Apache-2.0
7
8
  import { BrainIgnoreClone } from '../../tools/state/brain/decorators.js';
8
9
  import { v4 as uuidv4 } from 'uuid';
9
10
  class BaseLayer {
@@ -1,3 +1,4 @@
1
+ // SPDX-License-Identifier: Apache-2.0
1
2
  import BaseLayer from './baselayer.js';
2
3
  import LayerTimeFormatter from '../../tools/time/layertimeformatter.js';
3
4
  import LayerWms from './layerwms.js';
@@ -1,3 +1,4 @@
1
+ // SPDX-License-Identifier: Apache-2.0
1
2
  import BaseLayer from './baselayer.js';
2
3
  class Layer extends BaseLayer {
3
4
  /**
@@ -1,3 +1,4 @@
1
+ // SPDX-License-Identifier: Apache-2.0
1
2
  class LayerConsts {
2
3
  static get LayerOsmId() {
3
4
  return -1;
@@ -1,3 +1,4 @@
1
+ // SPDX-License-Identifier: Apache-2.0
1
2
  import Layer from './layer.js';
2
3
  export default class LayerDrawing extends Layer {
3
4
  /**
@@ -1,3 +1,4 @@
1
+ // SPDX-License-Identifier: Apache-2.0
1
2
  import Layer from './layer.js';
2
3
  import LayerConsts from './layerconsts.js';
3
4
  class LayerOsm extends Layer {
@@ -1,3 +1,4 @@
1
+ // SPDX-License-Identifier: Apache-2.0
1
2
  import Layer from './layer.js';
2
3
  class LayerVectorTiles extends Layer {
3
4
  /**
@@ -4,6 +4,7 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
4
4
  else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
5
5
  return c > 3 && r && Object.defineProperty(target, key, r), r;
6
6
  };
7
+ // SPDX-License-Identifier: Apache-2.0
7
8
  import { BrainIgnore } from '../../tools/state/brain/decorators.js';
8
9
  import Layer from './layer.js';
9
10
  class LayerWmts extends Layer {
@@ -1,3 +1,4 @@
1
+ // SPDX-License-Identifier: Apache-2.0
1
2
  import LayerWmts from './layerwmts.js';
2
3
  export default class LayerWmtsExternal extends LayerWmts {
3
4
  static nextAvailableLayerId = 20000000;
@@ -1,3 +1,4 @@
1
+ // SPDX-License-Identifier: Apache-2.0
1
2
  import LayerWms from './layerwms.js';
2
3
  const snappableLayer = [LayerWms];
3
4
  export const isSnappableLayer = (layer) => {
@@ -1,3 +1,4 @@
1
+ // SPDX-License-Identifier: Apache-2.0
1
2
  import BaseLayer from './baselayer.js';
2
3
  class ThemeLayer extends BaseLayer {
3
4
  /**
@@ -1,3 +1,4 @@
1
+ // SPDX-License-Identifier: Apache-2.0
1
2
  import LayerWms from './layerwms.js';
2
3
  import GroupLayer from './grouplayer.js';
3
4
  const timeAwareLayer = [GroupLayer, LayerWms];
@@ -1,3 +1,4 @@
1
+ // SPDX-License-Identifier: Apache-2.0
1
2
  export var SelectionTool;
2
3
  (function (SelectionTool) {
3
4
  SelectionTool[SelectionTool["Point"] = 0] = "Point";
@@ -1,3 +1,4 @@
1
+ // SPDX-License-Identifier: Apache-2.0
1
2
  import ServerOgcApi from './serverogcapi.js';
2
3
  export const oapifNumericTypes = ['integer', 'number', 'double', 'float', 'decimal', 'int', 'int32', 'int64'];
3
4
  export const oapifTextTypes = ['string', 'date', 'time', 'datetime', 'date-time', 'duration'];
@@ -1,3 +1,4 @@
1
+ // SPDX-License-Identifier: Apache-2.0
1
2
  export const xmlNumberTypesStrList = [
2
3
  'byte',
3
4
  'decimal',
package/package.json CHANGED
@@ -5,7 +5,7 @@
5
5
  "name": "GeoGirafe PSC",
6
6
  "url": "https://doc.geomapfish.dev"
7
7
  },
8
- "version": "1.1.0-dev.2387914979",
8
+ "version": "1.1.0-dev.2402672760",
9
9
  "type": "module",
10
10
  "engines": {
11
11
  "node": ">=20.19.0"
package/service-worker.js CHANGED
@@ -1,3 +1,4 @@
1
+ // SPDX-License-Identifier: Apache-2.0
1
2
  /**
2
3
  * To allow offline mode, the first 100 queries made by the application will be cached.
3
4
  * We could have implemented a more specific cache with file extensions for example
package/styles/common.css CHANGED
@@ -1,3 +1,4 @@
1
+ /* SPDX-License-Identifier: Apache-2.0 */
1
2
  /* Common general styles */
2
3
  * {
3
4
  font-family: Arial, sans-serif;
@@ -1,3 +1,4 @@
1
+ /* SPDX-License-Identifier: Apache-2.0 */
1
2
  /* Common general styles */
2
3
  .hidden {
3
4
  display: none;
@@ -1,3 +1,4 @@
1
+ /* SPDX-License-Identifier: Apache-2.0 */
1
2
  /* Overwrite for vanilla-picker.css to fit dark frontend theme
2
3
  */
3
4
 
package/styles/iframe.css CHANGED
@@ -1,3 +1,4 @@
1
+ /* SPDX-License-Identifier: Apache-2.0 */
1
2
  html,
2
3
  body {
3
4
  margin: 0;
package/styles/index.css CHANGED
@@ -1,3 +1,4 @@
1
+ /* SPDX-License-Identifier: Apache-2.0 */
1
2
  html,
2
3
  body {
3
4
  margin: 0;
package/styles/mobile.css CHANGED
@@ -1,3 +1,4 @@
1
+ /* SPDX-License-Identifier: Apache-2.0 */
1
2
  html,
2
3
  body {
3
4
  margin: 0;
@@ -1,3 +1,4 @@
1
+ /* SPDX-License-Identifier: Apache-2.0 */
1
2
  /* Resizable Window - Resize controls */
2
3
  .girafe-resizer {
3
4
  --resize-size: 6px;
package/styles/splash.css CHANGED
@@ -1,3 +1,4 @@
1
+ /* SPDX-License-Identifier: Apache-2.0 */
1
2
  @-moz-keyframes spin {
2
3
  100% {
3
4
  -moz-transform: rotate(360deg);
@@ -1,3 +1,4 @@
1
+ /* SPDX-License-Identifier: Apache-2.0 */
1
2
  body {
2
3
  --app-color-grey: #cbd5e1;
3
4
  --app-standard-height: 3.2rem;
package/styles/window.css CHANGED
@@ -1,53 +1,50 @@
1
+ /* SPDX-License-Identifier: Apache-2.0 */
1
2
  :host {
2
- /*
3
+ /*
3
4
  * Can be overridden in custom Stylesheet.
4
5
  * Don't set it to '0' but to '0rem'. Otherwise it will mess up the calc-Function
5
6
  */
6
- --selection-window-header-height: 2.5rem;
7
- --selection-window-footer-height: 2.5rem;
8
- --selection-window-content-padding: 0.5rem;
7
+ --selection-window-header-height: 2.5rem;
8
+ --selection-window-footer-height: 2.5rem;
9
+ --selection-window-content-padding: 0.5rem;
9
10
  }
10
11
 
11
12
  #header {
12
- display: flex;
13
- flex-direction: row;
14
- background-color: var(--bkg-color) !important;
15
- height: var(--selection-window-header-height) !important;
13
+ display: flex;
14
+ flex-direction: row;
15
+ background-color: var(--bkg-color) !important;
16
+ height: var(--selection-window-header-height) !important;
16
17
 
17
- .title {
18
- flex-grow: 1;
19
- text-align: start;
20
- padding: 0.25rem 0;
21
- font-weight: 600;
22
- }
23
- button {
24
- flex-grow: 0;
25
- }
18
+ .title {
19
+ flex-grow: 1;
20
+ text-align: start;
21
+ padding: 0.25rem 0;
22
+ font-weight: 600;
23
+ }
24
+ button {
25
+ flex-grow: 0;
26
+ }
26
27
  }
27
28
 
28
29
  .hr {
29
- background-color: var(--bkg-color-grad1);
30
- height: 2px;
31
- margin: 0.125rem 0.5rem;
30
+ background-color: var(--bkg-color-grad1);
31
+ height: 2px;
32
+ margin: 0.125rem 0.5rem;
32
33
  }
33
34
 
34
35
  #content {
35
- height: calc(
36
- 100% - var(--selection-window-header-height)
37
- - var(--selection-window-footer-height)
38
- - 2 * var(--selection-window-content-padding)
39
- ) !important;
40
- >:first-child {
41
- height: calc(
42
- 100% - var(--selection-window-footer-height)
43
- - 2 * var(--selection-window-content-padding)
44
- ) !important;
45
- width: calc(100% - 2 * var(--selection-window-content-padding)) !important;
46
- padding: var(--selection-window-content-padding);
47
- }
36
+ height: calc(
37
+ 100% - var(--selection-window-header-height) - var(--selection-window-footer-height) - 2 *
38
+ var(--selection-window-content-padding)
39
+ ) !important;
40
+ > :first-child {
41
+ height: calc(100% - var(--selection-window-footer-height) - 2 * var(--selection-window-content-padding)) !important;
42
+ width: calc(100% - 2 * var(--selection-window-content-padding)) !important;
43
+ padding: var(--selection-window-content-padding);
44
+ }
48
45
  }
49
46
 
50
47
  #footer {
51
- height: var(--selection-window-footer-height) !important;
52
- border-top: none !important;
48
+ height: var(--selection-window-footer-height) !important;
49
+ border-top: none !important;
53
50
  }
@@ -1,3 +1,4 @@
1
+ <!-- SPDX-License-Identifier: Apache-2.0 -->
1
2
  <!doctype html>
2
3
  <html lang="en">
3
4
  <head>
@@ -1,3 +1,4 @@
1
+ <!-- SPDX-License-Identifier: Apache-2.0 -->
1
2
  <!doctype html>
2
3
  <html lang="en">
3
4
  <head>
@@ -1,3 +1,4 @@
1
+ <!-- SPDX-License-Identifier: Apache-2.0 -->
1
2
  <!doctype html>
2
3
  <html lang="en">
3
4
  <head>
@@ -1,3 +1,4 @@
1
+ <!-- SPDX-License-Identifier: Apache-2.0 -->
1
2
  <!doctype html>
2
3
  <html lang="en">
3
4
  <head>
@@ -1 +1 @@
1
- {"version":"1.1.0-dev.2387914979", "build":"2387914979", "date":"16/03/2026"}
1
+ {"version":"1.1.0-dev.2402672760", "build":"2402672760", "date":"23/03/2026"}
@@ -1,3 +1,4 @@
1
+ // SPDX-License-Identifier: Apache-2.0
1
2
  import { defineConfig } from 'vite';
2
3
  import { resolve } from 'path';
3
4
  import { readFileSync } from 'fs';
@@ -1,3 +1,4 @@
1
+ // SPDX-License-Identifier: Apache-2.0
1
2
  import proj4 from 'proj4';
2
3
  import GirafeHTMLElement from '../../base/GirafeHTMLElement.js';
3
4
  import { register } from 'ol/proj/proj4.js';
@@ -1,3 +1,4 @@
1
+ // SPDX-License-Identifier: Apache-2.0
1
2
  import AlignNorthButtonMobile from '../../components/alignnorthbutton-mobile/component.js';
2
3
  import MobileOauthComponent from '../../components/auth-mobile/component.js';
3
4
  import MobileThemeComponent from '../../components/themes-mobile/themes-select/component.js';
@@ -1,3 +1,4 @@
1
+ // SPDX-License-Identifier: Apache-2.0
1
2
  import GeoGirafeAppComponent from './geogirafe-component.js';
2
3
  import tippy from 'tippy.js';
3
4
  import AboutComponent from '../../components/about/component.js';
@@ -68,6 +69,7 @@ export default class GeoGirafeApp {
68
69
  await this.initializeServiceWorker();
69
70
  this.initializeInterface();
70
71
  this.addCustomSerializers();
72
+ this.context.stateManager.state.application.isCustomSerializerInitialized = true;
71
73
  this.defineCoreComponents();
72
74
  this.resolveReady();
73
75
  }
@@ -85,7 +87,6 @@ export default class GeoGirafeApp {
85
87
  }
86
88
  addCustomSerializers() {
87
89
  // Add custom state and serializers (need to be done early, because the shared state will need them)
88
- // TODO REG : Is this not done too late ? We need to check this, perhaps it shouol dbe done before the intialization of the share
89
90
  this.context.stateManager.state.extendedState.drawing = new DrawingState();
90
91
  this.context.stateSerializer.addSerializer(DrawingState, new DrawingSerializer(this.context));
91
92
  this.context.stateManager.state.extendedState.share = new ShareState();
@@ -3,6 +3,13 @@ export default class ApplicationLifeCycleManager extends GirafeSingleton {
3
3
  private get state();
4
4
  initializeSingleton(): void;
5
5
  private log;
6
+ /**
7
+ * For the application to be ready to load the themes and to deserialize the shared state or the session,
8
+ * The following elements must have been prepared:
9
+ * - Custom Serializer
10
+ * - OAuth process done
11
+ */
12
+ private checkReadyToLoadThemes;
6
13
  /**
7
14
  * For the application to be ready for usage, following elements must have been loaded:
8
15
  * - Configuration (config.json)
@@ -1,3 +1,4 @@
1
+ // SPDX-License-Identifier: Apache-2.0
1
2
  import GirafeSingleton from '../../base/GirafeSingleton.js';
2
3
  export default class ApplicationLifeCycleManager extends GirafeSingleton {
3
4
  get state() {
@@ -26,6 +27,12 @@ export default class ApplicationLifeCycleManager extends GirafeSingleton {
26
27
  });
27
28
  this.context.stateManager.subscribe('application.isAuthInitialized', (_, isAuthInitialized) => {
28
29
  this.log(isAuthInitialized, 'Authentication has been initialized');
30
+ this.checkReadyToLoadThemes();
31
+ this.checkApplicationReady();
32
+ });
33
+ this.context.stateManager.subscribe('application.isCustomSerializerInitialized', (_, isCustomSerializerInitialized) => {
34
+ this.log(isCustomSerializerInitialized, 'Custom Serializers have been initialized');
35
+ this.checkReadyToLoadThemes();
29
36
  this.checkApplicationReady();
30
37
  });
31
38
  }
@@ -34,6 +41,18 @@ export default class ApplicationLifeCycleManager extends GirafeSingleton {
34
41
  console.info(`ApplicationLifeCycle: ${text}`);
35
42
  }
36
43
  }
44
+ /**
45
+ * For the application to be ready to load the themes and to deserialize the shared state or the session,
46
+ * The following elements must have been prepared:
47
+ * - Custom Serializer
48
+ * - OAuth process done
49
+ */
50
+ checkReadyToLoadThemes() {
51
+ const isReady = this.state.application.isAuthInitialized && this.state.application.isCustomSerializerInitialized;
52
+ if (isReady) {
53
+ this.state.application.isReadyToLoadThemes = true;
54
+ }
55
+ }
37
56
  /**
38
57
  * For the application to be ready for usage, following elements must have been loaded:
39
58
  * - Configuration (config.json)
@@ -48,7 +67,8 @@ export default class ApplicationLifeCycleManager extends GirafeSingleton {
48
67
  !this.state.projection ||
49
68
  !this.state.position.resolution ||
50
69
  !this.state.application.isStateInitialized ||
51
- !this.state.application.isAuthInitialized) {
70
+ !this.state.application.isAuthInitialized ||
71
+ !this.state.application.isCustomSerializerInitialized) {
52
72
  isReady = false;
53
73
  }
54
74
  if (isReady) {
@@ -1,3 +1,4 @@
1
+ // SPDX-License-Identifier: Apache-2.0
1
2
  import OpenIdConnectManager from './openidconnectmanager.js';
2
3
  import GirafeSingleton from '../../base/GirafeSingleton.js';
3
4
  import GMFConnectManager from './gmfconnectmanager.js';
@@ -1,3 +1,4 @@
1
+ // SPDX-License-Identifier: Apache-2.0
1
2
  import AbstractConnectManager from './abstractconnectmanager.js';
2
3
  import { authorizationCodeGrantRequest, calculatePKCECodeChallenge, discoveryRequest, generateRandomCodeVerifier, processAuthorizationCodeResponse, processDiscoveryResponse, processRefreshTokenResponse, refreshTokenGrantRequest, TlsClientAuth, validateAuthResponse } from 'oauth4webapi';
3
4
  export default class OpenIdConnectManager extends AbstractConnectManager {
@@ -1,3 +1,4 @@
1
+ // SPDX-License-Identifier: Apache-2.0
1
2
  import GirafeSingleton from '../../base/GirafeSingleton.js';
2
3
  class PluginManager extends GirafeSingleton {
3
4
  initializeSingleton() {
@@ -1,3 +1,4 @@
1
+ <!-- SPDX-License-Identifier: Apache-2.0 -->
1
2
  <script type="module">
2
3
  try {
3
4
  const url = new URL(window.location.href);
@@ -1,3 +1,4 @@
1
+ // SPDX-License-Identifier: Apache-2.0
1
2
  import GirafeSingleton from '../../base/GirafeSingleton.js';
2
3
  import GirafeConfig from './girafeconfig.js';
3
4
  import { getPropertyByPath, mergeObjects } from '../utils/pathUtils.js';
@@ -1,3 +1,4 @@
1
+ // SPDX-License-Identifier: Apache-2.0
1
2
  import { describe, it, expect } from 'vitest';
2
3
  import GirafeConfig from './girafeconfig';
3
4
  import MockHelper from '../tests/mockhelper';
@@ -1,3 +1,4 @@
1
+ // SPDX-License-Identifier: Apache-2.0
1
2
  class GirafeConfig {
2
3
  general;
3
4
  languages;
@@ -1,3 +1,4 @@
1
+ // SPDX-License-Identifier: Apache-2.0
1
2
  import DragManager from '../../components/treeview/tools/dragmanager.js';
2
3
  import ApplicationLifeCycleManager from '../app/lifecyclemanager.js';
3
4
  import AuthManager from '../auth/authmanager.js';
@@ -1,3 +1,4 @@
1
+ // SPDX-License-Identifier: Apache-2.0
1
2
  import { v4 as uuidv4 } from 'uuid';
2
3
  import GirafeSingleton from '../../base/GirafeSingleton.js';
3
4
  import ErrorStackParser from 'error-stack-parser';
@@ -1,3 +1,4 @@
1
+ // SPDX-License-Identifier: Apache-2.0
1
2
  import { describe, it, expect, vi, beforeEach, afterAll } from 'vitest';
2
3
  import MockHelper from '../tests/mockhelper';
3
4
  vi.mock('uuid', () => ({
@@ -1,3 +1,4 @@
1
+ // SPDX-License-Identifier: Apache-2.0
1
2
  import { download } from './download.js';
2
3
  export default class CsvManager {
3
4
  context;
@@ -1,3 +1,4 @@
1
+ // SPDX-License-Identifier: Apache-2.0
1
2
  import { describe, it, expect, beforeEach, vi } from 'vitest';
2
3
  import CsvManager from './csvmanager';
3
4
  import { download } from './download';
@@ -1,3 +1,4 @@
1
+ // SPDX-License-Identifier: Apache-2.0
1
2
  import { isSafari } from '../utils/utils.js';
2
3
  import { saveAs } from 'file-saver';
3
4
  /**
@@ -1,3 +1,4 @@
1
+ // SPDX-License-Identifier: Apache-2.0
1
2
  import { describe, it, expect, beforeEach, vi } from 'vitest';
2
3
  import { isSafari } from '../utils/utils';
3
4
  import { saveAs } from 'file-saver';
@@ -1,3 +1,4 @@
1
+ // SPDX-License-Identifier: Apache-2.0
1
2
  import { test, expect, describe, beforeEach } from 'vitest';
2
3
  import FeatureToGridDataById from './featuretogriddatabyid';
3
4
  import OlFeature from 'ol/Feature';
@@ -1,3 +1,4 @@
1
+ // SPDX-License-Identifier: Apache-2.0
1
2
  /**
2
3
  * Known Functionalities which are allowed in <code>GMFTheme.functionalities</code> and are published to
3
4
  * <code>State.functionalities</code>. Subscribe a Handler to get notified when a Theme which such a Functionality is
@@ -1,3 +1,4 @@
1
+ // SPDX-License-Identifier: Apache-2.0
1
2
  import { METERS_PER_UNIT as ol_METERS_PER_UNIT } from 'ol/proj.js';
2
3
  class GeoConsts {
3
4
  /** When circles needs to be rendered as polygon of N sides. */
@@ -1,3 +1,4 @@
1
+ // SPDX-License-Identifier: Apache-2.0
1
2
  import { fromLonLat } from 'ol/proj.js';
2
3
  export function formatCoordinates(coords, locale) {
3
4
  const east = (Math.round(coords[0] * 100) / 100).toLocaleString(locale, { minimumFractionDigits: 2 });