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.
- 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 +1 -1
- 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.CBPsbBt0.js → index.Df3kt2LQ.js} +3 -3
- package/lib/chunks/{jsx-runtime.gtoSnx-V.js → jsx-runtime.C7wFtzyj.js} +2 -2
- package/lib/chunks/{lodash.C68pWaTB.js → lodash.CIAK_hAg.js} +433 -433
- package/lib/chunks/{moment.CwOqp704.js → moment.DMLRxgRE.js} +8 -8
- package/lib/chunks/{tabs.CM2We4tV.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 +1 -1
- 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 +1 -1
- 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 +1 -1
- 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.m4wxhMbx.js +0 -89
- package/lib/chunks/v1.CDXKvGzE.js +0 -41
- /package/lib/assets/{index29.css → progressbar.css} +0 -0
|
@@ -1,130 +1,129 @@
|
|
|
1
|
-
import { j as
|
|
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
|
|
5
|
-
const D = (
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
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
|
-
},
|
|
12
|
+
}, I = (i) => {
|
|
14
13
|
const {
|
|
15
|
-
imageAlign:
|
|
16
|
-
descriptionKey:
|
|
17
|
-
idKey:
|
|
18
|
-
dropdownMaxHeight:
|
|
19
|
-
selectFieldRef:
|
|
20
|
-
isAllChecked:
|
|
21
|
-
dropdownWidth:
|
|
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:
|
|
24
|
-
onFocus:
|
|
25
|
-
onFilter:
|
|
22
|
+
gridWrapperStyle: p,
|
|
23
|
+
onFocus: f,
|
|
24
|
+
onFilter: g,
|
|
26
25
|
onBlur: b,
|
|
27
|
-
dataCombo:
|
|
28
|
-
opened:
|
|
29
|
-
onUncheckAll:
|
|
30
|
-
onCheckAll:
|
|
31
|
-
selecteds:
|
|
26
|
+
dataCombo: m,
|
|
27
|
+
opened: w,
|
|
28
|
+
onUncheckAll: j,
|
|
29
|
+
onCheckAll: k,
|
|
30
|
+
selecteds: h,
|
|
32
31
|
onSelect: C
|
|
33
|
-
} =
|
|
34
|
-
return /* @__PURE__ */
|
|
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:
|
|
40
|
-
marginLeft:
|
|
41
|
-
...
|
|
38
|
+
width: n,
|
|
39
|
+
marginLeft: p ? p.paddingLeft : "0",
|
|
40
|
+
...y
|
|
42
41
|
},
|
|
43
42
|
children: [
|
|
44
|
-
/* @__PURE__ */
|
|
45
|
-
/* @__PURE__ */
|
|
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
|
-
|
|
51
|
+
f();
|
|
53
52
|
},
|
|
54
|
-
onBlur: (
|
|
55
|
-
b(
|
|
53
|
+
onBlur: (o) => {
|
|
54
|
+
b(o);
|
|
56
55
|
},
|
|
57
|
-
onChange: (
|
|
58
|
-
|
|
56
|
+
onChange: (o) => {
|
|
57
|
+
g(o.target.value);
|
|
59
58
|
},
|
|
60
|
-
autoFocus:
|
|
59
|
+
autoFocus: w
|
|
61
60
|
}
|
|
62
61
|
),
|
|
63
|
-
/* @__PURE__ */
|
|
62
|
+
/* @__PURE__ */ e.jsx(u, { customClass: "filtericon", name: "search", viewBox: "0 0 32 32" })
|
|
64
63
|
] }),
|
|
65
|
-
/* @__PURE__ */
|
|
66
|
-
|
|
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: () =>
|
|
70
|
+
onClick: () => s ? j(!0) : k(!0),
|
|
72
71
|
children: [
|
|
73
|
-
/* @__PURE__ */
|
|
74
|
-
|
|
72
|
+
/* @__PURE__ */ e.jsx(
|
|
73
|
+
u,
|
|
75
74
|
{
|
|
76
|
-
name:
|
|
75
|
+
name: s && m.length > 0 ? "checkboxChecked2" : "checkboxUnchecked2",
|
|
77
76
|
customClass: "checkboxicon"
|
|
78
77
|
}
|
|
79
78
|
),
|
|
80
|
-
/* @__PURE__ */
|
|
79
|
+
/* @__PURE__ */ e.jsx("span", { className: "label", children: c !== "" ? "Selecionar todos pesquisados" : "Selecionar Todos" })
|
|
81
80
|
]
|
|
82
81
|
}
|
|
83
82
|
) }),
|
|
84
|
-
|
|
85
|
-
const
|
|
86
|
-
return /* @__PURE__ */
|
|
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 ${
|
|
90
|
-
children: /* @__PURE__ */
|
|
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(
|
|
95
|
+
C(o);
|
|
97
96
|
},
|
|
98
97
|
children: [
|
|
99
|
-
/* @__PURE__ */
|
|
100
|
-
|
|
98
|
+
/* @__PURE__ */ e.jsx(
|
|
99
|
+
u,
|
|
101
100
|
{
|
|
102
|
-
name:
|
|
101
|
+
name: x ? "checkboxChecked2" : "checkboxUnchecked2",
|
|
103
102
|
customClass: "checkboxicon"
|
|
104
103
|
}
|
|
105
104
|
),
|
|
106
|
-
|
|
107
|
-
|
|
105
|
+
o.iconName && /* @__PURE__ */ e.jsx(
|
|
106
|
+
u,
|
|
108
107
|
{
|
|
109
|
-
name:
|
|
108
|
+
name: o.iconName,
|
|
110
109
|
customClass: "menuicon",
|
|
111
|
-
style: { order:
|
|
110
|
+
style: { order: a === "left" ? 0 : 1 }
|
|
112
111
|
}
|
|
113
112
|
),
|
|
114
|
-
|
|
113
|
+
o.imgSrcKey && /* @__PURE__ */ e.jsx(
|
|
115
114
|
S,
|
|
116
115
|
{
|
|
117
|
-
src:
|
|
116
|
+
src: o.imgSrcKey,
|
|
118
117
|
customClass: "menuicon",
|
|
119
|
-
style: { order:
|
|
118
|
+
style: { order: a === "left" ? 0 : 1 }
|
|
120
119
|
}
|
|
121
120
|
),
|
|
122
|
-
/* @__PURE__ */
|
|
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 ${
|
|
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
|
-
|
|
135
|
+
I as default
|
|
137
136
|
};
|
|
@@ -1,11 +1,8 @@
|
|
|
1
|
-
const
|
|
2
|
-
dataSource:
|
|
1
|
+
const a = ({
|
|
2
|
+
dataSource: t,
|
|
3
3
|
descriptionKey: e,
|
|
4
4
|
inputText: o
|
|
5
|
-
}) =>
|
|
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
|
-
|
|
7
|
+
a as default
|
|
11
8
|
};
|
|
@@ -1,90 +1,88 @@
|
|
|
1
|
-
import { j as
|
|
2
|
-
import { _ as
|
|
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.
|
|
9
|
-
import '../../assets/index22.css';const pe = (
|
|
8
|
+
import { v as le } from "../../chunks/v1.Ds1rkxUj.js";
|
|
9
|
+
import '../../assets/index22.css';const pe = (a) => {
|
|
10
10
|
const {
|
|
11
|
-
onSelect:
|
|
11
|
+
onSelect: c,
|
|
12
12
|
idKey: i,
|
|
13
13
|
disabled: T = !1,
|
|
14
14
|
dataSource: n,
|
|
15
|
-
descriptionKey:
|
|
16
|
-
value:
|
|
15
|
+
descriptionKey: u,
|
|
16
|
+
value: x,
|
|
17
17
|
onBlur: A,
|
|
18
18
|
gridLayout: q,
|
|
19
19
|
dropdownAlignButton: z = "left"
|
|
20
|
-
} =
|
|
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((
|
|
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 =
|
|
26
|
-
e = l.current ? l.current.clientWidth :
|
|
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 (
|
|
30
|
-
const
|
|
31
|
-
H(
|
|
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), $ || (
|
|
33
|
+
A && A(e), $ || (g(""), m(n));
|
|
34
34
|
}, X = (e) => {
|
|
35
35
|
let t = n;
|
|
36
|
-
e !== "" && n && (t = M({ dataSource: n, descriptionKey:
|
|
36
|
+
e !== "" && n && (t = M({ dataSource: n, descriptionKey: u, inputText: e })), m(t), g(e);
|
|
37
37
|
}, Y = () => {
|
|
38
|
-
|
|
38
|
+
E(!p), l.current && b(l.current.clientWidth);
|
|
39
39
|
}, B = (e = !1) => {
|
|
40
|
-
const t = e ?
|
|
41
|
-
|
|
40
|
+
const t = e ? r : n;
|
|
41
|
+
c && t && c(t.map((C) => C[i])), f(t);
|
|
42
42
|
}, I = () => {
|
|
43
|
-
|
|
43
|
+
c && c(), f([]);
|
|
44
44
|
}, j = () => {
|
|
45
|
-
l.current &&
|
|
45
|
+
l.current && b(l.current.clientWidth);
|
|
46
46
|
}, R = (e) => {
|
|
47
|
-
var c;
|
|
48
47
|
const { target: t } = e;
|
|
49
|
-
t !==
|
|
48
|
+
t !== h.current && !h.current?.contains(t) && (E(!1), m(n), g(""));
|
|
50
49
|
}, Z = (e) => {
|
|
51
50
|
_(e);
|
|
52
|
-
}, ee = () => !!(T ||
|
|
53
|
-
const e =
|
|
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
|
|
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
|
|
61
|
-
|
|
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) =>
|
|
69
|
-
|
|
66
|
+
const e = n.filter((t) => x?.includes(t[i]));
|
|
67
|
+
f(e);
|
|
70
68
|
}
|
|
71
|
-
}, [
|
|
72
|
-
if (n &&
|
|
69
|
+
}, [x?.length, n?.length]), S(() => {
|
|
70
|
+
if (n && r && !k.isEqual(n, r)) {
|
|
73
71
|
const e = M({
|
|
74
|
-
...
|
|
72
|
+
...a,
|
|
75
73
|
dataSource: n || void 0,
|
|
76
74
|
inputText: L
|
|
77
75
|
});
|
|
78
|
-
|
|
76
|
+
m(e);
|
|
79
77
|
}
|
|
80
78
|
}, [n]), S(() => {
|
|
81
|
-
const e =
|
|
79
|
+
const e = k.isEqual(r, o);
|
|
82
80
|
V(e), te();
|
|
83
|
-
}, [o,
|
|
84
|
-
/* @__PURE__ */
|
|
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
|
-
...
|
|
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__ */
|
|
99
|
+
rightElements: /* @__PURE__ */ w.jsx(
|
|
102
100
|
oe,
|
|
103
101
|
{
|
|
104
102
|
dropdownAlignButton: z,
|
|
105
103
|
disabled: ee(),
|
|
106
|
-
dropdownOpened:
|
|
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
|
-
|
|
114
|
+
p && /* @__PURE__ */ w.jsx(
|
|
117
115
|
se,
|
|
118
116
|
{
|
|
119
|
-
...
|
|
120
|
-
opened:
|
|
121
|
-
dataCombo:
|
|
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:
|
|
128
|
-
selectFieldRef:
|
|
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 r } from "../../chunks/jsx-runtime.
|
|
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,24 +1,24 @@
|
|
|
1
|
-
import { j as g } from "../../chunks/jsx-runtime.
|
|
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
|
|
6
|
+
import '../../assets/index23.css';const C = (t) => {
|
|
7
7
|
const {
|
|
8
8
|
textAlign: l = "left",
|
|
9
|
-
value:
|
|
9
|
+
value: n = "",
|
|
10
10
|
themePopover: i = "light",
|
|
11
11
|
popoverAlign: m = "left",
|
|
12
12
|
removeZeroLeft: s = !0,
|
|
13
13
|
min: a,
|
|
14
|
-
max:
|
|
15
|
-
} = t, [f,
|
|
16
|
-
const e =
|
|
17
|
-
a && parseInt(e, 10) < a ||
|
|
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
|
|
21
|
-
}, [
|
|
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
|
-
|
|
37
|
+
C as default
|
|
38
38
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { j as o } from "../../chunks/jsx-runtime.
|
|
2
|
-
import { B as r } from "../../chunks/index.
|
|
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
|
|
2
|
-
import
|
|
3
|
-
const
|
|
4
|
-
const { children:
|
|
5
|
-
return
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
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
|
-
|
|
12
|
+
l as default
|
|
18
13
|
};
|