@unovis/react 1.0.0-beta.0

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.
Files changed (112) hide show
  1. package/LICENSE +193 -0
  2. package/components/area/index.d.ts +10 -0
  3. package/components/area/index.js +22 -0
  4. package/components/area/index.js.map +1 -0
  5. package/components/axis/index.d.ts +10 -0
  6. package/components/axis/index.js +22 -0
  7. package/components/axis/index.js.map +1 -0
  8. package/components/brush/index.d.ts +10 -0
  9. package/components/brush/index.js +22 -0
  10. package/components/brush/index.js.map +1 -0
  11. package/components/chord-diagram/index.d.ts +13 -0
  12. package/components/crosshair/index.d.ts +10 -0
  13. package/components/crosshair/index.js +22 -0
  14. package/components/crosshair/index.js.map +1 -0
  15. package/components/donut/index.d.ts +10 -0
  16. package/components/donut/index.js +22 -0
  17. package/components/donut/index.js.map +1 -0
  18. package/components/free-brush/index.d.ts +10 -0
  19. package/components/free-brush/index.js +22 -0
  20. package/components/free-brush/index.js.map +1 -0
  21. package/components/graph/index.d.ts +10 -0
  22. package/components/graph/index.js +22 -0
  23. package/components/graph/index.js.map +1 -0
  24. package/components/grouped-bar/index.d.ts +10 -0
  25. package/components/grouped-bar/index.js +22 -0
  26. package/components/grouped-bar/index.js.map +1 -0
  27. package/components/line/index.d.ts +10 -0
  28. package/components/line/index.js +22 -0
  29. package/components/line/index.js.map +1 -0
  30. package/components/sankey/index.d.ts +10 -0
  31. package/components/sankey/index.js +22 -0
  32. package/components/sankey/index.js.map +1 -0
  33. package/components/scatter/index.d.ts +10 -0
  34. package/components/scatter/index.js +22 -0
  35. package/components/scatter/index.js.map +1 -0
  36. package/components/stacked-bar/index.d.ts +10 -0
  37. package/components/stacked-bar/index.js +22 -0
  38. package/components/stacked-bar/index.js.map +1 -0
  39. package/components/timeline/index.d.ts +10 -0
  40. package/components/timeline/index.js +22 -0
  41. package/components/timeline/index.js.map +1 -0
  42. package/components/tooltip/index.d.ts +10 -0
  43. package/components/tooltip/index.js +20 -0
  44. package/components/tooltip/index.js.map +1 -0
  45. package/components/topojson-map/index.d.ts +14 -0
  46. package/components/topojson-map/index.js +22 -0
  47. package/components/topojson-map/index.js.map +1 -0
  48. package/components/xy-labels/index.d.ts +10 -0
  49. package/components/xy-labels/index.js +22 -0
  50. package/components/xy-labels/index.js.map +1 -0
  51. package/components.d.ts +19 -0
  52. package/composites/time-series/index.d.ts +54 -0
  53. package/composites/time-series/index.js +63 -0
  54. package/composites/time-series/index.js.map +1 -0
  55. package/composites/time-series/style.d.ts +3 -0
  56. package/composites/time-series/style.js +21 -0
  57. package/composites/time-series/style.js.map +1 -0
  58. package/composites.d.ts +1 -0
  59. package/containers/single-container/index.d.ts +6 -0
  60. package/containers/single-container/index.js +31 -0
  61. package/containers/single-container/index.js.map +1 -0
  62. package/containers/xy-container/index.d.ts +8 -0
  63. package/containers/xy-container/index.js +39 -0
  64. package/containers/xy-container/index.js.map +1 -0
  65. package/containers.d.ts +2 -0
  66. package/html-components/bullet-legend/index.d.ts +3 -0
  67. package/html-components/bullet-legend/index.js +18 -0
  68. package/html-components/bullet-legend/index.js.map +1 -0
  69. package/html-components/leaflet-flow-map/index.d.ts +15 -0
  70. package/html-components/leaflet-flow-map/index.js +23 -0
  71. package/html-components/leaflet-flow-map/index.js.map +1 -0
  72. package/html-components/leaflet-map/index.d.ts +12 -0
  73. package/html-components/leaflet-map/index.js +23 -0
  74. package/html-components/leaflet-map/index.js.map +1 -0
  75. package/index.d.ts +3 -0
  76. package/index.js +23 -0
  77. package/index.js.map +1 -0
  78. package/package.json +41 -0
  79. package/src/components/area/index.d.ts +10 -0
  80. package/src/components/axis/index.d.ts +10 -0
  81. package/src/components/brush/index.d.ts +10 -0
  82. package/src/components/chord-diagram/index.d.ts +13 -0
  83. package/src/components/crosshair/index.d.ts +10 -0
  84. package/src/components/donut/index.d.ts +10 -0
  85. package/src/components/free-brush/index.d.ts +10 -0
  86. package/src/components/graph/index.d.ts +10 -0
  87. package/src/components/grouped-bar/index.d.ts +10 -0
  88. package/src/components/line/index.d.ts +10 -0
  89. package/src/components/sankey/index.d.ts +10 -0
  90. package/src/components/scatter/index.d.ts +10 -0
  91. package/src/components/stacked-bar/index.d.ts +10 -0
  92. package/src/components/timeline/index.d.ts +10 -0
  93. package/src/components/tooltip/index.d.ts +10 -0
  94. package/src/components/topojson-map/index.d.ts +14 -0
  95. package/src/components/xy-labels/index.d.ts +10 -0
  96. package/src/components.d.ts +19 -0
  97. package/src/composites/time-series/index.d.ts +54 -0
  98. package/src/composites/time-series/style.d.ts +3 -0
  99. package/src/composites.d.ts +1 -0
  100. package/src/containers/single-container/index.d.ts +6 -0
  101. package/src/containers/xy-container/index.d.ts +8 -0
  102. package/src/containers.d.ts +2 -0
  103. package/src/html-components/bullet-legend/index.d.ts +3 -0
  104. package/src/html-components/leaflet-flow-map/index.d.ts +15 -0
  105. package/src/html-components/leaflet-map/index.d.ts +12 -0
  106. package/src/index.d.ts +3 -0
  107. package/src/types/dom.d.ts +3 -0
  108. package/src/utils/react.d.ts +4 -0
  109. package/types/dom.d.ts +3 -0
  110. package/utils/react.d.ts +4 -0
  111. package/utils/react.js +27 -0
  112. package/utils/react.js.map +1 -0
