linear-react-components-ui 1.1.26-beta.4 → 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 +10 -10
  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.Da--18GT.js → index.Df3kt2LQ.js} +179 -181
  44. package/lib/chunks/{jsx-runtime.gtoSnx-V.js → jsx-runtime.C7wFtzyj.js} +2 -2
  45. package/lib/chunks/lodash.CIAK_hAg.js +3684 -0
  46. package/lib/chunks/moment.DMLRxgRE.js +2589 -0
  47. package/lib/chunks/{tabs.BP3DB7Gx.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 +7 -7
  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 +44 -44
  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 +3 -3
  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.iA-fVKOP.js +0 -89
  210. package/lib/chunks/v1.CDXKvGzE.js +0 -41
  211. /package/lib/assets/{index29.css → progressbar.css} +0 -0
@@ -1,21 +1,21 @@
1
- import { j as a } from "../../chunks/jsx-runtime.gtoSnx-V.js";
2
- import { useState as u, useEffect as S, Fragment as E } from "react";
3
- import I from "../base/InputTextBase.js";
4
- import w from "../../buttons/Button.js";
1
+ import { j as o } from "../../chunks/jsx-runtime.C7wFtzyj.js";
2
+ import { useState as u, useEffect as S, Fragment as D } from "react";
3
+ import E from "../base/InputTextBase.js";
4
+ import I from "../../buttons/Button.js";
5
5
  import m from "../../icons/index.js";
6
6
  import '../../assets/button.css';import '../../assets/index25.css';/* empty css */
7
- import D from "../../drawer/index.js";
7
+ import w from "../../drawer/index.js";
8
8
  import P from "../../drawer/Header.js";
9
9
  import T from "../../drawer/Content.js";
10
10
  const M = (e) => {
11
- const { resetButton: g = !0, advancedFilterProps: h = {}, value: s } = e, [i, C] = u(!1), [l, c] = u(""), [t, v] = u(), { headerTitle: x, content: p, onStateChange: r, ...O } = h, b = (o) => {
12
- e.onReset && e.onReset(o), c("");
13
- }, y = (o) => {
14
- o && (e.onChange && e.onChange(o), c(o.target.value));
15
- }, d = () => e.disabled || t && (t.disabled || t.hideContent), j = () => e.readOnly || t && t.readOnly, B = t == null ? void 0 : t.hideContent, k = () => {
16
- const o = j() || d() || B;
17
- let n = {
18
- icon: /* @__PURE__ */ a.jsx(m, { name: "filter1", color: "#a9a8a8" }, "filter-icon"),
11
+ const { resetButton: g = !0, advancedFilterProps: h = {}, value: s } = e, [i, C] = u(!1), [l, c] = u(""), [a, v] = u(), { headerTitle: x, content: p, onStateChange: r, ...O } = h, b = (n) => {
12
+ e.onReset && e.onReset(n), c("");
13
+ }, y = (n) => {
14
+ n && (e.onChange && e.onChange(n), c(n.target.value));
15
+ }, d = () => e.disabled || a && (a.disabled || a.hideContent), j = () => e.readOnly || a && a.readOnly, B = a?.hideContent, k = () => {
16
+ const n = j() || d() || B;
17
+ let t = {
18
+ icon: /* @__PURE__ */ o.jsx(m, { name: "filter1", color: "#a9a8a8" }, "filter-icon"),
19
19
  key: "advanced-filter-button",
20
20
  boxShadow: !1,
21
21
  readOnly: j(),
@@ -23,17 +23,17 @@ const M = (e) => {
23
23
  transparent: !0,
24
24
  disabled: d()
25
25
  };
26
- return o || (n = {
27
- ...n,
26
+ return n || (t = {
27
+ ...t,
28
28
  onClick: (f) => {
29
29
  e.onClick && e.onClick(f), C(!i), r && r(!i);
30
30
  },
31
- ...n
32
- }), n;
31
+ ...t
32
+ }), t;
33
33
  }, F = () => {
34
- const o = Object.keys(h).length > 0;
35
- let n = [/* @__PURE__ */ a.jsx(m, { name: "search", color: "#a9a8a8", disabled: d() }, "search-icon")];
36
- const f = /* @__PURE__ */ a.jsx(
34
+ const n = Object.keys(h).length > 0;
35
+ let t = [/* @__PURE__ */ o.jsx(m, { name: "search", color: "#a9a8a8", disabled: d() }, "search-icon")];
36
+ const f = /* @__PURE__ */ o.jsx(
37
37
  m,
38
38
  {
39
39
  name: "cancel2",
@@ -42,14 +42,14 @@ const M = (e) => {
42
42
  onClick: b
43
43
  },
44
44
  "inputSearchIcon"
45
- ), R = /* @__PURE__ */ a.jsx(w, { ...k() });
46
- return o && (n = [...n, R]), g && l.trim() !== "" && (n = [f, ...n]), n;
45
+ ), R = /* @__PURE__ */ o.jsx(I, { ...k() });
46
+ return n && (t = [...t, R]), g && l.trim() !== "" && (t = [f, ...t]), t;
47
47
  };
48
48
  return S(() => {
49
49
  s !== void 0 && s !== l && c(s);
50
- }, [s]), t && t.unvisible ? null : /* @__PURE__ */ a.jsxs(E, { children: [
51
- /* @__PURE__ */ a.jsx(
52
- I,
50
+ }, [s]), a && a.unvisible ? null : /* @__PURE__ */ o.jsxs(D, { children: [
51
+ /* @__PURE__ */ o.jsx(
52
+ E,
53
53
  {
54
54
  ...e,
55
55
  onReset: b,
@@ -60,16 +60,16 @@ const M = (e) => {
60
60
  rightElements: F()
61
61
  }
62
62
  ),
63
- i && /* @__PURE__ */ a.jsxs(
64
- D,
63
+ i && /* @__PURE__ */ o.jsxs(
64
+ w,
65
65
  {
66
66
  handlerClose: () => {
67
67
  C(!1), r && r(!1);
68
68
  },
69
69
  ...O,
70
70
  children: [
71
- x && /* @__PURE__ */ a.jsx(P, { title: x }),
72
- /* @__PURE__ */ a.jsx(T, { children: p })
71
+ x && /* @__PURE__ */ o.jsx(P, { title: x }),
72
+ /* @__PURE__ */ o.jsx(T, { children: p })
73
73
  ]
74
74
  }
75
75
  )
@@ -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 e from "../../icons/index.js";
3
3
  const d = (o) => {
4
4
  const {
@@ -1,102 +1,102 @@
1
- import { j as n } from "../../chunks/jsx-runtime.gtoSnx-V.js";
2
- import { useState as I, useEffect as P } from "react";
3
- import h from "../../icons/index.js";
4
- import A from "../../avatar/index.js";
5
- import { returnDropdownDynamicStyles as x, getDropdownItemCssClass as B } from "./helper.js";
6
- import E from "../../dropdown/Popup.js";
1
+ import { j as n } from "../../chunks/jsx-runtime.C7wFtzyj.js";
2
+ import { useState as I, useEffect as R } from "react";
3
+ import f from "../../icons/index.js";
4
+ import P from "../../avatar/index.js";
5
+ import { returnDropdownDynamicStyles as h, getDropdownItemCssClass as A } from "./helper.js";
6
+ import B from "../../dropdown/Popup.js";
7
7
  const V = (s) => {
8
8
  const {
9
- imageAlign: i = "left",
10
- striped: y = !1,
11
- dataCombo: t,
9
+ imageAlign: c = "left",
10
+ striped: x = !1,
11
+ dataCombo: o,
12
12
  descriptionKey: r,
13
- imgSrcKey: g,
13
+ imgSrcKey: y,
14
14
  dropdownRef: a,
15
15
  currents: l = [],
16
- dropdownWidth: w,
17
- gridWrapperStyle: m,
18
- handleOnSelect: j,
19
- inputValue: D,
20
- handleOnFocus: N,
21
- opened: S,
22
- handleOnFilter: v,
23
- selected: p = null,
24
- searchOnDropdown: C,
25
- handleOnKeydown: K,
26
- searchNotFoundText: b,
27
- idKey: o,
28
- selectFieldRef: d
29
- } = s, [c, O] = I(x({ ...s }));
30
- return P(() => {
31
- a.current && O(x({ ...s }));
32
- }, [a.current, t]), /* @__PURE__ */ n.jsx(
33
- E,
16
+ dropdownWidth: g,
17
+ gridWrapperStyle: i,
18
+ handleOnSelect: w,
19
+ inputValue: j,
20
+ handleOnFocus: D,
21
+ opened: N,
22
+ handleOnFilter: S,
23
+ selected: m = null,
24
+ searchOnDropdown: v,
25
+ handleOnKeydown: C,
26
+ searchNotFoundText: K,
27
+ idKey: t,
28
+ selectFieldRef: b
29
+ } = s, [d, F] = I(h({ ...s }));
30
+ return R(() => {
31
+ a.current && F(h({ ...s }));
32
+ }, [a.current, o]), /* @__PURE__ */ n.jsx(
33
+ B,
34
34
  {
35
35
  align: "left",
36
- leftPosition: c.left,
37
- topPosition: c.top,
38
- targetRef: d == null ? void 0 : d.current,
36
+ leftPosition: d.left,
37
+ topPosition: d.top,
38
+ targetRef: b?.current,
39
39
  children: /* @__PURE__ */ n.jsxs(
40
40
  "div",
41
41
  {
42
42
  className: "select-dropdown",
43
43
  ref: a,
44
44
  style: {
45
- width: w,
46
- marginLeft: m ? m.paddingLeft : "0",
47
- maxHeight: c.maxHeight
45
+ width: g,
46
+ marginLeft: i ? i.paddingLeft : "0",
47
+ maxHeight: d.maxHeight
48
48
  },
49
49
  children: [
50
- C && /* @__PURE__ */ n.jsxs("div", { className: "filtercontainer", children: [
50
+ v && /* @__PURE__ */ n.jsxs("div", { className: "filtercontainer", children: [
51
51
  /* @__PURE__ */ n.jsx(
52
52
  "input",
53
53
  {
54
54
  className: "filterinput",
55
55
  type: "text",
56
- value: D,
56
+ value: j,
57
57
  onFocus: () => {
58
- N();
58
+ D();
59
59
  },
60
60
  onChange: (e) => {
61
- v(e.target.value);
61
+ S(e.target.value);
62
62
  },
63
63
  onKeyDown: (e) => {
64
- K(e);
64
+ C(e);
65
65
  },
66
- autoFocus: S
66
+ autoFocus: N
67
67
  }
68
68
  ),
69
- /* @__PURE__ */ n.jsx(h, { name: "search", viewBox: "0 0 32 32" })
69
+ /* @__PURE__ */ n.jsx(f, { name: "search", viewBox: "0 0 32 32" })
70
70
  ] }),
71
- t.map((e) => {
72
- const u = l && l.length > 0 ? l.some((f) => f[o] === e[o]) : !1, F = !!(p && p[o] === e[o]);
71
+ o.map((e) => {
72
+ const p = l && l.length > 0 ? l.some((u) => u[t] === e[t]) : !1, O = !!(m && m[t] === e[t]);
73
73
  return /* @__PURE__ */ n.jsx(
74
74
  "div",
75
75
  {
76
- className: B(F, u, y),
76
+ className: A(O, p, x),
77
77
  children: /* @__PURE__ */ n.jsxs(
78
78
  "button",
79
79
  {
80
80
  className: "menubutton",
81
81
  tabIndex: -1,
82
- onClick: (f) => {
83
- u || j(e);
82
+ onClick: (u) => {
83
+ p || w(e);
84
84
  },
85
85
  children: [
86
86
  e.iconName && /* @__PURE__ */ n.jsx(
87
- h,
87
+ f,
88
88
  {
89
89
  name: e.iconName,
90
90
  customClass: "menuicon",
91
- style: { order: i === "left" ? 0 : 1 }
91
+ style: { order: c === "left" ? 0 : 1 }
92
92
  }
93
93
  ),
94
- g && e.imgSrcKey && /* @__PURE__ */ n.jsx(
95
- A,
94
+ y && e.imgSrcKey && /* @__PURE__ */ n.jsx(
95
+ P,
96
96
  {
97
97
  src: e.imgSrcKey,
98
98
  customClass: "menuicon",
99
- style: { order: i === "left" ? 0 : 1 }
99
+ style: { order: c === "left" ? 0 : 1 }
100
100
  }
101
101
  ),
102
102
  /* @__PURE__ */ n.jsx("span", { className: "label", children: typeof r == "string" ? e[r] : r(e) })
@@ -104,10 +104,10 @@ const V = (s) => {
104
104
  }
105
105
  )
106
106
  },
107
- `dropdowmIten ${e[o]}}`
107
+ `dropdowmIten ${e[t]}}`
108
108
  );
109
109
  }),
110
- t && t.length === 0 && /* @__PURE__ */ n.jsx("div", { className: "notfound", children: b })
110
+ o && o.length === 0 && /* @__PURE__ */ n.jsx("div", { className: "notfound", children: K })
111
111
  ]
112
112
  }
113
113
  )
@@ -2,7 +2,7 @@ import { IDropdownSelectProps } from '../types';
2
2
  import { GetMultipleFilteredParams, GetSimpleFilteredParams } from './types';
3
3
  export declare const contentClass: (props: IDropdownSelectProps) => string;
4
4
  export declare const getDropdownItemCssClass: (selected: boolean, disabled: boolean, striped: boolean) => string;
5
- export declare const getFilteredSimpleDataCombo: ({ dataSource, descriptionKey, inputText, }: Omit<GetSimpleFilteredParams, 'currents'>) => any[];
5
+ export declare const getFilteredSimpleDataCombo: ({ dataSource, descriptionKey, inputText, }: Omit<GetSimpleFilteredParams, "currents">) => any[];
6
6
  export declare const getFilteredMultipleDataCombo: ({ dataSource, inputText, descriptionKey, currents, }: GetMultipleFilteredParams) => any[];
7
7
  export declare const returnDropdownDynamicStyles: ({ selectFieldRef, dropdownMaxHeight, dropdownRef }: IDropdownSelectProps) => {
8
8
  maxHeight: number;
@@ -1,50 +1,44 @@
1
- const i = (n) => `content ${n.showClearButton ? "" : "noclear"}`, m = (n, r, t) => {
2
- let o = "item";
3
- return o += n && !r ? " -selected " : "", o += r ? " -disabled" : "", o += !n && !r && t ? " -striped " : "", o;
4
- }, L = ({
5
- dataSource: n,
6
- descriptionKey: r,
7
- inputText: t
8
- }) => n && n.filter((o) => {
9
- var s, a;
10
- return typeof r == "string" ? ((s = o[r]) == null ? void 0 : s.toLowerCase().indexOf(t == null ? void 0 : t.toString().toLowerCase())) > -1 : ((a = r(o)) == null ? void 0 : a.toLowerCase().indexOf(t == null ? void 0 : t.toString().toLowerCase())) > -1;
11
- }), O = ({
12
- dataSource: n,
13
- inputText: r,
14
- descriptionKey: t,
15
- currents: o
16
- }) => n.filter((s) => {
17
- var a;
18
- return typeof t == "string" ? s[t].toLowerCase().indexOf(r == null ? void 0 : r.toString().toLowerCase()) > -1 && !o.includes(s) : ((a = t(s)) == null ? void 0 : a.toLowerCase().indexOf(r == null ? void 0 : r.toString().toLowerCase())) > -1 && !o.includes(s);
19
- }), l = ({
20
- selectFieldRects: n,
21
- dropdownRef: r,
22
- dropdownRects: t
23
- }, o = !1) => o && (r != null && r.current) && (t != null && t.height) ? n.top + window.scrollY - (r.current && t.height) - 10 : n.top + window.scrollY + n.height, B = ({
24
- selectFieldRef: n,
25
- dropdownMaxHeight: r,
26
- dropdownRef: t
1
+ const C = (o) => `content ${o.showClearButton ? "" : "noclear"}`, f = (o, n, e) => {
2
+ let t = "item";
3
+ return t += o && !n ? " -selected " : "", t += n ? " -disabled" : "", t += !o && !n && e ? " -striped " : "", t;
4
+ }, h = ({
5
+ dataSource: o,
6
+ descriptionKey: n,
7
+ inputText: e
8
+ }) => o && o.filter((t) => typeof n == "string" ? t[n]?.toLowerCase().indexOf(e?.toString().toLowerCase()) > -1 : n(t)?.toLowerCase().indexOf(e?.toString().toLowerCase()) > -1), D = ({
9
+ dataSource: o,
10
+ inputText: n,
11
+ descriptionKey: e,
12
+ currents: t
13
+ }) => o.filter((r) => typeof e == "string" ? r[e].toLowerCase().indexOf(n?.toString().toLowerCase()) > -1 && !t.includes(r) : e(r)?.toLowerCase().indexOf(n?.toString().toLowerCase()) > -1 && !t.includes(r)), l = ({
14
+ selectFieldRects: o,
15
+ dropdownRef: n,
16
+ dropdownRects: e
17
+ }, t = !1) => t && n?.current && e?.height ? o.top + window.scrollY - (n.current && e.height) - 10 : o.top + window.scrollY + o.height, m = ({
18
+ selectFieldRef: o,
19
+ dropdownMaxHeight: n,
20
+ dropdownRef: e
27
21
  }) => {
28
- const o = n != null && n.current ? n.current.getBoundingClientRect() : void 0, s = t != null && t.current ? t.current.getBoundingClientRect() : void 0, a = o ? o == null ? void 0 : o.bottom : 0, h = o ? o == null ? void 0 : o.top : 0, c = window.innerHeight - a, D = 30;
29
- let e = 200, g = r, C;
30
- return !g || g <= 0 ? c < e && o ? (g = h, C = l({
31
- selectFieldRects: o,
32
- dropdownRef: t,
33
- dropdownRects: s
34
- }, !0)) : (g = c, C = o ? l({ selectFieldRects: o }) : 0) : (e = g, c < e && o ? C = l({
35
- selectFieldRects: o,
36
- dropdownRef: t,
37
- dropdownRects: s
38
- }, !0) : C = o ? l({ selectFieldRects: o }) : 0), {
39
- maxHeight: g - D,
40
- top: C,
41
- left: o ? o.left : 0
22
+ const t = o?.current ? o.current.getBoundingClientRect() : void 0, r = e?.current ? e.current.getBoundingClientRect() : void 0, u = t ? t?.bottom : 0, g = t ? t?.top : 0, c = window.innerHeight - u, w = 30;
23
+ let a = 200, s = n, i;
24
+ return !s || s <= 0 ? c < a && t ? (s = g, i = l({
25
+ selectFieldRects: t,
26
+ dropdownRef: e,
27
+ dropdownRects: r
28
+ }, !0)) : (s = c, i = t ? l({ selectFieldRects: t }) : 0) : (a = s, c < a && t ? i = l({
29
+ selectFieldRects: t,
30
+ dropdownRef: e,
31
+ dropdownRects: r
32
+ }, !0) : i = t ? l({ selectFieldRects: t }) : 0), {
33
+ maxHeight: s - w,
34
+ top: i,
35
+ left: t ? t.left : 0
42
36
  };
43
37
  };
44
38
  export {
45
- i as contentClass,
46
- m as getDropdownItemCssClass,
47
- O as getFilteredMultipleDataCombo,
48
- L as getFilteredSimpleDataCombo,
49
- B as returnDropdownDynamicStyles
39
+ C as contentClass,
40
+ f as getDropdownItemCssClass,
41
+ D as getFilteredMultipleDataCombo,
42
+ h as getFilteredSimpleDataCombo,
43
+ m as returnDropdownDynamicStyles
50
44
  };
@@ -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 a from "./multiple/index.js";
3
3
  import '../../assets/gridlayout.css';import '../../assets/index26.css';/* empty css */
4
4
  import l from "../../gridlayout/GridCol.js";
@@ -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 r from "react";
3
3
  const x = ({
4
4
  currents: o,