pixel-react 1.20.52 → 1.20.54
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/README.md +75 -75
- package/lib/StyleGuide/ColorPalette/index.d.ts +1 -0
- package/lib/StyleGuide/ColorPalette/index.js +2 -0
- package/lib/StyleGuide/ColorPalette/index.js.map +1 -0
- package/lib/StyleGuide/Typography/TypographyList.d.ts +5 -0
- package/lib/StyleGuide/Typography/TypographyList.js +4 -0
- package/lib/StyleGuide/Typography/TypographyList.js.map +1 -0
- package/lib/StyleGuide/Typography/types.d.ts +8 -0
- package/lib/StyleGuide/Typography/types.js +2 -0
- package/lib/StyleGuide/Typography/types.js.map +1 -0
- package/lib/components/AddContentButton/index.d.ts +1 -0
- package/lib/components/AddContentButton/index.js +2 -0
- package/lib/components/AddContentButton/index.js.map +1 -0
- package/lib/components/Carousel/index.d.ts +1 -0
- package/lib/components/Carousel/index.js +2 -0
- package/lib/components/Carousel/index.js.map +1 -0
- package/lib/components/Charts/BarChart/BarChart.js +8 -8
- package/lib/components/Charts/BarChart/types.d.ts +18 -0
- package/lib/components/Charts/BarChart/types.js +2 -0
- package/lib/components/Charts/BarChart/types.js.map +1 -0
- package/lib/components/Charts/DashboardDonutChart/DashboardDonutChart.js +6 -6
- package/lib/components/Charts/IconRadialChart/IconRadialChart.js +4 -4
- package/lib/components/Charts/PieChart/PieChart.js +5 -5
- package/lib/components/ChatModalAi/ChatModalAi.js +3 -1
- package/lib/components/ChatModalAi/ChatModalAi.js.map +1 -1
- package/lib/components/ChipWithCount/index.d.ts +1 -0
- package/lib/components/ChipWithCount/index.js +2 -0
- package/lib/components/ChipWithCount/index.js.map +1 -0
- package/lib/components/Comments/Comments.js +14 -14
- package/lib/components/Comments/childComment/ChildComment.js +14 -14
- package/lib/components/Comments/index.d.ts +1 -0
- package/lib/components/Comments/index.js +2 -0
- package/lib/components/Comments/index.js.map +1 -0
- package/lib/components/ConditionalDropdown/index.d.ts +1 -0
- package/lib/components/ConditionalDropdown/index.js +2 -0
- package/lib/components/ConditionalDropdown/index.js.map +1 -0
- package/lib/components/ConnectingBranch/index.d.ts +1 -0
- package/lib/components/ConnectingBranch/index.js +2 -0
- package/lib/components/ConnectingBranch/index.js.map +1 -0
- package/lib/components/CreateVariable/index.d.ts +1 -0
- package/lib/components/CreateVariable/index.js +2 -0
- package/lib/components/CreateVariable/index.js.map +1 -0
- package/lib/components/DownloadClient/index.d.ts +1 -0
- package/lib/components/DownloadClient/index.js +2 -0
- package/lib/components/DownloadClient/index.js.map +1 -0
- package/lib/components/DragAndDrop/index.d.ts +1 -0
- package/lib/components/DragAndDrop/index.js +2 -0
- package/lib/components/DragAndDrop/index.js.map +1 -0
- package/lib/components/Drawer/Drawer.js +1 -1
- package/lib/components/Drawer/Drawer.js.map +1 -1
- package/lib/components/EditTextField/EditTextField.js +2 -2
- package/lib/components/Editor/Editor.js +1 -21
- package/lib/components/Editor/Editor.js.map +1 -1
- package/lib/components/Editor/index.d.ts +1 -0
- package/lib/components/Editor/index.js +2 -0
- package/lib/components/Editor/index.js.map +1 -0
- package/lib/components/Excel/Data.d.ts +10 -60
- package/lib/components/Excel/Data.js +67 -33
- package/lib/components/Excel/Data.js.map +1 -1
- package/lib/components/Excel/ExcelFile/ExcelFile.js +2 -2
- package/lib/components/Excel/ExcelFile/ExcelFile.js.map +1 -1
- package/lib/components/Excel/ExcelFile/ExcelFileComponents/ActiveCell.js +4 -1
- package/lib/components/Excel/ExcelFile/ExcelFileComponents/ActiveCell.js.map +1 -1
- package/lib/components/Excel/ExcelFile/ExcelFileComponents/Cell.js +5 -3
- package/lib/components/Excel/ExcelFile/ExcelFileComponents/Cell.js.map +1 -1
- package/lib/components/Excel/ExcelFile/ExcelFileComponents/ColumnIndicator.js +8 -8
- package/lib/components/Excel/ExcelFile/ExcelFileComponents/ColumnIndicator.js.map +1 -1
- package/lib/components/Excel/ExcelFile/ExcelFileComponents/DataEditor.js +1 -1
- package/lib/components/Excel/ExcelFile/ExcelFileComponents/DataEditor.js.map +1 -1
- package/lib/components/Excel/ExcelFile/ExcelFileComponents/RowIndicator.js +5 -4
- package/lib/components/Excel/ExcelFile/ExcelFileComponents/RowIndicator.js.map +1 -1
- package/lib/components/Excel/ExcelFile/ExcelFileComponents/Spreadsheet.js +37 -3
- package/lib/components/Excel/ExcelFile/ExcelFileComponents/Spreadsheet.js.map +1 -1
- package/lib/components/Excel/ExcelFile/ExcelFileComponents/actions.d.ts +9 -1
- package/lib/components/Excel/ExcelFile/ExcelFileComponents/actions.js +7 -0
- package/lib/components/Excel/ExcelFile/ExcelFileComponents/actions.js.map +1 -1
- package/lib/components/Excel/ExcelFile/ExcelFileComponents/areModelsEqual.d.ts +1 -0
- package/lib/components/Excel/ExcelFile/ExcelFileComponents/areModelsEqual.js +18 -0
- package/lib/components/Excel/ExcelFile/ExcelFileComponents/areModelsEqual.js.map +1 -0
- package/lib/components/Excel/ExcelFile/ExcelFileComponents/reducer.js +106 -18
- package/lib/components/Excel/ExcelFile/ExcelFileComponents/reducer.js.map +1 -1
- package/lib/components/Excel/Types.d.ts +2 -0
- package/lib/components/Excel/dataConversion.d.ts +2 -2
- package/lib/components/Excel/dataConversion.js +6 -2
- package/lib/components/Excel/dataConversion.js.map +1 -1
- package/lib/components/ExpandableTable/ExpandableTable.d.ts +12 -0
- package/lib/components/ExpandableTable/ExpandableTable.js +19 -0
- package/lib/components/ExpandableTable/ExpandableTable.js.map +1 -0
- package/lib/components/FF_Captcha/index.d.ts +0 -0
- package/lib/components/FF_Captcha/index.js +2 -0
- package/lib/components/FF_Captcha/index.js.map +1 -0
- package/lib/components/Form/index.d.ts +1 -0
- package/lib/components/Form/index.js +2 -0
- package/lib/components/Form/index.js.map +1 -0
- package/lib/components/Form/types.d.ts +1 -0
- package/lib/components/Form/types.js +2 -0
- package/lib/components/Form/types.js.map +1 -0
- package/lib/components/GridLayout/index.d.ts +2 -0
- package/lib/components/GridLayout/index.js +2 -0
- package/lib/components/GridLayout/index.js.map +1 -0
- package/lib/components/Icon/iconList.js +2 -0
- package/lib/components/Icon/iconList.js.map +1 -1
- package/lib/components/LabelEditTextField/LabelEditTextField.js +4 -4
- package/lib/components/LazyLoad/index.d.ts +1 -0
- package/lib/components/LazyLoad/index.js +2 -0
- package/lib/components/LazyLoad/index.js.map +1 -0
- package/lib/components/Link/index.d.ts +1 -0
- package/lib/components/Link/index.js +2 -0
- package/lib/components/Link/index.js.map +1 -0
- package/lib/components/MediaPreview/index.d.ts +1 -0
- package/lib/components/MediaPreview/index.js +2 -0
- package/lib/components/MediaPreview/index.js.map +1 -0
- package/lib/components/MobileSkin/types.d.ts +37 -0
- package/lib/components/MobileSkin/types.js +2 -0
- package/lib/components/MobileSkin/types.js.map +1 -0
- package/lib/components/ModulesChip/index.d.ts +1 -0
- package/lib/components/ModulesChip/index.js +2 -0
- package/lib/components/ModulesChip/index.js.map +1 -0
- package/lib/components/NetworkErrorBoundary/NetworkErrorBoundary.d.ts +5 -0
- package/lib/components/NetworkErrorBoundary/NetworkErrorBoundary.js +19 -0
- package/lib/components/NetworkErrorBoundary/NetworkErrorBoundary.js.map +1 -0
- package/lib/components/NetworkErrorBoundary/index.d.ts +1 -0
- package/lib/components/NetworkErrorBoundary/index.js +2 -0
- package/lib/components/NetworkErrorBoundary/index.js.map +1 -0
- package/lib/components/NetworkErrorBoundary/types.d.ts +33 -0
- package/lib/components/NetworkErrorBoundary/types.js +2 -0
- package/lib/components/NetworkErrorBoundary/types.js.map +1 -0
- package/lib/components/PrePostTable/index.d.ts +1 -0
- package/lib/components/PrePostTable/index.js +2 -0
- package/lib/components/PrePostTable/index.js.map +1 -0
- package/lib/components/ScriptGenerationLoader/index.d.ts +1 -0
- package/lib/components/ScriptGenerationLoader/index.js +2 -0
- package/lib/components/ScriptGenerationLoader/index.js.map +1 -0
- package/lib/components/StatusIndicator/StatusIndicator.js +5 -5
- package/lib/components/StepsLandingTable/index.d.ts +1 -0
- package/lib/components/StepsLandingTable/index.js +2 -0
- package/lib/components/StepsLandingTable/index.js.map +1 -0
- package/lib/components/Table/NoDataContent.d.ts +4 -0
- package/lib/components/Table/NoDataContent.js +9 -0
- package/lib/components/Table/NoDataContent.js.map +1 -0
- package/lib/components/Table/index.d.ts +1 -0
- package/lib/components/Table/index.js +2 -0
- package/lib/components/Table/index.js.map +1 -0
- package/lib/components/TableTree/Utils/getAllChildIds.d.ts +2 -0
- package/lib/components/TableTree/Utils/getAllChildIds.js +12 -0
- package/lib/components/TableTree/Utils/getAllChildIds.js.map +1 -0
- package/lib/components/TableTree/Utils/renderSpaces.d.ts +0 -0
- package/lib/components/TableTree/Utils/renderSpaces.js +2 -0
- package/lib/components/TableTree/Utils/renderSpaces.js.map +1 -0
- package/lib/components/TableTreeFn/Utils/addNewRow.d.ts +14 -0
- package/lib/components/TableTreeFn/Utils/addNewRow.js +80 -0
- package/lib/components/TableTreeFn/Utils/addNewRow.js.map +1 -0
- package/lib/components/TableTreeFn/Utils/getAllChildIds.d.ts +2 -0
- package/lib/components/TableTreeFn/Utils/getAllChildIds.js +12 -0
- package/lib/components/TableTreeFn/Utils/getAllChildIds.js.map +1 -0
- package/lib/components/TableTreeFn/Utils/renderSpaces.d.ts +0 -0
- package/lib/components/TableTreeFn/Utils/renderSpaces.js +2 -0
- package/lib/components/TableTreeFn/Utils/renderSpaces.js.map +1 -0
- package/lib/components/TableTreeFn/Utils/updateParentSibling.d.ts +3 -0
- package/lib/components/TableTreeFn/Utils/updateParentSibling.js +65 -0
- package/lib/components/TableTreeFn/Utils/updateParentSibling.js.map +1 -0
- package/lib/components/TableWithAccordion/index.d.ts +1 -0
- package/lib/components/TableWithAccordion/index.js +2 -0
- package/lib/components/TableWithAccordion/index.js.map +1 -0
- package/lib/components/TabsWithSilder/index.d.ts +1 -0
- package/lib/components/TabsWithSilder/index.js +2 -0
- package/lib/components/TabsWithSilder/index.js.map +1 -0
- package/lib/components/TextEditor/index.d.ts +1 -0
- package/lib/components/TextEditor/index.js +2 -0
- package/lib/components/TextEditor/index.js.map +1 -0
- package/lib/components/ToggleSwitch/index.d.ts +1 -0
- package/lib/components/ToggleSwitch/index.js +2 -0
- package/lib/components/ToggleSwitch/index.js.map +1 -0
- package/lib/hooks/useClickOutside.d.ts +4 -1
- package/lib/hooks/useClickOutside.js +7 -5
- package/lib/hooks/useClickOutside.js.map +1 -1
- package/lib/index.d.ts +40 -2
- package/lib/index.js +7 -7
- package/lib/index.js.map +1 -1
- package/lib/styles.css +1 -1
- package/lib/tsconfig.tsbuildinfo +1 -1
- package/lib/utils/OnlineStatus/useOnlineStatus.d.ts +1 -0
- package/lib/utils/OnlineStatus/useOnlineStatus.js +20 -0
- package/lib/utils/OnlineStatus/useOnlineStatus.js.map +1 -0
- package/lib/utils/functionCheck/functionCheck.d.ts +2 -0
- package/lib/utils/functionCheck/functionCheck.js +6 -0
- package/lib/utils/functionCheck/functionCheck.js.map +1 -0
- package/lib/utils/indexDBStore/indexDB copy.d.ts +4 -0
- package/lib/utils/indexDBStore/indexDB copy.js +142 -0
- package/lib/utils/indexDBStore/indexDB copy.js.map +1 -0
- package/lib/utils/toTitleCase/toTitleCase.d.ts +1 -0
- package/lib/utils/toTitleCase/toTitleCase.js +7 -0
- package/lib/utils/toTitleCase/toTitleCase.js.map +1 -0
- package/package.json +118 -109
package/README.md
CHANGED
|
@@ -1,75 +1,75 @@
|
|
|
1
|
-
---
|
|
2
|
-
title: PixelReact UI
|
|
3
|
-
---
|
|
4
|
-
|
|
5
|
-
import { Button, Input } from 'pixel-react';
|
|
6
|
-
|
|
7
|
-
<h1 align="center">PixelReact UI</h1>
|
|
8
|
-
|
|
9
|
-
<p align="center">
|
|
10
|
-
<strong>PixelReact UI</strong> is an open-source React component library, designed to offer a sleek, customizable, and easy-to-use collection of components for building modern user interfaces.
|
|
11
|
-
</p>
|
|
12
|
-
|
|
13
|
-
---
|
|
14
|
-
|
|
15
|
-
## Table of Contents
|
|
16
|
-
|
|
17
|
-
- [Installation](#installation)
|
|
18
|
-
- [Usage](#usage)
|
|
19
|
-
- [Documentation](#documentation)
|
|
20
|
-
- [Contributing](#contributing)
|
|
21
|
-
- [License](#license)
|
|
22
|
-
|
|
23
|
-
---
|
|
24
|
-
|
|
25
|
-
## Installation
|
|
26
|
-
|
|
27
|
-
Install PixelReact UI in your project directory with:
|
|
28
|
-
|
|
29
|
-
```bash
|
|
30
|
-
npm install pixel-react
|
|
31
|
-
```
|
|
32
|
-
|
|
33
|
-
or with Yarn:
|
|
34
|
-
|
|
35
|
-
```bash
|
|
36
|
-
yarn add pixel-react
|
|
37
|
-
```
|
|
38
|
-
|
|
39
|
-
## Usage
|
|
40
|
-
|
|
41
|
-
Once installed, you can start importing and using PixelReact components in your React application. Here's a quick example:
|
|
42
|
-
|
|
43
|
-
```jsx
|
|
44
|
-
import { Button } from 'pixel-react';
|
|
45
|
-
|
|
46
|
-
function App() {
|
|
47
|
-
return (
|
|
48
|
-
<div>
|
|
49
|
-
<Button label="Button Label" variant="primary" />
|
|
50
|
-
</div>
|
|
51
|
-
);
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
export default App;
|
|
55
|
-
```
|
|
56
|
-
|
|
57
|
-
## Documentation
|
|
58
|
-
|
|
59
|
-
For detailed documentation and live examples, [click here](https://main--65d5ca6d09c1eaf0731601fc.chromatic.com/).
|
|
60
|
-
|
|
61
|
-
## Example
|
|
62
|
-
|
|
63
|
-
```jsx
|
|
64
|
-
import { Button } from 'pixel-react';
|
|
65
|
-
|
|
66
|
-
function ExampleComponent() {
|
|
67
|
-
return <Button label="Click Me!" variant="primary" />;
|
|
68
|
-
}
|
|
69
|
-
```
|
|
70
|
-
|
|
71
|
-
## License
|
|
72
|
-
|
|
73
|
-
PixelReact UI is licensed under the [MIT License](LICENSE). Feel free to use it in your projects, both personal and commercial.
|
|
74
|
-
|
|
75
|
-
---
|
|
1
|
+
---
|
|
2
|
+
title: PixelReact UI
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
import { Button, Input } from 'pixel-react';
|
|
6
|
+
|
|
7
|
+
<h1 align="center">PixelReact UI</h1>
|
|
8
|
+
|
|
9
|
+
<p align="center">
|
|
10
|
+
<strong>PixelReact UI</strong> is an open-source React component library, designed to offer a sleek, customizable, and easy-to-use collection of components for building modern user interfaces.
|
|
11
|
+
</p>
|
|
12
|
+
|
|
13
|
+
---
|
|
14
|
+
|
|
15
|
+
## Table of Contents
|
|
16
|
+
|
|
17
|
+
- [Installation](#installation)
|
|
18
|
+
- [Usage](#usage)
|
|
19
|
+
- [Documentation](#documentation)
|
|
20
|
+
- [Contributing](#contributing)
|
|
21
|
+
- [License](#license)
|
|
22
|
+
|
|
23
|
+
---
|
|
24
|
+
|
|
25
|
+
## Installation
|
|
26
|
+
|
|
27
|
+
Install PixelReact UI in your project directory with:
|
|
28
|
+
|
|
29
|
+
```bash
|
|
30
|
+
npm install pixel-react
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
or with Yarn:
|
|
34
|
+
|
|
35
|
+
```bash
|
|
36
|
+
yarn add pixel-react
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
## Usage
|
|
40
|
+
|
|
41
|
+
Once installed, you can start importing and using PixelReact components in your React application. Here's a quick example:
|
|
42
|
+
|
|
43
|
+
```jsx
|
|
44
|
+
import { Button } from 'pixel-react';
|
|
45
|
+
|
|
46
|
+
function App() {
|
|
47
|
+
return (
|
|
48
|
+
<div>
|
|
49
|
+
<Button label="Button Label" variant="primary" />
|
|
50
|
+
</div>
|
|
51
|
+
);
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
export default App;
|
|
55
|
+
```
|
|
56
|
+
|
|
57
|
+
## Documentation
|
|
58
|
+
|
|
59
|
+
For detailed documentation and live examples, [click here](https://main--65d5ca6d09c1eaf0731601fc.chromatic.com/).
|
|
60
|
+
|
|
61
|
+
## Example
|
|
62
|
+
|
|
63
|
+
```jsx
|
|
64
|
+
import { Button } from 'pixel-react';
|
|
65
|
+
|
|
66
|
+
function ExampleComponent() {
|
|
67
|
+
return <Button label="Click Me!" variant="primary" />;
|
|
68
|
+
}
|
|
69
|
+
```
|
|
70
|
+
|
|
71
|
+
## License
|
|
72
|
+
|
|
73
|
+
PixelReact UI is licensed under the [MIT License](LICENSE). Feel free to use it in your projects, both personal and commercial.
|
|
74
|
+
|
|
75
|
+
---
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './ColorPalette';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/StyleGuide/ColorPalette/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TypographyList.js","sourceRoot":"","sources":["../../../src/StyleGuide/Typography/TypographyList.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,QAAQ,GAAG;IACtB,EAAE,IAAI,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,EAAE,WAAW,EAAE,SAAS,EAAE;CAChE,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/StyleGuide/Typography/types.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './AddContentButton';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/AddContentButton/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from "./Carousel";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/Carousel/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC"}
|
|
@@ -118,20 +118,20 @@ const BarChart = ({ data, isYaxisSticky = false, barWidth, height, barGap = 20,
|
|
|
118
118
|
if (tooltip) {
|
|
119
119
|
tooltip.style.display = 'block';
|
|
120
120
|
if (customToolTip) {
|
|
121
|
-
tooltip.innerHTML = `<div>
|
|
122
|
-
<div><Typography fontWeight='semi-bold'>${label}</Typography></div>
|
|
123
|
-
<div><Typography>${id ? id : ''}</Typography></div>
|
|
124
|
-
<div><Typography>${totalLabel} : ${value} ${percent ? '(' + percent + '%)' : ''}</Typography></div>
|
|
121
|
+
tooltip.innerHTML = `<div>
|
|
122
|
+
<div><Typography fontWeight='semi-bold'>${label}</Typography></div>
|
|
123
|
+
<div><Typography>${id ? id : ''}</Typography></div>
|
|
124
|
+
<div><Typography>${totalLabel} : ${value} ${percent ? '(' + percent + '%)' : ''}</Typography></div>
|
|
125
125
|
</div>`;
|
|
126
126
|
}
|
|
127
127
|
else if (isDashboardVersions) {
|
|
128
128
|
const versionsList = versions ? versions.join(', ') : '';
|
|
129
|
-
tooltip.innerHTML = `
|
|
130
|
-
<div>
|
|
131
|
-
<div><Typography>${totalLabel} : ${value}</Typography></div>
|
|
129
|
+
tooltip.innerHTML = `
|
|
130
|
+
<div>
|
|
131
|
+
<div><Typography>${totalLabel} : ${value}</Typography></div>
|
|
132
132
|
${versionsList
|
|
133
133
|
? `<div><Typography>Versions : ${versionsList}</Typography></div>`
|
|
134
|
-
: ''}
|
|
134
|
+
: ''}
|
|
135
135
|
</div>`;
|
|
136
136
|
}
|
|
137
137
|
else {
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export interface BarChartProps {
|
|
2
|
+
barWidth: number;
|
|
3
|
+
width: number;
|
|
4
|
+
height: number;
|
|
5
|
+
data: Array<{
|
|
6
|
+
label: string;
|
|
7
|
+
value: number | undefined;
|
|
8
|
+
iconName: string;
|
|
9
|
+
versions?: string[];
|
|
10
|
+
id?: string;
|
|
11
|
+
percent?: number;
|
|
12
|
+
}>;
|
|
13
|
+
colors?: string[];
|
|
14
|
+
barGap: number;
|
|
15
|
+
barRadius?: number;
|
|
16
|
+
iconSize?: number;
|
|
17
|
+
isMemory?: boolean;
|
|
18
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../src/components/Charts/BarChart/types.ts"],"names":[],"mappings":""}
|
|
@@ -47,12 +47,12 @@ const calculateDonutSegmentBorderPath = (innerR, outerR, startAngle, endAngle) =
|
|
|
47
47
|
const startInnerX = outerR * Math.cos(startAngle);
|
|
48
48
|
const startInnerY = outerR * Math.sin(startAngle);
|
|
49
49
|
const largeArcFlag = endAngle - startAngle > Math.PI ? 1 : 0;
|
|
50
|
-
return `
|
|
51
|
-
M ${startOuterX} ${startOuterY}
|
|
52
|
-
A ${innerR} ${innerR} 0 ${largeArcFlag} 1 ${endOuterX} ${endOuterY}
|
|
53
|
-
L ${endInnerX} ${endInnerY}
|
|
54
|
-
A ${outerR} ${outerR} 0 ${largeArcFlag} 0 ${startInnerX} ${startInnerY}
|
|
55
|
-
Z
|
|
50
|
+
return `
|
|
51
|
+
M ${startOuterX} ${startOuterY}
|
|
52
|
+
A ${innerR} ${innerR} 0 ${largeArcFlag} 1 ${endOuterX} ${endOuterY}
|
|
53
|
+
L ${endInnerX} ${endInnerY}
|
|
54
|
+
A ${outerR} ${outerR} 0 ${largeArcFlag} 0 ${startInnerX} ${startInnerY}
|
|
55
|
+
Z
|
|
56
56
|
`;
|
|
57
57
|
};
|
|
58
58
|
const colorMapping = [
|
|
@@ -12,10 +12,10 @@ const calculateArc = ({ x, y, radius, startAngle, endAngle, }) => {
|
|
|
12
12
|
const largeArcFlag = endAngle - startAngle > Math.PI ? 1 : 0;
|
|
13
13
|
if (endAngle - startAngle >= 2 * Math.PI) {
|
|
14
14
|
// Special case for a full circle
|
|
15
|
-
return `
|
|
16
|
-
M ${x + radius} ${y}
|
|
17
|
-
A ${radius} ${radius} 0 1 1 ${x - radius} ${y}
|
|
18
|
-
A ${radius} ${radius} 0 1 1 ${x + radius} ${y}
|
|
15
|
+
return `
|
|
16
|
+
M ${x + radius} ${y}
|
|
17
|
+
A ${radius} ${radius} 0 1 1 ${x - radius} ${y}
|
|
18
|
+
A ${radius} ${radius} 0 1 1 ${x + radius} ${y}
|
|
19
19
|
`;
|
|
20
20
|
}
|
|
21
21
|
return `M ${startX} ${startY} A ${radius} ${radius} 0 ${largeArcFlag} 1 ${endX} ${endY}`;
|
|
@@ -24,11 +24,11 @@ const calculateArcAngles = (value, total, currentAngle, radius) => {
|
|
|
24
24
|
const startAngle = currentAngle;
|
|
25
25
|
const endAngle = startAngle + angleIncrement;
|
|
26
26
|
if (percentage === 1) {
|
|
27
|
-
const path = `
|
|
28
|
-
M ${radius} 0
|
|
29
|
-
A ${radius} ${radius} 0 1 1 ${-radius} 0
|
|
30
|
-
A ${radius} ${radius} 0 1 1 ${radius} 0
|
|
31
|
-
Z
|
|
27
|
+
const path = `
|
|
28
|
+
M ${radius} 0
|
|
29
|
+
A ${radius} ${radius} 0 1 1 ${-radius} 0
|
|
30
|
+
A ${radius} ${radius} 0 1 1 ${radius} 0
|
|
31
|
+
Z
|
|
32
32
|
`;
|
|
33
33
|
return {
|
|
34
34
|
endAngle,
|
|
@@ -5,7 +5,9 @@ import { createPortal } from 'react-dom';
|
|
|
5
5
|
import Typography from '../Typography';
|
|
6
6
|
import Icon from '../Icon';
|
|
7
7
|
import classNames from 'classnames';
|
|
8
|
-
const ChatModalAi = forwardRef(({ iconName, hoverTitle, iconPosition: { top: iconTop, left: iconLeft, bottom: iconBottom, right: iconRight, }, hoverIconPosition: { top: iconhoverTop, left: iconhoverLeft, bottom: iconhoverBottom, right: iconhoverRight, }, modalPosition: { top: modalTop, left: modalLeft, bottom: modalBottom, right: modalRight, }, modalWidth, modalHeight, headerContent = 'Header Content', footerContent = 'Footer Content', iconWidth, iconHeight, children, isVisible, isOpen, onOpen, onClose, isIconVisible,
|
|
8
|
+
const ChatModalAi = forwardRef(({ iconName, hoverTitle, iconPosition: { top: iconTop, left: iconLeft, bottom: iconBottom, right: iconRight, }, hoverIconPosition: { top: iconhoverTop, left: iconhoverLeft, bottom: iconhoverBottom, right: iconhoverRight, }, modalPosition: { top: modalTop, left: modalLeft, bottom: modalBottom, right: modalRight, }, modalWidth, modalHeight, headerContent = 'Header Content', footerContent = 'Footer Content', iconWidth, iconHeight, children, isVisible, isOpen, onOpen, onClose, isIconVisible,
|
|
9
|
+
// onVisibilityChange,
|
|
10
|
+
}, ref) => {
|
|
9
11
|
useImperativeHandle(ref, () => ({
|
|
10
12
|
closeModal: onClose,
|
|
11
13
|
}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ChatModalAi.js","sourceRoot":"","sources":["../../../src/components/ChatModalAi/ChatModalAi.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,UAAU,EAAE,mBAAmB,EAAE,MAAM,OAAO,CAAC;AACxD,OAAO,oBAAoB,CAAC;AAC5B,OAAO,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AACzC,OAAO,UAAU,MAAM,eAAe,CAAC;AACvC,OAAO,IAAI,MAAM,SAAS,CAAC;AAE3B,OAAO,UAAU,MAAM,YAAY,CAAC;AAEpC,MAAM,WAAW,GAAG,UAAU,CAC5B,CACE,EACE,QAAQ,EACR,UAAU,EACV,YAAY,EAAE,EACZ,GAAG,EAAE,OAAO,EACZ,IAAI,EAAE,QAAQ,EACd,MAAM,EAAE,UAAU,EAClB,KAAK,EAAE,SAAS,GACjB,EACD,iBAAiB,EAAE,EACjB,GAAG,EAAE,YAAY,EACjB,IAAI,EAAE,aAAa,EACnB,MAAM,EAAE,eAAe,EACvB,KAAK,EAAE,cAAc,GACtB,EACD,aAAa,EAAE,EACb,GAAG,EAAE,QAAQ,EACb,IAAI,EAAE,SAAS,EACf,MAAM,EAAE,WAAW,EACnB,KAAK,EAAE,UAAU,GAClB,EACD,UAAU,EACV,WAAW,EACX,aAAa,GAAG,gBAAgB,EAChC,aAAa,GAAG,gBAAgB,EAChC,SAAS,EACT,UAAU,EACV,QAAQ,EACR,SAAS,EACT,MAAM,EACN,MAAM,EACN,OAAO,EACP,aAAa,
|
|
1
|
+
{"version":3,"file":"ChatModalAi.js","sourceRoot":"","sources":["../../../src/components/ChatModalAi/ChatModalAi.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,UAAU,EAAE,mBAAmB,EAAE,MAAM,OAAO,CAAC;AACxD,OAAO,oBAAoB,CAAC;AAC5B,OAAO,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AACzC,OAAO,UAAU,MAAM,eAAe,CAAC;AACvC,OAAO,IAAI,MAAM,SAAS,CAAC;AAE3B,OAAO,UAAU,MAAM,YAAY,CAAC;AAEpC,MAAM,WAAW,GAAG,UAAU,CAC5B,CACE,EACE,QAAQ,EACR,UAAU,EACV,YAAY,EAAE,EACZ,GAAG,EAAE,OAAO,EACZ,IAAI,EAAE,QAAQ,EACd,MAAM,EAAE,UAAU,EAClB,KAAK,EAAE,SAAS,GACjB,EACD,iBAAiB,EAAE,EACjB,GAAG,EAAE,YAAY,EACjB,IAAI,EAAE,aAAa,EACnB,MAAM,EAAE,eAAe,EACvB,KAAK,EAAE,cAAc,GACtB,EACD,aAAa,EAAE,EACb,GAAG,EAAE,QAAQ,EACb,IAAI,EAAE,SAAS,EACf,MAAM,EAAE,WAAW,EACnB,KAAK,EAAE,UAAU,GAClB,EACD,UAAU,EACV,WAAW,EACX,aAAa,GAAG,gBAAgB,EAChC,aAAa,GAAG,gBAAgB,EAChC,SAAS,EACT,UAAU,EACV,QAAQ,EACR,SAAS,EACT,MAAM,EACN,MAAM,EACN,OAAO,EACP,aAAa;AACb,sBAAsB;EACvB,EACD,GAAG,EACH,EAAE;IACF,mBAAmB,CAAC,GAAG,EAAE,GAAG,EAAE,CAAC,CAAC;QAC9B,UAAU,EAAE,OAAO;KACpB,CAAC,CAAC,CAAC;IAEJ,OAAO,CACL,8BACG,aAAa,IAAI,CAChB,eACE,KAA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AE,UAAU,CAAC,qBAAqB,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC,EAC9D,KAAK,EAAE;wBACL,GAAG,EAAE,QAAQ,KAAK,SAAS,CAAC,CAAC,CAAC,GAAG,QAAQ,IAAI,CAAC,CAAC,CAAC,SAAS;wBACzD,IAAI,EAAE,SAAS,KAAK,SAAS,CAAC,CAAC,CAAC,GAAG,SAAS,IAAI,CAAC,CAAC,CAAC,SAAS;wBAC5D,MAAM,EACJ,WAAW,KAAK,SAAS,CAAC,CAAC,CAAC,GAAG,WAAW,IAAI,CAAC,CAAC,CAAC,SAAS;wBAC5D,KAAK,EAAE,UAAU,KAAK,SAAS,CAAC,CAAC,CAAC,GAAG,UAAU,IAAI,CAAC,CAAC,CAAC,SAAS;wBAC/D,QAAQ,EAAE,OAAO;wBACjB,MAAM,EAAE,WAAW;wBACnB,KAAK,EAAE,UAAU;qBAClB,YAED,eAAK,SAAS,EAAC,6BAA6B,aACzC,aAAa,IAAI,CAChB,cAAK,SAAS,EAAC,4BAA4B,YACxC,aAAa,GACV,CACP,EACD,cAAK,SAAS,EAAC,0BAA0B,YAAE,QAAQ,GAAO,EACzD,aAAa,IAAI,CAChB,cAAK,SAAS,EAAC,4BAA4B,YACxC,aAAa,GACV,CACP,IACG,GACF,EACN,QAAQ,CAAC,IAAI,CACd,IACF,CACJ,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,eAAe,WAAW,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './ChipWithCount';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/ChipWithCount/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,iBAAiB,CAAC"}
|
|
@@ -136,20 +136,20 @@ const Comments = ({ commentsData, handleAddComment, handleEditComment, handleDel
|
|
|
136
136
|
const getCaretCoordinates = (element, position) => {
|
|
137
137
|
const div = document.createElement('div');
|
|
138
138
|
const copyStyle = getComputedStyle(element);
|
|
139
|
-
div.style.cssText = `
|
|
140
|
-
position: absolute;
|
|
141
|
-
visibility: hidden;
|
|
142
|
-
white-space: pre-wrap;
|
|
143
|
-
word-wrap: break-word;
|
|
144
|
-
overflow: auto;
|
|
145
|
-
width: ${element.offsetWidth}px;
|
|
146
|
-
height: ${element.offsetHeight}px;
|
|
147
|
-
font-family: ${copyStyle.fontFamily};
|
|
148
|
-
font-size: ${copyStyle.fontSize};
|
|
149
|
-
padding: ${copyStyle.padding};
|
|
150
|
-
border: ${copyStyle.border};
|
|
151
|
-
box-sizing: ${copyStyle.boxSizing};
|
|
152
|
-
line-height: ${copyStyle.lineHeight};
|
|
139
|
+
div.style.cssText = `
|
|
140
|
+
position: absolute;
|
|
141
|
+
visibility: hidden;
|
|
142
|
+
white-space: pre-wrap;
|
|
143
|
+
word-wrap: break-word;
|
|
144
|
+
overflow: auto;
|
|
145
|
+
width: ${element.offsetWidth}px;
|
|
146
|
+
height: ${element.offsetHeight}px;
|
|
147
|
+
font-family: ${copyStyle.fontFamily};
|
|
148
|
+
font-size: ${copyStyle.fontSize};
|
|
149
|
+
padding: ${copyStyle.padding};
|
|
150
|
+
border: ${copyStyle.border};
|
|
151
|
+
box-sizing: ${copyStyle.boxSizing};
|
|
152
|
+
line-height: ${copyStyle.lineHeight};
|
|
153
153
|
`;
|
|
154
154
|
div.scrollTop = element.scrollTop;
|
|
155
155
|
div.scrollLeft = element.scrollLeft;
|
|
@@ -93,20 +93,20 @@ const ChildComment = ({ handleInsertNode, handleEditNode, handleDeleteNode, comm
|
|
|
93
93
|
const getCaretCoordinates = (element, position) => {
|
|
94
94
|
const div = document.createElement('div');
|
|
95
95
|
const copyStyle = getComputedStyle(element);
|
|
96
|
-
div.style.cssText = `
|
|
97
|
-
position: absolute;
|
|
98
|
-
visibility: hidden;
|
|
99
|
-
white-space: pre-wrap;
|
|
100
|
-
word-wrap: break-word;
|
|
101
|
-
overflow: auto;
|
|
102
|
-
width: ${element.offsetWidth}px;
|
|
103
|
-
height: ${element.offsetHeight}px;
|
|
104
|
-
font-family: ${copyStyle.fontFamily};
|
|
105
|
-
font-size: ${copyStyle.fontSize};
|
|
106
|
-
padding: ${copyStyle.padding};
|
|
107
|
-
border: ${copyStyle.border};
|
|
108
|
-
box-sizing: ${copyStyle.boxSizing};
|
|
109
|
-
line-height: ${copyStyle.lineHeight};
|
|
96
|
+
div.style.cssText = `
|
|
97
|
+
position: absolute;
|
|
98
|
+
visibility: hidden;
|
|
99
|
+
white-space: pre-wrap;
|
|
100
|
+
word-wrap: break-word;
|
|
101
|
+
overflow: auto;
|
|
102
|
+
width: ${element.offsetWidth}px;
|
|
103
|
+
height: ${element.offsetHeight}px;
|
|
104
|
+
font-family: ${copyStyle.fontFamily};
|
|
105
|
+
font-size: ${copyStyle.fontSize};
|
|
106
|
+
padding: ${copyStyle.padding};
|
|
107
|
+
border: ${copyStyle.border};
|
|
108
|
+
box-sizing: ${copyStyle.boxSizing};
|
|
109
|
+
line-height: ${copyStyle.lineHeight};
|
|
110
110
|
`;
|
|
111
111
|
div.scrollTop = element.scrollTop;
|
|
112
112
|
div.scrollLeft = element.scrollLeft;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './Comments';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/Comments/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './ConditionalDropdown';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/ConditionalDropdown/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './ConnectingBranch';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/ConnectingBranch/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './CreateVariableSlider';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/CreateVariable/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,wBAAwB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './DownloadClient';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/DownloadClient/index.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './DragAndDrop';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/DragAndDrop/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAC"}
|
|
@@ -21,7 +21,7 @@ const Drawer = ({ isOpen = true, children = 'Drawer content area', onClose = ()
|
|
|
21
21
|
isClickOutside) {
|
|
22
22
|
onClose();
|
|
23
23
|
}
|
|
24
|
-
}, ignoreRefs);
|
|
24
|
+
}, ignoreRefs, { ignoreSelectors: ['[data-tippy-root]'] });
|
|
25
25
|
const [isExpanded, setIsExpanded] = useState(false);
|
|
26
26
|
const [delayedOpen, setDelayedOpen] = useState(false);
|
|
27
27
|
// useKeyboardActions([{ key: 'Escape', action: onClose }]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Drawer.js","sourceRoot":"","sources":["../../../src/components/Drawer/Drawer.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AAEzC,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U,EAClB,qBAAqB,EAAE,IAAI,KACvB,wBAAwB,GAC5B,CACH,EACA,oBAAoB,CAAC,KAAK,IAAI,CAC7B,KAAC,MAAM,IACL,OAAO,EAAE,QAAQ,EACjB,OAAO,EAAC,WAAW,EACnB,qBAAqB,EAAE,IAAI,KACvB,oBAAoB,GACxB,CACH,EACA,kBAAkB,CAAC,KAAK,IAAI,CAC3B,KAAC,MAAM,IACL,OAAO,EAAE,kBAAkB,CAAC,OAAO,EACnC,OAAO,EAAC,SAAS,EACjB,qBAAqB,EAAE,IAAI,KACvB,kBAAkB,GACtB,CACH,IACG,IACL,CACJ,GACG,CACP,IACG,IACF,EACN,QAAQ,CAAC,IAAI,CACd,CAAC;AACJ,CAAC,CAAC;AACF,eAAe,MAAM,CAAC"}
|
|
@@ -77,8 +77,8 @@ isOpen = false, confirmAction, onClick, nameTooltipTitle, }) => {
|
|
|
77
77
|
{ key: 'Enter', action: () => handleKeyBoard('Enter') },
|
|
78
78
|
{ key: 'Escape', action: () => handleKeyBoard('Escape') },
|
|
79
79
|
], containerRef);
|
|
80
|
-
return (_jsxs("div", { className: "ff-label-edit-text-field", ref: containerRef, children: [isEditing ? (_jsxs("div", { className: "ff-label-text-field", children: [_jsx("div", { className: "ff-label-text-field-without-dropdown", children: _jsx(Input, { name: "input", label: label ? label : '', disabled: false, error: isThrowingError, placeholder: "Enter your name", value: inputValue, onChange: handleTextFieldChange, className: `
|
|
81
|
-
|
|
80
|
+
return (_jsxs("div", { className: "ff-label-edit-text-field", ref: containerRef, children: [isEditing ? (_jsxs("div", { className: "ff-label-text-field", children: [_jsx("div", { className: "ff-label-text-field-without-dropdown", children: _jsx(Input, { name: "input", label: label ? label : '', disabled: false, error: isThrowingError, placeholder: "Enter your name", value: inputValue, onChange: handleTextFieldChange, className: `
|
|
81
|
+
|
|
82
82
|
${isTextFieldModified ? 'modified' : ''}`, type: "text" }) }), _jsxs("div", { className: "ff-icon-container", children: [confirmIcon && (_jsx(Tooltip, { title: "confirm", placement: 'bottom', children: _jsx(Icon, { color: confirmIcon?.color ?? 'var(--default-confirm-icon-color)', height: confirmIcon?.height ?? 20, disabled: disabled, width: confirmIcon?.width ?? 20, name: confirmIcon?.name ?? 'default-confirm-icon', className: `${confirmIcon?.className ?? 'default-confirm-class'} ${disabled ? 'disabled-confirm-icon' : 'confirm-icon'}`, onClick: handleConfirm }) })), cancelIcon && (_jsx(Tooltip, { title: "cancel", placement: 'bottom', children: _jsx(Icon, { color: cancelIcon?.color ?? 'var(--label-edit-cancel-icon)', height: cancelIcon?.height ?? 12, width: cancelIcon?.width ?? 20, name: cancelIcon?.name ?? 'default-cancel-icon', className: cancelIcon?.className ?? 'cancel-icon', onClick: handleCancel, ref: cancelRef }) }))] })] })) : (_jsxs("div", { className: "display-text-container", children: [nameTooltipTitle ? (_jsx(Tooltip, { title: nameTooltipTitle, children: _jsx("span", { className: "display-text", onClick: onClick, children: _jsx(HighlightText, { text: inputValue, highlight: highlightText }) }) })) : (_jsx("span", { className: "display-text", onClick: onClick, children: _jsx(HighlightText, { text: inputValue, highlight: highlightText }) })), _jsx(Tooltip, { title: capitalize(editIcon?.name ?? 'Edit'), children: _jsx(Icon, { color: editIcon?.color ?? 'var(--label-edit-cancel-icon)', height: editIcon?.height ?? 20, width: editIcon?.width ?? 20, name: editIcon?.name ?? 'edit', className: editIcon?.className ?? 'edit-icon', onClick: handleEditButtonClick }) })] })), showError && isEditing && (_jsx(Typography, { as: "p", fontSize: 8, className: "error-text", children: showError }))] }));
|
|
83
83
|
};
|
|
84
84
|
export default EditTextField;
|
|
@@ -313,27 +313,7 @@ const Editor = forwardRef(({ width = '100%', height = '100%', VariableDropdownHe
|
|
|
313
313
|
const editor = editorRef.current;
|
|
314
314
|
const position = editor.getPosition();
|
|
315
315
|
if (position) {
|
|
316
|
-
const
|
|
317
|
-
? 'SGV'
|
|
318
|
-
: option.type === 'LOCAL'
|
|
319
|
-
? 'LV'
|
|
320
|
-
: option.type === 'GLOBAL'
|
|
321
|
-
? 'GV'
|
|
322
|
-
: option.type === 'GROUP'
|
|
323
|
-
? 'SGV'
|
|
324
|
-
: [
|
|
325
|
-
String(option?._id ?? ''),
|
|
326
|
-
String(option?.id ?? ''),
|
|
327
|
-
].some((val) => val.includes('PARAMETER'))
|
|
328
|
-
? 'SGP'
|
|
329
|
-
: option.type === '_startforloop'
|
|
330
|
-
? 'FLV_for:'
|
|
331
|
-
: option.type === 'DATAPROVIDER'
|
|
332
|
-
? 'DPV'
|
|
333
|
-
: 'PEV'}${option?.type === '_startforloop' ? '' : '_'}${option?.type === 'DATAPROVIDER'
|
|
334
|
-
? option?.dpName + ':' + option?.varname
|
|
335
|
-
: option.name}}`;
|
|
336
|
-
const textToInsert = `'$${dollarSyntax}'`;
|
|
316
|
+
const textToInsert = `'${option.name}'`;
|
|
337
317
|
const currentPostion = varRef?.current ?? 0;
|
|
338
318
|
editor.executeEdits('', [
|
|
339
319
|
{
|