@solidxai/core-ui 0.1.22-beta.2 → 0.1.22-beta.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/dist/components/core/kanban/SolidKanbanView.d.ts.map +1 -1
- package/dist/components/core/kanban/SolidKanbanView.js +27 -24
- package/dist/components/core/kanban/SolidKanbanView.js.map +1 -1
- package/dist/components/core/kanban/SolidKanbanView.tsx +14 -7
- package/dist/components/core/module/ModulePackageDialog.d.ts.map +1 -1
- package/dist/components/core/module/ModulePackageDialog.js +28 -22
- package/dist/components/core/module/ModulePackageDialog.js.map +1 -1
- package/dist/components/core/module/ModulePackageDialog.tsx +24 -2
- package/dist/resources/globals.css +10 -1
- package/dist/routes/pages/admin/core/AgentRegistryEditorPage.css +5 -0
- package/dist/routes/pages/admin/core/AgentRegistryEditorPage.d.ts.map +1 -1
- package/dist/routes/pages/admin/core/AgentRegistryEditorPage.js +67 -57
- package/dist/routes/pages/admin/core/AgentRegistryEditorPage.js.map +1 -1
- package/dist/routes/pages/admin/core/AgentRegistryEditorPage.tsx +14 -5
- package/dist/routes/pages/admin/core/AgentSkillRegistryEditorPage.css +29 -0
- package/dist/routes/pages/admin/core/AgentSkillRegistryEditorPage.d.ts.map +1 -1
- package/dist/routes/pages/admin/core/AgentSkillRegistryEditorPage.js +10 -8
- package/dist/routes/pages/admin/core/AgentSkillRegistryEditorPage.js.map +1 -1
- package/dist/routes/pages/admin/core/AgentSkillRegistryEditorPage.tsx +10 -5
- package/dist/routes/pages/admin/core/AgentToolRegistryEditorPage.d.ts.map +1 -1
- package/dist/routes/pages/admin/core/AgentToolRegistryEditorPage.js +38 -25
- package/dist/routes/pages/admin/core/AgentToolRegistryEditorPage.js.map +1 -1
- package/dist/routes/pages/admin/core/AgentToolRegistryEditorPage.tsx +8 -3
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SolidKanbanView.d.ts","sourceRoot":"","sources":["../../../../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,11 @@ export var SolidKanbanView = forwardRef(function (params, ref) {
|
|
|
375
375
|
// Get the kanban view data.
|
|
376
376
|
// const [triggerGetSolidEntitiesForKanban, { data: solidEntityKanbanViewData, isLoading, error }] = useLazyGetSolidKanbanEntitiesQuery();
|
|
377
377
|
var triggerGetSolidEntities = useLazyGetSolidEntitiesQuery()[0];
|
|
378
|
-
var _40 =
|
|
378
|
+
var _40 = useLazyGetSolidEntitiesQuery(), triggerLoadKanbanBoard = _40[0], _41 = _40[1], solidEntityKanbanViewData = _41.data, isKanbanFetching = _41.isFetching;
|
|
379
|
+
var _42 = useRecoverSolidEntityByIdMutation(), triggerRecoverSolidEntityById = _42[0], isRecoveringRecord = _42[1].isLoading;
|
|
379
380
|
// Delete mutation
|
|
380
|
-
var
|
|
381
|
-
var
|
|
381
|
+
var _43 = useDeleteMultipleSolidEntitiesMutation(), deleteManySolidEntities = _43[0], _44 = _43[1], isDeleteSolidEntitiesLoading = _44.isLoading, isDeleteSolidEntitiesSucess = _44.isSuccess;
|
|
382
|
+
var _45 = usePatchUpdateSolidEntityWithoutListInvalidationMutation(), patchKanbanView = _45[0], isPatchKanbanViewLoading = _45[1].isLoading;
|
|
382
383
|
var applyArchivedQueryState = function (queryData) {
|
|
383
384
|
if (showArchived) {
|
|
384
385
|
queryData.showSoftDeleted = "inclusive";
|
|
@@ -601,17 +602,17 @@ export var SolidKanbanView = forwardRef(function (params, ref) {
|
|
|
601
602
|
var loadKanbanBoard = function (nextFilters) {
|
|
602
603
|
if (nextFilters === void 0) { nextFilters = filters; }
|
|
603
604
|
return __awaiter(void 0, void 0, void 0, function () {
|
|
604
|
-
var swimlanesCount, resolvedSwimlanesCount, queryData,
|
|
605
|
-
var _a, _b, _c, _d, _e
|
|
606
|
-
return __generator(this, function (
|
|
607
|
-
switch (
|
|
605
|
+
var swimlanesCount, resolvedSwimlanesCount, queryData, error_2;
|
|
606
|
+
var _a, _b, _c, _d, _e;
|
|
607
|
+
return __generator(this, function (_f) {
|
|
608
|
+
switch (_f.label) {
|
|
608
609
|
case 0:
|
|
609
610
|
if (!solidKanbanViewMetaData || !groupByFieldName || !queryDataLoaded)
|
|
610
611
|
return [2 /*return*/];
|
|
611
612
|
setLoading(true);
|
|
612
|
-
|
|
613
|
+
_f.label = 1;
|
|
613
614
|
case 1:
|
|
614
|
-
|
|
615
|
+
_f.trys.push([1, 3, 4, 5]);
|
|
615
616
|
swimlanesCount = ((_d = (_c = (_b = (_a = solidKanbanViewMetaData === null || solidKanbanViewMetaData === void 0 ? void 0 : solidKanbanViewMetaData.data) === null || _a === void 0 ? void 0 : _a.solidView) === null || _b === void 0 ? void 0 : _b.layout) === null || _c === void 0 ? void 0 : _c.attrs) === null || _d === void 0 ? void 0 : _d.swimlanesCount) || 5;
|
|
616
617
|
resolvedSwimlanesCount = swimlaneDefinitions.length > 0 ? swimlaneDefinitions.length : swimlanesCount;
|
|
617
618
|
queryData = applyArchivedQueryState({
|
|
@@ -630,21 +631,18 @@ export var SolidKanbanView = forwardRef(function (params, ref) {
|
|
|
630
631
|
populateMedia: toPopulateMedia,
|
|
631
632
|
},
|
|
632
633
|
});
|
|
633
|
-
return [4 /*yield*/,
|
|
634
|
+
return [4 /*yield*/, triggerLoadKanbanBoard(qs.stringify(queryData, {
|
|
634
635
|
encodeValuesOnly: true
|
|
635
636
|
})).unwrap()];
|
|
636
637
|
case 2:
|
|
637
|
-
|
|
638
|
-
setServerSwimLaneCount(((_e = response === null || response === void 0 ? void 0 : response.meta) === null || _e === void 0 ? void 0 : _e.totalRecords) || 0);
|
|
639
|
-
setRawKanbanGroupRecords((response === null || response === void 0 ? void 0 : response.groupRecords) || []);
|
|
640
|
-
setSelectedRecords([]);
|
|
638
|
+
_f.sent();
|
|
641
639
|
return [3 /*break*/, 5];
|
|
642
640
|
case 3:
|
|
643
|
-
error_2 =
|
|
641
|
+
error_2 = _f.sent();
|
|
644
642
|
dispatch(showToast({
|
|
645
643
|
severity: "error",
|
|
646
644
|
summary: "Failed to load board",
|
|
647
|
-
detail: ((
|
|
645
|
+
detail: ((_e = error_2 === null || error_2 === void 0 ? void 0 : error_2.data) === null || _e === void 0 ? void 0 : _e.message) || (error_2 === null || error_2 === void 0 ? void 0 : error_2.message) || "Unable to load kanban data.",
|
|
648
646
|
life: 4000,
|
|
649
647
|
}));
|
|
650
648
|
setServerSwimLaneCount(0);
|
|
@@ -658,6 +656,14 @@ export var SolidKanbanView = forwardRef(function (params, ref) {
|
|
|
658
656
|
});
|
|
659
657
|
});
|
|
660
658
|
};
|
|
659
|
+
useEffect(function () {
|
|
660
|
+
var _a;
|
|
661
|
+
if (!solidEntityKanbanViewData)
|
|
662
|
+
return;
|
|
663
|
+
setServerSwimLaneCount(((_a = solidEntityKanbanViewData === null || solidEntityKanbanViewData === void 0 ? void 0 : solidEntityKanbanViewData.meta) === null || _a === void 0 ? void 0 : _a.totalRecords) || 0);
|
|
664
|
+
setRawKanbanGroupRecords((solidEntityKanbanViewData === null || solidEntityKanbanViewData === void 0 ? void 0 : solidEntityKanbanViewData.groupRecords) || []);
|
|
665
|
+
setSelectedRecords([]);
|
|
666
|
+
}, [solidEntityKanbanViewData]);
|
|
661
667
|
useEffect(function () {
|
|
662
668
|
if (!queryDataLoaded || !solidKanbanViewMetaData || !groupByFieldName)
|
|
663
669
|
return;
|
|
@@ -760,7 +766,7 @@ export var SolidKanbanView = forwardRef(function (params, ref) {
|
|
|
760
766
|
return [2 /*return*/];
|
|
761
767
|
_c.label = 1;
|
|
762
768
|
case 1:
|
|
763
|
-
_c.trys.push([1,
|
|
769
|
+
_c.trys.push([1, 3, , 4]);
|
|
764
770
|
return [4 /*yield*/, triggerRecoverSolidEntityById(record.id).unwrap()];
|
|
765
771
|
case 2:
|
|
766
772
|
response = _c.sent();
|
|
@@ -770,11 +776,8 @@ export var SolidKanbanView = forwardRef(function (params, ref) {
|
|
|
770
776
|
detail: ((_a = response === null || response === void 0 ? void 0 : response.data) === null || _a === void 0 ? void 0 : _a.message) || "Record recovered successfully.",
|
|
771
777
|
life: 3000,
|
|
772
778
|
}));
|
|
773
|
-
return [
|
|
779
|
+
return [3 /*break*/, 4];
|
|
774
780
|
case 3:
|
|
775
|
-
_c.sent();
|
|
776
|
-
return [3 /*break*/, 5];
|
|
777
|
-
case 4:
|
|
778
781
|
error_4 = _c.sent();
|
|
779
782
|
dispatch(showToast({
|
|
780
783
|
severity: "error",
|
|
@@ -782,8 +785,8 @@ export var SolidKanbanView = forwardRef(function (params, ref) {
|
|
|
782
785
|
detail: ((_b = error_4 === null || error_4 === void 0 ? void 0 : error_4.data) === null || _b === void 0 ? void 0 : _b.message) || (error_4 === null || error_4 === void 0 ? void 0 : error_4.message) || "Unable to recover the selected record.",
|
|
783
786
|
life: 4000,
|
|
784
787
|
}));
|
|
785
|
-
return [3 /*break*/,
|
|
786
|
-
case
|
|
788
|
+
return [3 /*break*/, 4];
|
|
789
|
+
case 4: return [2 /*return*/];
|
|
787
790
|
}
|
|
788
791
|
});
|
|
789
792
|
}); };
|
|
@@ -1134,7 +1137,7 @@ export var SolidKanbanView = forwardRef(function (params, ref) {
|
|
|
1134
1137
|
}, [solidKanbanViewMetaData]);
|
|
1135
1138
|
var kanbanViewTitle = (_q = (_p = solidKanbanViewMetaData === null || solidKanbanViewMetaData === void 0 ? void 0 : solidKanbanViewMetaData.data) === null || _p === void 0 ? void 0 : _p.solidView) === null || _q === void 0 ? void 0 : _q.displayName;
|
|
1136
1139
|
var entityDisplayName = ((_t = (_s = (_r = solidKanbanViewMetaData === null || solidKanbanViewMetaData === void 0 ? void 0 : solidKanbanViewMetaData.data) === null || _r === void 0 ? void 0 : _r.solidView) === null || _s === void 0 ? void 0 : _s.model) === null || _t === void 0 ? void 0 : _t.displayName) || params.modelName;
|
|
1137
|
-
var headerRequestStatusLabel = isDeleteSolidEntitiesLoading ? "Deleting..." : isPatchKanbanViewLoading ? "Updating..." : isRecoveringRecord ? "Recovering..." : loading || !queryDataLoaded ? "Loading..." : null;
|
|
1140
|
+
var headerRequestStatusLabel = isDeleteSolidEntitiesLoading ? "Deleting..." : isPatchKanbanViewLoading ? "Updating..." : isRecoveringRecord ? "Recovering..." : loading || isKanbanFetching || !queryDataLoaded ? "Loading..." : null;
|
|
1138
1141
|
var handleRefreshView = function () {
|
|
1139
1142
|
var _a, _b;
|
|
1140
1143
|
if (hasAnyActiveFilters) {
|