@splunk/react-ui 4.39.0 → 4.40.0
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/CHANGELOG.md +21 -0
- package/Card.js +3 -1
- package/Chip.js +133 -125
- package/ControlGroup.js +27 -30
- package/MIGRATION.mdx +31 -0
- package/Message.js +136 -123
- package/Multiselect.js +3147 -3130
- package/Number.js +23 -18
- package/Popover.js +2 -1
- package/Select.js +2072 -2064
- package/SplitButton.d.ts +2 -0
- package/TabBar.js +15 -12
- package/TabLayout.js +8 -2
- package/Table.js +229 -224
- package/WaitSpinner.js +1 -1
- package/package.json +2 -2
- package/types/src/Card/Card.d.ts +1 -0
- package/types/src/Card/Footer.d.ts +1 -0
- package/types/src/Chip/Chip.d.ts +3 -6
- package/types/src/ComboBox/ComboBox.d.ts +1 -1
- package/types/src/Multiselect/Compact.d.ts +1 -1
- package/types/src/Multiselect/Multiselect.d.ts +1 -1
- package/types/src/Multiselect/Normal.d.ts +1 -1
- package/types/src/Select/Select.d.ts +3 -1
- package/types/src/Select/SelectAllOption.d.ts +2 -2
- package/types/src/Select/SelectBase.d.ts +104 -66
- package/types/src/Select/docs/examples/Appearance.d.ts +0 -2
- package/types/src/Table/Cell.d.ts +0 -2
- package/types/src/Table/HeadInner.d.ts +5 -1
- package/types/src/WaitSpinner/WaitSpinner.d.ts +0 -1
- package/types/src/useControlled/index.d.ts +2 -0
- package/types/src/useControlled/useControlled.d.ts +21 -0
- package/types/src/useResizeObserver/index.d.ts +2 -0
- package/types/src/useResizeObserver/useResizeObserver.d.ts +12 -0
- package/useControlled.js +112 -0
- package/useKeyPress.d.ts +2 -0
- package/useResizeObserver.d.ts +2 -0
- package/useResizeObserver.js +137 -0
- package/types/src/Chip/docs/examples/Basic.d.ts +0 -2
- package/types/src/Chip/docs/examples/prisma/Appearance.d.ts +0 -2
- package/types/src/Color/docs/examples/prisma/Controlled.d.ts +0 -2
- package/types/src/Color/docs/examples/prisma/ThemeVariables.d.ts +0 -1
- package/types/src/Color/docs/examples/prisma/Uncontrolled.d.ts +0 -2
- package/types/src/Dropdown/docs/examples/prisma/Basic.d.ts +0 -2
- package/types/src/Dropdown/docs/examples/prisma/BasicMenu.d.ts +0 -2
- package/types/src/Dropdown/docs/examples/prisma/ControlledDropdown.d.ts +0 -2
- package/types/src/Dropdown/docs/examples/prisma/Dialog.d.ts +0 -2
- package/types/src/Dropdown/docs/examples/prisma/OtherToggles.d.ts +0 -2
- package/types/src/Dropdown/docs/examples/prisma/ScrollingMenu.d.ts +0 -2
- package/types/src/File/docs/examples/prisma/Disabled.d.ts +0 -12
- package/types/src/Message/docs/examples/Title.d.ts +0 -2
- package/types/src/WaitSpinner/docs/examples/prisma/Basic.d.ts +0 -2
- /package/types/src/Color/docs/examples/{prisma/CustomizedPalette.d.ts → CustomizedPalette.d.ts} +0 -0
- /package/types/src/Color/docs/examples/{prisma/HideInput.d.ts → HideInput.d.ts} +0 -0
package/Table.js
CHANGED
|
@@ -164,10 +164,10 @@
|
|
|
164
164
|
return e && "function" == typeof Symbol && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
|
|
165
165
|
}, $(e);
|
|
166
166
|
}
|
|
167
|
-
function
|
|
167
|
+
function W(e, t) {
|
|
168
168
|
if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function");
|
|
169
169
|
}
|
|
170
|
-
function
|
|
170
|
+
function B(e, t) {
|
|
171
171
|
for (var n = 0; n < t.length; n++) {
|
|
172
172
|
var r = t[n];
|
|
173
173
|
r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0),
|
|
@@ -175,7 +175,7 @@
|
|
|
175
175
|
}
|
|
176
176
|
}
|
|
177
177
|
function K(e, t, n) {
|
|
178
|
-
return t &&
|
|
178
|
+
return t && B(e.prototype, t), n && B(e, n), Object.defineProperty(e, "prototype", {
|
|
179
179
|
writable: !1
|
|
180
180
|
}), e;
|
|
181
181
|
}
|
|
@@ -426,7 +426,7 @@
|
|
|
426
426
|
F(n, e);
|
|
427
427
|
var t = U(n);
|
|
428
428
|
function n() {
|
|
429
|
-
|
|
429
|
+
W(this, n);
|
|
430
430
|
return t.apply(this, arguments);
|
|
431
431
|
}
|
|
432
432
|
K(n, [ {
|
|
@@ -532,10 +532,7 @@
|
|
|
532
532
|
Oe.splunkUiType = "Table.Caption";
|
|
533
533
|
/* harmony default export */ const Ee = Oe;
|
|
534
534
|
// CONCATENATED MODULE: ./src/Table/CellStyles.ts
|
|
535
|
-
var Re = (0, z.css)([ "box-shadow:", ";"
|
|
536
|
-
N.pick)({
|
|
537
|
-
prisma: (0, z.css)([ "color:", ";" ], N.variables.contentColorDefault)
|
|
538
|
-
}));
|
|
535
|
+
var Re = (0, z.css)([ "box-shadow:", ";" ], N.variables.focusShadowInset);
|
|
539
536
|
var je = H().td.withConfig({
|
|
540
537
|
displayName: "CellStyles__Styled",
|
|
541
538
|
componentId: "sc-1955xk2-0"
|
|
@@ -578,27 +575,30 @@
|
|
|
578
575
|
enterprise: (0, z.css)([ "color:", ";*:hover > &&{cursor:pointer;}" ], N.variables.linkColor),
|
|
579
576
|
prisma: (0, z.css)([ "color:", ";*:hover > &&{cursor:pointer;}" ], N.variables.contentColorDefault)
|
|
580
577
|
},
|
|
581
|
-
link: {
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
dark: (0, z.css)([ "color:", ";" ], N.variables.accentColorL20)
|
|
585
|
-
|
|
578
|
+
link: (0, z.css)([ "color:", ";&:hover{cursor:pointer;", "}&:focus{", " box-shadow:", ";}" ], N.variables.linkColor, (0,
|
|
579
|
+
N.pick)({
|
|
580
|
+
enterprise: {
|
|
581
|
+
dark: (0, z.css)([ "color:", ";box-shadow:", ";" ], N.variables.accentColorL20, N.variables.focusShadowInset),
|
|
582
|
+
light: (0, z.css)([ "box-shadow:", ";" ], N.variables.focusShadowInset)
|
|
583
|
+
},
|
|
584
|
+
prisma: (0, z.css)([ "text-decoration:underline;" ])
|
|
585
|
+
}), (0, N.pick)({
|
|
586
|
+
enterprise: {
|
|
586
587
|
dark: (0, z.css)([ "color:", ";" ], N.variables.accentColorL20),
|
|
587
588
|
light: (0, z.css)([ "color:", ";" ], N.variables.focusColor)
|
|
588
|
-
}
|
|
589
|
-
|
|
589
|
+
},
|
|
590
|
+
prisma: (0, z.css)([ "color:", ";text-decoration:underline;" ], N.variables.interactiveColorPrimary)
|
|
591
|
+
}), N.variables.focusShadowInset)
|
|
590
592
|
});
|
|
591
593
|
}), (function(e) {
|
|
592
594
|
var t = e.$clickable, n = e.$focusWithin;
|
|
593
|
-
return t && (0, z.css)([ "cursor:pointer;&:hover{background-color:", ";
|
|
595
|
+
return t && (0, z.css)([ "cursor:pointer;&:hover{background-color:", ";}&:focus{", "}", " &:active{background:", ";}" ], (0,
|
|
594
596
|
N.pick)({
|
|
595
597
|
enterprise: {
|
|
596
598
|
light: N.variables.accentColorL50,
|
|
597
599
|
dark: N.variables.accentColorD50
|
|
598
600
|
},
|
|
599
601
|
prisma: N.variables.interactiveColorOverlayHover
|
|
600
|
-
}), (0, N.pick)({
|
|
601
|
-
prisma: N.variables.contentColorDefault
|
|
602
602
|
}), Re, n && (0, z.css)([ "&:focus-within{", "}" ], Re), (0, N.pick)({
|
|
603
603
|
prisma: N.variables.interactiveColorOverlayActive
|
|
604
604
|
}));
|
|
@@ -692,9 +692,9 @@
|
|
|
692
692
|
function Ne(e) {
|
|
693
693
|
var t = $e();
|
|
694
694
|
return function() {
|
|
695
|
-
var n, r =
|
|
695
|
+
var n, r = We(e);
|
|
696
696
|
if (t) {
|
|
697
|
-
var o =
|
|
697
|
+
var o = We(this).constructor;
|
|
698
698
|
n = Reflect.construct(r, arguments, o);
|
|
699
699
|
} else n = r.apply(this, arguments);
|
|
700
700
|
return Me(this, n);
|
|
@@ -717,12 +717,12 @@
|
|
|
717
717
|
return !!e;
|
|
718
718
|
})();
|
|
719
719
|
}
|
|
720
|
-
function
|
|
721
|
-
return
|
|
720
|
+
function We(e) {
|
|
721
|
+
return We = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(e) {
|
|
722
722
|
return e.__proto__ || Object.getPrototypeOf(e);
|
|
723
|
-
},
|
|
723
|
+
}, We(e);
|
|
724
724
|
}
|
|
725
|
-
function
|
|
725
|
+
function Be(e, t, n) {
|
|
726
726
|
return (t = Ke(t)) in e ? Object.defineProperty(e, t, {
|
|
727
727
|
value: n,
|
|
728
728
|
enumerable: !0,
|
|
@@ -776,13 +776,13 @@
|
|
|
776
776
|
o[i] = arguments[i];
|
|
777
777
|
}
|
|
778
778
|
e = t.call.apply(t, [ this ].concat(o));
|
|
779
|
-
|
|
780
|
-
|
|
779
|
+
Be(Le(e), "el", null);
|
|
780
|
+
Be(Le(e), "handleMount", (function(t) {
|
|
781
781
|
// eslint-disable-next-line react/no-unused-class-component-methods
|
|
782
782
|
e.el = t;
|
|
783
783
|
L(e.props.elementRef, t);
|
|
784
784
|
}));
|
|
785
|
-
|
|
785
|
+
Be(Le(e), "handleClick", (function(t) {
|
|
786
786
|
var n = e.props, r = n.data, o = n.onClick, i = n.variant;
|
|
787
787
|
if (i === "actions") {
|
|
788
788
|
// Action buttons have their own onClicks inside the cell so we don't want Row onClick to fire
|
|
@@ -790,7 +790,7 @@
|
|
|
790
790
|
}
|
|
791
791
|
o === null || o === void 0 ? void 0 : o(t, r);
|
|
792
792
|
}));
|
|
793
|
-
|
|
793
|
+
Be(Le(e), "handleKeyDown", (function(t) {
|
|
794
794
|
var n = e.props, r = n.data, o = n.onClick, i = n.onKeyDown;
|
|
795
795
|
if ((0, E.keycode)(t.nativeEvent) === "enter") {
|
|
796
796
|
o === null || o === void 0 ? void 0 : o(t, r);
|
|
@@ -826,9 +826,9 @@
|
|
|
826
826
|
} ]);
|
|
827
827
|
return n;
|
|
828
828
|
}(n.Component);
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
|
|
829
|
+
Be(Ge, "splunkUiType", "Table.Cell");
|
|
830
|
+
Be(Ge, "propTypes", Ve);
|
|
831
|
+
Be(Ge, "defaultProps", Ue);
|
|
832
832
|
/* harmony default export */ const Xe = Ge;
|
|
833
833
|
// CONCATENATED MODULE: external "lodash/findIndex"
|
|
834
834
|
const Ye = require("lodash/findIndex");
|
|
@@ -912,10 +912,18 @@
|
|
|
912
912
|
}), /* sc-sel */ xt, (0, N.pick)({
|
|
913
913
|
enterprise: wt
|
|
914
914
|
}));
|
|
915
|
-
var kt =
|
|
915
|
+
var kt = (0, z.css)([ "box-shadow:", ";outline:none;", ";" ], N.variables.focusShadowInset, (0,
|
|
916
|
+
N.pick)({
|
|
917
|
+
enterprise: {
|
|
918
|
+
light: (0, z.css)([ "color:", ";" ], N.variables.accentColorD10),
|
|
919
|
+
dark: (0, z.css)([ "color:", ";" ], N.variables.linkColorHover)
|
|
920
|
+
},
|
|
921
|
+
prisma: (0, z.css)([ "background-color:", ";" ], N.variables.interactiveColorOverlaySelected)
|
|
922
|
+
}));
|
|
923
|
+
var Ot = H().div.withConfig({
|
|
916
924
|
displayName: "HeadInnerStyles__Styled",
|
|
917
925
|
componentId: "sc-1sa0wng-3"
|
|
918
|
-
})([ "", " ", ";position:relative;font-size:", ";", ";line-height:", ";justify-content:", ";padding:", ";", " ", " ", " &[data-helper]{background-color:", ";position:absolute;left:-10000px;top:-10000px;box-shadow:", ";box-sizing:border-box;background-repeat:repeat-x;", ";}@media print{background-image:none;}" ], N.mixins.reset("flex"), N.mixins.clearfix(), (0,
|
|
926
|
+
})([ "", " ", ";position:relative;width:100%;font-size:", ";", ";line-height:", ";justify-content:", ";padding:", ";", " ", " ", " &[data-helper]{background-color:", ";position:absolute;left:-10000px;top:-10000px;box-shadow:", ";box-sizing:border-box;background-repeat:repeat-x;", ";}@media print{background-image:none;}", "" ], N.mixins.reset("flex"), N.mixins.clearfix(), (0,
|
|
919
927
|
N.pick)({
|
|
920
928
|
enterprise: "inherit",
|
|
921
929
|
prisma: "12px"
|
|
@@ -957,8 +965,21 @@
|
|
|
957
965
|
prisma: N.variables.dragShadow
|
|
958
966
|
}), (0, N.pick)({
|
|
959
967
|
enterprise: (0, z.css)([ "border:1px solid ", ";" ], N.variables.borderColor)
|
|
968
|
+
}), (function(e) {
|
|
969
|
+
var t = e.$clickable, n = e.$focusWithin;
|
|
970
|
+
return t && (0, z.css)([ "cursor:pointer;&:focus{", "}", " &:hover{outline:none;color:", ";background-color:", ";}&:active{background-color:", ";}" ], kt, n && (0,
|
|
971
|
+
z.css)([ "&:focus-within{", "}" ], kt), (0, N.pick)({
|
|
972
|
+
enterprise: {
|
|
973
|
+
light: N.variables.accentColorD10,
|
|
974
|
+
dark: N.variables.linkColorHover
|
|
975
|
+
}
|
|
976
|
+
}), (0, N.pick)({
|
|
977
|
+
prisma: N.variables.interactiveColorOverlayHover
|
|
978
|
+
}), (0, N.pick)({
|
|
979
|
+
prisma: N.variables.interactiveColorOverlayActive
|
|
980
|
+
}));
|
|
960
981
|
}));
|
|
961
|
-
var
|
|
982
|
+
var Et = H().span.withConfig({
|
|
962
983
|
displayName: "HeadInnerStyles__StyledSortIcon",
|
|
963
984
|
componentId: "sc-1sa0wng-4"
|
|
964
985
|
})([ "flex:0 0 auto;", ";", " color:", ";", "" ], (0, N.pick)({
|
|
@@ -978,32 +999,24 @@
|
|
|
978
999
|
prisma: N.variables.contentColorDefault
|
|
979
1000
|
}));
|
|
980
1001
|
}));
|
|
981
|
-
var
|
|
1002
|
+
var Rt = H()(gt()).withConfig({
|
|
982
1003
|
displayName: "HeadInnerStyles__StyledResize",
|
|
983
1004
|
componentId: "sc-1sa0wng-5"
|
|
984
|
-
})([ "", ";position:absolute;right:-5px;width:9px;top:0;bottom:0;z-index:1;cursor:col-resize;th:last-child > ", " > &{right:0;width:5px;}&::-moz-focus-inner{border:0;padding:0;}&:focus{outline:none;&::before{content:'';position:absolute;background:", ";box-shadow:", ";left:4px;width:1px;top:0;bottom:0;}}" ], N.mixins.reset("block"), /* sc-sel */
|
|
1005
|
+
})([ "", ";position:absolute;right:-5px;width:9px;top:0;bottom:0;z-index:1;cursor:col-resize;th:last-child > ", " > &{right:0;width:5px;}&::-moz-focus-inner{border:0;padding:0;}&:focus{outline:none;&::before{content:'';position:absolute;background:", ";box-shadow:", ";left:4px;width:1px;top:0;bottom:0;}}" ], N.mixins.reset("block"), /* sc-sel */ Ot, N.variables.focusColor, N.variables.focusShadow);
|
|
985
1006
|
// TODO: SUI-5361 remove StyledCaretUp and StyledCaretDown once have made a general way to address the multicolor icon problem
|
|
986
|
-
var
|
|
1007
|
+
var jt = H()(pt()).withConfig({
|
|
987
1008
|
displayName: "HeadInnerStyles__StyledCaretDown",
|
|
988
1009
|
componentId: "sc-1sa0wng-6"
|
|
989
1010
|
})([ "path:last-child{fill:transparent;}" ]);
|
|
990
|
-
var
|
|
1011
|
+
var It = H()(pt()).withConfig({
|
|
991
1012
|
displayName: "HeadInnerStyles__StyledCaretUp",
|
|
992
1013
|
componentId: "sc-1sa0wng-7"
|
|
993
1014
|
})([ "path:first-child{fill:transparent;}" ]);
|
|
994
1015
|
// CONCATENATED MODULE: ./src/Table/HeadCellStyles.ts
|
|
995
|
-
var It = (0, z.css)([ "box-shadow:", ";outline:none;& > ", "{", ";}" ], N.variables.focusShadowInset, /* sc-sel */ kt, (0,
|
|
996
|
-
N.pick)({
|
|
997
|
-
enterprise: {
|
|
998
|
-
light: (0, z.css)([ "color:", ";" ], N.variables.accentColorD10),
|
|
999
|
-
dark: (0, z.css)([ "color:", ";" ], N.variables.linkColorHover)
|
|
1000
|
-
},
|
|
1001
|
-
prisma: (0, z.css)([ "background-color:", ";" ], N.variables.interactiveColorOverlaySelected)
|
|
1002
|
-
}));
|
|
1003
1016
|
var Tt = H().th.withConfig({
|
|
1004
1017
|
displayName: "HeadCellStyles__Styled",
|
|
1005
1018
|
componentId: "sc-1hj81sa-0"
|
|
1006
|
-
})([ "", ";background-color:", ";box-sizing:content-box;text-align:left;vertical-align:", ";& + &{border-left:1px solid ", ";}", " ", " ", "
|
|
1019
|
+
})([ "", ";background-color:", ";box-sizing:content-box;text-align:left;vertical-align:", ";& + &{border-left:1px solid ", ";}", " ", " ", "" ], N.mixins.reset("table-cell"), (0,
|
|
1007
1020
|
N.pick)({
|
|
1008
1021
|
enterprise: {
|
|
1009
1022
|
light: N.variables.gray92,
|
|
@@ -1026,19 +1039,6 @@
|
|
|
1026
1039
|
enterprise: N.variables.backgroundColor,
|
|
1027
1040
|
prisma: N.variables.backgroundColorPage
|
|
1028
1041
|
}));
|
|
1029
|
-
}), (function(e) {
|
|
1030
|
-
var t = e.$clickable, n = e.$focusWithin;
|
|
1031
|
-
return t && (0, z.css)([ "cursor:pointer;&:focus{", "}", " &:hover{outline:none;& > ", "{color:", ";background-color:", ";}}&:active{& > ", "{background-color:", ";}}" ], It, n && (0,
|
|
1032
|
-
z.css)([ "&:focus-within{", "}" ], It), /* sc-sel */ kt, (0, N.pick)({
|
|
1033
|
-
enterprise: {
|
|
1034
|
-
light: N.variables.accentColorD10,
|
|
1035
|
-
dark: N.variables.linkColorHover
|
|
1036
|
-
}
|
|
1037
|
-
}), (0, N.pick)({
|
|
1038
|
-
prisma: N.variables.interactiveColorOverlayHover
|
|
1039
|
-
}), /* sc-sel */ kt, (0, N.pick)({
|
|
1040
|
-
prisma: N.variables.interactiveColorOverlayActive
|
|
1041
|
-
}));
|
|
1042
1042
|
}), (function(e) {
|
|
1043
1043
|
var t = e.$dragging;
|
|
1044
1044
|
return t && (0, z.css)([ "background-color:", ";&:focus{box-shadow:none;}" ], (0,
|
|
@@ -1050,15 +1050,15 @@
|
|
|
1050
1050
|
prisma: N.mixins.overlayColors(N.variables.backgroundColorPage, N.variables.interactiveColorOverlayDrag)
|
|
1051
1051
|
}));
|
|
1052
1052
|
}), (0, N.pickVariant)("$variant", {
|
|
1053
|
-
actions: (0, z.css)([ "& > ", "{padding-right:8px;}" ], /* sc-sel */
|
|
1054
|
-
info: (0, z.css)([ "& > ", "{", ";}" ], /* sc-sel */
|
|
1053
|
+
actions: (0, z.css)([ "& > ", "{padding-right:8px;}" ], /* sc-sel */ Ot),
|
|
1054
|
+
info: (0, z.css)([ "& > ", "{", ";}" ], /* sc-sel */ Ot, (0, N.pick)({
|
|
1055
1055
|
enterprise: (0, z.css)([ "padding-top:7px;" ]),
|
|
1056
1056
|
prisma: {
|
|
1057
1057
|
comfortable: (0, z.css)([ "padding:16px 12px;" ]),
|
|
1058
1058
|
compact: (0, z.css)([ "padding:6px 12px;" ])
|
|
1059
1059
|
}
|
|
1060
1060
|
})),
|
|
1061
|
-
toggleAll: (0, z.css)([ "& > ", "{padding-top:", ";}" ], /* sc-sel */
|
|
1061
|
+
toggleAll: (0, z.css)([ "& > ", "{padding-top:", ";}" ], /* sc-sel */ Ot, (0, N.pick)({
|
|
1062
1062
|
prisma: {
|
|
1063
1063
|
comfortable: "14px",
|
|
1064
1064
|
compact: "7px"
|
|
@@ -1230,12 +1230,12 @@
|
|
|
1230
1230
|
}, Lt.apply(null, arguments);
|
|
1231
1231
|
}
|
|
1232
1232
|
function $t(e) {
|
|
1233
|
-
return Kt(e) ||
|
|
1233
|
+
return Kt(e) || Bt(e) || Ut(e) || Wt();
|
|
1234
1234
|
}
|
|
1235
|
-
function
|
|
1235
|
+
function Wt() {
|
|
1236
1236
|
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
1237
1237
|
}
|
|
1238
|
-
function
|
|
1238
|
+
function Bt(e) {
|
|
1239
1239
|
if ("undefined" != typeof Symbol && null != e[Symbol.iterator] || null != e["@@iterator"]) return Array.from(e);
|
|
1240
1240
|
}
|
|
1241
1241
|
function Kt(e) {
|
|
@@ -1310,7 +1310,9 @@
|
|
|
1310
1310
|
}
|
|
1311
1311
|
var Zt = {
|
|
1312
1312
|
align: i().oneOf([ "left", "center", "right" ]),
|
|
1313
|
+
clickable: i().bool,
|
|
1313
1314
|
columnId: i().any,
|
|
1315
|
+
focusWithin: i().bool,
|
|
1314
1316
|
hasActionsHead: i().bool,
|
|
1315
1317
|
id: i().string,
|
|
1316
1318
|
index: i().number,
|
|
@@ -1333,8 +1335,8 @@
|
|
|
1333
1335
|
});
|
|
1334
1336
|
var nn = Object.freeze({
|
|
1335
1337
|
none: pt(),
|
|
1336
|
-
asc:
|
|
1337
|
-
desc:
|
|
1338
|
+
asc: It,
|
|
1339
|
+
desc: jt
|
|
1338
1340
|
});
|
|
1339
1341
|
var rn = Object.freeze({
|
|
1340
1342
|
none: st(),
|
|
@@ -1342,209 +1344,212 @@
|
|
|
1342
1344
|
desc: it()
|
|
1343
1345
|
});
|
|
1344
1346
|
function on(e) {
|
|
1345
|
-
var t = e.index, o = e.
|
|
1347
|
+
var t = e.index, o = e.clickable, i = e.columnId, a = e.focusWithin, l = e.id, c = e.width, s = e.onDragEnd, u = e.onAutosizeColumn, d = e.align, f = d === void 0 ? "left" : d, p = e.label, v = e.hasActionsHead, b = v === void 0 ? false : v, y = e.isMenu, h = y === void 0 ? false : y, m = e.onDragStart, w = e.onRequestResize, x = e.resizable, C = x === void 0 ? true : x, S = e.sortDir, k = S === void 0 ? undefined : S, R = e.truncate, j = R === void 0 ? true : R, I = Jt(e, [ "index", "clickable", "columnId", "focusWithin", "id", "width", "onDragEnd", "onAutosizeColumn", "align", "label", "hasActionsHead", "isMenu", "onDragStart", "onRequestResize", "resizable", "sortDir", "truncate" ]);
|
|
1346
1348
|
if (false) {}
|
|
1347
|
-
var
|
|
1348
|
-
var
|
|
1349
|
-
var
|
|
1350
|
-
var
|
|
1351
|
-
var
|
|
1352
|
-
var
|
|
1353
|
-
var
|
|
1354
|
-
var
|
|
1349
|
+
var D = (0, N.useSplunkTheme)(), _ = D.isEnterprise;
|
|
1350
|
+
var q = (0, T._)("Click to open menu");
|
|
1351
|
+
var A = (0, n.useState)(), z = Ft(A, 2), H = z[0], M = z[1];
|
|
1352
|
+
var L = (0, n.useState)(false), $ = Ft(L, 2), W = $[0], B = $[1];
|
|
1353
|
+
var K = (0, n.useState)(false), F = Ft(K, 2), V = F[0], U = F[1];
|
|
1354
|
+
var G = (0, n.useState)(0), X = Ft(G, 2), Y = X[0], J = X[1];
|
|
1355
|
+
var Q = (0, n.useState)(0), Z = Ft(Q, 2), ee = Z[0], te = Z[1];
|
|
1356
|
+
var ne = (0, n.useRef)(null);
|
|
1355
1357
|
// Cleanup dragend, and unmount during drag
|
|
1356
1358
|
(0, n.useEffect)((function() {
|
|
1357
1359
|
return function() {
|
|
1358
|
-
return
|
|
1360
|
+
return H === null || H === void 0 ? void 0 : H.remove();
|
|
1359
1361
|
};
|
|
1360
|
-
}), [
|
|
1361
|
-
var te;
|
|
1362
|
-
var ne;
|
|
1362
|
+
}), [ H ]);
|
|
1363
1363
|
var re;
|
|
1364
|
-
|
|
1365
|
-
|
|
1366
|
-
|
|
1367
|
-
|
|
1364
|
+
var oe;
|
|
1365
|
+
var ie;
|
|
1366
|
+
if (k !== undefined && en.has(k)) {
|
|
1367
|
+
var ae = _ ? nn : rn;
|
|
1368
|
+
oe = ae[k];
|
|
1369
|
+
ie = tn[k];
|
|
1368
1370
|
}
|
|
1369
|
-
if (
|
|
1370
|
-
var
|
|
1371
|
-
var
|
|
1372
|
-
var
|
|
1373
|
-
|
|
1371
|
+
if (c === "auto") {
|
|
1372
|
+
var le;
|
|
1373
|
+
var ce = ne.current;
|
|
1374
|
+
var se = ce === null || ce === void 0 ? void 0 : (le = ce.parentElement) === null || le === void 0 ? void 0 : le.getBoundingClientRect();
|
|
1375
|
+
re = se === null || se === void 0 ? void 0 : se.width;
|
|
1374
1376
|
} else {
|
|
1375
|
-
|
|
1377
|
+
re = c;
|
|
1376
1378
|
}
|
|
1377
|
-
var
|
|
1379
|
+
var ue = function e(n) {
|
|
1378
1380
|
var r = (0, E.keycode)(n.nativeEvent);
|
|
1379
|
-
if (
|
|
1381
|
+
if (w === undefined || t === undefined) {
|
|
1380
1382
|
return;
|
|
1381
1383
|
}
|
|
1382
|
-
if (
|
|
1383
|
-
var
|
|
1384
|
-
var
|
|
1385
|
-
var s =
|
|
1386
|
-
|
|
1384
|
+
if (c === "auto") {
|
|
1385
|
+
var o;
|
|
1386
|
+
var a = ne.current;
|
|
1387
|
+
var s = a === null || a === void 0 ? void 0 : (o = a.parentElement) === null || o === void 0 ? void 0 : o.getBoundingClientRect();
|
|
1388
|
+
re = s === null || s === void 0 ? void 0 : s.width;
|
|
1387
1389
|
} else {
|
|
1388
|
-
|
|
1390
|
+
re = c;
|
|
1389
1391
|
}
|
|
1390
|
-
if (
|
|
1392
|
+
if (re === undefined) {
|
|
1391
1393
|
return;
|
|
1392
1394
|
}
|
|
1393
1395
|
if (r === "left") {
|
|
1394
1396
|
n.preventDefault();
|
|
1395
1397
|
// prevent text selection
|
|
1396
|
-
var u = Math.max(
|
|
1397
|
-
|
|
1398
|
+
var u = Math.max(re - 10, 20);
|
|
1399
|
+
w(n, {
|
|
1398
1400
|
index: t,
|
|
1399
|
-
columnId:
|
|
1400
|
-
id:
|
|
1401
|
+
columnId: i,
|
|
1402
|
+
id: l,
|
|
1401
1403
|
width: u
|
|
1402
1404
|
});
|
|
1403
1405
|
}
|
|
1404
1406
|
if (r === "right") {
|
|
1405
1407
|
n.preventDefault();
|
|
1406
1408
|
// prevent text selection
|
|
1407
|
-
var d =
|
|
1408
|
-
|
|
1409
|
+
var d = re + 10;
|
|
1410
|
+
w(n, {
|
|
1409
1411
|
index: t,
|
|
1410
|
-
columnId:
|
|
1411
|
-
id:
|
|
1412
|
+
columnId: i,
|
|
1413
|
+
id: l,
|
|
1412
1414
|
width: d
|
|
1413
1415
|
});
|
|
1414
1416
|
}
|
|
1415
1417
|
};
|
|
1416
|
-
var
|
|
1417
|
-
if (
|
|
1418
|
+
var de = function e(t) {
|
|
1419
|
+
if (c === "auto") {
|
|
1418
1420
|
var n;
|
|
1419
|
-
var r =
|
|
1421
|
+
var r = ne.current;
|
|
1420
1422
|
var o = r === null || r === void 0 ? void 0 : (n = r.parentElement) === null || n === void 0 ? void 0 : n.getBoundingClientRect();
|
|
1421
|
-
|
|
1423
|
+
re = o === null || o === void 0 ? void 0 : o.width;
|
|
1422
1424
|
} else {
|
|
1423
|
-
|
|
1425
|
+
re = c;
|
|
1424
1426
|
}
|
|
1425
|
-
if (
|
|
1427
|
+
if (re === undefined) {
|
|
1426
1428
|
return;
|
|
1427
1429
|
}
|
|
1428
1430
|
t.preventDefault();
|
|
1429
1431
|
// prevent text selection
|
|
1430
|
-
|
|
1431
|
-
|
|
1432
|
-
|
|
1432
|
+
J(t.clientX);
|
|
1433
|
+
te(re || 0);
|
|
1434
|
+
B(true);
|
|
1433
1435
|
};
|
|
1434
|
-
var
|
|
1435
|
-
var r =
|
|
1436
|
-
var
|
|
1436
|
+
var fe = function e(n) {
|
|
1437
|
+
var r = Y - n.clientX;
|
|
1438
|
+
var o = Math.max(ee - r, 16);
|
|
1437
1439
|
if (t !== undefined) {
|
|
1438
|
-
|
|
1440
|
+
w === null || w === void 0 ? void 0 : w(n, {
|
|
1439
1441
|
index: t,
|
|
1440
|
-
columnId:
|
|
1441
|
-
id:
|
|
1442
|
-
width:
|
|
1442
|
+
columnId: i,
|
|
1443
|
+
id: l,
|
|
1444
|
+
width: o
|
|
1443
1445
|
});
|
|
1444
1446
|
}
|
|
1445
1447
|
};
|
|
1446
|
-
var
|
|
1447
|
-
|
|
1448
|
+
var pe = function e() {
|
|
1449
|
+
B(false);
|
|
1448
1450
|
};
|
|
1449
|
-
var
|
|
1451
|
+
var ve = function e(n) {
|
|
1450
1452
|
var r;
|
|
1451
|
-
var
|
|
1452
|
-
var a =
|
|
1453
|
+
var o = Ht();
|
|
1454
|
+
var a = ne.current;
|
|
1453
1455
|
if (n.dataTransfer.setDragImage && (a === null || a === void 0 ? void 0 : a.parentElement)) {
|
|
1454
1456
|
var l = a.parentElement.getBoundingClientRect();
|
|
1455
1457
|
var c = a.cloneNode(true);
|
|
1456
1458
|
c.style.width = "".concat(l.width, "px");
|
|
1457
1459
|
c.style.height = "".concat(l.height, "px");
|
|
1458
1460
|
c.setAttribute("data-helper", "true");
|
|
1459
|
-
|
|
1461
|
+
o.body.appendChild(c);
|
|
1460
1462
|
n.dataTransfer.setDragImage(c, n.clientX - l.left, n.clientY - l.top);
|
|
1461
|
-
|
|
1462
|
-
|
|
1463
|
+
U(true);
|
|
1464
|
+
M(c);
|
|
1463
1465
|
}
|
|
1464
1466
|
n.dataTransfer.effectAllowed = "move";
|
|
1465
1467
|
n.dataTransfer.setData("text", (r = a === null || a === void 0 ? void 0 : a.textContent) !== null && r !== void 0 ? r : "");
|
|
1466
1468
|
// Required for Firefox
|
|
1467
|
-
|
|
1469
|
+
m === null || m === void 0 ? void 0 : m(t, i);
|
|
1468
1470
|
};
|
|
1469
|
-
var
|
|
1470
|
-
|
|
1471
|
-
|
|
1472
|
-
|
|
1471
|
+
var be = function e() {
|
|
1472
|
+
M(undefined);
|
|
1473
|
+
U(false);
|
|
1474
|
+
s === null || s === void 0 ? void 0 : s();
|
|
1473
1475
|
};
|
|
1474
|
-
var
|
|
1476
|
+
var ye = function e(n) {
|
|
1475
1477
|
if (t !== undefined) {
|
|
1476
|
-
|
|
1478
|
+
u === null || u === void 0 ? void 0 : u(n, {
|
|
1477
1479
|
index: t,
|
|
1478
|
-
columnId:
|
|
1480
|
+
columnId: i
|
|
1479
1481
|
});
|
|
1480
1482
|
}
|
|
1481
1483
|
};
|
|
1482
|
-
var
|
|
1483
|
-
var
|
|
1484
|
-
var
|
|
1485
|
-
width:
|
|
1484
|
+
var he = !!m;
|
|
1485
|
+
var me = Mt();
|
|
1486
|
+
var ge = re ? (0, P.sprintf)((0, T._)("%(width)d pixels"), {
|
|
1487
|
+
width: re
|
|
1486
1488
|
}) : undefined;
|
|
1487
|
-
var
|
|
1488
|
-
ariaControls:
|
|
1489
|
+
var we = i ? {
|
|
1490
|
+
ariaControls: i
|
|
1489
1491
|
} : {};
|
|
1490
1492
|
|
|
1491
|
-
return r().createElement(
|
|
1492
|
-
draggable:
|
|
1493
|
-
onDragStart:
|
|
1494
|
-
onDragEnd:
|
|
1495
|
-
ref:
|
|
1496
|
-
|
|
1497
|
-
$
|
|
1498
|
-
$
|
|
1499
|
-
$
|
|
1500
|
-
|
|
1501
|
-
|
|
1493
|
+
return r().createElement(Ot, Lt({
|
|
1494
|
+
draggable: he || undefined,
|
|
1495
|
+
onDragStart: he ? ve : undefined,
|
|
1496
|
+
onDragEnd: he ? be : undefined,
|
|
1497
|
+
ref: ne,
|
|
1498
|
+
role: o ? "button" : undefined,
|
|
1499
|
+
$hasActionsHead: !!b,
|
|
1500
|
+
$align: f,
|
|
1501
|
+
$draggable: he,
|
|
1502
|
+
$dragging: !!V,
|
|
1503
|
+
$clickable: o,
|
|
1504
|
+
$focusWithin: a
|
|
1505
|
+
}, g()(I, [].concat($t(Object.keys(on.propTypes)), [ "id" ]))), W && r().createElement(r().Fragment, null, r().createElement(O(), {
|
|
1506
|
+
target: me,
|
|
1502
1507
|
eventType: "mouseup",
|
|
1503
|
-
listener:
|
|
1508
|
+
listener: pe
|
|
1504
1509
|
}), r().createElement(O(), {
|
|
1505
|
-
target:
|
|
1510
|
+
target: me,
|
|
1506
1511
|
eventType: "mousemove",
|
|
1507
|
-
listener:
|
|
1508
|
-
})),
|
|
1512
|
+
listener: fe
|
|
1513
|
+
})), w && C && r().createElement(Rt, Lt({
|
|
1509
1514
|
"aria-label": (0, P.sprintf)((0, T._)("Resize %(label)s"), {
|
|
1510
|
-
label:
|
|
1515
|
+
label: p
|
|
1511
1516
|
})
|
|
1512
|
-
},
|
|
1513
|
-
"aria-valuetext":
|
|
1517
|
+
}, we, {
|
|
1518
|
+
"aria-valuetext": ge,
|
|
1514
1519
|
"data-test": "resize",
|
|
1515
|
-
onMouseDown:
|
|
1516
|
-
onDoubleClick:
|
|
1517
|
-
onKeyDown:
|
|
1520
|
+
onMouseDown: de,
|
|
1521
|
+
onDoubleClick: ye,
|
|
1522
|
+
onKeyDown: ue,
|
|
1518
1523
|
orientation: "vertical",
|
|
1519
1524
|
tabIndex: 0
|
|
1520
|
-
})),
|
|
1525
|
+
})), he && r().createElement(xt, null, r().createElement(At, {
|
|
1521
1526
|
screenReaderContent: (0, T._)("Press left or right arrow key to reorder the columns.")
|
|
1522
1527
|
})), r().createElement(St, {
|
|
1523
|
-
$align:
|
|
1524
|
-
$truncate:
|
|
1525
|
-
$fill:
|
|
1526
|
-
},
|
|
1528
|
+
$align: f,
|
|
1529
|
+
$truncate: j,
|
|
1530
|
+
$fill: h
|
|
1531
|
+
}, p, h &&
|
|
1527
1532
|
|
|
1528
1533
|
// this icon indicates "has a menu" in all themes
|
|
1529
|
-
r().createElement(Ct, null,
|
|
1534
|
+
r().createElement(Ct, null, _ ? r().createElement(bt(), {
|
|
1530
1535
|
"data-test": "caret-down",
|
|
1531
|
-
screenReaderText:
|
|
1536
|
+
screenReaderText: q,
|
|
1532
1537
|
hideDefaultTooltip: true,
|
|
1533
1538
|
size: .5
|
|
1534
1539
|
}) : r().createElement(dt(), {
|
|
1535
1540
|
"data-test": "caret-down",
|
|
1536
|
-
"aria-label":
|
|
1537
|
-
}))),
|
|
1538
|
-
$sorted:
|
|
1539
|
-
},
|
|
1541
|
+
"aria-label": q
|
|
1542
|
+
}))), k && r().createElement(Et, {
|
|
1543
|
+
$sorted: k !== "none"
|
|
1544
|
+
}, oe !== undefined && (_ ? r().createElement(oe, {
|
|
1540
1545
|
inline: true,
|
|
1541
1546
|
"aria-hidden": false,
|
|
1542
|
-
"aria-label":
|
|
1547
|
+
"aria-label": ie,
|
|
1543
1548
|
viewBox: "-8 0 24 24"
|
|
1544
|
-
}) : r().createElement(
|
|
1549
|
+
}) : r().createElement(oe, {
|
|
1545
1550
|
inline: true,
|
|
1546
1551
|
"aria-hidden": false,
|
|
1547
|
-
"aria-label":
|
|
1552
|
+
"aria-label": ie
|
|
1548
1553
|
}))));
|
|
1549
1554
|
}
|
|
1550
1555
|
on.propTypes = Zt;
|
|
@@ -1832,10 +1837,7 @@
|
|
|
1832
1837
|
"data-test-sort-dir": y && w,
|
|
1833
1838
|
id: k ? u : undefined,
|
|
1834
1839
|
onClick: y || I ? this.handleClick : undefined,
|
|
1835
|
-
tabIndex: k && (R || y || I) ? 0 : undefined,
|
|
1836
1840
|
$dragging: this.state.isDragging || undefined,
|
|
1837
|
-
$clickable: i || R || j || I,
|
|
1838
|
-
$focusWithin: i,
|
|
1839
1841
|
$variant: C,
|
|
1840
1842
|
$zIndex: E,
|
|
1841
1843
|
$isFixed: D === "fixed"
|
|
@@ -1855,7 +1857,10 @@
|
|
|
1855
1857
|
onRequestResize: b,
|
|
1856
1858
|
sortDir: y && w,
|
|
1857
1859
|
truncate: P,
|
|
1858
|
-
width: O
|
|
1860
|
+
width: O,
|
|
1861
|
+
clickable: i || R || j || I,
|
|
1862
|
+
tabIndex: k && (R || y || I) ? 0 : undefined,
|
|
1863
|
+
focusWithin: i
|
|
1859
1864
|
}), m !== "none" && r().createElement(Pt, {
|
|
1860
1865
|
$position: m
|
|
1861
1866
|
}));
|
|
@@ -1894,8 +1899,8 @@
|
|
|
1894
1899
|
const Ln = require("@splunk/react-icons/DotsThreeVertical");
|
|
1895
1900
|
var $n = e.n(Ln);
|
|
1896
1901
|
// CONCATENATED MODULE: external "@splunk/react-ui/Button"
|
|
1897
|
-
const
|
|
1898
|
-
var
|
|
1902
|
+
const Wn = require("@splunk/react-ui/Button");
|
|
1903
|
+
var Bn = e.n(Wn);
|
|
1899
1904
|
// CONCATENATED MODULE: external "@splunk/react-ui/Dropdown"
|
|
1900
1905
|
const Kn = require("@splunk/react-ui/Dropdown");
|
|
1901
1906
|
var Fn = e.n(Kn);
|
|
@@ -2253,9 +2258,9 @@
|
|
|
2253
2258
|
function Nr(e) {
|
|
2254
2259
|
var t = $r();
|
|
2255
2260
|
return function() {
|
|
2256
|
-
var n, r =
|
|
2261
|
+
var n, r = Wr(e);
|
|
2257
2262
|
if (t) {
|
|
2258
|
-
var o =
|
|
2263
|
+
var o = Wr(this).constructor;
|
|
2259
2264
|
n = Reflect.construct(r, arguments, o);
|
|
2260
2265
|
} else n = r.apply(this, arguments);
|
|
2261
2266
|
return Mr(this, n);
|
|
@@ -2278,12 +2283,12 @@
|
|
|
2278
2283
|
return !!e;
|
|
2279
2284
|
})();
|
|
2280
2285
|
}
|
|
2281
|
-
function
|
|
2282
|
-
return
|
|
2286
|
+
function Wr(e) {
|
|
2287
|
+
return Wr = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(e) {
|
|
2283
2288
|
return e.__proto__ || Object.getPrototypeOf(e);
|
|
2284
|
-
},
|
|
2289
|
+
}, Wr(e);
|
|
2285
2290
|
}
|
|
2286
|
-
function
|
|
2291
|
+
function Br(e, t) {
|
|
2287
2292
|
var n = Object.keys(e);
|
|
2288
2293
|
if (Object.getOwnPropertySymbols) {
|
|
2289
2294
|
var r = Object.getOwnPropertySymbols(e);
|
|
@@ -2296,9 +2301,9 @@
|
|
|
2296
2301
|
function Kr(e) {
|
|
2297
2302
|
for (var t = 1; t < arguments.length; t++) {
|
|
2298
2303
|
var n = null != arguments[t] ? arguments[t] : {};
|
|
2299
|
-
t % 2 ?
|
|
2304
|
+
t % 2 ? Br(Object(n), !0).forEach((function(t) {
|
|
2300
2305
|
Fr(e, t, n[t]);
|
|
2301
|
-
})) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) :
|
|
2306
|
+
})) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : Br(Object(n)).forEach((function(t) {
|
|
2302
2307
|
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
|
|
2303
2308
|
}));
|
|
2304
2309
|
}
|
|
@@ -2416,7 +2421,7 @@
|
|
|
2416
2421
|
return r().createElement(Un(), Yr({
|
|
2417
2422
|
content: (0, T._)("Actions"),
|
|
2418
2423
|
contentRelationship: "label"
|
|
2419
|
-
}, e), r().createElement(
|
|
2424
|
+
}, e), r().createElement(Bn(), {
|
|
2420
2425
|
appearance: "secondary",
|
|
2421
2426
|
"data-test": "actions-secondary-toggle",
|
|
2422
2427
|
icon: r().createElement($n(), {
|
|
@@ -2436,17 +2441,17 @@
|
|
|
2436
2441
|
};
|
|
2437
2442
|
}), [ f, u ]);
|
|
2438
2443
|
var q = (0, l.useSortable)(_), A = q.attributes, z = q.listeners, H = q.transform, N = q.transition, M = q.setNodeRef, $ = q.setActivatorNodeRef;
|
|
2439
|
-
var
|
|
2444
|
+
var W = (0, n.useMemo)((function() {
|
|
2440
2445
|
return f ? Kr(Kr({}, I), {}, {
|
|
2441
2446
|
transform: Mn.CSS.Translate.toString(H),
|
|
2442
2447
|
transition: N
|
|
2443
2448
|
}) : I;
|
|
2444
2449
|
}), [ f, H, N, I ]);
|
|
2445
|
-
var
|
|
2450
|
+
var B = (0, n.useRef)(null);
|
|
2446
2451
|
var K = function e(t) {
|
|
2447
2452
|
var n = t.target;
|
|
2448
2453
|
while (n) {
|
|
2449
|
-
if (
|
|
2454
|
+
if (B.current === n) {
|
|
2450
2455
|
break;
|
|
2451
2456
|
}
|
|
2452
2457
|
// Ignore clicks on row-actions
|
|
@@ -2512,7 +2517,7 @@
|
|
|
2512
2517
|
return a;
|
|
2513
2518
|
};
|
|
2514
2519
|
function Y(e) {
|
|
2515
|
-
|
|
2520
|
+
B.current = e;
|
|
2516
2521
|
L(p, e);
|
|
2517
2522
|
if (f) {
|
|
2518
2523
|
M(e);
|
|
@@ -2565,7 +2570,7 @@
|
|
|
2565
2570
|
onClick: w ? K : undefined,
|
|
2566
2571
|
onKeyDown: F,
|
|
2567
2572
|
$rowSelected: !!(S && R),
|
|
2568
|
-
style:
|
|
2573
|
+
style: W
|
|
2569
2574
|
}), f && h != null && r().createElement(vr, Yr({
|
|
2570
2575
|
"aria-label": (0, P.sprintf)((0, T._)("Reorder %(rowLabelValue)s"), {
|
|
2571
2576
|
rowLabelValue: Q
|
|
@@ -3190,7 +3195,7 @@
|
|
|
3190
3195
|
}, No.apply(null, arguments);
|
|
3191
3196
|
}
|
|
3192
3197
|
function Mo(e) {
|
|
3193
|
-
return
|
|
3198
|
+
return Bo(e) || Wo(e) || $o(e) || Lo();
|
|
3194
3199
|
}
|
|
3195
3200
|
function Lo() {
|
|
3196
3201
|
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
@@ -3202,10 +3207,10 @@
|
|
|
3202
3207
|
return "Object" === n && e.constructor && (n = e.constructor.name), "Map" === n || "Set" === n ? Array.from(e) : "Arguments" === n || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n) ? Ko(e, t) : void 0;
|
|
3203
3208
|
}
|
|
3204
3209
|
}
|
|
3205
|
-
function
|
|
3210
|
+
function Wo(e) {
|
|
3206
3211
|
if ("undefined" != typeof Symbol && null != e[Symbol.iterator] || null != e["@@iterator"]) return Array.from(e);
|
|
3207
3212
|
}
|
|
3208
|
-
function
|
|
3213
|
+
function Bo(e) {
|
|
3209
3214
|
if (Array.isArray(e)) return Ko(e);
|
|
3210
3215
|
}
|
|
3211
3216
|
function Ko(e, t) {
|
|
@@ -3546,7 +3551,6 @@
|
|
|
3546
3551
|
}),
|
|
3547
3552
|
"data-test": "head-cell",
|
|
3548
3553
|
$dragging: this.state.isDragging || undefined,
|
|
3549
|
-
$clickable: true,
|
|
3550
3554
|
$variant: E,
|
|
3551
3555
|
id: R ? q : undefined,
|
|
3552
3556
|
tabIndex: R ? 0 : undefined,
|
|
@@ -3572,7 +3576,8 @@
|
|
|
3572
3576
|
onAutosizeColumn: b,
|
|
3573
3577
|
onRequestResize: h,
|
|
3574
3578
|
truncate: O,
|
|
3575
|
-
width: j
|
|
3579
|
+
width: j,
|
|
3580
|
+
clickable: true
|
|
3576
3581
|
}), C !== "none" && r().createElement(Pt, {
|
|
3577
3582
|
$position: C
|
|
3578
3583
|
}), r().createElement(zo(), {
|
|
@@ -4144,8 +4149,8 @@
|
|
|
4144
4149
|
}
|
|
4145
4150
|
} ]);
|
|
4146
4151
|
// CONCATENATED MODULE: external "lodash/extend"
|
|
4147
|
-
const
|
|
4148
|
-
var
|
|
4152
|
+
const Wi = require("lodash/extend");
|
|
4153
|
+
var Bi = e.n(Wi);
|
|
4149
4154
|
// CONCATENATED MODULE: ./src/Table/HeadTableStyles.ts
|
|
4150
4155
|
var Ki = H()(he).withConfig({
|
|
4151
4156
|
displayName: "HeadTableStyles__Styled",
|
|
@@ -4358,7 +4363,7 @@
|
|
|
4358
4363
|
var C = d ? n.Children.toArray(v.props.children) : n.Children.toArray(v.props.children).filter(n.isValidElement).map((function(e, t) {
|
|
4359
4364
|
|
|
4360
4365
|
return (0, n.cloneElement)(e, {
|
|
4361
|
-
style:
|
|
4366
|
+
style: Bi()({}, e.props.style, {
|
|
4362
4367
|
width: o[t + x]
|
|
4363
4368
|
})
|
|
4364
4369
|
});
|
|
@@ -4377,7 +4382,7 @@
|
|
|
4377
4382
|
}, r().createElement(Ki, Gi({
|
|
4378
4383
|
"data-test": "".concat(s, "-head-table"),
|
|
4379
4384
|
"data-fixed-column": d ? "true" : undefined,
|
|
4380
|
-
style:
|
|
4385
|
+
style: Bi()({}, f, {
|
|
4381
4386
|
marginLeft: u,
|
|
4382
4387
|
width: d ? undefined : p
|
|
4383
4388
|
})
|
|
@@ -4594,7 +4599,7 @@
|
|
|
4594
4599
|
// Internal Helper Modules
|
|
4595
4600
|
/** @public */
|
|
4596
4601
|
/** @public */
|
|
4597
|
-
/** @public */ var
|
|
4602
|
+
/** @public */ var Wa = {
|
|
4598
4603
|
actions: i().arrayOf(i().element),
|
|
4599
4604
|
actionsColumnWidth: i().number,
|
|
4600
4605
|
children: i().node,
|
|
@@ -4616,7 +4621,7 @@
|
|
|
4616
4621
|
onRequestResizeColumn: i().func,
|
|
4617
4622
|
resizableFillLayout: i().bool
|
|
4618
4623
|
};
|
|
4619
|
-
var
|
|
4624
|
+
var Ba = {
|
|
4620
4625
|
actions: [],
|
|
4621
4626
|
dockOffset: 0,
|
|
4622
4627
|
headType: "inline",
|
|
@@ -4703,7 +4708,7 @@
|
|
|
4703
4708
|
function el(e) {
|
|
4704
4709
|
var t = e.actions, o = e.actionsColumnWidth, i = e.children, c = e.dockOffset, s = e.dockScrollBar, d = e.elementRef, p = e.headType, v = e.innerStyle, b = e.onRequestMoveColumn, h = e.onRequestMoveRow, m = e.onRequestResizeColumn, w = e.onRequestToggleAllRows, C = e.onScroll, k = e.outerStyle, j = e.primaryColumnIndex, T = e.resizableFillLayout, D = e.rowExpansion, _ = e.rowSelection, q = e.stripeRows, A = e.tableStyle, z = La(e, [ "actions", "actionsColumnWidth", "children", "dockOffset", "dockScrollBar", "elementRef", "headType", "innerStyle", "onRequestMoveColumn", "onRequestMoveRow", "onRequestResizeColumn", "onRequestToggleAllRows", "onScroll", "outerStyle", "primaryColumnIndex", "resizableFillLayout", "rowExpansion", "rowSelection", "stripeRows", "tableStyle" ]);
|
|
4705
4710
|
var H = (0, n.useState)([]), N = qa(H, 2), M = N[0], L = N[1];
|
|
4706
|
-
var $ = (0, n.useState)(),
|
|
4711
|
+
var $ = (0, n.useState)(), W = qa($, 2), B = W[0], K = W[1];
|
|
4707
4712
|
var F = (0, n.useState)(), V = qa(F, 2), U = V[0], G = V[1];
|
|
4708
4713
|
var X = (0, n.useState)(), Y = qa(X, 2), J = Y[0], Q = Y[1];
|
|
4709
4714
|
var Z = (0, n.useState)(), ee = qa(Z, 2), te = ee[0], ne = ee[1];
|
|
@@ -4862,7 +4867,7 @@
|
|
|
4862
4867
|
var $e = x()(Le, 100, {
|
|
4863
4868
|
trailing: false
|
|
4864
4869
|
});
|
|
4865
|
-
var
|
|
4870
|
+
var We = function e(t) {
|
|
4866
4871
|
t.preventDefault();
|
|
4867
4872
|
// necessary for the drop event to fire
|
|
4868
4873
|
if (t.dataTransfer) {
|
|
@@ -4870,7 +4875,7 @@
|
|
|
4870
4875
|
}
|
|
4871
4876
|
$e(t.clientX);
|
|
4872
4877
|
};
|
|
4873
|
-
var
|
|
4878
|
+
var Be = function e(t) {
|
|
4874
4879
|
t.preventDefault();
|
|
4875
4880
|
// necessary for the drop event to fire
|
|
4876
4881
|
ue(t.clientX);
|
|
@@ -4886,8 +4891,8 @@
|
|
|
4886
4891
|
};
|
|
4887
4892
|
var Ve = function e() {
|
|
4888
4893
|
var t = Mt();
|
|
4889
|
-
t.removeEventListener("dragenter",
|
|
4890
|
-
t.removeEventListener("dragover",
|
|
4894
|
+
t.removeEventListener("dragenter", Be);
|
|
4895
|
+
t.removeEventListener("dragover", We);
|
|
4891
4896
|
t.removeEventListener("drop", Ke);
|
|
4892
4897
|
t.removeEventListener("dragend", Fe);
|
|
4893
4898
|
$e.cancel();
|
|
@@ -4906,8 +4911,8 @@
|
|
|
4906
4911
|
var n = t.dragIndex;
|
|
4907
4912
|
var r = Mt();
|
|
4908
4913
|
ae(n);
|
|
4909
|
-
r.addEventListener("dragenter",
|
|
4910
|
-
r.addEventListener("dragover",
|
|
4914
|
+
r.addEventListener("dragenter", Be);
|
|
4915
|
+
r.addEventListener("dragover", We);
|
|
4911
4916
|
r.addEventListener("drop", Ke);
|
|
4912
4917
|
r.addEventListener("dragend", Fe);
|
|
4913
4918
|
};
|
|
@@ -5005,7 +5010,7 @@
|
|
|
5005
5010
|
headType: "docked",
|
|
5006
5011
|
tHead: i,
|
|
5007
5012
|
cellWidths: M,
|
|
5008
|
-
horizontalOffset:
|
|
5013
|
+
horizontalOffset: B,
|
|
5009
5014
|
tableWidth: U,
|
|
5010
5015
|
top: J,
|
|
5011
5016
|
width: te,
|
|
@@ -5146,7 +5151,7 @@
|
|
|
5146
5151
|
ref: d,
|
|
5147
5152
|
style: k,
|
|
5148
5153
|
"data-test-row-selection": w ? _ : undefined
|
|
5149
|
-
}, g()(z, [].concat(Ta(Object.keys(
|
|
5154
|
+
}, g()(z, [].concat(Ta(Object.keys(Wa)), [ "style" ]))), r().createElement(O(), {
|
|
5150
5155
|
target: Mt(),
|
|
5151
5156
|
eventType: "scroll",
|
|
5152
5157
|
listener: _e,
|
|
@@ -5186,7 +5191,7 @@
|
|
|
5186
5191
|
$resizableFillLayout: T
|
|
5187
5192
|
}, it, rt, ot))))), tt()));
|
|
5188
5193
|
}
|
|
5189
|
-
el.propTypes =
|
|
5194
|
+
el.propTypes = Wa;
|
|
5190
5195
|
var tl = function(e) {
|
|
5191
5196
|
ga(n, e);
|
|
5192
5197
|
var t = xa(n);
|
|
@@ -5204,8 +5209,8 @@
|
|
|
5204
5209
|
} ]);
|
|
5205
5210
|
return n;
|
|
5206
5211
|
}(n.Component);
|
|
5207
|
-
Ea(tl, "propTypes",
|
|
5208
|
-
Ea(tl, "defaultProps",
|
|
5212
|
+
Ea(tl, "propTypes", Wa);
|
|
5213
|
+
Ea(tl, "defaultProps", Ba);
|
|
5209
5214
|
Ea(tl, "Caption", Ee);
|
|
5210
5215
|
Ea(tl, "Head", To);
|
|
5211
5216
|
Ea(tl, "HeadCell", _n);
|