@geogirafe/lib-geoportal 1.1.0-dev.2456762594 → 1.1.0-dev.2456794124
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/apigeogirafeapp.d.ts +3 -2
- package/api/apigeogirafeapp.js +14 -2
- package/buildtools/lib-inline.js +13 -1
- package/buildtools/tools.js +10 -7
- package/components/about/component.d.ts +2 -2
- package/components/alignnorthbutton-mobile/component.d.ts +2 -2
- package/components/auth/component.d.ts +2 -2
- package/components/auth-mobile/component.d.ts +2 -2
- package/components/basemap/component.d.ts +2 -2
- package/components/contact/component.d.ts +2 -2
- package/components/context-menu/custom-context-menu/component.d.ts +2 -2
- package/components/context-menu/default-context-menu/component.d.ts +2 -2
- package/components/coordinate/component.d.ts +2 -2
- package/components/cross-section/cross-section-settings/component.d.ts +2 -2
- package/components/cross-section/cross-section-viewer/component.d.ts +2 -2
- package/components/displaymenubutton-mobile/component.d.ts +2 -2
- package/components/displayselectorbutton-mobile/component.d.ts +2 -2
- package/components/drawing/component-mobile.d.ts +2 -2
- package/components/drawing/component.d.ts +2 -2
- package/components/drawing/fixed-dimension/component.d.ts +2 -2
- package/components/drawing-container-mobile/component.d.ts +2 -2
- package/components/edit/component.d.ts +2 -2
- package/components/edit/editform/component.d.ts +2 -2
- package/components/extlayers/component.d.ts +2 -2
- package/components/geolocation-mobile/component.d.ts +2 -2
- package/components/getdirections/component.d.ts +2 -2
- package/components/help/component.d.ts +2 -2
- package/components/infobox/component.d.ts +2 -2
- package/components/infowindow/component.d.ts +2 -2
- package/components/layout/component.d.ts +2 -2
- package/components/lr-panel/component.d.ts +2 -2
- package/components/map/component.d.ts +2 -2
- package/components/menu-buttons-mobile/MenuMobile3dButton.d.ts +2 -2
- package/components/menu-buttons-mobile/MenuMobileDrawingButton.d.ts +2 -2
- package/components/menu-buttons-mobile/MenuMobileOfflineButton.d.ts +2 -2
- package/components/menu-mobile/component.d.ts +2 -2
- package/components/menubutton/component.d.ts +2 -2
- package/components/modals/component.d.ts +2 -2
- package/components/navigation/component.d.ts +2 -2
- package/components/news/news-button/component.d.ts +2 -2
- package/components/news/news-panel/component.d.ts +2 -2
- package/components/offline/component.d.ts +2 -2
- package/components/print/component.d.ts +2 -2
- package/components/prototypebanner/component.d.ts +2 -2
- package/components/querybuilder/component.d.ts +2 -2
- package/components/scale/component.d.ts +2 -2
- package/components/search/component.d.ts +2 -2
- package/components/search-mobile/component.d.ts +2 -2
- package/components/selectiongrid/component.d.ts +2 -2
- package/components/selectionpanel-mobile/component.d.ts +2 -2
- package/components/selectiontool/component.d.ts +2 -2
- package/components/selectionwindow/component.d.ts +2 -2
- package/components/share/component.d.ts +2 -2
- package/components/swipe-up-panel-mobile/component.d.ts +2 -2
- package/components/themes/component.d.ts +2 -2
- package/components/themes-mobile/group/component.d.ts +2 -2
- package/components/themes-mobile/layer/component.d.ts +2 -2
- package/components/themes-mobile/layer-selected/component.d.ts +2 -2
- package/components/themes-mobile/theme/component.d.ts +2 -2
- package/components/themes-mobile/themes-select/component.d.ts +2 -2
- package/components/timerestriction/component.d.ts +2 -2
- package/components/timerestriction/timepicker/component.d.ts +2 -2
- package/components/timerestriction/timeslider/component.d.ts +2 -2
- package/components/treeview/treeviewgroup/component.d.ts +2 -2
- package/components/treeview/treeviewitem/component.d.ts +2 -2
- package/components/treeview/treeviewroot/component.d.ts +2 -2
- package/components/treeview/treeviewtheme/component.d.ts +2 -2
- package/components/userpreferences/component.d.ts +2 -2
- package/components/videorecord/component.d.ts +2 -2
- package/package.json +4 -1
- package/templates/api.html +2 -2
- package/templates/public/about.json +1 -1
- package/templates/public/api/marker-blue.png +0 -0
- package/templates/public/api/marker-green.png +0 -0
- package/templates/public/api/parking.png +0 -0
- package/templates/public/config.api.json +17 -0
- package/templates/public/config.json +77 -0
- package/templates/public/config.mobile.json +9 -0
- package/templates/vite.config.js +3 -2
- package/api/api.d.ts +0 -1
- package/api/api.js +0 -3
package/api/apigeogirafeapp.d.ts
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import GirafeHTMLElement from '../base/GirafeHTMLElement.js';
|
|
2
2
|
import IGirafeContext from '../tools/context/icontext.js';
|
|
3
3
|
export default class GeoGirafeApi extends GirafeHTMLElement {
|
|
4
|
-
protected templateUrl: string;
|
|
5
|
-
protected styleUrls: string[];
|
|
4
|
+
protected templateUrl: string | null;
|
|
5
|
+
protected styleUrls: string[] | null;
|
|
6
|
+
template: () => import("uhtml").Hole;
|
|
6
7
|
private isInitialized;
|
|
7
8
|
constructor();
|
|
8
9
|
private get config();
|
package/api/apigeogirafeapp.js
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { html as uHtml } from 'uhtml';
|
|
1
2
|
// SPDX-License-Identifier: Apache-2.0
|
|
2
3
|
import proj4 from 'proj4';
|
|
3
4
|
import GirafeHTMLElement from '../base/GirafeHTMLElement.js';
|
|
@@ -10,8 +11,16 @@ import MapCustomContextMenuComponent from '../components/context-menu/custom-con
|
|
|
10
11
|
import SearchComponent from '../components/search/component.js';
|
|
11
12
|
import SelectionWindowComponent from '../components/selectionwindow/component.js';
|
|
12
13
|
export default class GeoGirafeApi extends GirafeHTMLElement {
|
|
13
|
-
templateUrl =
|
|
14
|
-
styleUrls =
|
|
14
|
+
templateUrl = null;
|
|
15
|
+
styleUrls = null;
|
|
16
|
+
template = () => {
|
|
17
|
+
return uHtml `<style>
|
|
18
|
+
*{font-family:Arial,sans-serif}.hidden{display:none!important}.gg-rotate90{transform:rotate(90deg)}.gg-rotate180{transform:rotate(180deg)}.gg-rotate270{transform:rotate(270deg)}img{filter:var(--svg-filter)}img.legend-image{filter:var(--svg-map-filter);background:var(--svg-legend-bkg)}div{scrollbar-width:thin}a,a:visited{color:var(--link-color)}@keyframes spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}@keyframes spin-wait{0%{transform:rotate(0)}7%{transform:rotate(360deg)}to{transform:rotate(360deg)}}.gg-spin{animation-name:spin;animation-duration:2s;animation-timing-function:linear;animation-iteration-count:infinite}.gg-spin-wait{animation-name:spin-wait;animation-duration:10s;animation-timing-function:linear;animation-iteration-count:infinite}::-webkit-scrollbar{width:5px}::-webkit-scrollbar-thumb{background:#999}.gg-button,.gg-select,.gg-input,.gg-textarea{background-color:var(--bkg-color);color:var(--text-color);border:var(--app-standard-border);box-sizing:border-box;cursor:pointer;border-radius:3px;outline:0;margin:0;padding:0 0 0 .5rem;display:inline-block}.gg-label{background-color:var(--bkg-color);color:var(--text-color);border:none;align-items:center;margin:0;padding:0;display:flex}.gg-button,.gg-select,.gg-input,.gg-label{min-height:calc(var(--app-standard-height) / 1.5)}.gg-textarea{max-height:initial;resize:vertical;height:6rem;padding:.5rem;line-height:1.3rem}.gg-input{cursor:text}.gg-checkbox{accent-color:var(--text-color);width:1.2rem}.gg-range{accent-color:var(--text-color)}.gg-button{padding:0 .5rem}.gg-button.active{border:solid 1px var(--text-color-grad2);background-color:var(--text-color-grad2);color:var(--bkg-color)}.gg-button:disabled{color:gray;cursor:not-allowed;background-color:#d3d3d3;border:none}.gg-input:disabled,.gg-select:disabled,.gg-textarea:disabled{color:gray;cursor:not-allowed;background-color:#d3d3d3}.gg-button>img{vertical-align:middle}.gg-icon-button{color:var(--text-color);cursor:pointer;background-color:#0000;border:none;flex-direction:column;justify-content:center;align-items:center;padding:0;display:flex}.gg-icon{justify-content:center;align-items:center;display:flex}.gg-big,.gg-big-withtext{min-width:var(--app-standard-height);min-height:var(--app-standard-height);max-height:var(--app-standard-height)}.gg-big img,.gg-big-withtext img{width:calc(var(--app-standard-height) - 1.5rem);margin:0}.gg-big-withtext span{font-variant:small-caps;padding:0 1rem;font-size:.9rem}.gg-medium,.gg-medium-withtext{min-width:calc(var(--app-standard-height) / 1.2);min-height:calc(var(--app-standard-height) / 1.2);max-height:calc(var(--app-standard-height) / 1.2);flex-direction:row}.gg-medium img{width:calc(var(--app-standard-height) / 2.4);margin:0}.gg-medium-withtext img{width:calc(var(--app-standard-height) / 2.4);margin-left:.5rem}.gg-medium-withtext span{padding:0 1rem 0 .5rem;font-size:.9rem}.gg-small,.gg-small-withtext{min-width:calc(var(--app-standard-height) / 2);min-height:calc(var(--app-standard-height) / 2);max-height:calc(var(--app-standard-height) / 2);flex-direction:row}.gg-small img{width:calc(var(--app-standard-height) / 3);margin:0}.gg-small-withtext img{width:calc(var(--app-standard-height) / 3);margin-left:.5rem}.gg-small-withtext span{padding:0 .5rem 0 .3rem;font-size:.9rem}.gg-button:hover,.gg-select:hover,.gg-input:hover,.gg-textarea:hover,.gg-icon-button:hover{background-color:var(--bkg-color-grad1)}.gg-opacity{opacity:.5}.gg-opacity:hover{opacity:1;background-color:#0000}.gg-tabs{cursor:pointer;grid-auto-flow:column;padding-bottom:1rem;font-size:1rem;display:grid}.gg-tab{border:none;border-bottom:var(--app-standard-border);cursor:pointer;color:var(--text-color);background:0 0;padding:.5rem}.gg-tab.active{border-bottom:solid 1px var(--text-color)}.girafe-button-big,.girafe-button-large,.girafe-button-small,.girafe-button-tiny{color:var(--text-color);background-color:#0000;border:none;flex-direction:column;display:flex}.girafe-button-big:hover,.girafe-button-large:hover,.girafe-button-small:hover,.girafe-button-tiny:hover{background-color:var(--bkg-color-grad1);cursor:pointer}.girafe-button-big.dark,.girafe-button-large.dark,.girafe-button-small.dark,.girafe-button-tiny.dark{background-color:var(--bkg-color);filter:invert()}.girafe-button-big{width:var(--app-standard-height);height:var(--app-standard-height);align-items:center;padding:1rem}.girafe-button-big img{overflow:hidden}.girafe-button-large{flex-direction:row}.girafe-button-large img{height:2rem;margin:.3rem}.girafe-button-large span{height:2rem;margin:.3rem;line-height:2rem}.girafe-button-small{min-width:calc(var(--app-standard-height) / 2);height:calc(var(--app-standard-height) / 2);align-items:center;padding:.5rem}.girafe-button-small img{overflow:hidden}.girafe-button-small span{text-align:left;text-overflow:ellipsis;width:100%;overflow:hidden}.girafe-button-tiny{align-items:center;width:1rem;height:1rem;padding:0}.girafe-button-tiny img{overflow:hidden}.girafe-onboarding-theme{background-color:var(--bkg-color)!important;color:var(--text-color)!important}.girafe-onboarding-theme button{background-color:var(--bkg-color)!important;color:var(--text-color)!important;text-shadow:none!important}.girafe-onboarding-theme button.driver-popover-close-btn{z-index:10000}
|
|
19
|
+
</style><style>
|
|
20
|
+
:host{position:relative}girafe-map{width:100%;height:100%;position:relative}girafe-basemap{display:block;position:absolute;bottom:.5rem;left:.5rem}girafe-search{width:50%;height:2.25rem;display:block;position:absolute;top:.5rem;left:.5rem;box-shadow:0 1px 4px #0000004d}girafe-selection-window{z-index:100;width:400px;height:240px;position:absolute;bottom:1rem;right:1rem}
|
|
21
|
+
</style>
|
|
22
|
+
<girafe-map></girafe-map>`;
|
|
23
|
+
};
|
|
15
24
|
isInitialized = false;
|
|
16
25
|
constructor() {
|
|
17
26
|
super('geogirafe-api');
|
|
@@ -277,7 +286,10 @@ export default class GeoGirafeApi extends GirafeHTMLElement {
|
|
|
277
286
|
}
|
|
278
287
|
injectConfigMetaTags() {
|
|
279
288
|
const location = new URL(import.meta.url);
|
|
289
|
+
// The 2 following lines are a small hack to make the api interface work in both context
|
|
290
|
+
// (debugging in vite + production app)
|
|
280
291
|
location.pathname = location.pathname.replace('/src/api', '');
|
|
292
|
+
location.pathname = location.pathname.replace('/node_modules/.vite/deps', '');
|
|
281
293
|
const origin = `${location.origin}${location.pathname.substring(0, location.pathname.lastIndexOf('/'))}`;
|
|
282
294
|
const baseConfigUrl = `${origin}/config.json`;
|
|
283
295
|
const apiConfigUrl = `${origin}/config.api.json`;
|
package/buildtools/lib-inline.js
CHANGED
|
@@ -4,7 +4,19 @@ import path from 'path';
|
|
|
4
4
|
import { findFilesRecursive, inlineTemplate } from './tools.js';
|
|
5
5
|
|
|
6
6
|
async function main() {
|
|
7
|
-
|
|
7
|
+
// Inline template for components
|
|
8
|
+
let fileList = findFilesRecursive(path.resolve('src', 'components'), ['.ts', '.js']);
|
|
9
|
+
for (const filepath of fileList) {
|
|
10
|
+
console.info(`Integrating inline HTML for file ${filepath}`);
|
|
11
|
+
const newCodeMapObject = await inlineTemplate(filepath);
|
|
12
|
+
const newFilePath = filepath.replace('src', path.join('dist', 'lib-src-inline'));
|
|
13
|
+
|
|
14
|
+
fs.mkdirSync(path.dirname(newFilePath), { recursive: true });
|
|
15
|
+
fs.writeFileSync(newFilePath, newCodeMapObject.code, 'utf-8');
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
// Inline template for the API
|
|
19
|
+
fileList = findFilesRecursive(path.resolve('src', 'api'), ['.ts', '.js']);
|
|
8
20
|
for (const filepath of fileList) {
|
|
9
21
|
console.info(`Integrating inline HTML for file ${filepath}`);
|
|
10
22
|
const newCodeMapObject = await inlineTemplate(filepath);
|
package/buildtools/tools.js
CHANGED
|
@@ -57,9 +57,12 @@ export function deleteFiles(patterns) {
|
|
|
57
57
|
}
|
|
58
58
|
}
|
|
59
59
|
|
|
60
|
-
export function copy(filename, sourceDir, targetDir) {
|
|
60
|
+
export function copy(filename, sourceDir, targetDir, targetFilename = null) {
|
|
61
|
+
if (targetFilename === null) {
|
|
62
|
+
targetFilename = filename;
|
|
63
|
+
}
|
|
61
64
|
const source = path.join(sourceDir, filename);
|
|
62
|
-
const target = path.join(targetDir,
|
|
65
|
+
const target = path.join(targetDir, targetFilename);
|
|
63
66
|
|
|
64
67
|
if (fs.existsSync(source)) {
|
|
65
68
|
// First create destination directory
|
|
@@ -111,8 +114,8 @@ async function getHtmlCode(currentFilename, relativeHtmlPath, styleCode) {
|
|
|
111
114
|
}
|
|
112
115
|
});
|
|
113
116
|
htmlCode = `
|
|
114
|
-
templateUrl = null;
|
|
115
|
-
styleUrls = null;
|
|
117
|
+
protected override templateUrl: string | null = null;
|
|
118
|
+
protected override styleUrls: string[] | null = null;
|
|
116
119
|
template = () => { return uHtml\`${styleCode}\n${htmlCode}\`; }`;
|
|
117
120
|
return htmlCode;
|
|
118
121
|
} catch (error) {
|
|
@@ -167,9 +170,9 @@ function isStringCommented(line) {
|
|
|
167
170
|
}
|
|
168
171
|
|
|
169
172
|
// Regex definitions
|
|
170
|
-
export const styleRegex = /(?:override\s+)?styleUrl *= *['"](.*)['"] *;?/g;
|
|
171
|
-
export const stylesRegex = /(?:override\s+)?styleUrls *= *\[([\s\S]*?)\] *;?/gs;
|
|
172
|
-
export const htmlRegex = /(?:override\s+)?templateUrl *= *['"](.*)['"] *;?/g;
|
|
173
|
+
export const styleRegex = /(?:(?:public|private|protected)\s+)?(?:override\s+)?styleUrl *= *['"](.*)['"] *;?/g;
|
|
174
|
+
export const stylesRegex = /(?:(?:public|private|protected)\s+)?(?:override\s+)?styleUrls *= *\[([\s\S]*?)\] *;?/gs;
|
|
175
|
+
export const htmlRegex = /(?:(?:public|private|protected)\s+)?(?:override\s+)?templateUrl *= *['"](.*)['"] *;?/g;
|
|
173
176
|
|
|
174
177
|
export async function inlineTemplate(filename) {
|
|
175
178
|
// Read the file
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import GirafeHTMLElement from '../../base/GirafeHTMLElement.js';
|
|
2
2
|
import IGirafePanel from '../../tools/state/igirafepanel.js';
|
|
3
3
|
declare class AboutComponent extends GirafeHTMLElement implements IGirafePanel {
|
|
4
|
-
templateUrl: null;
|
|
5
|
-
styleUrls: null;
|
|
4
|
+
protected templateUrl: string | null;
|
|
5
|
+
protected styleUrls: string[] | null;
|
|
6
6
|
template: () => import("uhtml").Hole;
|
|
7
7
|
isPanelVisible: boolean;
|
|
8
8
|
panelTitle: string;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import GirafeHTMLElement from '../../base/GirafeHTMLElement.js';
|
|
2
2
|
export default class AlignNorthButtonMobile extends GirafeHTMLElement {
|
|
3
|
-
templateUrl: null;
|
|
4
|
-
styleUrls: null;
|
|
3
|
+
protected templateUrl: string | null;
|
|
4
|
+
protected styleUrls: string[] | null;
|
|
5
5
|
template: () => import("uhtml").Hole;
|
|
6
6
|
constructor();
|
|
7
7
|
protected connectedCallback(): void;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import GirafeHTMLElement from '../../base/GirafeHTMLElement.js';
|
|
2
2
|
export default class OauthComponent extends GirafeHTMLElement {
|
|
3
|
-
templateUrl: null;
|
|
4
|
-
styleUrls: null;
|
|
3
|
+
protected templateUrl: string | null;
|
|
4
|
+
protected styleUrls: string[] | null;
|
|
5
5
|
template: () => import("uhtml").Hole;
|
|
6
6
|
userIconUrl?: string;
|
|
7
7
|
constructor(name?: string);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import OauthComponent from '../auth/component.js';
|
|
2
2
|
export default class MobileOauthComponent extends OauthComponent {
|
|
3
|
-
templateUrl: null;
|
|
4
|
-
styleUrls: null;
|
|
3
|
+
protected templateUrl: string | null;
|
|
4
|
+
protected styleUrls: string[] | null;
|
|
5
5
|
template: () => import("uhtml").Hole;
|
|
6
6
|
constructor();
|
|
7
7
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import GirafeHTMLElement from '../../base/GirafeHTMLElement.js';
|
|
2
2
|
import Basemap from '../../models/basemaps/basemap.js';
|
|
3
3
|
declare class BasemapComponent extends GirafeHTMLElement {
|
|
4
|
-
templateUrl: null;
|
|
5
|
-
styleUrls: null;
|
|
4
|
+
protected templateUrl: string | null;
|
|
5
|
+
protected styleUrls: string[] | null;
|
|
6
6
|
template: () => import("uhtml").Hole;
|
|
7
7
|
constructor();
|
|
8
8
|
changeBasemap(basemap: Basemap): void;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import GirafeHTMLElement from '../../base/GirafeHTMLElement.js';
|
|
2
2
|
import IGirafePanel from '../../tools/state/igirafepanel.js';
|
|
3
3
|
declare class ContactComponent extends GirafeHTMLElement implements IGirafePanel {
|
|
4
|
-
templateUrl: null;
|
|
5
|
-
styleUrls: null;
|
|
4
|
+
protected templateUrl: string | null;
|
|
5
|
+
protected styleUrls: string[] | null;
|
|
6
6
|
template: () => import("uhtml").Hole;
|
|
7
7
|
isPanelVisible: boolean;
|
|
8
8
|
panelTitle: string;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import GirafeHTMLElement from '../../../base/GirafeHTMLElement.js';
|
|
2
2
|
declare class MapCustomContextMenuComponent extends GirafeHTMLElement {
|
|
3
|
-
templateUrl: null;
|
|
4
|
-
styleUrls: null;
|
|
3
|
+
protected templateUrl: string | null;
|
|
4
|
+
protected styleUrls: string[] | null;
|
|
5
5
|
template: () => import("uhtml").Hole;
|
|
6
6
|
private get map();
|
|
7
7
|
private static contextMenuOverlay;
|
|
@@ -3,8 +3,8 @@ import { printCoordinate } from '../../../tools/geometrytools.js';
|
|
|
3
3
|
import { MapContextMenuState } from './contextmenustate.js';
|
|
4
4
|
import MapContextMenuManager from './contextmenumanager.js';
|
|
5
5
|
declare class MapDefaultContextMenuComponent extends GirafeHTMLElement {
|
|
6
|
-
templateUrl: null;
|
|
7
|
-
styleUrls: null;
|
|
6
|
+
protected templateUrl: string | null;
|
|
7
|
+
protected styleUrls: string[] | null;
|
|
8
8
|
template: () => import("uhtml").Hole;
|
|
9
9
|
private get map();
|
|
10
10
|
private readonly eventsCallbacks;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import GirafeHTMLElement from '../../base/GirafeHTMLElement.js';
|
|
2
2
|
declare class CoordinateComponent extends GirafeHTMLElement {
|
|
3
3
|
#private;
|
|
4
|
-
templateUrl: null;
|
|
5
|
-
styleUrls: null;
|
|
4
|
+
protected templateUrl: string | null;
|
|
5
|
+
protected styleUrls: string[] | null;
|
|
6
6
|
template: () => import("uhtml").Hole;
|
|
7
7
|
east: string | null;
|
|
8
8
|
north: string | null;
|
|
@@ -11,8 +11,8 @@ import { Draw, Modify } from 'ol/interaction.js';
|
|
|
11
11
|
import OL3Parser from 'jsts/org/locationtech/jts/io/OL3Parser.js';
|
|
12
12
|
import IGirafePanel from '../../../tools/state/igirafepanel.js';
|
|
13
13
|
declare class CrossSectionSettingsComponent extends GirafeHTMLElement implements IGirafePanel {
|
|
14
|
-
templateUrl: null;
|
|
15
|
-
styleUrls: null;
|
|
14
|
+
protected templateUrl: string | null;
|
|
15
|
+
protected styleUrls: string[] | null;
|
|
16
16
|
template: () => import("uhtml").Hole;
|
|
17
17
|
crossSectionState: CrossSectionState;
|
|
18
18
|
private readonly eventsCallbacks;
|
|
@@ -4,8 +4,8 @@ import { CrossSectionState } from './../crosssectionstate.js';
|
|
|
4
4
|
import { Scatterplot } from '../scatterplot.js';
|
|
5
5
|
import { PytreeManager } from '../pytreemanager.js';
|
|
6
6
|
declare class CrossSectionViewComponent extends GirafeResizableElement {
|
|
7
|
-
templateUrl: null;
|
|
8
|
-
styleUrls: null;
|
|
7
|
+
protected templateUrl: string | null;
|
|
8
|
+
protected styleUrls: string[] | null;
|
|
9
9
|
template: () => import("uhtml").Hole;
|
|
10
10
|
crossSectionState: CrossSectionState;
|
|
11
11
|
private readonly eventsCallbacks;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import GirafeHTMLElement from '../../base/GirafeHTMLElement.js';
|
|
2
2
|
export default class DisplayMenuButtonMobile extends GirafeHTMLElement {
|
|
3
|
-
templateUrl: null;
|
|
4
|
-
styleUrls: null;
|
|
3
|
+
protected templateUrl: string | null;
|
|
4
|
+
protected styleUrls: string[] | null;
|
|
5
5
|
template: () => import("uhtml").Hole;
|
|
6
6
|
constructor();
|
|
7
7
|
protected connectedCallback(): void;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import GirafeHTMLElement from '../../base/GirafeHTMLElement.js';
|
|
2
2
|
export default class DisplaySelectorButtonMobile extends GirafeHTMLElement {
|
|
3
|
-
templateUrl: null;
|
|
4
|
-
styleUrls: null;
|
|
3
|
+
protected templateUrl: string | null;
|
|
4
|
+
protected styleUrls: string[] | null;
|
|
5
5
|
template: () => import("uhtml").Hole;
|
|
6
6
|
constructor();
|
|
7
7
|
protected connectedCallback(): void;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import DrawingComponent from './component.js';
|
|
2
2
|
export default class DrawingComponentMobile extends DrawingComponent {
|
|
3
|
-
templateUrl: null;
|
|
4
|
-
styleUrls: null;
|
|
3
|
+
protected templateUrl: string | null;
|
|
4
|
+
protected styleUrls: string[] | null;
|
|
5
5
|
template: () => import("uhtml").Hole;
|
|
6
6
|
constructor();
|
|
7
7
|
protected connectedCallback(): void;
|
|
@@ -7,8 +7,8 @@ import GirafeColorPicker from '../../tools/utils/girafecolorpicker.js';
|
|
|
7
7
|
import LayerDrawing from '../../models/layers/layerdrawing.js';
|
|
8
8
|
import IGirafePanel from '../../tools/state/igirafepanel.js';
|
|
9
9
|
export default class DrawingComponent extends GirafeHTMLElement implements IGirafePanel {
|
|
10
|
-
templateUrl: null;
|
|
11
|
-
styleUrls: null;
|
|
10
|
+
protected templateUrl: string | null;
|
|
11
|
+
protected styleUrls: string[] | null;
|
|
12
12
|
template: () => import("uhtml").Hole;
|
|
13
13
|
isPanelVisible: boolean;
|
|
14
14
|
panelTitle: string;
|
|
@@ -10,8 +10,8 @@ export type DimensionUnit = {
|
|
|
10
10
|
};
|
|
11
11
|
declare class FixedDimensionComponent extends GirafeHTMLElement {
|
|
12
12
|
static readonly observedAttributes: string[];
|
|
13
|
-
templateUrl: null;
|
|
14
|
-
styleUrls: null;
|
|
13
|
+
protected templateUrl: string | null;
|
|
14
|
+
protected styleUrls: string[] | null;
|
|
15
15
|
template: () => import("uhtml").Hole;
|
|
16
16
|
checkedIcon: string;
|
|
17
17
|
notCheckedIcon: string;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import GirafeHTMLElement from '../../base/GirafeHTMLElement.js';
|
|
2
2
|
export default class DrawingContainerMobile extends GirafeHTMLElement {
|
|
3
|
-
templateUrl: null;
|
|
4
|
-
styleUrls: null;
|
|
3
|
+
protected templateUrl: string | null;
|
|
4
|
+
protected styleUrls: string[] | null;
|
|
5
5
|
template: () => import("uhtml").Hole;
|
|
6
6
|
constructor();
|
|
7
7
|
protected connectedCallback(): void;
|
|
@@ -3,8 +3,8 @@ import EditFromComponent from './editform/component.js';
|
|
|
3
3
|
import { OapifLayer } from '../../models/serverogcapifeatures.js';
|
|
4
4
|
import IGirafePanel from '../../tools/state/igirafepanel.js';
|
|
5
5
|
export default class EditComponent extends GirafeHTMLElement implements IGirafePanel {
|
|
6
|
-
templateUrl: null;
|
|
7
|
-
styleUrls: null;
|
|
6
|
+
protected templateUrl: string | null;
|
|
7
|
+
protected styleUrls: string[] | null;
|
|
8
8
|
template: () => import("uhtml").Hole;
|
|
9
9
|
isPanelVisible: boolean;
|
|
10
10
|
panelTitle: string;
|
|
@@ -2,8 +2,8 @@ import GirafeHTMLElement from '../../../base/GirafeHTMLElement.js';
|
|
|
2
2
|
import Feature from 'ol/Feature.js';
|
|
3
3
|
import OgcApiFeaturesSchema from '../../../tools/ogcapi/ogcapifeaturesschema.js';
|
|
4
4
|
export default class EditFromComponent extends GirafeHTMLElement {
|
|
5
|
-
templateUrl: null;
|
|
6
|
-
styleUrls: null;
|
|
5
|
+
protected templateUrl: string | null;
|
|
6
|
+
protected styleUrls: string[] | null;
|
|
7
7
|
template: () => import("uhtml").Hole;
|
|
8
8
|
featureSchema?: OgcApiFeaturesSchema;
|
|
9
9
|
feature?: Feature;
|
|
@@ -10,8 +10,8 @@ type PredefinedSource = {
|
|
|
10
10
|
url: string;
|
|
11
11
|
};
|
|
12
12
|
declare class ExternalLayersComponent extends GirafeHTMLElement implements IGirafePanel {
|
|
13
|
-
templateUrl: null;
|
|
14
|
-
styleUrls: null;
|
|
13
|
+
protected templateUrl: string | null;
|
|
14
|
+
protected styleUrls: string[] | null;
|
|
15
15
|
template: () => import("uhtml").Hole;
|
|
16
16
|
isPanelVisible: boolean;
|
|
17
17
|
panelTitle: string;
|
|
@@ -2,8 +2,8 @@ import Geolocation from 'ol/Geolocation.js';
|
|
|
2
2
|
import GirafeHTMLElement from '../../base/GirafeHTMLElement.js';
|
|
3
3
|
type GeolocationStatus = 'off' | 'error' | 'searching' | 'tracking' | 'headlock';
|
|
4
4
|
export default class GeolocationMobile extends GirafeHTMLElement {
|
|
5
|
-
templateUrl: null;
|
|
6
|
-
styleUrls: null;
|
|
5
|
+
protected templateUrl: string | null;
|
|
6
|
+
protected styleUrls: string[] | null;
|
|
7
7
|
template: () => import("uhtml").Hole;
|
|
8
8
|
geolocation: Geolocation | null;
|
|
9
9
|
status: GeolocationStatus;
|
|
@@ -3,8 +3,8 @@ import { Feature } from 'ol';
|
|
|
3
3
|
import { Callback } from '../../tools/state/statemanager.js';
|
|
4
4
|
declare class GetDirectionsArtifact extends GirafeHTMLElement {
|
|
5
5
|
static readonly observedAttributes: string[];
|
|
6
|
-
templateUrl: null;
|
|
7
|
-
styleUrls: null;
|
|
6
|
+
protected templateUrl: string | null;
|
|
7
|
+
protected styleUrls: string[] | null;
|
|
8
8
|
template: () => import("uhtml").Hole;
|
|
9
9
|
feature?: Feature;
|
|
10
10
|
directionsAvailable: boolean;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import GirafeHTMLElement from '../../base/GirafeHTMLElement.js';
|
|
2
2
|
declare class HelpComponent extends GirafeHTMLElement {
|
|
3
|
-
templateUrl: null;
|
|
4
|
-
styleUrls: null;
|
|
3
|
+
protected templateUrl: string | null;
|
|
4
|
+
protected styleUrls: string[] | null;
|
|
5
5
|
template: () => import("uhtml").Hole;
|
|
6
6
|
content: HTMLElement;
|
|
7
7
|
themes: HTMLElement;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import GirafeHTMLElement from '../../base/GirafeHTMLElement.js';
|
|
2
2
|
import { InfoBoxContent } from '../../tools/state/state.js';
|
|
3
3
|
declare class InfoboxComponent extends GirafeHTMLElement {
|
|
4
|
-
templateUrl: null;
|
|
5
|
-
styleUrls: null;
|
|
4
|
+
protected templateUrl: string | null;
|
|
5
|
+
protected styleUrls: string[] | null;
|
|
6
6
|
template: () => import("uhtml").Hole;
|
|
7
7
|
infos: InfoBoxContent[];
|
|
8
8
|
urlRegExp: RegExp;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import GirafeDraggableElement from '../../base/GirafeDraggableElement.js';
|
|
2
2
|
declare class InfoWindowComponent extends GirafeDraggableElement {
|
|
3
|
-
templateUrl: null;
|
|
4
|
-
styleUrls: null;
|
|
3
|
+
protected templateUrl: string | null;
|
|
4
|
+
protected styleUrls: string[] | null;
|
|
5
5
|
template: () => import("uhtml").Hole;
|
|
6
6
|
visible: boolean;
|
|
7
7
|
private resizeWindow;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import GirafeHTMLElement from '../../base/GirafeHTMLElement.js';
|
|
2
2
|
import IGirafePanel from '../../tools/state/igirafepanel.js';
|
|
3
3
|
declare class LayoutComponent extends GirafeHTMLElement implements IGirafePanel {
|
|
4
|
-
templateUrl: null;
|
|
5
|
-
styleUrls: null;
|
|
4
|
+
protected templateUrl: string | null;
|
|
5
|
+
protected styleUrls: string[] | null;
|
|
6
6
|
template: () => import("uhtml").Hole;
|
|
7
7
|
isPanelVisible: boolean;
|
|
8
8
|
panelTitle: string;
|
|
@@ -15,8 +15,8 @@ import IGirafePanel from '../../tools/state/igirafepanel.js';
|
|
|
15
15
|
* </girafe-lr-panel>
|
|
16
16
|
*/
|
|
17
17
|
declare class LRPanelComponent extends GirafeResizableElement {
|
|
18
|
-
templateUrl: null;
|
|
19
|
-
styleUrls: null;
|
|
18
|
+
protected templateUrl: string | null;
|
|
19
|
+
protected styleUrls: string[] | null;
|
|
20
20
|
template: () => import("uhtml").Hole;
|
|
21
21
|
private stateToggleManager?;
|
|
22
22
|
panelTitle: string;
|
|
@@ -29,8 +29,8 @@ declare global {
|
|
|
29
29
|
}
|
|
30
30
|
}
|
|
31
31
|
export default class MapComponent extends GirafeHTMLElement {
|
|
32
|
-
templateUrl: null;
|
|
33
|
-
styleUrls: null;
|
|
32
|
+
protected templateUrl: string | null;
|
|
33
|
+
protected styleUrls: string[] | null;
|
|
34
34
|
template: () => import("uhtml").Hole;
|
|
35
35
|
olMap: Map;
|
|
36
36
|
mapTarget: HTMLDivElement;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import GirafeHTMLElement from '../../base/GirafeHTMLElement.js';
|
|
2
2
|
export default class MenuMobile3dButton extends GirafeHTMLElement {
|
|
3
|
-
templateUrl: null;
|
|
4
|
-
styleUrls: null;
|
|
3
|
+
protected templateUrl: string | null;
|
|
4
|
+
protected styleUrls: string[] | null;
|
|
5
5
|
template: () => import("uhtml").Hole;
|
|
6
6
|
icon: string;
|
|
7
7
|
label: string;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import GirafeHTMLElement from '../../base/GirafeHTMLElement.js';
|
|
2
2
|
export default class MenuMobileDrawingButton extends GirafeHTMLElement {
|
|
3
|
-
templateUrl: null;
|
|
4
|
-
styleUrls: null;
|
|
3
|
+
protected templateUrl: string | null;
|
|
4
|
+
protected styleUrls: string[] | null;
|
|
5
5
|
template: () => import("uhtml").Hole;
|
|
6
6
|
icon: string;
|
|
7
7
|
label: string;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import GirafeHTMLElement from '../../base/GirafeHTMLElement.js';
|
|
2
2
|
export default class MenuMobileOfflineButton extends GirafeHTMLElement {
|
|
3
|
-
templateUrl: null;
|
|
4
|
-
styleUrls: null;
|
|
3
|
+
protected templateUrl: string | null;
|
|
4
|
+
protected styleUrls: string[] | null;
|
|
5
5
|
template: () => import("uhtml").Hole;
|
|
6
6
|
icon: string;
|
|
7
7
|
label: string;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import GirafeHTMLElement from '../../base/GirafeHTMLElement.js';
|
|
2
2
|
export default class MenuMobile extends GirafeHTMLElement {
|
|
3
|
-
templateUrl: null;
|
|
4
|
-
styleUrls: null;
|
|
3
|
+
protected templateUrl: string | null;
|
|
4
|
+
protected styleUrls: string[] | null;
|
|
5
5
|
template: () => import("uhtml").Hole;
|
|
6
6
|
constructor();
|
|
7
7
|
protected connectedCallback(): void;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import GirafeHTMLElement from '../../base/GirafeHTMLElement.js';
|
|
2
2
|
type OpenDirection = 'bottom' | 'bottom-left' | 'up' | 'left';
|
|
3
3
|
declare class MenuButtonComponent extends GirafeHTMLElement {
|
|
4
|
-
templateUrl: null;
|
|
5
|
-
styleUrls: null;
|
|
4
|
+
protected templateUrl: string | null;
|
|
5
|
+
protected styleUrls: string[] | null;
|
|
6
6
|
template: () => import("uhtml").Hole;
|
|
7
7
|
open: boolean;
|
|
8
8
|
openDirection: OpenDirection;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import GirafeHTMLElement from '../../base/GirafeHTMLElement.js';
|
|
2
2
|
type ModalType = 'alert' | 'confirm' | 'prompt';
|
|
3
3
|
declare class ModalsComponent extends GirafeHTMLElement {
|
|
4
|
-
templateUrl: null;
|
|
5
|
-
styleUrls: null;
|
|
4
|
+
protected templateUrl: string | null;
|
|
5
|
+
protected styleUrls: string[] | null;
|
|
6
6
|
template: () => import("uhtml").Hole;
|
|
7
7
|
visible: boolean;
|
|
8
8
|
boxType?: ModalType;
|
|
@@ -2,8 +2,8 @@ import GirafeHTMLElement from '../../base/GirafeHTMLElement.js';
|
|
|
2
2
|
import MapPosition from '../../tools/state/mapposition.js';
|
|
3
3
|
import { Bookmark } from './Bookmark.js';
|
|
4
4
|
declare class NavigationComponent extends GirafeHTMLElement {
|
|
5
|
-
templateUrl: null;
|
|
6
|
-
styleUrls: null;
|
|
5
|
+
protected templateUrl: string | null;
|
|
6
|
+
protected styleUrls: string[] | null;
|
|
7
7
|
template: () => import("uhtml").Hole;
|
|
8
8
|
private readonly positionHistory;
|
|
9
9
|
private currentPositionIndex;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import GirafeHTMLElement from '../../../base/GirafeHTMLElement.js';
|
|
2
2
|
declare class NewsButtonComponent extends GirafeHTMLElement {
|
|
3
|
-
templateUrl: null;
|
|
4
|
-
styleUrls: null;
|
|
3
|
+
protected templateUrl: string | null;
|
|
4
|
+
protected styleUrls: string[] | null;
|
|
5
5
|
template: () => import("uhtml").Hole;
|
|
6
6
|
visible: boolean;
|
|
7
7
|
warn: boolean;
|
|
@@ -2,8 +2,8 @@ import type { FeedEntry } from './newsfeedutils.js';
|
|
|
2
2
|
import GirafeHTMLElement from '../../../base/GirafeHTMLElement.js';
|
|
3
3
|
import IGirafePanel from '../../../tools/state/igirafepanel.js';
|
|
4
4
|
declare class NewsPanelComponent extends GirafeHTMLElement implements IGirafePanel {
|
|
5
|
-
templateUrl: null;
|
|
6
|
-
styleUrls: null;
|
|
5
|
+
protected templateUrl: string | null;
|
|
6
|
+
protected styleUrls: string[] | null;
|
|
7
7
|
template: () => import("uhtml").Hole;
|
|
8
8
|
isPanelVisible: boolean;
|
|
9
9
|
panelTitle: string;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import GirafeHTMLElement from '../../base/GirafeHTMLElement.js';
|
|
2
2
|
declare class OfflineComponent extends GirafeHTMLElement {
|
|
3
|
-
templateUrl: null;
|
|
4
|
-
styleUrls: null;
|
|
3
|
+
protected templateUrl: string | null;
|
|
4
|
+
protected styleUrls: string[] | null;
|
|
5
5
|
template: () => import("uhtml").Hole;
|
|
6
6
|
protected downloadInProgress: boolean;
|
|
7
7
|
protected downloadProgressValue: number;
|
|
@@ -8,8 +8,8 @@ import IGirafePanel from '../../tools/state/igirafepanel.js';
|
|
|
8
8
|
* Have actions on the print mask and on the map (rotation).
|
|
9
9
|
*/
|
|
10
10
|
declare class PrintComponent extends GirafeHTMLElement implements IGirafePanel {
|
|
11
|
-
templateUrl: null;
|
|
12
|
-
styleUrls: null;
|
|
11
|
+
protected templateUrl: string | null;
|
|
12
|
+
protected styleUrls: string[] | null;
|
|
13
13
|
template: () => import("uhtml").Hole;
|
|
14
14
|
isPanelVisible: boolean;
|
|
15
15
|
panelTitle: string;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import GirafeHTMLElement from '../../base/GirafeHTMLElement.js';
|
|
2
2
|
declare class PrototypeBannerComponent extends GirafeHTMLElement {
|
|
3
|
-
templateUrl: null;
|
|
4
|
-
styleUrls: null;
|
|
3
|
+
protected templateUrl: string | null;
|
|
4
|
+
protected styleUrls: string[] | null;
|
|
5
5
|
template: () => import("uhtml").Hole;
|
|
6
6
|
constructor();
|
|
7
7
|
protected connectedCallback(): void;
|
|
@@ -5,8 +5,8 @@ import WfsFilter, { WfsOperator } from '../../tools/wfs/wfsfilter.js';
|
|
|
5
5
|
import IGirafeContext from '../../tools/context/icontext.js';
|
|
6
6
|
import ColumnAliasHelper from '../../tools/utils/aliases.js';
|
|
7
7
|
declare class QueryBuilderComponent extends GirafeHTMLElement {
|
|
8
|
-
templateUrl: null;
|
|
9
|
-
styleUrls: null;
|
|
8
|
+
protected templateUrl: string | null;
|
|
9
|
+
protected styleUrls: string[] | null;
|
|
10
10
|
template: () => import("uhtml").Hole;
|
|
11
11
|
loading: boolean;
|
|
12
12
|
deactivated: boolean;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import GirafeHTMLElement from '../../base/GirafeHTMLElement.js';
|
|
2
2
|
declare class ScaleComponent extends GirafeHTMLElement {
|
|
3
|
-
templateUrl: null;
|
|
4
|
-
styleUrls: null;
|
|
3
|
+
protected templateUrl: string | null;
|
|
4
|
+
protected styleUrls: string[] | null;
|
|
5
5
|
template: () => import("uhtml").Hole;
|
|
6
6
|
constructor();
|
|
7
7
|
registerEvents(): void;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import Feature from 'ol/Feature.js';
|
|
2
2
|
import GirafeHTMLElement from '../../base/GirafeHTMLElement.js';
|
|
3
3
|
declare class SearchComponent extends GirafeHTMLElement {
|
|
4
|
-
templateUrl: null;
|
|
5
|
-
styleUrls: null;
|
|
4
|
+
protected templateUrl: string | null;
|
|
5
|
+
protected styleUrls: string[] | null;
|
|
6
6
|
template: () => import("uhtml").Hole;
|
|
7
7
|
searchIcon: string;
|
|
8
8
|
paintbrushIcon: string;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import SearchComponent from '../search/component.js';
|
|
2
2
|
declare class MobileSearchComponent extends SearchComponent {
|
|
3
|
-
templateUrl: null;
|
|
4
|
-
styleUrls: null;
|
|
3
|
+
protected templateUrl: string | null;
|
|
4
|
+
protected styleUrls: string[] | null;
|
|
5
5
|
template: () => import("uhtml").Hole;
|
|
6
6
|
}
|
|
7
7
|
export default MobileSearchComponent;
|
|
@@ -7,8 +7,8 @@ import { type TabHeader } from './tools/selectiontabulatormanager.js';
|
|
|
7
7
|
* @extends GirafeResizableElement
|
|
8
8
|
*/
|
|
9
9
|
declare class SelectionGridComponent extends GirafeResizableElement {
|
|
10
|
-
templateUrl: null;
|
|
11
|
-
styleUrls: null;
|
|
10
|
+
protected templateUrl: string | null;
|
|
11
|
+
protected styleUrls: string[] | null;
|
|
12
12
|
template: () => import("uhtml").Hole;
|
|
13
13
|
private readonly eventsCallbacks;
|
|
14
14
|
private selectionTabulatorManager;
|
|
@@ -5,8 +5,8 @@ import GirafeHTMLElement from '../../base/GirafeHTMLElement.js';
|
|
|
5
5
|
*/
|
|
6
6
|
export declare function getLinkFriendlyString(inputStr: string): string;
|
|
7
7
|
export default class SelectionPanelMobile extends GirafeHTMLElement {
|
|
8
|
-
templateUrl: null;
|
|
9
|
-
styleUrls: null;
|
|
8
|
+
protected templateUrl: string | null;
|
|
9
|
+
protected styleUrls: string[] | null;
|
|
10
10
|
template: () => import("uhtml").Hole;
|
|
11
11
|
currentIndex: number;
|
|
12
12
|
private readonly debounceOnAdjustVisible;
|
|
@@ -6,8 +6,8 @@ import { Style } from 'ol/style.js';
|
|
|
6
6
|
import { FeatureLike } from 'ol/Feature.js';
|
|
7
7
|
import IGirafePanel from '../../tools/state/igirafepanel.js';
|
|
8
8
|
export default class SelectionToolComponent extends GirafeHTMLElement implements IGirafePanel {
|
|
9
|
-
templateUrl: null;
|
|
10
|
-
styleUrls: null;
|
|
9
|
+
protected templateUrl: string | null;
|
|
10
|
+
protected styleUrls: string[] | null;
|
|
11
11
|
template: () => import("uhtml").Hole;
|
|
12
12
|
isPanelVisible: boolean;
|
|
13
13
|
panelTitle: string;
|
|
@@ -19,8 +19,8 @@ interface Layer {
|
|
|
19
19
|
* To be visible, it has to be the defined selectionComponent.
|
|
20
20
|
*/
|
|
21
21
|
declare class SelectionWindowComponent extends GirafeDraggableElement {
|
|
22
|
-
templateUrl: null;
|
|
23
|
-
styleUrls: null;
|
|
22
|
+
protected templateUrl: string | null;
|
|
23
|
+
protected styleUrls: string[] | null;
|
|
24
24
|
template: () => import("uhtml").Hole;
|
|
25
25
|
private readonly eventsCallbacks;
|
|
26
26
|
private isVisibleComponentSetup;
|
|
@@ -2,8 +2,8 @@ import GirafeHTMLElement from '../../base/GirafeHTMLElement.js';
|
|
|
2
2
|
import { ShareState } from './sharestate.js';
|
|
3
3
|
import IGirafePanel from '../../tools/state/igirafepanel.js';
|
|
4
4
|
declare class ShareComponent extends GirafeHTMLElement implements IGirafePanel {
|
|
5
|
-
templateUrl: null;
|
|
6
|
-
styleUrls: null;
|
|
5
|
+
protected templateUrl: string | null;
|
|
6
|
+
protected styleUrls: string[] | null;
|
|
7
7
|
template: () => import("uhtml").Hole;
|
|
8
8
|
isPanelVisible: boolean;
|
|
9
9
|
panelTitle: string;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import GirafeHTMLElement from '../../base/GirafeHTMLElement.js';
|
|
2
2
|
export default class SwipeUpPanelMobile extends GirafeHTMLElement {
|
|
3
|
-
templateUrl: null;
|
|
4
|
-
styleUrls: null;
|
|
3
|
+
protected templateUrl: string | null;
|
|
4
|
+
protected styleUrls: string[] | null;
|
|
5
5
|
template: () => import("uhtml").Hole;
|
|
6
6
|
private container;
|
|
7
7
|
private middleContainer;
|
|
@@ -4,8 +4,8 @@ import CustomTheme from '../../models/customtheme.js';
|
|
|
4
4
|
declare const ThemeTypes: readonly ["all", "favorites", "custom"];
|
|
5
5
|
type ThemeType = (typeof ThemeTypes)[number];
|
|
6
6
|
declare class ThemeComponent extends GirafeHTMLElement {
|
|
7
|
-
templateUrl: null;
|
|
8
|
-
styleUrls: null;
|
|
7
|
+
protected templateUrl: string | null;
|
|
8
|
+
protected styleUrls: string[] | null;
|
|
9
9
|
template: () => import("uhtml").Hole;
|
|
10
10
|
newIcon: string;
|
|
11
11
|
menuOpen: boolean;
|
|
@@ -2,8 +2,8 @@ import GirafeHTMLElement from '../../../base/GirafeHTMLElement.js';
|
|
|
2
2
|
import BaseLayer from '../../../models/layers/baselayer.js';
|
|
3
3
|
import GroupLayer from '../../../models/layers/grouplayer.js';
|
|
4
4
|
declare class MobileGroupElementComponent extends GirafeHTMLElement {
|
|
5
|
-
templateUrl: null;
|
|
6
|
-
styleUrls: null;
|
|
5
|
+
protected templateUrl: string | null;
|
|
6
|
+
protected styleUrls: string[] | null;
|
|
7
7
|
template: () => import("uhtml").Hole;
|
|
8
8
|
group?: GroupLayer;
|
|
9
9
|
/**
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import GirafeHTMLElement from '../../../base/GirafeHTMLElement.js';
|
|
2
2
|
import Layer from '../../../models/layers/layer.js';
|
|
3
3
|
declare class MobileLayerElementComponent extends GirafeHTMLElement {
|
|
4
|
-
templateUrl: null;
|
|
5
|
-
styleUrls: null;
|
|
4
|
+
protected templateUrl: string | null;
|
|
5
|
+
protected styleUrls: string[] | null;
|
|
6
6
|
template: () => import("uhtml").Hole;
|
|
7
7
|
protected layer?: Layer;
|
|
8
8
|
static readonly observedAttributes: string[];
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import WmsLegendHelper from '../../../tools/wms/wmslegendhelper.js';
|
|
2
2
|
import MobileLayerElementComponent from '../layer/component.js';
|
|
3
3
|
declare class MobileSelectedLayerElementComponent extends MobileLayerElementComponent {
|
|
4
|
-
templateUrl: null;
|
|
5
|
-
styleUrls: null;
|
|
4
|
+
protected templateUrl: string | null;
|
|
5
|
+
protected styleUrls: string[] | null;
|
|
6
6
|
template: () => import("uhtml").Hole;
|
|
7
7
|
iconUrl: string | null;
|
|
8
8
|
legendUrls: Record<string, string>;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import GirafeHTMLElement from '../../../base/GirafeHTMLElement.js';
|
|
2
2
|
import ThemeLayer from '../../../models/layers/themelayer.js';
|
|
3
3
|
declare class MobileThemeElementComponent extends GirafeHTMLElement {
|
|
4
|
-
templateUrl: null;
|
|
5
|
-
styleUrls: null;
|
|
4
|
+
protected templateUrl: string | null;
|
|
5
|
+
protected styleUrls: string[] | null;
|
|
6
6
|
template: () => import("uhtml").Hole;
|
|
7
7
|
theme?: ThemeLayer;
|
|
8
8
|
static get observedAttributes(): string[];
|
|
@@ -4,8 +4,8 @@ import GroupLayer from '../../../models/layers/grouplayer.js';
|
|
|
4
4
|
import Layer from '../../../models/layers/layer.js';
|
|
5
5
|
import ThemeLayer from '../../../models/layers/themelayer.js';
|
|
6
6
|
export default class MobileThemeComponent extends GirafeHTMLElement {
|
|
7
|
-
templateUrl: null;
|
|
8
|
-
styleUrls: null;
|
|
7
|
+
protected templateUrl: string | null;
|
|
8
|
+
protected styleUrls: string[] | null;
|
|
9
9
|
template: () => import("uhtml").Hole;
|
|
10
10
|
activeTab: 'themes' | 'basemaps' | 'selected';
|
|
11
11
|
activeLayersByGroup: Map<GroupLayer, Layer[]>;
|
|
@@ -5,8 +5,8 @@ import TimeSliderComponent from './timeslider/component.js';
|
|
|
5
5
|
import LayerTimeFormatter from '../../tools/time/layertimeformatter.js';
|
|
6
6
|
import ITimeOptions, { TimeMode, TimeWidget } from '../../tools/time/itimeoptions.js';
|
|
7
7
|
declare class TimeRestrictionComponent extends GirafeHTMLElement {
|
|
8
|
-
templateUrl: null;
|
|
9
|
-
styleUrls: null;
|
|
8
|
+
protected templateUrl: string | null;
|
|
9
|
+
protected styleUrls: string[] | null;
|
|
10
10
|
template: () => import("uhtml").Hole;
|
|
11
11
|
layer: TimeAwareLayer;
|
|
12
12
|
timeOptions: ITimeOptions;
|
|
@@ -6,8 +6,8 @@ import TimeWidget, { TimeRangeLimit } from '../tools/timewidget.js';
|
|
|
6
6
|
* lower and upper range limits so that they do not cross each other.
|
|
7
7
|
*/
|
|
8
8
|
declare class TimePickerComponent extends TimeWidget {
|
|
9
|
-
templateUrl: null;
|
|
10
|
-
styleUrls: null;
|
|
9
|
+
protected templateUrl: string | null;
|
|
10
|
+
protected styleUrls: string[] | null;
|
|
11
11
|
template: () => import("uhtml").Hole;
|
|
12
12
|
constructor();
|
|
13
13
|
renderComponent(): void;
|
|
@@ -9,8 +9,8 @@ import TimeWidget, { TimeRangeLimit } from '../tools/timewidget.js';
|
|
|
9
9
|
* with the defined `timeOptions` and dynamically updates output elements to display nicely formatted time values.
|
|
10
10
|
*/
|
|
11
11
|
declare class TimeSliderComponent extends TimeWidget {
|
|
12
|
-
templateUrl: null;
|
|
13
|
-
styleUrls: null;
|
|
12
|
+
protected templateUrl: string | null;
|
|
13
|
+
protected styleUrls: string[] | null;
|
|
14
14
|
template: () => import("uhtml").Hole;
|
|
15
15
|
private discreteTimeSteps?;
|
|
16
16
|
constructor();
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import GroupLayer from '../../../models/layers/grouplayer.js';
|
|
2
2
|
import TreeViewGroupElement from '../tools/treeviewgroupelement.js';
|
|
3
3
|
declare class TreeViewGroupComponent extends TreeViewGroupElement {
|
|
4
|
-
templateUrl: null;
|
|
5
|
-
styleUrls: null;
|
|
4
|
+
protected templateUrl: string | null;
|
|
5
|
+
protected styleUrls: string[] | null;
|
|
6
6
|
template: () => import("uhtml").Hole;
|
|
7
7
|
layer: GroupLayer;
|
|
8
8
|
constructor(group: GroupLayer);
|
|
@@ -2,8 +2,8 @@ import Layer from '../../../models/layers/layer.js';
|
|
|
2
2
|
import TreeViewElement from '../tools/treeviewelement.js';
|
|
3
3
|
import WmsLegendHelper from '../../../tools/wms/wmslegendhelper.js';
|
|
4
4
|
declare class TreeViewItemComponent extends TreeViewElement {
|
|
5
|
-
templateUrl: null;
|
|
6
|
-
styleUrls: null;
|
|
5
|
+
protected templateUrl: string | null;
|
|
6
|
+
protected styleUrls: string[] | null;
|
|
7
7
|
template: () => import("uhtml").Hole;
|
|
8
8
|
iconUrl: string | null;
|
|
9
9
|
legendUrls: Record<string, string>;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import GirafeHTMLElement from '../../../base/GirafeHTMLElement.js';
|
|
2
2
|
import BaseLayer from '../../../models/layers/baselayer.js';
|
|
3
3
|
declare class TreeViewRootComponent extends GirafeHTMLElement {
|
|
4
|
-
templateUrl: null;
|
|
5
|
-
styleUrls: null;
|
|
4
|
+
protected templateUrl: string | null;
|
|
5
|
+
protected styleUrls: string[] | null;
|
|
6
6
|
template: () => import("uhtml").Hole;
|
|
7
7
|
private filterHelper;
|
|
8
8
|
private isAllExpanded;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import ThemeLayer from '../../../models/layers/themelayer.js';
|
|
2
2
|
import TreeViewGroupElement from '../tools/treeviewgroupelement.js';
|
|
3
3
|
declare class TreeViewThemeComponent extends TreeViewGroupElement {
|
|
4
|
-
templateUrl: null;
|
|
5
|
-
styleUrls: null;
|
|
4
|
+
protected templateUrl: string | null;
|
|
5
|
+
protected styleUrls: string[] | null;
|
|
6
6
|
template: () => import("uhtml").Hole;
|
|
7
7
|
layer: ThemeLayer;
|
|
8
8
|
constructor(theme: ThemeLayer);
|
|
@@ -6,8 +6,8 @@ import IGirafePanel from '../../tools/state/igirafepanel.js';
|
|
|
6
6
|
Lets the user override default configuration values and saves them as user data.
|
|
7
7
|
*/
|
|
8
8
|
export default class UserPreferencesComponent extends GirafeHTMLElement implements IGirafePanel {
|
|
9
|
-
templateUrl: null;
|
|
10
|
-
styleUrls: null;
|
|
9
|
+
protected templateUrl: string | null;
|
|
10
|
+
protected styleUrls: string[] | null;
|
|
11
11
|
template: () => import("uhtml").Hole;
|
|
12
12
|
isPanelVisible: boolean;
|
|
13
13
|
panelTitle: string;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import GirafeHTMLElement from '../../base/GirafeHTMLElement.js';
|
|
2
2
|
declare class VideoRecordComponent extends GirafeHTMLElement {
|
|
3
|
-
templateUrl: null;
|
|
4
|
-
styleUrls: null;
|
|
3
|
+
protected templateUrl: string | null;
|
|
4
|
+
protected styleUrls: string[] | null;
|
|
5
5
|
template: () => import("uhtml").Hole;
|
|
6
6
|
status: 'downloaded' | 'recording' | 'recorded';
|
|
7
7
|
mediaRecorder: MediaRecorder | null;
|
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.
|
|
8
|
+
"version": "1.1.0-dev.2456794124",
|
|
9
9
|
"type": "module",
|
|
10
10
|
"engines": {
|
|
11
11
|
"node": ">=20.19.0"
|
|
@@ -128,6 +128,9 @@
|
|
|
128
128
|
"./core": {
|
|
129
129
|
"import": "./tools/main.js"
|
|
130
130
|
},
|
|
131
|
+
"./api": {
|
|
132
|
+
"import": "./api/main.js"
|
|
133
|
+
},
|
|
131
134
|
"./tools": {
|
|
132
135
|
"import": "./main.tools.js"
|
|
133
136
|
},
|
package/templates/api.html
CHANGED
|
@@ -115,8 +115,8 @@
|
|
|
115
115
|
}
|
|
116
116
|
</style>
|
|
117
117
|
|
|
118
|
-
<script type="module" src="
|
|
119
|
-
<link rel="stylesheet" href="
|
|
118
|
+
<script type="module" src="src/main.api.ts"></script>
|
|
119
|
+
<link rel="stylesheet" href="api.css" />
|
|
120
120
|
|
|
121
121
|
<script>
|
|
122
122
|
document.addEventListener('DOMContentLoaded', () => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":"1.1.0-dev.
|
|
1
|
+
{"version":"1.1.0-dev.2456794124", "build":"2456794124", "date":"16/04/2026"}
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
{
|
|
2
|
+
"api": {
|
|
3
|
+
"demo": {
|
|
4
|
+
"center": "15393875, 4325968",
|
|
5
|
+
"zoom": "11",
|
|
6
|
+
"basemap": "ArcGIS Imagery",
|
|
7
|
+
"crosshair": "1631989, 5067094",
|
|
8
|
+
"tooltip": "1631989, 5067094 | Hello from the GeoGirafe API!",
|
|
9
|
+
"layers": "OpenTopoMap",
|
|
10
|
+
"multiLayers": "GL_AbschnittsStoergrade, SW_Jugendlichenanteil, KJ_Jugendangebot",
|
|
11
|
+
"layersWithConfig": "GR_Grundwasserschutzzonen|o;0.4|f;gr_gz_kantypbez;eq;S1",
|
|
12
|
+
"layersWithConfigCenter": "2613521, 1269262",
|
|
13
|
+
"marker": "1631989, 5067094|api/parking.png",
|
|
14
|
+
"markers": "1631989, 5067094|api/parking.png ; -886940, 7327529|api/marker-blue.png ; 854084, 5974974|api/marker-green.png"
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
}
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
{
|
|
2
|
+
"general": {
|
|
3
|
+
"locale": "en-US"
|
|
4
|
+
},
|
|
5
|
+
"languages": {
|
|
6
|
+
"translations": {
|
|
7
|
+
"en": ["i18n/en.json"],
|
|
8
|
+
"fr": ["i18n/fr.json"],
|
|
9
|
+
"de": ["i18n/de.json"],
|
|
10
|
+
"it": ["i18n/it.json"]
|
|
11
|
+
},
|
|
12
|
+
"defaultLanguage": "en"
|
|
13
|
+
},
|
|
14
|
+
"themes": {
|
|
15
|
+
"url": "mock/themes.json",
|
|
16
|
+
"defaultTheme": ""
|
|
17
|
+
},
|
|
18
|
+
"basemaps": {
|
|
19
|
+
"defaultBasemap": "OpenStreetMap",
|
|
20
|
+
"OSM": true
|
|
21
|
+
},
|
|
22
|
+
"projections": {
|
|
23
|
+
"EPSG:3857": "WebMercator",
|
|
24
|
+
"EPSG:4326": "WGS84"
|
|
25
|
+
},
|
|
26
|
+
"map": {
|
|
27
|
+
"srid": "EPSG:3857",
|
|
28
|
+
"scales": [
|
|
29
|
+
70000000, 35000000, 15000000, 10000000, 4000000, 2000000, 1000000, 500000, 250000, 150000, 70000, 35000, 15000,
|
|
30
|
+
8000, 4000, 2000, 1000, 500
|
|
31
|
+
],
|
|
32
|
+
"startPosition": "844100,6033454",
|
|
33
|
+
"startZoom": "0"
|
|
34
|
+
},
|
|
35
|
+
"map3d": {
|
|
36
|
+
"tilesetsUrls": []
|
|
37
|
+
},
|
|
38
|
+
"contextmenu": {
|
|
39
|
+
"crs": [
|
|
40
|
+
{ "code": "EPSG:3857", "translation": "EPSG:3857", "format": "decimal", "precision": 2 },
|
|
41
|
+
{ "code": "EPSG:4326", "translation": "EPSG:4326", "format": "decimal", "precision": 7 },
|
|
42
|
+
{ "code": "EPSG:4326", "translation": "EPSG:4326-DMS", "format": "dms", "precision": 2 }
|
|
43
|
+
],
|
|
44
|
+
"links": [
|
|
45
|
+
{
|
|
46
|
+
"translation": "Google Street View",
|
|
47
|
+
"crs": "EPSG:4326",
|
|
48
|
+
"url": "https://www.google.com/maps/@?api=1&map_action=pano&viewpoint=###MAPY###,###MAPX###"
|
|
49
|
+
}
|
|
50
|
+
]
|
|
51
|
+
},
|
|
52
|
+
"crs": [],
|
|
53
|
+
"onboarding": {
|
|
54
|
+
"steps": [
|
|
55
|
+
{
|
|
56
|
+
"element": "[data-tour='theme-selection']",
|
|
57
|
+
"title": "onboarding-theme-selection-title",
|
|
58
|
+
"description": "onboarding-theme-selection-description"
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
"element": "[data-tour='basemap-selection']",
|
|
62
|
+
"title": "onboarding-basemap-selection-title",
|
|
63
|
+
"description": "onboarding-basemap-selection-description"
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
"component": "treeviewroot",
|
|
67
|
+
"element": "[data-tour='treeview-filter']",
|
|
68
|
+
"title": "onboarding-treeview-filter-selection-title",
|
|
69
|
+
"description": "onboarding-treeview-filter-selection-description"
|
|
70
|
+
}
|
|
71
|
+
]
|
|
72
|
+
},
|
|
73
|
+
"news": {
|
|
74
|
+
"urls": ["https://geogirafe.org/feed/atom/"],
|
|
75
|
+
"autoDisplay": false
|
|
76
|
+
}
|
|
77
|
+
}
|
package/templates/vite.config.js
CHANGED
|
@@ -8,7 +8,7 @@ import { HtmlRebuildPlugin } from '@geogirafe/lib-geoportal/buildtools';
|
|
|
8
8
|
import { createHtmlPlugin } from 'vite-plugin-html';
|
|
9
9
|
import { viteStaticCopy } from 'vite-plugin-static-copy';
|
|
10
10
|
import dns from 'dns';
|
|
11
|
-
|
|
11
|
+
const analyzer = null;
|
|
12
12
|
|
|
13
13
|
/**
|
|
14
14
|
* Custom name resolution for app.localhost:
|
|
@@ -135,7 +135,8 @@ export default defineConfig(({ command, mode }) => {
|
|
|
135
135
|
createHtmlPlugin({
|
|
136
136
|
minify: true
|
|
137
137
|
}),
|
|
138
|
-
|
|
138
|
+
analyzer &&
|
|
139
|
+
mode === 'analyze' &&
|
|
139
140
|
// https://www.npmjs.com/package/vite-bundle-analyzer
|
|
140
141
|
analyzer({
|
|
141
142
|
analyzerMode: 'static',
|
package/api/api.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
package/api/api.js
DELETED