@splunk/react-ui 4.28.1 → 4.29.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/Chip.js +160 -151
- package/ComboBox.js +1 -1
- package/MIGRATION.mdx +90 -0
- package/Modal.js +9 -3
- package/ModalLayer.js +84 -84
- package/Multiselect.js +43 -42
- package/Paginator.js +291 -402
- package/SidePanel.js +29 -28
- package/Table.js +369 -341
- package/WaitSpinner.js +36 -35
- package/package.json +2 -2
- package/types/src/Chip/docs/examples/RemovableWithNonStringChildren.d.ts +2 -0
- package/types/src/Markdown/Markdown.d.ts +1 -1
- package/types/src/MessageBar/docs/examples/Basic.d.ts +2 -0
- package/types/src/Modal/Modal.d.ts +8 -3
- package/types/src/ModalLayer/ModalLayer.d.ts +14 -14
- package/types/src/Paginator/Button.d.ts +14 -9
- package/types/src/SidePanel/SidePanel.d.ts +2 -2
- package/types/src/WaitSpinner/WaitSpinner.d.ts +2 -1
package/Table.js
CHANGED
|
@@ -64,11 +64,11 @@
|
|
|
64
64
|
Body: () => /* reexport */ ue,
|
|
65
65
|
Caption: () => /* reexport */ xe,
|
|
66
66
|
Cell: () => /* reexport */ We,
|
|
67
|
-
Head: () => /* reexport */
|
|
67
|
+
Head: () => /* reexport */ bo,
|
|
68
68
|
HeadCell: () => /* reexport */ En,
|
|
69
|
-
HeadDropdownCell: () => /* reexport */
|
|
70
|
-
Row: () => /* reexport */
|
|
71
|
-
default: () => /* reexport */
|
|
69
|
+
HeadDropdownCell: () => /* reexport */ Uo,
|
|
70
|
+
Row: () => /* reexport */ Kr,
|
|
71
|
+
default: () => /* reexport */ ea
|
|
72
72
|
});
|
|
73
73
|
// CONCATENATED MODULE: external "react"
|
|
74
74
|
const n = require("react");
|
|
@@ -2449,7 +2449,35 @@
|
|
|
2449
2449
|
};
|
|
2450
2450
|
return Tr(e);
|
|
2451
2451
|
}
|
|
2452
|
-
function qr(e, t
|
|
2452
|
+
function qr(e, t) {
|
|
2453
|
+
var n = Object.keys(e);
|
|
2454
|
+
if (Object.getOwnPropertySymbols) {
|
|
2455
|
+
var r = Object.getOwnPropertySymbols(e);
|
|
2456
|
+
if (t) r = r.filter((function(t) {
|
|
2457
|
+
return Object.getOwnPropertyDescriptor(e, t).enumerable;
|
|
2458
|
+
}));
|
|
2459
|
+
n.push.apply(n, r);
|
|
2460
|
+
}
|
|
2461
|
+
return n;
|
|
2462
|
+
}
|
|
2463
|
+
function Pr(e) {
|
|
2464
|
+
for (var t = 1; t < arguments.length; t++) {
|
|
2465
|
+
var n = arguments[t] != null ? arguments[t] : {};
|
|
2466
|
+
if (t % 2) {
|
|
2467
|
+
qr(Object(n), true).forEach((function(t) {
|
|
2468
|
+
Ar(e, t, n[t]);
|
|
2469
|
+
}));
|
|
2470
|
+
} else if (Object.getOwnPropertyDescriptors) {
|
|
2471
|
+
Object.defineProperties(e, Object.getOwnPropertyDescriptors(n));
|
|
2472
|
+
} else {
|
|
2473
|
+
qr(Object(n)).forEach((function(t) {
|
|
2474
|
+
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
|
|
2475
|
+
}));
|
|
2476
|
+
}
|
|
2477
|
+
}
|
|
2478
|
+
return e;
|
|
2479
|
+
}
|
|
2480
|
+
function Ar(e, t, n) {
|
|
2453
2481
|
if (t in e) {
|
|
2454
2482
|
Object.defineProperty(e, t, {
|
|
2455
2483
|
value: n,
|
|
@@ -2462,9 +2490,9 @@
|
|
|
2462
2490
|
}
|
|
2463
2491
|
return e;
|
|
2464
2492
|
}
|
|
2465
|
-
function
|
|
2493
|
+
function zr(e, t) {
|
|
2466
2494
|
if (e == null) return {};
|
|
2467
|
-
var n =
|
|
2495
|
+
var n = Hr(e, t);
|
|
2468
2496
|
var r, o;
|
|
2469
2497
|
if (Object.getOwnPropertySymbols) {
|
|
2470
2498
|
var i = Object.getOwnPropertySymbols(e);
|
|
@@ -2477,7 +2505,7 @@
|
|
|
2477
2505
|
}
|
|
2478
2506
|
return n;
|
|
2479
2507
|
}
|
|
2480
|
-
function
|
|
2508
|
+
function Hr(e, t) {
|
|
2481
2509
|
if (e == null) return {};
|
|
2482
2510
|
var n = {};
|
|
2483
2511
|
var r = Object.keys(e);
|
|
@@ -2489,8 +2517,8 @@
|
|
|
2489
2517
|
}
|
|
2490
2518
|
return n;
|
|
2491
2519
|
}
|
|
2492
|
-
function
|
|
2493
|
-
|
|
2520
|
+
function Mr() {
|
|
2521
|
+
Mr = Object.assign || function(e) {
|
|
2494
2522
|
for (var t = 1; t < arguments.length; t++) {
|
|
2495
2523
|
var n = arguments[t];
|
|
2496
2524
|
for (var r in n) {
|
|
@@ -2501,14 +2529,14 @@
|
|
|
2501
2529
|
}
|
|
2502
2530
|
return e;
|
|
2503
2531
|
};
|
|
2504
|
-
return
|
|
2532
|
+
return Mr.apply(this, arguments);
|
|
2505
2533
|
}
|
|
2506
|
-
var
|
|
2534
|
+
var $r = {
|
|
2507
2535
|
odd: ar,
|
|
2508
2536
|
even: lr,
|
|
2509
2537
|
none: ir
|
|
2510
2538
|
};
|
|
2511
|
-
/** @public */ var
|
|
2539
|
+
/** @public */ var Nr = {
|
|
2512
2540
|
/** @private. Generally passed by Table rather than added directly. */
|
|
2513
2541
|
activeElementId: i().string,
|
|
2514
2542
|
actionPrimary: i().element,
|
|
@@ -2545,15 +2573,15 @@
|
|
|
2545
2573
|
/** @private. */
|
|
2546
2574
|
stripe: i().oneOf([ "odd", "even", "none" ])
|
|
2547
2575
|
};
|
|
2548
|
-
var
|
|
2576
|
+
var Lr = {
|
|
2549
2577
|
stripe: "none",
|
|
2550
2578
|
primaryColumnIndex: 0
|
|
2551
2579
|
};
|
|
2552
|
-
var
|
|
2580
|
+
var Wr = r().forwardRef((function(e, t) {
|
|
2553
2581
|
var n = (0, A.useSplunkTheme)(), o = n.isCompact;
|
|
2554
2582
|
var i = o ? "20px" : "24px";
|
|
2555
2583
|
|
|
2556
|
-
return r().createElement(Ln(),
|
|
2584
|
+
return r().createElement(Ln(), Mr({
|
|
2557
2585
|
content: (0, Ue._)("Actions"),
|
|
2558
2586
|
contentRelationship: "label"
|
|
2559
2587
|
}, e), r().createElement(Hn(), {
|
|
@@ -2566,9 +2594,9 @@
|
|
|
2566
2594
|
elementRef: t
|
|
2567
2595
|
}));
|
|
2568
2596
|
}));
|
|
2569
|
-
function
|
|
2597
|
+
function Br(e) {
|
|
2570
2598
|
var t;
|
|
2571
|
-
var o = e.actions, i = e.actionPrimary, a = e.actionsSecondary, c = e.activeElementId, u = e.children, s = e.data, d = e.dataId, f = e.disabled, p = e.draggable, v = e.elementRef, y = e.expandable, b = e.expanded, m = e.expansionRow, g = e.index, w = e.movableColumns, x = e.onClick, C = e.onExpansion, k = e.onKeyDown, S = e.onRequestMoveRow, R = e.onRequestToggle, E = e.primaryColumnIndex, I = e.rowScreenReaderText, j = e.selected, D = e.stripe, _ =
|
|
2599
|
+
var o = e.actions, i = e.actionPrimary, a = e.actionsSecondary, c = e.activeElementId, u = e.children, s = e.data, d = e.dataId, f = e.disabled, p = e.draggable, v = e.elementRef, y = e.expandable, b = e.expanded, m = e.expansionRow, g = e.index, w = e.movableColumns, x = e.onClick, C = e.onExpansion, k = e.onKeyDown, S = e.onRequestMoveRow, R = e.onRequestToggle, E = e.primaryColumnIndex, I = e.rowScreenReaderText, j = e.selected, D = e.stripe, _ = zr(e, [ "actions", "actionPrimary", "actionsSecondary", "activeElementId", "children", "data", "dataId", "disabled", "draggable", "elementRef", "expandable", "expanded", "expansionRow", "index", "movableColumns", "onClick", "onExpansion", "onKeyDown", "onRequestMoveRow", "onRequestToggle", "primaryColumnIndex", "rowScreenReaderText", "selected", "stripe" ]);
|
|
2572
2600
|
var T = (0, l.useSortable)({
|
|
2573
2601
|
// @dnd-kit requires "id" to be greater than 0 https://github.com/clauderic/dnd-kit/issues/1150
|
|
2574
2602
|
// TODO: FormRows drag functionality doesn't work without an index, but it's not a required prop SUI-5639
|
|
@@ -2678,12 +2706,12 @@
|
|
|
2678
2706
|
var Z = (0, st.sprintf)((0, Ue._)("%(selected)s"), {
|
|
2679
2707
|
selected: j ? "selected" : "unselected"
|
|
2680
2708
|
});
|
|
2681
|
-
var ee =
|
|
2709
|
+
var ee = $r[D];
|
|
2682
2710
|
var te = b ? n.Children.count(m) + 1 : undefined;
|
|
2683
2711
|
var ne = w ? "false" : undefined;
|
|
2684
2712
|
var re = function e() {
|
|
2685
2713
|
|
|
2686
|
-
return r().createElement(
|
|
2714
|
+
return r().createElement(Wr, null);
|
|
2687
2715
|
};
|
|
2688
2716
|
var oe = X.map((function(e) {
|
|
2689
2717
|
// Only Cells need dragging shadow
|
|
@@ -2698,7 +2726,7 @@
|
|
|
2698
2726
|
return e;
|
|
2699
2727
|
}));
|
|
2700
2728
|
|
|
2701
|
-
return r().createElement(ee,
|
|
2729
|
+
return r().createElement(ee, Mr({
|
|
2702
2730
|
"data-test": "row",
|
|
2703
2731
|
"data-test-selected": R ? j : undefined,
|
|
2704
2732
|
$clickable: !!x,
|
|
@@ -2711,8 +2739,8 @@
|
|
|
2711
2739
|
onClick: x ? W : undefined,
|
|
2712
2740
|
onKeyDown: B,
|
|
2713
2741
|
$rowSelected: !!(R && j),
|
|
2714
|
-
style: N
|
|
2715
|
-
}), $ ? r().createElement(r().Fragment, null, p && r().createElement(or, null), oe) : r().createElement(r().Fragment, null, p && r().createElement(or,
|
|
2742
|
+
style: Pr(Pr({}, _.style), N)
|
|
2743
|
+
}), $ ? r().createElement(r().Fragment, null, p && r().createElement(or, null), oe) : r().createElement(r().Fragment, null, p && r().createElement(or, Mr({
|
|
2716
2744
|
activeElementId: c,
|
|
2717
2745
|
dataId: d,
|
|
2718
2746
|
index: g,
|
|
@@ -2766,8 +2794,8 @@
|
|
|
2766
2794
|
toggle: re()
|
|
2767
2795
|
}, U()))));
|
|
2768
2796
|
}
|
|
2769
|
-
|
|
2770
|
-
var
|
|
2797
|
+
Br.propTypes = Nr;
|
|
2798
|
+
var Fr = function(e) {
|
|
2771
2799
|
Rr(n, e);
|
|
2772
2800
|
var t = Ir(n);
|
|
2773
2801
|
function n() {
|
|
@@ -2779,36 +2807,36 @@
|
|
|
2779
2807
|
// @docs-props-type RowPropsBase
|
|
2780
2808
|
value: function e() {
|
|
2781
2809
|
|
|
2782
|
-
return r().createElement(
|
|
2810
|
+
return r().createElement(Br, this.props);
|
|
2783
2811
|
}
|
|
2784
2812
|
} ]);
|
|
2785
2813
|
return n;
|
|
2786
2814
|
}(n.Component);
|
|
2787
|
-
|
|
2788
|
-
|
|
2789
|
-
|
|
2790
|
-
|
|
2791
|
-
/* harmony default export */ const
|
|
2815
|
+
Ar(Fr, "splunkUiType", "Table.Row");
|
|
2816
|
+
Ar(Fr, "propTypes", Nr);
|
|
2817
|
+
Ar(Fr, "defaultProps", Lr);
|
|
2818
|
+
Fr.propTypes = Nr;
|
|
2819
|
+
/* harmony default export */ const Kr = Fr;
|
|
2792
2820
|
// CONCATENATED MODULE: ./src/Table/HeadStyles.ts
|
|
2793
|
-
var
|
|
2821
|
+
var Vr = P().thead.withConfig({
|
|
2794
2822
|
displayName: "HeadStyles__Styled",
|
|
2795
2823
|
componentId: "iap21t-0"
|
|
2796
2824
|
})([ "", ";" ], A.mixins.reset("table-header-group"));
|
|
2797
|
-
var
|
|
2825
|
+
var Ur = P()(En).withConfig({
|
|
2798
2826
|
displayName: "HeadStyles__StyledToggleAll",
|
|
2799
2827
|
componentId: "iap21t-1"
|
|
2800
2828
|
})([ "width:", ";" ], (0, A.pick)({
|
|
2801
2829
|
enterprise: "42px",
|
|
2802
2830
|
prisma: "40px"
|
|
2803
2831
|
}));
|
|
2804
|
-
var
|
|
2832
|
+
var Gr = P()(En).withConfig({
|
|
2805
2833
|
displayName: "HeadStyles__StyledInfo",
|
|
2806
2834
|
componentId: "iap21t-2"
|
|
2807
2835
|
})([ "width:", ";" ], (0, A.pick)({
|
|
2808
2836
|
enterprise: "32px",
|
|
2809
2837
|
prisma: "40px"
|
|
2810
2838
|
}));
|
|
2811
|
-
var
|
|
2839
|
+
var Xr = P()(En).withConfig({
|
|
2812
2840
|
displayName: "HeadStyles__StyledDragRow",
|
|
2813
2841
|
componentId: "iap21t-3"
|
|
2814
2842
|
})([ "width:", ";" ], (0, A.pick)({
|
|
@@ -2816,21 +2844,21 @@
|
|
|
2816
2844
|
prisma: "40px"
|
|
2817
2845
|
}));
|
|
2818
2846
|
// CONCATENATED MODULE: ./src/Table/Head.tsx
|
|
2819
|
-
function
|
|
2847
|
+
function Yr(e) {
|
|
2820
2848
|
"@babel/helpers - typeof";
|
|
2821
2849
|
if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") {
|
|
2822
|
-
|
|
2850
|
+
Yr = function e(t) {
|
|
2823
2851
|
return typeof t;
|
|
2824
2852
|
};
|
|
2825
2853
|
} else {
|
|
2826
|
-
|
|
2854
|
+
Yr = function e(t) {
|
|
2827
2855
|
return t && typeof Symbol === "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
|
|
2828
2856
|
};
|
|
2829
2857
|
}
|
|
2830
|
-
return
|
|
2858
|
+
return Yr(e);
|
|
2831
2859
|
}
|
|
2832
|
-
function
|
|
2833
|
-
|
|
2860
|
+
function Qr() {
|
|
2861
|
+
Qr = Object.assign || function(e) {
|
|
2834
2862
|
for (var t = 1; t < arguments.length; t++) {
|
|
2835
2863
|
var n = arguments[t];
|
|
2836
2864
|
for (var r in n) {
|
|
@@ -2841,14 +2869,14 @@
|
|
|
2841
2869
|
}
|
|
2842
2870
|
return e;
|
|
2843
2871
|
};
|
|
2844
|
-
return
|
|
2872
|
+
return Qr.apply(this, arguments);
|
|
2845
2873
|
}
|
|
2846
|
-
function
|
|
2874
|
+
function Jr(e, t) {
|
|
2847
2875
|
if (!(e instanceof t)) {
|
|
2848
2876
|
throw new TypeError("Cannot call a class as a function");
|
|
2849
2877
|
}
|
|
2850
2878
|
}
|
|
2851
|
-
function
|
|
2879
|
+
function Zr(e, t) {
|
|
2852
2880
|
for (var n = 0; n < t.length; n++) {
|
|
2853
2881
|
var r = t[n];
|
|
2854
2882
|
r.enumerable = r.enumerable || false;
|
|
@@ -2857,12 +2885,12 @@
|
|
|
2857
2885
|
Object.defineProperty(e, r.key, r);
|
|
2858
2886
|
}
|
|
2859
2887
|
}
|
|
2860
|
-
function
|
|
2861
|
-
if (t)
|
|
2862
|
-
if (n)
|
|
2888
|
+
function eo(e, t, n) {
|
|
2889
|
+
if (t) Zr(e.prototype, t);
|
|
2890
|
+
if (n) Zr(e, n);
|
|
2863
2891
|
return e;
|
|
2864
2892
|
}
|
|
2865
|
-
function
|
|
2893
|
+
function to(e, t) {
|
|
2866
2894
|
if (typeof t !== "function" && t !== null) {
|
|
2867
2895
|
throw new TypeError("Super expression must either be null or a function");
|
|
2868
2896
|
}
|
|
@@ -2873,41 +2901,41 @@
|
|
|
2873
2901
|
configurable: true
|
|
2874
2902
|
}
|
|
2875
2903
|
});
|
|
2876
|
-
if (t)
|
|
2904
|
+
if (t) no(e, t);
|
|
2877
2905
|
}
|
|
2878
|
-
function
|
|
2879
|
-
|
|
2906
|
+
function no(e, t) {
|
|
2907
|
+
no = Object.setPrototypeOf || function e(t, n) {
|
|
2880
2908
|
t.__proto__ = n;
|
|
2881
2909
|
return t;
|
|
2882
2910
|
};
|
|
2883
|
-
return
|
|
2911
|
+
return no(e, t);
|
|
2884
2912
|
}
|
|
2885
|
-
function
|
|
2886
|
-
var t =
|
|
2913
|
+
function ro(e) {
|
|
2914
|
+
var t = ao();
|
|
2887
2915
|
return function n() {
|
|
2888
|
-
var r =
|
|
2916
|
+
var r = lo(e), o;
|
|
2889
2917
|
if (t) {
|
|
2890
|
-
var i =
|
|
2918
|
+
var i = lo(this).constructor;
|
|
2891
2919
|
o = Reflect.construct(r, arguments, i);
|
|
2892
2920
|
} else {
|
|
2893
2921
|
o = r.apply(this, arguments);
|
|
2894
2922
|
}
|
|
2895
|
-
return
|
|
2923
|
+
return oo(this, o);
|
|
2896
2924
|
};
|
|
2897
2925
|
}
|
|
2898
|
-
function
|
|
2899
|
-
if (t && (
|
|
2926
|
+
function oo(e, t) {
|
|
2927
|
+
if (t && (Yr(t) === "object" || typeof t === "function")) {
|
|
2900
2928
|
return t;
|
|
2901
2929
|
}
|
|
2902
|
-
return
|
|
2930
|
+
return io(e);
|
|
2903
2931
|
}
|
|
2904
|
-
function
|
|
2932
|
+
function io(e) {
|
|
2905
2933
|
if (e === void 0) {
|
|
2906
2934
|
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
2907
2935
|
}
|
|
2908
2936
|
return e;
|
|
2909
2937
|
}
|
|
2910
|
-
function
|
|
2938
|
+
function ao() {
|
|
2911
2939
|
if (typeof Reflect === "undefined" || !Reflect.construct) return false;
|
|
2912
2940
|
if (Reflect.construct.sham) return false;
|
|
2913
2941
|
if (typeof Proxy === "function") return true;
|
|
@@ -2918,13 +2946,13 @@
|
|
|
2918
2946
|
return false;
|
|
2919
2947
|
}
|
|
2920
2948
|
}
|
|
2921
|
-
function
|
|
2922
|
-
|
|
2949
|
+
function lo(e) {
|
|
2950
|
+
lo = Object.setPrototypeOf ? Object.getPrototypeOf : function e(t) {
|
|
2923
2951
|
return t.__proto__ || Object.getPrototypeOf(t);
|
|
2924
2952
|
};
|
|
2925
|
-
return
|
|
2953
|
+
return lo(e);
|
|
2926
2954
|
}
|
|
2927
|
-
function
|
|
2955
|
+
function co(e, t, n) {
|
|
2928
2956
|
if (t in e) {
|
|
2929
2957
|
Object.defineProperty(e, t, {
|
|
2930
2958
|
value: n,
|
|
@@ -2937,7 +2965,7 @@
|
|
|
2937
2965
|
}
|
|
2938
2966
|
return e;
|
|
2939
2967
|
}
|
|
2940
|
-
var
|
|
2968
|
+
var uo = {
|
|
2941
2969
|
/** @private. */
|
|
2942
2970
|
actions: i().arrayOf(i().node),
|
|
2943
2971
|
/** @private. */
|
|
@@ -2967,25 +2995,25 @@
|
|
|
2967
2995
|
/** @private. */
|
|
2968
2996
|
rowSelection: i().oneOf([ "all", "some", "none" ])
|
|
2969
2997
|
};
|
|
2970
|
-
var
|
|
2998
|
+
var so = {
|
|
2971
2999
|
cellMinWidth: 60,
|
|
2972
3000
|
actions: []
|
|
2973
3001
|
};
|
|
2974
|
-
var
|
|
2975
|
-
var
|
|
2976
|
-
var
|
|
2977
|
-
var
|
|
2978
|
-
|
|
2979
|
-
var t =
|
|
3002
|
+
var fo = 3;
|
|
3003
|
+
var po = 2;
|
|
3004
|
+
var vo = 1;
|
|
3005
|
+
var yo = function(e) {
|
|
3006
|
+
to(o, e);
|
|
3007
|
+
var t = ro(o);
|
|
2980
3008
|
// @docs-props-type HeadPropsBase
|
|
2981
3009
|
function o(e) {
|
|
2982
3010
|
var r;
|
|
2983
|
-
|
|
3011
|
+
Jr(this, o);
|
|
2984
3012
|
r = t.call(this, e);
|
|
2985
|
-
|
|
2986
|
-
|
|
2987
|
-
|
|
2988
|
-
|
|
3013
|
+
co(io(r), "cells", void 0);
|
|
3014
|
+
co(io(r), "el", null);
|
|
3015
|
+
co(io(r), "providedWidths", []);
|
|
3016
|
+
co(io(r), "onRequestMoveColumn", (function(e) {
|
|
2989
3017
|
var t = e.columnId, o = e.fromIndex, i = e.toIndex;
|
|
2990
3018
|
if (i < n.Children.toArray(r.props.children).length) {
|
|
2991
3019
|
var a, l;
|
|
@@ -2997,7 +3025,7 @@
|
|
|
2997
3025
|
});
|
|
2998
3026
|
}
|
|
2999
3027
|
}));
|
|
3000
|
-
|
|
3028
|
+
co(io(r), "manageResize", (function(e, t) {
|
|
3001
3029
|
var n = t.columnId, o = t.id, i = t.index, a = t.width;
|
|
3002
3030
|
var l = r.props, c = l.cellMinWidth, u = l.onRequestResizeColumn;
|
|
3003
3031
|
var s = r.context.tableContainerWidthWithoutBorders;
|
|
@@ -3100,11 +3128,11 @@
|
|
|
3100
3128
|
}
|
|
3101
3129
|
}
|
|
3102
3130
|
}));
|
|
3103
|
-
|
|
3131
|
+
co(io(r), "handleMount", (function(e) {
|
|
3104
3132
|
r.el = e;
|
|
3105
3133
|
H(r.props.elementRef, e);
|
|
3106
3134
|
}));
|
|
3107
|
-
|
|
3135
|
+
co(io(r), "handleDragStart", (function(e, t) {
|
|
3108
3136
|
var n, o;
|
|
3109
3137
|
var i = At();
|
|
3110
3138
|
r.setState({
|
|
@@ -3115,7 +3143,7 @@
|
|
|
3115
3143
|
dragIndex: e
|
|
3116
3144
|
});
|
|
3117
3145
|
}));
|
|
3118
|
-
|
|
3146
|
+
co(io(r), "handleDragEnd", (function() {
|
|
3119
3147
|
var e = r.state.dragColumnId;
|
|
3120
3148
|
var t = r.props.dragIndex;
|
|
3121
3149
|
var n = r.calculateGuideIndex();
|
|
@@ -3137,7 +3165,7 @@
|
|
|
3137
3165
|
if (false) {}
|
|
3138
3166
|
return r;
|
|
3139
3167
|
}
|
|
3140
|
-
|
|
3168
|
+
eo(o, [ {
|
|
3141
3169
|
key: "componentDidUpdate",
|
|
3142
3170
|
value: function e() {
|
|
3143
3171
|
if (false) {}
|
|
@@ -3246,36 +3274,36 @@
|
|
|
3246
3274
|
j = (0, Ue._)("All rows selected");
|
|
3247
3275
|
}
|
|
3248
3276
|
|
|
3249
|
-
return r().createElement(
|
|
3277
|
+
return r().createElement(Vr, Qr({
|
|
3250
3278
|
ref: this.handleMount,
|
|
3251
3279
|
"data-test": I
|
|
3252
|
-
}, h()(this.props, Ve()(o.propTypes))), r().createElement(
|
|
3280
|
+
}, h()(this.props, Ve()(o.propTypes))), r().createElement(Kr, null, u && r().createElement(Xr, {
|
|
3253
3281
|
key: "drag_rows_head_cell",
|
|
3254
3282
|
"data-test": "drag-rows-head-cell",
|
|
3255
3283
|
align: "center",
|
|
3256
3284
|
resizable: false,
|
|
3257
|
-
zIndex: C +
|
|
3258
|
-
}), v && r().createElement(
|
|
3285
|
+
zIndex: C + fo
|
|
3286
|
+
}), v && r().createElement(Ur, {
|
|
3259
3287
|
key: "toggle_all",
|
|
3260
3288
|
appearClickable: true,
|
|
3261
3289
|
resizable: false,
|
|
3262
3290
|
align: "center",
|
|
3263
3291
|
variant: "toggleAll",
|
|
3264
3292
|
truncate: false,
|
|
3265
|
-
zIndex: C +
|
|
3293
|
+
zIndex: C + po,
|
|
3266
3294
|
"data-test": "toggle-all"
|
|
3267
3295
|
}, r().createElement(xr, {
|
|
3268
3296
|
allRows: true,
|
|
3269
3297
|
"aria-label": j,
|
|
3270
3298
|
onClick: v,
|
|
3271
3299
|
selected: R
|
|
3272
|
-
})), s && r().createElement(
|
|
3300
|
+
})), s && r().createElement(Gr, {
|
|
3273
3301
|
key: "more_info_head_cell",
|
|
3274
3302
|
"data-test": "more-info-head-cell",
|
|
3275
3303
|
align: "center",
|
|
3276
3304
|
resizable: false,
|
|
3277
3305
|
variant: "info",
|
|
3278
|
-
zIndex: C +
|
|
3306
|
+
zIndex: C + vo
|
|
3279
3307
|
}, r().createElement(Tn, null)), S, a.length > 0 && r().createElement(En, {
|
|
3280
3308
|
hasActionsHead: true,
|
|
3281
3309
|
key: "actions_head_cell",
|
|
@@ -3311,38 +3339,38 @@
|
|
|
3311
3339
|
} ]);
|
|
3312
3340
|
return o;
|
|
3313
3341
|
}(n.Component);
|
|
3314
|
-
|
|
3315
|
-
|
|
3316
|
-
|
|
3317
|
-
|
|
3318
|
-
/* harmony default export */ const
|
|
3342
|
+
co(yo, "contextType", rn);
|
|
3343
|
+
co(yo, "splunkUiType", "Table.Head");
|
|
3344
|
+
co(yo, "propTypes", uo);
|
|
3345
|
+
co(yo, "defaultProps", so);
|
|
3346
|
+
/* harmony default export */ const bo = yo;
|
|
3319
3347
|
// CONCATENATED MODULE: external "lodash/isFinite"
|
|
3320
|
-
const
|
|
3321
|
-
var bo = e.n(yo);
|
|
3322
|
-
// CONCATENATED MODULE: external "lodash/isFunction"
|
|
3323
|
-
const mo = require("lodash/isFunction");
|
|
3348
|
+
const mo = require("lodash/isFinite");
|
|
3324
3349
|
var ho = e.n(mo);
|
|
3350
|
+
// CONCATENATED MODULE: external "lodash/isFunction"
|
|
3351
|
+
const go = require("lodash/isFunction");
|
|
3352
|
+
var wo = e.n(go);
|
|
3325
3353
|
// CONCATENATED MODULE: external "@splunk/ui-utils/id"
|
|
3326
|
-
const
|
|
3354
|
+
const xo = require("@splunk/ui-utils/id");
|
|
3327
3355
|
// CONCATENATED MODULE: external "@splunk/react-ui/Popover"
|
|
3328
|
-
const
|
|
3329
|
-
var
|
|
3356
|
+
const Co = require("@splunk/react-ui/Popover");
|
|
3357
|
+
var ko = e.n(Co);
|
|
3330
3358
|
// CONCATENATED MODULE: ./src/Table/HeadDropdownCell.tsx
|
|
3331
|
-
function
|
|
3359
|
+
function So(e) {
|
|
3332
3360
|
"@babel/helpers - typeof";
|
|
3333
3361
|
if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") {
|
|
3334
|
-
|
|
3362
|
+
So = function e(t) {
|
|
3335
3363
|
return typeof t;
|
|
3336
3364
|
};
|
|
3337
3365
|
} else {
|
|
3338
|
-
|
|
3366
|
+
So = function e(t) {
|
|
3339
3367
|
return t && typeof Symbol === "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
|
|
3340
3368
|
};
|
|
3341
3369
|
}
|
|
3342
|
-
return
|
|
3370
|
+
return So(e);
|
|
3343
3371
|
}
|
|
3344
|
-
function
|
|
3345
|
-
|
|
3372
|
+
function Oo() {
|
|
3373
|
+
Oo = Object.assign || function(e) {
|
|
3346
3374
|
for (var t = 1; t < arguments.length; t++) {
|
|
3347
3375
|
var n = arguments[t];
|
|
3348
3376
|
for (var r in n) {
|
|
@@ -3353,41 +3381,41 @@
|
|
|
3353
3381
|
}
|
|
3354
3382
|
return e;
|
|
3355
3383
|
};
|
|
3356
|
-
return
|
|
3384
|
+
return Oo.apply(this, arguments);
|
|
3357
3385
|
}
|
|
3358
|
-
function
|
|
3359
|
-
return
|
|
3386
|
+
function Ro(e) {
|
|
3387
|
+
return Do(e) || jo(e) || Io(e) || Eo();
|
|
3360
3388
|
}
|
|
3361
|
-
function
|
|
3389
|
+
function Eo() {
|
|
3362
3390
|
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
3363
3391
|
}
|
|
3364
|
-
function
|
|
3392
|
+
function Io(e, t) {
|
|
3365
3393
|
if (!e) return;
|
|
3366
|
-
if (typeof e === "string") return
|
|
3394
|
+
if (typeof e === "string") return _o(e, t);
|
|
3367
3395
|
var n = Object.prototype.toString.call(e).slice(8, -1);
|
|
3368
3396
|
if (n === "Object" && e.constructor) n = e.constructor.name;
|
|
3369
3397
|
if (n === "Map" || n === "Set") return Array.from(e);
|
|
3370
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return
|
|
3398
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _o(e, t);
|
|
3371
3399
|
}
|
|
3372
|
-
function
|
|
3400
|
+
function jo(e) {
|
|
3373
3401
|
if (typeof Symbol !== "undefined" && Symbol.iterator in Object(e)) return Array.from(e);
|
|
3374
3402
|
}
|
|
3375
|
-
function
|
|
3376
|
-
if (Array.isArray(e)) return
|
|
3403
|
+
function Do(e) {
|
|
3404
|
+
if (Array.isArray(e)) return _o(e);
|
|
3377
3405
|
}
|
|
3378
|
-
function
|
|
3406
|
+
function _o(e, t) {
|
|
3379
3407
|
if (t == null || t > e.length) t = e.length;
|
|
3380
3408
|
for (var n = 0, r = new Array(t); n < t; n++) {
|
|
3381
3409
|
r[n] = e[n];
|
|
3382
3410
|
}
|
|
3383
3411
|
return r;
|
|
3384
3412
|
}
|
|
3385
|
-
function
|
|
3413
|
+
function To(e, t) {
|
|
3386
3414
|
if (!(e instanceof t)) {
|
|
3387
3415
|
throw new TypeError("Cannot call a class as a function");
|
|
3388
3416
|
}
|
|
3389
3417
|
}
|
|
3390
|
-
function
|
|
3418
|
+
function qo(e, t) {
|
|
3391
3419
|
for (var n = 0; n < t.length; n++) {
|
|
3392
3420
|
var r = t[n];
|
|
3393
3421
|
r.enumerable = r.enumerable || false;
|
|
@@ -3396,12 +3424,12 @@
|
|
|
3396
3424
|
Object.defineProperty(e, r.key, r);
|
|
3397
3425
|
}
|
|
3398
3426
|
}
|
|
3399
|
-
function
|
|
3400
|
-
if (t)
|
|
3401
|
-
if (n)
|
|
3427
|
+
function Po(e, t, n) {
|
|
3428
|
+
if (t) qo(e.prototype, t);
|
|
3429
|
+
if (n) qo(e, n);
|
|
3402
3430
|
return e;
|
|
3403
3431
|
}
|
|
3404
|
-
function
|
|
3432
|
+
function Ao(e, t) {
|
|
3405
3433
|
if (typeof t !== "function" && t !== null) {
|
|
3406
3434
|
throw new TypeError("Super expression must either be null or a function");
|
|
3407
3435
|
}
|
|
@@ -3412,41 +3440,41 @@
|
|
|
3412
3440
|
configurable: true
|
|
3413
3441
|
}
|
|
3414
3442
|
});
|
|
3415
|
-
if (t)
|
|
3443
|
+
if (t) zo(e, t);
|
|
3416
3444
|
}
|
|
3417
|
-
function
|
|
3418
|
-
|
|
3445
|
+
function zo(e, t) {
|
|
3446
|
+
zo = Object.setPrototypeOf || function e(t, n) {
|
|
3419
3447
|
t.__proto__ = n;
|
|
3420
3448
|
return t;
|
|
3421
3449
|
};
|
|
3422
|
-
return
|
|
3450
|
+
return zo(e, t);
|
|
3423
3451
|
}
|
|
3424
|
-
function
|
|
3425
|
-
var t =
|
|
3452
|
+
function Ho(e) {
|
|
3453
|
+
var t = No();
|
|
3426
3454
|
return function n() {
|
|
3427
|
-
var r =
|
|
3455
|
+
var r = Lo(e), o;
|
|
3428
3456
|
if (t) {
|
|
3429
|
-
var i =
|
|
3457
|
+
var i = Lo(this).constructor;
|
|
3430
3458
|
o = Reflect.construct(r, arguments, i);
|
|
3431
3459
|
} else {
|
|
3432
3460
|
o = r.apply(this, arguments);
|
|
3433
3461
|
}
|
|
3434
|
-
return
|
|
3462
|
+
return Mo(this, o);
|
|
3435
3463
|
};
|
|
3436
3464
|
}
|
|
3437
|
-
function
|
|
3438
|
-
if (t && (
|
|
3465
|
+
function Mo(e, t) {
|
|
3466
|
+
if (t && (So(t) === "object" || typeof t === "function")) {
|
|
3439
3467
|
return t;
|
|
3440
3468
|
}
|
|
3441
|
-
return
|
|
3469
|
+
return $o(e);
|
|
3442
3470
|
}
|
|
3443
|
-
function
|
|
3471
|
+
function $o(e) {
|
|
3444
3472
|
if (e === void 0) {
|
|
3445
3473
|
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
3446
3474
|
}
|
|
3447
3475
|
return e;
|
|
3448
3476
|
}
|
|
3449
|
-
function
|
|
3477
|
+
function No() {
|
|
3450
3478
|
if (typeof Reflect === "undefined" || !Reflect.construct) return false;
|
|
3451
3479
|
if (Reflect.construct.sham) return false;
|
|
3452
3480
|
if (typeof Proxy === "function") return true;
|
|
@@ -3457,13 +3485,13 @@
|
|
|
3457
3485
|
return false;
|
|
3458
3486
|
}
|
|
3459
3487
|
}
|
|
3460
|
-
function
|
|
3461
|
-
|
|
3488
|
+
function Lo(e) {
|
|
3489
|
+
Lo = Object.setPrototypeOf ? Object.getPrototypeOf : function e(t) {
|
|
3462
3490
|
return t.__proto__ || Object.getPrototypeOf(t);
|
|
3463
3491
|
};
|
|
3464
|
-
return
|
|
3492
|
+
return Lo(e);
|
|
3465
3493
|
}
|
|
3466
|
-
function
|
|
3494
|
+
function Wo(e, t, n) {
|
|
3467
3495
|
if (t in e) {
|
|
3468
3496
|
Object.defineProperty(e, t, {
|
|
3469
3497
|
value: n,
|
|
@@ -3476,16 +3504,16 @@
|
|
|
3476
3504
|
}
|
|
3477
3505
|
return e;
|
|
3478
3506
|
}
|
|
3479
|
-
/** @public */ var
|
|
3480
|
-
var
|
|
3507
|
+
/** @public */ var Bo = [ "clickAway", "contentClick", "escapeKey", "offScreen", "tabKey", "toggleClick" ];
|
|
3508
|
+
var Fo = {
|
|
3481
3509
|
align: i().oneOf([ "left", "center", "right" ]),
|
|
3482
3510
|
canCoverHead: i().bool,
|
|
3483
3511
|
children: i().node.isRequired,
|
|
3484
|
-
closeReasons: i().arrayOf(i().oneOf(
|
|
3512
|
+
closeReasons: i().arrayOf(i().oneOf(Bo)),
|
|
3485
3513
|
columnId: i().any,
|
|
3486
3514
|
defaultPlacement: i().oneOf([ "above", "below", "left", "right", "vertical", "horizontal" ]),
|
|
3487
3515
|
elementRef: i().oneOfType([ i().func, i().object ]),
|
|
3488
|
-
focusToggleReasons: i().arrayOf(i().oneOf(
|
|
3516
|
+
focusToggleReasons: i().arrayOf(i().oneOf(Bo)),
|
|
3489
3517
|
/** @private The index of the cell, skipping the info column. */
|
|
3490
3518
|
index: i().number,
|
|
3491
3519
|
label: i().node,
|
|
@@ -3523,10 +3551,10 @@
|
|
|
3523
3551
|
/** @private. */
|
|
3524
3552
|
zIndex: i().number
|
|
3525
3553
|
};
|
|
3526
|
-
var
|
|
3554
|
+
var Ko = {
|
|
3527
3555
|
align: "left",
|
|
3528
3556
|
canCoverHead: true,
|
|
3529
|
-
closeReasons:
|
|
3557
|
+
closeReasons: Bo,
|
|
3530
3558
|
defaultPlacement: "below",
|
|
3531
3559
|
focusToggleReasons: [ "contentClick", "escapeKey", "toggleClick" ],
|
|
3532
3560
|
repositionMode: "flip",
|
|
@@ -3537,9 +3565,9 @@
|
|
|
3537
3565
|
visible: true,
|
|
3538
3566
|
zIndex: 1
|
|
3539
3567
|
};
|
|
3540
|
-
var
|
|
3541
|
-
|
|
3542
|
-
var t =
|
|
3568
|
+
var Vo = function(e) {
|
|
3569
|
+
Ao(n, e);
|
|
3570
|
+
var t = Ho(n);
|
|
3543
3571
|
// @docs-props-type HeadDropdownCellPropsBase
|
|
3544
3572
|
/**
|
|
3545
3573
|
* Enumeration of the possible reasons for closing the Select.
|
|
@@ -3547,18 +3575,18 @@
|
|
|
3547
3575
|
* docs extraction.
|
|
3548
3576
|
*/ function n(e) {
|
|
3549
3577
|
var r;
|
|
3550
|
-
|
|
3578
|
+
To(this, n);
|
|
3551
3579
|
r = t.call(this, e);
|
|
3552
|
-
|
|
3553
|
-
|
|
3554
|
-
|
|
3555
|
-
|
|
3580
|
+
Wo($o(r), "cellId", void 0);
|
|
3581
|
+
Wo($o(r), "controlledExternally", void 0);
|
|
3582
|
+
Wo($o(r), "popoverId", void 0);
|
|
3583
|
+
Wo($o(r), "handleMount", (function(e) {
|
|
3556
3584
|
r.setState({
|
|
3557
3585
|
el: e
|
|
3558
3586
|
});
|
|
3559
3587
|
H(r.props.elementRef, e);
|
|
3560
3588
|
}));
|
|
3561
|
-
|
|
3589
|
+
Wo($o(r), "handleRequestClose", (function(e) {
|
|
3562
3590
|
var t = e.reason, n = e.event;
|
|
3563
3591
|
var o = r.props, i = o.closeReasons, a = o.columnId, l = o.focusToggleReasons, c = o.index, u = o.onRequestClose;
|
|
3564
3592
|
if (t === "clickAway" && n !== undefined) {
|
|
@@ -3587,7 +3615,7 @@
|
|
|
3587
3615
|
});
|
|
3588
3616
|
}
|
|
3589
3617
|
}));
|
|
3590
|
-
|
|
3618
|
+
Wo($o(r), "handleClick", (function(e) {
|
|
3591
3619
|
var t = r.props, n = t.columnId, o = t.index;
|
|
3592
3620
|
// ignore clicks on the resize handle
|
|
3593
3621
|
if (e.target.getAttribute("data-test") === "resize") {
|
|
@@ -3618,7 +3646,7 @@
|
|
|
3618
3646
|
}
|
|
3619
3647
|
}
|
|
3620
3648
|
}));
|
|
3621
|
-
|
|
3649
|
+
Wo($o(r), "handleKeyDown", (function(e) {
|
|
3622
3650
|
var t = r.props, n = t.columnId, o = t.index, i = t.onKeyDown, a = t.onRequestMoveColumn;
|
|
3623
3651
|
if (e.target.getAttribute("data-test") !== "resize") {
|
|
3624
3652
|
if ((0, O.keycode)(e.nativeEvent) === "enter") {
|
|
@@ -3644,20 +3672,20 @@
|
|
|
3644
3672
|
});
|
|
3645
3673
|
}
|
|
3646
3674
|
}));
|
|
3647
|
-
|
|
3675
|
+
Wo($o(r), "handleContentClick", (function(e) {
|
|
3648
3676
|
r.handleRequestClose({
|
|
3649
3677
|
reason: "contentClick",
|
|
3650
3678
|
event: e
|
|
3651
3679
|
});
|
|
3652
3680
|
}));
|
|
3653
|
-
|
|
3681
|
+
Wo($o(r), "handleDragStart", (function(e, t) {
|
|
3654
3682
|
var n, o;
|
|
3655
3683
|
r.setState({
|
|
3656
3684
|
isDragging: true
|
|
3657
3685
|
});
|
|
3658
3686
|
(n = (o = r.props).onDragStart) === null || n === void 0 ? void 0 : n.call(o, e, t);
|
|
3659
3687
|
}));
|
|
3660
|
-
|
|
3688
|
+
Wo($o(r), "handleDragEnd", (function() {
|
|
3661
3689
|
r.setState({
|
|
3662
3690
|
isDragging: false
|
|
3663
3691
|
});
|
|
@@ -3668,12 +3696,12 @@
|
|
|
3668
3696
|
open: false
|
|
3669
3697
|
};
|
|
3670
3698
|
r.controlledExternally = d()(e, "open");
|
|
3671
|
-
r.popoverId = (0,
|
|
3672
|
-
r.cellId = (0,
|
|
3699
|
+
r.popoverId = (0, xo.createDOMID)("popover");
|
|
3700
|
+
r.cellId = (0, xo.createDOMID)("cellId");
|
|
3673
3701
|
if (false) {}
|
|
3674
3702
|
return r;
|
|
3675
3703
|
}
|
|
3676
|
-
|
|
3704
|
+
Po(n, [ {
|
|
3677
3705
|
key: "componentDidUpdate",
|
|
3678
3706
|
value: function e(t) {
|
|
3679
3707
|
if (t.visible && !this.props.visible) {
|
|
@@ -3711,7 +3739,7 @@
|
|
|
3711
3739
|
var P = f || this.cellId;
|
|
3712
3740
|
var A = this.context.headType;
|
|
3713
3741
|
|
|
3714
|
-
return r().createElement(Ot,
|
|
3742
|
+
return r().createElement(Ot, Oo({
|
|
3715
3743
|
style: Qe()(k, {
|
|
3716
3744
|
width: I
|
|
3717
3745
|
}),
|
|
@@ -3722,7 +3750,7 @@
|
|
|
3722
3750
|
id: E ? P : undefined,
|
|
3723
3751
|
tabIndex: E ? 0 : undefined,
|
|
3724
3752
|
ref: this.handleMount
|
|
3725
|
-
}, h()(this.props, [].concat(
|
|
3753
|
+
}, h()(this.props, [].concat(Ro(Object.keys(n.propTypes)), [ "id", "style" ])), {
|
|
3726
3754
|
onClick: this.handleClick,
|
|
3727
3755
|
onKeyDown: this.handleKeyDown,
|
|
3728
3756
|
"aria-haspopup": true,
|
|
@@ -3746,7 +3774,7 @@
|
|
|
3746
3774
|
width: I
|
|
3747
3775
|
}), C !== "none" && r().createElement(Rt, {
|
|
3748
3776
|
$position: C
|
|
3749
|
-
}), r().createElement(
|
|
3777
|
+
}), r().createElement(ko(), {
|
|
3750
3778
|
align: "center",
|
|
3751
3779
|
open: !!T && this.isOpen(),
|
|
3752
3780
|
autoCloseWhenOffScreen: D()(u, "offScreen"),
|
|
@@ -3759,10 +3787,10 @@
|
|
|
3759
3787
|
id: this.popoverId,
|
|
3760
3788
|
"aria-labelledby": f || this.cellId,
|
|
3761
3789
|
takeFocus: S,
|
|
3762
|
-
pointTo: q !== undefined &&
|
|
3790
|
+
pointTo: q !== undefined && ho()(q) ? {
|
|
3763
3791
|
x: q - ((t = T === null || T === void 0 ? void 0 : T.getBoundingClientRect().left) !== null && t !== void 0 ? t : 0)
|
|
3764
3792
|
} : undefined
|
|
3765
|
-
},
|
|
3793
|
+
}, wo()(c) ? function() {
|
|
3766
3794
|
|
|
3767
3795
|
// eslint-disable-next-line jsx-a11y/click-events-have-key-events, jsx-a11y/no-static-element-interactions
|
|
3768
3796
|
return r().createElement("div", {
|
|
@@ -3778,21 +3806,21 @@
|
|
|
3778
3806
|
} ]);
|
|
3779
3807
|
return n;
|
|
3780
3808
|
}(n.Component);
|
|
3781
|
-
|
|
3782
|
-
|
|
3783
|
-
|
|
3784
|
-
|
|
3785
|
-
|
|
3786
|
-
/* harmony default export */ const
|
|
3809
|
+
Wo(Vo, "splunkUiType", "Table.HeadDropdownCell");
|
|
3810
|
+
Wo(Vo, "possibleCloseReasons", Bo);
|
|
3811
|
+
Wo(Vo, "propTypes", Fo);
|
|
3812
|
+
Wo(Vo, "defaultProps", Ko);
|
|
3813
|
+
Wo(Vo, "contextType", rn);
|
|
3814
|
+
/* harmony default export */ const Uo = Vo;
|
|
3787
3815
|
// CONCATENATED MODULE: external "lodash/extend"
|
|
3788
|
-
const
|
|
3789
|
-
var
|
|
3816
|
+
const Go = require("lodash/extend");
|
|
3817
|
+
var Xo = e.n(Go);
|
|
3790
3818
|
// CONCATENATED MODULE: ./src/Table/HeadTableStyles.ts
|
|
3791
|
-
var
|
|
3819
|
+
var Yo = P()(fe).withConfig({
|
|
3792
3820
|
displayName: "HeadTableStyles__Styled",
|
|
3793
3821
|
componentId: "g85wgf-0"
|
|
3794
3822
|
})([ "min-width:0;table-layout:fixed;" ]);
|
|
3795
|
-
var
|
|
3823
|
+
var Qo = P().div.withConfig({
|
|
3796
3824
|
displayName: "HeadTableStyles__StyledDockedContainer",
|
|
3797
3825
|
componentId: "g85wgf-1"
|
|
3798
3826
|
})([ "overflow:hidden;position:fixed;box-shadow:", ";z-index:", ";@media print{display:none;}" ], (0,
|
|
@@ -3800,26 +3828,26 @@
|
|
|
3800
3828
|
enterprise: A.variables.overlayShadow,
|
|
3801
3829
|
prisma: "none"
|
|
3802
3830
|
}), A.variables.zindexFixedNavbar);
|
|
3803
|
-
var
|
|
3831
|
+
var Jo = P()(Qo).withConfig({
|
|
3804
3832
|
displayName: "HeadTableStyles__StyledFixedContainer",
|
|
3805
3833
|
componentId: "g85wgf-2"
|
|
3806
3834
|
})([ "position:absolute;box-shadow:none;z-index:1;" ]);
|
|
3807
3835
|
// CONCATENATED MODULE: ./src/Table/HeadTable.tsx
|
|
3808
|
-
function
|
|
3836
|
+
function Zo(e) {
|
|
3809
3837
|
"@babel/helpers - typeof";
|
|
3810
3838
|
if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") {
|
|
3811
|
-
|
|
3839
|
+
Zo = function e(t) {
|
|
3812
3840
|
return typeof t;
|
|
3813
3841
|
};
|
|
3814
3842
|
} else {
|
|
3815
|
-
|
|
3843
|
+
Zo = function e(t) {
|
|
3816
3844
|
return t && typeof Symbol === "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
|
|
3817
3845
|
};
|
|
3818
3846
|
}
|
|
3819
|
-
return
|
|
3847
|
+
return Zo(e);
|
|
3820
3848
|
}
|
|
3821
|
-
function
|
|
3822
|
-
|
|
3849
|
+
function ei() {
|
|
3850
|
+
ei = Object.assign || function(e) {
|
|
3823
3851
|
for (var t = 1; t < arguments.length; t++) {
|
|
3824
3852
|
var n = arguments[t];
|
|
3825
3853
|
for (var r in n) {
|
|
@@ -3830,11 +3858,11 @@
|
|
|
3830
3858
|
}
|
|
3831
3859
|
return e;
|
|
3832
3860
|
};
|
|
3833
|
-
return
|
|
3861
|
+
return ei.apply(this, arguments);
|
|
3834
3862
|
}
|
|
3835
|
-
function
|
|
3863
|
+
function ti(e, t) {
|
|
3836
3864
|
if (e == null) return {};
|
|
3837
|
-
var n =
|
|
3865
|
+
var n = ni(e, t);
|
|
3838
3866
|
var r, o;
|
|
3839
3867
|
if (Object.getOwnPropertySymbols) {
|
|
3840
3868
|
var i = Object.getOwnPropertySymbols(e);
|
|
@@ -3847,7 +3875,7 @@
|
|
|
3847
3875
|
}
|
|
3848
3876
|
return n;
|
|
3849
3877
|
}
|
|
3850
|
-
function
|
|
3878
|
+
function ni(e, t) {
|
|
3851
3879
|
if (e == null) return {};
|
|
3852
3880
|
var n = {};
|
|
3853
3881
|
var r = Object.keys(e);
|
|
@@ -3859,12 +3887,12 @@
|
|
|
3859
3887
|
}
|
|
3860
3888
|
return n;
|
|
3861
3889
|
}
|
|
3862
|
-
function
|
|
3890
|
+
function ri(e, t) {
|
|
3863
3891
|
if (!(e instanceof t)) {
|
|
3864
3892
|
throw new TypeError("Cannot call a class as a function");
|
|
3865
3893
|
}
|
|
3866
3894
|
}
|
|
3867
|
-
function
|
|
3895
|
+
function oi(e, t) {
|
|
3868
3896
|
for (var n = 0; n < t.length; n++) {
|
|
3869
3897
|
var r = t[n];
|
|
3870
3898
|
r.enumerable = r.enumerable || false;
|
|
@@ -3873,12 +3901,12 @@
|
|
|
3873
3901
|
Object.defineProperty(e, r.key, r);
|
|
3874
3902
|
}
|
|
3875
3903
|
}
|
|
3876
|
-
function
|
|
3877
|
-
if (t)
|
|
3878
|
-
if (n)
|
|
3904
|
+
function ii(e, t, n) {
|
|
3905
|
+
if (t) oi(e.prototype, t);
|
|
3906
|
+
if (n) oi(e, n);
|
|
3879
3907
|
return e;
|
|
3880
3908
|
}
|
|
3881
|
-
function
|
|
3909
|
+
function ai(e, t) {
|
|
3882
3910
|
if (typeof t !== "function" && t !== null) {
|
|
3883
3911
|
throw new TypeError("Super expression must either be null or a function");
|
|
3884
3912
|
}
|
|
@@ -3889,41 +3917,41 @@
|
|
|
3889
3917
|
configurable: true
|
|
3890
3918
|
}
|
|
3891
3919
|
});
|
|
3892
|
-
if (t)
|
|
3920
|
+
if (t) li(e, t);
|
|
3893
3921
|
}
|
|
3894
|
-
function
|
|
3895
|
-
|
|
3922
|
+
function li(e, t) {
|
|
3923
|
+
li = Object.setPrototypeOf || function e(t, n) {
|
|
3896
3924
|
t.__proto__ = n;
|
|
3897
3925
|
return t;
|
|
3898
3926
|
};
|
|
3899
|
-
return
|
|
3927
|
+
return li(e, t);
|
|
3900
3928
|
}
|
|
3901
|
-
function
|
|
3902
|
-
var t =
|
|
3929
|
+
function ci(e) {
|
|
3930
|
+
var t = di();
|
|
3903
3931
|
return function n() {
|
|
3904
|
-
var r =
|
|
3932
|
+
var r = fi(e), o;
|
|
3905
3933
|
if (t) {
|
|
3906
|
-
var i =
|
|
3934
|
+
var i = fi(this).constructor;
|
|
3907
3935
|
o = Reflect.construct(r, arguments, i);
|
|
3908
3936
|
} else {
|
|
3909
3937
|
o = r.apply(this, arguments);
|
|
3910
3938
|
}
|
|
3911
|
-
return
|
|
3939
|
+
return ui(this, o);
|
|
3912
3940
|
};
|
|
3913
3941
|
}
|
|
3914
|
-
function
|
|
3915
|
-
if (t && (
|
|
3942
|
+
function ui(e, t) {
|
|
3943
|
+
if (t && (Zo(t) === "object" || typeof t === "function")) {
|
|
3916
3944
|
return t;
|
|
3917
3945
|
}
|
|
3918
|
-
return
|
|
3946
|
+
return si(e);
|
|
3919
3947
|
}
|
|
3920
|
-
function
|
|
3948
|
+
function si(e) {
|
|
3921
3949
|
if (e === void 0) {
|
|
3922
3950
|
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
3923
3951
|
}
|
|
3924
3952
|
return e;
|
|
3925
3953
|
}
|
|
3926
|
-
function
|
|
3954
|
+
function di() {
|
|
3927
3955
|
if (typeof Reflect === "undefined" || !Reflect.construct) return false;
|
|
3928
3956
|
if (Reflect.construct.sham) return false;
|
|
3929
3957
|
if (typeof Proxy === "function") return true;
|
|
@@ -3934,13 +3962,13 @@
|
|
|
3934
3962
|
return false;
|
|
3935
3963
|
}
|
|
3936
3964
|
}
|
|
3937
|
-
function
|
|
3938
|
-
|
|
3965
|
+
function fi(e) {
|
|
3966
|
+
fi = Object.setPrototypeOf ? Object.getPrototypeOf : function e(t) {
|
|
3939
3967
|
return t.__proto__ || Object.getPrototypeOf(t);
|
|
3940
3968
|
};
|
|
3941
|
-
return
|
|
3969
|
+
return fi(e);
|
|
3942
3970
|
}
|
|
3943
|
-
function
|
|
3971
|
+
function pi(e, t, n) {
|
|
3944
3972
|
if (t in e) {
|
|
3945
3973
|
Object.defineProperty(e, t, {
|
|
3946
3974
|
value: n,
|
|
@@ -3953,7 +3981,7 @@
|
|
|
3953
3981
|
}
|
|
3954
3982
|
return e;
|
|
3955
3983
|
}
|
|
3956
|
-
var
|
|
3984
|
+
var vi = {
|
|
3957
3985
|
cellWidths: i().arrayOf(i().number).isRequired,
|
|
3958
3986
|
dragIndex: i().number,
|
|
3959
3987
|
elementRef: i().oneOfType([ i().func, i().object ]),
|
|
@@ -3970,30 +3998,30 @@
|
|
|
3970
3998
|
top: i().number.isRequired,
|
|
3971
3999
|
width: i().number.isRequired
|
|
3972
4000
|
};
|
|
3973
|
-
var
|
|
4001
|
+
var yi = {
|
|
3974
4002
|
horizontalOffset: 0
|
|
3975
4003
|
};
|
|
3976
4004
|
/**
|
|
3977
4005
|
* @private
|
|
3978
4006
|
* HeadTable is an internal component that provides a detached table head that can
|
|
3979
4007
|
* then be positioned in different ways outside of the main table.
|
|
3980
|
-
*/ var
|
|
3981
|
-
|
|
3982
|
-
var t =
|
|
4008
|
+
*/ var bi = function(e) {
|
|
4009
|
+
ai(o, e);
|
|
4010
|
+
var t = ci(o);
|
|
3983
4011
|
function o() {
|
|
3984
4012
|
var e;
|
|
3985
|
-
|
|
4013
|
+
ri(this, o);
|
|
3986
4014
|
for (var n = arguments.length, r = new Array(n), i = 0; i < n; i++) {
|
|
3987
4015
|
r[i] = arguments[i];
|
|
3988
4016
|
}
|
|
3989
4017
|
e = t.call.apply(t, [ this ].concat(r));
|
|
3990
|
-
|
|
3991
|
-
|
|
4018
|
+
pi(si(e), "head", null);
|
|
4019
|
+
pi(si(e), "handleHeadMount", (function(t) {
|
|
3992
4020
|
e.head = t;
|
|
3993
4021
|
}));
|
|
3994
4022
|
return e;
|
|
3995
4023
|
}
|
|
3996
|
-
|
|
4024
|
+
ii(o, [ {
|
|
3997
4025
|
key: "getHead",
|
|
3998
4026
|
value: function e() {
|
|
3999
4027
|
return this.head;
|
|
@@ -4001,9 +4029,9 @@
|
|
|
4001
4029
|
}, {
|
|
4002
4030
|
key: "render",
|
|
4003
4031
|
value: function e() {
|
|
4004
|
-
var t = this.props, o = t.cellWidths, i = t.elementRef, a = t.hasDragColumn, l = t.hasRowExpansion, c = t.hasRowSelection, u = t.headType, s = t.horizontalOffset, d = t.isFixedColumn, f = t.tableStyle, p = t.tableWidth, v = t.tHead, y = t.top, b = t.width, m =
|
|
4032
|
+
var t = this.props, o = t.cellWidths, i = t.elementRef, a = t.hasDragColumn, l = t.hasRowExpansion, c = t.hasRowSelection, u = t.headType, s = t.horizontalOffset, d = t.isFixedColumn, f = t.tableStyle, p = t.tableWidth, v = t.tHead, y = t.top, b = t.width, m = ti(t, [ "cellWidths", "elementRef", "hasDragColumn", "hasRowExpansion", "hasRowSelection", "headType", "horizontalOffset", "isFixedColumn", "tableStyle", "tableWidth", "tHead", "top", "width" ]);
|
|
4005
4033
|
var g = u === "docked";
|
|
4006
|
-
var w = g ?
|
|
4034
|
+
var w = g ? Qo : Jo;
|
|
4007
4035
|
var x = 0;
|
|
4008
4036
|
if (l) {
|
|
4009
4037
|
x += 1;
|
|
@@ -4019,7 +4047,7 @@
|
|
|
4019
4047
|
n.Children.toArray(v.props.children).filter(n.isValidElement).map((function(e, t) {
|
|
4020
4048
|
|
|
4021
4049
|
return (0, n.cloneElement)(e, {
|
|
4022
|
-
style:
|
|
4050
|
+
style: Xo()({}, e.props.style, {
|
|
4023
4051
|
width: o[t + x]
|
|
4024
4052
|
})
|
|
4025
4053
|
});
|
|
@@ -4035,10 +4063,10 @@
|
|
|
4035
4063
|
width: b
|
|
4036
4064
|
},
|
|
4037
4065
|
ref: i
|
|
4038
|
-
}, r().createElement(
|
|
4066
|
+
}, r().createElement(Yo, ei({
|
|
4039
4067
|
"data-test": "".concat(u, "-head-table"),
|
|
4040
4068
|
"data-fixed-column": d ? "true" : undefined,
|
|
4041
|
-
style:
|
|
4069
|
+
style: Xo()({}, f, {
|
|
4042
4070
|
marginLeft: s,
|
|
4043
4071
|
width: d ? undefined : p
|
|
4044
4072
|
})
|
|
@@ -4047,9 +4075,9 @@
|
|
|
4047
4075
|
} ]);
|
|
4048
4076
|
return o;
|
|
4049
4077
|
}(n.Component);
|
|
4050
|
-
|
|
4051
|
-
|
|
4052
|
-
/* harmony default export */ const
|
|
4078
|
+
pi(bi, "propTypes", vi);
|
|
4079
|
+
pi(bi, "defaultProps", yi);
|
|
4080
|
+
/* harmony default export */ const mi = bi;
|
|
4053
4081
|
// CONCATENATED MODULE: ./src/utils/types.ts
|
|
4054
4082
|
// see https://github.com/DefinitelyTyped/DefinitelyTyped/issues/31245 for details
|
|
4055
4083
|
// regarding the css prop. certain (versions of) libraries included in the compilation
|
|
@@ -4060,31 +4088,31 @@
|
|
|
4060
4088
|
// erroneously included in react-ui's public api.
|
|
4061
4089
|
// see https://github.com/microsoft/TypeScript/pull/12253
|
|
4062
4090
|
// see https://www.typescriptlang.org/docs/handbook/release-notes/typescript-3-7.html
|
|
4063
|
-
function
|
|
4091
|
+
function hi(e, t) {
|
|
4064
4092
|
if (e === undefined || e === null) {
|
|
4065
4093
|
throw new Error(t !== null && t !== void 0 ? t : "Unexpected undefined or null");
|
|
4066
4094
|
}
|
|
4067
4095
|
}
|
|
4068
4096
|
// CONCATENATED MODULE: ./src/Table/Table.tsx
|
|
4069
|
-
function
|
|
4097
|
+
function gi(e) {
|
|
4070
4098
|
"@babel/helpers - typeof";
|
|
4071
4099
|
if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") {
|
|
4072
|
-
|
|
4100
|
+
gi = function e(t) {
|
|
4073
4101
|
return typeof t;
|
|
4074
4102
|
};
|
|
4075
4103
|
} else {
|
|
4076
|
-
|
|
4104
|
+
gi = function e(t) {
|
|
4077
4105
|
return t && typeof Symbol === "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
|
|
4078
4106
|
};
|
|
4079
4107
|
}
|
|
4080
|
-
return
|
|
4108
|
+
return gi(e);
|
|
4081
4109
|
}
|
|
4082
|
-
function
|
|
4110
|
+
function wi(e, t) {
|
|
4083
4111
|
if (!(e instanceof t)) {
|
|
4084
4112
|
throw new TypeError("Cannot call a class as a function");
|
|
4085
4113
|
}
|
|
4086
4114
|
}
|
|
4087
|
-
function
|
|
4115
|
+
function xi(e, t) {
|
|
4088
4116
|
for (var n = 0; n < t.length; n++) {
|
|
4089
4117
|
var r = t[n];
|
|
4090
4118
|
r.enumerable = r.enumerable || false;
|
|
@@ -4093,12 +4121,12 @@
|
|
|
4093
4121
|
Object.defineProperty(e, r.key, r);
|
|
4094
4122
|
}
|
|
4095
4123
|
}
|
|
4096
|
-
function
|
|
4097
|
-
if (t)
|
|
4098
|
-
if (n)
|
|
4124
|
+
function Ci(e, t, n) {
|
|
4125
|
+
if (t) xi(e.prototype, t);
|
|
4126
|
+
if (n) xi(e, n);
|
|
4099
4127
|
return e;
|
|
4100
4128
|
}
|
|
4101
|
-
function
|
|
4129
|
+
function ki(e, t) {
|
|
4102
4130
|
if (typeof t !== "function" && t !== null) {
|
|
4103
4131
|
throw new TypeError("Super expression must either be null or a function");
|
|
4104
4132
|
}
|
|
@@ -4109,41 +4137,41 @@
|
|
|
4109
4137
|
configurable: true
|
|
4110
4138
|
}
|
|
4111
4139
|
});
|
|
4112
|
-
if (t)
|
|
4140
|
+
if (t) Si(e, t);
|
|
4113
4141
|
}
|
|
4114
|
-
function
|
|
4115
|
-
|
|
4142
|
+
function Si(e, t) {
|
|
4143
|
+
Si = Object.setPrototypeOf || function e(t, n) {
|
|
4116
4144
|
t.__proto__ = n;
|
|
4117
4145
|
return t;
|
|
4118
4146
|
};
|
|
4119
|
-
return
|
|
4147
|
+
return Si(e, t);
|
|
4120
4148
|
}
|
|
4121
|
-
function
|
|
4122
|
-
var t =
|
|
4149
|
+
function Oi(e) {
|
|
4150
|
+
var t = Ii();
|
|
4123
4151
|
return function n() {
|
|
4124
|
-
var r =
|
|
4152
|
+
var r = ji(e), o;
|
|
4125
4153
|
if (t) {
|
|
4126
|
-
var i =
|
|
4154
|
+
var i = ji(this).constructor;
|
|
4127
4155
|
o = Reflect.construct(r, arguments, i);
|
|
4128
4156
|
} else {
|
|
4129
4157
|
o = r.apply(this, arguments);
|
|
4130
4158
|
}
|
|
4131
|
-
return
|
|
4159
|
+
return Ri(this, o);
|
|
4132
4160
|
};
|
|
4133
4161
|
}
|
|
4134
|
-
function
|
|
4135
|
-
if (t && (
|
|
4162
|
+
function Ri(e, t) {
|
|
4163
|
+
if (t && (gi(t) === "object" || typeof t === "function")) {
|
|
4136
4164
|
return t;
|
|
4137
4165
|
}
|
|
4138
|
-
return
|
|
4166
|
+
return Ei(e);
|
|
4139
4167
|
}
|
|
4140
|
-
function
|
|
4168
|
+
function Ei(e) {
|
|
4141
4169
|
if (e === void 0) {
|
|
4142
4170
|
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
4143
4171
|
}
|
|
4144
4172
|
return e;
|
|
4145
4173
|
}
|
|
4146
|
-
function
|
|
4174
|
+
function Ii() {
|
|
4147
4175
|
if (typeof Reflect === "undefined" || !Reflect.construct) return false;
|
|
4148
4176
|
if (Reflect.construct.sham) return false;
|
|
4149
4177
|
if (typeof Proxy === "function") return true;
|
|
@@ -4154,13 +4182,13 @@
|
|
|
4154
4182
|
return false;
|
|
4155
4183
|
}
|
|
4156
4184
|
}
|
|
4157
|
-
function
|
|
4158
|
-
|
|
4185
|
+
function ji(e) {
|
|
4186
|
+
ji = Object.setPrototypeOf ? Object.getPrototypeOf : function e(t) {
|
|
4159
4187
|
return t.__proto__ || Object.getPrototypeOf(t);
|
|
4160
4188
|
};
|
|
4161
|
-
return
|
|
4189
|
+
return ji(e);
|
|
4162
4190
|
}
|
|
4163
|
-
function
|
|
4191
|
+
function Di(e, t, n) {
|
|
4164
4192
|
if (t in e) {
|
|
4165
4193
|
Object.defineProperty(e, t, {
|
|
4166
4194
|
value: n,
|
|
@@ -4173,8 +4201,8 @@
|
|
|
4173
4201
|
}
|
|
4174
4202
|
return e;
|
|
4175
4203
|
}
|
|
4176
|
-
function
|
|
4177
|
-
|
|
4204
|
+
function _i() {
|
|
4205
|
+
_i = Object.assign || function(e) {
|
|
4178
4206
|
for (var t = 1; t < arguments.length; t++) {
|
|
4179
4207
|
var n = arguments[t];
|
|
4180
4208
|
for (var r in n) {
|
|
@@ -4185,42 +4213,42 @@
|
|
|
4185
4213
|
}
|
|
4186
4214
|
return e;
|
|
4187
4215
|
};
|
|
4188
|
-
return
|
|
4216
|
+
return _i.apply(this, arguments);
|
|
4189
4217
|
}
|
|
4190
|
-
function
|
|
4191
|
-
return
|
|
4218
|
+
function Ti(e) {
|
|
4219
|
+
return Ai(e) || Pi(e) || Mi(e) || qi();
|
|
4192
4220
|
}
|
|
4193
|
-
function
|
|
4221
|
+
function qi() {
|
|
4194
4222
|
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
4195
4223
|
}
|
|
4196
|
-
function
|
|
4224
|
+
function Pi(e) {
|
|
4197
4225
|
if (typeof Symbol !== "undefined" && Symbol.iterator in Object(e)) return Array.from(e);
|
|
4198
4226
|
}
|
|
4199
|
-
function
|
|
4200
|
-
if (Array.isArray(e)) return
|
|
4227
|
+
function Ai(e) {
|
|
4228
|
+
if (Array.isArray(e)) return $i(e);
|
|
4201
4229
|
}
|
|
4202
|
-
function
|
|
4203
|
-
return
|
|
4230
|
+
function zi(e, t) {
|
|
4231
|
+
return Li(e) || Ni(e, t) || Mi(e, t) || Hi();
|
|
4204
4232
|
}
|
|
4205
|
-
function
|
|
4233
|
+
function Hi() {
|
|
4206
4234
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
4207
4235
|
}
|
|
4208
|
-
function
|
|
4236
|
+
function Mi(e, t) {
|
|
4209
4237
|
if (!e) return;
|
|
4210
|
-
if (typeof e === "string") return
|
|
4238
|
+
if (typeof e === "string") return $i(e, t);
|
|
4211
4239
|
var n = Object.prototype.toString.call(e).slice(8, -1);
|
|
4212
4240
|
if (n === "Object" && e.constructor) n = e.constructor.name;
|
|
4213
4241
|
if (n === "Map" || n === "Set") return Array.from(e);
|
|
4214
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return
|
|
4242
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return $i(e, t);
|
|
4215
4243
|
}
|
|
4216
|
-
function
|
|
4244
|
+
function $i(e, t) {
|
|
4217
4245
|
if (t == null || t > e.length) t = e.length;
|
|
4218
4246
|
for (var n = 0, r = new Array(t); n < t; n++) {
|
|
4219
4247
|
r[n] = e[n];
|
|
4220
4248
|
}
|
|
4221
4249
|
return r;
|
|
4222
4250
|
}
|
|
4223
|
-
function
|
|
4251
|
+
function Ni(e, t) {
|
|
4224
4252
|
if (typeof Symbol === "undefined" || !(Symbol.iterator in Object(e))) return;
|
|
4225
4253
|
var n = [];
|
|
4226
4254
|
var r = true;
|
|
@@ -4243,12 +4271,12 @@
|
|
|
4243
4271
|
}
|
|
4244
4272
|
return n;
|
|
4245
4273
|
}
|
|
4246
|
-
function
|
|
4274
|
+
function Li(e) {
|
|
4247
4275
|
if (Array.isArray(e)) return e;
|
|
4248
4276
|
}
|
|
4249
|
-
function
|
|
4277
|
+
function Wi(e, t) {
|
|
4250
4278
|
if (e == null) return {};
|
|
4251
|
-
var n =
|
|
4279
|
+
var n = Bi(e, t);
|
|
4252
4280
|
var r, o;
|
|
4253
4281
|
if (Object.getOwnPropertySymbols) {
|
|
4254
4282
|
var i = Object.getOwnPropertySymbols(e);
|
|
@@ -4261,7 +4289,7 @@
|
|
|
4261
4289
|
}
|
|
4262
4290
|
return n;
|
|
4263
4291
|
}
|
|
4264
|
-
function
|
|
4292
|
+
function Bi(e, t) {
|
|
4265
4293
|
if (e == null) return {};
|
|
4266
4294
|
var n = {};
|
|
4267
4295
|
var r = Object.keys(e);
|
|
@@ -4275,7 +4303,7 @@
|
|
|
4275
4303
|
}
|
|
4276
4304
|
// Exposed as static members of the Table class
|
|
4277
4305
|
// Internal Helper Modules
|
|
4278
|
-
/** @public */ var
|
|
4306
|
+
/** @public */ var Fi = {
|
|
4279
4307
|
actions: i().arrayOf(i().element),
|
|
4280
4308
|
actionsColumnWidth: i().number,
|
|
4281
4309
|
children: i().node,
|
|
@@ -4297,7 +4325,7 @@
|
|
|
4297
4325
|
onRequestResizeColumn: i().func,
|
|
4298
4326
|
resizableFillLayout: i().bool
|
|
4299
4327
|
};
|
|
4300
|
-
var
|
|
4328
|
+
var Ki = {
|
|
4301
4329
|
actions: [],
|
|
4302
4330
|
dockOffset: 0,
|
|
4303
4331
|
headType: "inline",
|
|
@@ -4306,16 +4334,16 @@
|
|
|
4306
4334
|
resizableFillLayout: false,
|
|
4307
4335
|
primaryColumnIndex: 0
|
|
4308
4336
|
};
|
|
4309
|
-
var
|
|
4337
|
+
var Vi = function e(t) {
|
|
4310
4338
|
return t === "inline";
|
|
4311
4339
|
};
|
|
4312
|
-
var
|
|
4340
|
+
var Ui = function e(t) {
|
|
4313
4341
|
return t === "docked";
|
|
4314
4342
|
};
|
|
4315
|
-
var
|
|
4343
|
+
var Gi = function e(t) {
|
|
4316
4344
|
return t === "fixed";
|
|
4317
4345
|
};
|
|
4318
|
-
var
|
|
4346
|
+
var Xi = function e(t) {
|
|
4319
4347
|
var n = At();
|
|
4320
4348
|
var r = t.getBoundingClientRect();
|
|
4321
4349
|
return {
|
|
@@ -4323,7 +4351,7 @@
|
|
|
4323
4351
|
left: r.left + n.pageXOffset
|
|
4324
4352
|
};
|
|
4325
4353
|
};
|
|
4326
|
-
var
|
|
4354
|
+
var Yi = function e(t) {
|
|
4327
4355
|
var n, r;
|
|
4328
4356
|
var o = qt();
|
|
4329
4357
|
if (t === undefined || t === null) {
|
|
@@ -4356,7 +4384,7 @@
|
|
|
4356
4384
|
* @param {String} headFocusState.target - Focus can be applied to a 'headCell' or a
|
|
4357
4385
|
* 'resizeButton'.
|
|
4358
4386
|
* @param {Number} headFocusState.index - The index of the element to set focus on.
|
|
4359
|
-
*/ function
|
|
4387
|
+
*/ function Qi(e, t) {
|
|
4360
4388
|
var n, r;
|
|
4361
4389
|
var o = t.target, i = t.index;
|
|
4362
4390
|
if (false) {}
|
|
@@ -4371,18 +4399,18 @@
|
|
|
4371
4399
|
if (false) {}
|
|
4372
4400
|
(n = a) === null || n === void 0 ? void 0 : (r = n.focus) === null || r === void 0 ? void 0 : r.call(n);
|
|
4373
4401
|
}
|
|
4374
|
-
function
|
|
4375
|
-
var t = e.actions, o = e.actionsColumnWidth, i = e.children, c = e.dockOffset, s = e.dockScrollBar, f = e.elementRef, p = e.headType, v = e.innerStyle, b = e.onRequestMoveColumn, m = e.onRequestMoveRow, g = e.onRequestResizeColumn, x = e.onRequestToggleAllRows, k = e.onScroll, E = e.outerStyle, j = e.primaryColumnIndex, D = e.resizableFillLayout, _ = e.rowExpansion, T = e.rowSelection, q = e.stripeRows, P = e.tableStyle, A =
|
|
4376
|
-
var z = (0, n.useState)([]), H =
|
|
4377
|
-
var N = (0, n.useState)(), L =
|
|
4378
|
-
var F = (0, n.useState)(), K =
|
|
4379
|
-
var G = (0, n.useState)(), X =
|
|
4380
|
-
var J = (0, n.useState)(), Z =
|
|
4402
|
+
function Ji(e) {
|
|
4403
|
+
var t = e.actions, o = e.actionsColumnWidth, i = e.children, c = e.dockOffset, s = e.dockScrollBar, f = e.elementRef, p = e.headType, v = e.innerStyle, b = e.onRequestMoveColumn, m = e.onRequestMoveRow, g = e.onRequestResizeColumn, x = e.onRequestToggleAllRows, k = e.onScroll, E = e.outerStyle, j = e.primaryColumnIndex, D = e.resizableFillLayout, _ = e.rowExpansion, T = e.rowSelection, q = e.stripeRows, P = e.tableStyle, A = Wi(e, [ "actions", "actionsColumnWidth", "children", "dockOffset", "dockScrollBar", "elementRef", "headType", "innerStyle", "onRequestMoveColumn", "onRequestMoveRow", "onRequestResizeColumn", "onRequestToggleAllRows", "onScroll", "outerStyle", "primaryColumnIndex", "resizableFillLayout", "rowExpansion", "rowSelection", "stripeRows", "tableStyle" ]);
|
|
4404
|
+
var z = (0, n.useState)([]), H = zi(z, 2), M = H[0], $ = H[1];
|
|
4405
|
+
var N = (0, n.useState)(), L = zi(N, 2), W = L[0], B = L[1];
|
|
4406
|
+
var F = (0, n.useState)(), K = zi(F, 2), V = K[0], U = K[1];
|
|
4407
|
+
var G = (0, n.useState)(), X = zi(G, 2), Y = X[0], Q = X[1];
|
|
4408
|
+
var J = (0, n.useState)(), Z = zi(J, 2), ee = Z[0], te = Z[1];
|
|
4381
4409
|
// states are used with dragging effect
|
|
4382
|
-
var ne = (0, n.useState)(), re =
|
|
4383
|
-
var ae = (0, n.useState)(), le =
|
|
4384
|
-
var ye = (0, n.useState)(), be =
|
|
4385
|
-
var ge = (0, n.useState)(), we =
|
|
4410
|
+
var ne = (0, n.useState)(), re = zi(ne, 2), oe = re[0], ie = re[1];
|
|
4411
|
+
var ae = (0, n.useState)(), le = zi(ae, 2), ce = le[0], ue = le[1];
|
|
4412
|
+
var ye = (0, n.useState)(), be = zi(ye, 2), me = be[0], he = be[1];
|
|
4413
|
+
var ge = (0, n.useState)(), we = zi(ge, 2), xe = we[0], Ce = we[1];
|
|
4386
4414
|
var ke = (0, n.useContext)(R.ScrollContainerContext);
|
|
4387
4415
|
var Se = (0, a.useSensors)((0, a.useSensor)(a.MouseSensor, {}), (0, a.useSensor)(a.TouchSensor, {}), (0,
|
|
4388
4416
|
a.useSensor)(a.KeyboardSensor, {}));
|
|
@@ -4399,7 +4427,7 @@
|
|
|
4399
4427
|
var Ae = [];
|
|
4400
4428
|
var ze = (0, n.useCallback)((function() {
|
|
4401
4429
|
var e = At();
|
|
4402
|
-
if (
|
|
4430
|
+
if (Vi(p)) {
|
|
4403
4431
|
return;
|
|
4404
4432
|
}
|
|
4405
4433
|
var t = Te.current;
|
|
@@ -4410,7 +4438,7 @@
|
|
|
4410
4438
|
}
|
|
4411
4439
|
var o = n.getCellWidths();
|
|
4412
4440
|
var i = n.getClientHeight();
|
|
4413
|
-
var a =
|
|
4441
|
+
var a = Xi(r).top - e.pageYOffset - (i || 0) + r.offsetHeight;
|
|
4414
4442
|
var l = Math.min(a, Number(c));
|
|
4415
4443
|
te(t === null || t === void 0 ? void 0 : t.clientWidth);
|
|
4416
4444
|
U(r === null || r === void 0 ? void 0 : r.clientWidth);
|
|
@@ -4434,7 +4462,7 @@
|
|
|
4434
4462
|
function He(e) {
|
|
4435
4463
|
var t = Te.current;
|
|
4436
4464
|
k === null || k === void 0 ? void 0 : k(e);
|
|
4437
|
-
if ((
|
|
4465
|
+
if ((Gi(p) || Ui(p)) && t) {
|
|
4438
4466
|
B(-t.scrollLeft);
|
|
4439
4467
|
}
|
|
4440
4468
|
if (Oe.current && De.current !== "dockedScrollBar" && t) {
|
|
@@ -4469,15 +4497,15 @@
|
|
|
4469
4497
|
if (t) {
|
|
4470
4498
|
// On mount, focus the applicable docked head cell if a primary head cell was focused.
|
|
4471
4499
|
if (Ee.current) {
|
|
4472
|
-
|
|
4500
|
+
Qi(t.getHead(), Ee.current);
|
|
4473
4501
|
Ee.current = undefined;
|
|
4474
4502
|
}
|
|
4475
4503
|
} else {
|
|
4476
4504
|
var n;
|
|
4477
4505
|
// On unmount, focus the applicable primary head cell if a docked head cell was focused.
|
|
4478
|
-
var r =
|
|
4506
|
+
var r = Yi((n = Ie.current) === null || n === void 0 ? void 0 : n.getHead());
|
|
4479
4507
|
if (r) {
|
|
4480
|
-
|
|
4508
|
+
Qi(Re.current, r);
|
|
4481
4509
|
}
|
|
4482
4510
|
}
|
|
4483
4511
|
Ie.current = t;
|
|
@@ -4656,10 +4684,10 @@
|
|
|
4656
4684
|
var ot = function e() {
|
|
4657
4685
|
var t = Te.current;
|
|
4658
4686
|
var n = At();
|
|
4659
|
-
if (!
|
|
4687
|
+
if (!Ui(p) || !_e.current || !Re.current || !t) {
|
|
4660
4688
|
return false;
|
|
4661
4689
|
}
|
|
4662
|
-
var r =
|
|
4690
|
+
var r = Xi(t).top;
|
|
4663
4691
|
return n.pageYOffset >= r - (c || 0);
|
|
4664
4692
|
};
|
|
4665
4693
|
var it = function e() {
|
|
@@ -4676,7 +4704,7 @@
|
|
|
4676
4704
|
// FIXME: handle inline
|
|
4677
4705
|
// Save the current head focus state so that it can be applied to the docked version
|
|
4678
4706
|
// after the `HeadTable` mounts.
|
|
4679
|
-
Ee.current =
|
|
4707
|
+
Ee.current = Yi(Re.current);
|
|
4680
4708
|
if (M === undefined || V === undefined || Y === undefined || ee === undefined) {
|
|
4681
4709
|
return false;
|
|
4682
4710
|
}
|
|
@@ -4684,7 +4712,7 @@
|
|
|
4684
4712
|
elementRef: null
|
|
4685
4713
|
});
|
|
4686
4714
|
|
|
4687
|
-
return r().createElement(
|
|
4715
|
+
return r().createElement(mi, {
|
|
4688
4716
|
headType: "docked",
|
|
4689
4717
|
tHead: i,
|
|
4690
4718
|
cellWidths: M,
|
|
@@ -4772,7 +4800,7 @@
|
|
|
4772
4800
|
dt = e;
|
|
4773
4801
|
}
|
|
4774
4802
|
}));
|
|
4775
|
-
|
|
4803
|
+
hi(ut, "A Table.Head is required.");
|
|
4776
4804
|
var pt = at(ut, ft);
|
|
4777
4805
|
// When a `headTable` is used, suppress focus interactions in the primary `Head`. Focus
|
|
4778
4806
|
// interactions will be handled by the overlaid `headTable` instead.
|
|
@@ -4785,7 +4813,7 @@
|
|
|
4785
4813
|
}));
|
|
4786
4814
|
ut = (0, n.cloneElement)(ut, {}, vt);
|
|
4787
4815
|
var yt = ke || At();
|
|
4788
|
-
var bt =
|
|
4816
|
+
var bt = Gi(p) ? Te.current : yt;
|
|
4789
4817
|
if (D) {
|
|
4790
4818
|
ft = false;
|
|
4791
4819
|
}
|
|
@@ -4796,12 +4824,12 @@
|
|
|
4796
4824
|
tableContainerWidthWithoutBorders: mt
|
|
4797
4825
|
};
|
|
4798
4826
|
|
|
4799
|
-
return r().createElement(se,
|
|
4827
|
+
return r().createElement(se, _i({
|
|
4800
4828
|
"data-test": "table",
|
|
4801
4829
|
ref: f,
|
|
4802
4830
|
style: E,
|
|
4803
4831
|
"data-test-row-selection": x ? T : undefined
|
|
4804
|
-
}, h()(A, [].concat(
|
|
4832
|
+
}, h()(A, [].concat(Ti(Object.keys(Fi)), [ "style" ]))), r().createElement(S(), {
|
|
4805
4833
|
target: At(),
|
|
4806
4834
|
eventType: "scroll",
|
|
4807
4835
|
listener: $e,
|
|
@@ -4836,41 +4864,41 @@
|
|
|
4836
4864
|
$resizableFillLayout: D
|
|
4837
4865
|
}, dt, ut, st))))), lt()));
|
|
4838
4866
|
}
|
|
4839
|
-
|
|
4840
|
-
var
|
|
4841
|
-
|
|
4842
|
-
var t =
|
|
4867
|
+
Ji.propTypes = Fi;
|
|
4868
|
+
var Zi = function(e) {
|
|
4869
|
+
ki(n, e);
|
|
4870
|
+
var t = Oi(n);
|
|
4843
4871
|
function n() {
|
|
4844
|
-
|
|
4872
|
+
wi(this, n);
|
|
4845
4873
|
return t.apply(this, arguments);
|
|
4846
4874
|
}
|
|
4847
|
-
|
|
4875
|
+
Ci(n, [ {
|
|
4848
4876
|
key: "render",
|
|
4849
4877
|
// @docs-props-type TablePropsBase
|
|
4850
4878
|
value: function e() {
|
|
4851
4879
|
|
|
4852
|
-
return r().createElement(
|
|
4880
|
+
return r().createElement(Ji, this.props);
|
|
4853
4881
|
}
|
|
4854
4882
|
} ]);
|
|
4855
4883
|
return n;
|
|
4856
4884
|
}(n.Component);
|
|
4857
|
-
|
|
4858
|
-
|
|
4859
|
-
|
|
4860
|
-
|
|
4861
|
-
|
|
4862
|
-
|
|
4863
|
-
|
|
4864
|
-
|
|
4865
|
-
|
|
4866
|
-
|
|
4867
|
-
|
|
4868
|
-
|
|
4869
|
-
|
|
4870
|
-
|
|
4871
|
-
|
|
4872
|
-
|
|
4873
|
-
/* harmony default export */ const
|
|
4885
|
+
Di(Zi, "propTypes", Fi);
|
|
4886
|
+
Di(Zi, "defaultProps", Ki);
|
|
4887
|
+
Di(Zi, "Caption", xe);
|
|
4888
|
+
Di(Zi, "Head", bo);
|
|
4889
|
+
Di(Zi, "HeadCell", En);
|
|
4890
|
+
Di(Zi, "HeadDropdownCell", Uo);
|
|
4891
|
+
Di(Zi, "Body", ue);
|
|
4892
|
+
Di(Zi, "Row", Kr);
|
|
4893
|
+
Di(Zi, "Cell", We);
|
|
4894
|
+
Zi.Caption = xe;
|
|
4895
|
+
Zi.Head = bo;
|
|
4896
|
+
Zi.HeadCell = En;
|
|
4897
|
+
Zi.HeadDropdownCell = Uo;
|
|
4898
|
+
Zi.Body = ue;
|
|
4899
|
+
Zi.Row = Kr;
|
|
4900
|
+
Zi.Cell = We;
|
|
4901
|
+
/* harmony default export */ const ea = Zi;
|
|
4874
4902
|
// CONCATENATED MODULE: ./src/Table/index.ts
|
|
4875
4903
|
module.exports = t;
|
|
4876
4904
|
/******/})();
|