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.
@@ -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;
@@ -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, isLoading, isEditing, minRows, maxRows, setIsEditing, placeholder, classNameEditing, classNameNonEditing, disabled }: TextUpdaterProps): import("react/jsx-runtime").JSX.Element;
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 [a, l] = Ue(!1), c = (p, f) => {
9045
- f && r(f);
9046
- }, u = (p, f) => {
9047
- s(f);
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: (p) => p.value,
9056
- isOptionEqualToValue: (p, f) => p.id === f.id,
9057
- filterOptions: (p) => p,
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: a || o ? "none" : "block",
9076
+ display: l || o ? "none" : "block",
9075
9077
  border: "none"
9076
9078
  }
9077
9079
  },
9078
- renderInput: (p) => /* @__PURE__ */ b.jsx(
9080
+ renderInput: (f) => /* @__PURE__ */ b.jsx(
9079
9081
  B1,
9080
9082
  {
9081
- ...p,
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: `${a || o ? "" : i}`
9092
+ label: `${l || o ? "" : i}`
9090
9093
  }
9091
9094
  ),
9092
- onInputChange: u,
9093
- onChange: c,
9094
- onFocus: () => l(!0),
9095
- onBlur: () => l(!1)
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
- isLoading: o,
9393
- isEditing: n,
9394
- minRows: r = 1,
9395
- maxRows: s = 1,
9396
- setIsEditing: i,
9397
- placeholder: a = "A brief introduction...",
9398
- classNameEditing: l = "",
9399
- classNameNonEditing: c = "",
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 p = () => i(!1), [f, d] = Ue(e);
9404
+ const u = () => s(!1), [p, f] = Ue(e);
9403
9405
  return Rb(() => {
9404
- n && p();
9405
- }), n ? /* @__PURE__ */ b.jsxs(Ts, { className: "TextUpdaterEditing w-full gap-2", children: [
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", l),
9410
- minRows: r,
9411
- maxRows: s,
9412
- placeholder: a,
9413
- text: f,
9414
- onChange: d,
9415
- disabled: u
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(f), p();
9426
+ t(p), u();
9425
9427
  },
9426
- onCancel: p,
9427
- isSaveDisabled: f.length === 0 || o,
9428
- isCancelDisabled: o
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", c),
9436
+ className: Pe("TextUpdaterNonEditing w-full gap-2 items-start", l),
9435
9437
  children: [
9436
- /* @__PURE__ */ b.jsx(oh, { className: Pe("grow", c), text: f, placeholder: a }),
9437
- /* @__PURE__ */ b.jsx(th, { className: "cursor-pointer", onClick: () => i(!0), isHighlighted: !0 })
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-rTf1rgFE.mjs").then((e) => e.m), aO = P.forwardRef(function(t, o) {
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-DYDdSuJS.mjs").then((e) => e.m), CL = P.forwardRef(function(t, o) {
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 }) {