linear-react-components-ui 1.1.26-beta-1 → 1.1.26-beta.10

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 (225) hide show
  1. package/lib/alerts/AlertContainer.js +8 -2
  2. package/lib/alerts/AlertProvider.js +11 -5
  3. package/lib/alerts/BaseAlert.js +10 -8
  4. package/lib/alerts/Message.js +91 -64
  5. package/lib/alerts/withAlert.js +10 -6
  6. package/lib/assets/BaseAlert.css +1 -1
  7. package/lib/assets/Content.css +1 -1
  8. package/lib/assets/DefaultFile.css +1 -1
  9. package/lib/assets/Drawer.css +1 -1
  10. package/lib/assets/index11.css +1 -1
  11. package/lib/assets/index5.css +1 -1
  12. package/lib/avatar/index.js +29 -51
  13. package/lib/badge/index.js +25 -23
  14. package/lib/buttons/ActivateButton.js +9 -4
  15. package/lib/buttons/AddButton.js +12 -5
  16. package/lib/buttons/Button.js +16 -5
  17. package/lib/buttons/ButtonGroups.js +10 -3
  18. package/lib/buttons/CancelButton.js +14 -4
  19. package/lib/buttons/DangerButton.js +15 -4
  20. package/lib/buttons/DefaultButton.js +76 -111
  21. package/lib/buttons/DestroyButton.js +21 -5
  22. package/lib/buttons/EditButton.js +9 -4
  23. package/lib/buttons/InactivateButton.js +9 -4
  24. package/lib/buttons/InfoButton.js +15 -4
  25. package/lib/buttons/PrimaryButton.js +15 -4
  26. package/lib/buttons/RestoreButton.js +9 -4
  27. package/lib/buttons/SaveButton.js +14 -4
  28. package/lib/buttons/SuccessButton.js +15 -4
  29. package/lib/buttons/WarningButton.js +15 -4
  30. package/lib/buttons/button_container/index.js +21 -16
  31. package/lib/buttons/split_button/index.js +53 -55
  32. package/lib/calendar/DangerCalendar.js +18 -4
  33. package/lib/calendar/InfoCalendar.js +18 -4
  34. package/lib/calendar/PrimaryCalendar.js +18 -4
  35. package/lib/calendar/SuccessCalendar.js +18 -4
  36. package/lib/calendar/WarningCalendar.js +18 -4
  37. package/lib/calendar/base/Day.js +32 -22
  38. package/lib/calendar/base/Month.js +24 -21
  39. package/lib/calendar/base/Week.js +20 -19
  40. package/lib/calendar/base/helpers.js +11 -19
  41. package/lib/calendar/base/index.js +129 -97
  42. package/lib/checkbox/index.js +6 -5
  43. package/lib/chunks/compiler-runtime.Cu50tn6L.js +54 -0
  44. package/lib/chunks/{index.Da--18GT.js → index.Df3kt2LQ.js} +179 -181
  45. package/lib/chunks/index.aw0XaUkg.js +266 -0
  46. package/lib/chunks/jsx-runtime.D1SHvdVE.js +282 -0
  47. package/lib/chunks/lodash.CIAK_hAg.js +3684 -0
  48. package/lib/chunks/moment.DMLRxgRE.js +2589 -0
  49. package/lib/chunks/tabs.BvKfeA6Y.js +244 -0
  50. package/lib/chunks/v1.Ds1rkxUj.js +49 -0
  51. package/lib/dialog/Alert.js +18 -17
  52. package/lib/dialog/Custom.js +42 -28
  53. package/lib/dialog/Error.js +18 -17
  54. package/lib/dialog/Information.js +18 -17
  55. package/lib/dialog/Question.js +43 -59
  56. package/lib/dialog/Warning.js +18 -17
  57. package/lib/dialog/base/Content.js +13 -4
  58. package/lib/dialog/base/Footer.js +8 -3
  59. package/lib/dialog/base/Header.js +4 -3
  60. package/lib/dialog/base/index.js +5 -4
  61. package/lib/dialog/form/index.js +5 -4
  62. package/lib/dialog/index.js +1 -1
  63. package/lib/dialog/wizard/index.js +11 -10
  64. package/lib/dialog/wizard/progressbar.js +96 -3
  65. package/lib/dialog/wizard/step.js +4 -3
  66. package/lib/dialog/wizard/useWizard.js +42 -29
  67. package/lib/drawer/Content.js +15 -8
  68. package/lib/drawer/Drawer.js +38 -35
  69. package/lib/drawer/Header.js +53 -40
  70. package/lib/drawer/helpers.js +2 -2
  71. package/lib/dropdown/Popup.js +4 -2
  72. package/lib/dropdown/withDropdown.js +75 -50
  73. package/lib/fieldset/index.js +66 -47
  74. package/lib/form/Field.js +88 -62
  75. package/lib/form/FieldArray.js +18 -39
  76. package/lib/form/FieldNumber.js +42 -38
  77. package/lib/form/FieldPeriod.js +90 -59
  78. package/lib/form/helpers.js +14 -11
  79. package/lib/form/index.js +88 -100
  80. package/lib/form/withFieldHOC.js +57 -48
  81. package/lib/form/withFormSecurity.js +15 -18
  82. package/lib/gridlayout/GridCol.js +21 -20
  83. package/lib/gridlayout/GridRow.js +22 -20
  84. package/lib/hint/helpers.js +6 -2
  85. package/lib/hint/index.js +27 -25
  86. package/lib/icons/helper.js +142 -569
  87. package/lib/icons/index.js +62 -57
  88. package/lib/index.js +20 -19
  89. package/lib/inputs/base/InputTextBase.js +121 -207
  90. package/lib/inputs/base/Label.js +27 -29
  91. package/lib/inputs/base/helpers.d.ts +3 -3
  92. package/lib/inputs/base/helpers.js +4 -2
  93. package/lib/inputs/color/index.js +52 -73
  94. package/lib/inputs/date/Dialog.js +15 -16
  95. package/lib/inputs/date/Dropdown.js +16 -14
  96. package/lib/inputs/date/helpers.js +7 -7
  97. package/lib/inputs/date/index.js +101 -147
  98. package/lib/inputs/errorMessage/index.js +21 -13
  99. package/lib/inputs/file/DefaultFile.js +64 -67
  100. package/lib/inputs/file/DragDropFile.js +79 -135
  101. package/lib/inputs/file/File.d.ts +1 -1
  102. package/lib/inputs/file/File.js +24 -39
  103. package/lib/inputs/file/FileButtonSettings.js +20 -17
  104. package/lib/inputs/inputHOC.js +38 -20
  105. package/lib/inputs/mask/BaseMask.js +51 -30
  106. package/lib/inputs/mask/Cnpj.js +42 -36
  107. package/lib/inputs/mask/Cpf.js +45 -33
  108. package/lib/inputs/mask/Phone.js +10 -6
  109. package/lib/inputs/mask/ZipCode.js +9 -4
  110. package/lib/inputs/mask/helpers.d.ts +33 -33
  111. package/lib/inputs/mask/helpers.js +44 -44
  112. package/lib/inputs/multiSelect/ActionButtons.js +35 -46
  113. package/lib/inputs/multiSelect/Dropdown.js +94 -133
  114. package/lib/inputs/multiSelect/helper.js +4 -7
  115. package/lib/inputs/multiSelect/index.js +167 -127
  116. package/lib/inputs/number/BaseNumber.js +43 -31
  117. package/lib/inputs/number/Currency.js +19 -12
  118. package/lib/inputs/number/Decimal.js +9 -4
  119. package/lib/inputs/number/index.js +31 -35
  120. package/lib/inputs/period/Dialog.js +16 -16
  121. package/lib/inputs/period/Dropdown.js +15 -15
  122. package/lib/inputs/period/PeriodList.js +41 -27
  123. package/lib/inputs/period/helper.js +8 -4
  124. package/lib/inputs/period/index.js +192 -330
  125. package/lib/inputs/search/index.js +95 -71
  126. package/lib/inputs/select/ActionButtons.js +24 -45
  127. package/lib/inputs/select/Dropdown.js +61 -110
  128. package/lib/inputs/select/helper.d.ts +1 -1
  129. package/lib/inputs/select/helper.js +43 -45
  130. package/lib/inputs/select/index.js +23 -25
  131. package/lib/inputs/select/multiple/Selecteds.js +23 -19
  132. package/lib/inputs/select/multiple/index.js +106 -176
  133. package/lib/inputs/select/simple/index.js +126 -196
  134. package/lib/inputs/text/index.js +9 -4
  135. package/lib/inputs/textarea/index.js +13 -15
  136. package/lib/internals/withTooltip.js +114 -67
  137. package/lib/labelMessages/index.js +50 -45
  138. package/lib/labels/DangerLabel.js +18 -4
  139. package/lib/labels/DefaultLabel.js +53 -39
  140. package/lib/labels/InfoLabel.js +18 -4
  141. package/lib/labels/PrimaryLabel.js +18 -4
  142. package/lib/labels/SuccessLabel.js +18 -4
  143. package/lib/labels/WarningLabel.js +18 -4
  144. package/lib/labels/label_container/index.js +15 -9
  145. package/lib/list/Header.js +18 -6
  146. package/lib/list/Item.js +5 -4
  147. package/lib/list/Separator.js +8 -3
  148. package/lib/list/helpers.js +2 -2
  149. package/lib/list/index.js +21 -18
  150. package/lib/menus/float/MenuItem.js +49 -52
  151. package/lib/menus/float/SubMenuContainer.d.ts +10 -10
  152. package/lib/menus/float/index.js +102 -81
  153. package/lib/menus/sidenav/ExpandMenu.js +17 -15
  154. package/lib/menus/sidenav/MenuLink.js +21 -14
  155. package/lib/menus/sidenav/NavMenuGroup.js +19 -14
  156. package/lib/menus/sidenav/NavMenuItem.js +131 -111
  157. package/lib/menus/sidenav/NavSubMenuItem.js +36 -20
  158. package/lib/menus/sidenav/helpers.js +4 -4
  159. package/lib/menus/sidenav/index.js +145 -123
  160. package/lib/menus/sidenav/popup_menu_search/EmptyList.js +21 -17
  161. package/lib/menus/sidenav/popup_menu_search/index.js +17 -51
  162. package/lib/noPermission/index.js +13 -8
  163. package/lib/panel/Content.js +49 -40
  164. package/lib/panel/DangerPanel.js +10 -5
  165. package/lib/panel/Default.js +62 -36
  166. package/lib/panel/Header.js +53 -37
  167. package/lib/panel/InfoPanel.js +10 -5
  168. package/lib/panel/PrimaryPanel.js +10 -5
  169. package/lib/panel/SuccessPanel.js +10 -5
  170. package/lib/panel/ToolBar.js +17 -4
  171. package/lib/panel/WarningPanel.js +10 -5
  172. package/lib/panel/helpers.js +8 -5
  173. package/lib/permissionValidations.js +15 -11
  174. package/lib/popover/PopoverText.js +12 -5
  175. package/lib/popover/PopoverTitle.js +10 -3
  176. package/lib/popover/index.js +36 -56
  177. package/lib/progress/Bar.js +43 -34
  178. package/lib/progress/index.js +23 -18
  179. package/lib/radio/index.js +105 -89
  180. package/lib/shortcuts/index.js +20 -7
  181. package/lib/skeleton/SkeletonContainer.js +16 -6
  182. package/lib/skeleton/index.js +42 -18
  183. package/lib/spinner/SpinnerLoading.js +53 -16
  184. package/lib/spinner/index.js +47 -37
  185. package/lib/split/Split.js +83 -79
  186. package/lib/split/SplitSide.js +24 -16
  187. package/lib/table/Body.js +36 -49
  188. package/lib/table/Header.js +45 -35
  189. package/lib/table/HeaderColumn.js +40 -27
  190. package/lib/table/Row.js +47 -48
  191. package/lib/table/RowColumn.js +50 -38
  192. package/lib/table/helpers.js +3 -1
  193. package/lib/table/index.js +101 -104
  194. package/lib/tabs/DropdownTabs.js +64 -61
  195. package/lib/tabs/Menu.js +35 -49
  196. package/lib/tabs/MenuTabs.js +59 -84
  197. package/lib/tabs/Panel.js +57 -47
  198. package/lib/tabs/context.js +36 -40
  199. package/lib/tabs/index.js +69 -64
  200. package/lib/tabs/tabHelpers.js +10 -8
  201. package/lib/textContent/index.js +30 -32
  202. package/lib/toolbar/ButtonBar.js +62 -58
  203. package/lib/toolbar/LabelBar.js +46 -38
  204. package/lib/toolbar/Separator.js +8 -3
  205. package/lib/toolbar/ToolBarGroup.js +14 -3
  206. package/lib/toolbar/index.js +35 -29
  207. package/lib/tooltip/index.js +24 -24
  208. package/lib/treetable/Body.js +26 -27
  209. package/lib/treetable/Header.js +23 -19
  210. package/lib/treetable/Row.js +210 -147
  211. package/lib/treetable/helpers.d.ts +4 -5
  212. package/lib/treetable/helpers.js +6 -14
  213. package/lib/treetable/index.js +25 -15
  214. package/lib/treeview/Header.js +13 -5
  215. package/lib/treeview/Node.js +198 -175
  216. package/lib/treeview/index.js +257 -174
  217. package/lib/uitour/index.js +167 -166
  218. package/package.json +32 -43
  219. package/lib/chunks/index.CmrLK9Qe.js +0 -675
  220. package/lib/chunks/index.D5f6Ow9V.js +0 -89
  221. package/lib/chunks/index.yztgndLc.js +0 -206
  222. package/lib/chunks/jsx-runtime.CYK1ROHF.js +0 -445
  223. package/lib/chunks/tabs.Cvj2MJH6.js +0 -246
  224. package/lib/chunks/v1.CDXKvGzE.js +0 -41
  225. /package/lib/assets/{index29.css → progressbar.css} +0 -0
