linear-react-components-ui 1.1.26-beta.6 → 1.1.26-beta.8
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 +10 -4
- package/lib/alerts/BaseAlert.js +3 -1
- package/lib/alerts/Message.js +91 -64
- package/lib/alerts/withAlert.js +10 -6
- package/lib/avatar/index.js +20 -42
- 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 +25 -59
- 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 +1 -9
- package/lib/calendar/base/index.js +129 -95
- package/lib/checkbox/index.js +5 -4
- package/lib/chunks/compiler-runtime.Cu50tn6L.js +54 -0
- package/lib/chunks/index.aw0XaUkg.js +266 -0
- package/lib/chunks/{jsx-runtime.C7wFtzyj.js → jsx-runtime.D1SHvdVE.js} +106 -108
- package/lib/chunks/tabs.BvKfeA6Y.js +244 -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 +41 -54
- 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 +10 -9
- package/lib/dialog/wizard/progressbar.js +89 -80
- 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 +25 -22
- package/lib/drawer/Header.js +53 -40
- package/lib/dropdown/Popup.js +3 -1
- 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 +17 -38
- package/lib/form/FieldNumber.js +40 -36
- package/lib/form/FieldPeriod.js +90 -59
- package/lib/form/helpers.js +4 -1
- package/lib/form/index.js +55 -67
- package/lib/form/withFieldHOC.js +57 -48
- package/lib/form/withFormSecurity.js +6 -9
- 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 +63 -55
- package/lib/index.js +20 -19
- package/lib/inputs/base/InputTextBase.js +62 -146
- package/lib/inputs/base/Label.js +27 -29
- package/lib/inputs/base/helpers.js +3 -1
- package/lib/inputs/color/index.js +52 -73
- package/lib/inputs/date/Dialog.js +15 -16
- package/lib/inputs/date/Dropdown.js +7 -1
- package/lib/inputs/date/index.js +60 -94
- package/lib/inputs/errorMessage/index.js +21 -13
- package/lib/inputs/file/DefaultFile.js +64 -66
- package/lib/inputs/file/DragDropFile.js +39 -93
- package/lib/inputs/file/File.js +8 -22
- package/lib/inputs/file/FileButtonSettings.js +20 -17
- package/lib/inputs/inputHOC.js +38 -20
- package/lib/inputs/mask/BaseMask.js +44 -23
- 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/multiSelect/ActionButtons.js +35 -46
- package/lib/inputs/multiSelect/Dropdown.js +93 -131
- package/lib/inputs/multiSelect/index.js +167 -125
- 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 +6 -1
- package/lib/inputs/period/PeriodList.js +41 -27
- package/lib/inputs/period/helper.js +5 -1
- package/lib/inputs/period/index.js +118 -240
- package/lib/inputs/search/index.js +95 -71
- package/lib/inputs/select/ActionButtons.js +24 -45
- package/lib/inputs/select/Dropdown.js +38 -87
- package/lib/inputs/select/helper.js +6 -2
- package/lib/inputs/select/index.js +23 -25
- package/lib/inputs/select/multiple/Selecteds.js +23 -19
- package/lib/inputs/select/multiple/index.js +35 -101
- package/lib/inputs/select/simple/index.js +26 -89
- 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 +4 -3
- package/lib/list/Separator.js +8 -3
- package/lib/list/index.js +21 -18
- package/lib/menus/float/MenuItem.js +48 -51
- 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 -109
- package/lib/menus/sidenav/NavSubMenuItem.js +36 -20
- 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 +48 -38
- 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 +4 -1
- package/lib/permissionValidations.js +5 -1
- 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 -32
- 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 -46
- package/lib/tabs/context.js +11 -11
- package/lib/tabs/index.js +69 -64
- package/lib/tabs/tabHelpers.js +9 -7
- 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 +1 -1
- package/lib/treetable/Body.js +25 -26
- package/lib/treetable/Header.js +22 -18
- package/lib/treetable/Row.js +210 -147
- 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 +11 -10
- package/lib/chunks/index.CM1aLH2W.js +0 -205
- package/lib/chunks/tabs.D0L_nVfP.js +0 -245
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { j as W } from "../../../chunks/jsx-runtime.
|
|
1
|
+
import { j as W } from "../../../chunks/jsx-runtime.D1SHvdVE.js";
|
|
2
2
|
import { useState as m, useRef as R, useEffect as F } from "react";
|
|
3
3
|
import { _ as Y } from "../../../chunks/lodash.CIAK_hAg.js";
|
|
4
4
|
import we from "../Dropdown.js";
|
|
@@ -22,7 +22,7 @@ const Le = (i) => {
|
|
|
22
22
|
remoteSearch: k = !1,
|
|
23
23
|
name: N = "",
|
|
24
24
|
undigitable: I,
|
|
25
|
-
searchOnDropdown:
|
|
25
|
+
searchOnDropdown: _ = !1,
|
|
26
26
|
allOptions: a = void 0,
|
|
27
27
|
showClearButton: ie = !1,
|
|
28
28
|
searchNotFoundText: se,
|
|
@@ -34,10 +34,12 @@ const Le = (i) => {
|
|
|
34
34
|
} = i, r = typeof t == "string", o = a ? [{
|
|
35
35
|
[g]: a.idValue,
|
|
36
36
|
[r ? t : t(a.label)]: a.label
|
|
37
|
-
}, ...D] : D, [s, v] = m(o), [c, p] = m(null), [O, u] = m(""), [y, d] = m(!1), [de, L] = m(0), [fe, me] = m(!1), [S, pe] = m(), [A
|
|
37
|
+
}, ...D] : D, [s, v] = m(o), [c, p] = m(null), [O, u] = m(""), [y, d] = m(!1), [de, L] = m(0), [fe, me] = m(!1), [S, pe] = m(), [$, A] = m(!1), E = R(null), P = `select-component-${N}-${Re()}`, z = R(null), l = R(null), b = R(null), h = R(null), V = () => {
|
|
38
38
|
l.current && L(l.current.clientWidth);
|
|
39
39
|
}, q = (e) => {
|
|
40
|
-
const {
|
|
40
|
+
const {
|
|
41
|
+
target: n
|
|
42
|
+
} = e;
|
|
41
43
|
n !== l.current && !l.current?.contains(n) && !E.current?.contains(n) && d(!1);
|
|
42
44
|
}, M = (e) => {
|
|
43
45
|
const n = e.target, f = E.current?.parentElement?.id || "", Oe = !!document.getElementById(f)?.contains(n);
|
|
@@ -87,7 +89,7 @@ const Le = (i) => {
|
|
|
87
89
|
w();
|
|
88
90
|
}));
|
|
89
91
|
}
|
|
90
|
-
fe || (d(!1),
|
|
92
|
+
fe || (d(!1), A(!1), v(o));
|
|
91
93
|
}, Q = (e) => {
|
|
92
94
|
if (e.keyCode) {
|
|
93
95
|
if (e.keyCode === x.ENTER && c && y)
|
|
@@ -98,7 +100,7 @@ const Le = (i) => {
|
|
|
98
100
|
e.keyCode === x.ARROW_DOWN ? n = s && n === s.length - 1 ? 0 : n + 1 : n = s && n === 0 ? s?.length - 1 : n - 1, p(s[n]), r && u(s[n][t]), r || u(t(s[n]));
|
|
99
101
|
}
|
|
100
102
|
}
|
|
101
|
-
|
|
103
|
+
$ || A(!0);
|
|
102
104
|
}, Ce = () => {
|
|
103
105
|
new Promise((e) => {
|
|
104
106
|
e(w(null));
|
|
@@ -112,7 +114,7 @@ const Le = (i) => {
|
|
|
112
114
|
window.removeEventListener("resize", V), document.removeEventListener("click", q), document.removeEventListener("mousemove", M);
|
|
113
115
|
}), []), F(() => {
|
|
114
116
|
if (B) {
|
|
115
|
-
const e = document.querySelector(`#${
|
|
117
|
+
const e = document.querySelector(`#${P}>.-withinput.grid-container`);
|
|
116
118
|
b.current !== e && e && (b.current = e);
|
|
117
119
|
}
|
|
118
120
|
}, [B]), F(() => {
|
|
@@ -122,7 +124,7 @@ const Le = (i) => {
|
|
|
122
124
|
}
|
|
123
125
|
}, [o.length, C]), F(() => {
|
|
124
126
|
if (!Y.isEqual(s, o)) {
|
|
125
|
-
const e = I || k ||
|
|
127
|
+
const e = I || k || !$ ? o : Z({
|
|
126
128
|
inputText: O,
|
|
127
129
|
dataSource: o,
|
|
128
130
|
descriptionKey: t
|
|
@@ -132,87 +134,22 @@ const Le = (i) => {
|
|
|
132
134
|
p(n);
|
|
133
135
|
}
|
|
134
136
|
}
|
|
135
|
-
a && v([
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
{
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
{
|
|
152
|
-
...i,
|
|
153
|
-
inputRef: (e) => {
|
|
154
|
-
i.inputRef && (Y.isFunction(i.inputRef) ? i.inputRef(e) : i.inputRef.current = e), h.current = e;
|
|
155
|
-
},
|
|
156
|
-
autoComplete: "off",
|
|
157
|
-
readOnly: I || j(),
|
|
158
|
-
value: O,
|
|
159
|
-
onFocus: T,
|
|
160
|
-
onBlur: H,
|
|
161
|
-
onChange: (e) => {
|
|
162
|
-
e && U(e.target.value);
|
|
163
|
-
},
|
|
164
|
-
onClick: T,
|
|
165
|
-
onKeyDown: Q,
|
|
166
|
-
customClassForLabel: ue,
|
|
167
|
-
customClassForWrapper: `selectwrapper ${(I || $ || j()) && " -undigitable"} ${le}`,
|
|
168
|
-
customClassForInputContent: `multiselect ${ce}`,
|
|
169
|
-
inputBaseRef: (e) => {
|
|
170
|
-
l.current = e;
|
|
171
|
-
},
|
|
172
|
-
handlerSetOnDenied: (e) => ge(e),
|
|
173
|
-
rightElements: [
|
|
174
|
-
...re,
|
|
175
|
-
/* @__PURE__ */ W.jsx(
|
|
176
|
-
ye,
|
|
177
|
-
{
|
|
178
|
-
disabled: X() || j(),
|
|
179
|
-
showClearButton: ie,
|
|
180
|
-
dropDownOpened: y,
|
|
181
|
-
handlerClear: () => X() ? null : Ce(),
|
|
182
|
-
handlerOpenClose: he,
|
|
183
|
-
customClassForSideButtons: ae
|
|
184
|
-
},
|
|
185
|
-
"action-buttons-simpleselect"
|
|
186
|
-
)
|
|
187
|
-
]
|
|
188
|
-
}
|
|
189
|
-
),
|
|
190
|
-
y && /* @__PURE__ */ W.jsx(
|
|
191
|
-
we,
|
|
192
|
-
{
|
|
193
|
-
...i,
|
|
194
|
-
opened: y,
|
|
195
|
-
selected: c,
|
|
196
|
-
inputValue: O,
|
|
197
|
-
selectFieldRef: z,
|
|
198
|
-
dropdownRef: E,
|
|
199
|
-
searchOnDropdown: $,
|
|
200
|
-
gridWrapperStyle: B && b.current ? window.getComputedStyle(b.current) : void 0,
|
|
201
|
-
handleOnSelect: (e) => {
|
|
202
|
-
e && G(e);
|
|
203
|
-
},
|
|
204
|
-
handleOnFilter: (e) => U(e),
|
|
205
|
-
handleOnKeydown: Q,
|
|
206
|
-
handleOnBlur: () => H,
|
|
207
|
-
handleOnFocus: T,
|
|
208
|
-
dataCombo: s,
|
|
209
|
-
dropdownWidth: de || 0,
|
|
210
|
-
searchNotFoundText: se
|
|
211
|
-
}
|
|
212
|
-
)
|
|
213
|
-
]
|
|
214
|
-
}
|
|
215
|
-
);
|
|
137
|
+
a && v([{
|
|
138
|
+
[g]: a.idValue,
|
|
139
|
+
[r ? t : t(a.label)]: a.label
|
|
140
|
+
}, ...D]);
|
|
141
|
+
}, [JSON.stringify(o)]), /* @__PURE__ */ W.jsxs("span", { id: P, ref: z, className: "select-component", children: [
|
|
142
|
+
/* @__PURE__ */ W.jsx(Se, { ...i, inputRef: (e) => {
|
|
143
|
+
i.inputRef && (Y.isFunction(i.inputRef) ? i.inputRef(e) : i.inputRef.current = e), h.current = e;
|
|
144
|
+
}, autoComplete: "off", readOnly: I || j(), value: O, onFocus: T, onBlur: H, onChange: (e) => {
|
|
145
|
+
e && U(e.target.value);
|
|
146
|
+
}, onClick: T, onKeyDown: Q, customClassForLabel: ue, customClassForWrapper: `selectwrapper ${(I || _ || j()) && " -undigitable"} ${le}`, customClassForInputContent: `multiselect ${ce}`, inputBaseRef: (e) => {
|
|
147
|
+
l.current = e;
|
|
148
|
+
}, handlerSetOnDenied: (e) => ge(e), rightElements: [...re, /* @__PURE__ */ W.jsx(ye, { disabled: X() || j(), showClearButton: ie, dropDownOpened: y, handlerClear: () => X() ? null : Ce(), handlerOpenClose: he, customClassForSideButtons: ae }, "action-buttons-simpleselect")] }),
|
|
149
|
+
y && /* @__PURE__ */ W.jsx(we, { ...i, opened: y, selected: c, inputValue: O, selectFieldRef: z, dropdownRef: E, searchOnDropdown: _, gridWrapperStyle: B && b.current ? window.getComputedStyle(b.current) : void 0, handleOnSelect: (e) => {
|
|
150
|
+
e && G(e);
|
|
151
|
+
}, handleOnFilter: (e) => U(e), handleOnKeydown: Q, handleOnBlur: () => H, handleOnFocus: T, dataCombo: s, dropdownWidth: de || 0, searchNotFoundText: se })
|
|
152
|
+
] });
|
|
216
153
|
};
|
|
217
154
|
export {
|
|
218
155
|
Le as default
|
package/lib/inputs/text/index.js
CHANGED
|
@@ -1,6 +1,11 @@
|
|
|
1
|
-
import { j as
|
|
2
|
-
import
|
|
3
|
-
|
|
1
|
+
import { j as r } from "../../chunks/jsx-runtime.D1SHvdVE.js";
|
|
2
|
+
import { c as m } from "../../chunks/compiler-runtime.Cu50tn6L.js";
|
|
3
|
+
import s from "../base/InputTextBase.js";
|
|
4
|
+
const a = (o) => {
|
|
5
|
+
const t = m.c(2);
|
|
6
|
+
let e;
|
|
7
|
+
return t[0] !== o ? (e = /* @__PURE__ */ r.jsx(s, { ...o }), t[0] = o, t[1] = e) : e = t[1], e;
|
|
8
|
+
};
|
|
4
9
|
export {
|
|
5
|
-
|
|
10
|
+
a as default
|
|
6
11
|
};
|
|
@@ -1,18 +1,16 @@
|
|
|
1
|
-
import { j as
|
|
2
|
-
import x from "
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
}
|
|
14
|
-
);
|
|
1
|
+
import { j as i } from "../../chunks/jsx-runtime.D1SHvdVE.js";
|
|
2
|
+
import { c as x } from "../../chunks/compiler-runtime.Cu50tn6L.js";
|
|
3
|
+
import l from "../base/InputTextBase.js";
|
|
4
|
+
const j = (e) => {
|
|
5
|
+
const t = x.c(6), {
|
|
6
|
+
rows: o,
|
|
7
|
+
cols: r,
|
|
8
|
+
customClass: n,
|
|
9
|
+
type: m
|
|
10
|
+
} = e, a = m === void 0 ? "textarea" : m, c = `textarea-container ${n}`;
|
|
11
|
+
let s;
|
|
12
|
+
return t[0] !== r || t[1] !== e || t[2] !== o || t[3] !== c || t[4] !== a ? (s = /* @__PURE__ */ i.jsx(l, { ...e, rows: o, type: a, cols: r, customClass: c }), t[0] = r, t[1] = e, t[2] = o, t[3] = c, t[4] = a, t[5] = s) : s = t[5], s;
|
|
15
13
|
};
|
|
16
14
|
export {
|
|
17
|
-
|
|
15
|
+
j as default
|
|
18
16
|
};
|
|
@@ -1,75 +1,122 @@
|
|
|
1
|
-
import { j as
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
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
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
1
|
+
import { j as b } from "../chunks/jsx-runtime.D1SHvdVE.js";
|
|
2
|
+
import { c as U } from "../chunks/compiler-runtime.Cu50tn6L.js";
|
|
3
|
+
import Z, { useState as T, useRef as z, useEffect as N } from "react";
|
|
4
|
+
import tt from "../tooltip/index.js";
|
|
5
|
+
const et = 40, H = ({
|
|
6
|
+
tooltip: u
|
|
7
|
+
}) => u, F = Z.createContext({}), ot = ({
|
|
8
|
+
displayName: u,
|
|
9
|
+
name: v
|
|
10
|
+
}) => u || v || "Component", rt = (u) => {
|
|
11
|
+
const v = (i) => {
|
|
12
|
+
const t = U.c(39), {
|
|
13
|
+
tooltip: d,
|
|
14
|
+
tooltipWidth: A,
|
|
15
|
+
space: V,
|
|
16
|
+
tooltipPosition: B,
|
|
17
|
+
errorMessage: c
|
|
18
|
+
} = i, C = A === void 0 ? "auto" : A, y = V === void 0 ? 20 : V, _ = B === void 0 ? "bottom" : B, [a, x] = T(_), [n, J] = T(""), [I, K] = T(""), [M, p] = T(!1);
|
|
19
|
+
let S;
|
|
20
|
+
t[0] !== C ? (S = {
|
|
21
|
+
width: C,
|
|
22
|
+
height: et
|
|
23
|
+
}, t[0] = C, t[1] = S) : S = t[1];
|
|
24
|
+
const [f, Q] = T(S), l = z(null), Y = z(null);
|
|
25
|
+
let E;
|
|
26
|
+
t[2] === Symbol.for("react.memo_cache_sentinel") ? (E = (h) => {
|
|
27
|
+
l.current && l.current.contains(h.target) ? p(!0) : p(!1);
|
|
28
|
+
}, t[2] = E) : E = t[2];
|
|
29
|
+
const G = E;
|
|
30
|
+
let $;
|
|
31
|
+
t[3] === Symbol.for("react.memo_cache_sentinel") ? ($ = () => {
|
|
32
|
+
p(!1);
|
|
33
|
+
}, t[3] = $) : $ = t[3];
|
|
34
|
+
const X = $;
|
|
35
|
+
let D;
|
|
36
|
+
t[4] === Symbol.for("react.memo_cache_sentinel") ? (D = () => {
|
|
37
|
+
p(!1);
|
|
38
|
+
}, t[4] = D) : D = t[4];
|
|
39
|
+
const q = D;
|
|
40
|
+
let L;
|
|
41
|
+
t[5] !== c || t[6] !== n || t[7] !== i ? (L = () => ((H(i) || n) && (c ? p(!0) : (p(!1), document.addEventListener("mouseover", G), document.addEventListener("scroll", q, !0), l && l.current && l.current.addEventListener("mouseout", X))), () => {
|
|
42
|
+
(H(i) || n) && (document.removeEventListener("mouseover", G), document.removeEventListener("scroll", q, !0), l && l.current && l.current.removeEventListener("mouseout", X));
|
|
43
|
+
}), t[5] = c, t[6] = n, t[7] = i, t[8] = L) : L = t[8];
|
|
44
|
+
let j;
|
|
45
|
+
t[9] !== c || t[10] !== n || t[11] !== d ? (j = [c, d, n], t[9] = c, t[10] = n, t[11] = d, t[12] = j) : j = t[12], N(L, j);
|
|
46
|
+
let P;
|
|
47
|
+
t[13] !== y || t[14] !== a || t[15] !== f ? (P = () => {
|
|
48
|
+
if (l.current && Y.current) {
|
|
49
|
+
const {
|
|
50
|
+
width: h,
|
|
51
|
+
height: s
|
|
52
|
+
} = f, o = l.current.getBoundingClientRect(), w = (o.top + o.bottom) / 2, m = Y.current.clientWidth;
|
|
53
|
+
let e = `width: ${typeof h == "string" ? h : `${h}px`}`, r = o.left + o.width / 2 - m / 2;
|
|
54
|
+
r = Math.min(r, document.body.clientWidth - m - y), e = e + `; left: ${Math.max(y, r)}px`;
|
|
55
|
+
t: switch (a) {
|
|
56
|
+
case "top": {
|
|
57
|
+
o.top < s ? x("bottom") : e = e + `; top: ${o.top + window.scrollY - s - 5}px`;
|
|
58
|
+
break t;
|
|
59
|
+
}
|
|
60
|
+
case "bottom": {
|
|
61
|
+
window.innerHeight - o.bottom < s ? x("top") : e = e + `; top: ${o.top + window.scrollY + o.height + 5}px`;
|
|
62
|
+
break t;
|
|
63
|
+
}
|
|
64
|
+
case "left": {
|
|
65
|
+
o.left < m ? window.innerWidth - o.right < m ? x("bottom") : x("right") : (e = e + `; top: ${w + window.scrollY - s / 2}px`, e = e + `; left: ${o.left - m - 6}px`);
|
|
66
|
+
break t;
|
|
67
|
+
}
|
|
68
|
+
case "right": {
|
|
69
|
+
window.innerWidth - o.right < m ? x("left") : (e = e + `; top: ${w + window.scrollY - s / 2}px`, e = e + `; left: ${o.left + o.width + 5}px`);
|
|
70
|
+
break t;
|
|
71
|
+
}
|
|
41
72
|
default:
|
|
42
|
-
|
|
73
|
+
e = e + "";
|
|
43
74
|
}
|
|
44
|
-
|
|
75
|
+
K(e);
|
|
45
76
|
}
|
|
46
|
-
}, [
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
77
|
+
}, t[13] = y, t[14] = a, t[15] = f, t[16] = P) : P = t[16];
|
|
78
|
+
let R;
|
|
79
|
+
t[17] !== a || t[18] !== f ? (R = [f, a], t[17] = a, t[18] = f, t[19] = R) : R = t[19], N(P, R);
|
|
80
|
+
let O;
|
|
81
|
+
t[20] !== _ ? (O = () => {
|
|
82
|
+
x(_);
|
|
83
|
+
}, t[20] = _, t[21] = O) : O = t[21];
|
|
84
|
+
let W;
|
|
85
|
+
t[22] === Symbol.for("react.memo_cache_sentinel") ? (W = [window.scrollY, window.scrollX, window.innerWidth], t[22] = W) : W = t[22], N(O, W);
|
|
86
|
+
let k, g;
|
|
87
|
+
if (t[23] !== c || t[24] !== n || t[25] !== i || t[26] !== M || t[27] !== a || t[28] !== d || t[29] !== f || t[30] !== I) {
|
|
88
|
+
g = Symbol.for("react.early_return_sentinel");
|
|
89
|
+
t: {
|
|
90
|
+
const h = () => d || n ? /* @__PURE__ */ b.jsx(tt, { text: n || d, textError: c, tooltipRef: Y, style: I, className: a, tooltipDimensions: f, handlerSetDimensions: Q }) : null;
|
|
91
|
+
let s;
|
|
92
|
+
t[33] === Symbol.for("react.memo_cache_sentinel") ? (s = (r) => {
|
|
93
|
+
l.current || (l.current = r);
|
|
94
|
+
}, t[33] = s) : s = t[33];
|
|
95
|
+
const o = s;
|
|
96
|
+
let w;
|
|
97
|
+
t[34] === Symbol.for("react.memo_cache_sentinel") ? (w = {
|
|
98
|
+
handlerSetOnDeniedText: J
|
|
99
|
+
}, t[34] = w) : w = t[34];
|
|
100
|
+
const m = w;
|
|
101
|
+
if (!H(i) && !n) {
|
|
102
|
+
let r;
|
|
103
|
+
t[35] !== i ? (r = /* @__PURE__ */ b.jsx(F.Provider, { value: m, children: /* @__PURE__ */ b.jsx(u, { ...i }) }), t[35] = i, t[36] = r) : r = t[36], g = r;
|
|
104
|
+
break t;
|
|
105
|
+
}
|
|
106
|
+
let e;
|
|
107
|
+
t[37] !== i ? (e = /* @__PURE__ */ b.jsx(u, { ...i, targetRef: o }), t[37] = i, t[38] = e) : e = t[38], k = /* @__PURE__ */ b.jsxs(F.Provider, { value: m, children: [
|
|
108
|
+
e,
|
|
109
|
+
M && h()
|
|
110
|
+
] });
|
|
59
111
|
}
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
};
|
|
65
|
-
return !E(s) && !l ? /* @__PURE__ */ d.jsx(P.Provider, { value: S, children: /* @__PURE__ */ d.jsx(n, { ...s }) }) : /* @__PURE__ */ d.jsxs(P.Provider, { value: S, children: [
|
|
66
|
-
/* @__PURE__ */ d.jsx(n, { ...s, targetRef: N }),
|
|
67
|
-
W && k()
|
|
68
|
-
] });
|
|
112
|
+
t[23] = c, t[24] = n, t[25] = i, t[26] = M, t[27] = a, t[28] = d, t[29] = f, t[30] = I, t[31] = k, t[32] = g;
|
|
113
|
+
} else
|
|
114
|
+
k = t[31], g = t[32];
|
|
115
|
+
return g !== Symbol.for("react.early_return_sentinel") ? g : k;
|
|
69
116
|
};
|
|
70
|
-
return
|
|
117
|
+
return v.displayName = `withTooltip(${ot(u)})`, v;
|
|
71
118
|
};
|
|
72
119
|
export {
|
|
73
|
-
|
|
74
|
-
|
|
120
|
+
F as TooltipContext,
|
|
121
|
+
rt as default
|
|
75
122
|
};
|
|
@@ -1,48 +1,53 @@
|
|
|
1
|
-
import { j as
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
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
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
1
|
+
import { j as a } from "../chunks/jsx-runtime.D1SHvdVE.js";
|
|
2
|
+
import { c as M } from "../chunks/compiler-runtime.Cu50tn6L.js";
|
|
3
|
+
import { useState as S, Fragment as A } from "react";
|
|
4
|
+
import D from "../icons/index.js";
|
|
5
|
+
import '../assets/index14.css';const O = (R) => {
|
|
6
|
+
const e = M.c(26), {
|
|
7
|
+
style: c,
|
|
8
|
+
icon: b,
|
|
9
|
+
flat: N,
|
|
10
|
+
iconName: s,
|
|
11
|
+
handlerClosed: r,
|
|
12
|
+
square: y,
|
|
13
|
+
visible: q,
|
|
14
|
+
children: w,
|
|
15
|
+
customClass: B,
|
|
16
|
+
type: E,
|
|
17
|
+
showCloseButton: I
|
|
18
|
+
} = R;
|
|
19
|
+
let f;
|
|
20
|
+
e[0] !== c ? (f = c === void 0 ? {} : c, e[0] = c, e[1] = f) : f = e[1];
|
|
21
|
+
const p = f, t = b === void 0 ? null : b, x = N === void 0 ? !1 : N, g = y === void 0 ? !0 : y, k = q === void 0 ? !0 : q, h = w === void 0 ? null : w, m = B === void 0 ? "" : B, l = E === void 0 ? "default" : E, C = I === void 0 ? !1 : I, [z, F] = S(!1);
|
|
22
|
+
let u;
|
|
23
|
+
e[2] !== m || e[3] !== x || e[4] !== g || e[5] !== l ? (u = () => `labelmessages-component -${l} ${m}
|
|
24
|
+
${g && "-square"} ${x && "-flat"}`, e[2] = m, e[3] = x, e[4] = g, e[5] = l, e[6] = u) : u = e[6];
|
|
25
|
+
const L = u;
|
|
26
|
+
let d;
|
|
27
|
+
e[7] !== t || e[8] !== s || e[9] !== l ? (d = () => t || (s ? /* @__PURE__ */ a.jsx(D, { name: s, size: 16, color: "#ffffff", customClass: `-${l}svg` }) : null), e[7] = t, e[8] = s, e[9] = l, e[10] = d) : d = e[10];
|
|
28
|
+
const j = d;
|
|
29
|
+
if (z || !k)
|
|
30
|
+
return null;
|
|
31
|
+
const $ = `${L()} ${m}`;
|
|
32
|
+
let o;
|
|
33
|
+
e[11] !== h ? (o = /* @__PURE__ */ a.jsx("div", { className: "labelmessagesitem text", children: h }), e[11] = h, e[12] = o) : o = e[12];
|
|
34
|
+
let i;
|
|
35
|
+
e[13] !== j || e[14] !== t || e[15] !== s ? (i = (s || t) && /* @__PURE__ */ a.jsxs("div", { className: "labelmessagesitem -icon", children: [
|
|
36
|
+
" ",
|
|
37
|
+
j(),
|
|
38
|
+
" "
|
|
39
|
+
] }), e[13] = j, e[14] = t, e[15] = s, e[16] = i) : i = e[16];
|
|
40
|
+
let n;
|
|
41
|
+
e[17] !== r || e[18] !== C ? (n = C && /* @__PURE__ */ a.jsx("span", { role: "presentation", className: "labelmessagesitem -close", onClick: () => {
|
|
42
|
+
r && r(), F(!0);
|
|
43
|
+
}, children: "x" }), e[17] = r, e[18] = C, e[19] = n) : n = e[19];
|
|
44
|
+
let v;
|
|
45
|
+
return e[20] !== p || e[21] !== $ || e[22] !== o || e[23] !== i || e[24] !== n ? (v = /* @__PURE__ */ a.jsx(A, { children: /* @__PURE__ */ a.jsxs("div", { className: $, style: p, children: [
|
|
46
|
+
o,
|
|
47
|
+
i,
|
|
48
|
+
n
|
|
49
|
+
] }) }), e[20] = p, e[21] = $, e[22] = o, e[23] = i, e[24] = n, e[25] = v) : v = e[25], v;
|
|
45
50
|
};
|
|
46
51
|
export {
|
|
47
|
-
|
|
52
|
+
O as default
|
|
48
53
|
};
|
|
@@ -1,6 +1,20 @@
|
|
|
1
|
-
import { j as
|
|
2
|
-
import
|
|
3
|
-
|
|
1
|
+
import { j as a } from "../chunks/jsx-runtime.D1SHvdVE.js";
|
|
2
|
+
import { c as m } from "../chunks/compiler-runtime.Cu50tn6L.js";
|
|
3
|
+
import l from "./DefaultLabel.js";
|
|
4
|
+
const f = (r) => {
|
|
5
|
+
const e = m.c(4);
|
|
6
|
+
let s;
|
|
7
|
+
if (e[0] !== r) {
|
|
8
|
+
const {
|
|
9
|
+
className: c,
|
|
10
|
+
...o
|
|
11
|
+
} = r;
|
|
12
|
+
s = o, e[0] = r, e[1] = s;
|
|
13
|
+
} else
|
|
14
|
+
s = e[1];
|
|
15
|
+
let t;
|
|
16
|
+
return e[2] !== s ? (t = /* @__PURE__ */ a.jsx(l, { className: "-danger", ...s }), e[2] = s, e[3] = t) : t = e[3], t;
|
|
17
|
+
};
|
|
4
18
|
export {
|
|
5
|
-
|
|
19
|
+
f as default
|
|
6
20
|
};
|
|
@@ -1,41 +1,55 @@
|
|
|
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
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
},
|
|
1
|
+
import { j as O } from "../chunks/jsx-runtime.D1SHvdVE.js";
|
|
2
|
+
import { c as L } from "../chunks/compiler-runtime.Cu50tn6L.js";
|
|
3
|
+
import { useState as P } from "react";
|
|
4
|
+
import S from "../icons/index.js";
|
|
5
|
+
import T from "../internals/withTooltip.js";
|
|
6
|
+
import { actionsOnPermissionDenied as _, OPTIONS_ON_DENIED as h } from "../permissionValidations.js";
|
|
7
|
+
const w = (A) => {
|
|
8
|
+
const e = L.c(24), {
|
|
9
|
+
style: u,
|
|
10
|
+
targetRef: s,
|
|
11
|
+
iconName: o,
|
|
12
|
+
icon: n,
|
|
13
|
+
children: p,
|
|
14
|
+
visible: E,
|
|
15
|
+
customClass: b,
|
|
16
|
+
className: $,
|
|
17
|
+
disabled: v,
|
|
18
|
+
size: l,
|
|
19
|
+
iconAlign: I,
|
|
20
|
+
bordered: x,
|
|
21
|
+
permissionAttr: N,
|
|
22
|
+
skeletonize: g
|
|
23
|
+
} = A, R = E === void 0 ? !0 : E, r = I === void 0 ? "left" : I;
|
|
24
|
+
let c, m;
|
|
25
|
+
if (e[0] !== N) {
|
|
26
|
+
const z = [h.disabled, h.unvisible];
|
|
27
|
+
c = P, m = _(z, N), e[0] = N, e[1] = c, e[2] = m;
|
|
28
|
+
} else
|
|
29
|
+
c = e[1], m = e[2];
|
|
30
|
+
const [k] = c(m);
|
|
31
|
+
let a;
|
|
32
|
+
e[3] !== x || e[4] !== $ || e[5] !== b || e[6] !== v || e[7] !== r || e[8] !== l || e[9] !== g ? (a = () => `label-component ${$} ${b} ${x ? "-bordered" : ""} ${v ? "-disabled" : ""}
|
|
33
|
+
${g ? "-skeletonized" : ""}
|
|
34
|
+
${l ? `-${l}` : ""}
|
|
35
|
+
${r ? `icon-${r}` : ""}`, e[3] = x, e[4] = $, e[5] = b, e[6] = v, e[7] = r, e[8] = l, e[9] = g, e[10] = a) : a = e[10];
|
|
36
|
+
const C = a;
|
|
37
|
+
let f;
|
|
38
|
+
e[11] !== n || e[12] !== o ? (f = () => n || (o ? /* @__PURE__ */ O.jsx(S, { name: o, size: 16 }) : null), e[11] = n, e[12] = o, e[13] = f) : f = e[13];
|
|
39
|
+
const D = f;
|
|
40
|
+
if (!R || k.unvisible)
|
|
41
|
+
return null;
|
|
42
|
+
const j = C();
|
|
43
|
+
let t;
|
|
44
|
+
e[14] !== s ? (t = (z) => s && s(z), e[14] = s, e[15] = t) : t = e[15];
|
|
45
|
+
let i;
|
|
46
|
+
e[16] !== D ? (i = D(), e[16] = D, e[17] = i) : i = e[17];
|
|
47
|
+
let d;
|
|
48
|
+
return e[18] !== p || e[19] !== u || e[20] !== j || e[21] !== t || e[22] !== i ? (d = /* @__PURE__ */ O.jsxs("div", { style: u, className: j, ref: t, children: [
|
|
49
|
+
i,
|
|
50
|
+
p
|
|
51
|
+
] }), e[18] = p, e[19] = u, e[20] = j, e[21] = t, e[22] = i, e[23] = d) : d = e[23], d;
|
|
52
|
+
}, J = T(w);
|
|
39
53
|
export {
|
|
40
|
-
|
|
54
|
+
J as default
|
|
41
55
|
};
|