@luminati-io/uikit 6.3.7 → 6.3.9
Sign up to get free protection for your applications and to get access to all the features.
@@ -253,36 +253,37 @@ __webpack_require__.r(__webpack_exports__);
|
|
253
253
|
/* harmony import */ var _support_svg__WEBPACK_IMPORTED_MODULE_228__ = __webpack_require__(/*! ./support.svg */ "./assets/icons/support.svg");
|
254
254
|
/* harmony import */ var _switch_svg__WEBPACK_IMPORTED_MODULE_229__ = __webpack_require__(/*! ./switch.svg */ "./assets/icons/switch.svg");
|
255
255
|
/* harmony import */ var _table_svg__WEBPACK_IMPORTED_MODULE_230__ = __webpack_require__(/*! ./table.svg */ "./assets/icons/table.svg");
|
256
|
-
/* harmony import */ var
|
257
|
-
/* harmony import */ var
|
258
|
-
/* harmony import */ var
|
259
|
-
/* harmony import */ var
|
260
|
-
/* harmony import */ var
|
261
|
-
/* harmony import */ var
|
262
|
-
/* harmony import */ var
|
263
|
-
/* harmony import */ var
|
264
|
-
/* harmony import */ var
|
265
|
-
/* harmony import */ var
|
266
|
-
/* harmony import */ var
|
267
|
-
/* harmony import */ var
|
268
|
-
/* harmony import */ var
|
269
|
-
/* harmony import */ var
|
270
|
-
/* harmony import */ var
|
271
|
-
/* harmony import */ var
|
272
|
-
/* harmony import */ var
|
273
|
-
/* harmony import */ var
|
274
|
-
/* harmony import */ var
|
275
|
-
/* harmony import */ var
|
276
|
-
/* harmony import */ var
|
277
|
-
/* harmony import */ var
|
278
|
-
/* harmony import */ var
|
279
|
-
/* harmony import */ var
|
280
|
-
/* harmony import */ var
|
281
|
-
/* harmony import */ var
|
282
|
-
/* harmony import */ var
|
283
|
-
/* harmony import */ var
|
284
|
-
/* harmony import */ var
|
285
|
-
/* harmony import */ var
|
256
|
+
/* harmony import */ var _tag_svg__WEBPACK_IMPORTED_MODULE_231__ = __webpack_require__(/*! ./tag.svg */ "./assets/icons/tag.svg");
|
257
|
+
/* harmony import */ var _tasks_svg__WEBPACK_IMPORTED_MODULE_232__ = __webpack_require__(/*! ./tasks.svg */ "./assets/icons/tasks.svg");
|
258
|
+
/* harmony import */ var _target_svg__WEBPACK_IMPORTED_MODULE_233__ = __webpack_require__(/*! ./target.svg */ "./assets/icons/target.svg");
|
259
|
+
/* harmony import */ var _terminal_window_svg__WEBPACK_IMPORTED_MODULE_234__ = __webpack_require__(/*! ./terminal_window.svg */ "./assets/icons/terminal_window.svg");
|
260
|
+
/* harmony import */ var _testing_svg__WEBPACK_IMPORTED_MODULE_235__ = __webpack_require__(/*! ./testing.svg */ "./assets/icons/testing.svg");
|
261
|
+
/* harmony import */ var _text_svg__WEBPACK_IMPORTED_MODULE_236__ = __webpack_require__(/*! ./text.svg */ "./assets/icons/text.svg");
|
262
|
+
/* harmony import */ var _thumb_up_svg__WEBPACK_IMPORTED_MODULE_237__ = __webpack_require__(/*! ./thumb_up.svg */ "./assets/icons/thumb_up.svg");
|
263
|
+
/* harmony import */ var _ticket_svg__WEBPACK_IMPORTED_MODULE_238__ = __webpack_require__(/*! ./ticket.svg */ "./assets/icons/ticket.svg");
|
264
|
+
/* harmony import */ var _tool_svg__WEBPACK_IMPORTED_MODULE_239__ = __webpack_require__(/*! ./tool.svg */ "./assets/icons/tool.svg");
|
265
|
+
/* harmony import */ var _top1_svg__WEBPACK_IMPORTED_MODULE_240__ = __webpack_require__(/*! ./top1.svg */ "./assets/icons/top1.svg");
|
266
|
+
/* harmony import */ var _transparency_svg__WEBPACK_IMPORTED_MODULE_241__ = __webpack_require__(/*! ./transparency.svg */ "./assets/icons/transparency.svg");
|
267
|
+
/* harmony import */ var _trash_svg__WEBPACK_IMPORTED_MODULE_242__ = __webpack_require__(/*! ./trash.svg */ "./assets/icons/trash.svg");
|
268
|
+
/* harmony import */ var _unblock_svg__WEBPACK_IMPORTED_MODULE_243__ = __webpack_require__(/*! ./unblock.svg */ "./assets/icons/unblock.svg");
|
269
|
+
/* harmony import */ var _unblocking_infrastructure_svg__WEBPACK_IMPORTED_MODULE_244__ = __webpack_require__(/*! ./unblocking_infrastructure.svg */ "./assets/icons/unblocking_infrastructure.svg");
|
270
|
+
/* harmony import */ var _unique_svg__WEBPACK_IMPORTED_MODULE_245__ = __webpack_require__(/*! ./unique.svg */ "./assets/icons/unique.svg");
|
271
|
+
/* harmony import */ var _unpin_svg__WEBPACK_IMPORTED_MODULE_246__ = __webpack_require__(/*! ./unpin.svg */ "./assets/icons/unpin.svg");
|
272
|
+
/* harmony import */ var _upgrade_svg__WEBPACK_IMPORTED_MODULE_247__ = __webpack_require__(/*! ./upgrade.svg */ "./assets/icons/upgrade.svg");
|
273
|
+
/* harmony import */ var _upload_cloud_svg__WEBPACK_IMPORTED_MODULE_248__ = __webpack_require__(/*! ./upload_cloud.svg */ "./assets/icons/upload_cloud.svg");
|
274
|
+
/* harmony import */ var _upload_svg__WEBPACK_IMPORTED_MODULE_249__ = __webpack_require__(/*! ./upload.svg */ "./assets/icons/upload.svg");
|
275
|
+
/* harmony import */ var _url_svg__WEBPACK_IMPORTED_MODULE_250__ = __webpack_require__(/*! ./url.svg */ "./assets/icons/url.svg");
|
276
|
+
/* harmony import */ var _verify_svg__WEBPACK_IMPORTED_MODULE_251__ = __webpack_require__(/*! ./verify.svg */ "./assets/icons/verify.svg");
|
277
|
+
/* harmony import */ var _verify_solid_svg__WEBPACK_IMPORTED_MODULE_252__ = __webpack_require__(/*! ./verify_solid.svg */ "./assets/icons/verify_solid.svg");
|
278
|
+
/* harmony import */ var _verify_warning_svg__WEBPACK_IMPORTED_MODULE_253__ = __webpack_require__(/*! ./verify_warning.svg */ "./assets/icons/verify_warning.svg");
|
279
|
+
/* harmony import */ var _video_svg__WEBPACK_IMPORTED_MODULE_254__ = __webpack_require__(/*! ./video.svg */ "./assets/icons/video.svg");
|
280
|
+
/* harmony import */ var _visa_svg__WEBPACK_IMPORTED_MODULE_255__ = __webpack_require__(/*! ./visa.svg */ "./assets/icons/visa.svg");
|
281
|
+
/* harmony import */ var _warning_svg__WEBPACK_IMPORTED_MODULE_256__ = __webpack_require__(/*! ./warning.svg */ "./assets/icons/warning.svg");
|
282
|
+
/* harmony import */ var _warning_solid_svg__WEBPACK_IMPORTED_MODULE_257__ = __webpack_require__(/*! ./warning_solid.svg */ "./assets/icons/warning_solid.svg");
|
283
|
+
/* harmony import */ var _web_scrapper_svg__WEBPACK_IMPORTED_MODULE_258__ = __webpack_require__(/*! ./web_scrapper.svg */ "./assets/icons/web_scrapper.svg");
|
284
|
+
/* harmony import */ var _web_scrapper_small_svg__WEBPACK_IMPORTED_MODULE_259__ = __webpack_require__(/*! ./web_scrapper_small.svg */ "./assets/icons/web_scrapper_small.svg");
|
285
|
+
/* harmony import */ var _web_unlock_svg__WEBPACK_IMPORTED_MODULE_260__ = __webpack_require__(/*! ./web_unlock.svg */ "./assets/icons/web_unlock.svg");
|
286
|
+
/* harmony import */ var _web_unlock_small_svg__WEBPACK_IMPORTED_MODULE_261__ = __webpack_require__(/*! ./web_unlock_small.svg */ "./assets/icons/web_unlock_small.svg");
|
286
287
|
// LICENSE_CODE ZON
|
287
288
|
/*jslint react:true*/
|
288
289
|
|
@@ -546,6 +547,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
546
547
|
|
547
548
|
|
548
549
|
|
550
|
+
|
549
551
|
|
550
552
|
|
551
553
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({
|
@@ -780,36 +782,37 @@ __webpack_require__.r(__webpack_exports__);
|
|
780
782
|
Support: _support_svg__WEBPACK_IMPORTED_MODULE_228__["default"],
|
781
783
|
Switch: _switch_svg__WEBPACK_IMPORTED_MODULE_229__["default"],
|
782
784
|
Table: _table_svg__WEBPACK_IMPORTED_MODULE_230__["default"],
|
783
|
-
|
784
|
-
|
785
|
-
|
786
|
-
|
787
|
-
|
788
|
-
|
789
|
-
|
790
|
-
|
791
|
-
|
792
|
-
|
793
|
-
|
794
|
-
|
795
|
-
|
796
|
-
|
797
|
-
|
798
|
-
|
799
|
-
|
800
|
-
|
801
|
-
|
802
|
-
|
803
|
-
|
804
|
-
|
805
|
-
|
806
|
-
|
807
|
-
|
808
|
-
|
809
|
-
|
810
|
-
|
811
|
-
|
812
|
-
|
785
|
+
Tag: _tag_svg__WEBPACK_IMPORTED_MODULE_231__["default"],
|
786
|
+
Tasks: _tasks_svg__WEBPACK_IMPORTED_MODULE_232__["default"],
|
787
|
+
Target: _target_svg__WEBPACK_IMPORTED_MODULE_233__["default"],
|
788
|
+
TerminalWindow: _terminal_window_svg__WEBPACK_IMPORTED_MODULE_234__["default"],
|
789
|
+
Testing: _testing_svg__WEBPACK_IMPORTED_MODULE_235__["default"],
|
790
|
+
Text: _text_svg__WEBPACK_IMPORTED_MODULE_236__["default"],
|
791
|
+
ThumbUp: _thumb_up_svg__WEBPACK_IMPORTED_MODULE_237__["default"],
|
792
|
+
Ticket: _ticket_svg__WEBPACK_IMPORTED_MODULE_238__["default"],
|
793
|
+
Tool: _tool_svg__WEBPACK_IMPORTED_MODULE_239__["default"],
|
794
|
+
Top1: _top1_svg__WEBPACK_IMPORTED_MODULE_240__["default"],
|
795
|
+
Transparency: _transparency_svg__WEBPACK_IMPORTED_MODULE_241__["default"],
|
796
|
+
Trash: _trash_svg__WEBPACK_IMPORTED_MODULE_242__["default"],
|
797
|
+
Unblock: _unblock_svg__WEBPACK_IMPORTED_MODULE_243__["default"],
|
798
|
+
UnblockingInfrastructure: _unblocking_infrastructure_svg__WEBPACK_IMPORTED_MODULE_244__["default"],
|
799
|
+
Unique: _unique_svg__WEBPACK_IMPORTED_MODULE_245__["default"],
|
800
|
+
Unpin: _unpin_svg__WEBPACK_IMPORTED_MODULE_246__["default"],
|
801
|
+
Upgrade: _upgrade_svg__WEBPACK_IMPORTED_MODULE_247__["default"],
|
802
|
+
UploadCloud: _upload_cloud_svg__WEBPACK_IMPORTED_MODULE_248__["default"],
|
803
|
+
Upload: _upload_svg__WEBPACK_IMPORTED_MODULE_249__["default"],
|
804
|
+
Url: _url_svg__WEBPACK_IMPORTED_MODULE_250__["default"],
|
805
|
+
Verify: _verify_svg__WEBPACK_IMPORTED_MODULE_251__["default"],
|
806
|
+
VerifySolid: _verify_solid_svg__WEBPACK_IMPORTED_MODULE_252__["default"],
|
807
|
+
VerifyWarning: _verify_warning_svg__WEBPACK_IMPORTED_MODULE_253__["default"],
|
808
|
+
Video: _video_svg__WEBPACK_IMPORTED_MODULE_254__["default"],
|
809
|
+
Visa: _visa_svg__WEBPACK_IMPORTED_MODULE_255__["default"],
|
810
|
+
Warning: _warning_svg__WEBPACK_IMPORTED_MODULE_256__["default"],
|
811
|
+
WarningSolid: _warning_solid_svg__WEBPACK_IMPORTED_MODULE_257__["default"],
|
812
|
+
WebScrapper: _web_scrapper_svg__WEBPACK_IMPORTED_MODULE_258__["default"],
|
813
|
+
WebScrapperSmall: _web_scrapper_small_svg__WEBPACK_IMPORTED_MODULE_259__["default"],
|
814
|
+
WebUnlock: _web_unlock_svg__WEBPACK_IMPORTED_MODULE_260__["default"],
|
815
|
+
WebUnlockSmall: _web_unlock_small_svg__WEBPACK_IMPORTED_MODULE_261__["default"],
|
813
816
|
});
|
814
817
|
|
815
818
|
|
@@ -36692,10 +36695,10 @@ __webpack_require__.r(__webpack_exports__);
|
|
36692
36695
|
/* harmony export */ });
|
36693
36696
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
|
36694
36697
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
36695
|
-
/* harmony import */ var
|
36696
|
-
/* harmony import */ var
|
36697
|
-
/* harmony import */ var
|
36698
|
-
/* harmony import */ var
|
36698
|
+
/* harmony import */ var _icon_button__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../icon_button */ "./src/icon_button.js");
|
36699
|
+
/* harmony import */ var _layout__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../layout */ "./src/layout/index.js");
|
36700
|
+
/* harmony import */ var _menu__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../menu */ "./src/menu/index.js");
|
36701
|
+
/* harmony import */ var _popover__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../popover */ "./src/popover/index.js");
|
36699
36702
|
/* harmony import */ var _divider__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./divider */ "./src/breadcrumbs/divider.js");
|
36700
36703
|
// LICENSE_CODE ZON
|
36701
36704
|
|
@@ -36707,6 +36710,12 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
36707
36710
|
function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
36708
36711
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
36709
36712
|
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
36713
|
+
function _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }
|
36714
|
+
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
36715
|
+
function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
|
36716
|
+
function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
36717
|
+
function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
|
36718
|
+
function _arrayWithHoles(r) { if (Array.isArray(r)) return r; }
|
36710
36719
|
|
36711
36720
|
|
36712
36721
|
|
@@ -36715,42 +36724,45 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
36715
36724
|
|
36716
36725
|
var CollapsedItems = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().forwardRef(function (_ref, ref) {
|
36717
36726
|
var items = _ref.items;
|
36718
|
-
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(
|
36727
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_layout__WEBPACK_IMPORTED_MODULE_2__.Flex, {
|
36719
36728
|
ref: ref,
|
36720
36729
|
"data-testid": "button-more",
|
36721
36730
|
align_items: "center"
|
36722
36731
|
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(MenuButton, {
|
36723
|
-
|
36724
|
-
items: items
|
36725
|
-
}
|
36732
|
+
items: items
|
36726
36733
|
}), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_divider__WEBPACK_IMPORTED_MODULE_5__.Divider, null));
|
36727
36734
|
});
|
36728
36735
|
CollapsedItems.displayName = 'CollapsedItems';
|
36729
|
-
var MenuButton =
|
36730
|
-
var
|
36731
|
-
|
36732
|
-
|
36733
|
-
|
36734
|
-
|
36735
|
-
});
|
36736
|
-
}, function (_ref3) {
|
36737
|
-
var items = _ref3.items,
|
36738
|
-
popover = _ref3.popover;
|
36736
|
+
var MenuButton = function MenuButton(_ref2) {
|
36737
|
+
var items = _ref2.items;
|
36738
|
+
var _useState = (0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(false),
|
36739
|
+
_useState2 = _slicedToArray(_useState, 2),
|
36740
|
+
visible = _useState2[0],
|
36741
|
+
setVisible = _useState2[1];
|
36739
36742
|
var menuItems = items.map(function (i) {
|
36740
36743
|
return _objectSpread(_objectSpread({
|
36741
36744
|
key: i.text
|
36742
36745
|
}, i), {}, {
|
36743
36746
|
onClick: function onClick(e) {
|
36744
|
-
|
36747
|
+
setVisible(false);
|
36745
36748
|
i === null || i === void 0 || i.onClick(e);
|
36746
36749
|
}
|
36747
36750
|
});
|
36748
36751
|
});
|
36749
|
-
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(
|
36750
|
-
|
36751
|
-
|
36752
|
-
|
36753
|
-
|
36752
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_popover__WEBPACK_IMPORTED_MODULE_4__.Popover, {
|
36753
|
+
trigger: "click",
|
36754
|
+
visible: visible,
|
36755
|
+
onVisibleChange: setVisible,
|
36756
|
+
popover: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_menu__WEBPACK_IMPORTED_MODULE_3__.Menu, {
|
36757
|
+
size: "sm",
|
36758
|
+
items: menuItems,
|
36759
|
+
noBorder: true
|
36760
|
+
})
|
36761
|
+
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_icon_button__WEBPACK_IMPORTED_MODULE_1__.IconButton, {
|
36762
|
+
size: "xs",
|
36763
|
+
icon: "DotsHorizontal"
|
36764
|
+
}));
|
36765
|
+
};
|
36754
36766
|
|
36755
36767
|
/***/ }),
|
36756
36768
|
|
@@ -39233,8 +39245,9 @@ __webpack_require__.r(__webpack_exports__);
|
|
39233
39245
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
|
39234
39246
|
/* harmony import */ var styled_components__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! styled-components */ "styled-components");
|
39235
39247
|
/* harmony import */ var styled_components__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(styled_components__WEBPACK_IMPORTED_MODULE_2__);
|
39236
|
-
/* harmony import */ var
|
39237
|
-
/* harmony import */ var
|
39248
|
+
/* harmony import */ var rc_util_lib_pickAttrs__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! rc-util/lib/pickAttrs */ "./node_modules/rc-util/lib/pickAttrs.js");
|
39249
|
+
/* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../util */ "./src/util/index.js");
|
39250
|
+
/* harmony import */ var _code_snippet__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./code_snippet */ "./src/code/code_snippet.js");
|
39238
39251
|
// LICENSE_CODE ZON
|
39239
39252
|
|
39240
39253
|
|
@@ -39245,6 +39258,7 @@ function _extends() { return _extends = Object.assign ? Object.assign.bind() : f
|
|
39245
39258
|
|
39246
39259
|
|
39247
39260
|
|
39261
|
+
|
39248
39262
|
var CodeBlock = /*#__PURE__*/(0,react__WEBPACK_IMPORTED_MODULE_1__.forwardRef)(function (props, ref) {
|
39249
39263
|
var className = props.className,
|
39250
39264
|
classNamePrefix = props.classNamePrefix,
|
@@ -39266,16 +39280,16 @@ var CodeBlock = /*#__PURE__*/(0,react__WEBPACK_IMPORTED_MODULE_1__.forwardRef)(f
|
|
39266
39280
|
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(CodeBlockWrapper, _extends({
|
39267
39281
|
ref: ref,
|
39268
39282
|
"data-testid": "code_block"
|
39269
|
-
}, (0,
|
39270
|
-
className: (0,
|
39283
|
+
}, (0,rc_util_lib_pickAttrs__WEBPACK_IMPORTED_MODULE_3__["default"])(props), {
|
39284
|
+
className: (0,_util__WEBPACK_IMPORTED_MODULE_4__.classNames)(classNamePrefix, {
|
39271
39285
|
wrapper: true
|
39272
39286
|
}, className)
|
39273
39287
|
}), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(CodeBlockHeader, {
|
39274
|
-
className: (0,
|
39288
|
+
className: (0,_util__WEBPACK_IMPORTED_MODULE_4__.classNames)(classNamePrefix, {
|
39275
39289
|
header: true
|
39276
39290
|
}, variant)
|
39277
|
-
}, header), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(
|
39278
|
-
className: (0,
|
39291
|
+
}, header), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_code_snippet__WEBPACK_IMPORTED_MODULE_5__.CodeSnippet, {
|
39292
|
+
className: (0,_util__WEBPACK_IMPORTED_MODULE_4__.classNames)(classNamePrefix, {
|
39279
39293
|
snippet: true
|
39280
39294
|
}),
|
39281
39295
|
maxHeight: maxHeight || max_height,
|
@@ -39284,7 +39298,7 @@ var CodeBlock = /*#__PURE__*/(0,react__WEBPACK_IMPORTED_MODULE_1__.forwardRef)(f
|
|
39284
39298
|
variant: variant,
|
39285
39299
|
lineNumbers: lineNumbers,
|
39286
39300
|
copyButton: copyButton,
|
39287
|
-
copyButtonClassName: (0,
|
39301
|
+
copyButtonClassName: (0,_util__WEBPACK_IMPORTED_MODULE_4__.classNames)(classNamePrefix, {
|
39288
39302
|
copyButton: true
|
39289
39303
|
}),
|
39290
39304
|
copyButtonPlacement: copyButtonPlacement,
|
@@ -39312,7 +39326,7 @@ CodeBlock.propTypes = {
|
|
39312
39326
|
var CodeBlockWrapper = styled_components__WEBPACK_IMPORTED_MODULE_2___default().div.withConfig({
|
39313
39327
|
displayName: "CodeBlockWrapper",
|
39314
39328
|
componentId: "sc-dgi5hi-0"
|
39315
|
-
})(["", "{border-top-left-radius:0;border-top-right-radius:0;}"],
|
39329
|
+
})(["", "{border-top-left-radius:0;border-top-right-radius:0;}"], _code_snippet__WEBPACK_IMPORTED_MODULE_5__.CodeSnippetWrapper);
|
39316
39330
|
var CodeBlockHeader = styled_components__WEBPACK_IMPORTED_MODULE_2___default().div.withConfig({
|
39317
39331
|
displayName: "CodeBlockHeader",
|
39318
39332
|
componentId: "sc-dgi5hi-1"
|
@@ -41140,7 +41154,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
41140
41154
|
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! prop-types */ "prop-types");
|
41141
41155
|
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_2__);
|
41142
41156
|
/* harmony import */ var _icons__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @icons */ "./assets/icons/index.js");
|
41143
|
-
/* harmony import */ var
|
41157
|
+
/* harmony import */ var rc_util_lib_pickAttrs__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! rc-util/lib/pickAttrs */ "./node_modules/rc-util/lib/pickAttrs.js");
|
41144
41158
|
/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./utils */ "./src/utils.js");
|
41145
41159
|
// LICENSE_CODE ZON
|
41146
41160
|
|
@@ -41156,19 +41170,19 @@ function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t =
|
|
41156
41170
|
|
41157
41171
|
|
41158
41172
|
|
41159
|
-
var Icon = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().forwardRef(function (
|
41160
|
-
var name =
|
41161
|
-
|
41162
|
-
size =
|
41163
|
-
color =
|
41164
|
-
verticalAlign =
|
41165
|
-
rest = _objectWithoutProperties(
|
41173
|
+
var Icon = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().forwardRef(function (props, ref) {
|
41174
|
+
var name = props.name,
|
41175
|
+
_props$size = props.size,
|
41176
|
+
size = _props$size === void 0 ? 'md' : _props$size,
|
41177
|
+
color = props.color,
|
41178
|
+
verticalAlign = props.verticalAlign,
|
41179
|
+
rest = _objectWithoutProperties(props, _excluded);
|
41166
41180
|
var theme = (0,styled_components__WEBPACK_IMPORTED_MODULE_1__.useTheme)();
|
41167
41181
|
var ic = _icons__WEBPACK_IMPORTED_MODULE_3__["default"][name];
|
41168
41182
|
if (!ic) return null;
|
41169
41183
|
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(StyledSvg, _extends({
|
41170
41184
|
ref: ref
|
41171
|
-
}, (0,
|
41185
|
+
}, (0,rc_util_lib_pickAttrs__WEBPACK_IMPORTED_MODULE_4__["default"])(rest), {
|
41172
41186
|
$size: size,
|
41173
41187
|
viewBox: ic.viewBox,
|
41174
41188
|
$color: theme.color[color],
|
@@ -41346,10 +41360,10 @@ __webpack_require__.r(__webpack_exports__);
|
|
41346
41360
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
|
41347
41361
|
/* harmony import */ var styled_components__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! styled-components */ "styled-components");
|
41348
41362
|
/* harmony import */ var styled_components__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(styled_components__WEBPACK_IMPORTED_MODULE_2__);
|
41349
|
-
/* harmony import */ var
|
41350
|
-
/* harmony import */ var
|
41351
|
-
/* harmony import */ var
|
41352
|
-
/* harmony import */ var
|
41363
|
+
/* harmony import */ var rc_util_lib_pickAttrs__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! rc-util/lib/pickAttrs */ "./node_modules/rc-util/lib/pickAttrs.js");
|
41364
|
+
/* harmony import */ var _icon__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./icon */ "./src/icon.js");
|
41365
|
+
/* harmony import */ var _layout__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./layout */ "./src/layout/index.js");
|
41366
|
+
/* harmony import */ var _typography__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./typography */ "./src/typography/index.js");
|
41353
41367
|
/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./utils */ "./src/utils.js");
|
41354
41368
|
// LICENSE_CODE ZON
|
41355
41369
|
|
@@ -41385,15 +41399,14 @@ var InfoChip = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().forward
|
|
41385
41399
|
warning: 'icon_warning',
|
41386
41400
|
info: 'icon_primary'
|
41387
41401
|
}[variant] || 'icon_accent';
|
41388
|
-
var commonProps = (0,_util__WEBPACK_IMPORTED_MODULE_6__.getCommonProps)(rest);
|
41389
41402
|
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(InfoChipWrapper, _extends({
|
41390
41403
|
ref: ref,
|
41391
41404
|
$variant: variant
|
41392
|
-
},
|
41405
|
+
}, (0,rc_util_lib_pickAttrs__WEBPACK_IMPORTED_MODULE_3__["default"])(rest)), icon && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_icon__WEBPACK_IMPORTED_MODULE_4__.Icon, {
|
41393
41406
|
size: "xxs",
|
41394
41407
|
color: iconColor,
|
41395
41408
|
name: icon
|
41396
|
-
}), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(
|
41409
|
+
}), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_typography__WEBPACK_IMPORTED_MODULE_6__.Label, {
|
41397
41410
|
variant: "xs",
|
41398
41411
|
color: textColor
|
41399
41412
|
}, text));
|
@@ -41404,7 +41417,7 @@ InfoChip.propTypes = {
|
|
41404
41417
|
text: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().node),
|
41405
41418
|
icon: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOf(_utils__WEBPACK_IMPORTED_MODULE_7__.iconNames)
|
41406
41419
|
};
|
41407
|
-
var InfoChipWrapper = styled_components__WEBPACK_IMPORTED_MODULE_2___default()(
|
41420
|
+
var InfoChipWrapper = styled_components__WEBPACK_IMPORTED_MODULE_2___default()(_layout__WEBPACK_IMPORTED_MODULE_5__.Flex).attrs({
|
41408
41421
|
align_items: 'center',
|
41409
41422
|
gap: '02',
|
41410
41423
|
padding_top: '0',
|
@@ -46270,7 +46283,7 @@ var InputContentWrapper = styled_components__WEBPACK_IMPORTED_MODULE_2___default
|
|
46270
46283
|
var InputWrapper = styled_components__WEBPACK_IMPORTED_MODULE_2___default().div.withConfig({
|
46271
46284
|
displayName: "InputWrapper",
|
46272
46285
|
componentId: "sc-r60v1b-7"
|
46273
|
-
})(["position:relative;width:100%;border:1px solid;border-radius:4px;box-sizing:border-box;font-family:", ";padding:", "px ", "px;overflow:auto;display:flex;gap:8px;align-items:", ";border-left-width:1px;border-right-width:1px;border-top-left-radius:", ";border-bottom-left-radius:", ";border-top-right-radius:", ";border-bottom-right-radius:", ";", " ", " box-shadow:", ";"], function (_ref32) {
|
46286
|
+
})(["position:relative;width:100%;border:1px solid;border-radius:4px;box-sizing:border-box;font-family:", ";padding:", "px ", "px;overflow:auto;display:flex;gap:8px;align-items:", ";border-left-width:1px;border-right-width:1px;border-top-left-radius:", ";border-bottom-left-radius:", ";border-top-right-radius:", ";border-bottom-right-radius:", ";", " cursor:", ";background-color:", ";color:", ";border-color:", ";&:hover{border-color:", ";}box-shadow:", ";"], function (_ref32) {
|
46274
46287
|
var font_family = _ref32.theme.font_family;
|
46275
46288
|
return font_family.sans;
|
46276
46289
|
}, _constants__WEBPACK_IMPORTED_MODULE_12__.INPUT_VERTICAL_PADDING, _constants__WEBPACK_IMPORTED_MODULE_12__.INPUT_HORIZONTAL_PADDING, function (_ref33) {
|
@@ -46288,23 +46301,36 @@ var InputWrapper = styled_components__WEBPACK_IMPORTED_MODULE_2___default().div.
|
|
46288
46301
|
var _props$$heightCalcula;
|
46289
46302
|
return (_props$$heightCalcula = props.$heightCalculationCallback) === null || _props$$heightCalcula === void 0 ? void 0 : _props$$heightCalcula.call(props);
|
46290
46303
|
}, function (_ref34) {
|
46291
|
-
var $disabled = _ref34.$disabled
|
46292
|
-
|
46293
|
-
$active = _ref34.$active,
|
46294
|
-
color = _ref34.theme.color;
|
46295
|
-
if ($disabled) {
|
46296
|
-
return (0,styled_components__WEBPACK_IMPORTED_MODULE_2__.css)(["cursor:default;background-color:", ";border-color:", ";color:", ";"], color.bg_fill_teritary, color.border_disabled, color.text_disabled);
|
46297
|
-
}
|
46298
|
-
return (0,styled_components__WEBPACK_IMPORTED_MODULE_2__.css)(["cursor:text;background-color:", ";color:", ";border-color:", ";&:hover{border-color:", ";}"], color.bg, color.text_tertiary, $invalid ? color.border_error : $active ? color.border_primary : color.border, color.border_accent);
|
46304
|
+
var $disabled = _ref34.$disabled;
|
46305
|
+
return $disabled ? 'default' : 'text';
|
46299
46306
|
}, function (_ref35) {
|
46300
|
-
var $
|
46301
|
-
|
46307
|
+
var $disabled = _ref35.$disabled,
|
46308
|
+
color = _ref35.theme.color;
|
46309
|
+
return $disabled ? color.bg_fill_teritary : color.bg;
|
46310
|
+
}, function (_ref36) {
|
46311
|
+
var $disabled = _ref36.$disabled,
|
46312
|
+
color = _ref36.theme.color;
|
46313
|
+
return $disabled ? color.text_disabled : color.text_tertiary;
|
46314
|
+
}, function (_ref37) {
|
46315
|
+
var $disabled = _ref37.$disabled,
|
46316
|
+
$invalid = _ref37.$invalid,
|
46317
|
+
$active = _ref37.$active,
|
46318
|
+
color = _ref37.theme.color;
|
46319
|
+
return $disabled ? color.border_disabled : $invalid ? color.border_error : $active ? color.border_primary : color.border;
|
46320
|
+
}, function (_ref38) {
|
46321
|
+
var $disabled = _ref38.$disabled,
|
46322
|
+
$active = _ref38.$active,
|
46323
|
+
color = _ref38.theme.color;
|
46324
|
+
return $disabled ? color.border_disabled : $active ? color.border_primary : color.border_accent;
|
46325
|
+
}, function (_ref39) {
|
46326
|
+
var $active = _ref39.$active,
|
46327
|
+
shadow = _ref39.theme.shadow;
|
46302
46328
|
return $active ? shadow.primary : null;
|
46303
46329
|
});
|
46304
|
-
var HelperText = function HelperText(
|
46305
|
-
var classNamePrefix =
|
46306
|
-
children =
|
46307
|
-
invalid =
|
46330
|
+
var HelperText = function HelperText(_ref40) {
|
46331
|
+
var classNamePrefix = _ref40.classNamePrefix,
|
46332
|
+
children = _ref40.children,
|
46333
|
+
invalid = _ref40.invalid;
|
46308
46334
|
if (!children) return null;
|
46309
46335
|
var color = invalid ? 'text_error' : 'text_quaternary';
|
46310
46336
|
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_typography__WEBPACK_IMPORTED_MODULE_9__.Label, {
|
@@ -50980,14 +51006,15 @@ __webpack_require__.r(__webpack_exports__);
|
|
50980
51006
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
|
50981
51007
|
/* harmony import */ var styled_components__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! styled-components */ "styled-components");
|
50982
51008
|
/* harmony import */ var styled_components__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(styled_components__WEBPACK_IMPORTED_MODULE_2__);
|
50983
|
-
/* harmony import */ var
|
50984
|
-
/* harmony import */ var
|
50985
|
-
/* harmony import */ var
|
50986
|
-
/* harmony import */ var
|
50987
|
-
/* harmony import */ var
|
50988
|
-
/* harmony import */ var
|
51009
|
+
/* harmony import */ var _icon__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../icon */ "./src/icon.js");
|
51010
|
+
/* harmony import */ var _icon_button__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../icon_button */ "./src/icon_button.js");
|
51011
|
+
/* harmony import */ var _input__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../input */ "./src/input/index.js");
|
51012
|
+
/* harmony import */ var _tooltip__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../tooltip */ "./src/tooltip/index.js");
|
51013
|
+
/* harmony import */ var _typography__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../typography */ "./src/typography/index.js");
|
51014
|
+
/* harmony import */ var _popover__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../popover */ "./src/popover/index.js");
|
50989
51015
|
/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../utils */ "./src/utils.js");
|
50990
|
-
/* harmony import */ var
|
51016
|
+
/* harmony import */ var _constants__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../constants */ "./src/constants.js");
|
51017
|
+
/* harmony import */ var _context__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./context */ "./src/table/context.js");
|
50991
51018
|
// LICENSE_CODE ZON
|
50992
51019
|
|
50993
51020
|
|
@@ -50996,12 +51023,12 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
|
|
50996
51023
|
var _excluded = ["Dragger", "isDragging"];
|
50997
51024
|
function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var s = Object.getOwnPropertySymbols(e); for (r = 0; r < s.length; r++) o = s[r], t.includes(o) || {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
|
50998
51025
|
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (e.includes(n)) continue; t[n] = r[n]; } return t; }
|
50999
|
-
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
51000
51026
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
51001
51027
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
51002
51028
|
function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
51003
51029
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
51004
51030
|
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
51031
|
+
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
51005
51032
|
function _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }
|
51006
51033
|
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
51007
51034
|
function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
|
@@ -51019,8 +51046,14 @@ function _arrayWithHoles(r) { if (Array.isArray(r)) return r; }
|
|
51019
51046
|
|
51020
51047
|
|
51021
51048
|
|
51022
|
-
|
51023
|
-
|
51049
|
+
|
51050
|
+
var CustomizeButton = function CustomizeButton(_ref) {
|
51051
|
+
var searchable = _ref.searchable,
|
51052
|
+
_ref$popoverPlacement = _ref.popoverPlacement,
|
51053
|
+
popoverPlacement = _ref$popoverPlacement === void 0 ? 'bottom' : _ref$popoverPlacement,
|
51054
|
+
_ref$maxMenuHeight = _ref.maxMenuHeight,
|
51055
|
+
maxMenuHeight = _ref$maxMenuHeight === void 0 ? 300 : _ref$maxMenuHeight;
|
51056
|
+
var _useTableContext = (0,_context__WEBPACK_IMPORTED_MODULE_11__.useTableContext)(),
|
51024
51057
|
allColumns = _useTableContext.allColumns,
|
51025
51058
|
canOrderColumns = _useTableContext.canOrderColumns,
|
51026
51059
|
orderLogic = _useTableContext.orderLogic;
|
@@ -51030,43 +51063,46 @@ var CustomizeButton = function CustomizeButton(props) {
|
|
51030
51063
|
setSearch = _useState2[1];
|
51031
51064
|
(0,react__WEBPACK_IMPORTED_MODULE_1__.useEffect)(function () {
|
51032
51065
|
return setSearch('');
|
51033
|
-
}, [
|
51066
|
+
}, [searchable]);
|
51034
51067
|
var columns = allColumns.filter(function (col) {
|
51035
51068
|
return col.canHide || col.canPin;
|
51036
51069
|
});
|
51037
51070
|
if (!columns.length) return null;
|
51038
51071
|
var filtered = columns.filter(searchColumn(search));
|
51039
51072
|
var orderProps = canOrderColumns && orderLogic;
|
51040
|
-
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(
|
51041
|
-
|
51042
|
-
|
51073
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_popover__WEBPACK_IMPORTED_MODULE_8__.Popover, {
|
51074
|
+
trigger: "click",
|
51075
|
+
popover: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(CustomizeButtonPopover, {
|
51076
|
+
searchable: searchable,
|
51043
51077
|
search: search,
|
51044
51078
|
setSearch: setSearch,
|
51079
|
+
maxMenuHeight: maxMenuHeight,
|
51080
|
+
items: filtered,
|
51045
51081
|
orderProps: orderProps
|
51046
|
-
})
|
51047
|
-
|
51082
|
+
}),
|
51083
|
+
placement: popoverPlacement,
|
51084
|
+
style: {
|
51085
|
+
padding: '4px 0',
|
51086
|
+
minWidth: 168,
|
51087
|
+
maxWidth: 540
|
51088
|
+
}
|
51089
|
+
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_icon_button__WEBPACK_IMPORTED_MODULE_4__.IconButton, {
|
51090
|
+
tooltip: "Customize columns",
|
51091
|
+
icon: "Customize"
|
51092
|
+
}));
|
51048
51093
|
};
|
51049
51094
|
CustomizeButton.displayName = 'Table.CustomizeButton';
|
51050
51095
|
CustomizeButton.propTypes = {
|
51051
51096
|
searchable: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool),
|
51052
|
-
maxMenuHeight: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().number)
|
51097
|
+
maxMenuHeight: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().number),
|
51098
|
+
popoverPlacement: _constants__WEBPACK_IMPORTED_MODULE_10__.PT_TOOLTIP_PLACEMENT
|
51053
51099
|
};
|
51054
|
-
var
|
51055
|
-
|
51056
|
-
|
51057
|
-
})(["box-shadow:", ";background:", ";border-radius:4px;padding:4px 0;min-width:168px;max-width:540px;"], function (_ref) {
|
51058
|
-
var shadow = _ref.theme.shadow;
|
51059
|
-
return shadow.medium;
|
51060
|
-
}, function (_ref2) {
|
51061
|
-
var color = _ref2.theme.color;
|
51062
|
-
return color.bg_elevated;
|
51063
|
-
});
|
51064
|
-
var Search = function Search(_ref3) {
|
51065
|
-
var search = _ref3.search,
|
51066
|
-
setSearch = _ref3.setSearch;
|
51100
|
+
var Search = function Search(_ref2) {
|
51101
|
+
var search = _ref2.search,
|
51102
|
+
setSearch = _ref2.setSearch;
|
51067
51103
|
var _useTheme = (0,styled_components__WEBPACK_IMPORTED_MODULE_2__.useTheme)(),
|
51068
51104
|
spacing = _useTheme.spacing;
|
51069
|
-
var clearButton = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(
|
51105
|
+
var clearButton = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_icon_button__WEBPACK_IMPORTED_MODULE_4__.IconButton, {
|
51070
51106
|
size: "xs",
|
51071
51107
|
icon: "Close",
|
51072
51108
|
style: {
|
@@ -51080,8 +51116,8 @@ var Search = function Search(_ref3) {
|
|
51080
51116
|
style: {
|
51081
51117
|
padding: spacing['03']
|
51082
51118
|
}
|
51083
|
-
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(
|
51084
|
-
leftInnerContent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(
|
51119
|
+
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_input__WEBPACK_IMPORTED_MODULE_5__.Textbox, {
|
51120
|
+
leftInnerContent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_icon__WEBPACK_IMPORTED_MODULE_3__.Icon, {
|
51085
51121
|
size: "xs",
|
51086
51122
|
name: "Search",
|
51087
51123
|
color: "icon"
|
@@ -51093,25 +51129,24 @@ var Search = function Search(_ref3) {
|
|
51093
51129
|
};
|
51094
51130
|
var ItemsWrapper = styled_components__WEBPACK_IMPORTED_MODULE_2___default().div.withConfig({
|
51095
51131
|
displayName: "ItemsWrapper",
|
51096
|
-
componentId: "sc-1uptv2h-
|
51097
|
-
})(["width:100%;display:flex;flex-direction:column;gap:2px;box-sizing:border-box;", ""], function (
|
51098
|
-
var $maxMenuHeight =
|
51099
|
-
scrollbars =
|
51132
|
+
componentId: "sc-1uptv2h-0"
|
51133
|
+
})(["width:100%;display:flex;flex-direction:column;gap:2px;box-sizing:border-box;", ""], function (_ref3) {
|
51134
|
+
var $maxMenuHeight = _ref3.$maxMenuHeight,
|
51135
|
+
scrollbars = _ref3.theme.scrollbars;
|
51100
51136
|
if ($maxMenuHeight > 0) {
|
51101
51137
|
return (0,styled_components__WEBPACK_IMPORTED_MODULE_2__.css)(["max-height:", ";overflow-y:auto;", ""], (0,_utils__WEBPACK_IMPORTED_MODULE_9__.toPixel)($maxMenuHeight), scrollbars.thin);
|
51102
51138
|
}
|
51103
51139
|
});
|
51104
|
-
var CustomizeButtonPopover = function CustomizeButtonPopover(
|
51105
|
-
var searchable =
|
51106
|
-
search =
|
51107
|
-
setSearch =
|
51108
|
-
|
51109
|
-
|
51110
|
-
|
51111
|
-
orderProps = _ref5.orderProps;
|
51140
|
+
var CustomizeButtonPopover = function CustomizeButtonPopover(_ref4) {
|
51141
|
+
var searchable = _ref4.searchable,
|
51142
|
+
search = _ref4.search,
|
51143
|
+
setSearch = _ref4.setSearch,
|
51144
|
+
maxMenuHeight = _ref4.maxMenuHeight,
|
51145
|
+
items = _ref4.items,
|
51146
|
+
orderProps = _ref4.orderProps;
|
51112
51147
|
var maxHeight = Number.parseInt(maxMenuHeight);
|
51113
51148
|
var _maxMenuHeight = orderProps && (!maxHeight || maxHeight < 600) ? 600 : maxMenuHeight;
|
51114
|
-
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(
|
51149
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement((react__WEBPACK_IMPORTED_MODULE_1___default().Fragment), null, searchable && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(Search, {
|
51115
51150
|
search: search,
|
51116
51151
|
setSearch: setSearch
|
51117
51152
|
}), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(ItemsWrapper, {
|
@@ -51122,28 +51157,18 @@ var CustomizeButtonPopover = function CustomizeButtonPopover(_ref5) {
|
|
51122
51157
|
items: items
|
51123
51158
|
})));
|
51124
51159
|
};
|
51125
|
-
var
|
51126
|
-
var
|
51127
|
-
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_icon_button__WEBPACK_IMPORTED_MODULE_5__.IconButton, {
|
51128
|
-
onClick: popover.toggle,
|
51129
|
-
tooltip: "Customize columns",
|
51130
|
-
icon: "Customize"
|
51131
|
-
});
|
51132
|
-
}, CustomizeButtonPopover, {
|
51133
|
-
placement: 'bottom'
|
51134
|
-
});
|
51135
|
-
var CustomizeButtonStaticItems = function CustomizeButtonStaticItems(_ref7) {
|
51136
|
-
var items = _ref7.items;
|
51160
|
+
var CustomizeButtonStaticItems = function CustomizeButtonStaticItems(_ref5) {
|
51161
|
+
var items = _ref5.items;
|
51137
51162
|
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement((react__WEBPACK_IMPORTED_MODULE_1___default().Fragment), null, items.map(function (c) {
|
51138
51163
|
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(CustomizeButtonItem, _extends({
|
51139
51164
|
key: c.id
|
51140
51165
|
}, c));
|
51141
51166
|
}));
|
51142
51167
|
};
|
51143
|
-
var CustomizeButtonDraggableItems = function CustomizeButtonDraggableItems(
|
51144
|
-
var items =
|
51145
|
-
orders =
|
51146
|
-
moveColumn =
|
51168
|
+
var CustomizeButtonDraggableItems = function CustomizeButtonDraggableItems(_ref6) {
|
51169
|
+
var items = _ref6.items,
|
51170
|
+
orders = _ref6.orders,
|
51171
|
+
moveColumn = _ref6.moveColumn;
|
51147
51172
|
var sections = (0,react__WEBPACK_IMPORTED_MODULE_1__.useMemo)(function () {
|
51148
51173
|
var _orders$pinned;
|
51149
51174
|
return [((_orders$pinned = orders.pinned) === null || _orders$pinned === void 0 ? void 0 : _orders$pinned.length) && {
|
@@ -51190,7 +51215,7 @@ var CustomizeButtonDraggableItems = function CustomizeButtonDraggableItems(_ref8
|
|
51190
51215
|
}, it);
|
51191
51216
|
});
|
51192
51217
|
}, [items]);
|
51193
|
-
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(
|
51218
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_input__WEBPACK_IMPORTED_MODULE_5__.DragDrop, {
|
51194
51219
|
value: value,
|
51195
51220
|
onChange: onChange,
|
51196
51221
|
items: _items,
|
@@ -51199,32 +51224,32 @@ var CustomizeButtonDraggableItems = function CustomizeButtonDraggableItems(_ref8
|
|
51199
51224
|
CustomDrag: CustomizeButtonDraggableItem
|
51200
51225
|
});
|
51201
51226
|
};
|
51202
|
-
var CustomizeButtonDraggableItem = function CustomizeButtonDraggableItem(
|
51203
|
-
var Dragger =
|
51204
|
-
isDragging =
|
51205
|
-
itemProps = _objectWithoutProperties(
|
51206
|
-
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(
|
51227
|
+
var CustomizeButtonDraggableItem = function CustomizeButtonDraggableItem(_ref7) {
|
51228
|
+
var Dragger = _ref7.Dragger,
|
51229
|
+
isDragging = _ref7.isDragging,
|
51230
|
+
itemProps = _objectWithoutProperties(_ref7, _excluded);
|
51231
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_input__WEBPACK_IMPORTED_MODULE_5__.DragDrop.DraggableItem, {
|
51207
51232
|
Dragger: Dragger,
|
51208
51233
|
isDragging: isDragging
|
51209
51234
|
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(CustomizeButtonItem, itemProps));
|
51210
51235
|
};
|
51211
|
-
var CustomizeButtonItem = function CustomizeButtonItem(
|
51212
|
-
var id =
|
51213
|
-
name =
|
51214
|
-
canPin =
|
51215
|
-
isPinned =
|
51216
|
-
togglePinned =
|
51217
|
-
canHide =
|
51218
|
-
isVisible =
|
51219
|
-
toggleHidden =
|
51220
|
-
className =
|
51236
|
+
var CustomizeButtonItem = function CustomizeButtonItem(_ref8) {
|
51237
|
+
var id = _ref8.id,
|
51238
|
+
name = _ref8.name,
|
51239
|
+
canPin = _ref8.canPin,
|
51240
|
+
isPinned = _ref8.isPinned,
|
51241
|
+
togglePinned = _ref8.togglePinned,
|
51242
|
+
canHide = _ref8.canHide,
|
51243
|
+
isVisible = _ref8.isVisible,
|
51244
|
+
toggleHidden = _ref8.toggleHidden,
|
51245
|
+
className = _ref8.className;
|
51221
51246
|
var handlePinned = (0,react__WEBPACK_IMPORTED_MODULE_1__.useCallback)(function () {
|
51222
51247
|
togglePinned(!isPinned);
|
51223
51248
|
}, [isPinned, togglePinned]);
|
51224
51249
|
var handleHidden = (0,react__WEBPACK_IMPORTED_MODULE_1__.useCallback)(function () {
|
51225
51250
|
toggleHidden(isVisible);
|
51226
51251
|
}, [isVisible, toggleHidden]);
|
51227
|
-
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(CustomizeButtonItemWrapper, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(
|
51252
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(CustomizeButtonItemWrapper, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_typography__WEBPACK_IMPORTED_MODULE_7__.Label, {
|
51228
51253
|
variant: "sm",
|
51229
51254
|
color: isVisible ? 'text_secondary' : 'text_disabled',
|
51230
51255
|
"data-label": true,
|
@@ -51241,21 +51266,21 @@ var CustomizeButtonItem = function CustomizeButtonItem(_ref10) {
|
|
51241
51266
|
};
|
51242
51267
|
var CustomizeButtonItemWrapper = styled_components__WEBPACK_IMPORTED_MODULE_2___default().div.withConfig({
|
51243
51268
|
displayName: "CustomizeButtonItemWrapper",
|
51244
|
-
componentId: "sc-1uptv2h-
|
51245
|
-
})(["margin:0;padding:8px 16px;display:flex;align-items:center;gap:4px;min-width:230px;div[data-label]{margin-right:auto;}&:hover{background-color:", ";}"], function (
|
51246
|
-
var color =
|
51269
|
+
componentId: "sc-1uptv2h-1"
|
51270
|
+
})(["margin:0;padding:8px 16px;display:flex;align-items:center;gap:4px;min-width:230px;div[data-label]{margin-right:auto;}&:hover{background-color:", ";}"], function (_ref9) {
|
51271
|
+
var color = _ref9.theme.color;
|
51247
51272
|
return color.bg_fill_secondary;
|
51248
51273
|
});
|
51249
|
-
var CustomizeButtonItemAction = function CustomizeButtonItemAction(
|
51250
|
-
var onClick =
|
51251
|
-
tooltip =
|
51252
|
-
icon =
|
51274
|
+
var CustomizeButtonItemAction = function CustomizeButtonItemAction(_ref10) {
|
51275
|
+
var onClick = _ref10.onClick,
|
51276
|
+
tooltip = _ref10.tooltip,
|
51277
|
+
icon = _ref10.icon;
|
51253
51278
|
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(CustomizeButtonItemActionWrapper, {
|
51254
51279
|
onClick: onClick
|
51255
|
-
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(
|
51280
|
+
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_tooltip__WEBPACK_IMPORTED_MODULE_6__.Tooltip2, {
|
51256
51281
|
tooltip: tooltip,
|
51257
51282
|
tooltipPlacement: "top"
|
51258
|
-
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(
|
51283
|
+
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_icon__WEBPACK_IMPORTED_MODULE_3__.Icon, {
|
51259
51284
|
name: icon,
|
51260
51285
|
size: "xs",
|
51261
51286
|
color: "icon"
|
@@ -51263,7 +51288,7 @@ var CustomizeButtonItemAction = function CustomizeButtonItemAction(_ref12) {
|
|
51263
51288
|
};
|
51264
51289
|
var CustomizeButtonItemActionWrapper = styled_components__WEBPACK_IMPORTED_MODULE_2___default().div.withConfig({
|
51265
51290
|
displayName: "CustomizeButtonItemActionWrapper",
|
51266
|
-
componentId: "sc-1uptv2h-
|
51291
|
+
componentId: "sc-1uptv2h-2"
|
51267
51292
|
})(["cursor:pointer;visibility:hidden;", ":hover &{visibility:visible;}"], CustomizeButtonItemWrapper);
|
51268
51293
|
var searchColumn = function searchColumn(search) {
|
51269
51294
|
return function (col) {
|
@@ -51519,14 +51544,21 @@ var ExpandHandle = function ExpandHandle(_ref) {
|
|
51519
51544
|
isExpanded = _ref.isExpanded;
|
51520
51545
|
var _useTheme = (0,styled_components__WEBPACK_IMPORTED_MODULE_1__.useTheme)(),
|
51521
51546
|
spacing = _useTheme.spacing;
|
51522
|
-
var icon = isExpanded ? 'ChevronDown' : 'ChevronRight';
|
51523
51547
|
if (!canExpand) return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_layout__WEBPACK_IMPORTED_MODULE_2__.Box, {
|
51524
51548
|
width: spacing['06']
|
51525
51549
|
});
|
51550
|
+
var icon = isExpanded ? 'ChevronDown' : 'ChevronRight';
|
51551
|
+
var props = getToggleRowExpandedProps();
|
51552
|
+
var onClick = function onClick(e) {
|
51553
|
+
e.stopPropagation(); // prevents onRowClick
|
51554
|
+
props.onClick(e);
|
51555
|
+
};
|
51526
51556
|
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_icon_button__WEBPACK_IMPORTED_MODULE_3__.IconButton, _extends({
|
51527
51557
|
icon: icon,
|
51528
51558
|
size: "xs"
|
51529
|
-
},
|
51559
|
+
}, props, {
|
51560
|
+
onClick: onClick
|
51561
|
+
}));
|
51530
51562
|
};
|
51531
51563
|
var withAttachedProps = function withAttachedProps(Comp, rowProps) {
|
51532
51564
|
return function WithAttachedProps() {
|
@@ -52243,6 +52275,12 @@ function _arrayWithoutHoles(r) { if (Array.isArray(r)) return _arrayLikeToArray(
|
|
52243
52275
|
function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
52244
52276
|
|
52245
52277
|
|
52278
|
+
if (!Array.prototype.toSpliced) {
|
52279
|
+
Array.prototype.toSpliced = function () {
|
52280
|
+
var _Array$from;
|
52281
|
+
return (_Array$from = Array.from(this)).splice.apply(_Array$from, arguments);
|
52282
|
+
};
|
52283
|
+
}
|
52246
52284
|
var useOrderLogic = function useOrderLogic(table) {
|
52247
52285
|
var _table$state = table.state,
|
52248
52286
|
columnOrder = _table$state.columnOrder,
|
@@ -53949,7 +53987,8 @@ var TableBody = function TableBody(props) {
|
|
53949
53987
|
setIsDraggingRow = _useTableContext2.setIsDraggingRow,
|
53950
53988
|
onRowDragStart = _useTableContext2.onRowDragStart,
|
53951
53989
|
onRowDragEnd = _useTableContext2.onRowDragEnd,
|
53952
|
-
rowsById = _useTableContext2.rowsById
|
53990
|
+
rowsById = _useTableContext2.rowsById,
|
53991
|
+
draggableRows = _useTableContext2.draggableRows;
|
53953
53992
|
var rows = (0,react__WEBPACK_IMPORTED_MODULE_2__.useMemo)(function () {
|
53954
53993
|
return [].concat(_toConsumableArray(pinnedRows), _toConsumableArray(page.filter(function (row) {
|
53955
53994
|
return !row.isPinned;
|
@@ -54010,10 +54049,7 @@ var TableBody = function TableBody(props) {
|
|
54010
54049
|
cache.current.clearAll();
|
54011
54050
|
onRowDragEnd === null || onRowDragEnd === void 0 || onRowDragEnd(event, originRow, destRow, context);
|
54012
54051
|
}, [rows, cache.current]);
|
54013
|
-
|
54014
|
-
onDragStart: onDragStart,
|
54015
|
-
onDragEnd: onDragEnd
|
54016
|
-
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(TableBodyRowGroup, _extends({
|
54052
|
+
var content = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(TableBodyRowGroup, _extends({
|
54017
54053
|
"data-rowgroup-type": "body"
|
54018
54054
|
}, bodyProps, {
|
54019
54055
|
style: style,
|
@@ -54021,21 +54057,39 @@ var TableBody = function TableBody(props) {
|
|
54021
54057
|
tableBody: true
|
54022
54058
|
}),
|
54023
54059
|
onScroll: onScroll
|
54024
|
-
}), body)
|
54060
|
+
}), body);
|
54061
|
+
if (draggableRows) {
|
54062
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(react_beautiful_dnd__WEBPACK_IMPORTED_MODULE_13__.DragDropContext, {
|
54063
|
+
onDragStart: onDragStart,
|
54064
|
+
onDragEnd: onDragEnd
|
54065
|
+
}, content);
|
54066
|
+
}
|
54067
|
+
return content;
|
54025
54068
|
};
|
54026
54069
|
var Body = function Body(props) {
|
54027
54070
|
var _useTableContext3 = (0,_context__WEBPACK_IMPORTED_MODULE_6__.useTableContext)(),
|
54028
|
-
virtualized = _useTableContext3.virtualized
|
54071
|
+
virtualized = _useTableContext3.virtualized,
|
54072
|
+
draggableRows = _useTableContext3.draggableRows;
|
54029
54073
|
var droppableProps = (0,react__WEBPACK_IMPORTED_MODULE_2__.useMemo)(function () {
|
54030
54074
|
return {
|
54031
54075
|
droppableId: 'table-body-rows',
|
54032
54076
|
type: 'ROWS'
|
54033
54077
|
};
|
54034
54078
|
}, []);
|
54035
|
-
|
54036
|
-
|
54079
|
+
if (virtualized) return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(_virtualized_body__WEBPACK_IMPORTED_MODULE_11__.VirtualizedBody, _extends({}, props, {
|
54080
|
+
droppableProps: droppableProps
|
54081
|
+
}));
|
54082
|
+
if (draggableRows) return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(_dnd__WEBPACK_IMPORTED_MODULE_12__.DroppableBody, _extends({}, props, {
|
54037
54083
|
droppableProps: droppableProps
|
54038
54084
|
}));
|
54085
|
+
var rows = props.rows,
|
54086
|
+
_renderRow = props.renderRow;
|
54087
|
+
return rows.map(function (row, index) {
|
54088
|
+
return _renderRow({
|
54089
|
+
row: row,
|
54090
|
+
index: index
|
54091
|
+
});
|
54092
|
+
});
|
54039
54093
|
};
|
54040
54094
|
var TableBodyRowGroup = styled_components__WEBPACK_IMPORTED_MODULE_3___default().div.withConfig({
|
54041
54095
|
displayName: "TableBodyRowGroup",
|
@@ -54243,8 +54297,10 @@ var RowRenderer = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().memo
|
|
54243
54297
|
index = props.index,
|
54244
54298
|
style = props.style,
|
54245
54299
|
parent = props.parent,
|
54246
|
-
rowHoverEvents = props.rowHoverEvents
|
54247
|
-
|
54300
|
+
rowHoverEvents = props.rowHoverEvents,
|
54301
|
+
draggableRows = props.draggableRows;
|
54302
|
+
// padding is needed to see the divider between rows
|
54303
|
+
// when new rows are added
|
54248
54304
|
var _style = _objectSpread(_objectSpread({}, style), {}, {
|
54249
54305
|
padding: '0.3px 0'
|
54250
54306
|
});
|
@@ -54255,28 +54311,34 @@ var RowRenderer = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().memo
|
|
54255
54311
|
rowIndex: index
|
54256
54312
|
}, function (_ref) {
|
54257
54313
|
var measure = _ref.measure;
|
54258
|
-
|
54259
|
-
|
54314
|
+
if (draggableRows) {
|
54315
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_dnd__WEBPACK_IMPORTED_MODULE_4__.DraggableWrapper, {
|
54316
|
+
key: row.id,
|
54317
|
+
row: row,
|
54318
|
+
index: index,
|
54319
|
+
render: function render(wrapperProps, dragHandleProps) {
|
54320
|
+
return renderRow({
|
54321
|
+
row: row,
|
54322
|
+
index: index,
|
54323
|
+
wrapperProps: _objectSpread(_objectSpread(_objectSpread({}, wrapperProps), rowHoverEvents), {}, {
|
54324
|
+
onPointerEnter: function onPointerEnter(e) {
|
54325
|
+
return rowHoverEvents.onPointerEnter(e, row, dragHandleProps);
|
54326
|
+
},
|
54327
|
+
style: _style,
|
54328
|
+
measureContentSize: measure
|
54329
|
+
})
|
54330
|
+
});
|
54331
|
+
}
|
54332
|
+
});
|
54333
|
+
}
|
54334
|
+
return renderRow({
|
54260
54335
|
row: row,
|
54261
|
-
index: index
|
54262
|
-
render: function render(wrapperProps, dragHandleProps) {
|
54263
|
-
return renderRow({
|
54264
|
-
row: row,
|
54265
|
-
index: index,
|
54266
|
-
wrapperProps: _objectSpread(_objectSpread(_objectSpread({}, wrapperProps), rowHoverEvents), {}, {
|
54267
|
-
onPointerEnter: function onPointerEnter(e) {
|
54268
|
-
return rowHoverEvents.onPointerEnter(e, row, dragHandleProps);
|
54269
|
-
},
|
54270
|
-
style: _style,
|
54271
|
-
measureContentSize: measure
|
54272
|
-
})
|
54273
|
-
});
|
54274
|
-
}
|
54336
|
+
index: index
|
54275
54337
|
});
|
54276
54338
|
});
|
54277
54339
|
});
|
54278
54340
|
RowRenderer.displayName = 'RowRenderer';
|
54279
|
-
var rowRenderer = function rowRenderer(rows, cache, renderRow, rowHoverEvents) {
|
54341
|
+
var rowRenderer = function rowRenderer(rows, cache, renderRow, rowHoverEvents, draggableRows) {
|
54280
54342
|
var RendererWrapper = function RendererWrapper(_ref2) {
|
54281
54343
|
var key = _ref2.key,
|
54282
54344
|
index = _ref2.index,
|
@@ -54291,7 +54353,8 @@ var rowRenderer = function rowRenderer(rows, cache, renderRow, rowHoverEvents) {
|
|
54291
54353
|
parent: parent,
|
54292
54354
|
cache: cache,
|
54293
54355
|
renderRow: renderRow,
|
54294
|
-
rowHoverEvents: rowHoverEvents
|
54356
|
+
rowHoverEvents: rowHoverEvents,
|
54357
|
+
draggableRows: draggableRows
|
54295
54358
|
});
|
54296
54359
|
};
|
54297
54360
|
return RendererWrapper;
|
@@ -54317,7 +54380,7 @@ var listRefHandler = function listRefHandler(setListDOMRef, droppableProvided) {
|
|
54317
54380
|
var element = ref === null || ref === void 0 || (_ref$Grid = ref.Grid) === null || _ref$Grid === void 0 ? void 0 : _ref$Grid._scrollingContainer;
|
54318
54381
|
if (element instanceof window.HTMLElement) {
|
54319
54382
|
setListDOMRef(element === null || element === void 0 ? void 0 : element.firstChild);
|
54320
|
-
droppableProvided.innerRef(element);
|
54383
|
+
droppableProvided === null || droppableProvided === void 0 || droppableProvided.innerRef(element);
|
54321
54384
|
}
|
54322
54385
|
};
|
54323
54386
|
};
|
@@ -54325,7 +54388,8 @@ var VirtualizedBodyComp = function VirtualizedBodyComp(props) {
|
|
54325
54388
|
var rows = props.rows,
|
54326
54389
|
measurerCache = props.measurerCache,
|
54327
54390
|
renderRow = props.renderRow,
|
54328
|
-
droppableProps = props.droppableProps
|
54391
|
+
droppableProps = props.droppableProps,
|
54392
|
+
draggableRows = props.draggableRows;
|
54329
54393
|
var _useTableContext = (0,_context__WEBPACK_IMPORTED_MODULE_3__.useTableContext)(),
|
54330
54394
|
maxHeight = _useTableContext.scrollHeight;
|
54331
54395
|
var _useState = (0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(),
|
@@ -54345,40 +54409,72 @@ var VirtualizedBodyComp = function VirtualizedBodyComp(props) {
|
|
54345
54409
|
return acc += measurerCache.current.getHeight(index, 0);
|
54346
54410
|
}, 0));
|
54347
54411
|
}, [listDOMRef, rows]);
|
54348
|
-
|
54349
|
-
|
54350
|
-
|
54351
|
-
|
54352
|
-
|
54353
|
-
|
54354
|
-
|
54355
|
-
|
54356
|
-
|
54357
|
-
|
54358
|
-
|
54359
|
-
|
54360
|
-
|
54361
|
-
|
54362
|
-
|
54363
|
-
|
54364
|
-
|
54365
|
-
|
54366
|
-
|
54367
|
-
|
54368
|
-
|
54369
|
-
|
54370
|
-
|
54371
|
-
|
54372
|
-
|
54412
|
+
if (draggableRows) {
|
54413
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(react_beautiful_dnd__WEBPACK_IMPORTED_MODULE_6__.Droppable, _extends({}, droppableProps, {
|
54414
|
+
mode: "virtual",
|
54415
|
+
renderClone: renderClone(rows, renderRow)
|
54416
|
+
}), function (provided) {
|
54417
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement((react__WEBPACK_IMPORTED_MODULE_0___default().Fragment), null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(VirtualizedBodyList, {
|
54418
|
+
rows: rows,
|
54419
|
+
measurerCache: measurerCache,
|
54420
|
+
renderRow: renderRow,
|
54421
|
+
rowHoverEvents: rowHoverEvents,
|
54422
|
+
style: {
|
54423
|
+
height: _height,
|
54424
|
+
maxHeight: maxHeight,
|
54425
|
+
width: '100%'
|
54426
|
+
},
|
54427
|
+
listRef: listRefHandler(setListDOMRef, provided),
|
54428
|
+
draggableRows: true
|
54429
|
+
}), renderHoverActions());
|
54430
|
+
});
|
54431
|
+
}
|
54432
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(VirtualizedBodyList, {
|
54433
|
+
rows: rows,
|
54434
|
+
measurerCache: measurerCache,
|
54435
|
+
renderRow: renderRow,
|
54436
|
+
rowHoverEvents: rowHoverEvents,
|
54437
|
+
style: {
|
54438
|
+
height: _height,
|
54439
|
+
maxHeight: maxHeight,
|
54440
|
+
width: '100%'
|
54441
|
+
},
|
54442
|
+
listRef: listRefHandler(setListDOMRef, undefined)
|
54373
54443
|
});
|
54374
54444
|
};
|
54375
54445
|
var VirtualizedBody = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().memo(VirtualizedBodyComp);
|
54376
54446
|
VirtualizedBody.displayName = 'VirtualizedBody';
|
54447
|
+
var VirtualizedBodyList = function VirtualizedBodyList(_ref3) {
|
54448
|
+
var rows = _ref3.rows,
|
54449
|
+
measurerCache = _ref3.measurerCache,
|
54450
|
+
renderRow = _ref3.renderRow,
|
54451
|
+
rowHoverEvents = _ref3.rowHoverEvents,
|
54452
|
+
style = _ref3.style,
|
54453
|
+
listRef = _ref3.listRef,
|
54454
|
+
draggableRows = _ref3.draggableRows;
|
54455
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("div", {
|
54456
|
+
style: style
|
54457
|
+
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(react_virtualized__WEBPACK_IMPORTED_MODULE_1__.AutoSizer, null, function (_ref4) {
|
54458
|
+
var width = _ref4.width,
|
54459
|
+
height = _ref4.height;
|
54460
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(StyledList, {
|
54461
|
+
width: width,
|
54462
|
+
height: height,
|
54463
|
+
overscanRowCount: 5,
|
54464
|
+
estimatedRowSize: 30,
|
54465
|
+
rowHeight: measurerCache.current.rowHeight,
|
54466
|
+
rowCount: rows.length,
|
54467
|
+
deferredMeasurementCache: measurerCache.current,
|
54468
|
+
ref: listRef,
|
54469
|
+
rowRenderer: rowRenderer(rows, measurerCache, renderRow, rowHoverEvents, draggableRows)
|
54470
|
+
});
|
54471
|
+
}));
|
54472
|
+
};
|
54377
54473
|
var StyledList = styled_components__WEBPACK_IMPORTED_MODULE_2___default()(react_virtualized__WEBPACK_IMPORTED_MODULE_1__.List).withConfig({
|
54378
54474
|
displayName: "StyledList",
|
54379
54475
|
componentId: "sc-1mdy9tq-0"
|
54380
|
-
})(["", ""], function (
|
54381
|
-
var scrollbars =
|
54476
|
+
})(["", ""], function (_ref5) {
|
54477
|
+
var scrollbars = _ref5.theme.scrollbars;
|
54382
54478
|
return scrollbars.thin;
|
54383
54479
|
});
|
54384
54480
|
|
@@ -114232,6 +114328,34 @@ var result = _node_modules_svg_sprite_loader_runtime_browser_sprite_build_js__WE
|
|
114232
114328
|
|
114233
114329
|
/***/ }),
|
114234
114330
|
|
114331
|
+
/***/ "./assets/icons/tag.svg":
|
114332
|
+
/*!******************************!*\
|
114333
|
+
!*** ./assets/icons/tag.svg ***!
|
114334
|
+
\******************************/
|
114335
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
114336
|
+
|
114337
|
+
"use strict";
|
114338
|
+
__webpack_require__.r(__webpack_exports__);
|
114339
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
114340
|
+
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
114341
|
+
/* harmony export */ });
|
114342
|
+
/* harmony import */ var _node_modules_svg_baker_runtime_browser_symbol_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../node_modules/svg-baker-runtime/browser-symbol.js */ "./node_modules/svg-baker-runtime/browser-symbol.js");
|
114343
|
+
/* harmony import */ var _node_modules_svg_baker_runtime_browser_symbol_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_svg_baker_runtime_browser_symbol_js__WEBPACK_IMPORTED_MODULE_0__);
|
114344
|
+
/* harmony import */ var _node_modules_svg_sprite_loader_runtime_browser_sprite_build_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../node_modules/svg-sprite-loader/runtime/browser-sprite.build.js */ "./node_modules/svg-sprite-loader/runtime/browser-sprite.build.js");
|
114345
|
+
/* harmony import */ var _node_modules_svg_sprite_loader_runtime_browser_sprite_build_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_node_modules_svg_sprite_loader_runtime_browser_sprite_build_js__WEBPACK_IMPORTED_MODULE_1__);
|
114346
|
+
|
114347
|
+
|
114348
|
+
var symbol = new (_node_modules_svg_baker_runtime_browser_symbol_js__WEBPACK_IMPORTED_MODULE_0___default())({
|
114349
|
+
"id": "tag_uikit_icon",
|
114350
|
+
"use": "tag_uikit_icon-usage",
|
114351
|
+
"viewBox": "0 0 18 18",
|
114352
|
+
"content": "<symbol xmlns=\"http://www.w3.org/2000/svg\" fill=\"none\" viewBox=\"0 0 18 18\" id=\"tag_uikit_icon\"><path fill=\"currentColor\" stroke=\"currentColor\" stroke-width=\".094\" d=\"m9.217.9 7.759 7.758.033-.033-.034.033a1.2 1.2 0 0 1 0 1.702l.034.033-.034-.033-6.615 6.616.033.033-.033-.034a1.2 1.2 0 0 1-1.702 0l-.033.034.033-.034L.9 9.218a1.2 1.2 0 0 1-.353-.85V1.124a.58.58 0 0 1 .578-.578h7.241a1.2 1.2 0 0 1 .85.352Zm.258 15.258.034.033.033-.033 6.616-6.616.033-.033-.033-.034L8.4 1.717l-.014-.014H1.703v6.683l.014.014zM5.453 4.563a.89.89 0 1 1-1.781 0 .89.89 0 0 1 1.781 0Z\" /></symbol>"
|
114353
|
+
});
|
114354
|
+
var result = _node_modules_svg_sprite_loader_runtime_browser_sprite_build_js__WEBPACK_IMPORTED_MODULE_1___default().add(symbol);
|
114355
|
+
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (symbol);
|
114356
|
+
|
114357
|
+
/***/ }),
|
114358
|
+
|
114235
114359
|
/***/ "./assets/icons/target.svg":
|
114236
114360
|
/*!*********************************!*\
|
114237
114361
|
!*** ./assets/icons/target.svg ***!
|