@origen-ui/admin-cli 1.1.0 → 2.0.1

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 (159) hide show
  1. package/README.md +11 -7
  2. package/package.json +18 -2
  3. package/templates/current/clean/CHANGELOG.md +103 -0
  4. package/templates/current/clean/component-catalog.json +58 -17
  5. package/templates/current/clean/e2e/admin-shell.spec.ts +6 -0
  6. package/templates/current/clean/e2e/demo-shell.spec.ts +90 -46
  7. package/templates/current/clean/package.json +35 -21
  8. package/templates/current/clean/playwright.config.ts +1 -0
  9. package/templates/current/clean/playwright.demo.config.ts +1 -1
  10. package/templates/current/clean/scaffold.lock.json +2 -2
  11. package/templates/current/clean/scripts/clean-overlay/src/features/errors/pages/Forbidden.vue +7 -2
  12. package/templates/current/clean/scripts/clean-overlay/src/features/errors/pages/NotFound.vue +7 -2
  13. package/templates/current/clean/scripts/clean-overlay/src/features/errors/pages/ServerError.vue +7 -2
  14. package/templates/current/clean/scripts/clean-overlay/src/features/errors/pages/error-pages.spec.ts +11 -2
  15. package/templates/current/clean/scripts/clean-overlay/src/main.ts +23 -14
  16. package/templates/current/clean/scripts/clean-overlay/src/router/componentCache.ts +12 -0
  17. package/templates/current/clean/scripts/clean-overlay/src/router/componentRegistry.ts +2 -13
  18. package/templates/current/clean/scripts/clean-overlay/src/router/dynamicRoutes.spec.ts +34 -4
  19. package/templates/current/clean/scripts/clean-overlay/src/router/paths.ts +21 -0
  20. package/templates/current/clean/scripts/clean-overlay/src/router/staticRoutes.ts +6 -6
  21. package/templates/current/clean/scripts/demo-api.ts +84 -8
  22. package/templates/current/clean/scripts/generate-api.ts +87 -3
  23. package/templates/current/clean/scripts/vite-build-policy.spec.ts +1 -0
  24. package/templates/current/clean/src/api/generated/data-contracts.ts +2 -5
  25. package/templates/current/clean/src/api/generated/http-client.ts +28 -26
  26. package/templates/current/clean/src/api/generated//347/263/273/347/273/237/347/256/241/347/220/206/345/206/205/345/256/271/346/226/207/347/253/240.ts +5 -8
  27. package/templates/current/clean/src/api/generated//347/263/273/347/273/237/347/256/241/347/220/206/345/256/241/350/256/241.ts +1 -4
  28. package/templates/current/clean/src/api/generated//347/263/273/347/273/237/347/256/241/347/220/206/346/226/207/344/273/266/344/270/212/344/274/240.ts +2 -5
  29. package/templates/current/clean/src/api/generated//347/263/273/347/273/237/347/256/241/347/220/206/347/224/250/346/210/267.ts +8 -10
  30. package/templates/current/clean/src/api/generated//347/263/273/347/273/237/347/256/241/347/220/206/350/217/234/345/215/225.ts +11 -12
  31. package/templates/current/clean/src/api/generated//347/263/273/347/273/237/347/256/241/347/220/206/350/247/222/350/211/262.ts +8 -10
  32. package/templates/current/clean/src/api/generated//347/263/273/347/273/237/347/256/241/347/220/206/350/256/242/345/215/225/350/215/211/347/250/277.ts +8 -10
  33. package/templates/current/clean/src/api/generated//350/256/244/350/257/201.ts +3 -6
  34. package/templates/current/clean/src/app/errorMessage.spec.ts +76 -0
  35. package/templates/current/clean/src/app/errorMessage.ts +53 -0
  36. package/templates/current/clean/src/app/menu-host.spec.ts +77 -0
  37. package/templates/current/clean/src/app/menu.spec.ts +39 -0
  38. package/templates/current/clean/src/app/menu.ts +48 -12
  39. package/templates/current/clean/src/app/runtimeConfig.ts +1 -1
  40. package/templates/current/clean/src/demo-api.spec.ts +311 -0
  41. package/templates/current/clean/src/features/auth/pages/Login.vue +8 -2
  42. package/templates/current/clean/src/features/auth/store/auth.ts +6 -19
  43. package/templates/current/clean/src/features/errors/pages/Forbidden.vue +7 -2
  44. package/templates/current/clean/src/features/errors/pages/NotFound.vue +7 -2
  45. package/templates/current/clean/src/features/errors/pages/ServerError.vue +7 -2
  46. package/templates/current/clean/src/features/errors/pages/error-pages.spec.ts +11 -2
  47. package/templates/current/clean/src/features/system/access/api/admin-repository.ts +2 -6
  48. package/templates/current/clean/src/features/system/access/api/rbac.ts +19 -9
  49. package/templates/current/clean/src/features/system/access/composables/useAuthorizationPolling.spec.ts +134 -0
  50. package/templates/current/clean/src/features/system/access/composables/useAuthorizationPolling.ts +96 -0
  51. package/templates/current/clean/src/features/workspace/pages/Profile.vue +1 -1
  52. package/templates/current/clean/src/layouts/AdminLayout.vue +3 -0
  53. package/templates/current/clean/src/layouts/TopBar.vue +37 -6
  54. package/templates/current/clean/src/layouts/topBarMenuSearch.spec.ts +24 -1
  55. package/templates/current/clean/src/layouts/topBarMenuSearch.ts +10 -0
  56. package/templates/current/clean/src/locales/en-US.json +30 -3
  57. package/templates/current/clean/src/locales/en-US.runtime.ts +2 -0
  58. package/templates/current/clean/src/locales/index.ts +39 -26
  59. package/templates/current/clean/src/locales/zh-CN.json +30 -3
  60. package/templates/current/clean/src/locales/zh-CN.runtime.ts +2 -0
  61. package/templates/current/clean/src/locales/zh-TW.json +30 -3
  62. package/templates/current/clean/src/locales/zh-TW.runtime.ts +2 -0
  63. package/templates/current/clean/src/main.ts +23 -14
  64. package/templates/current/clean/src/router/bootstrap.ts +10 -16
  65. package/templates/current/clean/src/router/componentCache.ts +12 -0
  66. package/templates/current/clean/src/router/componentRegistry.ts +2 -13
  67. package/templates/current/clean/src/router/dynamicMenuRefresh.spec.ts +101 -0
  68. package/templates/current/clean/src/router/dynamicMenuRefresh.ts +24 -0
  69. package/templates/current/clean/src/router/dynamicRoutes.spec.ts +34 -4
  70. package/templates/current/clean/src/router/dynamicRoutes.ts +14 -3
  71. package/templates/current/clean/src/router/paths.spec.ts +50 -0
  72. package/templates/current/clean/src/router/paths.ts +21 -0
  73. package/templates/current/clean/src/router/staticRoutes.ts +6 -6
  74. package/templates/current/clean/src/templates/og-table.ts +2 -4
  75. package/templates/current/clean/tsconfig.json +0 -1
  76. package/templates/current/clean/vite.build-policy.ts +55 -8
  77. package/templates/current/clean/vite.config.ts +30 -0
  78. package/templates/current/examples/CHANGELOG.md +103 -0
  79. package/templates/current/examples/component-catalog.json +58 -17
  80. package/templates/current/examples/e2e/admin-shell.spec.ts +6 -0
  81. package/templates/current/examples/e2e/demo-shell.spec.ts +90 -46
  82. package/templates/current/examples/package.json +35 -21
  83. package/templates/current/examples/playwright.config.ts +1 -0
  84. package/templates/current/examples/playwright.demo.config.ts +1 -1
  85. package/templates/current/examples/scaffold.lock.json +2 -2
  86. package/templates/current/examples/scripts/clean-overlay/src/features/errors/pages/Forbidden.vue +7 -2
  87. package/templates/current/examples/scripts/clean-overlay/src/features/errors/pages/NotFound.vue +7 -2
  88. package/templates/current/examples/scripts/clean-overlay/src/features/errors/pages/ServerError.vue +7 -2
  89. package/templates/current/examples/scripts/clean-overlay/src/features/errors/pages/error-pages.spec.ts +11 -2
  90. package/templates/current/examples/scripts/clean-overlay/src/main.ts +23 -14
  91. package/templates/current/examples/scripts/clean-overlay/src/router/componentCache.ts +12 -0
  92. package/templates/current/examples/scripts/clean-overlay/src/router/componentRegistry.ts +2 -13
  93. package/templates/current/examples/scripts/clean-overlay/src/router/dynamicRoutes.spec.ts +34 -4
  94. package/templates/current/examples/scripts/clean-overlay/src/router/paths.ts +21 -0
  95. package/templates/current/examples/scripts/clean-overlay/src/router/staticRoutes.ts +6 -6
  96. package/templates/current/examples/scripts/demo-api.ts +84 -8
  97. package/templates/current/examples/scripts/generate-api.ts +87 -3
  98. package/templates/current/examples/scripts/vite-build-policy.spec.ts +1 -0
  99. package/templates/current/examples/src/api/generated/data-contracts.ts +2 -5
  100. package/templates/current/examples/src/api/generated/http-client.ts +28 -26
  101. package/templates/current/examples/src/api/generated//347/263/273/347/273/237/347/256/241/347/220/206/345/206/205/345/256/271/346/226/207/347/253/240.ts +5 -8
  102. package/templates/current/examples/src/api/generated//347/263/273/347/273/237/347/256/241/347/220/206/345/256/241/350/256/241.ts +1 -4
  103. package/templates/current/examples/src/api/generated//347/263/273/347/273/237/347/256/241/347/220/206/346/226/207/344/273/266/344/270/212/344/274/240.ts +2 -5
  104. package/templates/current/examples/src/api/generated//347/263/273/347/273/237/347/256/241/347/220/206/347/224/250/346/210/267.ts +8 -10
  105. package/templates/current/examples/src/api/generated//347/263/273/347/273/237/347/256/241/347/220/206/350/217/234/345/215/225.ts +11 -12
  106. package/templates/current/examples/src/api/generated//347/263/273/347/273/237/347/256/241/347/220/206/350/247/222/350/211/262.ts +8 -10
  107. package/templates/current/examples/src/api/generated//347/263/273/347/273/237/347/256/241/347/220/206/350/256/242/345/215/225/350/215/211/347/250/277.ts +8 -10
  108. package/templates/current/examples/src/api/generated//350/256/244/350/257/201.ts +3 -6
  109. package/templates/current/examples/src/app/errorMessage.spec.ts +76 -0
  110. package/templates/current/examples/src/app/errorMessage.ts +53 -0
  111. package/templates/current/examples/src/app/menu-host.spec.ts +77 -0
  112. package/templates/current/examples/src/app/menu.spec.ts +39 -0
  113. package/templates/current/examples/src/app/menu.ts +48 -12
  114. package/templates/current/examples/src/app/runtimeConfig.ts +1 -1
  115. package/templates/current/examples/src/demo-api.spec.ts +311 -0
  116. package/templates/current/examples/src/features/auth/pages/Login.vue +8 -2
  117. package/templates/current/examples/src/features/auth/store/auth.ts +6 -19
  118. package/templates/current/examples/src/features/errors/pages/Forbidden.vue +2 -1
  119. package/templates/current/examples/src/features/errors/pages/NotFound.vue +2 -1
  120. package/templates/current/examples/src/features/errors/pages/ServerError.vue +2 -1
  121. package/templates/current/examples/src/features/feature-composables.spec.ts +11 -1
  122. package/templates/current/examples/src/features/system/access/api/admin-repository.ts +2 -6
  123. package/templates/current/examples/src/features/system/access/api/rbac.ts +19 -9
  124. package/templates/current/examples/src/features/system/access/composables/useAuthorizationPolling.spec.ts +134 -0
  125. package/templates/current/examples/src/features/system/access/composables/useAuthorizationPolling.ts +96 -0
  126. package/templates/current/examples/src/features/system/menus/components/MenuEditorForm.vue +115 -28
  127. package/templates/current/examples/src/features/system/menus/composables/useMenuManagement.ts +162 -66
  128. package/templates/current/examples/src/features/system/menus/menuDraft.spec.ts +204 -0
  129. package/templates/current/examples/src/features/system/menus/menuDraft.ts +116 -0
  130. package/templates/current/examples/src/features/system/menus/menuTreePrecheck.spec.ts +268 -0
  131. package/templates/current/examples/src/features/system/menus/menuTreePrecheck.ts +317 -0
  132. package/templates/current/examples/src/features/system/roles/components/RoleEditorForm.vue +1 -0
  133. package/templates/current/examples/src/features/workspace/pages/Profile.vue +1 -1
  134. package/templates/current/examples/src/layouts/AdminLayout.vue +3 -0
  135. package/templates/current/examples/src/layouts/TopBar.vue +37 -6
  136. package/templates/current/examples/src/layouts/topBarMenuSearch.spec.ts +24 -1
  137. package/templates/current/examples/src/layouts/topBarMenuSearch.ts +10 -0
  138. package/templates/current/examples/src/locales/en-US.json +30 -3
  139. package/templates/current/examples/src/locales/en-US.runtime.ts +2 -0
  140. package/templates/current/examples/src/locales/index.ts +39 -26
  141. package/templates/current/examples/src/locales/zh-CN.json +30 -3
  142. package/templates/current/examples/src/locales/zh-CN.runtime.ts +2 -0
  143. package/templates/current/examples/src/locales/zh-TW.json +30 -3
  144. package/templates/current/examples/src/locales/zh-TW.runtime.ts +2 -0
  145. package/templates/current/examples/src/main.ts +24 -22
  146. package/templates/current/examples/src/router/bootstrap.ts +10 -16
  147. package/templates/current/examples/src/router/componentCache.ts +18 -0
  148. package/templates/current/examples/src/router/componentRegistry.ts +1 -18
  149. package/templates/current/examples/src/router/dynamicMenuRefresh.spec.ts +101 -0
  150. package/templates/current/examples/src/router/dynamicMenuRefresh.ts +24 -0
  151. package/templates/current/examples/src/router/dynamicRoutes.spec.ts +20 -2
  152. package/templates/current/examples/src/router/dynamicRoutes.ts +14 -3
  153. package/templates/current/examples/src/router/paths.spec.ts +50 -0
  154. package/templates/current/examples/src/router/paths.ts +21 -0
  155. package/templates/current/examples/src/router/staticRoutes.ts +3 -3
  156. package/templates/current/examples/src/templates/og-table.ts +2 -4
  157. package/templates/current/examples/tsconfig.json +0 -1
  158. package/templates/current/examples/vite.build-policy.ts +55 -8
  159. package/templates/current/examples/vite.config.ts +30 -0
