@datagouv/components-next 1.0.2-dev.130 → 1.0.2-dev.132
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 +7 -6
- package/dist/{Control-b-43UT2B.js → Control-B9WQxlpJ.js} +10 -10
- package/dist/{Datafair.client-CFl7MKdB.js → Datafair.client-DXPU1V24.js} +1 -1
- package/dist/{Event-py_AAwJY.js → Event-iXDrp-fy.js} +15 -15
- package/dist/{Image-BHQYZWzH.js → Image-mNMBOofs.js} +22 -22
- package/dist/{JsonPreview.client-CowJU7XP.js → JsonPreview.client-D1SnGfWG.js} +2 -2
- package/dist/{Map-CtP7leHl.js → Map-BfqKMw0S.js} +165 -165
- package/dist/{MapContainer.client-CgdBWq2S.js → MapContainer.client-DlsaEVGx.js} +16 -16
- package/dist/{OSM-gdDSIsDA.js → OSM-CcrUhItr.js} +1 -1
- package/dist/{PdfPreview.client-Dm4l4fyb.js → PdfPreview.client-C9OrLR0z.js} +2 -2
- package/dist/{Pmtiles.client-DsjzH41p.js → Pmtiles.client-CyylWfTy.js} +4456 -4437
- package/dist/{PreviewWrapper.vue_vue_type_script_setup_true_lang-BgFVrfFi.js → PreviewWrapper.vue_vue_type_script_setup_true_lang-CtXZOHXI.js} +1 -1
- package/dist/{ScaleLine-hG-FhNqy.js → ScaleLine-VGQ7nkMS.js} +2 -2
- package/dist/{Tile-D6rFonpT.js → Tile-CSpn0Ca8.js} +47 -47
- package/dist/{TileImage-cfrEgz5y.js → TileImage-CpbaEFwd.js} +44 -44
- package/dist/{View-vp7vDb9q.js → View-BYBpt-AU.js} +58 -58
- package/dist/{XmlPreview.client-DBceFnA1.js → XmlPreview.client-DoX7RurH.js} +3 -3
- package/dist/{common-C8efyyuc.js → common-BoeTUnDZ.js} +58 -58
- package/dist/components-next.js +35 -35
- package/dist/{index-DWmJJEjk.js → index-Br1sa7wQ.js} +4675 -4778
- package/dist/{leaflet-src-CGmV0V-K.js → leaflet-src-DWG7tmpQ.js} +34 -34
- package/dist/{main-CQREzlRN.js → main-BU6kP4dE.js} +13050 -12138
- package/dist/{proj-CsjVeojN.js → proj-DxGbobp7.js} +110 -110
- package/dist/{tilecoord-CPcQJnrF.js → tilecoord-DvX7WWiA.js} +94 -94
- package/dist/{vue3-xml-viewer.common-d08lX8ER.js → vue3-xml-viewer.common-Cpui-Yi9.js} +16 -16
- package/package.json +1 -1
- package/src/functions/dates.ts +3 -2
package/README.md
CHANGED
|
@@ -65,7 +65,7 @@ app.vueApp.use(datagouv, {
|
|
|
65
65
|
`@datagouv/components` is using [TailwindCSS](https://tailwindcss.com/docs) and some [DSFR](https://www.systeme-de-design.gouv.fr/) right now. The user needs to provide the correct version of the DSFR. Concerning TailwindCSS, there are two modes:
|
|
66
66
|
|
|
67
67
|
1. If the user is using TailwindCSS, it can import a full TailwindCSS config with `@import "@datagouv/components-next/assets/main.css";`, then build the CSS via TailwindCSS CLI or Vite plugin.
|
|
68
|
-
2. If the user is not using TailwindCSS, it can import an already built CSS file with `@import '@datagouv/components-next/dist/components.css';`. Note @dev, this file should be built before publishing the package to
|
|
68
|
+
2. If the user is not using TailwindCSS, it can import an already built CSS file with `@import '@datagouv/components-next/dist/components.css';`. Note @dev, this file should be built before publishing the package to PNPM with `pnpm run css`. For more details on the [technology stack](../README.md#-technology-stack), see the main README.
|
|
69
69
|
|
|
70
70
|
### I18n
|
|
71
71
|
|
|
@@ -94,8 +94,8 @@ For general development guidelines and contributing, see the [contributing secti
|
|
|
94
94
|
This component library uses both ESLint and Prettier for code quality and formatting:
|
|
95
95
|
|
|
96
96
|
```bash
|
|
97
|
-
|
|
98
|
-
|
|
97
|
+
pnpm run lint # Lint and auto-fix ESLint issues
|
|
98
|
+
pnpm run format # Format code with Prettier
|
|
99
99
|
```
|
|
100
100
|
|
|
101
101
|
**Note:** Make sure to run both commands before submitting contributions to ensure consistent code style.
|
|
@@ -172,10 +172,10 @@ To make a new release, you have to :
|
|
|
172
172
|
|
|
173
173
|
### Update the version
|
|
174
174
|
|
|
175
|
-
Use the dedicated
|
|
175
|
+
Use the dedicated pnpm command, with the correct parameter :
|
|
176
176
|
|
|
177
177
|
```
|
|
178
|
-
|
|
178
|
+
pnpm version VERSION
|
|
179
179
|
```
|
|
180
180
|
|
|
181
181
|
Where VERSION is :
|
|
@@ -187,7 +187,8 @@ Additional labels for pre-release and build metadata are available as extensions
|
|
|
187
187
|
### Publish to NPM
|
|
188
188
|
|
|
189
189
|
```
|
|
190
|
-
|
|
190
|
+
pnpm login
|
|
191
|
+
pnpm run publish-stable
|
|
191
192
|
```
|
|
192
193
|
|
|
193
194
|
## 📄 License
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { B as o, u as h, V as m, l as c } from "./proj-DxGbobp7.js";
|
|
2
2
|
const g = {
|
|
3
3
|
/**
|
|
4
4
|
* Triggered after a map frame is rendered.
|
|
@@ -135,14 +135,14 @@ class v extends o {
|
|
|
135
135
|
}
|
|
136
136
|
}
|
|
137
137
|
export {
|
|
138
|
-
|
|
138
|
+
v as C,
|
|
139
139
|
g as M,
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
140
|
+
u as a,
|
|
141
|
+
f as b,
|
|
142
|
+
y as c,
|
|
143
|
+
S as d,
|
|
144
|
+
L as e,
|
|
145
|
+
p as f,
|
|
146
|
+
C as g,
|
|
147
|
+
r as h
|
|
148
148
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as l, computed as a, openBlock as t, createElementBlock as o, createElementVNode as u, createBlock as f, withCtx as p, createTextVNode as m, toDisplayString as _, unref as h } from "vue";
|
|
2
|
-
import {
|
|
2
|
+
import { a as x, _ as g } from "./main-BU6kP4dE.js";
|
|
3
3
|
const v = { class: "fr-text--xs" }, b = { key: 0 }, k = ["src"], $ = /* @__PURE__ */ l({
|
|
4
4
|
__name: "Datafair.client",
|
|
5
5
|
props: {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { c as T } from "./Image-
|
|
1
|
+
import { I as x } from "./View-BYBpt-AU.js";
|
|
2
|
+
import { a as I } from "./common-BoeTUnDZ.js";
|
|
3
|
+
import { B as C, a6 as h, al as m, u as S, l as p, E as N, i as L, a3 as P, G as Z } from "./proj-DxGbobp7.js";
|
|
4
|
+
import { c as T } from "./Image-mNMBOofs.js";
|
|
5
5
|
const n = {
|
|
6
6
|
OPACITY: "opacity",
|
|
7
7
|
VISIBLE: "visible",
|
|
@@ -313,7 +313,7 @@ const K = {
|
|
|
313
313
|
*/
|
|
314
314
|
RENDERCOMPLETE: "rendercomplete"
|
|
315
315
|
};
|
|
316
|
-
class
|
|
316
|
+
class q extends D {
|
|
317
317
|
/**
|
|
318
318
|
* @param {Options<SourceType, NoInfer<Properties>>} options Layer options.
|
|
319
319
|
*/
|
|
@@ -588,9 +588,9 @@ function X(t, e) {
|
|
|
588
588
|
const s = e.zoom;
|
|
589
589
|
return s > t.minZoom && s <= t.maxZoom;
|
|
590
590
|
}
|
|
591
|
-
const
|
|
591
|
+
const U = [NaN, NaN, NaN, 0];
|
|
592
592
|
let _;
|
|
593
|
-
function
|
|
593
|
+
function V() {
|
|
594
594
|
return _ || (_ = T(1, 1, void 0, {
|
|
595
595
|
willReadFrequently: !0,
|
|
596
596
|
desynchronized: !0
|
|
@@ -628,7 +628,7 @@ function A(t) {
|
|
|
628
628
|
}
|
|
629
629
|
l(t);
|
|
630
630
|
}
|
|
631
|
-
const e =
|
|
631
|
+
const e = V();
|
|
632
632
|
e.fillStyle = "#abcdef";
|
|
633
633
|
let r = e.fillStyle;
|
|
634
634
|
e.fillStyle = t, e.fillStyle === r && (e.fillStyle = "#fedcba", r = e.fillStyle, e.fillStyle = t, e.fillStyle === r && l(t));
|
|
@@ -682,7 +682,7 @@ function ee(t) {
|
|
|
682
682
|
}
|
|
683
683
|
function j(t) {
|
|
684
684
|
if (t === "none")
|
|
685
|
-
return
|
|
685
|
+
return U;
|
|
686
686
|
if (d.hasOwnProperty(t))
|
|
687
687
|
return d[t];
|
|
688
688
|
if (R >= k) {
|
|
@@ -723,12 +723,12 @@ class re extends Z {
|
|
|
723
723
|
}
|
|
724
724
|
export {
|
|
725
725
|
D as B,
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
726
|
+
q as L,
|
|
727
|
+
U as N,
|
|
728
|
+
K as R,
|
|
729
|
+
te as a,
|
|
730
|
+
v as b,
|
|
731
|
+
re as c,
|
|
732
732
|
j as f,
|
|
733
733
|
X as i,
|
|
734
734
|
ee as l,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { aD as v, E as f, ar as C, aC as h, u as R } from "./proj-DxGbobp7.js";
|
|
2
2
|
const r = typeof navigator < "u" && typeof navigator.userAgent < "u" ? navigator.userAgent.toLowerCase() : "", I = r.includes("safari") && !r.includes("chrom");
|
|
3
3
|
I && (r.includes("version/15.4") || /cpu (os|iphone os) 15_4 like mac os x/.test(r));
|
|
4
|
-
const
|
|
4
|
+
const D = r.includes("webkit") && !r.includes("edge"), L = r.includes("macintosh"), w = typeof devicePixelRatio < "u" ? devicePixelRatio : 1, y = typeof WorkerGlobalScope < "u" && typeof OffscreenCanvas < "u" && self instanceof WorkerGlobalScope, u = typeof Image < "u" && Image.prototype.decode, p = typeof createImageBitmap == "function", O = (function() {
|
|
5
5
|
let e = !1;
|
|
6
6
|
try {
|
|
7
7
|
const t = Object.defineProperty({}, "passive", {
|
|
@@ -132,10 +132,10 @@ function W(e) {
|
|
|
132
132
|
function b(e) {
|
|
133
133
|
return e[0] > 0 && e[1] > 0;
|
|
134
134
|
}
|
|
135
|
-
function
|
|
135
|
+
function H(e, t, n) {
|
|
136
136
|
return n === void 0 && (n = [0, 0]), n[0] = e[0] * t + 0.5 | 0, n[1] = e[1] * t + 0.5 | 0, n;
|
|
137
137
|
}
|
|
138
|
-
function
|
|
138
|
+
function V(e, t) {
|
|
139
139
|
return Array.isArray(e) ? e : (t === void 0 ? t = [e, e] : (t[0] = e, t[1] = e), t);
|
|
140
140
|
}
|
|
141
141
|
const a = {
|
|
@@ -277,27 +277,27 @@ function Y(e, t) {
|
|
|
277
277
|
}
|
|
278
278
|
export {
|
|
279
279
|
w as D,
|
|
280
|
-
|
|
281
|
-
|
|
280
|
+
F as I,
|
|
281
|
+
L as M,
|
|
282
282
|
O as P,
|
|
283
283
|
_ as T,
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
284
|
+
D as W,
|
|
285
|
+
M as a,
|
|
286
|
+
T as b,
|
|
287
287
|
m as c,
|
|
288
|
-
|
|
288
|
+
a as d,
|
|
289
289
|
Y as e,
|
|
290
|
-
|
|
290
|
+
P as f,
|
|
291
291
|
N as g,
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
k,
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
292
|
+
g as h,
|
|
293
|
+
y as i,
|
|
294
|
+
G as j,
|
|
295
|
+
B as k,
|
|
296
|
+
W as l,
|
|
297
|
+
b as m,
|
|
298
|
+
K as n,
|
|
299
|
+
S as o,
|
|
300
|
+
k as r,
|
|
301
|
+
H as s,
|
|
302
|
+
V as t
|
|
303
303
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as c, defineAsyncComponent as u, openBlock as m, createBlock as p, unref as r, withCtx as f, createVNode as l } from "vue";
|
|
2
|
-
import {
|
|
3
|
-
import { _ as h } from "./PreviewWrapper.vue_vue_type_script_setup_true_lang-
|
|
2
|
+
import { u as d } from "./main-BU6kP4dE.js";
|
|
3
|
+
import { _ as h } from "./PreviewWrapper.vue_vue_type_script_setup_true_lang-CtXZOHXI.js";
|
|
4
4
|
const J = /* @__PURE__ */ c({
|
|
5
5
|
__name: "JsonPreview.client",
|
|
6
6
|
props: {
|