@solidxai/core-ui 0.1.3 → 0.1.4-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 (127) hide show
  1. package/dist/components/auth/SolidInitialLoginOtp.d.ts.map +1 -1
  2. package/dist/components/auth/SolidInitialLoginOtp.js +0 -5
  3. package/dist/components/auth/SolidInitialLoginOtp.js.map +1 -1
  4. package/dist/components/auth/SolidInitialLoginOtp.tsx +0 -5
  5. package/dist/components/auth/SolidLogin.d.ts.map +1 -1
  6. package/dist/components/auth/SolidLogin.js +7 -5
  7. package/dist/components/auth/SolidLogin.js.map +1 -1
  8. package/dist/components/auth/SolidLogin.tsx +10 -8
  9. package/dist/components/common/GeneralSettings.d.ts.map +1 -1
  10. package/dist/components/common/GeneralSettings.js +48 -47
  11. package/dist/components/common/GeneralSettings.js.map +1 -1
  12. package/dist/components/common/GeneralSettings.tsx +41 -10
  13. package/dist/components/core/common/FilterComponent.js.map +1 -1
  14. package/dist/components/core/common/FilterComponent.tsx +1 -1
  15. package/dist/components/core/common/GroupingComponent.d.ts +54 -0
  16. package/dist/components/core/common/GroupingComponent.d.ts.map +1 -0
  17. package/dist/components/core/common/GroupingComponent.js +196 -0
  18. package/dist/components/core/common/GroupingComponent.js.map +1 -0
  19. package/dist/components/core/common/GroupingComponent.tsx +452 -0
  20. package/dist/components/core/common/SolidGlobalSearchElement.d.ts +18 -1
  21. package/dist/components/core/common/SolidGlobalSearchElement.d.ts.map +1 -1
  22. package/dist/components/core/common/SolidGlobalSearchElement.js +146 -47
  23. package/dist/components/core/common/SolidGlobalSearchElement.js.map +1 -1
  24. package/dist/components/core/common/SolidGlobalSearchElement.tsx +191 -18
  25. package/dist/components/core/extension/solid-core/modelSequence/modelSequenceFormViewChangeHandler.d.ts +19 -0
  26. package/dist/components/core/extension/solid-core/modelSequence/modelSequenceFormViewChangeHandler.d.ts.map +1 -0
  27. package/dist/components/core/extension/solid-core/modelSequence/modelSequenceFormViewChangeHandler.js +90 -0
  28. package/dist/components/core/extension/solid-core/modelSequence/modelSequenceFormViewChangeHandler.js.map +1 -0
  29. package/dist/components/core/extension/solid-core/modelSequence/modelSequenceFormViewChangeHandler.tsx +59 -0
  30. package/dist/components/core/extension/solid-core/roleMetadata/RolePermissionsManyToManyFieldWidget.d.ts.map +1 -1
  31. package/dist/components/core/extension/solid-core/roleMetadata/RolePermissionsManyToManyFieldWidget.js +7 -3
  32. package/dist/components/core/extension/solid-core/roleMetadata/RolePermissionsManyToManyFieldWidget.js.map +1 -1
  33. package/dist/components/core/extension/solid-core/roleMetadata/RolePermissionsManyToManyFieldWidget.tsx +45 -40
  34. package/dist/components/core/filter/SolidOneToManyFilterElement.d.ts +2 -0
  35. package/dist/components/core/filter/SolidOneToManyFilterElement.d.ts.map +1 -0
  36. package/dist/components/core/filter/SolidOneToManyFilterElement.js +86 -0
  37. package/dist/components/core/filter/SolidOneToManyFilterElement.js.map +1 -0
  38. package/dist/components/core/filter/SolidOneToManyFilterElement.tsx +62 -0
  39. package/dist/components/core/filter/SolidVarInputsFilterElement.d.ts +1 -0
  40. package/dist/components/core/filter/SolidVarInputsFilterElement.d.ts.map +1 -1
  41. package/dist/components/core/filter/SolidVarInputsFilterElement.js +4 -1
  42. package/dist/components/core/filter/SolidVarInputsFilterElement.js.map +1 -1
  43. package/dist/components/core/filter/SolidVarInputsFilterElement.tsx +10 -0
  44. package/dist/components/core/filter/fields/SolidRelationField.d.ts.map +1 -1
  45. package/dist/components/core/filter/fields/SolidRelationField.js +4 -2
  46. package/dist/components/core/filter/fields/SolidRelationField.js.map +1 -1
  47. package/dist/components/core/filter/fields/SolidRelationField.tsx +4 -2
  48. package/dist/components/core/filter/fields/relations/SolidRelationOneToManyField.d.ts +4 -0
  49. package/dist/components/core/filter/fields/relations/SolidRelationOneToManyField.d.ts.map +1 -0
  50. package/dist/components/core/filter/fields/relations/SolidRelationOneToManyField.js +25 -0
  51. package/dist/components/core/filter/fields/relations/SolidRelationOneToManyField.js.map +1 -0
  52. package/dist/components/core/filter/fields/relations/SolidRelationOneToManyField.tsx +60 -0
  53. package/dist/components/core/form/SolidFormFooter.js +4 -4
  54. package/dist/components/core/form/SolidFormFooter.js.map +1 -1
  55. package/dist/components/core/form/SolidFormFooter.tsx +4 -4
  56. package/dist/components/core/form/fields/SolidBooleanField.d.ts.map +1 -1
  57. package/dist/components/core/form/fields/SolidBooleanField.js +11 -8
  58. package/dist/components/core/form/fields/SolidBooleanField.js.map +1 -1
  59. package/dist/components/core/form/fields/SolidBooleanField.tsx +20 -8
  60. package/dist/components/core/form/fields/relations/SolidRelationManyToManyField.d.ts.map +1 -1
  61. package/dist/components/core/form/fields/relations/SolidRelationManyToManyField.js +26 -21
  62. package/dist/components/core/form/fields/relations/SolidRelationManyToManyField.js.map +1 -1
  63. package/dist/components/core/form/fields/relations/SolidRelationManyToManyField.tsx +27 -17
  64. package/dist/components/core/form/fields/relations/widgets/helpers/useRelationEntityHandler.d.ts +1 -0
  65. package/dist/components/core/form/fields/relations/widgets/helpers/useRelationEntityHandler.d.ts.map +1 -1
  66. package/dist/components/core/form/fields/relations/widgets/helpers/useRelationEntityHandler.js +51 -0
  67. package/dist/components/core/form/fields/relations/widgets/helpers/useRelationEntityHandler.js.map +1 -1
  68. package/dist/components/core/form/fields/relations/widgets/helpers/useRelationEntityHandler.ts +51 -0
  69. package/dist/components/core/kanban/SolidKanbanView.js +5 -5
  70. package/dist/components/core/kanban/SolidKanbanView.js.map +1 -1
  71. package/dist/components/core/kanban/SolidKanbanView.tsx +5 -5
  72. package/dist/components/core/list/SolidListView.d.ts +12 -7
  73. package/dist/components/core/list/SolidListView.d.ts.map +1 -1
  74. package/dist/components/core/list/SolidListView.js +138 -150
  75. package/dist/components/core/list/SolidListView.js.map +1 -1
  76. package/dist/components/core/list/SolidListView.tsx +84 -91
  77. package/dist/components/core/list/listViewRegistry.js.map +1 -1
  78. package/dist/components/core/list/listViewRegistry.ts +1 -2
  79. package/dist/components/core/tree/SolidTreeView.d.ts +38 -0
  80. package/dist/components/core/tree/SolidTreeView.d.ts.map +1 -0
  81. package/dist/components/core/tree/SolidTreeView.js +1170 -0
  82. package/dist/components/core/tree/SolidTreeView.js.map +1 -0
  83. package/dist/components/core/tree/SolidTreeView.tsx +1603 -0
  84. package/dist/components/core/tree/treeViewRegistry.d.ts +7 -0
  85. package/dist/components/core/tree/treeViewRegistry.d.ts.map +1 -0
  86. package/dist/components/core/tree/treeViewRegistry.js +17 -0
  87. package/dist/components/core/tree/treeViewRegistry.js.map +1 -0
  88. package/dist/components/core/tree/treeViewRegistry.ts +23 -0
  89. package/dist/components/core/users/CreateUser.d.ts.map +1 -1
  90. package/dist/components/core/users/CreateUser.js +19 -6
  91. package/dist/components/core/users/CreateUser.js.map +1 -1
  92. package/dist/components/core/users/CreateUser.tsx +39 -0
  93. package/dist/helpers/helpers.d.ts +2 -0
  94. package/dist/helpers/helpers.d.ts.map +1 -1
  95. package/dist/helpers/helpers.js +3 -1
  96. package/dist/helpers/helpers.js.map +1 -1
  97. package/dist/helpers/helpers.ts +4 -1
  98. package/dist/helpers/registry.d.ts.map +1 -1
  99. package/dist/helpers/registry.js +2 -0
  100. package/dist/helpers/registry.js.map +1 -1
  101. package/dist/helpers/registry.ts +3 -1
  102. package/dist/index.d.ts +3 -1
  103. package/dist/index.d.ts.map +1 -1
  104. package/dist/index.js +2 -0
  105. package/dist/index.js.map +1 -1
  106. package/dist/index.ts +6 -1
  107. package/dist/resources/globals.css +18 -4
  108. package/dist/routes/pages/admin/core/ListPage.d.ts.map +1 -1
  109. package/dist/routes/pages/admin/core/ListPage.js +1 -1
  110. package/dist/routes/pages/admin/core/ListPage.js.map +1 -1
  111. package/dist/routes/pages/admin/core/ListPage.tsx +2 -1
  112. package/dist/routes/pages/admin/core/TreePage.d.ts +2 -0
  113. package/dist/routes/pages/admin/core/TreePage.d.ts.map +1 -0
  114. package/dist/routes/pages/admin/core/TreePage.js +37 -0
  115. package/dist/routes/pages/admin/core/TreePage.js.map +1 -0
  116. package/dist/routes/pages/admin/core/TreePage.tsx +30 -0
  117. package/dist/routes/solidRoutes.d.ts.map +1 -1
  118. package/dist/routes/solidRoutes.js +2 -0
  119. package/dist/routes/solidRoutes.js.map +1 -1
  120. package/dist/routes/solidRoutes.tsx +3 -1
  121. package/dist/routes/types.d.ts +1 -1
  122. package/dist/routes/types.d.ts.map +1 -1
  123. package/dist/routes/types.js.map +1 -1
  124. package/dist/routes/types.ts +1 -0
  125. package/dist/types/index.d.ts +8 -2
  126. package/dist/types/solid-core.d.ts +40 -0
  127. package/package.json +1 -1
