wafields 0.15.0 → 0.15.1
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/attributes/components/AttributeUpdater.d.ts +2 -1
- package/dist/{index-DNl8MsPe.mjs → index-C_F4ptdA.mjs} +14 -13
- package/dist/{index-DeLigKaZ.js → index-Cgs1ad1I.js} +2 -2
- package/dist/{mapbox-gl-DYDdSuJS-BpFyUuqx.mjs → mapbox-gl-DYDdSuJS-BxawXV96.mjs} +1 -1
- package/dist/{mapbox-gl-DYDdSuJS-e0sHR9z1.js → mapbox-gl-DYDdSuJS-Ds2NhJBh.js} +1 -1
- package/dist/{maplibre-gl-rTf1rgFE-Bkpm9bFU.mjs → maplibre-gl-rTf1rgFE-Bi5-5cx5.mjs} +1 -1
- package/dist/{maplibre-gl-rTf1rgFE-BFObHc4l.js → maplibre-gl-rTf1rgFE-CwIffhCJ.js} +1 -1
- package/dist/wafields.cjs.js +1 -1
- package/dist/wafields.es.js +1 -1
- package/package.json +1 -1
|
@@ -5,6 +5,7 @@ interface AttributeUpdaterProps {
|
|
|
5
5
|
onSave: (v: any) => void;
|
|
6
6
|
AttributeEditing: ElementType;
|
|
7
7
|
AttributeNonEdit: ElementType;
|
|
8
|
+
disabled?: boolean;
|
|
8
9
|
}
|
|
9
|
-
declare function AttributeUpdater({ label, value: valueInit, onSave, AttributeEditing, AttributeNonEdit }: AttributeUpdaterProps): import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
declare function AttributeUpdater({ label, value: valueInit, onSave, AttributeEditing, AttributeNonEdit, disabled }: AttributeUpdaterProps): import("react/jsx-runtime").JSX.Element;
|
|
10
11
|
export default AttributeUpdater;
|
|
@@ -36374,10 +36374,10 @@ function SE(e) {
|
|
|
36374
36374
|
Bo(t._container, o);
|
|
36375
36375
|
}, [o]), null;
|
|
36376
36376
|
}
|
|
36377
|
-
const hT = Oo(SE), IE = import("./maplibre-gl-rTf1rgFE-
|
|
36377
|
+
const hT = Oo(SE), IE = import("./maplibre-gl-rTf1rgFE-Bi5-5cx5.mjs").then((e) => e.m), gT = y.forwardRef(function(e, t) {
|
|
36378
36378
|
return Hv(e, t, IE);
|
|
36379
36379
|
});
|
|
36380
|
-
const ME = import("./mapbox-gl-DYDdSuJS-
|
|
36380
|
+
const ME = import("./mapbox-gl-DYDdSuJS-BxawXV96.mjs").then((e) => e.m), vT = y.forwardRef(function(e, t) {
|
|
36381
36381
|
return Hv(e, t, ME);
|
|
36382
36382
|
});
|
|
36383
36383
|
const Io = Math.min, Wr = Math.max, Jr = Math.round, Hr = Math.floor, sn = (e) => ({
|
|
@@ -40830,25 +40830,26 @@ function CT({
|
|
|
40830
40830
|
value: t,
|
|
40831
40831
|
onSave: n,
|
|
40832
40832
|
AttributeEditing: r,
|
|
40833
|
-
AttributeNonEdit: o
|
|
40833
|
+
AttributeNonEdit: o,
|
|
40834
|
+
disabled: a = !1
|
|
40834
40835
|
}) {
|
|
40835
|
-
const [
|
|
40836
|
-
n(
|
|
40837
|
-
},
|
|
40838
|
-
|
|
40836
|
+
const [i, s] = mt(!1), [l, c] = mt(t), u = () => {
|
|
40837
|
+
n(l), s(!1);
|
|
40838
|
+
}, d = () => {
|
|
40839
|
+
c(t), s(!1);
|
|
40839
40840
|
};
|
|
40840
40841
|
return Ve(() => {
|
|
40841
|
-
|
|
40842
|
+
c(t);
|
|
40842
40843
|
}, [JSON.stringify(t)]), k1(() => {
|
|
40843
|
-
|
|
40844
|
+
s(!1);
|
|
40844
40845
|
}), /* @__PURE__ */ fe.jsxs(dr, { className: "AttributeUpdater w-full justify-between items-start", children: [
|
|
40845
40846
|
/* @__PURE__ */ fe.jsx(s0, { className: "text-gray-600 w-1/5", label: e }),
|
|
40846
40847
|
/* @__PURE__ */ fe.jsxs(dr, { className: "w-4/5 justify-between items-start", children: [
|
|
40847
|
-
|
|
40848
|
-
/* @__PURE__ */ fe.jsx(r, { value:
|
|
40849
|
-
/* @__PURE__ */ fe.jsx($2, { onSave:
|
|
40848
|
+
i ? /* @__PURE__ */ fe.jsxs(dr, { className: "w-full justify-between", children: [
|
|
40849
|
+
/* @__PURE__ */ fe.jsx(r, { value: l, onChange: c, disabled: a }),
|
|
40850
|
+
/* @__PURE__ */ fe.jsx($2, { onSave: u, onCancel: d })
|
|
40850
40851
|
] }) : t ? /* @__PURE__ */ fe.jsx(o, { value: t }) : /* @__PURE__ */ fe.jsx(to, {}),
|
|
40851
|
-
/* @__PURE__ */ fe.jsx(k2, { onClick: () =>
|
|
40852
|
+
/* @__PURE__ */ fe.jsx(k2, { onClick: () => s(!0), hidden: i, isHighlighted: !0 })
|
|
40852
40853
|
] })
|
|
40853
40854
|
] });
|
|
40854
40855
|
}
|