@geoportallux/feature-info-templates 0.0.0-stage → 1.0.0-alpha.0

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 (59) hide show
  1. package/README.md +315 -2
  2. package/dist/components/common/icons.d.ts +15 -0
  3. package/dist/components/common/lux-tpl-icon.vue.d.ts +9 -0
  4. package/dist/components/common/modal-dialog.vue.d.ts +49 -0
  5. package/dist/components/info-feature-measurement-modale.vue.d.ts +6 -0
  6. package/dist/components/layouts/info-feature-layout.vue.d.ts +33 -0
  7. package/dist/components/templates/adresse-template.vue.d.ts +7 -0
  8. package/dist/components/templates/aero-template.vue.d.ts +7 -0
  9. package/dist/components/templates/affaires-template.vue.d.ts +7 -0
  10. package/dist/components/templates/asta-template.vue.d.ts +7 -0
  11. package/dist/components/templates/automatic-sols-template.vue.d.ts +17 -0
  12. package/dist/components/templates/batiments-template.vue.d.ts +7 -0
  13. package/dist/components/templates/bus-template.vue.d.ts +7 -0
  14. package/dist/components/templates/bus-wo-title-template.vue.d.ts +7 -0
  15. package/dist/components/templates/casipo-template.vue.d.ts +17 -0
  16. package/dist/components/templates/default-attachment-no-prefix-template.vue.d.ts +17 -0
  17. package/dist/components/templates/default-attachment-template.vue.d.ts +17 -0
  18. package/dist/components/templates/default-table-no-prefix-template.vue.d.ts +17 -0
  19. package/dist/components/templates/default-table-template.vue.d.ts +17 -0
  20. package/dist/components/templates/default-template.vue.d.ts +31 -0
  21. package/dist/components/templates/flik-template.vue.d.ts +7 -0
  22. package/dist/components/templates/forage-virtuel-template.vue.d.ts +17 -0
  23. package/dist/components/templates/lignes-bus-template.vue.d.ts +11 -0
  24. package/dist/components/templates/meteo-template.vue.d.ts +7 -0
  25. package/dist/components/templates/meteolux-europe-template.vue.d.ts +7 -0
  26. package/dist/components/templates/meteolux-gr-template.vue.d.ts +7 -0
  27. package/dist/components/templates/mo-template.vue.d.ts +7 -0
  28. package/dist/components/templates/mymaps-template.vue.d.ts +17 -0
  29. package/dist/components/templates/ng95-new-template.vue.d.ts +7 -0
  30. package/dist/components/templates/ng95-template.vue.d.ts +7 -0
  31. package/dist/components/templates/npour-poi-template.vue.d.ts +17 -0
  32. package/dist/components/templates/npour-wo-address-poi-template.vue.d.ts +17 -0
  33. package/dist/components/templates/pag-staging-template.vue.d.ts +17 -0
  34. package/dist/components/templates/pag-template.vue.d.ts +17 -0
  35. package/dist/components/templates/parcels-template.vue.d.ts +11 -0
  36. package/dist/components/templates/pcn-pag-template.vue.d.ts +7 -0
  37. package/dist/components/templates/pds-template.vue.d.ts +17 -0
  38. package/dist/components/templates/pegel-template.vue.d.ts +7 -0
  39. package/dist/components/templates/remembrements-template.vue.d.ts +7 -0
  40. package/dist/components/templates/sentier-nature-template.vue.d.ts +17 -0
  41. package/dist/components/templates/template-utilities.d.ts +55 -0
  42. package/dist/components/templates/unavailable-template.vue.d.ts +7 -0
  43. package/dist/components/templates/urplang-template.vue.d.ts +7 -0
  44. package/dist/components/templates/viti-flik.vue.d.ts +7 -0
  45. package/dist/components/templates/viti-kleinlage.vue.d.ts +7 -0
  46. package/dist/components/templates/viti-name.vue.d.ts +7 -0
  47. package/dist/components/templates/viti-parcels.vue.d.ts +7 -0
  48. package/dist/context.d.ts +78 -0
  49. package/dist/i18n.d.ts +39 -0
  50. package/dist/i18next-init.d.ts +20 -0
  51. package/dist/index.d.ts +9 -0
  52. package/dist/lib-entry.d.ts +1 -0
  53. package/dist/lux-tpl.js +3622 -0
  54. package/dist/models.d.ts +59 -0
  55. package/dist/sanitize-html.d.ts +7 -0
  56. package/dist/style.css +1 -0
  57. package/dist/templates.d.ts +9 -0
  58. package/dist/tooltip-fallback.d.ts +3 -0
  59. package/package.json +50 -4
