@geogirafe/lib-geoportal 1.1.0-dev.2398428535 → 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 (259) 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 +1 -0
  142. package/tools/app/lifecyclemanager.js +1 -0
  143. package/tools/auth/authmanager.js +1 -0
  144. package/tools/auth/openidconnectmanager.js +1 -0
  145. package/tools/auth/pluginmanager.js +1 -0
  146. package/tools/auth/silentlogincallback.html +1 -0
  147. package/tools/configuration/configmanager.js +1 -0
  148. package/tools/configuration/configmanager.spec.js +1 -0
  149. package/tools/configuration/girafeconfig.js +1 -0
  150. package/tools/context/context.js +1 -0
  151. package/tools/error/errormanager.js +1 -0
  152. package/tools/error/errormanager.spec.js +1 -0
  153. package/tools/export/csvmanager.js +1 -0
  154. package/tools/export/csvmanager.spec.js +1 -0
  155. package/tools/export/download.js +1 -0
  156. package/tools/export/download.spec.js +1 -0
  157. package/tools/featuretogriddatabyid.spec.js +1 -0
  158. package/tools/functionalities.js +1 -0
  159. package/tools/geoconsts.js +1 -0
  160. package/tools/geometrytools.js +1 -0
  161. package/tools/i18n/i18nmanager.js +1 -0
  162. package/tools/i18n/i18nmanager.spec.js +1 -0
  163. package/tools/layers/layermanager.js +1 -0
  164. package/tools/layers/simplemasklayer.spec.js +1 -0
  165. package/tools/layers/snapmanager.js +1 -0
  166. package/tools/legendhelper.js +1 -0
  167. package/tools/localfile/localfilemanager.js +1 -0
  168. package/tools/logging/logmanager.js +1 -0
  169. package/tools/logging/logmanager.spec.js +1 -0
  170. package/tools/offline/offlinemanager.js +1 -0
  171. package/tools/offline/offlinemanager.spec.js +1 -0
  172. package/tools/ogcapi/demolayers.js +1 -0
  173. package/tools/ogcapi/ogcapiclient.spec.js +1 -0
  174. package/tools/ogcapi/ogcapiconformance.js +1 -0
  175. package/tools/ogcapi/ogcapifeaturesclient.spec.js +1 -0
  176. package/tools/ogcapi/ogcapifeaturesclientgeorama.js +1 -0
  177. package/tools/ogcapi/ogcapifeaturesclientgmf.js +1 -0
  178. package/tools/ogcapi/ogcapifeaturesmanager.spec.js +1 -0
  179. package/tools/ogcapi/ogcapifeaturesschema.js +1 -0
  180. package/tools/ogcapi/ogcapifeaturesschema.spec.js +1 -0
  181. package/tools/onboarding/onboardingmanager.js +1 -0
  182. package/tools/ordering/orderingmanager.js +1 -0
  183. package/tools/ordering/orderingmanager.spec.js +1 -0
  184. package/tools/raster/rasterutils.js +1 -0
  185. package/tools/resizewindow.js +1 -0
  186. package/tools/resizewindow.spec.js +1 -0
  187. package/tools/share/serializers/activebasemapsserializer.spec.js +1 -0
  188. package/tools/share/serializers/customlayersserializer.js +1 -0
  189. package/tools/share/serializers/globeserializer.spec.js +1 -0
  190. package/tools/share/serializers/layerconfigserializer.spec.js +1 -0
  191. package/tools/share/serializers/mappositionserializer.spec.js +1 -0
  192. package/tools/share/serializers/selectionserializer.spec.js +1 -0
  193. package/tools/share/sessionmanager.js +1 -0
  194. package/tools/share/sharemanager.js +1 -0
  195. package/tools/share/stateserializer.js +1 -0
  196. package/tools/state/brain/brain.array.spec.js +1 -0
  197. package/tools/state/brain/brain.base.spec.js +1 -0
  198. package/tools/state/brain/brain.date.spec.js +1 -0
  199. package/tools/state/brain/brain.ignored.spec.js +1 -0
  200. package/tools/state/brain/brain.js +1 -0
  201. package/tools/state/brain/brain.object.spec.js +1 -0
  202. package/tools/state/brain/brain.primitive.spec.js +1 -0
  203. package/tools/state/brain/brain.supported.spec.js +1 -0
  204. package/tools/state/brain/decorators.js +1 -0
  205. package/tools/state/brain/equality.js +1 -0
  206. package/tools/state/brain/equality.spec.js +1 -0
  207. package/tools/state/brain/serialize.js +1 -0
  208. package/tools/state/brain/tools.js +1 -0
  209. package/tools/state/mapManager.js +1 -0
  210. package/tools/state/mapposition.spec.js +1 -0
  211. package/tools/state/state.js +1 -0
  212. package/tools/state/stateToggleManager.spec.js +1 -0
  213. package/tools/state/statemanager.js +1 -0
  214. package/tools/state/statemanager.spec.js +1 -0
  215. package/tools/state/userInteractionManager.js +1 -0
  216. package/tools/state/userinteractionevent.js +1 -0
  217. package/tools/tests/globalmocking.js +1 -0
  218. package/tools/tests/layerhelpers.js +1 -0
  219. package/tools/tests/mockconfig.js +1 -0
  220. package/tools/tests/mockcontext.js +1 -0
  221. package/tools/tests/mockhelper.js +1 -0
  222. package/tools/tests/olhelpers.js +1 -0
  223. package/tools/tests/testhelper.js +1 -0
  224. package/tools/tests/wmswfsmanagermocking.js +1 -0
  225. package/tools/themes/customthemesmanager.js +1 -0
  226. package/tools/themes/themefavoritesmanager.js +1 -0
  227. package/tools/themes/themefavoritesmanager.spec.js +3 -2
  228. package/tools/themes/themes-config.js +1 -0
  229. package/tools/themes/themeshelper.js +1 -0
  230. package/tools/themes/themeshelper.spec.js +1 -0
  231. package/tools/themes/themesmanager.js +1 -0
  232. package/tools/themes/themesmanager.spec.js +1 -0
  233. package/tools/themes/userlayermanager.js +1 -0
  234. package/tools/time/layertimeformatter.spec.js +1 -0
  235. package/tools/url/permalinkmanager-constants.js +1 -0
  236. package/tools/url/permalinkmanager.js +1 -0
  237. package/tools/url/permalinkmanager.spec.js +1 -0
  238. package/tools/url/urlmanager.js +1 -0
  239. package/tools/userdata/userdatamanager.js +1 -0
  240. package/tools/userdata/userdatamanager.spec.js +1 -0
  241. package/tools/utils/debounce.js +1 -0
  242. package/tools/utils/debounce.spec.js +1 -0
  243. package/tools/utils/girafecolorpicker.js +1 -0
  244. package/tools/utils/olutils.spec.js +1 -0
  245. package/tools/utils/pathUtils.js +1 -0
  246. package/tools/utils/pathUtils.spec.js +1 -0
  247. package/tools/utils/qrcode.js +1 -0
  248. package/tools/utils/swhelper.js +1 -0
  249. package/tools/utils/utils.spec.js +1 -0
  250. package/tools/vendorspecificogcservermanager.js +1 -0
  251. package/tools/wfs/wfsclient.spec.js +1 -0
  252. package/tools/wfs/wfsfilter.js +1 -0
  253. package/tools/wfs/wfsmanager.spec.js +1 -0
  254. package/tools/wfs/wfsparser.spec.js +1 -0
  255. package/tools/wms/wmsclient.js +1 -0
  256. package/tools/wms/wmsclient.spec.js +1 -0
  257. package/tools/wms/wmslegendhelper.js +1 -0
  258. package/tools/wms/wmsmanager.spec.js +1 -0
  259. package/typings/common.d.ts +1 -0
