mountain-ui 1.0.118 → 1.0.119
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/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "mountain-ui",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "1.0.
|
|
4
|
+
"version": "1.0.119",
|
|
5
5
|
"description": "A comprehensive UI component library for ERP systems with field types, entities, and registry management built with Svelte",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"module": "index.js",
|
|
@@ -42,6 +42,20 @@ function createWidgetGroupRegistry() {
|
|
|
42
42
|
return all;
|
|
43
43
|
},
|
|
44
44
|
|
|
45
|
+
getChild(widgetId) {
|
|
46
|
+
const allWidgetGroups = get(this.getAll())
|
|
47
|
+
|
|
48
|
+
for (const widgetGroup of allWidgetGroups) {
|
|
49
|
+
for (const widget of widgetGroup.children) {
|
|
50
|
+
if (widget.id == widgetId) {
|
|
51
|
+
return widget
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
return null;
|
|
57
|
+
},
|
|
58
|
+
|
|
45
59
|
getWidgetIdFromEntityId(entityId) {
|
|
46
60
|
const allWidgetGroups = get(this.getAll())
|
|
47
61
|
|
|
@@ -58,7 +72,6 @@ function createWidgetGroupRegistry() {
|
|
|
58
72
|
}
|
|
59
73
|
|
|
60
74
|
return widgetIds;
|
|
61
|
-
|
|
62
75
|
},
|
|
63
76
|
};
|
|
64
77
|
}
|