linear-react-components-ui 1.1.26-beta.5 → 1.1.26-beta.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.
Files changed (211) hide show
  1. package/lib/alerts/AlertProvider.js +2 -2
  2. package/lib/alerts/BaseAlert.js +8 -8
  3. package/lib/alerts/Message.js +1 -1
  4. package/lib/alerts/withAlert.js +1 -1
  5. package/lib/assets/BaseAlert.css +1 -1
  6. package/lib/assets/Content.css +1 -1
  7. package/lib/assets/DefaultFile.css +1 -1
  8. package/lib/assets/Drawer.css +1 -1
  9. package/lib/assets/index11.css +1 -1
  10. package/lib/assets/index5.css +1 -1
  11. package/lib/avatar/index.js +1 -1
  12. package/lib/badge/index.js +1 -1
  13. package/lib/buttons/ActivateButton.js +1 -1
  14. package/lib/buttons/AddButton.js +1 -1
  15. package/lib/buttons/Button.js +1 -1
  16. package/lib/buttons/ButtonGroups.js +1 -1
  17. package/lib/buttons/CancelButton.js +1 -1
  18. package/lib/buttons/DangerButton.js +1 -1
  19. package/lib/buttons/DefaultButton.js +70 -71
  20. package/lib/buttons/DestroyButton.js +1 -1
  21. package/lib/buttons/EditButton.js +1 -1
  22. package/lib/buttons/InactivateButton.js +1 -1
  23. package/lib/buttons/InfoButton.js +1 -1
  24. package/lib/buttons/PrimaryButton.js +1 -1
  25. package/lib/buttons/RestoreButton.js +1 -1
  26. package/lib/buttons/SaveButton.js +1 -1
  27. package/lib/buttons/SuccessButton.js +1 -1
  28. package/lib/buttons/WarningButton.js +1 -1
  29. package/lib/buttons/button_container/index.js +1 -1
  30. package/lib/buttons/split_button/index.js +1 -1
  31. package/lib/calendar/DangerCalendar.js +1 -1
  32. package/lib/calendar/InfoCalendar.js +1 -1
  33. package/lib/calendar/PrimaryCalendar.js +1 -1
  34. package/lib/calendar/SuccessCalendar.js +1 -1
  35. package/lib/calendar/WarningCalendar.js +1 -1
  36. package/lib/calendar/base/Day.js +2 -2
  37. package/lib/calendar/base/Month.js +1 -1
  38. package/lib/calendar/base/Week.js +1 -1
  39. package/lib/calendar/base/helpers.js +1 -1
  40. package/lib/calendar/base/index.js +64 -66
  41. package/lib/checkbox/index.js +4 -4
  42. package/lib/chunks/index.CM1aLH2W.js +205 -0
  43. package/lib/chunks/{index.CBPsbBt0.js → index.Df3kt2LQ.js} +3 -3
  44. package/lib/chunks/{jsx-runtime.gtoSnx-V.js → jsx-runtime.C7wFtzyj.js} +2 -2
  45. package/lib/chunks/{lodash.C68pWaTB.js → lodash.CIAK_hAg.js} +433 -433
  46. package/lib/chunks/{moment.CwOqp704.js → moment.DMLRxgRE.js} +8 -8
  47. package/lib/chunks/{tabs.CM2We4tV.js → tabs.D0L_nVfP.js} +95 -96
  48. package/lib/chunks/v1.Ds1rkxUj.js +49 -0
  49. package/lib/dialog/Alert.js +1 -1
  50. package/lib/dialog/Custom.js +3 -3
  51. package/lib/dialog/Error.js +1 -1
  52. package/lib/dialog/Information.js +1 -1
  53. package/lib/dialog/Question.js +36 -39
  54. package/lib/dialog/Warning.js +1 -1
  55. package/lib/dialog/base/Content.js +1 -1
  56. package/lib/dialog/base/Footer.js +1 -1
  57. package/lib/dialog/base/Header.js +2 -2
  58. package/lib/dialog/base/index.js +2 -2
  59. package/lib/dialog/form/index.js +2 -2
  60. package/lib/dialog/index.js +1 -1
  61. package/lib/dialog/wizard/index.js +4 -4
  62. package/lib/dialog/wizard/progressbar.js +87 -3
  63. package/lib/dialog/wizard/step.js +2 -2
  64. package/lib/drawer/Content.js +1 -1
  65. package/lib/drawer/Drawer.js +19 -19
  66. package/lib/drawer/Header.js +1 -1
  67. package/lib/dropdown/Popup.js +1 -1
  68. package/lib/dropdown/withDropdown.js +31 -31
  69. package/lib/fieldset/index.js +1 -1
  70. package/lib/form/Field.js +2 -2
  71. package/lib/form/FieldArray.js +2 -2
  72. package/lib/form/FieldNumber.js +27 -27
  73. package/lib/form/FieldPeriod.js +2 -2
  74. package/lib/form/helpers.js +1 -1
  75. package/lib/form/index.js +49 -49
  76. package/lib/form/withFieldHOC.js +1 -1
  77. package/lib/form/withFormSecurity.js +1 -1
  78. package/lib/gridlayout/GridCol.js +1 -1
  79. package/lib/gridlayout/GridRow.js +1 -1
  80. package/lib/hint/helpers.js +1 -1
  81. package/lib/hint/index.js +1 -1
  82. package/lib/icons/index.js +51 -54
  83. package/lib/index.js +2 -2
  84. package/lib/inputs/base/InputTextBase.js +112 -114
  85. package/lib/inputs/base/Label.js +1 -1
  86. package/lib/inputs/base/helpers.d.ts +3 -3
  87. package/lib/inputs/base/helpers.js +1 -1
  88. package/lib/inputs/color/index.js +2 -2
  89. package/lib/inputs/date/Dialog.js +2 -2
  90. package/lib/inputs/date/Dropdown.js +10 -14
  91. package/lib/inputs/date/helpers.js +1 -1
  92. package/lib/inputs/date/index.js +102 -114
  93. package/lib/inputs/errorMessage/index.js +1 -1
  94. package/lib/inputs/file/DefaultFile.js +43 -44
  95. package/lib/inputs/file/DragDropFile.js +91 -93
  96. package/lib/inputs/file/File.d.ts +1 -1
  97. package/lib/inputs/file/File.js +33 -34
  98. package/lib/inputs/file/FileButtonSettings.js +1 -1
  99. package/lib/inputs/inputHOC.js +1 -1
  100. package/lib/inputs/mask/BaseMask.js +8 -8
  101. package/lib/inputs/mask/Cnpj.js +2 -2
  102. package/lib/inputs/mask/Cpf.js +2 -2
  103. package/lib/inputs/mask/Phone.js +1 -1
  104. package/lib/inputs/mask/ZipCode.js +1 -1
  105. package/lib/inputs/mask/helpers.d.ts +33 -33
  106. package/lib/inputs/mask/helpers.js +1 -1
  107. package/lib/inputs/multiSelect/ActionButtons.js +2 -2
  108. package/lib/inputs/multiSelect/Dropdown.js +63 -64
  109. package/lib/inputs/multiSelect/helper.js +4 -7
  110. package/lib/inputs/multiSelect/index.js +45 -47
  111. package/lib/inputs/number/BaseNumber.js +1 -1
  112. package/lib/inputs/number/Currency.js +1 -1
  113. package/lib/inputs/number/Decimal.js +1 -1
  114. package/lib/inputs/number/index.js +10 -10
  115. package/lib/inputs/period/Dialog.js +2 -2
  116. package/lib/inputs/period/Dropdown.js +10 -15
  117. package/lib/inputs/period/PeriodList.js +1 -1
  118. package/lib/inputs/period/helper.js +1 -1
  119. package/lib/inputs/period/index.js +207 -223
  120. package/lib/inputs/search/index.js +29 -29
  121. package/lib/inputs/select/ActionButtons.js +1 -1
  122. package/lib/inputs/select/Dropdown.js +53 -53
  123. package/lib/inputs/select/helper.d.ts +1 -1
  124. package/lib/inputs/select/helper.js +39 -45
  125. package/lib/inputs/select/index.js +1 -1
  126. package/lib/inputs/select/multiple/Selecteds.js +1 -1
  127. package/lib/inputs/select/multiple/index.js +139 -143
  128. package/lib/inputs/select/simple/index.js +157 -164
  129. package/lib/inputs/text/index.js +1 -1
  130. package/lib/inputs/textarea/index.js +1 -1
  131. package/lib/internals/withTooltip.js +1 -1
  132. package/lib/labelMessages/index.js +1 -1
  133. package/lib/labels/DangerLabel.js +1 -1
  134. package/lib/labels/DefaultLabel.js +1 -1
  135. package/lib/labels/InfoLabel.js +1 -1
  136. package/lib/labels/PrimaryLabel.js +1 -1
  137. package/lib/labels/SuccessLabel.js +1 -1
  138. package/lib/labels/WarningLabel.js +1 -1
  139. package/lib/labels/label_container/index.js +1 -1
  140. package/lib/list/Header.js +1 -1
  141. package/lib/list/Item.js +2 -2
  142. package/lib/list/Separator.js +1 -1
  143. package/lib/list/index.js +2 -2
  144. package/lib/menus/float/MenuItem.js +18 -18
  145. package/lib/menus/float/SubMenuContainer.d.ts +10 -10
  146. package/lib/menus/float/index.js +2 -2
  147. package/lib/menus/sidenav/ExpandMenu.js +1 -1
  148. package/lib/menus/sidenav/MenuLink.js +1 -1
  149. package/lib/menus/sidenav/NavMenuGroup.js +1 -1
  150. package/lib/menus/sidenav/NavMenuItem.js +54 -56
  151. package/lib/menus/sidenav/NavSubMenuItem.js +1 -1
  152. package/lib/menus/sidenav/index.js +2 -2
  153. package/lib/menus/sidenav/popup_menu_search/EmptyList.js +1 -1
  154. package/lib/menus/sidenav/popup_menu_search/index.js +2 -2
  155. package/lib/noPermission/index.js +1 -1
  156. package/lib/panel/Content.js +30 -31
  157. package/lib/panel/DangerPanel.js +1 -1
  158. package/lib/panel/Default.js +1 -1
  159. package/lib/panel/Header.js +1 -1
  160. package/lib/panel/InfoPanel.js +1 -1
  161. package/lib/panel/PrimaryPanel.js +1 -1
  162. package/lib/panel/SuccessPanel.js +1 -1
  163. package/lib/panel/ToolBar.js +1 -1
  164. package/lib/panel/WarningPanel.js +1 -1
  165. package/lib/permissionValidations.js +11 -11
  166. package/lib/popover/PopoverText.js +1 -1
  167. package/lib/popover/PopoverTitle.js +1 -1
  168. package/lib/popover/index.js +1 -1
  169. package/lib/progress/Bar.js +1 -1
  170. package/lib/progress/index.js +1 -1
  171. package/lib/radio/index.js +1 -1
  172. package/lib/shortcuts/index.js +1 -1
  173. package/lib/skeleton/SkeletonContainer.js +1 -1
  174. package/lib/skeleton/index.js +1 -1
  175. package/lib/spinner/SpinnerLoading.js +1 -1
  176. package/lib/spinner/index.js +1 -1
  177. package/lib/split/Split.js +1 -1
  178. package/lib/split/SplitSide.js +1 -1
  179. package/lib/table/Body.js +25 -25
  180. package/lib/table/Header.js +28 -31
  181. package/lib/table/HeaderColumn.js +2 -2
  182. package/lib/table/Row.js +1 -1
  183. package/lib/table/RowColumn.js +1 -1
  184. package/lib/table/index.js +2 -2
  185. package/lib/tabs/DropdownTabs.js +4 -4
  186. package/lib/tabs/Menu.js +1 -1
  187. package/lib/tabs/MenuTabs.js +2 -2
  188. package/lib/tabs/Panel.js +29 -30
  189. package/lib/tabs/context.js +25 -29
  190. package/lib/tabs/index.js +2 -2
  191. package/lib/textContent/index.js +2 -2
  192. package/lib/toolbar/ButtonBar.js +1 -1
  193. package/lib/toolbar/LabelBar.js +1 -1
  194. package/lib/toolbar/Separator.js +1 -1
  195. package/lib/toolbar/ToolBarGroup.js +1 -1
  196. package/lib/toolbar/index.js +1 -1
  197. package/lib/tooltip/index.js +24 -24
  198. package/lib/treetable/Body.js +2 -2
  199. package/lib/treetable/Header.js +3 -3
  200. package/lib/treetable/Row.js +52 -52
  201. package/lib/treetable/helpers.d.ts +4 -5
  202. package/lib/treetable/index.js +1 -1
  203. package/lib/treeview/Header.js +1 -1
  204. package/lib/treeview/Node.js +4 -4
  205. package/lib/treeview/index.js +28 -28
  206. package/lib/uitour/index.js +32 -32
  207. package/package.json +24 -39
  208. package/lib/chunks/index.CjD97zna.js +0 -206
  209. package/lib/chunks/index.m4wxhMbx.js +0 -89
  210. package/lib/chunks/v1.CDXKvGzE.js +0 -41
  211. /package/lib/assets/{index29.css → progressbar.css} +0 -0