@@ -0,0 +1,37 @@
1
+ var __assign = (this && this.__assign) || function () {
2
+ __assign = Object.assign || function(t) {
3
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
4
+ s = arguments[i];
5
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
6
+ t[p] = s[p];
7
+ }
8
+ return t;
9
+ };
10
+ return __assign.apply(this, arguments);
11
+ };
12
+ import { jsx as _jsx } from "react/jsx-runtime";
13
+ import { camelCase } from "change-case";
14
+ import { useCallback } from "react";
15
+ import { useParams, useSearchParams } from "react-router-dom";
16
+ import { registerTree, unregisterTree } from "../../../../components/core/tree/treeViewRegistry";
17
+ import { SolidTreeView } from "../../../../components/core/tree/SolidTreeView";
18
+ export function TreePage() {
19
+ var params = useParams();
20
+ var _a = useSearchParams(), searchParams = _a[0], setSearchParams = _a[1];
21
+ var moduleName = params.moduleName || "";
22
+ var modelName = params.modelName ? camelCase(params.modelName) : "";
23
+ var menuItemId = searchParams.get("menuItemId") || "";
24
+ var menuItemName = searchParams.get("menuItemName") || "";
25
+ var actionId = searchParams.get("actionId") || "";
26
+ var actionName = searchParams.get("actionName") || "";
27
+ var treeId = "page:".concat(moduleName, ":").concat(modelName, ":").concat(menuItemId, ":").concat(menuItemName, ":").concat(actionId, ":").concat(actionName);
28
+ var setTreeRef = useCallback(function (handle) {
29
+ if (handle) {
30
+ registerTree(treeId, handle);
31
+ return;
32
+ }
33
+ unregisterTree(treeId);
34
+ }, [treeId]);
35
+ return _jsx(SolidTreeView, __assign({ ref: setTreeRef }, params, { embeded: false, moduleName: moduleName, modelName: modelName }), moduleName + modelName + menuItemId + menuItemName + actionId + actionName);
36
+ }
37
+ //# sourceMappingURL=TreePage.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TreePage.js","sourceRoot":"","sources":["../../../../../src/routes/pages/admin/core/TreePage.tsx"],"names":[],"mappings":";;;;;;;;;;;;AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,WAAW,EAAE,MAAM,OAAO,CAAC;AACpC,OAAO,EAAE,SAAS,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AAE9D,OAAO,EAAE,YAAY,EAAE,cAAc,EAAE,MAAM,mDAAmD,CAAC;AACjG,OAAO,EAAE,aAAa,EAAE,MAAM,gDAAgD,CAAC;AAE/E,MAAM,UAAU,QAAQ;IACtB,IAAM,MAAM,GAAG,SAAS,EAAE,CAAC;IACrB,IAAA,KAAkC,eAAe,EAAE,EAAlD,YAAY,QAAA,EAAE,eAAe,QAAqB,CAAC;IAE1D,IAAM,UAAU,GAAG,MAAM,CAAC,UAAU,IAAI,EAAE,CAAC;IAC3C,IAAM,SAAS,GAAG,MAAM,CAAC,SAAS,CAAC,CAAC,CAAC,SAAS,CAAC,MAAM,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;IACtE,IAAM,UAAU,GAAG,YAAY,CAAC,GAAG,CAAC,YAAY,CAAC,IAAI,EAAE,CAAC;IACxD,IAAM,YAAY,GAAG,YAAY,CAAC,GAAG,CAAC,cAAc,CAAC,IAAI,EAAE,CAAC;IAC5D,IAAM,QAAQ,GAAG,YAAY,CAAC,GAAG,CAAC,UAAU,CAAC,IAAI,EAAE,CAAC;IACpD,IAAM,UAAU,GAAG,YAAY,CAAC,GAAG,CAAC,YAAY,CAAC,IAAI,EAAE,CAAC;IAExD,IAAM,MAAM,GAAG,eAAQ,UAAU,cAAI,SAAS,cAAI,UAAU,cAAI,YAAY,cAAI,QAAQ,cAAI,UAAU,CAAE,CAAC;IAEzG,IAAM,UAAU,GAAG,WAAW,CAAC,UAAC,MAAkC;QAChE,IAAI,MAAM,EAAE;YACV,YAAY,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;YAC7B,OAAO;SACR;QACD,cAAc,CAAC,MAAM,CAAC,CAAC;IACzB,CAAC,EAAE,CAAC,MAAM,CAAC,CAAC,CAAC;IAEb,OAAO,KAAC,aAAa,aAAC,GAAG,EAAE,UAAU,IAAuF,MAAM,IAAE,OAAO,EAAE,KAAK,EAAE,UAAU,EAAE,UAAU,EAAE,SAAS,EAAE,SAAS,KAApJ,UAAU,GAAG,SAAS,GAAG,UAAU,GAAG,YAAY,GAAG,QAAQ,GAAG,UAAU,CAA8E,CAAC;AACvM,CAAC","sourcesContent":["import { camelCase } from \"change-case\";\nimport { useCallback } from \"react\";\nimport { useParams, useSearchParams } from \"react-router-dom\";\nimport type { SolidTreeViewHandle } from \"../../../../components/core/tree/SolidTreeView\";\nimport { registerTree, unregisterTree } from \"../../../../components/core/tree/treeViewRegistry\";\nimport { SolidTreeView } from \"../../../../components/core/tree/SolidTreeView\";\n\nexport function TreePage() {\n const params = useParams();\n const [searchParams, setSearchParams] = useSearchParams();\n\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\n const treeId = `page:${moduleName}:${modelName}:${menuItemId}:${menuItemName}:${actionId}:${actionName}`;\n\n const setTreeRef = useCallback((handle: SolidTreeViewHandle | null) => {\n if (handle) {\n registerTree(treeId, handle);\n return;\n }\n unregisterTree(treeId);\n }, [treeId]);\n\n return <SolidTreeView ref={setTreeRef} key={moduleName + modelName + menuItemId + menuItemName + actionId + actionName} {...params} embeded={false} moduleName={moduleName} modelName={modelName} />;\n}\n"]}
@@ -0,0 +1,30 @@
1
+ import { camelCase } from "change-case";
2
+ import { useCallback } from "react";
3
+ import { useParams, useSearchParams } from "react-router-dom";
4
+ import type { SolidTreeViewHandle } from "../../../../components/core/tree/SolidTreeView";
5
+ import { registerTree, unregisterTree } from "../../../../components/core/tree/treeViewRegistry";
6
+ import { SolidTreeView } from "../../../../components/core/tree/SolidTreeView";
7
+
8
+ export function TreePage() {
9
+ const params = useParams();
10
+ const [searchParams, setSearchParams] = useSearchParams();
11
+
12
+ const moduleName = params.moduleName || "";
13
+ const modelName = params.modelName ? camelCase(params.modelName) : "";
14
+ const menuItemId = searchParams.get("menuItemId") || "";
15
+ const menuItemName = searchParams.get("menuItemName") || "";
16
+ const actionId = searchParams.get("actionId") || "";
17
+ const actionName = searchParams.get("actionName") || "";
18
+
19
+ const treeId = `page:${moduleName}:${modelName}:${menuItemId}:${menuItemName}:${actionId}:${actionName}`;
20
+
21
+ const setTreeRef = useCallback((handle: SolidTreeViewHandle | null) => {
22
+ if (handle) {
23
+ registerTree(treeId, handle);
24
+ return;
25
+ }
26
+ unregisterTree(treeId);
27
+ }, [treeId]);
28
+
29
+ return <SolidTreeView ref={setTreeRef} key={moduleName + modelName + menuItemId + menuItemName + actionId + actionName} {...params} embeded={false} moduleName={moduleName} modelName={modelName} />;
30
+ }
@@ -1 +1 @@
1
- {"version":3,"file":"solidRoutes.d.ts","sourceRoot":"","sources":["../../src/routes/solidRoutes.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAwBpD,OAAO,KAAK,EAAE,kBAAkB,EAAiB,MAAM,SAAS,CAAC;AAEjE,wBAAgB,cAAc,CAAC,OAAO,GAAE,kBAAuB,GAAG,WAAW,EAAE,CA8D9E"}
1
+ {"version":3,"file":"solidRoutes.d.ts","sourceRoot":"","sources":["../../src/routes/solidRoutes.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAwBpD,OAAO,KAAK,EAAE,kBAAkB,EAAiB,MAAM,SAAS,CAAC;AAGjE,wBAAgB,cAAc,CAAC,OAAO,GAAE,kBAAuB,GAAG,WAAW,EAAE,CA+D9E"}
@@ -31,6 +31,7 @@ import { InitiateLoginPage } from "./pages/auth/InitiateLoginPage";
31
31
  import { InitiateRegisterPage } from "./pages/auth/InitiateRegisterPage";
32
32
  import { InitiateGoogleOauthPage } from "./pages/auth/InitiateGoogleOauthPage";
33
33
  import { SsoPage } from "./pages/auth/SsoPage";
34
+ import { TreePage } from "./pages/admin/core/TreePage";
34
35
  export function getSolidRoutes(options) {
35
36
  if (options === void 0) { options = {}; }
36
37
  var _a = options.extraAuthRoutes, extraAuthRoutes = _a === void 0 ? [] : _a, _b = options.extraAdminRoutes, extraAdminRoutes = _b === void 0 ? [] : _b, _c = options.extraRoutes, extraRoutes = _c === void 0 ? [] : _c, _d = options.elementOverrides, elementOverrides = _d === void 0 ? {} : _d;
@@ -60,6 +61,7 @@ export function getSolidRoutes(options) {
60
61
  { path: "/admin", element: pick("admin", _jsx(AdminPage, {})) },
61
62
  { path: "/admin/core/:moduleName/home", element: pick("moduleHome", _jsx(ModuleHomePage, {})) },
62
63
  { path: "/admin/core/:moduleName/:modelName/list", element: pick("list", _jsx(ListPage, {})) },
64
+ { path: "/admin/core/:moduleName/:modelName/tree", element: pick("tree", _jsx(TreePage, {})) },
63
65
  { path: "/admin/core/:moduleName/:modelName/kanban", element: pick("kanban", _jsx(KanbanPage, {})) },
64
66
  { path: "/admin/core/:moduleName/:modelName/form/:id", element: pick("form", _jsx(FormPage, {})) },
65
67
  { path: "/admin/core/:moduleName/settings/:settings", element: pick("settings", _jsx(SettingsPage, {})) }
@@ -1 +1 @@
1
- {"version":3,"file":"solidRoutes.js","sourceRoot":"","sources":["../../src/routes/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,EAAE,OAAO,EAAE,IAAI,CAAC,OAAO,EAAE,KAAC,SAAS,KAAG,CAAC,EAAE;QACzD,EAAE,IAAI,EAAE,YAAY,EAAE,OAAO,EAAE,IAAI,CAAC,UAAU,EAAE,KAAC,YAAY,KAAG,CAAC,EAAE;QACnE,EAAE,OAAO,EAAE,IAAI,CAAC,YAAY,EAAE,KAAC,iBAAiB,KAAG,CAAC,EAAE,QAAQ,EAAE,YAAY,EAAE;QAC9E;YACE,OAAO,EAAE,IAAI,CAAC,WAAW,EAAE,KAAC,SAAS,KAAG,CAAC;YACzC,QAAQ,EAAE;gBACR;oBACE,OAAO,EAAE,IAAI,CAAC,aAAa,EAAE,KAAC,kBAAkB,KAAG,CAAC;oBACpD,QAAQ,EAAE,aAAa;iBACxB;aACF;SACF;OACE,WAAW;QACd,EAAE,IAAI,EAAE,GAAG,EAAE,OAAO,EAAE,KAAC,QAAQ,IAAC,EAAE,EAAC,aAAa,EAAC,OAAO,SAAG,EAAE;QAC7D,EAAE,IAAI,EAAE,GAAG,EAAE,OAAO,EAAE,KAAC,QAAQ,IAAC,EAAE,EAAC,YAAY,EAAC,OAAO,SAAG,EAAE;cAC5D;AACJ,CAAC","sourcesContent":["import type { RouteObject } from \"react-router-dom\";\nimport { Navigate } from \"react-router-dom\";\nimport { AuthGuard } from \"./guards/AuthGuard\";\nimport { AdminLayoutWrapper } from \"../layouts/AdminLayoutWrapper\";\nimport { AuthLayoutWrapper } from \"../layouts/AuthLayoutWrapper\";\nimport { ErrorPage } from \"./pages/ErrorPage\";\nimport { NotFoundPage } from \"./pages/NotFoundPage\";\nimport { AdminPage } from \"./pages/admin/AdminPage\";\nimport { ModuleHomePage } from \"./pages/admin/core/ModuleHomePage\";\nimport { ListPage } from \"./pages/admin/core/ListPage\";\nimport { KanbanPage } from \"./pages/admin/core/KanbanPage\";\nimport { FormPage } from \"./pages/admin/core/FormPage\";\nimport { SettingsPage } from \"./pages/admin/core/SettingsPage\";\nimport { LoginPage } from \"./pages/auth/LoginPage\";\nimport { RegisterPage } from \"./pages/auth/RegisterPage\";\nimport { ForgotPasswordPage } from \"./pages/auth/ForgotPasswordPage\";\nimport { InitiateForgotPasswordPage } from \"./pages/auth/InitiateForgotPasswordPage\";\nimport { InitiateForgotPasswordThankYouPage } from \"./pages/auth/InitiateForgotPasswordThankYouPage\";\nimport { ConfirmForgotPasswordPage } from \"./pages/auth/ConfirmForgotPasswordPage\";\nimport { ResetPasswordPage } from \"./pages/auth/ResetPasswordPage\";\nimport { InitiateLoginPage } from \"./pages/auth/InitiateLoginPage\";\nimport { InitiateRegisterPage } from \"./pages/auth/InitiateRegisterPage\";\nimport { InitiateGoogleOauthPage } from \"./pages/auth/InitiateGoogleOauthPage\";\nimport { SsoPage } from \"./pages/auth/SsoPage\";\nimport type { SolidRoutesOptions, SolidRouteKey } from \"./types\";\n\nexport function getSolidRoutes(options: SolidRoutesOptions = {}): RouteObject[] {\n const {\n extraAuthRoutes = [],\n extraAdminRoutes = [],\n extraRoutes = [],\n elementOverrides = {},\n } = options;\n\n const pick = (key: SolidRouteKey, fallback: JSX.Element) =>\n (elementOverrides[key] as JSX.Element) || fallback;\n\n const authChildren: RouteObject[] = [\n // Password based login, Passwordless login initiate otp\n { path: \"/auth/login\", element: pick(\"login\", <LoginPage />) },\n // Password based registration, Passwordless registration initiate otp\n { path: \"/auth/register\", element: pick(\"register\", <RegisterPage />) },\n // Passwordless login confirm otp\n { path: \"/auth/initiate-login\", element: pick(\"initiateLogin\", <InitiateLoginPage />) },\n // Passwordless registration confirm otp\n { path: \"/auth/initiate-register\", element: pick(\"initiateRegister\", <InitiateRegisterPage />) },\n\n // Forgot password flow\n { path: \"/auth/forgot-password\", element: pick(\"forgotPassword\", <ForgotPasswordPage />) },\n { path: \"/auth/initiate-forgot-password\", element: pick(\"initiateForgotPassword\", <InitiateForgotPasswordPage />) },\n { path: \"/auth/initiate-forgot-password-thank-you\", element: pick(\"initiateForgotPasswordThankYou\", <InitiateForgotPasswordThankYouPage />) },\n { path: \"/auth/confirm-forgot-password\", element: pick(\"confirmForgotPassword\", <ConfirmForgotPasswordPage />) },\n \n // ??? not used ???\n { path: \"/auth/reset-password\", element: pick(\"resetPassword\", <ResetPasswordPage />) },\n\n { path: \"/auth/initiate-google-oauth\", element: pick(\"initiateGoogleOauth\", <InitiateGoogleOauthPage />) },\n { path: \"/auth/sso\", element: pick(\"sso\", <SsoPage />) },\n ...extraAuthRoutes,\n ];\n\n const adminChildren: RouteObject[] = [\n { path: \"/admin\", element: pick(\"admin\", <AdminPage />) },\n { path: \"/admin/core/:moduleName/home\", element: pick(\"moduleHome\", <ModuleHomePage />) },\n { path: \"/admin/core/:moduleName/:modelName/list\", element: pick(\"list\", <ListPage />) },\n { path: \"/admin/core/:moduleName/:modelName/kanban\", element: pick(\"kanban\", <KanbanPage />) },\n { path: \"/admin/core/:moduleName/:modelName/form/:id\", element: pick(\"form\", <FormPage />) },\n { path: \"/admin/core/:moduleName/settings/:settings\", element: pick(\"settings\", <SettingsPage />) },\n ...extraAdminRoutes,\n ];\n\n return [\n { path: \"/error\", element: pick(\"error\", <ErrorPage />) },\n { path: \"/not-found\", element: pick(\"notFound\", <NotFoundPage />) },\n { element: pick(\"authLayout\", <AuthLayoutWrapper />), children: authChildren },\n {\n element: pick(\"authGuard\", <AuthGuard />),\n children: [\n {\n element: pick(\"adminLayout\", <AdminLayoutWrapper />),\n children: adminChildren,\n },\n ],\n },\n ...extraRoutes,\n { path: \"/\", element: <Navigate to=\"/auth/login\" replace /> },\n { path: \"*\", element: <Navigate to=\"/not-found\" replace /> },\n ];\n}\n"]}
1
+ {"version":3,"file":"solidRoutes.js","sourceRoot":"","sources":["../../src/routes/solidRoutes.tsx"],"names":[],"mappings":";;;;;;;;;;AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAC5C,OAAO,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAC/C,OAAO,EAAE,kBAAkB,EAAE,MAAM,+BAA+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AC,OAAO,EAAE,KAAC,SAAS,KAAG,CAAC,EAAE;QACzD,EAAE,IAAI,EAAE,YAAY,EAAE,OAAO,EAAE,IAAI,CAAC,UAAU,EAAE,KAAC,YAAY,KAAG,CAAC,EAAE;QACnE,EAAE,OAAO,EAAE,IAAI,CAAC,YAAY,EAAE,KAAC,iBAAiB,KAAG,CAAC,EAAE,QAAQ,EAAE,YAAY,EAAE;QAC9E;YACE,OAAO,EAAE,IAAI,CAAC,WAAW,EAAE,KAAC,SAAS,KAAG,CAAC;YACzC,QAAQ,EAAE;gBACR;oBACE,OAAO,EAAE,IAAI,CAAC,aAAa,EAAE,KAAC,kBAAkB,KAAG,CAAC;oBACpD,QAAQ,EAAE,aAAa;iBACxB;aACF;SACF;OACE,WAAW;QACd,EAAE,IAAI,EAAE,GAAG,EAAE,OAAO,EAAE,KAAC,QAAQ,IAAC,EAAE,EAAC,aAAa,EAAC,OAAO,SAAG,EAAE;QAC7D,EAAE,IAAI,EAAE,GAAG,EAAE,OAAO,EAAE,KAAC,QAAQ,IAAC,EAAE,EAAC,YAAY,EAAC,OAAO,SAAG,EAAE;cAC5D;AACJ,CAAC","sourcesContent":["import type { RouteObject } from \"react-router-dom\";\nimport { Navigate } from \"react-router-dom\";\nimport { AuthGuard } from \"./guards/AuthGuard\";\nimport { AdminLayoutWrapper } from \"../layouts/AdminLayoutWrapper\";\nimport { AuthLayoutWrapper } from \"../layouts/AuthLayoutWrapper\";\nimport { ErrorPage } from \"./pages/ErrorPage\";\nimport { NotFoundPage } from \"./pages/NotFoundPage\";\nimport { AdminPage } from \"./pages/admin/AdminPage\";\nimport { ModuleHomePage } from \"./pages/admin/core/ModuleHomePage\";\nimport { ListPage } from \"./pages/admin/core/ListPage\";\nimport { KanbanPage } from \"./pages/admin/core/KanbanPage\";\nimport { FormPage } from \"./pages/admin/core/FormPage\";\nimport { SettingsPage } from \"./pages/admin/core/SettingsPage\";\nimport { LoginPage } from \"./pages/auth/LoginPage\";\nimport { RegisterPage } from \"./pages/auth/RegisterPage\";\nimport { ForgotPasswordPage } from \"./pages/auth/ForgotPasswordPage\";\nimport { InitiateForgotPasswordPage } from \"./pages/auth/InitiateForgotPasswordPage\";\nimport { InitiateForgotPasswordThankYouPage } from \"./pages/auth/InitiateForgotPasswordThankYouPage\";\nimport { ConfirmForgotPasswordPage } from \"./pages/auth/ConfirmForgotPasswordPage\";\nimport { ResetPasswordPage } from \"./pages/auth/ResetPasswordPage\";\nimport { InitiateLoginPage } from \"./pages/auth/InitiateLoginPage\";\nimport { InitiateRegisterPage } from \"./pages/auth/InitiateRegisterPage\";\nimport { InitiateGoogleOauthPage } from \"./pages/auth/InitiateGoogleOauthPage\";\nimport { SsoPage } from \"./pages/auth/SsoPage\";\nimport type { SolidRoutesOptions, SolidRouteKey } from \"./types\";\nimport { TreePage } from \"./pages/admin/core/TreePage\";\n\nexport function getSolidRoutes(options: SolidRoutesOptions = {}): RouteObject[] {\n const {\n extraAuthRoutes = [],\n extraAdminRoutes = [],\n extraRoutes = [],\n elementOverrides = {},\n } = options;\n\n const pick = (key: SolidRouteKey, fallback: JSX.Element) =>\n (elementOverrides[key] as JSX.Element) || fallback;\n\n const authChildren: RouteObject[] = [\n // Password based login, Passwordless login initiate otp\n { path: \"/auth/login\", element: pick(\"login\", <LoginPage />) },\n // Password based registration, Passwordless registration initiate otp\n { path: \"/auth/register\", element: pick(\"register\", <RegisterPage />) },\n // Passwordless login confirm otp\n { path: \"/auth/initiate-login\", element: pick(\"initiateLogin\", <InitiateLoginPage />) },\n // Passwordless registration confirm otp\n { path: \"/auth/initiate-register\", element: pick(\"initiateRegister\", <InitiateRegisterPage />) },\n\n // Forgot password flow\n { path: \"/auth/forgot-password\", element: pick(\"forgotPassword\", <ForgotPasswordPage />) },\n { path: \"/auth/initiate-forgot-password\", element: pick(\"initiateForgotPassword\", <InitiateForgotPasswordPage />) },\n { path: \"/auth/initiate-forgot-password-thank-you\", element: pick(\"initiateForgotPasswordThankYou\", <InitiateForgotPasswordThankYouPage />) },\n { path: \"/auth/confirm-forgot-password\", element: pick(\"confirmForgotPassword\", <ConfirmForgotPasswordPage />) },\n\n // ??? not used ???\n { path: \"/auth/reset-password\", element: pick(\"resetPassword\", <ResetPasswordPage />) },\n\n { path: \"/auth/initiate-google-oauth\", element: pick(\"initiateGoogleOauth\", <InitiateGoogleOauthPage />) },\n { path: \"/auth/sso\", element: pick(\"sso\", <SsoPage />) },\n ...extraAuthRoutes,\n ];\n\n const adminChildren: RouteObject[] = [\n { path: \"/admin\", element: pick(\"admin\", <AdminPage />) },\n { path: \"/admin/core/:moduleName/home\", element: pick(\"moduleHome\", <ModuleHomePage />) },\n { path: \"/admin/core/:moduleName/:modelName/list\", element: pick(\"list\", <ListPage />) },\n { path: \"/admin/core/:moduleName/:modelName/tree\", element: pick(\"tree\", <TreePage />) },\n { path: \"/admin/core/:moduleName/:modelName/kanban\", element: pick(\"kanban\", <KanbanPage />) },\n { path: \"/admin/core/:moduleName/:modelName/form/:id\", element: pick(\"form\", <FormPage />) },\n { path: \"/admin/core/:moduleName/settings/:settings\", element: pick(\"settings\", <SettingsPage />) },\n ...extraAdminRoutes,\n ];\n\n return [\n { path: \"/error\", element: pick(\"error\", <ErrorPage />) },\n { path: \"/not-found\", element: pick(\"notFound\", <NotFoundPage />) },\n { element: pick(\"authLayout\", <AuthLayoutWrapper />), children: authChildren },\n {\n element: pick(\"authGuard\", <AuthGuard />),\n children: [\n {\n element: pick(\"adminLayout\", <AdminLayoutWrapper />),\n children: adminChildren,\n },\n ],\n },\n ...extraRoutes,\n { path: \"/\", element: <Navigate to=\"/auth/login\" replace /> },\n { path: \"*\", element: <Navigate to=\"/not-found\" replace /> },\n ];\n}\n"]}
@@ -23,6 +23,7 @@ import { InitiateRegisterPage } from "./pages/auth/InitiateRegisterPage";
23
23
  import { InitiateGoogleOauthPage } from "./pages/auth/InitiateGoogleOauthPage";
24
24
  import { SsoPage } from "./pages/auth/SsoPage";
25
25
  import type { SolidRoutesOptions, SolidRouteKey } from "./types";
26
+ import { TreePage } from "./pages/admin/core/TreePage";
26
27
 
27
28
  export function getSolidRoutes(options: SolidRoutesOptions = {}): RouteObject[] {
28
29
  const {
@@ -50,7 +51,7 @@ export function getSolidRoutes(options: SolidRoutesOptions = {}): RouteObject[]
50
51
  { path: "/auth/initiate-forgot-password", element: pick("initiateForgotPassword", <InitiateForgotPasswordPage />) },
51
52
  { path: "/auth/initiate-forgot-password-thank-you", element: pick("initiateForgotPasswordThankYou", <InitiateForgotPasswordThankYouPage />) },
52
53
  { path: "/auth/confirm-forgot-password", element: pick("confirmForgotPassword", <ConfirmForgotPasswordPage />) },
53
-
54
+
54
55
  // ??? not used ???
55
56
  { path: "/auth/reset-password", element: pick("resetPassword", <ResetPasswordPage />) },
56
57
 
@@ -63,6 +64,7 @@ export function getSolidRoutes(options: SolidRoutesOptions = {}): RouteObject[]
63
64
  { path: "/admin", element: pick("admin", <AdminPage />) },
64
65
  { path: "/admin/core/:moduleName/home", element: pick("moduleHome", <ModuleHomePage />) },
65
66
  { path: "/admin/core/:moduleName/:modelName/list", element: pick("list", <ListPage />) },
67
+ { path: "/admin/core/:moduleName/:modelName/tree", element: pick("tree", <TreePage />) },
66
68
  { path: "/admin/core/:moduleName/:modelName/kanban", element: pick("kanban", <KanbanPage />) },
67
69
  { path: "/admin/core/:moduleName/:modelName/form/:id", element: pick("form", <FormPage />) },
68
70
  { path: "/admin/core/:moduleName/settings/:settings", element: pick("settings", <SettingsPage />) },
@@ -1,6 +1,6 @@
1
1
  import type { ReactNode } from "react";
2
2
  import type { RouteObject } from "react-router-dom";
3
- export type SolidRouteKey = "error" | "notFound" | "login" | "register" | "forgotPassword" | "initiateForgotPassword" | "initiateForgotPasswordThankYou" | "confirmForgotPassword" | "resetPassword" | "otpVerify" | "initiateLogin" | "initiateRegister" | "initiateGoogleOauth" | "sso" | "admin" | "moduleHome" | "list" | "kanban" | "form" | "settings" | "authLayout" | "adminLayout" | "authGuard";
3
+ export type SolidRouteKey = "error" | "notFound" | "login" | "register" | "forgotPassword" | "initiateForgotPassword" | "initiateForgotPasswordThankYou" | "confirmForgotPassword" | "resetPassword" | "otpVerify" | "initiateLogin" | "initiateRegister" | "initiateGoogleOauth" | "sso" | "admin" | "moduleHome" | "list" | "tree" | "kanban" | "form" | "settings" | "authLayout" | "adminLayout" | "authGuard";
4
4
  export type SolidRoutesOptions = {
5
5
  extraAuthRoutes?: RouteObject[];
6
6
  extraAdminRoutes?: RouteObject[];
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/routes/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAEpD,MAAM,MAAM,aAAa,GACrB,OAAO,GACP,UAAU,GACV,OAAO,GACP,UAAU,GACV,gBAAgB,GAChB,wBAAwB,GACxB,gCAAgC,GAChC,uBAAuB,GACvB,eAAe,GACf,WAAW,GACX,eAAe,GACf,kBAAkB,GAClB,qBAAqB,GACrB,KAAK,GACL,OAAO,GACP,YAAY,GACZ,MAAM,GACN,QAAQ,GACR,MAAM,GACN,UAAU,GACV,YAAY,GACZ,aAAa,GACb,WAAW,CAAC;AAEhB,MAAM,MAAM,kBAAkB,GAAG;IAC/B,eAAe,CAAC,EAAE,WAAW,EAAE,CAAC;IAChC,gBAAgB,CAAC,EAAE,WAAW,EAAE,CAAC;IACjC,WAAW,CAAC,EAAE,WAAW,EAAE,CAAC;IAC5B,gBAAgB,CAAC,EAAE,OAAO,CAAC,MAAM,CAAC,aAAa,EAAE,SAAS,CAAC,CAAC,CAAC;CAC9D,CAAC"}
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/routes/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAEpD,MAAM,MAAM,aAAa,GACrB,OAAO,GACP,UAAU,GACV,OAAO,GACP,UAAU,GACV,gBAAgB,GAChB,wBAAwB,GACxB,gCAAgC,GAChC,uBAAuB,GACvB,eAAe,GACf,WAAW,GACX,eAAe,GACf,kBAAkB,GAClB,qBAAqB,GACrB,KAAK,GACL,OAAO,GACP,YAAY,GACZ,MAAM,GACN,MAAM,GACN,QAAQ,GACR,MAAM,GACN,UAAU,GACV,YAAY,GACZ,aAAa,GACb,WAAW,CAAC;AAEhB,MAAM,MAAM,kBAAkB,GAAG;IAC/B,eAAe,CAAC,EAAE,WAAW,EAAE,CAAC;IAChC,gBAAgB,CAAC,EAAE,WAAW,EAAE,CAAC;IACjC,WAAW,CAAC,EAAE,WAAW,EAAE,CAAC;IAC5B,gBAAgB,CAAC,EAAE,OAAO,CAAC,MAAM,CAAC,aAAa,EAAE,SAAS,CAAC,CAAC,CAAC;CAC9D,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/routes/types.ts"],"names":[],"mappings":"","sourcesContent":["import type { ReactNode } from \"react\";\nimport type { RouteObject } from \"react-router-dom\";\n\nexport type SolidRouteKey =\n | \"error\"\n | \"notFound\"\n | \"login\"\n | \"register\"\n | \"forgotPassword\"\n | \"initiateForgotPassword\"\n | \"initiateForgotPasswordThankYou\"\n | \"confirmForgotPassword\"\n | \"resetPassword\"\n | \"otpVerify\"\n | \"initiateLogin\"\n | \"initiateRegister\"\n | \"initiateGoogleOauth\"\n | \"sso\"\n | \"admin\"\n | \"moduleHome\"\n | \"list\"\n | \"kanban\"\n | \"form\"\n | \"settings\"\n | \"authLayout\"\n | \"adminLayout\"\n | \"authGuard\";\n\nexport type SolidRoutesOptions = {\n extraAuthRoutes?: RouteObject[];\n extraAdminRoutes?: RouteObject[];\n extraRoutes?: RouteObject[];\n elementOverrides?: Partial<Record<SolidRouteKey, ReactNode>>;\n};\n"]}
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/routes/types.ts"],"names":[],"mappings":"","sourcesContent":["import type { ReactNode } from \"react\";\nimport type { RouteObject } from \"react-router-dom\";\n\nexport type SolidRouteKey =\n | \"error\"\n | \"notFound\"\n | \"login\"\n | \"register\"\n | \"forgotPassword\"\n | \"initiateForgotPassword\"\n | \"initiateForgotPasswordThankYou\"\n | \"confirmForgotPassword\"\n | \"resetPassword\"\n | \"otpVerify\"\n | \"initiateLogin\"\n | \"initiateRegister\"\n | \"initiateGoogleOauth\"\n | \"sso\"\n | \"admin\"\n | \"moduleHome\"\n | \"list\"\n | \"tree\"\n | \"kanban\"\n | \"form\"\n | \"settings\"\n | \"authLayout\"\n | \"adminLayout\"\n | \"authGuard\";\n\nexport type SolidRoutesOptions = {\n extraAuthRoutes?: RouteObject[];\n extraAdminRoutes?: RouteObject[];\n extraRoutes?: RouteObject[];\n elementOverrides?: Partial<Record<SolidRouteKey, ReactNode>>;\n};\n"]}
@@ -19,6 +19,7 @@ export type SolidRouteKey =
19
19
  | "admin"
20
20
  | "moduleHome"
21
21
  | "list"
22
+ | "tree"
22
23
  | "kanban"
23
24
  | "form"
24
25
  | "settings"
@@ -34,7 +34,10 @@ import {
34
34
  SolidFormWidgetProps,
35
35
  SolidFormFieldWidgetProps,
36
36
  SolidChartRendererProps,
37
- SolidBeforeListDataLoad
37
+ SolidBeforeListDataLoad,
38
+ SolidBeforeTreeNodeLoad,
39
+ SolidTreeUiEventResponse,
40
+ SolidTreeLoad
38
41
  } from './solid-core';
39
42
 
40
43
  type ChildContainerProps = {
@@ -72,5 +75,8 @@ export type {
72
75
  SolidFormWidgetProps,
73
76
  SolidChartRendererProps,
74
77
  SolidFormFieldWidgetProps,
75
- SolidBeforeListDataLoad
78
+ SolidBeforeListDataLoad,
79
+ SolidBeforeTreeNodeLoad,
80
+ SolidTreeUiEventResponse,
81
+ SolidTreeLoad
76
82
  };
@@ -122,6 +122,10 @@ export type SolidUiEvents =
122
122
  // Implemented
123
123
  "onListLoad" |
124
124
  // Implemented
125
+ "onBeforeTreeLoad" |
126
+ // Implemented
127
+ "onTreeLoad" |
128
+ // Implemented
125
129
  "onBeforeListDataLoad" |
126
130
  // Not Implemented
127
131
  "afterLogin" |
@@ -196,6 +200,32 @@ export type SolidBeforeListDataLoad = {
196
200
  params?: SolidListViewParams
197
201
  }
198
202
 
203
+ export type SolidBeforeTreeNodeLoad = {
204
+ type: SolidUiEvents;
205
+ level: number;
206
+ levelFieldName: string;
207
+ fieldsMetadata: FieldsMetadata;
208
+ viewMetadata: SolidView;
209
+ treeViewLayout: ListLayoutType;
210
+ filter?: any,
211
+ queryParams?: any,
212
+ user: any,
213
+ session: Session,
214
+ params?: SolidListViewParams
215
+ }
216
+
217
+ export type SolidTreeLoad = {
218
+ type: SolidUiEvents;
219
+ fieldsMetadata: FieldsMetadata;
220
+ viewMetadata: SolidView;
221
+ treeViewLayout: ListLayoutType;
222
+ nodes: any[];
223
+ queryParams?: any,
224
+ user: any,
225
+ session: Session,
226
+ params?: SolidListViewParams
227
+ }
228
+
199
229
  export type SolidListUiEventResponse = {
200
230
  filterApplied?: Boolean;
201
231
  newFilter?: any;
@@ -205,6 +235,16 @@ export type SolidListUiEventResponse = {
205
235
  newLayout?: LayoutNode;
206
236
  }
207
237
 
238
+ export type SolidTreeUiEventResponse = {
239
+ filterApplied?: Boolean;
240
+ newFilter?: any,
241
+ dataChanged?: Boolean;
242
+ newNodes?: any[];
243
+ layoutChanged?: Boolean;
244
+ newLayout?: LayoutNode;
245
+ }
246
+
247
+
208
248
  export type SolidAfterLoginEvent = {
209
249
  type: SolidUiEvents;
210
250
  user: any
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@solidxai/core-ui",
3
- "version": "0.1.3",
3
+ "version": "0.1.4-beta.0",
4
4
  "scripts": {
5
5
  "prebuild": "npm run copy-resources && npm run copy-styles",
6
6
  "build": "tsc -p tsconfig.json && tsc-alias -p tsconfig.json",