@geoportallux/feature-info-templates 0.0.0-stage → 0.0.2
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/README.md +364 -2
- package/dist/components/common/icons.d.ts +15 -0
- package/dist/components/common/lux-tpl-icon.vue.d.ts +9 -0
- package/dist/components/common/modal-dialog.vue.d.ts +49 -0
- package/dist/components/info-feature-measurement-modale.vue.d.ts +6 -0
- package/dist/components/layouts/info-feature-layout.vue.d.ts +22 -0
- package/dist/components/templates/adresse-template.vue.d.ts +6 -0
- package/dist/components/templates/aero-template.vue.d.ts +6 -0
- package/dist/components/templates/affaires-template.vue.d.ts +6 -0
- package/dist/components/templates/asta-template.vue.d.ts +6 -0
- package/dist/components/templates/automatic-sols-template.vue.d.ts +6 -0
- package/dist/components/templates/batiments-template.vue.d.ts +6 -0
- package/dist/components/templates/bus-template.vue.d.ts +6 -0
- package/dist/components/templates/bus-wo-title-template.vue.d.ts +6 -0
- package/dist/components/templates/casipo-template.vue.d.ts +6 -0
- package/dist/components/templates/default-attachment-no-prefix-template.vue.d.ts +6 -0
- package/dist/components/templates/default-attachment-template.vue.d.ts +6 -0
- package/dist/components/templates/default-table-no-prefix-template.vue.d.ts +6 -0
- package/dist/components/templates/default-table-template.vue.d.ts +6 -0
- package/dist/components/templates/default-template.vue.d.ts +13 -0
- package/dist/components/templates/flik-template.vue.d.ts +6 -0
- package/dist/components/templates/forage-virtuel-template.vue.d.ts +6 -0
- package/dist/components/templates/lignes-bus-template.vue.d.ts +6 -0
- package/dist/components/templates/meteo-template.vue.d.ts +6 -0
- package/dist/components/templates/meteolux-europe-template.vue.d.ts +6 -0
- package/dist/components/templates/meteolux-gr-template.vue.d.ts +6 -0
- package/dist/components/templates/mo-template.vue.d.ts +6 -0
- package/dist/components/templates/mymaps-template.vue.d.ts +6 -0
- package/dist/components/templates/ng95-new-template.vue.d.ts +6 -0
- package/dist/components/templates/ng95-template.vue.d.ts +6 -0
- package/dist/components/templates/npour-poi-template.vue.d.ts +6 -0
- package/dist/components/templates/npour-wo-address-poi-template.vue.d.ts +6 -0
- package/dist/components/templates/pag-staging-template.vue.d.ts +6 -0
- package/dist/components/templates/pag-template.vue.d.ts +6 -0
- package/dist/components/templates/parcels-template.vue.d.ts +6 -0
- package/dist/components/templates/pcn-pag-template.vue.d.ts +6 -0
- package/dist/components/templates/pds-template.vue.d.ts +6 -0
- package/dist/components/templates/pegel-template.vue.d.ts +6 -0
- package/dist/components/templates/remembrements-template.vue.d.ts +6 -0
- package/dist/components/templates/sentier-nature-template.vue.d.ts +6 -0
- package/dist/components/templates/template-utilities.d.ts +55 -0
- package/dist/components/templates/unavailable-template.vue.d.ts +6 -0
- package/dist/components/templates/urplang-template.vue.d.ts +6 -0
- package/dist/components/templates/viti-flik.vue.d.ts +6 -0
- package/dist/components/templates/viti-kleinlage.vue.d.ts +6 -0
- package/dist/components/templates/viti-name.vue.d.ts +6 -0
- package/dist/components/templates/viti-parcels.vue.d.ts +6 -0
- package/dist/context.d.ts +115 -0
- package/dist/feature-info-request.d.ts +20 -0
- package/dist/i18n.d.ts +39 -0
- package/dist/i18next-init.d.ts +20 -0
- package/dist/index.d.ts +16 -0
- package/dist/lib-entry.d.ts +1 -0
- package/dist/lux-tpl.js +6234 -0
- package/dist/models.d.ts +56 -0
- package/dist/profile/d3-graph-elevation.d.ts +137 -0
- package/dist/profile/elevation-chart.vue.d.ts +13 -0
- package/dist/profile/elevation-profile.vue.d.ts +27 -0
- package/dist/profile/feature-profile.vue.d.ts +6 -0
- package/dist/profile/profile-map-hover.d.ts +14 -0
- package/dist/profile/profile.d.ts +51 -0
- package/dist/sanitize-html.d.ts +7 -0
- package/dist/style.css +1 -0
- package/dist/templates.d.ts +9 -0
- package/dist/tooltip-fallback.d.ts +3 -0
- package/package.json +63 -4
package/README.md
CHANGED
|
@@ -1,3 +1,365 @@
|
|
|
1
|
-
#
|
|
1
|
+
# @geoportallux/feature-info-templates
|
|
2
2
|
|
|
3
|
-
|
|
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
|
+
`npm run build` fails if that rule is broken, and ESLint flags it in the editor.
|
|
9
|
+
|
|
10
|
+
Everything host-specific — URLs, the logged-in user, notifications, the
|
|
11
|
+
profile's map adapter, direct links, KML/GPX export, theme availability —
|
|
12
|
+
arrives through one injected context; templates take only the `layers` prop.
|
|
13
|
+
|
|
14
|
+
## Install
|
|
15
|
+
|
|
16
|
+
```bash
|
|
17
|
+
npm i @geoportallux/feature-info-templates
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
Peers: `vue` ^3.4.36, `i18next` >=23.
|
|
21
|
+
|
|
22
|
+
### Against a local checkout
|
|
23
|
+
|
|
24
|
+
To develop a consumer against unreleased changes, point it at this directory:
|
|
25
|
+
|
|
26
|
+
```jsonc
|
|
27
|
+
"@geoportallux/feature-info-templates": "file:../../luxembourg-geoportail/packages/feature-info-templates"
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
⚠️ npm does **not** refresh a `file:` dependency while its version is
|
|
31
|
+
unchanged, so a consumer silently keeps the old `dist/`. After rebuilding the
|
|
32
|
+
package either bump its version, or in the consumer run:
|
|
33
|
+
|
|
34
|
+
```bash
|
|
35
|
+
rm -rf node_modules/@geoportallux && npm install
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
## Use
|
|
39
|
+
|
|
40
|
+
```ts
|
|
41
|
+
import {
|
|
42
|
+
getTemplateComponent,
|
|
43
|
+
provideLuxTplContext,
|
|
44
|
+
createLuxTplI18n,
|
|
45
|
+
LUX_TPL_I18N,
|
|
46
|
+
} from '@geoportallux/feature-info-templates'
|
|
47
|
+
import '@geoportallux/feature-info-templates/style.css' // Tailwind-less hosts only
|
|
48
|
+
```
|
|
49
|
+
|
|
50
|
+
Provide the context and the i18n surface once, from a wrapper component's
|
|
51
|
+
`setup()` (no `app.use()` needed — which matters in VC Map, where installing a
|
|
52
|
+
Vue i18n plugin would clobber the host's global `$t`):
|
|
53
|
+
|
|
54
|
+
```ts
|
|
55
|
+
provideLuxTplContext({
|
|
56
|
+
config: {
|
|
57
|
+
/* the URLs your host knows; every field is optional */
|
|
58
|
+
},
|
|
59
|
+
user: computed(() => currentUser.value),
|
|
60
|
+
notify: (message, type) => host.notify(message, type),
|
|
61
|
+
profileMapAdapter: myProfileMapAdapter, // omit if the host has no profiles
|
|
62
|
+
featureLink: fid => `${host.url}&fid=${fid}`, // omit to hide direct links
|
|
63
|
+
exportFeature: (feature, format) => host.download(feature, format), // KML/GPX; omit to hide
|
|
64
|
+
isThemeAvailable: name => host.hasTheme(name),
|
|
65
|
+
})
|
|
66
|
+
provide(LUX_TPL_I18N, createLuxTplI18n(i18next))
|
|
67
|
+
```
|
|
68
|
+
|
|
69
|
+
Then render, wrapped in the styling boundary:
|
|
70
|
+
|
|
71
|
+
```vue
|
|
72
|
+
<div class="lux-tpl-root">
|
|
73
|
+
<component
|
|
74
|
+
v-for="(layers, i) in content"
|
|
75
|
+
:key="i"
|
|
76
|
+
:is="getTemplateComponent(layers.template)"
|
|
77
|
+
:layers="layers"
|
|
78
|
+
/>
|
|
79
|
+
</div>
|
|
80
|
+
```
|
|
81
|
+
|
|
82
|
+
`getTemplateComponent()` maps the backend's `template` filename onto a
|
|
83
|
+
component, falling back to the default template. Both hosts share it so
|
|
84
|
+
selection cannot drift. The ~40 template components are internal — render
|
|
85
|
+
through the dispatcher rather than importing one by name.
|
|
86
|
+
|
|
87
|
+
A host with no i18next of its own can bootstrap one with the geoportail's exact
|
|
88
|
+
contract (namespaces, `nsSeparator: false`, tooltip fallback hydration):
|
|
89
|
+
|
|
90
|
+
```ts
|
|
91
|
+
import i18next from 'i18next'
|
|
92
|
+
import backend from 'i18next-http-backend'
|
|
93
|
+
import { createLuxTplI18next } from '@geoportallux/feature-info-templates'
|
|
94
|
+
|
|
95
|
+
await createLuxTplI18next(
|
|
96
|
+
i18next.use(backend),
|
|
97
|
+
'/assets/locales/{{ns}}.{{lng}}.json'
|
|
98
|
+
)
|
|
99
|
+
```
|
|
100
|
+
|
|
101
|
+
### Querying
|
|
102
|
+
|
|
103
|
+
Both hosts send the same `/getfeatureinfo` request for a click:
|
|
104
|
+
|
|
105
|
+
```ts
|
|
106
|
+
const params = buildGetFeatureInfoParams({
|
|
107
|
+
layers, // queryable layer ids, top first
|
|
108
|
+
point, // EPSG:2169
|
|
109
|
+
coordinate, // EPSG:3857
|
|
110
|
+
resolution, // EPSG:3857 units per pixel
|
|
111
|
+
size, // map size in pixels
|
|
112
|
+
pixel, // clicked pixel
|
|
113
|
+
extent, // optional EPSG:3857 view extent, derived when omitted
|
|
114
|
+
})
|
|
115
|
+
const content = normalizeFeatureInfo(
|
|
116
|
+
await fetchFeatureInfo(url, params, credentials),
|
|
117
|
+
layerId => hostLabel(layerId) // falls back to the backend's label
|
|
118
|
+
)
|
|
119
|
+
```
|
|
120
|
+
|
|
121
|
+
The boxes scale with the resolution (`20 ×` for points and lines, `1 ×` for
|
|
122
|
+
polygons), the zoom is derived from it, and entries without features are dropped.
|
|
123
|
+
|
|
124
|
+
### Elevation profile
|
|
125
|
+
|
|
126
|
+
Templates show an elevation profile for features with `has_profile`: it fetches
|
|
127
|
+
`config.profileUrl` (without credentials), shows the Δ values and the chart,
|
|
128
|
+
downloads the CSV, and its KML/GPX buttons call the context's
|
|
129
|
+
`exportFeature(feature, format)` (hidden without it). The map is the host's, through the
|
|
130
|
+
context's `profileMapAdapter` (`LuxTplProfileMapAdapter`, EPSG:2169 coordinates); without
|
|
131
|
+
it, no profile is shown:
|
|
132
|
+
|
|
133
|
+
- `setPosition(xy?)` shows the position marker, or hides it;
|
|
134
|
+
- `onPointerMove(cb)` calls `cb(xy, metresPerPixel)` on map pointer moves and
|
|
135
|
+
returns the unlisten function: a pointer within 8 px of the line highlights
|
|
136
|
+
the chart;
|
|
137
|
+
- `toLonLat(xy)` converts for the CSV.
|
|
138
|
+
|
|
139
|
+
For the host's own profiles (drawings, routing), the parts are exported too:
|
|
140
|
+
|
|
141
|
+
- `toProfileData(json)` adds elevation gain/loss to a `profile.json` response
|
|
142
|
+
(EPSG:2169 coordinates);
|
|
143
|
+
- `<LuxElevationProfile>` renders the Δ values, a CSV button and the chart
|
|
144
|
+
(props `profileData`, `highlightDistance`, `message`; events `hover:profile`
|
|
145
|
+
with the hovered point, `out:profile`, `csv`; default slot for host buttons);
|
|
146
|
+
- `<LuxElevationChart>` is the chart alone;
|
|
147
|
+
- `profileCsv(data, toLonLat)` returns the CSV content.
|
|
148
|
+
|
|
149
|
+
## Styling contract
|
|
150
|
+
|
|
151
|
+
Templates must render inside an element with the class **`.lux-tpl-root`** —
|
|
152
|
+
any element of yours will do. The shipped stylesheet scopes
|
|
153
|
+
every Tailwind utility _and_ Tailwind's preflight reset under that class, so
|
|
154
|
+
dropping it into a host document cannot restyle the host. Preflight is scoped
|
|
155
|
+
rather than disabled because the templates genuinely depend on it — `border`
|
|
156
|
+
utilities emit only a width and take their `border-style` from it, lists take
|
|
157
|
+
their padding reset from it, headings their `font-size: inherit`.
|
|
158
|
+
|
|
159
|
+
**Anything that leaves the container must re-apply the class.** Scoping is a
|
|
160
|
+
descendant rule, so markup rendered outside `.lux-tpl-root` — a `<Teleport>`, a
|
|
161
|
+
portal, anything appended to `<body>` — matches none of the package's CSS and
|
|
162
|
+
falls back to browser defaults. The measurement preview modal teleports to
|
|
163
|
+
`<body>` and therefore wraps itself in `<div class="lux-tpl-root">`; without it
|
|
164
|
+
the modal loses `position: fixed`, its insets, its z-index and its sizing, and
|
|
165
|
+
renders as a static block at the foot of the document.
|
|
166
|
+
|
|
167
|
+
This is easy to miss in the geoportail, whose own Tailwind emits those utilities
|
|
168
|
+
globally, so teleported markup keeps working there even when the wrapper is
|
|
169
|
+
absent. `cypress/e2e/info/feature-info.cy.ts` asserts the modal's teleported
|
|
170
|
+
root _is_ `body > .lux-tpl-root` rather than checking its computed position, so
|
|
171
|
+
the guard holds in any host.
|
|
172
|
+
|
|
173
|
+
Theme colours are read from CSS custom properties, with the geoportail palette
|
|
174
|
+
as the fallback. Override any of them on `.lux-tpl-root` (or above it):
|
|
175
|
+
|
|
176
|
+
| Property | Default | Used for |
|
|
177
|
+
| -------------------- | --------- | ---------------------- |
|
|
178
|
+
| `--color-default` | `#333` | body text |
|
|
179
|
+
| `--color-primary` | `#2980b9` | links, primary buttons |
|
|
180
|
+
| `--color-secondary` | `#97bbd3` | secondary accents |
|
|
181
|
+
| `--color-tertiary` | `#1f5d87` | tertiary accents |
|
|
182
|
+
| `--color-quaternary` | `#20638f` | button hover |
|
|
183
|
+
| `--color-gray` | `#ccc` | button borders |
|
|
184
|
+
|
|
185
|
+
One more token is not a colour from the palette:
|
|
186
|
+
|
|
187
|
+
| Property | Default | Used for |
|
|
188
|
+
| ---------------------------- | ------- | ----------------------------------------------- |
|
|
189
|
+
| `--lux-tpl-white-by-default` | `#fff` | titles that sit on a background the host paints |
|
|
190
|
+
|
|
191
|
+
Some template titles (`parcels`, `urplang`) set a foreground colour but not the
|
|
192
|
+
background behind them — they assume the host's panel is dark, which the
|
|
193
|
+
geoportail's themed info panel is. In a host with a light panel they would be
|
|
194
|
+
invisible, so override this token there. It deliberately does **not** cover
|
|
195
|
+
elements that paint their own background, such as the solar simulator button,
|
|
196
|
+
whose contrast is self-contained.
|
|
197
|
+
|
|
198
|
+
### Where template styles live
|
|
199
|
+
|
|
200
|
+
Template styles take one of two forms, each with one job:
|
|
201
|
+
|
|
202
|
+
- **Tailwind utilities in the markup** — the default, as in the rest of the
|
|
203
|
+
geoportail. A one-off value is a utility too (`text-[28px]`), not a new class.
|
|
204
|
+
- **`src/templates-styles.css`** — plain global `lux-tpl-*` classes for what
|
|
205
|
+
utilities express poorly: descendant rules (`.lux-tpl-feature-info label`),
|
|
206
|
+
groups shared across templates (the `.lux-tpl-order-*` report form of casipo,
|
|
207
|
+
forage-virtuel, pag, pag-staging and pds) and the solar simulator image
|
|
208
|
+
button.
|
|
209
|
+
|
|
210
|
+
Templates carry no `<style scoped>`: Vue suffixes scoped selectors with a
|
|
211
|
+
build-hashed `[data-v-…]` attribute that a host cannot target. The plain classes
|
|
212
|
+
stay overridable by any host rule loaded after the package's styles, on top of
|
|
213
|
+
the custom properties above.
|
|
214
|
+
|
|
215
|
+
### Sanitized HTML
|
|
216
|
+
|
|
217
|
+
Server-supplied HTML in attribute values is sanitized by the package itself, via
|
|
218
|
+
DOMPurify. There is nothing to register on the host: each template imports the
|
|
219
|
+
`vLuxHtml` directive and uses it locally as `v-lux-html`, so a host renders
|
|
220
|
+
templates without registering anything.
|
|
221
|
+
|
|
222
|
+
Two things worth knowing. DOMPurify runs with its default configuration, so
|
|
223
|
+
`target` is **not** in `ALLOWED_ATTR` — a `target="_blank"` inside a
|
|
224
|
+
server-supplied value is dropped. And the directive is deliberately _not_ named
|
|
225
|
+
`v-dompurify-html`: that was a global the geoportail happened to install, so a
|
|
226
|
+
template that forgot it still worked in that one app and rendered blank
|
|
227
|
+
everywhere else. `v-lux-html` fails the same way in every host, and
|
|
228
|
+
`sanitized-html.spec.ts` mounts the affected templates with nothing registered
|
|
229
|
+
to keep it that way.
|
|
230
|
+
|
|
231
|
+
## Fonts and icons
|
|
232
|
+
|
|
233
|
+
Fonts are **not** shipped (licensing). The templates ask for
|
|
234
|
+
`DINNextLTPro-Condensed` and fall back to `Arial`; a host that has the licensed
|
|
235
|
+
face declares the `@font-face` itself.
|
|
236
|
+
|
|
237
|
+
Icons need nothing from the host: they are inline SVG, drawn at the current font
|
|
238
|
+
size in the current text colour. The set is `caret-up`, `caret-down`,
|
|
239
|
+
`download`, `grid`, `list`, `phone`, `fax`, `at`. They are hand-drawn rather than taken from an icon set, so nothing
|
|
240
|
+
here carries Font Awesome's CC BY attribution requirement.
|
|
241
|
+
|
|
242
|
+
## Translations
|
|
243
|
+
|
|
244
|
+
The package ships no translation strings and installs no Vue i18n plugin. The
|
|
245
|
+
host owns the i18next instance and its resources; the package only reads from
|
|
246
|
+
it.
|
|
247
|
+
|
|
248
|
+
- **Wiring.** The host wraps its instance with `createLuxTplI18n()` and provides
|
|
249
|
+
it under `LUX_TPL_I18N` (see [Use](#use)). `createLuxTplI18n()` registers
|
|
250
|
+
i18next listeners, so call it once per instance, not per mount. Templates read
|
|
251
|
+
through `useLuxTranslation(ns)`, which re-renders on language change and when
|
|
252
|
+
resources load. Without a provider it falls back to the i18next singleton,
|
|
253
|
+
non-reactively — enough for unit tests, not for a host.
|
|
254
|
+
- **Contract.** Templates translate from the `tooltips`, `app` and `layers`
|
|
255
|
+
namespaces, with `nsSeparator` and `keySeparator` off: keys are literal
|
|
256
|
+
strings, some containing `:`. `installTooltipFallbackTranslations(instance)`
|
|
257
|
+
copies `app` translations into `tooltips` where a key is missing there, and repeats on every load and
|
|
258
|
+
language change.
|
|
259
|
+
- **Geoportail.** Keeps its own init in `src/main.ts` (and `src/bundle/lib.ts`)
|
|
260
|
+
with that contract and installs the tooltip fallback there.
|
|
261
|
+
`src/components/info/feature-info.vue` provides the memoised wrapper from
|
|
262
|
+
`src/composables/info/lux-tpl-context.composable.ts`.
|
|
263
|
+
- **External host.** Either passes its own instance, configured to the same
|
|
264
|
+
contract, or bootstraps one with `createLuxTplI18next()`, which applies the
|
|
265
|
+
contract and installs the fallback. Either way the host serves the
|
|
266
|
+
geoportail's translation files, e.g. at the `loadPath` it passes.
|
|
267
|
+
|
|
268
|
+
## How the geoportail and an external host consume the package
|
|
269
|
+
|
|
270
|
+
The geoportail compiles the package **sources** as part of the app; an external
|
|
271
|
+
host (e.g. the 3D viewer) installs the **built bundle**. The two entries differ
|
|
272
|
+
only by the Tailwind sheet: `src/index.ts` is the public API plus
|
|
273
|
+
`templates-styles.css`, and `src/lib-entry.ts`, the build entry, adds
|
|
274
|
+
`src/tailwind.css` on top.
|
|
275
|
+
|
|
276
|
+
| | Geoportail (this repo) | External host |
|
|
277
|
+
| --------------------------- | ---------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------ |
|
|
278
|
+
| 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` |
|
|
279
|
+
| Types | `src/`, via `paths` in `tsconfig.app.json` | `dist/index.d.ts` |
|
|
280
|
+
| 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` |
|
|
281
|
+
| Preflight reset | the app's, global | Tailwind's, scoped to `.lux-tpl-root` |
|
|
282
|
+
| `templates-styles.css` | imported by `src/index.ts`, processed by the app's Vite | bundled into `dist/style.css` |
|
|
283
|
+
| `.lux-btn`, `.lux-btn-grey` | the app's `src/assets/main.css` | the copy in `src/tailwind.css` |
|
|
284
|
+
| Theme colours | the app's `:root` custom properties | the same properties if the host sets them, else the geoportail fallbacks |
|
|
285
|
+
| Stylesheet import | **none** — importing `style.css` would emit the utilities twice | `import '@geoportallux/feature-info-templates/style.css'` |
|
|
286
|
+
|
|
287
|
+
Because the geoportail provides the utilities, the reset and the buttons
|
|
288
|
+
globally, it hides styling gaps an external host hits: markup outside
|
|
289
|
+
`.lux-tpl-root` (see the styling contract), a utility or button style missing
|
|
290
|
+
from the package's own Tailwind config. Check style changes against the built
|
|
291
|
+
`dist/style.css`, not only in the app.
|
|
292
|
+
|
|
293
|
+
One asset difference: Vite's library mode inlines every asset, so
|
|
294
|
+
`dist/style.css` embeds `solarkataster_1.png` as base64 (~119 KB), whereas the
|
|
295
|
+
geoportail serves it as a separate file.
|
|
296
|
+
|
|
297
|
+
## Contributing
|
|
298
|
+
|
|
299
|
+
The self-containment claim at the top is enforced, not aspirational:
|
|
300
|
+
|
|
301
|
+
- `tsconfig.json` has **no `paths`**, so a stray `@/...` import fails
|
|
302
|
+
`npm run type-check`, which `npm run build` runs first.
|
|
303
|
+
- `vite.config.ts` throws on rollup's `UNRESOLVED_IMPORT` — Vite's lib mode
|
|
304
|
+
would otherwise externalise an unresolved app import silently.
|
|
305
|
+
- ESLint `no-restricted-imports` flags `@/*`, `pinia` and `i18next-vue` in the
|
|
306
|
+
editor, and `vue/no-v-html` keeps raw HTML out (three audited exceptions carry
|
|
307
|
+
an inline disable).
|
|
308
|
+
- CI runs `npm run build:templates` (after `npm ci` and `lint`, before the
|
|
309
|
+
app's own type-check and build), so the package has to compile with no
|
|
310
|
+
access to `src/`. Note the job is `continue-on-error: true`, so this
|
|
311
|
+
reports rather than blocks — as do all the repo's other CI checks.
|
|
312
|
+
|
|
313
|
+
Two guards exist because the geoportail cannot reproduce the failure they catch
|
|
314
|
+
— it provides globals (a preflight reset, a live i18next singleton, an
|
|
315
|
+
app-registered sanitize directive) that a bare host does not:
|
|
316
|
+
|
|
317
|
+
| Guard | Catches |
|
|
318
|
+
| ---------------------------------------------------- | ------------------------------------------------------------------------------------- |
|
|
319
|
+
| `src/components/templates/sanitized-html.spec.ts` | a template using a directive the package does not own |
|
|
320
|
+
| `src/components/templates/injected-language.spec.ts` | reading `i18next.language` from the module singleton instead of the injected instance |
|
|
321
|
+
|
|
322
|
+
E2E lives in the app, at `cypress/e2e/info/feature-info.cy.ts`.
|
|
323
|
+
|
|
324
|
+
## Scripts
|
|
325
|
+
|
|
326
|
+
| Command | What it does |
|
|
327
|
+
| -------------------- | ---------------------------------------------- |
|
|
328
|
+
| `npm run type-check` | `vue-tsc` with no `@/*` path mapping |
|
|
329
|
+
| `npm run build` | type-check, then bundle + emit `.d.ts` and CSS |
|
|
330
|
+
| `npm run build:only` | bundle without the type-check gate |
|
|
331
|
+
|
|
332
|
+
## Publishing
|
|
333
|
+
|
|
334
|
+
`.github/workflows/publish-templates.yml` publishes on a `templates-v*` tag, via
|
|
335
|
+
npm trusted publishing (OIDC — no token). Bump the version, merge, then tag the
|
|
336
|
+
merge commit.
|
|
337
|
+
|
|
338
|
+
Bump from the repo root:
|
|
339
|
+
|
|
340
|
+
```bash
|
|
341
|
+
npm version 0.2.0 -w @geoportallux/feature-info-templates --no-git-tag-version
|
|
342
|
+
```
|
|
343
|
+
|
|
344
|
+
or from this directory, where `-w` is not needed:
|
|
345
|
+
|
|
346
|
+
```bash
|
|
347
|
+
cd packages/feature-info-templates
|
|
348
|
+
npm version 0.2.0 --no-git-tag-version
|
|
349
|
+
```
|
|
350
|
+
|
|
351
|
+
The root form also updates the version this package is recorded under in the
|
|
352
|
+
root `package-lock.json`; the `cd` form may not, so check `git status` for a
|
|
353
|
+
stale lockfile before committing. Then, once merged:
|
|
354
|
+
|
|
355
|
+
```bash
|
|
356
|
+
git tag templates-v0.2.0 && git push origin templates-v0.2.0 # from anywhere in the repo
|
|
357
|
+
```
|
|
358
|
+
|
|
359
|
+
`--no-git-tag-version` matters: `npm version` would otherwise create a `v0.2.0`
|
|
360
|
+
tag, which is the wrong format and triggers the two workflows listening on
|
|
361
|
+
`tags: '*'`. The workflow fails if the tag and `package.json` disagree, and
|
|
362
|
+
`dist/` is gitignored so the tarball is always built in CI. Tags are not
|
|
363
|
+
branch-bound, so a prerelease can be published from a feature branch before it
|
|
364
|
+
merges — note it still takes the `latest` dist-tag unless you move it
|
|
365
|
+
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,22 @@
|
|
|
1
|
+
import { FeatureInfoJSON, FeatureJSON } from '../../models';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
layers: FeatureInfoJSON;
|
|
4
|
+
fid?: (feature: FeatureJSON) => string;
|
|
5
|
+
};
|
|
6
|
+
declare var __VLS_1: {}, __VLS_3: {
|
|
7
|
+
feature: FeatureJSON;
|
|
8
|
+
};
|
|
9
|
+
type __VLS_Slots = {} & {
|
|
10
|
+
'layer-content'?: (props: typeof __VLS_1) => any;
|
|
11
|
+
} & {
|
|
12
|
+
'feature-content'?: (props: typeof __VLS_3) => any;
|
|
13
|
+
};
|
|
14
|
+
declare const _default: __VLS_WithSlots<import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
15
|
+
fid: (feature: FeatureJSON) => string;
|
|
16
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>, __VLS_Slots>;
|
|
17
|
+
export default _default;
|
|
18
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
19
|
+
new (): {
|
|
20
|
+
$slots: S;
|
|
21
|
+
};
|
|
22
|
+
};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { FeatureInfoJSON } from '../../models';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
layers: FeatureInfoJSON;
|
|
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,6 @@
|
|
|
1
|
+
import { FeatureInfoJSON } from '../../models';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
layers: FeatureInfoJSON;
|
|
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,6 @@
|
|
|
1
|
+
import { FeatureInfoJSON } from '../../models';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
layers: FeatureInfoJSON;
|
|
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,6 @@
|
|
|
1
|
+
import { FeatureInfoJSON } from '../../models';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
layers: FeatureInfoJSON;
|
|
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,6 @@
|
|
|
1
|
+
import { FeatureInfoJSON } from '../../models';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
layers: FeatureInfoJSON;
|
|
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,6 @@
|
|
|
1
|
+
import { FeatureInfoJSON } from '../../models';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
layers: FeatureInfoJSON;
|
|
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,6 @@
|
|
|
1
|
+
import { FeatureInfoJSON } from '../../models';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
layers: FeatureInfoJSON;
|
|
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,6 @@
|
|
|
1
|
+
import { FeatureInfoJSON } from '../../models';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
layers: FeatureInfoJSON;
|
|
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,6 @@
|
|
|
1
|
+
import { FeatureInfoJSON } from '../../models';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
layers: FeatureInfoJSON;
|
|
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,6 @@
|
|
|
1
|
+
import { FeatureInfoJSON } from '../../models';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
layers: FeatureInfoJSON;
|
|
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,6 @@
|
|
|
1
|
+
import { FeatureInfoJSON } from '../../models';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
layers: FeatureInfoJSON;
|
|
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,6 @@
|
|
|
1
|
+
import { FeatureInfoJSON } from '../../models';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
layers: FeatureInfoJSON;
|
|
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,6 @@
|
|
|
1
|
+
import { FeatureInfoJSON } from '../../models';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
layers: FeatureInfoJSON;
|
|
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,13 @@
|
|
|
1
|
+
import { FeatureInfoJSON } from '../../models';
|
|
2
|
+
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
3
|
+
layers: {
|
|
4
|
+
type: () => FeatureInfoJSON;
|
|
5
|
+
required: true;
|
|
6
|
+
};
|
|
7
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
8
|
+
layers: {
|
|
9
|
+
type: () => FeatureInfoJSON;
|
|
10
|
+
required: true;
|
|
11
|
+
};
|
|
12
|
+
}>> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
13
|
+
export default _default;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { FeatureInfoJSON } from '../../models';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
layers: FeatureInfoJSON;
|
|
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,6 @@
|
|
|
1
|
+
import { FeatureInfoJSON } from '../../models';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
layers: FeatureInfoJSON;
|
|
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,6 @@
|
|
|
1
|
+
import { FeatureInfoJSON } from '../../models';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
layers: FeatureInfoJSON;
|
|
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,6 @@
|
|
|
1
|
+
import { FeatureInfoJSON } from '../../models';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
layers: FeatureInfoJSON;
|
|
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,6 @@
|
|
|
1
|
+
import { FeatureInfoJSON } from '../../models';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
layers: FeatureInfoJSON;
|
|
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,6 @@
|
|
|
1
|
+
import { FeatureInfoJSON } from '../../models';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
layers: FeatureInfoJSON;
|
|
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;
|