@@ -7,10 +7,7 @@ const packageBuildDirectories = new Set(['dist', 'es', 'esm', 'lib', 'src'])
7
7
  const MAX_INITIAL_VENDOR_CHUNK_BYTES = 300 * 1024
8
8
  const MAX_ASYNC_VENDOR_CHUNK_BYTES = 400 * 1024
9
9
 
10
- type AdminCodeSplitting = Exclude<
11
- NonNullable<Rolldown.OutputOptions['codeSplitting']>,
12
- boolean
13
- >
10
+ type AdminCodeSplitting = Exclude<NonNullable<Rolldown.OutputOptions['codeSplitting']>, boolean>
14
11
 
15
12
  function chunkName(value: string): string {
16
13
  return value
@@ -20,7 +17,12 @@ function chunkName(value: string): string {
20
17
  .toLowerCase()
21
18
  }
22
19
 
23
- function dependencyPath(normalized: string): { name: string, path: string[] } | undefined {
20
+ interface ModuleLocation {
21
+ name: string
22
+ path: string[]
23
+ }
24
+
25
+ function dependencyPath(normalized: string): ModuleLocation | undefined {
24
26
  const marker = '/node_modules/'
25
27
  const nodeModulesIndex = normalized.lastIndexOf(marker)
26
28
  if (nodeModulesIndex < 0) return undefined
@@ -35,7 +37,7 @@ function dependencyPath(normalized: string): { name: string, path: string[] } |
35
37
  }
36
38
  }
37
39
 
38
- function workspacePackagePath(normalized: string): { name: string, path: string[] } | undefined {
40
+ function workspacePackagePath(normalized: string): ModuleLocation | undefined {
39
41
  const match = normalized.match(/\/packages\/([^/]+)\/(?:dist|src)\/(.+)$/)
40
42
  if (!match) return undefined
41
43
  return { name: `og-${match[1]}`, path: match[2].split('/') }
@@ -62,7 +64,9 @@ function vendorLocation(id: string) {
62
64
 
63
65
  function matchesPackageFamily(id: string, names: readonly string[]): boolean {
64
66
  const name = vendorLocation(id)?.name
65
- return Boolean(name && names.some((candidate) => name === candidate || name.startsWith(`${candidate}/`)))
67
+ return Boolean(
68
+ name && names.some((candidate) => name === candidate || name.startsWith(`${candidate}/`)),
69
+ )
66
70
  }
67
71
 
68
72
  function matchesPackageEntry(id: string, packageName: string, entry: string): boolean {
@@ -70,6 +74,24 @@ function matchesPackageEntry(id: string, packageName: string, entry: string): bo
70
74
  return location?.name === packageName && location.path[0] === entry
71
75
  }
72
76
 
77
+ /**
78
+ * Element Plus table internals are extracted from the table-suite chunk they
79
+ * would otherwise co-locate with. The og-table family chunk itself must stay
80
+ * a single chunk — splitting it creates circular chunk-evaluation edges
81
+ * before Element Plus initializes (see the vendor-table-suite note) — but the
82
+ * Element Plus table code it pulls in is a leaf dependency and splits safely.
83
+ * This separation is what keeps the family chunk under the single-chunk
84
+ * budget instead of carrying the whole Element Plus table surface.
85
+ *
86
+ * `moduleLocation` strips the build directory, so published `es/components/…`
87
+ * paths start at `components`.
88
+ */
89
+ function matchesElementPlusTableModule(id: string, component: 'table' | 'table-v2'): boolean {
90
+ const location = vendorLocation(id)
91
+ if (!location || location.name !== 'element-plus') return false
92
+ return location.path[0] === 'components' && location.path[1] === component
93
+ }
94
+
73
95
  function dynamicPackageGroup(
74
96
  id: string,
75
97
  directory?: 'components' | 'languages' | 'locale',
@@ -77,7 +99,8 @@ function dynamicPackageGroup(
77
99
  const location = vendorLocation(id)
78
100
  if (!location || location.name === 'element-plus') return undefined
79
101
  if (directory && location.path[0] !== directory) return undefined
80
- const suffix = directory === 'components' ? '-components' : directory ? `-${chunkName(directory)}` : ''
102
+ const suffix =
103
+ directory === 'components' ? '-components' : directory ? `-${chunkName(directory)}` : ''
81
104
  return `vendor-${chunkName(location.name)}${suffix}`
82
105
  }
83
106
 
@@ -104,6 +127,14 @@ export function createAdminCodeSplitting(): AdminCodeSplitting {
104
127
  test: (id) => matchesPackageFamily(id, ['@floating-ui', '@sxzz/popperjs-es']),
105
128
  priority: 85,
106
129
  },
130
+ {
131
+ // async-validator is a leaf dependency shared by the form and table
132
+ // surfaces. Keeping it outside the table family avoids making the
133
+ // deliberately single-chunk family carry validation internals.
134
+ name: 'vendor-async-validator',
135
+ test: (id) => matchesPackageFamily(id, ['async-validator']),
136
+ priority: 83,
137
+ },
107
138
  {
108
139
  name: 'vendor-table-suite',
109
140
  test: (id) =>
@@ -122,6 +153,22 @@ export function createAdminCodeSplitting(): AdminCodeSplitting {
122
153
  // circular chunk-evaluation edge before Element Plus initializes.
123
154
  priority: 80,
124
155
  },
156
+ {
157
+ // Leaf dependency of the table-suite family: extracted so the family
158
+ // chunk stays under the single-chunk budget. The priority must sit
159
+ // ABOVE vendor-table-suite — Rolldown lets a higher-priority chunk
160
+ // pull lower-priority-grouped dependencies into itself, which is
161
+ // exactly how the Element Plus table internals ended up inside the
162
+ // family chunk — but still below the positioning/vueuse families.
163
+ name: 'vendor-element-table-v2',
164
+ test: (id) => matchesElementPlusTableModule(id, 'table-v2'),
165
+ priority: 82,
166
+ },
167
+ {
168
+ name: 'vendor-element-table',
169
+ test: (id) => matchesElementPlusTableModule(id, 'table'),
170
+ priority: 81,
171
+ },
125
172
  {
126
173
  name: 'vendor-initial',
127
174
  test: (id) => Boolean(vendorLocation(id)),
@@ -1,3 +1,5 @@
1
+ import { existsSync, readdirSync } from 'node:fs'
2
+ import { dirname, join } from 'node:path'
1
3
  import process from 'node:process'
2
4
  import { fileURLToPath } from 'node:url'
3
5
  import vue from '@vitejs/plugin-vue'
@@ -9,6 +11,17 @@ import { defineConfig } from 'vitest/config'
9
11
  // with the application source as ./vite.build-policy.ts.
10
12
  import { createAdminBuildOptions, createAdminBuildPlugins } from './vite.build-policy.js'
11
13
 
14
+ const elementPlusPackageRoot = dirname(dirname(fileURLToPath(import.meta.resolve('element-plus'))))
15
+ const elementPlusStyleIncludes = readdirSync(join(elementPlusPackageRoot, 'es/components'), {
16
+ withFileTypes: true,
17
+ })
18
+ .filter(
19
+ (entry) =>
20
+ entry.isDirectory() &&
21
+ existsSync(join(elementPlusPackageRoot, 'es/components', entry.name, 'style/index.mjs')),
22
+ )
23
+ .map((entry) => `element-plus/es/components/${entry.name}/style/index`)
24
+
12
25
  export default defineConfig(({ command, mode }) => {
13
26
  const loadedEnv = loadEnv(mode, process.cwd(), '')
14
27
  const apiTarget = loadedEnv.VITE_API_TARGET || 'http://127.0.0.1:8080'
@@ -17,6 +30,23 @@ export default defineConfig(({ command, mode }) => {
17
30
  return {
18
31
  plugins: [vue(), vueJsx(), ...createAdminBuildPlugins(), ElementPlus({ useSource: true })],
19
32
  resolve: { alias: { '@': fileURLToPath(new URL('./src', import.meta.url)) } },
33
+ optimizeDeps: {
34
+ // Element Plus injects these entries only after lazy SFCs transform.
35
+ // Pre-bundle them up front and keep the dependency set fixed for route loads.
36
+ noDiscovery: true,
37
+ include: [
38
+ '@element-plus/icons-vue',
39
+ '@vueuse/core',
40
+ 'axios',
41
+ 'element-plus',
42
+ 'pinia',
43
+ 'sortablejs',
44
+ 'vue',
45
+ 'vue-i18n',
46
+ 'vue-router',
47
+ ...elementPlusStyleIncludes,
48
+ ],
49
+ },
20
50
  oxc: {
21
51
  jsx: { runtime: 'automatic', importSource: 'vue' },
22
52
  ...(command === 'build' && !isDebugBuild ? { dropConsole: true, dropDebugger: true } : {}),
@@ -1,5 +1,108 @@
1
1
  # @origen-ui/admin
2
2
 
3
+ ## 1.0.6
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+ - Updated dependencies [d37826a]
9
+ - Updated dependencies [d37826a]
10
+ - Updated dependencies [bb0b902]
11
+ - Updated dependencies [cdbd053]
12
+ - @origen-ui/shared@2.0.1
13
+ - @origen-ui/permission@2.0.1
14
+ - @origen-ui/http@2.0.1
15
+ - @origen-ui/dialog@2.0.1
16
+ - @origen-ui/editor@2.0.1
17
+ - @origen-ui/upload@2.0.1
18
+ - @origen-ui/search@2.0.1
19
+ - @origen-ui/table@2.0.1
20
+ - @origen-ui/tabs@2.0.1
21
+ - @origen-ui/router@2.0.1
22
+ - @origen-ui/form@2.0.1
23
+ - @origen-ui/form-table@2.0.1
24
+ - @origen-ui/table-search@2.0.1
25
+ - origen-ui@2.0.1
26
+
27
+ ## 1.0.5
28
+
29
+ ### Patch Changes
30
+
31
+ - Updated dependencies [ea4fecb]
32
+ - Updated dependencies [ea4fecb]
33
+ - Updated dependencies [608aade]
34
+ - Updated dependencies [8026b2c]
35
+ - Updated dependencies [608aade]
36
+ - Updated dependencies [e0a0dd0]
37
+ - Updated dependencies [013595e]
38
+ - Updated dependencies [2a33f03]
39
+ - Updated dependencies [3ad1c7d]
40
+ - Updated dependencies [2a33f03]
41
+ - Updated dependencies [2a33f03]
42
+ - Updated dependencies [e7b866d]
43
+ - Updated dependencies [013595e]
44
+ - Updated dependencies [005939a]
45
+ - Updated dependencies [e0a0dd0]
46
+ - Updated dependencies [005939a]
47
+ - Updated dependencies [9365e91]
48
+ - Updated dependencies [2a33f03]
49
+ - Updated dependencies [74c09ae]
50
+ - Updated dependencies [2a33f03]
51
+ - Updated dependencies [2a33f03]
52
+ - Updated dependencies [987d611]
53
+ - Updated dependencies [2a33f03]
54
+ - Updated dependencies [013595e]
55
+ - Updated dependencies [3ad1c7d]
56
+ - Updated dependencies [013595e]
57
+ - Updated dependencies [313f8bc]
58
+ - Updated dependencies [013595e]
59
+ - Updated dependencies [013595e]
60
+ - Updated dependencies [013595e]
61
+ - Updated dependencies [013595e]
62
+ - Updated dependencies [987d611]
63
+ - Updated dependencies [ae45cc4]
64
+ - Updated dependencies [8026b2c]
65
+ - Updated dependencies [24aaae4]
66
+ - Updated dependencies [007abdc]
67
+ - Updated dependencies [005939a]
68
+ - Updated dependencies [007abdc]
69
+ - Updated dependencies [007abdc]
70
+ - Updated dependencies [007abdc]
71
+ - Updated dependencies [007abdc]
72
+ - Updated dependencies [007abdc]
73
+ - Updated dependencies [005939a]
74
+ - Updated dependencies [2a33f03]
75
+ - Updated dependencies [2a33f03]
76
+ - Updated dependencies [013595e]
77
+ - Updated dependencies [7d9a7fe]
78
+ - Updated dependencies [987d611]
79
+ - Updated dependencies [ae45cc4]
80
+ - Updated dependencies [ae45cc4]
81
+ - Updated dependencies [15f8a34]
82
+ - Updated dependencies [2a33f03]
83
+ - Updated dependencies [2a33f03]
84
+ - Updated dependencies [987d611]
85
+ - Updated dependencies [005939a]
86
+ - Updated dependencies [825186e]
87
+ - Updated dependencies [a0456b5]
88
+ - Updated dependencies [e7010c6]
89
+ - Updated dependencies [e7010c6]
90
+ - Updated dependencies [e7010c6]
91
+ - @origen-ui/http@2.0.0
92
+ - @origen-ui/editor@2.0.0
93
+ - @origen-ui/form@2.0.0
94
+ - @origen-ui/form-table@2.0.0
95
+ - @origen-ui/router@2.0.0
96
+ - @origen-ui/table@2.0.0
97
+ - @origen-ui/table-search@2.0.0
98
+ - @origen-ui/upload@2.0.0
99
+ - @origen-ui/dialog@2.0.0
100
+ - @origen-ui/search@2.0.0
101
+ - @origen-ui/tabs@2.0.0
102
+ - @origen-ui/permission@2.0.0
103
+ - @origen-ui/shared@2.0.0
104
+ - origen-ui@2.0.0
105
+
3
106
  ## 1.0.4
4
107
 
5
108
  ### Patch Changes
@@ -51,7 +51,7 @@
51
51
  "mode": "prop-bag-and-expose",
52
52
  "surface": "dialogProps, drawerProps, getSurfaceInstance"
53
53
  },
54
- "compatibilityVersion": "2.14.5"
54
+ "compatibilityVersion": "2.14.7"
55
55
  }
56
56
  },
57
57
  {
@@ -125,15 +125,52 @@
125
125
  "props": [
126
126
  "setup",
127
127
  "toolbar",
128
- "maxLength"
128
+ "readonly",
129
+ "disabled",
130
+ "placeholder",
131
+ "minHeight",
132
+ "maxHeight",
133
+ "maxLength",
134
+ "autofocus",
135
+ "locale",
136
+ "upload",
137
+ "sanitize",
138
+ "videoResolvers"
129
139
  ],
130
140
  "events": [
131
141
  "update:modelValue",
132
- "upload-error"
142
+ "change",
143
+ "ready",
144
+ "focus",
145
+ "blur",
146
+ "limit",
147
+ "upload-start",
148
+ "upload-progress",
149
+ "upload-success",
150
+ "upload-error",
151
+ "upload-cancel",
152
+ "media-remove"
153
+ ],
154
+ "slots": [
155
+ "toolbar-prefix",
156
+ "toolbar-suffix",
157
+ "status"
133
158
  ],
134
- "slots": [],
135
159
  "methods": [
136
160
  "focus",
161
+ "blur",
162
+ "clear",
163
+ "getHTML",
164
+ "getJSON",
165
+ "getText",
166
+ "setContent",
167
+ "insertContent",
168
+ "undo",
169
+ "redo",
170
+ "isEmpty",
171
+ "cancelUpload",
172
+ "retryUpload",
173
+ "removeMedia",
137
174
  "getEditor"
138
175
  ]
139
176
  },
@@ -141,7 +178,7 @@
141
178
  "mode": "expose",
142
179
  "surface": "OgEditorExpose.getEditor"
143
180
  },
144
- "compatibilityVersion": "2.14.5"
181
+ "compatibilityVersion": "2.14.7"
145
182
  }
146
183
  },
147
184
  {
@@ -169,8 +206,10 @@
169
206
  ],
170
207
  "owned": {
171
208
  "props": [
172
- "sanitize",
173
- "emptyText"
209
+ "content",
210
+ "emptyText",
211
+ "locale",
212
+ "sanitize"
174
213
  ],
175
214
  "events": [],
176
215
  "slots": [],
@@ -229,7 +268,7 @@
229
268
  "mode": "prop-bag-and-expose",
230
269
  "surface": "formProps, formRef"
231
270
  },
232
- "compatibilityVersion": "2.14.5"
271
+ "compatibilityVersion": "2.14.7"
233
272
  }
234
273
  },
235
274
  {
@@ -276,7 +315,9 @@
276
315
  "slots": [],
277
316
  "methods": [
278
317
  "addRow",
279
- "removeRow"
318
+ "removeRow",
319
+ "validate",
320
+ "validateRows"
280
321
  ]
281
322
  },
282
323
  "nativeAccess": {
@@ -332,7 +373,7 @@
332
373
  "mode": "prop-bag-and-expose",
333
374
  "surface": "formProps, formRef"
334
375
  },
335
- "compatibilityVersion": "2.14.5"
376
+ "compatibilityVersion": "2.14.7"
336
377
  },
337
378
  "legacyTokens": [
338
379
  "defaultExpanded",
@@ -388,7 +429,7 @@
388
429
  "mode": "config-and-expose",
389
430
  "surface": "config.virtual.enabled selects the surface; config.nativeTable.standard or config.nativeTable.virtual, getNativeTable"
390
431
  },
391
- "compatibilityVersion": "2.14.5"
432
+ "compatibilityVersion": "2.14.7"
392
433
  },
393
434
  "legacyTokens": [
394
435
  "config.plugins",
@@ -542,7 +583,7 @@
542
583
  "mode": "prop-bag-and-expose",
543
584
  "surface": "tabsProps, getNativeTabs"
544
585
  },
545
- "compatibilityVersion": "2.14.5"
586
+ "compatibilityVersion": "2.14.7"
546
587
  },
547
588
  "legacyTokens": [
548
589
  "allowActions",
@@ -594,10 +635,10 @@
594
635
  ]
595
636
  },
596
637
  "nativeAccess": {
597
- "mode": "prop-bag-and-expose",
598
- "surface": "uploadProps, getNativeUpload"
638
+ "mode": "prop-bag",
639
+ "surface": "uploadProps"
599
640
  },
600
- "compatibilityVersion": "2.14.5"
641
+ "compatibilityVersion": "2.14.7"
601
642
  },
