elseware-ui 2.20.1 → 2.20.3
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/build/index.es.js
CHANGED
|
@@ -21023,8 +21023,20 @@ new Transform$1(1, 0, 0);
|
|
|
21023
21023
|
Transform$1.prototype;
|
|
21024
21024
|
|
|
21025
21025
|
var createForceLayout = function (nodes, edges, width, height) {
|
|
21026
|
-
//
|
|
21027
|
-
var
|
|
21026
|
+
// Build fast lookup map
|
|
21027
|
+
var nodeMap = new Map(nodes.map(function (n) { return [n.id, n]; }));
|
|
21028
|
+
// Filter + convert edges safely
|
|
21029
|
+
var d3Links = edges
|
|
21030
|
+
.filter(function (e) {
|
|
21031
|
+
var fromId = typeof e.from === "string" ? e.from : e.from.id;
|
|
21032
|
+
var toId = typeof e.to === "string" ? e.to : e.to.id;
|
|
21033
|
+
var valid = nodeMap.has(fromId) && nodeMap.has(toId);
|
|
21034
|
+
if (!valid) {
|
|
21035
|
+
console.warn("Invalid edge skipped:", e);
|
|
21036
|
+
}
|
|
21037
|
+
return valid;
|
|
21038
|
+
})
|
|
21039
|
+
.map(function (e) { return ({
|
|
21028
21040
|
source: typeof e.from === "string" ? e.from : e.from.id,
|
|
21029
21041
|
target: typeof e.to === "string" ? e.to : e.to.id,
|
|
21030
21042
|
weight: e.weight,
|
|
@@ -21034,7 +21046,7 @@ var createForceLayout = function (nodes, edges, width, height) {
|
|
|
21034
21046
|
.id(function (d) { return d.id; })
|
|
21035
21047
|
.distance(120)
|
|
21036
21048
|
.strength(0.7))
|
|
21037
|
-
.force("charge", manyBody().strength(-
|
|
21049
|
+
.force("charge", manyBody().strength(-280))
|
|
21038
21050
|
.force("center", center(width / 2, height / 2))
|
|
21039
21051
|
.force("collision", collide().radius(35));
|
|
21040
21052
|
};
|
|
@@ -142183,4 +142195,4 @@ function EUIDevLayout(_a) {
|
|
|
142183
142195
|
} }, { children: jsx(GenericLayout, { children: jsxs(Layout, { children: [header, jsx(Content$2, __assign$1({ styles: "pt-[60px]" }, { children: jsx(ContentArea, __assign$1({ enablePadding: true }, { children: children })) })), footer] }) }) })));
|
|
142184
142196
|
}
|
|
142185
142197
|
|
|
142186
|
-
export { Accordion, AsyncComponentWrapper, Avatar, Backdrop, Badge, BarChart, BoxNav, BoxNavItem, Brand, Breadcrumb, BreadcrumbItem, Button$2 as Button, Card, CardContent, CardFooter, CardHeader, Chapter, Checkbox, Chip, CloudinaryImage, CloudinaryProvider, CloudinaryVideo, Content$2 as Content, ContentArea, DateSelector, DefaultLayout, Drawer, DrawerToggler, EUIDevLayout, EUIProvider, Flag, Flex, FlexCol, FlexRow, Footer, FooterNav, FooterNavGroup, FooterNavItem, FooterNavItemContext, FooterNavItemTitle, Form, FormResponse, GenericLayout, GlowWrapper, Graph, Grid, Header, HeaderNav, HeaderNavGroup, HeaderNavItem, HeaderNavItemContext, HeaderNavItemTitle, HomeLayout, Image$1 as Image, ImageInput, Info, Input, InputFile, InputLabel, InputList, InputListGroup, InputResponse, Layout, LineChart, Link, List, ListItem, MarkdownEditor, MarkdownViewer, Menu, MenuGroup, MenuItem, MenuItemTitle, Modal, MultiImageInput, Paragraph, PieChart, PriceTag, ProgressBar, Quote, Radio, RouteTab, RouteTabs, Section, Select$2 as Select, ShapeSwitch, ShowMore, Sidebar, SidebarLayout, SidemenuLayout, Skeleton, Slider, StarRating, StarRatingDistribution, StarRatingInput, Switch, Table, Tag, Tags, TextArea, ThemeContext, ThemeProvider, ThemeSwitch, TitleBanner, Toast, Tooltip$1 as Tooltip, Transition$1 as Transition, TransitionDropdown, TransitionFadeIn, Typography, UnderConstructionBanner, ValueBadge, WorldMap, WorldMapCountryTable, YoutubeVideoPlayer, createForceLayout, createGridLayout, createTreeLayout, getCurrencySymbol, resolveWithGlobal, sendToast, useClickOutside, useCloudinaryConfig, useCurrentTheme, useDrawer, useEUIConfig, useIsMobile, useModal, useTheme };
|
|
142198
|
+
export { Accordion, AsyncComponentWrapper, Avatar, Backdrop, Badge, BarChart, BoxNav, BoxNavItem, Brand, Breadcrumb, BreadcrumbItem, Button$2 as Button, Card, CardContent, CardFooter, CardHeader, Chapter, Checkbox, Chip, CloudinaryImage, CloudinaryProvider, CloudinaryVideo, Content$2 as Content, ContentArea, DateSelector, DefaultLayout, Drawer, DrawerToggler, EUIDevLayout, EUIProvider, Flag, Flex, FlexCol, FlexRow, Footer, FooterNav, FooterNavGroup, FooterNavItem, FooterNavItemContext, FooterNavItemTitle, Form, FormResponse, GenericLayout, GlowWrapper, Graph, GraphEdge, GraphNode, GraphRenderer, Grid, Header, HeaderNav, HeaderNavGroup, HeaderNavItem, HeaderNavItemContext, HeaderNavItemTitle, HomeLayout, Image$1 as Image, ImageInput, Info, Input, InputFile, InputLabel, InputList, InputListGroup, InputResponse, Layout, LineChart, Link, List, ListItem, MarkdownEditor, MarkdownViewer, Menu, MenuGroup, MenuItem, MenuItemTitle, Modal, MultiImageInput, Paragraph, PieChart, PriceTag, ProgressBar, Quote, Radio, RouteTab, RouteTabs, Section, Select$2 as Select, ShapeSwitch, ShowMore, Sidebar, SidebarLayout, SidemenuLayout, Skeleton, Slider, StarRating, StarRatingDistribution, StarRatingInput, Switch, Table, Tag, Tags, TextArea, ThemeContext, ThemeProvider, ThemeSwitch, TitleBanner, Toast, Tooltip$1 as Tooltip, Transition$1 as Transition, TransitionDropdown, TransitionFadeIn, Typography, UnderConstructionBanner, ValueBadge, WorldMap, WorldMapCountryTable, YoutubeVideoPlayer, createForceLayout, createGridLayout, createTreeLayout, getCurrencySymbol, resolveWithGlobal, sendToast, useClickOutside, useCloudinaryConfig, useCurrentTheme, useDrawer, useEUIConfig, useIsMobile, useModal, useTheme };
|
package/build/index.js
CHANGED
|
@@ -21050,8 +21050,20 @@ new Transform$1(1, 0, 0);
|
|
|
21050
21050
|
Transform$1.prototype;
|
|
21051
21051
|
|
|
21052
21052
|
var createForceLayout = function (nodes, edges, width, height) {
|
|
21053
|
-
//
|
|
21054
|
-
var
|
|
21053
|
+
// Build fast lookup map
|
|
21054
|
+
var nodeMap = new Map(nodes.map(function (n) { return [n.id, n]; }));
|
|
21055
|
+
// Filter + convert edges safely
|
|
21056
|
+
var d3Links = edges
|
|
21057
|
+
.filter(function (e) {
|
|
21058
|
+
var fromId = typeof e.from === "string" ? e.from : e.from.id;
|
|
21059
|
+
var toId = typeof e.to === "string" ? e.to : e.to.id;
|
|
21060
|
+
var valid = nodeMap.has(fromId) && nodeMap.has(toId);
|
|
21061
|
+
if (!valid) {
|
|
21062
|
+
console.warn("Invalid edge skipped:", e);
|
|
21063
|
+
}
|
|
21064
|
+
return valid;
|
|
21065
|
+
})
|
|
21066
|
+
.map(function (e) { return ({
|
|
21055
21067
|
source: typeof e.from === "string" ? e.from : e.from.id,
|
|
21056
21068
|
target: typeof e.to === "string" ? e.to : e.to.id,
|
|
21057
21069
|
weight: e.weight,
|
|
@@ -21061,7 +21073,7 @@ var createForceLayout = function (nodes, edges, width, height) {
|
|
|
21061
21073
|
.id(function (d) { return d.id; })
|
|
21062
21074
|
.distance(120)
|
|
21063
21075
|
.strength(0.7))
|
|
21064
|
-
.force("charge", manyBody().strength(-
|
|
21076
|
+
.force("charge", manyBody().strength(-280))
|
|
21065
21077
|
.force("center", center(width / 2, height / 2))
|
|
21066
21078
|
.force("collision", collide().radius(35));
|
|
21067
21079
|
};
|
|
@@ -142255,6 +142267,9 @@ exports.FormResponse = FormResponse;
|
|
|
142255
142267
|
exports.GenericLayout = GenericLayout;
|
|
142256
142268
|
exports.GlowWrapper = GlowWrapper;
|
|
142257
142269
|
exports.Graph = Graph;
|
|
142270
|
+
exports.GraphEdge = GraphEdge;
|
|
142271
|
+
exports.GraphNode = GraphNode;
|
|
142272
|
+
exports.GraphRenderer = GraphRenderer;
|
|
142258
142273
|
exports.Grid = Grid;
|
|
142259
142274
|
exports.Header = Header;
|
|
142260
142275
|
exports.HeaderNav = HeaderNav;
|