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,220 +1,213 @@
|
|
|
1
|
-
import { j as
|
|
2
|
-
import { useState as
|
|
3
|
-
import { _ as
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import { keyCodes as
|
|
7
|
-
import { getFilteredSimpleDataCombo as
|
|
8
|
-
import
|
|
9
|
-
import { v as
|
|
10
|
-
const
|
|
1
|
+
import { j as W } from "../../../chunks/jsx-runtime.C7wFtzyj.js";
|
|
2
|
+
import { useState as m, useRef as R, useEffect as F } from "react";
|
|
3
|
+
import { _ as Y } from "../../../chunks/lodash.CIAK_hAg.js";
|
|
4
|
+
import we from "../Dropdown.js";
|
|
5
|
+
import ye from "../ActionButtons.js";
|
|
6
|
+
import { keyCodes as x } from "../../../internals/constants.js";
|
|
7
|
+
import { getFilteredSimpleDataCombo as Z } from "../helper.js";
|
|
8
|
+
import Se from "../../base/InputTextBase.js";
|
|
9
|
+
import { v as Re } from "../../../chunks/v1.Ds1rkxUj.js";
|
|
10
|
+
const Le = (i) => {
|
|
11
11
|
const {
|
|
12
|
-
value:
|
|
13
|
-
descriptionKey:
|
|
14
|
-
dataSource:
|
|
15
|
-
gridLayout:
|
|
16
|
-
onSearch:
|
|
17
|
-
disabled:
|
|
18
|
-
readOnly:
|
|
19
|
-
openDropdownOnFocus:
|
|
20
|
-
selectFirstOnEnter:
|
|
21
|
-
idKey:
|
|
22
|
-
remoteSearch:
|
|
23
|
-
name:
|
|
24
|
-
undigitable:
|
|
25
|
-
searchOnDropdown:
|
|
26
|
-
allOptions:
|
|
27
|
-
showClearButton:
|
|
28
|
-
searchNotFoundText:
|
|
29
|
-
rightElements:
|
|
30
|
-
customClassForWrapper:
|
|
31
|
-
customClassForInputContent:
|
|
32
|
-
customClassForLabel:
|
|
33
|
-
customClassForSideButtons:
|
|
34
|
-
} =
|
|
35
|
-
[
|
|
36
|
-
[
|
|
37
|
-
}, ...
|
|
38
|
-
|
|
39
|
-
},
|
|
40
|
-
var t, p;
|
|
12
|
+
value: C,
|
|
13
|
+
descriptionKey: t,
|
|
14
|
+
dataSource: D = [],
|
|
15
|
+
gridLayout: B,
|
|
16
|
+
onSearch: K,
|
|
17
|
+
disabled: ee,
|
|
18
|
+
readOnly: ne,
|
|
19
|
+
openDropdownOnFocus: te = !0,
|
|
20
|
+
selectFirstOnEnter: oe = !1,
|
|
21
|
+
idKey: g,
|
|
22
|
+
remoteSearch: k = !1,
|
|
23
|
+
name: N = "",
|
|
24
|
+
undigitable: I,
|
|
25
|
+
searchOnDropdown: $ = !1,
|
|
26
|
+
allOptions: a = void 0,
|
|
27
|
+
showClearButton: ie = !1,
|
|
28
|
+
searchNotFoundText: se,
|
|
29
|
+
rightElements: re = [],
|
|
30
|
+
customClassForWrapper: le,
|
|
31
|
+
customClassForInputContent: ce,
|
|
32
|
+
customClassForLabel: ue,
|
|
33
|
+
customClassForSideButtons: ae
|
|
34
|
+
} = i, r = typeof t == "string", o = a ? [{
|
|
35
|
+
[g]: a.idValue,
|
|
36
|
+
[r ? t : t(a.label)]: a.label
|
|
37
|
+
}, ...D] : D, [s, v] = m(o), [c, p] = m(null), [O, u] = m(""), [y, d] = m(!1), [de, L] = m(0), [fe, me] = m(!1), [S, pe] = m(), [A, P] = m(!1), E = R(null), _ = `select-component-${N}-${Re()}`, z = R(null), l = R(null), b = R(null), h = R(null), V = () => {
|
|
38
|
+
l.current && L(l.current.clientWidth);
|
|
39
|
+
}, q = (e) => {
|
|
41
40
|
const { target: n } = e;
|
|
42
|
-
n !==
|
|
43
|
-
},
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
}, U = (e) => ({
|
|
41
|
+
n !== l.current && !l.current?.contains(n) && !E.current?.contains(n) && d(!1);
|
|
42
|
+
}, M = (e) => {
|
|
43
|
+
const n = e.target, f = E.current?.parentElement?.id || "", Oe = !!document.getElementById(f)?.contains(n);
|
|
44
|
+
me(Oe);
|
|
45
|
+
}, J = (e) => ({
|
|
48
46
|
target: {
|
|
49
|
-
value: e ? e[
|
|
50
|
-
name:
|
|
47
|
+
value: e ? e[g] : void 0,
|
|
48
|
+
name: N
|
|
51
49
|
}
|
|
52
|
-
}),
|
|
53
|
-
if (
|
|
54
|
-
const n =
|
|
55
|
-
|
|
50
|
+
}), w = (e) => {
|
|
51
|
+
if (i.onChange) {
|
|
52
|
+
const n = J(e);
|
|
53
|
+
i.onChange(n);
|
|
56
54
|
}
|
|
57
|
-
},
|
|
55
|
+
}, U = (e) => {
|
|
58
56
|
let n = null;
|
|
59
|
-
if (
|
|
60
|
-
|
|
57
|
+
if (k)
|
|
58
|
+
K && K(e);
|
|
61
59
|
else {
|
|
62
|
-
const
|
|
60
|
+
const f = Z({
|
|
63
61
|
inputText: e,
|
|
64
|
-
descriptionKey:
|
|
65
|
-
dataSource:
|
|
62
|
+
descriptionKey: t,
|
|
63
|
+
dataSource: o
|
|
66
64
|
});
|
|
67
|
-
|
|
65
|
+
f && f.length > 0 && (n = f[0], p(n)), v(f);
|
|
68
66
|
}
|
|
69
|
-
|
|
70
|
-
},
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
t(S(e));
|
|
67
|
+
d(!0), u(e), n && (r && e === n[t] || !r && e === t(n)) && w(n);
|
|
68
|
+
}, G = (e) => {
|
|
69
|
+
e && (p(e), u(r ? e[t] : t(e)), new Promise((n) => {
|
|
70
|
+
n(w(e));
|
|
74
71
|
}).finally(() => {
|
|
75
|
-
|
|
76
|
-
}),
|
|
77
|
-
},
|
|
78
|
-
|
|
79
|
-
},
|
|
80
|
-
if (
|
|
81
|
-
const e =
|
|
82
|
-
|
|
72
|
+
h && h.current && h.current.focus(), d(!1);
|
|
73
|
+
}), E.current?.focus());
|
|
74
|
+
}, he = () => {
|
|
75
|
+
d((e) => !e), l.current && L(l.current.clientWidth);
|
|
76
|
+
}, T = () => {
|
|
77
|
+
if (te && d(!0), l) {
|
|
78
|
+
const e = l.current ? l.current.clientWidth : 0;
|
|
79
|
+
L(e);
|
|
83
80
|
}
|
|
84
|
-
},
|
|
85
|
-
if (
|
|
86
|
-
const e =
|
|
87
|
-
|
|
88
|
-
n(
|
|
81
|
+
}, H = () => {
|
|
82
|
+
if (i.onBlur) {
|
|
83
|
+
const e = J(c);
|
|
84
|
+
i.onBlur(e), (c && r && O !== c[t] || !r && O !== t(c)) && (p(null), u(O), new Promise((n) => {
|
|
85
|
+
n(w(null));
|
|
89
86
|
}).finally(() => {
|
|
90
|
-
|
|
87
|
+
w();
|
|
91
88
|
}));
|
|
92
89
|
}
|
|
93
|
-
|
|
94
|
-
},
|
|
95
|
-
var n;
|
|
90
|
+
fe || (d(!1), P(!1), v(o));
|
|
91
|
+
}, Q = (e) => {
|
|
96
92
|
if (e.keyCode) {
|
|
97
|
-
if (e.keyCode ===
|
|
98
|
-
|
|
99
|
-
else if ([
|
|
100
|
-
|
|
101
|
-
let
|
|
102
|
-
e.keyCode ===
|
|
93
|
+
if (e.keyCode === x.ENTER && c && y)
|
|
94
|
+
e.preventDefault?.(), G(c);
|
|
95
|
+
else if ([x.ARROW_UP, x.ARROW_DOWN].includes(e.keyCode)) {
|
|
96
|
+
y || d(!0);
|
|
97
|
+
let n = s.length > 0 ? s.findIndex((f) => c && f[g] === c[g]) : 0;
|
|
98
|
+
e.keyCode === x.ARROW_DOWN ? n = s && n === s.length - 1 ? 0 : n + 1 : n = s && n === 0 ? s?.length - 1 : n - 1, p(s[n]), r && u(s[n][t]), r || u(t(s[n]));
|
|
103
99
|
}
|
|
104
100
|
}
|
|
105
|
-
|
|
106
|
-
},
|
|
101
|
+
A || P(!0);
|
|
102
|
+
}, Ce = () => {
|
|
107
103
|
new Promise((e) => {
|
|
108
|
-
e(
|
|
104
|
+
e(w(null));
|
|
109
105
|
}).finally(() => {
|
|
110
|
-
|
|
106
|
+
p(null), u(""), w(), h && h.current && h.current.focus(), d(!1);
|
|
111
107
|
});
|
|
112
|
-
},
|
|
113
|
-
|
|
114
|
-
},
|
|
115
|
-
return
|
|
116
|
-
window.removeEventListener("resize",
|
|
117
|
-
}), []),
|
|
118
|
-
if (
|
|
119
|
-
const e = document.querySelector(`#${
|
|
120
|
-
|
|
108
|
+
}, ge = (e) => {
|
|
109
|
+
pe(e);
|
|
110
|
+
}, X = () => ee || S && (S.disabled || S.hideContent), j = () => ne || S && S.readOnly;
|
|
111
|
+
return F(() => (window.addEventListener("resize", V), document.addEventListener("click", q), document.addEventListener("mousemove", M), () => {
|
|
112
|
+
window.removeEventListener("resize", V), document.removeEventListener("click", q), document.removeEventListener("mousemove", M);
|
|
113
|
+
}), []), F(() => {
|
|
114
|
+
if (B) {
|
|
115
|
+
const e = document.querySelector(`#${_}>.-withinput.grid-container`);
|
|
116
|
+
b.current !== e && e && (b.current = e);
|
|
121
117
|
}
|
|
122
|
-
}, [
|
|
123
|
-
if (
|
|
118
|
+
}, [B]), F(() => {
|
|
119
|
+
if (o.length > 0) {
|
|
124
120
|
let e = null;
|
|
125
|
-
|
|
126
|
-
var t;
|
|
127
|
-
return (d || d === 0) && ((t = n[O]) == null ? void 0 : t.toString().toLowerCase()) === (d == null ? void 0 : d.toString().toLowerCase());
|
|
128
|
-
}) : i.length > 0 && re && (e = i[0]), g(e), a(l ? e ? e[o] : "" : e ? o(e) : "");
|
|
121
|
+
C || C === 0 ? e = o.find((n) => (C || C === 0) && n[g]?.toString().toLowerCase() === C?.toString().toLowerCase()) : o.length > 0 && oe && (e = o[0]), p(e), u(r ? e ? e[t] : "" : e ? t(e) : "");
|
|
129
122
|
}
|
|
130
|
-
}, [
|
|
131
|
-
if (!
|
|
132
|
-
const e =
|
|
133
|
-
inputText:
|
|
134
|
-
dataSource:
|
|
135
|
-
descriptionKey:
|
|
123
|
+
}, [o.length, C]), F(() => {
|
|
124
|
+
if (!Y.isEqual(s, o)) {
|
|
125
|
+
const e = I || k || !A ? o : Z({
|
|
126
|
+
inputText: O,
|
|
127
|
+
dataSource: o,
|
|
128
|
+
descriptionKey: t
|
|
136
129
|
});
|
|
137
|
-
if (
|
|
138
|
-
const n =
|
|
139
|
-
|
|
130
|
+
if (v(e), o.length > 0 && k) {
|
|
131
|
+
const n = o[0];
|
|
132
|
+
p(n);
|
|
140
133
|
}
|
|
141
134
|
}
|
|
142
|
-
|
|
135
|
+
a && v([
|
|
143
136
|
{
|
|
144
|
-
[
|
|
145
|
-
[
|
|
137
|
+
[g]: a.idValue,
|
|
138
|
+
[r ? t : t(a.label)]: a.label
|
|
146
139
|
},
|
|
147
|
-
...
|
|
140
|
+
...D
|
|
148
141
|
]);
|
|
149
|
-
}, [JSON.stringify(
|
|
142
|
+
}, [JSON.stringify(o)]), /* @__PURE__ */ W.jsxs(
|
|
150
143
|
"span",
|
|
151
144
|
{
|
|
152
|
-
id:
|
|
153
|
-
ref:
|
|
145
|
+
id: _,
|
|
146
|
+
ref: z,
|
|
154
147
|
className: "select-component",
|
|
155
148
|
children: [
|
|
156
|
-
/* @__PURE__ */
|
|
157
|
-
|
|
149
|
+
/* @__PURE__ */ W.jsx(
|
|
150
|
+
Se,
|
|
158
151
|
{
|
|
159
|
-
...
|
|
152
|
+
...i,
|
|
160
153
|
inputRef: (e) => {
|
|
161
|
-
|
|
154
|
+
i.inputRef && (Y.isFunction(i.inputRef) ? i.inputRef(e) : i.inputRef.current = e), h.current = e;
|
|
162
155
|
},
|
|
163
156
|
autoComplete: "off",
|
|
164
|
-
readOnly:
|
|
165
|
-
value:
|
|
166
|
-
onFocus:
|
|
167
|
-
onBlur:
|
|
157
|
+
readOnly: I || j(),
|
|
158
|
+
value: O,
|
|
159
|
+
onFocus: T,
|
|
160
|
+
onBlur: H,
|
|
168
161
|
onChange: (e) => {
|
|
169
|
-
e &&
|
|
162
|
+
e && U(e.target.value);
|
|
170
163
|
},
|
|
171
|
-
onClick:
|
|
172
|
-
onKeyDown:
|
|
173
|
-
customClassForLabel:
|
|
174
|
-
customClassForWrapper: `selectwrapper ${(
|
|
175
|
-
customClassForInputContent: `multiselect ${
|
|
164
|
+
onClick: T,
|
|
165
|
+
onKeyDown: Q,
|
|
166
|
+
customClassForLabel: ue,
|
|
167
|
+
customClassForWrapper: `selectwrapper ${(I || $ || j()) && " -undigitable"} ${le}`,
|
|
168
|
+
customClassForInputContent: `multiselect ${ce}`,
|
|
176
169
|
inputBaseRef: (e) => {
|
|
177
|
-
|
|
170
|
+
l.current = e;
|
|
178
171
|
},
|
|
179
|
-
handlerSetOnDenied: (e) =>
|
|
172
|
+
handlerSetOnDenied: (e) => ge(e),
|
|
180
173
|
rightElements: [
|
|
181
|
-
...
|
|
182
|
-
/* @__PURE__ */
|
|
183
|
-
|
|
174
|
+
...re,
|
|
175
|
+
/* @__PURE__ */ W.jsx(
|
|
176
|
+
ye,
|
|
184
177
|
{
|
|
185
|
-
disabled:
|
|
186
|
-
showClearButton:
|
|
187
|
-
dropDownOpened:
|
|
188
|
-
handlerClear: () =>
|
|
189
|
-
handlerOpenClose:
|
|
190
|
-
customClassForSideButtons:
|
|
178
|
+
disabled: X() || j(),
|
|
179
|
+
showClearButton: ie,
|
|
180
|
+
dropDownOpened: y,
|
|
181
|
+
handlerClear: () => X() ? null : Ce(),
|
|
182
|
+
handlerOpenClose: he,
|
|
183
|
+
customClassForSideButtons: ae
|
|
191
184
|
},
|
|
192
185
|
"action-buttons-simpleselect"
|
|
193
186
|
)
|
|
194
187
|
]
|
|
195
188
|
}
|
|
196
189
|
),
|
|
197
|
-
|
|
198
|
-
|
|
190
|
+
y && /* @__PURE__ */ W.jsx(
|
|
191
|
+
we,
|
|
199
192
|
{
|
|
200
|
-
...
|
|
201
|
-
opened:
|
|
202
|
-
selected:
|
|
203
|
-
inputValue:
|
|
204
|
-
selectFieldRef:
|
|
205
|
-
dropdownRef:
|
|
206
|
-
searchOnDropdown:
|
|
207
|
-
gridWrapperStyle:
|
|
193
|
+
...i,
|
|
194
|
+
opened: y,
|
|
195
|
+
selected: c,
|
|
196
|
+
inputValue: O,
|
|
197
|
+
selectFieldRef: z,
|
|
198
|
+
dropdownRef: E,
|
|
199
|
+
searchOnDropdown: $,
|
|
200
|
+
gridWrapperStyle: B && b.current ? window.getComputedStyle(b.current) : void 0,
|
|
208
201
|
handleOnSelect: (e) => {
|
|
209
|
-
e &&
|
|
202
|
+
e && G(e);
|
|
210
203
|
},
|
|
211
|
-
handleOnFilter: (e) =>
|
|
212
|
-
handleOnKeydown:
|
|
213
|
-
handleOnBlur: () =>
|
|
214
|
-
handleOnFocus:
|
|
204
|
+
handleOnFilter: (e) => U(e),
|
|
205
|
+
handleOnKeydown: Q,
|
|
206
|
+
handleOnBlur: () => H,
|
|
207
|
+
handleOnFocus: T,
|
|
215
208
|
dataCombo: s,
|
|
216
|
-
dropdownWidth:
|
|
217
|
-
searchNotFoundText:
|
|
209
|
+
dropdownWidth: de || 0,
|
|
210
|
+
searchNotFoundText: se
|
|
218
211
|
}
|
|
219
212
|
)
|
|
220
213
|
]
|
|
@@ -222,5 +215,5 @@ const je = (r) => {
|
|
|
222
215
|
);
|
|
223
216
|
};
|
|
224
217
|
export {
|
|
225
|
-
|
|
218
|
+
Le as default
|
|
226
219
|
};
|
package/lib/inputs/text/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { j as d } from "../chunks/jsx-runtime.
|
|
1
|
+
import { j as d } from "../chunks/jsx-runtime.C7wFtzyj.js";
|
|
2
2
|
import H, { useState as f, useRef as O, useEffect as v } from "react";
|
|
3
3
|
import A from "../tooltip/index.js";
|
|
4
4
|
const V = 40, E = ({ tooltip: n }) => n, P = H.createContext({}), _ = ({ displayName: n, name: h }) => n || h || "Component", q = (n) => {
|
package/lib/labels/InfoLabel.js
CHANGED
package/lib/list/Header.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { j as s } from "../chunks/jsx-runtime.
|
|
1
|
+
import { j as s } from "../chunks/jsx-runtime.C7wFtzyj.js";
|
|
2
2
|
const i = ({ title: e, children: a, style: t, customClass: l }) => /* @__PURE__ */ s.jsxs("li", { className: `list-header ${l}`, style: t, children: [
|
|
3
3
|
/* @__PURE__ */ s.jsx("h1", { className: "title", children: e }),
|
|
4
4
|
a
|
package/lib/list/Item.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import "../chunks/jsx-runtime.
|
|
1
|
+
import "../chunks/jsx-runtime.C7wFtzyj.js";
|
|
2
2
|
import "react";
|
|
3
3
|
import "react-router-dom";
|
|
4
4
|
import "../icons/index.js";
|
|
5
|
-
import { L as s } from "../chunks/tabs.
|
|
5
|
+
import { L as s } from "../chunks/tabs.D0L_nVfP.js";
|
|
6
6
|
import "./helpers.js";
|
|
7
7
|
import "../dropdown/withDropdown.js";
|
|
8
8
|
import "../internals/constants.js";
|
package/lib/list/Separator.js
CHANGED
package/lib/list/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { j as l } from "../chunks/jsx-runtime.
|
|
1
|
+
import { j as l } from "../chunks/jsx-runtime.C7wFtzyj.js";
|
|
2
2
|
import { useRef as R, useState as h, useEffect as f, Fragment as S } from "react";
|
|
3
3
|
import { default as q } from "./Header.js";
|
|
4
|
-
import { L as P } from "../chunks/tabs.
|
|
4
|
+
import { L as P } from "../chunks/tabs.D0L_nVfP.js";
|
|
5
5
|
import { keyCodes as m } from "../internals/constants.js";
|
|
6
6
|
import { default as J } from "./Separator.js";
|
|
7
7
|
import { LIST_ITEMS_TYPES as O, ListContext as b } from "./helpers.js";
|
|
@@ -1,30 +1,30 @@
|
|
|
1
|
-
import { j as
|
|
1
|
+
import { j as o } from "../../chunks/jsx-runtime.C7wFtzyj.js";
|
|
2
2
|
import { useContext as t } from "react";
|
|
3
|
-
import { _ as p } from "../../chunks/lodash.
|
|
3
|
+
import { _ as p } from "../../chunks/lodash.CIAK_hAg.js";
|
|
4
4
|
import u from "../../icons/index.js";
|
|
5
5
|
import { WithDropdownContext as f } from "../../dropdown/withDropdown.js";
|
|
6
|
-
import
|
|
6
|
+
import x from "../../buttons/Button.js";
|
|
7
7
|
import '../../assets/button.css';/* empty css */
|
|
8
|
-
import
|
|
8
|
+
import h from "./helpers.js";
|
|
9
9
|
const b = ({
|
|
10
10
|
title: n,
|
|
11
11
|
url: m,
|
|
12
12
|
iconName: a,
|
|
13
13
|
iconColor: i = "gray",
|
|
14
14
|
iconSize: l = 24,
|
|
15
|
-
dropdownMenu:
|
|
16
|
-
onClick:
|
|
15
|
+
dropdownMenu: s,
|
|
16
|
+
onClick: e
|
|
17
17
|
}) => {
|
|
18
|
-
const { customClassMenuItem: c } = t(
|
|
19
|
-
if (
|
|
20
|
-
|
|
18
|
+
const { customClassMenuItem: c } = t(h), r = t(f), d = () => {
|
|
19
|
+
if (e) {
|
|
20
|
+
e(r?.handleDropdownClose);
|
|
21
21
|
return;
|
|
22
22
|
}
|
|
23
|
-
|
|
23
|
+
r && r.handleDropdownClose();
|
|
24
24
|
};
|
|
25
|
-
return /* @__PURE__ */
|
|
26
|
-
!p.isEmpty(
|
|
27
|
-
|
|
25
|
+
return /* @__PURE__ */ o.jsx("div", { className: "floatmenuitem", children: /* @__PURE__ */ o.jsxs("div", { className: `${c} -items`, children: [
|
|
26
|
+
!p.isEmpty(s) && !e && /* @__PURE__ */ o.jsx(
|
|
27
|
+
x,
|
|
28
28
|
{
|
|
29
29
|
customClass: "floatmenudropdown",
|
|
30
30
|
iconName: "more1",
|
|
@@ -33,21 +33,21 @@ const b = ({
|
|
|
33
33
|
boxShadow: !1,
|
|
34
34
|
dropdown: !0,
|
|
35
35
|
showIconDropdown: !1,
|
|
36
|
-
children:
|
|
36
|
+
children: s
|
|
37
37
|
}
|
|
38
38
|
),
|
|
39
|
-
/* @__PURE__ */
|
|
39
|
+
/* @__PURE__ */ o.jsxs(
|
|
40
40
|
"a",
|
|
41
41
|
{
|
|
42
42
|
className: "floatmenulink",
|
|
43
43
|
target: "_blank",
|
|
44
44
|
onClick: d,
|
|
45
45
|
href: m,
|
|
46
|
-
style: { cursor:
|
|
46
|
+
style: { cursor: e ? "pointer" : void 0 },
|
|
47
47
|
rel: "noreferrer",
|
|
48
48
|
children: [
|
|
49
|
-
/* @__PURE__ */
|
|
50
|
-
/* @__PURE__ */
|
|
49
|
+
/* @__PURE__ */ o.jsx("span", { className: "iconcontainer", children: /* @__PURE__ */ o.jsx(u, { name: a, size: l, color: i, customClass: "iconmenu" }) }),
|
|
50
|
+
/* @__PURE__ */ o.jsx("span", { className: "nameitem", children: n })
|
|
51
51
|
]
|
|
52
52
|
}
|
|
53
53
|
)
|
|
@@ -9,21 +9,21 @@ declare function SubMenuContainer({ title, customClass, handlerGoBack, skeletoni
|
|
|
9
9
|
}): import("react/jsx-runtime").JSX.Element;
|
|
10
10
|
declare namespace SubMenuContainer {
|
|
11
11
|
namespace propTypes {
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
12
|
+
let children: any;
|
|
13
|
+
let handlerGoBack: any;
|
|
14
|
+
let title: any;
|
|
15
|
+
let customClass: any;
|
|
16
|
+
let skeletonize: any;
|
|
17
|
+
let skeletonQtty: any;
|
|
18
18
|
}
|
|
19
19
|
namespace defaultProps {
|
|
20
|
-
|
|
20
|
+
let title_1: undefined;
|
|
21
21
|
export { title_1 as title };
|
|
22
|
-
|
|
22
|
+
let customClass_1: undefined;
|
|
23
23
|
export { customClass_1 as customClass };
|
|
24
|
-
|
|
24
|
+
let skeletonize_1: boolean;
|
|
25
25
|
export { skeletonize_1 as skeletonize };
|
|
26
|
-
|
|
26
|
+
let skeletonQtty_1: number;
|
|
27
27
|
export { skeletonQtty_1 as skeletonQtty };
|
|
28
28
|
}
|
|
29
29
|
}
|
package/lib/menus/float/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { j as e } from "../../chunks/jsx-runtime.
|
|
1
|
+
import { j as e } from "../../chunks/jsx-runtime.C7wFtzyj.js";
|
|
2
2
|
import { default as E } from "./MenuItem.js";
|
|
3
3
|
import { useEffect as f } from "react";
|
|
4
|
-
import { P as i } from "../../chunks/index.
|
|
4
|
+
import { P as i } from "../../chunks/index.Df3kt2LQ.js";
|
|
5
5
|
import m from "../../icons/index.js";
|
|
6
6
|
import x from "../../skeleton/index.js";
|
|
7
7
|
import h from "../../skeleton/SkeletonContainer.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { j as e } from "../../chunks/jsx-runtime.
|
|
1
|
+
import { j as e } from "../../chunks/jsx-runtime.C7wFtzyj.js";
|
|
2
2
|
import t from "../../icons/index.js";
|
|
3
3
|
const m = ({ onExpandMenu: o, expandMenuCustomClass: n, iconName: s }) => /* @__PURE__ */ e.jsx(
|
|
4
4
|
"div",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { j as m } from "../../chunks/jsx-runtime.
|
|
1
|
+
import { j as m } from "../../chunks/jsx-runtime.C7wFtzyj.js";
|
|
2
2
|
import { Link as s } from "react-router-dom";
|
|
3
3
|
import e from "../../internals/withTooltip.js";
|
|
4
4
|
const f = ({ url: o, children: t, targetRef: i, disabled: n }) => o && !n ? /* @__PURE__ */ m.jsx(
|