linear-react-components-ui 1.1.26-beta-1 → 1.1.26-beta.10
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/AlertContainer.js +8 -2
- package/lib/alerts/AlertProvider.js +11 -5
- package/lib/alerts/BaseAlert.js +10 -8
- package/lib/alerts/Message.js +91 -64
- package/lib/alerts/withAlert.js +10 -6
- 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 +29 -51
- package/lib/badge/index.js +25 -23
- package/lib/buttons/ActivateButton.js +9 -4
- package/lib/buttons/AddButton.js +12 -5
- package/lib/buttons/Button.js +16 -5
- package/lib/buttons/ButtonGroups.js +10 -3
- package/lib/buttons/CancelButton.js +14 -4
- package/lib/buttons/DangerButton.js +15 -4
- package/lib/buttons/DefaultButton.js +76 -111
- package/lib/buttons/DestroyButton.js +21 -5
- package/lib/buttons/EditButton.js +9 -4
- package/lib/buttons/InactivateButton.js +9 -4
- package/lib/buttons/InfoButton.js +15 -4
- package/lib/buttons/PrimaryButton.js +15 -4
- package/lib/buttons/RestoreButton.js +9 -4
- package/lib/buttons/SaveButton.js +14 -4
- package/lib/buttons/SuccessButton.js +15 -4
- package/lib/buttons/WarningButton.js +15 -4
- package/lib/buttons/button_container/index.js +21 -16
- package/lib/buttons/split_button/index.js +53 -55
- package/lib/calendar/DangerCalendar.js +18 -4
- package/lib/calendar/InfoCalendar.js +18 -4
- package/lib/calendar/PrimaryCalendar.js +18 -4
- package/lib/calendar/SuccessCalendar.js +18 -4
- package/lib/calendar/WarningCalendar.js +18 -4
- package/lib/calendar/base/Day.js +32 -22
- package/lib/calendar/base/Month.js +24 -21
- package/lib/calendar/base/Week.js +20 -19
- package/lib/calendar/base/helpers.js +11 -19
- package/lib/calendar/base/index.js +129 -97
- package/lib/checkbox/index.js +6 -5
- package/lib/chunks/compiler-runtime.Cu50tn6L.js +54 -0
- package/lib/chunks/{index.Da--18GT.js → index.Df3kt2LQ.js} +179 -181
- package/lib/chunks/index.aw0XaUkg.js +266 -0
- package/lib/chunks/jsx-runtime.D1SHvdVE.js +282 -0
- package/lib/chunks/lodash.CIAK_hAg.js +3684 -0
- package/lib/chunks/moment.DMLRxgRE.js +2589 -0
- package/lib/chunks/tabs.BvKfeA6Y.js +244 -0
- package/lib/chunks/v1.Ds1rkxUj.js +49 -0
- package/lib/dialog/Alert.js +18 -17
- package/lib/dialog/Custom.js +42 -28
- package/lib/dialog/Error.js +18 -17
- package/lib/dialog/Information.js +18 -17
- package/lib/dialog/Question.js +43 -59
- package/lib/dialog/Warning.js +18 -17
- package/lib/dialog/base/Content.js +13 -4
- package/lib/dialog/base/Footer.js +8 -3
- package/lib/dialog/base/Header.js +4 -3
- package/lib/dialog/base/index.js +5 -4
- package/lib/dialog/form/index.js +5 -4
- package/lib/dialog/index.js +1 -1
- package/lib/dialog/wizard/index.js +11 -10
- package/lib/dialog/wizard/progressbar.js +96 -3
- package/lib/dialog/wizard/step.js +4 -3
- package/lib/dialog/wizard/useWizard.js +42 -29
- package/lib/drawer/Content.js +15 -8
- package/lib/drawer/Drawer.js +38 -35
- package/lib/drawer/Header.js +53 -40
- package/lib/drawer/helpers.js +2 -2
- package/lib/dropdown/Popup.js +4 -2
- package/lib/dropdown/withDropdown.js +75 -50
- package/lib/fieldset/index.js +66 -47
- package/lib/form/Field.js +88 -62
- package/lib/form/FieldArray.js +18 -39
- package/lib/form/FieldNumber.js +42 -38
- package/lib/form/FieldPeriod.js +90 -59
- package/lib/form/helpers.js +14 -11
- package/lib/form/index.js +88 -100
- package/lib/form/withFieldHOC.js +57 -48
- package/lib/form/withFormSecurity.js +15 -18
- package/lib/gridlayout/GridCol.js +21 -20
- package/lib/gridlayout/GridRow.js +22 -20
- package/lib/hint/helpers.js +6 -2
- package/lib/hint/index.js +27 -25
- package/lib/icons/helper.js +142 -569
- package/lib/icons/index.js +62 -57
- package/lib/index.js +20 -19
- package/lib/inputs/base/InputTextBase.js +121 -207
- package/lib/inputs/base/Label.js +27 -29
- package/lib/inputs/base/helpers.d.ts +3 -3
- package/lib/inputs/base/helpers.js +4 -2
- package/lib/inputs/color/index.js +52 -73
- package/lib/inputs/date/Dialog.js +15 -16
- package/lib/inputs/date/Dropdown.js +16 -14
- package/lib/inputs/date/helpers.js +7 -7
- package/lib/inputs/date/index.js +101 -147
- package/lib/inputs/errorMessage/index.js +21 -13
- package/lib/inputs/file/DefaultFile.js +64 -67
- package/lib/inputs/file/DragDropFile.js +79 -135
- package/lib/inputs/file/File.d.ts +1 -1
- package/lib/inputs/file/File.js +24 -39
- package/lib/inputs/file/FileButtonSettings.js +20 -17
- package/lib/inputs/inputHOC.js +38 -20
- package/lib/inputs/mask/BaseMask.js +51 -30
- package/lib/inputs/mask/Cnpj.js +42 -36
- package/lib/inputs/mask/Cpf.js +45 -33
- package/lib/inputs/mask/Phone.js +10 -6
- package/lib/inputs/mask/ZipCode.js +9 -4
- package/lib/inputs/mask/helpers.d.ts +33 -33
- package/lib/inputs/mask/helpers.js +44 -44
- package/lib/inputs/multiSelect/ActionButtons.js +35 -46
- package/lib/inputs/multiSelect/Dropdown.js +94 -133
- package/lib/inputs/multiSelect/helper.js +4 -7
- package/lib/inputs/multiSelect/index.js +167 -127
- package/lib/inputs/number/BaseNumber.js +43 -31
- package/lib/inputs/number/Currency.js +19 -12
- package/lib/inputs/number/Decimal.js +9 -4
- package/lib/inputs/number/index.js +31 -35
- package/lib/inputs/period/Dialog.js +16 -16
- package/lib/inputs/period/Dropdown.js +15 -15
- package/lib/inputs/period/PeriodList.js +41 -27
- package/lib/inputs/period/helper.js +8 -4
- package/lib/inputs/period/index.js +192 -330
- package/lib/inputs/search/index.js +95 -71
- package/lib/inputs/select/ActionButtons.js +24 -45
- package/lib/inputs/select/Dropdown.js +61 -110
- package/lib/inputs/select/helper.d.ts +1 -1
- package/lib/inputs/select/helper.js +43 -45
- package/lib/inputs/select/index.js +23 -25
- package/lib/inputs/select/multiple/Selecteds.js +23 -19
- package/lib/inputs/select/multiple/index.js +106 -176
- package/lib/inputs/select/simple/index.js +126 -196
- package/lib/inputs/text/index.js +9 -4
- package/lib/inputs/textarea/index.js +13 -15
- package/lib/internals/withTooltip.js +114 -67
- package/lib/labelMessages/index.js +50 -45
- package/lib/labels/DangerLabel.js +18 -4
- package/lib/labels/DefaultLabel.js +53 -39
- package/lib/labels/InfoLabel.js +18 -4
- package/lib/labels/PrimaryLabel.js +18 -4
- package/lib/labels/SuccessLabel.js +18 -4
- package/lib/labels/WarningLabel.js +18 -4
- package/lib/labels/label_container/index.js +15 -9
- package/lib/list/Header.js +18 -6
- package/lib/list/Item.js +5 -4
- package/lib/list/Separator.js +8 -3
- package/lib/list/helpers.js +2 -2
- package/lib/list/index.js +21 -18
- package/lib/menus/float/MenuItem.js +49 -52
- package/lib/menus/float/SubMenuContainer.d.ts +10 -10
- package/lib/menus/float/index.js +102 -81
- package/lib/menus/sidenav/ExpandMenu.js +17 -15
- package/lib/menus/sidenav/MenuLink.js +21 -14
- package/lib/menus/sidenav/NavMenuGroup.js +19 -14
- package/lib/menus/sidenav/NavMenuItem.js +131 -111
- package/lib/menus/sidenav/NavSubMenuItem.js +36 -20
- package/lib/menus/sidenav/helpers.js +4 -4
- package/lib/menus/sidenav/index.js +145 -123
- package/lib/menus/sidenav/popup_menu_search/EmptyList.js +21 -17
- package/lib/menus/sidenav/popup_menu_search/index.js +17 -51
- package/lib/noPermission/index.js +13 -8
- package/lib/panel/Content.js +49 -40
- package/lib/panel/DangerPanel.js +10 -5
- package/lib/panel/Default.js +62 -36
- package/lib/panel/Header.js +53 -37
- package/lib/panel/InfoPanel.js +10 -5
- package/lib/panel/PrimaryPanel.js +10 -5
- package/lib/panel/SuccessPanel.js +10 -5
- package/lib/panel/ToolBar.js +17 -4
- package/lib/panel/WarningPanel.js +10 -5
- package/lib/panel/helpers.js +8 -5
- package/lib/permissionValidations.js +15 -11
- package/lib/popover/PopoverText.js +12 -5
- package/lib/popover/PopoverTitle.js +10 -3
- package/lib/popover/index.js +36 -56
- package/lib/progress/Bar.js +43 -34
- package/lib/progress/index.js +23 -18
- package/lib/radio/index.js +105 -89
- package/lib/shortcuts/index.js +20 -7
- package/lib/skeleton/SkeletonContainer.js +16 -6
- package/lib/skeleton/index.js +42 -18
- package/lib/spinner/SpinnerLoading.js +53 -16
- package/lib/spinner/index.js +47 -37
- package/lib/split/Split.js +83 -79
- package/lib/split/SplitSide.js +24 -16
- package/lib/table/Body.js +36 -49
- package/lib/table/Header.js +45 -35
- package/lib/table/HeaderColumn.js +40 -27
- package/lib/table/Row.js +47 -48
- package/lib/table/RowColumn.js +50 -38
- package/lib/table/helpers.js +3 -1
- package/lib/table/index.js +101 -104
- package/lib/tabs/DropdownTabs.js +64 -61
- package/lib/tabs/Menu.js +35 -49
- package/lib/tabs/MenuTabs.js +59 -84
- package/lib/tabs/Panel.js +57 -47
- package/lib/tabs/context.js +36 -40
- package/lib/tabs/index.js +69 -64
- package/lib/tabs/tabHelpers.js +10 -8
- package/lib/textContent/index.js +30 -32
- package/lib/toolbar/ButtonBar.js +62 -58
- package/lib/toolbar/LabelBar.js +46 -38
- package/lib/toolbar/Separator.js +8 -3
- package/lib/toolbar/ToolBarGroup.js +14 -3
- package/lib/toolbar/index.js +35 -29
- package/lib/tooltip/index.js +24 -24
- package/lib/treetable/Body.js +26 -27
- package/lib/treetable/Header.js +23 -19
- package/lib/treetable/Row.js +210 -147
- package/lib/treetable/helpers.d.ts +4 -5
- package/lib/treetable/helpers.js +6 -14
- package/lib/treetable/index.js +25 -15
- package/lib/treeview/Header.js +13 -5
- package/lib/treeview/Node.js +198 -175
- package/lib/treeview/index.js +257 -174
- package/lib/uitour/index.js +167 -166
- package/package.json +32 -43
- package/lib/chunks/index.CmrLK9Qe.js +0 -675
- package/lib/chunks/index.D5f6Ow9V.js +0 -89
- package/lib/chunks/index.yztgndLc.js +0 -206
- package/lib/chunks/jsx-runtime.CYK1ROHF.js +0 -445
- package/lib/chunks/tabs.Cvj2MJH6.js +0 -246
- package/lib/chunks/v1.CDXKvGzE.js +0 -41
- /package/lib/assets/{index29.css → progressbar.css} +0 -0
package/lib/treetable/Row.js
CHANGED
|
@@ -1,157 +1,220 @@
|
|
|
1
|
-
import { j as
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
1
|
+
import { j as t } from "../chunks/jsx-runtime.D1SHvdVE.js";
|
|
2
|
+
import { c as Ve } from "../chunks/compiler-runtime.Cu50tn6L.js";
|
|
3
|
+
import Pe, { useContext as We, useState as M, useRef as Xe, useEffect as me, Fragment as Le, createElement as Ye } from "react";
|
|
4
|
+
import { _ as qe } from "../chunks/lodash.CIAK_hAg.js";
|
|
5
|
+
import He from "../icons/index.js";
|
|
6
|
+
import Fe from "../spinner/SpinnerLoading.js";
|
|
6
7
|
import "../table/helpers.js";
|
|
7
|
-
import
|
|
8
|
+
import Ie from "../table/Row.js";
|
|
8
9
|
import '../assets/table.css';import '../assets/skeleton.css';import '../assets/gridlayout.css';/* empty css */
|
|
9
10
|
/* empty css */
|
|
10
|
-
import
|
|
11
|
+
import ze from "../table/RowColumn.js";
|
|
11
12
|
/* empty css */
|
|
12
|
-
import
|
|
13
|
-
import { TreeTableContext as
|
|
14
|
-
import
|
|
15
|
-
import
|
|
16
|
-
const
|
|
17
|
-
const {
|
|
18
|
-
data:
|
|
19
|
-
dataColumns:
|
|
20
|
-
rootPropName:
|
|
21
|
-
stylesForRow:
|
|
22
|
-
parentPropName:
|
|
23
|
-
styleForLeftToolbar:
|
|
24
|
-
onClickFirstColumn:
|
|
25
|
-
onClickGetChildrens:
|
|
26
|
-
leftToolbarElements:
|
|
27
|
-
rightToolbarElements:
|
|
28
|
-
styleForRightToolbar:
|
|
29
|
-
toolbarElementsValidations:
|
|
30
|
-
openNodeId:
|
|
31
|
-
} =
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
},
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
13
|
+
import Be from "../toolbar/index.js";
|
|
14
|
+
import { TreeTableContext as Je, searchChildrensPerRow as Qe } from "./helpers.js";
|
|
15
|
+
import { v as fe } from "../chunks/v1.Ds1rkxUj.js";
|
|
16
|
+
import Oe from "../toolbar/ToolBarGroup.js";
|
|
17
|
+
const Ue = (f) => {
|
|
18
|
+
const e = Ve.c(103), {
|
|
19
|
+
data: h,
|
|
20
|
+
dataColumns: n,
|
|
21
|
+
rootPropName: A,
|
|
22
|
+
stylesForRow: he,
|
|
23
|
+
parentPropName: pe,
|
|
24
|
+
styleForLeftToolbar: ue,
|
|
25
|
+
onClickFirstColumn: D,
|
|
26
|
+
onClickGetChildrens: z,
|
|
27
|
+
leftToolbarElements: G,
|
|
28
|
+
rightToolbarElements: K,
|
|
29
|
+
styleForRightToolbar: xe,
|
|
30
|
+
toolbarElementsValidations: c,
|
|
31
|
+
openNodeId: p
|
|
32
|
+
} = We(Je), {
|
|
33
|
+
rowId: o,
|
|
34
|
+
dataRow: s,
|
|
35
|
+
rowLevel: B
|
|
36
|
+
} = f, [d, be] = M(!1), [i, Me] = M(), [V, ge] = M(!1), [m, $e] = M(!1), [we, Ae] = M(!1), Ce = Xe(null);
|
|
37
|
+
let W;
|
|
38
|
+
e[0] !== h || e[1] !== pe || e[2] !== o || e[3] !== B ? (W = () => {
|
|
39
|
+
const l = Qe(h, pe, o, B);
|
|
40
|
+
Me(l), ge(!1);
|
|
41
|
+
}, e[0] = h, e[1] = pe, e[2] = o, e[3] = B, e[4] = W) : W = e[4];
|
|
42
|
+
const u = W;
|
|
43
|
+
let X;
|
|
44
|
+
e[5] !== we || e[6] !== z || e[7] !== d || e[8] !== o || e[9] !== u ? (X = () => {
|
|
45
|
+
!we && !d ? (be(!0), ge(!0), z?.(o) && typeof z(o).finally == "function" && z(o).then(Ze).catch(et).finally(() => {
|
|
46
|
+
u();
|
|
47
|
+
}), Ae(!0)) : be(tt);
|
|
48
|
+
}, e[5] = we, e[6] = z, e[7] = d, e[8] = o, e[9] = u, e[10] = X) : X = e[10];
|
|
49
|
+
const ve = X;
|
|
50
|
+
let Y;
|
|
51
|
+
e[11] !== s || e[12] !== c ? (Y = (l) => {
|
|
52
|
+
const r = c && c[l], a = {
|
|
53
|
+
disabled: {
|
|
54
|
+
disabled: !0
|
|
55
|
+
},
|
|
56
|
+
unvisible: {
|
|
57
|
+
visible: !1
|
|
58
|
+
}
|
|
44
59
|
};
|
|
45
|
-
let
|
|
46
|
-
return
|
|
47
|
-
const {
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
+
let F = {};
|
|
61
|
+
return r && r.forEach((ce) => {
|
|
62
|
+
const {
|
|
63
|
+
validator: de,
|
|
64
|
+
onDenied: O
|
|
65
|
+
} = ce;
|
|
66
|
+
qe.isEmpty(F) && de && de(s) && O && (F = a[O] || a.unvisible);
|
|
67
|
+
}), F;
|
|
68
|
+
}, e[11] = s, e[12] = c, e[13] = Y) : Y = e[13];
|
|
69
|
+
const je = Y;
|
|
70
|
+
let q;
|
|
71
|
+
e[14] !== s || e[15] !== c || e[16] !== je ? (q = (l) => {
|
|
72
|
+
let r = [];
|
|
73
|
+
return l && (r = Pe.Children.map(l, (a) => {
|
|
74
|
+
if (Pe.isValidElement(a) && a.props) {
|
|
75
|
+
const {
|
|
76
|
+
validationKey: F,
|
|
77
|
+
onNodeElementClick: ce,
|
|
78
|
+
...de
|
|
79
|
+
} = a.props;
|
|
80
|
+
let O, Se = {};
|
|
81
|
+
return c && F && (O = je(F)), ce && (Se = {
|
|
82
|
+
...Se,
|
|
83
|
+
onClick: (ke) => {
|
|
84
|
+
ce(s), ke.stopPropagation && ke.stopPropagation();
|
|
60
85
|
}
|
|
61
|
-
}),
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
86
|
+
}), Ye(a.type, {
|
|
87
|
+
...de,
|
|
88
|
+
...Se,
|
|
89
|
+
...O
|
|
90
|
+
});
|
|
65
91
|
}
|
|
66
|
-
return
|
|
67
|
-
})),
|
|
68
|
-
},
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
};
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
] });
|
|
92
|
+
return a;
|
|
93
|
+
})), r;
|
|
94
|
+
}, e[14] = s, e[15] = c, e[16] = je, e[17] = q) : q = e[17];
|
|
95
|
+
const x = q;
|
|
96
|
+
let H;
|
|
97
|
+
e[18] === Symbol.for("react.memo_cache_sentinel") ? (H = () => {
|
|
98
|
+
$e(!0);
|
|
99
|
+
}, e[18] = H) : H = e[18];
|
|
100
|
+
const De = H;
|
|
101
|
+
let J;
|
|
102
|
+
e[19] === Symbol.for("react.memo_cache_sentinel") ? (J = (l) => {
|
|
103
|
+
const r = document.elementFromPoint(l.clientX, l.clientY);
|
|
104
|
+
Ce.current && !Ce.current.contains(r) && $e(!1);
|
|
105
|
+
}, e[19] = J) : J = e[19];
|
|
106
|
+
const ye = J;
|
|
107
|
+
let Q;
|
|
108
|
+
e[20] !== u ? (Q = () => {
|
|
109
|
+
u();
|
|
110
|
+
}, e[20] = u, e[21] = Q) : Q = e[21];
|
|
111
|
+
let U;
|
|
112
|
+
e[22] !== h ? (U = [h], e[22] = h, e[23] = U) : U = e[23], me(Q, U);
|
|
113
|
+
let Z;
|
|
114
|
+
e[24] === Symbol.for("react.memo_cache_sentinel") ? (Z = () => {
|
|
115
|
+
ge(!1);
|
|
116
|
+
}, e[24] = Z) : Z = e[24];
|
|
117
|
+
let ee;
|
|
118
|
+
e[25] !== i ? (ee = [i], e[25] = i, e[26] = ee) : ee = e[26], me(Z, ee);
|
|
119
|
+
let te, le;
|
|
120
|
+
e[27] !== m ? (te = () => (m ? window.addEventListener("mousemove", ye) : window.removeEventListener("mousemove", ye), () => {
|
|
121
|
+
window.removeEventListener("mousemove", ye);
|
|
122
|
+
}), le = [m], e[27] = m, e[28] = te, e[29] = le) : (te = e[28], le = e[29]), me(te, le);
|
|
123
|
+
let se;
|
|
124
|
+
e[30] !== s.id || e[31] !== p ? (se = () => {
|
|
125
|
+
p === Number(s.id) && be(!0);
|
|
126
|
+
}, e[30] = s.id, e[31] = p, e[32] = se) : se = e[32];
|
|
127
|
+
let oe;
|
|
128
|
+
e[33] !== p ? (oe = [p], e[33] = p, e[34] = oe) : oe = e[34], me(se, oe);
|
|
129
|
+
const Ge = n[0].name;
|
|
130
|
+
let ne;
|
|
131
|
+
e[35] === Symbol.for("react.memo_cache_sentinel") ? (ne = fe(), e[35] = ne) : ne = e[35];
|
|
132
|
+
const Ee = `td-${Ge}-${ne}`, Ke = n[0].style, _e = `column-more-childrens ${B && "line-path-decoration"}`, Ne = `${B}rem`;
|
|
133
|
+
let b;
|
|
134
|
+
e[36] !== Ne ? (b = {
|
|
135
|
+
marginLeft: Ne
|
|
136
|
+
}, e[36] = Ne, e[37] = b) : b = e[37];
|
|
137
|
+
let g;
|
|
138
|
+
e[38] !== ve ? (g = () => ve(), e[38] = ve, e[39] = g) : g = e[39];
|
|
139
|
+
const Re = d ? "down" : "arrow_right";
|
|
140
|
+
let w;
|
|
141
|
+
e[40] !== Re ? (w = /* @__PURE__ */ t.jsx(He, { name: Re, size: 10 }), e[40] = Re, e[41] = w) : w = e[41];
|
|
142
|
+
let C;
|
|
143
|
+
e[42] !== g || e[43] !== w ? (C = /* @__PURE__ */ t.jsx("button", { tabIndex: -1, className: "open-close-children", onClick: g, children: w }), e[42] = g, e[43] = w, e[44] = C) : C = e[44];
|
|
144
|
+
let v;
|
|
145
|
+
e[45] !== D || e[46] !== o ? (v = () => D ? D(o) : {}, e[45] = D, e[46] = o, e[47] = v) : v = e[47];
|
|
146
|
+
const Te = s[n[0].name];
|
|
147
|
+
let j;
|
|
148
|
+
e[48] !== v || e[49] !== Te ? (j = /* @__PURE__ */ t.jsx("span", { tabIndex: -1, role: "button", className: "value-button", onClick: v, children: Te }), e[48] = v, e[49] = Te, e[50] = j) : j = e[50];
|
|
149
|
+
let ie;
|
|
150
|
+
e[51] === Symbol.for("react.memo_cache_sentinel") ? (ie = fe(), e[51] = ie) : ie = e[51];
|
|
151
|
+
let y;
|
|
152
|
+
e[52] !== ue ? (y = {
|
|
153
|
+
float: "left",
|
|
154
|
+
height: "fit-content",
|
|
155
|
+
...ue
|
|
156
|
+
}, e[52] = ue, e[53] = y) : y = e[53];
|
|
157
|
+
let E;
|
|
158
|
+
e[54] !== x || e[55] !== G || e[56] !== m ? (E = m && G && x(G), e[54] = x, e[55] = G, e[56] = m, e[57] = E) : E = e[57];
|
|
159
|
+
let _;
|
|
160
|
+
e[58] !== y || e[59] !== E ? (_ = /* @__PURE__ */ t.jsx("span", { className: "container-toolbar-buttons", children: /* @__PURE__ */ t.jsx(Be, { size: "small", customClass: "row-toolbar", children: /* @__PURE__ */ t.jsx(Oe, { style: y, children: E }, `left-toolbar-${ie}`) }) }), e[58] = y, e[59] = E, e[60] = _) : _ = e[60];
|
|
161
|
+
let N;
|
|
162
|
+
e[61] !== _e || e[62] !== b || e[63] !== C || e[64] !== j || e[65] !== _ ? (N = /* @__PURE__ */ t.jsxs("span", { className: _e, style: b, children: [
|
|
163
|
+
C,
|
|
164
|
+
j,
|
|
165
|
+
_
|
|
166
|
+
] }), e[61] = _e, e[62] = b, e[63] = C, e[64] = j, e[65] = _, e[66] = N) : N = e[66];
|
|
167
|
+
let re;
|
|
168
|
+
e[67] === Symbol.for("react.memo_cache_sentinel") ? (re = fe(), e[67] = re) : re = e[67];
|
|
169
|
+
let R;
|
|
170
|
+
e[68] !== xe ? (R = {
|
|
171
|
+
float: "right",
|
|
172
|
+
height: "fit-content",
|
|
173
|
+
gap: "4px",
|
|
174
|
+
...xe
|
|
175
|
+
}, e[68] = xe, e[69] = R) : R = e[69];
|
|
176
|
+
let T;
|
|
177
|
+
e[70] !== x || e[71] !== K ? (T = K && x(K), e[70] = x, e[71] = K, e[72] = T) : T = e[72];
|
|
178
|
+
let S;
|
|
179
|
+
e[73] !== R || e[74] !== T ? (S = /* @__PURE__ */ t.jsx("span", { className: "container-toolbar-info", children: /* @__PURE__ */ t.jsx(Be, { size: "small", customClass: "row-toolbar", children: /* @__PURE__ */ t.jsx(Oe, { style: R, children: T }, `right-toolbar-${re}`) }) }), e[73] = R, e[74] = T, e[75] = S) : S = e[75];
|
|
180
|
+
let L;
|
|
181
|
+
e[76] !== N || e[77] !== S ? (L = /* @__PURE__ */ t.jsxs("div", { ref: Ce, className: "column-container", onMouseEnter: De, children: [
|
|
182
|
+
N,
|
|
183
|
+
S
|
|
184
|
+
] }), e[76] = N, e[77] = S, e[78] = L) : L = e[78];
|
|
185
|
+
let I;
|
|
186
|
+
e[79] !== n[0].style || e[80] !== Ee || e[81] !== L ? (I = /* @__PURE__ */ t.jsx(ze, { ignoreTableColClick: !0, style: Ke, children: L }, Ee), e[79] = n[0].style, e[80] = Ee, e[81] = L, e[82] = I) : I = e[82];
|
|
187
|
+
let $;
|
|
188
|
+
if (e[83] !== n || e[84] !== s) {
|
|
189
|
+
let l;
|
|
190
|
+
e[86] !== s ? (l = (r) => /* @__PURE__ */ t.jsx(ze, { style: {
|
|
191
|
+
...r.style
|
|
192
|
+
}, ignoreTableColClick: !0, children: s[r.name] }, `key-${r.name}-${fe()}`), e[86] = s, e[87] = l) : l = e[87], $ = n.slice(1).map(l), e[83] = n, e[84] = s, e[85] = $;
|
|
193
|
+
} else
|
|
194
|
+
$ = e[85];
|
|
195
|
+
let k;
|
|
196
|
+
e[88] !== f || e[89] !== o || e[90] !== I || e[91] !== $ ? (k = /* @__PURE__ */ t.jsxs(Ie, { ...f, dataId: o, customClass: "tree-row-element", children: [
|
|
197
|
+
I,
|
|
198
|
+
$
|
|
199
|
+
] }), e[88] = f, e[89] = o, e[90] = I, e[91] = $, e[92] = k) : k = e[92];
|
|
200
|
+
let P;
|
|
201
|
+
e[93] !== i || e[94] !== n.length || e[95] !== V || e[96] !== d || e[97] !== A || e[98] !== he ? (P = d && /* @__PURE__ */ t.jsx(Le, { children: i && i.length === 0 && V ? /* @__PURE__ */ t.jsx(Ie, { children: /* @__PURE__ */ t.jsx("td", { colSpan: n.length, className: "td-loading-childrens", children: /* @__PURE__ */ t.jsx("div", { className: "td-loading-childrens-container", children: /* @__PURE__ */ t.jsx(Fe, { size: "48px" }, "loading-childrens") }) }) }, "tr-loading-childrens") : /* @__PURE__ */ t.jsxs(Le, { children: [
|
|
202
|
+
i && i.map((l) => /* @__PURE__ */ t.jsx(Ue, { dataRow: l, rowLevel: l.rowLevel ? l.rowLevel + 1 : 1, rowId: `${l[A]}`, style: he }, l[A])),
|
|
203
|
+
i && i.length !== 0 && V && /* @__PURE__ */ t.jsx(Ie, { children: /* @__PURE__ */ t.jsx("td", { colSpan: n.length, className: "td-loading-childrens", children: /* @__PURE__ */ t.jsx("div", { className: "td-loading-childrens-container", children: /* @__PURE__ */ t.jsx(Fe, { size: "48px" }, "loading-childrens") }) }) }, "tr-loading-childrens")
|
|
204
|
+
] }) }), e[93] = i, e[94] = n.length, e[95] = V, e[96] = d, e[97] = A, e[98] = he, e[99] = P) : P = e[99];
|
|
205
|
+
let ae;
|
|
206
|
+
return e[100] !== k || e[101] !== P ? (ae = /* @__PURE__ */ t.jsxs(Le, { children: [
|
|
207
|
+
k,
|
|
208
|
+
P
|
|
209
|
+
] }), e[100] = k, e[101] = P, e[102] = ae) : ae = e[102], ae;
|
|
154
210
|
};
|
|
211
|
+
function Ze() {
|
|
212
|
+
}
|
|
213
|
+
function et() {
|
|
214
|
+
}
|
|
215
|
+
function tt(f) {
|
|
216
|
+
return !f;
|
|
217
|
+
}
|
|
155
218
|
export {
|
|
156
|
-
|
|
219
|
+
Ue as default
|
|
157
220
|
};
|
|
@@ -1,14 +1,13 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
export declare const TreeTableContext: import('react').Context<import('./types').ITreeTableProps>;
|
|
3
|
-
export declare const searchRootElements: (data: {
|
|
2
|
+
export declare const searchRootElements: (data: Array<{
|
|
4
3
|
[key: string]: any;
|
|
5
|
-
}
|
|
4
|
+
}>, parentPropName: string, rowLevel?: number) => ({
|
|
6
5
|
[key: string]: any;
|
|
7
6
|
} & {
|
|
8
7
|
rowLevel: number;
|
|
9
8
|
})[];
|
|
10
|
-
export declare const searchChildrensPerRow: (data: {
|
|
9
|
+
export declare const searchChildrensPerRow: (data: Array<{
|
|
11
10
|
[key: string]: any;
|
|
12
|
-
}
|
|
11
|
+
}>, parentPropName: string, rowId?: string | number, rowLevel?: number) => {
|
|
13
12
|
[key: string]: any;
|
|
14
13
|
}[];
|
package/lib/treetable/helpers.js
CHANGED
|
@@ -1,22 +1,14 @@
|
|
|
1
1
|
import { createContext as o } from "react";
|
|
2
2
|
const c = o({}), m = (e, s, r = 0) => {
|
|
3
3
|
let n;
|
|
4
|
-
return e && (n = e.filter((t) => !t[s]), n.map((t) => Object.assign(
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
{
|
|
8
|
-
rowLevel: r
|
|
9
|
-
}
|
|
10
|
-
)));
|
|
4
|
+
return e && (n = e.filter((t) => !t[s]), n.map((t) => Object.assign(t, {}, {
|
|
5
|
+
rowLevel: r
|
|
6
|
+
})));
|
|
11
7
|
}, f = (e, s, r, n = 0) => {
|
|
12
8
|
let t;
|
|
13
|
-
return e && r ? (t = e.filter((i) => i[s] === Number(r)), t.map((i) => Object.assign(
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
{
|
|
17
|
-
rowLevel: n
|
|
18
|
-
}
|
|
19
|
-
))) : e;
|
|
9
|
+
return e && r ? (t = e.filter((i) => i[s] === Number(r)), t.map((i) => Object.assign(i, {}, {
|
|
10
|
+
rowLevel: n
|
|
11
|
+
}))) : e;
|
|
20
12
|
};
|
|
21
13
|
export {
|
|
22
14
|
c as TreeTableContext,
|
package/lib/treetable/index.js
CHANGED
|
@@ -1,18 +1,28 @@
|
|
|
1
|
-
import { j as
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
1
|
+
import { j as n } from "../chunks/jsx-runtime.D1SHvdVE.js";
|
|
2
|
+
import { c as a } from "../chunks/compiler-runtime.Cu50tn6L.js";
|
|
3
|
+
import c from "../table/index.js";
|
|
4
|
+
import f from "./Body.js";
|
|
5
|
+
import x from "./Header.js";
|
|
6
|
+
import { TreeTableContext as T } from "./helpers.js";
|
|
7
|
+
import '../assets/index17.css';const v = (t) => {
|
|
8
|
+
const e = a.c(9);
|
|
9
|
+
let o;
|
|
10
|
+
e[0] !== t ? (o = {
|
|
11
|
+
...t
|
|
12
|
+
}, e[0] = t, e[1] = o) : o = e[1];
|
|
13
|
+
const s = o;
|
|
14
|
+
let r, i;
|
|
15
|
+
e[2] === Symbol.for("react.memo_cache_sentinel") ? (r = /* @__PURE__ */ n.jsx(x, {}), i = /* @__PURE__ */ n.jsx(f, {}), e[2] = r, e[3] = i) : (r = e[2], i = e[3]);
|
|
16
|
+
let l;
|
|
17
|
+
e[4] !== t ? (l = /* @__PURE__ */ n.jsxs(c, { ...t, onColClick: u, children: [
|
|
18
|
+
r,
|
|
19
|
+
i
|
|
20
|
+
] }), e[4] = t, e[5] = l) : l = e[5];
|
|
21
|
+
let m;
|
|
22
|
+
return e[6] !== s || e[7] !== l ? (m = /* @__PURE__ */ n.jsx(T.Provider, { value: s, children: l }), e[6] = s, e[7] = l, e[8] = m) : m = e[8], m;
|
|
15
23
|
};
|
|
24
|
+
function u() {
|
|
25
|
+
}
|
|
16
26
|
export {
|
|
17
|
-
|
|
27
|
+
v as default
|
|
18
28
|
};
|
package/lib/treeview/Header.js
CHANGED
|
@@ -1,8 +1,16 @@
|
|
|
1
|
-
import { j as
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import { j as c } from "../chunks/jsx-runtime.D1SHvdVE.js";
|
|
2
|
+
import { c as m } from "../chunks/compiler-runtime.Cu50tn6L.js";
|
|
3
|
+
const p = (o) => {
|
|
4
|
+
const e = m.c(6), {
|
|
5
|
+
title: s,
|
|
6
|
+
customClass: a,
|
|
7
|
+
children: i
|
|
8
|
+
} = o, l = `treeviewheader ${a}`;
|
|
9
|
+
let t;
|
|
10
|
+
e[0] !== i || e[1] !== s ? (t = s ? /* @__PURE__ */ c.jsx("div", { className: "title", children: s }) : i, e[0] = i, e[1] = s, e[2] = t) : t = e[2];
|
|
11
|
+
let r;
|
|
12
|
+
return e[3] !== l || e[4] !== t ? (r = /* @__PURE__ */ c.jsx("div", { className: l, children: t }), e[3] = l, e[4] = t, e[5] = r) : r = e[5], r;
|
|
5
13
|
};
|
|
6
14
|
export {
|
|
7
|
-
|
|
15
|
+
p as default
|
|
8
16
|
};
|