@archbase/components 3.0.22 → 3.0.25

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/index.js CHANGED
@@ -1,18 +1,18 @@
1
1
  import { jsx as n, Fragment as ot, jsxs as b } from "react/jsx-runtime";
2
- import { useMantineTheme as Mt, useMantineColorScheme as Lt, TextInput as at, Tooltip as je, ActionIcon as Ae, Checkbox as At, useInputProps as zo, CloseButton as Ur, Input as rt, Popover as Ct, ScrollArea as Rt, useCombobox as Io, Combobox as or, ComboboxTarget as Ro, PillsInput as Li, Pill as $o, Loader as sn, ComboboxDropdown as Po, Group as Ie, Image as ii, Text as K, CheckIcon as qs, InputBase as Ys, Chip as Un, Flex as dt, Rating as No, Button as _e, rem as Ut, Avatar as Qs, JsonInput as Xs, Select as Tt, PasswordInput as Ks, Radio as Fi, Skeleton as Vo, Switch as Js, Card as Zs, ColorPicker as ea, Textarea as yn, MultiSelect as Mo, Stack as We, Box as ye, Paper as Qe, Space as br, UnstyledButton as ta, Progress as nn, Modal as Jt, Slider as Gn, px as Ir, Menu as pt, Center as mt, LoadingOverlay as Ot, Alert as vr, Accordion as sr, NumberInput as _r, useProps as ra, ColorInput as na, Badge as oi, Code as Lo, Anchor as ia, Tabs as $n, MantineProvider as oa, SegmentedControl as sa, ColorSwatch as Bi, CopyButton as aa, Pagination as la, Title as Nr, Drawer as ca, HoverCard as Pn } from "@mantine/core";
2
+ import { useMantineTheme as Mt, useMantineColorScheme as Lt, TextInput as at, Tooltip as je, ActionIcon as Ae, Checkbox as At, useInputProps as zo, CloseButton as Ur, Input as rt, Popover as Ct, ScrollArea as Rt, useCombobox as Io, Combobox as or, ComboboxTarget as Ro, PillsInput as Li, Pill as $o, Loader as on, ComboboxDropdown as Po, Group as Ie, Image as ii, Text as K, CheckIcon as qs, InputBase as Ys, Chip as Wn, Flex as dt, Rating as No, Button as _e, rem as Ut, Avatar as Qs, JsonInput as Xs, Select as Tt, PasswordInput as Ks, Radio as Fi, Skeleton as Vo, Switch as Js, Card as Zs, ColorPicker as ea, Textarea as gn, MultiSelect as Mo, Stack as We, Box as ye, Paper as Qe, Space as br, UnstyledButton as ta, Progress as nn, Modal as Jt, Slider as Un, px as Ir, Menu as pt, Center as mt, LoadingOverlay as Ot, Alert as vr, Accordion as sr, NumberInput as _r, useProps as ra, ColorInput as na, Badge as oi, Code as Lo, Anchor as ia, Tabs as Rn, MantineProvider as oa, SegmentedControl as sa, ColorSwatch as Bi, CopyButton as aa, Pagination as la, Title as Nr, Drawer as ca, HoverCard as $n } from "@mantine/core";
3
3
  import { ActionIcon as tm, Badge as rm, Breadcrumbs as nm, Button as im, Fieldset as om, Loader as sm, Alert as am, Image as lm, NavLink as cm, Notification as dm, Pagination as um, Progress as hm, Text as fm, Title as pm } from "@mantine/core";
4
- import { useForceUpdate as nt, useUncontrolled as on, useDidUpdate as da, useDebouncedValue as si, useDebouncedState as ua, useId as ha, useMediaQuery as Oi, useElementSize as Fo, useHotkeys as fa, useDisclosure as pa, useLocalStorage as Bo } from "@mantine/hooks";
4
+ import { useForceUpdate as nt, useUncontrolled as Gn, useDidUpdate as da, useDebouncedValue as si, useDebouncedState as ua, useId as ha, useMediaQuery as Oi, useElementSize as Fo, useHotkeys as fa, useDisclosure as pa, useLocalStorage as Bo } from "@mantine/hooks";
5
5
  import * as _i from "react";
6
6
  import He, { useState as k, useRef as ue, useEffect as G, useCallback as T, forwardRef as ai, useContext as _t, memo as xr, useMemo as Ge, Fragment as ma, useLayoutEffect as ga, Component as ya, Children as qn, isValidElement as Yn, useImperativeHandle as ba } from "react";
7
- import { DataSourceEventNames as q, useArchbaseDidUpdate as lt, useArchbaseV1V2Compatibility as Ze, ArchbaseDataSource as an, useArchbaseDataSourceListener as Oo } from "@archbase/data";
8
- import { useValidationErrors as it, convertISOStringToDate as ln, useArchbaseTranslation as Xe, useArchbaseTheme as Zt, processErrorMessage as wa, isBase64 as Vr, formatStr as ar, ArchbaseObjectHelper as Bt, ArchbaseError as cn, isBase64Validate as Ca, useArchbaseSize as va, isLastElementOfArray as xa, useArchbaseBool as Ea, archbaseI18next as Xt, getPathDepthLevel as _o, setNestedObjectValue as ka, emit as tr, builder as Qt, EQ as jo, NEQ as Ho, GT as Qn, LT as Xn, GE as Wo, LE as Uo, OUT as Sa, IN as Aa, BT as ji, ArchbaseMasker as Da, useArchbaseAppContext as Ta } from "@archbase/core";
7
+ import { DataSourceEventNames as q, useArchbaseDidUpdate as lt, useArchbaseV1V2Compatibility as Ze, ArchbaseDataSource as sn, useArchbaseDataSourceListener as Oo } from "@archbase/data";
8
+ import { useValidationErrors as it, convertISOStringToDate as an, useArchbaseTranslation as Xe, useArchbaseTheme as Zt, processErrorMessage as wa, isBase64 as Vr, formatStr as ar, ArchbaseObjectHelper as Bt, ArchbaseError as ln, isBase64Validate as Ca, useArchbaseSize as va, isLastElementOfArray as xa, useArchbaseBool as Ea, archbaseI18next as Xt, getPathDepthLevel as _o, setNestedObjectValue as ka, emit as tr, builder as Qt, EQ as jo, NEQ as Ho, GT as Qn, LT as Xn, GE as Wo, LE as Uo, OUT as Sa, IN as Aa, BT as ji, ArchbaseMasker as Da, useArchbaseAppContext as Ta } from "@archbase/core";
9
9
  import { pickCalendarProps as za, useDatesContext as Ia, Calendar as Ra, HiddenDatesInput as $a, DateTimePicker as Pa, DatePickerInput as Hi, TimeInput as jr } from "@mantine/dates";
10
10
  import xt from "dayjs";
11
11
  import { IMaskInput as Go } from "react-imask";
12
12
  import Wi, { uniqueId as Dt } from "lodash";
13
- import { IconCalendar as Hr, IconArrowRight as qo, IconX as Gt, IconCrop as Na, IconCheck as li, IconCloudUpload as Nn, IconPhotoEdit as Va, IconCloudDownload as Ma, IconTrash as qt, IconSearch as ci, IconPlus as La, IconClock as wr, IconSquareCheck as Fa, IconSquare as Ba, IconChevronRight as Gr, IconChevronDown as dn, IconUpload as Oa, IconPhoto as _a, IconFileText as Ui, IconFileSpreadsheet as ja, IconFile as di, IconEdit as Yo, IconCameraPlus as Ha, IconZoomIn as bn, IconRotate as ui, IconMenu2 as Gi, IconAlertCircle as cr, IconZoomOut as hi, IconRefresh as Kn, IconArrowBigRightFilled as Wa, IconCirclePlus as wn, IconSettings as Qo, IconBug as fi, IconCircleCheck as Ua, IconInfoCircleFilled as Ga, IconAlertTriangleFilled as qa, IconCircleCheckFilled as Ya, IconChevronsLeft as Qa, IconChevronLeft as Xo, IconChevronsRight as Xa, IconDownload as Mr, IconPrinter as Cn, IconHighlight as Jn, IconMessage2 as Zn, IconBookmark as ei, IconMaximize as Ko, IconFilter as Ka, IconBolt as Ja, IconHistory as Za, IconStar as el, IconExternalLink as tl, IconPlayerPlay as Jo, IconPlayerPause as rl, IconPlayerSkipBack as nl, IconPlayerSkipForward as il, IconVolume3 as ol, IconVolume as sl, IconSubmarine as al, IconPictureInPicture as ll, IconMinimize as cl, IconEye as Zo, IconPalette as qi, IconTypography as dl, IconRuler as ul, IconBorderAll as hl, IconCopy as es } from "@tabler/icons-react";
13
+ import { IconCalendar as Hr, IconArrowRight as qo, IconX as Gt, IconCrop as Na, IconCheck as li, IconCloudUpload as Pn, IconPhotoEdit as Va, IconCloudDownload as Ma, IconTrash as qt, IconSearch as ci, IconPlus as La, IconClock as wr, IconSquareCheck as Fa, IconSquare as Ba, IconChevronRight as Gr, IconChevronDown as cn, IconUpload as Oa, IconPhoto as _a, IconFileText as Ui, IconFileSpreadsheet as ja, IconFile as di, IconEdit as Yo, IconCameraPlus as Ha, IconZoomIn as yn, IconRotate as ui, IconMenu2 as Gi, IconAlertCircle as cr, IconZoomOut as hi, IconRefresh as Kn, IconArrowBigRightFilled as Wa, IconCirclePlus as bn, IconSettings as Qo, IconBug as fi, IconCircleCheck as Ua, IconInfoCircleFilled as Ga, IconAlertTriangleFilled as qa, IconCircleCheckFilled as Ya, IconChevronsLeft as Qa, IconChevronLeft as Xo, IconChevronsRight as Xa, IconDownload as Mr, IconPrinter as wn, IconHighlight as Jn, IconMessage2 as Zn, IconBookmark as ei, IconMaximize as Ko, IconFilter as Ka, IconBolt as Ja, IconHistory as Za, IconStar as el, IconExternalLink as tl, IconPlayerPlay as Jo, IconPlayerPause as rl, IconPlayerSkipBack as nl, IconPlayerSkipForward as il, IconVolume3 as ol, IconVolume as sl, IconSubmarine as al, IconPictureInPicture as ll, IconMinimize as cl, IconEye as Zo, IconPalette as qi, IconTypography as dl, IconRuler as ul, IconBorderAll as hl, IconCopy as es } from "@tabler/icons-react";
14
14
  import fl from "dayjs/plugin/duration";
