ag-common 0.0.798 → 0.0.799
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/ui/components/DarkMode/Base.js +6 -36
- package/dist/ui/components/index.d.ts +0 -33
- package/dist/ui/components/index.js +0 -33
- package/dist/ui/components/shadcn/button.d.ts +1 -1
- package/dist/ui/components/shadcn/dropdown-list.d.ts +13 -0
- package/dist/ui/components/shadcn/dropdown-list.js +57 -0
- package/dist/ui/components/shadcn/sheet.d.ts +1 -1
- package/dist/ui/icons/index.d.ts +1 -6
- package/dist/ui/icons/index.js +1 -4
- package/dist/ui/styles/common.d.ts +21 -14
- package/dist/ui/styles/common.js +44 -45
- package/dist/ui/styles/index.d.ts +0 -1
- package/dist/ui/styles/index.js +0 -1
- package/package.json +8 -13
- package/dist/ui/components/BarChart/Base.d.ts +0 -8
- package/dist/ui/components/BarChart/Base.js +0 -49
- package/dist/ui/components/BarChart/Item.d.ts +0 -12
- package/dist/ui/components/BarChart/Item.js +0 -38
- package/dist/ui/components/BarChart/Legend.d.ts +0 -8
- package/dist/ui/components/BarChart/Legend.js +0 -83
- package/dist/ui/components/BarChart/TooltipContent.d.ts +0 -8
- package/dist/ui/components/BarChart/TooltipContent.js +0 -51
- package/dist/ui/components/BarChart/getLegendItems.d.ts +0 -17
- package/dist/ui/components/BarChart/getLegendItems.js +0 -24
- package/dist/ui/components/BarChart/index.d.ts +0 -2
- package/dist/ui/components/BarChart/index.js +0 -17
- package/dist/ui/components/BarChart/types.d.ts +0 -9
- package/dist/ui/components/BarChart/types.js +0 -2
- package/dist/ui/components/BorderGradient/index.d.ts +0 -21
- package/dist/ui/components/BorderGradient/index.js +0 -77
- package/dist/ui/components/Chevron/index.d.ts +0 -12
- package/dist/ui/components/Chevron/index.js +0 -45
- package/dist/ui/components/Close/index.d.ts +0 -6
- package/dist/ui/components/Close/index.js +0 -41
- package/dist/ui/components/Confirm/Dialog.d.ts +0 -7
- package/dist/ui/components/Confirm/Dialog.js +0 -54
- package/dist/ui/components/Confirm/Modal.d.ts +0 -3
- package/dist/ui/components/Confirm/Modal.js +0 -53
- package/dist/ui/components/Confirm/index.d.ts +0 -3
- package/dist/ui/components/Confirm/index.js +0 -18
- package/dist/ui/components/Confirm/types.d.ts +0 -18
- package/dist/ui/components/Confirm/types.js +0 -2
- package/dist/ui/components/DropdownList/Base.d.ts +0 -3
- package/dist/ui/components/DropdownList/Base.js +0 -178
- package/dist/ui/components/DropdownList/Dialog.d.ts +0 -7
- package/dist/ui/components/DropdownList/Dialog.js +0 -54
- package/dist/ui/components/DropdownList/index.d.ts +0 -2
- package/dist/ui/components/DropdownList/index.js +0 -18
- package/dist/ui/components/DropdownList/types.d.ts +0 -37
- package/dist/ui/components/DropdownList/types.js +0 -2
- package/dist/ui/components/FlexColumn/index.d.ts +0 -3
- package/dist/ui/components/FlexColumn/index.js +0 -31
- package/dist/ui/components/FlexRow/index.d.ts +0 -3
- package/dist/ui/components/FlexRow/index.js +0 -37
- package/dist/ui/components/HorizontalScrollBar/index.d.ts +0 -5
- package/dist/ui/components/HorizontalScrollBar/index.js +0 -66
- package/dist/ui/components/Icon/index.d.ts +0 -31
- package/dist/ui/components/Icon/index.js +0 -69
- package/dist/ui/components/Image/index.d.ts +0 -13
- package/dist/ui/components/Image/index.js +0 -104
- package/dist/ui/components/InfiniteScroll/index.d.ts +0 -17
- package/dist/ui/components/InfiniteScroll/index.js +0 -99
- package/dist/ui/components/KebabDots/index.d.ts +0 -5
- package/dist/ui/components/KebabDots/index.js +0 -16
- package/dist/ui/components/LineChart/Base.d.ts +0 -3
- package/dist/ui/components/LineChart/Base.js +0 -121
- package/dist/ui/components/LineChart/LegendX.d.ts +0 -11
- package/dist/ui/components/LineChart/LegendX.js +0 -107
- package/dist/ui/components/LineChart/LegendY.d.ts +0 -7
- package/dist/ui/components/LineChart/LegendY.js +0 -44
- package/dist/ui/components/LineChart/TooltipContent.d.ts +0 -8
- package/dist/ui/components/LineChart/TooltipContent.js +0 -52
- package/dist/ui/components/LineChart/dateHelpers.d.ts +0 -3
- package/dist/ui/components/LineChart/dateHelpers.js +0 -36
- package/dist/ui/components/LineChart/getLegendItems.d.ts +0 -18
- package/dist/ui/components/LineChart/getLegendItems.js +0 -75
- package/dist/ui/components/LineChart/index.d.ts +0 -2
- package/dist/ui/components/LineChart/index.js +0 -17
- package/dist/ui/components/LineChart/interpolate.d.ts +0 -17
- package/dist/ui/components/LineChart/interpolate.js +0 -58
- package/dist/ui/components/LineChart/types.d.ts +0 -32
- package/dist/ui/components/LineChart/types.js +0 -2
- package/dist/ui/components/Loader/index.d.ts +0 -15
- package/dist/ui/components/Loader/index.js +0 -93
- package/dist/ui/components/MinSidebar/index.d.ts +0 -13
- package/dist/ui/components/MinSidebar/index.js +0 -93
- package/dist/ui/components/Modal/Dialog.d.ts +0 -8
- package/dist/ui/components/Modal/Dialog.js +0 -47
- package/dist/ui/components/Modal/Modal.d.ts +0 -7
- package/dist/ui/components/Modal/Modal.js +0 -178
- package/dist/ui/components/Modal/index.d.ts +0 -3
- package/dist/ui/components/Modal/index.js +0 -18
- package/dist/ui/components/Modal/types.d.ts +0 -16
- package/dist/ui/components/Modal/types.js +0 -2
- package/dist/ui/components/PieChart/index.d.ts +0 -11
- package/dist/ui/components/PieChart/index.js +0 -43
- package/dist/ui/components/ProgressBar/index.d.ts +0 -15
- package/dist/ui/components/ProgressBar/index.js +0 -96
- package/dist/ui/components/Prompt/Dialog.d.ts +0 -2
- package/dist/ui/components/Prompt/Dialog.js +0 -26
- package/dist/ui/components/Prompt/Modal.d.ts +0 -3
- package/dist/ui/components/Prompt/Modal.js +0 -111
- package/dist/ui/components/Prompt/index.d.ts +0 -3
- package/dist/ui/components/Prompt/index.js +0 -18
- package/dist/ui/components/Prompt/types.d.ts +0 -23
- package/dist/ui/components/Prompt/types.js +0 -2
- package/dist/ui/components/PulseRing/index.d.ts +0 -19
- package/dist/ui/components/PulseRing/index.js +0 -75
- package/dist/ui/components/RowOrColumn/index.d.ts +0 -15
- package/dist/ui/components/RowOrColumn/index.js +0 -46
- package/dist/ui/components/Search/AutoHideSearchBox.d.ts +0 -8
- package/dist/ui/components/Search/AutoHideSearchBox.js +0 -114
- package/dist/ui/components/Search/Dialog.d.ts +0 -7
- package/dist/ui/components/Search/Dialog.js +0 -60
- package/dist/ui/components/Search/Inline.d.ts +0 -3
- package/dist/ui/components/Search/Inline.js +0 -137
- package/dist/ui/components/Search/Modal.d.ts +0 -3
- package/dist/ui/components/Search/Modal.js +0 -28
- package/dist/ui/components/Search/SearchBox.d.ts +0 -16
- package/dist/ui/components/Search/SearchBox.js +0 -107
- package/dist/ui/components/Search/index.d.ts +0 -6
- package/dist/ui/components/Search/index.js +0 -21
- package/dist/ui/components/Search/types.d.ts +0 -49
- package/dist/ui/components/Search/types.js +0 -2
- package/dist/ui/components/Sidebar/index.d.ts +0 -11
- package/dist/ui/components/Sidebar/index.js +0 -194
- package/dist/ui/components/SparkLine/index.d.ts +0 -16
- package/dist/ui/components/SparkLine/index.js +0 -64
- package/dist/ui/components/TabBar/index.d.ts +0 -27
- package/dist/ui/components/TabBar/index.js +0 -100
- package/dist/ui/components/Table/index.d.ts +0 -11
- package/dist/ui/components/Table/index.js +0 -49
- package/dist/ui/components/TextEdit/CheckboxEdit.d.ts +0 -14
- package/dist/ui/components/TextEdit/CheckboxEdit.js +0 -104
- package/dist/ui/components/TextEdit/ColourEdit.d.ts +0 -5
- package/dist/ui/components/TextEdit/ColourEdit.js +0 -63
- package/dist/ui/components/TextEdit/LengthBox.d.ts +0 -5
- package/dist/ui/components/TextEdit/LengthBox.js +0 -28
- package/dist/ui/components/TextEdit/ListboxEdit.d.ts +0 -14
- package/dist/ui/components/TextEdit/ListboxEdit.js +0 -61
- package/dist/ui/components/TextEdit/TextEdit.d.ts +0 -3
- package/dist/ui/components/TextEdit/TextEdit.js +0 -145
- package/dist/ui/components/TextEdit/common.d.ts +0 -19
- package/dist/ui/components/TextEdit/common.js +0 -61
- package/dist/ui/components/TextEdit/index.d.ts +0 -5
- package/dist/ui/components/TextEdit/index.js +0 -20
- package/dist/ui/components/TextEdit/types.d.ts +0 -65
- package/dist/ui/components/TextEdit/types.js +0 -2
- package/dist/ui/components/TextWithButton/index.d.ts +0 -10
- package/dist/ui/components/TextWithButton/index.js +0 -89
- package/dist/ui/components/Timeline/index.d.ts +0 -22
- package/dist/ui/components/Timeline/index.js +0 -72
- package/dist/ui/components/TimelineChart/index.d.ts +0 -21
- package/dist/ui/components/TimelineChart/index.js +0 -63
- package/dist/ui/components/TreeChart/TooltipContent.d.ts +0 -7
- package/dist/ui/components/TreeChart/TooltipContent.js +0 -34
- package/dist/ui/components/TreeChart/base.d.ts +0 -3
- package/dist/ui/components/TreeChart/base.js +0 -144
- package/dist/ui/components/TreeChart/helpers.d.ts +0 -4
- package/dist/ui/components/TreeChart/helpers.js +0 -41
- package/dist/ui/components/TreeChart/index.d.ts +0 -2
- package/dist/ui/components/TreeChart/index.js +0 -17
- package/dist/ui/components/TreeChart/types.d.ts +0 -27
- package/dist/ui/components/TreeChart/types.js +0 -2
- package/dist/ui/components/UserImage/index.d.ts +0 -26
- package/dist/ui/components/UserImage/index.js +0 -109
- package/dist/ui/icons/CrossIcon.d.ts +0 -5
- package/dist/ui/icons/CrossIcon.js +0 -24
- package/dist/ui/styles/standaloneStyles.d.ts +0 -24
- package/dist/ui/styles/standaloneStyles.js +0 -69
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
export interface IProgressBar {
|
|
3
|
-
min: number;
|
|
4
|
-
max: number;
|
|
5
|
-
/** default #4d76ff */
|
|
6
|
-
frontColour?: string;
|
|
7
|
-
/** default #eee */
|
|
8
|
-
backColour?: string;
|
|
9
|
-
/** default 25,50,75 */
|
|
10
|
-
dotPercentages?: number[] | null;
|
|
11
|
-
className?: string;
|
|
12
|
-
/** if true, will transition to the end in X ms */
|
|
13
|
-
transitionToMs?: number;
|
|
14
|
-
}
|
|
15
|
-
export declare const ProgressBar: (p: IProgressBar) => React.JSX.Element;
|
|
@@ -1,96 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
'use client';
|
|
3
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
4
|
-
if (k2 === undefined) k2 = k;
|
|
5
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
6
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
7
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
8
|
-
}
|
|
9
|
-
Object.defineProperty(o, k2, desc);
|
|
10
|
-
}) : (function(o, m, k, k2) {
|
|
11
|
-
if (k2 === undefined) k2 = k;
|
|
12
|
-
o[k2] = m[k];
|
|
13
|
-
}));
|
|
14
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
15
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
16
|
-
}) : function(o, v) {
|
|
17
|
-
o["default"] = v;
|
|
18
|
-
});
|
|
19
|
-
var __importStar = (this && this.__importStar) || (function () {
|
|
20
|
-
var ownKeys = function(o) {
|
|
21
|
-
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
22
|
-
var ar = [];
|
|
23
|
-
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
24
|
-
return ar;
|
|
25
|
-
};
|
|
26
|
-
return ownKeys(o);
|
|
27
|
-
};
|
|
28
|
-
return function (mod) {
|
|
29
|
-
if (mod && mod.__esModule) return mod;
|
|
30
|
-
var result = {};
|
|
31
|
-
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
32
|
-
__setModuleDefault(result, mod);
|
|
33
|
-
return result;
|
|
34
|
-
};
|
|
35
|
-
})();
|
|
36
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
37
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
38
|
-
};
|
|
39
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
40
|
-
exports.ProgressBar = void 0;
|
|
41
|
-
const styled_1 = __importDefault(require("@emotion/styled"));
|
|
42
|
-
const react_1 = __importStar(require("react"));
|
|
43
|
-
const styles_1 = require("../../styles");
|
|
44
|
-
const Base = styled_1.default.div `
|
|
45
|
-
position: relative;
|
|
46
|
-
min-width: 5rem;
|
|
47
|
-
width: 100%;
|
|
48
|
-
height: 2rem;
|
|
49
|
-
border-radius: 1rem;
|
|
50
|
-
overflow: hidden;
|
|
51
|
-
`;
|
|
52
|
-
const Bar = styled_1.default.div `
|
|
53
|
-
position: absolute;
|
|
54
|
-
top: 0;
|
|
55
|
-
bottom: 0;
|
|
56
|
-
left: 0;
|
|
57
|
-
`;
|
|
58
|
-
const Dot = styled_1.default.div `
|
|
59
|
-
position: absolute;
|
|
60
|
-
top: calc(50% - 0.25rem);
|
|
61
|
-
width: 0.5rem;
|
|
62
|
-
height: 0.5rem;
|
|
63
|
-
background-color: #aaa;
|
|
64
|
-
z-index: 1;
|
|
65
|
-
border-radius: 50%;
|
|
66
|
-
&[data-invert='true'] {
|
|
67
|
-
background-color: #333;
|
|
68
|
-
}
|
|
69
|
-
`;
|
|
70
|
-
const ProgressBar = (p) => {
|
|
71
|
-
const { transitionToMs = 200, frontColour = styles_1.colours.notificationBlue, backColour = '#eee', dotPercentages = [25, 50, 75], } = p;
|
|
72
|
-
const [barWidth, setBarWidth] = (0, react_1.useState)((p.min / p.max) * 100);
|
|
73
|
-
(0, react_1.useEffect)(() => {
|
|
74
|
-
const newbw = (p.min / p.max) * 100;
|
|
75
|
-
if (barWidth !== newbw) {
|
|
76
|
-
setBarWidth(newbw);
|
|
77
|
-
}
|
|
78
|
-
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
79
|
-
}, [p.min, p.max]);
|
|
80
|
-
(0, react_1.useEffect)(() => {
|
|
81
|
-
if (transitionToMs) {
|
|
82
|
-
setBarWidth(p.max);
|
|
83
|
-
}
|
|
84
|
-
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
85
|
-
}, []);
|
|
86
|
-
return (react_1.default.createElement(Base, { style: {
|
|
87
|
-
backgroundColor: backColour,
|
|
88
|
-
}, className: p.className },
|
|
89
|
-
react_1.default.createElement(Bar, { style: {
|
|
90
|
-
width: `${barWidth}%`,
|
|
91
|
-
backgroundColor: frontColour,
|
|
92
|
-
transition: `width ${transitionToMs}ms linear`,
|
|
93
|
-
} }), dotPercentages === null || dotPercentages === void 0 ? void 0 :
|
|
94
|
-
dotPercentages.map((v) => (react_1.default.createElement(Dot, { key: v, style: { left: `calc(${v}% - 0.25rem)` }, "data-invert": v > barWidth })))));
|
|
95
|
-
};
|
|
96
|
-
exports.ProgressBar = ProgressBar;
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
-
});
|
|
10
|
-
};
|
|
11
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
12
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
13
|
-
};
|
|
14
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
-
exports.PromptDialog = void 0;
|
|
16
|
-
const react_1 = __importDefault(require("react"));
|
|
17
|
-
const client_1 = require("react-dom/client");
|
|
18
|
-
const Modal_1 = require("./Modal");
|
|
19
|
-
const PromptDialog = (p) => __awaiter(void 0, void 0, void 0, function* () {
|
|
20
|
-
return new Promise((res) => {
|
|
21
|
-
const wrapper = document.body.appendChild(document.createElement('div'));
|
|
22
|
-
const root = (0, client_1.createRoot)(wrapper);
|
|
23
|
-
root.render(react_1.default.createElement(Modal_1.PromptModal, Object.assign({}, p, { res: res, root: root, wrapper: wrapper })));
|
|
24
|
-
});
|
|
25
|
-
});
|
|
26
|
-
exports.PromptDialog = PromptDialog;
|
|
@@ -1,111 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
'use client';
|
|
3
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
4
|
-
if (k2 === undefined) k2 = k;
|
|
5
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
6
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
7
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
8
|
-
}
|
|
9
|
-
Object.defineProperty(o, k2, desc);
|
|
10
|
-
}) : (function(o, m, k, k2) {
|
|
11
|
-
if (k2 === undefined) k2 = k;
|
|
12
|
-
o[k2] = m[k];
|
|
13
|
-
}));
|
|
14
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
15
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
16
|
-
}) : function(o, v) {
|
|
17
|
-
o["default"] = v;
|
|
18
|
-
});
|
|
19
|
-
var __importStar = (this && this.__importStar) || (function () {
|
|
20
|
-
var ownKeys = function(o) {
|
|
21
|
-
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
22
|
-
var ar = [];
|
|
23
|
-
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
24
|
-
return ar;
|
|
25
|
-
};
|
|
26
|
-
return ownKeys(o);
|
|
27
|
-
};
|
|
28
|
-
return function (mod) {
|
|
29
|
-
if (mod && mod.__esModule) return mod;
|
|
30
|
-
var result = {};
|
|
31
|
-
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
32
|
-
__setModuleDefault(result, mod);
|
|
33
|
-
return result;
|
|
34
|
-
};
|
|
35
|
-
})();
|
|
36
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
37
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
38
|
-
};
|
|
39
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
40
|
-
exports.PromptModal = void 0;
|
|
41
|
-
const styled_1 = __importDefault(require("@emotion/styled"));
|
|
42
|
-
const react_1 = __importStar(require("react"));
|
|
43
|
-
const FlexColumn_1 = require("../FlexColumn");
|
|
44
|
-
const FlexRow_1 = require("../FlexRow");
|
|
45
|
-
const Modal_1 = require("../Modal/Modal");
|
|
46
|
-
const button_1 = require("../shadcn/button");
|
|
47
|
-
const TextEdit_1 = require("../TextEdit");
|
|
48
|
-
const Base = styled_1.default.div `
|
|
49
|
-
width: 95vw;
|
|
50
|
-
max-width: 30rem;
|
|
51
|
-
height: 50vh;
|
|
52
|
-
max-height: 15rem;
|
|
53
|
-
`;
|
|
54
|
-
const Content = (0, styled_1.default)(FlexColumn_1.FlexColumn) `
|
|
55
|
-
padding: 1rem;
|
|
56
|
-
height: calc(100% - 2rem);
|
|
57
|
-
width: calc(100% - 2rem);
|
|
58
|
-
`;
|
|
59
|
-
const TopText = styled_1.default.div `
|
|
60
|
-
font-weight: bold;
|
|
61
|
-
border-bottom: solid 1px #ccc;
|
|
62
|
-
padding-bottom: 0.25rem;
|
|
63
|
-
font-size: 1.5rem;
|
|
64
|
-
margin-bottom: 1rem;
|
|
65
|
-
`;
|
|
66
|
-
const BottomText = styled_1.default.div `
|
|
67
|
-
padding-bottom: 0.25rem;
|
|
68
|
-
font-size: 1.1rem;
|
|
69
|
-
`;
|
|
70
|
-
const Bottom = (0, styled_1.default)(FlexRow_1.FlexRow) `
|
|
71
|
-
margin-top: auto;
|
|
72
|
-
justify-content: flex-end;
|
|
73
|
-
> button:first-of-type {
|
|
74
|
-
margin-right: 1rem;
|
|
75
|
-
}
|
|
76
|
-
`;
|
|
77
|
-
const PromptModal = ({ root, wrapper, res, bottomText, topText, okText = 'OK', cancelText = 'Cancel', defaultValue, placeholder, style, }) => {
|
|
78
|
-
const [text, setText] = (0, react_1.useState)(defaultValue || '');
|
|
79
|
-
const ret = (v) => {
|
|
80
|
-
try {
|
|
81
|
-
res(v);
|
|
82
|
-
}
|
|
83
|
-
finally {
|
|
84
|
-
try {
|
|
85
|
-
root === null || root === void 0 ? void 0 : root.unmount();
|
|
86
|
-
wrapper === null || wrapper === void 0 ? void 0 : wrapper.remove();
|
|
87
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
88
|
-
}
|
|
89
|
-
catch (e) {
|
|
90
|
-
//
|
|
91
|
-
}
|
|
92
|
-
}
|
|
93
|
-
};
|
|
94
|
-
return (react_1.default.createElement(Modal_1.Modal, { position: "center", topPosition: "center", open: true, setOpen: () => ret(undefined), showCloseButton: false, closeOnClickOutside: false },
|
|
95
|
-
react_1.default.createElement(Base, null,
|
|
96
|
-
react_1.default.createElement(Content, { style: style },
|
|
97
|
-
topText && react_1.default.createElement(TopText, null, topText),
|
|
98
|
-
react_1.default.createElement(BottomText, null, bottomText),
|
|
99
|
-
react_1.default.createElement(TextEdit_1.TextEdit, { defaultValue: text, onSubmit: (c, enter) => {
|
|
100
|
-
if (enter) {
|
|
101
|
-
ret(c);
|
|
102
|
-
}
|
|
103
|
-
else {
|
|
104
|
-
setText(c);
|
|
105
|
-
}
|
|
106
|
-
}, placeholder: placeholder, defaultEditing: { focus: true }, singleLine: true, noGrow: true, allowUndo: false }),
|
|
107
|
-
react_1.default.createElement(Bottom, { noGrow: true },
|
|
108
|
-
react_1.default.createElement(button_1.Button, { onClick: () => ret(text) }, okText),
|
|
109
|
-
react_1.default.createElement(button_1.Button, { variant: "outline", onClick: () => ret(undefined) }, cancelText))))));
|
|
110
|
-
};
|
|
111
|
-
exports.PromptModal = PromptModal;
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./Dialog"), exports);
|
|
18
|
-
__exportStar(require("./Modal"), exports);
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import type { CSSProperties } from 'react';
|
|
2
|
-
import type { Root } from 'react-dom/client';
|
|
3
|
-
export interface IPromptModal {
|
|
4
|
-
defaultValue?: string;
|
|
5
|
-
placeholder?: string;
|
|
6
|
-
res: (v: string | undefined) => void;
|
|
7
|
-
root?: Root;
|
|
8
|
-
wrapper?: HTMLDivElement;
|
|
9
|
-
topText?: string;
|
|
10
|
-
bottomText: string;
|
|
11
|
-
/** default 'OK' */
|
|
12
|
-
okText?: string;
|
|
13
|
-
/** default "cancel" */
|
|
14
|
-
cancelText?: string;
|
|
15
|
-
style?: CSSProperties;
|
|
16
|
-
}
|
|
17
|
-
export interface IPromptDialog {
|
|
18
|
-
topText?: string;
|
|
19
|
-
bottomText: string;
|
|
20
|
-
defaultValue?: string;
|
|
21
|
-
placeholder?: string;
|
|
22
|
-
style?: CSSProperties;
|
|
23
|
-
}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import type { CSSProperties } from 'react';
|
|
2
|
-
import React from 'react';
|
|
3
|
-
export declare const PulseRing: ({ style, className, text, title, }: {
|
|
4
|
-
/** tooltip text */
|
|
5
|
-
title?: string;
|
|
6
|
-
/** bubble text */
|
|
7
|
-
text?: string;
|
|
8
|
-
className?: string;
|
|
9
|
-
style?: CSSProperties & {
|
|
10
|
-
/** default 2.5rem */
|
|
11
|
-
width?: string;
|
|
12
|
-
/** default 2.5rem */
|
|
13
|
-
height?: string;
|
|
14
|
-
/** colour of pulse. default #01a4e9 */
|
|
15
|
-
backgroundColor?: string;
|
|
16
|
-
/** colour of tex. default #000 */
|
|
17
|
-
color?: string;
|
|
18
|
-
};
|
|
19
|
-
}) => React.JSX.Element;
|
|
@@ -1,75 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.PulseRing = void 0;
|
|
7
|
-
const styled_1 = __importDefault(require("@emotion/styled"));
|
|
8
|
-
const react_1 = __importDefault(require("react"));
|
|
9
|
-
const CP = styled_1.default.div `
|
|
10
|
-
position: relative;
|
|
11
|
-
display: flex;
|
|
12
|
-
justify-content: center;
|
|
13
|
-
align-items: center;
|
|
14
|
-
background-color: transparent;
|
|
15
|
-
|
|
16
|
-
&:before {
|
|
17
|
-
content: '';
|
|
18
|
-
position: relative;
|
|
19
|
-
display: block;
|
|
20
|
-
width: 150%;
|
|
21
|
-
height: 150%;
|
|
22
|
-
aspect-ratio: 4/3;
|
|
23
|
-
box-sizing: border-box;
|
|
24
|
-
border-radius: 45px;
|
|
25
|
-
background-color: var(--var-bg-col);
|
|
26
|
-
animation: pulse-ring 1s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
@keyframes pulse-ring {
|
|
30
|
-
0% {
|
|
31
|
-
transform: scale(0.33);
|
|
32
|
-
}
|
|
33
|
-
80%,
|
|
34
|
-
100% {
|
|
35
|
-
opacity: 0;
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
@keyframes pulse-dot {
|
|
40
|
-
0% {
|
|
41
|
-
transform: scale(0.8);
|
|
42
|
-
}
|
|
43
|
-
50% {
|
|
44
|
-
transform: scale(1);
|
|
45
|
-
}
|
|
46
|
-
100% {
|
|
47
|
-
transform: scale(0.8);
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
`;
|
|
51
|
-
const Text = styled_1.default.div `
|
|
52
|
-
position: absolute;
|
|
53
|
-
z-index: 1;
|
|
54
|
-
background-color: var(--var-bg-col);
|
|
55
|
-
border-radius: 15px;
|
|
56
|
-
box-shadow: 0 0 8px var(--var-bg-col);
|
|
57
|
-
min-width: 1rem;
|
|
58
|
-
min-height: 1rem;
|
|
59
|
-
display: flex;
|
|
60
|
-
justify-content: center;
|
|
61
|
-
align-items: center;
|
|
62
|
-
padding: 2px;
|
|
63
|
-
`;
|
|
64
|
-
const PulseRing = ({ style, className, text, title, }) => {
|
|
65
|
-
var _a, _b, _c, _d;
|
|
66
|
-
const st = Object.assign(Object.assign({}, style), { width: (_a = style === null || style === void 0 ? void 0 : style.width) !== null && _a !== void 0 ? _a : '2rem', height: (_b = style === null || style === void 0 ? void 0 : style.height) !== null && _b !== void 0 ? _b : '2rem', color: 'transparent', backgroundColor: 'transparent', '--var-bg-col': (_c = style === null || style === void 0 ? void 0 : style.backgroundColor) !== null && _c !== void 0 ? _c : '#01a4e9' });
|
|
67
|
-
return (react_1.default.createElement(CP, { style: st, className: className, title: title },
|
|
68
|
-
react_1.default.createElement(Text, { style: {
|
|
69
|
-
color: (_d = style === null || style === void 0 ? void 0 : style.color) !== null && _d !== void 0 ? _d : 'black',
|
|
70
|
-
aspectRatio: '1/1',
|
|
71
|
-
minWidth: '1.5ch',
|
|
72
|
-
minHeight: '1.5ch',
|
|
73
|
-
} }, text)));
|
|
74
|
-
};
|
|
75
|
-
exports.PulseRing = PulseRing;
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import type { CSSProperties, ReactNode } from 'react';
|
|
2
|
-
import React from 'react';
|
|
3
|
-
export interface IRowOrColumn {
|
|
4
|
-
noGrow?: boolean;
|
|
5
|
-
center?: boolean;
|
|
6
|
-
noWrap?: boolean;
|
|
7
|
-
children: ReactNode;
|
|
8
|
-
className?: string;
|
|
9
|
-
break?: 'small' | 'vsmall';
|
|
10
|
-
style?: CSSProperties;
|
|
11
|
-
onClick?: () => void;
|
|
12
|
-
}
|
|
13
|
-
export type IFlexColumn = IRowOrColumn;
|
|
14
|
-
export type IFlexRow = IRowOrColumn;
|
|
15
|
-
export declare const RowOrColumn: (props: IRowOrColumn) => React.JSX.Element;
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
'use client';
|
|
3
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
4
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
5
|
-
};
|
|
6
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
-
exports.RowOrColumn = void 0;
|
|
8
|
-
const styled_1 = __importDefault(require("@emotion/styled"));
|
|
9
|
-
const react_1 = __importDefault(require("react"));
|
|
10
|
-
const media_1 = require("../../styles/media");
|
|
11
|
-
const Base = styled_1.default.div `
|
|
12
|
-
display: flex;
|
|
13
|
-
flex-flow: row;
|
|
14
|
-
flex-grow: 1;
|
|
15
|
-
width: 100%;
|
|
16
|
-
@media ${media_1.bigScreen} {
|
|
17
|
-
&[data-nowrap='true'] {
|
|
18
|
-
flex-flow: row;
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
|
-
&[data-break='small'] {
|
|
22
|
-
@media ${media_1.smallScreen} {
|
|
23
|
-
flex-flow: column;
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
&[data-break='vsmall'] {
|
|
28
|
-
@media ${media_1.vSmallScreen} {
|
|
29
|
-
flex-flow: column;
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
&[data-center='true'] {
|
|
34
|
-
justify-content: center;
|
|
35
|
-
align-items: center;
|
|
36
|
-
}
|
|
37
|
-
&[data-nogrow='true'] {
|
|
38
|
-
flex-grow: 0;
|
|
39
|
-
width: auto;
|
|
40
|
-
}
|
|
41
|
-
`;
|
|
42
|
-
const RowOrColumn = (props) => {
|
|
43
|
-
var _a, _b, _c, _d;
|
|
44
|
-
return (react_1.default.createElement(Base, Object.assign({ "data-nogrow": (_a = props.noGrow) !== null && _a !== void 0 ? _a : false, "data-center": (_b = props.center) !== null && _b !== void 0 ? _b : false, "data-nowrap": (_c = props.noWrap) !== null && _c !== void 0 ? _c : false }, props, { "data-break": (_d = props.break) !== null && _d !== void 0 ? _d : 'small' }), props.children));
|
|
45
|
-
};
|
|
46
|
-
exports.RowOrColumn = RowOrColumn;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
export interface IAutoHideSearchBox {
|
|
3
|
-
searchText: string;
|
|
4
|
-
setSearchText: (val: string, enterPressed: boolean) => void;
|
|
5
|
-
onOpenToggle?: (open: boolean) => void;
|
|
6
|
-
className?: string;
|
|
7
|
-
}
|
|
8
|
-
export declare const AutoHideSearchBox: (p: IAutoHideSearchBox) => React.JSX.Element;
|
|
@@ -1,114 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
'use client';
|
|
3
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
4
|
-
if (k2 === undefined) k2 = k;
|
|
5
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
6
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
7
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
8
|
-
}
|
|
9
|
-
Object.defineProperty(o, k2, desc);
|
|
10
|
-
}) : (function(o, m, k, k2) {
|
|
11
|
-
if (k2 === undefined) k2 = k;
|
|
12
|
-
o[k2] = m[k];
|
|
13
|
-
}));
|
|
14
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
15
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
16
|
-
}) : function(o, v) {
|
|
17
|
-
o["default"] = v;
|
|
18
|
-
});
|
|
19
|
-
var __importStar = (this && this.__importStar) || (function () {
|
|
20
|
-
var ownKeys = function(o) {
|
|
21
|
-
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
22
|
-
var ar = [];
|
|
23
|
-
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
24
|
-
return ar;
|
|
25
|
-
};
|
|
26
|
-
return ownKeys(o);
|
|
27
|
-
};
|
|
28
|
-
return function (mod) {
|
|
29
|
-
if (mod && mod.__esModule) return mod;
|
|
30
|
-
var result = {};
|
|
31
|
-
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
32
|
-
__setModuleDefault(result, mod);
|
|
33
|
-
return result;
|
|
34
|
-
};
|
|
35
|
-
})();
|
|
36
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
37
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
38
|
-
};
|
|
39
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
40
|
-
exports.AutoHideSearchBox = void 0;
|
|
41
|
-
const styled_1 = __importDefault(require("@emotion/styled"));
|
|
42
|
-
const react_1 = __importStar(require("react"));
|
|
43
|
-
const useGranularHook_1 = require("../../helpers/useGranularHook");
|
|
44
|
-
const icons_1 = require("../../icons");
|
|
45
|
-
const styles_1 = require("../../styles");
|
|
46
|
-
const SearchBox_1 = require("./SearchBox");
|
|
47
|
-
const Base = styled_1.default.div `
|
|
48
|
-
display: flex;
|
|
49
|
-
flex-flow: row;
|
|
50
|
-
align-items: center;
|
|
51
|
-
margin-left: 1rem;
|
|
52
|
-
|
|
53
|
-
@media ${styles_1.bigScreen} {
|
|
54
|
-
width: 20rem;
|
|
55
|
-
}
|
|
56
|
-
`;
|
|
57
|
-
const Icon = styled_1.default.div `
|
|
58
|
-
display: flex;
|
|
59
|
-
margin-right: 0.5rem;
|
|
60
|
-
> svg {
|
|
61
|
-
width: 1.2rem;
|
|
62
|
-
height: 1.2rem;
|
|
63
|
-
fill: white;
|
|
64
|
-
}
|
|
65
|
-
`;
|
|
66
|
-
const SearchBoxStyled = (0, styled_1.default)(SearchBox_1.SearchBox) `
|
|
67
|
-
transition: width 200ms ease-in-out;
|
|
68
|
-
|
|
69
|
-
overflow: hidden;
|
|
70
|
-
padding: 0;
|
|
71
|
-
&[data-open='false'] {
|
|
72
|
-
width: 0;
|
|
73
|
-
padding: 0;
|
|
74
|
-
}
|
|
75
|
-
@media ${styles_1.smallScreen} {
|
|
76
|
-
padding: 0;
|
|
77
|
-
}
|
|
78
|
-
`;
|
|
79
|
-
const AutoHideSearchBox = (p) => {
|
|
80
|
-
const [open, setOpen] = (0, react_1.useState)(!!p.searchText);
|
|
81
|
-
const textEditRef = (0, react_1.createRef)();
|
|
82
|
-
(0, useGranularHook_1.useGranularEffect)(() => {
|
|
83
|
-
var _a;
|
|
84
|
-
const newOpen = !!p.searchText;
|
|
85
|
-
if (newOpen !== open) {
|
|
86
|
-
setOpen(!open);
|
|
87
|
-
(_a = p.onOpenToggle) === null || _a === void 0 ? void 0 : _a.call(p, !open);
|
|
88
|
-
}
|
|
89
|
-
}, [p.searchText], [open]);
|
|
90
|
-
return (react_1.default.createElement(Base, { className: p.className, "data-open": open },
|
|
91
|
-
react_1.default.createElement(Icon, { style: { cursor: 'pointer' }, onClick: () => {
|
|
92
|
-
var _a;
|
|
93
|
-
if (open) {
|
|
94
|
-
p.setSearchText('', false);
|
|
95
|
-
}
|
|
96
|
-
setOpen(!open);
|
|
97
|
-
(_a = p.onOpenToggle) === null || _a === void 0 ? void 0 : _a.call(p, !open);
|
|
98
|
-
if (!open) {
|
|
99
|
-
setTimeout(() => { var _a; return (_a = textEditRef.current) === null || _a === void 0 ? void 0 : _a.focus(); }, 100);
|
|
100
|
-
}
|
|
101
|
-
} },
|
|
102
|
-
open && react_1.default.createElement(icons_1.CrossIcon, null),
|
|
103
|
-
!open && react_1.default.createElement(icons_1.Magnify, { style: { fill: 'white' } })),
|
|
104
|
-
react_1.default.createElement(SearchBoxStyled, Object.assign({ textBoxRef: textEditRef }, p, { "data-open": open, setSearchText: (val, enter) => {
|
|
105
|
-
//we dont want empty enters to do anything
|
|
106
|
-
if (val === '' && enter) {
|
|
107
|
-
p.setSearchText(val, false);
|
|
108
|
-
}
|
|
109
|
-
else {
|
|
110
|
-
p.setSearchText(val, enter);
|
|
111
|
-
}
|
|
112
|
-
} }))));
|
|
113
|
-
};
|
|
114
|
-
exports.AutoHideSearchBox = AutoHideSearchBox;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import type { ISearchDialog, TSearchModalRes } from './types';
|
|
2
|
-
/**
|
|
3
|
-
* opens a searchmodal programatically, and resolves to either undefined, or the selected item
|
|
4
|
-
* @param p
|
|
5
|
-
* @returns
|
|
6
|
-
*/
|
|
7
|
-
export declare const SearchDialog: <T>(p: ISearchDialog<T>) => Promise<TSearchModalRes<T> | undefined>;
|
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
-
});
|
|
10
|
-
};
|
|
11
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
12
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
13
|
-
};
|
|
14
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
-
exports.SearchDialog = void 0;
|
|
16
|
-
const react_1 = __importDefault(require("react"));
|
|
17
|
-
const client_1 = require("react-dom/client");
|
|
18
|
-
const log_1 = require("../../../common/helpers/log");
|
|
19
|
-
const Modal_1 = require("./Modal");
|
|
20
|
-
/**
|
|
21
|
-
* opens a searchmodal programatically, and resolves to either undefined, or the selected item
|
|
22
|
-
* @param p
|
|
23
|
-
* @returns
|
|
24
|
-
*/
|
|
25
|
-
const SearchDialog = (p) => __awaiter(void 0, void 0, void 0, function* () {
|
|
26
|
-
const placeholderText = p.placeholderText || '';
|
|
27
|
-
let originalStyle;
|
|
28
|
-
return new Promise((res) => {
|
|
29
|
-
const idName = 'ag-search-dialog';
|
|
30
|
-
if (document.body.querySelectorAll('#' + idName).length !== 0) {
|
|
31
|
-
(0, log_1.error)('searchDialog already open');
|
|
32
|
-
res(undefined);
|
|
33
|
-
return;
|
|
34
|
-
}
|
|
35
|
-
const wrapper = document.body.appendChild(document.createElement('div'));
|
|
36
|
-
wrapper.id = idName;
|
|
37
|
-
if (originalStyle === undefined) {
|
|
38
|
-
originalStyle = window.getComputedStyle(document.body).overflow || '';
|
|
39
|
-
document.body.style.overflow = 'hidden';
|
|
40
|
-
}
|
|
41
|
-
const root = (0, client_1.createRoot)(wrapper);
|
|
42
|
-
root.render(react_1.default.createElement(Modal_1.SearchModal, Object.assign({}, p, { placeholderText: placeholderText, onSelectItem: (f) => {
|
|
43
|
-
try {
|
|
44
|
-
document.body.style.overflow = originalStyle || '';
|
|
45
|
-
res(f);
|
|
46
|
-
}
|
|
47
|
-
finally {
|
|
48
|
-
try {
|
|
49
|
-
root.unmount();
|
|
50
|
-
wrapper.remove();
|
|
51
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
52
|
-
}
|
|
53
|
-
catch (e) {
|
|
54
|
-
//
|
|
55
|
-
}
|
|
56
|
-
}
|
|
57
|
-
} })));
|
|
58
|
-
});
|
|
59
|
-
});
|
|
60
|
-
exports.SearchDialog = SearchDialog;
|