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,102 +1,100 @@
|
|
|
1
|
-
import { j as t } from "../../chunks/jsx-runtime.
|
|
2
|
-
import { useState as
|
|
3
|
-
import { _ as ee } from "../../chunks/lodash.
|
|
1
|
+
import { j as t } from "../../chunks/jsx-runtime.C7wFtzyj.js";
|
|
2
|
+
import { useState as D, Fragment as w } from "react";
|
|
3
|
+
import { _ as ee } from "../../chunks/lodash.CIAK_hAg.js";
|
|
4
4
|
import "../../buttons/DefaultButton.js";
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
5
|
+
import S from "../../buttons/PrimaryButton.js";
|
|
6
|
+
import $ from "../../buttons/DangerButton.js";
|
|
7
|
+
import F from "../../icons/index.js";
|
|
8
8
|
import '../../assets/button.css';/* empty css */
|
|
9
9
|
import te from "../base/InputTextBase.js";
|
|
10
10
|
import se from "../../hint/index.js";
|
|
11
11
|
import { ErrorMessage as ae } from "../errorMessage/index.js";
|
|
12
|
-
const
|
|
12
|
+
const q = (n) => n?.length ? ee.map(n, (i) => i) : [], g = (n) => n.split(",").map((i) => i.includes(".") ? i.split(".")[1] : i.split("/")[1]).join(", "), re = (n) => n.split(", "), xe = (n) => {
|
|
13
13
|
const {
|
|
14
|
-
id:
|
|
14
|
+
id: i = Math.random().toString(36).substring(2, 7),
|
|
15
15
|
accept: o = "image/png, image/jpeg",
|
|
16
|
-
labelButton:
|
|
17
|
-
subtitleDragDrop:
|
|
18
|
-
titleDragDrop:
|
|
19
|
-
onBtnClickInsert:
|
|
20
|
-
inputRef:
|
|
21
|
-
onChange:
|
|
22
|
-
onDragEnter:
|
|
23
|
-
onDragOver:
|
|
24
|
-
onDragLeave:
|
|
25
|
-
onDrop:
|
|
26
|
-
showSubtitle:
|
|
16
|
+
labelButton: L = "Selecionar",
|
|
17
|
+
subtitleDragDrop: f = "Selecione arquivos do tipo ",
|
|
18
|
+
titleDragDrop: u = "Arquivo para importação",
|
|
19
|
+
onBtnClickInsert: A,
|
|
20
|
+
inputRef: z,
|
|
21
|
+
onChange: C,
|
|
22
|
+
onDragEnter: M,
|
|
23
|
+
onDragOver: P,
|
|
24
|
+
onDragLeave: U,
|
|
25
|
+
onDrop: I,
|
|
26
|
+
showSubtitle: _ = !0,
|
|
27
27
|
multiple: x = !1,
|
|
28
|
-
hint:
|
|
29
|
-
hintPosition:
|
|
30
|
-
errorMessages:
|
|
31
|
-
skeletonize:
|
|
32
|
-
} =
|
|
28
|
+
hint: R = [],
|
|
29
|
+
hintPosition: H = "below",
|
|
30
|
+
errorMessages: W = [],
|
|
31
|
+
skeletonize: b = !1
|
|
32
|
+
} = n, [G, N] = D(!1), [r, h] = D([]), [j, T] = D(!1), [c, m] = D({
|
|
33
33
|
class: "",
|
|
34
|
-
text:
|
|
35
|
-
subtitle:
|
|
34
|
+
text: u,
|
|
35
|
+
subtitle: f + g(o),
|
|
36
36
|
error: !1
|
|
37
37
|
}), v = (e) => {
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
E(!1), s.forEach((l) => (!j && e.indexOf(l) === -1 && E(!0), j)), !x && (a.dataTransfer.items.length > 1 || r.length > 0) ? d({
|
|
38
|
+
e.preventDefault?.(), e.stopPropagation?.();
|
|
39
|
+
}, J = (e, s, a) => {
|
|
40
|
+
T(!1), s.forEach((l) => (!j && e.indexOf(l) === -1 && T(!0), j)), !x && (a.dataTransfer.items.length > 1 || r.length > 0) ? m({
|
|
42
41
|
class: "disapprovedFile",
|
|
43
42
|
text: "Não é permitido anexar mais de um arquivo.",
|
|
44
43
|
subtitle: "",
|
|
45
44
|
error: !0
|
|
46
|
-
}) :
|
|
45
|
+
}) : m(j ? {
|
|
47
46
|
class: "disapprovedFile",
|
|
48
47
|
text: "Por favor, verifique a extensão do(s) arquivo(s) inserido(s).",
|
|
49
48
|
subtitle: `Apenas as extensões ${g(o)} são permitidas.`,
|
|
50
49
|
error: !0
|
|
51
50
|
} : {
|
|
52
51
|
class: "approvedFile",
|
|
53
|
-
text:
|
|
54
|
-
subtitle:
|
|
52
|
+
text: u,
|
|
53
|
+
subtitle: f + g(o),
|
|
55
54
|
error: !1
|
|
56
55
|
});
|
|
57
|
-
},
|
|
56
|
+
}, K = (e) => {
|
|
58
57
|
let s = [];
|
|
59
58
|
return e.dataTransfer.items && Array.from(e.dataTransfer.items).map((a) => (s.indexOf(a.type) === -1 && (s = [...s, a.type]), s)), s;
|
|
60
|
-
},
|
|
61
|
-
const s = re(o), a =
|
|
62
|
-
|
|
63
|
-
},
|
|
64
|
-
|
|
59
|
+
}, k = (e) => {
|
|
60
|
+
const s = re(o), a = K(e);
|
|
61
|
+
J(s, a, e), v(e), N(!0), M?.(e);
|
|
62
|
+
}, B = (e) => {
|
|
63
|
+
m({
|
|
65
64
|
class: "",
|
|
66
|
-
text:
|
|
67
|
-
subtitle:
|
|
65
|
+
text: u,
|
|
66
|
+
subtitle: f + g(o),
|
|
68
67
|
error: !1
|
|
69
|
-
}), v(e),
|
|
70
|
-
},
|
|
71
|
-
v(e),
|
|
72
|
-
},
|
|
73
|
-
v(e),
|
|
68
|
+
}), v(e), N(!1), U?.(e);
|
|
69
|
+
}, E = (e) => {
|
|
70
|
+
v(e), P?.(e);
|
|
71
|
+
}, O = (e) => {
|
|
72
|
+
v(e), N(!1);
|
|
74
73
|
const s = e.dataTransfer;
|
|
75
|
-
if (s && !
|
|
76
|
-
const a =
|
|
74
|
+
if (s && !c.error) {
|
|
75
|
+
const a = q(s.files);
|
|
77
76
|
if (a.length > 0) {
|
|
78
|
-
const l = r.concat(a),
|
|
79
|
-
h(
|
|
77
|
+
const l = r.concat(a), y = l.map((d) => d.name), p = l.filter(({ name: d }, Z) => !y.includes(d, Z + 1));
|
|
78
|
+
h(p), C?.(a, e), I?.(e);
|
|
80
79
|
}
|
|
81
80
|
}
|
|
82
|
-
|
|
81
|
+
m({
|
|
83
82
|
class: "",
|
|
84
|
-
text:
|
|
85
|
-
subtitle:
|
|
83
|
+
text: u,
|
|
84
|
+
subtitle: f + g(o),
|
|
86
85
|
error: !1
|
|
87
86
|
});
|
|
88
|
-
},
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
const s = I(e.target.files);
|
|
87
|
+
}, Q = (e) => {
|
|
88
|
+
e.preventDefault?.();
|
|
89
|
+
const s = q(e.target.files);
|
|
92
90
|
if (s.length > 0 && !j) {
|
|
93
|
-
const
|
|
94
|
-
h(
|
|
91
|
+
const a = r.concat(s), l = a.map((p) => p.name), y = a.filter(({ name: p }, d) => !l.includes(p, d + 1));
|
|
92
|
+
h(y), C?.(s, e);
|
|
95
93
|
}
|
|
96
|
-
},
|
|
94
|
+
}, V = () => h([]), X = (e) => {
|
|
97
95
|
h((s) => s.filter((a) => a.name !== e));
|
|
98
|
-
},
|
|
99
|
-
r[0].type === "image/jpeg" || r[0].type === "image/png" ? /* @__PURE__ */ t.jsx("img", { alt: r[0].name, src: URL.createObjectURL(r[0]) }) : /* @__PURE__ */ t.jsx(
|
|
96
|
+
}, Y = () => r?.length === 1 ? /* @__PURE__ */ t.jsxs(w, { children: [
|
|
97
|
+
r[0].type === "image/jpeg" || r[0].type === "image/png" ? /* @__PURE__ */ t.jsx("img", { alt: r[0].name, src: URL.createObjectURL(r[0]) }) : /* @__PURE__ */ t.jsx(F, { size: 64, name: "file_excel" }),
|
|
100
98
|
/* @__PURE__ */ t.jsx("div", { className: "image-preview-solo", children: /* @__PURE__ */ t.jsx("div", { className: "description-file", children: /* @__PURE__ */ t.jsx("span", { className: "subtitle", children: r[0].name }) }) })
|
|
101
99
|
] }) : /* @__PURE__ */ t.jsx("ul", { className: "file-list", children: r.length > 0 && r.map((e) => /* @__PURE__ */ t.jsxs(
|
|
102
100
|
"li",
|
|
@@ -104,13 +102,13 @@ const I = (i) => i != null && i.length ? ee.map(i, (n) => n) : [], g = (i) => i.
|
|
|
104
102
|
className: "file-card",
|
|
105
103
|
children: [
|
|
106
104
|
/* @__PURE__ */ t.jsx(
|
|
107
|
-
|
|
105
|
+
$,
|
|
108
106
|
{
|
|
109
107
|
transparent: !0,
|
|
110
108
|
boxShadow: !1,
|
|
111
109
|
className: "delete-button",
|
|
112
|
-
onClick: () =>
|
|
113
|
-
icon: /* @__PURE__ */ t.jsx(
|
|
110
|
+
onClick: () => X(e.name),
|
|
111
|
+
icon: /* @__PURE__ */ t.jsx(F, { customClass: "color-icon-upload", name: "close" })
|
|
114
112
|
}
|
|
115
113
|
),
|
|
116
114
|
/* @__PURE__ */ t.jsx("div", { className: "image-content", children: (e.type === "image/jpeg" || e.type === "image/png") && /* @__PURE__ */ t.jsx(
|
|
@@ -126,29 +124,29 @@ const I = (i) => i != null && i.length ? ee.map(i, (n) => n) : [], g = (i) => i.
|
|
|
126
124
|
},
|
|
127
125
|
`${e.name}${e.size}`
|
|
128
126
|
)) });
|
|
129
|
-
return /* @__PURE__ */ t.jsxs("div", { className: "input-dragdrop-container", onDragEnter:
|
|
130
|
-
/* @__PURE__ */ t.jsxs("div", { className: `drag-content ${
|
|
131
|
-
/* @__PURE__ */ t.jsx("div", { className: `${
|
|
132
|
-
/* @__PURE__ */ t.jsx("h1", { className: "title", style: { paddingBottom: "20px" }, children:
|
|
133
|
-
|
|
134
|
-
!
|
|
135
|
-
] }) : /* @__PURE__ */ t.jsxs(
|
|
136
|
-
|
|
127
|
+
return /* @__PURE__ */ t.jsxs("div", { className: "input-dragdrop-container", onDragEnter: k, onSubmit: (e) => e.preventDefault(), children: [
|
|
128
|
+
/* @__PURE__ */ t.jsxs("div", { className: `drag-content ${b ? "-skeletonized" : ""}`, children: [
|
|
129
|
+
/* @__PURE__ */ t.jsx("div", { className: `${c.class} ${b ? "" : "content"}`, children: c.error || r.length === 0 ? /* @__PURE__ */ t.jsxs("label", { htmlFor: i, children: [
|
|
130
|
+
/* @__PURE__ */ t.jsx("h1", { className: "title", style: { paddingBottom: "20px" }, children: c.text }),
|
|
131
|
+
_ && /* @__PURE__ */ t.jsx("p", { className: "subtitle", children: c.subtitle }),
|
|
132
|
+
!b && /* @__PURE__ */ t.jsx(S, { onClick: A, label: L })
|
|
133
|
+
] }) : /* @__PURE__ */ t.jsxs(w, { children: [
|
|
134
|
+
Y(),
|
|
137
135
|
/* @__PURE__ */ t.jsxs("footer", { className: "footer-button-action", children: [
|
|
138
136
|
(!x && r.length < 1 || x) && /* @__PURE__ */ t.jsx(
|
|
139
|
-
|
|
137
|
+
S,
|
|
140
138
|
{
|
|
141
139
|
className: "selectButton",
|
|
142
|
-
onClick:
|
|
143
|
-
label:
|
|
140
|
+
onClick: A,
|
|
141
|
+
label: L
|
|
144
142
|
}
|
|
145
143
|
),
|
|
146
144
|
/* @__PURE__ */ t.jsx(
|
|
147
|
-
|
|
145
|
+
$,
|
|
148
146
|
{
|
|
149
147
|
className: "cancelButton",
|
|
150
|
-
onClick:
|
|
151
|
-
icon: /* @__PURE__ */ t.jsx(
|
|
148
|
+
onClick: V,
|
|
149
|
+
icon: /* @__PURE__ */ t.jsx(F, { name: "close", color: "white" }),
|
|
152
150
|
label: "Limpar"
|
|
153
151
|
}
|
|
154
152
|
)
|
|
@@ -157,33 +155,33 @@ const I = (i) => i != null && i.length ? ee.map(i, (n) => n) : [], g = (i) => i.
|
|
|
157
155
|
/* @__PURE__ */ t.jsx(
|
|
158
156
|
te,
|
|
159
157
|
{
|
|
160
|
-
...
|
|
161
|
-
inputRef:
|
|
158
|
+
...n,
|
|
159
|
+
inputRef: z,
|
|
162
160
|
style: { display: "none" },
|
|
163
161
|
type: "file",
|
|
164
|
-
id:
|
|
162
|
+
id: i,
|
|
165
163
|
accept: o,
|
|
166
164
|
multiple: x,
|
|
167
|
-
onDragOver:
|
|
168
|
-
onDrop:
|
|
169
|
-
onDragLeave:
|
|
170
|
-
onChange:
|
|
165
|
+
onDragOver: E,
|
|
166
|
+
onDrop: O,
|
|
167
|
+
onDragLeave: B,
|
|
168
|
+
onChange: Q
|
|
171
169
|
}
|
|
172
170
|
),
|
|
173
|
-
|
|
171
|
+
G && /* @__PURE__ */ t.jsx(
|
|
174
172
|
"div",
|
|
175
173
|
{
|
|
176
174
|
className: "drag-position-element",
|
|
177
175
|
id: "dragFileElement",
|
|
178
|
-
onDragEnter:
|
|
179
|
-
onDragLeave:
|
|
180
|
-
onDragOver:
|
|
181
|
-
onDrop:
|
|
176
|
+
onDragEnter: k,
|
|
177
|
+
onDragLeave: B,
|
|
178
|
+
onDragOver: E,
|
|
179
|
+
onDrop: O
|
|
182
180
|
}
|
|
183
181
|
)
|
|
184
182
|
] }),
|
|
185
|
-
/* @__PURE__ */ t.jsx(ae, { messages:
|
|
186
|
-
/* @__PURE__ */ t.jsx(se, { visible: !!
|
|
183
|
+
/* @__PURE__ */ t.jsx(ae, { messages: W }),
|
|
184
|
+
/* @__PURE__ */ t.jsx(se, { visible: !!R && H === "below", customClass: "hint", description: R })
|
|
187
185
|
] });
|
|
188
186
|
};
|
|
189
187
|
export {
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { IFileProps } from './types';
|
|
2
|
-
declare const File: ({ applyDragDrop, defaultFiles, gridLayout, onBtnClickRemove: onBtnClickRemoveProp, ...rest }: Omit<IFileProps,
|
|
2
|
+
declare const File: ({ applyDragDrop, defaultFiles, gridLayout, onBtnClickRemove: onBtnClickRemoveProp, ...rest }: Omit<IFileProps, "onBtnClickInsert">) => import("react/jsx-runtime").JSX.Element;
|
|
3
3
|
export default File;
|
package/lib/inputs/file/File.js
CHANGED
|
@@ -1,46 +1,45 @@
|
|
|
1
|
-
import { j as
|
|
2
|
-
import { useRef as
|
|
3
|
-
import
|
|
4
|
-
import
|
|
1
|
+
import { j as n } from "../../chunks/jsx-runtime.C7wFtzyj.js";
|
|
2
|
+
import { useRef as l, useEffect as u } from "react";
|
|
3
|
+
import p from "./DefaultFile.js";
|
|
4
|
+
import C from "./DragDropFile.js";
|
|
5
5
|
import '../../assets/gridlayout.css';/* empty css */
|
|
6
|
-
import
|
|
7
|
-
import { transformFilesToFileList as
|
|
8
|
-
const
|
|
9
|
-
applyDragDrop:
|
|
10
|
-
defaultFiles:
|
|
11
|
-
gridLayout:
|
|
6
|
+
import R from "../../gridlayout/GridCol.js";
|
|
7
|
+
import { transformFilesToFileList as k } from "./helpers.js";
|
|
8
|
+
const F = ({
|
|
9
|
+
applyDragDrop: m = !1,
|
|
10
|
+
defaultFiles: r,
|
|
11
|
+
gridLayout: o,
|
|
12
12
|
onBtnClickRemove: e,
|
|
13
|
-
...
|
|
13
|
+
...i
|
|
14
14
|
}) => {
|
|
15
|
-
const
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
r.current && (r.current.value = ""), e && e();
|
|
15
|
+
const t = l(null), c = () => {
|
|
16
|
+
t.current?.click();
|
|
17
|
+
}, f = () => {
|
|
18
|
+
t.current && (t.current.value = ""), e && e();
|
|
20
19
|
};
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
}, [
|
|
24
|
-
const s =
|
|
25
|
-
|
|
20
|
+
u(() => {
|
|
21
|
+
t?.current && r && (t.current.files = k(r));
|
|
22
|
+
}, [t?.current]);
|
|
23
|
+
const s = m ? /* @__PURE__ */ n.jsx(
|
|
24
|
+
C,
|
|
26
25
|
{
|
|
27
|
-
...
|
|
28
|
-
defaultFiles:
|
|
29
|
-
inputRef:
|
|
30
|
-
onBtnClickInsert: () =>
|
|
26
|
+
...i,
|
|
27
|
+
defaultFiles: r,
|
|
28
|
+
inputRef: t,
|
|
29
|
+
onBtnClickInsert: () => c()
|
|
31
30
|
}
|
|
32
|
-
) : /* @__PURE__ */
|
|
33
|
-
|
|
31
|
+
) : /* @__PURE__ */ n.jsx(
|
|
32
|
+
p,
|
|
34
33
|
{
|
|
35
|
-
...
|
|
36
|
-
inputRef:
|
|
37
|
-
defaultFiles:
|
|
38
|
-
onBtnClickRemove: () =>
|
|
39
|
-
onBtnClickInsert: () =>
|
|
34
|
+
...i,
|
|
35
|
+
inputRef: t,
|
|
36
|
+
defaultFiles: r,
|
|
37
|
+
onBtnClickRemove: () => f(),
|
|
38
|
+
onBtnClickInsert: () => c()
|
|
40
39
|
}
|
|
41
40
|
);
|
|
42
|
-
return
|
|
41
|
+
return o !== void 0 ? /* @__PURE__ */ n.jsx(R, { customClass: "-withinput", cols: o, style: { height: "100%" }, children: s }) : s;
|
|
43
42
|
};
|
|
44
43
|
export {
|
|
45
|
-
|
|
44
|
+
F as default
|
|
46
45
|
};
|
package/lib/inputs/inputHOC.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { j as pt } from "../../chunks/jsx-runtime.
|
|
1
|
+
import { j as pt } from "../../chunks/jsx-runtime.C7wFtzyj.js";
|
|
2
2
|
import R, { useRef as J, useState as N, useCallback as U, useEffect as w } from "react";
|
|
3
|
-
import { P as h } from "../../chunks/index.
|
|
3
|
+
import { P as h } from "../../chunks/index.Df3kt2LQ.js";
|
|
4
4
|
import dt from "../base/InputTextBase.js";
|
|
5
5
|
import { numberToPtBR as ct, formatOnlyNumbers as Q, numberToEnUS as ft } from "../number/format_number.js";
|
|
6
6
|
import { actionsOnPermissionDenied as kt, OPTIONS_ON_DENIED as P } from "../../permissionValidations.js";
|
|
@@ -1242,7 +1242,7 @@ class K {
|
|
|
1242
1242
|
var e;
|
|
1243
1243
|
return {
|
|
1244
1244
|
...t,
|
|
1245
|
-
_beforeTailState: (t == null || (e = t._beforeTailState) == null ? void 0 : e.masked) ||
|
|
1245
|
+
_beforeTailState: (t == null || (e = t._beforeTailState) == null ? void 0 : e.masked) || t?._beforeTailState
|
|
1246
1246
|
};
|
|
1247
1247
|
}
|
|
1248
1248
|
pad(t) {
|
|
@@ -1284,7 +1284,7 @@ class v extends _ {
|
|
|
1284
1284
|
super({
|
|
1285
1285
|
...v.DEFAULTS,
|
|
1286
1286
|
...t,
|
|
1287
|
-
definitions: Object.assign({}, K.DEFAULT_DEFINITIONS, t
|
|
1287
|
+
definitions: Object.assign({}, K.DEFAULT_DEFINITIONS, t?.definitions)
|
|
1288
1288
|
});
|
|
1289
1289
|
}
|
|
1290
1290
|
updateOptions(t) {
|
|
@@ -1783,7 +1783,7 @@ class q extends _ {
|
|
|
1783
1783
|
}
|
|
1784
1784
|
_applyDispatch(t, e, s) {
|
|
1785
1785
|
t === void 0 && (t = ""), e === void 0 && (e = {}), s === void 0 && (s = "");
|
|
1786
|
-
const i = e.tail && e._beforeTailState != null ? e._beforeTailState._value : this.value, n = this.rawInputValue, a = e.tail && e._beforeTailState != null ? e._beforeTailState._rawInputValue : n, r = n.slice(a.length), l = this.currentMask, p = new c(), k = l
|
|
1786
|
+
const i = e.tail && e._beforeTailState != null ? e._beforeTailState._value : this.value, n = this.rawInputValue, a = e.tail && e._beforeTailState != null ? e._beforeTailState._rawInputValue : n, r = n.slice(a.length), l = this.currentMask, p = new c(), k = l?.state;
|
|
1787
1787
|
return this.currentMask = this.doDispatch(t, {
|
|
1788
1788
|
...e
|
|
1789
1789
|
}, s), this.currentMask && (this.currentMask !== l ? (this.currentMask.reset(), a && (this.currentMask.append(a, {
|
|
@@ -2512,8 +2512,8 @@ function Tt(u, t) {
|
|
|
2512
2512
|
}), b(f.typedValue), M(f.unmaskedValue), g(f.value));
|
|
2513
2513
|
}, []), y = U((f) => {
|
|
2514
2514
|
const C = l.current;
|
|
2515
|
-
C && (x(), e
|
|
2516
|
-
}, [e]), Z = U((f) => l.current &&
|
|
2515
|
+
C && (x(), e?.(C.value, C, f));
|
|
2516
|
+
}, [e]), Z = U((f) => l.current && s?.(l.current.value, l.current, f), [s]);
|
|
2517
2517
|
return w(() => {
|
|
2518
2518
|
const {
|
|
2519
2519
|
value: f,
|
|
@@ -2536,7 +2536,7 @@ function Tt(u, t) {
|
|
|
2536
2536
|
const f = i.current;
|
|
2537
2537
|
if (!f || !(u != null && u.mask)) return V();
|
|
2538
2538
|
const C = l.current;
|
|
2539
|
-
C ? C
|
|
2539
|
+
C ? C?.updateOptions(u) : f && u != null && u.mask && (l.current = d(f, u), x(), n !== void 0 && g(n), a !== void 0 && M(a), r !== void 0 && b(r));
|
|
2540
2540
|
}, [u, V, y]), w(() => {
|
|
2541
2541
|
if (!l.current) return;
|
|
2542
2542
|
const f = l.current;
|
package/lib/inputs/mask/Cnpj.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { j as l } from "../../chunks/jsx-runtime.
|
|
1
|
+
import { j as l } from "../../chunks/jsx-runtime.C7wFtzyj.js";
|
|
2
2
|
import { useState as g, useEffect as u } from "react";
|
|
3
|
-
import { _ as C } from "../../chunks/lodash.
|
|
3
|
+
import { _ as C } from "../../chunks/lodash.CIAK_hAg.js";
|
|
4
4
|
import c from "./BaseMask.js";
|
|
5
5
|
import { CNPJValidation as i } from "./helpers.js";
|
|
6
6
|
const h = (e) => {
|
package/lib/inputs/mask/Cpf.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { j as l } from "../../chunks/jsx-runtime.
|
|
1
|
+
import { j as l } from "../../chunks/jsx-runtime.C7wFtzyj.js";
|
|
2
2
|
import { useState as g, useEffect as s, useMemo as u } from "react";
|
|
3
|
-
import { _ as c } from "../../chunks/lodash.
|
|
3
|
+
import { _ as c } from "../../chunks/lodash.CIAK_hAg.js";
|
|
4
4
|
import C from "./BaseMask.js";
|
|
5
5
|
import { CPFValidation as i } from "./helpers.js";
|
|
6
6
|
const h = (e) => {
|
package/lib/inputs/mask/Phone.js
CHANGED
|
@@ -1,41 +1,41 @@
|
|
|
1
1
|
import { IBaseMaskProps } from './types';
|
|
2
2
|
export declare const getMaskOptions: ({ isDateField, placeholderChar, min, max, lazy, pattern, radix, thousandsSeparator, mapToRadix, scale, normalizeZeros, padFractionalZeros, rightElements, leftElements, ...rest }: IBaseMaskProps) => {
|
|
3
|
-
value?: string | number
|
|
4
|
-
onBlur?: (
|
|
5
|
-
onKeyDown?: (
|
|
6
|
-
defaultValue?: string
|
|
7
|
-
isNumeric?: boolean
|
|
3
|
+
value?: string | number;
|
|
4
|
+
onBlur?: (e: import('../base/types').CustomInputEvent) => void;
|
|
5
|
+
onKeyDown?: (e: import('../base/types').CustomInputEvent | import('react').KeyboardEvent<Element>) => void;
|
|
6
|
+
defaultValue?: string;
|
|
7
|
+
isNumeric?: boolean;
|
|
8
8
|
blocks?: any;
|
|
9
|
-
handlerSetOnDenied?: (
|
|
10
|
-
onChange?: (
|
|
11
|
-
onComplete?: (
|
|
12
|
-
inputRef?: import('react').MutableRefObject<HTMLInputElement | HTMLTextAreaElement | null> | ((ref: HTMLInputElement | HTMLTextAreaElement | null) => void)
|
|
13
|
-
permissionAttr?: import('../../@types/PermissionAttr').PermissionAttr
|
|
14
|
-
errorMessages?: string[]
|
|
15
|
-
rounded?: boolean
|
|
16
|
-
textAlign?: import('../../@types/Align').TextAlign
|
|
17
|
-
customClassForInputContent?: string
|
|
18
|
-
label?: string
|
|
19
|
-
name?: string
|
|
20
|
-
customClassForLabel?: string
|
|
21
|
-
customClass?: string
|
|
22
|
-
gridLayout?: string
|
|
23
|
-
placeHolder?: string
|
|
24
|
-
readOnly?: boolean
|
|
25
|
-
labelUppercase?: boolean
|
|
26
|
-
disabled?: boolean
|
|
27
|
-
unmask?: boolean
|
|
28
|
-
onFocus?: (
|
|
29
|
-
required?: boolean
|
|
30
|
-
returnFormattedValueOnBlur?: boolean
|
|
31
|
-
returnFormattedValueOnKeyDown?: boolean
|
|
32
|
-
autoCompleteMask?: "left" | "right"
|
|
9
|
+
handlerSetOnDenied?: (onDeniedValue: import('../../@types/PermissionAttr').OnDenied) => void;
|
|
10
|
+
onChange?: (e: import('../base/types').CustomInputEvent, maskValue?: string, date?: string) => void;
|
|
11
|
+
onComplete?: (e: import('../base/types').CustomInputEvent, maskValue?: string, date?: string) => void;
|
|
12
|
+
inputRef?: import('react').MutableRefObject<HTMLInputElement | HTMLTextAreaElement | null> | ((ref: HTMLInputElement | HTMLTextAreaElement | null) => void);
|
|
13
|
+
permissionAttr?: import('../../@types/PermissionAttr').PermissionAttr;
|
|
14
|
+
errorMessages?: string[];
|
|
15
|
+
rounded?: boolean;
|
|
16
|
+
textAlign?: import('../../@types/Align').TextAlign;
|
|
17
|
+
customClassForInputContent?: string;
|
|
18
|
+
label?: string;
|
|
19
|
+
name?: string;
|
|
20
|
+
customClassForLabel?: string;
|
|
21
|
+
customClass?: string;
|
|
22
|
+
gridLayout?: string;
|
|
23
|
+
placeHolder?: string;
|
|
24
|
+
readOnly?: boolean;
|
|
25
|
+
labelUppercase?: boolean;
|
|
26
|
+
disabled?: boolean;
|
|
27
|
+
unmask?: boolean;
|
|
28
|
+
onFocus?: (e: import('../base/types').CustomInputEvent) => void;
|
|
29
|
+
required?: boolean;
|
|
30
|
+
returnFormattedValueOnBlur?: boolean;
|
|
31
|
+
returnFormattedValueOnKeyDown?: boolean;
|
|
32
|
+
autoCompleteMask?: "left" | "right";
|
|
33
33
|
definitions?: any;
|
|
34
34
|
mask?: any;
|
|
35
|
-
hint?: string | string[]
|
|
36
|
-
hintPosition?: "below" | "onLabelRight"
|
|
37
|
-
themePopover?: "
|
|
38
|
-
popoverAlign?: "
|
|
35
|
+
hint?: string | string[];
|
|
36
|
+
hintPosition?: "below" | "onLabelRight";
|
|
37
|
+
themePopover?: "light" | "dark";
|
|
38
|
+
popoverAlign?: "right" | "left";
|
|
39
39
|
placeholderChar: string;
|
|
40
40
|
min: any;
|
|
41
41
|
max: any;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { j as o } from "../../chunks/jsx-runtime.
|
|
1
|
+
import { j as o } from "../../chunks/jsx-runtime.C7wFtzyj.js";
|
|
2
2
|
import { Fragment as c } from "react";
|
|
3
3
|
import r from "../../buttons/Button.js";
|
|
4
4
|
import "../../icons/index.js";
|
|
5
5
|
import '../../assets/button.css';/* empty css */
|
|
6
6
|
import d from "../../list/index.js";
|
|
7
|
-
import { L as s } from "../../chunks/tabs.
|
|
7
|
+
import { L as s } from "../../chunks/tabs.D0L_nVfP.js";
|
|
8
8
|
const h = ({
|
|
9
9
|
disabled: t,
|
|
10
10
|
dropdownOpened: n,
|