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,130 +1,129 @@
1
- import { j as o } from "../../chunks/jsx-runtime.gtoSnx-V.js";
1
+ import { j as e } from "../../chunks/jsx-runtime.C7wFtzyj.js";
2
2
  import { useState as v } from "react";
3
3
  import S from "../../avatar/index.js";
4
- import x from "../../icons/index.js";
5
- const D = (s, u) => {
6
- var d, p, h;
7
- const n = (d = s == null ? void 0 : s.current) == null ? void 0 : d.getBoundingClientRect(), i = n != null && n.bottom ? n == null ? void 0 : n.bottom : 0, l = (p = s == null ? void 0 : s.current) != null && p.offsetTop ? (h = s == null ? void 0 : s.current) == null ? void 0 : h.offsetTop : 0, m = window.innerHeight - i;
8
- let e = 200, r = u, c;
9
- return !r || r <= 0 ? m < e ? (r = n != null && n.top ? n.top : 0, c = window.innerHeight - l + 10) : r = m : (e = r, m < e && (c = window.innerHeight - l + 10)), {
10
- maxHeight: `${r - 30}px`,
4
+ import u from "../../icons/index.js";
5
+ const D = (i, a) => {
6
+ const t = i?.current?.getBoundingClientRect(), r = t?.bottom ? t?.bottom : 0, d = i?.current?.offsetTop ? i?.current?.offsetTop : 0, l = window.innerHeight - r;
7
+ let s = 200, n = a, c;
8
+ return !n || n <= 0 ? l < s ? (n = t?.top ? t.top : 0, c = window.innerHeight - d + 10) : n = l : (s = n, l < s && (c = window.innerHeight - d + 10)), {
9
+ maxHeight: `${n - 30}px`,
11
10
  bottom: `${c}px`
12
11
  };
13
- }, K = (s) => {
12
+ }, I = (i) => {
14
13
  const {
15
- imageAlign: u = "left",
16
- descriptionKey: n,
17
- idKey: i,
18
- dropdownMaxHeight: l,
19
- selectFieldRef: m,
20
- isAllChecked: e,
21
- dropdownWidth: r,
14
+ imageAlign: a = "left",
15
+ descriptionKey: t,
16
+ idKey: r,
17
+ dropdownMaxHeight: d,
18
+ selectFieldRef: l,
19
+ isAllChecked: s,
20
+ dropdownWidth: n,
22
21
  inputValue: c,
23
- gridWrapperStyle: d,
24
- onFocus: p,
25
- onFilter: h,
22
+ gridWrapperStyle: p,
23
+ onFocus: f,
24
+ onFilter: g,
26
25
  onBlur: b,
27
- dataCombo: a,
28
- opened: j,
29
- onUncheckAll: k,
30
- onCheckAll: y,
31
- selecteds: g,
26
+ dataCombo: m,
27
+ opened: w,
28
+ onUncheckAll: j,
29
+ onCheckAll: k,
30
+ selecteds: h,
32
31
  onSelect: C
33
- } = s, [N] = v(D(m, l || 0));
34
- return /* @__PURE__ */ o.jsxs(
32
+ } = i, [y] = v(D(l, d || 0));
33
+ return /* @__PURE__ */ e.jsxs(
35
34
  "div",
36
35
  {
37
36
  className: "dropdown",
38
37
  style: {
39
- width: r,
40
- marginLeft: d ? d.paddingLeft : "0",
41
- ...N
38
+ width: n,
39
+ marginLeft: p ? p.paddingLeft : "0",
40
+ ...y
42
41
  },
43
42
  children: [
44
- /* @__PURE__ */ o.jsxs("div", { className: "filtercontainer", children: [
45
- /* @__PURE__ */ o.jsx(
43
+ /* @__PURE__ */ e.jsxs("div", { className: "filtercontainer", children: [
44
+ /* @__PURE__ */ e.jsx(
46
45
  "input",
47
46
  {
48
47
  className: "filterinput",
49
48
  type: "text",
50
49
  value: c,
51
50
  onFocus: () => {
52
- p();
51
+ f();
53
52
  },
54
- onBlur: (t) => {
55
- b(t);
53
+ onBlur: (o) => {
54
+ b(o);
56
55
  },
57
- onChange: (t) => {
58
- h(t.target.value);
56
+ onChange: (o) => {
57
+ g(o.target.value);
59
58
  },
60
- autoFocus: j
59
+ autoFocus: w
61
60
  }
62
61
  ),
63
- /* @__PURE__ */ o.jsx(x, { customClass: "filtericon", name: "search", viewBox: "0 0 32 32" })
62
+ /* @__PURE__ */ e.jsx(u, { customClass: "filtericon", name: "search", viewBox: "0 0 32 32" })
64
63
  ] }),
65
- /* @__PURE__ */ o.jsxs("div", { className: "listcontainer", children: [
66
- a && a.length > 0 && /* @__PURE__ */ o.jsx("div", { className: "item selectall", children: /* @__PURE__ */ o.jsxs(
64
+ /* @__PURE__ */ e.jsxs("div", { className: "listcontainer", children: [
65
+ m && m.length > 0 && /* @__PURE__ */ e.jsx("div", { className: "item selectall", children: /* @__PURE__ */ e.jsxs(
67
66
  "button",
68
67
  {
69
68
  className: "menubutton",
70
69
  tabIndex: -1,
71
- onClick: () => e ? k(!0) : y(!0),
70
+ onClick: () => s ? j(!0) : k(!0),
72
71
  children: [
73
- /* @__PURE__ */ o.jsx(
74
- x,
72
+ /* @__PURE__ */ e.jsx(
73
+ u,
75
74
  {
76
- name: e && a.length > 0 ? "checkboxChecked2" : "checkboxUnchecked2",
75
+ name: s && m.length > 0 ? "checkboxChecked2" : "checkboxUnchecked2",
77
76
  customClass: "checkboxicon"
78
77
  }
79
78
  ),
80
- /* @__PURE__ */ o.jsx("span", { className: "label", children: c !== "" ? "Selecionar todos pesquisados" : "Selecionar Todos" })
79
+ /* @__PURE__ */ e.jsx("span", { className: "label", children: c !== "" ? "Selecionar todos pesquisados" : "Selecionar Todos" })
81
80
  ]
82
81
  }
83
82
  ) }),
84
- a == null ? void 0 : a.map((t) => {
85
- const w = g ? g.find((f) => f[i] === t[i]) : void 0;
86
- return /* @__PURE__ */ o.jsx(
83
+ m?.map((o) => {
84
+ const x = h ? h.find((N) => N[r] === o[r]) : void 0;
85
+ return /* @__PURE__ */ e.jsx(
87
86
  "div",
88
87
  {
89
- className: `item ${w && "-selected"}`,
90
- children: /* @__PURE__ */ o.jsxs(
88
+ className: `item ${x && "-selected"}`,
89
+ children: /* @__PURE__ */ e.jsxs(
91
90
  "button",
92
91
  {
93
92
  className: "menubutton",
94
93
  tabIndex: -1,
95
94
  onClick: () => {
96
- C(t);
95
+ C(o);
97
96
  },
98
97
  children: [
99
- /* @__PURE__ */ o.jsx(
100
- x,
98
+ /* @__PURE__ */ e.jsx(
99
+ u,
101
100
  {
102
- name: w ? "checkboxChecked2" : "checkboxUnchecked2",
101
+ name: x ? "checkboxChecked2" : "checkboxUnchecked2",
103
102
  customClass: "checkboxicon"
104
103
  }
105
104
  ),
106
- t.iconName && /* @__PURE__ */ o.jsx(
107
- x,
105
+ o.iconName && /* @__PURE__ */ e.jsx(
106
+ u,
108
107
  {
109
- name: t.iconName,
108
+ name: o.iconName,
110
109
  customClass: "menuicon",
111
- style: { order: u === "left" ? 0 : 1 }
110
+ style: { order: a === "left" ? 0 : 1 }
112
111
  }
113
112
  ),
114
- t.imgSrcKey && /* @__PURE__ */ o.jsx(
113
+ o.imgSrcKey && /* @__PURE__ */ e.jsx(
115
114
  S,
116
115
  {
117
- src: t.imgSrcKey,
116
+ src: o.imgSrcKey,
118
117
  customClass: "menuicon",
119
- style: { order: u === "left" ? 0 : 1 }
118
+ style: { order: a === "left" ? 0 : 1 }
120
119
  }
121
120
  ),
122
- /* @__PURE__ */ o.jsx("span", { className: "label", children: typeof n == "string" ? t[n] : n(t) })
121
+ /* @__PURE__ */ e.jsx("span", { className: "label", children: typeof t == "string" ? o[t] : t(o) })
123
122
  ]
124
123
  }
125
124
  )
126
125
  },
127
- `dropdowmItem ${t[i]}}`
126
+ `dropdowmItem ${o[r]}}`
128
127
  );
129
128
  })
130
129
  ] })
@@ -133,5 +132,5 @@ const D = (s, u) => {
133
132
  );
134
133
  };
135
134
  export {
136
- K as default
135
+ I as default
137
136
  };
@@ -1,11 +1,8 @@
1
- const f = ({
2
- dataSource: a,
1
+ const a = ({
2
+ dataSource: t,
3
3
  descriptionKey: e,
4
4
  inputText: o
5
- }) => a.filter((r) => {
6
- var t;
7
- return typeof e == "string" ? r[e].toLowerCase().indexOf(o.toLowerCase()) > -1 : ((t = e(r)) == null ? void 0 : t.toLowerCase().indexOf(o.toLowerCase())) > -1;
8
- });
5
+ }) => t.filter((r) => typeof e == "string" ? r[e].toLowerCase().indexOf(o.toLowerCase()) > -1 : e(r)?.toLowerCase().indexOf(o.toLowerCase()) > -1);
9
6
  export {
10
- f as default
7
+ a as default
11
8
  };
@@ -1,90 +1,88 @@
1
- import { j as b } from "../../chunks/jsx-runtime.gtoSnx-V.js";
2
- import { _ as x } from "../../chunks/lodash.C68pWaTB.js";
1
+ import { j as w } from "../../chunks/jsx-runtime.C7wFtzyj.js";
2
+ import { _ as k } from "../../chunks/lodash.CIAK_hAg.js";
3
3
  import { useState as s, useRef as N, useEffect as S } from "react";
4
4
  import ne from "../base/InputTextBase.js";
5
5
  import oe from "./ActionButtons.js";
6
6
  import se from "./Dropdown.js";
7
7
  import M from "./helper.js";
8
- import { v as le } from "../../chunks/v1.CDXKvGzE.js";
9
- import '../../assets/index22.css';const pe = (m) => {
8
+ import { v as le } from "../../chunks/v1.Ds1rkxUj.js";
9
+ import '../../assets/index22.css';const pe = (a) => {
10
10
  const {
11
- onSelect: r,
11
+ onSelect: c,
12
12
  idKey: i,
13
13
  disabled: T = !1,
14
14
  dataSource: n,
15
- descriptionKey: f,
16
- value: d,
15
+ descriptionKey: u,
16
+ value: x,
17
17
  onBlur: A,
18
18
  gridLayout: q,
19
19
  dropdownAlignButton: z = "left"
20
- } = m, K = `multiSelect-component${le()}`, [a, p] = s(n), [o, h] = s(), [L, E] = s(""), [O, U] = s("Nenhum selecionado"), [g, v] = s(0), [G, V] = s(!1), [C, D] = s(!1), [k, _] = s(), [$, H] = s(!1), [J, P] = s(), w = N(null), l = N(null), Q = (e) => {
20
+ } = a, K = `multiSelect-component${le()}`, [r, m] = s(n), [o, f] = s(), [L, g] = s(""), [O, U] = s("Nenhum selecionado"), [v, b] = s(0), [G, V] = s(!1), [p, E] = s(!1), [D, _] = s(), [$, H] = s(!1), [J, P] = s(), h = N(null), l = N(null), Q = (e) => {
21
21
  if (e === null) return;
22
22
  let t = o;
23
- t && (t.find((u) => u[i] === e[i]) ? t = t.filter((u) => u[i] !== e[i]) : t = [...t, e], r && r(t.map((u) => u[i]))), h(t);
23
+ t && (t.find((d) => d[i] === e[i]) ? t = t.filter((d) => d[i] !== e[i]) : t = [...t, e], c && c(t.map((d) => d[i]))), f(t);
24
24
  }, F = () => {
25
- let e = g;
26
- e = l.current ? l.current.clientWidth : g, D(!0), v(e);
25
+ let e = v;
26
+ e = l.current ? l.current.clientWidth : v, E(!0), b(e);
27
27
  }, W = (e) => {
28
28
  const t = e.target;
29
- if ((t == null ? void 0 : t.className) === "") return;
30
- const c = ["item", "menubutton", "filterinput", "filtercontainer", "label"].includes(t == null ? void 0 : t.className);
31
- H(c);
29
+ if (t?.className === "") return;
30
+ const C = ["item", "menubutton", "filterinput", "filtercontainer", "label"].includes(t?.className);
31
+ H(C);
32
32
  }, y = (e) => {
33
- A && A(e), $ || (E(""), p(n));
33
+ A && A(e), $ || (g(""), m(n));
34
34
  }, X = (e) => {
35
35
  let t = n;
36
- e !== "" && n && (t = M({ dataSource: n, descriptionKey: f, inputText: e })), p(t), E(e);
36
+ e !== "" && n && (t = M({ dataSource: n, descriptionKey: u, inputText: e })), m(t), g(e);
37
37
  }, Y = () => {
38
- D(!C), l.current && v(l.current.clientWidth);
38
+ E(!p), l.current && b(l.current.clientWidth);
39
39
  }, B = (e = !1) => {
40
- const t = e ? a : n;
41
- r && t && r(t.map((c) => c[i])), h(t);
40
+ const t = e ? r : n;
41
+ c && t && c(t.map((C) => C[i])), f(t);
42
42
  }, I = () => {
43
- r && r(), h([]);
43
+ c && c(), f([]);
44
44
  }, j = () => {
45
- l.current && v(l.current.clientWidth);
45
+ l.current && b(l.current.clientWidth);
46
46
  }, R = (e) => {
47
- var c;
48
47
  const { target: t } = e;
49
- t !== w.current && !((c = w.current) != null && c.contains(t)) && (D(!1), p(n), E(""));
48
+ t !== h.current && !h.current?.contains(t) && (E(!1), m(n), g(""));
50
49
  }, Z = (e) => {
51
50
  _(e);
52
- }, ee = () => !!(T || k && (k.disabled || k.hideContent)), te = () => {
53
- const e = x.isEqual(o, n);
51
+ }, ee = () => !!(T || D && (D.disabled || D.hideContent)), te = () => {
52
+ const e = k.isEqual(o, n);
54
53
  let t = O;
55
- e ? t = "Todos" : o && o.length > 1 ? t = "Múltiplos" : o && o.length === 1 ? t = typeof f == "string" ? o[0][f] : f(o[0]) : t = "Nenhum selecionado", U(t);
54
+ e ? t = "Todos" : o && o.length > 1 ? t = "Múltiplos" : o && o.length === 1 ? t = typeof u == "string" ? o[0][u] : u(o[0]) : t = "Nenhum selecionado", U(t);
56
55
  };
57
56
  return S(() => {
58
- var e;
59
57
  if (q) {
60
- const t = (e = l.current) == null ? void 0 : e.parentElement;
61
- t && P(window.getComputedStyle(t));
58
+ const e = l.current?.parentElement;
59
+ e && P(window.getComputedStyle(e));
62
60
  }
63
61
  return window.addEventListener("resize", j), document.addEventListener("click", R), document.addEventListener("mousemove", W), () => {
64
62
  window.removeEventListener("resize", j), document.removeEventListener("click", R), document.removeEventListener("mousemove", W);
65
63
  };
66
64
  }, []), S(() => {
67
65
  if (n && n.length > 0) {
68
- const e = n.filter((t) => d == null ? void 0 : d.includes(t[i]));
69
- h(e);
66
+ const e = n.filter((t) => x?.includes(t[i]));
67
+ f(e);
70
68
  }
71
- }, [d == null ? void 0 : d.length, n == null ? void 0 : n.length]), S(() => {
72
- if (n && a && !x.isEqual(n, a)) {
69
+ }, [x?.length, n?.length]), S(() => {
70
+ if (n && r && !k.isEqual(n, r)) {
73
71
  const e = M({
74
- ...m,
72
+ ...a,
75
73
  dataSource: n || void 0,
76
74
  inputText: L
77
75
  });
78
- p(e);
76
+ m(e);
79
77
  }
80
78
  }, [n]), S(() => {
81
- const e = x.isEqual(a, o);
79
+ const e = k.isEqual(r, o);
82
80
  V(e), te();
83
- }, [o, a]), /* @__PURE__ */ b.jsxs("span", { id: K, ref: w, className: "multiSelect-component", children: [
84
- /* @__PURE__ */ b.jsx(
81
+ }, [o, r]), /* @__PURE__ */ w.jsxs("span", { id: K, ref: h, className: "multiSelect-component", children: [
82
+ /* @__PURE__ */ w.jsx(
85
83
  ne,
86
84
  {
87
- ...m,
85
+ ...a,
88
86
  value: O,
89
87
  onFocus: () => {
90
88
  F();
@@ -98,12 +96,12 @@ import '../../assets/index22.css';const pe = (m) => {
98
96
  l.current = e;
99
97
  },
100
98
  handlerSetOnDenied: Z,
101
- rightElements: /* @__PURE__ */ b.jsx(
99
+ rightElements: /* @__PURE__ */ w.jsx(
102
100
  oe,
103
101
  {
104
102
  dropdownAlignButton: z,
105
103
  disabled: ee(),
106
- dropdownOpened: C,
104
+ dropdownOpened: p,
107
105
  handleOpenClose: () => {
108
106
  Y();
109
107
  },
@@ -113,19 +111,19 @@ import '../../assets/index22.css';const pe = (m) => {
113
111
  )
114
112
  }
115
113
  ),
116
- C && /* @__PURE__ */ b.jsx(
114
+ p && /* @__PURE__ */ w.jsx(
117
115
  se,
118
116
  {
119
- ...m,
120
- opened: C,
121
- dataCombo: a,
117
+ ...a,
118
+ opened: p,
119
+ dataCombo: r,
122
120
  selecteds: o,
123
121
  inputValue: L,
124
122
  isAllChecked: G,
125
123
  onCheckAll: B,
126
124
  onUncheckAll: I,
127
- dropdownWidth: g,
128
- selectFieldRef: w,
125
+ dropdownWidth: v,
126
+ selectFieldRef: h,
129
127
  onSelect: Q,
130
128
  onFilter: X,
131
129
  onFocus: F,
@@ -1,4 +1,4 @@
1
- import { j as a } from "../../chunks/jsx-runtime.gtoSnx-V.js";
1
+ import { j as a } from "../../chunks/jsx-runtime.C7wFtzyj.js";
2
2
  import m from "../mask/BaseMask.js";
3
3
  import { numberToPtBR as l, numberToEnUS as s } from "./format_number.js";
4
4
  const o = (t, e) => {
@@ -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 c from "./BaseNumber.js";
3
3
  const l = ({ displayCurrencySymbol: s, ...e }) => {
4
4
  const { currencySymbol: t = "R$" } = e, n = s ? /* @__PURE__ */ r.jsx("span", { className: "currency-symbol", children: t }) : [];
@@ -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 o from "./BaseNumber.js";
3
3
  const t = (e) => /* @__PURE__ */ m.jsx(o, { ...e });
4
4
  export {
@@ -1,24 +1,24 @@
1
- import { j as g } from "../../chunks/jsx-runtime.gtoSnx-V.js";
1
+ import { j as g } from "../../chunks/jsx-runtime.C7wFtzyj.js";
2
2
  import { useState as p, useEffect as x } from "react";
3
3
  import { default as F } from "./Currency.js";
4
4
  import { default as y } from "./Decimal.js";
5
5
  import h from "../base/InputTextBase.js";
6
- import '../../assets/index23.css';const j = (t) => {
6
+ import '../../assets/index23.css';const C = (t) => {
7
7
  const {
8
8
  textAlign: l = "left",
9
- value: r = "",
9
+ value: n = "",
10
10
  themePopover: i = "light",
11
11
  popoverAlign: m = "left",
12
12
  removeZeroLeft: s = !0,
13
13
  min: a,
14
- max: o
15
- } = t, [f, n] = p(), c = (u) => {
16
- const e = u.target.value.replace(/\D/g, "");
17
- a && parseInt(e, 10) < a || o && parseInt(e, 10) > o || (s && e.charAt(0) === "0" && e.length > 1 ? n(e.substring(1)) : n(e), t.onChange && t.onChange(u));
14
+ max: u
15
+ } = t, [f, r] = p(), c = (o) => {
16
+ const e = o.target.value.replace(/\D/g, "");
17
+ a && parseInt(e, 10) < a || u && parseInt(e, 10) > u || (s && e.charAt(0) === "0" && e.length > 1 ? r(e.substring(1)) : r(e), t.onChange && t.onChange(o));
18
18
  };
19
19
  return x(() => {
20
- n((r == null ? void 0 : r.toString()) ?? "");
21
- }, [r]), /* @__PURE__ */ g.jsx(
20
+ r(n?.toString() ?? "");
21
+ }, [n]), /* @__PURE__ */ g.jsx(
22
22
  h,
23
23
  {
24
24
  ...t,
@@ -34,5 +34,5 @@ import '../../assets/index23.css';const j = (t) => {
34
34
  export {
35
35
  F as CurrencyField,
36
36
  y as DecimalField,
37
- j as default
37
+ C as default
38
38
  };
@@ -1,5 +1,5 @@
1
- import { j as o } from "../../chunks/jsx-runtime.gtoSnx-V.js";
2
- import { B as r } from "../../chunks/index.CjD97zna.js";
1
+ import { j as o } from "../../chunks/jsx-runtime.C7wFtzyj.js";
2
+ import { B as r } from "../../chunks/index.CM1aLH2W.js";
3
3
  const h = ({ onOpenChange: e, handlerClose: t, children: a, dialogSize: s }) => /* @__PURE__ */ o.jsx(
4
4
  r,
5
5
  {
@@ -1,18 +1,13 @@
1
- import { useRef as l, useEffect as i } from "react";
2
- import m from "react-dom";
3
- const s = 250, h = (n) => {
4
- const { children: a, dropdownRef: d, containerRef: c, inputDimensions: e } = n, t = l(document.createElement("div")), o = e && e.width || s;
5
- return i(() => {
6
- var r;
7
- return t.current.className = "datepicker-component", t.current.style.width = String(o).concat("px"), t.current.style.top = String(e == null ? void 0 : e.bottom).concat("px"), (r = c.current) == null || r.appendChild(t.current), d(t.current), () => {
8
- var u;
9
- (u = c.current) == null || u.removeChild(t.current);
10
- };
11
- }, []), i(() => {
12
- var r;
13
- t.current.style.width = String(o).concat("px"), t.current.style.top = String((r = n.inputDimensions) == null ? void 0 : r.bottom).concat("px");
14
- }, [n]), m.createPortal(a, t.current);
1
+ import { useRef as s, useEffect as o } from "react";
2
+ import a from "react-dom";
3
+ const d = 250, l = (e) => {
4
+ const { children: i, dropdownRef: u, containerRef: r, inputDimensions: n } = e, t = s(document.createElement("div")), c = n && n.width || d;
5
+ return o(() => (t.current.className = "datepicker-component", t.current.style.width = String(c).concat("px"), t.current.style.top = String(n?.bottom).concat("px"), r.current?.appendChild(t.current), u(t.current), () => {
6
+ r.current?.removeChild(t.current);
7
+ }), []), o(() => {
8
+ t.current.style.width = String(c).concat("px"), t.current.style.top = String(e.inputDimensions?.bottom).concat("px");
9
+ }, [e]), a.createPortal(i, t.current);
15
10
  };
16
11
  export {
17
- h as default
12
+ l as default
18
13
  };
@@ -1,4 +1,4 @@
1
- import { j as l } from "../../chunks/jsx-runtime.gtoSnx-V.js";
1
+ import { j as l } from "../../chunks/jsx-runtime.C7wFtzyj.js";
2
2
  import { getDropdownItemCssClass as d, CalcDatesByPeriod as i } from "./helper.js";
3
3
  const n = [
4
4
  { id: "today", label: "Hoje" },
@@ -1,4 +1,4 @@
1
- import { h as r } from "../../chunks/moment.CwOqp704.js";
1
+ import { h as r } from "../../chunks/moment.DMLRxgRE.js";
2
2
  const l = ({ topPosition: n, leftPosition: t, width: o }) => `top: ${n}px;
3
3
  left: ${t}px;
4
4
  width:${o}px`, d = (n = !1, t = !1, o = !1) => {