@lanaco/lnc-react-ui 4.0.199 → 4.0.200
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/dist/Accordion.cjs +5 -5
- package/dist/Accordion.js +45 -56
- package/dist/AccordionDetails.cjs +3 -3
- package/dist/AccordionDetails.js +11 -25
- package/dist/AccordionSummary.cjs +4 -4
- package/dist/AccordionSummary.js +34 -44
- package/dist/ActionsToolbar.cjs +2 -3
- package/dist/ActionsToolbar.js +83 -135
- package/dist/Alert.cjs +10 -10
- package/dist/Alert.js +32 -64
- package/dist/Avatar.cjs +9 -9
- package/dist/Avatar.js +33 -72
- package/dist/Badge.cjs +6 -6
- package/dist/Badge.js +22 -47
- package/dist/BlogCategoryCardsSection.cjs +1 -1
- package/dist/BlogCategoryCardsSection.js +12 -14
- package/dist/BlogExploreSection.cjs +1 -1
- package/dist/BlogExploreSection.js +1 -1
- package/dist/BlogsSectionWithFilters.cjs +1 -1
- package/dist/BlogsSectionWithFilters.js +1 -1
- package/dist/Breadcrumbs.cjs +5 -5
- package/dist/Breadcrumbs.js +57 -87
- package/dist/Button.cjs +11 -11
- package/dist/Button.js +126 -173
- package/dist/ButtonGroup.cjs +8 -8
- package/dist/ButtonGroup.js +37 -49
- package/dist/CalorieCalculatorSection.cjs +8 -8
- package/dist/CalorieCalculatorSection.js +90 -97
- package/dist/CheckBoxInput.cjs +1 -1
- package/dist/CheckBoxInput.js +2 -5
- package/dist/Chip.cjs +14 -14
- package/dist/Chip.js +73 -111
- package/dist/ConfirmationForm.cjs +6 -6
- package/dist/ConfirmationForm.js +67 -109
- package/dist/ContactSection.cjs +1 -0
- package/dist/ContactSection.js +1 -0
- package/dist/Content.cjs +1 -1
- package/dist/Content.js +7 -15
- package/dist/{DailyMotion-ByXblnua.js → DailyMotion-BBcJkMo_.js} +1 -1
- package/dist/{DailyMotion-BaFUcQKQ.cjs → DailyMotion-CpZExcrg.cjs} +1 -1
- package/dist/DataView.cjs +1 -1
- package/dist/DataView.js +30 -50
- package/dist/DateInput.cjs +4 -4
- package/dist/DateInput.js +1347 -1383
- package/dist/DecimalInput.cjs +6 -6
- package/dist/DecimalInput.js +210 -263
- package/dist/DecimalInputV2.cjs +23 -23
- package/dist/DecimalInputV2.js +119 -176
- package/dist/DetailedProductsInfinitiveSection.cjs +1 -1
- package/dist/DetailedProductsInfinitiveSection.js +1 -1
- package/dist/DetailedProductsSection.cjs +1 -1
- package/dist/DetailedProductsSection.js +1 -1
- package/dist/DetailsView.cjs +9 -9
- package/dist/DetailsView.js +111 -162
- package/dist/DoubleRangeSlider.cjs +22 -22
- package/dist/DoubleRangeSlider.js +70 -95
- package/dist/DragAndDropFile.cjs +10 -10
- package/dist/DragAndDropFile.js +347 -402
- package/dist/DragDropFiles.cjs +4 -4
- package/dist/DragDropFiles.js +70 -124
- package/dist/Drawer.cjs +5 -5
- package/dist/Drawer.js +97 -135
- package/dist/Dropdown.cjs +1 -1
- package/dist/Dropdown.js +44 -213
- package/dist/DropdownItem.cjs +14 -14
- package/dist/DropdownItem.js +106 -142
- package/dist/DropdownLookup.cjs +1 -1
- package/dist/DropdownLookup.js +61 -242
- package/dist/DropdownMenu.cjs +4 -4
- package/dist/DropdownMenu.js +87 -149
- package/dist/EditableTable.cjs +10 -10
- package/dist/EditableTable.js +165 -331
- package/dist/{Facebook-BCqiOWZO.js → Facebook-BSWPEXjA.js} +1 -1
- package/dist/{Facebook-D9wwecSW.cjs → Facebook-DoKw-XxT.cjs} +1 -1
- package/dist/FaqSection.cjs +3 -3
- package/dist/FaqSection.js +119 -153
- package/dist/FileInput.cjs +7 -7
- package/dist/FileInput.js +66 -94
- package/dist/{FilePlayer-ktaNhf3p.js → FilePlayer-BtGpIWnK.js} +1 -1
- package/dist/{FilePlayer-DB6jnpeC.cjs → FilePlayer-D9az_lc_.cjs} +1 -1
- package/dist/FlexBox.cjs +6 -6
- package/dist/FlexBox.js +28 -63
- package/dist/FlexGrid.cjs +1 -1
- package/dist/FlexGrid.js +27 -67
- package/dist/FlexGridItem.cjs +6 -6
- package/dist/FlexGridItem.js +34 -62
- package/dist/Footer.cjs +1 -1
- package/dist/Footer.js +7 -15
- package/dist/FormField.cjs +7 -7
- package/dist/FormField.js +22 -47
- package/dist/FormView.cjs +6 -6
- package/dist/FormView.js +148 -195
- package/dist/Grid.cjs +2 -2
- package/dist/Grid.js +40 -65
- package/dist/GridItem.cjs +2 -2
- package/dist/GridItem.js +47 -80
- package/dist/Header.cjs +1 -1
- package/dist/Header.js +7 -15
- package/dist/HelpBannerSection.cjs +3 -3
- package/dist/HelpBannerSection.js +9 -15
- package/dist/Icon.cjs +4 -4
- package/dist/Icon.js +29 -55
- package/dist/IconButton.cjs +9 -9
- package/dist/IconButton.js +89 -127
- package/dist/{Kaltura-CvlN0HDg.js → Kaltura-BDqlEQpd.js} +1 -1
- package/dist/{Kaltura-CCdXLzOa.cjs → Kaltura-CK6JHUZC.cjs} +1 -1
- package/dist/Kanban.cjs +7 -7
- package/dist/Kanban.js +2033 -2098
- package/dist/KanbanActionsToolbar.cjs +4 -5
- package/dist/KanbanActionsToolbar.js +61 -96
- package/dist/KanbanCard-B9V9EjVE.js +137 -0
- package/dist/KanbanCard-DihrKn-I.cjs +30 -0
- package/dist/KanbanCard.cjs +1 -1
- package/dist/KanbanCard.js +2 -3
- package/dist/KanbanFooter.cjs +3 -3
- package/dist/KanbanFooter.js +37 -55
- package/dist/KanbanHeader.cjs +4 -4
- package/dist/KanbanHeader.js +49 -81
- package/dist/KanbanView.cjs +2 -2
- package/dist/KanbanView.js +106 -173
- package/dist/Link.cjs +7 -7
- package/dist/Link.js +20 -37
- package/dist/LocationSearchSection.cjs +1 -1
- package/dist/LocationSearchSection.js +1 -1
- package/dist/MasonryGeneralCardsSection.cjs +1 -1
- package/dist/MasonryGeneralCardsSection.js +1 -1
- package/dist/MenuItem.cjs +13 -13
- package/dist/MenuItem.js +101 -139
- package/dist/{Mixcloud-nG_VyBNt.cjs → Mixcloud-C1Boh2Bm.cjs} +1 -1
- package/dist/{Mixcloud-Bb8MTclI.js → Mixcloud-zAh6j7Ha.js} +1 -1
- package/dist/Modal.cjs +18 -19
- package/dist/Modal.js +131 -166
- package/dist/MultiSelectDropdown.cjs +1 -1
- package/dist/MultiSelectDropdown.js +25 -196
- package/dist/MultiSelectDropdownLookup.cjs +1 -1
- package/dist/MultiSelectDropdownLookup.js +27 -209
- package/dist/{Mux-DfYpGTiP.js → Mux-BGTG_Tvc.js} +1 -1
- package/dist/{Mux-BgB2a8kM.cjs → Mux-C6TwZeaq.cjs} +1 -1
- package/dist/NestedDropdownItem.cjs +3 -3
- package/dist/NestedDropdownItem.js +45 -67
- package/dist/NestedMenuItem.cjs +5 -5
- package/dist/NestedMenuItem.js +51 -78
- package/dist/NotificationContainer.cjs +10 -10
- package/dist/NotificationContainer.js +46 -79
- package/dist/NotificationMessage.cjs +2 -2
- package/dist/NotificationMessage.js +47 -64
- package/dist/NumberInput.cjs +23 -23
- package/dist/NumberInput.js +89 -149
- package/dist/PageLayout.cjs +2 -2
- package/dist/PageLayout.js +20 -28
- package/dist/Pagination.cjs +3 -3
- package/dist/Pagination.js +102 -185
- package/dist/PasswordInput.cjs +23 -23
- package/dist/PasswordInput.js +108 -137
- package/dist/Popover.cjs +1 -1
- package/dist/Popover.js +7 -32
- package/dist/PopoverContent.cjs +5 -5
- package/dist/PopoverContent.js +22 -28
- package/dist/PopoverTrigger.cjs +1 -1
- package/dist/PopoverTrigger.js +7 -12
- package/dist/ProgressBar.cjs +8 -8
- package/dist/ProgressBar.js +32 -59
- package/dist/RadioGroup.cjs +3 -3
- package/dist/RadioGroup.js +41 -72
- package/dist/RadioInput.cjs +28 -28
- package/dist/RadioInput.js +78 -123
- package/dist/RangeSlider.cjs +19 -19
- package/dist/RangeSlider.js +92 -119
- package/dist/ReviewsSection.cjs +13 -13
- package/dist/ReviewsSection.js +81 -101
- package/dist/SalesCampaignsSection.cjs +19 -19
- package/dist/SalesCampaignsSection.js +283 -324
- package/dist/SearchBar.cjs +10 -10
- package/dist/SearchBar.js +168 -188
- package/dist/SearchSection-B94YN_6P.cjs +161 -0
- package/dist/{SearchSection-DDQ_K98T.js → SearchSection-DAaMecR4.js} +337 -359
- package/dist/SearchSection.cjs +1 -1
- package/dist/SearchSection.js +2 -3
- package/dist/Separator.cjs +3 -3
- package/dist/Separator.js +14 -19
- package/dist/Sidebar.cjs +4 -5
- package/dist/Sidebar.js +33 -56
- package/dist/SimpleCategoriesSection.cjs +1 -1
- package/dist/SimpleCategoriesSection.js +1 -1
- package/dist/{SoundCloud-C86xwUG6.cjs → SoundCloud-C6R6E6Zc.cjs} +1 -1
- package/dist/{SoundCloud-DG91z39R.js → SoundCloud-lO8wg_0s.js} +1 -1
- package/dist/Spinner.cjs +18 -18
- package/dist/Spinner.js +37 -54
- package/dist/StatsSection.cjs +6 -6
- package/dist/StatsSection.js +15 -25
- package/dist/{Streamable-4uAnb3WN.cjs → Streamable-DZO95CiT.cjs} +1 -1
- package/dist/{Streamable-BAIWLgyD.js → Streamable-Dwa5ZEK4.js} +1 -1
- package/dist/Surface.cjs +4 -4
- package/dist/Surface.js +19 -34
- package/dist/SwipeableDrawer.cjs +8 -8
- package/dist/SwipeableDrawer.js +84 -136
- package/dist/TabItem.cjs +11 -11
- package/dist/TabItem.js +83 -118
- package/dist/Table.cjs +65 -65
- package/dist/Table.js +786 -1167
- package/dist/TableView.cjs +2 -2
- package/dist/TableView.js +113 -197
- package/dist/Tabs.cjs +4 -4
- package/dist/Tabs.js +41 -60
- package/dist/TextAreaInput.cjs +14 -14
- package/dist/TextAreaInput.js +131 -181
- package/dist/TextInput.cjs +23 -23
- package/dist/TextInput.js +78 -126
- package/dist/ThemeProvider.cjs +5 -5
- package/dist/ThemeProvider.js +35 -39
- package/dist/TimeInput.cjs +7 -7
- package/dist/TimeInput.js +46 -72
- package/dist/Toggle.cjs +20 -20
- package/dist/Toggle.js +78 -109
- package/dist/ToggleSection.cjs +5 -5
- package/dist/ToggleSection.js +48 -55
- package/dist/TreeMenu.cjs +5 -5
- package/dist/TreeMenu.js +43 -67
- package/dist/TreeMenuSeparator.cjs +3 -3
- package/dist/TreeMenuSeparator.js +12 -20
- package/dist/{Twitch-CVAj24ti.cjs → Twitch-B17oKtD0.cjs} +1 -1
- package/dist/{Twitch-DfXeW5Xs.js → Twitch-C73-dwWo.js} +1 -1
- package/dist/UploadedFile.cjs +11 -11
- package/dist/UploadedFile.js +73 -99
- package/dist/{Vidyard-De3pges0.js → Vidyard-B6GdBHsM.js} +1 -1
- package/dist/{Vidyard-DaCcaaH4.cjs → Vidyard-s1MMcaRm.cjs} +1 -1
- package/dist/{Vimeo-8wXdCXGs.cjs → Vimeo-J1l_SU2E.cjs} +1 -1
- package/dist/{Vimeo-N6I2qi_h.js → Vimeo-kzHz4Gco.js} +1 -1
- package/dist/{Wistia-BrUzHQoq.cjs → Wistia-CudQyDHM.cjs} +1 -1
- package/dist/{Wistia-dlV6n6tO.js → Wistia-w4jnqd7y.js} +1 -1
- package/dist/{YouTube-Cfsj4ZaP.cjs → YouTube-BAYKouHS.cjs} +1 -1
- package/dist/{YouTube-DNJxWqRm.js → YouTube-BKyipPZx.js} +1 -1
- package/dist/index-BdKi2ogu.js +39 -0
- package/dist/index-CRk3vcd4.cjs +95 -0
- package/dist/index-CX2A-q39.cjs +4 -0
- package/dist/{index-CWALXP1T.js → index-CwMCk9wV.js} +118 -145
- package/dist/index.cjs +1 -1
- package/dist/index.js +2 -2
- package/dist/{tag-BtS5lWJ0.js → tag-Dm8CW4TM.js} +21 -27
- package/dist/{tag-CmeZsPQt.cjs → tag-UQjq2_Ba.cjs} +7 -7
- package/package.json +1 -1
- package/dist/KanbanCard-68kSAXL6.js +0 -175
- package/dist/KanbanCard-BDvoqTDS.cjs +0 -30
- package/dist/SearchSection-BcbHP6QF.cjs +0 -161
- package/dist/index-Be-_NM9Q.cjs +0 -4
- package/dist/index-C0LcDEqa.js +0 -47
- package/dist/index-CSNxZFTX.cjs +0 -95
package/dist/EditableTable.js
CHANGED
|
@@ -1,17 +1,16 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { useState as
|
|
3
|
-
import {
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
import
|
|
13
|
-
|
|
14
|
-
const h = {
|
|
1
|
+
import { jsx as c, Fragment as P, jsxs as W } from "react/jsx-runtime";
|
|
2
|
+
import { useState as q, useRef as g, useEffect as N, createElement as J, forwardRef as Q, useImperativeHandle as U } from "react";
|
|
3
|
+
import { c as M, r as k, i as x } from "./utils-DtEfC-TX.js";
|
|
4
|
+
import X from "./Table.js";
|
|
5
|
+
import { s as _ } from "./emotion-styled.browser.esm-BNN1dTl3.js";
|
|
6
|
+
import S from "./TextInput.js";
|
|
7
|
+
import Y from "./NumberInput.js";
|
|
8
|
+
import Z from "./DecimalInput.js";
|
|
9
|
+
import ee from "./CheckBoxInput.js";
|
|
10
|
+
import te from "./Dropdown.js";
|
|
11
|
+
import re from "./DecimalInputV2.js";
|
|
12
|
+
import { u as oe } from "./emotion-element-f0de968e.browser.esm-CkCiQliQ.js";
|
|
13
|
+
const E = {
|
|
15
14
|
BOOLEAN: "BOOLEAN",
|
|
16
15
|
STRING: "STRING",
|
|
17
16
|
INTEGER: "INTEGER",
|
|
@@ -19,24 +18,24 @@ const h = {
|
|
|
19
18
|
DECIMAL2: "DECIMAL2",
|
|
20
19
|
DATE: "DATE",
|
|
21
20
|
SELECT: "SELECT"
|
|
22
|
-
},
|
|
21
|
+
}, ae = _.td`
|
|
23
22
|
white-space: nowrap;
|
|
24
23
|
overflow: hidden;
|
|
25
24
|
text-overflow: ellipsis;
|
|
26
|
-
max-width: ${(
|
|
27
|
-
padding: ${(
|
|
28
|
-
${(
|
|
25
|
+
max-width: ${(r) => r.width};
|
|
26
|
+
padding: ${(r) => r.focused && !r.isBoolean ? "0.5rem 0.5rem 0.5rem 0.7rem" : "0.5rem 0.5rem 0.5rem 1.5rem"};
|
|
27
|
+
${(r) => r.bgColor}
|
|
29
28
|
|
|
30
|
-
${(
|
|
31
|
-
`,
|
|
32
|
-
${(
|
|
33
|
-
|
|
29
|
+
${(r) => M(r.theme, "TableCell", r.size, "enabled")};
|
|
30
|
+
`, se = _.div`
|
|
31
|
+
${(r) => M(
|
|
32
|
+
r.theme,
|
|
34
33
|
"TableSpecialLastRow",
|
|
35
|
-
|
|
34
|
+
r.size,
|
|
36
35
|
"enabled"
|
|
37
36
|
)};
|
|
38
|
-
padding: ${(
|
|
39
|
-
cursor: ${(
|
|
37
|
+
padding: ${(r) => r.hasRender ? "0" : "9.5px 6px 9.5px 0"};
|
|
38
|
+
cursor: ${(r) => r.tabIndex !== -1 ? "pointer" : "auto"};
|
|
40
39
|
white-space: nowrap;
|
|
41
40
|
overflow: hidden;
|
|
42
41
|
text-overflow: ellipsis;
|
|
@@ -44,141 +43,139 @@ const h = {
|
|
|
44
43
|
&:focus {
|
|
45
44
|
outline: none;
|
|
46
45
|
}
|
|
47
|
-
`,
|
|
48
|
-
const [
|
|
49
|
-
var
|
|
46
|
+
`, $ = (r) => {
|
|
47
|
+
const [i, A] = q(!1);
|
|
48
|
+
var n = g(), w = g(), v = g(!0);
|
|
50
49
|
const {
|
|
51
|
-
__TYPE__: I = "TABLE_CELL",
|
|
52
50
|
Column: e = {},
|
|
53
|
-
ColumnsToRender:
|
|
51
|
+
ColumnsToRender: u,
|
|
54
52
|
RowData: a = {},
|
|
55
|
-
Index:
|
|
56
|
-
RowIndex:
|
|
53
|
+
Index: h = 0,
|
|
54
|
+
RowIndex: d,
|
|
57
55
|
EnableSelection: D = !1,
|
|
58
|
-
TabIndexOffset:
|
|
59
|
-
onFocusChanged:
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
onMount: t,
|
|
56
|
+
TabIndexOffset: R = 100,
|
|
57
|
+
onFocusChanged: F,
|
|
58
|
+
onDiscard: O,
|
|
59
|
+
onMount: y,
|
|
63
60
|
//----------------
|
|
64
|
-
onChange:
|
|
61
|
+
onChange: t,
|
|
65
62
|
//----------------
|
|
66
|
-
className:
|
|
67
|
-
size:
|
|
68
|
-
color:
|
|
69
|
-
} =
|
|
70
|
-
className:
|
|
71
|
-
size:
|
|
72
|
-
color:
|
|
73
|
-
theme:
|
|
63
|
+
className: s = "",
|
|
64
|
+
size: f = "small",
|
|
65
|
+
color: C = "primary"
|
|
66
|
+
} = r, p = oe(), L = {
|
|
67
|
+
className: s,
|
|
68
|
+
size: f,
|
|
69
|
+
color: C,
|
|
70
|
+
theme: p
|
|
74
71
|
};
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
}, []),
|
|
78
|
-
|
|
79
|
-
}, [
|
|
80
|
-
|
|
81
|
-
}, [
|
|
82
|
-
const
|
|
72
|
+
N(() => {
|
|
73
|
+
y(d, h, w);
|
|
74
|
+
}, []), N(() => {
|
|
75
|
+
i || y(d, h, w);
|
|
76
|
+
}, [i]), N(() => {
|
|
77
|
+
i && n && n.current && n.current.focus();
|
|
78
|
+
}, [i]);
|
|
79
|
+
const G = () => e && e.width ? e.width + "%" : "auto", B = () => {
|
|
83
80
|
if (e.editable !== !0) return -1;
|
|
84
|
-
var
|
|
85
|
-
return
|
|
86
|
-
},
|
|
87
|
-
|
|
88
|
-
},
|
|
89
|
-
|
|
90
|
-
},
|
|
91
|
-
var
|
|
92
|
-
|
|
93
|
-
},
|
|
94
|
-
|
|
95
|
-
},
|
|
96
|
-
...
|
|
81
|
+
var o = u.filter((b) => b.editable), m = o.find((b) => b.id === e.id);
|
|
82
|
+
return R + d * o.length + o.indexOf(m);
|
|
83
|
+
}, I = (o, m) => {
|
|
84
|
+
F(o, m, d, h), m || A(m);
|
|
85
|
+
}, j = (o) => {
|
|
86
|
+
o.key === "Escape" && (v.current = !1, n.current.blur(), v.current = !0, O(o, d, h, a));
|
|
87
|
+
}, V = () => {
|
|
88
|
+
var o = null, m = (l, H) => {
|
|
89
|
+
t(l, H, d, h, e, a);
|
|
90
|
+
}, b = (l) => {
|
|
91
|
+
t(null, l, d, h, e, a);
|
|
92
|
+
}, T = {
|
|
93
|
+
...L,
|
|
97
94
|
debounceTime: 0,
|
|
98
95
|
...e.inputProps,
|
|
99
96
|
value: e != null && e.objectAccessor ? a[e.accessor][e == null ? void 0 : e.objectAccessor] : a[e.accessor],
|
|
100
97
|
defaultChecked: e != null && e.objectAccessor ? a[e.accessor][e == null ? void 0 : e.objectAccessor] : a[e.accessor],
|
|
101
|
-
focused:
|
|
102
|
-
onChange:
|
|
103
|
-
onBlur: (
|
|
104
|
-
onFocus: (
|
|
105
|
-
onKeyDown: (
|
|
98
|
+
focused: i,
|
|
99
|
+
onChange: m,
|
|
100
|
+
onBlur: (l) => I(l, !1),
|
|
101
|
+
onFocus: (l) => I(l, !0),
|
|
102
|
+
onKeyDown: (l) => j(l),
|
|
106
103
|
tabIndex: B()
|
|
107
104
|
};
|
|
108
105
|
switch (e.inputType) {
|
|
109
|
-
case
|
|
110
|
-
|
|
106
|
+
case E.STRING:
|
|
107
|
+
o = /* @__PURE__ */ c(S, { ...T, ref: n });
|
|
111
108
|
break;
|
|
112
|
-
case
|
|
113
|
-
|
|
109
|
+
case E.INTEGER:
|
|
110
|
+
o = /* @__PURE__ */ c(Y, { ...T, ref: n });
|
|
114
111
|
break;
|
|
115
|
-
case
|
|
116
|
-
|
|
112
|
+
case E.DECIMAL:
|
|
113
|
+
o = /* @__PURE__ */ c(Z, { ...T, ref: n });
|
|
117
114
|
break;
|
|
118
|
-
case
|
|
119
|
-
|
|
115
|
+
case E.DECIMAL2:
|
|
116
|
+
o = /* @__PURE__ */ c(re, { ...T, ref: n });
|
|
120
117
|
break;
|
|
121
|
-
case
|
|
122
|
-
|
|
118
|
+
case E.DATE:
|
|
119
|
+
o = /* @__PURE__ */ c(S, { ...T, ref: n });
|
|
123
120
|
break;
|
|
124
|
-
case
|
|
125
|
-
|
|
121
|
+
case E.BOOLEAN:
|
|
122
|
+
o = /* @__PURE__ */ c(ee, { ...T, ref: n });
|
|
126
123
|
break;
|
|
127
|
-
case
|
|
128
|
-
|
|
129
|
-
|
|
124
|
+
case E.SELECT:
|
|
125
|
+
o = /* @__PURE__ */ c(
|
|
126
|
+
te,
|
|
130
127
|
{
|
|
131
|
-
...
|
|
128
|
+
...T,
|
|
132
129
|
value: e.inputProps.options.find(
|
|
133
|
-
(
|
|
130
|
+
(l) => l.value === (e == null ? void 0 : e.objectAccessor) ? a[e.accessor][e == null ? void 0 : e.objectAccessor] : a[e.accessor]
|
|
134
131
|
),
|
|
135
|
-
onChange:
|
|
136
|
-
ref:
|
|
132
|
+
onChange: b,
|
|
133
|
+
ref: n
|
|
137
134
|
}
|
|
138
135
|
);
|
|
139
136
|
break;
|
|
140
137
|
default:
|
|
141
|
-
|
|
138
|
+
o = /* @__PURE__ */ c(S, { ...T, ref: n });
|
|
142
139
|
}
|
|
143
|
-
return
|
|
144
|
-
},
|
|
145
|
-
|
|
146
|
-
},
|
|
147
|
-
var
|
|
140
|
+
return o;
|
|
141
|
+
}, z = (o) => {
|
|
142
|
+
v.current === !0 ? I(o, !1) : A(!1);
|
|
143
|
+
}, K = () => {
|
|
144
|
+
var o = V();
|
|
148
145
|
if (e.editable === !0 && e.editComponent) {
|
|
149
|
-
var
|
|
150
|
-
e.inputType ===
|
|
146
|
+
var m = {};
|
|
147
|
+
e.inputType === E.SELECT && (m = {
|
|
151
148
|
items: e.selectItems,
|
|
152
149
|
mapNameTo: e.selectProps.mapNameTo,
|
|
153
150
|
mapValueTo: e.selectProps.mapValueTo
|
|
154
|
-
}),
|
|
151
|
+
}), o = /* @__PURE__ */ c(
|
|
155
152
|
e.editComponent,
|
|
156
153
|
{
|
|
157
|
-
ref:
|
|
154
|
+
ref: n,
|
|
158
155
|
tabIndex: B(),
|
|
159
156
|
value: e != null && e.objectAccessor ? a[e.accessor][e == null ? void 0 : e.objectAccessor] : a[e.accessor],
|
|
160
|
-
onChange: (
|
|
161
|
-
|
|
157
|
+
onChange: (b, T, l) => {
|
|
158
|
+
t(b, T, d, h, e, a, l);
|
|
162
159
|
},
|
|
163
|
-
focused:
|
|
164
|
-
onBlur:
|
|
165
|
-
onFocus: (
|
|
166
|
-
onKeyDown: (
|
|
167
|
-
...
|
|
160
|
+
focused: i,
|
|
161
|
+
onBlur: z,
|
|
162
|
+
onFocus: (b) => I(b, !0),
|
|
163
|
+
onKeyDown: (b) => j(b),
|
|
164
|
+
...m
|
|
168
165
|
}
|
|
169
166
|
);
|
|
170
167
|
}
|
|
171
|
-
if (e.editable === !0 &&
|
|
172
|
-
if (!
|
|
173
|
-
return /* @__PURE__ */
|
|
174
|
-
|
|
168
|
+
if (e.editable === !0 && i) return o;
|
|
169
|
+
if (!i || e.editable !== !0)
|
|
170
|
+
return /* @__PURE__ */ c(
|
|
171
|
+
se,
|
|
175
172
|
{
|
|
176
173
|
ref: w,
|
|
177
174
|
tabIndex: B(),
|
|
178
|
-
onFocus: () =>
|
|
175
|
+
onFocus: () => A(!0),
|
|
179
176
|
hasRender: !!e.readonlyComponent,
|
|
180
|
-
...
|
|
181
|
-
children: e.readonlyComponent ? /* @__PURE__ */
|
|
177
|
+
...L,
|
|
178
|
+
children: e.readonlyComponent ? /* @__PURE__ */ c(
|
|
182
179
|
e.readonlyComponent,
|
|
183
180
|
{
|
|
184
181
|
rowData: a,
|
|
@@ -190,67 +187,44 @@ const h = {
|
|
|
190
187
|
}
|
|
191
188
|
);
|
|
192
189
|
};
|
|
193
|
-
return /* @__PURE__ */
|
|
194
|
-
|
|
190
|
+
return /* @__PURE__ */ J(
|
|
191
|
+
ae,
|
|
195
192
|
{
|
|
196
|
-
"data-rowindex":
|
|
197
|
-
...
|
|
193
|
+
"data-rowindex": d,
|
|
194
|
+
...L,
|
|
198
195
|
selection: D,
|
|
199
|
-
width:
|
|
200
|
-
key:
|
|
201
|
-
focused:
|
|
202
|
-
isBoolean: e.inputType ===
|
|
196
|
+
width: G(),
|
|
197
|
+
key: h,
|
|
198
|
+
focused: i,
|
|
199
|
+
isBoolean: e.inputType === E.BOOLEAN
|
|
203
200
|
},
|
|
204
|
-
|
|
201
|
+
K()
|
|
205
202
|
);
|
|
206
203
|
};
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
//----------------------------------------
|
|
210
|
-
Column: r.object,
|
|
211
|
-
RowData: r.object,
|
|
212
|
-
Index: r.number,
|
|
213
|
-
EnableSelection: r.bool,
|
|
214
|
-
TabIndexOffset: r.number,
|
|
215
|
-
//----------------------------------------
|
|
216
|
-
className: r.string,
|
|
217
|
-
size: r.oneOf(["small", "medium", "large"]),
|
|
218
|
-
color: r.oneOf([
|
|
219
|
-
"primary",
|
|
220
|
-
"secondary",
|
|
221
|
-
"success",
|
|
222
|
-
"warning",
|
|
223
|
-
"danger",
|
|
224
|
-
"information",
|
|
225
|
-
"neutral",
|
|
226
|
-
"gray"
|
|
227
|
-
])
|
|
228
|
-
};
|
|
229
|
-
x.displayName = "TABLE_CELL";
|
|
230
|
-
const K = ee((o, u) => {
|
|
204
|
+
$.displayName = "TABLE_CELL";
|
|
205
|
+
const ne = Q((r, i) => {
|
|
231
206
|
var {
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
onRowFocusChange: w = () => {
|
|
207
|
+
Data: A = [],
|
|
208
|
+
onRowFocusChange: n = () => {
|
|
235
209
|
},
|
|
236
|
-
onDiscard:
|
|
210
|
+
onDiscard: w = () => {
|
|
237
211
|
},
|
|
238
|
-
onInputChange:
|
|
212
|
+
onInputChange: v = () => {
|
|
239
213
|
}
|
|
240
|
-
} =
|
|
241
|
-
const e =
|
|
214
|
+
} = r;
|
|
215
|
+
const e = g({
|
|
242
216
|
FocusedCell: null,
|
|
243
217
|
PreviousFocusedCell: null
|
|
244
|
-
}),
|
|
245
|
-
|
|
246
|
-
|
|
218
|
+
}), u = g([]), a = g(null), h = g();
|
|
219
|
+
U(
|
|
220
|
+
i,
|
|
247
221
|
() => ({
|
|
248
222
|
focusFirstCellOfLastRow: () => {
|
|
249
223
|
a.current && a.current.focus();
|
|
250
224
|
},
|
|
251
225
|
focusLastActiveCell: () => {
|
|
252
226
|
try {
|
|
253
|
-
var t =
|
|
227
|
+
var t = u.current.find(
|
|
254
228
|
(s) => s.row === e.current.PreviousFocusedCell.row && s.cell === e.current.PreviousFocusedCell.cell
|
|
255
229
|
);
|
|
256
230
|
t.ref && t.ref.focus();
|
|
@@ -259,209 +233,69 @@ const K = ee((o, u) => {
|
|
|
259
233
|
}
|
|
260
234
|
}),
|
|
261
235
|
[
|
|
262
|
-
|
|
236
|
+
r
|
|
263
237
|
// Update functions when certain state changes
|
|
264
238
|
]
|
|
265
239
|
);
|
|
266
|
-
const
|
|
267
|
-
|
|
268
|
-
}, D = (t, s,
|
|
240
|
+
const d = (t, s, f, C, p, L) => {
|
|
241
|
+
v && v(t, s, f, C, p, L);
|
|
242
|
+
}, D = (t, s, f, C, p) => {
|
|
269
243
|
s && (e.current = {
|
|
270
244
|
...e.current,
|
|
271
245
|
FocusedCell: {
|
|
272
|
-
row:
|
|
246
|
+
row: f,
|
|
273
247
|
cell: C,
|
|
274
248
|
ref: p
|
|
275
249
|
}
|
|
276
250
|
}), s || (e.current = {
|
|
277
251
|
PreviousFocusedCell: e.current.FocusedCell,
|
|
278
252
|
FocusedCell: null
|
|
279
|
-
},
|
|
280
|
-
},
|
|
281
|
-
(t.relatedTarget === null || t.relatedTarget.closest("tbody") === null || !t.relatedTarget.closest("tbody").hasAttribute("data-tbody")) &&
|
|
253
|
+
}, R(t, f));
|
|
254
|
+
}, R = (t, s) => {
|
|
255
|
+
(t.relatedTarget === null || t.relatedTarget.closest("tbody") === null || !t.relatedTarget.closest("tbody").hasAttribute("data-tbody")) && n(t, s, -1), t.relatedTarget && t.relatedTarget.closest("tbody") && t.relatedTarget.closest("tbody").hasAttribute("data-tbody") && parseInt(t.relatedTarget.closest("td").getAttribute("data-rowindex")) !== s && n(
|
|
282
256
|
t,
|
|
283
257
|
s,
|
|
284
258
|
parseInt(t.relatedTarget.closest("td").getAttribute("data-rowindex"))
|
|
285
259
|
);
|
|
286
|
-
},
|
|
287
|
-
if (t ===
|
|
288
|
-
{ row: t, cell: s, ref:
|
|
289
|
-
]),
|
|
260
|
+
}, F = (t, s, f) => {
|
|
261
|
+
if (t === A.length - 1 && s === 0 && (a.current = f.current), u.current.length === 0 && (u.current = [
|
|
262
|
+
{ row: t, cell: s, ref: f.current }
|
|
263
|
+
]), u.current.length > 0 && u.current.find(
|
|
290
264
|
(p) => p.row === t && p.cell === s
|
|
291
265
|
)) {
|
|
292
|
-
var C =
|
|
266
|
+
var C = u.current.find(
|
|
293
267
|
(p) => p.row === t && p.cell === s
|
|
294
268
|
);
|
|
295
|
-
C.ref =
|
|
296
|
-
} else
|
|
297
|
-
...
|
|
298
|
-
{ row: t, cell: s, ref:
|
|
269
|
+
C.ref = f.current;
|
|
270
|
+
} else u.current.length > 0 && (u.current = [
|
|
271
|
+
...u.current,
|
|
272
|
+
{ row: t, cell: s, ref: f.current }
|
|
299
273
|
]);
|
|
300
|
-
},
|
|
301
|
-
|
|
274
|
+
}, O = () => k(
|
|
275
|
+
x("TABLE_SPECIAL_LAST_ROW", r.children),
|
|
302
276
|
{
|
|
303
277
|
TabIndexOffset: 50
|
|
304
278
|
}
|
|
305
|
-
) || /* @__PURE__ */
|
|
279
|
+
) || /* @__PURE__ */ c(P, {}), y = () => {
|
|
306
280
|
var t = {
|
|
307
281
|
TabIndexOffset: 50,
|
|
308
282
|
onFocusChanged: D,
|
|
309
|
-
onChange:
|
|
310
|
-
onDiscard:
|
|
311
|
-
onMount:
|
|
283
|
+
onChange: d,
|
|
284
|
+
onDiscard: w,
|
|
285
|
+
onMount: F
|
|
312
286
|
};
|
|
313
|
-
return
|
|
314
|
-
|
|
287
|
+
return k(
|
|
288
|
+
x("TABLE_CELL", r.children),
|
|
315
289
|
t
|
|
316
|
-
) || /* @__PURE__ */
|
|
290
|
+
) || /* @__PURE__ */ c($, { ...t });
|
|
317
291
|
};
|
|
318
|
-
return /* @__PURE__ */
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
292
|
+
return /* @__PURE__ */ c(P, { children: /* @__PURE__ */ W(X, { ref: h, ...r, Data: A, VisibilityPattern: null, children: [
|
|
293
|
+
r.children,
|
|
294
|
+
y(),
|
|
295
|
+
O()
|
|
322
296
|
] }) });
|
|
323
297
|
});
|
|
324
|
-
|
|
325
|
-
/**
|
|
326
|
-
* This property determines where the component is rendered.
|
|
327
|
-
* Should not be overridden!
|
|
328
|
-
*/
|
|
329
|
-
__TYPE__: r.string,
|
|
330
|
-
//----------------------------------------
|
|
331
|
-
/**
|
|
332
|
-
* Show a selection checkbox in the first cell of every row.
|
|
333
|
-
* Value of the checkbox is determined by the `SelectedData` property.
|
|
334
|
-
*/
|
|
335
|
-
EnableSelection: r.bool,
|
|
336
|
-
/**
|
|
337
|
-
* Show ordering arrows in header cells.
|
|
338
|
-
*/
|
|
339
|
-
EnableOrdering: r.bool,
|
|
340
|
-
/**
|
|
341
|
-
* Show a spinner with backdrop on top of the table when `Loading` is set to `true`.
|
|
342
|
-
*/
|
|
343
|
-
EnableLoader: r.bool,
|
|
344
|
-
/**
|
|
345
|
-
* Show a selection checkbox in the first cell of the table header.
|
|
346
|
-
* Value of the checkbox is determined by the `SelectedEntirePage` property.
|
|
347
|
-
*/
|
|
348
|
-
EnableSelectAll: r.bool,
|
|
349
|
-
//----------------------------------------
|
|
350
|
-
/**
|
|
351
|
-
* Specify the text that is shown when there are 0 rows in the `Data`.
|
|
352
|
-
*/
|
|
353
|
-
NoDataText: r.string,
|
|
354
|
-
/**
|
|
355
|
-
* Disables some events and actions when set to `true`. Also triggers the spinner if `EnableLoader` is set to `true`.
|
|
356
|
-
*/
|
|
357
|
-
Loading: r.bool,
|
|
358
|
-
/**
|
|
359
|
-
* Defines the table columns.
|
|
360
|
-
* @param id - Column identifier
|
|
361
|
-
* @param displayName - Text displayed in the header
|
|
362
|
-
* @param accessor - Access the property in `Data`
|
|
363
|
-
* @param width - Default column width (overridden by the VisibilityPattern)
|
|
364
|
-
* @param sortable - Can be sorted
|
|
365
|
-
*
|
|
366
|
-
*/
|
|
367
|
-
Columns: r.arrayOf(r.object),
|
|
368
|
-
/**
|
|
369
|
-
* Defines the data displayed in each row.
|
|
370
|
-
*/
|
|
371
|
-
Data: r.arrayOf(r.object),
|
|
372
|
-
/**
|
|
373
|
-
* Define the selected data.
|
|
374
|
-
* @param id - Column identifier (mandatory field)
|
|
375
|
-
*/
|
|
376
|
-
SelectedData: r.arrayOf(r.object),
|
|
377
|
-
/**
|
|
378
|
-
* Value of the `SelectAll` checkbox.
|
|
379
|
-
*/
|
|
380
|
-
SelectedEntirePage: r.bool,
|
|
381
|
-
/**
|
|
382
|
-
* Defines which field in a data object is the row identifier.
|
|
383
|
-
*/
|
|
384
|
-
RowIdentifier: r.string,
|
|
385
|
-
/**
|
|
386
|
-
* An object that defines the width and order of columns for different screen sizes.
|
|
387
|
-
* (`XS`,`S`,`M`,`L`,`XL`)
|
|
388
|
-
*/
|
|
389
|
-
VisibilityPattern: r.object,
|
|
390
|
-
/**
|
|
391
|
-
* Describe how the data is ordered.
|
|
392
|
-
* @param columnId - Column identifier, maps to the id on the Column object
|
|
393
|
-
*/
|
|
394
|
-
Ordering: r.object,
|
|
395
|
-
//----------------------------------------
|
|
396
|
-
/**
|
|
397
|
-
* Triggers when the focus is moved to another row or another component outside of the table
|
|
398
|
-
* @param event - event object
|
|
399
|
-
* @param currentRowIndex - index of the currently focused row
|
|
400
|
-
* @param nextRowIndex - index of the next focused row (-1 if the focuse moves otutside of the table rows)
|
|
401
|
-
*/
|
|
402
|
-
onRowFocusChange: () => {
|
|
403
|
-
},
|
|
404
|
-
/**
|
|
405
|
-
*
|
|
406
|
-
*/
|
|
407
|
-
onDiscard: () => {
|
|
408
|
-
},
|
|
409
|
-
/**
|
|
410
|
-
*
|
|
411
|
-
*/
|
|
412
|
-
onInputChange: () => {
|
|
413
|
-
},
|
|
414
|
-
//----------------------------------------
|
|
415
|
-
/**
|
|
416
|
-
* Triggered on header cell click.
|
|
417
|
-
* @param event - event object
|
|
418
|
-
* @param column - column definition
|
|
419
|
-
* @param ordering - updated ordering object, or undefined if ordering is not enabled or the column is not sortable
|
|
420
|
-
*/
|
|
421
|
-
onColumnClick: r.func,
|
|
422
|
-
/**
|
|
423
|
-
* Triggered on table row click.
|
|
424
|
-
* @param event - event object
|
|
425
|
-
* @param rowData - row data
|
|
426
|
-
*/
|
|
427
|
-
onRowClick: r.func,
|
|
428
|
-
/**
|
|
429
|
-
* Triggered on selection checkbox click.
|
|
430
|
-
* @param event - event object
|
|
431
|
-
* @param rowData - row data
|
|
432
|
-
* @param isSelected - the value of selection checkbox
|
|
433
|
-
*/
|
|
434
|
-
onSelectRow: r.func,
|
|
435
|
-
/**
|
|
436
|
-
* Triggered on select all checkbox click.
|
|
437
|
-
* @param event - event object
|
|
438
|
-
* @param isSelected - the value of select all checkbox
|
|
439
|
-
*/
|
|
440
|
-
onSelectAll: r.func,
|
|
441
|
-
//----------------------------------------
|
|
442
|
-
/**
|
|
443
|
-
* `className` applied to the component container.
|
|
444
|
-
*/
|
|
445
|
-
className: r.string,
|
|
446
|
-
/**
|
|
447
|
-
* Defines size of the component (padding, margin, font etc.).
|
|
448
|
-
*/
|
|
449
|
-
size: r.oneOf(["small", "medium", "large"]),
|
|
450
|
-
/**
|
|
451
|
-
* Defines the palette color for the component.
|
|
452
|
-
*/
|
|
453
|
-
color: r.oneOf([
|
|
454
|
-
"primary",
|
|
455
|
-
"secondary",
|
|
456
|
-
"success",
|
|
457
|
-
"error",
|
|
458
|
-
"warning",
|
|
459
|
-
"gray",
|
|
460
|
-
"white",
|
|
461
|
-
"neutral"
|
|
462
|
-
])
|
|
463
|
-
};
|
|
464
|
-
K.displayName = "EDITABLE_TABLE";
|
|
298
|
+
ne.displayName = "EDITABLE_TABLE";
|
|
465
299
|
export {
|
|
466
|
-
|
|
300
|
+
ne as default
|
|
467
301
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { g as _ } from "./_commonjsHelpers-BkfeUUK-.js";
|
|
2
2
|
import g from "react";
|
|
3
|
-
import { u as P, p as m } from "./SearchSection-
|
|
3
|
+
import { u as P, p as m } from "./SearchSection-DAaMecR4.js";
|
|
4
4
|
function v(t, e) {
|
|
5
5
|
for (var r = 0; r < e.length; r++) {
|
|
6
6
|
const o = e[r];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const P=require("./_commonjsHelpers-DwTZ_eVU.cjs"),g=require("react"),h=require("./SearchSection-
|
|
1
|
+
"use strict";const P=require("./_commonjsHelpers-DwTZ_eVU.cjs"),g=require("react"),h=require("./SearchSection-B94YN_6P.cjs");function m(t,e){for(var r=0;r<e.length;r++){const o=e[r];if(typeof o!="string"&&!Array.isArray(o)){for(const s in o)if(s!=="default"&&!(s in t)){const p=Object.getOwnPropertyDescriptor(o,s);p&&Object.defineProperty(t,s,p.get?p:{enumerable:!0,get:()=>o[s]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}var v=Object.create,i=Object.defineProperty,O=Object.getOwnPropertyDescriptor,D=Object.getOwnPropertyNames,S=Object.getPrototypeOf,E=Object.prototype.hasOwnProperty,j=(t,e,r)=>e in t?i(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,k=(t,e)=>{for(var r in e)i(t,r,{get:e[r],enumerable:!0})},b=(t,e,r,o)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of D(e))!E.call(t,s)&&s!==r&&i(t,s,{get:()=>e[s],enumerable:!(o=O(e,s))||o.enumerable});return t},I=(t,e,r)=>(r=t!=null?v(S(t)):{},b(!t||!t.__esModule?i(r,"default",{value:t,enumerable:!0}):r,t)),w=t=>b(i({},"__esModule",{value:!0}),t),a=(t,e,r)=>(j(t,typeof e!="symbol"?e+"":e,r),r),d={};k(d,{default:()=>l});var _=w(d),u=I(g),n=h.utils,F=h.patterns;const c="https://connect.facebook.net/en_US/sdk.js",y="FB",f="fbAsyncInit",L="facebook-player-";class l extends u.Component{constructor(){super(...arguments),a(this,"callPlayer",n.callPlayer),a(this,"playerID",this.props.config.playerId||`${L}${(0,n.randomString)()}`),a(this,"mute",()=>{this.callPlayer("mute")}),a(this,"unmute",()=>{this.callPlayer("unmute")})}componentDidMount(){this.props.onMount&&this.props.onMount(this)}load(e,r){if(r){(0,n.getSDK)(c,y,f).then(o=>o.XFBML.parse());return}(0,n.getSDK)(c,y,f).then(o=>{o.init({appId:this.props.config.appId,xfbml:!0,version:this.props.config.version}),o.Event.subscribe("xfbml.render",s=>{this.props.onLoaded()}),o.Event.subscribe("xfbml.ready",s=>{s.type==="video"&&s.id===this.playerID&&(this.player=s.instance,this.player.subscribe("startedPlaying",this.props.onPlay),this.player.subscribe("paused",this.props.onPause),this.player.subscribe("finishedPlaying",this.props.onEnded),this.player.subscribe("startedBuffering",this.props.onBuffer),this.player.subscribe("finishedBuffering",this.props.onBufferEnd),this.player.subscribe("error",this.props.onError),this.props.muted?this.callPlayer("mute"):this.callPlayer("unmute"),this.props.onReady(),document.getElementById(this.playerID).querySelector("iframe").style.visibility="visible")})})}play(){this.callPlayer("play")}pause(){this.callPlayer("pause")}stop(){}seekTo(e,r=!0){this.callPlayer("seek",e),r||this.pause()}setVolume(e){this.callPlayer("setVolume",e)}getDuration(){return this.callPlayer("getDuration")}getCurrentTime(){return this.callPlayer("getCurrentPosition")}getSecondsLoaded(){return null}render(){const{attributes:e}=this.props.config,r={width:"100%",height:"100%"};return u.default.createElement("div",{style:r,id:this.playerID,className:"fb-video","data-href":this.props.url,"data-autoplay":this.props.playing?"true":"false","data-allowfullscreen":"true","data-controls":this.props.controls?"true":"false",...e})}}a(l,"displayName","Facebook");a(l,"canPlay",F.canPlay.facebook);a(l,"loopOnEnded",!0);const M=P.getDefaultExportFromCjs(_),x=m({__proto__:null,default:M},[_]);exports.Facebook=x;
|