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.
- package/lib/alerts/AlertProvider.js +2 -2
- package/lib/alerts/BaseAlert.js +8 -8
- package/lib/alerts/Message.js +1 -1
- package/lib/alerts/withAlert.js +1 -1
- package/lib/assets/BaseAlert.css +1 -1
- package/lib/assets/Content.css +1 -1
- package/lib/assets/DefaultFile.css +1 -1
- package/lib/assets/Drawer.css +1 -1
- package/lib/assets/index11.css +1 -1
- package/lib/assets/index5.css +1 -1
- package/lib/avatar/index.js +1 -1
- package/lib/badge/index.js +1 -1
- package/lib/buttons/ActivateButton.js +1 -1
- package/lib/buttons/AddButton.js +1 -1
- package/lib/buttons/Button.js +1 -1
- package/lib/buttons/ButtonGroups.js +1 -1
- package/lib/buttons/CancelButton.js +1 -1
- package/lib/buttons/DangerButton.js +1 -1
- package/lib/buttons/DefaultButton.js +70 -71
- package/lib/buttons/DestroyButton.js +1 -1
- package/lib/buttons/EditButton.js +1 -1
- package/lib/buttons/InactivateButton.js +1 -1
- package/lib/buttons/InfoButton.js +1 -1
- package/lib/buttons/PrimaryButton.js +1 -1
- package/lib/buttons/RestoreButton.js +1 -1
- package/lib/buttons/SaveButton.js +1 -1
- package/lib/buttons/SuccessButton.js +1 -1
- package/lib/buttons/WarningButton.js +1 -1
- package/lib/buttons/button_container/index.js +1 -1
- package/lib/buttons/split_button/index.js +1 -1
- package/lib/calendar/DangerCalendar.js +1 -1
- package/lib/calendar/InfoCalendar.js +1 -1
- package/lib/calendar/PrimaryCalendar.js +1 -1
- package/lib/calendar/SuccessCalendar.js +1 -1
- package/lib/calendar/WarningCalendar.js +1 -1
- package/lib/calendar/base/Day.js +2 -2
- package/lib/calendar/base/Month.js +1 -1
- package/lib/calendar/base/Week.js +1 -1
- package/lib/calendar/base/helpers.js +10 -10
- package/lib/calendar/base/index.js +64 -66
- package/lib/checkbox/index.js +4 -4
- package/lib/chunks/index.CM1aLH2W.js +205 -0
- package/lib/chunks/{index.Da--18GT.js → index.Df3kt2LQ.js} +179 -181
- package/lib/chunks/{jsx-runtime.gtoSnx-V.js → jsx-runtime.C7wFtzyj.js} +2 -2
- package/lib/chunks/lodash.CIAK_hAg.js +3684 -0
- package/lib/chunks/moment.DMLRxgRE.js +2589 -0
- package/lib/chunks/{tabs.BP3DB7Gx.js → tabs.D0L_nVfP.js} +95 -96
- package/lib/chunks/v1.Ds1rkxUj.js +49 -0
- package/lib/dialog/Alert.js +1 -1
- package/lib/dialog/Custom.js +3 -3
- package/lib/dialog/Error.js +1 -1
- package/lib/dialog/Information.js +1 -1
- package/lib/dialog/Question.js +36 -39
- package/lib/dialog/Warning.js +1 -1
- package/lib/dialog/base/Content.js +1 -1
- package/lib/dialog/base/Footer.js +1 -1
- package/lib/dialog/base/Header.js +2 -2
- package/lib/dialog/base/index.js +2 -2
- package/lib/dialog/form/index.js +2 -2
- package/lib/dialog/index.js +1 -1
- package/lib/dialog/wizard/index.js +4 -4
- package/lib/dialog/wizard/progressbar.js +87 -3
- package/lib/dialog/wizard/step.js +2 -2
- package/lib/drawer/Content.js +1 -1
- package/lib/drawer/Drawer.js +19 -19
- package/lib/drawer/Header.js +1 -1
- package/lib/dropdown/Popup.js +1 -1
- package/lib/dropdown/withDropdown.js +31 -31
- package/lib/fieldset/index.js +1 -1
- package/lib/form/Field.js +2 -2
- package/lib/form/FieldArray.js +2 -2
- package/lib/form/FieldNumber.js +27 -27
- package/lib/form/FieldPeriod.js +2 -2
- package/lib/form/helpers.js +1 -1
- package/lib/form/index.js +49 -49
- package/lib/form/withFieldHOC.js +1 -1
- package/lib/form/withFormSecurity.js +1 -1
- package/lib/gridlayout/GridCol.js +1 -1
- package/lib/gridlayout/GridRow.js +1 -1
- package/lib/hint/helpers.js +1 -1
- package/lib/hint/index.js +1 -1
- package/lib/icons/index.js +51 -54
- package/lib/index.js +2 -2
- package/lib/inputs/base/InputTextBase.js +112 -114
- package/lib/inputs/base/Label.js +1 -1
- package/lib/inputs/base/helpers.d.ts +3 -3
- package/lib/inputs/base/helpers.js +1 -1
- package/lib/inputs/color/index.js +2 -2
- package/lib/inputs/date/Dialog.js +2 -2
- package/lib/inputs/date/Dropdown.js +10 -14
- package/lib/inputs/date/helpers.js +7 -7
- package/lib/inputs/date/index.js +102 -114
- package/lib/inputs/errorMessage/index.js +1 -1
- package/lib/inputs/file/DefaultFile.js +43 -44
- package/lib/inputs/file/DragDropFile.js +91 -93
- package/lib/inputs/file/File.d.ts +1 -1
- package/lib/inputs/file/File.js +33 -34
- package/lib/inputs/file/FileButtonSettings.js +1 -1
- package/lib/inputs/inputHOC.js +1 -1
- package/lib/inputs/mask/BaseMask.js +8 -8
- package/lib/inputs/mask/Cnpj.js +2 -2
- package/lib/inputs/mask/Cpf.js +2 -2
- package/lib/inputs/mask/Phone.js +1 -1
- package/lib/inputs/mask/ZipCode.js +1 -1
- package/lib/inputs/mask/helpers.d.ts +33 -33
- package/lib/inputs/mask/helpers.js +44 -44
- package/lib/inputs/multiSelect/ActionButtons.js +2 -2
- package/lib/inputs/multiSelect/Dropdown.js +63 -64
- package/lib/inputs/multiSelect/helper.js +4 -7
- package/lib/inputs/multiSelect/index.js +45 -47
- package/lib/inputs/number/BaseNumber.js +1 -1
- package/lib/inputs/number/Currency.js +1 -1
- package/lib/inputs/number/Decimal.js +1 -1
- package/lib/inputs/number/index.js +10 -10
- package/lib/inputs/period/Dialog.js +2 -2
- package/lib/inputs/period/Dropdown.js +10 -15
- package/lib/inputs/period/PeriodList.js +1 -1
- package/lib/inputs/period/helper.js +3 -3
- package/lib/inputs/period/index.js +207 -223
- package/lib/inputs/search/index.js +29 -29
- package/lib/inputs/select/ActionButtons.js +1 -1
- package/lib/inputs/select/Dropdown.js +53 -53
- package/lib/inputs/select/helper.d.ts +1 -1
- package/lib/inputs/select/helper.js +39 -45
- package/lib/inputs/select/index.js +1 -1
- package/lib/inputs/select/multiple/Selecteds.js +1 -1
- package/lib/inputs/select/multiple/index.js +139 -143
- package/lib/inputs/select/simple/index.js +157 -164
- package/lib/inputs/text/index.js +1 -1
- package/lib/inputs/textarea/index.js +1 -1
- package/lib/internals/withTooltip.js +1 -1
- package/lib/labelMessages/index.js +1 -1
- package/lib/labels/DangerLabel.js +1 -1
- package/lib/labels/DefaultLabel.js +1 -1
- package/lib/labels/InfoLabel.js +1 -1
- package/lib/labels/PrimaryLabel.js +1 -1
- package/lib/labels/SuccessLabel.js +1 -1
- package/lib/labels/WarningLabel.js +1 -1
- package/lib/labels/label_container/index.js +1 -1
- package/lib/list/Header.js +1 -1
- package/lib/list/Item.js +2 -2
- package/lib/list/Separator.js +1 -1
- package/lib/list/index.js +2 -2
- package/lib/menus/float/MenuItem.js +18 -18
- package/lib/menus/float/SubMenuContainer.d.ts +10 -10
- package/lib/menus/float/index.js +2 -2
- package/lib/menus/sidenav/ExpandMenu.js +1 -1
- package/lib/menus/sidenav/MenuLink.js +1 -1
- package/lib/menus/sidenav/NavMenuGroup.js +1 -1
- package/lib/menus/sidenav/NavMenuItem.js +54 -56
- package/lib/menus/sidenav/NavSubMenuItem.js +1 -1
- package/lib/menus/sidenav/index.js +2 -2
- package/lib/menus/sidenav/popup_menu_search/EmptyList.js +1 -1
- package/lib/menus/sidenav/popup_menu_search/index.js +2 -2
- package/lib/noPermission/index.js +1 -1
- package/lib/panel/Content.js +30 -31
- package/lib/panel/DangerPanel.js +1 -1
- package/lib/panel/Default.js +1 -1
- package/lib/panel/Header.js +1 -1
- package/lib/panel/InfoPanel.js +1 -1
- package/lib/panel/PrimaryPanel.js +1 -1
- package/lib/panel/SuccessPanel.js +1 -1
- package/lib/panel/ToolBar.js +1 -1
- package/lib/panel/WarningPanel.js +1 -1
- package/lib/permissionValidations.js +11 -11
- package/lib/popover/PopoverText.js +1 -1
- package/lib/popover/PopoverTitle.js +1 -1
- package/lib/popover/index.js +1 -1
- package/lib/progress/Bar.js +1 -1
- package/lib/progress/index.js +1 -1
- package/lib/radio/index.js +1 -1
- package/lib/shortcuts/index.js +1 -1
- package/lib/skeleton/SkeletonContainer.js +1 -1
- package/lib/skeleton/index.js +1 -1
- package/lib/spinner/SpinnerLoading.js +1 -1
- package/lib/spinner/index.js +1 -1
- package/lib/split/Split.js +1 -1
- package/lib/split/SplitSide.js +1 -1
- package/lib/table/Body.js +25 -25
- package/lib/table/Header.js +28 -31
- package/lib/table/HeaderColumn.js +2 -2
- package/lib/table/Row.js +1 -1
- package/lib/table/RowColumn.js +1 -1
- package/lib/table/index.js +2 -2
- package/lib/tabs/DropdownTabs.js +4 -4
- package/lib/tabs/Menu.js +1 -1
- package/lib/tabs/MenuTabs.js +2 -2
- package/lib/tabs/Panel.js +29 -30
- package/lib/tabs/context.js +25 -29
- package/lib/tabs/index.js +2 -2
- package/lib/textContent/index.js +2 -2
- package/lib/toolbar/ButtonBar.js +1 -1
- package/lib/toolbar/LabelBar.js +1 -1
- package/lib/toolbar/Separator.js +1 -1
- package/lib/toolbar/ToolBarGroup.js +1 -1
- package/lib/toolbar/index.js +1 -1
- package/lib/tooltip/index.js +24 -24
- package/lib/treetable/Body.js +2 -2
- package/lib/treetable/Header.js +3 -3
- package/lib/treetable/Row.js +52 -52
- package/lib/treetable/helpers.d.ts +4 -5
- package/lib/treetable/index.js +1 -1
- package/lib/treeview/Header.js +1 -1
- package/lib/treeview/Node.js +4 -4
- package/lib/treeview/index.js +28 -28
- package/lib/uitour/index.js +32 -32
- package/package.json +24 -39
- package/lib/chunks/index.CjD97zna.js +0 -206
- package/lib/chunks/index.iA-fVKOP.js +0 -89
- package/lib/chunks/v1.CDXKvGzE.js +0 -41
- /package/lib/assets/{index29.css → progressbar.css} +0 -0
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import { j as
|
|
2
|
-
import { useState as u, useEffect as S, Fragment as
|
|
3
|
-
import
|
|
4
|
-
import
|
|
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
|
|
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(""), [
|
|
12
|
-
e.onReset && e.onReset(
|
|
13
|
-
}, y = (
|
|
14
|
-
|
|
15
|
-
}, d = () => e.disabled ||
|
|
16
|
-
const
|
|
17
|
-
let
|
|
18
|
-
icon: /* @__PURE__ */
|
|
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
|
|
27
|
-
...
|
|
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
|
-
...
|
|
32
|
-
}),
|
|
31
|
+
...t
|
|
32
|
+
}), t;
|
|
33
33
|
}, F = () => {
|
|
34
|
-
const
|
|
35
|
-
let
|
|
36
|
-
const f = /* @__PURE__ */
|
|
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__ */
|
|
46
|
-
return
|
|
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]),
|
|
51
|
-
/* @__PURE__ */
|
|
52
|
-
|
|
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__ */
|
|
64
|
-
|
|
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__ */
|
|
72
|
-
/* @__PURE__ */
|
|
71
|
+
x && /* @__PURE__ */ o.jsx(P, { title: x }),
|
|
72
|
+
/* @__PURE__ */ o.jsx(T, { children: p })
|
|
73
73
|
]
|
|
74
74
|
}
|
|
75
75
|
)
|
|
@@ -1,102 +1,102 @@
|
|
|
1
|
-
import { j as n } from "../../chunks/jsx-runtime.
|
|
2
|
-
import { useState as I, useEffect as
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import { returnDropdownDynamicStyles as
|
|
6
|
-
import
|
|
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:
|
|
10
|
-
striped:
|
|
11
|
-
dataCombo:
|
|
9
|
+
imageAlign: c = "left",
|
|
10
|
+
striped: x = !1,
|
|
11
|
+
dataCombo: o,
|
|
12
12
|
descriptionKey: r,
|
|
13
|
-
imgSrcKey:
|
|
13
|
+
imgSrcKey: y,
|
|
14
14
|
dropdownRef: a,
|
|
15
15
|
currents: l = [],
|
|
16
|
-
dropdownWidth:
|
|
17
|
-
gridWrapperStyle:
|
|
18
|
-
handleOnSelect:
|
|
19
|
-
inputValue:
|
|
20
|
-
handleOnFocus:
|
|
21
|
-
opened:
|
|
22
|
-
handleOnFilter:
|
|
23
|
-
selected:
|
|
24
|
-
searchOnDropdown:
|
|
25
|
-
handleOnKeydown:
|
|
26
|
-
searchNotFoundText:
|
|
27
|
-
idKey:
|
|
28
|
-
selectFieldRef:
|
|
29
|
-
} = s, [
|
|
30
|
-
return
|
|
31
|
-
a.current &&
|
|
32
|
-
}, [a.current,
|
|
33
|
-
|
|
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:
|
|
37
|
-
topPosition:
|
|
38
|
-
targetRef:
|
|
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:
|
|
46
|
-
marginLeft:
|
|
47
|
-
maxHeight:
|
|
45
|
+
width: g,
|
|
46
|
+
marginLeft: i ? i.paddingLeft : "0",
|
|
47
|
+
maxHeight: d.maxHeight
|
|
48
48
|
},
|
|
49
49
|
children: [
|
|
50
|
-
|
|
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:
|
|
56
|
+
value: j,
|
|
57
57
|
onFocus: () => {
|
|
58
|
-
|
|
58
|
+
D();
|
|
59
59
|
},
|
|
60
60
|
onChange: (e) => {
|
|
61
|
-
|
|
61
|
+
S(e.target.value);
|
|
62
62
|
},
|
|
63
63
|
onKeyDown: (e) => {
|
|
64
|
-
|
|
64
|
+
C(e);
|
|
65
65
|
},
|
|
66
|
-
autoFocus:
|
|
66
|
+
autoFocus: N
|
|
67
67
|
}
|
|
68
68
|
),
|
|
69
|
-
/* @__PURE__ */ n.jsx(
|
|
69
|
+
/* @__PURE__ */ n.jsx(f, { name: "search", viewBox: "0 0 32 32" })
|
|
70
70
|
] }),
|
|
71
|
-
|
|
72
|
-
const
|
|
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:
|
|
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: (
|
|
83
|
-
|
|
82
|
+
onClick: (u) => {
|
|
83
|
+
p || w(e);
|
|
84
84
|
},
|
|
85
85
|
children: [
|
|
86
86
|
e.iconName && /* @__PURE__ */ n.jsx(
|
|
87
|
-
|
|
87
|
+
f,
|
|
88
88
|
{
|
|
89
89
|
name: e.iconName,
|
|
90
90
|
customClass: "menuicon",
|
|
91
|
-
style: { order:
|
|
91
|
+
style: { order: c === "left" ? 0 : 1 }
|
|
92
92
|
}
|
|
93
93
|
),
|
|
94
|
-
|
|
95
|
-
|
|
94
|
+
y && e.imgSrcKey && /* @__PURE__ */ n.jsx(
|
|
95
|
+
P,
|
|
96
96
|
{
|
|
97
97
|
src: e.imgSrcKey,
|
|
98
98
|
customClass: "menuicon",
|
|
99
|
-
style: { order:
|
|
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[
|
|
107
|
+
`dropdowmIten ${e[t]}}`
|
|
108
108
|
);
|
|
109
109
|
}),
|
|
110
|
-
|
|
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,
|
|
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
|
|
2
|
-
let
|
|
3
|
-
return
|
|
4
|
-
},
|
|
5
|
-
dataSource:
|
|
6
|
-
descriptionKey:
|
|
7
|
-
inputText:
|
|
8
|
-
}) =>
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
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
|
|
29
|
-
let
|
|
30
|
-
return !
|
|
31
|
-
selectFieldRects:
|
|
32
|
-
dropdownRef:
|
|
33
|
-
dropdownRects:
|
|
34
|
-
}, !0)) : (
|
|
35
|
-
selectFieldRects:
|
|
36
|
-
dropdownRef:
|
|
37
|
-
dropdownRects:
|
|
38
|
-
}, !0) :
|
|
39
|
-
maxHeight:
|
|
40
|
-
top:
|
|
41
|
-
left:
|
|
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
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
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.
|
|
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";
|