@@ -0,0 +1,3 @@
1
+ import { BulletLegendConfigInterface } from '@unovis/ts';
2
+ export declare type VisBulletLegendProps = BulletLegendConfigInterface;
3
+ export declare function VisBulletLegend(props: VisBulletLegendProps): JSX.Element;
@@ -0,0 +1,18 @@
1
+ import React, { useRef, useState, useEffect } from 'react';
2
+ import { BulletLegend } from '@unovis/ts';
3
+
4
+ function VisBulletLegend(props) {
5
+ const container = useRef(null);
6
+ const [component, setComponent] = useState();
7
+ useEffect(() => {
8
+ setComponent(new BulletLegend(container.current, props));
9
+ return () => component === null || component === void 0 ? void 0 : component.destroy();
10
+ }, []);
11
+ useEffect(() => {
12
+ component === null || component === void 0 ? void 0 : component.update(props);
13
+ });
14
+ return React.createElement("div", { ref: container });
15
+ }
16
+
17
+ export { VisBulletLegend };
18
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sources":["../../../src/html-components/bullet-legend/index.tsx"],"sourcesContent":["import React, { useEffect, useRef, useState } from 'react'\nimport { BulletLegend, BulletLegendConfigInterface } from '@unovis/ts'\n\nexport type VisBulletLegendProps = BulletLegendConfigInterface\n\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport function VisBulletLegend (props: VisBulletLegendProps): JSX.Element {\n const container = useRef<HTMLDivElement>(null)\n const [component, setComponent] = useState<BulletLegend>()\n\n // On Mount\n useEffect(() => {\n setComponent(\n new BulletLegend(container.current as HTMLDivElement, props)\n )\n\n return () => component?.destroy()\n }, [])\n\n // On Props Update\n useEffect(() => {\n component?.update(props)\n })\n\n return <div ref={container} />\n}\n"],"names":[],"mappings":";;;AAMM,SAAU,eAAe,CAAE,KAA2B,EAAA;AAC1D,IAAA,MAAM,SAAS,GAAG,MAAM,CAAiB,IAAI,CAAC,CAAA;IAC9C,MAAM,CAAC,SAAS,EAAE,YAAY,CAAC,GAAG,QAAQ,EAAgB,CAAA;IAG1D,SAAS,CAAC,MAAK;QACb,YAAY,CACV,IAAI,YAAY,CAAC,SAAS,CAAC,OAAyB,EAAE,KAAK,CAAC,CAC7D,CAAA;QAED,OAAO,MAAM,SAAS,KAAA,IAAA,IAAT,SAAS,KAAA,KAAA,CAAA,GAAA,KAAA,CAAA,GAAT,SAAS,CAAE,OAAO,EAAE,CAAA;KAClC,EAAE,EAAE,CAAC,CAAA;IAGN,SAAS,CAAC,MAAK;QACb,SAAS,KAAA,IAAA,IAAT,SAAS,KAAT,KAAA,CAAA,GAAA,KAAA,CAAA,GAAA,SAAS,CAAE,MAAM,CAAC,KAAK,CAAC,CAAA;AAC1B,KAAC,CAAC,CAAA;AAEF,IAAA,OAAO,KAAK,CAAA,aAAA,CAAA,KAAA,EAAA,EAAA,GAAG,EAAE,SAAS,GAAI,CAAA;AAChC;;;;"}
@@ -0,0 +1,15 @@
1
+ import { ForwardedRef, Ref } from 'react';
2
+ import { LeafletFlowMap, LeafletFlowMapConfigInterface } from '@unovis/ts';
3
+ export declare type VisLeafletFlowMapProps<PointDatum, FlowDatum> = LeafletFlowMapConfigInterface<PointDatum, FlowDatum> & {
4
+ data?: {
5
+ points: PointDatum[];
6
+ flows: FlowDatum[];
7
+ };
8
+ ref?: Ref<VisLeafletFlowMapRef<PointDatum, FlowDatum>>;
9
+ className?: string;
10
+ };
11
+ export declare type VisLeafletFlowMapRef<PointDatum, FlowDatum> = {
12
+ component: LeafletFlowMap<PointDatum, FlowDatum> | undefined;
13
+ };
14
+ export declare function VisLeafletFlowMapFC<PointDatum, FlowDatum>(props: VisLeafletFlowMapProps<PointDatum, FlowDatum>, ref: ForwardedRef<VisLeafletFlowMapRef<PointDatum, FlowDatum>>): JSX.Element;
15
+ export declare const VisLeafletFlowMap: (<PointDatum, FlowDatum>(props: VisLeafletFlowMapProps<PointDatum, FlowDatum>) => JSX.Element | null);
@@ -0,0 +1,23 @@
1
+ import React, { useRef, useState, useEffect, useImperativeHandle } from 'react';
2
+ import { LeafletFlowMap } from '@unovis/ts';
3
+ import { arePropsEqual } from '../../utils/react.js';
4
+
5
+ function VisLeafletFlowMapFC(props, ref) {
6
+ const container = useRef(null);
7
+ const [component, setComponent] = useState();
8
+ useEffect(() => {
9
+ setComponent(new LeafletFlowMap(container.current, props, props.data));
10
+ return () => component === null || component === void 0 ? void 0 : component.destroy();
11
+ }, []);
12
+ useEffect(() => {
13
+ if (props.data)
14
+ component === null || component === void 0 ? void 0 : component.setData(props.data);
15
+ component === null || component === void 0 ? void 0 : component.setConfig(props);
16
+ });
17
+ useImperativeHandle(ref, () => ({ component }));
18
+ return React.createElement("div", { ref: container, className: props.className });
19
+ }
20
+ const VisLeafletFlowMap = React.memo(React.forwardRef(VisLeafletFlowMapFC), arePropsEqual);
21
+
22
+ export { VisLeafletFlowMap, VisLeafletFlowMapFC };
23
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sources":["../../../src/html-components/leaflet-flow-map/index.tsx"],"sourcesContent":["import React, { ForwardedRef, Ref, useEffect, useImperativeHandle, useRef, useState } from 'react'\nimport { LeafletFlowMap, LeafletFlowMapConfigInterface } from '@unovis/ts'\nimport { arePropsEqual } from '../../utils/react'\n\nexport type VisLeafletFlowMapProps<PointDatum, FlowDatum> = LeafletFlowMapConfigInterface<PointDatum, FlowDatum> & {\n data?: { points: PointDatum[]; flows: FlowDatum[] };\n ref?: Ref<VisLeafletFlowMapRef<PointDatum, FlowDatum>>;\n className?: string;\n}\n\nexport type VisLeafletFlowMapRef<PointDatum, FlowDatum> = {\n component: LeafletFlowMap<PointDatum, FlowDatum> | undefined;\n}\n\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport function VisLeafletFlowMapFC<PointDatum, FlowDatum> (\n props: VisLeafletFlowMapProps<PointDatum, FlowDatum>,\n ref: ForwardedRef<VisLeafletFlowMapRef<PointDatum, FlowDatum>>\n): JSX.Element {\n const container = useRef<HTMLDivElement>(null)\n const [component, setComponent] = useState<LeafletFlowMap<PointDatum, FlowDatum>>()\n\n // On Mount\n useEffect(() => {\n setComponent(\n new LeafletFlowMap(container.current as HTMLDivElement, props, props.data)\n )\n\n return () => component?.destroy()\n }, [])\n\n // On Props Update\n useEffect(() => {\n if (props.data) component?.setData(props.data)\n\n component?.setConfig(props)\n })\n\n useImperativeHandle(ref, () => ({ component }))\n return <div ref={container} className={props.className} />\n}\n\n// We export a memoized component to avoid unnecessary re-renders\n// and define its type explicitly to help react-docgen-typescript to extract information about props\nexport const VisLeafletFlowMap: (<PointDatum, FlowDatum>(props: VisLeafletFlowMapProps<PointDatum, FlowDatum>) => JSX.Element | null) =\n React.memo(React.forwardRef(VisLeafletFlowMapFC), arePropsEqual)\n"],"names":[],"mappings":";;;;AAegB,SAAA,mBAAmB,CACjC,KAAoD,EACpD,GAA8D,EAAA;AAE9D,IAAA,MAAM,SAAS,GAAG,MAAM,CAAiB,IAAI,CAAC,CAAA;IAC9C,MAAM,CAAC,SAAS,EAAE,YAAY,CAAC,GAAG,QAAQ,EAAyC,CAAA;IAGnF,SAAS,CAAC,MAAK;AACb,QAAA,YAAY,CACV,IAAI,cAAc,CAAC,SAAS,CAAC,OAAyB,EAAE,KAAK,EAAE,KAAK,CAAC,IAAI,CAAC,CAC3E,CAAA;QAED,OAAO,MAAM,SAAS,KAAA,IAAA,IAAT,SAAS,KAAA,KAAA,CAAA,GAAA,KAAA,CAAA,GAAT,SAAS,CAAE,OAAO,EAAE,CAAA;KAClC,EAAE,EAAE,CAAC,CAAA;IAGN,SAAS,CAAC,MAAK;QACb,IAAI,KAAK,CAAC,IAAI;YAAE,SAAS,KAAA,IAAA,IAAT,SAAS,KAAA,KAAA,CAAA,GAAA,KAAA,CAAA,GAAT,SAAS,CAAE,OAAO,CAAC,KAAK,CAAC,IAAI,CAAC,CAAA;QAE9C,SAAS,KAAA,IAAA,IAAT,SAAS,KAAT,KAAA,CAAA,GAAA,KAAA,CAAA,GAAA,SAAS,CAAE,SAAS,CAAC,KAAK,CAAC,CAAA;AAC7B,KAAC,CAAC,CAAA;AAEF,IAAA,mBAAmB,CAAC,GAAG,EAAE,OAAO,EAAE,SAAS,EAAE,CAAC,CAAC,CAAA;IAC/C,OAAO,KAAA,CAAA,aAAA,CAAA,KAAA,EAAA,EAAK,GAAG,EAAE,SAAS,EAAE,SAAS,EAAE,KAAK,CAAC,SAAS,EAAA,CAAI,CAAA;AAC5D,CAAC;AAIY,MAAA,iBAAiB,GAC5B,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,UAAU,CAAC,mBAAmB,CAAC,EAAE,aAAa;;;;"}
@@ -0,0 +1,12 @@
1
+ import { ForwardedRef, Ref } from 'react';
2
+ import { LeafletMap, LeafletMapConfigInterface } from '@unovis/ts';
3
+ export declare type VisLeafletMapProps<Datum> = LeafletMapConfigInterface<Datum> & {
4
+ data?: Datum[];
5
+ ref?: Ref<VisLeafletMapRef<Datum>>;
6
+ className?: string;
7
+ };
8
+ export declare type VisLeafletMapRef<Datum> = {
9
+ component: LeafletMap<Datum> | undefined;
10
+ };
11
+ export declare function VisLeafletMapFC<Datum>(props: VisLeafletMapProps<Datum>, ref: ForwardedRef<VisLeafletMapRef<Datum>>): JSX.Element;
12
+ export declare const VisLeafletMap: (<Datum>(props: VisLeafletMapProps<Datum>) => JSX.Element | null);
@@ -0,0 +1,23 @@
1
+ import React, { useRef, useState, useEffect, useImperativeHandle } from 'react';
2
+ import { LeafletMap } from '@unovis/ts';
3
+ import { arePropsEqual } from '../../utils/react.js';
4
+
5
+ function VisLeafletMapFC(props, ref) {
6
+ const container = useRef(null);
7
+ const [component, setComponent] = useState();
8
+ useEffect(() => {
9
+ setComponent(new LeafletMap(container.current, props, props.data));
10
+ return () => component === null || component === void 0 ? void 0 : component.destroy();
11
+ }, []);
12
+ useEffect(() => {
13
+ if (props.data)
14
+ component === null || component === void 0 ? void 0 : component.setData(props.data);
15
+ component === null || component === void 0 ? void 0 : component.setConfig(props);
16
+ });
17
+ useImperativeHandle(ref, () => ({ component }));
18
+ return React.createElement("div", { ref: container, className: props.className });
19
+ }
20
+ const VisLeafletMap = React.memo(React.forwardRef(VisLeafletMapFC), arePropsEqual);
21
+
22
+ export { VisLeafletMap, VisLeafletMapFC };
23
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sources":["../../../src/html-components/leaflet-map/index.tsx"],"sourcesContent":["import React, { ForwardedRef, Ref, useEffect, useImperativeHandle, useRef, useState } from 'react'\nimport { LeafletMap, LeafletMapConfigInterface } from '@unovis/ts'\nimport { arePropsEqual } from '../../utils/react'\n\nexport type VisLeafletMapProps<Datum> = LeafletMapConfigInterface<Datum> & {\n data?: Datum[];\n ref?: Ref<VisLeafletMapRef<Datum>>;\n className?: string;\n}\n\nexport type VisLeafletMapRef<Datum> = {\n component: LeafletMap<Datum> | undefined;\n}\n\nexport function VisLeafletMapFC<Datum> (props: VisLeafletMapProps<Datum>, ref: ForwardedRef<VisLeafletMapRef<Datum>>): JSX.Element {\n const container = useRef<HTMLDivElement>(null)\n const [component, setComponent] = useState<LeafletMap<Datum>>()\n\n // On Mount\n useEffect(() => {\n setComponent(\n new LeafletMap(container.current as HTMLDivElement, props, props.data)\n )\n\n return () => component?.destroy()\n }, [])\n\n // On Props Update\n useEffect(() => {\n if (props.data) component?.setData(props.data)\n\n component?.setConfig(props)\n })\n\n useImperativeHandle(ref, () => ({ component }))\n return <div ref={container} className={props.className} />\n}\n\n// We export a memoized component to avoid unnecessary re-renders\n// and define its type explicitly to help react-docgen-typescript to extract information about props\nexport const VisLeafletMap: (<Datum>(props: VisLeafletMapProps<Datum>) => JSX.Element | null) =\n React.memo(React.forwardRef(VisLeafletMapFC), arePropsEqual)\n"],"names":[],"mappings":";;;;AAcgB,SAAA,eAAe,CAAS,KAAgC,EAAE,GAA0C,EAAA;AAClH,IAAA,MAAM,SAAS,GAAG,MAAM,CAAiB,IAAI,CAAC,CAAA;IAC9C,MAAM,CAAC,SAAS,EAAE,YAAY,CAAC,GAAG,QAAQ,EAAqB,CAAA;IAG/D,SAAS,CAAC,MAAK;AACb,QAAA,YAAY,CACV,IAAI,UAAU,CAAC,SAAS,CAAC,OAAyB,EAAE,KAAK,EAAE,KAAK,CAAC,IAAI,CAAC,CACvE,CAAA;QAED,OAAO,MAAM,SAAS,KAAA,IAAA,IAAT,SAAS,KAAA,KAAA,CAAA,GAAA,KAAA,CAAA,GAAT,SAAS,CAAE,OAAO,EAAE,CAAA;KAClC,EAAE,EAAE,CAAC,CAAA;IAGN,SAAS,CAAC,MAAK;QACb,IAAI,KAAK,CAAC,IAAI;YAAE,SAAS,KAAA,IAAA,IAAT,SAAS,KAAA,KAAA,CAAA,GAAA,KAAA,CAAA,GAAT,SAAS,CAAE,OAAO,CAAC,KAAK,CAAC,IAAI,CAAC,CAAA;QAE9C,SAAS,KAAA,IAAA,IAAT,SAAS,KAAT,KAAA,CAAA,GAAA,KAAA,CAAA,GAAA,SAAS,CAAE,SAAS,CAAC,KAAK,CAAC,CAAA;AAC7B,KAAC,CAAC,CAAA;AAEF,IAAA,mBAAmB,CAAC,GAAG,EAAE,OAAO,EAAE,SAAS,EAAE,CAAC,CAAC,CAAA;IAC/C,OAAO,KAAA,CAAA,aAAA,CAAA,KAAA,EAAA,EAAK,GAAG,EAAE,SAAS,EAAE,SAAS,EAAE,KAAK,CAAC,SAAS,EAAA,CAAI,CAAA;AAC5D,CAAC;AAIY,MAAA,aAAa,GACxB,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,UAAU,CAAC,eAAe,CAAC,EAAE,aAAa;;;;"}
package/index.d.ts ADDED
@@ -0,0 +1,3 @@
1
+ export * from './containers';
2
+ export * from './components';
3
+ export * from './composites';
package/index.js ADDED
@@ -0,0 +1,23 @@
1
+ export { VisXYContainer, VisXYContainerFC } from './containers/xy-container/index.js';
2
+ export { VisSingleContainer } from './containers/single-container/index.js';
3
+ export { VisLine } from './components/line/index.js';
4
+ export { VisArea } from './components/area/index.js';
5
+ export { VisAxis } from './components/axis/index.js';
6
+ export { VisBrush } from './components/brush/index.js';
7
+ export { VisFreeBrush } from './components/free-brush/index.js';
8
+ export { VisCrosshair } from './components/crosshair/index.js';
9
+ export { VisDonut } from './components/donut/index.js';
10
+ export { VisGraph } from './components/graph/index.js';
11
+ export { VisGroupedBar } from './components/grouped-bar/index.js';
12
+ export { VisScatter } from './components/scatter/index.js';
13
+ export { VisSankey } from './components/sankey/index.js';
14
+ export { VisStackedBar } from './components/stacked-bar/index.js';
15
+ export { VisTooltip } from './components/tooltip/index.js';
16
+ export { VisTimeline } from './components/timeline/index.js';
17
+ export { VisTopoJSONMap } from './components/topojson-map/index.js';
18
+ export { VisXYLabels } from './components/xy-labels/index.js';
19
+ export { VisBulletLegend } from './html-components/bullet-legend/index.js';
20
+ export { VisLeafletMap, VisLeafletMapFC } from './html-components/leaflet-map/index.js';
21
+ export { VisLeafletFlowMap, VisLeafletFlowMapFC } from './html-components/leaflet-flow-map/index.js';
22
+ export { VisTimeSeries } from './composites/time-series/index.js';
23
+ //# sourceMappingURL=index.js.map
package/index.js.map ADDED
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;"}
package/package.json ADDED
@@ -0,0 +1,41 @@
1
+ {
2
+ "name": "@unovis/react",
3
+ "version": "1.0.0-beta.0",
4
+ "description": "React wrapper for Unovis",
5
+ "main": "./index.js",
6
+ "types": "./index.d.ts",
7
+ "scripts": {
8
+ "build": "rimraf dist && tsc --project tsconfig.lib.json --emitDeclarationOnly && rollup --config",
9
+ "tsc": "tsc",
10
+ "generate": "rollup -c ./autogen/rollup.config.js; node .autogen.js; rm .autogen.js",
11
+ "publish-dist": "cp ./{.npmrc,package.json} ./dist; cp ../../LICENSE ./dist; cd ./dist; npm publish; rm -rf .cache"
12
+ },
13
+ "author": "Nikita Rokotyan",
14
+ "license": "Apache-2.0",
15
+ "peerDependencies": {
16
+ "@emotion/css": "^11.7.1",
17
+ "@unovis/ts": "1.0.0-beta.0",
18
+ "react": ">=16.8.0",
19
+ "react-dom": ">=16.8.0"
20
+ },
21
+ "devDependencies": {
22
+ "@emotion/css": "^11.7.1",
23
+ "@rollup/plugin-node-resolve": "^13.0.4",
24
+ "@types/react": ">=16.8.0",
25
+ "@types/node": "^16.11.17",
26
+ "@zerollup/ts-transform-paths": "^1.7.18",
27
+ "react": ">=16.8.0",
28
+ "react-dom": ">=16.8.0",
29
+ "rimraf": "^3.0.2",
30
+ "rollup": "^2.61.1",
31
+ "rollup-plugin-peer-deps-external": "^2.2.4",
32
+ "rollup-plugin-typescript2": "^0.31.1",
33
+ "tsconfig-paths-webpack-plugin": "^3.5.2",
34
+ "tslib": "^2.3.1",
35
+ "ttypescript": "^1.5.13",
36
+ "typescript": "~4.2.4"
37
+ },
38
+ "dependencies": {
39
+ "lodash": "^4.17.21"
40
+ }
41
+ }
@@ -0,0 +1,10 @@
1
+ import { Ref } from 'react';
2
+ import { Area, AreaConfigInterface } from '@unovis/ts';
3
+ export declare type VisAreaRef<Datum> = {
4
+ component: Area<Datum>;
5
+ };
6
+ export declare type VisAreaProps<Datum> = AreaConfigInterface<Datum> & {
7
+ data?: Datum[];
8
+ ref?: Ref<VisAreaRef<Datum>>;
9
+ };
10
+ export declare const VisArea: (<Datum>(props: VisAreaProps<Datum>) => JSX.Element | null);
@@ -0,0 +1,10 @@
1
+ import { Ref } from 'react';
2
+ import { Axis, AxisConfigInterface } from '@unovis/ts';
3
+ export declare type VisAxisRef<Datum> = {
4
+ component: Axis<Datum>;
5
+ };
6
+ export declare type VisAxisProps<Datum> = AxisConfigInterface<Datum> & {
7
+ data?: Datum[];
8
+ ref?: Ref<VisAxisRef<Datum>>;
9
+ };
10
+ export declare const VisAxis: (<Datum>(props: VisAxisProps<Datum>) => JSX.Element | null);
@@ -0,0 +1,10 @@
1
+ import { Ref } from 'react';
2
+ import { Brush, BrushConfigInterface } from '@unovis/ts';
3
+ export declare type VisBrushRef<Datum> = {
4
+ component: Brush<Datum>;
5
+ };
6
+ export declare type VisBrushProps<Datum> = BrushConfigInterface<Datum> & {
7
+ data?: Datum[];
8
+ ref?: Ref<VisBrushRef<Datum>>;
9
+ };
10
+ export declare const VisBrush: (<Datum>(props: VisBrushProps<Datum>) => JSX.Element | null);
@@ -0,0 +1,13 @@
1
+ import { Ref } from 'react';
2
+ import { ChordDiagram, ChordDiagramConfigInterface, ChordInputNode, ChordInputLink } from '@unovis/ts';
3
+ export declare type VisChordDiagramRef<N extends ChordInputNode, L extends ChordInputLink> = {
4
+ component: ChordDiagram<N, L>;
5
+ };
6
+ export declare type VisChordDiagramProps<N extends ChordInputNode, L extends ChordInputLink> = ChordDiagramConfigInterface<N, L> & {
7
+ data?: {
8
+ nodes: N[];
9
+ links?: L[];
10
+ };
11
+ ref?: Ref<VisChordDiagramRef<N, L>>;
12
+ };
13
+ export declare const VisChordDiagram: (<N extends ChordInputNode, L extends ChordInputLink>(props: VisChordDiagramProps<N, L>) => JSX.Element | null);
@@ -0,0 +1,10 @@
1
+ import { Ref } from 'react';
2
+ import { Crosshair, CrosshairConfigInterface } from '@unovis/ts';
3
+ export declare type VisCrosshairRef<Datum> = {
4
+ component: Crosshair<Datum>;
5
+ };
6
+ export declare type VisCrosshairProps<Datum> = CrosshairConfigInterface<Datum> & {
7
+ data?: Datum[];
8
+ ref?: Ref<VisCrosshairRef<Datum>>;
9
+ };
10
+ export declare const VisCrosshair: (<Datum>(props: VisCrosshairProps<Datum>) => JSX.Element | null);
@@ -0,0 +1,10 @@
1
+ import { Ref } from 'react';
2
+ import { Donut, DonutConfigInterface } from '@unovis/ts';
3
+ export declare type VisDonutRef<Datum> = {
4
+ component: Donut<Datum>;
5
+ };
6
+ export declare type VisDonutProps<Datum> = DonutConfigInterface<Datum> & {
7
+ data?: Datum[];
8
+ ref?: Ref<VisDonutRef<Datum>>;
9
+ };
10
+ export declare const VisDonut: (<Datum>(props: VisDonutProps<Datum>) => JSX.Element | null);
@@ -0,0 +1,10 @@
1
+ import { Ref } from 'react';
2
+ import { FreeBrush, FreeBrushConfigInterface } from '@unovis/ts';
3
+ export declare type VisFreeBrushRef<Datum> = {
4
+ component: FreeBrush<Datum>;
5
+ };
6
+ export declare type VisFreeBrushProps<Datum> = FreeBrushConfigInterface<Datum> & {
7
+ data?: Datum[];
8
+ ref?: Ref<VisFreeBrushRef<Datum>>;
9
+ };
10
+ export declare const VisFreeBrush: (<Datum>(props: VisFreeBrushProps<Datum>) => JSX.Element | null);
@@ -0,0 +1,10 @@
1
+ import { Ref } from 'react';
2
+ import { Graph, GraphConfigInterface, GraphInputNode, GraphInputLink } from '@unovis/ts';
3
+ export declare type VisGraphRef<N extends GraphInputNode, L extends GraphInputLink> = {
4
+ component: Graph<N, L>;
5
+ };
6
+ export declare type VisGraphProps<N extends GraphInputNode, L extends GraphInputLink> = GraphConfigInterface<N, L> & {
7
+ data?: any;
8
+ ref?: Ref<VisGraphRef<N, L>>;
9
+ };
10
+ export declare const VisGraph: (<N extends GraphInputNode, L extends GraphInputLink>(props: VisGraphProps<N, L>) => JSX.Element | null);
@@ -0,0 +1,10 @@
1
+ import { Ref } from 'react';
2
+ import { GroupedBar, GroupedBarConfigInterface } from '@unovis/ts';
3
+ export declare type VisGroupedBarRef<Datum> = {
4
+ component: GroupedBar<Datum>;
5
+ };
6
+ export declare type VisGroupedBarProps<Datum> = GroupedBarConfigInterface<Datum> & {
7
+ data?: Datum[];
8
+ ref?: Ref<VisGroupedBarRef<Datum>>;
9
+ };
10
+ export declare const VisGroupedBar: (<Datum>(props: VisGroupedBarProps<Datum>) => JSX.Element | null);
@@ -0,0 +1,10 @@
1
+ import { Ref } from 'react';
2
+ import { Line, LineConfigInterface } from '@unovis/ts';
3
+ export declare type VisLineRef<Datum> = {
4
+ component: Line<Datum>;
5
+ };
6
+ export declare type VisLineProps<Datum> = LineConfigInterface<Datum> & {
7
+ data?: Datum[];
8
+ ref?: Ref<VisLineRef<Datum>>;
9
+ };
10
+ export declare const VisLine: (<Datum>(props: VisLineProps<Datum>) => JSX.Element | null);
@@ -0,0 +1,10 @@
1
+ import { Ref } from 'react';
2
+ import { Sankey, SankeyConfigInterface, SankeyInputNode, SankeyInputLink } from '@unovis/ts';
3
+ export declare type VisSankeyRef<N extends SankeyInputNode, L extends SankeyInputLink> = {
4
+ component: Sankey<N, L>;
5
+ };
6
+ export declare type VisSankeyProps<N extends SankeyInputNode, L extends SankeyInputLink> = SankeyConfigInterface<N, L> & {
7
+ data?: any;
8
+ ref?: Ref<VisSankeyRef<N, L>>;
9
+ };
10
+ export declare const VisSankey: (<N extends SankeyInputNode, L extends SankeyInputLink>(props: VisSankeyProps<N, L>) => JSX.Element | null);
@@ -0,0 +1,10 @@
1
+ import { Ref } from 'react';
2
+ import { Scatter, ScatterConfigInterface } from '@unovis/ts';
3
+ export declare type VisScatterRef<Datum> = {
4
+ component: Scatter<Datum>;
5
+ };
6
+ export declare type VisScatterProps<Datum> = ScatterConfigInterface<Datum> & {
7
+ data?: Datum[];
8
+ ref?: Ref<VisScatterRef<Datum>>;
9
+ };
10
+ export declare const VisScatter: (<Datum>(props: VisScatterProps<Datum>) => JSX.Element | null);
@@ -0,0 +1,10 @@
1
+ import { Ref } from 'react';
2
+ import { StackedBar, StackedBarConfigInterface } from '@unovis/ts';
3
+ export declare type VisStackedBarRef<Datum> = {
4
+ component: StackedBar<Datum>;
5
+ };
6
+ export declare type VisStackedBarProps<Datum> = StackedBarConfigInterface<Datum> & {
7
+ data?: Datum[];
8
+ ref?: Ref<VisStackedBarRef<Datum>>;
9
+ };
10
+ export declare const VisStackedBar: (<Datum>(props: VisStackedBarProps<Datum>) => JSX.Element | null);
@@ -0,0 +1,10 @@
1
+ import { Ref } from 'react';
2
+ import { Timeline, TimelineConfigInterface } from '@unovis/ts';
3
+ export declare type VisTimelineRef<Datum> = {
4
+ component: Timeline<Datum>;
5
+ };
6
+ export declare type VisTimelineProps<Datum> = TimelineConfigInterface<Datum> & {
7
+ data?: Datum[];
8
+ ref?: Ref<VisTimelineRef<Datum>>;
9
+ };
10
+ export declare const VisTimeline: (<Datum>(props: VisTimelineProps<Datum>) => JSX.Element | null);
@@ -0,0 +1,10 @@
1
+ import { Ref } from 'react';
2
+ import { Tooltip, TooltipConfigInterface } from '@unovis/ts';
3
+ export declare type VisTooltipRef = {
4
+ component: Tooltip;
5
+ };
6
+ export declare type VisTooltipProps = TooltipConfigInterface & {
7
+ data?: null;
8
+ ref?: Ref<VisTooltipRef>;
9
+ };
10
+ export declare const VisTooltip: ((props: VisTooltipProps) => JSX.Element | null);
@@ -0,0 +1,14 @@
1
+ import { Ref } from 'react';
2
+ import { TopoJSONMap, TopoJSONMapConfigInterface } from '@unovis/ts';
3
+ export declare type VisTopoJSONMapRef<AreaDatum, PointDatum, LinkDatum> = {
4
+ component: TopoJSONMap<AreaDatum, PointDatum, LinkDatum>;
5
+ };
6
+ export declare type VisTopoJSONMapProps<AreaDatum, PointDatum, LinkDatum> = TopoJSONMapConfigInterface<AreaDatum, PointDatum, LinkDatum> & {
7
+ data?: {
8
+ areas?: AreaDatum[];
9
+ points?: PointDatum[];
10
+ links?: LinkDatum[];
11
+ };
12
+ ref?: Ref<VisTopoJSONMapRef<AreaDatum, PointDatum, LinkDatum>>;
13
+ };
14
+ export declare const VisTopoJSONMap: (<AreaDatum, PointDatum, LinkDatum>(props: VisTopoJSONMapProps<AreaDatum, PointDatum, LinkDatum>) => JSX.Element | null);
@@ -0,0 +1,10 @@
1
+ import { Ref } from 'react';
2
+ import { XYLabels, XYLabelsConfigInterface } from '@unovis/ts';
3
+ export declare type VisXYLabelsRef<Datum> = {
4
+ component: XYLabels<Datum>;
5
+ };
6
+ export declare type VisXYLabelsProps<Datum> = XYLabelsConfigInterface<Datum> & {
7
+ data?: Datum[];
8
+ ref?: Ref<VisXYLabelsRef<Datum>>;
9
+ };
10
+ export declare const VisXYLabels: (<Datum>(props: VisXYLabelsProps<Datum>) => JSX.Element | null);
@@ -0,0 +1,19 @@
1
+ export * from './components/line';
2
+ export * from './components/area';
3
+ export * from './components/axis';
4
+ export * from './components/brush/';
5
+ export * from './components/free-brush';
6
+ export * from './components/crosshair/';
7
+ export * from './components/donut/';
8
+ export * from './components/graph';
9
+ export * from './components/grouped-bar/';
10
+ export * from './components/scatter/';
11
+ export * from './components/sankey';
12
+ export * from './components/stacked-bar/';
13
+ export * from './components/tooltip/';
14
+ export * from './components/timeline/';
15
+ export * from './components/topojson-map/';
16
+ export * from './components/xy-labels';
17
+ export * from './html-components/bullet-legend';
18
+ export * from './html-components/leaflet-map';
19
+ export * from './html-components/leaflet-flow-map';
@@ -0,0 +1,54 @@
1
+ import { Spacing } from '@unovis/ts';
2
+ export declare type VisTimeSeriesDatum = {
3
+ timestamp: number;
4
+ value: number;
5
+ id?: string;
6
+ color?: string;
7
+ };
8
+ export declare type VisTimeSeriesProps<Datum> = {
9
+ data: Datum[];
10
+ margin: Spacing;
11
+ autoMargin: boolean;
12
+ x: (d: Datum, i: number) => number;
13
+ y: (d: Datum, i: number) => number;
14
+ id: (d: Datum, i: number) => string;
15
+ color: (d: Datum, i: number) => string;
16
+ cursor: string | ((d: Datum, i: number) => string);
17
+ formatXTicks?: (timestamp: number) => string;
18
+ formatYTicks?: (timestamp: number) => string;
19
+ selectionMinLength: number;
20
+ onBrushStart?: (selection: [number, number], e?: {
21
+ sourceEvent: MouseEvent;
22
+ }, userDriven?: boolean) => void;
23
+ onBrushMove?: (selection: [number, number], e?: {
24
+ sourceEvent: MouseEvent;
25
+ }, userDriven?: boolean) => void;
26
+ onBrushEnd?: (selection: [number, number], e?: {
27
+ sourceEvent: MouseEvent;
28
+ }, userDriven?: boolean) => void;
29
+ formatNavXTicks?: (timestamp: number) => string;
30
+ xLabel?: string;
31
+ yLabel?: string;
32
+ crosshairTemplate?: (d: Datum) => string | HTMLElement;
33
+ className?: string;
34
+ height?: string;
35
+ };
36
+ export declare function VisTimeSeries<Datum>(props: VisTimeSeriesProps<Datum>): JSX.Element;
37
+ export declare namespace VisTimeSeries {
38
+ var defaultProps: {
39
+ margin: {
40
+ top: number;
41
+ bottom: number;
42
+ left: number;
43
+ right: number;
44
+ };
45
+ autoMargin: boolean;
46
+ padding: {};
47
+ x: (d: VisTimeSeriesDatum) => number;
48
+ y: (d: VisTimeSeriesDatum) => number;
49
+ id: (d: VisTimeSeriesDatum) => string | undefined;
50
+ color: (d: VisTimeSeriesDatum) => string | undefined;
51
+ formatYTicks: (d: number) => string;
52
+ crosshairTemplate: (d: VisTimeSeriesDatum) => string;
53
+ };
54
+ }
@@ -0,0 +1,3 @@
1
+ export declare const timeSeriesContainer: string;
2
+ export declare const timeSeriesModule: string;
3
+ export declare const navigationModule: string;
@@ -0,0 +1 @@
1
+ export * from './composites/time-series';
@@ -0,0 +1,6 @@
1
+ import { PropsWithChildren } from 'react';
2
+ import { SingleContainerConfigInterface } from '@unovis/ts';
3
+ export declare type VisSingleContainerProps<Data> = SingleContainerConfigInterface<Data> & {
4
+ data?: Data;
5
+ };
6
+ export declare const VisSingleContainer: (<Data>(props: PropsWithChildren<VisSingleContainerProps<Data>>) => JSX.Element | null);
@@ -0,0 +1,8 @@
1
+ import { PropsWithChildren } from 'react';
2
+ import { XYContainerConfigInterface } from '@unovis/ts';
3
+ export declare type VisXYContainerProps<Datum> = XYContainerConfigInterface<Datum> & {
4
+ data?: Datum[];
5
+ className?: string;
6
+ };
7
+ export declare function VisXYContainerFC<Datum>(props: PropsWithChildren<VisXYContainerProps<Datum>>): JSX.Element;
8
+ export declare const VisXYContainer: (<Datum>(props: PropsWithChildren<VisXYContainerProps<Datum>>) => JSX.Element | null);
@@ -0,0 +1,2 @@
1
+ export * from './containers/xy-container';
2
+ export * from './containers/single-container';
@@ -0,0 +1,3 @@
1
+ import { BulletLegendConfigInterface } from '@unovis/ts';
2
+ export declare type VisBulletLegendProps = BulletLegendConfigInterface;
3
+ export declare function VisBulletLegend(props: VisBulletLegendProps): JSX.Element;
@@ -0,0 +1,15 @@
1
+ import { ForwardedRef, Ref } from 'react';
2
+ import { LeafletFlowMap, LeafletFlowMapConfigInterface } from '@unovis/ts';
3
+ export declare type VisLeafletFlowMapProps<PointDatum, FlowDatum> = LeafletFlowMapConfigInterface<PointDatum, FlowDatum> & {
4
+ data?: {
5
+ points: PointDatum[];
6
+ flows: FlowDatum[];
7
+ };
8
+ ref?: Ref<VisLeafletFlowMapRef<PointDatum, FlowDatum>>;
9
+ className?: string;
10
+ };
11
+ export declare type VisLeafletFlowMapRef<PointDatum, FlowDatum> = {
12
+ component: LeafletFlowMap<PointDatum, FlowDatum> | undefined;
13
+ };
14
+ export declare function VisLeafletFlowMapFC<PointDatum, FlowDatum>(props: VisLeafletFlowMapProps<PointDatum, FlowDatum>, ref: ForwardedRef<VisLeafletFlowMapRef<PointDatum, FlowDatum>>): JSX.Element;
15
+ export declare const VisLeafletFlowMap: (<PointDatum, FlowDatum>(props: VisLeafletFlowMapProps<PointDatum, FlowDatum>) => JSX.Element | null);
@@ -0,0 +1,12 @@
1
+ import { ForwardedRef, Ref } from 'react';
2
+ import { LeafletMap, LeafletMapConfigInterface } from '@unovis/ts';
3
+ export declare type VisLeafletMapProps<Datum> = LeafletMapConfigInterface<Datum> & {
4
+ data?: Datum[];
5
+ ref?: Ref<VisLeafletMapRef<Datum>>;
6
+ className?: string;
7
+ };
8
+ export declare type VisLeafletMapRef<Datum> = {
9
+ component: LeafletMap<Datum> | undefined;
10
+ };
11
+ export declare function VisLeafletMapFC<Datum>(props: VisLeafletMapProps<Datum>, ref: ForwardedRef<VisLeafletMapRef<Datum>>): JSX.Element;
12
+ export declare const VisLeafletMap: (<Datum>(props: VisLeafletMapProps<Datum>) => JSX.Element | null);
package/src/index.d.ts ADDED
@@ -0,0 +1,3 @@
1
+ export * from './containers';
2
+ export * from './components';
3
+ export * from './composites';
@@ -0,0 +1,3 @@
1
+ export declare type VisComponentElement<T> = HTMLElement & {
2
+ __component__: T;
3
+ };
@@ -0,0 +1,4 @@
1
+ import { ReactNode } from 'react';
2
+ export declare function arePropsEqual<PropTypes extends {
3
+ children?: ReactNode;
4
+ }>(prevProps: PropTypes, nextProps: PropTypes): boolean;
package/types/dom.d.ts ADDED
@@ -0,0 +1,3 @@
1
+ export declare type VisComponentElement<T> = HTMLElement & {
2
+ __component__: T;
3
+ };
@@ -0,0 +1,4 @@
1
+ import { ReactNode } from 'react';
2
+ export declare function arePropsEqual<PropTypes extends {
3
+ children?: ReactNode;
4
+ }>(prevProps: PropTypes, nextProps: PropTypes): boolean;
package/utils/react.js ADDED
@@ -0,0 +1,27 @@
1
+ import _isEqual from 'lodash/isEqual';
2
+
3
+ function arePropsEqual(prevProps, nextProps) {
4
+ if (typeof prevProps.children !== typeof nextProps.children)
5
+ return false;
6
+ if (Array.isArray(prevProps.children) && Array.isArray(nextProps.children)) {
7
+ const prevChildren = prevProps.children;
8
+ const nextChildren = nextProps.children;
9
+ if (prevChildren.length !== nextChildren.length)
10
+ return false;
11
+ for (let i = 0; i < nextChildren.length; i += 1) {
12
+ if (!_isEqual(prevChildren[i].props, nextChildren[i].props))
13
+ return false;
14
+ }
15
+ }
16
+ const propKeys = Array.from(new Set([...Object.keys(prevProps), ...Object.keys(nextProps)]));
17
+ for (const key of propKeys) {
18
+ if (key === 'children')
19
+ continue;
20
+ if (!(_isEqual(prevProps[key], nextProps[key])))
21
+ return false;
22
+ }
23
+ return true;
24
+ }
25
+
26
+ export { arePropsEqual };
27
+ //# sourceMappingURL=react.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"react.js","sources":["../../src/utils/react.ts"],"sourcesContent":["import { ReactElement, ReactNode, ReactChild, ReactFragment } from 'react'\n// eslint-disable-next-line @typescript-eslint/ban-ts-comment\n// @ts-ignore\nimport _isEqual from 'lodash/isEqual'\n\nexport function arePropsEqual<PropTypes extends { children?: ReactNode }> (prevProps: PropTypes, nextProps: PropTypes): boolean {\n if (typeof prevProps.children !== typeof nextProps.children) return false\n\n if (Array.isArray(prevProps.children) && Array.isArray(nextProps.children)) {\n const prevChildren = prevProps.children as ReactElement[]\n const nextChildren = nextProps.children as ReactElement[]\n if (prevChildren.length !== nextChildren.length) return false\n\n for (let i = 0; i < nextChildren.length; i += 1) {\n if (!_isEqual(prevChildren[i].props, nextChildren[i].props)) return false\n }\n }\n\n const propKeys = Array.from(new Set([...Object.keys(prevProps), ...Object.keys(nextProps)])) as (keyof PropTypes)[]\n for (const key of propKeys) {\n if (key === 'children') continue\n if (!(_isEqual(prevProps[key], nextProps[key]))) return false\n }\n\n return true\n}\n"],"names":[],"mappings":";;AAKgB,SAAA,aAAa,CAA8C,SAAoB,EAAE,SAAoB,EAAA;IACnH,IAAI,OAAO,SAAS,CAAC,QAAQ,KAAK,OAAO,SAAS,CAAC,QAAQ;AAAE,QAAA,OAAO,KAAK,CAAA;AAEzE,IAAA,IAAI,KAAK,CAAC,OAAO,CAAC,SAAS,CAAC,QAAQ,CAAC,IAAI,KAAK,CAAC,OAAO,CAAC,SAAS,CAAC,QAAQ,CAAC,EAAE;AAC1E,QAAA,MAAM,YAAY,GAAG,SAAS,CAAC,QAA0B,CAAA;AACzD,QAAA,MAAM,YAAY,GAAG,SAAS,CAAC,QAA0B,CAAA;AACzD,QAAA,IAAI,YAAY,CAAC,MAAM,KAAK,YAAY,CAAC,MAAM;AAAE,YAAA,OAAO,KAAK,CAAA;AAE7D,QAAA,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,YAAY,CAAC,MAAM,EAAE,CAAC,IAAI,CAAC,EAAE;AAC/C,YAAA,IAAI,CAAC,QAAQ,CAAC,YAAY,CAAC,CAAC,CAAC,CAAC,KAAK,EAAE,YAAY,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC;AAAE,gBAAA,OAAO,KAAK,CAAA;AAC1E,SAAA;AACF,KAAA;AAED,IAAA,MAAM,QAAQ,GAAG,KAAK,CAAC,IAAI,CAAC,IAAI,GAAG,CAAC,CAAC,GAAG,MAAM,CAAC,IAAI,CAAC,SAAS,CAAC,EAAE,GAAG,MAAM,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC,CAAC,CAAwB,CAAA;AACnH,IAAA,KAAK,MAAM,GAAG,IAAI,QAAQ,EAAE;QAC1B,IAAI,GAAG,KAAK,UAAU;YAAE,SAAQ;AAChC,QAAA,IAAI,EAAE,QAAQ,CAAC,SAAS,CAAC,GAAG,CAAC,EAAE,SAAS,CAAC,GAAG,CAAC,CAAC,CAAC;AAAE,YAAA,OAAO,KAAK,CAAA;AAC9D,KAAA;AAED,IAAA,OAAO,IAAI,CAAA;AACb;;;;"}