@@ -1,23 +1,39 @@
1
- import { j as e } from "../../chunks/jsx-runtime.CYK1ROHF.js";
2
- import { useState as m, useContext as d } from "react";
3
- import c from "./MenuLink.js";
4
- import { SubMenuContext as b } from "./helpers.js";
5
- import { OPTIONS_ON_DENIED as t, actionsOnPermissionDenied as p } from "../../permissionValidations.js";
6
- const D = ({ title: o, url: i, permissionAttr: s }) => {
7
- const r = [t.disabled, t.unvisible], [l] = m(p(r, s)), { toggleSubMenu: u } = d(b), { unvisible: a, disabled: n } = l;
8
- return a ? null : /* @__PURE__ */ e.jsx(
9
- "div",
10
- {
11
- className: `item hvr-forward ${n && "-disabled"}`,
12
- onKeyDown: () => {
13
- },
14
- role: "button",
15
- tabIndex: -1,
16
- onClick: u,
17
- children: /* @__PURE__ */ e.jsx(c, { disabled: n, url: i, children: /* @__PURE__ */ e.jsx("span", { className: "title", children: o }) })
18
- }
19
- );
1
+ import { j as d } from "../../chunks/jsx-runtime.D1SHvdVE.js";
2
+ import { c as j } from "../../chunks/compiler-runtime.Cu50tn6L.js";
3
+ import { useContext as v, useState as D } from "react";
4
+ import S from "./MenuLink.js";
5
+ import { SubMenuContext as h } from "./helpers.js";
6
+ import { OPTIONS_ON_DENIED as f, actionsOnPermissionDenied as E } from "../../permissionValidations.js";
7
+ const w = (p) => {
8
+ const t = j.c(13), {
9
+ title: l,
10
+ url: m,
11
+ permissionAttr: u
12
+ } = p;
13
+ let o, i;
14
+ if (t[0] !== u) {
15
+ const N = [f.disabled, f.unvisible];
16
+ o = D, i = E(N, u), t[0] = u, t[1] = o, t[2] = i;
17
+ } else
18
+ o = t[1], i = t[2];
19
+ const [b] = o(i), {
20
+ toggleSubMenu: c
21
+ } = v(h), {
22
+ unvisible: x,
23
+ disabled: s
24
+ } = b;
25
+ if (x)
26
+ return null;
27
+ const a = `item hvr-forward ${s && "-disabled"}`;
28
+ let e;
29
+ t[3] !== l ? (e = /* @__PURE__ */ d.jsx("span", { className: "title", children: l }), t[3] = l, t[4] = e) : e = t[4];
30
+ let n;
31
+ t[5] !== s || t[6] !== e || t[7] !== m ? (n = /* @__PURE__ */ d.jsx(S, { disabled: s, url: m, children: e }), t[5] = s, t[6] = e, t[7] = m, t[8] = n) : n = t[8];
32
+ let r;
33
+ return t[9] !== a || t[10] !== n || t[11] !== c ? (r = /* @__PURE__ */ d.jsx("div", { className: a, onKeyDown: I, role: "button", tabIndex: -1, onClick: c, children: n }), t[9] = a, t[10] = n, t[11] = c, t[12] = r) : r = t[12], r;
20
34
  };
35
+ function I() {
36
+ }
21
37
  export {
22
- D as default
38
+ w as default
23
39
  };
@@ -1,10 +1,10 @@
1
1
  import t from "react";
2
- const o = (n, s) => {
2
+ const a = (n, s) => {
3
3
  let e = "expandedmenu";
4
4
  return n || (e = `collapsedmenu -${s}`), e;
5
- }, c = t.createContext({}), u = t.createContext({});
5
+ }, c = t.createContext({}), r = t.createContext({});
6
6
  export {
7
- u as SideNavContext,
7
+ r as SideNavContext,
8
8
  c as SubMenuContext,
9
- o as default
9
+ a as default
10
10
  };
@@ -1,128 +1,150 @@
1
- import { j as t } from "../../chunks/jsx-runtime.CYK1ROHF.js";
2
- import { useState as a, useRef as H, useEffect as l } from "react";
3
- import I from "./NavMenuItem.js";
4
- import T from "./NavSubMenuItem.js";
5
- import _ from "./NavMenuGroup.js";
6
- import q from "./ExpandMenu.js";
7
- import { SideNavContext as B } from "./helpers.js";
8
- import G from "../../icons/index.js";
9
- import { keyCodes as O } from "../../internals/constants.js";
10
- import V from "./popup_menu_search/index.js";
11
- import { v as N } from "../../chunks/v1.CDXKvGzE.js";
12
- import '../../assets/index27.css';const re = (f) => {
13
- const {
14
- customClass: $,
15
- showExpandMenu: g,
16
- expandMenuCustomClass: j,
17
- expanded: u = !0,
18
- menuSize: s = "medium",
19
- onExpandMenuClick: x,
20
- children: i,
21
- enableMenuSearch: p,
22
- menuSearchCustomComponent: h
23
- } = f, [o, C] = a(u), [M, k] = a([]), [w, b] = a({}), [c, v] = a(!1), r = H(null), D = () => {
24
- C(!o), x && x(!o);
25
- }, R = () => {
26
- const { left: e, top: n, width: d, height: A } = w;
27
- return `left: ${e + d + 5}px; top: ${n + 1}px; height: ${A - 8}px;`;
28
- }, K = () => {
29
- v(!1);
30
- }, S = (e) => {
31
- const { type: n } = e;
32
- (n === I || n === T) && !e.props.children && k((d) => [...d, {
33
- id: e.props.id || `${e.props.title}-${N()}`,
34
- content: e.props.title,
35
- url: e.props.url
36
- }]);
37
- }, m = (e) => {
38
- Array.isArray(e) ? e.forEach((n) => {
39
- n && (S(n), n.props && n.props.children && m(n.props.children));
40
- }) : e && (S(e), e.props && e.props.children && m(e.props.children));
41
- }, y = () => {
42
- v(!0);
43
- }, E = (e) => {
44
- [O.F].includes(e.keyCode) && e.ctrlKey && e.shiftKey && (e.preventDefault(), y());
45
- };
46
- l(() => (document.addEventListener("keydown", E), () => {
47
- document.removeEventListener("keydown", E);
48
- }), []), l(() => {
49
- p && r && r.current && b(r.current.getBoundingClientRect()), p && m(i);
50
- }, []), l(() => {
51
- C(u);
52
- }, [u]);
53
- const P = () => M.filter((e) => e.content !== ""), F = () => {
54
- const e = {
55
- ...f,
56
- style: R(),
57
- handlerClose: K,
58
- menuItemsContent: M && P()
1
+ import { j as i } from "../../chunks/jsx-runtime.D1SHvdVE.js";
2
+ import { c as ae } from "../../chunks/compiler-runtime.Cu50tn6L.js";
3
+ import { useState as L, useRef as me, useEffect as W } from "react";
4
+ import oe from "./NavMenuItem.js";
5
+ import ue from "./NavSubMenuItem.js";
6
+ import pe from "./NavMenuGroup.js";
7
+ import fe from "./ExpandMenu.js";
8
+ import { SideNavContext as de } from "./helpers.js";
9
+ import he from "../../icons/index.js";
10
+ import { keyCodes as xe } from "../../internals/constants.js";
11
+ import Se from "./popup_menu_search/index.js";
12
+ import { v as se } from "../../chunks/v1.Ds1rkxUj.js";
13
+ import '../../assets/index27.css';const De = (m) => {
14
+ const e = ae.c(52), {
15
+ customClass: re,
16
+ showExpandMenu: A,
17
+ expandMenuCustomClass: H,
18
+ expanded: X,
19
+ menuSize: Y,
20
+ onExpandMenuClick: S,
21
+ children: l,
22
+ enableMenuSearch: c,
23
+ menuSearchCustomComponent: C
24
+ } = m, x = X === void 0 ? !0 : X, r = Y === void 0 ? "medium" : Y, [o, Z] = L(x);
25
+ let v;
26
+ e[0] === Symbol.for("react.memo_cache_sentinel") ? (v = [], e[0] = v) : v = e[0];
27
+ const [u, ie] = L(v);
28
+ let y;
29
+ e[1] === Symbol.for("react.memo_cache_sentinel") ? (y = {}, e[1] = y) : y = e[1];
30
+ const [T, le] = L(y), [a, ee] = L(!1), M = me(null);
31
+ let b;
32
+ e[2] !== o || e[3] !== S ? (b = () => {
33
+ Z(!o), S && S(!o);
34
+ }, e[2] = o, e[3] = S, e[4] = b) : b = e[4];
35
+ const q = b;
36
+ let _;
37
+ e[5] !== T ? (_ = () => {
38
+ const {
39
+ left: n,
40
+ top: t,
41
+ width: s,
42
+ height: U
43
+ } = T;
44
+ return `left: ${n + s + 5}px; top: ${t + 1}px; height: ${U - 8}px;`;
45
+ }, e[5] = T, e[6] = _) : _ = e[6];
46
+ const B = _;
47
+ let E;
48
+ e[7] === Symbol.for("react.memo_cache_sentinel") ? (E = () => {
49
+ ee(!1);
50
+ }, e[7] = E) : E = e[7];
51
+ const ce = E;
52
+ let p, I;
53
+ if (e[8] === Symbol.for("react.memo_cache_sentinel")) {
54
+ const n = (t) => {
55
+ const {
56
+ type: s
57
+ } = t;
58
+ (s === oe || s === ue) && !t.props.children && ie((U) => [...U, {
59
+ id: t.props.id || `${t.props.title}-${se()}`,
60
+ content: t.props.title,
61
+ url: t.props.url
62
+ }]);
59
63
  };
60
- return /* @__PURE__ */ t.jsx(_, { children: /* @__PURE__ */ t.jsxs(
61
- I,
62
- {
63
- childrenIsSubMenu: !1,
64
- customClass: "-customsidenavitem",
65
- tooltip: "Pesquisar funcionalidades (CTRL+SHIFT+F)",
66
- tooltipPosition: "right",
67
- children: [
68
- /* @__PURE__ */ t.jsx(
69
- "div",
70
- {
71
- className: "searchmenubutton",
72
- role: "button",
73
- tabIndex: -1,
74
- onKeyDown: () => {
75
- },
76
- onClick: () => {
77
- y();
78
- },
79
- children: /* @__PURE__ */ t.jsx(
80
- G,
81
- {
82
- name: "search",
83
- customClass: "searchmenuicon",
84
- size: s === "small" && 16 || s === "medium" && 22 || s === "large" && 32 || 16
85
- }
86
- )
87
- },
88
- "searchMenuIcon"
89
- ),
90
- c && (h ? h(e) : /* @__PURE__ */ t.jsx(V, { ...e }))
91
- ]
92
- }
93
- ) }, `popup-menusearch-${N()}`);
94
- }, L = () => {
95
- if (!p) return i;
96
- const e = [...i];
97
- return e.splice(1, 0, F()), e;
98
- }, z = {
64
+ p = (t) => {
65
+ Array.isArray(t) ? t.forEach((s) => {
66
+ s && (n(s), s.props && s.props.children && p(s.props.children));
67
+ }) : t && (n(t), t.props && t.props.children && p(t.props.children));
68
+ }, I = () => {
69
+ ee(!0);
70
+ }, e[8] = p, e[9] = I;
71
+ } else
72
+ p = e[8], I = e[9];
73
+ const te = I;
74
+ let N;
75
+ e[10] === Symbol.for("react.memo_cache_sentinel") ? (N = (n) => {
76
+ [xe.F].includes(n.keyCode) && n.ctrlKey && n.shiftKey && (n.preventDefault(), te());
77
+ }, e[10] = N) : N = e[10];
78
+ const ne = N;
79
+ let $, g;
80
+ e[11] === Symbol.for("react.memo_cache_sentinel") ? (g = () => (document.addEventListener("keydown", ne), () => {
81
+ document.removeEventListener("keydown", ne);
82
+ }), $ = [], e[11] = $, e[12] = g) : ($ = e[11], g = e[12]), W(g, $);
83
+ let j;
84
+ e[13] !== l || e[14] !== c ? (j = () => {
85
+ c && M && M.current && le(M.current.getBoundingClientRect()), c && p(l);
86
+ }, e[13] = l, e[14] = c, e[15] = j) : j = e[15];
87
+ let k;
88
+ e[16] === Symbol.for("react.memo_cache_sentinel") ? (k = [], e[16] = k) : k = e[16], W(j, k);
89
+ let w, R;
90
+ e[17] !== x ? (w = () => {
91
+ Z(x);
92
+ }, R = [x], e[17] = x, e[18] = w, e[19] = R) : (w = e[18], R = e[19]), W(w, R);
93
+ let D;
94
+ e[20] !== u ? (D = () => u.filter(Ce), e[20] = u, e[21] = D) : D = e[21];
95
+ const G = D;
96
+ let K;
97
+ e[22] !== B || e[23] !== u || e[24] !== C || e[25] !== r || e[26] !== a || e[27] !== m || e[28] !== G ? (K = () => {
98
+ const n = {
99
+ ...m,
100
+ style: B(),
101
+ handlerClose: ce,
102
+ menuItemsContent: u && G()
103
+ };
104
+ return /* @__PURE__ */ i.jsx(pe, { children: /* @__PURE__ */ i.jsxs(oe, { childrenIsSubMenu: !1, customClass: "-customsidenavitem", tooltip: "Pesquisar funcionalidades (CTRL+SHIFT+F)", tooltipPosition: "right", children: [
105
+ /* @__PURE__ */ i.jsx("div", { className: "searchmenubutton", role: "button", tabIndex: -1, onKeyDown: ve, onClick: () => {
106
+ te();
107
+ }, children: /* @__PURE__ */ i.jsx(he, { name: "search", customClass: "searchmenuicon", size: r === "small" && 16 || r === "medium" && 22 || r === "large" && 32 || 16 }) }, "searchMenuIcon"),
108
+ a && (C ? C(n) : /* @__PURE__ */ i.jsx(Se, { ...n }))
109
+ ] }) }, `popup-menusearch-${se()}`);
110
+ }, e[22] = B, e[23] = u, e[24] = C, e[25] = r, e[26] = a, e[27] = m, e[28] = G, e[29] = K) : K = e[29];
111
+ const O = K;
112
+ let P;
113
+ e[30] !== l || e[31] !== c || e[32] !== O ? (P = () => {
114
+ if (!c)
115
+ return l;
116
+ const n = [...l];
117
+ return n.splice(1, 0, O()), n;
118
+ }, e[30] = l, e[31] = c, e[32] = O, e[33] = P) : P = e[33];
119
+ const V = P;
120
+ let z;
121
+ e[34] !== o || e[35] !== r || e[36] !== a ? (z = {
99
122
  isExpanded: o,
100
- menuSize: s,
101
- openSearchMenuPopup: c
102
- };
103
- return /* @__PURE__ */ t.jsx(B.Provider, { value: z, children: /* @__PURE__ */ t.jsxs(
104
- "div",
105
- {
106
- className: `sidenav-component ${o ? "-expanded" : ""} ${c ? "-blocked" : ""} ${$}`,
107
- ref: r,
108
- children: [
109
- g && /* @__PURE__ */ t.jsx(
110
- q,
111
- {
112
- expandMenuCustomClass: `${o && "closefromexpanded"} ${j}`,
113
- onExpandMenu: D,
114
- iconName: o ? "arrow_left" : "arrow_right"
115
- }
116
- ),
117
- L()
118
- ]
119
- }
120
- ) });
123
+ menuSize: r,
124
+ openSearchMenuPopup: a
125
+ }, e[34] = o, e[35] = r, e[36] = a, e[37] = z) : z = e[37];
126
+ const J = z, Q = `sidenav-component ${o ? "-expanded" : ""} ${a ? "-blocked" : ""} ${re}`;
127
+ let f;
128
+ e[38] !== H || e[39] !== o || e[40] !== q || e[41] !== A ? (f = A && /* @__PURE__ */ i.jsx(fe, { expandMenuCustomClass: `${o && "closefromexpanded"} ${H}`, onExpandMenu: q, iconName: o ? "arrow_left" : "arrow_right" }), e[38] = H, e[39] = o, e[40] = q, e[41] = A, e[42] = f) : f = e[42];
129
+ let d;
130
+ e[43] !== V ? (d = V(), e[43] = V, e[44] = d) : d = e[44];
131
+ let h;
132
+ e[45] !== Q || e[46] !== f || e[47] !== d ? (h = /* @__PURE__ */ i.jsxs("div", { className: Q, ref: M, children: [
133
+ f,
134
+ d
135
+ ] }), e[45] = Q, e[46] = f, e[47] = d, e[48] = h) : h = e[48];
136
+ let F;
137
+ return e[49] !== J || e[50] !== h ? (F = /* @__PURE__ */ i.jsx(de.Provider, { value: J, children: h }), e[49] = J, e[50] = h, e[51] = F) : F = e[51], F;
121
138
  };
139
+ function Ce(m) {
140
+ return m.content !== "";
141
+ }
142
+ function ve() {
143
+ }
122
144
  export {
123
- q as ExpandedMenu,
124
- _ as NavMenuGroup,
125
- I as NavMenuItem,
126
- T as NavSubMenuItem,
127
- re as default
145
+ fe as ExpandedMenu,
146
+ pe as NavMenuGroup,
147
+ oe as NavMenuItem,
148
+ ue as NavSubMenuItem,
149
+ De as default
128
150
  };
@@ -1,19 +1,23 @@
1
- import { j as s } from "../../../chunks/jsx-runtime.CYK1ROHF.js";
2
- import o from "../../../icons/index.js";
3
- const i = ({
4
- info: t,
5
- visible: r = !0
6
- }) => r ? /* @__PURE__ */ s.jsxs("div", { className: "nodata-container", children: [
7
- /* @__PURE__ */ s.jsx(
8
- o,
9
- {
10
- name: "information",
11
- color: "#bdbdbd",
12
- size: 128
13
- }
14
- ),
15
- /* @__PURE__ */ s.jsx("p", { className: "subtext", children: t })
16
- ] }) : /* @__PURE__ */ s.jsx("noscript", {});
1
+ import { j as i } from "../../../chunks/jsx-runtime.D1SHvdVE.js";
2
+ import { c as l } from "../../../chunks/compiler-runtime.Cu50tn6L.js";
3
+ import m from "../../../icons/index.js";
4
+ const d = (c) => {
5
+ const e = l.c(4), {
6
+ info: r,
7
+ visible: n
8
+ } = c;
9
+ if (!(n === void 0 ? !0 : n)) {
10
+ let o;
11
+ return e[0] === Symbol.for("react.memo_cache_sentinel") ? (o = /* @__PURE__ */ i.jsx("noscript", {}), e[0] = o) : o = e[0], o;
12
+ }
13
+ let t;
14
+ e[1] === Symbol.for("react.memo_cache_sentinel") ? (t = /* @__PURE__ */ i.jsx(m, { name: "information", color: "#bdbdbd", size: 128 }), e[1] = t) : t = e[1];
15
+ let s;
16
+ return e[2] !== r ? (s = /* @__PURE__ */ i.jsxs("div", { className: "nodata-container", children: [
17
+ t,
18
+ /* @__PURE__ */ i.jsx("p", { className: "subtext", children: r })
19
+ ] }), e[2] = r, e[3] = s) : s = e[3], s;
20
+ };
17
21
  export {
18
- i as default
22
+ d as default
19
23
  };
@@ -1,11 +1,11 @@
1
- import { j as t } from "../../../chunks/jsx-runtime.CYK1ROHF.js";
1
+ import { j as t } from "../../../chunks/jsx-runtime.D1SHvdVE.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.Cvj2MJH6.js";
8
+ import { L as M } from "../../../chunks/tabs.BvKfeA6Y.js";
9
9
  const h = document.getElementsByTagName("body")[0], A = (x) => {
10
10
  const {
11
11
  style: c,
@@ -33,55 +33,21 @@ const h = document.getElementsByTagName("body")[0], A = (x) => {
33
33
  const p = (e) => {
34
34
  const L = e.toLowerCase(), s = a && a.filter((R) => R.content.toLowerCase().includes(L));
35
35
  s && s.length > 0 && i(s[0].id), j(e), I(s);
36
- }, E = () => n && n.length > 0 ? /* @__PURE__ */ t.jsx(
37
- F,
38
- {
39
- condensed: !0,
40
- transparent: !0,
41
- selectable: !0,
42
- onSelectItem: l,
43
- selectedItemId: C,
44
- selectOnEnter: !0,
45
- style: { margin: "25px 0px", border: "none", boxShadow: "none" },
46
- children: n.map((e) => /* @__PURE__ */ t.jsx(
47
- M,
48
- {
49
- itemId: e.id,
50
- url: e.url,
51
- text: e.content
52
- },
53
- e.id
54
- ))
55
- }
56
- ) : /* @__PURE__ */ t.jsx(k, { info: g }), S = () => /* @__PURE__ */ t.jsxs(v, { children: [
57
- /* @__PURE__ */ t.jsx(
58
- "span",
59
- {
60
- onClick: l,
61
- className: "closebutton",
62
- onKeyPress: () => {
63
- },
64
- role: "button",
65
- tabIndex: 0,
66
- children: /* @__PURE__ */ t.jsx(O, { name: "close", size: 22 })
67
- }
68
- ),
69
- /* @__PURE__ */ t.jsx(
70
- w,
71
- {
72
- rounded: !0,
73
- onChange: (e) => {
74
- e && p(e.target.value);
75
- },
76
- inputRef: o,
77
- value: b,
78
- placeHolder: y,
79
- onReset: () => {
80
- p("");
81
- }
82
- }
83
- ),
84
- /* @__PURE__ */ t.jsx("div", { style: { height: "90%" }, children: E() })
36
+ }, E = () => n && n.length > 0 ? /* @__PURE__ */ t.jsx(F, { condensed: !0, transparent: !0, selectable: !0, onSelectItem: l, selectedItemId: C, selectOnEnter: !0, style: {
37
+ margin: "25px 0px",
38
+ border: "none",
39
+ boxShadow: "none"
40
+ }, children: n.map((e) => /* @__PURE__ */ t.jsx(M, { itemId: e.id, url: e.url, text: e.content }, e.id)) }) : /* @__PURE__ */ t.jsx(k, { info: g }), S = () => /* @__PURE__ */ t.jsxs(v, { children: [
41
+ /* @__PURE__ */ t.jsx("span", { onClick: l, className: "closebutton", onKeyPress: () => {
42
+ }, role: "button", tabIndex: 0, children: /* @__PURE__ */ t.jsx(O, { name: "close", size: 22 }) }),
43
+ /* @__PURE__ */ t.jsx(w, { rounded: !0, onChange: (e) => {
44
+ e && p(e.target.value);
45
+ }, inputRef: o, value: b, placeHolder: y, onReset: () => {
46
+ p("");
47
+ } }),
48
+ /* @__PURE__ */ t.jsx("div", { style: {
49
+ height: "90%"
50
+ }, children: E() })
85
51
  ] });
86
52
  return P.createPortal(S(), r.current);
87
53
  };
@@ -1,11 +1,16 @@
1
- import { j as s } from "../chunks/jsx-runtime.CYK1ROHF.js";
2
- import o from "../icons/index.js";
1
+ import { j as e } from "../chunks/jsx-runtime.D1SHvdVE.js";
2
+ import { c as t } from "../chunks/compiler-runtime.Cu50tn6L.js";
3
+ import r from "../icons/index.js";
3
4
  import '../assets/noPermission.css';/* empty css */
4
- const i = () => /* @__PURE__ */ s.jsxs("div", { className: "no-permission-component", "data-testid": "no-permission-component", children: [
5
- /* @__PURE__ */ s.jsx(o, { name: "warning", size: 128, color: "#bdbdbd" }),
6
- /* @__PURE__ */ s.jsx("p", { className: "text", children: "Acesso Negado" }),
7
- /* @__PURE__ */ s.jsx("p", { className: "subtext", children: "Você não tem permissão para acessar este conteúdo. Consulte o Administrador do sistema!" })
8
- ] });
5
+ const c = () => {
6
+ const o = t.c(1);
7
+ let s;
8
+ return o[0] === Symbol.for("react.memo_cache_sentinel") ? (s = /* @__PURE__ */ e.jsxs("div", { className: "no-permission-component", "data-testid": "no-permission-component", children: [
9
+ /* @__PURE__ */ e.jsx(r, { name: "warning", size: 128, color: "#bdbdbd" }),
10
+ /* @__PURE__ */ e.jsx("p", { className: "text", children: "Acesso Negado" }),
11
+ /* @__PURE__ */ e.jsx("p", { className: "subtext", children: "Você não tem permissão para acessar este conteúdo. Consulte o Administrador do sistema!" })
12
+ ] }), o[0] = s) : s = o[0], s;
13
+ };
9
14
  export {
10
- i as default
15
+ c as default
11
16
  };
@@ -1,46 +1,55 @@
1
- import { j as d } from "../chunks/jsx-runtime.CYK1ROHF.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 H } from "../chunks/jsx-runtime.D1SHvdVE.js";
2
+ import { c as T } from "../chunks/compiler-runtime.Cu50tn6L.js";
3
+ import { useContext as w, useRef as R, useEffect as z } from "react";
4
+ import O, { getCurrentThreshold as N } from "./helpers.js";
5
+ import S from "../noPermission/index.js";
6
+ const A = (h) => {
7
+ const e = T.c(18);
8
+ let o, c, l;
9
+ e[0] !== h ? ({
10
+ customClass: c,
11
+ children: o,
12
+ ...l
13
+ } = h, e[0] = h, e[1] = o, e[2] = c, e[3] = l) : (o = e[1], c = e[2], l = e[3]);
6
14
  const {
7
- opened: u,
8
- onEndReached: o,
9
- onEndReachedThreshold: a = 0.1,
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);
15
+ opened: i,
16
+ onEndReached: s,
17
+ onEndReachedThreshold: x,
18
+ hideContent: m
19
+ } = w(O), E = x === void 0 ? 0.1 : x, t = R(null), g = R(0), p = R(!0);
20
+ let u;
21
+ e[4] !== s || e[5] !== E ? (u = async () => {
22
+ const n = t.current;
23
+ if (n && s) {
24
+ const {
25
+ scrollTop: v,
26
+ scrollHeight: C,
27
+ clientHeight: b
28
+ } = n, j = C - b - v - 1, L = N(n, E);
29
+ j <= L && p.current && (p.current = !1, await new Promise((P) => {
30
+ P(s());
31
+ }), g.current = C);
18
32
  }
19
- }, [
20
- o,
21
- a,
22
- t.current,
23
- s.current
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();
33
+ }, e[4] = s, e[5] = E, e[6] = u) : u = e[6];
34
+ const r = u;
35
+ let d;
36
+ e[7] !== s || e[8] !== r ? (d = () => {
37
+ let n;
38
+ return t.current && s && (n = new ResizeObserver(() => {
39
+ const {
40
+ scrollHeight: v
41
+ } = t.current;
42
+ v !== g.current && (p.current = !0, n?.disconnect());
43
+ }), n.observe(t.current), t.current.addEventListener("scroll", r), t.current.addEventListener("resize", r)), () => {
44
+ t.current?.removeEventListener("scroll", r), t.current?.removeEventListener("resize", r), n?.disconnect();
33
45
  };
34
- }, [r]), u ? E ? /* @__PURE__ */ d.jsx(P, {}) : /* @__PURE__ */ d.jsx(
35
- "div",
36
- {
37
- ref: t,
38
- className: `panel-content ${f ?? ""}`,
39
- ...m,
40
- children: u && h
41
- }
42
- ) : null;
46
+ }, e[7] = s, e[8] = r, e[9] = d) : d = e[9];
47
+ let f;
48
+ if (e[10] !== r ? (f = [r], e[10] = r, e[11] = f) : f = e[11], z(d, f), !i)
49
+ return null;
50
+ let a;
51
+ return e[12] !== o || e[13] !== c || e[14] !== m || e[15] !== i || e[16] !== l ? (a = m ? /* @__PURE__ */ H.jsx(S, {}) : /* @__PURE__ */ H.jsx("div", { ref: t, className: `panel-content ${c ?? ""}`, ...l, children: i && o }), e[12] = o, e[13] = c, e[14] = m, e[15] = i, e[16] = l, e[17] = a) : a = e[17], a;
43
52
  };
44
53
  export {
45
- N as default
54
+ A as default
46
55
  };
@@ -1,7 +1,12 @@
1
- import { j as r } from "../chunks/jsx-runtime.CYK1ROHF.js";
2
- import t from "./Default.js";
3
- import e from "../internals/colorStyles.js";
4
- const s = (o) => /* @__PURE__ */ r.jsx(t, { ...o, colorStyle: e.DANGER });
1
+ import { j as r } from "../chunks/jsx-runtime.D1SHvdVE.js";
2
+ import { c as l } from "../chunks/compiler-runtime.Cu50tn6L.js";
3
+ import m from "./Default.js";
4
+ import s from "../internals/colorStyles.js";
5
+ const c = (e) => {
6
+ const t = l.c(2);
7
+ let o;
8
+ return t[0] !== e ? (o = /* @__PURE__ */ r.jsx(m, { ...e, colorStyle: s.DANGER }), t[0] = e, t[1] = o) : o = t[1], o;
9
+ };
5
10
  export {
6
- s as default
11
+ c as default
7
12
  };