@solidxai/core-ui 0.1.14 → 0.1.15-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.
- package/dist/components/auth/AuthLayout.js +1 -1
- package/dist/components/auth/AuthLayout.js.map +1 -1
- package/dist/components/auth/AuthLayout.tsx +2 -2
- package/dist/components/common/DropzonePlaceholder.d.ts +2 -1
- package/dist/components/common/DropzonePlaceholder.d.ts.map +1 -1
- package/dist/components/common/DropzonePlaceholder.js +10 -7
- package/dist/components/common/DropzonePlaceholder.js.map +1 -1
- package/dist/components/common/DropzonePlaceholder.tsx +14 -9
- package/dist/components/common/SettingsComponent.module.css +4 -1
- package/dist/components/common/SolidFormStepper.d.ts.map +1 -1
- package/dist/components/common/SolidFormStepper.js +7 -6
- package/dist/components/common/SolidFormStepper.js.map +1 -1
- package/dist/components/common/SolidFormStepper.tsx +7 -1
- package/dist/components/common/SolidThemeProvider.d.ts.map +1 -1
- package/dist/components/common/SolidThemeProvider.js +127 -11
- package/dist/components/common/SolidThemeProvider.js.map +1 -1
- package/dist/components/common/SolidThemeProvider.tsx +104 -22
- package/dist/components/core/card/CardGrid.d.ts +1 -1
- package/dist/components/core/card/CardGrid.d.ts.map +1 -1
- package/dist/components/core/card/CardGrid.js +2 -2
- package/dist/components/core/card/CardGrid.js.map +1 -1
- package/dist/components/core/card/CardGrid.tsx +4 -0
- package/dist/components/core/card/CardItem.d.ts +2 -0
- package/dist/components/core/card/CardItem.d.ts.map +1 -1
- package/dist/components/core/card/CardItem.js +5 -4
- package/dist/components/core/card/CardItem.js.map +1 -1
- package/dist/components/core/card/CardItem.tsx +16 -1
- package/dist/components/core/card/SolidCardView.d.ts +28 -1
- package/dist/components/core/card/SolidCardView.d.ts.map +1 -1
- package/dist/components/core/card/SolidCardView.js +99 -44
- package/dist/components/core/card/SolidCardView.js.map +1 -1
- package/dist/components/core/card/SolidCardView.tsx +119 -7
- package/dist/components/core/card/SolidCardViewConfigure.d.ts +1 -1
- package/dist/components/core/card/SolidCardViewConfigure.d.ts.map +1 -1
- package/dist/components/core/card/SolidCardViewConfigure.js +15 -6
- package/dist/components/core/card/SolidCardViewConfigure.js.map +1 -1
- package/dist/components/core/card/SolidCardViewConfigure.tsx +34 -0
- package/dist/components/core/common/PDFViewer.d.ts +9 -5
- package/dist/components/core/common/PDFViewer.d.ts.map +1 -1
- package/dist/components/core/common/PDFViewer.js +10 -102
- package/dist/components/core/common/PDFViewer.js.map +1 -1
- package/dist/components/core/common/PDFViewer.tsx +29 -88
- package/dist/components/core/common/SolidCreateButton.d.ts.map +1 -1
- package/dist/components/core/common/SolidCreateButton.js +2 -2
- package/dist/components/core/common/SolidCreateButton.js.map +1 -1
- package/dist/components/core/common/SolidCreateButton.tsx +22 -2
- package/dist/components/core/common/SolidGlobalSearchElement.d.ts.map +1 -1
- package/dist/components/core/common/SolidGlobalSearchElement.js +216 -198
- package/dist/components/core/common/SolidGlobalSearchElement.js.map +1 -1
- package/dist/components/core/common/SolidGlobalSearchElement.tsx +287 -216
- package/dist/components/core/form/SolidFormActionHeader.d.ts.map +1 -1
- package/dist/components/core/form/SolidFormActionHeader.js +21 -21
- package/dist/components/core/form/SolidFormActionHeader.js.map +1 -1
- package/dist/components/core/form/SolidFormActionHeader.tsx +62 -53
- package/dist/components/core/form/SolidFormView.d.ts.map +1 -1
- package/dist/components/core/form/SolidFormView.js +101 -74
- package/dist/components/core/form/SolidFormView.js.map +1 -1
- package/dist/components/core/form/SolidFormView.tsx +46 -19
- package/dist/components/core/form/fields/SolidMediaMultipleField.d.ts.map +1 -1
- package/dist/components/core/form/fields/SolidMediaMultipleField.js +3 -2
- package/dist/components/core/form/fields/SolidMediaMultipleField.js.map +1 -1
- package/dist/components/core/form/fields/SolidMediaMultipleField.tsx +3 -1
- package/dist/components/core/form/fields/SolidMediaSingleField.d.ts.map +1 -1
- package/dist/components/core/form/fields/SolidMediaSingleField.js +3 -2
- package/dist/components/core/form/fields/SolidMediaSingleField.js.map +1 -1
- package/dist/components/core/form/fields/SolidMediaSingleField.tsx +3 -1
- package/dist/components/core/form/fields/relations/SolidRelationManyToManyField.d.ts +1 -0
- package/dist/components/core/form/fields/relations/SolidRelationManyToManyField.d.ts.map +1 -1
- package/dist/components/core/form/fields/relations/SolidRelationManyToManyField.js +20 -2
- package/dist/components/core/form/fields/relations/SolidRelationManyToManyField.js.map +1 -1
- package/dist/components/core/form/fields/relations/SolidRelationManyToManyField.tsx +29 -2
- package/dist/components/core/form/fields/solidFields.module.css +7 -0
- package/dist/components/core/kanban/KanbanBoard.d.ts +1 -1
- package/dist/components/core/kanban/KanbanBoard.d.ts.map +1 -1
- package/dist/components/core/kanban/KanbanBoard.js +2 -2
- package/dist/components/core/kanban/KanbanBoard.js.map +1 -1
- package/dist/components/core/kanban/KanbanBoard.tsx +3 -1
- package/dist/components/core/kanban/KanbanCard.d.ts +2 -0
- package/dist/components/core/kanban/KanbanCard.d.ts.map +1 -1
- package/dist/components/core/kanban/KanbanCard.js +5 -3
- package/dist/components/core/kanban/KanbanCard.js.map +1 -1
- package/dist/components/core/kanban/KanbanCard.tsx +15 -2
- package/dist/components/core/kanban/KanbanColumn.d.ts +3 -1
- package/dist/components/core/kanban/KanbanColumn.d.ts.map +1 -1
- package/dist/components/core/kanban/KanbanColumn.js +2 -2
- package/dist/components/core/kanban/KanbanColumn.js.map +1 -1
- package/dist/components/core/kanban/KanbanColumn.tsx +4 -2
- package/dist/components/core/kanban/SolidKanbanView.d.ts +25 -1
- package/dist/components/core/kanban/SolidKanbanView.d.ts.map +1 -1
- package/dist/components/core/kanban/SolidKanbanView.js +95 -50
- package/dist/components/core/kanban/SolidKanbanView.js.map +1 -1
- package/dist/components/core/kanban/SolidKanbanView.tsx +87 -9
- package/dist/components/core/list/PLAN.md +1 -1
- package/dist/components/core/list/SolidListView.d.ts +11 -0
- package/dist/components/core/list/SolidListView.d.ts.map +1 -1
- package/dist/components/core/list/SolidListView.js +51 -90
- package/dist/components/core/list/SolidListView.js.map +1 -1
- package/dist/components/core/list/SolidListView.tsx +77 -112
- package/dist/components/core/list/SolidListViewColumn.d.ts +2 -1
- package/dist/components/core/list/SolidListViewColumn.d.ts.map +1 -1
- package/dist/components/core/list/SolidListViewColumn.js +2 -2
- package/dist/components/core/list/SolidListViewColumn.js.map +1 -1
- package/dist/components/core/list/SolidListViewColumn.tsx +4 -3
- package/dist/components/core/list/SolidListViewConfigure.js +1 -1
- package/dist/components/core/list/SolidListViewConfigure.js.map +1 -1
- package/dist/components/core/list/SolidListViewConfigure.tsx +1 -1
- package/dist/components/core/list/columns/SolidRelationColumn.d.ts +1 -1
- package/dist/components/core/list/columns/SolidRelationColumn.d.ts.map +1 -1
- package/dist/components/core/list/columns/SolidRelationColumn.js +2 -2
- package/dist/components/core/list/columns/SolidRelationColumn.js.map +1 -1
- package/dist/components/core/list/columns/SolidRelationColumn.tsx +2 -2
- package/dist/components/core/list/columns/relations/SolidRelationManyToOneColumn.d.ts +2 -2
- package/dist/components/core/list/columns/relations/SolidRelationManyToOneColumn.d.ts.map +1 -1
- package/dist/components/core/list/columns/relations/SolidRelationManyToOneColumn.js +5 -4
- package/dist/components/core/list/columns/relations/SolidRelationManyToOneColumn.js.map +1 -1
- package/dist/components/core/list/columns/relations/SolidRelationManyToOneColumn.tsx +5 -4
- package/dist/components/core/model/CreateModel.d.ts.map +1 -1
- package/dist/components/core/model/CreateModel.js +2 -1
- package/dist/components/core/model/CreateModel.js.map +1 -1
- package/dist/components/core/model/CreateModel.tsx +2 -0
- package/dist/components/core/model/FieldMetaData.d.ts +1 -1
- package/dist/components/core/model/FieldMetaData.d.ts.map +1 -1
- package/dist/components/core/model/FieldMetaData.js +8 -8
- package/dist/components/core/model/FieldMetaData.js.map +1 -1
- package/dist/components/core/model/FieldMetaData.tsx +2 -2
- package/dist/components/core/model/FieldMetaDataForm.css +119 -0
- package/dist/components/core/model/FieldMetaDataForm.d.ts.map +1 -1
- package/dist/components/core/model/FieldMetaDataForm.js +147 -97
- package/dist/components/core/model/FieldMetaDataForm.js.map +1 -1
- package/dist/components/core/model/FieldMetaDataForm.tsx +124 -32
- package/dist/components/core/module/ModuleMetadataExplorer.css +64 -0
- package/dist/components/core/module/ModulePackageDialog.css +117 -12
- package/dist/components/core/tree/SolidTreeView.d.ts.map +1 -1
- package/dist/components/core/tree/SolidTreeView.js +6 -3
- package/dist/components/core/tree/SolidTreeView.js.map +1 -1
- package/dist/components/core/tree/SolidTreeView.tsx +27 -13
- package/dist/components/layout/AdminHeaderActions.d.ts.map +1 -1
- package/dist/components/layout/AdminHeaderActions.js +16 -11
- package/dist/components/layout/AdminHeaderActions.js.map +1 -1
- package/dist/components/layout/AdminHeaderActions.tsx +16 -9
- package/dist/components/layout/AdminTopHeader.d.ts.map +1 -1
- package/dist/components/layout/AdminTopHeader.js +1 -18
- package/dist/components/layout/AdminTopHeader.js.map +1 -1
- package/dist/components/layout/AdminTopHeader.tsx +3 -21
- package/dist/helpers/getAcceptedFileTypes.d.ts +12 -2
- package/dist/helpers/getAcceptedFileTypes.d.ts.map +1 -1
- package/dist/helpers/getAcceptedFileTypes.js +72 -16
- package/dist/helpers/getAcceptedFileTypes.js.map +1 -1
- package/dist/helpers/getAcceptedFileTypes.tsx +101 -18
- package/dist/helpers/registry.js +2 -1
- package/dist/helpers/registry.js.map +1 -1
- package/dist/helpers/registry.ts +3 -1
- package/dist/index.d.ts +6 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +3 -0
- package/dist/index.js.map +1 -1
- package/dist/index.ts +6 -2
- package/dist/resources/globals.css +274 -109
- package/dist/resources/solid-custom.css +11 -0
- package/dist/resources/solid-responsive.css +1 -5
- package/dist/resources/solid-tailwind-generated.css +1 -1
- package/dist/routes/pages/admin/core/CardPage.d.ts.map +1 -1
- package/dist/routes/pages/admin/core/CardPage.js +15 -2
- package/dist/routes/pages/admin/core/CardPage.js.map +1 -1
- package/dist/routes/pages/admin/core/CardPage.tsx +17 -2
- package/dist/routes/pages/admin/core/DashboardPage.d.ts.map +1 -1
- package/dist/routes/pages/admin/core/DashboardPage.js +31 -3
- package/dist/routes/pages/admin/core/DashboardPage.js.map +1 -1
- package/dist/routes/pages/admin/core/DashboardPage.tsx +39 -11
- package/dist/routes/pages/admin/core/KanbanPage.d.ts.map +1 -1
- package/dist/routes/pages/admin/core/KanbanPage.js +15 -2
- package/dist/routes/pages/admin/core/KanbanPage.js.map +1 -1
- package/dist/routes/pages/admin/core/KanbanPage.tsx +17 -2
- package/dist/routes/pages/admin/core/ListPage.d.ts.map +1 -1
- package/dist/routes/pages/admin/core/ListPage.js +5 -13
- package/dist/routes/pages/admin/core/ListPage.js.map +1 -1
- package/dist/routes/pages/admin/core/ListPage.tsx +5 -15
- package/dist/types/index.d.ts +2 -4
- package/dist/types/solid-core.d.ts +12 -13
- package/package.json +1 -1
|
@@ -11,8 +11,9 @@ var __assign = (this && this.__assign) || function () {
|
|
|
11
11
|
};
|
|
12
12
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
13
13
|
import { SolidKanbanView } from "../../../../components/core/kanban/SolidKanbanView";
|
|
14
|
+
import { registerKanbanView, unregisterKanbanView } from "../../../../components/core/kanban/kanbanViewRegistry";
|
|
14
15
|
import { camelCase } from "lodash";
|
|
15
|
-
import { useEffect } from "react";
|
|
16
|
+
import { useCallback, useEffect } from "react";
|
|
16
17
|
import { useParams } from "react-router-dom";
|
|
17
18
|
import { storeCurrentModelViewContext } from "../../../../helpers/modelViewPersistence";
|
|
18
19
|
import { usePathname } from "../../../../hooks/usePathname";
|
|
@@ -24,10 +25,22 @@ export function KanbanPage() {
|
|
|
24
25
|
var search = searchParams.toString();
|
|
25
26
|
var moduleName = params.moduleName || "";
|
|
26
27
|
var modelName = params.modelName ? camelCase(params.modelName) : "";
|
|
28
|
+
var menuItemId = searchParams.get("menuItemId") || "";
|
|
29
|
+
var menuItemName = searchParams.get("menuItemName") || "";
|
|
30
|
+
var actionId = searchParams.get("actionId") || "";
|
|
31
|
+
var actionName = searchParams.get("actionName") || "";
|
|
32
|
+
var kanbanId = "page:".concat(moduleName, ":").concat(modelName, ":").concat(menuItemId, ":").concat(menuItemName, ":").concat(actionId, ":").concat(actionName);
|
|
33
|
+
var setKanbanRef = useCallback(function (handle) {
|
|
34
|
+
if (handle) {
|
|
35
|
+
registerKanbanView(kanbanId, handle);
|
|
36
|
+
return;
|
|
37
|
+
}
|
|
38
|
+
unregisterKanbanView(kanbanId);
|
|
39
|
+
}, [kanbanId]);
|
|
27
40
|
useEffect(function () {
|
|
28
41
|
var currentUrl = search ? "".concat(pathname, "?").concat(search) : pathname;
|
|
29
42
|
storeCurrentModelViewContext(currentUrl);
|
|
30
43
|
}, [pathname, search]);
|
|
31
|
-
return _jsx(SolidKanbanView, __assign({}, params, { embeded: false, moduleName: moduleName, modelName: modelName }));
|
|
44
|
+
return _jsx(SolidKanbanView, __assign({ ref: setKanbanRef }, params, { embeded: false, moduleName: moduleName, modelName: modelName }), kanbanId);
|
|
32
45
|
}
|
|
33
46
|
//# sourceMappingURL=KanbanPage.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"KanbanPage.js","sourceRoot":"","sources":["../../../../../src/routes/pages/admin/core/KanbanPage.tsx"],"names":[],"mappings":";;;;;;;;;;;;AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,oDAAoD,CAAC;
|
|
1
|
+
{"version":3,"file":"KanbanPage.js","sourceRoot":"","sources":["../../../../../src/routes/pages/admin/core/KanbanPage.tsx"],"names":[],"mappings":";;;;;;;;;;;;AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,oDAAoD,CAAC;AAErF,OAAO,EAAE,kBAAkB,EAAE,oBAAoB,EAAE,MAAM,uDAAuD,CAAC;AACjH,OAAO,EAAE,SAAS,EAAE,MAAM,QAAQ,CAAC;AACnC,OAAO,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAC/C,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;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R,IAAM,UAAU,GAAG,MAAM,CAAC,CAAC,CAAC,UAAG,QAAQ,cAAI,MAAM,CAAE,CAAC,CAAC,CAAC,QAAQ,CAAC;QAC/D,4BAA4B,CAAC,UAAU,CAAC,CAAC;IAC3C,CAAC,EAAE,CAAC,QAAQ,EAAE,MAAM,CAAC,CAAC,CAAC;IAEvB,OAAO,KAAC,eAAe,aAAC,GAAG,EAAE,YAAY,IAAqB,MAAM,IAAE,OAAO,EAAE,KAAK,EAAE,UAAU,EAAE,UAAU,EAAE,SAAS,EAAE,SAAS,KAAlF,QAAQ,CAA8E,CAAC;AACzI,CAAC","sourcesContent":["import { SolidKanbanView } from \"../../../../components/core/kanban/SolidKanbanView\";\nimport type { SolidKanbanViewHandle } from \"../../../../components/core/kanban/SolidKanbanView\";\nimport { registerKanbanView, unregisterKanbanView } from \"../../../../components/core/kanban/kanbanViewRegistry\";\nimport { camelCase } from \"lodash\";\nimport { useCallback, useEffect } from \"react\";\nimport { useParams } from \"react-router-dom\";\nimport { storeCurrentModelViewContext } from \"../../../../helpers/modelViewPersistence\";\nimport { usePathname } from \"../../../../hooks/usePathname\";\nimport { useSearchParams } from \"../../../../hooks/useSearchParams\";\n\nexport function KanbanPage() {\n const params = useParams();\n const pathname = usePathname();\n const searchParams = useSearchParams();\n const search = searchParams.toString();\n const moduleName = params.moduleName || \"\";\n const modelName = params.modelName ? camelCase(params.modelName) : \"\";\n const menuItemId = searchParams.get(\"menuItemId\") || \"\";\n const menuItemName = searchParams.get(\"menuItemName\") || \"\";\n const actionId = searchParams.get(\"actionId\") || \"\";\n const actionName = searchParams.get(\"actionName\") || \"\";\n const kanbanId = `page:${moduleName}:${modelName}:${menuItemId}:${menuItemName}:${actionId}:${actionName}`;\n\n const setKanbanRef = useCallback((handle: SolidKanbanViewHandle | null) => {\n if (handle) {\n registerKanbanView(kanbanId, handle);\n return;\n }\n unregisterKanbanView(kanbanId);\n }, [kanbanId]);\n\n useEffect(() => {\n const currentUrl = search ? `${pathname}?${search}` : pathname;\n storeCurrentModelViewContext(currentUrl);\n }, [pathname, search]);\n\n return <SolidKanbanView ref={setKanbanRef} key={kanbanId} {...params} embeded={false} moduleName={moduleName} modelName={modelName} />;\n}\n"]}
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { SolidKanbanView } from "../../../../components/core/kanban/SolidKanbanView";
|
|
2
|
+
import type { SolidKanbanViewHandle } from "../../../../components/core/kanban/SolidKanbanView";
|
|
3
|
+
import { registerKanbanView, unregisterKanbanView } from "../../../../components/core/kanban/kanbanViewRegistry";
|
|
2
4
|
import { camelCase } from "lodash";
|
|
3
|
-
import { useEffect } from "react";
|
|
5
|
+
import { useCallback, useEffect } from "react";
|
|
4
6
|
import { useParams } from "react-router-dom";
|
|
5
7
|
import { storeCurrentModelViewContext } from "../../../../helpers/modelViewPersistence";
|
|
6
8
|
import { usePathname } from "../../../../hooks/usePathname";
|
|
@@ -13,11 +15,24 @@ export function KanbanPage() {
|
|
|
13
15
|
const search = searchParams.toString();
|
|
14
16
|
const moduleName = params.moduleName || "";
|
|
15
17
|
const modelName = params.modelName ? camelCase(params.modelName) : "";
|
|
18
|
+
const menuItemId = searchParams.get("menuItemId") || "";
|
|
19
|
+
const menuItemName = searchParams.get("menuItemName") || "";
|
|
20
|
+
const actionId = searchParams.get("actionId") || "";
|
|
21
|
+
const actionName = searchParams.get("actionName") || "";
|
|
22
|
+
const kanbanId = `page:${moduleName}:${modelName}:${menuItemId}:${menuItemName}:${actionId}:${actionName}`;
|
|
23
|
+
|
|
24
|
+
const setKanbanRef = useCallback((handle: SolidKanbanViewHandle | null) => {
|
|
25
|
+
if (handle) {
|
|
26
|
+
registerKanbanView(kanbanId, handle);
|
|
27
|
+
return;
|
|
28
|
+
}
|
|
29
|
+
unregisterKanbanView(kanbanId);
|
|
30
|
+
}, [kanbanId]);
|
|
16
31
|
|
|
17
32
|
useEffect(() => {
|
|
18
33
|
const currentUrl = search ? `${pathname}?${search}` : pathname;
|
|
19
34
|
storeCurrentModelViewContext(currentUrl);
|
|
20
35
|
}, [pathname, search]);
|
|
21
36
|
|
|
22
|
-
return <SolidKanbanView {...params} embeded={false} moduleName={moduleName} modelName={modelName} />;
|
|
37
|
+
return <SolidKanbanView ref={setKanbanRef} key={kanbanId} {...params} embeded={false} moduleName={moduleName} modelName={modelName} />;
|
|
23
38
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ListPage.d.ts","sourceRoot":"","sources":["../../../../../src/routes/pages/admin/core/ListPage.tsx"],"names":[],"mappings":"AAUA,wBAAgB,QAAQ,
|
|
1
|
+
{"version":3,"file":"ListPage.d.ts","sourceRoot":"","sources":["../../../../../src/routes/pages/admin/core/ListPage.tsx"],"names":[],"mappings":"AAUA,wBAAgB,QAAQ,4CAqCvB"}
|
|
@@ -40,20 +40,12 @@ export function ListPage() {
|
|
|
40
40
|
}, [listId]);
|
|
41
41
|
useEffect(function () {
|
|
42
42
|
var currentUrl = search ? "".concat(pathname, "?").concat(search) : pathname;
|
|
43
|
-
var
|
|
44
|
-
if (
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
router.replace(retainedUrl);
|
|
48
|
-
return;
|
|
49
|
-
}
|
|
43
|
+
var retainedUrl = resolveRetainedModelViewRoute(currentUrl);
|
|
44
|
+
if (retainedUrl !== currentUrl) {
|
|
45
|
+
router.replace(retainedUrl);
|
|
46
|
+
return;
|
|
50
47
|
}
|
|
51
|
-
|
|
52
|
-
var params = new URLSearchParams(search);
|
|
53
|
-
params.delete("savedQuery");
|
|
54
|
-
var cleanSearch = params.toString();
|
|
55
|
-
var urlToStore = cleanSearch ? "".concat(pathname, "?").concat(cleanSearch) : pathname;
|
|
56
|
-
storeCurrentModelViewContext(urlToStore);
|
|
48
|
+
storeCurrentModelViewContext(currentUrl);
|
|
57
49
|
}, [pathname, search]);
|
|
58
50
|
return _jsx(SolidListView, __assign({ ref: setListRef }, params, { embeded: false, moduleName: moduleName, modelName: modelName }), listId);
|
|
59
51
|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C,CAAC;QAC9D,IAAI,WAAW,KAAK,UAAU,EAAE;YAC9B,MAAM,CAAC,OAAO,CAAC,WAAW,CAAC,CAAC;YAC5B,OAAO;SACR;QAED,4BAA4B,CAAC,UAAU,CAAC,CAAC;IAC3C,CAAC,EAAE,CAAC,QAAQ,EAAE,MAAM,CAAC,CAAC,CAAC;IAEvB,OAAO,KAAC,aAAa,aAAC,GAAG,EAAE,UAAU,IAAmB,MAAM,IAAE,OAAO,EAAE,KAAK,EAAE,UAAU,EAAE,UAAU,EAAE,SAAS,EAAE,SAAS,KAAhF,MAAM,CAA8E,CAAC;AACnI,CAAC","sourcesContent":["import { SolidListView } from \"../../../../components/core/list/SolidListView\";\nimport { camelCase } from \"lodash\";\nimport { useCallback, useEffect } from \"react\";\nimport { useParams, useSearchParams } from \"react-router-dom\";\nimport type { SolidListViewHandle } from \"../../../../components/core/list/SolidListView\";\nimport { registerListView, unregisterListView } from \"../../../../components/core/list/listViewRegistry\";\nimport { usePathname } from \"../../../../hooks/usePathname\";\nimport { useRouter } from \"../../../../hooks/useRouter\";\nimport { resolveRetainedModelViewRoute, storeCurrentModelViewContext } from \"../../../../helpers/modelViewPersistence\";\n\nexport function ListPage() {\n const params = useParams();\n const [searchParams] = useSearchParams();\n const pathname = usePathname();\n const router = useRouter();\n const search = searchParams.toString();\n\n const moduleName = params.moduleName || \"\";\n const modelName = params.modelName ? camelCase(params.modelName) : \"\";\n\n const menuItemId = searchParams.get(\"menuItemId\") || \"\";\n const menuItemName = searchParams.get(\"menuItemName\") || \"\";\n const actionId = searchParams.get(\"actionId\") || \"\";\n const actionName = searchParams.get(\"actionName\") || \"\";\n\n const listId = `page:${moduleName}:${modelName}:${menuItemId}:${menuItemName}:${actionId}:${actionName}`;\n\n const setListRef = useCallback((handle: SolidListViewHandle | null) => {\n if (handle) {\n registerListView(listId, handle);\n return;\n }\n unregisterListView(listId);\n }, [listId]);\n\n useEffect(() => {\n const currentUrl = search ? `${pathname}?${search}` : pathname;\n const retainedUrl = resolveRetainedModelViewRoute(currentUrl);\n if (retainedUrl !== currentUrl) {\n router.replace(retainedUrl);\n return;\n }\n\n storeCurrentModelViewContext(currentUrl);\n }, [pathname, search]);\n\n return <SolidListView ref={setListRef} key={listId} {...params} embeded={false} moduleName={moduleName} modelName={modelName} />;\n}\n"]}
|
|
@@ -35,23 +35,13 @@ export function ListPage() {
|
|
|
35
35
|
|
|
36
36
|
useEffect(() => {
|
|
37
37
|
const currentUrl = search ? `${pathname}?${search}` : pathname;
|
|
38
|
-
const
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
if (retainedUrl !== currentUrl) {
|
|
43
|
-
router.replace(retainedUrl);
|
|
44
|
-
return;
|
|
45
|
-
}
|
|
38
|
+
const retainedUrl = resolveRetainedModelViewRoute(currentUrl);
|
|
39
|
+
if (retainedUrl !== currentUrl) {
|
|
40
|
+
router.replace(retainedUrl);
|
|
41
|
+
return;
|
|
46
42
|
}
|
|
47
43
|
|
|
48
|
-
|
|
49
|
-
const params = new URLSearchParams(search);
|
|
50
|
-
params.delete("savedQuery");
|
|
51
|
-
const cleanSearch = params.toString();
|
|
52
|
-
const urlToStore = cleanSearch ? `${pathname}?${cleanSearch}` : pathname;
|
|
53
|
-
|
|
54
|
-
storeCurrentModelViewContext(urlToStore);
|
|
44
|
+
storeCurrentModelViewContext(currentUrl);
|
|
55
45
|
}, [pathname, search]);
|
|
56
46
|
|
|
57
47
|
return <SolidListView ref={setListRef} key={listId} {...params} embeded={false} moduleName={moduleName} modelName={modelName} />;
|
package/dist/types/index.d.ts
CHANGED
|
@@ -40,8 +40,7 @@ import {
|
|
|
40
40
|
SolidBeforeListDataLoad,
|
|
41
41
|
SolidBeforeTreeNodeLoad,
|
|
42
42
|
SolidTreeUiEventResponse,
|
|
43
|
-
SolidTreeLoad
|
|
44
|
-
SolidDefinedFilter
|
|
43
|
+
SolidTreeLoad
|
|
45
44
|
} from './solid-core';
|
|
46
45
|
|
|
47
46
|
type ChildContainerProps = {
|
|
@@ -84,6 +83,5 @@ export type {
|
|
|
84
83
|
SolidBeforeListDataLoad,
|
|
85
84
|
SolidBeforeTreeNodeLoad,
|
|
86
85
|
SolidTreeUiEventResponse,
|
|
87
|
-
SolidTreeLoad
|
|
88
|
-
SolidDefinedFilter
|
|
86
|
+
SolidTreeLoad
|
|
89
87
|
};
|
|
@@ -108,7 +108,15 @@ export type LayoutAttribute = {
|
|
|
108
108
|
showEditFormButton?: boolean;
|
|
109
109
|
showAddFormButton?: boolean;
|
|
110
110
|
showDeleteFormButton?: boolean;
|
|
111
|
+
action?: string;
|
|
112
|
+
actionInContextMenu?: boolean;
|
|
113
|
+
openInPopup?: boolean;
|
|
114
|
+
popupWidth?: string;
|
|
115
|
+
closable?: boolean;
|
|
116
|
+
roles?: string[];
|
|
117
|
+
env?: string[] | string;
|
|
111
118
|
formButtons?: any;
|
|
119
|
+
headerButtons?: any;
|
|
112
120
|
rowButtons?: any;
|
|
113
121
|
whereClause?: string;
|
|
114
122
|
disabled?: boolean;
|
|
@@ -201,6 +209,7 @@ export type SolidListUiEvent = {
|
|
|
201
209
|
|
|
202
210
|
export type SolidLoadList = {
|
|
203
211
|
type: SolidUiEvents;
|
|
212
|
+
isInitialLoad?: boolean;
|
|
204
213
|
listData: any[];
|
|
205
214
|
fieldsMetadata: FieldsMetadata;
|
|
206
215
|
totalRecords: number;
|
|
@@ -214,6 +223,7 @@ export type SolidLoadList = {
|
|
|
214
223
|
|
|
215
224
|
export type SolidBeforeListDataLoad = {
|
|
216
225
|
type: SolidUiEvents;
|
|
226
|
+
isInitialLoad?: boolean;
|
|
217
227
|
fieldsMetadata: FieldsMetadata;
|
|
218
228
|
viewMetadata: SolidView;
|
|
219
229
|
listViewLayout: ListLayoutType;
|
|
@@ -250,17 +260,6 @@ export type SolidTreeLoad = {
|
|
|
250
260
|
params?: SolidListViewParams
|
|
251
261
|
}
|
|
252
262
|
|
|
253
|
-
// A single toggleable filter offered by an onBeforeListDataLoad handler.
|
|
254
|
-
// Unlike newFilter (baked directly into the outgoing query), each entry here
|
|
255
|
-
// stays independently addressable so SolidGlobalSearchElement can render it
|
|
256
|
-
// as a removable pill and SolidListView can drop it from the query on removal.
|
|
257
|
-
export type SolidDefinedFilter = {
|
|
258
|
-
key: string;
|
|
259
|
-
label: string;
|
|
260
|
-
predicate: any;
|
|
261
|
-
applied: boolean;
|
|
262
|
-
}
|
|
263
|
-
|
|
264
263
|
export type SolidListUiEventResponse = {
|
|
265
264
|
filterApplied?: Boolean;
|
|
266
265
|
newFilter?: any;
|
|
@@ -268,7 +267,6 @@ export type SolidListUiEventResponse = {
|
|
|
268
267
|
newListData?: any[];
|
|
269
268
|
layoutChanged?: Boolean;
|
|
270
269
|
newLayout?: LayoutNode;
|
|
271
|
-
definedFilters?: SolidDefinedFilter[];
|
|
272
270
|
}
|
|
273
271
|
|
|
274
272
|
export type SolidTreeUiEventResponse = {
|
|
@@ -349,7 +347,8 @@ export type SolidListFieldWidgetProps = {
|
|
|
349
347
|
solidListViewMetaData: any
|
|
350
348
|
fieldMetadata: FieldMetadata;
|
|
351
349
|
column: any;
|
|
352
|
-
embeded?: boolean
|
|
350
|
+
embeded?: boolean,
|
|
351
|
+
recordClickAction?: 'view' | 'edit';
|
|
353
352
|
}
|
|
354
353
|
|
|
355
354
|
export type SolidMediaListFieldWidgetProps = SolidListFieldWidgetProps & {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@solidxai/core-ui",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.15-beta.0",
|
|
4
4
|
"scripts": {
|
|
5
5
|
"build:tailwind": "tailwindcss -i ./src/resources/solid-tailwind.css -o ./src/resources/solid-tailwind-generated.css -c ./tailwind.config.js --minify",
|
|
6
6
|
"prebuild": "npm run build:tailwind && npm run copy-resources && npm run copy-styles",
|