package/README.md CHANGED
@@ -1,3 +1,316 @@
1
- # Temporary Holding Version
1
+ # @geoportallux/feature-info-templates
2
2
 
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
3
+ The GetFeatureInfo templates of the Luxembourg geoportal, packaged so both the
4
+ 2D app and the VC Map 3D viewer render feature info identically.
5
+
6
+ The package is **self-contained**: nothing under `src/` imports from outside the
7
+ package, and it registers no globals on the host app and requires none.
8
+ Everything host-specific — URLs, the logged-in user, notifications, the
9
+ elevation-profile component, theme availability — arrives through one injected
10
+ context. `npm run build` fails if that rule is broken, and ESLint flags it in
11
+ the editor.
12
+
13
+ ## Install
14
+
15
+ ```bash
16
+ npm i @geoportallux/feature-info-templates
17
+ ```
18
+
19
+ Peers: `vue` ^3.4.36, `i18next` >=23.
20
+
21
+ ### Against a local checkout
22
+
23
+ To develop a consumer against unreleased changes, point it at this directory:
24
+
25
+ ```jsonc
26
+ "@geoportallux/feature-info-templates": "file:../../luxembourg-geoportail/packages/feature-info-templates"
27
+ ```
28
+
29
+ ⚠️ npm does **not** refresh a `file:` dependency while its version is
30
+ unchanged, so a consumer silently keeps the old `dist/`. After rebuilding the
31
+ package either bump its version, or in the consumer run:
32
+
33
+ ```bash
34
+ rm -rf node_modules/@geoportallux && npm install
35
+ ```
36
+
37
+ ## Use
38
+
39
+ ```ts
40
+ import {
41
+ getTemplateComponent,
42
+ provideLuxTplContext,
43
+ createLuxTplI18n,
44
+ LUX_TPL_I18N,
45
+ } from '@geoportallux/feature-info-templates'
46
+ import '@geoportallux/feature-info-templates/style.css' // Tailwind-less hosts only
47
+ ```
48
+
49
+ Provide the context and the i18n surface once, from a wrapper component's
50
+ `setup()` (no `app.use()` needed — which matters in VC Map, where installing a
51
+ Vue i18n plugin would clobber the host's global `$t`):
52
+
53
+ ```ts
54
+ provideLuxTplContext({
55
+ config: {
56
+ /* the URLs your host knows; every field is optional */
57
+ },
58
+ user: computed(() => currentUser.value),
59
+ notify: (message, type) => host.notify(message, type),
60
+ profileComponent: MyProfileChart, // omit if the host has no profiles
61
+ isThemeAvailable: name => host.hasTheme(name),
62
+ })
63
+ provide(LUX_TPL_I18N, createLuxTplI18n(i18next))
64
+ ```
65
+
66
+ Then render, wrapped in the styling boundary:
67
+
68
+ ```vue
69
+ <div class="lux-tpl-root">
70
+ <component
71
+ v-for="(layers, i) in content"
72
+ :key="i"
73
+ :is="getTemplateComponent(layers.template)"
74
+ :layers="layers"
75
+ :currentUrl="currentUrl"
76
+ @export="onExport"
77
+ />
78
+ </div>
79
+ ```
80
+
81
+ `getTemplateComponent()` maps the backend's `template` filename onto a
82
+ component, falling back to the default template. Both hosts share it so
83
+ selection cannot drift. The ~40 template components are internal — render
84
+ through the dispatcher rather than importing one by name.
85
+
86
+ A host with no i18next of its own can bootstrap one with the geoportail's exact
87
+ contract (namespaces, `nsSeparator: false`, tooltip fallback hydration):
88
+
89
+ ```ts
90
+ import i18next from 'i18next'
91
+ import backend from 'i18next-http-backend'
92
+ import { createLuxTplI18next } from '@geoportallux/feature-info-templates'
93
+
94
+ await createLuxTplI18next(
95
+ i18next.use(backend),
96
+ '/assets/locales/{{ns}}.{{lng}}.json'
97
+ )
98
+ ```
99
+
100
+ ## Styling contract
101
+
102
+ Templates must render inside an element with the class **`.lux-tpl-root`** —
103
+ any element of yours will do. The shipped stylesheet scopes
104
+ every Tailwind utility *and* Tailwind's preflight reset under that class, so
105
+ dropping it into a host document cannot restyle the host. Preflight is scoped
106
+ rather than disabled because the templates genuinely depend on it — `border`
107
+ utilities emit only a width and take their `border-style` from it, lists take
108
+ their padding reset from it, headings their `font-size: inherit`.
109
+
110
+ **Anything that leaves the container must re-apply the class.** Scoping is a
111
+ descendant rule, so markup rendered outside `.lux-tpl-root` — a `<Teleport>`, a
112
+ portal, anything appended to `<body>` — matches none of the package's CSS and
113
+ falls back to browser defaults. The measurement preview modal teleports to
114
+ `<body>` and therefore wraps itself in `<div class="lux-tpl-root">`; without it
115
+ the modal loses `position: fixed`, its insets, its z-index and its sizing, and
116
+ renders as a static block at the foot of the document.
117
+
118
+ This is easy to miss in the geoportail, whose own Tailwind emits those utilities
119
+ globally, so teleported markup keeps working there even when the wrapper is
120
+ absent. `cypress/e2e/info/feature-info.cy.ts` asserts the modal's teleported
121
+ root *is* `body > .lux-tpl-root` rather than checking its computed position, so
122
+ the guard holds in any host.
123
+
124
+ Theme colours are read from CSS custom properties, with the geoportail palette
125
+ as the fallback. Override any of them on `.lux-tpl-root` (or above it):
126
+
127
+ | Property | Default | Used for |
128
+ | --------------------- | --------- | ------------------------------ |
129
+ | `--color-default` | `#333` | body text |
130
+ | `--color-primary` | `#2980b9` | links, primary buttons |
131
+ | `--color-secondary` | `#97bbd3` | secondary accents |
132
+ | `--color-tertiary` | `#1f5d87` | tertiary accents |
133
+ | `--color-quaternary` | `#20638f` | button hover |
134
+ | `--color-gray` | `#ccc` | button borders |
135
+
136
+ One more token is not a colour from the palette:
137
+
138
+ | Property | Default | Used for |
139
+ | ---------------------------- | ------- | ----------------------------------------------- |
140
+ | `--lux-tpl-white-by-default` | `#fff` | titles that sit on a background the host paints |
141
+
142
+ Some template titles (`parcels`, `urplang`) set a foreground colour but not the
143
+ background behind them — they assume the host's panel is dark, which the
144
+ geoportail's themed info panel is. In a host with a light panel they would be
145
+ invisible, so override this token there. It deliberately does **not** cover
146
+ elements that paint their own background, such as the solar simulator button,
147
+ whose contrast is self-contained.
148
+
149
+ ### Where template styles live
150
+
151
+ Template styles take one of two forms, each with one job:
152
+
153
+ - **Tailwind utilities in the markup** — the default, as in the rest of the
154
+ geoportail. A one-off value is a utility too (`text-[28px]`), not a new class.
155
+ - **`src/templates-styles.css`** — plain global `lux-tpl-*` classes for what
156
+ utilities express poorly: descendant rules (`.lux-tpl-feature-info label`),
157
+ groups shared across templates (the `.lux-tpl-order-*` report form of casipo,
158
+ forage-virtuel, pag, pag-staging and pds) and the solar simulator image
159
+ button.
160
+
161
+ Templates carry no `<style scoped>`: Vue suffixes scoped selectors with a
162
+ build-hashed `[data-v-…]` attribute that a host cannot target. The plain classes
163
+ stay overridable by any host rule loaded after the package's styles, on top of
164
+ the custom properties above.
165
+
166
+ ### Sanitized HTML
167
+
168
+ Server-supplied HTML in attribute values is sanitized by the package itself, via
169
+ DOMPurify. There is nothing to register on the host: each template imports the
170
+ `vLuxHtml` directive and uses it locally as `v-lux-html`, so a host renders
171
+ templates without registering anything.
172
+
173
+ Two things worth knowing. DOMPurify runs with its default configuration, so
174
+ `target` is **not** in `ALLOWED_ATTR` — a `target="_blank"` inside a
175
+ server-supplied value is dropped. And the directive is deliberately *not* named
176
+ `v-dompurify-html`: that was a global the geoportail happened to install, so a
177
+ template that forgot it still worked in that one app and rendered blank
178
+ everywhere else. `v-lux-html` fails the same way in every host, and
179
+ `sanitized-html.spec.ts` mounts the affected templates with nothing registered
180
+ to keep it that way.
181
+
182
+ ## Fonts and icons
183
+
184
+ Fonts are **not** shipped (licensing). The templates ask for
185
+ `DINNextLTPro-Condensed` and fall back to `Arial`; a host that has the licensed
186
+ face declares the `@font-face` itself.
187
+
188
+ Icons need nothing from the host: they are inline SVG, drawn at the current font
189
+ size in the current text colour. The set is `caret-up`, `caret-down`,
190
+ `download`, `grid`, `list`, `phone`, `fax`, `at`. They are hand-drawn rather than taken from an icon set, so nothing
191
+ here carries Font Awesome's CC BY attribution requirement.
192
+
193
+ ## Translations
194
+
195
+ The package ships no translation strings and installs no Vue i18n plugin. The
196
+ host owns the i18next instance and its resources; the package only reads from
197
+ it.
198
+
199
+ - **Wiring.** The host wraps its instance with `createLuxTplI18n()` and provides
200
+ it under `LUX_TPL_I18N` (see [Use](#use)). `createLuxTplI18n()` registers
201
+ i18next listeners, so call it once per instance, not per mount. Templates read
202
+ through `useLuxTranslation(ns)`, which re-renders on language change and when
203
+ resources load. Without a provider it falls back to the i18next singleton,
204
+ non-reactively — enough for unit tests, not for a host.
205
+ - **Contract.** Templates translate from the `tooltips`, `app` and `layers`
206
+ namespaces, with `nsSeparator` and `keySeparator` off: keys are literal
207
+ strings, some containing `:`. `installTooltipFallbackTranslations(instance)`
208
+ copies `app` translations into `tooltips` where a key is missing there, and repeats on every load and
209
+ language change.
210
+ - **Geoportail.** Keeps its own init in `src/main.ts` (and `src/bundle/lib.ts`)
211
+ with that contract and installs the tooltip fallback there.
212
+ `src/components/info/feature-info.vue` provides the memoised wrapper from
213
+ `src/composables/info/lux-tpl-context.composable.ts`.
214
+ - **External host.** Either passes its own instance, configured to the same
215
+ contract, or bootstraps one with `createLuxTplI18next()`, which applies the
216
+ contract and installs the fallback. Either way the host serves the
217
+ geoportail's translation files, e.g. at the `loadPath` it passes.
218
+
219
+ ## How the geoportail and an external host consume the package
220
+
221
+ The geoportail compiles the package **sources** as part of the app; an external
222
+ host (e.g. the 3D viewer) installs the **built bundle**. The two entries differ
223
+ only by the Tailwind sheet: `src/index.ts` is the public API plus
224
+ `templates-styles.css`, and `src/lib-entry.ts`, the build entry, adds
225
+ `src/tailwind.css` on top.
226
+
227
+ | | Geoportail (this repo) | External host |
228
+ | ------------------------ | ---------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- |
229
+ | Code | `src/index.ts`, via the alias in `vite.config.ts` and `vite-dist.config.ts`; no package build, HMR on edit | `dist/lux-tpl.js`, through `package.json` `exports` |
230
+ | Types | `src/`, via `paths` in `tsconfig.app.json` | `dist/index.d.ts` |
231
+ | Tailwind utilities | the app's own Tailwind pass (the root `tailwind.config.cjs` scans this package's `src/`), emitted globally | prebuilt in `dist/style.css`, scoped under `.lux-tpl-root` |
232
+ | Preflight reset | the app's, global | Tailwind's, scoped to `.lux-tpl-root` |
233
+ | `templates-styles.css` | imported by `src/index.ts`, processed by the app's Vite | bundled into `dist/style.css` |
234
+ | `.lux-btn`, `.lux-btn-grey` | the app's `src/assets/main.css` | the copy in `src/tailwind.css` |
235
+ | Theme colours | the app's `:root` custom properties | the same properties if the host sets them, else the geoportail fallbacks |
236
+ | Stylesheet import | **none** — importing `style.css` would emit the utilities twice | `import '@geoportallux/feature-info-templates/style.css'` |
237
+
238
+ Because the geoportail provides the utilities, the reset and the buttons
239
+ globally, it hides styling gaps an external host hits: markup outside
240
+ `.lux-tpl-root` (see the styling contract), a utility or button style missing
241
+ from the package's own Tailwind config. Check style changes against the built
242
+ `dist/style.css`, not only in the app.
243
+
244
+ One asset difference: Vite's library mode inlines every asset, so
245
+ `dist/style.css` embeds `solarkataster_1.png` as base64 (~119 KB), whereas the
246
+ geoportail serves it as a separate file.
247
+
248
+ ## Contributing
249
+
250
+ The self-containment claim at the top is enforced, not aspirational:
251
+
252
+ - `tsconfig.json` has **no `paths`**, so a stray `@/...` import fails
253
+ `npm run type-check`, which `npm run build` runs first.
254
+ - `vite.config.ts` throws on rollup's `UNRESOLVED_IMPORT` — Vite's lib mode
255
+ would otherwise externalise an unresolved app import silently.
256
+ - ESLint `no-restricted-imports` flags `@/*`, `pinia` and `i18next-vue` in the
257
+ editor, and `vue/no-v-html` keeps raw HTML out (three audited exceptions carry
258
+ an inline disable).
259
+ - CI runs `npm run build:templates` (after `npm ci` and `lint`, before the
260
+ app's own type-check and build), so the package has to compile with no
261
+ access to `src/`. Note the job is `continue-on-error: true`, so this
262
+ reports rather than blocks — as do all the repo's other CI checks.
263
+
264
+ Two guards exist because the geoportail cannot reproduce the failure they catch
265
+ — it provides globals (a preflight reset, a live i18next singleton, an
266
+ app-registered sanitize directive) that a bare host does not:
267
+
268
+ | Guard | Catches |
269
+ | --- | --- |
270
+ | `src/components/templates/sanitized-html.spec.ts` | a template using a directive the package does not own |
271
+ | `src/components/templates/injected-language.spec.ts` | reading `i18next.language` from the module singleton instead of the injected instance |
272
+
273
+ E2E lives in the app, at `cypress/e2e/info/feature-info.cy.ts`.
274
+
275
+ ## Scripts
276
+
277
+ | Command | What it does |
278
+ | ---------------------- | ------------------------------------------------ |
279
+ | `npm run type-check` | `vue-tsc` with no `@/*` path mapping |
280
+ | `npm run build` | type-check, then bundle + emit `.d.ts` and CSS |
281
+ | `npm run build:only` | bundle without the type-check gate |
282
+
283
+ ## Publishing
284
+
285
+ `.github/workflows/publish-templates.yml` publishes on a `templates-v*` tag, via
286
+ npm trusted publishing (OIDC — no token). Bump the version, merge, then tag the
287
+ merge commit.
288
+
289
+ Bump from the repo root:
290
+
291
+ ```bash
292
+ npm version 0.2.0 -w @geoportallux/feature-info-templates --no-git-tag-version
293
+ ```
294
+
295
+ or from this directory, where `-w` is not needed:
296
+
297
+ ```bash
298
+ cd packages/feature-info-templates
299
+ npm version 0.2.0 --no-git-tag-version
300
+ ```
301
+
302
+ The root form also updates the version this package is recorded under in the
303
+ root `package-lock.json`; the `cd` form may not, so check `git status` for a
304
+ stale lockfile before committing. Then, once merged:
305
+
306
+ ```bash
307
+ git tag templates-v0.2.0 && git push origin templates-v0.2.0 # from anywhere in the repo
308
+ ```
309
+
310
+ `--no-git-tag-version` matters: `npm version` would otherwise create a `v0.2.0`
311
+ tag, which is the wrong format and triggers the two workflows listening on
312
+ `tags: '*'`. The workflow fails if the tag and `package.json` disagree, and
313
+ `dist/` is gitignored so the tarball is always built in CI. Tags are not
314
+ branch-bound, so a prerelease can be published from a feature branch before it
315
+ merges — note it still takes the `latest` dist-tag unless you move it
316
+ afterwards with `npm dist-tag`.
@@ -0,0 +1,15 @@
1
+ /**
2
+ * Inline SVG paths on a 16x16 grid, replacing the Font Awesome subset the
3
+ * templates used to take from the app. Hand-drawn, so no CC BY attribution.
4
+ */
5
+ export declare const LUX_TPL_ICON_PATHS: {
6
+ readonly 'caret-down': "M3.5 6h9L8 11.5 3.5 6Z";
7
+ readonly 'caret-up': "M3.5 10h9L8 4.5 3.5 10Z";
8
+ readonly download: "M7.25 1.75h1.5v5.19l1.72-1.72 1.06 1.06L8 9.81 4.47 6.28l1.06-1.06 1.72 1.72V1.75ZM2.5 11.5H4v1.75h8V11.5h1.5v3.25h-11V11.5Z";
9
+ readonly grid: "M2 3h5.25v5.25H2V3Zm6.75 0H14v5.25H8.75V3ZM2 9.75h5.25V15H2V9.75Zm6.75 0H14V15H8.75V9.75Z";
10
+ readonly list: "M2 3.5h2v2H2v-2Zm3.5 0H14v2H5.5v-2ZM2 7h2v2H2V7Zm3.5 0H14v2H5.5V7ZM2 10.5h2v2H2v-2Zm3.5 0H14v2H5.5v-2Z";
11
+ readonly phone: "M4.6 1.9a1 1 0 0 0-1.35.06L2.1 3.1a2 2 0 0 0-.35 2.35 15.5 15.5 0 0 0 6.8 6.8 2 2 0 0 0 2.35-.35l1.14-1.15a1 1 0 0 0 .06-1.35l-1.9-2.2a1 1 0 0 0-1.46-.05l-.9.9a12.2 12.2 0 0 1-3.14-3.14l.9-.9a1 1 0 0 0-.05-1.46L4.6 1.9Z";
12
+ readonly fax: "M4.5 1h7v3.25h-7V1ZM2.75 5.25h10.5A1.25 1.25 0 0 1 14.5 6.5v3.5a1.25 1.25 0 0 1-1.25 1.25H2.75A1.25 1.25 0 0 1 1.5 10V6.5a1.25 1.25 0 0 1 1.25-1.25ZM4.5 11.5h7V15h-7v-3.5ZM12 6.9a.85.85 0 1 1 0 1.7.85.85 0 0 1 0-1.7Z";
13
+ readonly at: "M8 1.5a6.5 6.5 0 1 0 3.1 12.2.75.75 0 0 0-.72-1.32A5 5 0 1 1 13 8v.55a1.1 1.1 0 0 1-2.2 0V5h-1.4v.83A3 3 0 1 0 8 11a3 3 0 0 0 2.06-.82 2.6 2.6 0 0 0 4.44-1.63V8A6.5 6.5 0 0 0 8 1.5Zm0 8a1.5 1.5 0 1 1 0-3 1.5 1.5 0 0 1 0 3Z";
14
+ };
15
+ export type LuxTplIconName = keyof typeof LUX_TPL_ICON_PATHS;
@@ -0,0 +1,9 @@
1
+ import { LuxTplIconName } from './icons';
2
+ /** Inline SVG icon at the current font size and colour. Pass `title` when the
3
+ * icon carries meaning on its own; without it, it is aria-hidden. */
4
+ type __VLS_Props = {
5
+ name: LuxTplIconName;
6
+ title?: string;
7
+ };
8
+ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
9
+ export default _default;
@@ -0,0 +1,49 @@
1
+ declare var __VLS_15: {}, __VLS_17: {};
2
+ type __VLS_Slots = {} & {
3
+ content?: (props: typeof __VLS_15) => any;
4
+ } & {
5
+ footer?: (props: typeof __VLS_17) => any;
6
+ };
7
+ declare const _default: __VLS_WithSlots<import('vue').DefineComponent<import('vue').ExtractPropTypes<{
8
+ footer: {
9
+ type: BooleanConstructor;
10
+ default: boolean;
11
+ };
12
+ maxHeight: {
13
+ type: BooleanConstructor;
14
+ default: boolean;
15
+ };
16
+ title: StringConstructor;
17
+ role: {
18
+ type: StringConstructor;
19
+ default: string;
20
+ };
21
+ }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
22
+ close: () => any;
23
+ }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
24
+ footer: {
25
+ type: BooleanConstructor;
26
+ default: boolean;
27
+ };
28
+ maxHeight: {
29
+ type: BooleanConstructor;
30
+ default: boolean;
31
+ };
32
+ title: StringConstructor;
33
+ role: {
34
+ type: StringConstructor;
35
+ default: string;
36
+ };
37
+ }>> & Readonly<{
38
+ onClose?: (() => any) | undefined;
39
+ }>, {
40
+ footer: boolean;
41
+ role: string;
42
+ maxHeight: boolean;
43
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>, __VLS_Slots>;
44
+ export default _default;
45
+ type __VLS_WithSlots<T, S> = T & {
46
+ new (): {
47
+ $slots: S;
48
+ };
49
+ };
@@ -0,0 +1,6 @@
1
+ import { FeatureMeasurement } from '../models';
2
+ type __VLS_Props = {
3
+ measurement: FeatureMeasurement;
4
+ };
5
+ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
6
+ export default _default;
@@ -0,0 +1,33 @@
1
+ import { FeatureInfoJSON, FeatureJSON } from '../../models';
2
+ type __VLS_Props = {
3
+ layers: FeatureInfoJSON;
4
+ currentUrl?: string;
5
+ getDirectLink?: (feature: FeatureJSON, currentUrl?: string) => string;
6
+ };
7
+ declare var __VLS_1: {}, __VLS_3: {
8
+ feature: FeatureJSON;
9
+ };
10
+ type __VLS_Slots = {} & {
11
+ 'layer-content'?: (props: typeof __VLS_1) => any;
12
+ } & {
13
+ 'feature-content'?: (props: typeof __VLS_3) => any;
14
+ };
15
+ declare const _default: __VLS_WithSlots<import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
16
+ export: (payload: {
17
+ feature: FeatureJSON;
18
+ format: "kml" | "gpx";
19
+ }) => any;
20
+ }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
21
+ onExport?: ((payload: {
22
+ feature: FeatureJSON;
23
+ format: "kml" | "gpx";
24
+ }) => any) | undefined;
25
+ }>, {
26
+ getDirectLink: (feature: FeatureJSON, currentUrl?: string | undefined) => string;
27
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>, __VLS_Slots>;
28
+ export default _default;
29
+ type __VLS_WithSlots<T, S> = T & {
30
+ new (): {
31
+ $slots: S;
32
+ };
33
+ };
@@ -0,0 +1,7 @@
1
+ import { FeatureInfoJSON } from '../../models';
2
+ type __VLS_Props = {
3
+ layers: FeatureInfoJSON;
4
+ currentUrl?: string;
5
+ };
6
+ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
7
+ export default _default;
@@ -0,0 +1,7 @@
1
+ import { FeatureInfoJSON } from '../../models';
2
+ type __VLS_Props = {
3
+ layers: FeatureInfoJSON;
4
+ currentUrl?: string;
5
+ };
6
+ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
7
+ export default _default;
@@ -0,0 +1,7 @@
1
+ import { FeatureInfoJSON } from '../../models';
2
+ type __VLS_Props = {
3
+ layers: FeatureInfoJSON;
4
+ currentUrl?: string;
5
+ };
6
+ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
7
+ export default _default;
@@ -0,0 +1,7 @@
1
+ import { FeatureInfoJSON } from '../../models';
2
+ type __VLS_Props = {
3
+ layers: FeatureInfoJSON;
4
+ currentUrl?: string;
5
+ };
6
+ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
7
+ export default _default;
@@ -0,0 +1,17 @@
1
+ import { FeatureInfoJSON, FeatureJSON } from '../../models';
2
+ type __VLS_Props = {
3
+ layers: FeatureInfoJSON;
4
+ currentUrl?: string;
5
+ };
6
+ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
7
+ export: (payload: {
8
+ feature: FeatureJSON;
9
+ format: "kml" | "gpx";
10
+ }) => any;
11
+ }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
12
+ onExport?: ((payload: {
13
+ feature: FeatureJSON;
14
+ format: "kml" | "gpx";
15
+ }) => any) | undefined;
16
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
17
+ export default _default;
@@ -0,0 +1,7 @@
1
+ import { FeatureInfoJSON } from '../../models';
2
+ type __VLS_Props = {
3
+ layers: FeatureInfoJSON;
4
+ currentUrl?: string;
5
+ };
6
+ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
7
+ export default _default;
@@ -0,0 +1,7 @@
1
+ import { FeatureInfoJSON } from '../../models';
2
+ type __VLS_Props = {
3
+ layers: FeatureInfoJSON;
4
+ currentUrl?: string;
5
+ };
6
+ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
7
+ export default _default;
@@ -0,0 +1,7 @@
1
+ import { FeatureInfoJSON } from '../../models';
2
+ type __VLS_Props = {
3
+ layers: FeatureInfoJSON;
4
+ currentUrl?: string;
5
+ };
6
+ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
7
+ export default _default;
@@ -0,0 +1,17 @@
1
+ import { FeatureInfoJSON, FeatureJSON } from '../../models';
2
+ type __VLS_Props = {
3
+ layers: FeatureInfoJSON;
4
+ currentUrl?: string;
5
+ };
6
+ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
7
+ export: (payload: {
8
+ feature: FeatureJSON;
9
+ format: "kml" | "gpx";
10
+ }) => any;
11
+ }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
12
+ onExport?: ((payload: {
13
+ feature: FeatureJSON;
14
+ format: "kml" | "gpx";
15
+ }) => any) | undefined;
16
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
17
+ export default _default;
@@ -0,0 +1,17 @@
1
+ import { FeatureInfoJSON, FeatureJSON } from '../../models';
2
+ type __VLS_Props = {
3
+ layers: FeatureInfoJSON;
4
+ currentUrl?: string;
5
+ };
6
+ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
7
+ export: (payload: {
8
+ feature: FeatureJSON;
9
+ format: "kml" | "gpx";
10
+ }) => any;
11
+ }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
12
+ onExport?: ((payload: {
13
+ feature: FeatureJSON;
14
+ format: "kml" | "gpx";
15
+ }) => any) | undefined;
16
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
17
+ export default _default;
@@ -0,0 +1,17 @@
1
+ import { FeatureInfoJSON, FeatureJSON } from '../../models';
2
+ type __VLS_Props = {
3
+ layers: FeatureInfoJSON;
4
+ currentUrl?: string;
5
+ };
6
+ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
7
+ export: (payload: {
8
+ feature: FeatureJSON;
9
+ format: "kml" | "gpx";
10
+ }) => any;
11
+ }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
12
+ onExport?: ((payload: {
13
+ feature: FeatureJSON;
14
+ format: "kml" | "gpx";
15
+ }) => any) | undefined;
16
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
17
+ export default _default;
@@ -0,0 +1,17 @@
1
+ import { FeatureInfoJSON, FeatureJSON } from '../../models';
2
+ type __VLS_Props = {
3
+ layers: FeatureInfoJSON;
4
+ currentUrl?: string;
5
+ };
6
+ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
7
+ export: (payload: {
8
+ feature: FeatureJSON;
9
+ format: "kml" | "gpx";
10
+ }) => any;
11
+ }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
12
+ onExport?: ((payload: {
13
+ feature: FeatureJSON;
14
+ format: "kml" | "gpx";
15
+ }) => any) | undefined;
16
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
17
+ export default _default;
@@ -0,0 +1,17 @@
1
+ import { FeatureInfoJSON, FeatureJSON } from '../../models';
2
+ type __VLS_Props = {
3
+ layers: FeatureInfoJSON;
4
+ currentUrl?: string;
5
+ };
6
+ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
7
+ export: (payload: {
8
+ feature: FeatureJSON;
9
+ format: "kml" | "gpx";
10
+ }) => any;
11
+ }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
12
+ onExport?: ((payload: {
13
+ feature: FeatureJSON;
14
+ format: "kml" | "gpx";
15
+ }) => any) | undefined;
16
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
17
+ export default _default;
@@ -0,0 +1,31 @@
1
+ import { FeatureInfoJSON, FeatureJSON } from '../../models';
2
+ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
3
+ layers: {
4
+ type: () => FeatureInfoJSON;
5
+ required: true;
6
+ };
7
+ currentUrl: {
8
+ type: StringConstructor;
9
+ required: false;
10
+ };
11
+ }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
12
+ export: (payload: {
13
+ feature: FeatureJSON;
14
+ format: "kml" | "gpx";
15
+ }) => any;
16
+ }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
17
+ layers: {
18
+ type: () => FeatureInfoJSON;
19
+ required: true;
20
+ };
21
+ currentUrl: {
22
+ type: StringConstructor;
23
+ required: false;
24
+ };
25
+ }>> & Readonly<{
26
+ onExport?: ((payload: {
27
+ feature: FeatureJSON;
28
+ format: "kml" | "gpx";
29
+ }) => any) | undefined;
30
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
31
+ export default _default;
@@ -0,0 +1,7 @@
1
+ import { FeatureInfoJSON } from '../../models';
2
+ type __VLS_Props = {
3
+ layers: FeatureInfoJSON;
4
+ currentUrl?: string;
5
+ };
6
+ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
7
+ export default _default;