@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.
- package/api/api.js +1 -0
- package/api/apicontext.js +1 -0
- package/api/apigeogirafeapp.js +1 -0
- package/api/apisessionmanager.js +1 -0
- package/base/GirafeDraggableElement.js +1 -0
- package/base/GirafeHTMLElement.js +1 -0
- package/base/GirafeHTMLElement.spec.js +1 -0
- package/base/GirafeResizableElement.js +1 -0
- package/base/GirafeResizableElement.spec.js +1 -0
- package/base/GirafeSingleton.spec.js +1 -0
- package/buildtools/generate-dev-certs.cmd +1 -0
- package/buildtools/generate-dev-certs.sh +1 -0
- package/buildtools/lib-inline.js +1 -0
- package/buildtools/main.js +1 -0
- package/buildtools/tools.js +1 -0
- package/buildtools/vite-inline-templates-plugin.js +1 -0
- package/buildtools/vite-restart-plugin.js +1 -0
- package/components/about/component.js +1 -0
- package/components/alignnorthbutton-mobile/component.js +1 -0
- package/components/auth/component.js +1 -0
- package/components/auth-mobile/component.js +1 -0
- package/components/basemap/component.js +1 -0
- package/components/contact/component.js +1 -0
- package/components/context-menu/custom-context-menu/component.js +1 -0
- package/components/context-menu/default-context-menu/contextmenustate.js +1 -0
- package/components/coordinate/component.js +1 -0
- package/components/cross-section/scatterplot.js +1 -0
- package/components/cross-section/utils.js +1 -0
- package/components/displaymenubutton-mobile/component.js +1 -0
- package/components/displayselectorbutton-mobile/component.js +1 -0
- package/components/drawing/cesiumDrawing.js +1 -0
- package/components/drawing/component-mobile.js +1 -0
- package/components/drawing/drawingFeature.js +1 -0
- package/components/drawing/olDrawing.js +1 -0
- package/components/drawing-container-mobile/component.js +1 -0
- package/components/edit/component.js +1 -0
- package/components/edit/editform/component.js +1 -0
- package/components/extlayers/component.js +1 -0
- package/components/geolocation-mobile/component.js +1 -0
- package/components/help/component.js +1 -0
- package/components/infobox/component.js +1 -0
- package/components/infowindow/component.js +1 -0
- package/components/infowindow/component.spec.js +1 -0
- package/components/layout/component.js +1 -0
- package/components/lr-panel/component.js +1 -0
- package/components/map/component.js +1 -0
- package/components/map/tools/contextmenu.js +1 -0
- package/components/map/tools/focusfeature.spec.js +1 -0
- package/components/map/tools/viewmanager.js +1 -0
- package/components/map/tools/wmtsmanager.js +1 -0
- package/components/menu-buttons-mobile/MenuMobile3dButton.js +1 -0
- package/components/menu-buttons-mobile/MenuMobileDrawingButton.js +1 -0
- package/components/menu-buttons-mobile/MenuMobileOfflineButton.js +1 -0
- package/components/menu-mobile/component.js +1 -0
- package/components/menubutton/component.js +1 -0
- package/components/modals/component.js +1 -0
- package/components/navigation/component.js +1 -0
- package/components/offline/component.js +1 -0
- package/components/offline/component.spec.js +1 -0
- package/components/print/component.spec.js +1 -0
- package/components/print/tools/MFPEncoder.spec.js +1 -0
- package/components/print/tools/MFPLegendEncoder.spec.js +1 -0
- package/components/print/tools/PrintManager.spec.js +1 -0
- package/components/print/tools/printMaskManager.spec.js +1 -0
- package/components/prototypebanner/component.js +1 -0
- package/components/querybuilder/component.js +1 -0
- package/components/scale/component.js +1 -0
- package/components/search/component.js +1 -0
- package/components/search-mobile/component.js +1 -0
- package/components/selectiongrid/component.js +1 -0
- package/components/selectiontool/component.js +1 -0
- package/components/selectionwindow/component.spec.js +1 -0
- package/components/share/component.js +1 -0
- package/components/share/sharestate.spec.js +1 -0
- package/components/share/tools/gmfsharemanager.js +1 -0
- package/components/swipe-up-panel-mobile/component.js +1 -0
- package/components/themes/component.js +1 -0
- package/components/themes-mobile/group/component.js +1 -0
- package/components/themes-mobile/layer/component.js +1 -0
- package/components/themes-mobile/layer-selected/component.js +1 -0
- package/components/themes-mobile/theme/component.js +1 -0
- package/components/themes-mobile/themes-select/component.js +1 -0
- package/components/timerestriction/component.js +1 -0
- package/components/timerestriction/timepicker/component.js +1 -0
- package/components/timerestriction/timeslider/component.js +1 -0
- package/components/timerestriction/timeslider/component.spec.js +1 -0
- package/components/timerestriction/tools/timewidget.js +1 -0
- package/components/treeview/tools/draghelper.spec.js +1 -0
- package/components/treeview/tools/treeviewelement.js +1 -0
- package/components/treeview/tools/treeviewfilter.spec.js +1 -0
- package/components/treeview/treeviewgroup/component.js +1 -0
- package/components/treeview/treeviewitem/component.js +1 -0
- package/components/treeview/treeviewroot/component.js +1 -0
- package/components/userpreferences/component.js +1 -0
- package/components/userpreferences/component.spec.js +1 -0
- package/components/videorecord/component.js +1 -0
- package/decs.d.ts +1 -0
- package/main.iframe.js +1 -0
- package/main.js +1 -0
- package/main.mobile.js +1 -0
- package/models/basemaps/basemapempty.js +1 -0
- package/models/basemaps/basemaposm.js +1 -0
- package/models/basemaps/basemapswisstopovectortiles.js +1 -0
- package/models/customtheme.js +1 -0
- package/models/events.js +1 -0
- package/models/layers/baselayer.js +1 -0
- package/models/layers/grouplayer.js +1 -0
- package/models/layers/layer.js +1 -0
- package/models/layers/layerconsts.js +1 -0
- package/models/layers/layerdrawing.js +1 -0
- package/models/layers/layerosm.js +1 -0
- package/models/layers/layervectortiles.js +1 -0
- package/models/layers/layerwmts.js +1 -0
- package/models/layers/layerwmtsexternal.js +1 -0
- package/models/layers/snappablelayer.js +1 -0
- package/models/layers/themelayer.js +1 -0
- package/models/layers/timeawarelayer.js +1 -0
- package/models/selection.js +1 -0
- package/models/serverogcapifeatures.js +1 -0
- package/models/xmlTypes.js +1 -0
- package/package.json +1 -1
- package/service-worker.js +1 -0
- package/styles/common.css +1 -0
- package/styles/common.mobile.css +1 -0
- package/styles/girafecolorpicker.css +1 -0
- package/styles/iframe.css +1 -0
- package/styles/index.css +1 -0
- package/styles/mobile.css +1 -0
- package/styles/resizable.css +1 -0
- package/styles/splash.css +1 -0
- package/styles/variables.css +1 -0
- package/styles/window.css +32 -35
- package/templates/api.html +1 -0
- package/templates/iframe.html +1 -0
- package/templates/index.html +1 -0
- package/templates/mobile.html +1 -0
- package/templates/public/about.json +1 -1
- package/templates/vite.config.js +1 -0
- package/tools/app/geogirafe-component.js +1 -0
- package/tools/app/geogirafeapp-mobile.js +1 -0
- package/tools/app/geogirafeapp.js +2 -1
- package/tools/app/lifecyclemanager.d.ts +7 -0
- package/tools/app/lifecyclemanager.js +21 -1
- package/tools/auth/authmanager.js +1 -0
- package/tools/auth/openidconnectmanager.js +1 -0
- package/tools/auth/pluginmanager.js +1 -0
- package/tools/auth/silentlogincallback.html +1 -0
- package/tools/configuration/configmanager.js +1 -0
- package/tools/configuration/configmanager.spec.js +1 -0
- package/tools/configuration/girafeconfig.js +1 -0
- package/tools/context/context.js +1 -0
- package/tools/error/errormanager.js +1 -0
- package/tools/error/errormanager.spec.js +1 -0
- package/tools/export/csvmanager.js +1 -0
- package/tools/export/csvmanager.spec.js +1 -0
- package/tools/export/download.js +1 -0
- package/tools/export/download.spec.js +1 -0
- package/tools/featuretogriddatabyid.spec.js +1 -0
- package/tools/functionalities.js +1 -0
- package/tools/geoconsts.js +1 -0
- package/tools/geometrytools.js +1 -0
- package/tools/i18n/i18nmanager.js +1 -0
- package/tools/i18n/i18nmanager.spec.js +1 -0
- package/tools/layers/layermanager.js +1 -0
- package/tools/layers/simplemasklayer.spec.js +1 -0
- package/tools/layers/snapmanager.js +1 -0
- package/tools/legendhelper.js +1 -0
- package/tools/localfile/localfilemanager.js +1 -0
- package/tools/logging/logmanager.js +1 -0
- package/tools/logging/logmanager.spec.js +1 -0
- package/tools/offline/offlinemanager.js +1 -0
- package/tools/offline/offlinemanager.spec.js +1 -0
- package/tools/ogcapi/demolayers.js +1 -0
- package/tools/ogcapi/ogcapiclient.spec.js +1 -0
- package/tools/ogcapi/ogcapiconformance.js +1 -0
- package/tools/ogcapi/ogcapifeaturesclient.spec.js +1 -0
- package/tools/ogcapi/ogcapifeaturesclientgeorama.js +1 -0
- package/tools/ogcapi/ogcapifeaturesclientgmf.js +1 -0
- package/tools/ogcapi/ogcapifeaturesmanager.spec.js +1 -0
- package/tools/ogcapi/ogcapifeaturesschema.js +1 -0
- package/tools/ogcapi/ogcapifeaturesschema.spec.js +1 -0
- package/tools/onboarding/onboardingmanager.js +1 -0
- package/tools/ordering/orderingmanager.js +1 -0
- package/tools/ordering/orderingmanager.spec.js +1 -0
- package/tools/raster/rasterutils.js +1 -0
- package/tools/resizewindow.js +1 -0
- package/tools/resizewindow.spec.js +1 -0
- package/tools/share/serializers/activebasemapsserializer.spec.js +1 -0
- package/tools/share/serializers/customlayersserializer.js +1 -0
- package/tools/share/serializers/globeserializer.spec.js +1 -0
- package/tools/share/serializers/layerconfigserializer.spec.js +1 -0
- package/tools/share/serializers/mappositionserializer.spec.js +1 -0
- package/tools/share/serializers/selectionserializer.spec.js +1 -0
- package/tools/share/sessionmanager.js +1 -0
- package/tools/share/sharemanager.js +1 -0
- package/tools/share/stateserializer.js +1 -0
- package/tools/state/brain/brain.array.spec.js +1 -0
- package/tools/state/brain/brain.base.spec.js +1 -0
- package/tools/state/brain/brain.date.spec.js +1 -0
- package/tools/state/brain/brain.ignored.spec.js +1 -0
- package/tools/state/brain/brain.js +1 -0
- package/tools/state/brain/brain.object.spec.js +1 -0
- package/tools/state/brain/brain.primitive.spec.js +1 -0
- package/tools/state/brain/brain.supported.spec.js +1 -0
- package/tools/state/brain/decorators.js +1 -0
- package/tools/state/brain/equality.js +1 -0
- package/tools/state/brain/equality.spec.js +1 -0
- package/tools/state/brain/serialize.js +1 -0
- package/tools/state/brain/tools.js +1 -0
- package/tools/state/mapManager.js +1 -0
- package/tools/state/mapposition.spec.js +1 -0
- package/tools/state/state.d.ts +2 -0
- package/tools/state/state.js +5 -0
- package/tools/state/stateToggleManager.spec.js +1 -0
- package/tools/state/statemanager.js +1 -0
- package/tools/state/statemanager.spec.js +1 -0
- package/tools/state/userInteractionManager.js +1 -0
- package/tools/state/userinteractionevent.js +1 -0
- package/tools/tests/globalmocking.js +1 -0
- package/tools/tests/layerhelpers.js +1 -0
- package/tools/tests/mockconfig.js +1 -0
- package/tools/tests/mockcontext.js +1 -0
- package/tools/tests/mockhelper.js +1 -0
- package/tools/tests/olhelpers.js +1 -0
- package/tools/tests/testhelper.js +1 -0
- package/tools/tests/wmswfsmanagermocking.js +1 -0
- package/tools/themes/customthemesmanager.js +1 -0
- package/tools/themes/themefavoritesmanager.js +1 -0
- package/tools/themes/themefavoritesmanager.spec.js +3 -2
- package/tools/themes/themes-config.js +1 -0
- package/tools/themes/themeshelper.js +1 -0
- package/tools/themes/themeshelper.spec.js +1 -0
- package/tools/themes/themesmanager.js +3 -2
- package/tools/themes/themesmanager.spec.js +1 -0
- package/tools/themes/userlayermanager.js +1 -0
- package/tools/time/layertimeformatter.spec.js +1 -0
- package/tools/url/permalinkmanager-constants.js +1 -0
- package/tools/url/permalinkmanager.js +1 -0
- package/tools/url/permalinkmanager.spec.js +1 -0
- package/tools/url/urlmanager.js +1 -0
- package/tools/userdata/userdatamanager.js +1 -0
- package/tools/userdata/userdatamanager.spec.js +1 -0
- package/tools/utils/debounce.js +1 -0
- package/tools/utils/debounce.spec.js +1 -0
- package/tools/utils/girafecolorpicker.js +1 -0
- package/tools/utils/olutils.spec.js +1 -0
- package/tools/utils/pathUtils.js +1 -0
- package/tools/utils/pathUtils.spec.js +1 -0
- package/tools/utils/qrcode.js +1 -0
- package/tools/utils/swhelper.js +1 -0
- package/tools/utils/utils.spec.js +1 -0
- package/tools/vendorspecificogcservermanager.js +1 -0
- package/tools/wfs/wfsclient.spec.js +1 -0
- package/tools/wfs/wfsfilter.js +1 -0
- package/tools/wfs/wfsmanager.spec.js +1 -0
- package/tools/wfs/wfsparser.spec.js +1 -0
- package/tools/wms/wmsclient.js +1 -0
- package/tools/wms/wmsclient.spec.js +1 -0
- package/tools/wms/wmslegendhelper.js +1 -0
- package/tools/wms/wmsmanager.spec.js +1 -0
- package/typings/common.d.ts +1 -0
|
@@ -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,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';
|
package/decs.d.ts
CHANGED
package/main.iframe.js
CHANGED
package/main.js
CHANGED
package/main.mobile.js
CHANGED
package/models/customtheme.js
CHANGED
package/models/events.js
CHANGED
|
@@ -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 {
|
package/models/layers/layer.js
CHANGED
|
@@ -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 {
|
package/models/selection.js
CHANGED
|
@@ -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'];
|
package/models/xmlTypes.js
CHANGED
package/package.json
CHANGED
package/service-worker.js
CHANGED
package/styles/common.css
CHANGED
package/styles/common.mobile.css
CHANGED
package/styles/iframe.css
CHANGED
package/styles/index.css
CHANGED
package/styles/mobile.css
CHANGED
package/styles/resizable.css
CHANGED
package/styles/splash.css
CHANGED
package/styles/variables.css
CHANGED
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
|
-
|
|
7
|
-
|
|
8
|
-
|
|
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
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
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
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
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
|
-
|
|
30
|
-
|
|
31
|
-
|
|
30
|
+
background-color: var(--bkg-color-grad1);
|
|
31
|
+
height: 2px;
|
|
32
|
+
margin: 0.125rem 0.5rem;
|
|
32
33
|
}
|
|
33
34
|
|
|
34
35
|
#content {
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
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
|
-
|
|
52
|
-
|
|
48
|
+
height: var(--selection-window-footer-height) !important;
|
|
49
|
+
border-top: none !important;
|
|
53
50
|
}
|
package/templates/api.html
CHANGED
package/templates/iframe.html
CHANGED
package/templates/index.html
CHANGED
package/templates/mobile.html
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":"1.1.0-dev.
|
|
1
|
+
{"version":"1.1.0-dev.2402672760", "build":"2402672760", "date":"23/03/2026"}
|
package/templates/vite.config.js
CHANGED
|
@@ -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 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 {
|
package/tools/context/context.js
CHANGED
package/tools/export/download.js
CHANGED
package/tools/functionalities.js
CHANGED
package/tools/geoconsts.js
CHANGED
package/tools/geometrytools.js
CHANGED