15
- import { MIME_TYPES as Vn, Dropzone as Yr } from "@mantine/dropzone";
15
+ import { MIME_TYPES as Nn, Dropzone as Yr } from "@mantine/dropzone";
16
16
  import pl from "react-easy-crop";
17
17
  import * as bt from "d3";
18
18
  import ml from "@rehooks/component-size";
@@ -399,25 +399,23 @@ function ti(e) {
399
399
  return rr[_].parse(pe);
400
400
  } catch {
401
401
  try {
402
- return ln(pe);
402
+ return an(pe);
403
403
  } catch {
404
404
  return null;
405
405
  }
406
406
  }
407
407
  return pe;
408
- }, [ne, Z, Q] = on({
408
+ }, [ne, Z, Q] = Gn({
409
409
  value: te(i),
410
410
  defaultValue: te(o),
411
411
  finalValue: null,
412
412
  onChange: s
413
- }), [ie, le] = k(e.error), Ce = nt(), [be, $] = on({
413
+ }), [ie, le] = k(e.error), Ce = nt(), [be, $] = Gn({
414
414
  value: P ? typeof P == "string" ? P : P.toISOString().split("T")[0] : null,
415
415
  defaultValue: ne ? ne.toISOString().split("T")[0] : M ? typeof M == "string" ? M : M.toISOString().split("T")[0] : null,
416
416
  finalValue: null,
417
417
  onChange: O
418
- }), xe = (pe) => pe ? rr[_].format(pe) : "", [ce, se] = on({
419
- value: xe(ne)
420
- }), Re = (pe) => {
418
+ }), xe = (pe) => pe ? rr[_].format(pe) : "", [ce, se] = k(xe(ne)), Re = (pe) => {
421
419
  const Fe = rr[_].parse(pe);
422
420
  return Number.isNaN(Fe.getTime()) ? Ll(pe) : Fe;
423
421
  }, $e = () => {
@@ -438,7 +436,7 @@ function ti(e) {
438
436
  throw new Error("Invalid date");
439
437
  tt = pe;
440
438
  } catch {
441
- Fe = ln(pe), tt = rr[_].format(Fe);
439
+ Fe = an(pe), tt = rr[_].format(Fe);
442
440
  }
443
441
  else
444
442
  Fe = pe instanceof Date ? pe : new Date(pe), tt = rr[_].format(Fe);
@@ -473,7 +471,7 @@ function ti(e) {
473
471
  Q && ne && $(ne.toISOString().split("T")[0]);
474
472
  }, [Q, ne]), G(() => {
475
473
  se(xe(ne));
476
- }, [oe.locale]);
474
+ }, [oe.locale, ne]);
477
475
  const [fe, Te] = k(!1), qe = (pe) => {
478
476
  if (!$e()) {
479
477
  const Fe = pe.currentTarget.value;
@@ -797,7 +795,7 @@ function gf({
797
795
  style: U,
798
796
  onClick: () => ve.openDropdown(),
799
797
  rightSection: /* @__PURE__ */ b(ot, { children: [
800
- $ && /* @__PURE__ */ n(sn, { size: "xs" }),
798
+ $ && /* @__PURE__ */ n(on, { size: "xs" }),
801
799
  !$ && ne !== null && t && !o && !pe() ? /* @__PURE__ */ n(
802
800
  Ur,
803
801
  {
@@ -1029,7 +1027,7 @@ function yf({
1029
1027
  ct(Ee), Le(w(ne) || "");
1030
1028
  },
1031
1029
  onFocus: (Ee) => vt(Ee),
1032
- rightSection: $ ? /* @__PURE__ */ n(sn, { size: "xs" }) : ne !== null && t && !o && !De() ? /* @__PURE__ */ n(
1030
+ rightSection: $ ? /* @__PURE__ */ n(on, { size: "xs" }) : ne !== null && t && !o && !De() ? /* @__PURE__ */ n(
1033
1031
  Ur,
1034
1032
  {
1035
1033
  size: "sm",
@@ -1148,7 +1146,7 @@ function bf({
1148
1146
  y && y(F);
1149
1147
  };
1150
1148
  return /* @__PURE__ */ n(
1151
- Un,
1149
+ Wn,
1152
1150
  {
1153
1151
  disabled: r,
1154
1152
  readOnly: i || E.isReadOnly,
@@ -1249,13 +1247,13 @@ function wf({
1249
1247
  l && (C = l(L)), e && !e.isBrowsing() && t && e.getFieldValue(t) !== C && E.handleValueChange(C), r && r(C);
1250
1248
  }, _ = A || V;
1251
1249
  return /* @__PURE__ */ n(rt.Wrapper, { label: m, error: _, description: w, children: /* @__PURE__ */ n(
1252
- Un.Group,
1250
+ Wn.Group,
1253
1251
  {
1254
1252
  defaultValue: void 0,
1255
1253
  value: W,
1256
1254
  onChange: x,
1257
1255
  multiple: p,
1258
- children: /* @__PURE__ */ n(dt, { gap: "sm", wrap: "wrap", justify: "flex-start", align: "center", children: X.map((S) => /* @__PURE__ */ n(Un, { style: y, value: S.value, variant: h, type: f, children: S.label }, S.key)) })
1256
+ children: /* @__PURE__ */ n(dt, { gap: "sm", wrap: "wrap", justify: "flex-start", align: "center", children: X.map((S) => /* @__PURE__ */ n(Wn, { style: y, value: S.value, variant: h, type: f, children: S.label }, S.key)) })
1259
1257
  }
1260
1258
  ) });
1261
1259
  }
@@ -1860,7 +1858,7 @@ class Yl {
1860
1858
  }
1861
1859
  }
1862
1860
  }
1863
- class Mn {
1861
+ class Vn {
1864
1862
  /**
1865
1863
  * Creates a new Box instance.
1866
1864
  * @constructor
@@ -2042,9 +2040,9 @@ class Mn {
2042
2040
  }
2043
2041
  }
2044
2042
  function Ql(e) {
2045
- e.addEventListener("touchstart", Ln), e.addEventListener("touchend", Ln), e.addEventListener("touchmove", Ln);
2043
+ e.addEventListener("touchstart", Mn), e.addEventListener("touchend", Mn), e.addEventListener("touchmove", Mn);
2046
2044
  }
2047
- function Ln(e) {
2045
+ function Mn(e) {
2048
2046
  e.preventDefault();
2049
2047
  const t = e.changedTouches[0], r = {
2050
2048
  touchstart: "mousedown",
@@ -2146,7 +2144,7 @@ class mi {
2146
2144
  */
2147
2145
  initializeBox(t) {
2148
2146
  const r = t.startSize.width, i = t.startSize.height;
2149
- let o = new Mn(0, 0, r, i);
2147
+ let o = new Vn(0, 0, r, i);
2150
2148
  o.constrainToRatio(t.aspectRatio, [0.5, 0.5]);
2151
2149
  const s = t.minSize, l = t.maxSize;
2152
2150
  o.constrainToSize(
@@ -2227,7 +2225,7 @@ class mi {
2227
2225
  function o(a) {
2228
2226
  a.stopPropagation(), document.addEventListener("mouseup", l), document.addEventListener("mousemove", s);
2229
2227
  const c = r.cropperEl.getBoundingClientRect(), u = a.clientX - c.left, d = a.clientY - c.top;
2230
- i = r.box, r.box = new Mn(u, d, u + 1, d + 1), r.eventBus.dispatchEvent(
2228
+ i = r.box, r.box = new Vn(u, d, u + 1, d + 1), r.eventBus.dispatchEvent(
2231
2229
  new CustomEvent("handlestart", {
2232
2230
  detail: { handle: r.handles[4] }
2233
2231
  })
@@ -2282,7 +2280,7 @@ class mi {
2282
2280
  const z = m;
2283
2281
  m = w, w = z, s[1] = 1 - s[1];
2284
2282
  }
2285
- let B = new Mn(g, m, y, w);
2283
+ let B = new Vn(g, m, y, w);
2286
2284
  if (this.options.aspectRatio) {
2287
2285
  const z = this.options.aspectRatio;
2288
2286
  let A = !1;
@@ -3148,7 +3146,7 @@ const Kl = xr(({ src: e, size: t, croppUpdate: r }) => {
3148
3146
  border: `${Ut(1)} solid ${l === "dark" ? s.colors.dark[4] : s.colors.gray[3]}`
3149
3147
  },
3150
3148
  children: [
3151
- /* @__PURE__ */ n(je, { withinPortal: !0, withArrow: !0, label: `${a("archbase:Upload a image")}`, children: /* @__PURE__ */ n(Ae, { component: "button", color: "blue", variant: o, className: "icon-btn image-upload-btn", onClick: z, children: /* @__PURE__ */ n(Nn, { color: "purple" }) }) }),
3149
+ /* @__PURE__ */ n(je, { withinPortal: !0, withArrow: !0, label: `${a("archbase:Upload a image")}`, children: /* @__PURE__ */ n(Ae, { component: "button", color: "blue", variant: o, className: "icon-btn image-upload-btn", onClick: z, children: /* @__PURE__ */ n(Pn, { color: "purple" }) }) }),
3152
3150
  /* @__PURE__ */ n(
3153
3151
  "input",
3154
3152
  {
@@ -3190,7 +3188,7 @@ const Kl = xr(({ src: e, size: t, croppUpdate: r }) => {
3190
3188
  }
3191
3189
  ),
3192
3190
  !m.hideEditBtn && /* @__PURE__ */ b(ma, { children: [
3193
- /* @__PURE__ */ n("div", { className: "curtain", onClick: z, children: /* @__PURE__ */ n(je, { withinPortal: !0, withArrow: !0, label: `${a("archbase:Upload a image")}`, children: /* @__PURE__ */ n(Ae, { component: "button", color: "blue", variant: o, children: /* @__PURE__ */ n(Nn, { color: "white" }) }) }) }),
3191
+ /* @__PURE__ */ n("div", { className: "curtain", onClick: z, children: /* @__PURE__ */ n(je, { withinPortal: !0, withArrow: !0, label: `${a("archbase:Upload a image")}`, children: /* @__PURE__ */ n(Ae, { component: "button", color: "blue", variant: o, children: /* @__PURE__ */ n(Pn, { color: "white" }) }) }) }),
3194
3192
  /* @__PURE__ */ n(
3195
3193
  "input",
3196
3194
  {
@@ -3228,7 +3226,7 @@ const Kl = xr(({ src: e, size: t, croppUpdate: r }) => {
3228
3226
  },
3229
3227
  className: "editing-bar-btn",
3230
3228
  children: [
3231
- !m.hideAddBtn && /* @__PURE__ */ n(je, { withinPortal: !0, withArrow: !0, label: `${a("archbase:Upload a image")}`, children: /* @__PURE__ */ n(Ae, { id: "upload-img", color: "blue", variant: o, onClick: z, children: /* @__PURE__ */ n(Nn, { color: "purple" }) }) }),
3229
+ !m.hideAddBtn && /* @__PURE__ */ n(je, { withinPortal: !0, withArrow: !0, label: `${a("archbase:Upload a image")}`, children: /* @__PURE__ */ n(Ae, { id: "upload-img", color: "blue", variant: o, onClick: z, children: /* @__PURE__ */ n(Pn, { color: "purple" }) }) }),
3232
3230
  !m.hideEditBtn && /* @__PURE__ */ n(je, { withinPortal: !0, withArrow: !0, label: `${a("archbase:Open the editor panel")}`, children: /* @__PURE__ */ n(Ae, { id: "edit-img", color: "blue", variant: o, onClick: P, children: /* @__PURE__ */ n(Va, { color: "teal" }) }) }),
3233
3231
  !m.hideDownloadBtn && /* @__PURE__ */ n(je, { withinPortal: !0, withArrow: !0, label: `${a("archbase:Download the image")}`, children: /* @__PURE__ */ n(
3234
3232
  Ae,
@@ -4341,7 +4339,7 @@ function ac(e) {
4341
4339
  function lc(e, t, r, i, o, s) {
4342
4340
  if (!t && !r && !e)
4343
4341
  return [];
4344
- if (e && e instanceof an && i && o && s) {
4342
+ if (e && e instanceof sn && i && o && s) {
4345
4343
  const l = e;
4346
4344
  l.first();
4347
4345
  const a = [];
@@ -4484,12 +4482,12 @@ function ls({
4484
4482
  const Le = typeof r.addFieldChangeListener == "function";
4485
4483
  r.addListener(ct), Le && r.addFieldChangeListener(i, Te);
4486
4484
  }
4487
- return j && j instanceof an && j.addListener(Ke), () => {
4485
+ return j && j instanceof sn && j.addListener(Ke), () => {
4488
4486
  if (r && i) {
4489
4487
  const Le = typeof r.addFieldChangeListener == "function";
4490
4488
  r.removeListener(ct), Le && r.removeFieldChangeListener(i, Te);
4491
4489
  }
4492
- j && j instanceof an && j.removeListener(Ke);
4490
+ j && j instanceof sn && j.removeListener(Ke);
4493
4491
  };
4494
4492
  }, [r, i, ct, Te]), G(() => {
4495
4493
  W !== void 0 && ne(W);
@@ -4548,9 +4546,9 @@ function Jr(e, t, r) {
4548
4546
  return e && e.getTotalRecords() > 0 && e.browseRecords().map((o) => {
4549
4547
  if (r && !r.includes(".")) {
4550
4548
  if (!o.hasOwnProperty(r) || !o[r])
4551
- throw new cn("Foi encontrado um registro sem ID no dataSource passado para o Select.");
4549
+ throw new ln("Foi encontrado um registro sem ID no dataSource passado para o Select.");
4552
4550
  if (typeof t != "function" && (!o.hasOwnProperty(t) || !o[t]))
4553
- throw new cn("Foi encontrado um registro sem o texto no dataSource passado para a Select.");
4551
+ throw new ln("Foi encontrado um registro sem o texto no dataSource passado para a Select.");
4554
4552
  }
4555
4553
  i.push({
4556
4554
  label: o.label ? o.label : cs(t, o),
@@ -5023,9 +5021,9 @@ function $f({
5023
5021
  }
5024
5022
  ) });
5025
5023
  }
5026
- let un = null, ds = { en: {}, es: {}, ptBR: {} }, Zr = null;
5024
+ let dn = null, ds = { en: {}, es: {}, ptBR: {} }, Zr = null;
5027
5025
  async function pc() {
5028
- return Zr || (un ? Promise.resolve() : (Zr = (async () => {
5026
+ return Zr || (dn ? Promise.resolve() : (Zr = (async () => {
5029
5027
  const [e, t, r, i, o] = await Promise.all([
5030
5028
  import("suneditor-react"),
5031
5029
  // @ts-ignore - CSS import
@@ -5034,7 +5032,7 @@ async function pc() {
5034
5032
  import("suneditor/src/lang/es"),
5035
5033
  import("suneditor/src/lang/pt_br")
5036
5034
  ]);
5037
- un = e.default, ds = {
5035
+ dn = e.default, ds = {
5038
5036
  en: r.default,
5039
5037
  es: i.default,
5040
5038
  ptBR: o.default
@@ -5141,9 +5139,9 @@ function Pf({
5141
5139
  typeof window > "u" || pc().then(() => {
5142
5140
  Ne(!0), he({});
5143
5141
  });
5144
- }, []), !$e || !un)
5142
+ }, []), !$e || !dn)
5145
5143
  return /* @__PURE__ */ n(rt.Wrapper, { withAsterisk: s, label: l, description: a, error: Re, children: /* @__PURE__ */ n(Vo, { height: d || 200, width: u || "100%" }) });
5146
- const Ue = un, { en: Pe, es: Ye, ptBR: ge } = ds;
5144
+ const Ue = dn, { en: Pe, es: Ye, ptBR: ge } = ds;
5147
5145
  return /* @__PURE__ */ n(rt.Wrapper, { withAsterisk: s, label: l, description: a, error: Re, children: /* @__PURE__ */ n(
5148
5146
  Ue,
5149
5147
  {
@@ -5191,10 +5189,10 @@ function Pf({
5191
5189
  }
5192
5190
  ) });
5193
5191
  }
5194
- let hn = null, fn = null, en = null;
5192
+ let un = null, hn = null, en = null;
5195
5193
  async function gc() {
5196
- return en || (hn && fn ? Promise.resolve() : (en = (async () => {
5197
- fn = (await import("markdown-it")).default, hn = (await import("react-markdown-editor-lite")).default, await import("react-markdown-editor-lite/lib/index.css");
5194
+ return en || (un && hn ? Promise.resolve() : (en = (async () => {
5195
+ hn = (await import("markdown-it")).default, un = (await import("react-markdown-editor-lite")).default, await import("react-markdown-editor-lite/lib/index.css");
5198
5196
  })(), en));
5199
5197
  }
5200
5198
  function yc(e, t, r) {
@@ -5274,9 +5272,9 @@ function Nf({
5274
5272
  typeof window > "u" || gc().then(() => {
5275
5273
  de(!0), oe({});
5276
5274
  });
5277
- }, []), !Se || !hn || !fn)
5275
+ }, []), !Se || !un || !hn)
5278
5276
  return /* @__PURE__ */ n(rt.Wrapper, { withAsterisk: s, label: l, description: a, error: ee, children: /* @__PURE__ */ n(Vo, { height: d || 400, width: u || "100%" }) });
5279
- const we = hn, ze = fn, ve = {
5277
+ const we = un, ze = hn, ve = {
5280
5278
  width: u || "100%",
5281
5279
  ...d && { height: d },
5282
5280
  ...h && { minHeight: h },
@@ -5522,7 +5520,7 @@ function Lf({
5522
5520
  d && d(L);
5523
5521
  }, S = () => i || E.isReadOnly, F = X || R;
5524
5522
  return /* @__PURE__ */ n(
5525
- yn,
5523
+ gn,
5526
5524
  {
5527
5525
  disabled: r,
5528
5526
  readOnly: S(),
@@ -5740,7 +5738,7 @@ function Bf({
5740
5738
  ) })
5741
5739
  ] }) });
5742
5740
  }
5743
- const pn = (e) => {
5741
+ const fn = (e) => {
5744
5742
  if (!e)
5745
5743
  return "";
5746
5744
  const t = e.getHours().toString().padStart(2, "0"), r = e.getMinutes().toString().padStart(2, "0");
@@ -5748,7 +5746,7 @@ const pn = (e) => {
5748
5746
  }, no = (e) => e ? e.toLocaleDateString() : "", xc = (e, t) => {
5749
5747
  if (!e || !t)
5750
5748
  return "Selecionar intervalo";
5751
- const r = no(e), i = pn(e), o = no(t), s = pn(t);
5749
+ const r = no(e), i = fn(e), o = no(t), s = fn(t);
5752
5750
  return r === o ? `${r} ${i} - ${s}` : `${r} ${i} - ${o} ${s}`;
5753
5751
  }, Ec = (e, t) => {
5754
5752
  if (!e || !t)
@@ -5927,7 +5925,7 @@ Até: ${i}`;
5927
5925
  jr,
5928
5926
  {
5929
5927
  label: "Hora inicial",
5930
- value: pn(f.start),
5928
+ value: fn(f.start),
5931
5929
  onChange: (z) => W(z.currentTarget.value, !0),
5932
5930
  rightSection: /* @__PURE__ */ n(Ae, { onClick: () => E.current?.click(), children: /* @__PURE__ */ n(wr, { size: "1rem", stroke: 1.5 }) }),
5933
5931
  ref: E,
@@ -5950,7 +5948,7 @@ Até: ${i}`;
5950
5948
  jr,
5951
5949
  {
5952
5950
  label: "Hora final",
5953
- value: pn(f.end),
5951
+ value: fn(f.end),
5954
5952
  onChange: (z) => W(z.currentTarget.value, !1),
5955
5953
  rightSection: /* @__PURE__ */ n(Ae, { onClick: () => D.current?.click(), children: /* @__PURE__ */ n(wr, { size: "1rem", stroke: 1.5 }) }),
5956
5954
  ref: D,
@@ -5977,7 +5975,7 @@ Até: ${i}`;
5977
5975
  )
5978
5976
  ] });
5979
5977
  }, yi = He.createContext({}), kc = yi.Provider;
5980
- function mn({
5978
+ function pn({
5981
5979
  active: e,
5982
5980
  activeBackgroundColor: t,
5983
5981
  activeColor: r,
@@ -6040,13 +6038,13 @@ function mn({
6040
6038
  `lstItem_${E.ownerId}_${c}`
6041
6039
  );
6042
6040
  }
6043
- mn.defaultProps = {
6041
+ pn.defaultProps = {
6044
6042
  align: "left",
6045
6043
  justify: !1,
6046
6044
  showBorder: !1,
6047
6045
  disabled: !1
6048
6046
  };
6049
- mn.displayName = "ArchbaseListItem";
6047
+ pn.displayName = "ArchbaseListItem";
6050
6048
  function Sc(e) {
6051
6049
  const t = Mt(), { colorScheme: r } = Lt(), {
6052
6050
  activeBackgroundColor: i = t.colors[t.primaryColor][5],
@@ -6125,7 +6123,7 @@ function Sc(e) {
6125
6123
  m === void 0 && J(he), d && d(he, Ue);
6126
6124
  };
6127
6125
  G(() => {
6128
- V && V instanceof an && j >= 0 && V.getCurrentIndex() !== j && !V.isEmpty() && V.gotoRecord(j);
6126
+ V && V instanceof sn && j >= 0 && V.getCurrentIndex() !== j && !V.isEmpty() && V.gotoRecord(j);
6129
6127
  }, [j]);
6130
6128
  const Q = (he) => {
6131
6129
  const Ue = {
@@ -6198,7 +6196,7 @@ function Sc(e) {
6198
6196
  Ke || (Ke = `${re}_${Ye}`);
6199
6197
  const Je = `${re}_${Ye}`;
6200
6198
  return /* @__PURE__ */ n(
6201
- mn,
6199
+ pn,
6202
6200
  {
6203
6201
  disabled: Pe.disabled || S,
6204
6202
  id: Ke,
@@ -6233,14 +6231,14 @@ function Sc(e) {
6233
6231
  }), Ue;
6234
6232
  }, Ne = () => He.Children.toArray(z).map((he, Ue) => {
6235
6233
  if (he.props.visible && he.type && he.type.componentName !== "ArchbaseListItem")
6236
- throw new cn(
6234
+ throw new ln(
6237
6235
  "Apenas componentes do tipo ArchbaseListItem podem ser usados como filhos de ArchbaseList."
6238
6236
  );
6239
6237
  if (!he.id)
6240
- throw new cn("Todos os itens da lista devem conter um ID.");
6238
+ throw new ln("Todos os itens da lista devem conter um ID.");
6241
6239
  let Pe = he.active;
6242
6240
  return j >= 0 && (Pe = !1, j === Ue && (Pe = !0)), /* @__PURE__ */ n(
6243
- mn,
6241
+ pn,
6244
6242
  {
6245
6243
  disabled: he.disabled || S,
6246
6244
  id: he.id,
@@ -6364,7 +6362,7 @@ const us = ({
6364
6362
  }, [m, e, t]), W = Ge(() => {
6365
6363
  if (t.selectable)
6366
6364
  return m ? /* @__PURE__ */ n(Ae, { onClick: B, variant: "transparent", children: /* @__PURE__ */ n(Fa, { size: "1.2rem", style: H }) }) : /* @__PURE__ */ n(Ae, { onClick: B, variant: "transparent", children: /* @__PURE__ */ n(Ba, { size: "1.2rem", style: H }) });
6367
- }, [t.selectable, m, H, B]), z = Ge(() => g ? e.state?.loading === !0 ? /* @__PURE__ */ n("i", { style: { ...H, width: "1rem" }, className: "svg-inline--fa fa-spinner fa-w-16 fa-spin fa-lg" }) : /* @__PURE__ */ n(Ae, { onClick: D, variant: "transparent", children: /* @__PURE__ */ n(dn, { size: "1.2rem", style: { ...H } }) }) : /* @__PURE__ */ n(Ae, { onClick: D, variant: "transparent", children: /* @__PURE__ */ n(Gr, { size: "1.2rem", style: { ...H } }) }), [g, m, e, H, D, B]), A = Ge(() => {
6365
+ }, [t.selectable, m, H, B]), z = Ge(() => g ? e.state?.loading === !0 ? /* @__PURE__ */ n("i", { style: { ...H, width: "1rem" }, className: "svg-inline--fa fa-spinner fa-w-16 fa-spin fa-lg" }) : /* @__PURE__ */ n(Ae, { onClick: D, variant: "transparent", children: /* @__PURE__ */ n(cn, { size: "1.2rem", style: { ...H } }) }) : /* @__PURE__ */ n(Ae, { onClick: D, variant: "transparent", children: /* @__PURE__ */ n(Gr, { size: "1.2rem", style: { ...H } }) }), [g, m, e, H, D, B]), A = Ge(() => {
6368
6366
  const U = l();
6369
6367
  return U && U.id === e.id ? {
6370
6368
  color: t.focusedColor,
@@ -6932,7 +6930,7 @@ const us = ({
6932
6930
  },
6933
6931
  children: o ? /* @__PURE__ */ b(Ie, { justify: "space-between", wrap: "nowrap", children: [
6934
6932
  /* @__PURE__ */ b(Ie, { gap: "sm", wrap: "nowrap", children: [
6935
- /* @__PURE__ */ n(sn, { size: "xs" }),
6933
+ /* @__PURE__ */ n(on, { size: "xs" }),
6936
6934
  /* @__PURE__ */ n(
6937
6935
  K,
6938
6936
  {
@@ -6943,7 +6941,7 @@ const us = ({
6943
6941
  }
6944
6942
  )
6945
6943
  ] }),
6946
- /* @__PURE__ */ n(sn, { size: "xs" })
6944
+ /* @__PURE__ */ n(on, { size: "xs" })
6947
6945
  ] }) : B && J ? B(J) : /* @__PURE__ */ b(Ie, { justify: "space-between", wrap: "nowrap", children: [
6948
6946
  /* @__PURE__ */ b(Ie, { gap: "sm", wrap: "nowrap", children: [
6949
6947
  p,
@@ -7197,9 +7195,9 @@ const Hf = ({ targetDate: e, color: t }) => {
7197
7195
  }, p = (y) => {
7198
7196
  c(y);
7199
7197
  }, g = [
7200
- Vn.jpeg,
7201
- Vn.png,
7202
- Vn.pdf,
7198
+ Nn.jpeg,
7199
+ Nn.png,
7200
+ Nn.pdf,
7203
7201
  "application/msword",
7204
7202
  "application/vnd.openxmlformats-officedocument.wordprocessingml.document",
7205
7203
  "application/vnd.ms-excel",
@@ -7777,9 +7775,9 @@ function qf({
7777
7775
  ),
7778
7776
  /* @__PURE__ */ b(We, { gap: "xs", mt: "md", children: [
7779
7777
  /* @__PURE__ */ n(Ie, { justify: "space-between", children: /* @__PURE__ */ b(ye, { style: { flex: 1 }, children: [
7780
- /* @__PURE__ */ n(je, { label: "Zoom", children: /* @__PURE__ */ n(bn, { size: 20 }) }),
7778
+ /* @__PURE__ */ n(je, { label: "Zoom", children: /* @__PURE__ */ n(yn, { size: 20 }) }),
7781
7779
  /* @__PURE__ */ n(
7782
- Gn,
7780
+ Un,
7783
7781
  {
7784
7782
  value: M,
7785
7783
  onChange: O,
@@ -7794,7 +7792,7 @@ function qf({
7794
7792
  /* @__PURE__ */ n(Ie, { justify: "space-between", children: /* @__PURE__ */ b(ye, { style: { flex: 1 }, children: [
7795
7793
  /* @__PURE__ */ n(je, { label: `${ve("archbase:Rotation")}`, children: /* @__PURE__ */ n(ui, { size: 20 }) }),
7796
7794
  /* @__PURE__ */ n(
7797
- Gn,
7795
+ Un,
7798
7796
  {
7799
7797
  value: I,
7800
7798
  onChange: x,
@@ -8381,7 +8379,7 @@ function Uc({
8381
8379
  className: V,
8382
8380
  children: [
8383
8381
  !z && /* @__PURE__ */ b(Ie, { justify: "flex-end", p: "xs", style: { borderBottom: "1px solid var(--mantine-color-gray-3)" }, children: [
8384
- /* @__PURE__ */ n(Ae, { size: "sm", variant: "subtle", onClick: ve, title: String(_("Zoom in")), children: /* @__PURE__ */ n(bn, { size: 16 }) }),
8382
+ /* @__PURE__ */ n(Ae, { size: "sm", variant: "subtle", onClick: ve, title: String(_("Zoom in")), children: /* @__PURE__ */ n(yn, { size: 16 }) }),
8385
8383
  /* @__PURE__ */ n(Ae, { size: "sm", variant: "subtle", onClick: re, title: String(_("Zoom out")), children: /* @__PURE__ */ n(hi, { size: 16 }) }),
8386
8384
  /* @__PURE__ */ n(Ae, { size: "sm", variant: "subtle", onClick: te, title: String(_("Fit to items")), children: /* @__PURE__ */ n(Kn, { size: 16 }) }),
8387
8385
  /* @__PURE__ */ n(Ae, { size: "sm", variant: "subtle", onClick: ne, title: String(_("Go to today")), children: /* @__PURE__ */ n(Kn, { size: 16 }) }),
@@ -8588,7 +8586,7 @@ const nd = "_pointer_9trty_23", Nt = {
8588
8586
  pickerIcon: "#x1f4cb",
8589
8587
  withoutPicker: !1
8590
8588
  };
8591
- function Fn(e, t, r) {
8589
+ function Ln(e, t, r) {
8592
8590
  const i = [];
8593
8591
  for (let o = 0; o < e.parentNode.children.length; o += 1) {
8594
8592
  const s = e.parentNode.children[o];
@@ -8692,12 +8690,12 @@ class Kf extends ya {
8692
8690
  };
8693
8691
  handlerEventToggle = (t, r) => {
8694
8692
  t.classList.toggle("collapsed");
8695
- const i = Fn(t, "ul.json-dict, ol.json-array", function(o) {
8693
+ const i = Ln(t, "ul.json-dict, ol.json-array", function(o) {
8696
8694
  o.style.display = o.style.display === "" || o.style.display === "block" ? "none" : "block";
8697
8695
  });
8698
8696
  for (let o = 0; o < i.length; o += 1)
8699
8697
  if (!ld(i[o]))
8700
- Fn(i[o], ".json-placeholder", function(s) {
8698
+ Ln(i[o], ".json-placeholder", function(s) {
8701
8699
  return s.parentNode.removeChild(s);
8702
8700
  });
8703
8701
  else {
@@ -8716,7 +8714,7 @@ class Kf extends ya {
8716
8714
  typeof r.matches == "function" && r.matches("a.json-toggle") && (this.handlerEventToggle.call(null, r, t), t.stopPropagation(), t.preventDefault()), r = r.parentNode;
8717
8715
  };
8718
8716
  simulateClickHandler = (t, r) => {
8719
- Fn(t, "a.json-toggle", function(i) {
8717
+ Ln(t, "a.json-toggle", function(i) {
8720
8718
  return ad(i);
8721
8719
  }), r.stopPropagation(), r.preventDefault();
8722
8720
  };
@@ -9159,7 +9157,7 @@ const lr = (e, t) => {
9159
9157
  }
9160
9158
  ),
9161
9159
  /* @__PURE__ */ n(rt.Wrapper, { w: "100%", error: o, children: /* @__PURE__ */ n(
9162
- yn,
9160
+ gn,
9163
9161
  {
9164
9162
  value: u,
9165
9163
  disabled: !a,
@@ -9255,7 +9253,7 @@ const lr = (e, t) => {
9255
9253
  }
9256
9254
  ),
9257
9255
  /* @__PURE__ */ n(rt.Wrapper, { w: "100%", error: i, children: /* @__PURE__ */ n(
9258
- yn,
9256
+ gn,
9259
9257
  {
9260
9258
  value: u || "",
9261
9259
  disabled: !a,
@@ -9316,7 +9314,7 @@ const lr = (e, t) => {
9316
9314
  variant: "subtle",
9317
9315
  color: "green",
9318
9316
  "aria-label": `${l("archbase:Add Child Node")}`,
9319
- children: /* @__PURE__ */ n(wn, {})
9317
+ children: /* @__PURE__ */ n(bn, {})
9320
9318
  }
9321
9319
  ) }),
9322
9320
  /* @__PURE__ */ n(Ct.Dropdown, { w: "120px", color: "white", children: /* @__PURE__ */ b(We, { children: [
@@ -9524,7 +9522,7 @@ const lr = (e, t) => {
9524
9522
  );
9525
9523
  }
9526
9524
  },
9527
- children: /* @__PURE__ */ n(wn, {})
9525
+ children: /* @__PURE__ */ n(bn, {})
9528
9526
  }
9529
9527
  )
9530
9528
  }
@@ -9696,7 +9694,7 @@ const lr = (e, t) => {
9696
9694
  "ASSIGN_VALUE"
9697
9695
  );
9698
9696
  },
9699
- children: /* @__PURE__ */ n(wn, {})
9697
+ children: /* @__PURE__ */ n(bn, {})
9700
9698
  }
9701
9699
  )
9702
9700
  }
@@ -9809,13 +9807,13 @@ const lr = (e, t) => {
9809
9807
  const s = `field_${Wr()}`;
9810
9808
  i(`${e}.properties.${s}`, lr(Cr.string), "ASSIGN_VALUE");
9811
9809
  },
9812
- children: /* @__PURE__ */ n(wn, {})
9810
+ children: /* @__PURE__ */ n(bn, {})
9813
9811
  }
9814
9812
  )
9815
9813
  }
9816
9814
  ) })
9817
9815
  ] }) });
9818
- }, Bn = {
9816
+ }, Fn = {
9819
9817
  $schema: "http://json-schema.org/draft-07/schema#",
9820
9818
  type: "object",
9821
9819
  title: "title",
@@ -9828,18 +9826,18 @@ const lr = (e, t) => {
9828
9826
  onRootSchemaChange: r,
9829
9827
  readOnly: i = !1
9830
9828
  }) => {
9831
- const [o, s] = on({
9829
+ const [o, s] = Gn({
9832
9830
  value: {
9833
- jsonSchema: e ?? Bn,
9831
+ jsonSchema: e ?? Fn,
9834
9832
  isReadOnly: i,
9835
9833
  fieldId: 0
9836
9834
  },
9837
9835
  defaultValue: {
9838
- jsonSchema: t ?? Bn,
9836
+ jsonSchema: t ?? Fn,
9839
9837
  isReadOnly: i,
9840
9838
  fieldId: 0
9841
9839
  },
9842
- finalValue: Bn,
9840
+ finalValue: Fn,
9843
9841
  onChange: (c) => r(c.jsonSchema, uo(c.jsonSchema))
9844
9842
  }), { ready: l } = Xe(), a = (c, u, d) => {
9845
9843
  const h = yl(o, (f) => {
@@ -10389,7 +10387,7 @@ function fo({
10389
10387
  size: "lg",
10390
10388
  onClick: s,
10391
10389
  disabled: g || r >= 3,
10392
- children: /* @__PURE__ */ n(bn, { size: 18 })
10390
+ children: /* @__PURE__ */ n(yn, { size: 18 })
10393
10391
  }
10394
10392
  ) }),
10395
10393
  m.rotate && /* @__PURE__ */ n(je, { label: `${String(y("Rotate"))} (${i}°)`, children: /* @__PURE__ */ n(
@@ -10421,7 +10419,7 @@ function fo({
10421
10419
  size: "lg",
10422
10420
  onClick: p,
10423
10421
  disabled: g,
10424
- children: /* @__PURE__ */ n(Cn, { size: 18 })
10422
+ children: /* @__PURE__ */ n(wn, { size: 18 })
10425
10423
  }
10426
10424
  ) })
10427
10425
  ] })
@@ -10625,7 +10623,7 @@ function Rd({
10625
10623
  }
10626
10624
  ),
10627
10625
  w?.type === "comment" && /* @__PURE__ */ n(
10628
- yn,
10626
+ gn,
10629
10627
  {
10630
10628
  label: String(c("Comment")),
10631
10629
  placeholder: String(c("Enter your comment...")),
@@ -11042,15 +11040,15 @@ const fr = {
11042
11040
  "application/vnd.ms-powerpoint": "office",
11043
11041
  "application/vnd.openxmlformats-officedocument.presentationml.presentation": "office"
11044
11042
  };
11045
- function On(e) {
11043
+ function Bn(e) {
11046
11044
  const t = e.split(".");
11047
11045
  return t.length < 2 ? null : t.pop()?.toLowerCase() || null;
11048
11046
  }
11049
- function _n(e) {
11047
+ function On(e) {
11050
11048
  const t = e.toLowerCase().replace(/^\./, "");
11051
11049
  return fr.pdf.includes(t) ? "pdf" : fr.image.includes(t) ? "image" : fr.video.includes(t) ? "video" : fr.audio.includes(t) ? "audio" : fr.code.includes(t) ? "code" : fr.office.includes(t) ? "office" : fr.text.includes(t) ? "text" : "unknown";
11052
11050
  }
11053
- function jn(e) {
11051
+ function _n(e) {
11054
11052
  return Pd[e] || "unknown";
11055
11053
  }
11056
11054
  function Nd(e) {
@@ -11072,14 +11070,14 @@ function Nd(e) {
11072
11070
  }
11073
11071
  async function Vd(e, t, r) {
11074
11072
  if (t) {
11075
- const i = jn(t);
11073
+ const i = _n(t);
11076
11074
  if (i !== "unknown")
11077
11075
  return i;
11078
11076
  }
11079
11077
  if (r) {
11080
- const i = On(r);
11078
+ const i = Bn(r);
11081
11079
  if (i) {
11082
- const o = _n(i);
11080
+ const o = On(i);
11083
11081
  if (o !== "unknown")
11084
11082
  return o;
11085
11083
  }
@@ -11089,26 +11087,26 @@ async function Vd(e, t, r) {
11089
11087
  if (i.startsWith("data:")) {
11090
11088
  const o = i.match(/^data:([^;]+);/);
11091
11089
  if (o) {
11092
- const s = jn(o[1]);
11090
+ const s = _n(o[1]);
11093
11091
  if (s !== "unknown")
11094
11092
  return s;
11095
11093
  }
11096
11094
  } else {
11097
- const o = i.split("/"), l = o[o.length - 1].split("?"), a = On(l[0]);
11095
+ const o = i.split("/"), l = o[o.length - 1].split("?"), a = Bn(l[0]);
11098
11096
  if (a) {
11099
- const c = _n(a);
11097
+ const c = On(a);
11100
11098
  if (c !== "unknown")
11101
11099
  return c;
11102
11100
  }
11103
11101
  }
11104
11102
  }
11105
11103
  if (e instanceof File) {
11106
- const i = jn(e.type);
11104
+ const i = _n(e.type);
11107
11105
  if (i !== "unknown")
11108
11106
  return i;
11109
- const o = On(e.name);
11107
+ const o = Bn(e.name);
11110
11108
  if (o) {
11111
- const s = _n(o);
11109
+ const s = On(o);
11112
11110
  if (s !== "unknown")
11113
11111
  return s;
11114
11112
  }
@@ -11149,7 +11147,7 @@ function qr(e) {
11149
11147
  }
11150
11148
  return e instanceof Blob || e instanceof File ? Promise.resolve(URL.createObjectURL(e)) : "";
11151
11149
  }
11152
- function vn(e) {
11150
+ function Cn(e) {
11153
11151
  e.startsWith("blob:") && URL.revokeObjectURL(e);
11154
11152
  }
11155
11153
  function Ld({ file: e, width: t, height: r, onLoad: i, onError: o }) {
@@ -11166,7 +11164,7 @@ function Ld({ file: e, width: t, height: r, onLoad: i, onError: o }) {
11166
11164
  });
11167
11165
  }
11168
11166
  })(), () => {
11169
- s && vn(s);
11167
+ s && Cn(s);
11170
11168
  }), [e]), s ? /* @__PURE__ */ n(
11171
11169
  "iframe",
11172
11170
  {
@@ -11194,7 +11192,7 @@ function Fd({ file: e, width: t, height: r, onLoad: i, onError: o, style: s, cla
11194
11192
  });
11195
11193
  }
11196
11194
  })(), () => {
11197
- a && vn(a);
11195
+ a && Cn(a);
11198
11196
  }), [e]), u ? /* @__PURE__ */ n(mt, { h: "100%", children: /* @__PURE__ */ n(vr, { icon: /* @__PURE__ */ n(cr, { size: 16 }), color: "red", title: "Error", children: "Failed to load image" }) }) : a ? /* @__PURE__ */ n(mt, { h: "100%", children: /* @__PURE__ */ n(
11199
11197
  "img",
11200
11198
  {
@@ -11231,7 +11229,7 @@ function Bd({ file: e, width: t, height: r, onLoad: i, onError: o }) {
11231
11229
  });
11232
11230
  }
11233
11231
  })(), () => {
11234
- s && vn(s);
11232
+ s && Cn(s);
11235
11233
  }), [e]), s ? /* @__PURE__ */ n(
11236
11234
  "video",
11237
11235
  {
@@ -11260,7 +11258,7 @@ function Od({ file: e, onLoad: t, onError: r }) {
11260
11258
  });
11261
11259
  }
11262
11260
  })(), () => {
11263
- i && vn(i);
11261
+ i && Cn(i);
11264
11262
  }), [e]), i ? /* @__PURE__ */ n(mt, { h: "100%", children: /* @__PURE__ */ n("audio", { src: i, controls: !0, style: { width: "100%" } }) }) : /* @__PURE__ */ n(mt, { h: "100%", children: /* @__PURE__ */ n(Ot, { visible: !0 }) });
11265
11263
  }
11266
11264
  function _d({ file: e, width: t, height: r, onLoad: i, onError: o, className: s }) {
@@ -11465,7 +11463,7 @@ function jd({
11465
11463
  onClick: Q,
11466
11464
  disabled: we >= 3,
11467
11465
  title: String(L("Zoom in")),
11468
- children: /* @__PURE__ */ n(bn, { size: 16 })
11466
+ children: /* @__PURE__ */ n(yn, { size: 16 })
11469
11467
  }
11470
11468
  )
11471
11469
  ] }),
@@ -11822,7 +11820,7 @@ function Xd(e) {
11822
11820
  function Cs(e, t, r) {
11823
11821
  return r === "is_null" || r === "is_not_null" ? !0 : r === "between" || r === "date_between" ? Array.isArray(e) && e.length === 2 : r === "in" || r === "not_in" ? Array.isArray(e) && e.length > 0 : !(e == null || e === "");
11824
11822
  }
11825
- function gn() {
11823
+ function mn() {
11826
11824
  return `filter-${Date.now()}-${Math.random().toString(36).substring(2, 9)}`;
11827
11825
  }
11828
11826
  function Kd({
@@ -11890,7 +11888,7 @@ function Kd({
11890
11888
  break;
11891
11889
  }
11892
11890
  const le = {
11893
- id: gn(),
11891
+ id: mn(),
11894
11892
  key: A.key,
11895
11893
  label: A.label,
11896
11894
  type: A.type,
@@ -12074,7 +12072,7 @@ function Kd({
12074
12072
  size: "xs",
12075
12073
  variant: "transparent",
12076
12074
  onClick: x,
12077
- children: /* @__PURE__ */ n(dn, { size: 14 })
12075
+ children: /* @__PURE__ */ n(cn, { size: 14 })
12078
12076
  }
12079
12077
  )
12080
12078
  }
@@ -12093,7 +12091,7 @@ function Kd({
12093
12091
  }
12094
12092
  ) }),
12095
12093
  !Z && (c || u || d) && /* @__PURE__ */ b(pt, { shadow: "md", width: 200, position: "bottom-end", children: [
12096
- /* @__PURE__ */ n(pt.Target, { children: /* @__PURE__ */ n(Ae, { variant: "subtle", children: /* @__PURE__ */ n(dn, { size: 16 }) }) }),
12094
+ /* @__PURE__ */ n(pt.Target, { children: /* @__PURE__ */ n(Ae, { variant: "subtle", children: /* @__PURE__ */ n(cn, { size: 16 }) }) }),
12097
12095
  /* @__PURE__ */ b(pt.Dropdown, { children: [
12098
12096
  d && h.length > 0 && /* @__PURE__ */ b(ot, { children: [
12099
12097
  /* @__PURE__ */ n(pt.Label, { children: String(D("Quick filters")) }),
@@ -12104,7 +12102,7 @@ function Kd({
12104
12102
  onClick: () => {
12105
12103
  const le = ie.filters.map((Ce) => ({
12106
12104
  ...Ce,
12107
- id: gn()
12105
+ id: mn()
12108
12106
  }));
12109
12107
  de(le);
12110
12108
  },
@@ -12165,7 +12163,7 @@ function hp(e, t) {
12165
12163
  }
12166
12164
  const w = {
12167
12165
  ...y,
12168
- id: gn(),
12166
+ id: mn(),
12169
12167
  displayValue: vi(
12170
12168
  y.value,
12171
12169
  y.type,
@@ -12229,7 +12227,7 @@ function fp(e, t, r) {
12229
12227
  return;
12230
12228
  const y = {
12231
12229
  ...p,
12232
- id: gn(),
12230
+ id: mn(),
12233
12231
  displayValue: vi(p.value, p.type, p.operator, g.options)
12234
12232
  }, m = t.findIndex((E) => E.key === p.key);
12235
12233
  let w;
@@ -13217,7 +13215,7 @@ function uu({
13217
13215
  /* @__PURE__ */ b(Ie, { gap: 0, children: [
13218
13216
  /* @__PURE__ */ n(Ae, { size: "sm", variant: "subtle", onClick: f, children: t || r === 0 ? /* @__PURE__ */ n(ol, { size: 16 }) : /* @__PURE__ */ n(sl, { size: 16 }) }),
13219
13217
  /* @__PURE__ */ n(
13220
- Gn,
13218
+ Un,
13221
13219
  {
13222
13220
  style: { width: 60 },
13223
13221
  value: t ? 0 : r * 100,
@@ -13980,7 +13978,7 @@ function Eu({
13980
13978
  case "error":
13981
13979
  return /* @__PURE__ */ n(cr, { size: 16, color: "red" });
13982
13980
  default:
13983
- return /* @__PURE__ */ n(Cn, { size: 16 });
13981
+ return /* @__PURE__ */ n(wn, { size: 16 });
13984
13982
  }
13985
13983
  }, v = () => {
13986
13984
  switch (D) {
@@ -14062,7 +14060,7 @@ function xp({
14062
14060
  return /* @__PURE__ */ n(
14063
14061
  _e,
14064
14062
  {
14065
- leftSection: /* @__PURE__ */ n(Cn, { size: 16 }),
14063
+ leftSection: /* @__PURE__ */ n(wn, { size: 16 }),
14066
14064
  onClick: () => {
14067
14065
  const o = xs(e);
14068
14066
  console.log("ESC/POS Data:", o), t?.();
@@ -14192,7 +14190,7 @@ async function Ep(e, t, r = "myTheme") {
14192
14190
  return !1;
14193
14191
  }
14194
14192
  }
14195
- function Hn(e, t) {
14193
+ function jn(e, t) {
14196
14194
  return {
14197
14195
  ...e,
14198
14196
  ...t,
@@ -14609,14 +14607,14 @@ function Vu({
14609
14607
  footer: W
14610
14608
  }) {
14611
14609
  const { t: z } = Xe(), A = Mt(), [R, U] = k(o), [v, P] = k(() => {
14612
- const j = Hn(A, e);
14613
- return s ? Hn(j, Eo(s)) : j;
14610
+ const j = jn(A, e);
14611
+ return s ? jn(j, Eo(s)) : j;
14614
14612
  }), [M, O] = k(v.primaryColor || "blue"), [I, x] = k(!1), _ = T((j) => {
14615
14613
  P(j), t?.(j);
14616
14614
  }, [t]), S = T(() => {
14617
14615
  r?.(v);
14618
14616
  }, [v, r]), F = T((j) => {
14619
- const J = Eo(j), ee = Hn(v, J);
14617
+ const J = Eo(j), ee = jn(v, J);
14620
14618
  P(ee), t?.(ee);
14621
14619
  }, [v, t]);
14622
14620
  T((j, J) => {
@@ -14716,16 +14714,16 @@ function Vu({
14716
14714
  backgroundColor: "var(--mantine-color-gray-0)"
14717
14715
  },
14718
14716
  children: /* @__PURE__ */ n(
14719
- $n,
14717
+ Rn,
14720
14718
  {
14721
14719
  orientation: "vertical",
14722
14720
  value: R,
14723
14721
  onChange: (j) => U(j),
14724
14722
  variant: "pills",
14725
- children: /* @__PURE__ */ n($n.List, { children: C.map((j) => {
14723
+ children: /* @__PURE__ */ n(Rn.List, { children: C.map((j) => {
14726
14724
  const J = j.icon;
14727
14725
  return /* @__PURE__ */ n(
14728
- $n.Tab,
14726
+ Rn.Tab,
14729
14727
  {
14730
14728
  value: j.value,
14731
14729
  leftSection: /* @__PURE__ */ n(J, { size: 16 }),
@@ -15440,7 +15438,7 @@ const Wu = (e) => {
15440
15438
  if (!r)
15441
15439
  return /* @__PURE__ */ n("span", {});
15442
15440
  try {
15443
- const i = ln(r), o = wt(i, t);
15441
+ const i = an(r), o = wt(i, t);
15444
15442
  return /* @__PURE__ */ n("span", { style: { textAlign: "center", display: "block" }, children: o });
15445
15443
  } catch (i) {
15446
15444
  return console.error("Erro ao formatar data:", i), /* @__PURE__ */ n("span", { children: "Data inválida" });
@@ -15450,7 +15448,7 @@ const Wu = (e) => {
15450
15448
  if (!r)
15451
15449
  return /* @__PURE__ */ n("span", {});
15452
15450
  try {
15453
- const i = ln(r), o = wt(i, t);
15451
+ const i = an(r), o = wt(i, t);
15454
15452
  return /* @__PURE__ */ n("span", { style: { textAlign: "center", display: "block" }, children: o });
15455
15453
  } catch (i) {
15456
15454
  return console.error("Erro ao formatar data e hora:", i), /* @__PURE__ */ n("span", { children: "Data/hora inválida" });
@@ -15873,7 +15871,7 @@ const nr = (e, t) => {
15873
15871
  onClick: r,
15874
15872
  color: f.primaryColor,
15875
15873
  variant: "filled",
15876
- children: /* @__PURE__ */ n(Cn, { size: 20 })
15874
+ children: /* @__PURE__ */ n(wn, { size: 20 })
15877
15875
  }
15878
15876
  ) })
15879
15877
  ] }),
@@ -16345,7 +16343,7 @@ function mh({
16345
16343
  "aria-label": t ? "Recolher detalhes" : "Expandir detalhes",
16346
16344
  title: t ? "Recolher detalhes" : "Expandir detalhes",
16347
16345
  "data-row-id": e,
16348
- children: t ? /* @__PURE__ */ n(dn, { size: 18 }) : /* @__PURE__ */ n(Gr, { size: 18 })
16346
+ children: t ? /* @__PURE__ */ n(cn, { size: 18 }) : /* @__PURE__ */ n(Gr, { size: 18 })
16349
16347
  }
16350
16348
  );
16351
16349
  }
@@ -16496,9 +16494,9 @@ function wh({
16496
16494
  };
16497
16495
  }, [e]), l;
16498
16496
  }
16499
- const rn = 100, xn = (e) => e && ("appendToFieldArray" in e || "updateFieldArrayItem" in e || "getRecords" in e), Wn = (e) => xn(e) ? e.getRecords?.() || [] : e.browseRecords?.() || [], gr = (e) => xn(e) ? {} : e.getOptions?.() || {}, zr = (e) => {
16497
+ const rn = 100, vn = (e) => e && ("appendToFieldArray" in e || "updateFieldArrayItem" in e || "getRecords" in e), Hn = (e) => vn(e) ? e.getRecords?.() || [] : e.browseRecords?.() || [], gr = (e) => vn(e) ? {} : e.getOptions?.() || {}, zr = (e) => {
16500
16498
  const t = e.getCurrentPage?.() ?? 0;
16501
- return console.log("[getCurrentPageFromDataSource] isV2:", xn(e), "page:", t), t;
16499
+ return console.log("[getCurrentPageFromDataSource] isV2:", vn(e), "page:", t), t;
16502
16500
  };
16503
16501
  function $p(e) {
16504
16502
  const {
@@ -16608,7 +16606,7 @@ function $p(e) {
16608
16606
  console.debug("Módulo de segurança não disponível");
16609
16607
  }
16610
16608
  }, [me]), Ve;
16611
- })(ge), gt = ue(null), ke = ue(/* @__PURE__ */ new Map()), st = xn(t), [ht, ft] = k(() => Wn(t)), [jt, Yt] = k({}), [ur, En] = k(!1), [Ss, kn] = k(!1), [As, kt] = k(!1), [Ds, Sn] = k([]), [Ei, An] = k([]), [ki, Si] = k(() => {
16609
+ })(ge), gt = ue(null), ke = ue(/* @__PURE__ */ new Map()), st = vn(t), [ht, ft] = k(() => Hn(t)), [jt, Yt] = k({}), [ur, xn] = k(!1), [Ss, En] = k(!1), [As, kt] = k(!1), [Ds, kn] = k([]), [Ei, Sn] = k([]), [ki, Si] = k(() => {
16612
16610
  const me = t.getGrandTotalRecords();
16613
16611
  return Number.isFinite(me) ? Math.max(0, me) : 0;
16614
16612
  }), [Ht, Er] = k({
@@ -16617,9 +16615,9 @@ function $p(e) {
16617
16615
  Number.isFinite(t?.getPageSize?.()) ? t.getPageSize() : E,
16618
16616
  rn
16619
16617
  )
16620
- }), [Ts, zs] = k(() => oh(t)), Dn = gr(t), [St, Tn] = k({
16621
- items: Dn.originFilter || [],
16622
- quickFilterValues: Dn.originGlobalFilter ? [Dn.originGlobalFilter] : []
16618
+ }), [Ts, zs] = k(() => oh(t)), An = gr(t), [St, Dn] = k({
16619
+ items: An.originFilter || [],
16620
+ quickFilterValues: An.originGlobalFilter ? [An.originGlobalFilter] : []
16623
16621
  }), [Is, Rs] = k([]), $s = qe !== void 0 ? qe : Is, {
16624
16622
  expandedRowIds: $t,
16625
16623
  detailPanelHeight: Ai,
@@ -16647,13 +16645,13 @@ function $p(e) {
16647
16645
  safeGetRowId: nr,
16648
16646
  rowHeight: de,
16649
16647
  detailPanelMinHeight: ce
16650
- }), Pt = ue(!1), Ri = ue(null), zn = ue(!1);
16648
+ }), Pt = ue(!1), Ri = ue(null), Tn = ue(!1);
16651
16649
  G(() => () => {
16652
16650
  Ri.current && clearTimeout(Ri.current);
16653
16651
  }, []), G(() => {
16654
16652
  const me = (Me) => {
16655
- if (Pt.current || zn.current) {
16656
- zn.current = !1;
16653
+ if (Pt.current || Tn.current) {
16654
+ Tn.current = !1;
16657
16655
  return;
16658
16656
  }
16659
16657
  if (Me.id !== void 0 && Me.field)
@@ -16683,7 +16681,7 @@ function $p(e) {
16683
16681
  }, Ns = (me) => {
16684
16682
  if (Pt.current)
16685
16683
  return;
16686
- zn.current = !0, Sn(me);
16684
+ Tn.current = !0, kn(me);
16687
16685
  const Ve = [];
16688
16686
  if (me.forEach((Me) => {
16689
16687
  const Be = ht.find((Oe) => {
@@ -16694,7 +16692,7 @@ function $p(e) {
16694
16692
  }
16695
16693
  });
16696
16694
  Be && Ve.push(Be);
16697
- }), An(Ve), V && V(Ve), Ve.length === 1 && t.gotoRecordByData) {
16695
+ }), Sn(Ve), V && V(Ve), Ve.length === 1 && t.gotoRecordByData) {
16698
16696
  Pt.current = !0;
16699
16697
  try {
16700
16698
  t.gotoRecordByData(Ve[0]);
@@ -16705,14 +16703,14 @@ function $p(e) {
16705
16703
  Pt.current = !1;
16706
16704
  }, 100);
16707
16705
  }
16706
+ }, zn = () => {
16707
+ xn(!0);
16708
16708
  }, In = () => {
16709
16709
  En(!0);
16710
- }, Rn = () => {
16711
- kn(!0);
16712
16710
  }, Vs = (me) => {
16713
- Lu(ht, zt, me), En(!1);
16711
+ Lu(ht, zt, me), xn(!1);
16714
16712
  }, Ms = (me) => {
16715
- _u(ht, zt, me), kn(!1);
16713
+ _u(ht, zt, me), En(!1);
16716
16714
  }, $i = () => {
16717
16715
  if (st) {
16718
16716
  const Ve = tn(St, zt), Me = St.quickFilterValues && St.quickFilterValues.length > 0 ? St.quickFilterValues[0] : "";
@@ -16755,7 +16753,7 @@ function $p(e) {
16755
16753
  const Ve = gr(t);
16756
16754
  Ve.sort = me.map((Me) => `${Me.field}:${Me.sort}`), Ve.originSort = me, kt(!0), t.refreshData?.(Ve), yt();
16757
16755
  }, Ni = (me) => {
16758
- if (Tn(me), ve && ve(me), console.log("[FILTER] Aplicando filtro:", me), st) {
16756
+ if (Dn(me), ve && ve(me), console.log("[FILTER] Aplicando filtro:", me), st) {
16759
16757
  Er((Oe) => ({ ...Oe, page: 0 }));
16760
16758
  const Me = tn(me, zt), Be = me.quickFilterValues && me.quickFilterValues.length > 0 ? me.quickFilterValues[0] : "";
16761
16759
  console.log("[FILTER V2] filter construído:", Me, "tipo:", typeof Me), console.log("[FILTER V2] originGlobalFilter:", Be), kt(!0), t.refreshData?.({
@@ -16772,7 +16770,7 @@ function $p(e) {
16772
16770
  }, Fs = T((me, Ve) => {
16773
16771
  if (console.log("[COMPOSITE FILTERS] Filtros alterados:", me, "RSQL:", Ve), qe === void 0 && Rs(me), Ke && Ke(me, Ve), Ve || me && me.length > 0) {
16774
16772
  const Me = sh(me || []);
16775
- if (Tn(Me), st) {
16773
+ if (Dn(Me), st) {
16776
16774
  Er((Oe) => ({ ...Oe, page: 0 })), kt(!0), t.refreshData?.({
16777
16775
  currentPage: 0,
16778
16776
  pageSize: Ht.pageSize,
@@ -16786,7 +16784,7 @@ function $p(e) {
16786
16784
  const Be = gr(t);
16787
16785
  Be.filter = Ve, Be.originFilter = Me.items, Be.currentPage = 0, kt(!0), t.refreshData?.(Be), yt();
16788
16786
  } else {
16789
- if (Tn({ items: [], quickFilterValues: [] }), st) {
16787
+ if (Dn({ items: [], quickFilterValues: [] }), st) {
16790
16788
  kt(!0), t.refreshData?.({
16791
16789
  currentPage: 0,
16792
16790
  pageSize: Ht.pageSize,
@@ -16801,17 +16799,17 @@ function $p(e) {
16801
16799
  }
16802
16800
  }, [qe, Ke, st, t, Ht.pageSize]);
16803
16801
  G(() => {
16804
- we && we(In), ze && ze(Rn);
16802
+ we && we(zn), ze && ze(In);
16805
16803
  }, [we, ze]), ba(
16806
16804
  be,
16807
16805
  () => ({
16808
16806
  refreshData: $i,
16809
16807
  getSelectedRows: () => Ei,
16810
16808
  clearSelection: () => {
16811
- Sn([]), An([]);
16809
+ kn([]), Sn([]);
16812
16810
  },
16813
- exportData: In,
16814
- printData: Rn,
16811
+ exportData: zn,
16812
+ printData: In,
16815
16813
  // Métodos adicionais para o detail panel
16816
16814
  expandRow: (me) => zi(me),
16817
16815
  collapseRow: (me) => kr(me),
@@ -17178,7 +17176,7 @@ function $p(e) {
17178
17176
  G(() => {
17179
17177
  const me = (Ve) => {
17180
17178
  if (Ve.type === q.refreshData) {
17181
- ft(Wn(t));
17179
+ ft(Hn(t));
17182
17180
  const Me = Number.isFinite(zr(t)) ? zr(t) : 0, Be = Number.isFinite(t.getPageSize?.()) ? Math.min(Math.max(1, t.getPageSize()), rn) : 10;
17183
17181
  Er({
17184
17182
  page: Me,
@@ -17187,7 +17185,7 @@ function $p(e) {
17187
17185
  const Oe = Number.isFinite(t.getGrandTotalRecords?.()) ? Math.max(0, t.getGrandTotalRecords()) : 0;
17188
17186
  Si(Oe), kt(!1), yt();
17189
17187
  } else if (Ve.type === q.dataChanged || Ve.type === q.afterRemove || Ve.type === q.afterSave || Ve.type === q.afterAppend || Ve.type === q.afterCancel) {
17190
- ft(Wn(t));
17188
+ ft(Hn(t));
17191
17189
  const Me = Number.isFinite(zr(t)) ? zr(t) : 0, Be = Number.isFinite(t.getPageSize?.()) ? Math.min(Math.max(1, t.getPageSize()), rn) : 10;
17192
17190
  Er({
17193
17191
  page: Me,
@@ -17207,11 +17205,11 @@ function $p(e) {
17207
17205
  if (Oe && pe.current) {
17208
17206
  Pt.current = !0;
17209
17207
  try {
17210
- Sn([Be]);
17208
+ kn([Be]);
17211
17209
  const Sr = ht.find(
17212
17210
  (hr) => String(nr(hr, H)) === String(Be)
17213
17211
  );
17214
- Sr && (An([Sr]), V && V([Sr])), setTimeout(() => {
17212
+ Sr && (Sn([Sr]), V && V([Sr])), setTimeout(() => {
17215
17213
  try {
17216
17214
  pe.current.scrollToIndexes({
17217
17215
  rowIndex: ht.findIndex(
@@ -17364,8 +17362,8 @@ function $p(e) {
17364
17362
  theme: Y,
17365
17363
  onFilterModelChange: Ni,
17366
17364
  onRefresh: $i,
17367
- onExport: In,
17368
- onPrint: Rn,
17365
+ onExport: zn,
17366
+ onPrint: In,
17369
17367
  apiRef: pe,
17370
17368
  children: B,
17371
17369
  useCompositeFilters: fe,
@@ -17437,7 +17435,7 @@ function $p(e) {
17437
17435
  ju,
17438
17436
  {
17439
17437
  opened: ur,
17440
- onClose: () => En(!1),
17438
+ onClose: () => xn(!1),
17441
17439
  onExport: Vs,
17442
17440
  columns: Vi,
17443
17441
  defaultConfig: {
@@ -17450,7 +17448,7 @@ function $p(e) {
17450
17448
  Hu,
17451
17449
  {
17452
17450
  opened: Ss,
17453
- onClose: () => kn(!1),
17451
+ onClose: () => En(!1),
17454
17452
  onPrint: Ms,
17455
17453
  columns: Vi,
17456
17454
  defaultConfig: {
@@ -17546,7 +17544,7 @@ function Np({
17546
17544
  }) {
17547
17545
  const u = r({ row: t });
17548
17546
  return /* @__PURE__ */ b(
17549
- Pn,
17547
+ $n,
17550
17548
  {
17551
17549
  position: "bottom",
17552
17550
  width: c,
@@ -17554,13 +17552,13 @@ function Np({
17554
17552
  withinPortal: !0,
17555
17553
  onClose: () => i(e),
17556
17554
  children: [
17557
- /* @__PURE__ */ n(Pn.Target, { children: a.current ? /* @__PURE__ */ n("div", { style: { display: "inline-block" }, children: /* @__PURE__ */ n("span", { ref: (d) => {
17555
+ /* @__PURE__ */ n($n.Target, { children: a.current ? /* @__PURE__ */ n("div", { style: { display: "inline-block" }, children: /* @__PURE__ */ n("span", { ref: (d) => {
17558
17556
  if (d && a.current) {
17559
17557
  const h = a.current.getBoundingClientRect();
17560
17558
  d.style.position = "absolute", d.style.left = `${h.left}px`, d.style.top = `${h.top}px`, d.style.width = `${h.width}px`, d.style.height = `${h.height}px`;
17561
17559
  }
17562
17560
  } }) }) : /* @__PURE__ */ n("span", {}) }),
17563
- /* @__PURE__ */ n(Pn.Dropdown, { children: /* @__PURE__ */ b(
17561
+ /* @__PURE__ */ n($n.Dropdown, { children: /* @__PURE__ */ b(
17564
17562
  ye,
17565
17563
  {
17566
17564
  className: `detail-panel-container ${s || ""}`,
@@ -18270,7 +18268,7 @@ export {
18270
18268
  ou as ArchbaseLinkRenderer,
18271
18269
  Sc as ArchbaseList,
18272
18270
  yi as ArchbaseListContext,
18273
- mn as ArchbaseListItem,
18271
+ pn as ArchbaseListItem,
18274
18272
  ep as ArchbaseListViewTable,
18275
18273
  sm as ArchbaseLoader,
18276
18274
  Df as ArchbaseLookupEdit,
@@ -18353,8 +18351,8 @@ export {
18353
18351
  gh as createExpandColumn,
18354
18352
  Vd as detectFileType,
18355
18353
  Nd as detectFileTypeByContent,
18356
- _n as detectFileTypeByExtension,
18357
- jn as detectFileTypeByMimeType,
18354
+ On as detectFileTypeByExtension,
18355
+ _n as detectFileTypeByMimeType,
18358
18356
  Co as divider,
18359
18357
  Du as downloadTheme,
18360
18358
  pr as escposAlign,
@@ -18388,7 +18386,7 @@ export {
18388
18386
  Up as formatTime,
18389
18387
  ao as formatTimelineDate,
18390
18388
  Ap as generateColorScale,
18391
- gn as generateFilterId,
18389
+ mn as generateFilterId,
18392
18390
  xs as generateReceiptEscpos,
18393
18391
  nh as getAlignmentByDataType,
18394
18392
  Cu as getCharsWidth,
@@ -18406,7 +18404,7 @@ export {
18406
18404
  Sp as isValidColor,
18407
18405
  kf as languages,
18408
18406
  fu as line,
18409
- Hn as mergeTheme,
18407
+ jn as mergeTheme,
18410
18408
  Oc as mergeTimelineOptions,
18411
18409
  Pr as normalizeDate,
18412
18410
  Hc as normalizeRange,
@@ -18424,7 +18422,7 @@ export {
18424
18422
  ko as renderText,
18425
18423
  Zu as renderTime,
18426
18424
  th as renderUUID,
18427
- vn as revokeFileUrl,
18425
+ Cn as revokeFileUrl,
18428
18426
  zu as rgbToHex,
18429
18427
  bp as rightAlignText,
18430
18428
  nr as safeGetRowId,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@archbase/components",
3
- "version": "3.0.22",
3
+ "version": "3.0.25",
4
4
  "description": "UI Components for Archbase React v3 - Form editors, data visualization, and business components",
5
5
  "author": "Edson Martins <edsonmartins2005@gmail.com>",
6
6
  "license": "MIT",
@@ -38,6 +38,9 @@
38
38
  "react-dom": "^18.3.0 || ^19.2.0"
39
39
  },
40
40
  "dependencies": {
41
+ "@archbase/core": "3.0.25",
42
+ "@archbase/data": "3.0.25",
43
+ "@archbase/layout": "3.0.25",
41
44
  "@gfazioli/mantine-list-view-table": "^1.1.9",
42
45
  "@gfazioli/mantine-onboarding-tour": "^2.6.5",
43
46
  "@mui/x-data-grid": "^7.28.3",
@@ -99,10 +102,7 @@
99
102
  "uuid": "^9.0.1",
100
103
  "validator": "^13.12.0",
101
104
  "vis-timeline": "^7.7.3",
102
- "xlsx": "^0.18.5",
103
- "@archbase/core": "3.0.22",
104
- "@archbase/data": "3.0.22",
105
- "@archbase/layout": "3.0.22"
105
+ "xlsx": "^0.18.5"
106
106
  },
107
107
  "devDependencies": {
108
108
  "@types/d3": "^7.4.3",
@@ -377,9 +377,7 @@ export function ArchbaseDatePickerEdit<T, ID>(props: ArchbaseDatePickerEditProps
377
377
  onChange: onDateChange,
378
378
  });
379
379
  const formatValue = (val: DateValue) => (val ? dateFormats[dateFormat!].format(val) : '');
380
- const [inputValue, setInputValue] = useUncontrolled({
381
- value: formatValue(_value),
382
- });
380
+ const [inputValue, setInputValue] = useState(formatValue(_value));
383
381
 
384
382
  const defaultDateParser = (val: string) => {
385
383
  const parsedDate = dateFormats[dateFormat!].parse(val);
@@ -539,7 +537,7 @@ export function ArchbaseDatePickerEdit<T, ID>(props: ArchbaseDatePickerEditProps
539
537
 
540
538
  useEffect(() => {
541
539
  setInputValue(formatValue(_value));
542
- }, [ctx.locale]);
540
+ }, [ctx.locale, _value]);
543
541
 
544
542
  const [dropdownOpened, setDropdownOpened] = useState(false);
545
543
 
Binary file