602
643
  "legacyTokens": [
603
644
  "withCredentials"
@@ -638,7 +679,7 @@
638
679
  "unsupportedRoute": [
639
680
  "Use ElFormItem directly for raw Element Plus form-item behavior outside OgForm context."
640
681
  ],
641
- "compatibilityVersion": "2.14.5"
682
+ "compatibilityVersion": "2.14.7"
642
683
  }
643
684
  },
644
685
  {
@@ -674,7 +715,7 @@
674
715
  "unsupportedRoute": [
675
716
  "Use the required Element Plus control directly when the schema renderer contract is not needed."
676
717
  ],
677
- "compatibilityVersion": "2.14.5"
718
+ "compatibilityVersion": "2.14.7"
678
719
  }
679
720
  },
680
721
  {
@@ -14,6 +14,7 @@ const menus = [
14
14
  code: 'dashboard',
15
15
  path: '/dashboard',
16
16
  title: '工作台',
17
+ titleKey: 'menu.dashboard',
17
18
  componentKey: 'dashboard',
18
19
  icon: 'dashboard',
19
20
  permissions: ['workspace:dashboard:read'],
@@ -25,6 +26,7 @@ const menus = [
25
26
  code: 'system',
26
27
  path: '/system',
27
28
  title: '系统管理',
29
+ titleKey: 'menu.system',
28
30
  componentKey: 'outlet',
29
31
  icon: 'system',
30
32
  menu: true,
@@ -34,6 +36,7 @@ const menus = [
34
36
  code: 'users',
35
37
  path: 'users',
36
38
  title: '用户管理',
39
+ titleKey: 'menu.users',
37
40
  componentKey: 'user-list',
38
41
  permissions: ['system:user:read'],
39
42
  menu: true,
@@ -43,6 +46,7 @@ const menus = [
43
46
  code: 'roles',
44
47
  path: 'roles',
45
48
  title: '角色管理',
49
+ titleKey: 'menu.roles',
46
50
  componentKey: 'role-list',
47
51
  permissions: ['system:role:read'],
48
52
  menu: true,
@@ -52,6 +56,7 @@ const menus = [
52
56
  code: 'menus',
53
57
  path: 'menus',
54
58
  title: '菜单管理',
59
+ titleKey: 'menu.menus',
55
60
  componentKey: 'menu-list',
56
61
  permissions: ['system:menu:read'],
57
62
  menu: true,
@@ -61,6 +66,7 @@ const menus = [
61
66
  code: 'audit',
62
67
  path: 'audit',
63
68
  title: '审计日志',
69
+ titleKey: 'menu.audit',
64
70
  componentKey: 'audit-list',
65
71
  permissions: ['system:audit:read'],
66
72
  menu: true,