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/textContent/index.js
CHANGED
|
@@ -1,35 +1,33 @@
|
|
|
1
|
-
import { j as
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
}
|
|
29
|
-
);
|
|
1
|
+
import { j as C } from "../chunks/jsx-runtime.D1SHvdVE.js";
|
|
2
|
+
import { c as L } from "../chunks/compiler-runtime.Cu50tn6L.js";
|
|
3
|
+
import { forwardRef as N } from "react";
|
|
4
|
+
import { _ as T } from "../chunks/lodash.CIAK_hAg.js";
|
|
5
|
+
import j from "../internals/withTooltip.js";
|
|
6
|
+
import '../assets/index4.css';const x = N((p, m) => {
|
|
7
|
+
const t = L.c(17);
|
|
8
|
+
let e, o, r, l, s, a, n;
|
|
9
|
+
if (t[0] !== m || t[1] !== p) {
|
|
10
|
+
const {
|
|
11
|
+
as: d,
|
|
12
|
+
children: b,
|
|
13
|
+
className: R,
|
|
14
|
+
label: v,
|
|
15
|
+
styleForLabel: u,
|
|
16
|
+
disabled: E,
|
|
17
|
+
targetRef: $,
|
|
18
|
+
labelRef: w,
|
|
19
|
+
onHoverLabel: y,
|
|
20
|
+
...h
|
|
21
|
+
} = p;
|
|
22
|
+
o = b, r = R, s = u, l = y, e = d === void 0 ? "span" : d, n = m, a = T.omit(h, ["tooltipWidth", "tooltip", "tooltipPosition", "labelUppercase"]), t[0] = m, t[1] = p, t[2] = e, t[3] = o, t[4] = r, t[5] = l, t[6] = s, t[7] = a, t[8] = n;
|
|
23
|
+
} else
|
|
24
|
+
e = t[2], o = t[3], r = t[4], l = t[5], s = t[6], a = t[7], n = t[8];
|
|
25
|
+
const c = a, f = `text-content-component ${r}`;
|
|
26
|
+
let i;
|
|
27
|
+
return t[9] !== e || t[10] !== o || t[11] !== l || t[12] !== c || t[13] !== s || t[14] !== f || t[15] !== n ? (i = /* @__PURE__ */ C.jsx(e, { ref: n, style: s, className: f, "data-textcontent": e, onMouseEnter: l, ...c, children: o }), t[9] = e, t[10] = o, t[11] = l, t[12] = c, t[13] = s, t[14] = f, t[15] = n, t[16] = i) : i = t[16], i;
|
|
30
28
|
});
|
|
31
|
-
|
|
32
|
-
const
|
|
29
|
+
x.displayName = "TextContent";
|
|
30
|
+
const U = j(x);
|
|
33
31
|
export {
|
|
34
|
-
|
|
32
|
+
U as default
|
|
35
33
|
};
|
package/lib/toolbar/ButtonBar.js
CHANGED
|
@@ -1,63 +1,67 @@
|
|
|
1
|
-
import { j as o } from "../chunks/jsx-runtime.
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
import
|
|
13
|
-
import
|
|
14
|
-
import
|
|
15
|
-
import
|
|
16
|
-
import
|
|
1
|
+
import { j as o } from "../chunks/jsx-runtime.D1SHvdVE.js";
|
|
2
|
+
import { c as C } from "../chunks/compiler-runtime.Cu50tn6L.js";
|
|
3
|
+
import { useContext as b } from "react";
|
|
4
|
+
import A from "../buttons/Button.js";
|
|
5
|
+
import E from "../buttons/PrimaryButton.js";
|
|
6
|
+
import R from "../buttons/DangerButton.js";
|
|
7
|
+
import S from "../buttons/WarningButton.js";
|
|
8
|
+
import k from "../buttons/SuccessButton.js";
|
|
9
|
+
import w from "../buttons/InfoButton.js";
|
|
10
|
+
import z from "../buttons/SaveButton.js";
|
|
11
|
+
import D from "../buttons/CancelButton.js";
|
|
12
|
+
import I from "../buttons/EditButton.js";
|
|
13
|
+
import P from "../buttons/DestroyButton.js";
|
|
14
|
+
import T from "../buttons/AddButton.js";
|
|
15
|
+
import $ from "../buttons/ActivateButton.js";
|
|
16
|
+
import h from "../buttons/InactivateButton.js";
|
|
17
|
+
import N from "../buttons/RestoreButton.js";
|
|
17
18
|
import '../assets/button.css';/* empty css */
|
|
18
|
-
import
|
|
19
|
-
const
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
19
|
+
import W from "./helpers.js";
|
|
20
|
+
const st = (c) => {
|
|
21
|
+
const r = C.c(3), {
|
|
22
|
+
size: p,
|
|
23
|
+
icon: u,
|
|
24
|
+
onClick: f,
|
|
25
|
+
iconName: l,
|
|
26
|
+
transparent: x,
|
|
27
|
+
customClass: B,
|
|
28
|
+
type: e,
|
|
29
|
+
iconAlign: m,
|
|
30
|
+
label: a,
|
|
31
|
+
...j
|
|
32
|
+
} = c, d = e === void 0 ? "default" : e, v = m === void 0 ? "left" : m, g = a === void 0 ? "" : a, {
|
|
33
|
+
skeletonize: y
|
|
34
|
+
} = b(W), t = () => ({
|
|
35
|
+
...j,
|
|
36
|
+
size: p,
|
|
37
|
+
icon: u,
|
|
38
|
+
label: g,
|
|
39
|
+
onClick: f,
|
|
40
|
+
iconName: l,
|
|
41
|
+
iconAlign: v,
|
|
42
|
+
transparent: x,
|
|
43
|
+
skeletonize: y,
|
|
41
44
|
boxShadow: !1,
|
|
42
|
-
customClass: `buttonbar ${
|
|
43
|
-
});
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
45
|
+
customClass: `buttonbar ${B}`
|
|
46
|
+
}), n = N, i = t();
|
|
47
|
+
let s;
|
|
48
|
+
return r[0] !== n || r[1] !== i ? (s = /* @__PURE__ */ o.jsx(n, { ...i }), r[0] = n, r[1] = i, r[2] = s) : s = r[2], {
|
|
49
|
+
default: /* @__PURE__ */ o.jsx(A, { ...t() }),
|
|
50
|
+
primary: /* @__PURE__ */ o.jsx(E, { ...t() }),
|
|
51
|
+
danger: /* @__PURE__ */ o.jsx(R, { ...t() }),
|
|
52
|
+
info: /* @__PURE__ */ o.jsx(w, { ...t() }),
|
|
53
|
+
success: /* @__PURE__ */ o.jsx(k, { ...t() }),
|
|
54
|
+
warning: /* @__PURE__ */ o.jsx(S, { ...t() }),
|
|
55
|
+
add: /* @__PURE__ */ o.jsx(T, { ...t() }),
|
|
56
|
+
cancel: /* @__PURE__ */ o.jsx(D, { ...t() }),
|
|
57
|
+
destroy: /* @__PURE__ */ o.jsx(P, { ...t() }),
|
|
58
|
+
edit: /* @__PURE__ */ o.jsx(I, { ...t() }),
|
|
59
|
+
save: /* @__PURE__ */ o.jsx(z, { ...t() }),
|
|
60
|
+
activate: /* @__PURE__ */ o.jsx($, { ...t() }),
|
|
61
|
+
inactivate: /* @__PURE__ */ o.jsx(h, { ...t() }),
|
|
62
|
+
restore: s
|
|
63
|
+
}[d];
|
|
60
64
|
};
|
|
61
65
|
export {
|
|
62
|
-
|
|
66
|
+
st as default
|
|
63
67
|
};
|
package/lib/toolbar/LabelBar.js
CHANGED
|
@@ -1,43 +1,51 @@
|
|
|
1
|
-
import { j as
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
1
|
+
import { j as e } from "../chunks/jsx-runtime.D1SHvdVE.js";
|
|
2
|
+
import { c as L } from "../chunks/compiler-runtime.Cu50tn6L.js";
|
|
3
|
+
import { useContext as v } from "react";
|
|
4
|
+
import C from "../labels/DefaultLabel.js";
|
|
5
|
+
import h from "../labels/DangerLabel.js";
|
|
6
|
+
import z from "../labels/PrimaryLabel.js";
|
|
7
|
+
import B from "../labels/WarningLabel.js";
|
|
8
|
+
import E from "../labels/SuccessLabel.js";
|
|
9
|
+
import P from "../labels/InfoLabel.js";
|
|
9
10
|
import '../assets/label.css';/* empty css */
|
|
10
|
-
import
|
|
11
|
-
const
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
11
|
+
import R from "./helpers.js";
|
|
12
|
+
const A = (l) => {
|
|
13
|
+
const o = L.c(3), {
|
|
14
|
+
size: p,
|
|
15
|
+
icon: c,
|
|
16
|
+
children: f,
|
|
17
|
+
iconName: x,
|
|
18
|
+
style: n,
|
|
19
|
+
type: m,
|
|
20
|
+
bordered: a,
|
|
21
|
+
...d
|
|
22
|
+
} = l, b = n === void 0 ? {} : n, u = m === void 0 ? "default" : m, j = a === void 0 ? !1 : a, y = {
|
|
23
|
+
lineHeight: "unset",
|
|
24
|
+
padding: "7px 10px 6px",
|
|
25
|
+
...b
|
|
26
|
+
}, {
|
|
27
|
+
skeletonize: g
|
|
28
|
+
} = v(R), t = () => ({
|
|
29
|
+
...d,
|
|
30
|
+
size: p,
|
|
31
|
+
icon: c,
|
|
32
|
+
children: f,
|
|
33
|
+
iconName: x,
|
|
34
|
+
style: y,
|
|
35
|
+
bordered: j,
|
|
36
|
+
skeletonize: g,
|
|
30
37
|
customClass: "labelbar"
|
|
31
|
-
});
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
38
|
+
}), s = B, i = t();
|
|
39
|
+
let r;
|
|
40
|
+
return o[0] !== s || o[1] !== i ? (r = /* @__PURE__ */ e.jsx(s, { ...i }), o[0] = s, o[1] = i, o[2] = r) : r = o[2], {
|
|
41
|
+
default: /* @__PURE__ */ e.jsx(C, { ...t() }),
|
|
42
|
+
primary: /* @__PURE__ */ e.jsx(z, { ...t() }),
|
|
43
|
+
danger: /* @__PURE__ */ e.jsx(h, { ...t() }),
|
|
44
|
+
info: /* @__PURE__ */ e.jsx(P, { ...t() }),
|
|
45
|
+
success: /* @__PURE__ */ e.jsx(E, { ...t() }),
|
|
46
|
+
warning: r
|
|
47
|
+
}[u];
|
|
40
48
|
};
|
|
41
49
|
export {
|
|
42
|
-
|
|
50
|
+
A as default
|
|
43
51
|
};
|
package/lib/toolbar/Separator.js
CHANGED
|
@@ -1,5 +1,10 @@
|
|
|
1
|
-
import { j as
|
|
2
|
-
|
|
1
|
+
import { j as r } from "../chunks/jsx-runtime.D1SHvdVE.js";
|
|
2
|
+
import { c as o } from "../chunks/compiler-runtime.Cu50tn6L.js";
|
|
3
|
+
const m = () => {
|
|
4
|
+
const t = o.c(1);
|
|
5
|
+
let e;
|
|
6
|
+
return t[0] === Symbol.for("react.memo_cache_sentinel") ? (e = /* @__PURE__ */ r.jsx("div", { className: "separator" }), t[0] = e) : e = t[0], e;
|
|
7
|
+
};
|
|
3
8
|
export {
|
|
4
|
-
|
|
9
|
+
m as default
|
|
5
10
|
};
|
|
@@ -1,5 +1,16 @@
|
|
|
1
|
-
import { j as
|
|
2
|
-
|
|
1
|
+
import { j as c } from "../chunks/jsx-runtime.D1SHvdVE.js";
|
|
2
|
+
import { c as a } from "../chunks/compiler-runtime.Cu50tn6L.js";
|
|
3
|
+
const p = (i) => {
|
|
4
|
+
const t = a.c(5), {
|
|
5
|
+
children: r,
|
|
6
|
+
style: o
|
|
7
|
+
} = i;
|
|
8
|
+
let s;
|
|
9
|
+
t[0] !== o ? (s = o === void 0 ? {} : o, t[0] = o, t[1] = s) : s = t[1];
|
|
10
|
+
const l = s;
|
|
11
|
+
let e;
|
|
12
|
+
return t[2] !== r || t[3] !== l ? (e = /* @__PURE__ */ c.jsx("div", { className: "toolbar-group", style: l, children: r }), t[2] = r, t[3] = l, t[4] = e) : e = t[4], e;
|
|
13
|
+
};
|
|
3
14
|
export {
|
|
4
|
-
|
|
15
|
+
p as default
|
|
5
16
|
};
|
package/lib/toolbar/index.js
CHANGED
|
@@ -1,33 +1,39 @@
|
|
|
1
|
-
import { j as
|
|
2
|
-
import {
|
|
3
|
-
import { default as
|
|
4
|
-
import { default as
|
|
5
|
-
import { default as
|
|
1
|
+
import { j as d } from "../chunks/jsx-runtime.D1SHvdVE.js";
|
|
2
|
+
import { c as v } from "../chunks/compiler-runtime.Cu50tn6L.js";
|
|
3
|
+
import { default as E } from "./ToolBarGroup.js";
|
|
4
|
+
import { default as G } from "./Separator.js";
|
|
5
|
+
import { default as N } from "./ButtonBar.js";
|
|
6
|
+
import { default as S } from "./LabelBar.js";
|
|
6
7
|
import '../assets/toolbar.css';/* empty css */
|
|
7
|
-
import
|
|
8
|
-
const
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
)
|
|
8
|
+
import j from "./helpers.js";
|
|
9
|
+
const T = (p) => {
|
|
10
|
+
const t = v.c(19);
|
|
11
|
+
let o, r, s, a, e, i;
|
|
12
|
+
t[0] !== p ? ({
|
|
13
|
+
innerRef: r,
|
|
14
|
+
children: o,
|
|
15
|
+
style: e,
|
|
16
|
+
size: a,
|
|
17
|
+
customClass: i,
|
|
18
|
+
...s
|
|
19
|
+
} = p, t[0] = p, t[1] = o, t[2] = r, t[3] = s, t[4] = a, t[5] = e, t[6] = i) : (o = t[1], r = t[2], s = t[3], a = t[4], e = t[5], i = t[6]);
|
|
20
|
+
let f;
|
|
21
|
+
t[7] !== e ? (f = e === void 0 ? {} : e, t[7] = e, t[8] = f) : f = t[8];
|
|
22
|
+
const c = f, B = i === void 0 ? "" : i;
|
|
23
|
+
let m;
|
|
24
|
+
t[9] !== s ? (m = {
|
|
25
|
+
...s
|
|
26
|
+
}, t[9] = s, t[10] = m) : m = t[10];
|
|
27
|
+
const u = m, x = `toolbar-component ${a ? `${a}-bar` : ""} ${B}`;
|
|
28
|
+
let l;
|
|
29
|
+
t[11] !== o || t[12] !== r || t[13] !== c || t[14] !== x ? (l = /* @__PURE__ */ d.jsx("div", { ref: r, className: x, style: c, children: o }), t[11] = o, t[12] = r, t[13] = c, t[14] = x, t[15] = l) : l = t[15];
|
|
30
|
+
let n;
|
|
31
|
+
return t[16] !== u || t[17] !== l ? (n = /* @__PURE__ */ d.jsx(j.Provider, { value: u, children: l }), t[16] = u, t[17] = l, t[18] = n) : n = t[18], n;
|
|
26
32
|
};
|
|
27
33
|
export {
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
34
|
+
N as ButtonBar,
|
|
35
|
+
S as LabelBar,
|
|
36
|
+
G as Separator,
|
|
37
|
+
E as ToolBarGroup,
|
|
38
|
+
T as default
|
|
33
39
|
};
|
package/lib/tooltip/index.js
CHANGED
|
@@ -1,38 +1,38 @@
|
|
|
1
|
-
import { j as
|
|
2
|
-
import { useRef as
|
|
3
|
-
import
|
|
4
|
-
import { v } from "../chunks/v1.
|
|
1
|
+
import { j as f } from "../chunks/jsx-runtime.D1SHvdVE.js";
|
|
2
|
+
import { useRef as h, useEffect as e } from "react";
|
|
3
|
+
import a from "react-dom";
|
|
4
|
+
import { v } from "../chunks/v1.Ds1rkxUj.js";
|
|
5
5
|
import '../assets/index5.css';const x = ({
|
|
6
6
|
text: m,
|
|
7
|
-
textError:
|
|
7
|
+
textError: n,
|
|
8
8
|
tooltipRef: u,
|
|
9
|
-
style:
|
|
10
|
-
tooltipDimensions:
|
|
9
|
+
style: r = "",
|
|
10
|
+
tooltipDimensions: c,
|
|
11
11
|
className: o = "bottom",
|
|
12
12
|
handlerSetDimensions: p = () => {
|
|
13
13
|
}
|
|
14
14
|
}) => {
|
|
15
|
-
const t =
|
|
16
|
-
|
|
17
|
-
t.current.id = `tooltip-${v()}`, t.current.className = `tooltip-component ${o} `, t.current.dataset.testid = "tooltip-component", t.current.style.cssText =
|
|
18
|
-
const
|
|
19
|
-
let d =
|
|
20
|
-
const
|
|
21
|
-
return
|
|
15
|
+
const t = h(document.createElement("div"));
|
|
16
|
+
e(() => {
|
|
17
|
+
t.current.id = `tooltip-${v()}`, t.current.className = `tooltip-component ${o} `, t.current.dataset.testid = "tooltip-component", t.current.style.cssText = r, document.body.appendChild(t.current);
|
|
18
|
+
const i = document.querySelector(`div#${t.current.id}`);
|
|
19
|
+
let d = i?.offsetWidth;
|
|
20
|
+
const l = i?.offsetHeight;
|
|
21
|
+
return c && c.width && (d = c.width), p({
|
|
22
22
|
width: d,
|
|
23
|
-
height: Number(
|
|
24
|
-
}), u && (u.current =
|
|
23
|
+
height: Number(l)
|
|
24
|
+
}), u && (u.current = i), () => {
|
|
25
25
|
document.body.removeChild(t.current);
|
|
26
26
|
};
|
|
27
|
-
}, []),
|
|
27
|
+
}, []), e(() => {
|
|
28
28
|
t.current.className = `tooltip-component ${o} `;
|
|
29
|
-
}, [o]),
|
|
30
|
-
t.current.style.cssText =
|
|
31
|
-
}, [
|
|
32
|
-
t.current.className =
|
|
33
|
-
}, [
|
|
34
|
-
const s = () => /* @__PURE__ */
|
|
35
|
-
return
|
|
29
|
+
}, [o]), e(() => {
|
|
30
|
+
t.current.style.cssText = r;
|
|
31
|
+
}, [r]), e(() => {
|
|
32
|
+
t.current.className = n ? `tooltip-error tooltip-component ${o}` : `tooltip-component ${o}`;
|
|
33
|
+
}, [n]);
|
|
34
|
+
const s = () => /* @__PURE__ */ f.jsx("div", { className: "tooltipcontent", children: n || m });
|
|
35
|
+
return a.createPortal(s(), t.current);
|
|
36
36
|
};
|
|
37
37
|
export {
|
|
38
38
|
x as default
|
package/lib/treetable/Body.js
CHANGED
|
@@ -1,35 +1,34 @@
|
|
|
1
|
-
import { j as
|
|
2
|
-
import {
|
|
3
|
-
import "
|
|
1
|
+
import { j as n } from "../chunks/jsx-runtime.D1SHvdVE.js";
|
|
2
|
+
import { c as x } from "../chunks/compiler-runtime.Cu50tn6L.js";
|
|
3
|
+
import { useContext as d, useState as u, useEffect as w } from "react";
|
|
4
|
+
import "../chunks/lodash.CIAK_hAg.js";
|
|
4
5
|
import "../table/helpers.js";
|
|
5
|
-
import
|
|
6
|
+
import R from "../table/Body.js";
|
|
6
7
|
import "../icons/index.js";
|
|
7
8
|
import '../assets/table.css';import '../assets/skeleton.css';import '../assets/gridlayout.css';/* empty css */
|
|
8
9
|
/* empty css */
|
|
9
10
|
/* empty css */
|
|
10
|
-
import { TreeTableContext as
|
|
11
|
-
import
|
|
12
|
-
const
|
|
13
|
-
const {
|
|
14
|
-
data:
|
|
15
|
-
rootPropName:
|
|
16
|
-
stylesForRow:
|
|
17
|
-
parentPropName:
|
|
18
|
-
} =
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
o[r]
|
|
31
|
-
)) });
|
|
11
|
+
import { TreeTableContext as E, searchRootElements as T } from "./helpers.js";
|
|
12
|
+
import j from "./Row.js";
|
|
13
|
+
const S = () => {
|
|
14
|
+
const o = x.c(11), {
|
|
15
|
+
data: e,
|
|
16
|
+
rootPropName: s,
|
|
17
|
+
stylesForRow: a,
|
|
18
|
+
parentPropName: f
|
|
19
|
+
} = d(E), [m, c] = u();
|
|
20
|
+
let i;
|
|
21
|
+
o[0] !== e || o[1] !== f ? (i = () => {
|
|
22
|
+
const t = T(e, f, 0);
|
|
23
|
+
c(t);
|
|
24
|
+
}, o[0] = e, o[1] = f, o[2] = i) : i = o[2];
|
|
25
|
+
let p;
|
|
26
|
+
o[3] !== e ? (p = [e], o[3] = e, o[4] = p) : p = o[4], w(i, p);
|
|
27
|
+
let r;
|
|
28
|
+
o[5] !== m || o[6] !== s || o[7] !== a ? (r = m && m.map((t) => /* @__PURE__ */ n.jsx(j, { dataRow: t, rowLevel: t.rowLevel ? t.rowLevel + 1 : 0, rowId: `${t[s]}`, style: a }, t[s])), o[5] = m, o[6] = s, o[7] = a, o[8] = r) : r = o[8];
|
|
29
|
+
let l;
|
|
30
|
+
return o[9] !== r ? (l = /* @__PURE__ */ n.jsx(R, { children: r }), o[9] = r, o[10] = l) : l = o[10], l;
|
|
32
31
|
};
|
|
33
32
|
export {
|
|
34
|
-
|
|
33
|
+
S as default
|
|
35
34
|
};
|
package/lib/treetable/Header.js
CHANGED
|
@@ -1,26 +1,30 @@
|
|
|
1
|
-
import { j as
|
|
2
|
-
import {
|
|
3
|
-
import "
|
|
4
|
-
import
|
|
5
|
-
import
|
|
1
|
+
import { j as i } from "../chunks/jsx-runtime.D1SHvdVE.js";
|
|
2
|
+
import { c as p } from "../chunks/compiler-runtime.Cu50tn6L.js";
|
|
3
|
+
import { useContext as l } from "react";
|
|
4
|
+
import "../chunks/lodash.CIAK_hAg.js";
|
|
5
|
+
import a from "../table/Header.js";
|
|
6
|
+
import n from "../table/Row.js";
|
|
6
7
|
import "../table/helpers.js";
|
|
7
8
|
import '../assets/table.css';import '../assets/skeleton.css';import '../assets/gridlayout.css';/* empty css */
|
|
8
9
|
/* empty css */
|
|
9
|
-
import
|
|
10
|
+
import f from "../table/HeaderColumn.js";
|
|
10
11
|
/* empty css */
|
|
11
|
-
import { TreeTableContext as
|
|
12
|
-
import { v as
|
|
13
|
-
const
|
|
14
|
-
const
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
12
|
+
import { TreeTableContext as c } from "./helpers.js";
|
|
13
|
+
import { v as s } from "../chunks/v1.Ds1rkxUj.js";
|
|
14
|
+
const E = () => {
|
|
15
|
+
const e = p.c(5), {
|
|
16
|
+
dataColumns: m
|
|
17
|
+
} = l(c);
|
|
18
|
+
let r;
|
|
19
|
+
e[0] === Symbol.for("react.memo_cache_sentinel") ? (r = s(), e[0] = r) : r = e[0];
|
|
20
|
+
let t;
|
|
21
|
+
e[1] !== m ? (t = m.map(d), e[1] = m, e[2] = t) : t = e[2];
|
|
22
|
+
let o;
|
|
23
|
+
return e[3] !== t ? (o = /* @__PURE__ */ i.jsx(a, { children: /* @__PURE__ */ i.jsx(n, { children: t }, `tr-header-${r}`) }), e[3] = t, e[4] = o) : o = e[4], o;
|
|
23
24
|
};
|
|
25
|
+
function d(e) {
|
|
26
|
+
return /* @__PURE__ */ i.jsx(f, { style: e.style, children: e.title }, `th-${e.name}-${s()}`);
|
|
27
|
+
}
|
|
24
28
|
export {
|
|
25
|
-
|
|
29
|
+
E as default
|
|
26
30
|
};
|