@banyan_cloud/roots 2.0.41 → 2.0.43
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/esm/index.js +781 -707
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/src/components/buttons/baseButton/types/index.d.ts +1 -1
- package/dist/esm/src/components/buttons/button/types/index.d.ts +1 -2
- package/dist/esm/src/components/codeSnippet/CodeSnippet.d.ts +2 -13
- package/dist/esm/src/components/codeSnippet/index.d.ts +1 -1
- package/dist/esm/src/components/codeSnippet/types/index.d.ts +29 -0
- package/dist/esm/src/components/hierarchy/browser/HierarchyBrowser.d.ts +9 -1
- package/dist/esm/src/components/hierarchy/item/HierarchyItem.d.ts +4 -2
- package/dist/esm/src/components/icons/Calender/Calender.d.ts +6 -6
- package/dist/esm/src/components/icons/Calender/index.d.ts +1 -1
- package/dist/esm/src/components/icons/Clock/Clock.d.ts +5 -3
- package/dist/esm/src/components/icons/Clock/index.d.ts +1 -1
- package/dist/esm/src/components/icons/Close/Close.d.ts +3 -3
- package/dist/esm/src/components/icons/Close/index.d.ts +1 -1
- package/dist/esm/src/components/icons/ColumnFilter/ColumnFilter.d.ts +4 -6
- package/dist/esm/src/components/icons/ColumnFilter/index.d.ts +1 -1
- package/dist/esm/src/components/icons/Delete/Delete.d.ts +3 -6
- package/dist/esm/src/components/icons/Delete/index.d.ts +1 -1
- package/dist/esm/src/components/icons/Edit/Edit.d.ts +3 -6
- package/dist/esm/src/components/icons/Edit/index.d.ts +1 -1
- package/dist/esm/src/components/icons/Email/Email.d.ts +3 -1
- package/dist/esm/src/components/icons/Email/index.d.ts +1 -1
- package/dist/esm/src/components/icons/MaximizeIcon/Maximize.d.ts +3 -1
- package/dist/esm/src/components/icons/MaximizeIcon/index.d.ts +1 -1
- package/dist/esm/src/components/icons/index.d.ts +0 -1
- package/dist/esm/src/components/input/textField/TextField.d.ts +3 -7
- package/dist/esm/src/components/modal/BaseModal.d.ts +4 -26
- package/dist/esm/src/components/modal/constants/index.d.ts +21 -0
- package/dist/esm/src/components/modal/dialogBox/DialogBox.d.ts +33 -1
- package/dist/esm/src/components/modal/dialogBox/index.d.ts +1 -1
- package/dist/esm/src/components/modal/index.d.ts +1 -1
- package/dist/esm/src/components/modal/types/index.d.ts +38 -0
- package/dist/esm/src/components/popover/Popover.d.ts +10 -8
- package/dist/esm/src/components/popper/Popper.d.ts +4 -2
- package/dist/esm/src/components/table/types/index.d.ts +1 -0
- package/package.json +5 -2
- package/dist/esm/src/components/icons/Columns/Columns.d.ts +0 -7
- package/dist/esm/src/components/icons/Columns/index.d.ts +0 -1
package/dist/esm/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsxs, Fragment, jsx } from 'react/jsx-runtime';
|
|
2
2
|
import { motion, AnimatePresence, useAnimate } from 'framer-motion';
|
|
3
3
|
import * as React from 'react';
|
|
4
|
-
import React__default, { forwardRef, createElement, isValidElement, useState, useRef, useLayoutEffect, useEffect, useId as useId$1, useImperativeHandle, useCallback, cloneElement, useMemo, useReducer, Children } from 'react';
|
|
4
|
+
import React__default, { forwardRef, createElement, isValidElement, useState, useRef, useLayoutEffect, useEffect, useId as useId$1, useImperativeHandle, useCallback, cloneElement, startTransition, useMemo, useReducer, Children } from 'react';
|
|
5
5
|
import * as ReactDOM from 'react-dom';
|
|
6
6
|
import { createPortal } from 'react-dom';
|
|
7
7
|
import EChartsReactCore from 'echarts-for-react/lib/core';
|
|
@@ -4156,7 +4156,7 @@ var BaseButton = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
4156
4156
|
if (blurOnClick) {
|
|
4157
4157
|
event.currentTarget.blur();
|
|
4158
4158
|
}
|
|
4159
|
-
_onClick === null || _onClick === void 0
|
|
4159
|
+
void (_onClick === null || _onClick === void 0 ? void 0 : _onClick(event));
|
|
4160
4160
|
}
|
|
4161
4161
|
},
|
|
4162
4162
|
RootDOM: 'button'
|
|
@@ -4382,21 +4382,18 @@ var Calender$1 = function Calender(props) {
|
|
|
4382
4382
|
width = props.width,
|
|
4383
4383
|
height = props.height,
|
|
4384
4384
|
color = props.color;
|
|
4385
|
-
return
|
|
4385
|
+
return jsx("svg", {
|
|
4386
4386
|
className: className,
|
|
4387
4387
|
width: width !== null && width !== void 0 ? width : '1.5rem',
|
|
4388
4388
|
height: height !== null && height !== void 0 ? height : '1.5rem',
|
|
4389
4389
|
fill: color !== null && color !== void 0 ? color : '#333333',
|
|
4390
|
-
viewBox:
|
|
4391
|
-
xmlns:
|
|
4392
|
-
children:
|
|
4393
|
-
d:
|
|
4390
|
+
viewBox: '0 0 24 24',
|
|
4391
|
+
xmlns: 'http://www.w3.org/2000/svg',
|
|
4392
|
+
children: jsx("path", {
|
|
4393
|
+
d: 'M19 4H17V3C17 2.73478 16.8946 2.48043 16.7071 2.29289C16.5196 2.10536 16.2652 2 16 2C15.7348 2 15.4804 2.10536 15.2929 2.29289C15.1054 2.48043 15 2.73478 15 3V4H9V3C9 2.73478 8.89464 2.48043 8.70711 2.29289C8.51957 2.10536 8.26522 2 8 2C7.73478 2 7.48043 2.10536 7.29289 2.29289C7.10536 2.48043 7 2.73478 7 3V4H5C4.20435 4 3.44129 4.31607 2.87868 4.87868C2.31607 5.44129 2 6.20435 2 7V19C2 19.7956 2.31607 20.5587 2.87868 21.1213C3.44129 21.6839 4.20435 22 5 22H19C19.7956 22 20.5587 21.6839 21.1213 21.1213C21.6839 20.5587 22 19.7956 22 19V7C22 6.20435 21.6839 5.44129 21.1213 4.87868C20.5587 4.31607 19.7956 4 19 4ZM20 19C20 19.2652 19.8946 19.5196 19.7071 19.7071C19.5196 19.8946 19.2652 20 19 20H5C4.73478 20 4.48043 19.8946 4.29289 19.7071C4.10536 19.5196 4 19.2652 4 19V12H20V19ZM20 10H4V7C4 6.73478 4.10536 6.48043 4.29289 6.29289C4.48043 6.10536 4.73478 6 5 6H7V7C7 7.26522 7.10536 7.51957 7.29289 7.70711C7.48043 7.89464 7.73478 8 8 8C8.26522 8 8.51957 7.89464 8.70711 7.70711C8.89464 7.51957 9 7.26522 9 7V6H15V7C15 7.26522 15.1054 7.51957 15.2929 7.70711C15.4804 7.89464 15.7348 8 16 8C16.2652 8 16.5196 7.89464 16.7071 7.70711C16.8946 7.51957 17 7.26522 17 7V6H19C19.2652 6 19.5196 6.10536 19.7071 6.29289C19.8946 6.48043 20 6.73478 20 7V10Z'
|
|
4394
4394
|
})
|
|
4395
4395
|
});
|
|
4396
4396
|
};
|
|
4397
|
-
Calender$1.defaultProps = {
|
|
4398
|
-
className: ''
|
|
4399
|
-
};
|
|
4400
4397
|
|
|
4401
4398
|
var Caret = function Caret(props) {
|
|
4402
4399
|
var _props$className = props.className,
|
|
@@ -5235,34 +5232,38 @@ var Chevron = function Chevron(props) {
|
|
|
5235
5232
|
};
|
|
5236
5233
|
|
|
5237
5234
|
var Clock = function Clock(_ref) {
|
|
5238
|
-
var className = _ref.className
|
|
5239
|
-
|
|
5235
|
+
var className = _ref.className,
|
|
5236
|
+
width = _ref.width,
|
|
5237
|
+
height = _ref.height;
|
|
5238
|
+
return jsxs("svg", {
|
|
5240
5239
|
className: className,
|
|
5241
|
-
|
|
5242
|
-
|
|
5243
|
-
|
|
5244
|
-
|
|
5245
|
-
|
|
5246
|
-
|
|
5247
|
-
|
|
5248
|
-
|
|
5249
|
-
|
|
5250
|
-
|
|
5251
|
-
|
|
5252
|
-
|
|
5253
|
-
|
|
5254
|
-
|
|
5255
|
-
|
|
5256
|
-
|
|
5257
|
-
|
|
5240
|
+
width: width,
|
|
5241
|
+
height: height,
|
|
5242
|
+
viewBox: '0 0 24 24',
|
|
5243
|
+
fill: 'none',
|
|
5244
|
+
xmlns: 'http://www.w3.org/2000/svg',
|
|
5245
|
+
children: [jsxs("g", {
|
|
5246
|
+
clipPath: 'url(#clip0_5056_4832)',
|
|
5247
|
+
children: [jsx("path", {
|
|
5248
|
+
d: 'M12 21C16.9706 21 21 16.9706 21 12C21 7.02944 16.9706 3 12 3C7.02944 3 3 7.02944 3 12C3 16.9706 7.02944 21 12 21Z',
|
|
5249
|
+
stroke: '#333333',
|
|
5250
|
+
strokeWidth: '2',
|
|
5251
|
+
strokeLinecap: 'round',
|
|
5252
|
+
strokeLinejoin: 'round'
|
|
5253
|
+
}), jsx("path", {
|
|
5254
|
+
d: 'M12 7V12L15 15',
|
|
5255
|
+
stroke: '#333333',
|
|
5256
|
+
strokeWidth: '2',
|
|
5257
|
+
strokeLinecap: 'round',
|
|
5258
|
+
strokeLinejoin: 'round'
|
|
5258
5259
|
})]
|
|
5259
|
-
}),
|
|
5260
|
-
children:
|
|
5261
|
-
id:
|
|
5262
|
-
children:
|
|
5263
|
-
width:
|
|
5264
|
-
height:
|
|
5265
|
-
fill:
|
|
5260
|
+
}), jsx("defs", {
|
|
5261
|
+
children: jsx("clipPath", {
|
|
5262
|
+
id: 'clip0_5056_4832',
|
|
5263
|
+
children: jsx("rect", {
|
|
5264
|
+
width: '24',
|
|
5265
|
+
height: '24',
|
|
5266
|
+
fill: 'white'
|
|
5266
5267
|
})
|
|
5267
5268
|
})
|
|
5268
5269
|
})]
|
|
@@ -5271,183 +5272,117 @@ var Clock = function Clock(_ref) {
|
|
|
5271
5272
|
|
|
5272
5273
|
var Close = function Close(_ref) {
|
|
5273
5274
|
var className = _ref.className;
|
|
5274
|
-
return
|
|
5275
|
+
return jsx("svg", {
|
|
5275
5276
|
className: className,
|
|
5276
|
-
width:
|
|
5277
|
-
height:
|
|
5278
|
-
viewBox:
|
|
5279
|
-
fill:
|
|
5280
|
-
xmlns:
|
|
5281
|
-
children:
|
|
5282
|
-
d:
|
|
5277
|
+
width: '1.5rem',
|
|
5278
|
+
height: '1.5rem',
|
|
5279
|
+
viewBox: '0 0 14 15',
|
|
5280
|
+
fill: '#333333',
|
|
5281
|
+
xmlns: 'http://www.w3.org/2000/svg',
|
|
5282
|
+
children: jsx("path", {
|
|
5283
|
+
d: 'M11.0834 3.74416L10.2609 2.92166L7.00002 6.18249L3.73919 2.92166L2.91669 3.74416L6.17752 7.00499L2.91669 10.2658L3.73919 11.0883L7.00002 7.82749L10.2609 11.0883L11.0834 10.2658L7.82252 7.00499L11.0834 3.74416Z'
|
|
5283
5284
|
})
|
|
5284
5285
|
});
|
|
5285
5286
|
};
|
|
5286
5287
|
|
|
5287
5288
|
var ColumnFilter = function ColumnFilter(props) {
|
|
5288
5289
|
var className = props.className,
|
|
5289
|
-
v2 = props.v2,
|
|
5290
5290
|
active = props.active;
|
|
5291
5291
|
if (active) {
|
|
5292
|
-
return
|
|
5293
|
-
width:
|
|
5294
|
-
height:
|
|
5292
|
+
return jsxs("svg", {
|
|
5293
|
+
width: '1.5rem',
|
|
5294
|
+
height: '1.5rem',
|
|
5295
5295
|
className: className,
|
|
5296
|
-
viewBox:
|
|
5297
|
-
fill:
|
|
5298
|
-
xmlns:
|
|
5299
|
-
children: [
|
|
5300
|
-
clipPath:
|
|
5301
|
-
children: [
|
|
5302
|
-
d:
|
|
5303
|
-
stroke:
|
|
5304
|
-
strokeWidth:
|
|
5305
|
-
strokeLinecap:
|
|
5306
|
-
strokeLinejoin:
|
|
5307
|
-
}),
|
|
5308
|
-
d:
|
|
5309
|
-
stroke:
|
|
5310
|
-
strokeWidth:
|
|
5311
|
-
strokeLinecap:
|
|
5312
|
-
strokeLinejoin:
|
|
5313
|
-
}),
|
|
5314
|
-
d:
|
|
5315
|
-
stroke:
|
|
5316
|
-
strokeWidth:
|
|
5317
|
-
strokeLinecap:
|
|
5318
|
-
strokeLinejoin:
|
|
5319
|
-
}),
|
|
5320
|
-
d:
|
|
5321
|
-
stroke:
|
|
5322
|
-
strokeWidth:
|
|
5323
|
-
strokeLinecap:
|
|
5324
|
-
strokeLinejoin:
|
|
5296
|
+
viewBox: '0 0 24 25',
|
|
5297
|
+
fill: 'none',
|
|
5298
|
+
xmlns: 'http://www.w3.org/2000/svg',
|
|
5299
|
+
children: [jsxs("g", {
|
|
5300
|
+
clipPath: 'url(#clip0_2242_8740)',
|
|
5301
|
+
children: [jsx("path", {
|
|
5302
|
+
d: 'M3.271 6H19.271',
|
|
5303
|
+
stroke: '#0F62FE',
|
|
5304
|
+
strokeWidth: '1',
|
|
5305
|
+
strokeLinecap: 'round',
|
|
5306
|
+
strokeLinejoin: 'round'
|
|
5307
|
+
}), jsx("path", {
|
|
5308
|
+
d: 'M3.271 12H7.271',
|
|
5309
|
+
stroke: '#0F62FE',
|
|
5310
|
+
strokeWidth: '1',
|
|
5311
|
+
strokeLinecap: 'round',
|
|
5312
|
+
strokeLinejoin: 'round'
|
|
5313
|
+
}), jsx("path", {
|
|
5314
|
+
d: 'M3.271 18H7.271',
|
|
5315
|
+
stroke: '#0F62FE',
|
|
5316
|
+
strokeWidth: '1',
|
|
5317
|
+
strokeLinecap: 'round',
|
|
5318
|
+
strokeLinejoin: 'round'
|
|
5319
|
+
}), jsx("path", {
|
|
5320
|
+
d: 'M9.84447 9H20.9873C21.1108 9.04329 21.2227 9.11427 21.3144 9.20748C21.4062 9.3007 21.4754 9.41369 21.5168 9.53779C21.5582 9.66189 21.5706 9.79382 21.5531 9.92346C21.5356 10.0531 21.4887 10.177 21.4159 10.2857L17.1302 15V21L13.7016 18.4286V15L9.4159 10.2857C9.34312 10.177 9.29619 10.0531 9.27869 9.92346C9.2612 9.79382 9.27361 9.66189 9.31498 9.53779C9.35635 9.41369 9.42557 9.3007 9.51735 9.20748C9.60913 9.11427 9.72103 9.04329 9.84447 9Z',
|
|
5321
|
+
stroke: '#0F62FE',
|
|
5322
|
+
strokeWidth: '1',
|
|
5323
|
+
strokeLinecap: 'round',
|
|
5324
|
+
strokeLinejoin: 'round'
|
|
5325
5325
|
})]
|
|
5326
|
-
}),
|
|
5327
|
-
children:
|
|
5328
|
-
id:
|
|
5329
|
-
children:
|
|
5330
|
-
width:
|
|
5331
|
-
height:
|
|
5332
|
-
fill:
|
|
5333
|
-
transform:
|
|
5326
|
+
}), jsx("defs", {
|
|
5327
|
+
children: jsx("clipPath", {
|
|
5328
|
+
id: 'clip0_2242_8740',
|
|
5329
|
+
children: jsx("rect", {
|
|
5330
|
+
width: '24',
|
|
5331
|
+
height: '24',
|
|
5332
|
+
fill: 'white',
|
|
5333
|
+
transform: 'translate(0 0.5)'
|
|
5334
5334
|
})
|
|
5335
5335
|
})
|
|
5336
5336
|
})]
|
|
5337
5337
|
});
|
|
5338
5338
|
}
|
|
5339
|
-
return
|
|
5340
|
-
width:
|
|
5341
|
-
height:
|
|
5342
|
-
className: className,
|
|
5343
|
-
viewBox: "0 0 24 25",
|
|
5344
|
-
fill: "none",
|
|
5345
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
5346
|
-
children: [/*#__PURE__*/jsxs("g", {
|
|
5347
|
-
clipPath: "url(#clip0_2242_8740)",
|
|
5348
|
-
children: [/*#__PURE__*/jsx("path", {
|
|
5349
|
-
d: "M3.271 6H19.271",
|
|
5350
|
-
stroke: "#141920",
|
|
5351
|
-
strokeWidth: "1",
|
|
5352
|
-
strokeLinecap: "round",
|
|
5353
|
-
strokeLinejoin: "round"
|
|
5354
|
-
}), /*#__PURE__*/jsx("path", {
|
|
5355
|
-
d: "M3.271 12H7.271",
|
|
5356
|
-
stroke: "#141920",
|
|
5357
|
-
strokeWidth: "1",
|
|
5358
|
-
strokeLinecap: "round",
|
|
5359
|
-
strokeLinejoin: "round"
|
|
5360
|
-
}), /*#__PURE__*/jsx("path", {
|
|
5361
|
-
d: "M3.271 18H7.271",
|
|
5362
|
-
stroke: "#141920",
|
|
5363
|
-
strokeWidth: "1",
|
|
5364
|
-
strokeLinecap: "round",
|
|
5365
|
-
strokeLinejoin: "round"
|
|
5366
|
-
}), /*#__PURE__*/jsx("path", {
|
|
5367
|
-
d: "M9.84447 9H20.9873C21.1108 9.04329 21.2227 9.11427 21.3144 9.20748C21.4062 9.3007 21.4754 9.41369 21.5168 9.53779C21.5582 9.66189 21.5706 9.79382 21.5531 9.92346C21.5356 10.0531 21.4887 10.177 21.4159 10.2857L17.1302 15V21L13.7016 18.4286V15L9.4159 10.2857C9.34312 10.177 9.29619 10.0531 9.27869 9.92346C9.2612 9.79382 9.27361 9.66189 9.31498 9.53779C9.35635 9.41369 9.42557 9.3007 9.51735 9.20748C9.60913 9.11427 9.72103 9.04329 9.84447 9Z",
|
|
5368
|
-
stroke: "#141920",
|
|
5369
|
-
strokeWidth: "1",
|
|
5370
|
-
strokeLinecap: "round",
|
|
5371
|
-
strokeLinejoin: "round"
|
|
5372
|
-
})]
|
|
5373
|
-
}), /*#__PURE__*/jsx("defs", {
|
|
5374
|
-
children: /*#__PURE__*/jsx("clipPath", {
|
|
5375
|
-
id: "clip0_2242_8740",
|
|
5376
|
-
children: /*#__PURE__*/jsx("rect", {
|
|
5377
|
-
width: "24",
|
|
5378
|
-
height: "24",
|
|
5379
|
-
fill: "white",
|
|
5380
|
-
transform: "translate(0 0.5)"
|
|
5381
|
-
})
|
|
5382
|
-
})
|
|
5383
|
-
})]
|
|
5384
|
-
}) : /*#__PURE__*/jsxs("svg", {
|
|
5385
|
-
width: "24",
|
|
5386
|
-
height: "24",
|
|
5387
|
-
viewBox: "0 0 24 24",
|
|
5388
|
-
fill: "none",
|
|
5339
|
+
return jsxs("svg", {
|
|
5340
|
+
width: '1.5rem',
|
|
5341
|
+
height: '1.5rem',
|
|
5389
5342
|
className: className,
|
|
5390
|
-
|
|
5391
|
-
|
|
5392
|
-
|
|
5393
|
-
|
|
5394
|
-
|
|
5395
|
-
|
|
5396
|
-
|
|
5397
|
-
|
|
5398
|
-
|
|
5399
|
-
|
|
5400
|
-
|
|
5401
|
-
|
|
5402
|
-
|
|
5403
|
-
|
|
5404
|
-
|
|
5405
|
-
|
|
5406
|
-
|
|
5407
|
-
|
|
5408
|
-
|
|
5409
|
-
|
|
5410
|
-
|
|
5411
|
-
|
|
5412
|
-
|
|
5413
|
-
|
|
5414
|
-
|
|
5415
|
-
|
|
5416
|
-
|
|
5343
|
+
viewBox: '0 0 24 25',
|
|
5344
|
+
fill: 'none',
|
|
5345
|
+
xmlns: 'http://www.w3.org/2000/svg',
|
|
5346
|
+
children: [jsxs("g", {
|
|
5347
|
+
clipPath: 'url(#clip0_2242_8740)',
|
|
5348
|
+
children: [jsx("path", {
|
|
5349
|
+
d: 'M3.271 6H19.271',
|
|
5350
|
+
stroke: '#141920',
|
|
5351
|
+
strokeWidth: '1',
|
|
5352
|
+
strokeLinecap: 'round',
|
|
5353
|
+
strokeLinejoin: 'round'
|
|
5354
|
+
}), jsx("path", {
|
|
5355
|
+
d: 'M3.271 12H7.271',
|
|
5356
|
+
stroke: '#141920',
|
|
5357
|
+
strokeWidth: '1',
|
|
5358
|
+
strokeLinecap: 'round',
|
|
5359
|
+
strokeLinejoin: 'round'
|
|
5360
|
+
}), jsx("path", {
|
|
5361
|
+
d: 'M3.271 18H7.271',
|
|
5362
|
+
stroke: '#141920',
|
|
5363
|
+
strokeWidth: '1',
|
|
5364
|
+
strokeLinecap: 'round',
|
|
5365
|
+
strokeLinejoin: 'round'
|
|
5366
|
+
}), jsx("path", {
|
|
5367
|
+
d: 'M9.84447 9H20.9873C21.1108 9.04329 21.2227 9.11427 21.3144 9.20748C21.4062 9.3007 21.4754 9.41369 21.5168 9.53779C21.5582 9.66189 21.5706 9.79382 21.5531 9.92346C21.5356 10.0531 21.4887 10.177 21.4159 10.2857L17.1302 15V21L13.7016 18.4286V15L9.4159 10.2857C9.34312 10.177 9.29619 10.0531 9.27869 9.92346C9.2612 9.79382 9.27361 9.66189 9.31498 9.53779C9.35635 9.41369 9.42557 9.3007 9.51735 9.20748C9.60913 9.11427 9.72103 9.04329 9.84447 9Z',
|
|
5368
|
+
stroke: '#141920',
|
|
5369
|
+
strokeWidth: '1',
|
|
5370
|
+
strokeLinecap: 'round',
|
|
5371
|
+
strokeLinejoin: 'round'
|
|
5417
5372
|
})]
|
|
5418
|
-
}),
|
|
5419
|
-
children:
|
|
5420
|
-
id:
|
|
5421
|
-
children:
|
|
5422
|
-
width:
|
|
5423
|
-
height:
|
|
5424
|
-
fill:
|
|
5373
|
+
}), jsx("defs", {
|
|
5374
|
+
children: jsx("clipPath", {
|
|
5375
|
+
id: 'clip0_2242_8740',
|
|
5376
|
+
children: jsx("rect", {
|
|
5377
|
+
width: '24',
|
|
5378
|
+
height: '24',
|
|
5379
|
+
fill: 'white',
|
|
5380
|
+
transform: 'translate(0 0.5)'
|
|
5425
5381
|
})
|
|
5426
5382
|
})
|
|
5427
5383
|
})]
|
|
5428
5384
|
});
|
|
5429
5385
|
};
|
|
5430
|
-
ColumnFilter.defaultProps = {
|
|
5431
|
-
className: ''
|
|
5432
|
-
};
|
|
5433
|
-
|
|
5434
|
-
var Columns = function Columns(props) {
|
|
5435
|
-
var className = props.className;
|
|
5436
|
-
return /*#__PURE__*/jsx("svg", {
|
|
5437
|
-
className: className,
|
|
5438
|
-
width: "14",
|
|
5439
|
-
height: "15",
|
|
5440
|
-
viewBox: "0 0 14 15",
|
|
5441
|
-
fill: "#2A2A2A",
|
|
5442
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
5443
|
-
children: /*#__PURE__*/jsx("path", {
|
|
5444
|
-
d: "M12.25 1.17167H1.75002C1.59531 1.17167 1.44694 1.23313 1.33754 1.34252C1.22815 1.45192 1.16669 1.60029 1.16669 1.755V12.255C1.16669 12.4097 1.22815 12.5581 1.33754 12.6675C1.44694 12.7769 1.59531 12.8383 1.75002 12.8383H12.25C12.4047 12.8383 12.5531 12.7769 12.6625 12.6675C12.7719 12.5581 12.8334 12.4097 12.8334 12.255V1.755C12.8334 1.60029 12.7719 1.45192 12.6625 1.34252C12.5531 1.23313 12.4047 1.17167 12.25 1.17167ZM6.41669 11.6717H2.33335V2.33833H6.41669V11.6717ZM11.6667 11.6717H7.58335V2.33833H11.6667V11.6717Z"
|
|
5445
|
-
})
|
|
5446
|
-
});
|
|
5447
|
-
};
|
|
5448
|
-
Columns.defaultProps = {
|
|
5449
|
-
className: ''
|
|
5450
|
-
};
|
|
5451
5386
|
|
|
5452
5387
|
var Copy = function Copy(props) {
|
|
5453
5388
|
var className = props.className,
|
|
@@ -5484,79 +5419,73 @@ var Cross = function Cross(props) {
|
|
|
5484
5419
|
|
|
5485
5420
|
var Delete = function Delete(props) {
|
|
5486
5421
|
var className = props.className;
|
|
5487
|
-
return
|
|
5422
|
+
return jsx("svg", {
|
|
5488
5423
|
className: className,
|
|
5489
|
-
viewBox:
|
|
5490
|
-
fill:
|
|
5491
|
-
xmlns:
|
|
5492
|
-
children:
|
|
5493
|
-
d:
|
|
5424
|
+
viewBox: '0 0 18 20',
|
|
5425
|
+
fill: '#CD0000',
|
|
5426
|
+
xmlns: 'http://www.w3.org/2000/svg',
|
|
5427
|
+
children: jsx("path", {
|
|
5428
|
+
d: 'M7.16667 15.5C7.40978 15.5 7.64294 15.4034 7.81485 15.2315C7.98676 15.0596 8.08333 14.8264 8.08333 14.5833V9.08333C8.08333 8.84021 7.98676 8.60706 7.81485 8.43515C7.64294 8.26324 7.40978 8.16666 7.16667 8.16666C6.92355 8.16666 6.69039 8.26324 6.51849 8.43515C6.34658 8.60706 6.25 8.84021 6.25 9.08333V14.5833C6.25 14.8264 6.34658 15.0596 6.51849 15.2315C6.69039 15.4034 6.92355 15.5 7.16667 15.5ZM16.3333 4.49999H12.6667V3.58333C12.6667 2.85398 12.3769 2.15451 11.8612 1.63878C11.3455 1.12306 10.646 0.833328 9.91667 0.833328H8.08333C7.35399 0.833328 6.65451 1.12306 6.13879 1.63878C5.62306 2.15451 5.33333 2.85398 5.33333 3.58333V4.49999H1.66667C1.42355 4.49999 1.19039 4.59657 1.01849 4.76848C0.846577 4.94039 0.75 5.17355 0.75 5.41666C0.75 5.65978 0.846577 5.89293 1.01849 6.06484C1.19039 6.23675 1.42355 6.33333 1.66667 6.33333H2.58333V16.4167C2.58333 17.146 2.87306 17.8455 3.38879 18.3612C3.90451 18.8769 4.60399 19.1667 5.33333 19.1667H12.6667C13.396 19.1667 14.0955 18.8769 14.6112 18.3612C15.1269 17.8455 15.4167 17.146 15.4167 16.4167V6.33333H16.3333C16.5764 6.33333 16.8096 6.23675 16.9815 6.06484C17.1534 5.89293 17.25 5.65978 17.25 5.41666C17.25 5.17355 17.1534 4.94039 16.9815 4.76848C16.8096 4.59657 16.5764 4.49999 16.3333 4.49999ZM7.16667 3.58333C7.16667 3.34021 7.26324 3.10706 7.43515 2.93515C7.60706 2.76324 7.84022 2.66666 8.08333 2.66666H9.91667C10.1598 2.66666 10.3929 2.76324 10.5648 2.93515C10.7368 3.10706 10.8333 3.34021 10.8333 3.58333V4.49999H7.16667V3.58333ZM13.5833 16.4167C13.5833 16.6598 13.4868 16.8929 13.3148 17.0648C13.1429 17.2368 12.9098 17.3333 12.6667 17.3333H5.33333C5.09022 17.3333 4.85706 17.2368 4.68515 17.0648C4.51324 16.8929 4.41667 16.6598 4.41667 16.4167V6.33333H13.5833V16.4167ZM10.8333 15.5C11.0764 15.5 11.3096 15.4034 11.4815 15.2315C11.6534 15.0596 11.75 14.8264 11.75 14.5833V9.08333C11.75 8.84021 11.6534 8.60706 11.4815 8.43515C11.3096 8.26324 11.0764 8.16666 10.8333 8.16666C10.5902 8.16666 10.3571 8.26324 10.1852 8.43515C10.0132 8.60706 9.91667 8.84021 9.91667 9.08333V14.5833C9.91667 14.8264 10.0132 15.0596 10.1852 15.2315C10.3571 15.4034 10.5902 15.5 10.8333 15.5Z'
|
|
5494
5429
|
})
|
|
5495
5430
|
});
|
|
5496
5431
|
};
|
|
5497
|
-
Delete.defaultProps = {
|
|
5498
|
-
className: ''
|
|
5499
|
-
};
|
|
5500
5432
|
|
|
5501
5433
|
var Edit = function Edit(props) {
|
|
5502
5434
|
var className = props.className;
|
|
5503
|
-
return
|
|
5435
|
+
return jsxs("svg", {
|
|
5504
5436
|
className: className,
|
|
5505
|
-
viewBox:
|
|
5506
|
-
fill:
|
|
5507
|
-
stroke:
|
|
5508
|
-
xmlns:
|
|
5509
|
-
children: [
|
|
5510
|
-
clipPath:
|
|
5511
|
-
children: [
|
|
5512
|
-
d:
|
|
5513
|
-
strokeWidth:
|
|
5514
|
-
strokeLinecap:
|
|
5515
|
-
strokeLinejoin:
|
|
5516
|
-
}),
|
|
5517
|
-
d:
|
|
5518
|
-
strokeWidth:
|
|
5519
|
-
strokeLinecap:
|
|
5520
|
-
strokeLinejoin:
|
|
5521
|
-
}),
|
|
5522
|
-
d:
|
|
5523
|
-
strokeWidth:
|
|
5524
|
-
strokeLinecap:
|
|
5525
|
-
strokeLinejoin:
|
|
5437
|
+
viewBox: '0 0 16 17',
|
|
5438
|
+
fill: 'none',
|
|
5439
|
+
stroke: '#101010',
|
|
5440
|
+
xmlns: 'http://www.w3.org/2000/svg',
|
|
5441
|
+
children: [jsxs("g", {
|
|
5442
|
+
clipPath: 'url(#clip0_7396_6511)',
|
|
5443
|
+
children: [jsx("path", {
|
|
5444
|
+
d: 'M3.33341 11.4333L2.66675 14.0999L5.33341 13.4333L13.0001 5.7666C13.5524 5.21432 13.5524 4.31889 13.0001 3.7666C12.4478 3.21432 11.5524 3.21432 11.0001 3.7666L3.33341 11.4333Z',
|
|
5445
|
+
strokeWidth: '1.33333',
|
|
5446
|
+
strokeLinecap: 'round',
|
|
5447
|
+
strokeLinejoin: 'round'
|
|
5448
|
+
}), jsx("path", {
|
|
5449
|
+
d: 'M10 4.7666L12 6.7666',
|
|
5450
|
+
strokeWidth: '1.33333',
|
|
5451
|
+
strokeLinecap: 'round',
|
|
5452
|
+
strokeLinejoin: 'round'
|
|
5453
|
+
}), jsx("path", {
|
|
5454
|
+
d: 'M8.66675 14.0999H14.0001',
|
|
5455
|
+
strokeWidth: '1.33333',
|
|
5456
|
+
strokeLinecap: 'round',
|
|
5457
|
+
strokeLinejoin: 'round'
|
|
5526
5458
|
})]
|
|
5527
|
-
}),
|
|
5528
|
-
children:
|
|
5529
|
-
id:
|
|
5530
|
-
children:
|
|
5531
|
-
width:
|
|
5532
|
-
height:
|
|
5533
|
-
fill:
|
|
5534
|
-
transform:
|
|
5459
|
+
}), jsx("defs", {
|
|
5460
|
+
children: jsx("clipPath", {
|
|
5461
|
+
id: 'clip0_7396_6511',
|
|
5462
|
+
children: jsx("rect", {
|
|
5463
|
+
width: '16',
|
|
5464
|
+
height: '16',
|
|
5465
|
+
fill: 'white',
|
|
5466
|
+
transform: 'translate(0 0.766602)'
|
|
5535
5467
|
})
|
|
5536
5468
|
})
|
|
5537
5469
|
})]
|
|
5538
5470
|
});
|
|
5539
5471
|
};
|
|
5540
|
-
Edit.defaultProps = {
|
|
5541
|
-
className: ''
|
|
5542
|
-
};
|
|
5543
5472
|
|
|
5544
5473
|
var Email = function Email(props) {
|
|
5545
5474
|
var _props$className = props.className,
|
|
5546
5475
|
className = _props$className === void 0 ? '' : _props$className;
|
|
5547
|
-
return
|
|
5476
|
+
return jsx("svg", {
|
|
5548
5477
|
className: className,
|
|
5549
|
-
width:
|
|
5550
|
-
height:
|
|
5551
|
-
viewBox:
|
|
5552
|
-
fill:
|
|
5553
|
-
xmlns:
|
|
5554
|
-
children:
|
|
5555
|
-
d:
|
|
5556
|
-
stroke:
|
|
5557
|
-
strokeWidth:
|
|
5558
|
-
strokeLinecap:
|
|
5559
|
-
strokeLinejoin:
|
|
5478
|
+
width: '1rem',
|
|
5479
|
+
height: '1rem',
|
|
5480
|
+
viewBox: '0 0 24 24',
|
|
5481
|
+
fill: 'none',
|
|
5482
|
+
xmlns: 'http://www.w3.org/2000/svg',
|
|
5483
|
+
children: jsx("path", {
|
|
5484
|
+
d: 'M22 6C22 4.9 21.1 4 20 4H4C2.9 4 2 4.9 2 6M22 6V18C22 19.1 21.1 20 20 20H4C2.9 20 2 19.1 2 18V6M22 6L12 13L2 6',
|
|
5485
|
+
stroke: '#71839B',
|
|
5486
|
+
strokeWidth: '1.5',
|
|
5487
|
+
strokeLinecap: 'round',
|
|
5488
|
+
strokeLinejoin: 'round'
|
|
5560
5489
|
})
|
|
5561
5490
|
});
|
|
5562
5491
|
};
|
|
@@ -5770,32 +5699,17 @@ MagnifyingGlass.defaultProps = {
|
|
|
5770
5699
|
};
|
|
5771
5700
|
|
|
5772
5701
|
var Maximize = function Maximize(props) {
|
|
5773
|
-
var className = props.className
|
|
5774
|
-
|
|
5775
|
-
|
|
5776
|
-
|
|
5777
|
-
height: "1.5rem",
|
|
5702
|
+
var className = props.className;
|
|
5703
|
+
return jsx("svg", {
|
|
5704
|
+
width: '1.5rem',
|
|
5705
|
+
height: '1.5rem',
|
|
5778
5706
|
className: className,
|
|
5779
|
-
viewBox:
|
|
5780
|
-
fill:
|
|
5781
|
-
xmlns:
|
|
5782
|
-
children:
|
|
5783
|
-
d:
|
|
5707
|
+
viewBox: '0 0 14 15',
|
|
5708
|
+
fill: '#FFFFFF',
|
|
5709
|
+
xmlns: 'http://www.w3.org/2000/svg',
|
|
5710
|
+
children: jsx("path", {
|
|
5711
|
+
d: 'M13.95 1.66683C13.95 1.44582 13.8622 1.23385 13.706 1.07757C13.5497 0.921294 13.3377 0.833496 13.1167 0.833496H8.95003C8.72902 0.833496 8.51706 0.921294 8.36078 1.07757C8.2045 1.23385 8.1167 1.44582 8.1167 1.66683C8.1167 1.88784 8.2045 2.0998 8.36078 2.25608C8.51706 2.41237 8.72902 2.50016 8.95003 2.50016H11.0917L8.35837 5.24183C8.28026 5.3193 8.21826 5.41147 8.17596 5.51302C8.13365 5.61456 8.11187 5.72349 8.11187 5.8335C8.11187 5.94351 8.13365 6.05243 8.17596 6.15398C8.21826 6.25553 8.28026 6.34769 8.35837 6.42516C8.43583 6.50327 8.528 6.56526 8.62955 6.60757C8.7311 6.64988 8.84002 6.67166 8.95003 6.67166C9.06004 6.67166 9.16896 6.64988 9.27051 6.60757C9.37206 6.56526 9.46423 6.50327 9.5417 6.42516L12.2834 3.6835V5.8335C12.2834 6.05451 12.3712 6.26647 12.5274 6.42275C12.6837 6.57903 12.8957 6.66683 13.1167 6.66683C13.3377 6.66683 13.5497 6.57903 13.706 6.42275C13.8622 6.26647 13.95 6.05451 13.95 5.8335V1.66683ZM6.20837 8.57516C6.1309 8.49706 6.03873 8.43506 5.93718 8.39275C5.83563 8.35045 5.72671 8.32866 5.6167 8.32866C5.50669 8.32866 5.39777 8.35045 5.29622 8.39275C5.19467 8.43506 5.1025 8.49706 5.02503 8.57516L2.28337 11.3085V9.16683C2.28337 8.94582 2.19557 8.73385 2.03929 8.57757C1.88301 8.42129 1.67105 8.3335 1.45003 8.3335C1.22902 8.3335 1.01706 8.42129 0.860777 8.57757C0.704497 8.73385 0.616699 8.94582 0.616699 9.16683V13.3335C0.616699 13.5545 0.704497 13.7665 0.860777 13.9228C1.01706 14.079 1.22902 14.1668 1.45003 14.1668H5.6167C5.83771 14.1668 6.04967 14.079 6.20595 13.9228C6.36224 13.7665 6.45003 13.5545 6.45003 13.3335C6.45003 13.1125 6.36224 12.9005 6.20595 12.7442C6.04967 12.588 5.83771 12.5002 5.6167 12.5002H3.4667L6.20837 9.7585C6.28647 9.68103 6.34847 9.58886 6.39078 9.48731C6.43308 9.38576 6.45486 9.27684 6.45486 9.16683C6.45486 9.05682 6.43308 8.9479 6.39078 8.84635C6.34847 8.7448 6.28647 8.65263 6.20837 8.57516Z'
|
|
5784
5712
|
})
|
|
5785
|
-
}) : /*#__PURE__*/jsxs("svg", {
|
|
5786
|
-
className: className,
|
|
5787
|
-
width: "1.5rem",
|
|
5788
|
-
height: "1.5rem",
|
|
5789
|
-
viewBox: "0 0 20 20",
|
|
5790
|
-
fill: "#FFFFFF",
|
|
5791
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
5792
|
-
children: [/*#__PURE__*/jsx("path", {
|
|
5793
|
-
d: "M5.00011 15.625C4.84178 15.625 4.68345 15.5667 4.55845 15.4417C4.31678 15.2 4.31678 14.8 4.55845 14.5583L14.5584 4.55833C14.8001 4.31666 15.2001 4.31666 15.4418 4.55833C15.6834 4.79999 15.6834 5.19999 15.4418 5.44166L5.44178 15.4417C5.31678 15.5667 5.15845 15.625 5.00011 15.625Z"
|
|
5794
|
-
}), /*#__PURE__*/jsx("path", {
|
|
5795
|
-
d: "M15.0001 8.95833C14.6584 8.95833 14.3751 8.675 14.3751 8.33333V5.625H11.6667C11.3251 5.625 11.0417 5.34167 11.0417 5C11.0417 4.65833 11.3251 4.375 11.6667 4.375H15.0001C15.3417 4.375 15.6251 4.65833 15.6251 5V8.33333C15.6251 8.675 15.3417 8.95833 15.0001 8.95833Z"
|
|
5796
|
-
}), /*#__PURE__*/jsx("path", {
|
|
5797
|
-
d: "M8.33333 15.625H5C4.65833 15.625 4.375 15.3416 4.375 15V11.6666C4.375 11.325 4.65833 11.0416 5 11.0416C5.34167 11.0416 5.625 11.325 5.625 11.6666V14.375H8.33333C8.675 14.375 8.95833 14.6583 8.95833 15C8.95833 15.3416 8.675 15.625 8.33333 15.625Z"
|
|
5798
|
-
})]
|
|
5799
5713
|
});
|
|
5800
5714
|
};
|
|
5801
5715
|
|
|
@@ -6047,7 +5961,7 @@ var Tick = function Tick(props) {
|
|
|
6047
5961
|
return jsxs("svg", {
|
|
6048
5962
|
className: className,
|
|
6049
5963
|
viewBox: '0 0 13 12',
|
|
6050
|
-
fill: '
|
|
5964
|
+
fill: 'green',
|
|
6051
5965
|
xmlns: 'http://www.w3.org/2000/svg',
|
|
6052
5966
|
children: [jsx("g", {
|
|
6053
5967
|
clipPath: 'url(#clip0_638_154)',
|
|
@@ -10450,7 +10364,10 @@ var Popper = function Popper(_ref) {
|
|
|
10450
10364
|
_ref$className = _ref.className,
|
|
10451
10365
|
className = _ref$className === void 0 ? '' : _ref$className,
|
|
10452
10366
|
_ref$transparent = _ref.transparent,
|
|
10453
|
-
transparent = _ref$transparent === void 0 ? true : _ref$transparent
|
|
10367
|
+
transparent = _ref$transparent === void 0 ? true : _ref$transparent,
|
|
10368
|
+
lockScroll = _ref.lockScroll,
|
|
10369
|
+
_ref$withOverlay = _ref.withOverlay,
|
|
10370
|
+
withOverlay = _ref$withOverlay === void 0 ? true : _ref$withOverlay;
|
|
10454
10371
|
var id = useId$1();
|
|
10455
10372
|
var portalId = "".concat(wrapperId).concat(id);
|
|
10456
10373
|
useEffect(function () {
|
|
@@ -10461,14 +10378,18 @@ var Popper = function Popper(_ref) {
|
|
|
10461
10378
|
}
|
|
10462
10379
|
};
|
|
10463
10380
|
}, [portalId]);
|
|
10381
|
+
var resolvedLock = lockScroll !== null && lockScroll !== void 0 ? lockScroll : withOverlay;
|
|
10464
10382
|
return jsx(FloatingPortal, {
|
|
10465
10383
|
id: portalId,
|
|
10466
10384
|
children: jsx(AnimatePresence, {
|
|
10467
|
-
children: open && jsx(FloatingOverlay, {
|
|
10468
|
-
lockScroll:
|
|
10385
|
+
children: open && (withOverlay ? jsx(FloatingOverlay, {
|
|
10386
|
+
lockScroll: resolvedLock,
|
|
10469
10387
|
className: classes(modules_fe46b225.backdrop, transparent ? modules_fe46b225.transparent : '', backdrop ? '' : modules_fe46b225['hide-backdrop'], className),
|
|
10470
10388
|
children: children
|
|
10471
|
-
})
|
|
10389
|
+
}) : jsx("div", {
|
|
10390
|
+
className: className,
|
|
10391
|
+
children: children
|
|
10392
|
+
}))
|
|
10472
10393
|
})
|
|
10473
10394
|
});
|
|
10474
10395
|
};
|
|
@@ -10553,8 +10474,7 @@ var Alert = function Alert(_ref, ref) {
|
|
|
10553
10474
|
switch (type) {
|
|
10554
10475
|
case 'info':
|
|
10555
10476
|
Icon = jsx(AlertIcon.Info, {
|
|
10556
|
-
className: modules_3a764ea3.icon
|
|
10557
|
-
v2: true
|
|
10477
|
+
className: modules_3a764ea3.icon
|
|
10558
10478
|
});
|
|
10559
10479
|
break;
|
|
10560
10480
|
case 'error':
|
|
@@ -10564,20 +10484,17 @@ var Alert = function Alert(_ref, ref) {
|
|
|
10564
10484
|
break;
|
|
10565
10485
|
case 'warning':
|
|
10566
10486
|
Icon = jsx(AlertIcon.Warning, {
|
|
10567
|
-
className: modules_3a764ea3.icon
|
|
10568
|
-
v2: true
|
|
10487
|
+
className: modules_3a764ea3.icon
|
|
10569
10488
|
});
|
|
10570
10489
|
break;
|
|
10571
10490
|
case 'success':
|
|
10572
10491
|
Icon = jsx(AlertIcon.Success, {
|
|
10573
|
-
className: modules_3a764ea3.icon
|
|
10574
|
-
v2: true
|
|
10492
|
+
className: modules_3a764ea3.icon
|
|
10575
10493
|
});
|
|
10576
10494
|
break;
|
|
10577
10495
|
case 'danger':
|
|
10578
10496
|
Icon = jsx(AlertIcon.Danger, {
|
|
10579
|
-
className: modules_3a764ea3.icon
|
|
10580
|
-
v2: true
|
|
10497
|
+
className: modules_3a764ea3.icon
|
|
10581
10498
|
});
|
|
10582
10499
|
break;
|
|
10583
10500
|
default:
|
|
@@ -10639,7 +10556,8 @@ var Alert = function Alert(_ref, ref) {
|
|
|
10639
10556
|
return jsx(Popper, {
|
|
10640
10557
|
open: open,
|
|
10641
10558
|
className: modules_3a764ea3.popper,
|
|
10642
|
-
|
|
10559
|
+
wrapperId: 'alert-popper',
|
|
10560
|
+
lockScroll: false,
|
|
10643
10561
|
children: jsxs("div", _objectSpread2(_objectSpread2({}, getFloatingProps({
|
|
10644
10562
|
ref: floating,
|
|
10645
10563
|
className: classes(modules_3a764ea3.root, modules_3a764ea3[type], shadow ? modules_3a764ea3.shadow : '', modules_3a764ea3["position-".concat(position)], className)
|
|
@@ -10697,7 +10615,6 @@ var resolveOffset = function resolveOffset(user) {
|
|
|
10697
10615
|
}, user);
|
|
10698
10616
|
};
|
|
10699
10617
|
var Popover = function Popover(_ref) {
|
|
10700
|
-
var _middlewareOptions$fl;
|
|
10701
10618
|
var children = _ref.children,
|
|
10702
10619
|
anchorEl = _ref.anchorEl,
|
|
10703
10620
|
open = _ref.open,
|
|
@@ -10705,20 +10622,24 @@ var Popover = function Popover(_ref) {
|
|
|
10705
10622
|
className = _ref.className,
|
|
10706
10623
|
_ref$transparent = _ref.transparent,
|
|
10707
10624
|
transparent = _ref$transparent === void 0 ? true : _ref$transparent,
|
|
10708
|
-
|
|
10709
|
-
onClose = _ref$onClose === void 0 ? function () {} : _ref$onClose,
|
|
10625
|
+
onClose = _ref.onClose,
|
|
10710
10626
|
_ref$placement = _ref.placement,
|
|
10711
10627
|
placement = _ref$placement === void 0 ? 'bottom' : _ref$placement,
|
|
10712
10628
|
_ref$theme = _ref.theme,
|
|
10713
10629
|
theme = _ref$theme === void 0 ? 'light' : _ref$theme,
|
|
10714
|
-
middlewareOptions = _ref.middlewareOptions
|
|
10630
|
+
middlewareOptions = _ref.middlewareOptions,
|
|
10631
|
+
lockScroll = _ref.lockScroll,
|
|
10632
|
+
_ref$withOverlay = _ref.withOverlay,
|
|
10633
|
+
withOverlay = _ref$withOverlay === void 0 ? true : _ref$withOverlay;
|
|
10715
10634
|
var offsetArg = resolveOffset(middlewareOptions === null || middlewareOptions === void 0 ? void 0 : middlewareOptions.offset);
|
|
10716
10635
|
var flipArg = _objectSpread2({
|
|
10717
10636
|
padding: 8
|
|
10718
|
-
},
|
|
10719
|
-
var _useFloating = useFloating({
|
|
10720
|
-
open: open
|
|
10721
|
-
|
|
10637
|
+
}, middlewareOptions !== null && middlewareOptions !== void 0 && middlewareOptions.flip && _typeof$1(middlewareOptions.flip) === 'object' ? _objectSpread2({}, middlewareOptions.flip) : {});
|
|
10638
|
+
var _useFloating = useFloating(_objectSpread2(_objectSpread2(_objectSpread2({}, open && {
|
|
10639
|
+
open: open
|
|
10640
|
+
}), setOpen && {
|
|
10641
|
+
onOpenChange: setOpen
|
|
10642
|
+
}), {}, {
|
|
10722
10643
|
placement: placement,
|
|
10723
10644
|
whileElementsMounted: autoUpdate,
|
|
10724
10645
|
middleware: [offset(offsetArg), shift(middlewareOptions === null || middlewareOptions === void 0 ? void 0 : middlewareOptions.shift), flip(flipArg), size({
|
|
@@ -10727,14 +10648,14 @@ var Popover = function Popover(_ref) {
|
|
|
10727
10648
|
availableHeight = _ref2.availableHeight,
|
|
10728
10649
|
elements = _ref2.elements;
|
|
10729
10650
|
Object.assign(elements.floating.style, {
|
|
10730
|
-
width: "".concat(rects.reference.width, "px"),
|
|
10651
|
+
width: "".concat(rects.reference.width.toString(), "px"),
|
|
10731
10652
|
minWidth: 'fit-content',
|
|
10732
|
-
maxHeight: "".concat(availableHeight, "px")
|
|
10653
|
+
maxHeight: "".concat(availableHeight.toString(), "px")
|
|
10733
10654
|
});
|
|
10734
10655
|
},
|
|
10735
10656
|
padding: 8
|
|
10736
10657
|
})]
|
|
10737
|
-
}),
|
|
10658
|
+
})),
|
|
10738
10659
|
x = _useFloating.x,
|
|
10739
10660
|
y = _useFloating.y,
|
|
10740
10661
|
reference = _useFloating.reference,
|
|
@@ -10744,7 +10665,7 @@ var Popover = function Popover(_ref) {
|
|
|
10744
10665
|
var _useInteractions = useInteractions([useDismiss(context)]),
|
|
10745
10666
|
getFloatingProps = _useInteractions.getFloatingProps;
|
|
10746
10667
|
useEffect(function () {
|
|
10747
|
-
if (!open) onClose();
|
|
10668
|
+
if (!open) onClose === null || onClose === void 0 || onClose();
|
|
10748
10669
|
}, [open, onClose]);
|
|
10749
10670
|
useLayoutEffect(function () {
|
|
10750
10671
|
reference(anchorEl);
|
|
@@ -10753,6 +10674,8 @@ var Popover = function Popover(_ref) {
|
|
|
10753
10674
|
open: open,
|
|
10754
10675
|
wrapperId: 'popover',
|
|
10755
10676
|
transparent: transparent,
|
|
10677
|
+
lockScroll: lockScroll,
|
|
10678
|
+
withOverlay: withOverlay,
|
|
10756
10679
|
children: jsx("div", _objectSpread2(_objectSpread2({}, getFloatingProps({
|
|
10757
10680
|
ref: floating,
|
|
10758
10681
|
style: {
|
|
@@ -10885,32 +10808,27 @@ var Callout = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
10885
10808
|
switch (type) {
|
|
10886
10809
|
case 'info':
|
|
10887
10810
|
Icon = jsx(AlertIcon.Info, {
|
|
10888
|
-
className: modules_b6de2704.icon
|
|
10889
|
-
v2: true
|
|
10811
|
+
className: modules_b6de2704.icon
|
|
10890
10812
|
});
|
|
10891
10813
|
break;
|
|
10892
10814
|
case 'error':
|
|
10893
10815
|
Icon = jsx(AlertIcon.Error, {
|
|
10894
|
-
className: modules_b6de2704.icon
|
|
10895
|
-
v2: true
|
|
10816
|
+
className: modules_b6de2704.icon
|
|
10896
10817
|
});
|
|
10897
10818
|
break;
|
|
10898
10819
|
case 'warning':
|
|
10899
10820
|
Icon = jsx(AlertIcon.Warning, {
|
|
10900
|
-
className: modules_b6de2704.icon
|
|
10901
|
-
v2: true
|
|
10821
|
+
className: modules_b6de2704.icon
|
|
10902
10822
|
});
|
|
10903
10823
|
break;
|
|
10904
10824
|
case 'success':
|
|
10905
10825
|
Icon = jsx(AlertIcon.Success, {
|
|
10906
|
-
className: modules_b6de2704.icon
|
|
10907
|
-
v2: true
|
|
10826
|
+
className: modules_b6de2704.icon
|
|
10908
10827
|
});
|
|
10909
10828
|
break;
|
|
10910
10829
|
case 'danger':
|
|
10911
10830
|
Icon = jsx(AlertIcon.Danger, {
|
|
10912
|
-
className: modules_b6de2704.icon
|
|
10913
|
-
v2: true
|
|
10831
|
+
className: modules_b6de2704.icon
|
|
10914
10832
|
});
|
|
10915
10833
|
break;
|
|
10916
10834
|
default:
|
|
@@ -15763,105 +15681,109 @@ var BasePieChart = function BasePieChart(props) {
|
|
|
15763
15681
|
})]
|
|
15764
15682
|
});
|
|
15765
15683
|
};
|
|
15766
|
-
|
|
15767
|
-
var css$O = ".
|
|
15768
|
-
var modules_c548043f = {"root":"
|
|
15769
|
-
n(css$O,{});
|
|
15770
|
-
|
|
15684
|
+
|
|
15685
|
+
var css$O = ".CodeSnippet_module_root__292230a0 {\n padding: 0.5rem, 1rem;\n position: relative;\n}\n.CodeSnippet_module_root__292230a0 .CodeSnippet_module_code__292230a0 {\n font-family: monospace;\n font-size: 1rem;\n}\n.CodeSnippet_module_root__292230a0 .CodeSnippet_module_copy__292230a0 {\n visibility: hidden;\n position: absolute;\n padding: 0 !important;\n width: 2.25rem;\n height: 2.25rem;\n right: 1rem;\n top: 1rem;\n background-color: transparent !important;\n}\n.CodeSnippet_module_root__292230a0 .CodeSnippet_module_copy__292230a0 [data-elem=title] {\n box-shadow: 0px 0px 0.125rem 0px rgba(0, 0, 0, 0.35);\n border-radius: 0.25rem;\n padding: 0.35rem;\n}\n.CodeSnippet_module_root__292230a0 .CodeSnippet_module_copy__292230a0 [data-elem=title] > span {\n display: inline-flex;\n}\n.CodeSnippet_module_root__292230a0:hover .CodeSnippet_module_copy__292230a0 {\n visibility: visible;\n position: absolute;\n right: 1rem;\n top: 1rem;\n}\n.CodeSnippet_module_root__292230a0:hover .CodeSnippet_module_copy__292230a0 .CodeSnippet_module_icon__292230a0 {\n width: 1.25rem;\n height: 1.25rem;\n fill: rgba(0, 0, 0, 0.75);\n}\n\n.CodeSnippet_module_tick__292230a0 {\n width: 1.25rem;\n height: 1.25rem;\n}";
|
|
15686
|
+
var modules_c548043f = {"root":"CodeSnippet_module_root__292230a0","code":"CodeSnippet_module_code__292230a0","copy":"CodeSnippet_module_copy__292230a0","icon":"CodeSnippet_module_icon__292230a0","tick":"CodeSnippet_module_tick__292230a0"};
|
|
15687
|
+
n(css$O,{});
|
|
15688
|
+
|
|
15689
|
+
var MotionSpan = motion.span;
|
|
15690
|
+
var copyIconProps = {
|
|
15691
|
+
initial: {
|
|
15692
|
+
opacity: 0,
|
|
15693
|
+
y: 5
|
|
15694
|
+
},
|
|
15695
|
+
animate: {
|
|
15696
|
+
opacity: 1,
|
|
15697
|
+
y: 0
|
|
15698
|
+
},
|
|
15699
|
+
exit: {
|
|
15700
|
+
opacity: 0,
|
|
15701
|
+
y: -5
|
|
15702
|
+
},
|
|
15703
|
+
transition: {
|
|
15704
|
+
duration: 0.2
|
|
15705
|
+
}
|
|
15706
|
+
};
|
|
15707
|
+
var tickIconProps = {
|
|
15708
|
+
initial: {
|
|
15709
|
+
scale: 0,
|
|
15710
|
+
opacity: 0
|
|
15711
|
+
},
|
|
15712
|
+
animate: {
|
|
15713
|
+
scale: 1.2,
|
|
15714
|
+
opacity: 1
|
|
15715
|
+
},
|
|
15716
|
+
exit: {
|
|
15717
|
+
scale: 0,
|
|
15718
|
+
opacity: 0
|
|
15719
|
+
},
|
|
15720
|
+
transition: {
|
|
15721
|
+
type: 'spring',
|
|
15722
|
+
stiffness: 400,
|
|
15723
|
+
damping: 15
|
|
15724
|
+
}
|
|
15725
|
+
};
|
|
15726
|
+
var CopyButton = function CopyButton(_ref) {
|
|
15727
|
+
var code = _ref.code;
|
|
15728
|
+
var _useState = useState(false),
|
|
15729
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
15730
|
+
copied = _useState2[0],
|
|
15731
|
+
setCopied = _useState2[1];
|
|
15732
|
+
var onCopy = /*#__PURE__*/function () {
|
|
15733
|
+
var _ref2 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee() {
|
|
15734
|
+
return _regenerator().w(function (_context) {
|
|
15735
|
+
while (1) switch (_context.n) {
|
|
15736
|
+
case 0:
|
|
15737
|
+
setCopied(true);
|
|
15738
|
+
_context.n = 1;
|
|
15739
|
+
return navigator.clipboard.writeText(code);
|
|
15740
|
+
case 1:
|
|
15741
|
+
setTimeout(function () {
|
|
15742
|
+
setCopied(false);
|
|
15743
|
+
}, 1000);
|
|
15744
|
+
case 2:
|
|
15745
|
+
return _context.a(2);
|
|
15746
|
+
}
|
|
15747
|
+
}, _callee);
|
|
15748
|
+
}));
|
|
15749
|
+
return function onCopy() {
|
|
15750
|
+
return _ref2.apply(this, arguments);
|
|
15751
|
+
};
|
|
15752
|
+
}();
|
|
15753
|
+
return jsx(Button, {
|
|
15754
|
+
title: jsx(AnimatePresence, {
|
|
15755
|
+
mode: 'popLayout',
|
|
15756
|
+
initial: false,
|
|
15757
|
+
children: !copied ? jsx(MotionSpan, _objectSpread2(_objectSpread2({
|
|
15758
|
+
title: 'Copy'
|
|
15759
|
+
}, copyIconProps), {}, {
|
|
15760
|
+
children: jsx(Copy, {
|
|
15761
|
+
className: modules_c548043f.icon
|
|
15762
|
+
})
|
|
15763
|
+
}), 'copy') : jsx(MotionSpan, _objectSpread2(_objectSpread2({}, tickIconProps), {}, {
|
|
15764
|
+
className: 'flex items-center',
|
|
15765
|
+
children: jsx(Tick, {
|
|
15766
|
+
className: modules_c548043f.tick
|
|
15767
|
+
})
|
|
15768
|
+
}), 'tick')
|
|
15769
|
+
}),
|
|
15770
|
+
className: modules_c548043f.copy,
|
|
15771
|
+
onClick: onCopy
|
|
15772
|
+
});
|
|
15773
|
+
};
|
|
15771
15774
|
var CodeSnippet = function CodeSnippet(props) {
|
|
15772
|
-
var copy = props.copy,
|
|
15775
|
+
var _props$copy = props.copy,
|
|
15776
|
+
copy = _props$copy === void 0 ? false : _props$copy,
|
|
15773
15777
|
_props$code = props.code,
|
|
15774
15778
|
code = _props$code === void 0 ? '{}' : _props$code,
|
|
15775
15779
|
_props$language = props.language,
|
|
15776
15780
|
language = _props$language === void 0 ? 'json' : _props$language,
|
|
15777
|
-
|
|
15781
|
+
_props$showLineNumber = props.showLineNumbers,
|
|
15782
|
+
showLineNumbers = _props$showLineNumber === void 0 ? false : _props$showLineNumber,
|
|
15778
15783
|
_props$theme = props.theme,
|
|
15779
15784
|
theme = _props$theme === void 0 ? 'light' : _props$theme,
|
|
15780
15785
|
_props$className = props.className,
|
|
15781
|
-
className = _props$className === void 0 ? '' : _props$className
|
|
15782
|
-
_props$onClick = props.onClick,
|
|
15783
|
-
_onClick = _props$onClick === void 0 ? function () {} : _props$onClick,
|
|
15784
|
-
parentKeyToSelect = props.parentKeyToSelect;
|
|
15785
|
-
var _useState = useState(null),
|
|
15786
|
-
_useState2 = _slicedToArray(_useState, 2),
|
|
15787
|
-
parentNode = _useState2[0],
|
|
15788
|
-
setParentNode = _useState2[1];
|
|
15789
|
-
var alertRef = useRef(Alert$1);
|
|
15790
|
-
var onCopy = function onCopy() {
|
|
15791
|
-
var _alertRef$current;
|
|
15792
|
-
navigator.clipboard.writeText(code);
|
|
15793
|
-
(_alertRef$current = alertRef.current) === null || _alertRef$current === void 0 || _alertRef$current.alert({
|
|
15794
|
-
title: "".concat(language === null || language === void 0 ? void 0 : language.toUpperCase()),
|
|
15795
|
-
description: 'The code has been copied to the clipboard',
|
|
15796
|
-
type: 'info',
|
|
15797
|
-
icon: function icon(args) {
|
|
15798
|
-
return /*#__PURE__*/jsx(Copy, _objectSpread2({}, args));
|
|
15799
|
-
}
|
|
15800
|
-
});
|
|
15801
|
-
};
|
|
15802
|
-
function findKeyPath(obj, targetKey) {
|
|
15803
|
-
var currentPath = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : '';
|
|
15804
|
-
var keys = Object.keys(obj);
|
|
15805
|
-
// eslint-disable-next-line no-restricted-syntax
|
|
15806
|
-
for (var _i = 0, _keys = keys; _i < _keys.length; _i++) {
|
|
15807
|
-
var key = _keys[_i];
|
|
15808
|
-
var newPath = currentPath ? "".concat(currentPath, "/").concat(key) : key;
|
|
15809
|
-
if (key === targetKey) {
|
|
15810
|
-
// Display the full path of the key from the object
|
|
15811
|
-
return newPath;
|
|
15812
|
-
}
|
|
15813
|
-
if (parentKeyToSelect && !currentPath) {
|
|
15814
|
-
var nestedPath = findKeyPath(obj[parentKeyToSelect], targetKey, parentKeyToSelect);
|
|
15815
|
-
if (nestedPath) {
|
|
15816
|
-
return nestedPath;
|
|
15817
|
-
}
|
|
15818
|
-
}
|
|
15819
|
-
if (obj[key] && _typeof$1(obj[key]) === 'object') {
|
|
15820
|
-
// Recursively search nested keys
|
|
15821
|
-
var _nestedPath = findKeyPath(obj[key], targetKey, newPath);
|
|
15822
|
-
if (_nestedPath) {
|
|
15823
|
-
return _nestedPath;
|
|
15824
|
-
}
|
|
15825
|
-
}
|
|
15826
|
-
}
|
|
15827
|
-
return '';
|
|
15828
|
-
}
|
|
15829
|
-
var handleCodeClick = function handleCodeClick(event) {
|
|
15830
|
-
var _event$target$childre;
|
|
15831
|
-
var hasNoChildren = ((_event$target$childre = event.target.children) === null || _event$target$childre === void 0 ? void 0 : _event$target$childre.length) === 0;
|
|
15832
|
-
if (language === 'json' && hasNoChildren) {
|
|
15833
|
-
try {
|
|
15834
|
-
var parsedCode = JSON.parse(code);
|
|
15835
|
-
var clickedKey = event.target.textContent.replace(/"/g, '').trim();
|
|
15836
|
-
|
|
15837
|
-
// Check for a direct match in top-level keys
|
|
15838
|
-
var matchingKey = Object.keys(parsedCode).find(function (key) {
|
|
15839
|
-
return String(parsedCode[key]) === clickedKey;
|
|
15840
|
-
});
|
|
15841
|
-
if (matchingKey) {
|
|
15842
|
-
return matchingKey;
|
|
15843
|
-
}
|
|
15844
|
-
// Check for nested keys
|
|
15845
|
-
var keyPath = findKeyPath(parsedCode, clickedKey);
|
|
15846
|
-
if (keyPath) {
|
|
15847
|
-
event.target.parentNode.style.backgroundColor = theme === 'light' ? '#333' : 'white';
|
|
15848
|
-
if (parentNode) {
|
|
15849
|
-
parentNode.style.backgroundColor = '';
|
|
15850
|
-
if (event.target.parentNode === parentNode) {
|
|
15851
|
-
setParentNode(null);
|
|
15852
|
-
return null;
|
|
15853
|
-
}
|
|
15854
|
-
}
|
|
15855
|
-
setParentNode(event.target.parentNode);
|
|
15856
|
-
return keyPath;
|
|
15857
|
-
}
|
|
15858
|
-
return clickedKey;
|
|
15859
|
-
} catch (error) {
|
|
15860
|
-
return error;
|
|
15861
|
-
}
|
|
15862
|
-
}
|
|
15863
|
-
return null;
|
|
15864
|
-
};
|
|
15786
|
+
className = _props$className === void 0 ? '' : _props$className;
|
|
15865
15787
|
var syntaxHighlighterProps = {
|
|
15866
15788
|
showLineNumbers: showLineNumbers,
|
|
15867
15789
|
language: language,
|
|
@@ -15870,38 +15792,17 @@ var CodeSnippet = function CodeSnippet(props) {
|
|
|
15870
15792
|
codeTagProps: {
|
|
15871
15793
|
className: classes(modules_c548043f.code, className)
|
|
15872
15794
|
},
|
|
15873
|
-
style: theme === 'light' ? coldarkCold : coldarkDark
|
|
15874
|
-
onClick: function onClick(event) {
|
|
15875
|
-
return _onClick(event, handleCodeClick);
|
|
15876
|
-
}
|
|
15795
|
+
style: theme === 'light' ? coldarkCold : coldarkDark
|
|
15877
15796
|
};
|
|
15878
|
-
return
|
|
15879
|
-
|
|
15880
|
-
|
|
15881
|
-
children:
|
|
15882
|
-
|
|
15883
|
-
|
|
15884
|
-
className: modules_c548043f.copy,
|
|
15885
|
-
onClick: onCopy,
|
|
15886
|
-
children: /*#__PURE__*/jsx(Copy, {
|
|
15887
|
-
className: classes(modules_c548043f.icon)
|
|
15888
|
-
})
|
|
15889
|
-
})]
|
|
15890
|
-
}), /*#__PURE__*/jsx(Alert$1, {
|
|
15891
|
-
ref: alertRef
|
|
15797
|
+
return jsxs("div", {
|
|
15798
|
+
className: modules_c548043f.root,
|
|
15799
|
+
children: [jsx(Prism, _objectSpread2(_objectSpread2({}, syntaxHighlighterProps), {}, {
|
|
15800
|
+
children: code
|
|
15801
|
+
})), copy && jsx(CopyButton, {
|
|
15802
|
+
code: code
|
|
15892
15803
|
})]
|
|
15893
15804
|
});
|
|
15894
15805
|
};
|
|
15895
|
-
CodeSnippet.propTypes = {
|
|
15896
|
-
copy: propTypesExports.bool,
|
|
15897
|
-
code: propTypesExports.string,
|
|
15898
|
-
language: propTypesExports.string,
|
|
15899
|
-
showLineNumbers: propTypesExports.bool,
|
|
15900
|
-
theme: propTypesExports.string,
|
|
15901
|
-
className: propTypesExports.string,
|
|
15902
|
-
onClick: propTypesExports.func,
|
|
15903
|
-
parentKeyToSelect: propTypesExports.string
|
|
15904
|
-
};
|
|
15905
15806
|
|
|
15906
15807
|
var useOutsideClickListener = function useOutsideClickListener(callback, ref) {
|
|
15907
15808
|
useEffect(function () {
|
|
@@ -16165,6 +16066,7 @@ var css$M = ".BaseModal_module_root__627cb2d4 {\n display: flex;\n flex-direct
|
|
|
16165
16066
|
var modules_f23ae002 = {"root":"BaseModal_module_root__627cb2d4","body":"BaseModal_module_body__627cb2d4","header":"BaseModal_module_header__627cb2d4","footer":"BaseModal_module_footer__627cb2d4","dismiss":"BaseModal_module_dismiss__627cb2d4","close":"BaseModal_module_close__627cb2d4","icon":"BaseModal_module_icon__627cb2d4"};
|
|
16166
16067
|
n(css$M,{});
|
|
16167
16068
|
|
|
16069
|
+
var MotionFooter = motion.footer;
|
|
16168
16070
|
var footerAnimations = {
|
|
16169
16071
|
initial: {
|
|
16170
16072
|
opacity: 0,
|
|
@@ -16181,32 +16083,31 @@ var footerAnimations = {
|
|
|
16181
16083
|
var ModalHeader = function ModalHeader(_ref) {
|
|
16182
16084
|
var title = _ref.title,
|
|
16183
16085
|
description = _ref.description;
|
|
16184
|
-
return
|
|
16185
|
-
children: [
|
|
16186
|
-
component:
|
|
16187
|
-
variant:
|
|
16086
|
+
return jsxs(Fragment, {
|
|
16087
|
+
children: [jsx(Text, {
|
|
16088
|
+
component: 'h2',
|
|
16089
|
+
variant: 'h2',
|
|
16188
16090
|
weight: 600,
|
|
16189
16091
|
children: title
|
|
16190
|
-
}),
|
|
16191
|
-
component:
|
|
16192
|
-
variant:
|
|
16092
|
+
}), jsx(Text, {
|
|
16093
|
+
component: 'span',
|
|
16094
|
+
variant: 'b1',
|
|
16193
16095
|
weight: 400,
|
|
16194
16096
|
children: description
|
|
16195
16097
|
})]
|
|
16196
16098
|
});
|
|
16197
16099
|
};
|
|
16198
16100
|
var ModalFooter = function ModalFooter(props) {
|
|
16199
|
-
var
|
|
16200
|
-
|
|
16201
|
-
|
|
16202
|
-
|
|
16203
|
-
|
|
16204
|
-
|
|
16205
|
-
|
|
16206
|
-
|
|
16207
|
-
|
|
16208
|
-
|
|
16209
|
-
loading = _ref2.loading;
|
|
16101
|
+
var _props$actionTitle = props.actionTitle,
|
|
16102
|
+
actionTitle = _props$actionTitle === void 0 ? 'Save' : _props$actionTitle,
|
|
16103
|
+
_props$disabled = props.disabled,
|
|
16104
|
+
disabled = _props$disabled === void 0 ? {} : _props$disabled,
|
|
16105
|
+
_props$cancelTitle = props.cancelTitle,
|
|
16106
|
+
cancelTitle = _props$cancelTitle === void 0 ? 'Cancel' : _props$cancelTitle,
|
|
16107
|
+
onAction = props.onAction,
|
|
16108
|
+
onDismiss = props.onDismiss,
|
|
16109
|
+
toggle = props.toggle,
|
|
16110
|
+
loading = props.loading;
|
|
16210
16111
|
var handleAction = function handleAction() {
|
|
16211
16112
|
if (loading) {
|
|
16212
16113
|
return;
|
|
@@ -16217,13 +16118,13 @@ var ModalFooter = function ModalFooter(props) {
|
|
|
16217
16118
|
onDismiss === null || onDismiss === void 0 || onDismiss();
|
|
16218
16119
|
toggle === null || toggle === void 0 || toggle();
|
|
16219
16120
|
};
|
|
16220
|
-
return
|
|
16221
|
-
children: [
|
|
16121
|
+
return jsxs(Fragment, {
|
|
16122
|
+
children: [jsx(Button, {
|
|
16222
16123
|
className: modules_f23ae002.dismiss,
|
|
16223
16124
|
title: cancelTitle,
|
|
16224
16125
|
onClick: handleDismiss,
|
|
16225
16126
|
disabled: disabled.cancel
|
|
16226
|
-
}),
|
|
16127
|
+
}), jsx(Button, {
|
|
16227
16128
|
className: modules_f23ae002.action,
|
|
16228
16129
|
title: actionTitle,
|
|
16229
16130
|
onClick: handleAction,
|
|
@@ -16252,23 +16153,12 @@ var DEFAULT_ANIMATION_PROPS = {
|
|
|
16252
16153
|
duration: 0.15
|
|
16253
16154
|
}
|
|
16254
16155
|
};
|
|
16255
|
-
|
|
16256
16156
|
/**
|
|
16257
16157
|
* Renders a modal dialog with customizable header, body, and footer content.
|
|
16258
16158
|
* Manages the modal's open state and provides a toggle function.
|
|
16259
16159
|
* Handles dismiss interactions, such as clicking outside the modal or pressing the Escape key.
|
|
16260
|
-
*
|
|
16261
|
-
* @param {string} className - The CSS class name for the modal container.
|
|
16262
|
-
* @param {string} popperClassName - The CSS class name for the popper container.
|
|
16263
|
-
* @param {ReactElement|Function} renderHeader - The content to render in the modal header.
|
|
16264
|
-
* @param {ReactElement} children - The content to render in the modal body.
|
|
16265
|
-
* @param {ReactElement|Function} renderFooter - The content to render in the modal footer.
|
|
16266
|
-
* @param {Function} toggle - A function to toggle the modal's open state.
|
|
16267
|
-
* @param {boolean} open - The open state of the modal.
|
|
16268
|
-
* @param {boolean} noDismiss - If true, the modal cannot be dismissed by clicking outside or pressing the Escape key.
|
|
16269
|
-
* @param {boolean} hideCrossDismiss - If true, it will hide the cross close button from the top right of the modal.
|
|
16270
|
-
* @returns {ReactElement} The rendered modal dialog.
|
|
16271
16160
|
*/
|
|
16161
|
+
// eslint-disable-next-line react/function-component-definition
|
|
16272
16162
|
var BaseModal = function BaseModal(props) {
|
|
16273
16163
|
var _props$className = props.className,
|
|
16274
16164
|
className = _props$className === void 0 ? '' : _props$className,
|
|
@@ -16279,8 +16169,7 @@ var BaseModal = function BaseModal(props) {
|
|
|
16279
16169
|
renderHeader = props.renderHeader,
|
|
16280
16170
|
children = props.children,
|
|
16281
16171
|
renderFooter = props.renderFooter,
|
|
16282
|
-
|
|
16283
|
-
toggle = _props$toggle === void 0 ? function () {} : _props$toggle,
|
|
16172
|
+
toggle = props.toggle,
|
|
16284
16173
|
open = props.open,
|
|
16285
16174
|
noDismiss = props.noDismiss,
|
|
16286
16175
|
hideCrossDismiss = props.hideCrossDismiss,
|
|
@@ -16289,92 +16178,75 @@ var BaseModal = function BaseModal(props) {
|
|
|
16289
16178
|
animation = _props$animation === void 0 ? true : _props$animation,
|
|
16290
16179
|
_props$animationPrope = props.animationProperties,
|
|
16291
16180
|
animationProperties = _props$animationPrope === void 0 ? DEFAULT_ANIMATION_PROPS : _props$animationPrope;
|
|
16292
|
-
var _useFloating = useFloating({
|
|
16293
|
-
open: open
|
|
16181
|
+
var _useFloating = useFloating(_objectSpread2({
|
|
16182
|
+
open: open
|
|
16183
|
+
}, toggle && {
|
|
16294
16184
|
onOpenChange: toggle
|
|
16295
|
-
}),
|
|
16185
|
+
})),
|
|
16296
16186
|
floating = _useFloating.floating,
|
|
16297
16187
|
context = _useFloating.context;
|
|
16298
16188
|
var _useInteractions = useInteractions([useDismiss(context, {
|
|
16299
16189
|
enabled: !noDismiss
|
|
16300
16190
|
})]),
|
|
16301
16191
|
getFloatingProps = _useInteractions.getFloatingProps;
|
|
16302
|
-
var
|
|
16303
|
-
|
|
16304
|
-
|
|
16305
|
-
|
|
16192
|
+
var bodyProps = function () {
|
|
16193
|
+
if (children && _typeof$1(children) === 'object' && 'props' in children) {
|
|
16194
|
+
// eslint-disable-next-line @typescript-eslint/no-unsafe-return
|
|
16195
|
+
return children.props;
|
|
16196
|
+
}
|
|
16197
|
+
return undefined;
|
|
16198
|
+
}();
|
|
16199
|
+
return jsx(AnimatePresence, {
|
|
16200
|
+
children: jsx(Popper, {
|
|
16306
16201
|
open: open,
|
|
16307
16202
|
className: popperClassName,
|
|
16308
16203
|
transparent: false,
|
|
16309
|
-
wrapperId:
|
|
16310
|
-
children: open &&
|
|
16204
|
+
wrapperId: 'base-modal-popper',
|
|
16205
|
+
children: open && jsx(FloatingFocusManager, {
|
|
16311
16206
|
context: context,
|
|
16312
|
-
children:
|
|
16207
|
+
children: jsxs(motion.div, _objectSpread2(_objectSpread2({}, getFloatingProps(_objectSpread2({
|
|
16313
16208
|
className: classes(modules_f23ae002.root, className),
|
|
16314
16209
|
ref: floating
|
|
16315
16210
|
}, animation && _objectSpread2({}, animationProperties)))), {}, {
|
|
16316
|
-
children: [renderHeader ?
|
|
16317
|
-
"data-elem":
|
|
16211
|
+
children: [renderHeader ? jsx("header", {
|
|
16212
|
+
"data-elem": 'header',
|
|
16318
16213
|
className: modules_f23ae002.header,
|
|
16319
|
-
children: function ()
|
|
16320
|
-
|
|
16321
|
-
|
|
16322
|
-
}
|
|
16323
|
-
return renderHeader(_objectSpread2({}, bodyProps));
|
|
16324
|
-
}()
|
|
16325
|
-
}) : /*#__PURE__*/jsx("header", {
|
|
16326
|
-
"data-elem": "header",
|
|
16214
|
+
children: typeof renderHeader !== 'function' ? renderHeader : renderHeader(_objectSpread2({}, bodyProps))
|
|
16215
|
+
}) : jsx("header", {
|
|
16216
|
+
"data-elem": 'header',
|
|
16327
16217
|
className: modules_f23ae002.header,
|
|
16328
|
-
children:
|
|
16218
|
+
children: jsx(ModalHeader, {
|
|
16329
16219
|
title: title,
|
|
16330
16220
|
description: description
|
|
16331
16221
|
})
|
|
16332
|
-
}),
|
|
16333
|
-
"data-elem":
|
|
16222
|
+
}), jsx("div", {
|
|
16223
|
+
"data-elem": 'body',
|
|
16334
16224
|
className: modules_f23ae002.body,
|
|
16335
16225
|
children: children
|
|
16336
|
-
}), renderFooter ?
|
|
16337
|
-
"data-elem":
|
|
16226
|
+
}), renderFooter ? jsx(MotionFooter, _objectSpread2(_objectSpread2({}, animation && _objectSpread2({}, footerAnimations)), {}, {
|
|
16227
|
+
"data-elem": 'footer',
|
|
16338
16228
|
className: modules_f23ae002.footer,
|
|
16339
|
-
children: function ()
|
|
16340
|
-
|
|
16341
|
-
|
|
16342
|
-
}
|
|
16343
|
-
return renderFooter(_objectSpread2({}, bodyProps));
|
|
16344
|
-
}()
|
|
16345
|
-
})) : footerProps ? /*#__PURE__*/jsx(motion.footer, _objectSpread2(_objectSpread2({}, animation && _objectSpread2({}, footerAnimations)), {}, {
|
|
16346
|
-
"data-elem": "footer",
|
|
16229
|
+
children: typeof renderFooter !== 'function' ? renderFooter : renderFooter(_objectSpread2({}, bodyProps))
|
|
16230
|
+
})) : footerProps && jsx(MotionFooter, _objectSpread2(_objectSpread2({}, animation && _objectSpread2({}, footerAnimations)), {}, {
|
|
16231
|
+
"data-elem": 'footer',
|
|
16347
16232
|
className: modules_f23ae002.footer,
|
|
16348
|
-
children:
|
|
16349
|
-
}))
|
|
16350
|
-
size:
|
|
16351
|
-
variant:
|
|
16233
|
+
children: jsx(ModalFooter, _objectSpread2({}, footerProps))
|
|
16234
|
+
})), !hideCrossDismiss && jsx(Button, {
|
|
16235
|
+
size: 'auto',
|
|
16236
|
+
variant: 'text',
|
|
16352
16237
|
className: modules_f23ae002.close,
|
|
16353
16238
|
onClick: function onClick() {
|
|
16354
|
-
toggle(false);
|
|
16239
|
+
toggle === null || toggle === void 0 || toggle(false);
|
|
16355
16240
|
},
|
|
16356
|
-
|
|
16357
|
-
|
|
16358
|
-
|
|
16359
|
-
});
|
|
16360
|
-
}
|
|
16241
|
+
title: jsx(Cross, {
|
|
16242
|
+
className: modules_f23ae002.icon
|
|
16243
|
+
})
|
|
16361
16244
|
})]
|
|
16362
16245
|
}))
|
|
16363
16246
|
})
|
|
16364
16247
|
})
|
|
16365
16248
|
});
|
|
16366
16249
|
};
|
|
16367
|
-
BaseModal.propTypes = {
|
|
16368
|
-
className: propTypesExports.string,
|
|
16369
|
-
popperClassName: propTypesExports.string,
|
|
16370
|
-
renderHeader: propTypesExports.element,
|
|
16371
|
-
renderFooter: propTypesExports.element,
|
|
16372
|
-
toggle: propTypesExports.func,
|
|
16373
|
-
noDismiss: propTypesExports.bool,
|
|
16374
|
-
hideCrossDismiss: propTypesExports.bool,
|
|
16375
|
-
animation: propTypesExports.bool,
|
|
16376
|
-
animationProperties: propTypesExports.object
|
|
16377
|
-
};
|
|
16378
16250
|
|
|
16379
16251
|
var css$L = ".ErrorBoundaryWrapper_module_root__ac28c8d4 {\n display: flex;\n flex-direction: column;\n justify-content: center;\n align-items: center;\n width: 100%;\n height: 100%;\n}\n.ErrorBoundaryWrapper_module_root__ac28c8d4 .ErrorBoundaryWrapper_module_message__ac28c8d4 {\n display: flex;\n flex-direction: row;\n justify-content: center;\n align-items: flex-start;\n gap: 1rem;\n margin-bottom: 1.5rem;\n width: 80%;\n}\n.ErrorBoundaryWrapper_module_root__ac28c8d4 .ErrorBoundaryWrapper_module_message__ac28c8d4 > h1 {\n text-wrap: nowrap;\n}\n.ErrorBoundaryWrapper_module_root__ac28c8d4 .ErrorBoundaryWrapper_module_actions__ac28c8d4 {\n display: flex;\n flex-direction: row;\n justify-content: center;\n align-items: center;\n gap: 0.625rem;\n}\n.ErrorBoundaryWrapper_module_root__ac28c8d4 .ErrorBoundaryWrapper_module_actions__ac28c8d4 > button[data-elem=base-cell].ErrorBoundaryWrapper_module_action__ac28c8d4 {\n gap: 1rem;\n}\n.ErrorBoundaryWrapper_module_root__ac28c8d4 .ErrorBoundaryWrapper_module_actions__ac28c8d4 > button[data-elem=base-cell].ErrorBoundaryWrapper_module_action__ac28c8d4:nth-child(1) {\n background-color: var(--mono-color1);\n}\n.ErrorBoundaryWrapper_module_root__ac28c8d4 .ErrorBoundaryWrapper_module_actions__ac28c8d4 > button[data-elem=base-cell].ErrorBoundaryWrapper_module_action__ac28c8d4 > [data-elem=component1] .ErrorBoundaryWrapper_module_icon__ac28c8d4 {\n width: 1.5rem;\n height: 1.5rem;\n fill: var(--white);\n}";
|
|
16380
16252
|
var modules_2dbfc50c = {"root":"ErrorBoundaryWrapper_module_root__ac28c8d4","message":"ErrorBoundaryWrapper_module_message__ac28c8d4","actions":"ErrorBoundaryWrapper_module_actions__ac28c8d4","action":"ErrorBoundaryWrapper_module_action__ac28c8d4","icon":"ErrorBoundaryWrapper_module_icon__ac28c8d4"};
|
|
@@ -18331,6 +18203,7 @@ var Tooltip = /*#__PURE__*/forwardRef(function (props, propRef) {
|
|
|
18331
18203
|
children: [clonedChildren, jsx(Popper, {
|
|
18332
18204
|
open: open && content != null,
|
|
18333
18205
|
backdrop: false,
|
|
18206
|
+
lockScroll: false,
|
|
18334
18207
|
wrapperId: 'tooltip',
|
|
18335
18208
|
children: jsxs(motion.div, _objectSpread2(_objectSpread2({}, getFloatingProps({
|
|
18336
18209
|
ref: floating,
|
|
@@ -18397,7 +18270,6 @@ var TextField = /*#__PURE__*/forwardRef(function (props, inputRef) {
|
|
|
18397
18270
|
feedback = props.feedback,
|
|
18398
18271
|
maxLength = props.maxLength,
|
|
18399
18272
|
onKeyDown = props.onKeyDown,
|
|
18400
|
-
autocomplete = props.autocomplete,
|
|
18401
18273
|
autocompleteOptions = props.autocompleteOptions;
|
|
18402
18274
|
var _useRef = useRef(value !== undefined),
|
|
18403
18275
|
isControlled = _useRef.current;
|
|
@@ -18409,21 +18281,17 @@ var TextField = /*#__PURE__*/forwardRef(function (props, inputRef) {
|
|
|
18409
18281
|
_useState4 = _slicedToArray(_useState3, 2),
|
|
18410
18282
|
inputType = _useState4[0],
|
|
18411
18283
|
setInputType = _useState4[1];
|
|
18412
|
-
var _useState5 = useState(
|
|
18284
|
+
var _useState5 = useState(false),
|
|
18413
18285
|
_useState6 = _slicedToArray(_useState5, 2),
|
|
18414
|
-
|
|
18415
|
-
|
|
18416
|
-
var
|
|
18417
|
-
|
|
18418
|
-
|
|
18419
|
-
|
|
18420
|
-
autocompleteOptions === null || autocompleteOptions === void 0 || (_autocompleteOptions$3 = autocompleteOptions.setOpen) === null || _autocompleteOptions$3 === void 0 || _autocompleteOptions$3.call(autocompleteOptions, !!shouldOpen);
|
|
18421
|
-
}
|
|
18422
|
-
};
|
|
18286
|
+
showAutocompleteOptions = _useState6[0],
|
|
18287
|
+
setShowAutocompleteOptions = _useState6[1];
|
|
18288
|
+
var _useState7 = useState(null),
|
|
18289
|
+
_useState8 = _slicedToArray(_useState7, 2),
|
|
18290
|
+
anchorEl = _useState8[0],
|
|
18291
|
+
setAnchorEl = _useState8[1];
|
|
18423
18292
|
var handleChange = function handleChange(event) {
|
|
18424
18293
|
var _inputHelper = inputHelper(event),
|
|
18425
18294
|
fieldValue = _inputHelper.fieldValue;
|
|
18426
|
-
checkAndOpenAutocomplete(fieldValue);
|
|
18427
18295
|
if (isControlled) {
|
|
18428
18296
|
onChange === null || onChange === void 0 || onChange(event, fieldValue);
|
|
18429
18297
|
} else {
|
|
@@ -18464,11 +18332,9 @@ var TextField = /*#__PURE__*/forwardRef(function (props, inputRef) {
|
|
|
18464
18332
|
type: 'button',
|
|
18465
18333
|
leftComponent: function leftComponent() {
|
|
18466
18334
|
return inputType === 'password' ? jsx(HidePassword, {
|
|
18467
|
-
className: classes(modules_c1d23762.icon, feedback !== null && feedback !== void 0 && feedback.error ? modules_c1d23762.error : '')
|
|
18468
|
-
position: 'left'
|
|
18335
|
+
className: classes(modules_c1d23762.icon, feedback !== null && feedback !== void 0 && feedback.error ? modules_c1d23762.error : '')
|
|
18469
18336
|
}) : jsx(ViewPasswordIcon, {
|
|
18470
|
-
className: classes(modules_c1d23762.icon, feedback !== null && feedback !== void 0 && feedback.error ? modules_c1d23762.error : '')
|
|
18471
|
-
position: 'left'
|
|
18337
|
+
className: classes(modules_c1d23762.icon, feedback !== null && feedback !== void 0 && feedback.error ? modules_c1d23762.error : '')
|
|
18472
18338
|
});
|
|
18473
18339
|
},
|
|
18474
18340
|
onClick: function onClick() {
|
|
@@ -18507,6 +18373,10 @@ var TextField = /*#__PURE__*/forwardRef(function (props, inputRef) {
|
|
|
18507
18373
|
}
|
|
18508
18374
|
return RightComponent ? jsx(RightComponent, {}) : null;
|
|
18509
18375
|
};
|
|
18376
|
+
var handleOnBlur = function handleOnBlur() {
|
|
18377
|
+
onBlur === null || onBlur === void 0 || onBlur();
|
|
18378
|
+
setShowAutocompleteOptions(false);
|
|
18379
|
+
};
|
|
18510
18380
|
var inputValue = isControlled ? String(value !== null && value !== void 0 ? value : '') : uncontrolledValue;
|
|
18511
18381
|
var commonProps = _objectSpread2({
|
|
18512
18382
|
id: id,
|
|
@@ -18514,10 +18384,10 @@ var TextField = /*#__PURE__*/forwardRef(function (props, inputRef) {
|
|
|
18514
18384
|
disabled: disabled,
|
|
18515
18385
|
placeholder: placeholder,
|
|
18516
18386
|
onFocus: function onFocus() {
|
|
18517
|
-
checkAndOpenAutocomplete(inputValue);
|
|
18518
18387
|
_onFocus === null || _onFocus === void 0 || _onFocus();
|
|
18388
|
+
setShowAutocompleteOptions(true);
|
|
18519
18389
|
},
|
|
18520
|
-
onBlur:
|
|
18390
|
+
onBlur: handleOnBlur,
|
|
18521
18391
|
onKeyDown: onKeyDown,
|
|
18522
18392
|
required: required,
|
|
18523
18393
|
'data-elem': 'input',
|
|
@@ -18549,12 +18419,13 @@ var TextField = /*#__PURE__*/forwardRef(function (props, inputRef) {
|
|
|
18549
18419
|
}, (RightComponent !== null && RightComponent !== void 0 ? RightComponent : type === 'password' || feedback) && {
|
|
18550
18420
|
component3: getRightComponent()
|
|
18551
18421
|
}))]
|
|
18552
|
-
}),
|
|
18422
|
+
}), autocompleteOptions && jsx(Popover, {
|
|
18553
18423
|
anchorEl: anchorEl,
|
|
18554
|
-
open:
|
|
18555
|
-
|
|
18556
|
-
|
|
18557
|
-
|
|
18424
|
+
open: showAutocompleteOptions,
|
|
18425
|
+
placement: autocompleteOptions.placement,
|
|
18426
|
+
middlewareOptions: autocompleteOptions.middlewareOptions,
|
|
18427
|
+
withOverlay: false,
|
|
18428
|
+
lockScroll: false,
|
|
18558
18429
|
children: AutocompletePopover && jsx(AutocompletePopover, {
|
|
18559
18430
|
name: name,
|
|
18560
18431
|
value: value
|
|
@@ -18563,8 +18434,8 @@ var TextField = /*#__PURE__*/forwardRef(function (props, inputRef) {
|
|
|
18563
18434
|
});
|
|
18564
18435
|
});
|
|
18565
18436
|
|
|
18566
|
-
var css$t = ".HierarchyItem_module_root__1d4319b9 {\n display: flex;\n flex-direction: column;\n justify-content: flex-start;\n align-items: stretch;\n position: relative;\n min-width: 300px;\n}\n.HierarchyItem_module_root__1d4319b9 span[data-elem=component2] label > div[data-elem=base-cell] > span[data-elem=component1] {\n margin-top: 0 !important;\n margin-left: 0.525rem !important;\n}\n.HierarchyItem_module_root__1d4319b9 span[data-elem=component3] button {\n max-height: 10px;\n}\n.HierarchyItem_module_root__1d4319b9.HierarchyItem_module_searching__1d4319b9 > .HierarchyItem_module_header__1d4319b9:hover {\n background: none;\n}\n.HierarchyItem_module_root__1d4319b9.HierarchyItem_module_searching__1d4319b9 > .HierarchyItem_module_header__1d4319b9:hover .HierarchyItem_module_icon__1d4319b9,\n.HierarchyItem_module_root__1d4319b9.HierarchyItem_module_searching__1d4319b9 > .HierarchyItem_module_header__1d4319b9:hover .HierarchyItem_module_title__1d4319b9,\n.HierarchyItem_module_root__1d4319b9.HierarchyItem_module_searching__1d4319b9 > .HierarchyItem_module_header__1d4319b9:hover .HierarchyItem_module_title__1d4319b9 svg {\n color: inherit;\n fill: inherit;\n}\n.HierarchyItem_module_root__1d4319b9.HierarchyItem_module_searching__1d4319b9 > .HierarchyItem_module_header__1d4319b9:hover .HierarchyItem_module_searchWrapper__1d4319b9 {\n display: none !important;\n}\n.HierarchyItem_module_root__1d4319b9 .HierarchyItem_module_headerNoCount__1d4319b9 {\n margin-left: 7px;\n}\n.HierarchyItem_module_root__1d4319b9 .HierarchyItem_module_header__1d4319b9 {\n display: flex;\n flex-direction: row;\n justify-content: flex-start;\n align-items: center;\n min-width: 220px;\n height: auto;\n width: -moz-fit-content;\n width: fit-content;\n padding: 0rem 0rem !important;\n cursor: pointer;\n}\n.HierarchyItem_module_root__1d4319b9 .HierarchyItem_module_header__1d4319b9 > [data-elem=component1], .HierarchyItem_module_root__1d4319b9 .HierarchyItem_module_header__1d4319b9 > [data-elem=component3] {\n display: flex;\n flex-direction: row;\n justify-content: center;\n align-items: center;\n}\n.HierarchyItem_module_root__1d4319b9 .HierarchyItem_module_header__1d4319b9 > [data-elem=component1] .HierarchyItem_module_expand__1d4319b9, .HierarchyItem_module_root__1d4319b9 .HierarchyItem_module_header__1d4319b9 > [data-elem=component3] .HierarchyItem_module_expand__1d4319b9 {\n padding: 0;\n width: 1rem;\n height: 1rem;\n}\n.HierarchyItem_module_root__1d4319b9 .HierarchyItem_module_header__1d4319b9 > [data-elem=component1] .HierarchyItem_module_expand__1d4319b9 .HierarchyItem_module_icon__1d4319b9, .HierarchyItem_module_root__1d4319b9 .HierarchyItem_module_header__1d4319b9 > [data-elem=component3] .HierarchyItem_module_expand__1d4319b9 .HierarchyItem_module_icon__1d4319b9 {\n width: 1rem;\n margin-left: 0.4rem;\n height: 1.49rem;\n fill: var(--text-color);\n}\n.HierarchyItem_module_root__1d4319b9 .HierarchyItem_module_header__1d4319b9 > [data-elem=component2] {\n padding-left: 0.5rem;\n flex: 1 1 auto;\n}\n.HierarchyItem_module_root__1d4319b9 .HierarchyItem_module_header__1d4319b9 > [data-elem=component2] .HierarchyItem_module_title__1d4319b9 {\n display: flex;\n flex-direction: row;\n justify-content: flex-start;\n align-items: center;\n width: 100%;\n height: 2rem;\n padding: 0.25rem 0rem;\n -webkit-user-select: none;\n -moz-user-select: none;\n user-select: none;\n margin-bottom: 2px;\n margin-top: 1px;\n}\n.HierarchyItem_module_root__1d4319b9 .HierarchyItem_module_header__1d4319b9 > [data-elem=component2] .HierarchyItem_module_titleNoList__1d4319b9 {\n padding-left: 0.5rem;\n}\n.HierarchyItem_module_root__1d4319b9 .HierarchyItem_module_header__1d4319b9 > [data-elem=component2] .HierarchyItem_module_searchFieldWrapper__1d4319b9 {\n display: flex;\n align-items: center;\n background: white;\n box-shadow: 0px 0px 2px 0px rgba(0, 0, 0, 0.25);\n border-radius: 0.25rem;\n height: 2rem;\n margin-left: -28px;\n margin-bottom: 2px;\n margin-top: 1px;\n padding: 0 !important;\n}\n.HierarchyItem_module_root__1d4319b9 .HierarchyItem_module_header__1d4319b9 > [data-elem=component2] .HierarchyItem_module_searchFieldWrapper__1d4319b9 .HierarchyItem_module_searchButton__1d4319b9 {\n width: 1.25rem;\n margin: 0 !important;\n padding: 0 !important;\n}\n.HierarchyItem_module_root__1d4319b9 .HierarchyItem_module_header__1d4319b9 > [data-elem=component2] .HierarchyItem_module_searchFieldWrapper__1d4319b9 .HierarchyItem_module_searchInput__1d4319b9 {\n width: 100%;\n padding-left: 12px;\n height: 100%;\n gap: 0.25rem;\n}\n.HierarchyItem_module_root__1d4319b9 .HierarchyItem_module_header__1d4319b9 > [data-elem=component2] .HierarchyItem_module_searchFieldWrapper__1d4319b9 .HierarchyItem_module_searchInput__1d4319b9 [data-elem=base-cell] {\n box-shadow: none !important;\n}\n.HierarchyItem_module_root__1d4319b9 .HierarchyItem_module_header__1d4319b9 > [data-elem=component2] .HierarchyItem_module_searchFieldWrapper__1d4319b9 .HierarchyItem_module_searchInput__1d4319b9 [data-elem=base-cell]:focus-within {\n outline: none !important;\n}\n.HierarchyItem_module_root__1d4319b9 .HierarchyItem_module_header__1d4319b9 > [data-elem=component2] .HierarchyItem_module_searchFieldWrapper__1d4319b9 .HierarchyItem_module_searchInput__1d4319b9 [data-elem=base-cell] > [data-elem=component3] > button {\n margin-top: 1px;\n padding: 0;\n height: auto;\n}\n.HierarchyItem_module_root__1d4319b9 .HierarchyItem_module_header__1d4319b9 > [data-elem=component2] .HierarchyItem_module_searchFieldWrapper__1d4319b9 .HierarchyItem_module_searchInput__1d4319b9 [data-elem=base-cell] > [data-elem=component3] > button [data-elem=title] {\n display: flex;\n flex-direction: row;\n justify-content: center;\n align-items: center;\n}\n.HierarchyItem_module_root__1d4319b9 .HierarchyItem_module_header__1d4319b9 > [data-elem=component2] .HierarchyItem_module_searchFieldWrapper__1d4319b9 .HierarchyItem_module_searchInput__1d4319b9 [data-elem=base-cell] > [data-elem=component1] {\n width: 1.244rem;\n margin-left: 7px;\n margin-top: 2.9px;\n}\n.HierarchyItem_module_root__1d4319b9 .HierarchyItem_module_header__1d4319b9 > [data-elem=component2] .HierarchyItem_module_searchFieldWrapper__1d4319b9 .HierarchyItem_module_searchInput__1d4319b9 label {\n display: contents;\n}\n.HierarchyItem_module_root__1d4319b9 .HierarchyItem_module_header__1d4319b9 > [data-elem=component2] .HierarchyItem_module_searchFieldWrapper__1d4319b9 .HierarchyItem_module_searchInput__1d4319b9 input {\n outline: none;\n font-size: 0.875rem;\n height: 100%;\n}\n.HierarchyItem_module_root__1d4319b9 .HierarchyItem_module_header__1d4319b9 .HierarchyItem_module_searchWrapper__1d4319b9 {\n height: 100%;\n display: none;\n transition: opacity 0.2s ease;\n padding-block: 0 !important;\n padding-inline: 0.75rem !important;\n height: 2.25rem;\n}\n.HierarchyItem_module_root__1d4319b9 .HierarchyItem_module_header__1d4319b9 .HierarchyItem_module_searchWrapper__1d4319b9 [data-elem=title] {\n display: flex;\n flex-direction: row;\n justify-content: center;\n align-items: center;\n}\n.HierarchyItem_module_root__1d4319b9 .HierarchyItem_module_header__1d4319b9 .HierarchyItem_module_searchWrapper__1d4319b9 .HierarchyItem_module_searchButton__1d4319b9 {\n width: 1.25rem;\n}\n.HierarchyItem_module_root__1d4319b9 .HierarchyItem_module_header__1d4319b9:hover {\n background: var(--background-color4);\n border-radius: 4px;\n}\n.HierarchyItem_module_root__1d4319b9 .HierarchyItem_module_header__1d4319b9:hover .HierarchyItem_module_icon__1d4319b9,\n.HierarchyItem_module_root__1d4319b9 .HierarchyItem_module_header__1d4319b9:hover .HierarchyItem_module_title__1d4319b9,\n.HierarchyItem_module_root__1d4319b9 .HierarchyItem_module_header__1d4319b9:hover .HierarchyItem_module_title__1d4319b9 svg {\n color: var(--primary-color4);\n fill: var(--primary-color4);\n}\n.HierarchyItem_module_root__1d4319b9 .HierarchyItem_module_header__1d4319b9:hover .HierarchyItem_module_searchWrapper__1d4319b9 {\n height: 2.5rem;\n display: block;\n}\n.HierarchyItem_module_root__1d4319b9 .HierarchyItem_module_expandContainer__1d4319b9 {\n margin-left: 4px;\n position: relative;\n width: 1rem;\n height: 1rem;\n display: flex;\n align-items: center;\n justify-content: center;\n}\n.HierarchyItem_module_root__1d4319b9 .HierarchyItem_module_expandContainer__1d4319b9 .HierarchyItem_module_collapsedTail__1d4319b9 {\n position: absolute;\n top: 128%;\n left: 0.45rem;\n width: 1px;\n height: 1rem;\n background: var(--grey1);\n z-index: 1;\n pointer-events: none;\n}\n.HierarchyItem_module_root__1d4319b9 .HierarchyItem_module_expandContainer__1d4319b9 .HierarchyItem_module_dashedConnectorForButton__1d4319b9 {\n height: 1.3rem;\n border-left: 0.0313rem dashed #cccccc;\n transform: translateX(0.45rem);\n margin-top: 30px;\n margin-left: 2.18rem;\n z-index: 9;\n}\n.HierarchyItem_module_root__1d4319b9 .HierarchyItem_module_expandContainer__1d4319b9 .HierarchyItem_module_hiddenConnector__1d4319b9 {\n border-left: none !important;\n}\n.HierarchyItem_module_root__1d4319b9 .HierarchyItem_module_collapsedTailSpacer__1d4319b9 {\n height: 0.3rem;\n}\n.HierarchyItem_module_root__1d4319b9 .HierarchyItem_module_body__1d4319b9 {\n display: none;\n flex: 1 0 auto;\n padding: 0px 0rem 0px 0.5rem;\n}\n.HierarchyItem_module_root__1d4319b9 .HierarchyItem_module_body__1d4319b9 > [data-elem=component1] {\n flex: 0 0 1.6rem;\n}\n.HierarchyItem_module_root__1d4319b9 .HierarchyItem_module_body__1d4319b9 > [data-elem=component1] .HierarchyItem_module_tail__1d4319b9 {\n display: flex;\n flex-direction: column;\n justify-content: flex-start;\n align-items: center;\n width: 1rem;\n height: 100%;\n margin-left: -0.2rem;\n z-index: -99;\n}\n.HierarchyItem_module_root__1d4319b9 .HierarchyItem_module_body__1d4319b9 > [data-elem=component1] .HierarchyItem_module_tail__1d4319b9::after {\n content: \"\";\n display: block;\n margin: auto;\n margin-top: -0.325rem;\n width: 1px;\n flex: 1;\n background: var(--grey1);\n margin-bottom: -0.55rem;\n}\n.HierarchyItem_module_root__1d4319b9 .HierarchyItem_module_body__1d4319b9 > [data-elem=component1] .HierarchyItem_module_highlightTail__1d4319b9 {\n display: flex;\n flex-direction: column;\n justify-content: flex-start;\n align-items: center;\n width: 1rem;\n height: 100%;\n margin-left: -0.2rem;\n}\n.HierarchyItem_module_root__1d4319b9 .HierarchyItem_module_body__1d4319b9 > [data-elem=component1] .HierarchyItem_module_highlightTail__1d4319b9::after {\n content: \"\";\n display: block;\n margin: auto;\n margin-top: -0.325rem;\n width: 1px;\n flex: 1;\n background: #0f62fe;\n margin-bottom: -0.55rem;\n}\n.HierarchyItem_module_root__1d4319b9 .HierarchyItem_module_body__1d4319b9 > [data-elem=component2] {\n flex: 1 0 auto;\n}\n.HierarchyItem_module_root__1d4319b9 .HierarchyItem_module_body__1d4319b9 > [data-elem=component2] .HierarchyItem_module_children__1d4319b9 {\n flex: 1 0 auto;\n width: 100%;\n height: auto;\n max-height: 200px;\n overflow-y: auto;\n scrollbar-width: none;\n}\n.HierarchyItem_module_root__1d4319b9.HierarchyItem_module_open__1d4319b9 > .HierarchyItem_module_header__1d4319b9 .HierarchyItem_module_expand__1d4319b9 .HierarchyItem_module_icon__1d4319b9 {\n transform: none;\n height: 0.8rem;\n width: 0rem;\n margin-left: 1.8rem;\n}\n.HierarchyItem_module_root__1d4319b9.HierarchyItem_module_open__1d4319b9 > .HierarchyItem_module_body__1d4319b9 {\n display: flex;\n flex-direction: row;\n justify-content: flex-start;\n align-items: stretch;\n gap: 0rem;\n height: auto;\n}\n.HierarchyItem_module_root__1d4319b9.HierarchyItem_module_open__1d4319b9 > .HierarchyItem_module_collapsedTail__1d4319b9 {\n display: none;\n}\n.HierarchyItem_module_root__1d4319b9.HierarchyItem_module_active__1d4319b9 > .HierarchyItem_module_header__1d4319b9 {\n background: var(--background-color4);\n border-radius: 0.25rem;\n}\n.HierarchyItem_module_root__1d4319b9.HierarchyItem_module_active__1d4319b9 > .HierarchyItem_module_header__1d4319b9 .HierarchyItem_module_icon__1d4319b9,\n.HierarchyItem_module_root__1d4319b9.HierarchyItem_module_active__1d4319b9 > .HierarchyItem_module_header__1d4319b9 .HierarchyItem_module_title__1d4319b9,\n.HierarchyItem_module_root__1d4319b9.HierarchyItem_module_active__1d4319b9 > .HierarchyItem_module_header__1d4319b9 .HierarchyItem_module_title__1d4319b9 svg {\n color: var(--primary-color4);\n fill: var(--primary-color4);\n}";
|
|
18567
|
-
var modules_6d03d164 = {"root":"
|
|
18437
|
+
var css$t = ".HierarchyItem_module_root__16e12b8d {\n display: flex;\n flex-direction: column;\n justify-content: flex-start;\n align-items: stretch;\n position: relative;\n min-width: 300px;\n}\n.HierarchyItem_module_root__16e12b8d span[data-elem=component2] label > div[data-elem=base-cell] > span[data-elem=component1] {\n margin-top: 0 !important;\n margin-left: 0.525rem !important;\n}\n.HierarchyItem_module_root__16e12b8d span[data-elem=component3] button {\n max-height: 10px;\n}\n.HierarchyItem_module_root__16e12b8d.HierarchyItem_module_searching__16e12b8d > .HierarchyItem_module_header__16e12b8d:hover {\n background: none;\n}\n.HierarchyItem_module_root__16e12b8d.HierarchyItem_module_searching__16e12b8d > .HierarchyItem_module_header__16e12b8d:hover .HierarchyItem_module_icon__16e12b8d,\n.HierarchyItem_module_root__16e12b8d.HierarchyItem_module_searching__16e12b8d > .HierarchyItem_module_header__16e12b8d:hover .HierarchyItem_module_title__16e12b8d,\n.HierarchyItem_module_root__16e12b8d.HierarchyItem_module_searching__16e12b8d > .HierarchyItem_module_header__16e12b8d:hover .HierarchyItem_module_title__16e12b8d svg {\n color: inherit;\n fill: inherit;\n}\n.HierarchyItem_module_root__16e12b8d.HierarchyItem_module_searching__16e12b8d > .HierarchyItem_module_header__16e12b8d:hover .HierarchyItem_module_searchWrapper__16e12b8d {\n display: none !important;\n}\n.HierarchyItem_module_root__16e12b8d .HierarchyItem_module_headerNoCount__16e12b8d {\n margin-left: 7px;\n}\n.HierarchyItem_module_root__16e12b8d .HierarchyItem_module_header__16e12b8d {\n display: flex;\n flex-direction: row;\n justify-content: flex-start;\n align-items: center;\n min-width: 220px;\n height: auto;\n width: -moz-fit-content;\n width: fit-content;\n padding: 0rem 0rem !important;\n cursor: pointer;\n}\n.HierarchyItem_module_root__16e12b8d .HierarchyItem_module_header__16e12b8d > [data-elem=component1], .HierarchyItem_module_root__16e12b8d .HierarchyItem_module_header__16e12b8d > [data-elem=component3] {\n display: flex;\n flex-direction: row;\n justify-content: center;\n align-items: center;\n}\n.HierarchyItem_module_root__16e12b8d .HierarchyItem_module_header__16e12b8d > [data-elem=component1] .HierarchyItem_module_expand__16e12b8d, .HierarchyItem_module_root__16e12b8d .HierarchyItem_module_header__16e12b8d > [data-elem=component3] .HierarchyItem_module_expand__16e12b8d {\n padding: 0;\n width: 1rem;\n height: 1rem;\n}\n.HierarchyItem_module_root__16e12b8d .HierarchyItem_module_header__16e12b8d > [data-elem=component1] .HierarchyItem_module_expand__16e12b8d .HierarchyItem_module_icon__16e12b8d, .HierarchyItem_module_root__16e12b8d .HierarchyItem_module_header__16e12b8d > [data-elem=component3] .HierarchyItem_module_expand__16e12b8d .HierarchyItem_module_icon__16e12b8d {\n width: 1rem;\n margin-left: 0.4rem;\n height: 1.49rem;\n fill: var(--text-color);\n}\n.HierarchyItem_module_root__16e12b8d .HierarchyItem_module_header__16e12b8d > [data-elem=component2] {\n padding-left: 0.5rem;\n flex: 1 1 auto;\n}\n.HierarchyItem_module_root__16e12b8d .HierarchyItem_module_header__16e12b8d > [data-elem=component2] .HierarchyItem_module_title__16e12b8d {\n display: flex;\n flex-direction: row;\n justify-content: flex-start;\n align-items: center;\n width: 100%;\n height: 2rem;\n padding: 0.25rem 0rem;\n -webkit-user-select: none;\n -moz-user-select: none;\n user-select: none;\n margin-bottom: 2px;\n margin-top: 1px;\n}\n.HierarchyItem_module_root__16e12b8d .HierarchyItem_module_header__16e12b8d > [data-elem=component2] .HierarchyItem_module_titleNoList__16e12b8d {\n padding-left: 0.5rem;\n}\n.HierarchyItem_module_root__16e12b8d .HierarchyItem_module_header__16e12b8d > [data-elem=component2] .HierarchyItem_module_searchFieldWrapper__16e12b8d {\n display: flex;\n align-items: center;\n background: white;\n box-shadow: 0px 0px 2px 0px rgba(0, 0, 0, 0.25);\n border-radius: 0.25rem;\n height: 2rem;\n margin-left: -28px;\n margin-bottom: 2px;\n margin-top: 1px;\n padding: 0 !important;\n}\n.HierarchyItem_module_root__16e12b8d .HierarchyItem_module_header__16e12b8d > [data-elem=component2] .HierarchyItem_module_searchFieldWrapper__16e12b8d .HierarchyItem_module_searchButton__16e12b8d {\n width: 1.25rem;\n margin: 0 !important;\n padding: 0 !important;\n}\n.HierarchyItem_module_root__16e12b8d .HierarchyItem_module_header__16e12b8d > [data-elem=component2] .HierarchyItem_module_searchFieldWrapper__16e12b8d .HierarchyItem_module_searchInput__16e12b8d {\n width: 100%;\n padding-left: 12px;\n height: 100%;\n gap: 0.25rem;\n}\n.HierarchyItem_module_root__16e12b8d .HierarchyItem_module_header__16e12b8d > [data-elem=component2] .HierarchyItem_module_searchFieldWrapper__16e12b8d .HierarchyItem_module_searchInput__16e12b8d [data-elem=base-cell] {\n box-shadow: none !important;\n}\n.HierarchyItem_module_root__16e12b8d .HierarchyItem_module_header__16e12b8d > [data-elem=component2] .HierarchyItem_module_searchFieldWrapper__16e12b8d .HierarchyItem_module_searchInput__16e12b8d [data-elem=base-cell]:focus-within {\n outline: none !important;\n}\n.HierarchyItem_module_root__16e12b8d .HierarchyItem_module_header__16e12b8d > [data-elem=component2] .HierarchyItem_module_searchFieldWrapper__16e12b8d .HierarchyItem_module_searchInput__16e12b8d [data-elem=base-cell] > [data-elem=component3] > button {\n margin-top: 1px;\n padding: 0;\n height: auto;\n}\n.HierarchyItem_module_root__16e12b8d .HierarchyItem_module_header__16e12b8d > [data-elem=component2] .HierarchyItem_module_searchFieldWrapper__16e12b8d .HierarchyItem_module_searchInput__16e12b8d [data-elem=base-cell] > [data-elem=component3] > button [data-elem=title] {\n display: flex;\n flex-direction: row;\n justify-content: center;\n align-items: center;\n}\n.HierarchyItem_module_root__16e12b8d .HierarchyItem_module_header__16e12b8d > [data-elem=component2] .HierarchyItem_module_searchFieldWrapper__16e12b8d .HierarchyItem_module_searchInput__16e12b8d [data-elem=base-cell] > [data-elem=component1] {\n width: 1.244rem;\n margin-left: 7px;\n margin-top: 2.9px;\n}\n.HierarchyItem_module_root__16e12b8d .HierarchyItem_module_header__16e12b8d > [data-elem=component2] .HierarchyItem_module_searchFieldWrapper__16e12b8d .HierarchyItem_module_searchInput__16e12b8d label {\n display: contents;\n}\n.HierarchyItem_module_root__16e12b8d .HierarchyItem_module_header__16e12b8d > [data-elem=component2] .HierarchyItem_module_searchFieldWrapper__16e12b8d .HierarchyItem_module_searchInput__16e12b8d input {\n outline: none;\n font-size: 0.875rem;\n height: 100%;\n width: 120px;\n}\n.HierarchyItem_module_root__16e12b8d .HierarchyItem_module_header__16e12b8d .HierarchyItem_module_searchWrapper__16e12b8d {\n height: 100%;\n display: none;\n transition: opacity 0.2s ease;\n padding-block: 0 !important;\n padding-inline: 0.75rem !important;\n height: 2.25rem;\n}\n.HierarchyItem_module_root__16e12b8d .HierarchyItem_module_header__16e12b8d .HierarchyItem_module_searchWrapper__16e12b8d [data-elem=title] {\n display: flex;\n flex-direction: row;\n justify-content: center;\n align-items: center;\n}\n.HierarchyItem_module_root__16e12b8d .HierarchyItem_module_header__16e12b8d .HierarchyItem_module_searchWrapper__16e12b8d .HierarchyItem_module_searchButton__16e12b8d {\n width: 1.25rem;\n}\n.HierarchyItem_module_root__16e12b8d .HierarchyItem_module_header__16e12b8d:hover {\n background: var(--background-color4);\n border-radius: 4px;\n}\n.HierarchyItem_module_root__16e12b8d .HierarchyItem_module_header__16e12b8d:hover .HierarchyItem_module_icon__16e12b8d,\n.HierarchyItem_module_root__16e12b8d .HierarchyItem_module_header__16e12b8d:hover .HierarchyItem_module_title__16e12b8d,\n.HierarchyItem_module_root__16e12b8d .HierarchyItem_module_header__16e12b8d:hover .HierarchyItem_module_title__16e12b8d svg {\n color: var(--primary-color4);\n fill: var(--primary-color4);\n}\n.HierarchyItem_module_root__16e12b8d .HierarchyItem_module_header__16e12b8d:hover .HierarchyItem_module_searchWrapper__16e12b8d {\n height: 2.5rem;\n display: block;\n}\n.HierarchyItem_module_root__16e12b8d .HierarchyItem_module_expandContainer__16e12b8d {\n margin-left: 4px;\n position: relative;\n width: 1rem;\n height: 1rem;\n display: flex;\n align-items: center;\n justify-content: center;\n}\n.HierarchyItem_module_root__16e12b8d .HierarchyItem_module_expandContainer__16e12b8d .HierarchyItem_module_collapsedTail__16e12b8d {\n position: absolute;\n top: 128%;\n left: 0.45rem;\n width: 1px;\n height: 1rem;\n background: var(--grey1);\n z-index: 1;\n pointer-events: none;\n}\n.HierarchyItem_module_root__16e12b8d .HierarchyItem_module_expandContainer__16e12b8d .HierarchyItem_module_dashedConnectorForButton__16e12b8d {\n height: 1.3rem;\n border-left: 0.0313rem dashed #cccccc;\n transform: translateX(0.45rem);\n margin-top: 30px;\n margin-left: 2.18rem;\n z-index: 9;\n}\n.HierarchyItem_module_root__16e12b8d .HierarchyItem_module_expandContainer__16e12b8d .HierarchyItem_module_hiddenConnector__16e12b8d {\n border-left: none !important;\n}\n.HierarchyItem_module_root__16e12b8d .HierarchyItem_module_collapsedTailSpacer__16e12b8d {\n height: 0.3rem;\n}\n.HierarchyItem_module_root__16e12b8d .HierarchyItem_module_body__16e12b8d {\n display: none;\n flex: 1 0 auto;\n padding: 0px 0rem 0px 0.5rem;\n}\n.HierarchyItem_module_root__16e12b8d .HierarchyItem_module_body__16e12b8d > [data-elem=component1] {\n flex: 0 0 1.6rem;\n}\n.HierarchyItem_module_root__16e12b8d .HierarchyItem_module_body__16e12b8d > [data-elem=component1] .HierarchyItem_module_tail__16e12b8d {\n display: flex;\n flex-direction: column;\n justify-content: flex-start;\n align-items: center;\n width: 1rem;\n height: 100%;\n margin-left: -0.2rem;\n z-index: -99;\n}\n.HierarchyItem_module_root__16e12b8d .HierarchyItem_module_body__16e12b8d > [data-elem=component1] .HierarchyItem_module_tail__16e12b8d::after {\n content: \"\";\n display: block;\n margin: auto;\n margin-top: -0.325rem;\n width: 1px;\n flex: 1;\n background: var(--grey1);\n margin-bottom: -0.55rem;\n}\n.HierarchyItem_module_root__16e12b8d .HierarchyItem_module_body__16e12b8d > [data-elem=component1] .HierarchyItem_module_highlightTail__16e12b8d {\n display: flex;\n flex-direction: column;\n justify-content: flex-start;\n align-items: center;\n width: 1rem;\n height: 100%;\n margin-left: -0.2rem;\n}\n.HierarchyItem_module_root__16e12b8d .HierarchyItem_module_body__16e12b8d > [data-elem=component1] .HierarchyItem_module_highlightTail__16e12b8d::after {\n content: \"\";\n display: block;\n margin: auto;\n margin-top: -0.325rem;\n width: 1px;\n flex: 1;\n background: #0f62fe;\n margin-bottom: -0.55rem;\n}\n.HierarchyItem_module_root__16e12b8d .HierarchyItem_module_body__16e12b8d > [data-elem=component2] {\n flex: 1 0 auto;\n}\n.HierarchyItem_module_root__16e12b8d .HierarchyItem_module_body__16e12b8d > [data-elem=component2] .HierarchyItem_module_children__16e12b8d {\n flex: 1 0 auto;\n width: 100%;\n height: auto;\n overflow-y: auto;\n scrollbar-width: none;\n}\n.HierarchyItem_module_root__16e12b8d.HierarchyItem_module_open__16e12b8d > .HierarchyItem_module_header__16e12b8d .HierarchyItem_module_expand__16e12b8d .HierarchyItem_module_icon__16e12b8d {\n transform: none;\n height: 0.8rem;\n width: 0rem;\n margin-left: 1.8rem;\n}\n.HierarchyItem_module_root__16e12b8d.HierarchyItem_module_open__16e12b8d > .HierarchyItem_module_body__16e12b8d {\n display: flex;\n flex-direction: row;\n justify-content: flex-start;\n align-items: stretch;\n gap: 0rem;\n height: auto;\n}\n.HierarchyItem_module_root__16e12b8d.HierarchyItem_module_open__16e12b8d > .HierarchyItem_module_collapsedTail__16e12b8d {\n display: none;\n}\n.HierarchyItem_module_root__16e12b8d.HierarchyItem_module_active__16e12b8d > .HierarchyItem_module_header__16e12b8d {\n background: var(--background-color4);\n border-radius: 0.25rem;\n}\n.HierarchyItem_module_root__16e12b8d.HierarchyItem_module_active__16e12b8d > .HierarchyItem_module_header__16e12b8d .HierarchyItem_module_icon__16e12b8d,\n.HierarchyItem_module_root__16e12b8d.HierarchyItem_module_active__16e12b8d > .HierarchyItem_module_header__16e12b8d .HierarchyItem_module_title__16e12b8d,\n.HierarchyItem_module_root__16e12b8d.HierarchyItem_module_active__16e12b8d > .HierarchyItem_module_header__16e12b8d .HierarchyItem_module_title__16e12b8d svg {\n color: var(--primary-color4);\n fill: var(--primary-color4);\n}";
|
|
18438
|
+
var modules_6d03d164 = {"root":"HierarchyItem_module_root__16e12b8d","searching":"HierarchyItem_module_searching__16e12b8d","header":"HierarchyItem_module_header__16e12b8d","icon":"HierarchyItem_module_icon__16e12b8d","title":"HierarchyItem_module_title__16e12b8d","searchWrapper":"HierarchyItem_module_searchWrapper__16e12b8d","headerNoCount":"HierarchyItem_module_headerNoCount__16e12b8d","expand":"HierarchyItem_module_expand__16e12b8d","titleNoList":"HierarchyItem_module_titleNoList__16e12b8d","searchFieldWrapper":"HierarchyItem_module_searchFieldWrapper__16e12b8d","searchButton":"HierarchyItem_module_searchButton__16e12b8d","searchInput":"HierarchyItem_module_searchInput__16e12b8d","expand-container":"HierarchyItem_module_expandContainer__16e12b8d","collapsed-tail":"HierarchyItem_module_collapsedTail__16e12b8d","dashed-connector-for-button":"HierarchyItem_module_dashedConnectorForButton__16e12b8d","hidden-connector":"HierarchyItem_module_hiddenConnector__16e12b8d","collapsed-tail-spacer":"HierarchyItem_module_collapsedTailSpacer__16e12b8d","body":"HierarchyItem_module_body__16e12b8d","tail":"HierarchyItem_module_tail__16e12b8d","highlight-tail":"HierarchyItem_module_highlightTail__16e12b8d","children":"HierarchyItem_module_children__16e12b8d","open":"HierarchyItem_module_open__16e12b8d","active":"HierarchyItem_module_active__16e12b8d"};
|
|
18568
18439
|
n(css$t,{});
|
|
18569
18440
|
|
|
18570
18441
|
var ChildrenContainer = function ChildrenContainer(_ref) {
|
|
@@ -18622,6 +18493,7 @@ var ChildrenContainer = function ChildrenContainer(_ref) {
|
|
|
18622
18493
|
});
|
|
18623
18494
|
});
|
|
18624
18495
|
};
|
|
18496
|
+
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
18625
18497
|
}, []);
|
|
18626
18498
|
return jsx(BaseCell, {
|
|
18627
18499
|
size: 'auto',
|
|
@@ -18659,8 +18531,10 @@ var HierarchyItem = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
18659
18531
|
lastActive = props.lastActive,
|
|
18660
18532
|
isSearching = props.isSearching,
|
|
18661
18533
|
onSearchStart = props.onSearchStart,
|
|
18534
|
+
searchedText = props.searchedText,
|
|
18662
18535
|
callbackOnScroll = props.callbackOnScroll,
|
|
18663
|
-
list = props.list
|
|
18536
|
+
list = props.list,
|
|
18537
|
+
controlledOpen = props.controlledOpen;
|
|
18664
18538
|
var _useState = useState(defaultOpen),
|
|
18665
18539
|
_useState2 = _slicedToArray(_useState, 2),
|
|
18666
18540
|
open = _useState2[0],
|
|
@@ -18672,6 +18546,9 @@ var HierarchyItem = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
18672
18546
|
var handleSearchSubmit = function handleSearchSubmit() {
|
|
18673
18547
|
onSearchSubmit === null || onSearchSubmit === void 0 || onSearchSubmit(searchText, pathString);
|
|
18674
18548
|
};
|
|
18549
|
+
useEffect(function () {
|
|
18550
|
+
if (typeof controlledOpen === 'boolean') setOpen(controlledOpen);
|
|
18551
|
+
}, [controlledOpen]);
|
|
18675
18552
|
var icon = jsxs("div", {
|
|
18676
18553
|
className: modules_6d03d164['expand-container'],
|
|
18677
18554
|
children: [jsx(Button, {
|
|
@@ -18726,7 +18603,7 @@ var HierarchyItem = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
18726
18603
|
},
|
|
18727
18604
|
RightComponent: function RightComponent() {
|
|
18728
18605
|
return jsx(Button, {
|
|
18729
|
-
title: jsx(
|
|
18606
|
+
title: jsx(SearchIcon, {
|
|
18730
18607
|
className: modules_6d03d164.searchButton
|
|
18731
18608
|
}),
|
|
18732
18609
|
onClick: handleSearchSubmit,
|
|
@@ -18762,7 +18639,9 @@ var HierarchyItem = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
18762
18639
|
onClick: function onClick() {
|
|
18763
18640
|
return onSearchStart === null || onSearchStart === void 0 ? void 0 : onSearchStart();
|
|
18764
18641
|
},
|
|
18765
|
-
title: jsx(
|
|
18642
|
+
title: searchedText ? jsx(Edit, {
|
|
18643
|
+
className: modules_6d03d164.searchButton
|
|
18644
|
+
}) : jsx(SearchIcon, {
|
|
18766
18645
|
className: modules_6d03d164.searchButton
|
|
18767
18646
|
})
|
|
18768
18647
|
}) : undefined
|
|
@@ -18782,21 +18661,28 @@ var HierarchyItem = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
18782
18661
|
});
|
|
18783
18662
|
});
|
|
18784
18663
|
|
|
18785
|
-
var css$s = ".
|
|
18786
|
-
var modules_5e29d515 = {"root":"
|
|
18664
|
+
var css$s = ".HierarchyBrowser_module_root__8f3a34a5 {\n display: flex;\n flex-direction: column;\n justify-content: flex-start;\n align-items: stretch;\n min-width: 20rem;\n position: relative;\n}\n.HierarchyBrowser_module_root__8f3a34a5 .HierarchyBrowser_module_header__8f3a34a5 {\n padding: 0.5rem;\n background: var(--text-color);\n color: var(--light-color3);\n -webkit-user-select: none;\n -moz-user-select: none;\n user-select: none;\n}\n.HierarchyBrowser_module_root__8f3a34a5 .HierarchyBrowser_module_body__8f3a34a5 {\n display: flex;\n flex-direction: column;\n justify-content: flex-start;\n align-items: stretch;\n overflow: auto;\n resize: horizontal;\n}\n.HierarchyBrowser_module_root__8f3a34a5 .HierarchyBrowser_module_item__8f3a34a5 {\n display: flex;\n align-items: center;\n gap: 0.625rem;\n width: 100%;\n}\n.HierarchyBrowser_module_root__8f3a34a5 .HierarchyBrowser_module_item__8f3a34a5 .HierarchyBrowser_module_itemIcon__8f3a34a5 {\n display: flex;\n align-items: center;\n justify-content: center;\n width: 1.25rem;\n height: 1.25rem;\n}\n.HierarchyBrowser_module_root__8f3a34a5 .HierarchyBrowser_module_item__8f3a34a5 .HierarchyBrowser_module_itemTitle__8f3a34a5 {\n font-size: 0.875rem;\n font-weight: 500;\n color: black;\n}\n.HierarchyBrowser_module_root__8f3a34a5 .HierarchyBrowser_module_item__8f3a34a5 .HierarchyBrowser_module_itemTitle__8f3a34a5.HierarchyBrowser_module_highlight__8f3a34a5 {\n color: #0f62fe;\n}\n.HierarchyBrowser_module_root__8f3a34a5 .HierarchyBrowser_module_item__8f3a34a5 .HierarchyBrowser_module_itemCount__8f3a34a5 {\n display: flex;\n align-items: center;\n justify-content: center;\n}\n.HierarchyBrowser_module_root__8f3a34a5 .HierarchyBrowser_module_item__8f3a34a5 .HierarchyBrowser_module_itemCount__8f3a34a5 .HierarchyBrowser_module_countBg__8f3a34a5 {\n background-color: #b7cadb;\n padding: 0.3125rem;\n border-radius: 0.125rem;\n min-width: 1.125rem;\n height: 1.125rem;\n display: flex;\n align-items: center;\n justify-content: center;\n}\n.HierarchyBrowser_module_root__8f3a34a5 .HierarchyBrowser_module_item__8f3a34a5 .HierarchyBrowser_module_itemCount__8f3a34a5 .HierarchyBrowser_module_countText__8f3a34a5 {\n color: #ffffff;\n font-weight: 500;\n font-size: 0.8rem;\n line-height: 1;\n}\n.HierarchyBrowser_module_root__8f3a34a5.HierarchyBrowser_module_resizable__8f3a34a5:hover::after {\n width: 3px;\n cursor: col-resize;\n}";
|
|
18665
|
+
var modules_5e29d515 = {"root":"HierarchyBrowser_module_root__8f3a34a5","header":"HierarchyBrowser_module_header__8f3a34a5","body":"HierarchyBrowser_module_body__8f3a34a5","item":"HierarchyBrowser_module_item__8f3a34a5","item-icon":"HierarchyBrowser_module_itemIcon__8f3a34a5","item-title":"HierarchyBrowser_module_itemTitle__8f3a34a5","highlight":"HierarchyBrowser_module_highlight__8f3a34a5","item-count":"HierarchyBrowser_module_itemCount__8f3a34a5","count-bg":"HierarchyBrowser_module_countBg__8f3a34a5","count-text":"HierarchyBrowser_module_countText__8f3a34a5","resizable":"HierarchyBrowser_module_resizable__8f3a34a5"};
|
|
18787
18666
|
n(css$s,{});
|
|
18788
18667
|
|
|
18668
|
+
var hasRIC = typeof globalThis.requestIdleCallback === 'function';
|
|
18669
|
+
var scheduleIdle = function scheduleIdle(fn) {
|
|
18670
|
+
if (hasRIC) globalThis.requestIdleCallback(fn, {
|
|
18671
|
+
timeout: 50
|
|
18672
|
+
});else setTimeout(fn, 0);
|
|
18673
|
+
};
|
|
18789
18674
|
var Title = function Title(_ref) {
|
|
18790
18675
|
var leftComponent = _ref.leftComponent,
|
|
18791
18676
|
title = _ref.title,
|
|
18792
|
-
rightComponent = _ref.rightComponent
|
|
18677
|
+
rightComponent = _ref.rightComponent,
|
|
18678
|
+
highlight = _ref.highlight;
|
|
18793
18679
|
return jsxs("span", {
|
|
18794
18680
|
className: modules_5e29d515.item,
|
|
18795
18681
|
children: [leftComponent && jsx("span", {
|
|
18796
18682
|
className: modules_5e29d515['item-icon'],
|
|
18797
18683
|
children: leftComponent
|
|
18798
18684
|
}), jsx("span", {
|
|
18799
|
-
className: modules_5e29d515['item-title'],
|
|
18685
|
+
className: classes(modules_5e29d515['item-title'], highlight && modules_5e29d515.highlight),
|
|
18800
18686
|
children: title
|
|
18801
18687
|
}), rightComponent !== undefined && Number(rightComponent) !== 0 && jsx("span", {
|
|
18802
18688
|
className: modules_5e29d515['item-count'],
|
|
@@ -18810,19 +18696,46 @@ var Title = function Title(_ref) {
|
|
|
18810
18696
|
})]
|
|
18811
18697
|
});
|
|
18812
18698
|
};
|
|
18699
|
+
/** Collect all paths (with array children) up to the given depth. Depth 1 = root level. */
|
|
18700
|
+
function collectOpenPaths(meta, maxDepth) {
|
|
18701
|
+
var out = [];
|
|
18702
|
+
if (maxDepth <= 0) return out;
|
|
18703
|
+
var _walk = function walk(node, path, depth) {
|
|
18704
|
+
if (depth >= maxDepth) return;
|
|
18705
|
+
if (Array.isArray(node.list)) {
|
|
18706
|
+
var total = node.list.length;
|
|
18707
|
+
out.push({
|
|
18708
|
+
path: path,
|
|
18709
|
+
total: total
|
|
18710
|
+
});
|
|
18711
|
+
// continue to next level
|
|
18712
|
+
node.list.forEach(function (child, i) {
|
|
18713
|
+
_walk(child, "".concat(path, ".list[").concat(i.toString(), "]"), depth + 1);
|
|
18714
|
+
});
|
|
18715
|
+
}
|
|
18716
|
+
};
|
|
18717
|
+
meta.forEach(function (n, i) {
|
|
18718
|
+
_walk(n, "metadata[".concat(i.toString(), "]"), 0);
|
|
18719
|
+
});
|
|
18720
|
+
return out;
|
|
18721
|
+
}
|
|
18722
|
+
// put near other refs/utilities
|
|
18723
|
+
var pathIsDescendant = function pathIsDescendant(p, ancestor) {
|
|
18724
|
+
return p === ancestor || p.startsWith("".concat(ancestor, "."));
|
|
18725
|
+
};
|
|
18726
|
+
var removePendingUnder = function removePendingUnder(prefix, pending) {
|
|
18727
|
+
for (var _i = 0, _Array$from = Array.from(pending); _i < _Array$from.length; _i++) {
|
|
18728
|
+
var p = _Array$from[_i];
|
|
18729
|
+
if (pathIsDescendant(p, prefix)) pending["delete"](p);
|
|
18730
|
+
}
|
|
18731
|
+
};
|
|
18813
18732
|
var HierarchyBrowser = function HierarchyBrowser(_ref2) {
|
|
18814
18733
|
var _ref2$className = _ref2.className,
|
|
18815
18734
|
className = _ref2$className === void 0 ? '' : _ref2$className,
|
|
18816
18735
|
_ref2$metadata = _ref2.metadata,
|
|
18817
18736
|
metadata = _ref2$metadata === void 0 ? [] : _ref2$metadata,
|
|
18818
|
-
|
|
18819
|
-
|
|
18820
|
-
// left blank
|
|
18821
|
-
} : _ref2$onItemClick,
|
|
18822
|
-
_ref2$onItemDoubleCli = _ref2.onItemDoubleClick,
|
|
18823
|
-
onItemDoubleClick = _ref2$onItemDoubleCli === void 0 ? function () {
|
|
18824
|
-
// left blank
|
|
18825
|
-
} : _ref2$onItemDoubleCli,
|
|
18737
|
+
onItemClick = _ref2.onItemClick,
|
|
18738
|
+
onItemDoubleClick = _ref2.onItemDoubleClick,
|
|
18826
18739
|
callbackOnScroll = _ref2.callbackOnScroll,
|
|
18827
18740
|
_ref2$minWidth = _ref2.minWidth,
|
|
18828
18741
|
minWidth = _ref2$minWidth === void 0 ? 220 : _ref2$minWidth,
|
|
@@ -18832,8 +18745,19 @@ var HierarchyBrowser = function HierarchyBrowser(_ref2) {
|
|
|
18832
18745
|
_ref2$setItemProps = _ref2.setItemProps,
|
|
18833
18746
|
setItemProps = _ref2$setItemProps === void 0 ? function () {
|
|
18834
18747
|
return {};
|
|
18835
|
-
} : _ref2$setItemProps
|
|
18748
|
+
} : _ref2$setItemProps,
|
|
18749
|
+
_ref2$progressiveRend = _ref2.progressiveRender,
|
|
18750
|
+
progressiveRender = _ref2$progressiveRend === void 0 ? true : _ref2$progressiveRend,
|
|
18751
|
+
_ref2$initialChunkSiz = _ref2.initialChunkSize,
|
|
18752
|
+
initialChunkSize = _ref2$initialChunkSiz === void 0 ? 200 : _ref2$initialChunkSiz,
|
|
18753
|
+
_ref2$subsequentChunk = _ref2.subsequentChunkSize,
|
|
18754
|
+
subsequentChunkSize = _ref2$subsequentChunk === void 0 ? 200 : _ref2$subsequentChunk,
|
|
18755
|
+
_ref2$chunkSearchResu = _ref2.chunkSearchResults,
|
|
18756
|
+
chunkSearchResults = _ref2$chunkSearchResu === void 0 ? true : _ref2$chunkSearchResu,
|
|
18757
|
+
_ref2$defaultOpenLeve = _ref2.defaultOpenLevel,
|
|
18758
|
+
defaultOpenLevel = _ref2$defaultOpenLeve === void 0 ? 0 : _ref2$defaultOpenLeve;
|
|
18836
18759
|
var browserRef = useRef(null);
|
|
18760
|
+
// --- your existing state (preserved) ---
|
|
18837
18761
|
var _useState = useState({}),
|
|
18838
18762
|
_useState2 = _slicedToArray(_useState, 2),
|
|
18839
18763
|
searchResults = _useState2[0],
|
|
@@ -18842,6 +18766,26 @@ var HierarchyBrowser = function HierarchyBrowser(_ref2) {
|
|
|
18842
18766
|
_useState4 = _slicedToArray(_useState3, 2),
|
|
18843
18767
|
activePath = _useState4[0],
|
|
18844
18768
|
setActivePath = _useState4[1];
|
|
18769
|
+
var _useState5 = useState(null),
|
|
18770
|
+
_useState6 = _slicedToArray(_useState5, 2),
|
|
18771
|
+
lastOpenedPath = _useState6[0],
|
|
18772
|
+
setLastOpenedPath = _useState6[1];
|
|
18773
|
+
var _useState7 = useState(null),
|
|
18774
|
+
_useState8 = _slicedToArray(_useState7, 2),
|
|
18775
|
+
searchingPath = _useState8[0],
|
|
18776
|
+
setSearchingPath = _useState8[1];
|
|
18777
|
+
// --- new state for progressive mounting ---
|
|
18778
|
+
var _useState9 = useState(new Set()),
|
|
18779
|
+
_useState0 = _slicedToArray(_useState9, 2),
|
|
18780
|
+
openPaths = _useState0[0],
|
|
18781
|
+
setOpenPaths = _useState0[1];
|
|
18782
|
+
var _useState1 = useState(new Map()),
|
|
18783
|
+
_useState10 = _slicedToArray(_useState1, 2),
|
|
18784
|
+
visibleCounts = _useState10[0],
|
|
18785
|
+
setVisibleCounts = _useState10[1];
|
|
18786
|
+
var totalCountsRef = useRef(new Map());
|
|
18787
|
+
var pendingPathsRef = useRef(new Set());
|
|
18788
|
+
var scheduledRef = useRef(false);
|
|
18845
18789
|
useResize({
|
|
18846
18790
|
ref: browserRef,
|
|
18847
18791
|
styles: {
|
|
@@ -18851,122 +18795,258 @@ var HierarchyBrowser = function HierarchyBrowser(_ref2) {
|
|
|
18851
18795
|
},
|
|
18852
18796
|
enabled: resizable !== null && resizable !== void 0 ? resizable : true
|
|
18853
18797
|
});
|
|
18854
|
-
var
|
|
18855
|
-
|
|
18856
|
-
|
|
18857
|
-
|
|
18858
|
-
|
|
18859
|
-
|
|
18860
|
-
|
|
18861
|
-
|
|
18862
|
-
|
|
18863
|
-
|
|
18864
|
-
|
|
18798
|
+
var didInitDefaultOpen = useRef(false);
|
|
18799
|
+
var kickScheduler = useCallback(function () {
|
|
18800
|
+
if (scheduledRef.current) return;
|
|
18801
|
+
scheduledRef.current = true;
|
|
18802
|
+
scheduleIdle(function () {
|
|
18803
|
+
scheduledRef.current = false;
|
|
18804
|
+
var changed = false;
|
|
18805
|
+
startTransition(function () {
|
|
18806
|
+
setVisibleCounts(function (prev) {
|
|
18807
|
+
var next = new Map(prev);
|
|
18808
|
+
for (var _i2 = 0, _Array$from2 = Array.from(pendingPathsRef.current); _i2 < _Array$from2.length; _i2++) {
|
|
18809
|
+
var _totalCountsRef$curre, _next$get;
|
|
18810
|
+
var path = _Array$from2[_i2];
|
|
18811
|
+
if (!openPaths.has(path)) {
|
|
18812
|
+
pendingPathsRef.current["delete"](path);
|
|
18813
|
+
}
|
|
18814
|
+
var total = (_totalCountsRef$curre = totalCountsRef.current.get(path)) !== null && _totalCountsRef$curre !== void 0 ? _totalCountsRef$curre : 0;
|
|
18815
|
+
var current = (_next$get = next.get(path)) !== null && _next$get !== void 0 ? _next$get : Math.min(initialChunkSize, total);
|
|
18816
|
+
if (current < total) {
|
|
18817
|
+
next.set(path, Math.min(current + subsequentChunkSize, total));
|
|
18818
|
+
changed = true;
|
|
18819
|
+
} else {
|
|
18820
|
+
pendingPathsRef.current["delete"](path);
|
|
18821
|
+
}
|
|
18822
|
+
}
|
|
18823
|
+
return changed ? next : prev;
|
|
18824
|
+
});
|
|
18825
|
+
});
|
|
18826
|
+
if (pendingPathsRef.current.size) kickScheduler();
|
|
18827
|
+
});
|
|
18828
|
+
}, [openPaths, initialChunkSize, subsequentChunkSize]);
|
|
18829
|
+
useEffect(function () {
|
|
18830
|
+
if (didInitDefaultOpen.current) return;
|
|
18831
|
+
if (defaultOpenLevel <= 0) return;
|
|
18832
|
+
if (metadata.length === 0) return;
|
|
18833
|
+
var targets = collectOpenPaths(metadata, defaultOpenLevel);
|
|
18834
|
+
if (!targets.length) return;
|
|
18835
|
+
setOpenPaths(function (prev) {
|
|
18836
|
+
var next = new Set(prev);
|
|
18837
|
+
var _iterator = _createForOfIteratorHelper(targets),
|
|
18838
|
+
_step;
|
|
18839
|
+
try {
|
|
18840
|
+
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
18841
|
+
var path = _step.value.path;
|
|
18842
|
+
next.add(path);
|
|
18843
|
+
}
|
|
18844
|
+
} catch (err) {
|
|
18845
|
+
_iterator.e(err);
|
|
18846
|
+
} finally {
|
|
18847
|
+
_iterator.f();
|
|
18848
|
+
}
|
|
18849
|
+
return next;
|
|
18850
|
+
});
|
|
18851
|
+
startTransition(function () {
|
|
18852
|
+
setVisibleCounts(function (prev) {
|
|
18853
|
+
var next = new Map(prev);
|
|
18854
|
+
var _iterator2 = _createForOfIteratorHelper(targets),
|
|
18855
|
+
_step2;
|
|
18856
|
+
try {
|
|
18857
|
+
for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
|
|
18858
|
+
var _step2$value = _step2.value,
|
|
18859
|
+
path = _step2$value.path,
|
|
18860
|
+
total = _step2$value.total;
|
|
18861
|
+
totalCountsRef.current.set(path, total);
|
|
18862
|
+
if (!next.has(path)) next.set(path, Math.min(initialChunkSize, total || initialChunkSize));
|
|
18863
|
+
pendingPathsRef.current.add(path);
|
|
18864
|
+
}
|
|
18865
|
+
} catch (err) {
|
|
18866
|
+
_iterator2.e(err);
|
|
18867
|
+
} finally {
|
|
18868
|
+
_iterator2.f();
|
|
18869
|
+
}
|
|
18870
|
+
return next;
|
|
18871
|
+
});
|
|
18872
|
+
});
|
|
18873
|
+
kickScheduler();
|
|
18874
|
+
didInitDefaultOpen.current = true; // <-- move here (after we actually initialized)
|
|
18875
|
+
}, [metadata, defaultOpenLevel, initialChunkSize, kickScheduler]);
|
|
18865
18876
|
var getParentPath = function getParentPath(path) {
|
|
18866
18877
|
var parts = path.split('.list[');
|
|
18867
18878
|
if (parts.length <= 1) return null;
|
|
18868
18879
|
parts.pop();
|
|
18869
18880
|
return parts.join('.list[');
|
|
18870
18881
|
};
|
|
18871
|
-
var trackOpenState = function trackOpenState(
|
|
18872
|
-
setOpenPaths(function (
|
|
18873
|
-
var
|
|
18882
|
+
var trackOpenState = function trackOpenState(pathString, open) {
|
|
18883
|
+
setOpenPaths(function (prev) {
|
|
18884
|
+
var next = new Set(prev);
|
|
18874
18885
|
if (open) {
|
|
18875
|
-
|
|
18886
|
+
next.add(pathString);
|
|
18876
18887
|
setLastOpenedPath(pathString);
|
|
18888
|
+
startTransition(function () {
|
|
18889
|
+
setVisibleCounts(function (prevVC) {
|
|
18890
|
+
var _totalCountsRef$curre2;
|
|
18891
|
+
var out = new Map(prevVC);
|
|
18892
|
+
var total = (_totalCountsRef$curre2 = totalCountsRef.current.get(pathString)) !== null && _totalCountsRef$curre2 !== void 0 ? _totalCountsRef$curre2 : 0;
|
|
18893
|
+
if (!out.has(pathString)) {
|
|
18894
|
+
out.set(pathString, Math.min(initialChunkSize, total || initialChunkSize));
|
|
18895
|
+
}
|
|
18896
|
+
return out;
|
|
18897
|
+
});
|
|
18898
|
+
});
|
|
18899
|
+
pendingPathsRef.current.add(pathString);
|
|
18900
|
+
kickScheduler();
|
|
18877
18901
|
} else {
|
|
18878
|
-
|
|
18879
|
-
|
|
18880
|
-
|
|
18881
|
-
|
|
18902
|
+
// ❗ Close ONLY this node; keep descendant open states intact so they "remember" expansion.
|
|
18903
|
+
next["delete"](pathString);
|
|
18904
|
+
// Stop progressive appends for this subtree while hidden, but DO NOT erase saved slices.
|
|
18905
|
+
removePendingUnder(pathString, pendingPathsRef.current);
|
|
18906
|
+
// Keep visibleCounts and totalCounts as-is (cached), so re-open resumes where it left off.
|
|
18907
|
+
// Pick a sensible lastOpenedPath that is still visible (parent if open, else null).
|
|
18908
|
+
var parent = getParentPath(pathString);
|
|
18909
|
+
if (parent && next.has(parent)) setLastOpenedPath(parent);else setLastOpenedPath(null);
|
|
18910
|
+
// Preserve your search behavior (clear search for this path on close) — optional
|
|
18911
|
+
setSearchResults(function (previous) {
|
|
18912
|
+
return Object.fromEntries(Object.entries(previous).filter(function (_ref3) {
|
|
18913
|
+
var _ref4 = _slicedToArray(_ref3, 1),
|
|
18914
|
+
k = _ref4[0];
|
|
18915
|
+
return k !== pathString;
|
|
18916
|
+
}));
|
|
18882
18917
|
});
|
|
18883
|
-
if (
|
|
18884
|
-
var parent = getParentPath(pathString);
|
|
18885
|
-
if (parent && newPaths.has(parent)) {
|
|
18886
|
-
setLastOpenedPath(parent);
|
|
18887
|
-
} else {
|
|
18888
|
-
var sorted = Array.from(newPaths).sort(function (a, b) {
|
|
18889
|
-
return b.length - a.length;
|
|
18890
|
-
});
|
|
18891
|
-
var fallback = sorted[0];
|
|
18892
|
-
if (fallback) {
|
|
18893
|
-
setLastOpenedPath(fallback);
|
|
18894
|
-
} else {
|
|
18895
|
-
setLastOpenedPath(null);
|
|
18896
|
-
}
|
|
18897
|
-
}
|
|
18898
|
-
}
|
|
18918
|
+
if (searchingPath === pathString) setSearchingPath(null);
|
|
18899
18919
|
}
|
|
18900
|
-
return
|
|
18920
|
+
return next;
|
|
18901
18921
|
});
|
|
18902
18922
|
};
|
|
18923
|
+
// Keep search UX as-is
|
|
18903
18924
|
var handleItemClick = function handleItemClick(item, pathString) {
|
|
18904
18925
|
return function (open) {
|
|
18905
|
-
onItemClick(item, pathString, open);
|
|
18926
|
+
onItemClick === null || onItemClick === void 0 || onItemClick(item, pathString, open);
|
|
18906
18927
|
setActivePath(pathString);
|
|
18907
|
-
if (!open) {
|
|
18908
|
-
setSearchResults(function (prev) {
|
|
18909
|
-
return Object.fromEntries(Object.entries(prev).filter(function (_ref3) {
|
|
18910
|
-
var _ref4 = _slicedToArray(_ref3, 1),
|
|
18911
|
-
key = _ref4[0];
|
|
18912
|
-
return key !== pathString;
|
|
18913
|
-
}));
|
|
18914
|
-
});
|
|
18915
|
-
}
|
|
18916
18928
|
};
|
|
18917
18929
|
};
|
|
18918
18930
|
var handleItemDoubleClick = function handleItemDoubleClick(item, pathString) {
|
|
18919
18931
|
return function (open) {
|
|
18920
|
-
onItemDoubleClick(item, pathString, open);
|
|
18932
|
+
onItemDoubleClick === null || onItemDoubleClick === void 0 || onItemDoubleClick(item, pathString, open);
|
|
18921
18933
|
};
|
|
18922
18934
|
};
|
|
18923
|
-
var handleSearchSubmit = function handleSearchSubmit(
|
|
18935
|
+
var handleSearchSubmit = function handleSearchSubmit(text, pathString) {
|
|
18924
18936
|
setSearchResults(function (prev) {
|
|
18925
|
-
return _objectSpread2(_objectSpread2({}, prev), {}, _defineProperty({}, pathString, (
|
|
18937
|
+
return _objectSpread2(_objectSpread2({}, prev), {}, _defineProperty({}, pathString, (text !== null && text !== void 0 ? text : '').toLowerCase()));
|
|
18926
18938
|
});
|
|
18939
|
+
setSearchingPath(null);
|
|
18940
|
+
// Optional: reset visible slice for this path so new results start at initialChunkSize
|
|
18941
|
+
if (chunkSearchResults) {
|
|
18942
|
+
startTransition(function () {
|
|
18943
|
+
setVisibleCounts(function (prev) {
|
|
18944
|
+
var _totalCountsRef$curre3;
|
|
18945
|
+
var out = new Map(prev);
|
|
18946
|
+
var total = (_totalCountsRef$curre3 = totalCountsRef.current.get(pathString)) !== null && _totalCountsRef$curre3 !== void 0 ? _totalCountsRef$curre3 : 0;
|
|
18947
|
+
out.set(pathString, Math.min(initialChunkSize, total || initialChunkSize));
|
|
18948
|
+
return out;
|
|
18949
|
+
});
|
|
18950
|
+
});
|
|
18951
|
+
pendingPathsRef.current.add(pathString);
|
|
18952
|
+
kickScheduler();
|
|
18953
|
+
}
|
|
18927
18954
|
};
|
|
18928
|
-
var shouldDisplayItem = function shouldDisplayItem(item,
|
|
18955
|
+
var shouldDisplayItem = function shouldDisplayItem(item, s) {
|
|
18929
18956
|
var _item$title$toLowerCa, _item$title;
|
|
18930
|
-
|
|
18931
|
-
return (_item$title$toLowerCa = (_item$title = item.title) === null || _item$title === void 0 ? void 0 : _item$title.toLowerCase().includes(searchText)) !== null && _item$title$toLowerCa !== void 0 ? _item$title$toLowerCa : false;
|
|
18957
|
+
return !s ? true : (_item$title$toLowerCa = (_item$title = item.title) === null || _item$title === void 0 ? void 0 : _item$title.toLowerCase().includes(s)) !== null && _item$title$toLowerCa !== void 0 ? _item$title$toLowerCa : false;
|
|
18932
18958
|
};
|
|
18959
|
+
// If filtering reduces totals, clamp visibleCounts
|
|
18960
|
+
useEffect(function () {
|
|
18961
|
+
startTransition(function () {
|
|
18962
|
+
setVisibleCounts(function (prev) {
|
|
18963
|
+
var changed = false;
|
|
18964
|
+
var out = new Map(prev);
|
|
18965
|
+
var _iterator3 = _createForOfIteratorHelper(out),
|
|
18966
|
+
_step3;
|
|
18967
|
+
try {
|
|
18968
|
+
for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {
|
|
18969
|
+
var _step3$value = _slicedToArray(_step3.value, 2),
|
|
18970
|
+
path = _step3$value[0],
|
|
18971
|
+
count = _step3$value[1];
|
|
18972
|
+
var total = totalCountsRef.current.get(path);
|
|
18973
|
+
if (typeof total === 'number' && count > total) {
|
|
18974
|
+
out.set(path, total);
|
|
18975
|
+
changed = true;
|
|
18976
|
+
}
|
|
18977
|
+
}
|
|
18978
|
+
} catch (err) {
|
|
18979
|
+
_iterator3.e(err);
|
|
18980
|
+
} finally {
|
|
18981
|
+
_iterator3.f();
|
|
18982
|
+
}
|
|
18983
|
+
return changed ? out : prev;
|
|
18984
|
+
});
|
|
18985
|
+
});
|
|
18986
|
+
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
18987
|
+
}, [searchResults]);
|
|
18933
18988
|
var _renderTree = function renderTree(data) {
|
|
18934
18989
|
var _searchResults$curren, _data$list;
|
|
18935
18990
|
var pathString = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '';
|
|
18936
|
-
var isLast = arguments.length >
|
|
18937
|
-
var
|
|
18991
|
+
var isLast = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;
|
|
18992
|
+
var allChildren = Array.isArray(data.list) ? data.list : [];
|
|
18938
18993
|
var currentPath = pathString || 'metadata';
|
|
18939
18994
|
var searchText = (_searchResults$curren = searchResults[currentPath]) !== null && _searchResults$curren !== void 0 ? _searchResults$curren : '';
|
|
18940
|
-
var filteredChildren = searchText ?
|
|
18941
|
-
return shouldDisplayItem(
|
|
18942
|
-
}) :
|
|
18995
|
+
var filteredChildren = searchText ? allChildren.filter(function (ch) {
|
|
18996
|
+
return shouldDisplayItem(ch, searchText);
|
|
18997
|
+
}) : allChildren;
|
|
18943
18998
|
var _setItemProps = setItemProps(data, currentPath),
|
|
18944
18999
|
leftComponent = _setItemProps.leftComponent,
|
|
18945
19000
|
rightComponent = _setItemProps.rightComponent,
|
|
18946
19001
|
title = _setItemProps.title,
|
|
18947
19002
|
count = _setItemProps.count,
|
|
18948
19003
|
ref = _setItemProps.ref;
|
|
18949
|
-
|
|
18950
|
-
|
|
18951
|
-
|
|
18952
|
-
|
|
19004
|
+
var isOpenHere = openPaths.has(currentPath);
|
|
19005
|
+
if (isOpenHere) {
|
|
19006
|
+
// record totals (after filtering) for scheduler targets
|
|
19007
|
+
totalCountsRef.current.set(currentPath, filteredChildren.length);
|
|
19008
|
+
if (progressiveRender && !visibleCounts.has(currentPath)) {
|
|
19009
|
+
pendingPathsRef.current.add(currentPath);
|
|
19010
|
+
}
|
|
19011
|
+
}
|
|
19012
|
+
var childrenToRender = [];
|
|
19013
|
+
if (isOpenHere) {
|
|
19014
|
+
if (!progressiveRender) {
|
|
19015
|
+
childrenToRender = filteredChildren;
|
|
19016
|
+
} else {
|
|
19017
|
+
var shouldChunk = chunkSearchResults || !searchText;
|
|
19018
|
+
if (!shouldChunk) {
|
|
19019
|
+
childrenToRender = filteredChildren;
|
|
19020
|
+
} else {
|
|
19021
|
+
var _visibleCounts$get;
|
|
19022
|
+
var visible = (_visibleCounts$get = visibleCounts.get(currentPath)) !== null && _visibleCounts$get !== void 0 ? _visibleCounts$get : Math.min(initialChunkSize, filteredChildren.length);
|
|
19023
|
+
childrenToRender = filteredChildren.slice(0, visible);
|
|
19024
|
+
if (visible < filteredChildren.length) pendingPathsRef.current.add(currentPath);
|
|
19025
|
+
}
|
|
19026
|
+
}
|
|
19027
|
+
}
|
|
19028
|
+
return jsx(HierarchyItem, {
|
|
18953
19029
|
callbackOnScroll: callbackOnScroll,
|
|
18954
19030
|
ref: ref,
|
|
18955
19031
|
pathString: currentPath,
|
|
18956
|
-
title: jsx(Title, {
|
|
19032
|
+
title: searchText ? jsx(Title, {
|
|
19033
|
+
title: searchText,
|
|
19034
|
+
highlight: true
|
|
19035
|
+
}) : jsx(Title, {
|
|
18957
19036
|
leftComponent: leftComponent,
|
|
18958
19037
|
title: title,
|
|
18959
19038
|
rightComponent: rightComponent
|
|
18960
19039
|
}),
|
|
18961
|
-
iconPlacement:
|
|
19040
|
+
iconPlacement: allChildren.length ? 'left' : 'none',
|
|
18962
19041
|
onClick: function onClick(open) {
|
|
18963
19042
|
handleItemClick(data, currentPath)(open);
|
|
18964
|
-
trackOpenState(
|
|
19043
|
+
trackOpenState(currentPath, open);
|
|
18965
19044
|
},
|
|
18966
19045
|
onDoubleClick: function onDoubleClick(open) {
|
|
18967
19046
|
handleItemDoubleClick(data, currentPath)(open);
|
|
18968
|
-
trackOpenState(
|
|
19047
|
+
trackOpenState(currentPath, open);
|
|
18969
19048
|
},
|
|
19049
|
+
controlledOpen: isOpenHere,
|
|
18970
19050
|
active: activePath === currentPath,
|
|
18971
19051
|
lastActive: lastOpenedPath === currentPath,
|
|
18972
19052
|
isLastItem: isLast,
|
|
@@ -18978,17 +19058,20 @@ var HierarchyBrowser = function HierarchyBrowser(_ref2) {
|
|
|
18978
19058
|
onSearchStart: function onSearchStart() {
|
|
18979
19059
|
setSearchingPath(currentPath);
|
|
18980
19060
|
},
|
|
19061
|
+
searchedText: searchText,
|
|
18981
19062
|
onSearchSubmit: function onSearchSubmit(text) {
|
|
18982
19063
|
handleSearchSubmit(text, currentPath);
|
|
18983
|
-
setSearchingPath(null);
|
|
18984
19064
|
},
|
|
18985
|
-
children:
|
|
18986
|
-
var isLastChild = idx ===
|
|
19065
|
+
children: childrenToRender.map(function (child, idx) {
|
|
19066
|
+
var isLastChild = idx === childrenToRender.length - 1;
|
|
18987
19067
|
var nextPath = "".concat(currentPath, ".list[").concat(String(idx), "]");
|
|
18988
|
-
return _renderTree(child, nextPath,
|
|
19068
|
+
return _renderTree(child, nextPath, isLastChild);
|
|
18989
19069
|
})
|
|
18990
|
-
});
|
|
19070
|
+
}, currentPath);
|
|
18991
19071
|
};
|
|
19072
|
+
useEffect(function () {
|
|
19073
|
+
if (pendingPathsRef.current.size) kickScheduler();
|
|
19074
|
+
}, [openPaths, searchResults, kickScheduler]);
|
|
18992
19075
|
return jsx("div", {
|
|
18993
19076
|
ref: browserRef,
|
|
18994
19077
|
className: classes(modules_5e29d515.root, resizable ? modules_5e29d515.resizable : '', className),
|
|
@@ -18997,7 +19080,7 @@ var HierarchyBrowser = function HierarchyBrowser(_ref2) {
|
|
|
18997
19080
|
"data-elem": 'body',
|
|
18998
19081
|
children: metadata.map(function (item, index) {
|
|
18999
19082
|
var isLastItem = index === metadata.length - 1;
|
|
19000
|
-
return _renderTree(item, "metadata[".concat(String(index), "]"),
|
|
19083
|
+
return _renderTree(item, "metadata[".concat(String(index), "]"), isLastItem);
|
|
19001
19084
|
})
|
|
19002
19085
|
})
|
|
19003
19086
|
});
|
|
@@ -19698,11 +19781,14 @@ var css$n = ".Dialog_module_root__afbc0e34 {\n padding: 0.25rem 0px;\n height:
|
|
|
19698
19781
|
var modules_ca1540aa = {"root":"Dialog_module_root__afbc0e34","sm":"Dialog_module_sm__afbc0e34","md":"Dialog_module_md__afbc0e34","footer":"Dialog_module_footer__afbc0e34","cancel":"Dialog_module_cancel__afbc0e34","description":"Dialog_module_description__afbc0e34"};
|
|
19699
19782
|
n(css$n,{});
|
|
19700
19783
|
|
|
19784
|
+
/* -------------------------------------------------------------------------- */
|
|
19785
|
+
/* Helper components */
|
|
19786
|
+
/* -------------------------------------------------------------------------- */
|
|
19701
19787
|
var Header$1 = function Header(_ref) {
|
|
19702
19788
|
var title = _ref.title;
|
|
19703
|
-
return
|
|
19704
|
-
component:
|
|
19705
|
-
variant:
|
|
19789
|
+
return jsx(Text, {
|
|
19790
|
+
component: 'h2',
|
|
19791
|
+
variant: 'b1',
|
|
19706
19792
|
weight: 600,
|
|
19707
19793
|
children: title
|
|
19708
19794
|
});
|
|
@@ -19710,35 +19796,45 @@ var Header$1 = function Header(_ref) {
|
|
|
19710
19796
|
var Footer$1 = function Footer(_ref2) {
|
|
19711
19797
|
var action = _ref2.action,
|
|
19712
19798
|
cancel = _ref2.cancel,
|
|
19713
|
-
onAction = _ref2.onAction,
|
|
19714
|
-
onCancel = _ref2.onCancel,
|
|
19715
|
-
hideCancel = _ref2.hideCancel,
|
|
19716
19799
|
variant = _ref2.variant,
|
|
19800
|
+
CustomAction = _ref2.customAction,
|
|
19717
19801
|
setOpen = _ref2.setOpen,
|
|
19718
|
-
|
|
19719
|
-
|
|
19802
|
+
hideCancel = _ref2.hideCancel,
|
|
19803
|
+
onAction = _ref2.onAction,
|
|
19804
|
+
onCancel = _ref2.onCancel;
|
|
19805
|
+
return jsxs("div", {
|
|
19720
19806
|
className: modules_ca1540aa.footer,
|
|
19721
|
-
children: [!hideCancel &&
|
|
19722
|
-
|
|
19723
|
-
variant: "outlined",
|
|
19807
|
+
children: [!hideCancel && jsx(Button, {
|
|
19808
|
+
variant: 'outlined',
|
|
19724
19809
|
className: modules_ca1540aa.cancel,
|
|
19725
19810
|
onClick: onCancel,
|
|
19726
19811
|
title: cancel
|
|
19727
|
-
}), CustomAction &&
|
|
19812
|
+
}), CustomAction && jsx(CustomAction, {
|
|
19728
19813
|
dismiss: function dismiss() {
|
|
19729
19814
|
setOpen(false);
|
|
19730
19815
|
}
|
|
19731
|
-
}), onAction &&
|
|
19732
|
-
onClick:
|
|
19816
|
+
}), onAction && jsx(Button, {
|
|
19817
|
+
onClick: function onClick() {
|
|
19818
|
+
return onAction({
|
|
19819
|
+
dismiss: function dismiss() {
|
|
19820
|
+
return setOpen(false);
|
|
19821
|
+
}
|
|
19822
|
+
});
|
|
19823
|
+
},
|
|
19733
19824
|
className: modules_ca1540aa.save,
|
|
19734
19825
|
title: action,
|
|
19735
19826
|
color: variant
|
|
19736
19827
|
})]
|
|
19737
19828
|
});
|
|
19738
19829
|
};
|
|
19739
|
-
|
|
19740
|
-
|
|
19741
|
-
|
|
19830
|
+
/* -------------------------------------------------------------------------- */
|
|
19831
|
+
/* Main Dialog component */
|
|
19832
|
+
/* -------------------------------------------------------------------------- */
|
|
19833
|
+
var DialogBox = /*#__PURE__*/forwardRef(function (_ref3, ref) {
|
|
19834
|
+
var _ref3$className = _ref3.className,
|
|
19835
|
+
className = _ref3$className === void 0 ? '' : _ref3$className,
|
|
19836
|
+
_ref3$size = _ref3.size,
|
|
19837
|
+
defaultSize = _ref3$size === void 0 ? 'md' : _ref3$size;
|
|
19742
19838
|
var _useState = useState(false),
|
|
19743
19839
|
_useState2 = _slicedToArray(_useState, 2),
|
|
19744
19840
|
open = _useState2[0],
|
|
@@ -19759,13 +19855,16 @@ var DialogBox = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
19759
19855
|
dialogProps = _useState4[0],
|
|
19760
19856
|
setDialogProps = _useState4[1];
|
|
19761
19857
|
var description = dialogProps.description,
|
|
19762
|
-
|
|
19763
|
-
|
|
19764
|
-
|
|
19858
|
+
_dialogProps$actionTe = dialogProps.actionText,
|
|
19859
|
+
actionText = _dialogProps$actionTe === void 0 ? 'Done' : _dialogProps$actionTe,
|
|
19860
|
+
_dialogProps$cancelTe = dialogProps.cancelText,
|
|
19861
|
+
cancelText = _dialogProps$cancelTe === void 0 ? 'Dismiss' : _dialogProps$cancelTe,
|
|
19862
|
+
_dialogProps$variant = dialogProps.variant,
|
|
19863
|
+
variant = _dialogProps$variant === void 0 ? 'primary' : _dialogProps$variant,
|
|
19765
19864
|
title = dialogProps.title,
|
|
19766
|
-
|
|
19865
|
+
onAction = dialogProps.onAction,
|
|
19767
19866
|
onCancel = dialogProps.onCancel,
|
|
19768
|
-
|
|
19867
|
+
customAction = dialogProps.customAction,
|
|
19769
19868
|
_dialogProps$hideCanc = dialogProps.hideCancel,
|
|
19770
19869
|
hideCancel = _dialogProps$hideCanc === void 0 ? false : _dialogProps$hideCanc,
|
|
19771
19870
|
_dialogProps$noDismis = dialogProps.noDismiss,
|
|
@@ -19778,51 +19877,21 @@ var DialogBox = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
19778
19877
|
onCancel === null || onCancel === void 0 || onCancel();
|
|
19779
19878
|
setOpen(false);
|
|
19780
19879
|
};
|
|
19781
|
-
|
|
19782
|
-
title: title
|
|
19783
|
-
};
|
|
19784
|
-
var footerProps = function footerProps(_ref3) {
|
|
19785
|
-
var setNoDismissEnabled = _ref3.setNoDismissEnabled;
|
|
19786
|
-
return _objectSpread2(_objectSpread2(_objectSpread2({
|
|
19787
|
-
action: actionText,
|
|
19788
|
-
cancel: cancelText,
|
|
19789
|
-
hideCancel: hideCancel,
|
|
19790
|
-
variant: variant,
|
|
19791
|
-
setOpen: setOpen
|
|
19792
|
-
}, _customAction && {
|
|
19793
|
-
customAction: function customAction() {
|
|
19794
|
-
return _customAction({
|
|
19795
|
-
setNoDismissEnabled: setNoDismissEnabled,
|
|
19796
|
-
dismiss: function dismiss() {
|
|
19797
|
-
setOpen(false);
|
|
19798
|
-
}
|
|
19799
|
-
});
|
|
19800
|
-
}
|
|
19801
|
-
}), _onAction && {
|
|
19802
|
-
onAction: function onAction() {
|
|
19803
|
-
_onAction({
|
|
19804
|
-
dismiss: function dismiss() {
|
|
19805
|
-
setOpen(false);
|
|
19806
|
-
}
|
|
19807
|
-
});
|
|
19808
|
-
}
|
|
19809
|
-
}), !hideCancel && {
|
|
19810
|
-
onCancel: toggle
|
|
19811
|
-
});
|
|
19812
|
-
};
|
|
19880
|
+
// function exposed through ref
|
|
19813
19881
|
var dialog = function dialog(appliedDialogProps) {
|
|
19814
|
-
setDialogProps(
|
|
19882
|
+
setDialogProps(function (prev) {
|
|
19883
|
+
return _objectSpread2(_objectSpread2({}, prev), appliedDialogProps);
|
|
19884
|
+
});
|
|
19815
19885
|
};
|
|
19816
19886
|
useImperativeHandle(ref, function () {
|
|
19817
19887
|
return {
|
|
19818
19888
|
dialog: dialog
|
|
19819
19889
|
};
|
|
19820
19890
|
});
|
|
19891
|
+
// open modal when dialogProps are populated
|
|
19821
19892
|
useEffect(function () {
|
|
19822
19893
|
if (dialogProps.title && (dialogProps.description || dialogProps.body)) {
|
|
19823
|
-
setOpen(
|
|
19824
|
-
return !prev;
|
|
19825
|
-
});
|
|
19894
|
+
setOpen(true);
|
|
19826
19895
|
}
|
|
19827
19896
|
}, [dialogProps]);
|
|
19828
19897
|
var _useState5 = useState(false),
|
|
@@ -19830,37 +19899,39 @@ var DialogBox = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
19830
19899
|
dismissEnabled = _useState6[0],
|
|
19831
19900
|
setNoDismissEnabled = _useState6[1];
|
|
19832
19901
|
useEffect(function () {
|
|
19833
|
-
setNoDismissEnabled(noDismiss);
|
|
19902
|
+
setNoDismissEnabled(noDismiss !== null && noDismiss !== void 0 ? noDismiss : false);
|
|
19834
19903
|
}, [noDismiss]);
|
|
19835
|
-
return
|
|
19904
|
+
return jsxs(BaseModal, {
|
|
19836
19905
|
open: open,
|
|
19837
19906
|
toggle: toggle,
|
|
19838
19907
|
hideCrossDismiss: hideCrossDismiss,
|
|
19839
19908
|
noDismiss: dismissEnabled,
|
|
19840
19909
|
className: classes(modules_ca1540aa.root, modules_ca1540aa[size], className),
|
|
19841
|
-
renderHeader: title
|
|
19842
|
-
|
|
19843
|
-
|
|
19844
|
-
|
|
19845
|
-
|
|
19910
|
+
renderHeader: title ? jsx(Header$1, {
|
|
19911
|
+
title: title
|
|
19912
|
+
}) : undefined,
|
|
19913
|
+
renderFooter: jsx(Footer$1, {
|
|
19914
|
+
action: actionText,
|
|
19915
|
+
cancel: cancelText,
|
|
19916
|
+
variant: variant,
|
|
19917
|
+
setOpen: setOpen,
|
|
19918
|
+
hideCancel: hideCancel,
|
|
19919
|
+
customAction: customAction,
|
|
19920
|
+
onAction: onAction !== null && onAction !== void 0 ? onAction : undefined,
|
|
19921
|
+
onCancel: !hideCancel ? toggle : undefined
|
|
19922
|
+
}),
|
|
19923
|
+
children: [Body && jsx(Body, {
|
|
19846
19924
|
dismiss: function dismiss() {
|
|
19847
|
-
setOpen(false);
|
|
19925
|
+
return setOpen(false);
|
|
19848
19926
|
},
|
|
19849
19927
|
setNoDismissEnabled: setNoDismissEnabled
|
|
19850
|
-
}),
|
|
19928
|
+
}), description && jsx("div", {
|
|
19851
19929
|
className: modules_ca1540aa.description,
|
|
19852
19930
|
children: description
|
|
19853
19931
|
})]
|
|
19854
19932
|
});
|
|
19855
19933
|
});
|
|
19856
|
-
DialogBox.
|
|
19857
|
-
className: propTypesExports.string,
|
|
19858
|
-
size: propTypesExports.oneOf(['sm', 'md'])
|
|
19859
|
-
};
|
|
19860
|
-
DialogBox.defaultProps = {
|
|
19861
|
-
className: '',
|
|
19862
|
-
size: 'md'
|
|
19863
|
-
};
|
|
19934
|
+
DialogBox.displayName = 'DialogBox';
|
|
19864
19935
|
|
|
19865
19936
|
var css$m = ".RichEditor_module_root__035ff1b7 {\n display: flex;\n flex-direction: column;\n justify-content: flex-start;\n align-items: flex-start;\n gap: 1rem;\n}\n.RichEditor_module_root__035ff1b7 .RichEditor_module_menu__035ff1b7 {\n display: flex;\n flex-direction: row;\n justify-content: flex-start;\n align-items: flex-start;\n gap: 0.625rem;\n}\n.RichEditor_module_root__035ff1b7 .RichEditor_module_menu__035ff1b7 .RichEditor_module_item__035ff1b7 {\n width: 2.5rem;\n height: 2.5rem;\n background-color: transparent !important;\n box-shadow: 0px 0px 0.125rem 0px rgba(0, 0, 0, 0.1450980392);\n z-index: 2;\n}\n.RichEditor_module_root__035ff1b7 .RichEditor_module_menu__035ff1b7 .RichEditor_module_item__035ff1b7.RichEditor_module_bold__035ff1b7 [data-elem=title] {\n font-size: 1.3rem;\n font-weight: 700;\n line-height: 2.0194rem;\n color: var(--mono-color1);\n}\n.RichEditor_module_root__035ff1b7 .RichEditor_module_menu__035ff1b7 .RichEditor_module_item__035ff1b7.RichEditor_module_italic__035ff1b7 [data-elem=title] {\n font-size: 1.5rem;\n line-height: 2.0194rem;\n font-style: italic;\n font-weight: 300;\n color: var(--mono-color1);\n padding-inline: 0.25rem;\n}\n.RichEditor_module_root__035ff1b7 .RichEditor_module_menu__035ff1b7 .RichEditor_module_item__035ff1b7.RichEditor_module_strike__035ff1b7 [data-elem=title] {\n font-size: 1.5rem;\n line-height: 2.0194rem;\n text-decoration: line-through;\n font-weight: 400;\n color: var(--mono-color1);\n}\n.RichEditor_module_root__035ff1b7 .RichEditor_module_menu__035ff1b7 .RichEditor_module_item__035ff1b7.RichEditor_module_underline__035ff1b7 [data-elem=title] {\n font-size: 1.5rem;\n line-height: 2.0194rem;\n font-weight: 400;\n color: var(--mono-color1);\n text-decoration: underline;\n}\n.RichEditor_module_root__035ff1b7 .RichEditor_module_menu__035ff1b7 .RichEditor_module_item__035ff1b7.RichEditor_module_color__035ff1b7 {\n cursor: pointer;\n}\n.RichEditor_module_root__035ff1b7 .RichEditor_module_menu__035ff1b7 .RichEditor_module_item__035ff1b7.RichEditor_module_color__035ff1b7 > label {\n height: 100%;\n}\n.RichEditor_module_root__035ff1b7 .RichEditor_module_menu__035ff1b7 .RichEditor_module_item__035ff1b7.RichEditor_module_color__035ff1b7 > label [data-elem=base-cell] {\n box-shadow: none;\n padding: 0.5rem;\n height: 100%;\n position: relative;\n}\n.RichEditor_module_root__035ff1b7 .RichEditor_module_menu__035ff1b7 .RichEditor_module_item__035ff1b7.RichEditor_module_color__035ff1b7 [data-elem=component2] {\n position: absolute;\n}\n.RichEditor_module_root__035ff1b7 .RichEditor_module_menu__035ff1b7 .RichEditor_module_item__035ff1b7.RichEditor_module_color__035ff1b7 [data-elem=component2] [data-elem=input] {\n opacity: 0;\n width: 2.5rem;\n}\n.RichEditor_module_root__035ff1b7 .RichEditor_module_menu__035ff1b7 .RichEditor_module_item__035ff1b7.RichEditor_module_link__035ff1b7 [data-elem=component2], .RichEditor_module_root__035ff1b7 .RichEditor_module_menu__035ff1b7 .RichEditor_module_item__035ff1b7.RichEditor_module_align__035ff1b7 [data-elem=component2] {\n min-width: unset;\n display: inline-block;\n}\n.RichEditor_module_root__035ff1b7 .RichEditor_module_menu__035ff1b7 .RichEditor_module_item__035ff1b7.RichEditor_module_active__035ff1b7 {\n background-color: var(--mono-color1) !important;\n}\n.RichEditor_module_root__035ff1b7 .RichEditor_module_menu__035ff1b7 .RichEditor_module_item__035ff1b7.RichEditor_module_active__035ff1b7 [data-elem=title] {\n color: var(--white);\n}\n.RichEditor_module_root__035ff1b7 .RichEditor_module_menu__035ff1b7 .RichEditor_module_dropdown__035ff1b7 {\n height: 2.5rem;\n width: 10rem;\n}\n.RichEditor_module_root__035ff1b7 .RichEditor_module_menu__035ff1b7 .RichEditor_module_dropdown__035ff1b7 [data-elem=header] {\n height: 100%;\n box-shadow: 0px 0px 0.125rem 0px rgba(0, 0, 0, 0.1450980392);\n}\n.RichEditor_module_root__035ff1b7 .RichEditor_module_menu__035ff1b7 .RichEditor_module_dropdown__035ff1b7 [data-elem=header] [data-elem=select] {\n padding: 0 !important;\n padding-inline: 1rem 0.75rem !important;\n}\n.RichEditor_module_root__035ff1b7 .RichEditor_module_menu__035ff1b7 .RichEditor_module_dropdown__035ff1b7 [data-elem=header] [data-elem=select] [data-elem=value] {\n color: var(--mono-color1);\n}\n.RichEditor_module_root__035ff1b7 .RichEditor_module_menu__035ff1b7 .RichEditor_module_dropdown__035ff1b7 [data-elem=header] [data-elem=select] svg {\n fill: var(--mono-color1) !important;\n}\n.RichEditor_module_root__035ff1b7 .RichEditor_module_editor__035ff1b7 {\n box-shadow: 0px 0px 0.125rem 0px rgba(0, 0, 0, 0.2509803922);\n width: 100%;\n height: 16rem;\n border-radius: 0.25rem;\n}\n.RichEditor_module_root__035ff1b7 .RichEditor_module_editor__035ff1b7 > div {\n border-radius: 0.25rem;\n height: 100%;\n padding: 0.75rem 1rem;\n overflow-y: scroll;\n -ms-overflow-style: none;\n scrollbar-width: none;\n}\n.RichEditor_module_root__035ff1b7 .RichEditor_module_editor__035ff1b7 > div::-webkit-scrollbar {\n display: none;\n}\n.RichEditor_module_root__035ff1b7 .RichEditor_module_editor__035ff1b7 > div > p:nth-child(1)::before {\n color: var(--mono-color2);\n content: attr(data-placeholder);\n float: left;\n height: 0;\n pointer-events: none;\n}\n.RichEditor_module_root__035ff1b7 .RichEditor_module_editor__035ff1b7 > div:focus-within {\n outline: var(--secondary-color2) 1px solid;\n}\n\n.RichEditor_module_popper__035ff1b7 {\n min-width: 15rem !important;\n}";
|
|
19866
19937
|
var modules_64f0815c = {"root":"RichEditor_module_root__035ff1b7","menu":"RichEditor_module_menu__035ff1b7","item":"RichEditor_module_item__035ff1b7","bold":"RichEditor_module_bold__035ff1b7","italic":"RichEditor_module_italic__035ff1b7","strike":"RichEditor_module_strike__035ff1b7","underline":"RichEditor_module_underline__035ff1b7","color":"RichEditor_module_color__035ff1b7","link":"RichEditor_module_link__035ff1b7","align":"RichEditor_module_align__035ff1b7","active":"RichEditor_module_active__035ff1b7","dropdown":"RichEditor_module_dropdown__035ff1b7","editor":"RichEditor_module_editor__035ff1b7","popper":"RichEditor_module_popper__035ff1b7"};
|
|
@@ -21502,7 +21573,7 @@ var TableCell = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
21502
21573
|
var isCentered = (style === null || style === void 0 ? void 0 : style.justifyContent) === 'center';
|
|
21503
21574
|
return jsx(BaseCell, {
|
|
21504
21575
|
ref: ref,
|
|
21505
|
-
className: classes(modules_7ba8d001.root, modules_7ba8d001["".concat(type, "-cell")], modules_7ba8d001["sticky-".concat(String(sticky))], sort && modules_7ba8d001.sortable, isCentered && modules_7ba8d001.centered, className),
|
|
21576
|
+
className: classes(modules_7ba8d001.root, modules_7ba8d001["".concat(type, "-cell")], modules_7ba8d001["sticky-".concat(String(sticky))], type === 'header' && sort && modules_7ba8d001.sortable, isCentered && modules_7ba8d001.centered, className),
|
|
21506
21577
|
attrs: _objectSpread2({
|
|
21507
21578
|
style: style
|
|
21508
21579
|
}, attrs),
|
|
@@ -21581,9 +21652,14 @@ var TableRow = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
21581
21652
|
var cellContent = null;
|
|
21582
21653
|
if (type === 'header') {
|
|
21583
21654
|
cellContent = item.title;
|
|
21584
|
-
}
|
|
21585
|
-
|
|
21586
|
-
|
|
21655
|
+
}
|
|
21656
|
+
if (type === 'body') {
|
|
21657
|
+
if (item.formatter) {
|
|
21658
|
+
cellContent = item.formatter(datum[item.id], _index, datum);
|
|
21659
|
+
} else {
|
|
21660
|
+
var _datum$item$id;
|
|
21661
|
+
cellContent = (_datum$item$id = datum[item.id]) !== null && _datum$item$id !== void 0 ? _datum$item$id : item.fallbackValue;
|
|
21662
|
+
}
|
|
21587
21663
|
}
|
|
21588
21664
|
var cellProps = _objectSpread2(_objectSpread2({}, props), item);
|
|
21589
21665
|
var getCustomCell = customCells === null || customCells === void 0 ? void 0 : customCells[type];
|
|
@@ -22131,14 +22207,12 @@ var TableFilters = function TableFilters(props) {
|
|
|
22131
22207
|
Active: function Active() {
|
|
22132
22208
|
return jsx(ColumnFilter, {
|
|
22133
22209
|
className: modules_a0fe63f9.icon,
|
|
22134
|
-
v2: true,
|
|
22135
22210
|
active: true
|
|
22136
22211
|
});
|
|
22137
22212
|
},
|
|
22138
22213
|
InActive: function InActive() {
|
|
22139
22214
|
return jsx(ColumnFilter, {
|
|
22140
|
-
className: modules_a0fe63f9.icon
|
|
22141
|
-
v2: true
|
|
22215
|
+
className: modules_a0fe63f9.icon
|
|
22142
22216
|
});
|
|
22143
22217
|
}
|
|
22144
22218
|
},
|
|
@@ -23113,5 +23187,5 @@ var BaseWidget = /*#__PURE__*/forwardRef(function BaseWidget(props, ref) {
|
|
|
23113
23187
|
});
|
|
23114
23188
|
});
|
|
23115
23189
|
|
|
23116
|
-
export { Accordion, Alert$1 as Alert, AlertIcon, AreaChartIcon, Arrow as ArrowIcon, BarChartIcon, BaseAreaChart$1 as BaseAreaChart, BaseAreaChart as BaseAreaChartV2, BaseBarChart as BaseBarChartV2, BaseButton, BaseCell, BaseHorizontalBarChart, BaseModal, BasePieChart$1 as BasePieChart, BasePieChart as BasePieChartV2, BaseRegionChart, BaseSidePanel, BaseTable as BaseTableV2, BaseVerticalBarChart, BaseWidget, BreadCrumbs, Button, COLORS, Calender$1 as CalenderIcon, Callout, CapsuleChart$1 as CapsuleChart, CapsuleChartIcon, CapsuleChart as CapsuleChartV2, Caret as CaretIcon, Checkbox, CheckboxIcon, Chevron as ChevronIcon, Chip, Clock as ClockIcon, Close as CloseIcon, CodeSnippet, ColumnFilter,
|
|
23190
|
+
export { Accordion, Alert$1 as Alert, AlertIcon, AreaChartIcon, Arrow as ArrowIcon, BarChartIcon, BaseAreaChart$1 as BaseAreaChart, BaseAreaChart as BaseAreaChartV2, BaseBarChart as BaseBarChartV2, BaseButton, BaseCell, BaseHorizontalBarChart, BaseModal, BasePieChart$1 as BasePieChart, BasePieChart as BasePieChartV2, BaseRegionChart, BaseSidePanel, BaseTable as BaseTableV2, BaseVerticalBarChart, BaseWidget, BreadCrumbs, Button, COLORS, Calender$1 as CalenderIcon, Callout, CapsuleChart$1 as CapsuleChart, CapsuleChartIcon, CapsuleChart as CapsuleChartV2, Caret as CaretIcon, Checkbox, CheckboxIcon, Chevron as ChevronIcon, Chip, Clock as ClockIcon, Close as CloseIcon, CodeSnippet, ColumnFilter, Copy as CopyIcon, Cross as CrossIcon, DatePicker, Delete as DeleteIcon, DialogBox, DisplayPicture, DropdownItem as DropdownItemv2, Dropdown as Dropdownv2, Edit as EditIcon, Email as EmailIcon, ExpandArrowAlt as ExpandArrowAltIcon, ExpandCollapseIcon, Filter as FilterIcon, HeatMapChart, HidePassword as HidePasswordIcon, HierarchyBrowser, HierarchyItem, Home as HomeIcon, Info as InfoIcon, LineChartIcon, Link, MagnifyingGlass as MagnifyingGlassIcon, Maximize as MaximizeIcon, NestedPieChart, CapsulePolarChart as NestedPieChartV2, FilterIcon as NewFilterIcon, Pagination, PaginationList, Password as PasswordIcon, PieChartIcon, Plus as PlusIcon, Popover, Popper, Radio, RadioIcon, Refresh as RefreshIcon, RichEditor as RichTextEditor, SearchButton, SearchIcon, Server as ServerIcon, Skeleton, Slider, Sort as SortIcon, StackedPieChart, StackedPieChartIcon, Step, Stepper, Switch, TableCell as TableCellV2, Table as TableV2, Tabs, Text, TextField as TextFieldv2, Tick as TickIcon, Toggle, Tooltip, UnlockPassword as UnlockPasswordIcon, ViewPasswordIcon, areTwinObjects, classes, cloneDeep, doubleDigitted, epochToFormattedDate, generateColors, get, getCSSVariableValue, getDateFromEpoch, getDatesInAMonth, getDatesInStringFormat, getDayInfo, getDuplicatesSansArray, getInitialsOfName, getJSDateFromEpoch, getPagination, getSpacedDisplayName, getTimeFromEpoch, getUniquePrimitives, inputHelper, isEmptyHtmlString, safeJSONParse, sanitizeJSON, stringToPath, sumArrayOfObjects, uniqueArray, uniqueArrayOfObjects, useOutsideClickListener, usePagination, useResize };
|
|
23117
23191
|
//# sourceMappingURL=index.js.map
|