@splunk/react-ui 4.39.0 → 4.41.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 +42 -0
- package/Calendar.js +548 -744
- package/Card.js +3 -1
- package/Chip.js +133 -125
- package/ControlGroup.js +27 -30
- package/Date.js +158 -161
- package/FormRows.js +93 -97
- package/Link.js +21 -19
- package/MIGRATION.mdx +54 -2
- package/Menu.js +1 -1
- package/Message.js +136 -123
- package/MessageBar.js +59 -57
- package/Multiselect.js +2985 -3085
- package/Number.js +23 -18
- package/Popover.js +2 -1
- package/RadioBar.js +19 -15
- package/ResultsMenu.js +1208 -1028
- package/Select.js +1906 -1998
- package/Slider.js +346 -300
- package/SlidingPanels.js +166 -148
- package/SplitButton.d.ts +2 -0
- package/TabBar.js +193 -175
- package/TabLayout.js +16 -10
- package/Table.js +236 -227
- package/TransitionOpen.js +44 -65
- package/WaitSpinner.js +1 -1
- package/package.json +2 -2
- package/types/src/ButtonSimple/ButtonSimple.d.ts +1 -1
- package/types/src/Calendar/Calendar.d.ts +28 -30
- package/types/src/Calendar/MonthHeader.d.ts +12 -22
- 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/Color/Color.d.ts +2 -2
- package/types/src/ComboBox/ComboBox.d.ts +1 -1
- package/types/src/Date/Date.d.ts +18 -19
- package/types/src/File/File.d.ts +1 -1
- package/types/src/FormRows/FormRows.d.ts +5 -60
- package/types/src/FormRows/Row.d.ts +1 -1
- package/types/src/Link/Link.d.ts +7 -0
- package/types/src/Link/index.d.ts +1 -0
- package/types/src/Menu/Item.d.ts +1 -1
- package/types/src/Menu/Menu.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/Multiselect/Option.d.ts +1 -1
- package/types/src/Number/Number.d.ts +2 -2
- package/types/src/RadioBar/RadioBar.d.ts +2 -2
- package/types/src/ResultsMenu/VirtualizedResultsMenu/VirtualizedResultsMenu.d.ts +1 -1
- package/types/src/ResultsMenu/VirtualizedResultsMenu/injectVirtualizedItem.d.ts +2 -0
- package/types/src/Search/Option.d.ts +1 -1
- package/types/src/Select/Option.d.ts +5 -1
- package/types/src/Select/OptionBase.d.ts +41 -23
- package/types/src/Select/Select.d.ts +3 -1
- package/types/src/Select/SelectAllOption.d.ts +8 -4
- package/types/src/Select/SelectBase.d.ts +76 -66
- package/types/src/Select/docs/examples/Appearance.d.ts +0 -2
- package/types/src/Slider/Slider.d.ts +7 -16
- package/types/src/SlidingPanels/SlidingPanels.d.ts +4 -3
- package/types/src/TabBar/TabBar.d.ts +10 -2
- package/types/src/TabBar/TabBarContext.d.ts +1 -0
- package/types/src/TabBar/docs/examples/IconsAbove.d.ts +2 -0
- package/types/src/TabBar/docs/examples/IconsLeft.d.ts +2 -0
- package/types/src/TabBar/docs/examples/VerticalIconsAbove.d.ts +2 -0
- package/types/src/TabBar/docs/examples/VerticalIconsLeft.d.ts +2 -0
- package/types/src/TabLayout/TabLayout.d.ts +4 -2
- package/types/src/Table/Cell.d.ts +0 -2
- package/types/src/Table/HeadInner.d.ts +5 -1
- package/types/src/Table/Row.d.ts +0 -2
- package/types/src/Table/Table.d.ts +0 -2
- package/types/src/Table/docs/examples/Complex.d.ts +14 -3
- package/types/src/Text/Text.d.ts +2 -2
- package/types/src/TextArea/TextArea.d.ts +2 -2
- package/types/src/Typography/Typography.d.ts +4 -2
- 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/TabBar/docs/examples/IconsInline.d.ts +0 -2
- package/types/src/TabBar/docs/examples/IconsSmall.d.ts +0 -2
- package/types/src/TabBar/docs/examples/VerticalSmallIcons.d.ts +0 -2
- package/types/src/Table/docs/examples/prisma/Complex.d.ts +0 -48
- 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/types/src/Table/docs/examples/{prisma/RowActions.d.ts → RowActions.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"
|
|
@@ -562,7 +559,8 @@
|
|
|
562
559
|
prisma: {
|
|
563
560
|
comfortable: (0, z.css)([ "padding:4px 8px;" ]),
|
|
564
561
|
compact: (0, z.css)([ "padding:0 8px 0 0;" ])
|
|
565
|
-
}
|
|
562
|
+
},
|
|
563
|
+
enterprise: (0, z.css)([ "padding:6px 8px;" ])
|
|
566
564
|
},
|
|
567
565
|
toggle: {
|
|
568
566
|
prisma: {
|
|
@@ -578,27 +576,30 @@
|
|
|
578
576
|
enterprise: (0, z.css)([ "color:", ";*:hover > &&{cursor:pointer;}" ], N.variables.linkColor),
|
|
579
577
|
prisma: (0, z.css)([ "color:", ";*:hover > &&{cursor:pointer;}" ], N.variables.contentColorDefault)
|
|
580
578
|
},
|
|
581
|
-
link: {
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
dark: (0, z.css)([ "color:", ";" ], N.variables.accentColorL20)
|
|
585
|
-
|
|
579
|
+
link: (0, z.css)([ "color:", ";&:hover{cursor:pointer;", "}&:focus{", " box-shadow:", ";}" ], N.variables.linkColor, (0,
|
|
580
|
+
N.pick)({
|
|
581
|
+
enterprise: {
|
|
582
|
+
dark: (0, z.css)([ "color:", ";box-shadow:", ";" ], N.variables.accentColorL20, N.variables.focusShadowInset),
|
|
583
|
+
light: (0, z.css)([ "box-shadow:", ";" ], N.variables.focusShadowInset)
|
|
584
|
+
},
|
|
585
|
+
prisma: (0, z.css)([ "text-decoration:underline;" ])
|
|
586
|
+
}), (0, N.pick)({
|
|
587
|
+
enterprise: {
|
|
586
588
|
dark: (0, z.css)([ "color:", ";" ], N.variables.accentColorL20),
|
|
587
589
|
light: (0, z.css)([ "color:", ";" ], N.variables.focusColor)
|
|
588
|
-
}
|
|
589
|
-
|
|
590
|
+
},
|
|
591
|
+
prisma: (0, z.css)([ "color:", ";text-decoration:underline;" ], N.variables.interactiveColorPrimary)
|
|
592
|
+
}), N.variables.focusShadowInset)
|
|
590
593
|
});
|
|
591
594
|
}), (function(e) {
|
|
592
595
|
var t = e.$clickable, n = e.$focusWithin;
|
|
593
|
-
return t && (0, z.css)([ "cursor:pointer;&:hover{background-color:", ";
|
|
596
|
+
return t && (0, z.css)([ "cursor:pointer;&:hover{background-color:", ";}&:focus{", "}", " &:active{background:", ";}" ], (0,
|
|
594
597
|
N.pick)({
|
|
595
598
|
enterprise: {
|
|
596
599
|
light: N.variables.accentColorL50,
|
|
597
600
|
dark: N.variables.accentColorD50
|
|
598
601
|
},
|
|
599
602
|
prisma: N.variables.interactiveColorOverlayHover
|
|
600
|
-
}), (0, N.pick)({
|
|
601
|
-
prisma: N.variables.contentColorDefault
|
|
602
603
|
}), Re, n && (0, z.css)([ "&:focus-within{", "}" ], Re), (0, N.pick)({
|
|
603
604
|
prisma: N.variables.interactiveColorOverlayActive
|
|
604
605
|
}));
|
|
@@ -692,9 +693,9 @@
|
|
|
692
693
|
function Ne(e) {
|
|
693
694
|
var t = $e();
|
|
694
695
|
return function() {
|
|
695
|
-
var n, r =
|
|
696
|
+
var n, r = We(e);
|
|
696
697
|
if (t) {
|
|
697
|
-
var o =
|
|
698
|
+
var o = We(this).constructor;
|
|
698
699
|
n = Reflect.construct(r, arguments, o);
|
|
699
700
|
} else n = r.apply(this, arguments);
|
|
700
701
|
return Me(this, n);
|
|
@@ -717,12 +718,12 @@
|
|
|
717
718
|
return !!e;
|
|
718
719
|
})();
|
|
719
720
|
}
|
|
720
|
-
function
|
|
721
|
-
return
|
|
721
|
+
function We(e) {
|
|
722
|
+
return We = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(e) {
|
|
722
723
|
return e.__proto__ || Object.getPrototypeOf(e);
|
|
723
|
-
},
|
|
724
|
+
}, We(e);
|
|
724
725
|
}
|
|
725
|
-
function
|
|
726
|
+
function Be(e, t, n) {
|
|
726
727
|
return (t = Ke(t)) in e ? Object.defineProperty(e, t, {
|
|
727
728
|
value: n,
|
|
728
729
|
enumerable: !0,
|
|
@@ -776,13 +777,13 @@
|
|
|
776
777
|
o[i] = arguments[i];
|
|
777
778
|
}
|
|
778
779
|
e = t.call.apply(t, [ this ].concat(o));
|
|
779
|
-
|
|
780
|
-
|
|
780
|
+
Be(Le(e), "el", null);
|
|
781
|
+
Be(Le(e), "handleMount", (function(t) {
|
|
781
782
|
// eslint-disable-next-line react/no-unused-class-component-methods
|
|
782
783
|
e.el = t;
|
|
783
784
|
L(e.props.elementRef, t);
|
|
784
785
|
}));
|
|
785
|
-
|
|
786
|
+
Be(Le(e), "handleClick", (function(t) {
|
|
786
787
|
var n = e.props, r = n.data, o = n.onClick, i = n.variant;
|
|
787
788
|
if (i === "actions") {
|
|
788
789
|
// Action buttons have their own onClicks inside the cell so we don't want Row onClick to fire
|
|
@@ -790,7 +791,7 @@
|
|
|
790
791
|
}
|
|
791
792
|
o === null || o === void 0 ? void 0 : o(t, r);
|
|
792
793
|
}));
|
|
793
|
-
|
|
794
|
+
Be(Le(e), "handleKeyDown", (function(t) {
|
|
794
795
|
var n = e.props, r = n.data, o = n.onClick, i = n.onKeyDown;
|
|
795
796
|
if ((0, E.keycode)(t.nativeEvent) === "enter") {
|
|
796
797
|
o === null || o === void 0 ? void 0 : o(t, r);
|
|
@@ -826,9 +827,9 @@
|
|
|
826
827
|
} ]);
|
|
827
828
|
return n;
|
|
828
829
|
}(n.Component);
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
|
|
830
|
+
Be(Ge, "splunkUiType", "Table.Cell");
|
|
831
|
+
Be(Ge, "propTypes", Ve);
|
|
832
|
+
Be(Ge, "defaultProps", Ue);
|
|
832
833
|
/* harmony default export */ const Xe = Ge;
|
|
833
834
|
// CONCATENATED MODULE: external "lodash/findIndex"
|
|
834
835
|
const Ye = require("lodash/findIndex");
|
|
@@ -912,10 +913,18 @@
|
|
|
912
913
|
}), /* sc-sel */ xt, (0, N.pick)({
|
|
913
914
|
enterprise: wt
|
|
914
915
|
}));
|
|
915
|
-
var kt =
|
|
916
|
+
var kt = (0, z.css)([ "box-shadow:", ";outline:none;", ";" ], N.variables.focusShadowInset, (0,
|
|
917
|
+
N.pick)({
|
|
918
|
+
enterprise: {
|
|
919
|
+
light: (0, z.css)([ "color:", ";" ], N.variables.accentColorD10),
|
|
920
|
+
dark: (0, z.css)([ "color:", ";" ], N.variables.linkColorHover)
|
|
921
|
+
},
|
|
922
|
+
prisma: (0, z.css)([ "background-color:", ";" ], N.variables.interactiveColorOverlaySelected)
|
|
923
|
+
}));
|
|
924
|
+
var Ot = H().div.withConfig({
|
|
916
925
|
displayName: "HeadInnerStyles__Styled",
|
|
917
926
|
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,
|
|
927
|
+
})([ "", " ", ";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
928
|
N.pick)({
|
|
920
929
|
enterprise: "inherit",
|
|
921
930
|
prisma: "12px"
|
|
@@ -936,7 +945,10 @@
|
|
|
936
945
|
}
|
|
937
946
|
}), (function(e) {
|
|
938
947
|
var t = e.$hasActionsHead;
|
|
939
|
-
return t && (0, z.css)([ "padding:0;" ]
|
|
948
|
+
return t && (0, z.css)([ "button:not([disabled]):focus{", ";}padding:0;" ], (0,
|
|
949
|
+
N.pick)({
|
|
950
|
+
enterprise: (0, z.css)([ "box-shadow:", ";" ], N.variables.focusShadowInset)
|
|
951
|
+
}));
|
|
940
952
|
}), (function(e) {
|
|
941
953
|
var t = e.$dragging;
|
|
942
954
|
return t && (0, z.css)([ "opacity:0;" ]);
|
|
@@ -957,8 +969,21 @@
|
|
|
957
969
|
prisma: N.variables.dragShadow
|
|
958
970
|
}), (0, N.pick)({
|
|
959
971
|
enterprise: (0, z.css)([ "border:1px solid ", ";" ], N.variables.borderColor)
|
|
972
|
+
}), (function(e) {
|
|
973
|
+
var t = e.$clickable, n = e.$focusWithin;
|
|
974
|
+
return t && (0, z.css)([ "cursor:pointer;&:focus{", "}", " &:hover{outline:none;color:", ";background-color:", ";}&:active{background-color:", ";}" ], kt, n && (0,
|
|
975
|
+
z.css)([ "&:focus-within{", "}" ], kt), (0, N.pick)({
|
|
976
|
+
enterprise: {
|
|
977
|
+
light: N.variables.accentColorD10,
|
|
978
|
+
dark: N.variables.linkColorHover
|
|
979
|
+
}
|
|
980
|
+
}), (0, N.pick)({
|
|
981
|
+
prisma: N.variables.interactiveColorOverlayHover
|
|
982
|
+
}), (0, N.pick)({
|
|
983
|
+
prisma: N.variables.interactiveColorOverlayActive
|
|
984
|
+
}));
|
|
960
985
|
}));
|
|
961
|
-
var
|
|
986
|
+
var Et = H().span.withConfig({
|
|
962
987
|
displayName: "HeadInnerStyles__StyledSortIcon",
|
|
963
988
|
componentId: "sc-1sa0wng-4"
|
|
964
989
|
})([ "flex:0 0 auto;", ";", " color:", ";", "" ], (0, N.pick)({
|
|
@@ -978,32 +1003,24 @@
|
|
|
978
1003
|
prisma: N.variables.contentColorDefault
|
|
979
1004
|
}));
|
|
980
1005
|
}));
|
|
981
|
-
var
|
|
1006
|
+
var Rt = H()(gt()).withConfig({
|
|
982
1007
|
displayName: "HeadInnerStyles__StyledResize",
|
|
983
1008
|
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 */
|
|
1009
|
+
})([ "", ";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
1010
|
// TODO: SUI-5361 remove StyledCaretUp and StyledCaretDown once have made a general way to address the multicolor icon problem
|
|
986
|
-
var
|
|
1011
|
+
var jt = H()(pt()).withConfig({
|
|
987
1012
|
displayName: "HeadInnerStyles__StyledCaretDown",
|
|
988
1013
|
componentId: "sc-1sa0wng-6"
|
|
989
1014
|
})([ "path:last-child{fill:transparent;}" ]);
|
|
990
|
-
var
|
|
1015
|
+
var It = H()(pt()).withConfig({
|
|
991
1016
|
displayName: "HeadInnerStyles__StyledCaretUp",
|
|
992
1017
|
componentId: "sc-1sa0wng-7"
|
|
993
1018
|
})([ "path:first-child{fill:transparent;}" ]);
|
|
994
1019
|
// 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
1020
|
var Tt = H().th.withConfig({
|
|
1004
1021
|
displayName: "HeadCellStyles__Styled",
|
|
1005
1022
|
componentId: "sc-1hj81sa-0"
|
|
1006
|
-
})([ "", ";background-color:", ";box-sizing:content-box;text-align:left;vertical-align:", ";& + &{border-left:1px solid ", ";}", " ", " ", "
|
|
1023
|
+
})([ "", ";background-color:", ";box-sizing:content-box;text-align:left;vertical-align:", ";& + &{border-left:1px solid ", ";}", " ", " ", "" ], N.mixins.reset("table-cell"), (0,
|
|
1007
1024
|
N.pick)({
|
|
1008
1025
|
enterprise: {
|
|
1009
1026
|
light: N.variables.gray92,
|
|
@@ -1026,19 +1043,6 @@
|
|
|
1026
1043
|
enterprise: N.variables.backgroundColor,
|
|
1027
1044
|
prisma: N.variables.backgroundColorPage
|
|
1028
1045
|
}));
|
|
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
1046
|
}), (function(e) {
|
|
1043
1047
|
var t = e.$dragging;
|
|
1044
1048
|
return t && (0, z.css)([ "background-color:", ";&:focus{box-shadow:none;}" ], (0,
|
|
@@ -1050,15 +1054,15 @@
|
|
|
1050
1054
|
prisma: N.mixins.overlayColors(N.variables.backgroundColorPage, N.variables.interactiveColorOverlayDrag)
|
|
1051
1055
|
}));
|
|
1052
1056
|
}), (0, N.pickVariant)("$variant", {
|
|
1053
|
-
actions: (0, z.css)([ "& > ", "{padding-right:8px;}" ], /* sc-sel */
|
|
1054
|
-
info: (0, z.css)([ "& > ", "{", ";}" ], /* sc-sel */
|
|
1057
|
+
actions: (0, z.css)([ "& > ", "{padding-right:8px;}" ], /* sc-sel */ Ot),
|
|
1058
|
+
info: (0, z.css)([ "& > ", "{", ";}" ], /* sc-sel */ Ot, (0, N.pick)({
|
|
1055
1059
|
enterprise: (0, z.css)([ "padding-top:7px;" ]),
|
|
1056
1060
|
prisma: {
|
|
1057
1061
|
comfortable: (0, z.css)([ "padding:16px 12px;" ]),
|
|
1058
1062
|
compact: (0, z.css)([ "padding:6px 12px;" ])
|
|
1059
1063
|
}
|
|
1060
1064
|
})),
|
|
1061
|
-
toggleAll: (0, z.css)([ "& > ", "{padding-top:", ";}" ], /* sc-sel */
|
|
1065
|
+
toggleAll: (0, z.css)([ "& > ", "{padding-top:", ";}" ], /* sc-sel */ Ot, (0, N.pick)({
|
|
1062
1066
|
prisma: {
|
|
1063
1067
|
comfortable: "14px",
|
|
1064
1068
|
compact: "7px"
|
|
@@ -1230,12 +1234,12 @@
|
|
|
1230
1234
|
}, Lt.apply(null, arguments);
|
|
1231
1235
|
}
|
|
1232
1236
|
function $t(e) {
|
|
1233
|
-
return Kt(e) ||
|
|
1237
|
+
return Kt(e) || Bt(e) || Ut(e) || Wt();
|
|
1234
1238
|
}
|
|
1235
|
-
function
|
|
1239
|
+
function Wt() {
|
|
1236
1240
|
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
1241
|
}
|
|
1238
|
-
function
|
|
1242
|
+
function Bt(e) {
|
|
1239
1243
|
if ("undefined" != typeof Symbol && null != e[Symbol.iterator] || null != e["@@iterator"]) return Array.from(e);
|
|
1240
1244
|
}
|
|
1241
1245
|
function Kt(e) {
|
|
@@ -1310,7 +1314,9 @@
|
|
|
1310
1314
|
}
|
|
1311
1315
|
var Zt = {
|
|
1312
1316
|
align: i().oneOf([ "left", "center", "right" ]),
|
|
1317
|
+
clickable: i().bool,
|
|
1313
1318
|
columnId: i().any,
|
|
1319
|
+
focusWithin: i().bool,
|
|
1314
1320
|
hasActionsHead: i().bool,
|
|
1315
1321
|
id: i().string,
|
|
1316
1322
|
index: i().number,
|
|
@@ -1333,8 +1339,8 @@
|
|
|
1333
1339
|
});
|
|
1334
1340
|
var nn = Object.freeze({
|
|
1335
1341
|
none: pt(),
|
|
1336
|
-
asc:
|
|
1337
|
-
desc:
|
|
1342
|
+
asc: It,
|
|
1343
|
+
desc: jt
|
|
1338
1344
|
});
|
|
1339
1345
|
var rn = Object.freeze({
|
|
1340
1346
|
none: st(),
|
|
@@ -1342,209 +1348,212 @@
|
|
|
1342
1348
|
desc: it()
|
|
1343
1349
|
});
|
|
1344
1350
|
function on(e) {
|
|
1345
|
-
var t = e.index, o = e.
|
|
1351
|
+
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
1352
|
if (false) {}
|
|
1347
|
-
var
|
|
1348
|
-
var
|
|
1349
|
-
var
|
|
1350
|
-
var
|
|
1351
|
-
var
|
|
1352
|
-
var
|
|
1353
|
-
var
|
|
1354
|
-
var
|
|
1353
|
+
var D = (0, N.useSplunkTheme)(), _ = D.isEnterprise;
|
|
1354
|
+
var q = (0, T._)("Click to open menu");
|
|
1355
|
+
var A = (0, n.useState)(), z = Ft(A, 2), H = z[0], M = z[1];
|
|
1356
|
+
var L = (0, n.useState)(false), $ = Ft(L, 2), W = $[0], B = $[1];
|
|
1357
|
+
var K = (0, n.useState)(false), F = Ft(K, 2), V = F[0], U = F[1];
|
|
1358
|
+
var G = (0, n.useState)(0), X = Ft(G, 2), Y = X[0], J = X[1];
|
|
1359
|
+
var Q = (0, n.useState)(0), Z = Ft(Q, 2), ee = Z[0], te = Z[1];
|
|
1360
|
+
var ne = (0, n.useRef)(null);
|
|
1355
1361
|
// Cleanup dragend, and unmount during drag
|
|
1356
1362
|
(0, n.useEffect)((function() {
|
|
1357
1363
|
return function() {
|
|
1358
|
-
return
|
|
1364
|
+
return H === null || H === void 0 ? void 0 : H.remove();
|
|
1359
1365
|
};
|
|
1360
|
-
}), [
|
|
1361
|
-
var te;
|
|
1362
|
-
var ne;
|
|
1366
|
+
}), [ H ]);
|
|
1363
1367
|
var re;
|
|
1364
|
-
|
|
1365
|
-
|
|
1366
|
-
|
|
1367
|
-
|
|
1368
|
+
var oe;
|
|
1369
|
+
var ie;
|
|
1370
|
+
if (k !== undefined && en.has(k)) {
|
|
1371
|
+
var ae = _ ? nn : rn;
|
|
1372
|
+
oe = ae[k];
|
|
1373
|
+
ie = tn[k];
|
|
1368
1374
|
}
|
|
1369
|
-
if (
|
|
1370
|
-
var
|
|
1371
|
-
var
|
|
1372
|
-
var
|
|
1373
|
-
|
|
1375
|
+
if (c === "auto") {
|
|
1376
|
+
var le;
|
|
1377
|
+
var ce = ne.current;
|
|
1378
|
+
var se = ce === null || ce === void 0 ? void 0 : (le = ce.parentElement) === null || le === void 0 ? void 0 : le.getBoundingClientRect();
|
|
1379
|
+
re = se === null || se === void 0 ? void 0 : se.width;
|
|
1374
1380
|
} else {
|
|
1375
|
-
|
|
1381
|
+
re = c;
|
|
1376
1382
|
}
|
|
1377
|
-
var
|
|
1383
|
+
var ue = function e(n) {
|
|
1378
1384
|
var r = (0, E.keycode)(n.nativeEvent);
|
|
1379
|
-
if (
|
|
1385
|
+
if (w === undefined || t === undefined) {
|
|
1380
1386
|
return;
|
|
1381
1387
|
}
|
|
1382
|
-
if (
|
|
1383
|
-
var
|
|
1384
|
-
var
|
|
1385
|
-
var s =
|
|
1386
|
-
|
|
1388
|
+
if (c === "auto") {
|
|
1389
|
+
var o;
|
|
1390
|
+
var a = ne.current;
|
|
1391
|
+
var s = a === null || a === void 0 ? void 0 : (o = a.parentElement) === null || o === void 0 ? void 0 : o.getBoundingClientRect();
|
|
1392
|
+
re = s === null || s === void 0 ? void 0 : s.width;
|
|
1387
1393
|
} else {
|
|
1388
|
-
|
|
1394
|
+
re = c;
|
|
1389
1395
|
}
|
|
1390
|
-
if (
|
|
1396
|
+
if (re === undefined) {
|
|
1391
1397
|
return;
|
|
1392
1398
|
}
|
|
1393
1399
|
if (r === "left") {
|
|
1394
1400
|
n.preventDefault();
|
|
1395
1401
|
// prevent text selection
|
|
1396
|
-
var u = Math.max(
|
|
1397
|
-
|
|
1402
|
+
var u = Math.max(re - 10, 20);
|
|
1403
|
+
w(n, {
|
|
1398
1404
|
index: t,
|
|
1399
|
-
columnId:
|
|
1400
|
-
id:
|
|
1405
|
+
columnId: i,
|
|
1406
|
+
id: l,
|
|
1401
1407
|
width: u
|
|
1402
1408
|
});
|
|
1403
1409
|
}
|
|
1404
1410
|
if (r === "right") {
|
|
1405
1411
|
n.preventDefault();
|
|
1406
1412
|
// prevent text selection
|
|
1407
|
-
var d =
|
|
1408
|
-
|
|
1413
|
+
var d = re + 10;
|
|
1414
|
+
w(n, {
|
|
1409
1415
|
index: t,
|
|
1410
|
-
columnId:
|
|
1411
|
-
id:
|
|
1416
|
+
columnId: i,
|
|
1417
|
+
id: l,
|
|
1412
1418
|
width: d
|
|
1413
1419
|
});
|
|
1414
1420
|
}
|
|
1415
1421
|
};
|
|
1416
|
-
var
|
|
1417
|
-
if (
|
|
1422
|
+
var de = function e(t) {
|
|
1423
|
+
if (c === "auto") {
|
|
1418
1424
|
var n;
|
|
1419
|
-
var r =
|
|
1425
|
+
var r = ne.current;
|
|
1420
1426
|
var o = r === null || r === void 0 ? void 0 : (n = r.parentElement) === null || n === void 0 ? void 0 : n.getBoundingClientRect();
|
|
1421
|
-
|
|
1427
|
+
re = o === null || o === void 0 ? void 0 : o.width;
|
|
1422
1428
|
} else {
|
|
1423
|
-
|
|
1429
|
+
re = c;
|
|
1424
1430
|
}
|
|
1425
|
-
if (
|
|
1431
|
+
if (re === undefined) {
|
|
1426
1432
|
return;
|
|
1427
1433
|
}
|
|
1428
1434
|
t.preventDefault();
|
|
1429
1435
|
// prevent text selection
|
|
1430
|
-
|
|
1431
|
-
|
|
1432
|
-
|
|
1436
|
+
J(t.clientX);
|
|
1437
|
+
te(re || 0);
|
|
1438
|
+
B(true);
|
|
1433
1439
|
};
|
|
1434
|
-
var
|
|
1435
|
-
var r =
|
|
1436
|
-
var
|
|
1440
|
+
var fe = function e(n) {
|
|
1441
|
+
var r = Y - n.clientX;
|
|
1442
|
+
var o = Math.max(ee - r, 16);
|
|
1437
1443
|
if (t !== undefined) {
|
|
1438
|
-
|
|
1444
|
+
w === null || w === void 0 ? void 0 : w(n, {
|
|
1439
1445
|
index: t,
|
|
1440
|
-
columnId:
|
|
1441
|
-
id:
|
|
1442
|
-
width:
|
|
1446
|
+
columnId: i,
|
|
1447
|
+
id: l,
|
|
1448
|
+
width: o
|
|
1443
1449
|
});
|
|
1444
1450
|
}
|
|
1445
1451
|
};
|
|
1446
|
-
var
|
|
1447
|
-
|
|
1452
|
+
var pe = function e() {
|
|
1453
|
+
B(false);
|
|
1448
1454
|
};
|
|
1449
|
-
var
|
|
1455
|
+
var ve = function e(n) {
|
|
1450
1456
|
var r;
|
|
1451
|
-
var
|
|
1452
|
-
var a =
|
|
1457
|
+
var o = Ht();
|
|
1458
|
+
var a = ne.current;
|
|
1453
1459
|
if (n.dataTransfer.setDragImage && (a === null || a === void 0 ? void 0 : a.parentElement)) {
|
|
1454
1460
|
var l = a.parentElement.getBoundingClientRect();
|
|
1455
1461
|
var c = a.cloneNode(true);
|
|
1456
1462
|
c.style.width = "".concat(l.width, "px");
|
|
1457
1463
|
c.style.height = "".concat(l.height, "px");
|
|
1458
1464
|
c.setAttribute("data-helper", "true");
|
|
1459
|
-
|
|
1465
|
+
o.body.appendChild(c);
|
|
1460
1466
|
n.dataTransfer.setDragImage(c, n.clientX - l.left, n.clientY - l.top);
|
|
1461
|
-
|
|
1462
|
-
|
|
1467
|
+
U(true);
|
|
1468
|
+
M(c);
|
|
1463
1469
|
}
|
|
1464
1470
|
n.dataTransfer.effectAllowed = "move";
|
|
1465
1471
|
n.dataTransfer.setData("text", (r = a === null || a === void 0 ? void 0 : a.textContent) !== null && r !== void 0 ? r : "");
|
|
1466
1472
|
// Required for Firefox
|
|
1467
|
-
|
|
1473
|
+
m === null || m === void 0 ? void 0 : m(t, i);
|
|
1468
1474
|
};
|
|
1469
|
-
var
|
|
1470
|
-
|
|
1471
|
-
|
|
1472
|
-
|
|
1475
|
+
var be = function e() {
|
|
1476
|
+
M(undefined);
|
|
1477
|
+
U(false);
|
|
1478
|
+
s === null || s === void 0 ? void 0 : s();
|
|
1473
1479
|
};
|
|
1474
|
-
var
|
|
1480
|
+
var ye = function e(n) {
|
|
1475
1481
|
if (t !== undefined) {
|
|
1476
|
-
|
|
1482
|
+
u === null || u === void 0 ? void 0 : u(n, {
|
|
1477
1483
|
index: t,
|
|
1478
|
-
columnId:
|
|
1484
|
+
columnId: i
|
|
1479
1485
|
});
|
|
1480
1486
|
}
|
|
1481
1487
|
};
|
|
1482
|
-
var
|
|
1483
|
-
var
|
|
1484
|
-
var
|
|
1485
|
-
width:
|
|
1488
|
+
var he = !!m;
|
|
1489
|
+
var me = Mt();
|
|
1490
|
+
var ge = re ? (0, P.sprintf)((0, T._)("%(width)d pixels"), {
|
|
1491
|
+
width: re
|
|
1486
1492
|
}) : undefined;
|
|
1487
|
-
var
|
|
1488
|
-
ariaControls:
|
|
1493
|
+
var we = i ? {
|
|
1494
|
+
ariaControls: i
|
|
1489
1495
|
} : {};
|
|
1490
1496
|
|
|
1491
|
-
return r().createElement(
|
|
1492
|
-
draggable:
|
|
1493
|
-
onDragStart:
|
|
1494
|
-
onDragEnd:
|
|
1495
|
-
ref:
|
|
1496
|
-
|
|
1497
|
-
$
|
|
1498
|
-
$
|
|
1499
|
-
$
|
|
1500
|
-
|
|
1501
|
-
|
|
1497
|
+
return r().createElement(Ot, Lt({
|
|
1498
|
+
draggable: he || undefined,
|
|
1499
|
+
onDragStart: he ? ve : undefined,
|
|
1500
|
+
onDragEnd: he ? be : undefined,
|
|
1501
|
+
ref: ne,
|
|
1502
|
+
role: o ? "button" : undefined,
|
|
1503
|
+
$hasActionsHead: !!b,
|
|
1504
|
+
$align: f,
|
|
1505
|
+
$draggable: he,
|
|
1506
|
+
$dragging: !!V,
|
|
1507
|
+
$clickable: o,
|
|
1508
|
+
$focusWithin: a
|
|
1509
|
+
}, g()(I, [].concat($t(Object.keys(on.propTypes)), [ "id" ]))), W && r().createElement(r().Fragment, null, r().createElement(O(), {
|
|
1510
|
+
target: me,
|
|
1502
1511
|
eventType: "mouseup",
|
|
1503
|
-
listener:
|
|
1512
|
+
listener: pe
|
|
1504
1513
|
}), r().createElement(O(), {
|
|
1505
|
-
target:
|
|
1514
|
+
target: me,
|
|
1506
1515
|
eventType: "mousemove",
|
|
1507
|
-
listener:
|
|
1508
|
-
})),
|
|
1516
|
+
listener: fe
|
|
1517
|
+
})), w && C && r().createElement(Rt, Lt({
|
|
1509
1518
|
"aria-label": (0, P.sprintf)((0, T._)("Resize %(label)s"), {
|
|
1510
|
-
label:
|
|
1519
|
+
label: p
|
|
1511
1520
|
})
|
|
1512
|
-
},
|
|
1513
|
-
"aria-valuetext":
|
|
1521
|
+
}, we, {
|
|
1522
|
+
"aria-valuetext": ge,
|
|
1514
1523
|
"data-test": "resize",
|
|
1515
|
-
onMouseDown:
|
|
1516
|
-
onDoubleClick:
|
|
1517
|
-
onKeyDown:
|
|
1524
|
+
onMouseDown: de,
|
|
1525
|
+
onDoubleClick: ye,
|
|
1526
|
+
onKeyDown: ue,
|
|
1518
1527
|
orientation: "vertical",
|
|
1519
1528
|
tabIndex: 0
|
|
1520
|
-
})),
|
|
1529
|
+
})), he && r().createElement(xt, null, r().createElement(At, {
|
|
1521
1530
|
screenReaderContent: (0, T._)("Press left or right arrow key to reorder the columns.")
|
|
1522
1531
|
})), r().createElement(St, {
|
|
1523
|
-
$align:
|
|
1524
|
-
$truncate:
|
|
1525
|
-
$fill:
|
|
1526
|
-
},
|
|
1532
|
+
$align: f,
|
|
1533
|
+
$truncate: j,
|
|
1534
|
+
$fill: h
|
|
1535
|
+
}, p, h &&
|
|
1527
1536
|
|
|
1528
1537
|
// this icon indicates "has a menu" in all themes
|
|
1529
|
-
r().createElement(Ct, null,
|
|
1538
|
+
r().createElement(Ct, null, _ ? r().createElement(bt(), {
|
|
1530
1539
|
"data-test": "caret-down",
|
|
1531
|
-
screenReaderText:
|
|
1540
|
+
screenReaderText: q,
|
|
1532
1541
|
hideDefaultTooltip: true,
|
|
1533
1542
|
size: .5
|
|
1534
1543
|
}) : r().createElement(dt(), {
|
|
1535
1544
|
"data-test": "caret-down",
|
|
1536
|
-
"aria-label":
|
|
1537
|
-
}))),
|
|
1538
|
-
$sorted:
|
|
1539
|
-
},
|
|
1545
|
+
"aria-label": q
|
|
1546
|
+
}))), k && r().createElement(Et, {
|
|
1547
|
+
$sorted: k !== "none"
|
|
1548
|
+
}, oe !== undefined && (_ ? r().createElement(oe, {
|
|
1540
1549
|
inline: true,
|
|
1541
1550
|
"aria-hidden": false,
|
|
1542
|
-
"aria-label":
|
|
1551
|
+
"aria-label": ie,
|
|
1543
1552
|
viewBox: "-8 0 24 24"
|
|
1544
|
-
}) : r().createElement(
|
|
1553
|
+
}) : r().createElement(oe, {
|
|
1545
1554
|
inline: true,
|
|
1546
1555
|
"aria-hidden": false,
|
|
1547
|
-
"aria-label":
|
|
1556
|
+
"aria-label": ie
|
|
1548
1557
|
}))));
|
|
1549
1558
|
}
|
|
1550
1559
|
on.propTypes = Zt;
|
|
@@ -1832,10 +1841,7 @@
|
|
|
1832
1841
|
"data-test-sort-dir": y && w,
|
|
1833
1842
|
id: k ? u : undefined,
|
|
1834
1843
|
onClick: y || I ? this.handleClick : undefined,
|
|
1835
|
-
tabIndex: k && (R || y || I) ? 0 : undefined,
|
|
1836
1844
|
$dragging: this.state.isDragging || undefined,
|
|
1837
|
-
$clickable: i || R || j || I,
|
|
1838
|
-
$focusWithin: i,
|
|
1839
1845
|
$variant: C,
|
|
1840
1846
|
$zIndex: E,
|
|
1841
1847
|
$isFixed: D === "fixed"
|
|
@@ -1855,7 +1861,10 @@
|
|
|
1855
1861
|
onRequestResize: b,
|
|
1856
1862
|
sortDir: y && w,
|
|
1857
1863
|
truncate: P,
|
|
1858
|
-
width: O
|
|
1864
|
+
width: O,
|
|
1865
|
+
clickable: i || R || j || I,
|
|
1866
|
+
tabIndex: k && (R || y || I) ? 0 : undefined,
|
|
1867
|
+
focusWithin: i
|
|
1859
1868
|
}), m !== "none" && r().createElement(Pt, {
|
|
1860
1869
|
$position: m
|
|
1861
1870
|
}));
|
|
@@ -1894,8 +1903,8 @@
|
|
|
1894
1903
|
const Ln = require("@splunk/react-icons/DotsThreeVertical");
|
|
1895
1904
|
var $n = e.n(Ln);
|
|
1896
1905
|
// CONCATENATED MODULE: external "@splunk/react-ui/Button"
|
|
1897
|
-
const
|
|
1898
|
-
var
|
|
1906
|
+
const Wn = require("@splunk/react-ui/Button");
|
|
1907
|
+
var Bn = e.n(Wn);
|
|
1899
1908
|
// CONCATENATED MODULE: external "@splunk/react-ui/Dropdown"
|
|
1900
1909
|
const Kn = require("@splunk/react-ui/Dropdown");
|
|
1901
1910
|
var Fn = e.n(Kn);
|
|
@@ -2253,9 +2262,9 @@
|
|
|
2253
2262
|
function Nr(e) {
|
|
2254
2263
|
var t = $r();
|
|
2255
2264
|
return function() {
|
|
2256
|
-
var n, r =
|
|
2265
|
+
var n, r = Wr(e);
|
|
2257
2266
|
if (t) {
|
|
2258
|
-
var o =
|
|
2267
|
+
var o = Wr(this).constructor;
|
|
2259
2268
|
n = Reflect.construct(r, arguments, o);
|
|
2260
2269
|
} else n = r.apply(this, arguments);
|
|
2261
2270
|
return Mr(this, n);
|
|
@@ -2278,12 +2287,12 @@
|
|
|
2278
2287
|
return !!e;
|
|
2279
2288
|
})();
|
|
2280
2289
|
}
|
|
2281
|
-
function
|
|
2282
|
-
return
|
|
2290
|
+
function Wr(e) {
|
|
2291
|
+
return Wr = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(e) {
|
|
2283
2292
|
return e.__proto__ || Object.getPrototypeOf(e);
|
|
2284
|
-
},
|
|
2293
|
+
}, Wr(e);
|
|
2285
2294
|
}
|
|
2286
|
-
function
|
|
2295
|
+
function Br(e, t) {
|
|
2287
2296
|
var n = Object.keys(e);
|
|
2288
2297
|
if (Object.getOwnPropertySymbols) {
|
|
2289
2298
|
var r = Object.getOwnPropertySymbols(e);
|
|
@@ -2296,9 +2305,9 @@
|
|
|
2296
2305
|
function Kr(e) {
|
|
2297
2306
|
for (var t = 1; t < arguments.length; t++) {
|
|
2298
2307
|
var n = null != arguments[t] ? arguments[t] : {};
|
|
2299
|
-
t % 2 ?
|
|
2308
|
+
t % 2 ? Br(Object(n), !0).forEach((function(t) {
|
|
2300
2309
|
Fr(e, t, n[t]);
|
|
2301
|
-
})) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) :
|
|
2310
|
+
})) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : Br(Object(n)).forEach((function(t) {
|
|
2302
2311
|
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
|
|
2303
2312
|
}));
|
|
2304
2313
|
}
|
|
@@ -2416,8 +2425,8 @@
|
|
|
2416
2425
|
return r().createElement(Un(), Yr({
|
|
2417
2426
|
content: (0, T._)("Actions"),
|
|
2418
2427
|
contentRelationship: "label"
|
|
2419
|
-
}, e), r().createElement(
|
|
2420
|
-
appearance: "
|
|
2428
|
+
}, e), r().createElement(Bn(), {
|
|
2429
|
+
appearance: "subtle",
|
|
2421
2430
|
"data-test": "actions-secondary-toggle",
|
|
2422
2431
|
icon: r().createElement($n(), {
|
|
2423
2432
|
height: i,
|
|
@@ -2436,17 +2445,17 @@
|
|
|
2436
2445
|
};
|
|
2437
2446
|
}), [ f, u ]);
|
|
2438
2447
|
var q = (0, l.useSortable)(_), A = q.attributes, z = q.listeners, H = q.transform, N = q.transition, M = q.setNodeRef, $ = q.setActivatorNodeRef;
|
|
2439
|
-
var
|
|
2448
|
+
var W = (0, n.useMemo)((function() {
|
|
2440
2449
|
return f ? Kr(Kr({}, I), {}, {
|
|
2441
2450
|
transform: Mn.CSS.Translate.toString(H),
|
|
2442
2451
|
transition: N
|
|
2443
2452
|
}) : I;
|
|
2444
2453
|
}), [ f, H, N, I ]);
|
|
2445
|
-
var
|
|
2454
|
+
var B = (0, n.useRef)(null);
|
|
2446
2455
|
var K = function e(t) {
|
|
2447
2456
|
var n = t.target;
|
|
2448
2457
|
while (n) {
|
|
2449
|
-
if (
|
|
2458
|
+
if (B.current === n) {
|
|
2450
2459
|
break;
|
|
2451
2460
|
}
|
|
2452
2461
|
// Ignore clicks on row-actions
|
|
@@ -2512,7 +2521,7 @@
|
|
|
2512
2521
|
return a;
|
|
2513
2522
|
};
|
|
2514
2523
|
function Y(e) {
|
|
2515
|
-
|
|
2524
|
+
B.current = e;
|
|
2516
2525
|
L(p, e);
|
|
2517
2526
|
if (f) {
|
|
2518
2527
|
M(e);
|
|
@@ -2565,7 +2574,7 @@
|
|
|
2565
2574
|
onClick: w ? K : undefined,
|
|
2566
2575
|
onKeyDown: F,
|
|
2567
2576
|
$rowSelected: !!(S && R),
|
|
2568
|
-
style:
|
|
2577
|
+
style: W
|
|
2569
2578
|
}), f && h != null && r().createElement(vr, Yr({
|
|
2570
2579
|
"aria-label": (0, P.sprintf)((0, T._)("Reorder %(rowLabelValue)s"), {
|
|
2571
2580
|
rowLabelValue: Q
|
|
@@ -3190,7 +3199,7 @@
|
|
|
3190
3199
|
}, No.apply(null, arguments);
|
|
3191
3200
|
}
|
|
3192
3201
|
function Mo(e) {
|
|
3193
|
-
return
|
|
3202
|
+
return Bo(e) || Wo(e) || $o(e) || Lo();
|
|
3194
3203
|
}
|
|
3195
3204
|
function Lo() {
|
|
3196
3205
|
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 +3211,10 @@
|
|
|
3202
3211
|
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
3212
|
}
|
|
3204
3213
|
}
|
|
3205
|
-
function
|
|
3214
|
+
function Wo(e) {
|
|
3206
3215
|
if ("undefined" != typeof Symbol && null != e[Symbol.iterator] || null != e["@@iterator"]) return Array.from(e);
|
|
3207
3216
|
}
|
|
3208
|
-
function
|
|
3217
|
+
function Bo(e) {
|
|
3209
3218
|
if (Array.isArray(e)) return Ko(e);
|
|
3210
3219
|
}
|
|
3211
3220
|
function Ko(e, t) {
|
|
@@ -3546,7 +3555,6 @@
|
|
|
3546
3555
|
}),
|
|
3547
3556
|
"data-test": "head-cell",
|
|
3548
3557
|
$dragging: this.state.isDragging || undefined,
|
|
3549
|
-
$clickable: true,
|
|
3550
3558
|
$variant: E,
|
|
3551
3559
|
id: R ? q : undefined,
|
|
3552
3560
|
tabIndex: R ? 0 : undefined,
|
|
@@ -3572,7 +3580,8 @@
|
|
|
3572
3580
|
onAutosizeColumn: b,
|
|
3573
3581
|
onRequestResize: h,
|
|
3574
3582
|
truncate: O,
|
|
3575
|
-
width: j
|
|
3583
|
+
width: j,
|
|
3584
|
+
clickable: true
|
|
3576
3585
|
}), C !== "none" && r().createElement(Pt, {
|
|
3577
3586
|
$position: C
|
|
3578
3587
|
}), r().createElement(zo(), {
|
|
@@ -4144,8 +4153,8 @@
|
|
|
4144
4153
|
}
|
|
4145
4154
|
} ]);
|
|
4146
4155
|
// CONCATENATED MODULE: external "lodash/extend"
|
|
4147
|
-
const
|
|
4148
|
-
var
|
|
4156
|
+
const Wi = require("lodash/extend");
|
|
4157
|
+
var Bi = e.n(Wi);
|
|
4149
4158
|
// CONCATENATED MODULE: ./src/Table/HeadTableStyles.ts
|
|
4150
4159
|
var Ki = H()(he).withConfig({
|
|
4151
4160
|
displayName: "HeadTableStyles__Styled",
|
|
@@ -4358,7 +4367,7 @@
|
|
|
4358
4367
|
var C = d ? n.Children.toArray(v.props.children) : n.Children.toArray(v.props.children).filter(n.isValidElement).map((function(e, t) {
|
|
4359
4368
|
|
|
4360
4369
|
return (0, n.cloneElement)(e, {
|
|
4361
|
-
style:
|
|
4370
|
+
style: Bi()({}, e.props.style, {
|
|
4362
4371
|
width: o[t + x]
|
|
4363
4372
|
})
|
|
4364
4373
|
});
|
|
@@ -4377,7 +4386,7 @@
|
|
|
4377
4386
|
}, r().createElement(Ki, Gi({
|
|
4378
4387
|
"data-test": "".concat(s, "-head-table"),
|
|
4379
4388
|
"data-fixed-column": d ? "true" : undefined,
|
|
4380
|
-
style:
|
|
4389
|
+
style: Bi()({}, f, {
|
|
4381
4390
|
marginLeft: u,
|
|
4382
4391
|
width: d ? undefined : p
|
|
4383
4392
|
})
|
|
@@ -4594,7 +4603,7 @@
|
|
|
4594
4603
|
// Internal Helper Modules
|
|
4595
4604
|
/** @public */
|
|
4596
4605
|
/** @public */
|
|
4597
|
-
/** @public */ var
|
|
4606
|
+
/** @public */ var Wa = {
|
|
4598
4607
|
actions: i().arrayOf(i().element),
|
|
4599
4608
|
actionsColumnWidth: i().number,
|
|
4600
4609
|
children: i().node,
|
|
@@ -4616,7 +4625,7 @@
|
|
|
4616
4625
|
onRequestResizeColumn: i().func,
|
|
4617
4626
|
resizableFillLayout: i().bool
|
|
4618
4627
|
};
|
|
4619
|
-
var
|
|
4628
|
+
var Ba = {
|
|
4620
4629
|
actions: [],
|
|
4621
4630
|
dockOffset: 0,
|
|
4622
4631
|
headType: "inline",
|
|
@@ -4703,7 +4712,7 @@
|
|
|
4703
4712
|
function el(e) {
|
|
4704
4713
|
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
4714
|
var H = (0, n.useState)([]), N = qa(H, 2), M = N[0], L = N[1];
|
|
4706
|
-
var $ = (0, n.useState)(),
|
|
4715
|
+
var $ = (0, n.useState)(), W = qa($, 2), B = W[0], K = W[1];
|
|
4707
4716
|
var F = (0, n.useState)(), V = qa(F, 2), U = V[0], G = V[1];
|
|
4708
4717
|
var X = (0, n.useState)(), Y = qa(X, 2), J = Y[0], Q = Y[1];
|
|
4709
4718
|
var Z = (0, n.useState)(), ee = qa(Z, 2), te = ee[0], ne = ee[1];
|
|
@@ -4862,7 +4871,7 @@
|
|
|
4862
4871
|
var $e = x()(Le, 100, {
|
|
4863
4872
|
trailing: false
|
|
4864
4873
|
});
|
|
4865
|
-
var
|
|
4874
|
+
var We = function e(t) {
|
|
4866
4875
|
t.preventDefault();
|
|
4867
4876
|
// necessary for the drop event to fire
|
|
4868
4877
|
if (t.dataTransfer) {
|
|
@@ -4870,7 +4879,7 @@
|
|
|
4870
4879
|
}
|
|
4871
4880
|
$e(t.clientX);
|
|
4872
4881
|
};
|
|
4873
|
-
var
|
|
4882
|
+
var Be = function e(t) {
|
|
4874
4883
|
t.preventDefault();
|
|
4875
4884
|
// necessary for the drop event to fire
|
|
4876
4885
|
ue(t.clientX);
|
|
@@ -4886,8 +4895,8 @@
|
|
|
4886
4895
|
};
|
|
4887
4896
|
var Ve = function e() {
|
|
4888
4897
|
var t = Mt();
|
|
4889
|
-
t.removeEventListener("dragenter",
|
|
4890
|
-
t.removeEventListener("dragover",
|
|
4898
|
+
t.removeEventListener("dragenter", Be);
|
|
4899
|
+
t.removeEventListener("dragover", We);
|
|
4891
4900
|
t.removeEventListener("drop", Ke);
|
|
4892
4901
|
t.removeEventListener("dragend", Fe);
|
|
4893
4902
|
$e.cancel();
|
|
@@ -4906,8 +4915,8 @@
|
|
|
4906
4915
|
var n = t.dragIndex;
|
|
4907
4916
|
var r = Mt();
|
|
4908
4917
|
ae(n);
|
|
4909
|
-
r.addEventListener("dragenter",
|
|
4910
|
-
r.addEventListener("dragover",
|
|
4918
|
+
r.addEventListener("dragenter", Be);
|
|
4919
|
+
r.addEventListener("dragover", We);
|
|
4911
4920
|
r.addEventListener("drop", Ke);
|
|
4912
4921
|
r.addEventListener("dragend", Fe);
|
|
4913
4922
|
};
|
|
@@ -5005,7 +5014,7 @@
|
|
|
5005
5014
|
headType: "docked",
|
|
5006
5015
|
tHead: i,
|
|
5007
5016
|
cellWidths: M,
|
|
5008
|
-
horizontalOffset:
|
|
5017
|
+
horizontalOffset: B,
|
|
5009
5018
|
tableWidth: U,
|
|
5010
5019
|
top: J,
|
|
5011
5020
|
width: te,
|
|
@@ -5146,7 +5155,7 @@
|
|
|
5146
5155
|
ref: d,
|
|
5147
5156
|
style: k,
|
|
5148
5157
|
"data-test-row-selection": w ? _ : undefined
|
|
5149
|
-
}, g()(z, [].concat(Ta(Object.keys(
|
|
5158
|
+
}, g()(z, [].concat(Ta(Object.keys(Wa)), [ "style" ]))), r().createElement(O(), {
|
|
5150
5159
|
target: Mt(),
|
|
5151
5160
|
eventType: "scroll",
|
|
5152
5161
|
listener: _e,
|
|
@@ -5186,7 +5195,7 @@
|
|
|
5186
5195
|
$resizableFillLayout: T
|
|
5187
5196
|
}, it, rt, ot))))), tt()));
|
|
5188
5197
|
}
|
|
5189
|
-
el.propTypes =
|
|
5198
|
+
el.propTypes = Wa;
|
|
5190
5199
|
var tl = function(e) {
|
|
5191
5200
|
ga(n, e);
|
|
5192
5201
|
var t = xa(n);
|
|
@@ -5204,8 +5213,8 @@
|
|
|
5204
5213
|
} ]);
|
|
5205
5214
|
return n;
|
|
5206
5215
|
}(n.Component);
|
|
5207
|
-
Ea(tl, "propTypes",
|
|
5208
|
-
Ea(tl, "defaultProps",
|
|
5216
|
+
Ea(tl, "propTypes", Wa);
|
|
5217
|
+
Ea(tl, "defaultProps", Ba);
|
|
5209
5218
|
Ea(tl, "Caption", Ee);
|
|
5210
5219
|
Ea(tl, "Head", To);
|
|
5211
5220
|
Ea(tl, "HeadCell", _n);
|