balkan-orgchart-react 9.1.65 → 9.1.67
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/index.es.d.ts +6049 -2
- package/package.json +2 -6
- package/readme.md +23 -6
- package/OrgChart.d.ts +0 -28
- package/OrgChart.d.ts.map +0 -1
- package/index.d.ts +0 -2
- package/index.d.ts.map +0 -1
package/package.json
CHANGED
|
@@ -15,13 +15,9 @@
|
|
|
15
15
|
"react-dom": ">=17"
|
|
16
16
|
},
|
|
17
17
|
"files": [
|
|
18
|
-
"index.es.d.ts",
|
|
19
18
|
"index.es.js",
|
|
20
19
|
"index.umd.js",
|
|
21
|
-
"
|
|
22
|
-
"OrgChart.d.ts.map",
|
|
23
|
-
"index.d.ts",
|
|
24
|
-
"index.d.ts.map",
|
|
20
|
+
"index.es.d.ts",
|
|
25
21
|
"package.json",
|
|
26
22
|
"readme.md"
|
|
27
23
|
],
|
|
@@ -58,5 +54,5 @@
|
|
|
58
54
|
"url": "git+https://github.com/BALKANGraph/OrgChartReact.git"
|
|
59
55
|
},
|
|
60
56
|
"dependencies": {},
|
|
61
|
-
"version": "9.1.
|
|
57
|
+
"version": "9.1.67"
|
|
62
58
|
}
|
package/readme.md
CHANGED
|
@@ -31,19 +31,36 @@ or with yarn:
|
|
|
31
31
|
yarn add balkan-orgchart-react
|
|
32
32
|
```
|
|
33
33
|
|
|
34
|
-
## Import it in your code
|
|
35
|
-
|
|
36
|
-
```javascript
|
|
37
|
-
import OrgChart from "balkan-orgchart-react";
|
|
38
|
-
```
|
|
39
34
|
|
|
40
35
|
|
|
41
|
-
## Usage
|
|
36
|
+
## Declarative Usage
|
|
42
37
|
|
|
43
38
|
```react
|
|
44
39
|
|
|
40
|
+
|
|
41
|
+
import {OrgChart, Employee} from "balkan-orgchart-react";
|
|
42
|
+
|
|
43
|
+
function App() {
|
|
44
|
+
return (
|
|
45
|
+
<>
|
|
46
|
+
<OrgChart nodeBinding={{ field_0: 'name', field_1: 'title', img_0: 'photo'}} template="olivia">
|
|
47
|
+
<Employee name='Denny Curtis' title='CEO' photo="https://cdn.balkan.app/shared/a/2.jpg" >
|
|
48
|
+
<Employee name='Lexie Cole' title='QA Lead' photo="https://cdn.balkan.app/shared/a/3.jpg"></Employee>
|
|
49
|
+
<Employee name='Janae Barrett' title='Technical Director' photo="https://cdn.balkan.app/shared/a/4.jpg"></Employee>
|
|
50
|
+
<Employee name='Aaliyah Webb' title='Assistant' photo="https://cdn.balkan.app/shared/a/5.jpg" assistant={true}></Employee>
|
|
51
|
+
</Employee>
|
|
52
|
+
</OrgChart>
|
|
53
|
+
</>
|
|
54
|
+
)
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
export default App
|
|
58
|
+
|
|
45
59
|
```
|
|
46
60
|
|
|
61
|
+
|
|
62
|
+
|
|
63
|
+
|
|
47
64
|
<br>
|
|
48
65
|
|
|
49
66
|
<br>
|
package/OrgChart.d.ts
DELETED
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import { default as React } from 'react';
|
|
2
|
-
import { default as OrgChartJS } from 'balkan-orgchart-js';
|
|
3
|
-
export interface OrgChartRef {
|
|
4
|
-
readonly instance: OrgChartJS | null;
|
|
5
|
-
}
|
|
6
|
-
type OrgChartOptions = Omit<OrgChartJS.options, 'nodes' | 'UI' | 'aiUI' | 'editUI' | 'orgScribeUI' | 'powerPointPreviewUI' | 'pdfPreviewUI' | 'svgPreviewUI' | 'pngPreviewUI' | 'filterUI' | 'searchUI' | 'xScrollUI' | 'yScrollUI' | 'nodeMenuUI' | 'controlsUI' | 'nodeCircleMenuUI' | 'nodeContextMenuUI' | 'toolbarUI' | 'notifierUI' | 'menuUI' | 'undoRedoUI'>;
|
|
7
|
-
interface OrgChartEmployeeProps {
|
|
8
|
-
children?: React.ReactNode;
|
|
9
|
-
title?: string;
|
|
10
|
-
name?: string;
|
|
11
|
-
photo?: string;
|
|
12
|
-
assistant?: boolean;
|
|
13
|
-
partner?: boolean;
|
|
14
|
-
tags?: Array<string>;
|
|
15
|
-
[key: string]: unknown;
|
|
16
|
-
}
|
|
17
|
-
interface OrgChartProps extends Partial<OrgChartOptions> {
|
|
18
|
-
id?: string;
|
|
19
|
-
children?: React.ReactNode;
|
|
20
|
-
className?: string;
|
|
21
|
-
style?: React.CSSProperties;
|
|
22
|
-
data?: Array<OrgChartJS.nodeData>;
|
|
23
|
-
onUpdateNode?: (this: OrgChartJS, args: OrgChartJS.updateNodeEventArgs) => void;
|
|
24
|
-
}
|
|
25
|
-
export declare const Employee: ({ children, title, name, photo, assistant, partner, ...rest }: OrgChartEmployeeProps) => import("react/jsx-runtime").JSX.Element;
|
|
26
|
-
export declare const OrgChart: React.ForwardRefExoticComponent<OrgChartProps & React.RefAttributes<OrgChartRef>>;
|
|
27
|
-
export {};
|
|
28
|
-
//# sourceMappingURL=OrgChart.d.ts.map
|
package/OrgChart.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"OrgChart.d.ts","sourceRoot":"","sources":["../src/OrgChart.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA8D,MAAM,OAAO,CAAC;AACnF,OAAQ,UAAU,MAAM,oBAAoB,CAAC;AAE7C,MAAM,WAAW,WAAW;IAC1B,QAAQ,CAAC,QAAQ,EAAE,UAAU,GAAG,IAAI,CAAC;CACtC;AAED,KAAK,eAAe,GAAG,IAAI,CAAC,UAAU,CAAC,OAAO,EAAE,OAAO,GAAI,IAAI,GAAG,MAAM,GAAG,QAAQ,GAAG,aAAa,GAAG,qBAAqB,GAAG,cAAc,GAAG,cAAc,GAAG,cAAc,GAAG,UAAU,GAAG,UAAU,GAAG,WAAW,GAAG,WAAW,GAAG,YAAY,GAAG,YAAY,GAAG,kBAAkB,GAAG,mBAAmB,GAAG,WAAW,GAAE,YAAY,GAAG,QAAQ,GAAG,YAAY,CAAE,CAAC;AAEtW,UAAU,qBAAqB;IAC3B,QAAQ,CAAC,EAAE,KAAK,CAA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