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,183 +1,206 @@
1
- import { j as s } from "../chunks/jsx-runtime.CYK1ROHF.js";
2
- import C, { useState as a, useRef as re, useContext as de, useEffect as ae } from "react";
3
- import ce from "lodash";
4
- import { C as me, L as O } from "../chunks/tabs.Cvj2MJH6.js";
5
- import M from "../icons/index.js";
6
- import { TreeviewContext as ue } from "./constants.js";
7
- import pe from "../buttons/Button.js";
1
+ import { j as o } from "../chunks/jsx-runtime.D1SHvdVE.js";
2
+ import { c as $e } from "../chunks/compiler-runtime.Cu50tn6L.js";
3
+ import Se, { useState as I, useRef as Ge, useContext as He, useEffect as Ue } from "react";
4
+ import { _ as We } from "../chunks/lodash.CIAK_hAg.js";
5
+ import { C as Fe, L as _e } from "../chunks/tabs.BvKfeA6Y.js";
6
+ import qe from "../icons/index.js";
7
+ import { TreeviewContext as Je } from "./constants.js";
8
+ import Qe from "../buttons/Button.js";
8
9
  import '../assets/button.css';/* empty css */
9
- import fe from "../list/index.js";
10
- import he from "../toolbar/index.js";
11
- import xe from "../spinner/SpinnerLoading.js";
12
- import { v as be } from "../chunks/v1.CDXKvGzE.js";
13
- import ve from "../toolbar/ToolBarGroup.js";
14
- const h = (i) => !!(i.itens && i.itens.length > 0), Oe = (i) => {
15
- const {
16
- startNodesOpened: c,
17
- isParent: E = !1,
18
- nodeToolbarElements: q,
19
- nodeRightElements: z,
20
- idsInLoading: D = [],
21
- handlerOnNodeOpen: w,
22
- nodeElementsValidations: x,
23
- onNodeClick: b,
24
- children: V,
25
- nodeMenuButtonSize: _ = "small",
26
- selectedNodeId: A,
27
- alwaysShowArrow: K = !1,
28
- customClass: $ = "",
29
- customStyle: G
30
- } = i, [e, H] = a(i.node), [j, k] = a(c && h(e)), [U, I] = a(c && h(e)), [r, m] = a(!1), [W, v] = a(!1), F = re(null), {
31
- valuePropName: g,
32
- labelPropName: y,
33
- selectedIds: S,
34
- handlerUpdateSelectedIds: J,
35
- showCheckBox: Q,
36
- requiredIds: X,
37
- disabled: B,
38
- handlerToggleCheckChildren: T,
39
- allowCheckAllChildren: Y,
40
- requiredParentsIds: Z,
41
- defaultDisabledTooltip: ee
42
- } = de(ue), d = [...X, ...Z].includes(e[g]), oe = S && S.includes(e[g]) || d;
43
- e !== i.node && H(i.node);
44
- const se = (o) => {
45
- !U && w && (I(!0), w(o)), k((n) => !n);
46
- }, ne = () => {
47
- const o = D.includes(e.id);
48
- let n = /* @__PURE__ */ s.jsx("noscript", {});
49
- return (e.itens && e.itens.length > 0 || K) && (n = /* @__PURE__ */ s.jsx(
50
- "span",
51
- {
52
- tabIndex: 0,
53
- role: "button",
54
- className: o ? "loading" : "opencloseicon",
55
- onClick: () => se(e),
56
- children: o ? /* @__PURE__ */ s.jsx(xe, { size: "35px" }) : /* @__PURE__ */ s.jsx(M, { name: j ? "down" : "arrow_right", size: 10 })
10
+ import Xe from "../list/index.js";
11
+ import Ye from "../toolbar/index.js";
12
+ import Ze from "../spinner/SpinnerLoading.js";
13
+ import et from "../toolbar/ToolBarGroup.js";
14
+ import { v as tt } from "../chunks/v1.Ds1rkxUj.js";
15
+ const te = (n) => !!(n.itens && n.itens.length > 0), wt = (n) => {
16
+ const e = $e.c(99), {
17
+ startNodesOpened: i,
18
+ isParent: Be,
19
+ nodeToolbarElements: se,
20
+ nodeRightElements: oe,
21
+ idsInLoading: S,
22
+ handlerOnNodeOpen: B,
23
+ nodeElementsValidations: a,
24
+ onNodeClick: y,
25
+ children: ze,
26
+ nodeMenuButtonSize: Pe,
27
+ selectedNodeId: Ae,
28
+ alwaysShowArrow: Re,
29
+ customClass: Te,
30
+ customStyle: ne
31
+ } = n, m = Be === void 0 ? !1 : Be;
32
+ let P;
33
+ e[0] !== S ? (P = S === void 0 ? [] : S, e[0] = S, e[1] = P) : P = e[1];
34
+ const le = P, ie = Pe === void 0 ? "small" : Pe, re = Re === void 0 ? !1 : Re, De = Te === void 0 ? "" : Te, [t, Ke] = I(n.node);
35
+ let R;
36
+ e[2] !== t || e[3] !== i ? (R = i && te(t), e[2] = t, e[3] = i, e[4] = R) : R = e[4];
37
+ const [T, Le] = I(R);
38
+ let L;
39
+ e[5] !== t || e[6] !== i ? (L = i && te(t), e[5] = t, e[6] = i, e[7] = L) : L = e[7];
40
+ const [de, Me] = I(L), [l, M] = I(!1), [ae, ce] = I(!1), Ve = Ge(null), {
41
+ valuePropName: c,
42
+ labelPropName: O,
43
+ selectedIds: _,
44
+ handlerUpdateSelectedIds: fe,
45
+ showCheckBox: me,
46
+ requiredIds: ue,
47
+ disabled: q,
48
+ handlerToggleCheckChildren: z,
49
+ allowCheckAllChildren: pe,
50
+ requiredParentsIds: he,
51
+ defaultDisabledTooltip: ve
52
+ } = He(Je);
53
+ let A;
54
+ e[8] !== ue || e[9] !== he ? (A = [...ue, ...he], e[8] = ue, e[9] = he, e[10] = A) : A = e[10];
55
+ const r = A.includes(t[c]);
56
+ let D;
57
+ e[11] !== t || e[12] !== r || e[13] !== _ || e[14] !== c ? (D = _ && _.includes(t[c]) || r, e[11] = t, e[12] = r, e[13] = _, e[14] = c, e[15] = D) : D = e[15];
58
+ const xe = D;
59
+ t !== n.node && Ke(n.node);
60
+ let K;
61
+ e[16] !== B || e[17] !== de ? (K = (s) => {
62
+ !de && B && (Me(!0), B(s)), Le(st);
63
+ }, e[16] = B, e[17] = de, e[18] = K) : K = e[18];
64
+ const be = K;
65
+ let V;
66
+ e[19] !== re || e[20] !== le || e[21] !== T || e[22] !== t || e[23] !== be ? (V = () => {
67
+ const s = le.includes(t.id);
68
+ let d = /* @__PURE__ */ o.jsx("noscript", {});
69
+ return (t.itens && t.itens.length > 0 || re) && (d = /* @__PURE__ */ o.jsx("span", { tabIndex: 0, role: "button", className: s ? "loading" : "opencloseicon", onClick: () => be(t), children: s ? /* @__PURE__ */ o.jsx(Ze, { size: "35px" }) : /* @__PURE__ */ o.jsx(qe, { name: T ? "down" : "arrow_right", size: 10 }) })), d;
70
+ }, e[19] = re, e[20] = le, e[21] = T, e[22] = t, e[23] = be, e[24] = V) : V = e[24];
71
+ const ge = V;
72
+ let $;
73
+ e[25] !== ae || e[26] !== l ? ($ = (s) => {
74
+ l ? l && !ae && !(s === void 0 ? !0 : s) && M(!1) : M(!0);
75
+ }, e[25] = ae, e[26] = l, e[27] = $) : $ = e[27];
76
+ const G = $;
77
+ let H;
78
+ e[28] !== t || e[29] !== a ? (H = (s) => {
79
+ const d = a && a[s], f = {
80
+ disabled: {
81
+ disabled: !0
82
+ },
83
+ unvisible: {
84
+ visible: !1
57
85
  }
58
- )), n;
59
- }, P = (o = !0) => {
60
- r ? r && !W && !o && m(!1) : m(!0);
61
- }, te = (o) => {
62
- const n = x && x[o], t = {
63
- disabled: { disabled: !0 },
64
- unvisible: { visible: !1 }
65
86
  };
66
- let l = {};
67
- return n && n.forEach((u) => {
68
- const { validator: p, applyBehavior: f } = u;
69
- ce.isEmpty(l) && p && p(e) && (l = t[f ?? "unvisible"]);
70
- }), l;
71
- }, R = (o) => {
72
- let n = [];
73
- return o && (n = C.Children.map(o, (t) => {
74
- if (C.isValidElement(t) && t.props) {
75
- const { validationKey: l, onNodeElementClick: u, ...p } = t.props;
76
- let f, N = {};
77
- return x && l && (f = te(l)), u && (N = {
78
- ...N,
79
- onClick: (L) => {
80
- u(e), L.stopPropagation && L.stopPropagation();
87
+ let k = {};
88
+ return d && d.forEach((Y) => {
89
+ const {
90
+ validator: Z,
91
+ applyBehavior: ee
92
+ } = Y;
93
+ We.isEmpty(k) && Z && Z(t) && (k = f[ee ?? "unvisible"]);
94
+ }), k;
95
+ }, e[28] = t, e[29] = a, e[30] = H) : H = e[30];
96
+ const Ce = H;
97
+ let U;
98
+ e[31] !== t || e[32] !== a || e[33] !== Ce ? (U = (s) => {
99
+ let d = [];
100
+ return s && (d = Se.Children.map(s, (f) => {
101
+ if (Se.isValidElement(f) && f.props) {
102
+ const {
103
+ validationKey: k,
104
+ onNodeElementClick: Y,
105
+ ...Z
106
+ } = f.props;
107
+ let ee, Ie = {};
108
+ return a && k && (ee = Ce(k)), Y && (Ie = {
109
+ ...Ie,
110
+ onClick: (Oe) => {
111
+ Y(t), Oe.stopPropagation && Oe.stopPropagation();
81
112
  }
82
- }), C.createElement(
83
- t.type,
84
- { ...p, ...N, ...f }
85
- );
113
+ }), Se.createElement(f.type, {
114
+ ...Z,
115
+ ...Ie,
116
+ ...ee
117
+ });
86
118
  }
87
- return t;
88
- })), n;
89
- }, le = () => {
90
- const o = R(z).map((n) => {
91
- const l = n.props && "visible" in n.props && !n.props.visible ? { display: "none" } : {};
92
- return /* @__PURE__ */ s.jsx("div", { style: l, className: "element", children: n }, `element-${be()}`);
93
- });
94
- return o.length > 0 ? /* @__PURE__ */ s.jsx("div", { className: "node-rightelements", children: o }) : null;
95
- }, ie = () => {
96
- const o = R(q);
97
- return o.length > 0 ? /* @__PURE__ */ s.jsx(he, { customClass: "node-toolbarelements", children: /* @__PURE__ */ s.jsx(ve, { children: o }) }) : null;
98
- };
99
- return ae(() => {
100
- k(c && h(e)), I(c && h(e));
101
- }, [e]), /* @__PURE__ */ s.jsxs(
102
- "li",
103
- {
104
- style: G,
105
- className: `treeviewitem ${$}`,
106
- children: [
107
- ne(),
108
- /* @__PURE__ */ s.jsxs(
109
- "div",
110
- {
111
- className: "label",
112
- style: {
113
- textDecoration: b ? void 0 : "none",
114
- backgroundColor: A === e.id ? "rgb(209, 209, 209)" : void 0
115
- },
116
- ref: F,
117
- role: "button",
118
- onKeyPress: () => {
119
- },
120
- onMouseEnter: () => P(),
121
- onMouseLeave: () => P(!1),
122
- tabIndex: -1,
123
- onClick: b ? () => b(e) : void 0,
124
- children: [
125
- Q ? /* @__PURE__ */ s.jsx(
126
- me,
127
- {
128
- checked: oe,
129
- disabled: d || B,
130
- value: `${e[g]}`,
131
- label: e[y],
132
- tooltip: d ? ee : "",
133
- onChange: B || d ? void 0 : (o) => {
134
- J(e.id, o.target.checked, !!E);
135
- }
136
- }
137
- ) : e[y],
138
- Y && r && E ? /* @__PURE__ */ s.jsx(
139
- pe,
140
- {
141
- dropdown: !0,
142
- dropdownAlign: "left",
143
- size: _,
144
- showIconDropdown: !1,
145
- icon: /* @__PURE__ */ s.jsx(M, { name: "menu", style: { margin: 0 } }),
146
- customClass: "node-menu",
147
- boxShadow: !1,
148
- onClick: () => v((o) => !o),
149
- children: /* @__PURE__ */ s.jsxs(fe, { condensed: !0, children: [
150
- /* @__PURE__ */ s.jsx(
151
- O,
152
- {
153
- text: "Marcar todos",
154
- onClick: () => {
155
- T(e.id, !0), m(!1), v(!1);
156
- }
157
- }
158
- ),
159
- /* @__PURE__ */ s.jsx(
160
- O,
161
- {
162
- text: "Desmarcar todos",
163
- onClick: () => {
164
- T(e.id, !1, d), m(!1), v(!1);
165
- }
166
- }
167
- )
168
- ] })
169
- }
170
- ) : null,
171
- r && le(),
172
- r && ie()
173
- ]
174
- }
175
- ),
176
- /* @__PURE__ */ s.jsx("ul", { className: "nodelist", children: j && V })
177
- ]
178
- }
179
- );
119
+ return f;
120
+ })), d;
121
+ }, e[31] = t, e[32] = a, e[33] = Ce, e[34] = U) : U = e[34];
122
+ const u = U;
123
+ let W;
124
+ e[35] !== oe || e[36] !== u ? (W = () => {
125
+ const s = u(oe).map(ot);
126
+ return s.length > 0 ? /* @__PURE__ */ o.jsx("div", { className: "node-rightelements", children: s }) : null;
127
+ }, e[35] = oe, e[36] = u, e[37] = W) : W = e[37];
128
+ const Ne = W;
129
+ let F;
130
+ e[38] !== se || e[39] !== u ? (F = () => {
131
+ const s = u(se);
132
+ return s.length > 0 ? /* @__PURE__ */ o.jsx(Ye, { customClass: "node-toolbarelements", children: /* @__PURE__ */ o.jsx(et, { children: s }) }) : null;
133
+ }, e[38] = se, e[39] = u, e[40] = F) : F = e[40];
134
+ const we = F;
135
+ let J;
136
+ e[41] !== t || e[42] !== i ? (J = () => {
137
+ Le(i && te(t)), Me(i && te(t));
138
+ }, e[41] = t, e[42] = i, e[43] = J) : J = e[43];
139
+ let Q;
140
+ e[44] !== t ? (Q = [t], e[44] = t, e[45] = Q) : Q = e[45], Ue(J, Q);
141
+ const Ee = `treeviewitem ${De}`;
142
+ let p;
143
+ e[46] !== ge ? (p = ge(), e[46] = ge, e[47] = p) : p = e[47];
144
+ const je = y ? void 0 : "none", ke = Ae === t.id ? "rgb(209, 209, 209)" : void 0;
145
+ let h;
146
+ e[48] !== je || e[49] !== ke ? (h = {
147
+ textDecoration: je,
148
+ backgroundColor: ke
149
+ }, e[48] = je, e[49] = ke, e[50] = h) : h = e[50];
150
+ let v, x;
151
+ e[51] !== G ? (v = () => G(), x = () => G(!1), e[51] = G, e[52] = v, e[53] = x) : (v = e[52], x = e[53]);
152
+ let b;
153
+ e[54] !== t || e[55] !== y ? (b = y ? () => y(t) : void 0, e[54] = t, e[55] = y, e[56] = b) : b = e[56];
154
+ let g;
155
+ e[57] !== xe || e[58] !== ve || e[59] !== q || e[60] !== fe || e[61] !== m || e[62] !== O || e[63] !== t || e[64] !== r || e[65] !== me || e[66] !== c ? (g = me ? /* @__PURE__ */ o.jsx(Fe, { checked: xe, disabled: r || q, value: `${t[c]}`, label: t[O], tooltip: r ? ve : "", onChange: q || r ? void 0 : (s) => {
156
+ fe(t.id, s.target.checked, !!m);
157
+ } }) : t[O], e[57] = xe, e[58] = ve, e[59] = q, e[60] = fe, e[61] = m, e[62] = O, e[63] = t, e[64] = r, e[65] = me, e[66] = c, e[67] = g) : g = e[67];
158
+ let C;
159
+ e[68] !== pe || e[69] !== z || e[70] !== m || e[71] !== t.id || e[72] !== ie || e[73] !== r || e[74] !== l ? (C = pe && l && m ? /* @__PURE__ */ o.jsx(Qe, { dropdown: !0, dropdownAlign: "left", size: ie, showIconDropdown: !1, icon: /* @__PURE__ */ o.jsx(qe, { name: "menu", style: {
160
+ margin: 0
161
+ } }), customClass: "node-menu", boxShadow: !1, onClick: () => ce(lt), children: /* @__PURE__ */ o.jsxs(Xe, { condensed: !0, children: [
162
+ /* @__PURE__ */ o.jsx(_e, { text: "Marcar todos", onClick: () => {
163
+ z(t.id, !0), M(!1), ce(!1);
164
+ } }),
165
+ /* @__PURE__ */ o.jsx(_e, { text: "Desmarcar todos", onClick: () => {
166
+ z(t.id, !1, r), M(!1), ce(!1);
167
+ } })
168
+ ] }) }) : null, e[68] = pe, e[69] = z, e[70] = m, e[71] = t.id, e[72] = ie, e[73] = r, e[74] = l, e[75] = C) : C = e[75];
169
+ let N;
170
+ e[76] !== Ne || e[77] !== l ? (N = l && Ne(), e[76] = Ne, e[77] = l, e[78] = N) : N = e[78];
171
+ let w;
172
+ e[79] !== we || e[80] !== l ? (w = l && we(), e[79] = we, e[80] = l, e[81] = w) : w = e[81];
173
+ let E;
174
+ e[82] !== h || e[83] !== v || e[84] !== x || e[85] !== b || e[86] !== g || e[87] !== C || e[88] !== N || e[89] !== w ? (E = /* @__PURE__ */ o.jsxs("div", { className: "label", style: h, ref: Ve, role: "button", onKeyPress: nt, onMouseEnter: v, onMouseLeave: x, tabIndex: -1, onClick: b, children: [
175
+ g,
176
+ C,
177
+ N,
178
+ w
179
+ ] }), e[82] = h, e[83] = v, e[84] = x, e[85] = b, e[86] = g, e[87] = C, e[88] = N, e[89] = w, e[90] = E) : E = e[90];
180
+ const ye = T && ze;
181
+ let j;
182
+ e[91] !== ye ? (j = /* @__PURE__ */ o.jsx("ul", { className: "nodelist", children: ye }), e[91] = ye, e[92] = j) : j = e[92];
183
+ let X;
184
+ return e[93] !== ne || e[94] !== Ee || e[95] !== p || e[96] !== E || e[97] !== j ? (X = /* @__PURE__ */ o.jsxs("li", { style: ne, className: Ee, children: [
185
+ p,
186
+ E,
187
+ j
188
+ ] }), e[93] = ne, e[94] = Ee, e[95] = p, e[96] = E, e[97] = j, e[98] = X) : X = e[98], X;
180
189
  };
190
+ function st(n) {
191
+ return !n;
192
+ }
193
+ function ot(n) {
194
+ const i = n.props && "visible" in n.props && !n.props.visible ? {
195
+ display: "none"
196
+ } : {};
197
+ return /* @__PURE__ */ o.jsx("div", { style: i, className: "element", children: n }, `element-${tt()}`);
198
+ }
199
+ function nt() {
200
+ }
201
+ function lt(n) {
202
+ return !n;
203
+ }
181
204
  export {
182
- Oe as default
205
+ wt as default
183
206
  };