@gisce/react-ooui 2.77.0 → 2.77.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.
@@ -1 +1 @@
1
- {"version":3,"file":"AttachmentsButton.d.ts","sourceRoot":"","sources":["../../src/actionbar/AttachmentsButton.tsx"],"names":[],"mappings":"AAQA,OAAO,EACL,UAAU,EAEX,MAAM,4BAA4B,CAAC;AAIpC,MAAM,MAAM,sBAAsB,GAAG;IACnC,WAAW,CAAC,EAAE,GAAG,CAAC;IAClB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,kBAAkB,EAAE,MAAM,IAAI,CAAC;IAC/B,oBAAoB,EAAE,MAAM,IAAI,CAAC;IACjC,uBAAuB,EAAE,CAAC,UAAU,EAAE,UAAU,KAAK,IAAI,CAAC;CAC3D,CAAC;AAEF,iBAAS,iBAAiB,CAAC,KAAK,EAAE,sBAAsB,2CAoHvD;AAED,eAAe,iBAAiB,CAAC"}
1
+ {"version":3,"file":"AttachmentsButton.d.ts","sourceRoot":"","sources":["../../src/actionbar/AttachmentsButton.tsx"],"names":[],"mappings":"AAQA,OAAO,EACL,UAAU,EAEX,MAAM,4BAA4B,CAAC;AAIpC,MAAM,MAAM,sBAAsB,GAAG;IACnC,WAAW,CAAC,EAAE,GAAG,CAAC;IAClB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,kBAAkB,EAAE,MAAM,IAAI,CAAC;IAC/B,oBAAoB,EAAE,MAAM,IAAI,CAAC;IACjC,uBAAuB,EAAE,CAAC,UAAU,EAAE,UAAU,KAAK,IAAI,CAAC;CAC3D,CAAC;AAEF,iBAAS,iBAAiB,CAAC,KAAK,EAAE,sBAAsB,2CAqHvD;AAED,eAAe,iBAAiB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"useNextPrevious.d.ts","sourceRoot":"","sources":["../../src/actionbar/useNextPrevious.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,eAAe;;;CA4H3B,CAAC"}
1
+ {"version":3,"file":"useNextPrevious.d.ts","sourceRoot":"","sources":["../../src/actionbar/useNextPrevious.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,eAAe;;;CA6H3B,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"Field.d.ts","sourceRoot":"","sources":["../../src/common/Field.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA8B,MAAM,OAAO,CAAC;AAEnD,OAAO,EAAE,KAAK,IAAI,SAAS,EAAsB,MAAM,aAAa,CAAC;AAKrE,MAAM,CAAC,OAAO,UAAU,KAAK,CAAC,EAC5B,IAAI,EACJ,QAAQ,EACR,MAAqB,EACrB,aAAa,EACb,SAAiB,EACjB,UAAmB,EACnB,QAAgB,EAChB,IAAI,EACJ,SAAS,GACV,EAAE;IACD,IAAI,EAAE,SAAS,CAAC;IAChB,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,MAAM,CAAC,EAAE,YAAY,GAAG,UAAU,CAAC;IACnC,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,UAAU,CAAC,EAAE,MAAM,GAAG,QAAQ,GAAG,OAAO,CAAC;IACzC,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,IAAI,CAAC,EAAE,GAAG,CAAC;IACX,SAAS,CAAC,EAAE,GAAG,CAAC;CACjB,2CAkGA"}
1
+ {"version":3,"file":"Field.d.ts","sourceRoot":"","sources":["../../src/common/Field.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA8B,MAAM,OAAO,CAAC;AAEnD,OAAO,EAAE,KAAK,IAAI,SAAS,EAAsB,MAAM,aAAa,CAAC;AAKrE,MAAM,CAAC,OAAO,UAAU,KAAK,CAAC,EAC5B,IAAI,EACJ,QAAQ,EACR,MAAqB,EACrB,aAAa,EACb,SAAiB,EACjB,UAAmB,EACnB,QAAgB,EAChB,IAAI,EACJ,SAAS,GACV,EAAE;IACD,IAAI,EAAE,SAAS,CAAC;IAChB,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,MAAM,CAAC,EAAE,YAAY,GAAG,UAAU,CAAC;IACnC,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,UAAU,CAAC,EAAE,MAAM,GAAG,QAAQ,GAAG,OAAO,CAAC;IACzC,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,IAAI,CAAC,EAAE,GAAG,CAAC;IACX,SAAS,CAAC,EAAE,GAAG,CAAC;CACjB,2CAoGA"}
@@ -246,35 +246,35 @@ function $e({
246
246
  type: l,
247
247
  validator: c
248
248
  }
249
- ] : void 0, { getFieldMessage: v, getFieldMessageType: w } = Pi(), I = v(d), S = w(d);
249
+ ] : void 0, { getFieldMessage: v, getFieldMessageType: w } = Pi(), I = v(d), S = w(d), x = y.getFieldValue(d);
250
250
  ue(() => {
251
251
  (async () => {
252
252
  try {
253
253
  await y.validateFields([d]), p(!1);
254
- } catch (P) {
255
- const k = P.errorFields || [];
254
+ } catch (k) {
255
+ const M = k.errorFields || [];
256
256
  p(
257
- k.some((M) => M.name[0] === d)
257
+ M.some(($) => $.name[0] === d)
258
258
  );
259
259
  }
260
260
  })();
261
- }, [y, d, y.getFieldValue(d)]);
262
- const x = I || (e.tooltipInline ? e.tooltip : null), R = h || !!I && S === "error", _ = !!I && S === "warning", C = () => /* @__PURE__ */ s(
261
+ }, [y, d, x]);
262
+ const R = I || (e.tooltipInline ? e.tooltip : null), _ = h || !!I && S === "error", C = !!I && S === "warning", b = () => /* @__PURE__ */ s(
263
263
  Dt.Item,
264
264
  {
265
265
  className: "mb-0",
266
266
  name: d,
267
267
  valuePropName: r,
268
268
  rules: g,
269
- validateStatus: R ? "error" : _ ? "warning" : void 0,
270
- help: x,
271
- hasFeedback: R || _,
269
+ validateStatus: _ ? "error" : C ? "warning" : void 0,
270
+ help: R,
271
+ hasFeedback: _ || C,
272
272
  children: t
273
273
  }
274
274
  );
275
275
  if (!o)
276
- return C();
277
- const b = /* @__PURE__ */ s(
276
+ return b();
277
+ const E = /* @__PURE__ */ s(
278
278
  Vr,
279
279
  {
280
280
  ooui: new Mn({
@@ -287,11 +287,11 @@ function $e({
287
287
  }
288
288
  );
289
289
  return n === "horizontal" ? (() => /* @__PURE__ */ V(Ye, { align: "middle", className: "pb-1 pt-1", children: [
290
- /* @__PURE__ */ s(Ie, { className: "ml-2", flex: "7rem", children: /* @__PURE__ */ s("div", { className: "flex flex-col items-end", children: b }) }),
291
- /* @__PURE__ */ s(Ie, { flex: "auto", children: C() })
290
+ /* @__PURE__ */ s(Ie, { className: "ml-2", flex: "7rem", children: /* @__PURE__ */ s("div", { className: "flex flex-col items-end", children: E }) }),
291
+ /* @__PURE__ */ s(Ie, { flex: "auto", children: b() })
292
292
  ] }))() : (() => /* @__PURE__ */ V(de, { children: [
293
- b,
294
- C()
293
+ E,
294
+ b()
295
295
  ] }))();
296
296
  }
297
297
  const { confirm: dd } = xt, Yt = ({
@@ -14067,7 +14067,7 @@ function qg(e) {
14067
14067
  );
14068
14068
  return ue(() => {
14069
14069
  y();
14070
- }, [y]), /* @__PURE__ */ V(de, { children: [
14070
+ }, []), /* @__PURE__ */ V(de, { children: [
14071
14071
  /* @__PURE__ */ s(
14072
14072
  Gg,
14073
14073
  {
@@ -14109,7 +14109,7 @@ const zg = () => {
14109
14109
  );
14110
14110
  ue(() => () => {
14111
14111
  c();
14112
- }, [c]);
14112
+ }, []);
14113
14113
  const { showErrorNotification: d } = ht(), f = D(
14114
14114
  async (g) => {
14115
14115
  var v;