wacomm 1.67.5 → 1.68.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.
- package/dist/TextUpdater.d.ts +1 -2
- package/dist/{index-GgfDkaO3.mjs → index-C8f9jgLU.mjs} +47 -47
- package/dist/{index-OJRQSC7Q.js → index-k_bYzNmy.js} +2 -2
- package/dist/{mapbox-gl-Bx7wuEo0.js → mapbox-gl-BqhMq54J.js} +1 -1
- package/dist/{mapbox-gl-BS6I54Ye.mjs → mapbox-gl-D-7cHwFO.mjs} +1 -1
- package/dist/{maplibre-gl-CKd_KkEr.js → maplibre-gl-C6d_x1GF.js} +1 -1
- package/dist/{maplibre-gl-DveZ3my2.mjs → maplibre-gl-Dn7ceRi-.mjs} +1 -1
- package/dist/osmMap/OsmMap.d.ts +6 -5
- package/dist/wacomm.cjs.js +1 -1
- package/dist/wacomm.es.js +1 -1
- package/package.json +1 -1
package/dist/TextUpdater.d.ts
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
export interface TextUpdaterProps {
|
|
2
2
|
text: string;
|
|
3
3
|
onSave: (v: string) => void;
|
|
4
|
-
isLoading: boolean;
|
|
5
4
|
isEditing: boolean;
|
|
6
5
|
minRows?: number;
|
|
7
6
|
maxRows?: number;
|
|
@@ -11,5 +10,5 @@ export interface TextUpdaterProps {
|
|
|
11
10
|
classNameNonEditing?: string;
|
|
12
11
|
disabled?: boolean;
|
|
13
12
|
}
|
|
14
|
-
declare function TextUpdater({ text: textInit, onSave,
|
|
13
|
+
declare function TextUpdater({ text: textInit, onSave, isEditing, minRows, maxRows, setIsEditing, placeholder, classNameEditing, classNameNonEditing, disabled }: TextUpdaterProps): import("react/jsx-runtime").JSX.Element;
|
|
15
14
|
export default TextUpdater;
|
|
@@ -9392,30 +9392,29 @@ const jT = ({
|
|
|
9392
9392
|
function sj({
|
|
9393
9393
|
text: e,
|
|
9394
9394
|
onSave: t,
|
|
9395
|
-
|
|
9396
|
-
|
|
9397
|
-
|
|
9398
|
-
|
|
9399
|
-
|
|
9400
|
-
|
|
9401
|
-
|
|
9402
|
-
|
|
9403
|
-
disabled: u = !1
|
|
9395
|
+
isEditing: o,
|
|
9396
|
+
minRows: n = 1,
|
|
9397
|
+
maxRows: r = 1,
|
|
9398
|
+
setIsEditing: s,
|
|
9399
|
+
placeholder: i = "A brief introduction...",
|
|
9400
|
+
classNameEditing: a = "",
|
|
9401
|
+
classNameNonEditing: l = "",
|
|
9402
|
+
disabled: c = !1
|
|
9404
9403
|
}) {
|
|
9405
|
-
const
|
|
9404
|
+
const u = () => s(!1), [p, f] = Ue(e);
|
|
9406
9405
|
return Rb(() => {
|
|
9407
|
-
|
|
9408
|
-
}),
|
|
9406
|
+
o && u();
|
|
9407
|
+
}), o ? /* @__PURE__ */ b.jsxs(Ts, { className: "TextUpdaterEditing w-full gap-2", children: [
|
|
9409
9408
|
/* @__PURE__ */ b.jsx(
|
|
9410
9409
|
jT,
|
|
9411
9410
|
{
|
|
9412
|
-
className: Pe("bg-gray-100 border border-gray-300 rounded-lg",
|
|
9413
|
-
minRows:
|
|
9414
|
-
maxRows:
|
|
9415
|
-
placeholder:
|
|
9416
|
-
text:
|
|
9417
|
-
onChange:
|
|
9418
|
-
disabled:
|
|
9411
|
+
className: Pe("bg-gray-100 border border-gray-300 rounded-lg", a),
|
|
9412
|
+
minRows: n,
|
|
9413
|
+
maxRows: r,
|
|
9414
|
+
placeholder: i,
|
|
9415
|
+
text: p,
|
|
9416
|
+
onChange: f,
|
|
9417
|
+
disabled: c
|
|
9419
9418
|
}
|
|
9420
9419
|
),
|
|
9421
9420
|
/* @__PURE__ */ b.jsx(
|
|
@@ -9424,20 +9423,20 @@ function sj({
|
|
|
9424
9423
|
saveLabel: "Save",
|
|
9425
9424
|
cancelLabel: "Cancel",
|
|
9426
9425
|
onSave: () => {
|
|
9427
|
-
t(
|
|
9426
|
+
t(p), u();
|
|
9428
9427
|
},
|
|
9429
|
-
onCancel:
|
|
9430
|
-
isSaveDisabled:
|
|
9431
|
-
isCancelDisabled:
|
|
9428
|
+
onCancel: u,
|
|
9429
|
+
isSaveDisabled: !p || p.trim().length === 0 || c,
|
|
9430
|
+
isCancelDisabled: c
|
|
9432
9431
|
}
|
|
9433
9432
|
)
|
|
9434
9433
|
] }) : /* @__PURE__ */ b.jsxs(
|
|
9435
9434
|
eo,
|
|
9436
9435
|
{
|
|
9437
|
-
className: Pe("TextUpdaterNonEditing w-full gap-2 items-start",
|
|
9436
|
+
className: Pe("TextUpdaterNonEditing w-full gap-2 items-start", l),
|
|
9438
9437
|
children: [
|
|
9439
|
-
/* @__PURE__ */ b.jsx(oh, { className: Pe("grow",
|
|
9440
|
-
/* @__PURE__ */ b.jsx(th, { className: "cursor-pointer", onClick: () =>
|
|
9438
|
+
/* @__PURE__ */ b.jsx(oh, { className: Pe("grow", l), text: p, placeholder: i }),
|
|
9439
|
+
/* @__PURE__ */ b.jsx(th, { className: "cursor-pointer", onClick: () => s(!0), isHighlighted: !0 })
|
|
9441
9440
|
]
|
|
9442
9441
|
}
|
|
9443
9442
|
);
|
|
@@ -39010,11 +39009,11 @@ function sO(e) {
|
|
|
39010
39009
|
}, [r]), null;
|
|
39011
39010
|
}
|
|
39012
39011
|
const xL = vr(sO);
|
|
39013
|
-
const iO = import("./maplibre-gl-
|
|
39012
|
+
const iO = import("./maplibre-gl-Dn7ceRi-.mjs").then((e) => e.m), aO = P.forwardRef(function(t, o) {
|
|
39014
39013
|
return Wg(t, o, iO);
|
|
39015
39014
|
}), lO = qg;
|
|
39016
39015
|
const cO = rO;
|
|
39017
|
-
const uO = import("./mapbox-gl-
|
|
39016
|
+
const uO = import("./mapbox-gl-D-7cHwFO.mjs").then((e) => e.m), CL = P.forwardRef(function(t, o) {
|
|
39018
39017
|
return Wg(t, o, uO);
|
|
39019
39018
|
}), pO = qg;
|
|
39020
39019
|
function dO({ locations: e }) {
|
|
@@ -39025,39 +39024,40 @@ function dO({ locations: e }) {
|
|
|
39025
39024
|
const wL = ({
|
|
39026
39025
|
longitude: e,
|
|
39027
39026
|
latitude: t,
|
|
39028
|
-
|
|
39029
|
-
|
|
39030
|
-
|
|
39031
|
-
|
|
39027
|
+
zoom: o = 10,
|
|
39028
|
+
setCoordinates: n,
|
|
39029
|
+
locations: r = [],
|
|
39030
|
+
token: s,
|
|
39031
|
+
navigationControl: i
|
|
39032
39032
|
}) => {
|
|
39033
|
-
const
|
|
39033
|
+
const a = dt(null), [l, c] = Ue({
|
|
39034
39034
|
longitude: e,
|
|
39035
39035
|
latitude: t,
|
|
39036
|
-
zoom:
|
|
39036
|
+
zoom: o
|
|
39037
39037
|
});
|
|
39038
39038
|
return Ge(() => {
|
|
39039
|
-
|
|
39039
|
+
a.current && a.current.flyTo({
|
|
39040
39040
|
center: [e, t],
|
|
39041
|
-
zoom:
|
|
39041
|
+
zoom: o,
|
|
39042
39042
|
duration: 3e3,
|
|
39043
39043
|
essential: !0
|
|
39044
39044
|
});
|
|
39045
|
-
}, [t, e]), /* @__PURE__ */ b.jsxs(
|
|
39045
|
+
}, [t, e, o]), /* @__PURE__ */ b.jsxs(
|
|
39046
39046
|
aO,
|
|
39047
39047
|
{
|
|
39048
|
-
ref:
|
|
39049
|
-
...
|
|
39050
|
-
mapStyle: `https://tiles.locationiq.com/v3/streets/vector.json?key=${
|
|
39048
|
+
ref: a,
|
|
39049
|
+
...l,
|
|
39050
|
+
mapStyle: `https://tiles.locationiq.com/v3/streets/vector.json?key=${s}`,
|
|
39051
39051
|
style: { width: "100%", height: "100%" },
|
|
39052
|
-
onMove: (
|
|
39053
|
-
onClick: (
|
|
39054
|
-
const { lng:
|
|
39055
|
-
|
|
39052
|
+
onMove: (u) => c(u.viewState),
|
|
39053
|
+
onClick: (u) => {
|
|
39054
|
+
const { lng: p, lat: f } = u.lngLat;
|
|
39055
|
+
n && n({ lat: f, lng: p });
|
|
39056
39056
|
},
|
|
39057
39057
|
children: [
|
|
39058
|
-
|
|
39059
|
-
/* @__PURE__ */ b.jsx(dO, { locations:
|
|
39060
|
-
|
|
39058
|
+
/* @__PURE__ */ b.jsx(lO, { longitude: e, latitude: t, children: "📌" }),
|
|
39059
|
+
/* @__PURE__ */ b.jsx(dO, { locations: r }),
|
|
39060
|
+
/* @__PURE__ */ b.jsx(cO, { position: i.position })
|
|
39061
39061
|
]
|
|
39062
39062
|
}
|
|
39063
39063
|
);
|