@@ -1,4 +1,4 @@
1
- import { j as m } from "../../chunks/jsx-runtime.gtoSnx-V.js";
1
+ import { j as m } from "../../chunks/jsx-runtime.C7wFtzyj.js";
2
2
  import { useContext as n } from "react";
3
3
  import u, { SideNavContext as a } from "./helpers.js";
4
4
  const l = ({ children: s, scrollable: t, style: e }) => {
@@ -1,72 +1,70 @@
1
- import { j as n } from "../../chunks/jsx-runtime.gtoSnx-V.js";
2
- import { useState as l, useRef as p, useContext as q, useEffect as R, Fragment as G } from "react";
3
- import J from "../../internals/withTooltip.js";
4
- import K from "../../icons/index.js";
5
- import U from "./MenuLink.js";
6
- import { SideNavContext as X, SubMenuContext as Y } from "./helpers.js";
7
- import { actionsOnPermissionDenied as Z, OPTIONS_ON_DENIED as H } from "../../permissionValidations.js";
8
- const ee = (x) => {
1
+ import { j as t } from "../../chunks/jsx-runtime.C7wFtzyj.js";
2
+ import { useState as l, useRef as p, useContext as Q, useEffect as E, Fragment as V } from "react";
3
+ import q from "../../internals/withTooltip.js";
4
+ import G from "../../icons/index.js";
5
+ import J from "./MenuLink.js";
6
+ import { SideNavContext as K, SubMenuContext as U } from "./helpers.js";
7
+ import { actionsOnPermissionDenied as X, OPTIONS_ON_DENIED as I } from "../../permissionValidations.js";
8
+ const Y = (x) => {
9
9
  const {
10
10
  iconName: b,
11
11
  title: w,
12
12
  children: m,
13
13
  childrenIsSubMenu: C = !0,
14
- url: y,
15
- customClass: O,
16
- permissionAttr: T,
17
- maxWidth: $ = "90%",
18
- minWidth: k = 500,
19
- columnsQtty: L,
14
+ url: R,
15
+ customClass: H,
16
+ permissionAttr: y,
17
+ maxWidth: O = "90%",
18
+ minWidth: T = 500,
19
+ columnsQtty: $,
20
20
  targetRef: S,
21
21
  disableDefaultStyle: v = !1,
22
- style: P,
23
- customClassForDropdown: W,
24
- showDropdownOnClick: s = !1,
25
- ...te
26
- } = x, [o, u] = l(!1), [c, M] = l({}), [N, d] = l(!1), j = p(null), f = p(null), g = p(null), z = [H.disabled, H.unvisible], [F] = l(Z(z, T)), { isExpanded: B, menuSize: h, openSearchMenuPopup: _ } = q(X), { unvisible: A, disabled: a } = F, Q = (e) => {
27
- if (s) return;
28
- const i = window.innerHeight, t = e.target.getBoundingClientRect();
29
- u(!0), M(t), t.bottom >= i - 150 && d(!0);
22
+ style: k,
23
+ customClassForDropdown: L,
24
+ showDropdownOnClick: i = !1,
25
+ ...Z
26
+ } = x, [s, u] = l(!1), [c, M] = l({}), [N, d] = l(!1), j = p(null), f = p(null), g = p(null), P = [I.disabled, I.unvisible], [W] = l(X(P, y)), { isExpanded: z, menuSize: h, openSearchMenuPopup: F } = Q(K), { unvisible: B, disabled: a } = W, _ = (e) => {
27
+ if (i) return;
28
+ const n = window.innerHeight, r = e.target.getBoundingClientRect();
29
+ u(!0), M(r), r.bottom >= n - 150 && d(!0);
30
30
  }, D = (e) => {
31
- if (s && e) {
32
- const i = e.target;
33
- if (i === g.current) {
34
- const r = window.innerHeight, t = i.getBoundingClientRect();
35
- u(!o), M(t), t.bottom >= r - 150 && d(!0);
31
+ if (i && e) {
32
+ const n = e.target;
33
+ if (n === g.current) {
34
+ const o = window.innerHeight, r = n.getBoundingClientRect();
35
+ u(!s), M(r), r.bottom >= o - 150 && d(!0);
36
36
  }
37
37
  }
38
- }, V = {
38
+ }, A = {
39
39
  toggleSubMenu: D
40
40
  };
41
- return R(() => {
42
- o && s && document.addEventListener("click", (e) => {
43
- var t;
44
- const i = e.target;
45
- ((t = g.current) == null ? void 0 : t.contains(i)) || u(!1);
41
+ return E(() => {
42
+ s && i && document.addEventListener("click", (e) => {
43
+ const n = e.target;
44
+ g.current?.contains(n) || u(!1);
46
45
  });
47
- }, [o, s]), R(() => {
48
- var t, E, I;
49
- const e = ((t = j.current) == null ? void 0 : t.clientHeight) || 0, i = ((E = f.current) == null ? void 0 : E.clientHeight) || 0, r = N ? "100%" : (window.innerHeight - c.top - (e - i) - 1).toString().concat("px") || "0px";
50
- (I = f.current) == null || I.style.setProperty("max-height", r);
51
- }, [o]), A ? null : /* @__PURE__ */ n.jsx(Y.Provider, { value: V, children: /* @__PURE__ */ n.jsxs(
46
+ }, [s, i]), E(() => {
47
+ const e = j.current?.clientHeight || 0, n = f.current?.clientHeight || 0, o = N ? "100%" : (window.innerHeight - c.top - (e - n) - 1).toString().concat("px") || "0px";
48
+ f.current?.style.setProperty("max-height", o);
49
+ }, [s]), B ? null : /* @__PURE__ */ t.jsx(U.Provider, { value: A, children: /* @__PURE__ */ t.jsxs(
52
50
  "li",
53
51
  {
54
- style: P,
52
+ style: k,
55
53
  ref: (e) => {
56
54
  g.current = e, S && S(e);
57
55
  },
58
- className: `item ${y && !a && "-withlink"} ${O} ${a && "-disabled"}`,
59
- onMouseEnter: Q,
56
+ className: `item ${R && !a && "-withlink"} ${H} ${a && "-disabled"}`,
57
+ onMouseEnter: _,
60
58
  onMouseLeave: () => {
61
- s || (u(!1), d(!1));
59
+ i || (u(!1), d(!1));
62
60
  },
63
61
  onClick: (e) => {
64
- s && D(e);
62
+ i && D(e);
65
63
  },
66
64
  children: [
67
- /* @__PURE__ */ n.jsx(U, { disabled: a, ...x, targetRef: null, children: /* @__PURE__ */ n.jsxs(G, { children: [
68
- b && /* @__PURE__ */ n.jsx(
69
- K,
65
+ /* @__PURE__ */ t.jsx(J, { disabled: a, ...x, targetRef: null, children: /* @__PURE__ */ t.jsxs(V, { children: [
66
+ b && /* @__PURE__ */ t.jsx(
67
+ G,
70
68
  {
71
69
  name: b,
72
70
  size: h === "small" && 16 || h === "medium" && 24 || h === "large" && 32 || 16,
@@ -74,14 +72,14 @@ const ee = (x) => {
74
72
  customClass: "menuicon"
75
73
  }
76
74
  ),
77
- B && /* @__PURE__ */ n.jsx("span", { className: "title", children: w }),
75
+ z && /* @__PURE__ */ t.jsx("span", { className: "title", children: w }),
78
76
  !C && m
79
77
  ] }) }),
80
- o && m && C && !a && !_ && /* @__PURE__ */ n.jsxs(
78
+ s && m && C && !a && !F && /* @__PURE__ */ t.jsxs(
81
79
  "div",
82
80
  {
83
81
  ref: j,
84
- className: `${W} ${v ? "" : "submenu-container"}`,
82
+ className: `${L} ${v ? "" : "submenu-container"}`,
85
83
  style: N ? {
86
84
  marginLeft: c.width,
87
85
  bottom: "0",
@@ -90,17 +88,17 @@ const ee = (x) => {
90
88
  } : {
91
89
  marginLeft: c.width,
92
90
  top: c.top,
93
- minWidth: k,
94
- maxWidth: $
91
+ minWidth: T,
92
+ maxWidth: O
95
93
  },
96
94
  children: [
97
- /* @__PURE__ */ n.jsx("h1", { className: "title", children: w }),
98
- /* @__PURE__ */ n.jsx(
95
+ /* @__PURE__ */ t.jsx("h1", { className: "title", children: w }),
96
+ /* @__PURE__ */ t.jsx(
99
97
  "div",
100
98
  {
101
99
  ref: f,
102
100
  className: "submenu",
103
- style: { gridTemplateColumns: `repeat(${L}, 1fr)` },
101
+ style: { gridTemplateColumns: `repeat(${$}, 1fr)` },
104
102
  children: m
105
103
  }
106
104
  )
@@ -110,7 +108,7 @@ const ee = (x) => {
110
108
  ]
111
109
  }
112
110
  ) });
113
- }, ae = J(ee);
111
+ }, ue = q(Y);
114
112
  export {
115
- ae as default
113
+ ue as default
116
114
  };
@@ -1,4 +1,4 @@
1
- import { j as e } from "../../chunks/jsx-runtime.gtoSnx-V.js";
1
+ import { j as e } from "../../chunks/jsx-runtime.C7wFtzyj.js";
2
2
  import { useState as m, useContext as d } from "react";
3
3
  import c from "./MenuLink.js";
4
4
  import { SubMenuContext as b } from "./helpers.js";
@@ -1,4 +1,4 @@
1
- import { j as t } from "../../chunks/jsx-runtime.gtoSnx-V.js";
1
+ import { j as t } from "../../chunks/jsx-runtime.C7wFtzyj.js";
2
2
  import { useState as a, useRef as H, useEffect as l } from "react";
3
3
  import I from "./NavMenuItem.js";
4
4
  import T from "./NavSubMenuItem.js";
@@ -8,7 +8,7 @@ import { SideNavContext as B } from "./helpers.js";
8
8
  import G from "../../icons/index.js";
9
9
  import { keyCodes as O } from "../../internals/constants.js";
10
10
  import V from "./popup_menu_search/index.js";
11
- import { v as N } from "../../chunks/v1.CDXKvGzE.js";
11
+ import { v as N } from "../../chunks/v1.Ds1rkxUj.js";
12
12
  import '../../assets/index27.css';const re = (f) => {
13
13
  const {
14
14
  customClass: $,
@@ -1,4 +1,4 @@
1
- import { j as s } from "../../../chunks/jsx-runtime.gtoSnx-V.js";
1
+ import { j as s } from "../../../chunks/jsx-runtime.C7wFtzyj.js";
2
2
  import o from "../../../icons/index.js";
3
3
  const i = ({
4
4
  info: t,
@@ -1,11 +1,11 @@
1
- import { j as t } from "../../../chunks/jsx-runtime.gtoSnx-V.js";
1
+ import { j as t } from "../../../chunks/jsx-runtime.C7wFtzyj.js";
2
2
  import { useState as d, useRef as f, useEffect as u, Fragment as v } from "react";
3
3
  import P from "react-dom";
4
4
  import w from "../../../inputs/search/index.js";
5
5
  import F from "../../../list/index.js";
6
6
  import O from "../../../icons/index.js";
7
7
  import k from "./EmptyList.js";
8
- import { L as M } from "../../../chunks/tabs.CM2We4tV.js";
8
+ import { L as M } from "../../../chunks/tabs.D0L_nVfP.js";
9
9
  const h = document.getElementsByTagName("body")[0], A = (x) => {
10
10
  const {
11
11
  style: c,
@@ -1,4 +1,4 @@
1
- import { j as s } from "../chunks/jsx-runtime.gtoSnx-V.js";
1
+ import { j as s } from "../chunks/jsx-runtime.C7wFtzyj.js";
2
2
  import o from "../icons/index.js";
3
3
  import '../assets/noPermission.css';/* empty css */
4
4
  const i = () => /* @__PURE__ */ s.jsxs("div", { className: "no-permission-component", "data-testid": "no-permission-component", children: [
@@ -1,46 +1,45 @@
1
- import { j as d } from "../chunks/jsx-runtime.gtoSnx-V.js";
2
- import { useContext as C, useRef as i, useCallback as g, useEffect as j } from "react";
3
- import H, { getCurrentThreshold as L } from "./helpers.js";
4
- import P from "../noPermission/index.js";
5
- const N = ({ customClass: f, children: h, ...m }) => {
1
+ import { j as d } from "../chunks/jsx-runtime.C7wFtzyj.js";
2
+ import { useContext as C, useRef as l, useCallback as b, useEffect as g } from "react";
3
+ import j, { getCurrentThreshold as H } from "./helpers.js";
4
+ import L from "../noPermission/index.js";
5
+ const T = ({ customClass: f, children: h, ...m }) => {
6
6
  const {
7
- opened: u,
8
- onEndReached: o,
9
- onEndReachedThreshold: a = 0.1,
7
+ opened: i,
8
+ onEndReached: n,
9
+ onEndReachedThreshold: u = 0.1,
10
10
  hideContent: E
11
- } = C(H), t = i(null), s = i(0), l = i(!0), r = g(async () => {
12
- const e = t.current;
13
- if (e && o) {
14
- const { scrollTop: n, scrollHeight: c, clientHeight: p } = e, R = c - p - n - 1, x = L(e, a);
15
- R <= x && l.current && (l.current = !1, await new Promise((v) => {
16
- v(o());
17
- }), s.current = c);
11
+ } = C(j), e = l(null), o = l(0), s = l(!0), t = b(async () => {
12
+ const r = e.current;
13
+ if (r && n) {
14
+ const { scrollTop: c, scrollHeight: a, clientHeight: v } = r, p = a - v - c - 1, R = H(r, u);
15
+ p <= R && s.current && (s.current = !1, await new Promise((x) => {
16
+ x(n());
17
+ }), o.current = a);
18
18
  }
19
19
  }, [
20
- o,
21
- a,
22
- t.current,
23
- s.current
20
+ n,
21
+ u,
22
+ e.current,
23
+ o.current
24
24
  ]);
25
- return j(() => {
26
- let e;
27
- return t.current && o && (e = new ResizeObserver(() => {
28
- const { scrollHeight: n } = t.current;
29
- n !== s.current && (l.current = !0, e == null || e.disconnect());
30
- }), e.observe(t.current), t.current.addEventListener("scroll", r), t.current.addEventListener("resize", r)), () => {
31
- var n, c;
32
- (n = t.current) == null || n.removeEventListener("scroll", r), (c = t.current) == null || c.removeEventListener("resize", r), e == null || e.disconnect();
25
+ return g(() => {
26
+ let r;
27
+ return e.current && n && (r = new ResizeObserver(() => {
28
+ const { scrollHeight: c } = e.current;
29
+ c !== o.current && (s.current = !0, r?.disconnect());
30
+ }), r.observe(e.current), e.current.addEventListener("scroll", t), e.current.addEventListener("resize", t)), () => {
31
+ e.current?.removeEventListener("scroll", t), e.current?.removeEventListener("resize", t), r?.disconnect();
33
32
  };
34
- }, [r]), u ? E ? /* @__PURE__ */ d.jsx(P, {}) : /* @__PURE__ */ d.jsx(
33
+ }, [t]), i ? E ? /* @__PURE__ */ d.jsx(L, {}) : /* @__PURE__ */ d.jsx(
35
34
  "div",
36
35
  {
37
- ref: t,
36
+ ref: e,
38
37
  className: `panel-content ${f ?? ""}`,
39
38
  ...m,
40
- children: u && h
39
+ children: i && h
41
40
  }
42
41
  ) : null;
43
42
  };
44
43
  export {
45
- N as default
44
+ T as default
46
45
  };
@@ -1,4 +1,4 @@
1
- import { j as r } from "../chunks/jsx-runtime.gtoSnx-V.js";
1
+ import { j as r } from "../chunks/jsx-runtime.C7wFtzyj.js";
2
2
  import t from "./Default.js";
3
3
  import e from "../internals/colorStyles.js";
4
4
  const s = (o) => /* @__PURE__ */ r.jsx(t, { ...o, colorStyle: e.DANGER });
@@ -1,4 +1,4 @@
1
- import { j as e } from "../chunks/jsx-runtime.gtoSnx-V.js";
1
+ import { j as e } from "../chunks/jsx-runtime.C7wFtzyj.js";
2
2
  import { useState as a } from "react";
3
3
  import '../assets/gridlayout.css';/* empty css */
4
4
  import D from "../gridlayout/GridCol.js";
@@ -1,4 +1,4 @@
1
- import { j as o } from "../chunks/jsx-runtime.gtoSnx-V.js";
1
+ import { j as o } from "../chunks/jsx-runtime.C7wFtzyj.js";
2
2
  import { useContext as p } from "react";
3
3
  import l from "../icons/index.js";
4
4
  import x from "../buttons/button_container/index.js";
@@ -1,4 +1,4 @@
1
- import { j as t } from "../chunks/jsx-runtime.gtoSnx-V.js";
1
+ import { j as t } from "../chunks/jsx-runtime.C7wFtzyj.js";
2
2
  import r from "./Default.js";
3
3
  import e from "../internals/colorStyles.js";
4
4
  const a = (o) => /* @__PURE__ */ t.jsx(r, { ...o, colorStyle: e.INFO });
@@ -1,4 +1,4 @@
1
- import { j as r } from "../chunks/jsx-runtime.gtoSnx-V.js";
1
+ import { j as r } from "../chunks/jsx-runtime.C7wFtzyj.js";
2
2
  import t from "./Default.js";
3
3
  import e from "../internals/colorStyles.js";
4
4
  const s = (o) => /* @__PURE__ */ r.jsx(t, { ...o, colorStyle: e.PRIMARY });
@@ -1,4 +1,4 @@
1
- import { j as t } from "../chunks/jsx-runtime.gtoSnx-V.js";
1
+ import { j as t } from "../chunks/jsx-runtime.C7wFtzyj.js";
2
2
  import r from "./Default.js";
3
3
  import e from "../internals/colorStyles.js";
4
4
  const a = (o) => /* @__PURE__ */ t.jsx(r, { ...o, colorStyle: e.SUCCESS });
@@ -1,4 +1,4 @@
1
- import { j as r } from "../chunks/jsx-runtime.gtoSnx-V.js";
1
+ import { j as r } from "../chunks/jsx-runtime.C7wFtzyj.js";
2
2
  import t from "../toolbar/index.js";
3
3
  const e = ({ children: o }) => /* @__PURE__ */ r.jsx(t, { style: { width: "auto", backgroundColor: "transparent", border: 0 }, children: o });
4
4
  export {
@@ -1,4 +1,4 @@
1
- import { j as r } from "../chunks/jsx-runtime.gtoSnx-V.js";
1
+ import { j as r } from "../chunks/jsx-runtime.C7wFtzyj.js";
2
2
  import t from "./Default.js";
3
3
  import e from "../internals/colorStyles.js";
4
4
  const s = (o) => /* @__PURE__ */ r.jsx(t, { ...o, colorStyle: e.WARNING });
@@ -4,11 +4,11 @@ const a = (e) => {
4
4
  return n && n[e] ? n[e] : [];
5
5
  }, c = (e, n) => e.some((t) => t.codigo === n), i = (e, n, t) => {
6
6
  for (let r = 0; r < e.length; r += 1) {
7
- const o = e[r];
8
- if (o.codigo === n && o.permissoes.length > 0)
9
- return c(o.permissoes, t);
10
- if (o.itens.length > 0) {
11
- if (i(o.itens, n, t)) return !0;
7
+ const s = e[r];
8
+ if (s.codigo === n && s.permissoes.length > 0)
9
+ return c(s.permissoes, t);
10
+ if (s.itens.length > 0) {
11
+ if (i(s.itens, n, t)) return !0;
12
12
  if (r === e.length - 1) return !1;
13
13
  }
14
14
  }
@@ -17,18 +17,18 @@ const a = (e) => {
17
17
  if (!e) return !0;
18
18
  const n = Array.isArray(e) ? e : [e];
19
19
  for (let t = 0; t < n.length; t += 1) {
20
- const { module: r, feature: o, operation: s } = n[t];
21
- if (i(a(r), o, s)) return !0;
20
+ const { module: r, feature: s, operation: o } = n[t];
21
+ if (i(a(r), s, o)) return !0;
22
22
  }
23
23
  return !1;
24
24
  }, d = (e, n) => {
25
25
  const t = l(n), r = n && !Array.isArray(n) ? [n] : n;
26
26
  if (r && r[0].onDenied && !e.includes(r[0].onDenied))
27
27
  throw new Error("in property onDenied from permissionAttr it`s not a valid option. Look for valid options in the component documentation.");
28
- const o = {};
29
- return e.forEach((s) => {
30
- o[s] = t ? !1 : s === (r == null ? void 0 : r[0].onDenied);
31
- }), o;
28
+ const s = {};
29
+ return e.forEach((o) => {
30
+ s[o] = t ? !1 : o === r?.[0].onDenied;
31
+ }), s;
32
32
  }, f = {
33
33
  disabled: "disabled",
34
34
  unvisible: "unvisible",
@@ -1,4 +1,4 @@
1
- import { j as r } from "../chunks/jsx-runtime.gtoSnx-V.js";
1
+ import { j as r } from "../chunks/jsx-runtime.C7wFtzyj.js";
2
2
  import { forwardRef as t } from "react";
3
3
  const s = t(({ children: e }, o) => /* @__PURE__ */ r.jsx("p", { className: "text", ref: o, children: e }));
4
4
  s.displayName = "PopoverText";
@@ -1,4 +1,4 @@
1
- import { j as s } from "../chunks/jsx-runtime.gtoSnx-V.js";
1
+ import { j as s } from "../chunks/jsx-runtime.C7wFtzyj.js";
2
2
  const o = ({ children: t }) => /* @__PURE__ */ s.jsx("h1", { className: "title", children: t });
3
3
  export {
4
4
  o as default
@@ -1,4 +1,4 @@
1
- import { j as o } from "../chunks/jsx-runtime.gtoSnx-V.js";
1
+ import { j as o } from "../chunks/jsx-runtime.C7wFtzyj.js";
2
2
  import m from "../buttons/Button.js";
3
3
  import f from "../icons/index.js";
4
4
  import '../assets/button.css';import '../assets/index3.css';/* empty css */
@@ -1,4 +1,4 @@
1
- import { j as s } from "../chunks/jsx-runtime.gtoSnx-V.js";
1
+ import { j as s } from "../chunks/jsx-runtime.C7wFtzyj.js";
2
2
  const l = 1e3, m = ({ max: e = 100, min: t = 0, value: a = 0 }) => {
3
3
  const n = (a - t) / (e - t) * 100;
4
4
  return Math.round(n * l) / l;
@@ -1,4 +1,4 @@
1
- import { j as s } from "../chunks/jsx-runtime.gtoSnx-V.js";
1
+ import { j as s } from "../chunks/jsx-runtime.C7wFtzyj.js";
2
2
  import n from "./Bar.js";
3
3
  import '../assets/index9.css';const m = (r) => {
4
4
  const { style: t, children: e, width: o = "100%", height: a = "24px" } = r, i = {
@@ -1,4 +1,4 @@
1
- import { j as s } from "../chunks/jsx-runtime.gtoSnx-V.js";
1
+ import { j as s } from "../chunks/jsx-runtime.C7wFtzyj.js";
2
2
  import { useState as f, useEffect as S } from "react";
3
3
  import '../assets/radio.css';/* empty css */
4
4
  import { OPTIONS_ON_DENIED as x, actionsOnPermissionDenied as w } from "../permissionValidations.js";
@@ -1,4 +1,4 @@
1
- import { j as s } from "../chunks/jsx-runtime.gtoSnx-V.js";
1
+ import { j as s } from "../chunks/jsx-runtime.C7wFtzyj.js";
2
2
  import '../assets/index15.css';const d = ({ type: t, style: o, styleShortcut: c, shortcut: e, description: r }) => /* @__PURE__ */ s.jsxs("p", { "data-testid": "description", className: "shortcut-description", style: o, children: [
3
3
  /* @__PURE__ */ s.jsx("kbd", { "data-testid": "shortcut", className: `shortcut-component ${t && `-${t}`}`, style: c, children: e }),
4
4
  ": ",
@@ -1,4 +1,4 @@
1
- import { j as r } from "../chunks/jsx-runtime.gtoSnx-V.js";
1
+ import { j as r } from "../chunks/jsx-runtime.C7wFtzyj.js";
2
2
  const c = ({ children: t, row: e, customClass: o, style: n }) => {
3
3
  const s = () => `skeletoncontainer-component ${o}
4
4
  ${e && "-row"}`;
@@ -1,4 +1,4 @@
1
- import { j as n } from "../chunks/jsx-runtime.gtoSnx-V.js";
1
+ import { j as n } from "../chunks/jsx-runtime.C7wFtzyj.js";
2
2
  import '../assets/skeleton.css';import '../assets/gridlayout.css';/* empty css */
3
3
  import p from "../gridlayout/GridCol.js";
4
4
  import { default as y } from "./SkeletonContainer.js";
@@ -1,4 +1,4 @@
1
- import { j as e } from "../chunks/jsx-runtime.gtoSnx-V.js";
1
+ import { j as e } from "../chunks/jsx-runtime.C7wFtzyj.js";
2
2
  const a = ({ color: t = "#3B3B3B", size: i = "50px" }) => /* @__PURE__ */ e.jsxs("svg", { "data-testid": "spinner", className: "lds-spinner spinnerloading", fill: t, width: i, viewBox: "0 0 100 100", preserveAspectRatio: "xMidYMid", style: { background: "none", float: "right" }, children: [
3
3
  /* @__PURE__ */ e.jsx("g", { transform: "rotate(0 50 50)", children: /* @__PURE__ */ e.jsx("rect", { x: "47", y: "24", rx: "9.4", ry: "4.8", width: "6", height: "12", children: /* @__PURE__ */ e.jsx("animate", { attributeName: "opacity", values: "1;0", keyTimes: "0;1", dur: "1s", begin: "-0.9166666666666666s", repeatCount: "indefinite" }) }) }),
4
4
  /* @__PURE__ */ e.jsx("g", { transform: "rotate(30 50 50)", children: /* @__PURE__ */ e.jsx("rect", { x: "47", y: "24", rx: "9.4", ry: "4.8", width: "6", height: "12", children: /* @__PURE__ */ e.jsx("animate", { attributeName: "opacity", values: "1;0", keyTimes: "0;1", dur: "1s", begin: "-0.8333333333333334s", repeatCount: "indefinite" }) }) }),
@@ -1,4 +1,4 @@
1
- import { j as i } from "../chunks/jsx-runtime.gtoSnx-V.js";
1
+ import { j as i } from "../chunks/jsx-runtime.C7wFtzyj.js";
2
2
  import { useState as h, useRef as j, useEffect as y } from "react";
3
3
  import l from "./SpinnerLoading.js";
4
4
  import '../assets/index6.css';const S = (c) => {
@@ -1,4 +1,4 @@
1
- import { j as m } from "../chunks/jsx-runtime.gtoSnx-V.js";
1
+ import { j as m } from "../chunks/jsx-runtime.C7wFtzyj.js";
2
2
  import { useState as V, useRef as M, useEffect as b } from "react";
3
3
  import X from "./helpers.js";
4
4
  const F = ({
@@ -1,4 +1,4 @@
1
- import { j as m } from "../chunks/jsx-runtime.gtoSnx-V.js";
1
+ import { j as m } from "../chunks/jsx-runtime.C7wFtzyj.js";
2
2
  import { useContext as u } from "react";
3
3
  import x from "./helpers.js";
4
4
  const $ = ({ primary: o, children: l, customClass: a, style: n }) => {
package/lib/table/Body.js CHANGED
@@ -1,40 +1,40 @@
1
- import { j as e } from "../chunks/jsx-runtime.gtoSnx-V.js";
1
+ import { j as e } from "../chunks/jsx-runtime.C7wFtzyj.js";
2
2
  import { useContext as x } from "react";
3
- import f, { getArrayFromNumber as y } from "./helpers.js";
4
- import j from "../skeleton/index.js";
5
- import "../chunks/lodash.C68pWaTB.js";
6
- import k from "./Row.js";
3
+ import h, { getArrayFromNumber as y } from "./helpers.js";
4
+ import f from "../skeleton/index.js";
5
+ import "../chunks/lodash.CIAK_hAg.js";
6
+ import u from "./Row.js";
7
7
  import "../icons/index.js";
8
- import h from "./RowColumn.js";
8
+ import j from "./RowColumn.js";
9
9
  import '../assets/table.css';/* empty css */
10
- const b = (s, {
10
+ const b = (r, {
11
11
  columnsCount: t,
12
12
  vertical: o,
13
- skeletonize: a,
14
- skeletonInRows: n = 10,
13
+ skeletonize: l,
14
+ skeletonInRows: s = 10,
15
15
  skeletonHeight: i = 16,
16
- columnsWidth: r
16
+ columnsWidth: a
17
17
  }) => {
18
- if (a && !o && t && n) {
19
- const c = y(n), m = y(t);
20
- return c.map((l) => /* @__PURE__ */ e.jsx(k, { customClass: "row-skeleton", children: m.map((p) => /* @__PURE__ */ e.jsx(h, { style: { width: r == null ? void 0 : r[p - 1] }, children: /* @__PURE__ */ e.jsx(j, { height: i }) }, p)) }, l));
18
+ if (l && !o && t && s) {
19
+ const c = y(s), m = y(t);
20
+ return c.map((n) => /* @__PURE__ */ e.jsx(u, { customClass: "row-skeleton", children: m.map((p) => /* @__PURE__ */ e.jsx(j, { style: { width: a?.[p - 1] }, children: /* @__PURE__ */ e.jsx(f, { height: i }) }, p)) }, n));
21
21
  }
22
- return s;
23
- }, v = ({ children: s, customClass: t }) => {
24
- const o = x(f), {
25
- bodyScrollable: a,
26
- bodyContainerRef: n,
22
+ return r;
23
+ }, v = ({ children: r, customClass: t }) => {
24
+ const o = x(h), {
25
+ bodyScrollable: l,
26
+ bodyContainerRef: s,
27
27
  skeletonize: i,
28
- skeletonInRows: r = 10,
28
+ skeletonInRows: a = 10,
29
29
  strict: c,
30
30
  vertical: m,
31
31
  columnsCount: d
32
- } = o, l = !!(i && !m && r && d);
33
- return a ? /* @__PURE__ */ e.jsx(
32
+ } = o, n = !!(i && !m && a && d);
33
+ return l ? /* @__PURE__ */ e.jsx(
34
34
  "div",
35
35
  {
36
36
  className: "bodycontainer",
37
- ref: n,
37
+ ref: s,
38
38
  children: /* @__PURE__ */ e.jsx(
39
39
  "table",
40
40
  {
@@ -45,14 +45,14 @@ const b = (s, {
45
45
  children: /* @__PURE__ */ e.jsx(
46
46
  "tbody",
47
47
  {
48
- className: `tbody ${l ? "skeleton-transparency" : ""} ${t}`,
49
- children: b(s, o)
48
+ className: `tbody ${n ? "skeleton-transparency" : ""} ${t}`,
49
+ children: b(r, o)
50
50
  }
51
51
  )
52
52
  }
53
53
  )
54
54
  }
55
- ) : /* @__PURE__ */ e.jsx("tbody", { className: `tbody ${l ? "skeleton-transparency" : ""} ${t}`, children: b(s, o) });
55
+ ) : /* @__PURE__ */ e.jsx("tbody", { className: `tbody ${n ? "skeleton-transparency" : ""} ${t}`, children: b(r, o) });
56
56
  };
57
57
  export {
58
58
  v as default