wacomm 1.67.4 → 1.67.6
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/Autocomplete.d.ts +2 -1
- package/dist/TextUpdater.d.ts +1 -2
- package/dist/{index-DimNXsPQ.mjs → index-BqiEKacV.mjs} +46 -44
- package/dist/{index-CNE5PAc3.js → index-COcN_SpW.js} +2 -2
- package/dist/{mapbox-gl-DYDdSuJS.mjs → mapbox-gl-B5cY397a.mjs} +1 -1
- package/dist/{mapbox-gl-c5js2Pds.js → mapbox-gl-DkmfG0c0.js} +1 -1
- package/dist/{maplibre-gl-rTf1rgFE.mjs → maplibre-gl-Qb19mG-P.mjs} +1 -1
- package/dist/{maplibre-gl-CqM-dl7l.js → maplibre-gl-wxX8sUSA.js} +1 -1
- package/dist/wacomm.cjs.js +1 -1
- package/dist/wacomm.es.js +1 -1
- package/package.json +1 -1
package/dist/Autocomplete.d.ts
CHANGED
|
@@ -10,6 +10,7 @@ interface AutocompleteProps {
|
|
|
10
10
|
inputValue: string;
|
|
11
11
|
onSelect: (option: AutocompleteOption) => void;
|
|
12
12
|
onChange: (text: string) => void;
|
|
13
|
+
disabled?: boolean;
|
|
13
14
|
}
|
|
14
|
-
declare function Autocomplete({ className, ref, inputValue, options, onSelect, onChange, placeholder }: AutocompleteProps): import("react/jsx-runtime").JSX.Element;
|
|
15
|
+
declare function Autocomplete({ className, ref, inputValue, options, onSelect, onChange, placeholder, disabled }: AutocompleteProps): import("react/jsx-runtime").JSX.Element;
|
|
15
16
|
export default Autocomplete;
|
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;
|
|
@@ -9039,22 +9039,24 @@ function tj({
|
|
|
9039
9039
|
options: n,
|
|
9040
9040
|
onSelect: r,
|
|
9041
9041
|
onChange: s,
|
|
9042
|
-
placeholder: i = ""
|
|
9042
|
+
placeholder: i = "",
|
|
9043
|
+
disabled: a = !1
|
|
9043
9044
|
}) {
|
|
9044
|
-
const [
|
|
9045
|
-
|
|
9046
|
-
},
|
|
9047
|
-
s(
|
|
9045
|
+
const [l, c] = Ue(!1), u = (f, d) => {
|
|
9046
|
+
d && r(d);
|
|
9047
|
+
}, p = (f, d) => {
|
|
9048
|
+
s(d);
|
|
9048
9049
|
};
|
|
9049
9050
|
return /* @__PURE__ */ b.jsx(
|
|
9050
9051
|
z1,
|
|
9051
9052
|
{
|
|
9053
|
+
disabled: a,
|
|
9052
9054
|
className: e,
|
|
9053
9055
|
ref: t,
|
|
9054
9056
|
options: n,
|
|
9055
|
-
getOptionLabel: (
|
|
9056
|
-
isOptionEqualToValue: (
|
|
9057
|
-
filterOptions: (
|
|
9057
|
+
getOptionLabel: (f) => f.value,
|
|
9058
|
+
isOptionEqualToValue: (f, d) => f.id === d.id,
|
|
9059
|
+
filterOptions: (f) => f,
|
|
9058
9060
|
popupIcon: null,
|
|
9059
9061
|
inputValue: o,
|
|
9060
9062
|
clearOnBlur: !1,
|
|
@@ -9071,14 +9073,15 @@ function tj({
|
|
|
9071
9073
|
top: "50%",
|
|
9072
9074
|
transform: "translateY(-50%)",
|
|
9073
9075
|
paddingLeft: "8px",
|
|
9074
|
-
display:
|
|
9076
|
+
display: l || o ? "none" : "block",
|
|
9075
9077
|
border: "none"
|
|
9076
9078
|
}
|
|
9077
9079
|
},
|
|
9078
|
-
renderInput: (
|
|
9080
|
+
renderInput: (f) => /* @__PURE__ */ b.jsx(
|
|
9079
9081
|
B1,
|
|
9080
9082
|
{
|
|
9081
|
-
...
|
|
9083
|
+
...f,
|
|
9084
|
+
disabled: a,
|
|
9082
9085
|
slotProps: {
|
|
9083
9086
|
inputLabel: {
|
|
9084
9087
|
sx: {
|
|
@@ -9086,13 +9089,13 @@ function tj({
|
|
|
9086
9089
|
}
|
|
9087
9090
|
}
|
|
9088
9091
|
},
|
|
9089
|
-
label: `${
|
|
9092
|
+
label: `${l || o ? "" : i}`
|
|
9090
9093
|
}
|
|
9091
9094
|
),
|
|
9092
|
-
onInputChange:
|
|
9093
|
-
onChange:
|
|
9094
|
-
onFocus: () =>
|
|
9095
|
-
onBlur: () =>
|
|
9095
|
+
onInputChange: p,
|
|
9096
|
+
onChange: u,
|
|
9097
|
+
onFocus: () => c(!0),
|
|
9098
|
+
onBlur: () => c(!1)
|
|
9096
9099
|
}
|
|
9097
9100
|
);
|
|
9098
9101
|
}
|
|
@@ -9389,30 +9392,29 @@ const jT = ({
|
|
|
9389
9392
|
function sj({
|
|
9390
9393
|
text: e,
|
|
9391
9394
|
onSave: t,
|
|
9392
|
-
|
|
9393
|
-
|
|
9394
|
-
|
|
9395
|
-
|
|
9396
|
-
|
|
9397
|
-
|
|
9398
|
-
|
|
9399
|
-
|
|
9400
|
-
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
|
|
9401
9403
|
}) {
|
|
9402
|
-
const
|
|
9404
|
+
const u = () => s(!1), [p, f] = Ue(e);
|
|
9403
9405
|
return Rb(() => {
|
|
9404
|
-
|
|
9405
|
-
}),
|
|
9406
|
+
o && u();
|
|
9407
|
+
}), o ? /* @__PURE__ */ b.jsxs(Ts, { className: "TextUpdaterEditing w-full gap-2", children: [
|
|
9406
9408
|
/* @__PURE__ */ b.jsx(
|
|
9407
9409
|
jT,
|
|
9408
9410
|
{
|
|
9409
|
-
className: Pe("bg-gray-100 border border-gray-300 rounded-lg",
|
|
9410
|
-
minRows:
|
|
9411
|
-
maxRows:
|
|
9412
|
-
placeholder:
|
|
9413
|
-
text:
|
|
9414
|
-
onChange:
|
|
9415
|
-
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
|
|
9416
9418
|
}
|
|
9417
9419
|
),
|
|
9418
9420
|
/* @__PURE__ */ b.jsx(
|
|
@@ -9421,20 +9423,20 @@ function sj({
|
|
|
9421
9423
|
saveLabel: "Save",
|
|
9422
9424
|
cancelLabel: "Cancel",
|
|
9423
9425
|
onSave: () => {
|
|
9424
|
-
t(
|
|
9426
|
+
t(p), u();
|
|
9425
9427
|
},
|
|
9426
|
-
onCancel:
|
|
9427
|
-
isSaveDisabled:
|
|
9428
|
-
isCancelDisabled:
|
|
9428
|
+
onCancel: u,
|
|
9429
|
+
isSaveDisabled: !p || p.trim().length === 0 || c,
|
|
9430
|
+
isCancelDisabled: c
|
|
9429
9431
|
}
|
|
9430
9432
|
)
|
|
9431
9433
|
] }) : /* @__PURE__ */ b.jsxs(
|
|
9432
9434
|
eo,
|
|
9433
9435
|
{
|
|
9434
|
-
className: Pe("TextUpdaterNonEditing w-full gap-2 items-start",
|
|
9436
|
+
className: Pe("TextUpdaterNonEditing w-full gap-2 items-start", l),
|
|
9435
9437
|
children: [
|
|
9436
|
-
/* @__PURE__ */ b.jsx(oh, { className: Pe("grow",
|
|
9437
|
-
/* @__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 })
|
|
9438
9440
|
]
|
|
9439
9441
|
}
|
|
9440
9442
|
);
|
|
@@ -39007,11 +39009,11 @@ function sO(e) {
|
|
|
39007
39009
|
}, [r]), null;
|
|
39008
39010
|
}
|
|
39009
39011
|
const xL = vr(sO);
|
|
39010
|
-
const iO = import("./maplibre-gl-
|
|
39012
|
+
const iO = import("./maplibre-gl-Qb19mG-P.mjs").then((e) => e.m), aO = P.forwardRef(function(t, o) {
|
|
39011
39013
|
return Wg(t, o, iO);
|
|
39012
39014
|
}), lO = qg;
|
|
39013
39015
|
const cO = rO;
|
|
39014
|
-
const uO = import("./mapbox-gl-
|
|
39016
|
+
const uO = import("./mapbox-gl-B5cY397a.mjs").then((e) => e.m), CL = P.forwardRef(function(t, o) {
|
|
39015
39017
|
return Wg(t, o, uO);
|
|
39016
39018
|
}), pO = qg;
|
|
39017
39019
|
function dO({ locations: e }) {
|