@goplusvn/core 0.1.45 → 0.1.46
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": "@goplusvn/core",
|
|
3
3
|
"description": "GoPlusVN Platform Kit - ERP kernel: layout, RBAC, CRUD, multi-tenant, system pages",
|
|
4
|
-
"version": "0.1.
|
|
4
|
+
"version": "0.1.46",
|
|
5
5
|
"private": false,
|
|
6
6
|
"publishConfig": {
|
|
7
7
|
"registry": "https://registry.npmjs.org",
|
|
@@ -54,6 +54,26 @@
|
|
|
54
54
|
"./utils/cccd-parser": "./src/utils/cccd-parser.ts",
|
|
55
55
|
"./configs/status": "./src/configs/status.ts",
|
|
56
56
|
"./configs/entities": "./src/configs/entities/index.ts",
|
|
57
|
+
"./ui/primitives/button": "./src/ui/primitives/button.tsx",
|
|
58
|
+
"./ui/primitives/input": "./src/ui/primitives/input.tsx",
|
|
59
|
+
"./ui/primitives/switch": "./src/ui/primitives/switch.tsx",
|
|
60
|
+
"./ui/primitives/label": "./src/ui/primitives/label.tsx",
|
|
61
|
+
"./ui/primitives/dialog": "./src/ui/primitives/dialog.tsx",
|
|
62
|
+
"./ui/primitives/tabs": "./src/ui/primitives/tabs.tsx",
|
|
63
|
+
"./ui/primitives/sidebar": "./src/ui/primitives/sidebar.tsx",
|
|
64
|
+
"./ui/primitives/select": "./src/ui/primitives/select.tsx",
|
|
65
|
+
"./ui/forms/multi-select": "./src/ui/forms/multi-select.tsx",
|
|
66
|
+
"./ui/data-display/collapsible": "./src/ui/data-display/collapsible.tsx",
|
|
67
|
+
"./system/services/settings-service": "./src/system/services/settings-service.ts",
|
|
68
|
+
"./system/services/system-category-service": "./src/system/services/system-category-service.ts",
|
|
69
|
+
"./system/pages/system-settings-page": "./src/system/pages/system-settings-page.tsx",
|
|
70
|
+
"./system/pages/system-category-page": "./src/system/pages/system-category-page.tsx",
|
|
71
|
+
"./rbac/role-service": "./src/rbac/role-service.ts",
|
|
72
|
+
"./rbac/resource-service": "./src/rbac/resource-service.ts",
|
|
73
|
+
"./infrastructure/cron/cron-manager": "./src/infrastructure/cron/cron-manager.ts",
|
|
74
|
+
"./infrastructure/cron/types": "./src/infrastructure/cron/types.ts",
|
|
75
|
+
"./crud/pages/entity-crud-page": "./src/crud/pages/entity-crud-page.tsx",
|
|
76
|
+
"./auth/auth-service": "./src/auth/auth-service.ts",
|
|
57
77
|
"./package.json": "./package.json",
|
|
58
78
|
"./providers/brand-theme": "./src/providers/brand-theme.ts"
|
|
59
79
|
},
|
|
@@ -12,8 +12,6 @@ import type {
|
|
|
12
12
|
NavigationType,
|
|
13
13
|
} from "../../types";
|
|
14
14
|
|
|
15
|
-
import { navigationsData as defaultNavigationsData } from "../../configs/data/navigations";
|
|
16
|
-
|
|
17
15
|
import { ensureLocalizedPathname } from "../../utils";
|
|
18
16
|
import { i18n } from "../../configs";
|
|
19
17
|
import {
|
|
@@ -48,8 +46,9 @@ export function TopBarHeaderMenubar({
|
|
|
48
46
|
|
|
49
47
|
const locale = (params.lang as LocaleType) || i18n.defaultLocale;
|
|
50
48
|
|
|
51
|
-
//
|
|
52
|
-
|
|
49
|
+
// Navigation do APP truyền vào — core không bake menu demo nào nữa
|
|
50
|
+
// (trước 2026-07 default là 781 dòng menu mẫu GoEat ship trong npm).
|
|
51
|
+
const navItems = navigation ?? [];
|
|
53
52
|
|
|
54
53
|
// SAP Fiori Logic: Show first 5 items, group rest under "More"
|
|
55
54
|
const MAX_VISIBLE_ITEMS = 5;
|
|
@@ -46,6 +46,8 @@ const STATUS_MAP: Record<string, { color: string; dotClass: string; label: strin
|
|
|
46
46
|
accounting_revision: { color: "text-warning-text", dotClass: "bg-warning", label: "Chỉnh sửa" },
|
|
47
47
|
waiting_supplier:{ color: "text-warning-text", dotClass: "bg-warning", label: "Chờ NCC" },
|
|
48
48
|
partially_received: { color: "text-warning-text", dotClass: "bg-warning", label: "Nhận một phần" },
|
|
49
|
+
// Key dữ liệu THẬT của PurchaseOrder vinhhoa (bản local từng drift vì core thiếu key này — 2026-07 hợp nhất về core).
|
|
50
|
+
partial_received: { color: "text-warning-text", dotClass: "bg-warning", label: "Nhận một phần" },
|
|
49
51
|
delivery_adjustment: { color: "text-warning-text", dotClass: "bg-warning", label: "Điều chỉnh giao hàng" },
|
|
50
52
|
|
|
51
53
|
// Info / In-progress
|