package/api/api.js CHANGED
@@ -1,2 +1,3 @@
1
+ // SPDX-License-Identifier: Apache-2.0
1
2
  import GeoGirafeApi from './apigeogirafeapp.js';
2
3
  customElements.define('geogirafe-map', GeoGirafeApi);
package/api/apicontext.js CHANGED
@@ -1,3 +1,4 @@
1
+ // SPDX-License-Identifier: Apache-2.0
1
2
  import ApplicationLifeCycleManager from '../tools/app/lifecyclemanager.js';
2
3
  import AuthManager from '../tools/auth/authmanager.js';
3
4
  import DragManager from '../components/treeview/tools/dragmanager.js';
@@ -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 MapComponent from '../components/map/component.js';
@@ -1,3 +1,4 @@
1
+ // SPDX-License-Identifier: Apache-2.0
1
2
  import GirafeSingleton from '../base/GirafeSingleton.js';
2
3
  class ApiSessionManager extends GirafeSingleton {
3
4
  initializeSingleton() {
@@ -1,3 +1,4 @@
1
+ // SPDX-License-Identifier: Apache-2.0
1
2
  import GirafeHTMLElement from './GirafeHTMLElement.js';
2
3
  import { debounce } from '../tools/utils/debounce.js';
3
4
  /*
@@ -1,3 +1,4 @@
1
+ // SPDX-License-Identifier: Apache-2.0
1
2
  import { render as uRender, html as uHtml } from 'uhtml';
2
3
  class GirafeHTMLElement extends HTMLElement {
3
4
  templateUrl = null;
@@ -1,3 +1,4 @@
1
+ // SPDX-License-Identifier: Apache-2.0
1
2
  import { describe, it, beforeAll, assert, afterAll, expect, beforeEach, afterEach } from 'vitest';
2
3
  import GirafeHTMLElement from './GirafeHTMLElement';
3
4
  import MockHelper from '../tools/tests/mockhelper';
@@ -1,3 +1,4 @@
1
+ // SPDX-License-Identifier: Apache-2.0
1
2
  import GirafeHTMLElement from './GirafeHTMLElement.js';
2
3
  /*
3
4
  Minimal template for a draggable object :
@@ -1,3 +1,4 @@
1
+ // SPDX-License-Identifier: Apache-2.0
1
2
  import { describe, it, expect, beforeAll, afterAll, vi } from 'vitest';
2
3
  import GirafeResizableElement from './GirafeResizableElement';
3
4
  import MockHelper from '../tools/tests/mockhelper';
@@ -1,3 +1,4 @@
1
+ // SPDX-License-Identifier: Apache-2.0
1
2
  import { describe, it, expect } from 'vitest';
2
3
  import GirafeSingleton from './GirafeSingleton';
3
4
  import MockHelper from '../tools/tests/mockhelper';
@@ -1,3 +1,4 @@
1
+ :: SPDX-License-Identifier: Apache-2.0
1
2
  @echo off
2
3
  setlocal
3
4
 
@@ -1,3 +1,4 @@
1
+ # SPDX-License-Identifier: Apache-2.0
1
2
  set +x
2
3
 
3
4
  # Ensure that certutil is installed
@@ -1,3 +1,4 @@
1
+ // SPDX-License-Identifier: Apache-2.0
1
2
  import fs from 'node:fs';
2
3
  import path from 'path';
3
4
  import { findFilesRecursive, inlineTemplate } from './tools.js';
@@ -1,2 +1,3 @@
1
+ // SPDX-License-Identifier: Apache-2.0
1
2
  export { default as InlineTemplatesPlugin } from './vite-inline-templates-plugin.js';
2
3
  export { default as HtmlRebuildPlugin } from './vite-restart-plugin.js';
@@ -1,3 +1,4 @@
1
+ // SPDX-License-Identifier: Apache-2.0
1
2
  import MagicString from 'magic-string';
2
3
  import fs from 'fs-extra';
3
4
  import path from 'path';
@@ -1,3 +1,4 @@
1
+ // SPDX-License-Identifier: Apache-2.0
1
2
  import { inlineTemplate } from './tools.js';
2
3
 
3
4
  const InlineTemplatesPlugin = function () {
@@ -1,3 +1,4 @@
1
+ // SPDX-License-Identifier: Apache-2.0
1
2
  const HtmlRebuildPlugin = function () {
2
3
  return {
3
4
  name: 'girafe-html-rebuild',
@@ -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
  class AboutComponent extends GirafeHTMLElement {
4
5
  template = () => {
@@ -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
  export default class AlignNorthButtonMobile extends GirafeHTMLElement {
4
5
  template = () => {
@@ -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
  export default class OauthComponent extends GirafeHTMLElement {
4
5
  template = () => {
@@ -1,4 +1,5 @@
1
1
  import { html as uHtml } from 'uhtml';
2
+ // SPDX-License-Identifier: Apache-2.0
2
3
  import OauthComponent from '../auth/component.js';
3
4
  export default class MobileOauthComponent extends OauthComponent {
4
5
  template = () => {
@@ -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 { applyOpacityToLayers } from '../../tools/utils/utils.js';
5
6
  class BasemapComponent extends GirafeHTMLElement {
@@ -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
  class ContactComponent extends GirafeHTMLElement {
4
5
  template = () => {
@@ -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 { Overlay } from 'ol';
4
5
  import areEqual from '../../../tools/state/brain/equality.js';
@@ -1,3 +1,4 @@
1
+ // SPDX-License-Identifier: Apache-2.0
1
2
  export class MapContextMenuState {
2
3
  visible = false;
3
4
  position;
@@ -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 { formatCoordinates } from '../../tools/geometrytools.js';
4
5
  class CoordinateComponent extends GirafeHTMLElement {
@@ -1,3 +1,4 @@
1
+ // SPDX-License-Identifier: Apache-2.0
1
2
  import * as d3 from 'd3';
2
3
  import { v4 as uuidv4 } from 'uuid';
3
4
  export class Scatterplot {
@@ -1,3 +1,4 @@
1
+ // SPDX-License-Identifier: Apache-2.0
1
2
  import * as d3 from 'd3';
2
3
  // Compute point colors
3
4
  export function computeColors(values, colormap = 'spectral', domain = []) {
@@ -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
  export default class DisplayMenuButtonMobile extends GirafeHTMLElement {
4
5
  template = () => {
@@ -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
  export default class DisplaySelectorButtonMobile extends GirafeHTMLElement {
4
5
  template = () => {
@@ -1,3 +1,4 @@
1
+ // SPDX-License-Identifier: Apache-2.0
1
2
  import * as Cesium from 'cesium';
2
3
  import { CallbackProperty, Cartesian2, Cartesian3, Cartographic, Color, EllipsoidGeodesic, Entity, ScreenSpaceEventType, PolygonHierarchy } from 'cesium';
3
4
  import { KML, GeoJSON } from 'ol/format.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 DrawingComponent from './component.js';
4
5
  export default class DrawingComponentMobile extends DrawingComponent {
5
6
  template = () => {
@@ -1,3 +1,4 @@
1
+ // SPDX-License-Identifier: Apache-2.0
1
2
  import { v4 as uuidv4 } from 'uuid';
2
3
  import { Fill, RegularShape, Stroke, Style } from 'ol/style.js';
3
4
  import { toRadians } from 'ol/math.js';
@@ -1,3 +1,4 @@
1
+ // SPDX-License-Identifier: Apache-2.0
1
2
  import DrawingFeature, { DrawingShape } from './drawingFeature.js';
2
3
  import { Collection, Feature } from 'ol';
3
4
  import { Circle as CircleGeom, Geometry, LinearRing, LineString, MultiLineString, MultiPoint, MultiPolygon, Point, Polygon } from 'ol/geom.js';
@@ -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
  export default class DrawingContainerMobile extends GirafeHTMLElement {
4
5
  template = () => {
@@ -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 { Draw, Modify, Select } from 'ol/interaction.js';
5
6
  import Feature from 'ol/Feature.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
  export default class EditFromComponent extends GirafeHTMLElement {
5
6
  template = () => {
@@ -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 ServerOgc from '../../models/serverogc.js';
5
6
  import { WmsClientDefault } from '../../tools/wms/wmsclient.js';
@@ -1,4 +1,5 @@
1
1
  import { html as uHtml } from 'uhtml';
2
+ // SPDX-License-Identifier: Apache-2.0
2
3
  import Geolocation from 'ol/Geolocation.js';
3
4
  import Feature from 'ol/Feature.js';
4
5
  import Point from 'ol/geom/Point.js';
@@ -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 ArrowBlack from './images/arrow_black.webp';
4
5
  import ArrowWhite from './images/arrow_white.webp';
@@ -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 { linkify as utils_linkify } from '../../tools/utils/utils.js';
4
5
  class InfoboxComponent extends GirafeHTMLElement {
@@ -1,4 +1,5 @@
1
1
  import { html as uHtml } from 'uhtml';
2
+ // SPDX-License-Identifier: Apache-2.0
2
3
  import GirafeDraggableElement from '../../base/GirafeDraggableElement.js';
3
4
  import ResizeWindow from '../../tools/resizewindow.js';
4
5
  class InfoWindowComponent extends GirafeDraggableElement {
@@ -1,3 +1,4 @@
1
+ // SPDX-License-Identifier: Apache-2.0
1
2
  import { afterAll, beforeAll, describe, expect, it } from 'vitest';
2
3
  import InfoWindowComponent 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
  const ALLOWED_LAYOUTS = ['2D', '3D', '2D/3D'];
4
5
  class LayoutComponent extends GirafeHTMLElement {
@@ -1,4 +1,5 @@
1
1
  import { html as uHtml } from 'uhtml';
2
+ // SPDX-License-Identifier: Apache-2.0
2
3
  import GirafeResizableElement from '../../base/GirafeResizableElement.js';
3
4
  import { isGirafePanel } from '../../tools/state/igirafepanel.js';
4
5
  import StateToggleManager from '../../tools/state/stateToggleManager.js';
@@ -1,4 +1,5 @@
1
1
  import { html as uHtml } from 'uhtml';
2
+ // SPDX-License-Identifier: Apache-2.0
2
3
  import { Collection, Feature } from 'ol';
3
4
  import { Circle, Fill, RegularShape, Stroke, Style } from 'ol/style.js';
4
5
  import VectorSource from 'ol/source/Vector.js';
@@ -1,3 +1,4 @@
1
+ // SPDX-License-Identifier: Apache-2.0
1
2
  import { Overlay } from 'ol';
2
3
  import { v4 as uuidv4 } from 'uuid';
3
4
  export var EntryInteractionType;
@@ -1,3 +1,4 @@
1
+ // SPDX-License-Identifier: Apache-2.0
1
2
  import { expect, it, describe } from 'vitest';
2
3
  import { FocusFeature } from './focusfeature';
3
4
  describe('Function: getFlashDynamicValues', () => {
@@ -1,3 +1,4 @@
1
+ // SPDX-License-Identifier: Apache-2.0
1
2
  import View from 'ol/View.js';
2
3
  import { get as getProjection, transform } from 'ol/proj.js';
3
4
  import GeoConsts from '../../../tools/geoconsts.js';
@@ -1,3 +1,4 @@
1
+ // SPDX-License-Identifier: Apache-2.0
1
2
  import WMTS, { optionsFromCapabilities } from 'ol/source/WMTS.js';
2
3
  import WMTSCapabilities from 'ol/format/WMTSCapabilities.js';
3
4
  import TileLayer from 'ol/layer/Tile.js';
@@ -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
  export default class MenuMobile3dButton extends GirafeHTMLElement {
4
5
  template = () => {
@@ -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
  export default class MenuMobileDrawingButton extends GirafeHTMLElement {
4
5
  template = () => {
@@ -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
  export default class MenuMobileOfflineButton extends GirafeHTMLElement {
4
5
  template = () => {
@@ -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
  export default class MenuMobile extends GirafeHTMLElement {
4
5
  template = () => {
@@ -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
  class MenuButtonComponent extends GirafeHTMLElement {
4
5
  template = () => {
@@ -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
  class ModalsComponent extends GirafeHTMLElement {
4
5
  template = () => {
@@ -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 MapPosition from '../../tools/state/mapposition.js';
5
6
  import { Bookmark } from './Bookmark.js';
@@ -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 LayerWmts from '../../models/layers/layerwmts.js';
4
5
  class OfflineComponent extends GirafeHTMLElement {
@@ -1,3 +1,4 @@
1
+ // SPDX-License-Identifier: Apache-2.0
1
2
  import { describe, it, expect, beforeAll } from 'vitest';
2
3
  import MockHelper from '../../tools/tests/mockhelper';
3
4
  import OfflineComponent from './component';
@@ -1,3 +1,4 @@
1
+ // SPDX-License-Identifier: Apache-2.0
1
2
  import { it, expect, describe } from 'vitest';
2
3
  import PrintComponent from './component';
3
4
  describe('PrintComponent', () => {
@@ -1,3 +1,4 @@
1
+ // SPDX-License-Identifier: Apache-2.0
1
2
  import { expect, describe, it, beforeEach, afterAll } from 'vitest';
2
3
  import MFPEncoder from './MFPEncoder';
3
4
  import MockHelper from '../../../tools/tests/mockhelper';
@@ -1,3 +1,4 @@
1
+ // SPDX-License-Identifier: Apache-2.0
1
2
  import { it, describe, expect, beforeEach, afterAll } from 'vitest';
2
3
  import { MFPLegendEncoder } from './MFPLegendEncoder';
3
4
  import { createTestGroupLayer, createTestLayerWms, createTestLayerWmsQGis, createTestLayerWmts, createTestOgcServer } from '../../../tools/tests/layerhelpers';
@@ -1,3 +1,4 @@
1
+ // SPDX-License-Identifier: Apache-2.0
1
2
  import { expect, it, describe, beforeEach, afterAll } from 'vitest';
2
3
  import PrintManager from './PrintManager';
3
4
  import MockHelper from '../../../tools/tests/mockhelper';
@@ -1,3 +1,4 @@
1
+ // SPDX-License-Identifier: Apache-2.0
1
2
  import PrintMaskManager from './printMaskManager';
2
3
  import { describe, expect, it } from 'vitest';
3
4
  describe('PrintMaskManager Class', () => {
@@ -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
  class PrototypeBannerComponent extends GirafeHTMLElement {
4
5
  template = () => {
@@ -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 WfsFilter, { mapAttributeTypeToFilterOperators } from '../../tools/wfs/wfsfilter.js';
5
6
  import { isString, isNumber, isDate } from '../../models/xmlTypes.js';
@@ -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
  class ScaleComponent extends GirafeHTMLElement {
4
5
  template = () => {
@@ -1,4 +1,5 @@
1
1
  import { html as uHtml } from 'uhtml';
2
+ // SPDX-License-Identifier: Apache-2.0
2
3
  import Collection from 'ol/Collection.js';
3
4
  import Feature from 'ol/Feature.js';
4
5
  import GeoJSON from 'ol/format/GeoJSON.js';
@@ -1,4 +1,5 @@
1
1
  import { html as uHtml } from 'uhtml';
2
+ // SPDX-License-Identifier: Apache-2.0
2
3
  import SearchComponent from '../search/component.js';
3
4
  class MobileSearchComponent extends SearchComponent {
4
5
  template = () => {
@@ -1,4 +1,5 @@
1
1
  import { html as uHtml } from 'uhtml';
2
+ // SPDX-License-Identifier: Apache-2.0
2
3
  import GirafeResizableElement from '../../base/GirafeResizableElement.js';
3
4
  import * as olExtent from 'ol/extent.js';
4
5
  import { debounce } from '../../tools/utils/debounce.js';
@@ -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 { SelectionMode, SelectionTool } from '../../models/selection.js';
4
5
  import { Draw, Interaction } from 'ol/interaction.js';
@@ -1,3 +1,4 @@
1
+ // SPDX-License-Identifier: Apache-2.0
1
2
  import { expect, it, describe } from 'vitest';
2
3
  import SelectionWindowComponent from './component';
3
4
  import OlFeature from 'ol/Feature';
@@ -1,4 +1,5 @@
1
1
  import { html as uHtml } from 'uhtml';
2
+ // SPDX-License-Identifier: Apache-2.0
2
3
  import TwitterLogo from './images/twitter.svg';
3
4
  import FacebookLogo from './images/facebook.svg';
4
5
  import LinkedInLogo from './images/linkedin.svg';
@@ -1,3 +1,4 @@
1
+ // SPDX-License-Identifier: Apache-2.0
1
2
  import { afterAll, beforeEach, describe, expect, it } from 'vitest';
2
3
  import { ShareStateSerializer } from './sharestate';
3
4
  import MockHelper from '../../tools/tests/mockhelper';
@@ -1,3 +1,4 @@
1
+ // SPDX-License-Identifier: Apache-2.0
1
2
  import { generateQrCode } from '../../../tools/utils/qrcode.js';
2
3
  class GmfShareManager {
3
4
  serviceUrl;
@@ -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
  // Css "top" values corresponding to the above modes:
4
5
  const TOP_FULL = 'calc( env(safe-area-inset-top) + 1rem)';
@@ -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 ThemeLayer from '../../models/layers/themelayer.js';
5
6
  import NewIcon from './images/new.svg';
@@ -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,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
  class MobileLayerElementComponent extends GirafeHTMLElement {
4
5
  template = () => {
@@ -1,4 +1,5 @@
1
1
  import { html as uHtml } from 'uhtml';
2
+ // SPDX-License-Identifier: Apache-2.0
2
3
  import LayerWms from '../../../models/layers/layerwms.js';
3
4
  import WmsLegendHelper from '../../../tools/wms/wmslegendhelper.js';
4
5
  import MobileLayerElementComponent from '../layer/component.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'; // NOSONAR
5
6
  class MobileThemeElementComponent extends GirafeHTMLElement {
@@ -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 Layer from '../../../models/layers/layer.js';
@@ -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 LayerTimeFormatter, { TIME_RANGE_SEPARATOR } from '../../tools/time/layertimeformatter.js';
4
5
  import { TimeChangeEvent } from './tools/timewidget.js';
@@ -1,4 +1,5 @@
1
1
  import { html as uHtml } from 'uhtml';
2
+ // SPDX-License-Identifier: Apache-2.0
2
3
  import TimeWidget from '../tools/timewidget.js';
3
4
  /**
4
5
  * A component consisting of two `<input>` elements of type date picker for temporal layer filtering.
@@ -1,4 +1,5 @@
1
1
  import { html as uHtml } from 'uhtml';
2
+ // SPDX-License-Identifier: Apache-2.0
2
3
  import LayerTimeFormatter from '../../../tools/time/layertimeformatter.js';
3
4
  import TimeWidget from '../tools/timewidget.js';
4
5
  /**
@@ -1,3 +1,4 @@
1
+ // SPDX-License-Identifier: Apache-2.0
1
2
  import { afterAll, beforeAll, describe, expect, it } from 'vitest';
2
3
  import LayerTimeFormatter from '../../../tools/time/layertimeformatter';
3
4
  import TimeSliderComponent from './component';
@@ -1,3 +1,4 @@
1
+ // SPDX-License-Identifier: Apache-2.0
1
2
  import GirafeHTMLElement from '../../../base/GirafeHTMLElement.js';
2
3
  import LayerTimeFormatter from '../../../tools/time/layertimeformatter.js';
3
4
  import { debounce } from '../../../tools/utils/debounce.js';