@mantajs/core 0.1.3 → 0.1.5
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.
|
@@ -9,6 +9,16 @@ const Medusa = require("@medusajs/js-sdk");
|
|
|
9
9
|
const _interopDefault = (e2) => e2 && e2.__esModule ? e2 : { default: e2 };
|
|
10
10
|
const React__default = /* @__PURE__ */ _interopDefault(React);
|
|
11
11
|
const Medusa__default = /* @__PURE__ */ _interopDefault(Medusa);
|
|
12
|
+
const EmployeesPage = () => {
|
|
13
|
+
return /* @__PURE__ */ jsxRuntime.jsx(ui.Container, { className: "divide-y p-0", children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "px-6 py-4", children: [
|
|
14
|
+
/* @__PURE__ */ jsxRuntime.jsx(ui.Heading, { level: "h1", children: "Employees" }),
|
|
15
|
+
/* @__PURE__ */ jsxRuntime.jsx(ui.Text, { className: "text-ui-fg-subtle", children: "Manage employees and their company assignments." })
|
|
16
|
+
] }) });
|
|
17
|
+
};
|
|
18
|
+
adminSdk.defineRouteConfig({
|
|
19
|
+
label: "Employees",
|
|
20
|
+
nested: "/companies"
|
|
21
|
+
});
|
|
12
22
|
var isCheckBoxInput = (element) => element.type === "checkbox";
|
|
13
23
|
var isDateObject = (value) => value instanceof Date;
|
|
14
24
|
var isNullOrUndefined = (value) => value == null;
|
|
@@ -5320,26 +5330,16 @@ const config = adminSdk.defineRouteConfig({
|
|
|
5320
5330
|
label: "Companies",
|
|
5321
5331
|
icon: icons.BuildingStorefront
|
|
5322
5332
|
});
|
|
5323
|
-
const EmployeesPage = () => {
|
|
5324
|
-
return /* @__PURE__ */ jsxRuntime.jsx(ui.Container, { className: "divide-y p-0", children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "px-6 py-4", children: [
|
|
5325
|
-
/* @__PURE__ */ jsxRuntime.jsx(ui.Heading, { level: "h1", children: "Employees" }),
|
|
5326
|
-
/* @__PURE__ */ jsxRuntime.jsx(ui.Text, { className: "text-ui-fg-subtle", children: "Manage employees and their company assignments." })
|
|
5327
|
-
] }) });
|
|
5328
|
-
};
|
|
5329
|
-
adminSdk.defineRouteConfig({
|
|
5330
|
-
label: "Employees",
|
|
5331
|
-
nested: "/companies"
|
|
5332
|
-
});
|
|
5333
5333
|
const widgetModule = { widgets: [] };
|
|
5334
5334
|
const routeModule = {
|
|
5335
5335
|
routes: [
|
|
5336
|
-
{
|
|
5337
|
-
Component: CompaniesPage,
|
|
5338
|
-
path: "/companies"
|
|
5339
|
-
},
|
|
5340
5336
|
{
|
|
5341
5337
|
Component: EmployeesPage,
|
|
5342
5338
|
path: "/employees"
|
|
5339
|
+
},
|
|
5340
|
+
{
|
|
5341
|
+
Component: CompaniesPage,
|
|
5342
|
+
path: "/companies"
|
|
5343
5343
|
}
|
|
5344
5344
|
]
|
|
5345
5345
|
};
|
|
@@ -1,10 +1,20 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { defineRouteConfig } from "@medusajs/admin-sdk";
|
|
3
|
-
import {
|
|
3
|
+
import { Container, Heading, Text, toast, Button, Table, FocusModal, Label, Input } from "@medusajs/ui";
|
|
4
4
|
import { BuildingStorefront, Plus, Spinner } from "@medusajs/icons";
|
|
5
5
|
import { useQueryClient, useQuery, useMutation } from "@tanstack/react-query";
|
|
6
6
|
import React, { useState } from "react";
|
|
7
7
|
import Medusa from "@medusajs/js-sdk";
|
|
8
|
+
const EmployeesPage = () => {
|
|
9
|
+
return /* @__PURE__ */ jsx(Container, { className: "divide-y p-0", children: /* @__PURE__ */ jsxs("div", { className: "px-6 py-4", children: [
|
|
10
|
+
/* @__PURE__ */ jsx(Heading, { level: "h1", children: "Employees" }),
|
|
11
|
+
/* @__PURE__ */ jsx(Text, { className: "text-ui-fg-subtle", children: "Manage employees and their company assignments." })
|
|
12
|
+
] }) });
|
|
13
|
+
};
|
|
14
|
+
defineRouteConfig({
|
|
15
|
+
label: "Employees",
|
|
16
|
+
nested: "/companies"
|
|
17
|
+
});
|
|
8
18
|
var isCheckBoxInput = (element) => element.type === "checkbox";
|
|
9
19
|
var isDateObject = (value) => value instanceof Date;
|
|
10
20
|
var isNullOrUndefined = (value) => value == null;
|
|
@@ -5316,26 +5326,16 @@ const config = defineRouteConfig({
|
|
|
5316
5326
|
label: "Companies",
|
|
5317
5327
|
icon: BuildingStorefront
|
|
5318
5328
|
});
|
|
5319
|
-
const EmployeesPage = () => {
|
|
5320
|
-
return /* @__PURE__ */ jsx(Container, { className: "divide-y p-0", children: /* @__PURE__ */ jsxs("div", { className: "px-6 py-4", children: [
|
|
5321
|
-
/* @__PURE__ */ jsx(Heading, { level: "h1", children: "Employees" }),
|
|
5322
|
-
/* @__PURE__ */ jsx(Text, { className: "text-ui-fg-subtle", children: "Manage employees and their company assignments." })
|
|
5323
|
-
] }) });
|
|
5324
|
-
};
|
|
5325
|
-
defineRouteConfig({
|
|
5326
|
-
label: "Employees",
|
|
5327
|
-
nested: "/companies"
|
|
5328
|
-
});
|
|
5329
5329
|
const widgetModule = { widgets: [] };
|
|
5330
5330
|
const routeModule = {
|
|
5331
5331
|
routes: [
|
|
5332
|
-
{
|
|
5333
|
-
Component: CompaniesPage,
|
|
5334
|
-
path: "/companies"
|
|
5335
|
-
},
|
|
5336
5332
|
{
|
|
5337
5333
|
Component: EmployeesPage,
|
|
5338
5334
|
path: "/employees"
|
|
5335
|
+
},
|
|
5336
|
+
{
|
|
5337
|
+
Component: CompaniesPage,
|
|
5338
|
+
path: "/companies"
|
|
5339
5339
|
}
|
|
5340
5340
|
]
|
|
5341
5341
|
};
|