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/panel/Default.js
CHANGED
|
@@ -1,42 +1,68 @@
|
|
|
1
|
-
import { j as
|
|
2
|
-
import {
|
|
1
|
+
import { j as g } from "../chunks/jsx-runtime.D1SHvdVE.js";
|
|
2
|
+
import { c as y } from "../chunks/compiler-runtime.Cu50tn6L.js";
|
|
3
|
+
import { useState as T } from "react";
|
|
3
4
|
import '../assets/gridlayout.css';/* empty css */
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import { OPTIONS_ON_DENIED as
|
|
8
|
-
const
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
5
|
+
import A from "../gridlayout/GridCol.js";
|
|
6
|
+
import G from "./Header.js";
|
|
7
|
+
import H from "./helpers.js";
|
|
8
|
+
import { OPTIONS_ON_DENIED as V, actionsOnPermissionDenied as k } from "../permissionValidations.js";
|
|
9
|
+
const M = (j) => {
|
|
10
|
+
const e = y.c(37);
|
|
11
|
+
let o, t, i, l, r, d, c, u, f, n, a;
|
|
12
|
+
e[0] !== j ? ({
|
|
13
|
+
startOpened: u,
|
|
14
|
+
toggleable: a,
|
|
15
|
+
customClass: i,
|
|
16
|
+
children: o,
|
|
17
|
+
title: n,
|
|
18
|
+
gridCols: l,
|
|
19
|
+
onEndReached: r,
|
|
20
|
+
onEndReachedThreshold: f,
|
|
21
|
+
permissionAttr: d,
|
|
22
|
+
colorStyle: t,
|
|
23
|
+
...c
|
|
24
|
+
} = j, e[0] = j, e[1] = o, e[2] = t, e[3] = i, e[4] = l, e[5] = r, e[6] = d, e[7] = c, e[8] = u, e[9] = f, e[10] = n, e[11] = a) : (o = e[1], t = e[2], i = e[3], l = e[4], r = e[5], d = e[6], c = e[7], u = e[8], f = e[9], n = e[10], a = e[11]);
|
|
25
|
+
const S = u === void 0 ? !0 : u, P = f === void 0 ? 0.1 : f, [h, $] = T(S), {
|
|
26
|
+
hideContent: I,
|
|
27
|
+
unvisible: _
|
|
28
|
+
} = V;
|
|
29
|
+
let C;
|
|
30
|
+
e[12] !== d ? (C = k([I, _], d), e[12] = d, e[13] = C) : C = e[13];
|
|
31
|
+
const [s] = T(C);
|
|
32
|
+
let v;
|
|
33
|
+
e[14] !== t || e[15] !== i ? (v = () => {
|
|
34
|
+
let N = `panel-component ${i}`;
|
|
35
|
+
return N = N + (t !== "" ? ` -${t}` : ""), N;
|
|
36
|
+
}, e[14] = t, e[15] = i, e[16] = v) : v = e[16];
|
|
37
|
+
const D = v;
|
|
38
|
+
let x;
|
|
39
|
+
e[17] !== o || e[18] !== D || e[19] !== c || e[20] !== n ? (x = () => /* @__PURE__ */ g.jsxs("div", { className: D(), ...c, children: [
|
|
40
|
+
n && /* @__PURE__ */ g.jsx(G, { title: n }),
|
|
41
|
+
o
|
|
42
|
+
] }), e[17] = o, e[18] = D, e[19] = c, e[20] = n, e[21] = x) : x = e[21];
|
|
43
|
+
const b = x;
|
|
44
|
+
let E;
|
|
45
|
+
e[22] !== s.hideContent || e[23] !== s.unvisible || e[24] !== r || e[25] !== P || e[26] !== h || e[27] !== a ? (E = () => ({
|
|
46
|
+
toggleable: a,
|
|
29
47
|
handlerToggleable: () => {
|
|
30
|
-
|
|
48
|
+
$(!h);
|
|
31
49
|
},
|
|
32
|
-
opened:
|
|
33
|
-
onEndReached:
|
|
34
|
-
onEndReachedThreshold:
|
|
35
|
-
hideContent:
|
|
36
|
-
unvisible:
|
|
37
|
-
});
|
|
38
|
-
|
|
50
|
+
opened: h,
|
|
51
|
+
onEndReached: r,
|
|
52
|
+
onEndReachedThreshold: P,
|
|
53
|
+
hideContent: s.hideContent,
|
|
54
|
+
unvisible: s.unvisible
|
|
55
|
+
}), e[22] = s.hideContent, e[23] = s.unvisible, e[24] = r, e[25] = P, e[26] = h, e[27] = a, e[28] = E) : E = e[28];
|
|
56
|
+
const R = E;
|
|
57
|
+
if (s.unvisible)
|
|
58
|
+
return null;
|
|
59
|
+
let m;
|
|
60
|
+
e[29] !== R ? (m = R(), e[29] = R, e[30] = m) : m = e[30];
|
|
61
|
+
let p;
|
|
62
|
+
e[31] !== l || e[32] !== b ? (p = l ? /* @__PURE__ */ g.jsx(A, { cols: l, children: b() }) : b(), e[31] = l, e[32] = b, e[33] = p) : p = e[33];
|
|
63
|
+
let O;
|
|
64
|
+
return e[34] !== m || e[35] !== p ? (O = /* @__PURE__ */ g.jsx(H.Provider, { value: m, children: p }), e[34] = m, e[35] = p, e[36] = O) : O = e[36], O;
|
|
39
65
|
};
|
|
40
66
|
export {
|
|
41
|
-
|
|
67
|
+
M as default
|
|
42
68
|
};
|
package/lib/panel/Header.js
CHANGED
|
@@ -1,42 +1,58 @@
|
|
|
1
|
-
import { j as
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
1
|
+
import { j as r } from "../chunks/jsx-runtime.D1SHvdVE.js";
|
|
2
|
+
import { c as I } from "../chunks/compiler-runtime.Cu50tn6L.js";
|
|
3
|
+
import { useContext as v } from "react";
|
|
4
|
+
import p from "../icons/index.js";
|
|
5
|
+
import w from "../buttons/button_container/index.js";
|
|
6
|
+
import z from "../buttons/Button.js";
|
|
6
7
|
import '../assets/button.css';/* empty css */
|
|
7
|
-
import
|
|
8
|
-
const
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
}
|
|
8
|
+
import B from "./helpers.js";
|
|
9
|
+
const E = (t, e) => e || (t ? /* @__PURE__ */ r.jsx(p, { name: t, color: "#000", size: 16 }) : null), P = ({
|
|
10
|
+
customClass: t,
|
|
11
|
+
headerColored: e = !0
|
|
12
|
+
}) => {
|
|
13
|
+
let l = `panel-header ${t ?? ""}`;
|
|
14
|
+
return e || (l += " -uncolored"), l;
|
|
15
|
+
}, L = (t) => {
|
|
16
|
+
const e = I.c(28);
|
|
17
|
+
let l, i, o, a, c, n, s;
|
|
18
|
+
if (e[0] !== t) {
|
|
19
|
+
const {
|
|
20
|
+
titleIcon: g,
|
|
21
|
+
icon: N,
|
|
22
|
+
title: T,
|
|
23
|
+
children: F,
|
|
24
|
+
customClass: R,
|
|
25
|
+
headerColored: k,
|
|
26
|
+
styleForTitle: $,
|
|
27
|
+
customClassForTitle: b,
|
|
28
|
+
...y
|
|
29
|
+
} = t;
|
|
30
|
+
s = g, o = N, n = T, l = F, c = $, i = b, a = y, e[0] = t, e[1] = l, e[2] = i, e[3] = o, e[4] = a, e[5] = c, e[6] = n, e[7] = s;
|
|
31
|
+
} else
|
|
32
|
+
l = e[1], i = e[2], o = e[3], a = e[4], c = e[5], n = e[6], s = e[7];
|
|
12
33
|
const {
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
icon: /* @__PURE__ */ o.jsx(l, { name: d ? "up" : "down", size: 16 })
|
|
35
|
-
}
|
|
36
|
-
) }),
|
|
37
|
-
s
|
|
38
|
-
] });
|
|
34
|
+
toggleable: h,
|
|
35
|
+
handlerToggleable: j,
|
|
36
|
+
opened: C
|
|
37
|
+
} = v(B);
|
|
38
|
+
let m;
|
|
39
|
+
e[8] !== t ? (m = P(t), e[8] = t, e[9] = m) : m = e[9];
|
|
40
|
+
let u;
|
|
41
|
+
e[10] !== o || e[11] !== s ? (u = (o || s) && /* @__PURE__ */ r.jsx("div", { className: `${o !== null || s !== null ? "icon-left-panel" : ""}`, children: E(s, o) }), e[10] = o, e[11] = s, e[12] = u) : u = e[12];
|
|
42
|
+
let f;
|
|
43
|
+
e[13] !== i || e[14] !== c || e[15] !== n ? (f = n && /* @__PURE__ */ r.jsx("h1", { className: `title ${i ?? ""}`, style: c, children: n }), e[13] = i, e[14] = c, e[15] = n, e[16] = f) : f = e[16];
|
|
44
|
+
let d;
|
|
45
|
+
e[17] !== j || e[18] !== C || e[19] !== h ? (d = h && /* @__PURE__ */ r.jsx(w, { position: "right", children: /* @__PURE__ */ r.jsx(z, { boxShadow: !1, transparent: !0, onClick: () => {
|
|
46
|
+
j();
|
|
47
|
+
}, icon: /* @__PURE__ */ r.jsx(p, { name: C ? "up" : "down", size: 16 }) }) }), e[17] = j, e[18] = C, e[19] = h, e[20] = d) : d = e[20];
|
|
48
|
+
let x;
|
|
49
|
+
return e[21] !== l || e[22] !== a || e[23] !== m || e[24] !== u || e[25] !== f || e[26] !== d ? (x = /* @__PURE__ */ r.jsxs("div", { className: m, ...a, children: [
|
|
50
|
+
u,
|
|
51
|
+
f,
|
|
52
|
+
d,
|
|
53
|
+
l
|
|
54
|
+
] }), e[21] = l, e[22] = a, e[23] = m, e[24] = u, e[25] = f, e[26] = d, e[27] = x) : x = e[27], x;
|
|
39
55
|
};
|
|
40
56
|
export {
|
|
41
|
-
|
|
57
|
+
L as default
|
|
42
58
|
};
|
package/lib/panel/InfoPanel.js
CHANGED
|
@@ -1,7 +1,12 @@
|
|
|
1
|
-
import { j as
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
|
|
1
|
+
import { j as r } from "../chunks/jsx-runtime.D1SHvdVE.js";
|
|
2
|
+
import { c as l } from "../chunks/compiler-runtime.Cu50tn6L.js";
|
|
3
|
+
import m from "./Default.js";
|
|
4
|
+
import s from "../internals/colorStyles.js";
|
|
5
|
+
const c = (e) => {
|
|
6
|
+
const t = l.c(2);
|
|
7
|
+
let o;
|
|
8
|
+
return t[0] !== e ? (o = /* @__PURE__ */ r.jsx(m, { ...e, colorStyle: s.INFO }), t[0] = e, t[1] = o) : o = t[1], o;
|
|
9
|
+
};
|
|
5
10
|
export {
|
|
6
|
-
|
|
11
|
+
c as default
|
|
7
12
|
};
|
|
@@ -1,7 +1,12 @@
|
|
|
1
|
-
import { j as
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
|
|
1
|
+
import { j as e } from "../chunks/jsx-runtime.D1SHvdVE.js";
|
|
2
|
+
import { c as m } from "../chunks/compiler-runtime.Cu50tn6L.js";
|
|
3
|
+
import l from "./Default.js";
|
|
4
|
+
import i from "../internals/colorStyles.js";
|
|
5
|
+
const c = (r) => {
|
|
6
|
+
const t = m.c(2);
|
|
7
|
+
let o;
|
|
8
|
+
return t[0] !== r ? (o = /* @__PURE__ */ e.jsx(l, { ...r, colorStyle: i.PRIMARY }), t[0] = r, t[1] = o) : o = t[1], o;
|
|
9
|
+
};
|
|
5
10
|
export {
|
|
6
|
-
|
|
11
|
+
c as default
|
|
7
12
|
};
|
|
@@ -1,7 +1,12 @@
|
|
|
1
|
-
import { j as
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
|
|
1
|
+
import { j as r } from "../chunks/jsx-runtime.D1SHvdVE.js";
|
|
2
|
+
import { c as l } from "../chunks/compiler-runtime.Cu50tn6L.js";
|
|
3
|
+
import m from "./Default.js";
|
|
4
|
+
import s from "../internals/colorStyles.js";
|
|
5
|
+
const n = (e) => {
|
|
6
|
+
const t = l.c(2);
|
|
7
|
+
let o;
|
|
8
|
+
return t[0] !== e ? (o = /* @__PURE__ */ r.jsx(m, { ...e, colorStyle: s.SUCCESS }), t[0] = e, t[1] = o) : o = t[1], o;
|
|
9
|
+
};
|
|
5
10
|
export {
|
|
6
|
-
|
|
11
|
+
n as default
|
|
7
12
|
};
|
package/lib/panel/ToolBar.js
CHANGED
|
@@ -1,6 +1,19 @@
|
|
|
1
|
-
import { j as
|
|
2
|
-
import
|
|
3
|
-
|
|
1
|
+
import { j as l } from "../chunks/jsx-runtime.D1SHvdVE.js";
|
|
2
|
+
import { c as a } from "../chunks/compiler-runtime.Cu50tn6L.js";
|
|
3
|
+
import m from "../toolbar/index.js";
|
|
4
|
+
const p = (s) => {
|
|
5
|
+
const o = a.c(3), {
|
|
6
|
+
children: e
|
|
7
|
+
} = s;
|
|
8
|
+
let t;
|
|
9
|
+
o[0] === Symbol.for("react.memo_cache_sentinel") ? (t = {
|
|
10
|
+
width: "auto",
|
|
11
|
+
backgroundColor: "transparent",
|
|
12
|
+
border: 0
|
|
13
|
+
}, o[0] = t) : t = o[0];
|
|
14
|
+
let r;
|
|
15
|
+
return o[1] !== e ? (r = /* @__PURE__ */ l.jsx(m, { style: t, children: e }), o[1] = e, o[2] = r) : r = o[2], r;
|
|
16
|
+
};
|
|
4
17
|
export {
|
|
5
|
-
|
|
18
|
+
p as default
|
|
6
19
|
};
|
|
@@ -1,7 +1,12 @@
|
|
|
1
|
-
import { j as
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
|
|
1
|
+
import { j as e } from "../chunks/jsx-runtime.D1SHvdVE.js";
|
|
2
|
+
import { c as l } from "../chunks/compiler-runtime.Cu50tn6L.js";
|
|
3
|
+
import m from "./Default.js";
|
|
4
|
+
import i from "../internals/colorStyles.js";
|
|
5
|
+
const c = (r) => {
|
|
6
|
+
const t = l.c(2);
|
|
7
|
+
let o;
|
|
8
|
+
return t[0] !== r ? (o = /* @__PURE__ */ e.jsx(m, { ...r, colorStyle: i.WARNING }), t[0] = r, t[1] = o) : o = t[1], o;
|
|
9
|
+
};
|
|
5
10
|
export {
|
|
6
|
-
|
|
11
|
+
c as default
|
|
7
12
|
};
|
package/lib/panel/helpers.js
CHANGED
|
@@ -1,12 +1,15 @@
|
|
|
1
1
|
import a from "react";
|
|
2
|
-
function
|
|
2
|
+
function M(o, t) {
|
|
3
3
|
if (t < 0) return 0;
|
|
4
4
|
if (t > 1) return 1;
|
|
5
|
-
const {
|
|
5
|
+
const {
|
|
6
|
+
scrollHeight: e,
|
|
7
|
+
clientHeight: r
|
|
8
|
+
} = o, n = e - r, H = Math.round(e * t), c = Math.round(n - n * 0.3);
|
|
6
9
|
return Math.min(H, c);
|
|
7
10
|
}
|
|
8
|
-
const
|
|
11
|
+
const h = a.createContext({});
|
|
9
12
|
export {
|
|
10
|
-
|
|
11
|
-
|
|
13
|
+
h as default,
|
|
14
|
+
M as getCurrentThreshold
|
|
12
15
|
};
|
|
@@ -4,11 +4,11 @@ const a = (e) => {
|
|
|
4
4
|
return n && n[e] ? n[e] : [];
|
|
5
5
|
}, c = (e, n) => e.some((t) => t.codigo === n), i = (e, n, t) => {
|
|
6
6
|
for (let r = 0; r < e.length; r += 1) {
|
|
7
|
-
const
|
|
8
|
-
if (
|
|
9
|
-
return c(
|
|
10
|
-
if (
|
|
11
|
-
if (i(
|
|
7
|
+
const s = e[r];
|
|
8
|
+
if (s.codigo === n && s.permissoes.length > 0)
|
|
9
|
+
return c(s.permissoes, t);
|
|
10
|
+
if (s.itens.length > 0) {
|
|
11
|
+
if (i(s.itens, n, t)) return !0;
|
|
12
12
|
if (r === e.length - 1) return !1;
|
|
13
13
|
}
|
|
14
14
|
}
|
|
@@ -17,18 +17,22 @@ const a = (e) => {
|
|
|
17
17
|
if (!e) return !0;
|
|
18
18
|
const n = Array.isArray(e) ? e : [e];
|
|
19
19
|
for (let t = 0; t < n.length; t += 1) {
|
|
20
|
-
const {
|
|
21
|
-
|
|
20
|
+
const {
|
|
21
|
+
module: r,
|
|
22
|
+
feature: s,
|
|
23
|
+
operation: o
|
|
24
|
+
} = n[t];
|
|
25
|
+
if (i(a(r), s, o)) return !0;
|
|
22
26
|
}
|
|
23
27
|
return !1;
|
|
24
28
|
}, d = (e, n) => {
|
|
25
29
|
const t = l(n), r = n && !Array.isArray(n) ? [n] : n;
|
|
26
30
|
if (r && r[0].onDenied && !e.includes(r[0].onDenied))
|
|
27
31
|
throw new Error("in property onDenied from permissionAttr it`s not a valid option. Look for valid options in the component documentation.");
|
|
28
|
-
const
|
|
29
|
-
return e.forEach((
|
|
30
|
-
o
|
|
31
|
-
}),
|
|
32
|
+
const s = {};
|
|
33
|
+
return e.forEach((o) => {
|
|
34
|
+
s[o] = t ? !1 : o === r?.[0].onDenied;
|
|
35
|
+
}), s;
|
|
32
36
|
}, f = {
|
|
33
37
|
disabled: "disabled",
|
|
34
38
|
unvisible: "unvisible",
|
|
@@ -1,7 +1,14 @@
|
|
|
1
|
-
import { j as
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import { j as m } from "../chunks/jsx-runtime.D1SHvdVE.js";
|
|
2
|
+
import { c as p } from "../chunks/compiler-runtime.Cu50tn6L.js";
|
|
3
|
+
import { forwardRef as a } from "react";
|
|
4
|
+
const i = a((s, e) => {
|
|
5
|
+
const t = p.c(3), {
|
|
6
|
+
children: r
|
|
7
|
+
} = s;
|
|
8
|
+
let o;
|
|
9
|
+
return t[0] !== r || t[1] !== e ? (o = /* @__PURE__ */ m.jsx("p", { className: "text", ref: e, children: r }), t[0] = r, t[1] = e, t[2] = o) : o = t[2], o;
|
|
10
|
+
});
|
|
11
|
+
i.displayName = "PopoverText";
|
|
5
12
|
export {
|
|
6
|
-
|
|
13
|
+
i as default
|
|
7
14
|
};
|
|
@@ -1,5 +1,12 @@
|
|
|
1
|
-
import { j as
|
|
2
|
-
|
|
1
|
+
import { j as r } from "../chunks/jsx-runtime.D1SHvdVE.js";
|
|
2
|
+
import { c as i } from "../chunks/compiler-runtime.Cu50tn6L.js";
|
|
3
|
+
const m = (s) => {
|
|
4
|
+
const t = i.c(2), {
|
|
5
|
+
children: o
|
|
6
|
+
} = s;
|
|
7
|
+
let e;
|
|
8
|
+
return t[0] !== o ? (e = /* @__PURE__ */ r.jsx("h1", { className: "title", children: o }), t[0] = o, t[1] = e) : e = t[1], e;
|
|
9
|
+
};
|
|
3
10
|
export {
|
|
4
|
-
|
|
11
|
+
m as default
|
|
5
12
|
};
|
package/lib/popover/index.js
CHANGED
|
@@ -1,59 +1,39 @@
|
|
|
1
|
-
import { j
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import { j } from "../chunks/jsx-runtime.D1SHvdVE.js";
|
|
2
|
+
import { c as b } from "../chunks/compiler-runtime.Cu50tn6L.js";
|
|
3
|
+
import z from "../buttons/Button.js";
|
|
4
|
+
import I from "../icons/index.js";
|
|
4
5
|
import '../assets/button.css';import '../assets/index3.css';/* empty css */
|
|
5
|
-
import { default as
|
|
6
|
-
import { default as
|
|
7
|
-
const
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
customClass: "buttonicon",
|
|
35
|
-
name: n || "information",
|
|
36
|
-
color: s || "gray",
|
|
37
|
-
size: a
|
|
38
|
-
}
|
|
39
|
-
),
|
|
40
|
-
onClick: (d) => {
|
|
41
|
-
d.preventDefault();
|
|
42
|
-
},
|
|
43
|
-
...c,
|
|
44
|
-
children: /* @__PURE__ */ o.jsx(
|
|
45
|
-
"div",
|
|
46
|
-
{
|
|
47
|
-
className: `popovercontainer -${r} ${p}`,
|
|
48
|
-
"data-testid": "popover-container",
|
|
49
|
-
style: l,
|
|
50
|
-
children: t
|
|
51
|
-
}
|
|
52
|
-
)
|
|
53
|
-
}
|
|
54
|
-
);
|
|
6
|
+
import { default as B } from "./PopoverText.js";
|
|
7
|
+
import { default as q } from "./PopoverTitle.js";
|
|
8
|
+
const N = (i) => {
|
|
9
|
+
const o = b.c(25);
|
|
10
|
+
let t, e, f, n, s, c, a, m, p, d;
|
|
11
|
+
o[0] !== i ? ({
|
|
12
|
+
children: t,
|
|
13
|
+
align: c,
|
|
14
|
+
theme: a,
|
|
15
|
+
iconName: f,
|
|
16
|
+
iconSize: m,
|
|
17
|
+
iconColor: p,
|
|
18
|
+
customClass: d,
|
|
19
|
+
style: s,
|
|
20
|
+
customStyle: e,
|
|
21
|
+
...n
|
|
22
|
+
} = i, o[0] = i, o[1] = t, o[2] = e, o[3] = f, o[4] = n, o[5] = s, o[6] = c, o[7] = a, o[8] = m, o[9] = p, o[10] = d) : (t = o[1], e = o[2], f = o[3], n = o[4], s = o[5], c = o[6], a = o[7], m = o[8], p = o[9], d = o[10]);
|
|
23
|
+
const v = c === void 0 ? "left" : c, w = a === void 0 ? "dark" : a, x = m === void 0 ? 16 : m, y = p === void 0 ? "" : p, S = d === void 0 ? "" : d, C = f || "information", h = y || "gray";
|
|
24
|
+
let r;
|
|
25
|
+
o[11] !== x || o[12] !== C || o[13] !== h ? (r = /* @__PURE__ */ j.jsx(I, { customClass: "buttonicon", name: C, color: h, size: x }), o[11] = x, o[12] = C, o[13] = h, o[14] = r) : r = o[14];
|
|
26
|
+
const g = `popovercontainer -${w} ${S}`;
|
|
27
|
+
let l;
|
|
28
|
+
o[15] !== t || o[16] !== e || o[17] !== g ? (l = /* @__PURE__ */ j.jsx("div", { className: g, "data-testid": "popover-container", style: e, children: t }), o[15] = t, o[16] = e, o[17] = g, o[18] = l) : l = o[18];
|
|
29
|
+
let u;
|
|
30
|
+
return o[19] !== v || o[20] !== n || o[21] !== s || o[22] !== l || o[23] !== r ? (u = /* @__PURE__ */ j.jsx(z, { round: !0, dropdown: !0, transparent: !0, tabIndex: -1, boxShadow: !1, iconAlign: "center", dropdownAlign: v, showIconDropdown: !1, customClass: "popover-component", style: s, icon: r, onClick: P, ...n, children: l }), o[19] = v, o[20] = n, o[21] = s, o[22] = l, o[23] = r, o[24] = u) : u = o[24], u;
|
|
31
|
+
};
|
|
32
|
+
function P(i) {
|
|
33
|
+
i.preventDefault();
|
|
34
|
+
}
|
|
55
35
|
export {
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
36
|
+
B as PopoverText,
|
|
37
|
+
q as PopoverTitle,
|
|
38
|
+
N as default
|
|
59
39
|
};
|
package/lib/progress/Bar.js
CHANGED
|
@@ -1,42 +1,51 @@
|
|
|
1
|
-
import { j as
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
1
|
+
import { j as h } from "../chunks/jsx-runtime.D1SHvdVE.js";
|
|
2
|
+
import { c as g } from "../chunks/compiler-runtime.Cu50tn6L.js";
|
|
3
|
+
const v = 1e3, b = ({
|
|
4
|
+
max: t = 100,
|
|
5
|
+
min: e = 0,
|
|
6
|
+
value: a = 0
|
|
7
|
+
}) => {
|
|
8
|
+
const i = (a - e) / (t - e) * 100;
|
|
9
|
+
return Math.round(i * v) / v;
|
|
10
|
+
}, x = (t) => {
|
|
11
|
+
let e = "bar";
|
|
12
|
+
return t.customClass && (e += `${t.customClass}`), t.type && (e += ` -${t.type}`), t.effect && (e += " -effect"), t.animated && (e += " -animated"), t.indeterminate && (e += " -indeterminate"), e;
|
|
13
|
+
}, y = (t) => {
|
|
14
|
+
let e = t.label;
|
|
15
|
+
return t.label || (e = `${b(t)}%`), /* @__PURE__ */ h.jsx("span", { className: "progressbar-label ", children: e });
|
|
16
|
+
}, $ = (t) => {
|
|
12
17
|
const {
|
|
13
|
-
indeterminate:
|
|
18
|
+
indeterminate: e,
|
|
14
19
|
indeterminateDelay: a = 1,
|
|
15
|
-
indeterminateDuration:
|
|
16
|
-
progressWidth:
|
|
20
|
+
indeterminateDuration: i = 1.5,
|
|
21
|
+
progressWidth: c = "100%",
|
|
17
22
|
height: r = "100%"
|
|
18
|
-
} =
|
|
19
|
-
return
|
|
20
|
-
width:
|
|
23
|
+
} = t;
|
|
24
|
+
return e ? {
|
|
25
|
+
width: c,
|
|
21
26
|
height: r,
|
|
22
|
-
animationDuration: `${
|
|
27
|
+
animationDuration: `${i}s`,
|
|
23
28
|
animationDelay: `${a}s`
|
|
24
|
-
} : {
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
);
|
|
29
|
+
} : {
|
|
30
|
+
width: `${b(t)}%`,
|
|
31
|
+
height: r
|
|
32
|
+
};
|
|
33
|
+
}, j = (t) => {
|
|
34
|
+
const e = g.c(14), {
|
|
35
|
+
value: a,
|
|
36
|
+
min: i,
|
|
37
|
+
max: c,
|
|
38
|
+
showLabel: r
|
|
39
|
+
} = t, o = a === void 0 ? 0 : a, u = i === void 0 ? 0 : i, d = c === void 0 ? 100 : c, f = r === void 0 ? !0 : r;
|
|
40
|
+
let n;
|
|
41
|
+
e[0] !== t ? (n = x(t), e[0] = t, e[1] = n) : n = e[1];
|
|
42
|
+
let l;
|
|
43
|
+
e[2] !== t ? (l = $(t), e[2] = t, e[3] = l) : l = e[3];
|
|
44
|
+
let s;
|
|
45
|
+
e[4] !== t || e[5] !== f ? (s = f && !t.indeterminate && y(t), e[4] = t, e[5] = f, e[6] = s) : s = e[6];
|
|
46
|
+
let m;
|
|
47
|
+
return e[7] !== d || e[8] !== u || e[9] !== n || e[10] !== l || e[11] !== s || e[12] !== o ? (m = /* @__PURE__ */ h.jsx("div", { role: "progressbar", className: n, style: l, "aria-valuenow": o, "aria-valuemin": u, "aria-valuemax": d, children: s }), e[7] = d, e[8] = u, e[9] = n, e[10] = l, e[11] = s, e[12] = o, e[13] = m) : m = e[13], m;
|
|
39
48
|
};
|
|
40
49
|
export {
|
|
41
|
-
|
|
50
|
+
j as default
|
|
42
51
|
};
|
package/lib/progress/index.js
CHANGED
|
@@ -1,21 +1,26 @@
|
|
|
1
|
-
import { j as
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
);
|
|
1
|
+
import { j as h } from "../chunks/jsx-runtime.D1SHvdVE.js";
|
|
2
|
+
import { c as f } from "../chunks/compiler-runtime.Cu50tn6L.js";
|
|
3
|
+
import x from "./Bar.js";
|
|
4
|
+
import '../assets/index9.css';const p = (s) => {
|
|
5
|
+
const t = f.c(10), {
|
|
6
|
+
style: o,
|
|
7
|
+
children: l,
|
|
8
|
+
width: m,
|
|
9
|
+
height: d
|
|
10
|
+
} = s, c = m === void 0 ? "100%" : m, n = d === void 0 ? "24px" : d;
|
|
11
|
+
let r;
|
|
12
|
+
t[0] !== n || t[1] !== o || t[2] !== c ? (r = {
|
|
13
|
+
...o,
|
|
14
|
+
width: c,
|
|
15
|
+
height: n
|
|
16
|
+
}, t[0] = n, t[1] = o, t[2] = c, t[3] = r) : r = t[3];
|
|
17
|
+
const a = r;
|
|
18
|
+
let e;
|
|
19
|
+
t[4] !== l || t[5] !== s ? (e = l || /* @__PURE__ */ h.jsx(x, { ...s }), t[4] = l, t[5] = s, t[6] = e) : e = t[6];
|
|
20
|
+
let i;
|
|
21
|
+
return t[7] !== a || t[8] !== e ? (i = /* @__PURE__ */ h.jsx("div", { className: "container-progress", style: a, children: e }), t[7] = a, t[8] = e, t[9] = i) : i = t[9], i;
|
|
17
22
|
};
|
|
18
23
|
export {
|
|
19
|
-
|
|
20
|
-
|
|
24
|
+
x as Bar,
|
|
25
|
+
p as default
|
|
21
26
|
};
|