linear-react-components-ui 1.1.26-beta.4 → 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 +10 -10
- 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.Da--18GT.js → index.Df3kt2LQ.js} +179 -181
- package/lib/chunks/{jsx-runtime.gtoSnx-V.js → jsx-runtime.C7wFtzyj.js} +2 -2
- package/lib/chunks/lodash.CIAK_hAg.js +3684 -0
- package/lib/chunks/moment.DMLRxgRE.js +2589 -0
- package/lib/chunks/{tabs.BP3DB7Gx.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 +7 -7
- 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 +44 -44
- 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 +3 -3
- 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.iA-fVKOP.js +0 -89
- package/lib/chunks/v1.CDXKvGzE.js +0 -41
- /package/lib/assets/{index29.css → progressbar.css} +0 -0
|
@@ -1,62 +1,62 @@
|
|
|
1
|
-
import { j as t } from "../chunks/jsx-runtime.
|
|
2
|
-
import { useState as
|
|
3
|
-
import
|
|
1
|
+
import { j as t } from "../chunks/jsx-runtime.C7wFtzyj.js";
|
|
2
|
+
import { useState as B, useRef as V, useContext as X, useEffect as Y, Fragment as Z } from "react";
|
|
3
|
+
import { _ as w } from "../chunks/lodash.CIAK_hAg.js";
|
|
4
4
|
import c from "../icons/index.js";
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import { actionsOnPermissionDenied as
|
|
9
|
-
const
|
|
5
|
+
import ee, { TooltipContext as te } from "../internals/withTooltip.js";
|
|
6
|
+
import ne from "../spinner/index.js";
|
|
7
|
+
import se from "../dropdown/withDropdown.js";
|
|
8
|
+
import { actionsOnPermissionDenied as ie, OPTIONS_ON_DENIED as P } from "../permissionValidations.js";
|
|
9
|
+
const oe = ({
|
|
10
10
|
dropdown: n,
|
|
11
|
-
onClick:
|
|
12
|
-
disabled:
|
|
11
|
+
onClick: s,
|
|
12
|
+
disabled: D,
|
|
13
13
|
iconName: f,
|
|
14
14
|
icon: r,
|
|
15
|
-
targetRef:
|
|
16
|
-
tabIndex:
|
|
17
|
-
isLoading:
|
|
18
|
-
label:
|
|
15
|
+
targetRef: b,
|
|
16
|
+
tabIndex: g,
|
|
17
|
+
isLoading: O,
|
|
18
|
+
label: S,
|
|
19
19
|
showDropdown: l,
|
|
20
|
-
getDropdownPopup:
|
|
21
|
-
isDropdownOpened:
|
|
22
|
-
showIconDropdown:
|
|
23
|
-
content:
|
|
24
|
-
style:
|
|
20
|
+
getDropdownPopup: j,
|
|
21
|
+
isDropdownOpened: T,
|
|
22
|
+
showIconDropdown: _ = !0,
|
|
23
|
+
content: C,
|
|
24
|
+
style: F,
|
|
25
25
|
toggleable: m,
|
|
26
|
-
activeIconColor:
|
|
27
|
-
iconStyle:
|
|
28
|
-
visible:
|
|
29
|
-
customClass:
|
|
30
|
-
className:
|
|
31
|
-
size:
|
|
32
|
-
iconAlign:
|
|
33
|
-
boxShadow:
|
|
34
|
-
transparent:
|
|
26
|
+
activeIconColor: v,
|
|
27
|
+
iconStyle: N,
|
|
28
|
+
visible: k = !0,
|
|
29
|
+
customClass: z,
|
|
30
|
+
className: A,
|
|
31
|
+
size: y = "default",
|
|
32
|
+
iconAlign: E = "left",
|
|
33
|
+
boxShadow: M = !0,
|
|
34
|
+
transparent: K,
|
|
35
35
|
round: p,
|
|
36
|
-
permissionAttr:
|
|
37
|
-
skeletonize:
|
|
38
|
-
errorMessage:
|
|
39
|
-
isFloatMenu:
|
|
40
|
-
dropdownAlign:
|
|
41
|
-
customClassForDropdown:
|
|
36
|
+
permissionAttr: R,
|
|
37
|
+
skeletonize: W,
|
|
38
|
+
errorMessage: re,
|
|
39
|
+
isFloatMenu: le,
|
|
40
|
+
dropdownAlign: ue,
|
|
41
|
+
customClassForDropdown: ae,
|
|
42
42
|
buttonRef: d,
|
|
43
|
-
handlerClose:
|
|
44
|
-
onDeniedText:
|
|
45
|
-
tooltip:
|
|
46
|
-
tooltipWidth:
|
|
47
|
-
tooltipPosition:
|
|
48
|
-
...
|
|
43
|
+
handlerClose: ce,
|
|
44
|
+
onDeniedText: q = "Permissão Negada! Consulte o Administrador do sistema.",
|
|
45
|
+
tooltip: fe,
|
|
46
|
+
tooltipWidth: me,
|
|
47
|
+
tooltipPosition: pe,
|
|
48
|
+
...G
|
|
49
49
|
}) => {
|
|
50
|
-
const
|
|
51
|
-
${
|
|
52
|
-
${
|
|
50
|
+
const H = [P.disabled, P.unvisible], [u, h] = B(!1), [$] = B(ie(H, R)), i = V(null), x = "rgb(193, 193, 193)", a = $.disabled, o = !!$.disabled || D, { handlerSetOnDeniedText: J } = X(te), L = () => `button-component ${A}
|
|
51
|
+
${z}
|
|
52
|
+
${K && "-transparent"}
|
|
53
53
|
${o && "-disabled"}
|
|
54
|
-
${
|
|
54
|
+
${y && `-${y}`}
|
|
55
55
|
${n && !p && "icon-right"}
|
|
56
56
|
${n && p && "icon-center"}
|
|
57
|
-
${
|
|
58
|
-
${
|
|
59
|
-
${p && "-round"}`,
|
|
57
|
+
${E && !n && `icon-${E}`}
|
|
58
|
+
${M ? "" : "-shadowsdisabled"}
|
|
59
|
+
${p && "-round"}`, I = (e) => /* @__PURE__ */ t.jsx(
|
|
60
60
|
c,
|
|
61
61
|
{
|
|
62
62
|
name: "padlock",
|
|
@@ -65,14 +65,14 @@ const re = ({
|
|
|
65
65
|
color: x,
|
|
66
66
|
style: e
|
|
67
67
|
}
|
|
68
|
-
),
|
|
69
|
-
let e =
|
|
70
|
-
if (o && (e = { ...e, fill: x }), n &&
|
|
71
|
-
const
|
|
68
|
+
), Q = () => {
|
|
69
|
+
let e = N;
|
|
70
|
+
if (o && (e = { ...e, fill: x }), n && _) {
|
|
71
|
+
const U = f || (T ? "mini_up" : "mini_down");
|
|
72
72
|
return /* @__PURE__ */ t.jsx(
|
|
73
73
|
c,
|
|
74
74
|
{
|
|
75
|
-
name:
|
|
75
|
+
name: U,
|
|
76
76
|
size: 16,
|
|
77
77
|
customClass: "dropdown-icon",
|
|
78
78
|
pointerEvents: "none",
|
|
@@ -80,51 +80,50 @@ const re = ({
|
|
|
80
80
|
}
|
|
81
81
|
);
|
|
82
82
|
}
|
|
83
|
-
return r ? a ?
|
|
83
|
+
return r ? a ? I(e) : D ? /* @__PURE__ */ t.jsx(c, { ...r.props, color: x }) : r : !r && a ? I(e) : f ? /* @__PURE__ */ t.jsx(
|
|
84
84
|
c,
|
|
85
85
|
{
|
|
86
86
|
name: f,
|
|
87
87
|
size: 16,
|
|
88
|
-
color: m &&
|
|
88
|
+
color: m && v && u && v || "#676464",
|
|
89
89
|
pointerEvents: "none",
|
|
90
90
|
style: e
|
|
91
91
|
}
|
|
92
92
|
) : null;
|
|
93
93
|
};
|
|
94
|
-
return
|
|
95
|
-
a &&
|
|
96
|
-
}, [a]), !
|
|
94
|
+
return Y(() => {
|
|
95
|
+
a && J(q);
|
|
96
|
+
}, [a]), !k || $.unvisible ? null : /* @__PURE__ */ t.jsxs(Z, { children: [
|
|
97
97
|
/* @__PURE__ */ t.jsxs(
|
|
98
98
|
"button",
|
|
99
99
|
{
|
|
100
|
-
...
|
|
101
|
-
style:
|
|
100
|
+
...G,
|
|
101
|
+
style: F,
|
|
102
102
|
onKeyDown: (e) => {
|
|
103
|
-
var D;
|
|
104
103
|
if (e && (e.key === "Enter" || e.key === " ")) {
|
|
105
104
|
if (e.preventDefault(), e.stopPropagation(), o) return;
|
|
106
|
-
|
|
105
|
+
s && i?.current?.click(), n && l && l(), s && m && h(!u);
|
|
107
106
|
}
|
|
108
107
|
},
|
|
109
108
|
onClick: (e) => {
|
|
110
|
-
e.preventDefault(), !o && (
|
|
109
|
+
e.preventDefault(), !o && (s && s(e), n && l && l(), s && m && h(!u));
|
|
111
110
|
},
|
|
112
|
-
className: `${
|
|
111
|
+
className: `${L()} ${u ? "-toggleable" : ""} ${W ? "-skeletonized" : ""}`,
|
|
113
112
|
ref: (e) => {
|
|
114
|
-
d && (
|
|
113
|
+
d && (w.isFunction(d) ? d(e) : i.current = e), b && b(e), i.current = e;
|
|
115
114
|
},
|
|
116
|
-
tabIndex: o ? -1 :
|
|
115
|
+
tabIndex: o ? -1 : g,
|
|
117
116
|
children: [
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
117
|
+
C,
|
|
118
|
+
Q(),
|
|
119
|
+
S || "",
|
|
120
|
+
O && /* @__PURE__ */ t.jsx("div", { className: "spinnercontainer", children: /* @__PURE__ */ t.jsx(ne, { align: "none", delayTime: 0 }) })
|
|
122
121
|
]
|
|
123
122
|
}
|
|
124
123
|
),
|
|
125
|
-
n &&
|
|
124
|
+
n && i.current && j && j(i.current)
|
|
126
125
|
] });
|
|
127
|
-
}, he =
|
|
126
|
+
}, he = se(ee(oe));
|
|
128
127
|
export {
|
|
129
128
|
he as default
|
|
130
129
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { j as o } from "../chunks/jsx-runtime.
|
|
1
|
+
import { j as o } from "../chunks/jsx-runtime.C7wFtzyj.js";
|
|
2
2
|
import r from "./DangerButton.js";
|
|
3
3
|
import n from "../icons/index.js";
|
|
4
4
|
const a = ({ icon: i, ...t }) => /* @__PURE__ */ o.jsx(r, { ...t, icon: /* @__PURE__ */ o.jsx(n, { name: "bin", color: "white" }) });
|
package/lib/calendar/base/Day.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { j as a } from "../../chunks/jsx-runtime.
|
|
1
|
+
import { j as a } from "../../chunks/jsx-runtime.C7wFtzyj.js";
|
|
2
2
|
import { useContext as e } from "react";
|
|
3
3
|
import { CalendarContext as r, getDayContainerCssClass as m, getDayCssClass as n, dateIsEquals as i } from "./helpers.js";
|
|
4
4
|
import l from "../../buttons/Button.js";
|
|
5
5
|
import "../../icons/index.js";
|
|
6
6
|
import '../../assets/button.css';/* empty css */
|
|
7
|
-
import { v as C } from "../../chunks/v1.
|
|
7
|
+
import { v as C } from "../../chunks/v1.Ds1rkxUj.js";
|
|
8
8
|
const h = ({ currentDate: o, day: t }) => {
|
|
9
9
|
const { handleDateChange: s } = e(r);
|
|
10
10
|
return /* @__PURE__ */ a.jsx("div", { className: m(o, t), children: /* @__PURE__ */ a.jsx(
|
|
@@ -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
|
import d from "./Week.js";
|
|
3
3
|
import { getStartOfWeek as n, getStartOfMonth as f } from "./helpers.js";
|
|
4
4
|
const x = ({ monthRef: a, currentDate: r }) => {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
import s from "moment";
|
|
1
|
+
import u from "react";
|
|
2
|
+
import { h as s } from "../../chunks/moment.DMLRxgRE.js";
|
|
3
3
|
s.locale("pt-br");
|
|
4
4
|
function r(e, t) {
|
|
5
5
|
return e.startOf(t);
|
|
@@ -24,7 +24,7 @@ function M(e) {
|
|
|
24
24
|
function o(e, t) {
|
|
25
25
|
return s(e.format("YYYY-MM-DD")).isSame(t.format("YYYY-MM-DD"));
|
|
26
26
|
}
|
|
27
|
-
function
|
|
27
|
+
function m(e, t) {
|
|
28
28
|
return e.format("MM") !== t.format("MM");
|
|
29
29
|
}
|
|
30
30
|
function Y() {
|
|
@@ -81,28 +81,28 @@ function c({
|
|
|
81
81
|
let n = `calendar-component ${a}`;
|
|
82
82
|
return n += ` -${d}`, n += e ? " -unpadding" : "", n += t ? " -draw-grid-lines" : "", n;
|
|
83
83
|
}
|
|
84
|
-
function
|
|
84
|
+
function h(e) {
|
|
85
85
|
return s(e).format() !== "Invalid date" ? e : s();
|
|
86
86
|
}
|
|
87
|
-
function
|
|
87
|
+
function L(e, t) {
|
|
88
88
|
let a = "monthday ";
|
|
89
89
|
return a += o(e, t) ? "-selectedday " : "", a;
|
|
90
90
|
}
|
|
91
91
|
function D(e, t) {
|
|
92
92
|
let a = "daybutton ";
|
|
93
|
-
return a += o(s(), t) ? "-nowday " : "", a +=
|
|
93
|
+
return a += o(s(), t) ? "-nowday " : "", a += m(e, t) ? "-outmonth" : "", a;
|
|
94
94
|
}
|
|
95
|
-
const y =
|
|
95
|
+
const y = u.createContext({});
|
|
96
96
|
export {
|
|
97
97
|
y as CalendarContext,
|
|
98
98
|
o as dateIsEquals,
|
|
99
99
|
l as dayNames,
|
|
100
|
-
|
|
100
|
+
m as dayOutOfCurrentMonth,
|
|
101
101
|
c as getCalendarCssClass,
|
|
102
|
-
|
|
102
|
+
L as getDayContainerCssClass,
|
|
103
103
|
D as getDayCssClass,
|
|
104
104
|
Y as getPtBrLocale,
|
|
105
105
|
M as getStartOfMonth,
|
|
106
106
|
f as getStartOfWeek,
|
|
107
|
-
|
|
107
|
+
h as validDate
|
|
108
108
|
};
|
|
@@ -1,105 +1,103 @@
|
|
|
1
|
-
import { j as
|
|
2
|
-
import { useRef as
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
1
|
+
import { j as e } from "../../chunks/jsx-runtime.C7wFtzyj.js";
|
|
2
|
+
import { useRef as h, useState as Y, useEffect as p } from "react";
|
|
3
|
+
import { h as B } from "../../chunks/moment.DMLRxgRE.js";
|
|
4
|
+
import G from "./Month.js";
|
|
5
|
+
import C from "../../buttons/Button.js";
|
|
6
6
|
import "../../icons/index.js";
|
|
7
7
|
import '../../assets/gridlayout.css';import '../../assets/button.css';import '../../assets/index11.css';/* empty css */
|
|
8
8
|
/* empty css */
|
|
9
|
-
import
|
|
10
|
-
import { validDate as
|
|
11
|
-
import { v as
|
|
12
|
-
const
|
|
9
|
+
import O from "../../gridlayout/GridCol.js";
|
|
10
|
+
import { validDate as w, getCalendarCssClass as P, dayNames as U, CalendarContext as _ } from "./helpers.js";
|
|
11
|
+
import { v as x } from "../../chunks/v1.Ds1rkxUj.js";
|
|
12
|
+
const F = ["ArrowUp", "ArrowRight", "ArrowDown", "ArrowLeft"], X = (g) => {
|
|
13
13
|
const {
|
|
14
|
-
currentDate:
|
|
15
|
-
onDateChange:
|
|
16
|
-
drawGridLines:
|
|
17
|
-
colorStyle:
|
|
18
|
-
unpadding:
|
|
19
|
-
customClass:
|
|
20
|
-
gridLayout:
|
|
21
|
-
currentDateButton:
|
|
22
|
-
calendarContainer:
|
|
23
|
-
} =
|
|
24
|
-
|
|
25
|
-
},
|
|
26
|
-
const t =
|
|
14
|
+
currentDate: i = B(),
|
|
15
|
+
onDateChange: l,
|
|
16
|
+
drawGridLines: v = !1,
|
|
17
|
+
colorStyle: y,
|
|
18
|
+
unpadding: D = !1,
|
|
19
|
+
customClass: j,
|
|
20
|
+
gridLayout: d,
|
|
21
|
+
currentDateButton: A,
|
|
22
|
+
calendarContainer: M
|
|
23
|
+
} = g, o = h(null), a = h(null), [s, c] = Y(w(i)), N = (t) => {
|
|
24
|
+
l && l(t), c(t);
|
|
25
|
+
}, E = () => {
|
|
26
|
+
const t = s.clone();
|
|
27
27
|
c(t.subtract(1, "month"));
|
|
28
|
-
},
|
|
29
|
-
const t =
|
|
28
|
+
}, b = () => {
|
|
29
|
+
const t = s.clone();
|
|
30
30
|
c(t.add(1, "month"));
|
|
31
|
-
},
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
C && C.id === i.id && (s = Y);
|
|
31
|
+
}, L = (t) => {
|
|
32
|
+
const k = t.target, r = o.current?.getElementsByClassName("daybutton");
|
|
33
|
+
let n = 0;
|
|
34
|
+
r.length && Array.from(r).find((f, S) => {
|
|
35
|
+
f && f.id === k.id && (n = S);
|
|
37
36
|
});
|
|
38
|
-
const
|
|
39
|
-
ArrowUp: r[
|
|
40
|
-
ArrowRight: r[
|
|
41
|
-
ArrowDown: r[
|
|
42
|
-
ArrowLeft: r[
|
|
37
|
+
const u = {
|
|
38
|
+
ArrowUp: r[n - 7],
|
|
39
|
+
ArrowRight: r[n + 1],
|
|
40
|
+
ArrowDown: r[n + 7],
|
|
41
|
+
ArrowLeft: r[n - 1]
|
|
43
42
|
}[t.code];
|
|
44
|
-
|
|
45
|
-
},
|
|
46
|
-
handleDateChange:
|
|
43
|
+
u && u.focus();
|
|
44
|
+
}, R = {
|
|
45
|
+
handleDateChange: N
|
|
47
46
|
};
|
|
48
|
-
|
|
49
|
-
t && t.code &&
|
|
47
|
+
p(() => (M?.(a?.current), c(w(i)), document.addEventListener("keydown", (t) => {
|
|
48
|
+
t && t.code && F.includes(t.code) && a.current && a.current.contains(document.activeElement) && o.current && o.current.contains(document.activeElement) && (L(t), t.stopPropagation(), t.preventDefault());
|
|
50
49
|
}), () => {
|
|
51
50
|
document.removeEventListener("keydown", () => {
|
|
52
51
|
});
|
|
53
|
-
}), []),
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
const h = /* @__PURE__ */ o.jsxs(
|
|
52
|
+
}), []), p(() => {
|
|
53
|
+
const t = o.current?.getElementsByClassName("-selectedday")[0];
|
|
54
|
+
A?.(t.firstChild);
|
|
55
|
+
}, [i]);
|
|
56
|
+
const m = /* @__PURE__ */ e.jsxs(
|
|
59
57
|
"div",
|
|
60
58
|
{
|
|
61
|
-
ref:
|
|
62
|
-
className:
|
|
63
|
-
unpadding:
|
|
64
|
-
drawGridLines:
|
|
65
|
-
customClass:
|
|
66
|
-
colorStyle:
|
|
59
|
+
ref: a,
|
|
60
|
+
className: P({
|
|
61
|
+
unpadding: D,
|
|
62
|
+
drawGridLines: v,
|
|
63
|
+
customClass: j,
|
|
64
|
+
colorStyle: y
|
|
67
65
|
}),
|
|
68
66
|
children: [
|
|
69
|
-
/* @__PURE__ */
|
|
70
|
-
/* @__PURE__ */
|
|
71
|
-
|
|
67
|
+
/* @__PURE__ */ e.jsxs("div", { className: "calendarheader", children: [
|
|
68
|
+
/* @__PURE__ */ e.jsx(
|
|
69
|
+
C,
|
|
72
70
|
{
|
|
73
|
-
id:
|
|
71
|
+
id: x(),
|
|
74
72
|
boxShadow: !1,
|
|
75
73
|
iconName: "arrow_left",
|
|
76
74
|
customClass: "navbutton nav-arrow-left",
|
|
77
75
|
onClick: () => {
|
|
78
|
-
|
|
76
|
+
E();
|
|
79
77
|
}
|
|
80
78
|
}
|
|
81
79
|
),
|
|
82
|
-
/* @__PURE__ */
|
|
83
|
-
/* @__PURE__ */
|
|
84
|
-
|
|
80
|
+
/* @__PURE__ */ e.jsx("span", { className: "monthname", children: s.format("MMMM YYYY") }),
|
|
81
|
+
/* @__PURE__ */ e.jsx(
|
|
82
|
+
C,
|
|
85
83
|
{
|
|
86
|
-
id:
|
|
84
|
+
id: x(),
|
|
87
85
|
boxShadow: !1,
|
|
88
86
|
iconName: "arrow_right",
|
|
89
87
|
customClass: "navbutton nav-arrow-right",
|
|
90
88
|
onClick: () => {
|
|
91
|
-
|
|
89
|
+
b();
|
|
92
90
|
}
|
|
93
91
|
}
|
|
94
92
|
)
|
|
95
93
|
] }),
|
|
96
|
-
/* @__PURE__ */
|
|
97
|
-
/* @__PURE__ */
|
|
94
|
+
/* @__PURE__ */ e.jsx("div", { className: "daynames", children: U().map((t) => /* @__PURE__ */ e.jsx("div", { children: t }, `day-${t}`)) }),
|
|
95
|
+
/* @__PURE__ */ e.jsx(G, { monthRef: o, currentDate: s })
|
|
98
96
|
]
|
|
99
97
|
}
|
|
100
98
|
);
|
|
101
|
-
return /* @__PURE__ */
|
|
99
|
+
return /* @__PURE__ */ e.jsx(_.Provider, { value: R, children: d ? /* @__PURE__ */ e.jsx(O, { customClass: "-withinput", cols: d, children: m }) : m });
|
|
102
100
|
};
|
|
103
101
|
export {
|
|
104
|
-
|
|
102
|
+
X as default
|
|
105
103
|
};
|
package/lib/checkbox/index.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import "../chunks/jsx-runtime.
|
|
1
|
+
import "../chunks/jsx-runtime.C7wFtzyj.js";
|
|
2
2
|
import "react";
|
|
3
3
|
import '../assets/radio.css';import '../assets/skeleton.css';import '../assets/toolbar.css';import '../assets/label.css';import '../assets/panel.css';import '../assets/noPermission.css';import '../assets/button.css';import '../assets/gridlayout.css';/* empty css */
|
|
4
4
|
import "../gridlayout/GridCol.js";
|
|
5
5
|
import "../permissionValidations.js";
|
|
6
|
-
import { C as D } from "../chunks/tabs.
|
|
6
|
+
import { C as D } from "../chunks/tabs.D0L_nVfP.js";
|
|
7
7
|
import "../inputs/errorMessage/index.js";
|
|
8
8
|
import "../icons/index.js";
|
|
9
9
|
import "../buttons/DefaultButton.js";
|
|
@@ -21,10 +21,10 @@ import "../list/helpers.js";
|
|
|
21
21
|
import "../popover/index.js";
|
|
22
22
|
import "../textContent/index.js";
|
|
23
23
|
import "../tabs/MenuTabs.js";
|
|
24
|
-
import "lodash";
|
|
24
|
+
import "../chunks/lodash.CIAK_hAg.js";
|
|
25
25
|
import "../tabs/context.js";
|
|
26
26
|
import "../tabs/tabHelpers.js";
|
|
27
|
-
import "../chunks/index.
|
|
27
|
+
import "../chunks/index.CM1aLH2W.js";
|
|
28
28
|
import "../hint/index.js";
|
|
29
29
|
export {
|
|
30
30
|
D as default
|