@origen-ui/admin-cli 2.0.2 → 3.0.4
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/README.md +25 -12
- package/bin/contract-sync.mjs +112 -0
- package/bin/lib/errors.mjs +8 -0
- package/bin/lib/fs-json.mjs +18 -0
- package/bin/lib/hash.mjs +9 -0
- package/bin/og-admin.mjs +165 -35
- package/bin/sync-project.mjs +717 -0
- package/package.json +21 -18
- package/templates/current/clean/.agents/skills/admin-component-usage/SKILL.md +27 -0
- package/templates/current/clean/.agents/skills/admin-component-usage/references/component-directory.md +232 -0
- package/templates/current/clean/.agents/skills/build-admin-feature/SKILL.md +20 -0
- package/templates/current/clean/.agents/skills/build-admin-feature/references/component-selection.md +42 -0
- package/templates/current/{examples/.codex → clean/.agents}/skills/use-og-form/SKILL.md +1 -1
- package/templates/current/{examples/.codex → clean/.agents}/skills/use-og-form-table/SKILL.md +4 -3
- package/templates/current/clean/{.codex → .agents}/skills/use-og-search/SKILL.md +3 -3
- package/templates/current/clean/.agents/skills/use-og-table/SKILL.md +22 -0
- package/templates/current/{examples/.codex → clean/.agents}/skills/use-og-upload/SKILL.md +6 -5
- package/templates/current/clean/.api-client-e2e.config.ts +13 -0
- package/templates/current/clean/.claude/rules/01-feature-architecture.md +10 -0
- package/templates/current/clean/.claude/rules/02-vue-typescript.md +10 -0
- package/templates/current/clean/.claude/rules/03-component-policy.md +31 -0
- package/templates/current/clean/.claude/rules/04-api-auth-router.md +10 -0
- package/templates/current/clean/.claude/rules/05-style.md +10 -0
- package/templates/current/clean/.claude/rules/06-quality.md +10 -0
- package/templates/current/clean/.claude/skills/admin-component-usage/SKILL.md +27 -0
- package/templates/current/clean/.claude/skills/admin-component-usage/references/component-directory.md +232 -0
- package/templates/current/clean/.claude/skills/build-admin-feature/SKILL.md +20 -0
- package/templates/current/clean/.claude/skills/build-admin-feature/references/component-selection.md +42 -0
- package/templates/current/clean/{.codex → .claude}/skills/use-og-form/SKILL.md +1 -1
- package/templates/current/clean/{.codex → .claude}/skills/use-og-form-table/SKILL.md +4 -3
- package/templates/current/{examples/.codex → clean/.claude}/skills/use-og-search/SKILL.md +3 -3
- package/templates/current/clean/.claude/skills/use-og-table/SKILL.md +22 -0
- package/templates/current/clean/{.codex → .claude}/skills/use-og-upload/SKILL.md +6 -5
- package/templates/current/clean/.codebuddy/rules/01-feature-architecture.md +2 -2
- package/templates/current/clean/.codebuddy/rules/03-component-policy.md +4 -1
- package/templates/current/clean/.codebuddy/skills/admin-component-usage/SKILL.md +30 -0
- package/templates/current/clean/.codebuddy/skills/admin-component-usage/references/component-directory.md +232 -0
- package/templates/current/clean/.codebuddy/skills/build-admin-feature/SKILL.md +11 -5
- package/templates/current/clean/.codebuddy/skills/build-admin-feature/references/component-selection.md +42 -0
- package/templates/current/clean/.codebuddy/skills/use-og-form/SKILL.md +1 -1
- package/templates/current/clean/.codebuddy/skills/use-og-form-table/SKILL.md +4 -3
- package/templates/current/clean/.codebuddy/skills/use-og-search/SKILL.md +3 -3
- package/templates/current/clean/.codebuddy/skills/use-og-table/SKILL.md +16 -10
- package/templates/current/clean/.codebuddy/skills/use-og-upload/SKILL.md +6 -5
- package/templates/current/clean/.codex/AGENTS.md +55 -8
- package/templates/current/clean/.codex/rules/01-feature-architecture.md +2 -2
- package/templates/current/clean/.codex/rules/03-component-policy.md +4 -1
- package/templates/current/clean/.cursor/rules/.generated +5 -0
- package/templates/current/clean/.cursor/rules/01-feature-architecture.mdc +2 -2
- package/templates/current/clean/.cursor/rules/03-component-policy.mdc +4 -1
- package/templates/current/clean/.cursor/skills/admin-component-usage/SKILL.md +27 -0
- package/templates/current/clean/.cursor/skills/admin-component-usage/references/component-directory.md +232 -0
- package/templates/current/clean/.cursor/skills/build-admin-feature/SKILL.md +11 -5
- package/templates/current/clean/.cursor/skills/build-admin-feature/references/component-selection.md +42 -0
- package/templates/current/clean/.cursor/skills/use-og-form/SKILL.md +1 -1
- package/templates/current/clean/.cursor/skills/use-og-form-table/SKILL.md +4 -3
- package/templates/current/clean/.cursor/skills/use-og-search/SKILL.md +3 -3
- package/templates/current/clean/.cursor/skills/use-og-table/SKILL.md +16 -10
- package/templates/current/clean/.cursor/skills/use-og-upload/SKILL.md +6 -5
- package/templates/current/clean/{.env.example → .env.dev} +3 -2
- package/templates/current/clean/.env.mock +4 -0
- package/templates/current/clean/.env.production +5 -0
- package/templates/current/clean/.env.test +4 -0
- package/templates/current/clean/.prettierignore +28 -0
- package/templates/current/clean/.prettierrc +8 -0
- package/templates/current/clean/.qoder/rules/01-feature-architecture.md +3 -4
- package/templates/current/clean/.qoder/rules/02-vue-typescript.md +1 -2
- package/templates/current/clean/.qoder/rules/03-component-policy.md +5 -3
- package/templates/current/clean/.qoder/rules/04-api-auth-router.md +1 -2
- package/templates/current/clean/.qoder/rules/05-style.md +1 -2
- package/templates/current/clean/.qoder/rules/06-quality.md +1 -2
- package/templates/current/clean/.qoder/skills/admin-component-usage/SKILL.md +27 -0
- package/templates/current/clean/.qoder/skills/admin-component-usage/references/component-directory.md +232 -0
- package/templates/current/clean/.qoder/skills/build-admin-feature/SKILL.md +11 -5
- package/templates/current/clean/.qoder/skills/build-admin-feature/references/component-selection.md +42 -0
- package/templates/current/clean/.qoder/skills/use-og-form/SKILL.md +1 -1
- package/templates/current/clean/.qoder/skills/use-og-form-table/SKILL.md +4 -3
- package/templates/current/clean/.qoder/skills/use-og-search/SKILL.md +3 -3
- package/templates/current/clean/.qoder/skills/use-og-table/SKILL.md +16 -10
- package/templates/current/clean/.qoder/skills/use-og-upload/SKILL.md +6 -5
- package/templates/current/clean/.zcode/skills/admin-component-usage/SKILL.md +27 -0
- package/templates/current/clean/.zcode/skills/admin-component-usage/references/component-directory.md +232 -0
- package/templates/current/clean/.zcode/skills/build-admin-feature/SKILL.md +20 -0
- package/templates/current/clean/.zcode/skills/build-admin-feature/references/component-selection.md +42 -0
- package/templates/current/clean/.zcode/skills/style-og-origen-ui/SKILL.md +11 -0
- package/templates/current/clean/.zcode/skills/use-og-dialog/SKILL.md +12 -0
- package/templates/current/clean/.zcode/skills/use-og-editor/SKILL.md +25 -0
- package/templates/current/clean/.zcode/skills/use-og-form/SKILL.md +12 -0
- package/templates/current/clean/.zcode/skills/use-og-form-table/SKILL.md +26 -0
- package/templates/current/clean/.zcode/skills/use-og-http/SKILL.md +13 -0
- package/templates/current/clean/.zcode/skills/use-og-router-tabs/SKILL.md +11 -0
- package/templates/current/clean/.zcode/skills/use-og-search/SKILL.md +14 -0
- package/templates/current/clean/.zcode/skills/use-og-table/SKILL.md +22 -0
- package/templates/current/clean/.zcode/skills/use-og-upload/SKILL.md +26 -0
- package/templates/current/clean/AGENTS.md +55 -9
- package/templates/current/clean/CHANGELOG.md +128 -0
- package/templates/current/clean/CLAUDE.md +3 -0
- package/templates/current/clean/README.md +58 -88
- package/templates/current/clean/component-catalog.json +766 -348
- package/templates/current/clean/component-catalog.v2.json +2040 -0
- package/templates/current/clean/docs/components/dialog.md +405 -0
- package/templates/current/clean/docs/components/editor-viewer.md +87 -0
- package/templates/current/clean/docs/components/editor.md +275 -0
- package/templates/current/clean/docs/components/form-table.md +222 -0
- package/templates/current/clean/docs/components/form.md +750 -0
- package/templates/current/clean/docs/components/index.md +44 -0
- package/templates/current/clean/docs/components/router.md +452 -0
- package/templates/current/clean/docs/components/search.md +1205 -0
- package/templates/current/clean/docs/components/svg-icon.md +124 -0
- package/templates/current/clean/docs/components/table-local.md +176 -0
- package/templates/current/clean/docs/components/table-with-search.md +207 -0
- package/templates/current/clean/docs/components/table.md +813 -0
- package/templates/current/clean/docs/components/tabs.md +440 -0
- package/templates/current/clean/docs/components/upload.md +349 -0
- package/templates/current/clean/eslint.config.js +89 -0
- package/templates/current/clean/index.html +1 -1
- package/templates/current/clean/openapi.json +10048 -999
- package/templates/current/clean/package.json +47 -35
- package/templates/current/clean/playwright.config.ts +20 -6
- package/templates/current/clean/playwright.mock.config.ts +42 -0
- package/templates/current/clean/pnpm-workspace.yaml +19 -3
- package/templates/current/clean/recipes/remote-crud-dialog-form.vue +15 -13
- package/templates/current/clean/scaffold.lock.json +164 -4
- package/templates/current/clean/scripts/api-codegen.config.ts +35 -0
- package/templates/current/clean/scripts/api-codegen.ts +2015 -0
- package/templates/current/clean/scripts/api-templates/http-client.ejs +359 -0
- package/templates/current/clean/scripts/check-admin-scaffold.mjs +315 -30
- package/templates/current/clean/scripts/generate-api.ts +290 -85
- package/templates/current/clean/scripts/lib/admin-component-catalog.mjs +514 -0
- package/templates/current/clean/scripts/lib/admin-skill-inventory.mjs +18 -0
- package/templates/current/clean/scripts/lib/repository-root.mjs +9 -0
- package/templates/current/clean/scripts/mock-api.ts +1356 -0
- package/templates/current/clean/scripts/remove-examples.mjs +9 -34
- package/templates/current/clean/src/App.vue +9 -18
- package/templates/current/clean/src/api/generated/data-contracts.ts +23 -265
- package/templates/current/clean/src/api/generated/http-client.ts +351 -180
- package/templates/current/clean/src/api/generated/index.ts +22 -0
- package/templates/current/clean/src/api/generated/services/auth.ts +123 -0
- package/templates/current/clean/src/api/generated/services/common/files.ts +111 -0
- package/templates/current/clean/src/api/generated/services/monitor/cache.ts +164 -0
- package/templates/current/clean/src/api/generated/services/monitor/job.ts +195 -0
- package/templates/current/clean/src/api/generated/services/monitor/jobLog.ts +126 -0
- package/templates/current/clean/src/api/generated/services/monitor/logininfor.ts +126 -0
- package/templates/current/clean/src/api/generated/services/monitor/online.ts +66 -0
- package/templates/current/clean/src/api/generated/services/monitor/operlog.ts +106 -0
- package/templates/current/clean/src/api/generated/services/monitor/server.ts +41 -0
- package/templates/current/clean/src/api/generated/services/system/configs.ts +190 -0
- package/templates/current/clean/src/api/generated/services/system/departments.ts +173 -0
- package/templates/current/clean/src/api/generated/services/system/dictionaries/data.ts +169 -0
- package/templates/current/clean/src/api/generated/services/system/dictionaries/types.ts +187 -0
- package/templates/current/clean/src/api/generated/services/system/index.ts +158 -0
- package/templates/current/clean/src/api/generated/services/system/menus.ts +193 -0
- package/templates/current/clean/src/api/generated/services/system/notices.ts +221 -0
- package/templates/current/clean/src/api/generated/services/system/posts.ts +168 -0
- package/templates/current/clean/src/api/generated/services/system/roles.ts +354 -0
- package/templates/current/clean/src/api/generated/services/system/users.ts +425 -0
- package/templates/current/clean/src/api/generated/services/tool/code-generator.ts +304 -0
- package/templates/current/clean/src/api/generated/types/auth.types.ts +132 -0
- package/templates/current/clean/src/api/generated/types/common/files.types.ts +57 -0
- package/templates/current/clean/src/api/generated/types/common.ts +174 -0
- package/templates/current/clean/src/api/generated/types/enum-dict.ts +94 -0
- package/templates/current/clean/src/api/generated/types/enums.ts +155 -0
- package/templates/current/clean/src/api/generated/types/monitor/cache.types.ts +149 -0
- package/templates/current/clean/src/api/generated/types/monitor/job.types.ts +207 -0
- package/templates/current/clean/src/api/generated/types/monitor/jobLog.types.ts +134 -0
- package/templates/current/clean/src/api/generated/types/monitor/logininfor.types.ts +135 -0
- package/templates/current/clean/src/api/generated/types/monitor/online.types.ts +80 -0
- package/templates/current/clean/src/api/generated/types/monitor/operlog.types.ts +126 -0
- package/templates/current/clean/src/api/generated/types/monitor/server.types.ts +205 -0
- package/templates/current/clean/src/api/generated/types/system/configs.types.ts +200 -0
- package/templates/current/clean/src/api/generated/types/system/departments.types.ts +145 -0
- package/templates/current/clean/src/api/generated/types/system/dictionaries/data.types.ts +210 -0
- package/templates/current/clean/src/api/generated/types/system/dictionaries/types.types.ts +221 -0
- package/templates/current/clean/src/api/generated/types/system/index.types.ts +19 -0
- package/templates/current/clean/src/api/generated/types/system/menus.types.ts +234 -0
- package/templates/current/clean/src/api/generated/types/system/notices.types.ts +270 -0
- package/templates/current/clean/src/api/generated/types/system/posts.types.ts +198 -0
- package/templates/current/clean/src/api/generated/types/system/roles.types.ts +410 -0
- package/templates/current/clean/src/api/generated/types/system/users.types.ts +413 -0
- package/templates/current/clean/src/api/generated/types/tool/code-generator.types.ts +388 -0
- package/templates/current/clean/src/api/index.ts +44 -39
- package/templates/current/clean/src/app/__tests__/api-generated.types.ts +24 -0
- package/templates/current/clean/src/app/api.ts +6 -0
- package/templates/current/clean/src/app/authorization/permission.ts +9 -0
- package/templates/current/{examples/src/app → clean/src/app/config}/runtimeConfig.ts +44 -12
- package/templates/current/clean/src/app/errors/errorMessage.ts +80 -0
- package/templates/current/clean/src/app/http/client.ts +141 -0
- package/templates/current/clean/src/app/http/http-adapter.ts +71 -0
- package/templates/current/{examples/src/app → clean/src/app/i18n}/adminLocale.ts +25 -19
- package/templates/current/clean/src/app/{localeFormat.ts → i18n/localeFormat.ts} +29 -6
- package/templates/current/clean/src/app/i18n/origenUiLocale.ts +15 -0
- package/templates/current/clean/src/app/menu/menu.ts +175 -0
- package/templates/current/clean/src/app/menu/menuTypes.ts +20 -0
- package/templates/current/clean/src/{features → app}/security/devtoolsProtection.ts +8 -7
- package/templates/current/clean/src/app/ui/createAdminUi.ts +31 -0
- package/templates/current/clean/src/app/ui/iconCatalog.ts +71 -0
- package/templates/current/clean/src/assets/icons/appearance.svg +1 -0
- package/templates/current/clean/src/assets/icons/arrow-right.svg +1 -0
- package/templates/current/clean/src/assets/icons/check.svg +1 -0
- package/templates/current/clean/src/assets/icons/circle-check.svg +1 -0
- package/templates/current/clean/src/assets/icons/default.svg +4 -0
- package/templates/current/clean/src/assets/icons/directory/setting.svg +1 -0
- package/templates/current/clean/src/assets/icons/expand.svg +1 -0
- package/templates/current/clean/src/assets/icons/fold.svg +1 -0
- package/templates/current/clean/src/assets/icons/key.svg +1 -0
- package/templates/current/clean/src/assets/icons/lock.svg +1 -0
- package/templates/current/clean/src/assets/icons/monitor.svg +1 -0
- package/templates/current/clean/src/assets/icons/moon.svg +11 -0
- package/templates/current/clean/src/assets/icons/page/department.svg +1 -0
- package/templates/current/clean/src/assets/icons/page/dictionary.svg +1 -0
- package/templates/current/clean/src/assets/icons/page/menus.svg +1 -0
- package/templates/current/clean/src/assets/icons/page/user.svg +1 -0
- package/templates/current/clean/src/assets/icons/page/users.svg +1 -0
- package/templates/current/clean/src/assets/icons/plus.svg +1 -0
- package/templates/current/clean/src/assets/icons/profile.svg +1 -0
- package/templates/current/clean/src/assets/icons/refresh.svg +1 -0
- package/templates/current/clean/src/assets/icons/roles.svg +1 -0
- package/templates/current/clean/src/assets/icons/search.svg +1 -0
- package/templates/current/clean/src/assets/icons/sunny.svg +1 -0
- package/templates/current/clean/src/assets/icons/system.svg +1 -0
- package/templates/current/clean/src/assets/icons/theme-auto.svg +14 -0
- package/templates/current/clean/src/assets/icons/tune.svg +13 -0
- package/templates/current/clean/src/{features/shell/components → components}/RouteProgress.vue +2 -2
- package/templates/current/{examples/src/features/system/access → clean/src}/composables/useAuthorizationRefresh.ts +6 -1
- package/templates/current/clean/src/composables/useSystemTableSearchVisibility.ts +33 -0
- package/templates/current/clean/src/{features/appearance/composables → composables}/useTheme.ts +1 -1
- package/templates/current/clean/src/env.d.ts +6 -19
- package/templates/current/clean/src/layouts/AdminLayout.vue +7 -9
- package/templates/current/clean/src/{features/shell/components → layouts}/AdminWatermark.vue +2 -2
- package/templates/current/clean/src/layouts/BreadcrumbBar.vue +9 -1
- package/templates/current/clean/src/layouts/SideMenu.vue +7 -15
- package/templates/current/clean/src/{features/appearance/components → layouts}/ThemePanel.vue +39 -11
- package/templates/current/clean/src/layouts/TopBar.vue +60 -28
- package/templates/current/clean/src/layouts/WorkspaceTabs.vue +10 -1
- package/templates/current/clean/src/layouts/topBarMenuSearch.ts +25 -4
- package/templates/current/clean/src/locales/en-US.json +227 -219
- package/templates/current/clean/src/locales/index.ts +72 -32
- package/templates/current/clean/src/locales/messages-types.ts +15 -10
- package/templates/current/clean/src/locales/vue-i18n.d.ts +1 -1
- package/templates/current/clean/src/locales/zh-CN.json +226 -218
- package/templates/current/clean/src/locales/zh-TW.json +222 -214
- package/templates/current/clean/src/main.ts +59 -30
- package/templates/current/clean/src/router/bootstrap.ts +69 -24
- package/templates/current/clean/src/router/dynamic/componentLoader.ts +150 -0
- package/templates/current/clean/src/router/{dynamicMenuRefresh.ts → dynamic/dynamicMenuRefresh.ts} +6 -2
- package/templates/current/clean/src/router/dynamic/dynamicRoutes.ts +247 -0
- package/templates/current/clean/src/router/navigation/guards.ts +12 -0
- package/templates/current/clean/src/router/navigation/paths.ts +28 -0
- package/templates/current/clean/src/router/navigation/staticRoutes.ts +109 -0
- package/templates/current/clean/src/router/{queryEncryption.ts → query/queryEncryption.ts} +29 -12
- package/templates/current/clean/src/router/query/routeQuery.ts +29 -0
- package/templates/current/clean/src/router/{useRouteQueryDefaults.ts → query/useRouteQueryDefaults.ts} +9 -8
- package/templates/current/clean/src/router/query/useRouteQueryDefaults.types.ts +28 -0
- package/templates/current/clean/src/router/{runtimeErrorRecovery.ts → recovery/runtimeErrorRecovery.ts} +21 -3
- package/templates/current/clean/src/{features/auth/store → store}/auth.ts +97 -62
- package/templates/current/clean/src/store/dictionaries.ts +86 -0
- package/templates/current/clean/src/{features/shell/store → store}/sidebar.ts +9 -2
- package/templates/current/{examples/src/features/appearance → clean/src}/store/theme.ts +8 -4
- package/templates/current/clean/src/styles/layout.css +51 -0
- package/templates/current/clean/src/templates/og-form.ts +7 -2
- package/templates/current/clean/src/templates/og-table.ts +86 -20
- package/templates/current/clean/src/templates/router.ts +11 -2
- package/templates/current/clean/src/utils/color-mix.ts +6 -2
- package/templates/current/clean/src/utils/download.ts +11 -0
- package/templates/current/clean/src/utils/permissions.ts +1 -1
- package/templates/current/clean/src/utils/retryableDialog.ts +46 -0
- package/templates/current/clean/src/{features → views}/errors/pages/Forbidden.vue +6 -2
- package/templates/current/clean/src/views/errors/pages/MethodNotAllowed.vue +34 -0
- package/templates/current/clean/src/{features → views}/errors/pages/NotFound.vue +6 -2
- package/templates/current/clean/src/{features → views}/errors/pages/ServerError.vue +6 -2
- package/templates/current/clean/src/{features/auth/pages/Login.vue → views/login/pages/index.vue} +99 -10
- package/templates/current/clean/src/views/system/access/services/admin-repository.ts +489 -0
- package/templates/current/clean/src/views/system/access/services/rbac.ts +317 -0
- package/templates/current/clean/src/views/system/dept/components/DepartmentEditorForm.vue +87 -0
- package/templates/current/clean/src/views/system/dept/composables/useDepartmentManagement.ts +314 -0
- package/templates/current/clean/src/views/system/dept/pages/index.vue +44 -0
- package/templates/current/clean/src/views/system/dept/services/departments.ts +168 -0
- package/templates/current/clean/src/views/system/dict/components/DictionaryDataEditorForm.vue +98 -0
- package/templates/current/clean/src/views/system/dict/components/DictionaryDataPreview.vue +233 -0
- package/templates/current/clean/src/views/system/dict/components/DictionaryTypeEditorForm.vue +66 -0
- package/templates/current/clean/src/views/system/dict/composables/useDictionaryDataManagement.ts +406 -0
- package/templates/current/clean/src/views/system/dict/composables/useDictionaryTypeManagement.ts +329 -0
- package/templates/current/clean/src/views/system/dict/data/pages/index.vue +134 -0
- package/templates/current/clean/src/views/system/dict/pages/index.vue +113 -0
- package/templates/current/clean/src/views/system/dict/services/dictionaries.ts +239 -0
- package/templates/current/clean/src/views/system/menu/components/MenuEditorForm.vue +252 -0
- package/templates/current/clean/src/views/system/menu/composables/useMenuManagement.ts +357 -0
- package/templates/current/clean/src/views/system/menu/menuDraft.ts +45 -0
- package/templates/current/clean/src/views/system/menu/pages/ExternalLink.vue +37 -0
- package/templates/current/clean/src/views/system/menu/pages/index.vue +75 -0
- package/templates/current/clean/src/views/system/post/components/PostEditorForm.vue +69 -0
- package/templates/current/clean/src/views/system/post/composables/usePostManagement.ts +245 -0
- package/templates/current/clean/src/views/system/post/pages/index.vue +92 -0
- package/templates/current/clean/src/views/system/post/services/posts.ts +100 -0
- package/templates/current/clean/src/views/system/role/auth-users/pages/index.vue +100 -0
- package/templates/current/clean/src/views/system/role/components/RoleDataScopeForm.vue +167 -0
- package/templates/current/clean/src/views/system/role/components/RoleEditorForm.vue +165 -0
- package/templates/current/clean/src/views/system/role/components/RoleUserSelectForm.vue +129 -0
- package/templates/current/clean/src/views/system/role/composables/useRoleManagement.ts +422 -0
- package/templates/current/clean/src/views/system/role/composables/useRoleUserManagement.ts +233 -0
- package/templates/current/clean/src/views/system/role/pages/index.vue +110 -0
- package/templates/current/clean/src/views/system/role/services/roleAccess.ts +162 -0
- package/templates/current/clean/src/views/system/user/auth-roles/pages/index.vue +209 -0
- package/templates/current/clean/src/views/system/user/components/UserDetailsForm.vue +108 -0
- package/templates/current/clean/src/views/system/user/components/UserEditorForm.vue +207 -0
- package/templates/current/clean/src/views/system/user/components/UserImportDialog.vue +80 -0
- package/templates/current/clean/src/views/system/user/components/UserResetPasswordForm.vue +56 -0
- package/templates/current/clean/src/views/system/user/composables/useUserManagement.ts +502 -0
- package/templates/current/clean/src/views/system/user/pages/index.vue +459 -0
- package/templates/current/clean/tests/e2e/admin-access-business.spec.ts +33 -0
- package/templates/current/clean/tests/e2e/admin-shell.spec.ts +50 -0
- package/templates/current/clean/tests/e2e/fixtures/adminMockBackend.ts +95 -0
- package/templates/current/clean/tests/e2e/fixtures/labelGeometry.ts +52 -0
- package/templates/current/clean/tests/e2e/mock-api-generation.spec.ts +27 -0
- package/templates/current/clean/tests/e2e/mock-business.spec.ts +555 -0
- package/templates/current/clean/tests/e2e/mock-menu-retry-form-label.spec.ts +100 -0
- package/templates/current/clean/tests/e2e/mock-shell.spec.ts +25 -0
- package/templates/current/clean/tests/e2e/mock-tree-selection-layout.spec.ts +113 -0
- package/templates/current/clean/tests/unit/api/api-codegen.spec.ts +893 -0
- package/templates/current/clean/tests/unit/api/client.spec.ts +145 -0
- package/templates/current/clean/tests/unit/api/generated-http-client.spec.ts +290 -0
- package/templates/current/{examples/src → clean/tests/unit}/api/http-adapter.spec.ts +3 -3
- package/templates/current/clean/tests/unit/api/system-apis.spec.ts +118 -0
- package/templates/current/clean/tests/unit/app/createAdminUi.spec.ts +79 -0
- package/templates/current/clean/{src → tests/unit}/app/errorMessage.spec.ts +1 -1
- package/templates/current/clean/tests/unit/app/iconCatalog.spec.ts +12 -0
- package/templates/current/clean/tests/unit/app/menu.spec.ts +215 -0
- package/templates/current/{examples/src → clean/tests/unit}/app/origenUiLocale.spec.ts +1 -1
- package/templates/current/{examples/src → clean/tests/unit}/app/permission.spec.ts +4 -5
- package/templates/current/clean/tests/unit/app/runtimeConfig.spec.ts +36 -0
- package/templates/current/{examples/src/features → clean/tests/unit/app}/security/devtoolsProtection.spec.ts +17 -7
- package/templates/current/{examples/src/features/shell → clean/tests/unit}/composables/useRouteProgress.spec.ts +1 -1
- package/templates/current/{examples/src/features/shell/components → clean/tests/unit/layouts}/AdminWatermark.spec.ts +5 -7
- package/templates/current/{examples/src → clean/tests/unit}/layouts/topBarMenuSearch.spec.ts +25 -8
- package/templates/current/clean/{src → tests/unit}/locales/messages.spec.ts +43 -17
- package/templates/current/clean/tests/unit/router/dynamicMenuRefresh.spec.ts +151 -0
- package/templates/current/clean/tests/unit/router/dynamicRoutes.spec.ts +374 -0
- package/templates/current/clean/tests/unit/router/paths.spec.ts +103 -0
- package/templates/current/clean/{src → tests/unit}/router/queryEncryption.spec.ts +49 -12
- package/templates/current/{examples/src → clean/tests/unit}/router/routeQuery.spec.ts +8 -1
- package/templates/current/clean/{src → tests/unit}/router/runtimeErrorRecovery.spec.ts +11 -6
- package/templates/current/{examples/src → clean/tests/unit}/router/useRouteQueryDefaults.spec.ts +46 -12
- package/templates/current/clean/tests/unit/scripts/mock-api.spec.ts +440 -0
- package/templates/current/clean/{scripts → tests/unit/scripts}/vite-build-policy.spec.ts +35 -6
- package/templates/current/clean/{src/features/auth → tests/unit}/store/auth.spec.ts +100 -15
- package/templates/current/clean/tests/unit/store/dictionaries.spec.ts +106 -0
- package/templates/current/{examples/src → clean/tests/unit}/templates/templates.spec.ts +58 -16
- package/templates/current/clean/{src/utils/__tests__ → tests/unit/utils}/color-mix.spec.ts +1 -1
- package/templates/current/clean/tests/unit/utils/retryableDialog.spec.ts +61 -0
- package/templates/current/{examples/src/features/errors/pages → clean/tests/unit/views/errors}/error-pages.spec.ts +11 -7
- package/templates/current/clean/tests/unit/views/feature-composables.spec.ts +233 -0
- package/templates/current/clean/tests/unit/views/system/access/admin-repository.spec.ts +353 -0
- package/templates/current/clean/tests/unit/views/system/access/rbac.spec.ts +329 -0
- package/templates/current/clean/tests/unit/views/system/dept/departments.spec.ts +104 -0
- package/templates/current/clean/tests/unit/views/system/dict/dictionaries.spec.ts +234 -0
- package/templates/current/clean/tests/unit/views/system/menu/menuDraft.spec.ts +77 -0
- package/templates/current/clean/tests/unit/views/system/menu/useMenuManagement.spec.ts +339 -0
- package/templates/current/clean/tests/unit/views/system/user/searchControl.spec.ts +128 -0
- package/templates/current/clean/tsconfig.json +4 -19
- package/templates/current/clean/vite.build-policy.ts +97 -22
- package/templates/current/clean/vite.config.ts +50 -7
- package/templates/current/examples/.agents/skills/admin-component-usage/SKILL.md +27 -0
- package/templates/current/examples/.agents/skills/admin-component-usage/references/component-directory.md +232 -0
- package/templates/current/examples/.agents/skills/build-admin-feature/SKILL.md +20 -0
- package/templates/current/examples/.agents/skills/build-admin-feature/references/component-selection.md +42 -0
- package/templates/current/examples/.agents/skills/style-og-origen-ui/SKILL.md +11 -0
- package/templates/current/examples/.agents/skills/use-og-dialog/SKILL.md +12 -0
- package/templates/current/examples/.agents/skills/use-og-editor/SKILL.md +25 -0
- package/templates/current/examples/.agents/skills/use-og-form/SKILL.md +12 -0
- package/templates/current/examples/.agents/skills/use-og-form-table/SKILL.md +26 -0
- package/templates/current/examples/.agents/skills/use-og-http/SKILL.md +13 -0
- package/templates/current/examples/.agents/skills/use-og-router-tabs/SKILL.md +11 -0
- package/templates/current/examples/.agents/skills/use-og-search/SKILL.md +14 -0
- package/templates/current/examples/.agents/skills/use-og-table/SKILL.md +22 -0
- package/templates/current/examples/.agents/skills/use-og-upload/SKILL.md +26 -0
- package/templates/current/examples/.api-client-e2e.config.ts +13 -0
- package/templates/current/examples/.claude/rules/01-feature-architecture.md +10 -0
- package/templates/current/examples/.claude/rules/02-vue-typescript.md +10 -0
- package/templates/current/examples/.claude/rules/03-component-policy.md +31 -0
- package/templates/current/examples/.claude/rules/04-api-auth-router.md +10 -0
- package/templates/current/examples/.claude/rules/05-style.md +10 -0
- package/templates/current/examples/.claude/rules/06-quality.md +10 -0
- package/templates/current/examples/.claude/skills/admin-component-usage/SKILL.md +27 -0
- package/templates/current/examples/.claude/skills/admin-component-usage/references/component-directory.md +232 -0
- package/templates/current/examples/.claude/skills/build-admin-feature/SKILL.md +20 -0
- package/templates/current/examples/.claude/skills/build-admin-feature/references/component-selection.md +42 -0
- package/templates/current/examples/.claude/skills/style-og-origen-ui/SKILL.md +11 -0
- package/templates/current/examples/.claude/skills/use-og-dialog/SKILL.md +12 -0
- package/templates/current/examples/.claude/skills/use-og-editor/SKILL.md +25 -0
- package/templates/current/examples/.claude/skills/use-og-form/SKILL.md +12 -0
- package/templates/current/examples/.claude/skills/use-og-form-table/SKILL.md +26 -0
- package/templates/current/examples/.claude/skills/use-og-http/SKILL.md +13 -0
- package/templates/current/examples/.claude/skills/use-og-router-tabs/SKILL.md +11 -0
- package/templates/current/examples/.claude/skills/use-og-search/SKILL.md +14 -0
- package/templates/current/examples/.claude/skills/use-og-table/SKILL.md +22 -0
- package/templates/current/examples/.claude/skills/use-og-upload/SKILL.md +26 -0
- package/templates/current/examples/.codebuddy/rules/01-feature-architecture.md +2 -2
- package/templates/current/examples/.codebuddy/rules/03-component-policy.md +4 -1
- package/templates/current/examples/.codebuddy/skills/admin-component-usage/SKILL.md +30 -0
- package/templates/current/examples/.codebuddy/skills/admin-component-usage/references/component-directory.md +232 -0
- package/templates/current/examples/.codebuddy/skills/build-admin-feature/SKILL.md +11 -5
- package/templates/current/examples/.codebuddy/skills/build-admin-feature/references/component-selection.md +42 -0
- package/templates/current/examples/.codebuddy/skills/use-og-form/SKILL.md +1 -1
- package/templates/current/examples/.codebuddy/skills/use-og-form-table/SKILL.md +4 -3
- package/templates/current/examples/.codebuddy/skills/use-og-search/SKILL.md +3 -3
- package/templates/current/examples/.codebuddy/skills/use-og-table/SKILL.md +16 -10
- package/templates/current/examples/.codebuddy/skills/use-og-upload/SKILL.md +6 -5
- package/templates/current/examples/.codex/AGENTS.md +55 -8
- package/templates/current/examples/.codex/rules/01-feature-architecture.md +2 -2
- package/templates/current/examples/.codex/rules/03-component-policy.md +4 -1
- package/templates/current/examples/.cursor/rules/.generated +5 -0
- package/templates/current/examples/.cursor/rules/01-feature-architecture.mdc +2 -2
- package/templates/current/examples/.cursor/rules/03-component-policy.mdc +4 -1
- package/templates/current/examples/.cursor/skills/admin-component-usage/SKILL.md +27 -0
- package/templates/current/examples/.cursor/skills/admin-component-usage/references/component-directory.md +232 -0
- package/templates/current/examples/.cursor/skills/build-admin-feature/SKILL.md +11 -5
- package/templates/current/examples/.cursor/skills/build-admin-feature/references/component-selection.md +42 -0
- package/templates/current/examples/.cursor/skills/use-og-form/SKILL.md +1 -1
- package/templates/current/examples/.cursor/skills/use-og-form-table/SKILL.md +4 -3
- package/templates/current/examples/.cursor/skills/use-og-search/SKILL.md +3 -3
- package/templates/current/examples/.cursor/skills/use-og-table/SKILL.md +16 -10
- package/templates/current/examples/.cursor/skills/use-og-upload/SKILL.md +6 -5
- package/templates/current/examples/{.env.example → .env.dev} +3 -2
- package/templates/current/examples/.env.mock +4 -0
- package/templates/current/examples/.env.production +5 -0
- package/templates/current/examples/.env.test +4 -0
- package/templates/current/examples/.prettierignore +28 -0
- package/templates/current/examples/.prettierrc +8 -0
- package/templates/current/examples/.qoder/rules/01-feature-architecture.md +3 -4
- package/templates/current/examples/.qoder/rules/02-vue-typescript.md +1 -2
- package/templates/current/examples/.qoder/rules/03-component-policy.md +5 -3
- package/templates/current/examples/.qoder/rules/04-api-auth-router.md +1 -2
- package/templates/current/examples/.qoder/rules/05-style.md +1 -2
- package/templates/current/examples/.qoder/rules/06-quality.md +1 -2
- package/templates/current/examples/.qoder/skills/admin-component-usage/SKILL.md +27 -0
- package/templates/current/examples/.qoder/skills/admin-component-usage/references/component-directory.md +232 -0
- package/templates/current/examples/.qoder/skills/build-admin-feature/SKILL.md +11 -5
- package/templates/current/examples/.qoder/skills/build-admin-feature/references/component-selection.md +42 -0
- package/templates/current/examples/.qoder/skills/use-og-form/SKILL.md +1 -1
- package/templates/current/examples/.qoder/skills/use-og-form-table/SKILL.md +4 -3
- package/templates/current/examples/.qoder/skills/use-og-search/SKILL.md +3 -3
- package/templates/current/examples/.qoder/skills/use-og-table/SKILL.md +16 -10
- package/templates/current/examples/.qoder/skills/use-og-upload/SKILL.md +6 -5
- package/templates/current/examples/.zcode/skills/admin-component-usage/SKILL.md +27 -0
- package/templates/current/examples/.zcode/skills/admin-component-usage/references/component-directory.md +232 -0
- package/templates/current/examples/.zcode/skills/build-admin-feature/SKILL.md +20 -0
- package/templates/current/examples/.zcode/skills/build-admin-feature/references/component-selection.md +42 -0
- package/templates/current/examples/.zcode/skills/style-og-origen-ui/SKILL.md +11 -0
- package/templates/current/examples/.zcode/skills/use-og-dialog/SKILL.md +12 -0
- package/templates/current/examples/.zcode/skills/use-og-editor/SKILL.md +25 -0
- package/templates/current/examples/.zcode/skills/use-og-form/SKILL.md +12 -0
- package/templates/current/examples/.zcode/skills/use-og-form-table/SKILL.md +26 -0
- package/templates/current/examples/.zcode/skills/use-og-http/SKILL.md +13 -0
- package/templates/current/examples/.zcode/skills/use-og-router-tabs/SKILL.md +11 -0
- package/templates/current/examples/.zcode/skills/use-og-search/SKILL.md +14 -0
- package/templates/current/examples/.zcode/skills/use-og-table/SKILL.md +22 -0
- package/templates/current/examples/.zcode/skills/use-og-upload/SKILL.md +26 -0
- package/templates/current/examples/AGENTS.md +55 -9
- package/templates/current/examples/CHANGELOG.md +128 -0
- package/templates/current/examples/CLAUDE.md +3 -0
- package/templates/current/examples/README.md +58 -88
- package/templates/current/examples/component-catalog.json +766 -348
- package/templates/current/examples/component-catalog.v2.json +2040 -0
- package/templates/current/examples/docs/components/dialog.md +405 -0
- package/templates/current/examples/docs/components/editor-viewer.md +87 -0
- package/templates/current/examples/docs/components/editor.md +275 -0
- package/templates/current/examples/docs/components/form-table.md +222 -0
- package/templates/current/examples/docs/components/form.md +750 -0
- package/templates/current/examples/docs/components/index.md +44 -0
- package/templates/current/examples/docs/components/router.md +452 -0
- package/templates/current/examples/docs/components/search.md +1205 -0
- package/templates/current/examples/docs/components/svg-icon.md +124 -0
- package/templates/current/examples/docs/components/table-local.md +176 -0
- package/templates/current/examples/docs/components/table-with-search.md +207 -0
- package/templates/current/examples/docs/components/table.md +813 -0
- package/templates/current/examples/docs/components/tabs.md +440 -0
- package/templates/current/examples/docs/components/upload.md +349 -0
- package/templates/current/examples/eslint.config.js +89 -0
- package/templates/current/examples/index.html +1 -1
- package/templates/current/examples/openapi.json +10048 -999
- package/templates/current/examples/package.json +47 -35
- package/templates/current/examples/playwright.config.ts +20 -6
- package/templates/current/examples/playwright.mock.config.ts +42 -0
- package/templates/current/examples/pnpm-workspace.yaml +19 -3
- package/templates/current/examples/recipes/remote-crud-dialog-form.vue +15 -13
- package/templates/current/examples/scaffold.lock.json +164 -4
- package/templates/current/examples/scripts/api-codegen.config.ts +35 -0
- package/templates/current/examples/scripts/api-codegen.ts +2015 -0
- package/templates/current/examples/scripts/api-templates/http-client.ejs +359 -0
- package/templates/current/examples/scripts/check-admin-scaffold.mjs +315 -30
- package/templates/current/examples/scripts/generate-api.ts +290 -85
- package/templates/current/examples/scripts/lib/admin-component-catalog.mjs +514 -0
- package/templates/current/examples/scripts/lib/admin-skill-inventory.mjs +18 -0
- package/templates/current/examples/scripts/lib/repository-root.mjs +9 -0
- package/templates/current/examples/scripts/mock-api.ts +1356 -0
- package/templates/current/examples/scripts/remove-examples.mjs +9 -34
- package/templates/current/examples/src/App.vue +9 -18
- package/templates/current/examples/src/api/generated/data-contracts.ts +23 -265
- package/templates/current/examples/src/api/generated/http-client.ts +351 -180
- package/templates/current/examples/src/api/generated/index.ts +22 -0
- package/templates/current/examples/src/api/generated/services/auth.ts +123 -0
- package/templates/current/examples/src/api/generated/services/common/files.ts +111 -0
- package/templates/current/examples/src/api/generated/services/monitor/cache.ts +164 -0
- package/templates/current/examples/src/api/generated/services/monitor/job.ts +195 -0
- package/templates/current/examples/src/api/generated/services/monitor/jobLog.ts +126 -0
- package/templates/current/examples/src/api/generated/services/monitor/logininfor.ts +126 -0
- package/templates/current/examples/src/api/generated/services/monitor/online.ts +66 -0
- package/templates/current/examples/src/api/generated/services/monitor/operlog.ts +106 -0
- package/templates/current/examples/src/api/generated/services/monitor/server.ts +41 -0
- package/templates/current/examples/src/api/generated/services/system/configs.ts +190 -0
- package/templates/current/examples/src/api/generated/services/system/departments.ts +173 -0
- package/templates/current/examples/src/api/generated/services/system/dictionaries/data.ts +169 -0
- package/templates/current/examples/src/api/generated/services/system/dictionaries/types.ts +187 -0
- package/templates/current/examples/src/api/generated/services/system/index.ts +158 -0
- package/templates/current/examples/src/api/generated/services/system/menus.ts +193 -0
- package/templates/current/examples/src/api/generated/services/system/notices.ts +221 -0
- package/templates/current/examples/src/api/generated/services/system/posts.ts +168 -0
- package/templates/current/examples/src/api/generated/services/system/roles.ts +354 -0
- package/templates/current/examples/src/api/generated/services/system/users.ts +425 -0
- package/templates/current/examples/src/api/generated/services/tool/code-generator.ts +304 -0
- package/templates/current/examples/src/api/generated/types/auth.types.ts +132 -0
- package/templates/current/examples/src/api/generated/types/common/files.types.ts +57 -0
- package/templates/current/examples/src/api/generated/types/common.ts +174 -0
- package/templates/current/examples/src/api/generated/types/enum-dict.ts +94 -0
- package/templates/current/examples/src/api/generated/types/enums.ts +155 -0
- package/templates/current/examples/src/api/generated/types/monitor/cache.types.ts +149 -0
- package/templates/current/examples/src/api/generated/types/monitor/job.types.ts +207 -0
- package/templates/current/examples/src/api/generated/types/monitor/jobLog.types.ts +134 -0
- package/templates/current/examples/src/api/generated/types/monitor/logininfor.types.ts +135 -0
- package/templates/current/examples/src/api/generated/types/monitor/online.types.ts +80 -0
- package/templates/current/examples/src/api/generated/types/monitor/operlog.types.ts +126 -0
- package/templates/current/examples/src/api/generated/types/monitor/server.types.ts +205 -0
- package/templates/current/examples/src/api/generated/types/system/configs.types.ts +200 -0
- package/templates/current/examples/src/api/generated/types/system/departments.types.ts +145 -0
- package/templates/current/examples/src/api/generated/types/system/dictionaries/data.types.ts +210 -0
- package/templates/current/examples/src/api/generated/types/system/dictionaries/types.types.ts +221 -0
- package/templates/current/examples/src/api/generated/types/system/index.types.ts +19 -0
- package/templates/current/examples/src/api/generated/types/system/menus.types.ts +234 -0
- package/templates/current/examples/src/api/generated/types/system/notices.types.ts +270 -0
- package/templates/current/examples/src/api/generated/types/system/posts.types.ts +198 -0
- package/templates/current/examples/src/api/generated/types/system/roles.types.ts +410 -0
- package/templates/current/examples/src/api/generated/types/system/users.types.ts +413 -0
- package/templates/current/examples/src/api/generated/types/tool/code-generator.types.ts +388 -0
- package/templates/current/examples/src/api/index.ts +44 -39
- package/templates/current/examples/src/app/__tests__/api-generated.types.ts +24 -0
- package/templates/current/examples/src/app/api.ts +6 -0
- package/templates/current/examples/src/app/authorization/permission.ts +9 -0
- package/templates/current/{clean/src/app → examples/src/app/config}/runtimeConfig.ts +44 -12
- package/templates/current/examples/src/app/errors/errorMessage.ts +80 -0
- package/templates/current/examples/src/app/http/client.ts +141 -0
- package/templates/current/examples/src/app/http/http-adapter.ts +71 -0
- package/templates/current/{clean/src/app → examples/src/app/i18n}/adminLocale.ts +25 -19
- package/templates/current/examples/src/app/{localeFormat.ts → i18n/localeFormat.ts} +29 -6
- package/templates/current/examples/src/app/i18n/origenUiLocale.ts +15 -0
- package/templates/current/examples/src/app/menu/menu.ts +175 -0
- package/templates/current/examples/src/app/menu/menuTypes.ts +20 -0
- package/templates/current/examples/src/{features → app}/security/devtoolsProtection.ts +8 -7
- package/templates/current/examples/src/app/ui/createAdminUi.ts +31 -0
- package/templates/current/examples/src/app/ui/iconCatalog.ts +71 -0
- package/templates/current/examples/src/assets/icons/appearance.svg +1 -0
- package/templates/current/examples/src/assets/icons/arrow-right.svg +1 -0
- package/templates/current/examples/src/assets/icons/check.svg +1 -0
- package/templates/current/examples/src/assets/icons/circle-check.svg +1 -0
- package/templates/current/examples/src/assets/icons/default.svg +4 -0
- package/templates/current/examples/src/assets/icons/directory/setting.svg +1 -0
- package/templates/current/examples/src/assets/icons/expand.svg +1 -0
- package/templates/current/examples/src/assets/icons/fold.svg +1 -0
- package/templates/current/examples/src/assets/icons/key.svg +1 -0
- package/templates/current/examples/src/assets/icons/lock.svg +1 -0
- package/templates/current/examples/src/assets/icons/monitor.svg +1 -0
- package/templates/current/examples/src/assets/icons/moon.svg +11 -0
- package/templates/current/examples/src/assets/icons/page/department.svg +1 -0
- package/templates/current/examples/src/assets/icons/page/dictionary.svg +1 -0
- package/templates/current/examples/src/assets/icons/page/menus.svg +1 -0
- package/templates/current/examples/src/assets/icons/page/user.svg +1 -0
- package/templates/current/examples/src/assets/icons/page/users.svg +1 -0
- package/templates/current/examples/src/assets/icons/plus.svg +1 -0
- package/templates/current/examples/src/assets/icons/profile.svg +1 -0
- package/templates/current/examples/src/assets/icons/refresh.svg +1 -0
- package/templates/current/examples/src/assets/icons/roles.svg +1 -0
- package/templates/current/examples/src/assets/icons/search.svg +1 -0
- package/templates/current/examples/src/assets/icons/sunny.svg +1 -0
- package/templates/current/examples/src/assets/icons/system.svg +1 -0
- package/templates/current/examples/src/assets/icons/theme-auto.svg +14 -0
- package/templates/current/examples/src/assets/icons/tune.svg +13 -0
- package/templates/current/examples/src/{features/shell/components → components}/RouteProgress.vue +2 -2
- package/templates/current/{clean/src/features/system/access → examples/src}/composables/useAuthorizationRefresh.ts +6 -1
- package/templates/current/examples/src/composables/useSystemTableSearchVisibility.ts +33 -0
- package/templates/current/examples/src/{features/appearance/composables → composables}/useTheme.ts +1 -1
- package/templates/current/examples/src/env.d.ts +6 -19
- package/templates/current/examples/src/layouts/AdminLayout.vue +7 -9
- package/templates/current/examples/src/{features/shell/components → layouts}/AdminWatermark.vue +2 -2
- package/templates/current/examples/src/layouts/BreadcrumbBar.vue +9 -1
- package/templates/current/examples/src/layouts/SideMenu.vue +7 -15
- package/templates/current/examples/src/{features/appearance/components → layouts}/ThemePanel.vue +39 -11
- package/templates/current/examples/src/layouts/TopBar.vue +60 -28
- package/templates/current/examples/src/layouts/WorkspaceTabs.vue +10 -1
- package/templates/current/examples/src/layouts/topBarMenuSearch.ts +25 -4
- package/templates/current/examples/src/locales/en-US.json +227 -219
- package/templates/current/examples/src/locales/index.ts +72 -32
- package/templates/current/examples/src/locales/messages-types.ts +15 -10
- package/templates/current/examples/src/locales/vue-i18n.d.ts +1 -1
- package/templates/current/examples/src/locales/zh-CN.json +226 -218
- package/templates/current/examples/src/locales/zh-TW.json +222 -214
- package/templates/current/examples/src/main.ts +50 -40
- package/templates/current/examples/src/router/bootstrap.ts +69 -24
- package/templates/current/examples/src/router/dynamic/componentLoader.ts +150 -0
- package/templates/current/examples/src/router/{dynamicMenuRefresh.ts → dynamic/dynamicMenuRefresh.ts} +6 -2
- package/templates/current/examples/src/router/dynamic/dynamicRoutes.ts +247 -0
- package/templates/current/examples/src/router/navigation/guards.ts +12 -0
- package/templates/current/examples/src/router/navigation/paths.ts +28 -0
- package/templates/current/examples/src/router/navigation/staticRoutes.ts +109 -0
- package/templates/current/examples/src/router/{queryEncryption.ts → query/queryEncryption.ts} +29 -12
- package/templates/current/examples/src/router/query/routeQuery.ts +29 -0
- package/templates/current/examples/src/router/{useRouteQueryDefaults.ts → query/useRouteQueryDefaults.ts} +9 -8
- package/templates/current/examples/src/router/query/useRouteQueryDefaults.types.ts +28 -0
- package/templates/current/examples/src/router/{runtimeErrorRecovery.ts → recovery/runtimeErrorRecovery.ts} +21 -3
- package/templates/current/examples/src/{features/auth/store → store}/auth.ts +97 -62
- package/templates/current/examples/src/store/dictionaries.ts +86 -0
- package/templates/current/examples/src/{features/shell/store → store}/sidebar.ts +9 -2
- package/templates/current/{clean/src/features/appearance → examples/src}/store/theme.ts +8 -4
- package/templates/current/examples/src/styles/layout.css +51 -0
- package/templates/current/examples/src/templates/og-form.ts +7 -2
- package/templates/current/examples/src/templates/og-table.ts +86 -20
- package/templates/current/examples/src/templates/router.ts +11 -2
- package/templates/current/examples/src/utils/color-mix.ts +6 -2
- package/templates/current/examples/src/utils/download.ts +11 -0
- package/templates/current/examples/src/utils/permissions.ts +1 -1
- package/templates/current/examples/src/utils/retryableDialog.ts +46 -0
- package/templates/current/{clean/scripts/clean-overlay/src/features → examples/src/views}/errors/pages/Forbidden.vue +6 -2
- package/templates/current/examples/src/views/errors/pages/MethodNotAllowed.vue +34 -0
- package/templates/current/examples/{scripts/clean-overlay/src/features → src/views}/errors/pages/NotFound.vue +6 -2
- package/templates/current/examples/{scripts/clean-overlay/src/features → src/views}/errors/pages/ServerError.vue +6 -2
- package/templates/current/examples/src/{features/auth/pages/Login.vue → views/login/pages/index.vue} +99 -10
- package/templates/current/examples/src/views/system/access/services/admin-repository.ts +489 -0
- package/templates/current/examples/src/views/system/access/services/rbac.ts +317 -0
- package/templates/current/examples/src/views/system/dept/components/DepartmentEditorForm.vue +87 -0
- package/templates/current/examples/src/views/system/dept/composables/useDepartmentManagement.ts +314 -0
- package/templates/current/examples/src/views/system/dept/pages/index.vue +44 -0
- package/templates/current/examples/src/views/system/dept/services/departments.ts +168 -0
- package/templates/current/examples/src/views/system/dict/components/DictionaryDataEditorForm.vue +98 -0
- package/templates/current/examples/src/views/system/dict/components/DictionaryDataPreview.vue +233 -0
- package/templates/current/examples/src/views/system/dict/components/DictionaryTypeEditorForm.vue +66 -0
- package/templates/current/examples/src/views/system/dict/composables/useDictionaryDataManagement.ts +406 -0
- package/templates/current/examples/src/views/system/dict/composables/useDictionaryTypeManagement.ts +329 -0
- package/templates/current/examples/src/views/system/dict/data/pages/index.vue +134 -0
- package/templates/current/examples/src/views/system/dict/pages/index.vue +113 -0
- package/templates/current/examples/src/views/system/dict/services/dictionaries.ts +239 -0
- package/templates/current/examples/src/views/system/menu/components/MenuEditorForm.vue +252 -0
- package/templates/current/examples/src/views/system/menu/composables/useMenuManagement.ts +357 -0
- package/templates/current/examples/src/views/system/menu/menuDraft.ts +45 -0
- package/templates/current/examples/src/views/system/menu/pages/ExternalLink.vue +37 -0
- package/templates/current/examples/src/views/system/menu/pages/index.vue +75 -0
- package/templates/current/examples/src/views/system/post/components/PostEditorForm.vue +69 -0
- package/templates/current/examples/src/views/system/post/composables/usePostManagement.ts +245 -0
- package/templates/current/examples/src/views/system/post/pages/index.vue +92 -0
- package/templates/current/examples/src/views/system/post/services/posts.ts +100 -0
- package/templates/current/examples/src/views/system/role/auth-users/pages/index.vue +100 -0
- package/templates/current/examples/src/views/system/role/components/RoleDataScopeForm.vue +167 -0
- package/templates/current/examples/src/views/system/role/components/RoleEditorForm.vue +165 -0
- package/templates/current/examples/src/views/system/role/components/RoleUserSelectForm.vue +129 -0
- package/templates/current/examples/src/views/system/role/composables/useRoleManagement.ts +422 -0
- package/templates/current/examples/src/views/system/role/composables/useRoleUserManagement.ts +233 -0
- package/templates/current/examples/src/views/system/role/pages/index.vue +110 -0
- package/templates/current/examples/src/views/system/role/services/roleAccess.ts +162 -0
- package/templates/current/examples/src/views/system/user/auth-roles/pages/index.vue +209 -0
- package/templates/current/examples/src/views/system/user/components/UserDetailsForm.vue +108 -0
- package/templates/current/examples/src/views/system/user/components/UserEditorForm.vue +207 -0
- package/templates/current/examples/src/views/system/user/components/UserImportDialog.vue +80 -0
- package/templates/current/examples/src/views/system/user/components/UserResetPasswordForm.vue +56 -0
- package/templates/current/examples/src/views/system/user/composables/useUserManagement.ts +502 -0
- package/templates/current/examples/src/views/system/user/pages/index.vue +459 -0
- package/templates/current/examples/tests/e2e/admin-access-business.spec.ts +33 -0
- package/templates/current/examples/tests/e2e/admin-shell.spec.ts +50 -0
- package/templates/current/examples/tests/e2e/fixtures/adminMockBackend.ts +95 -0
- package/templates/current/examples/tests/e2e/fixtures/labelGeometry.ts +52 -0
- package/templates/current/examples/tests/e2e/mock-api-generation.spec.ts +27 -0
- package/templates/current/examples/tests/e2e/mock-business.spec.ts +555 -0
- package/templates/current/examples/tests/e2e/mock-menu-retry-form-label.spec.ts +100 -0
- package/templates/current/examples/tests/e2e/mock-shell.spec.ts +25 -0
- package/templates/current/examples/tests/e2e/mock-tree-selection-layout.spec.ts +113 -0
- package/templates/current/examples/tests/unit/api/api-codegen.spec.ts +893 -0
- package/templates/current/examples/tests/unit/api/client.spec.ts +145 -0
- package/templates/current/examples/tests/unit/api/generated-http-client.spec.ts +290 -0
- package/templates/current/{clean/src → examples/tests/unit}/api/http-adapter.spec.ts +3 -3
- package/templates/current/examples/tests/unit/api/system-apis.spec.ts +118 -0
- package/templates/current/examples/tests/unit/app/createAdminUi.spec.ts +79 -0
- package/templates/current/examples/{src → tests/unit}/app/errorMessage.spec.ts +1 -1
- package/templates/current/examples/tests/unit/app/iconCatalog.spec.ts +12 -0
- package/templates/current/examples/tests/unit/app/menu.spec.ts +215 -0
- package/templates/current/{clean/src → examples/tests/unit}/app/origenUiLocale.spec.ts +1 -1
- package/templates/current/{clean/src → examples/tests/unit}/app/permission.spec.ts +4 -5
- package/templates/current/examples/tests/unit/app/runtimeConfig.spec.ts +36 -0
- package/templates/current/{clean/src/features → examples/tests/unit/app}/security/devtoolsProtection.spec.ts +17 -7
- package/templates/current/{clean/src/features/shell → examples/tests/unit}/composables/useRouteProgress.spec.ts +1 -1
- package/templates/current/{clean/src/features/shell/components → examples/tests/unit/layouts}/AdminWatermark.spec.ts +5 -7
- package/templates/current/{clean/src → examples/tests/unit}/layouts/topBarMenuSearch.spec.ts +25 -8
- package/templates/current/examples/{src → tests/unit}/locales/messages.spec.ts +43 -17
- package/templates/current/examples/tests/unit/router/dynamicMenuRefresh.spec.ts +151 -0
- package/templates/current/examples/tests/unit/router/dynamicRoutes.spec.ts +374 -0
- package/templates/current/examples/tests/unit/router/paths.spec.ts +103 -0
- package/templates/current/examples/{src → tests/unit}/router/queryEncryption.spec.ts +49 -12
- package/templates/current/{clean/src → examples/tests/unit}/router/routeQuery.spec.ts +8 -1
- package/templates/current/examples/{src → tests/unit}/router/runtimeErrorRecovery.spec.ts +11 -6
- package/templates/current/{clean/src → examples/tests/unit}/router/useRouteQueryDefaults.spec.ts +46 -12
- package/templates/current/examples/tests/unit/scripts/mock-api.spec.ts +440 -0
- package/templates/current/examples/{scripts → tests/unit/scripts}/vite-build-policy.spec.ts +35 -6
- package/templates/current/examples/{src/features/auth → tests/unit}/store/auth.spec.ts +100 -15
- package/templates/current/examples/tests/unit/store/dictionaries.spec.ts +106 -0
- package/templates/current/{clean/src → examples/tests/unit}/templates/templates.spec.ts +58 -16
- package/templates/current/examples/{src/utils/__tests__ → tests/unit/utils}/color-mix.spec.ts +1 -1
- package/templates/current/examples/tests/unit/utils/retryableDialog.spec.ts +61 -0
- package/templates/current/examples/{scripts/clean-overlay/src/features/errors/pages → tests/unit/views/errors}/error-pages.spec.ts +12 -9
- package/templates/current/examples/tests/unit/views/feature-composables.spec.ts +233 -0
- package/templates/current/examples/tests/unit/views/system/access/admin-repository.spec.ts +353 -0
- package/templates/current/examples/tests/unit/views/system/access/rbac.spec.ts +329 -0
- package/templates/current/examples/tests/unit/views/system/dept/departments.spec.ts +104 -0
- package/templates/current/examples/tests/unit/views/system/dict/dictionaries.spec.ts +234 -0
- package/templates/current/examples/tests/unit/views/system/menu/menuDraft.spec.ts +77 -0
- package/templates/current/examples/tests/unit/views/system/menu/useMenuManagement.spec.ts +339 -0
- package/templates/current/examples/tests/unit/views/system/user/searchControl.spec.ts +128 -0
- package/templates/current/examples/tsconfig.json +4 -19
- package/templates/current/examples/vite.build-policy.ts +97 -22
- package/templates/current/examples/vite.config.ts +50 -7
- package/templates/current/clean/.codebuddy/AGENTS.md +0 -18
- package/templates/current/clean/.codex/skills/build-admin-feature/SKILL.md +0 -14
- package/templates/current/clean/.codex/skills/build-admin-feature/references/component-selection.md +0 -25
- package/templates/current/clean/.codex/skills/use-og-table/SKILL.md +0 -16
- package/templates/current/clean/.cursor/AGENTS.md +0 -18
- package/templates/current/clean/.env.production.example +0 -31
- package/templates/current/clean/.qoder/AGENTS.md +0 -15
- package/templates/current/clean/e2e/admin-shell.spec.ts +0 -156
- package/templates/current/clean/e2e/demo-shell.spec.ts +0 -372
- package/templates/current/clean/playwright.demo.config.ts +0 -25
- package/templates/current/clean/scripts/clean-overlay/src/features/errors/pages/NotFound.vue +0 -31
- package/templates/current/clean/scripts/clean-overlay/src/features/errors/pages/ServerError.vue +0 -31
- package/templates/current/clean/scripts/clean-overlay/src/features/errors/pages/error-pages.spec.ts +0 -41
- package/templates/current/clean/scripts/clean-overlay/src/main.ts +0 -100
- package/templates/current/clean/scripts/clean-overlay/src/router/componentCache.ts +0 -12
- package/templates/current/clean/scripts/clean-overlay/src/router/componentRegistry.ts +0 -14
- package/templates/current/clean/scripts/clean-overlay/src/router/dynamicRoutes.spec.ts +0 -77
- package/templates/current/clean/scripts/clean-overlay/src/router/paths.ts +0 -21
- package/templates/current/clean/scripts/clean-overlay/src/router/staticRoutes.ts +0 -63
- package/templates/current/clean/scripts/demo-api.ts +0 -873
- package/templates/current/clean/src/api/client.spec.ts +0 -66
- package/templates/current/clean/src/api/client.ts +0 -152
- 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 +0 -144
- 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 +0 -50
- 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 +0 -63
- 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 +0 -169
- 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 +0 -180
- 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 +0 -167
- 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 +0 -168
- package/templates/current/clean/src/api/generated//350/256/244/350/257/201.ts +0 -95
- package/templates/current/clean/src/api/http-adapter.ts +0 -83
- package/templates/current/clean/src/app/createAdminUi.spec.ts +0 -166
- package/templates/current/clean/src/app/createAdminUi.ts +0 -63
- package/templates/current/clean/src/app/embedded-token.spec.ts +0 -40
- package/templates/current/clean/src/app/embedded.spec.ts +0 -135
- package/templates/current/clean/src/app/embedded.ts +0 -255
- package/templates/current/clean/src/app/errorMessage.ts +0 -53
- package/templates/current/clean/src/app/menu-host.spec.ts +0 -77
- package/templates/current/clean/src/app/menu.spec.ts +0 -320
- package/templates/current/clean/src/app/menu.ts +0 -308
- package/templates/current/clean/src/app/menuTypes.ts +0 -18
- package/templates/current/clean/src/app/origenUiLocale.ts +0 -10
- package/templates/current/clean/src/app/permission.ts +0 -9
- package/templates/current/clean/src/demo-api.spec.ts +0 -478
- package/templates/current/clean/src/features/errors/pages/error-pages.spec.ts +0 -41
- package/templates/current/clean/src/features/system/access/api/admin-repository.spec.ts +0 -14
- package/templates/current/clean/src/features/system/access/api/admin-repository.ts +0 -298
- package/templates/current/clean/src/features/system/access/api/rbac.spec.ts +0 -72
- package/templates/current/clean/src/features/system/access/api/rbac.ts +0 -292
- package/templates/current/clean/src/features/system/access/composables/useAuthorizationPolling.spec.ts +0 -134
- package/templates/current/clean/src/features/system/access/composables/useAuthorizationPolling.ts +0 -96
- package/templates/current/clean/src/features/workspace/pages/Profile.vue +0 -185
- package/templates/current/clean/src/router/componentCache.ts +0 -12
- package/templates/current/clean/src/router/componentRegistry.ts +0 -14
- package/templates/current/clean/src/router/dynamicMenuRefresh.spec.ts +0 -101
- package/templates/current/clean/src/router/dynamicRoutes.spec.ts +0 -77
- package/templates/current/clean/src/router/dynamicRoutes.ts +0 -177
- package/templates/current/clean/src/router/guards.ts +0 -5
- package/templates/current/clean/src/router/paths.spec.ts +0 -50
- package/templates/current/clean/src/router/paths.ts +0 -21
- package/templates/current/clean/src/router/routeQuery.ts +0 -6
- package/templates/current/clean/src/router/staticRoutes.ts +0 -63
- package/templates/current/clean/src/router/useRouteQueryDefaults.types.ts +0 -20
- package/templates/current/clean/tsconfig.node.json +0 -9
- package/templates/current/examples/.codebuddy/AGENTS.md +0 -18
- package/templates/current/examples/.codex/skills/build-admin-feature/SKILL.md +0 -14
- package/templates/current/examples/.codex/skills/build-admin-feature/references/component-selection.md +0 -25
- package/templates/current/examples/.codex/skills/use-og-table/SKILL.md +0 -16
- package/templates/current/examples/.cursor/AGENTS.md +0 -18
- package/templates/current/examples/.env.production.example +0 -31
- package/templates/current/examples/.qoder/AGENTS.md +0 -15
- package/templates/current/examples/e2e/admin-shell.spec.ts +0 -156
- package/templates/current/examples/e2e/demo-shell.spec.ts +0 -372
- package/templates/current/examples/playwright.demo.config.ts +0 -25
- package/templates/current/examples/scripts/clean-overlay/src/features/errors/pages/Forbidden.vue +0 -31
- package/templates/current/examples/scripts/clean-overlay/src/main.ts +0 -100
- package/templates/current/examples/scripts/clean-overlay/src/router/componentCache.ts +0 -12
- package/templates/current/examples/scripts/clean-overlay/src/router/componentRegistry.ts +0 -14
- package/templates/current/examples/scripts/clean-overlay/src/router/dynamicRoutes.spec.ts +0 -77
- package/templates/current/examples/scripts/clean-overlay/src/router/paths.ts +0 -21
- package/templates/current/examples/scripts/clean-overlay/src/router/staticRoutes.ts +0 -63
- package/templates/current/examples/scripts/demo-api.ts +0 -873
- package/templates/current/examples/src/api/client.spec.ts +0 -66
- package/templates/current/examples/src/api/client.ts +0 -152
- 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 +0 -144
- 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 +0 -50
- 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 +0 -63
- 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 +0 -169
- 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 +0 -180
- 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 +0 -167
- 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 +0 -168
- package/templates/current/examples/src/api/generated//350/256/244/350/257/201.ts +0 -95
- package/templates/current/examples/src/api/http-adapter.ts +0 -83
- package/templates/current/examples/src/app/createAdminUi.spec.ts +0 -166
- package/templates/current/examples/src/app/createAdminUi.ts +0 -63
- package/templates/current/examples/src/app/embedded-token.spec.ts +0 -40
- package/templates/current/examples/src/app/embedded.spec.ts +0 -135
- package/templates/current/examples/src/app/embedded.ts +0 -255
- package/templates/current/examples/src/app/errorMessage.ts +0 -53
- package/templates/current/examples/src/app/menu-host.spec.ts +0 -77
- package/templates/current/examples/src/app/menu.spec.ts +0 -320
- package/templates/current/examples/src/app/menu.ts +0 -308
- package/templates/current/examples/src/app/menuTypes.ts +0 -18
- package/templates/current/examples/src/app/origenUiLocale.ts +0 -10
- package/templates/current/examples/src/app/permission.ts +0 -9
- package/templates/current/examples/src/demo-api.spec.ts +0 -478
- package/templates/current/examples/src/features/errors/pages/Forbidden.vue +0 -31
- package/templates/current/examples/src/features/errors/pages/NotFound.vue +0 -31
- package/templates/current/examples/src/features/errors/pages/ServerError.vue +0 -31
- package/templates/current/examples/src/features/feature-composables.spec.ts +0 -245
- package/templates/current/examples/src/features/system/access/api/admin-repository.spec.ts +0 -14
- package/templates/current/examples/src/features/system/access/api/admin-repository.ts +0 -298
- package/templates/current/examples/src/features/system/access/api/rbac.spec.ts +0 -72
- package/templates/current/examples/src/features/system/access/api/rbac.ts +0 -292
- package/templates/current/examples/src/features/system/access/composables/useAuthorizationPolling.spec.ts +0 -134
- package/templates/current/examples/src/features/system/access/composables/useAuthorizationPolling.ts +0 -96
- package/templates/current/examples/src/features/system/audit/composables/useAuditManagement.ts +0 -122
- package/templates/current/examples/src/features/system/audit/pages/AuditList.vue +0 -20
- package/templates/current/examples/src/features/system/menus/components/MenuEditorForm.vue +0 -279
- package/templates/current/examples/src/features/system/menus/composables/useMenuManagement.ts +0 -435
- package/templates/current/examples/src/features/system/menus/menuDraft.spec.ts +0 -204
- package/templates/current/examples/src/features/system/menus/menuDraft.ts +0 -116
- package/templates/current/examples/src/features/system/menus/menuTreePrecheck.spec.ts +0 -268
- package/templates/current/examples/src/features/system/menus/menuTreePrecheck.ts +0 -317
- package/templates/current/examples/src/features/system/menus/pages/MenuList.vue +0 -51
- package/templates/current/examples/src/features/system/roles/components/RoleEditorForm.vue +0 -116
- package/templates/current/examples/src/features/system/roles/composables/useRoleManagement.ts +0 -194
- package/templates/current/examples/src/features/system/roles/pages/RoleList.vue +0 -47
- package/templates/current/examples/src/features/system/users/components/UserEditorForm.vue +0 -104
- package/templates/current/examples/src/features/system/users/composables/useUserManagement.ts +0 -228
- package/templates/current/examples/src/features/system/users/pages/UserList.vue +0 -51
- package/templates/current/examples/src/features/workspace/pages/Dashboard.spec.ts +0 -41
- package/templates/current/examples/src/features/workspace/pages/Dashboard.vue +0 -325
- package/templates/current/examples/src/features/workspace/pages/Profile.vue +0 -185
- package/templates/current/examples/src/router/componentCache.ts +0 -18
- package/templates/current/examples/src/router/componentRegistry.ts +0 -66
- package/templates/current/examples/src/router/dynamicMenuRefresh.spec.ts +0 -101
- package/templates/current/examples/src/router/dynamicRoutes.spec.ts +0 -144
- package/templates/current/examples/src/router/dynamicRoutes.ts +0 -177
- package/templates/current/examples/src/router/guards.ts +0 -5
- package/templates/current/examples/src/router/paths.spec.ts +0 -50
- package/templates/current/examples/src/router/paths.ts +0 -21
- package/templates/current/examples/src/router/routeQuery.ts +0 -6
- package/templates/current/examples/src/router/staticRoutes.ts +0 -63
- package/templates/current/examples/src/router/useRouteQueryDefaults.types.ts +0 -20
- package/templates/current/examples/tsconfig.node.json +0 -9
- /package/templates/current/clean/{.codex → .agents}/skills/style-og-origen-ui/SKILL.md +0 -0
- /package/templates/current/clean/{.codex → .agents}/skills/style-og-origen-ui/agents/openai.yaml +0 -0
- /package/templates/current/clean/{.codex → .agents}/skills/use-og-dialog/SKILL.md +0 -0
- /package/templates/current/clean/{.codex → .agents}/skills/use-og-dialog/agents/openai.yaml +0 -0
- /package/templates/current/clean/{.codex → .agents}/skills/use-og-editor/SKILL.md +0 -0
- /package/templates/current/clean/{.codex → .agents}/skills/use-og-http/SKILL.md +0 -0
- /package/templates/current/clean/{.codex → .agents}/skills/use-og-http/agents/openai.yaml +0 -0
- /package/templates/current/clean/{.codex → .agents}/skills/use-og-router-tabs/SKILL.md +0 -0
- /package/templates/current/{examples/.codex → clean/.claude}/skills/style-og-origen-ui/SKILL.md +0 -0
- /package/templates/current/{examples/.codex → clean/.claude}/skills/use-og-dialog/SKILL.md +0 -0
- /package/templates/current/{examples/.codex → clean/.claude}/skills/use-og-editor/SKILL.md +0 -0
- /package/templates/current/{examples/.codex → clean/.claude}/skills/use-og-http/SKILL.md +0 -0
- /package/templates/current/{examples/.codex → clean/.claude}/skills/use-og-router-tabs/SKILL.md +0 -0
- /package/templates/current/clean/src/{features/security/components → components}/DevtoolsProtectionOverlay.vue +0 -0
- /package/templates/current/clean/src/{features/shell/composables → composables}/useRouteProgress.ts +0 -0
- /package/templates/current/clean/src/{features/workspace → views/fallback}/pages/Empty.vue +0 -0
- /package/templates/current/examples/{.codex → .agents}/skills/style-og-origen-ui/agents/openai.yaml +0 -0
- /package/templates/current/examples/{.codex → .agents}/skills/use-og-dialog/agents/openai.yaml +0 -0
- /package/templates/current/examples/{.codex → .agents}/skills/use-og-http/agents/openai.yaml +0 -0
- /package/templates/current/examples/src/{features/security/components → components}/DevtoolsProtectionOverlay.vue +0 -0
- /package/templates/current/examples/src/{features/shell/composables → composables}/useRouteProgress.ts +0 -0
- /package/templates/current/examples/src/{features/workspace → views/fallback}/pages/Empty.vue +0 -0
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: admin-component-usage
|
|
3
|
+
description: Discover @origen-ui components for Admin work, including import paths, API surfaces, constraints, and supported extension points.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Admin component usage
|
|
7
|
+
|
|
8
|
+
Use this skill when selecting or integrating an @origen-ui component or
|
|
9
|
+
companion runtime capability in the standalone Admin scaffold. Start with
|
|
10
|
+
`references/component-directory.md` to find the public import, lifecycle state,
|
|
11
|
+
core API, and extension boundary. UI components and non-UI companion
|
|
12
|
+
capabilities are listed in separate sections. Use
|
|
13
|
+
`../build-admin-feature/references/component-selection.md` to compare components
|
|
14
|
+
by task, then read the matching `use-og-*` skill for workflow-specific
|
|
15
|
+
constraints.
|
|
16
|
+
|
|
17
|
+
The project-root `component-catalog.v2.json` is the structured contract source
|
|
18
|
+
shipped with the scaffold. Its `packageVersions` snapshot covers every
|
|
19
|
+
first-party `@origen-ui/*` and `origen-ui` package installed by the scaffold and
|
|
20
|
+
must match the installed packages. The Admin CLI itself is checked against the
|
|
21
|
+
contract source version in the scaffold lock. New standalone projects declare
|
|
22
|
+
published `@origen-ui/*` dependencies as `latest`; the lockfile records the
|
|
23
|
+
resolved versions. The project-root `component-catalog.json` remains a
|
|
24
|
+
compatibility view.
|
|
25
|
+
|
|
26
|
+
These are consumer rules. They do not describe package internals, tests, builds,
|
|
27
|
+
or releases.
|
|
@@ -0,0 +1,232 @@
|
|
|
1
|
+
# Admin component directory
|
|
2
|
+
|
|
3
|
+
Generated from `catalog/components.v2.json`. The UI component section contains
|
|
4
|
+
public Vue components only; non-UI runtime APIs appear separately under
|
|
5
|
+
companion capabilities. Lifecycle status describes the published API state.
|
|
6
|
+
|
|
7
|
+
<!-- component-directory:start -->
|
|
8
|
+
|
|
9
|
+
Package versions are pinned in `component-catalog.v2.json` (`packageVersions`) and intentionally omitted here so this document stays release-independent.
|
|
10
|
+
|
|
11
|
+
Integration examples live under `src/views/**` (pages) and `src/layouts/**` (workspace shell).
|
|
12
|
+
|
|
13
|
+
## dialog
|
|
14
|
+
|
|
15
|
+
- Public import: `OgDialog` from `@origen-ui/dialog`.
|
|
16
|
+
- Use when: Parent-controlled dialog UI.
|
|
17
|
+
- Lifecycle status: current.
|
|
18
|
+
- API summary: props: modelValue, ogCloseGuard, ogPresentation, ogMetadata, ogComponent, ogComponentProps, ogContentApi, ogLocale, ogConfirmHandler, ogConfirmLoading, ogLoading, ogProtectUnsaved, ogCancelable, ogErrorFeedback, ogShowFooter, ogFooter, ogDialogEvents, ogDrawerEvents; events: update:modelValue, confirm, cancel, actionError, close, closeError, closeResult, closed, confirmError, open, opened; slots: default, header, footer; exposes: open, close, confirm, complete, getPayload, registerContent, requestClose, setLoading, getSurfaceInstance.
|
|
19
|
+
- Extension boundary: owned props: modelValue, ogCloseGuard, ogPresentation, ogMetadata, ogComponent, ogComponentProps, ogContentApi, ogLocale, ogConfirmHandler, ogConfirmLoading, ogLoading, ogProtectUnsaved, ogCancelable, ogErrorFeedback, ogShowFooter, ogFooter, ogDialogEvents, ogDrawerEvents; owned events: confirm, cancel; owned slots: default, header, footer; exposes: open, close, confirm, complete, getPayload, registerContent, requestClose, setLoading, getSurfaceInstance; Direct top-level ElDialog or ElDrawer props selected by ogPresentation.type; ogDialogEvents / ogDrawerEvents bridge non-workflow events; getSurfaceInstance.
|
|
20
|
+
- Avoid: Element Plus ElDialog in business features.
|
|
21
|
+
- Consumer skill and call guidance: [use-og-dialog](../../use-og-dialog/SKILL.md).
|
|
22
|
+
- Detailed API, defaults, constraints, and examples: [dialog](../../../../docs/components/dialog.md).
|
|
23
|
+
|
|
24
|
+
## editor
|
|
25
|
+
|
|
26
|
+
- Public import: `OgEditor, OgEditorSetup` from `@origen-ui/editor`.
|
|
27
|
+
- Use when: Rich text authoring.
|
|
28
|
+
- Lifecycle status: current.
|
|
29
|
+
- API summary: props: modelValue, ogSetup, ogToolbar, ogReadonly, ogDisabled, ogPlaceholder, ogMinHeight, ogMaxHeight, ogMaxLength, ogAutofocus, ogLocale, ogUpload, ogSanitize, ogVideoResolvers, ogLinkDialog, ogMediaDialog, ogSourceDialog; events: update:modelValue, change, ready, focus, blur, limit, uploadStart, uploadProgress, uploadSuccess, uploadError, uploadCancel, mediaRemove; slots: toolbar-prefix, toolbar-suffix, status; exposes: focus, blur, clear, getHTML, getJSON, getText, setContent, insertContent, undo, redo, isEmpty, cancelUpload, retryUpload, removeMedia.
|
|
30
|
+
- Extension boundary: owned props: ogSetup, ogToolbar, ogReadonly, ogDisabled, ogPlaceholder, ogMinHeight, ogMaxHeight, ogMaxLength, ogAutofocus, ogLocale, ogUpload, ogSanitize, ogVideoResolvers, ogLinkDialog, ogMediaDialog, ogSourceDialog, modelValue; owned events: update:modelValue, change, ready, focus, blur, limit, uploadStart, uploadProgress, uploadSuccess, uploadError, uploadCancel, mediaRemove; owned slots: toolbar-prefix, toolbar-suffix, status; exposes: focus, blur, clear, getHTML, getJSON, getText, setContent, insertContent, undo, redo, isEmpty, cancelUpload, retryUpload, removeMedia; No single Element Plus root target. Official Select / Button / Tooltip props live under ogToolbar; Dialog / Input / Checkbox / Button props live in ogLinkDialog, ogMediaDialog, and ogSourceDialog groups; expose uses OgEditorHandle without the raw Tiptap editor.
|
|
31
|
+
- Avoid: Unsanitized HTML persistence or direct DOM insertion.
|
|
32
|
+
- Consumer skill and call guidance: [use-og-editor](../../use-og-editor/SKILL.md).
|
|
33
|
+
- Detailed API, defaults, constraints, and examples: [editor](../../../../docs/components/editor.md).
|
|
34
|
+
|
|
35
|
+
## editor-viewer
|
|
36
|
+
|
|
37
|
+
- Public import: `OgEditorViewer` from `@origen-ui/editor`.
|
|
38
|
+
- Use when: Readonly rich text rendering.
|
|
39
|
+
- Lifecycle status: current.
|
|
40
|
+
- API summary: props: ogContent, ogEmptyText, ogLocale, ogSanitize, ogSsrMode, ogServerSanitize.
|
|
41
|
+
- Extension boundary: owned props: ogContent, ogEmptyText, ogLocale, ogSanitize, ogSsrMode, ogServerSanitize; Use the underlying Tiptap renderer directly when DOM-level rendering control is required.
|
|
42
|
+
- Avoid: Rendering untrusted HTML without server sanitization.
|
|
43
|
+
- Consumer skill and call guidance: [use-og-editor](../../use-og-editor/SKILL.md).
|
|
44
|
+
- Detailed API, defaults, constraints, and examples: [editor-viewer](../../../../docs/components/editor-viewer.md).
|
|
45
|
+
|
|
46
|
+
## form
|
|
47
|
+
|
|
48
|
+
- Public import: `OgForm` from `@origen-ui/form`.
|
|
49
|
+
- Use when: Schema-driven create, edit, or readonly forms.
|
|
50
|
+
- Lifecycle status: current.
|
|
51
|
+
- API summary: props: modelValue, ogSchema, ogSectionVariant, ogAnchor, ogScrollToFirstError, ogReadonly, ogColumns, ogResponsiveColumns, ogBaselineKey, ogModelTransform, ogDirtyModelTransform, ogLocale, ogOperationContext, ogOptionsPolicy, ogSubmitOnEnter, ogPermissions, ogRendererRegistry; events: fieldChange, dirtyError, optionsError, operationError, validate, update:modelValue, submit, submitInvalid; slots: actions, *; exposes: validate, validateResult, validateField, clearValidate, focusField, getFieldMeta, getDirtyFields, getModel, getSubmitModel, isDirty, markClean, reset, resetField, clearFields, clearField, setFields, setFieldValue, getFieldValue, refreshOptions, refreshOptionsResult, formRef.
|
|
52
|
+
- Extension boundary: owned props: modelValue, ogSchema, ogSectionVariant, ogAnchor, ogScrollToFirstError, ogReadonly, ogColumns, ogResponsiveColumns, ogBaselineKey, ogModelTransform, ogDirtyModelTransform, ogLocale, ogOperationContext, ogOptionsPolicy, ogSubmitOnEnter, ogPermissions, ogRendererRegistry; owned events: fieldChange, dirtyError, optionsError, operationError, validate, update:modelValue, submit, submitInvalid; owned slots: actions, *; exposes: validate, validateResult, validateField, clearValidate, focusField, getFieldMeta, getDirtyFields, getModel, getSubmitModel, isDirty, markClean, reset, resetField, clearFields, clearField, setFields, setFieldValue, getFieldValue, refreshOptions, refreshOptionsResult; Direct top-level ElForm props; model and rules are bound by OgForm. Field targets use ogControl and ogFormItem groups; formRef exposes the native FormInstance.
|
|
53
|
+
- Avoid: Element Plus ElForm or removed legacy APIs.
|
|
54
|
+
- Consumer skill and call guidance: [use-og-form](../../use-og-form/SKILL.md).
|
|
55
|
+
- Detailed API, defaults, constraints, and examples: [form](../../../../docs/components/form.md).
|
|
56
|
+
|
|
57
|
+
## form-table
|
|
58
|
+
|
|
59
|
+
- Public import: `OgFormTable, createOgFormTableField` from `@origen-ui/form-table`.
|
|
60
|
+
- Use when: Editable array fields and line-item forms.
|
|
61
|
+
- Lifecycle status: current.
|
|
62
|
+
- API summary: props: modelValue, rowKey, ogColumns, ogConfig, ogEditMode, ogTableEvents, ogTableSlots, ogReadonly, ogRenderDisabledGridCells, ogQueryDefaults, ogLocal, ogEditableHint, ogEditableHintText, ogShowEditModeButton, ogRowDisabled, ogDisabledHintText, ogLocale, ogFormTableLocale, ogRendererRegistry, selectionTooltip; events: update:modelValue, loadSuccess, loadError, pluginError, selectionChange, selectionScopeChange, batchJobChange, transactionConflict, sortChange, search, searchOptionsError, cellChange, filterOptionsError, rowAdd, rowRemove, operationError, update:ogEditMode; slots: search, empty, error, expand, beforeActions, actions, afterActions, overflowActions, beforeToolbar, afterToolbar, beforeTable, tableEmpty, tableAppend; exposes: getElTable, addRow, removeRow, validate, validateRows, refresh, reset, getSelectedRows, clearSelection, toggleRowSelection, toggleRowExpansion, getExpandedRows, resetColumnWidths, scrollTo, getState, applyState.
|
|
63
|
+
- Extension boundary: owned props: modelValue, rowKey, ogColumns, ogConfig, ogEditMode, ogTableEvents, ogTableSlots, ogReadonly, ogRenderDisabledGridCells, ogQueryDefaults, ogLocal, ogEditableHint, ogEditableHintText, ogShowEditModeButton, ogRowDisabled, ogDisabledHintText, ogLocale, ogFormTableLocale, ogRendererRegistry, selectionTooltip; owned events: update:modelValue, loadSuccess, loadError, pluginError, selectionChange, selectionScopeChange, batchJobChange, transactionConflict, sortChange, search, searchOptionsError, cellChange, filterOptionsError, rowAdd, rowRemove, operationError, update:ogEditMode; owned slots: search, empty, error, expand, beforeActions, actions, afterActions, overflowActions, beforeToolbar, afterToolbar, beforeTable, tableEmpty, tableAppend; exposes: addRow, removeRow, validate, validateRows; Direct ElTable or ElTableV2 props filtered by the active ogConfig.virtual surface; ogTableEvents / ogTableSlots bridge supported native events and slots; getElTable.
|
|
64
|
+
- Avoid: Mutating parent form arrays or duplicate remote table fetching.
|
|
65
|
+
- Consumer skill and call guidance: [use-og-form-table](../../use-og-form-table/SKILL.md).
|
|
66
|
+
- Detailed API, defaults, constraints, and examples: [form-table](../../../../docs/components/form-table.md).
|
|
67
|
+
|
|
68
|
+
## search
|
|
69
|
+
|
|
70
|
+
- Public import: `OgSearch` from `@origen-ui/search`.
|
|
71
|
+
- Use when: Standalone query/filter panels.
|
|
72
|
+
- Lifecycle status: current.
|
|
73
|
+
- API summary: props: modelValue, ogKeyword, ogExpanded, ogConfig, ogLoading, ogRendererRegistry, ogReset, inline, labelPosition, labelSuffix, showMessage, size, disabled, inlineMessage, statusIcon, ogPermissions, ogSubmitOnEnter, ogShowReset, ogShowToggle, ogLabelPlacement, ogControlLabelWidth, ogControlLabelStyle; events: update:modelValue, update:ogKeyword, update:ogExpanded, search, reset, validate, fieldChange, optionsError; slots: *; exposes: formRef, validate, submit, reset, getModel, getSubmitParams, setFieldValue, setFields, refreshOptions, cancelOptions, focus, getFieldError, clearErrors, isDirty, getDirtyFields.
|
|
74
|
+
- Extension boundary: owned props: modelValue, ogKeyword, ogExpanded, ogConfig, ogRendererRegistry, ogReset, ogLoading, ogPermissions, ogSubmitOnEnter, ogShowReset, ogShowToggle, ogLabelPlacement, ogControlLabelWidth, ogControlLabelStyle; owned events: update:modelValue, update:ogKeyword, update:ogExpanded, search, reset, validate, fieldChange, optionsError; owned slots: *; exposes: submit, validate, reset, getModel, getSubmitParams, setFieldValue, setFields, refreshOptions, cancelOptions, focus, getFieldError, clearErrors, isDirty, getDirtyFields; Direct top-level ElForm props except the model bound by OgSearch; fields use ogControl: { ogType, ...nativeProps, ogEvents, ogSlots }, with field-level ogFormItem and ogFormItemSlots; omit ogControl for input, explicit controls require ogType; instance ogRendererRegistry supports custom:name without widening built-in props; custom remains the field slot; unknown renderers throw; formRef.
|
|
75
|
+
- Avoid: Owning list loading or pagination.
|
|
76
|
+
- Consumer skill and call guidance: [use-og-search](../../use-og-search/SKILL.md).
|
|
77
|
+
- Detailed API, defaults, constraints, and examples: [search](../../../../docs/components/search.md).
|
|
78
|
+
|
|
79
|
+
## table
|
|
80
|
+
|
|
81
|
+
- Public import: `OgTable` from `@origen-ui/table`.
|
|
82
|
+
- Use when: Typed local or remote data tables.
|
|
83
|
+
- Lifecycle status: current.
|
|
84
|
+
- API summary: props: rowKey, ogColumns, ogDataSource, ogConfig, ogQueryDefaults, ogTableEvents, ogTableSlots, ogReadonly, ogRenderDisabledGridCells, ogOnVisibleColumnsChange, selectionTooltip; events: selectionChange, loadSuccess, loadError, operationError, pluginError, selectionScopeChange, batchJobChange, transactionConflict, sortChange, search, searchOptionsError, cellChange, filterOptionsError; slots: search, empty, error, expand, editor, beforeActions, actions, afterActions, overflowActions, beforeToolbar, afterToolbar, beforeTable, tableEmpty, tableAppend; exposes: getElTable, refresh, reset, refreshRow, clearFilterMemory, getSelectedRows, getChanges, hasChanges, discardChanges, commitChanges, clearSelection, toggleRowSelection, toggleRowExpansion, getExpandedRows, resetColumnWidths, scrollTo, getState, applyState.
|
|
85
|
+
- Extension boundary: owned props: rowKey, ogColumns, ogDataSource, ogConfig, ogQueryDefaults, ogTableEvents, ogTableSlots, ogReadonly, ogRenderDisabledGridCells, ogOnVisibleColumnsChange, selectionTooltip; owned events: selectionChange, loadSuccess, loadError, operationError, pluginError, selectionScopeChange, batchJobChange, transactionConflict, sortChange, search, searchOptionsError, cellChange, filterOptionsError; owned slots: search, empty, error, expand, editor, beforeActions, actions, afterActions, overflowActions, beforeToolbar, afterToolbar, beforeTable, tableEmpty, tableAppend; exposes: refresh, reset, refreshRow, clearFilterMemory, getSelectedRows, getChanges, hasChanges, discardChanges, commitChanges, clearSelection, toggleRowSelection, toggleRowExpansion, getExpandedRows, resetColumnWidths, scrollTo, getState, applyState; Direct ElTable or ElTableV2 props filtered by ogConfig.virtual.enabled; ogTableEvents / ogTableSlots bridge supported native events and slots; getElTable.
|
|
86
|
+
- Avoid: Legacy fetch/searchSchema APIs or ElTable.
|
|
87
|
+
- Consumer skill and call guidance: [use-og-table](../../use-og-table/SKILL.md).
|
|
88
|
+
- Detailed API, defaults, constraints, and examples: [table](../../../../docs/components/table.md).
|
|
89
|
+
|
|
90
|
+
## table-local
|
|
91
|
+
|
|
92
|
+
- Public import: `OgTableLocal` from `@origen-ui/table`.
|
|
93
|
+
- Use when: Editable local tables embedded in a form or workflow.
|
|
94
|
+
- Lifecycle status: current.
|
|
95
|
+
- API summary: props: modelValue, rowKey, ogColumns, ogConfig, ogLocal, ogReadonly, ogTableEvents, ogTableSlots, ogRenderDisabledGridCells, ogQueryDefaults, ogOnVisibleColumnsChange, selectionTooltip; events: update:modelValue, loadSuccess, loadError, operationError, pluginError, selectionChange, selectionScopeChange, batchJobChange, transactionConflict, sortChange, search, searchOptionsError, cellChange, filterOptionsError, rowAdd, rowRemove; slots: search, empty, error, expand, editor, beforeActions, actions, afterActions, overflowActions, beforeToolbar, afterToolbar, beforeTable, tableEmpty, tableAppend; exposes: getElTable, addRow, removeRow, refresh, reset, getSelectedRows, clearSelection, toggleRowSelection, toggleRowExpansion, getExpandedRows, resetColumnWidths, scrollTo, getState, applyState.
|
|
96
|
+
- Extension boundary: owned props: modelValue, rowKey, ogColumns, ogConfig, ogLocal, ogReadonly, ogTableEvents, ogTableSlots, ogRenderDisabledGridCells, ogQueryDefaults, ogOnVisibleColumnsChange, selectionTooltip; owned events: update:modelValue, loadSuccess, loadError, operationError, pluginError, selectionChange, selectionScopeChange, batchJobChange, transactionConflict, sortChange, search, searchOptionsError, cellChange, filterOptionsError, rowAdd, rowRemove; owned slots: search, empty, error, expand, editor, beforeActions, actions, afterActions, overflowActions, beforeToolbar, afterToolbar, beforeTable, tableEmpty, tableAppend; exposes: addRow, removeRow, refresh, reset, getSelectedRows, clearSelection, toggleRowSelection, toggleRowExpansion, getExpandedRows, resetColumnWidths, scrollTo, getState, applyState; Direct ElTable or ElTableV2 props filtered by the active ogConfig.virtual surface; ogTableEvents / ogTableSlots bridge supported native events and slots; getElTable.
|
|
97
|
+
- Avoid: Treating local rows as an implicit remote data source.
|
|
98
|
+
- Consumer skill and call guidance: [use-og-table](../../use-og-table/SKILL.md).
|
|
99
|
+
- Detailed API, defaults, constraints, and examples: [table-local](../../../../docs/components/table-local.md).
|
|
100
|
+
|
|
101
|
+
## table-with-search
|
|
102
|
+
|
|
103
|
+
- Public import: `OgTableWithSearch` from `@origen-ui/table-search`.
|
|
104
|
+
- Use when: Remote CRUD lists with search and paging.
|
|
105
|
+
- Lifecycle status: current.
|
|
106
|
+
- API summary: props: rowKey, ogColumns, ogDataSource, ogConfig, ogQueryDefaults, ogSearch, selectionTooltip; slots: search-*, beforeActions, actions, afterActions, overflowActions, beforeToolbar, editor, empty, error, expand, afterToolbar, beforeTable, tableEmpty, tableAppend, search; exposes: getElTable, getSearchInstance, refresh, reset, refreshRow, clearFilterMemory, getSelectedRows, getChanges, hasChanges, discardChanges, commitChanges, clearSelection, toggleRowSelection, toggleRowExpansion, getExpandedRows, resetColumnWidths, scrollTo, getState, applyState.
|
|
107
|
+
- Extension boundary: owned props: rowKey, ogColumns, ogDataSource, ogConfig, ogQueryDefaults, ogSearch, selectionTooltip; owned slots: search-*, beforeActions, actions, afterActions, overflowActions, beforeToolbar, editor, empty, error, expand, afterToolbar, beforeTable, tableEmpty, tableAppend, search; exposes: refresh, reset; Direct ElTable or ElTableV2 props filtered by ogConfig.virtual.enabled; ogTableEvents / ogTableSlots bridge table events and slots; ogSearch groups nested search props and events; getElTable / getSearchInstance.
|
|
108
|
+
- Avoid: Separate ad-hoc search and table state.
|
|
109
|
+
- Consumer skill and call guidance: [use-og-table](../../use-og-table/SKILL.md).
|
|
110
|
+
- Detailed API, defaults, constraints, and examples: [table-with-search](../../../../docs/components/table-with-search.md).
|
|
111
|
+
|
|
112
|
+
## tabs
|
|
113
|
+
|
|
114
|
+
- Public import: `OgTabs` from `@origen-ui/tabs`.
|
|
115
|
+
- Use when: Page-local business tabs.
|
|
116
|
+
- Lifecycle status: current.
|
|
117
|
+
- API summary: props: modelValue, ogItems, ogVariant, ogFeatures, ogContextMenu, ogActionPolicy, ogDensity, ogRenderContent, ogReadonly, ogBusy, ogTabsEvents, ogLocale, ogMinTabWidth, ogMaxTabWidth, ogThemeColor, ogSticky, ogFinderThreshold, ogBeforeAction, ogActionHandler; events: update:modelValue, update:ogItems, actionRequest, closeRequest, refreshRequest, pinChangeRequest, reorderRequest, operationDenied, operationError, tabClick, tabChange, tabRemove; slots: default, label, tabBefore, tabAfter, status, contextMenuTop, contextMenuBottom, header, extra, empty; exposes: getNativeTabs, requestAdd, close, activate, closeScope, pin, unpin, move, moveTop, moveBottom, refresh, scrollTo, getItems.
|
|
118
|
+
- Extension boundary: owned props: modelValue, ogItems, ogVariant, ogFeatures, ogContextMenu, ogActionPolicy, ogDensity, ogRenderContent, ogReadonly, ogBusy, ogTabsEvents, ogLocale, ogMinTabWidth, ogMaxTabWidth, ogThemeColor, ogSticky, ogFinderThreshold, ogBeforeAction, ogActionHandler; owned events: update:modelValue, update:ogItems, actionRequest, closeRequest, refreshRequest, pinChangeRequest, reorderRequest, operationDenied, operationError, tabClick, tabChange, tabRemove; owned slots: default, label, tabBefore, tabAfter, status, contextMenuTop, contextMenuBottom, header, extra, empty; exposes: close, activate, requestAdd, closeScope, pin, unpin, move, moveTop, moveBottom, refresh, scrollTo, getItems; Direct top-level ElTabs props; Og-owned model and workflow attributes are excluded; ogTabsEvents bridges native callbacks; getNativeTabs.
|
|
119
|
+
- Avoid: Using page-local tabs for route workspace state.
|
|
120
|
+
- Consumer skill and call guidance: [use-og-router-tabs](../../use-og-router-tabs/SKILL.md).
|
|
121
|
+
- Detailed API, defaults, constraints, and examples: [tabs](../../../../docs/components/tabs.md).
|
|
122
|
+
|
|
123
|
+
## upload
|
|
124
|
+
|
|
125
|
+
- Public import: `OgUpload, createXhrUploadAdapter` from `@origen-ui/upload`.
|
|
126
|
+
- Use when: Validated file uploads and URL projection.
|
|
127
|
+
- Lifecycle status: current.
|
|
128
|
+
- API summary: props: modelValue, ogAdapter, ogValueType, ogValueCodec, accept, limit, ogAutoUpload, ogBeforeUpload, ogConcurrency, ogConfirmRemove, ogDuplicate, ogLocale, ogMaxSize, ogResolveResponse, ogRetry, ogText, ogTip, ogUploadEvents, ogVariant; events: operationError, uploadSuccess, update:modelValue, change, exceed, progress, removeSuccess, validationError; slots: default, empty, file, tip; exposes: submit, clearFiles, abort, getFiles, remove, retry, validate.
|
|
129
|
+
- Extension boundary: owned props: modelValue, ogAdapter, ogValueType, ogValueCodec, ogAutoUpload, ogBeforeUpload, ogConcurrency, ogConfirmRemove, ogDuplicate, ogLocale, ogMaxSize, ogResolveResponse, ogRetry, ogText, ogTip, ogUploadEvents, ogVariant; owned events: operationError, uploadSuccess, update:modelValue, change, exceed, progress, removeSuccess, validationError; owned slots: default, empty, file, tip; exposes: submit, clearFiles, abort, getFiles, remove, retry, validate; Allowed Element Plus Upload props use their official names at the root; transport, file-list, and lifecycle props are managed by OgUpload, with limit and showFileList exposed as controlled native options; ogUploadEvents exposes change.
|
|
130
|
+
- Avoid: Package-level transport clients or mutating internal files.
|
|
131
|
+
- Consumer skill and call guidance: [use-og-upload](../../use-og-upload/SKILL.md).
|
|
132
|
+
- Detailed API, defaults, constraints, and examples: [upload](../../../../docs/components/upload.md).
|
|
133
|
+
|
|
134
|
+
## form-item
|
|
135
|
+
|
|
136
|
+
- Public import: `OgFormItem` from `@origen-ui/form`.
|
|
137
|
+
- Use when: A single schema-aware field needs to participate in an existing OgForm context.
|
|
138
|
+
- Lifecycle status: current.
|
|
139
|
+
- API summary: props: ogName, ogField, ogReadonly, ogLabelTip; slots: default, *.
|
|
140
|
+
- Extension boundary: owned props: ogName, ogField, ogReadonly, ogLabelTip; owned slots: default, *; Direct top-level ElFormItem props except prop and error, which OgForm owns for field identity and validation.; Use ElFormItem directly for raw Element Plus form-item behavior outside OgForm context.
|
|
141
|
+
- Avoid: Using it as a transparent Element Plus ElFormItem replacement.
|
|
142
|
+
- Consumer skill and call guidance: [use-og-form](../../use-og-form/SKILL.md).
|
|
143
|
+
- Detailed API, defaults, constraints, and examples: [form-item](../../../../docs/components/form.md).
|
|
144
|
+
|
|
145
|
+
## field-renderer
|
|
146
|
+
|
|
147
|
+
- Public import: `FieldRenderer` from `@origen-ui/form`.
|
|
148
|
+
- Use when: An advanced integration needs the registered OgForm control renderer.
|
|
149
|
+
- Lifecycle status: current.
|
|
150
|
+
- API summary: props: ogField, ogReadonly, ogA11y; slots: options-error.
|
|
151
|
+
- Extension boundary: owned props: ogField, ogReadonly, ogA11y; owned slots: options-error; Use the required Element Plus control directly when the schema renderer contract is not needed.
|
|
152
|
+
- Avoid: Treating it as a general-purpose Element Plus control wrapper.
|
|
153
|
+
- Consumer skill and call guidance: [use-og-form](../../use-og-form/SKILL.md).
|
|
154
|
+
- Detailed API, defaults, constraints, and examples: [field-renderer](../../../../docs/components/form.md).
|
|
155
|
+
|
|
156
|
+
## svg-icon
|
|
157
|
+
|
|
158
|
+
- Public import: `SvgIcon` from `@origen-ui/icons`.
|
|
159
|
+
- Use when: Rendering a project SVG sprite icon.
|
|
160
|
+
- Lifecycle status: current.
|
|
161
|
+
- API summary: props: name, size, color, label.
|
|
162
|
+
- Extension boundary: owned props: name, size, color, label.
|
|
163
|
+
- Avoid: Passing untrusted or arbitrary symbol identifiers.
|
|
164
|
+
- Consumer skill and call guidance: [style-og-origen-ui](../../style-og-origen-ui/SKILL.md).
|
|
165
|
+
- Detailed API, defaults, constraints, and examples: [svg-icon](../../../../docs/components/svg-icon.md).
|
|
166
|
+
|
|
167
|
+
## router-view-host
|
|
168
|
+
|
|
169
|
+
- Public import: `RouterViewHost` from `@origen-ui/router`.
|
|
170
|
+
- Use when: Rendering a route workspace with keep-alive semantics.
|
|
171
|
+
- Lifecycle status: current.
|
|
172
|
+
- API summary: props: cacheMax.
|
|
173
|
+
- Extension boundary: owned props: cacheMax; Use vue-router RouterView directly for route slots, props, or transition control not owned by the workspace host.
|
|
174
|
+
- Avoid: Using it as a transparent vue-router RouterView replacement.
|
|
175
|
+
- Consumer skill and call guidance: [use-og-router-tabs](../../use-og-router-tabs/SKILL.md).
|
|
176
|
+
- Detailed API, defaults, constraints, and examples: [router-view-host](../../../../docs/components/router.md).
|
|
177
|
+
|
|
178
|
+
## dialog-host
|
|
179
|
+
|
|
180
|
+
- Public import: `OgDialogHost` from `@origen-ui/dialog`.
|
|
181
|
+
- Use when: Mounting manager-owned dialogs once in the application tree.
|
|
182
|
+
- Lifecycle status: current.
|
|
183
|
+
- API summary: props: manager.
|
|
184
|
+
- Extension boundary: owned props: manager; Mount one host in the app tree after installing createOgDialog(), or pass a DialogManager explicitly.
|
|
185
|
+
- Avoid: Creating a second app or mounting multiple hosts for one manager.
|
|
186
|
+
- Consumer skill and call guidance: [use-og-dialog](../../use-og-dialog/SKILL.md).
|
|
187
|
+
- Detailed API, defaults, constraints, and examples: [dialog-host](../../../../docs/components/dialog.md).
|
|
188
|
+
|
|
189
|
+
## router-breadcrumb
|
|
190
|
+
|
|
191
|
+
- Public import: `RouterBreadcrumb` from `@origen-ui/router/element-plus`.
|
|
192
|
+
- Use when: Displaying breadcrumbs derived from the active route.
|
|
193
|
+
- Lifecycle status: current.
|
|
194
|
+
- API summary: slots: default.
|
|
195
|
+
- Extension boundary: owned slots: default; Element Plus Breadcrumb props stay at the root; by default labels and links come from the active router adapter.
|
|
196
|
+
- Avoid: Hard-coding route labels when adapter metadata can provide them.
|
|
197
|
+
- Consumer skill and call guidance: [use-og-router-tabs](../../use-og-router-tabs/SKILL.md).
|
|
198
|
+
- Detailed API, defaults, constraints, and examples: [router-breadcrumb](../../../../docs/components/router.md).
|
|
199
|
+
|
|
200
|
+
## router-menu
|
|
201
|
+
|
|
202
|
+
- Public import: `RouterMenu` from `@origen-ui/router/element-plus`.
|
|
203
|
+
- Use when: Rendering adapter-backed route menus with active selection and icon resolution.
|
|
204
|
+
- Lifecycle status: current.
|
|
205
|
+
- API summary: props: ogResolveIcon, ogMenuEvents, ogNodeProps, ogNodeEvents; slots: default.
|
|
206
|
+
- Extension boundary: owned props: ogResolveIcon, ogMenuEvents, ogNodeProps, ogNodeEvents; owned slots: default; Element Plus Menu props stay at the root except adapter-owned defaultActive; native callbacks use ogMenuEvents, and per-node props/events use ogNodeProps and ogNodeEvents.
|
|
207
|
+
- Avoid: Trusting backend import paths or duplicating menu authorization in the view.
|
|
208
|
+
- Consumer skill and call guidance: [use-og-router-tabs](../../use-og-router-tabs/SKILL.md).
|
|
209
|
+
- Detailed API, defaults, constraints, and examples: [router-menu](../../../../docs/components/router.md).
|
|
210
|
+
|
|
211
|
+
## router-tabs
|
|
212
|
+
|
|
213
|
+
- Public import: `RouterTabs` from `@origen-ui/router/tabs`.
|
|
214
|
+
- Use when: Rendering route-backed workspace tabs with route and cache behavior.
|
|
215
|
+
- Lifecycle status: current.
|
|
216
|
+
- API summary: props: ogFeatures, ogLocale, ogAddTab.
|
|
217
|
+
- Extension boundary: owned props: ogFeatures, ogLocale, ogAddTab; Element Plus Tabs props stay at the root; RouterTabs owns route-backed tab identity and activation while ogFeatures and ogAddTab configure workspace behavior.; Do not pass modelValue to control the active workspace tab; RouterTabs derives tab identity and activation from the route workspace.
|
|
218
|
+
- Avoid: Using page-local OgTabs for route workspace state.
|
|
219
|
+
- Consumer skill and call guidance: [use-og-router-tabs](../../use-og-router-tabs/SKILL.md).
|
|
220
|
+
- Detailed API, defaults, constraints, and examples: [router-tabs](../../../../docs/components/router.md).
|
|
221
|
+
|
|
222
|
+
## Companion capabilities
|
|
223
|
+
|
|
224
|
+
### dialog-manager
|
|
225
|
+
|
|
226
|
+
- Public import: `createOgDialog, useDialog` from `@origen-ui/dialog`.
|
|
227
|
+
- Use when: Awaitable or manager-owned dialog workflows.
|
|
228
|
+
- Lifecycle status: current.
|
|
229
|
+
- Avoid: createApp or a global fallback manager.
|
|
230
|
+
- Consumer skill and call guidance: [use-og-dialog](../../use-og-dialog/SKILL.md).
|
|
231
|
+
|
|
232
|
+
<!-- component-directory:end -->
|
|
@@ -6,9 +6,15 @@ description: Build a typed Vue Admin business feature. Use when adding a page, C
|
|
|
6
6
|
# Build an Admin feature
|
|
7
7
|
|
|
8
8
|
1. Define the feature model, permissions, API contract, and route before writing a page.
|
|
9
|
-
2.
|
|
10
|
-
3.
|
|
11
|
-
4.
|
|
12
|
-
5.
|
|
9
|
+
2. For each page menu (`menuType: "C"`), create `src/views/<area>/<domain>/pages/index.vue`; the router discovers pages with `import.meta.glob('@/views/**/pages/**/*.vue')`.
|
|
10
|
+
3. Set the backend menu `component` to `<area>/<domain>/index` without an alias or file extension. For example, `system/user/index` resolves to `src/views/system/user/pages/index.vue`.
|
|
11
|
+
4. Directory menus (`menuType: "M"`) use layout outlets, and button menus (`menuType: "F"`) contribute permissions without creating page files.
|
|
12
|
+
5. Create `api`, `composables`, and `components` alongside `pages` only when those responsibilities exist.
|
|
13
|
+
6. Select the mandatory @origen-ui business component before writing view code.
|
|
14
|
+
7. Do not add a hand-maintained component registry; keep backend component values aligned with the discovered page path.
|
|
15
|
+
8. Add a focused test and run application quality gates.
|
|
13
16
|
|
|
14
|
-
Read `references/component-selection.md` before
|
|
17
|
+
Read `admin-component-usage` and `references/component-selection.md` before
|
|
18
|
+
choosing a UI primitive. Read the matching component detail in
|
|
19
|
+
`admin-component-usage/references/component-directory.md` for its API and
|
|
20
|
+
extension boundary.
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
# Component selection
|
|
2
|
+
|
|
3
|
+
<!-- component-catalog:start -->
|
|
4
|
+
|
|
5
|
+
Package versions are pinned in `component-catalog.v2.json` (`packageVersions`) and intentionally omitted here so this document stays release-independent.
|
|
6
|
+
|
|
7
|
+
Integration examples live under `src/views/**` (pages) and `src/layouts/**` (workspace shell).
|
|
8
|
+
|
|
9
|
+
## UI components
|
|
10
|
+
|
|
11
|
+
| Use case | Public import | Skill | Extension surface | Avoid | Lifecycle |
|
|
12
|
+
| ------------------------------------------------------------------------------ | -------------------------------------------------------------------- | ------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------- | --------- |
|
|
13
|
+
| Parent-controlled dialog UI | `OgDialog` from `@origen-ui/dialog` | [use-og-dialog](../../use-og-dialog/SKILL.md) | owned props: modelValue, ogCloseGuard, ogPresentation, ogMetadata, ogComponent, ogComponentProps, ogContentApi, ogLocale, ogConfirmHandler, ogConfirmLoading, ogLoading, ogProtectUnsaved, ogCancelable, ogErrorFeedback, ogShowFooter, ogFooter, ogDialogEvents, ogDrawerEvents; owned events: confirm, cancel; owned slots: default, header, footer; exposes: open, close, confirm, complete, getPayload, registerContent, requestClose, setLoading, getSurfaceInstance; Direct top-level ElDialog or ElDrawer props selected by ogPresentation.type; ogDialogEvents / ogDrawerEvents bridge non-workflow events; getSurfaceInstance. | Element Plus ElDialog in business features | current |
|
|
14
|
+
| Rich text authoring | `OgEditor`, `OgEditorSetup` from `@origen-ui/editor` | [use-og-editor](../../use-og-editor/SKILL.md) | owned props: ogSetup, ogToolbar, ogReadonly, ogDisabled, ogPlaceholder, ogMinHeight, ogMaxHeight, ogMaxLength, ogAutofocus, ogLocale, ogUpload, ogSanitize, ogVideoResolvers, ogLinkDialog, ogMediaDialog, ogSourceDialog, modelValue; owned events: update:modelValue, change, ready, focus, blur, limit, uploadStart, uploadProgress, uploadSuccess, uploadError, uploadCancel, mediaRemove; owned slots: toolbar-prefix, toolbar-suffix, status; exposes: focus, blur, clear, getHTML, getJSON, getText, setContent, insertContent, undo, redo, isEmpty, cancelUpload, retryUpload, removeMedia; No single Element Plus root target. Official Select / Button / Tooltip props live under ogToolbar; Dialog / Input / Checkbox / Button props live in ogLinkDialog, ogMediaDialog, and ogSourceDialog groups; expose uses OgEditorHandle without the raw Tiptap editor. | Unsanitized HTML persistence or direct DOM insertion | current |
|
|
15
|
+
| Readonly rich text rendering | `OgEditorViewer` from `@origen-ui/editor` | [use-og-editor](../../use-og-editor/SKILL.md) | owned props: ogContent, ogEmptyText, ogLocale, ogSanitize, ogSsrMode, ogServerSanitize; Use the underlying Tiptap renderer directly when DOM-level rendering control is required. | Rendering untrusted HTML without server sanitization | current |
|
|
16
|
+
| Schema-driven create, edit, or readonly forms | `OgForm` from `@origen-ui/form` | [use-og-form](../../use-og-form/SKILL.md) | owned props: modelValue, ogSchema, ogSectionVariant, ogAnchor, ogScrollToFirstError, ogReadonly, ogColumns, ogResponsiveColumns, ogBaselineKey, ogModelTransform, ogDirtyModelTransform, ogLocale, ogOperationContext, ogOptionsPolicy, ogSubmitOnEnter, ogPermissions, ogRendererRegistry; owned events: fieldChange, dirtyError, optionsError, operationError, validate, update:modelValue, submit, submitInvalid; owned slots: actions, *; exposes: validate, validateResult, validateField, clearValidate, focusField, getFieldMeta, getDirtyFields, getModel, getSubmitModel, isDirty, markClean, reset, resetField, clearFields, clearField, setFields, setFieldValue, getFieldValue, refreshOptions, refreshOptionsResult; Direct top-level ElForm props; model and rules are bound by OgForm. Field targets use ogControl and ogFormItem groups; formRef exposes the native FormInstance. | Element Plus ElForm or removed legacy APIs | current |
|
|
17
|
+
| Editable array fields and line-item forms | `OgFormTable`, `createOgFormTableField` from `@origen-ui/form-table` | [use-og-form-table](../../use-og-form-table/SKILL.md) | owned props: modelValue, rowKey, ogColumns, ogConfig, ogEditMode, ogTableEvents, ogTableSlots, ogReadonly, ogRenderDisabledGridCells, ogQueryDefaults, ogLocal, ogEditableHint, ogEditableHintText, ogShowEditModeButton, ogRowDisabled, ogDisabledHintText, ogLocale, ogFormTableLocale, ogRendererRegistry, selectionTooltip; owned events: update:modelValue, loadSuccess, loadError, pluginError, selectionChange, selectionScopeChange, batchJobChange, transactionConflict, sortChange, search, searchOptionsError, cellChange, filterOptionsError, rowAdd, rowRemove, operationError, update:ogEditMode; owned slots: search, empty, error, expand, beforeActions, actions, afterActions, overflowActions, beforeToolbar, afterToolbar, beforeTable, tableEmpty, tableAppend; exposes: addRow, removeRow, validate, validateRows; Direct ElTable or ElTableV2 props filtered by the active ogConfig.virtual surface; ogTableEvents / ogTableSlots bridge supported native events and slots; getElTable. | Mutating parent form arrays or duplicate remote table fetching | current |
|
|
18
|
+
| Standalone query/filter panels | `OgSearch` from `@origen-ui/search` | [use-og-search](../../use-og-search/SKILL.md) | owned props: modelValue, ogKeyword, ogExpanded, ogConfig, ogRendererRegistry, ogReset, ogLoading, ogPermissions, ogSubmitOnEnter, ogShowReset, ogShowToggle, ogLabelPlacement, ogControlLabelWidth, ogControlLabelStyle; owned events: update:modelValue, update:ogKeyword, update:ogExpanded, search, reset, validate, fieldChange, optionsError; owned slots: *; exposes: submit, validate, reset, getModel, getSubmitParams, setFieldValue, setFields, refreshOptions, cancelOptions, focus, getFieldError, clearErrors, isDirty, getDirtyFields; Direct top-level ElForm props except the model bound by OgSearch; fields use ogControl: { ogType, ...nativeProps, ogEvents, ogSlots }, with field-level ogFormItem and ogFormItemSlots; omit ogControl for input, explicit controls require ogType; instance ogRendererRegistry supports custom:name without widening built-in props; custom remains the field slot; unknown renderers throw; formRef. | Owning list loading or pagination | current |
|
|
19
|
+
| Typed local or remote data tables | `OgTable` from `@origen-ui/table` | [use-og-table](../../use-og-table/SKILL.md) | owned props: rowKey, ogColumns, ogDataSource, ogConfig, ogQueryDefaults, ogTableEvents, ogTableSlots, ogReadonly, ogRenderDisabledGridCells, ogOnVisibleColumnsChange, selectionTooltip; owned events: selectionChange, loadSuccess, loadError, operationError, pluginError, selectionScopeChange, batchJobChange, transactionConflict, sortChange, search, searchOptionsError, cellChange, filterOptionsError; owned slots: search, empty, error, expand, editor, beforeActions, actions, afterActions, overflowActions, beforeToolbar, afterToolbar, beforeTable, tableEmpty, tableAppend; exposes: refresh, reset, refreshRow, clearFilterMemory, getSelectedRows, getChanges, hasChanges, discardChanges, commitChanges, clearSelection, toggleRowSelection, toggleRowExpansion, getExpandedRows, resetColumnWidths, scrollTo, getState, applyState; Direct ElTable or ElTableV2 props filtered by ogConfig.virtual.enabled; ogTableEvents / ogTableSlots bridge supported native events and slots; getElTable. | Legacy fetch/searchSchema APIs or ElTable | current |
|
|
20
|
+
| Editable local tables embedded in a form or workflow | `OgTableLocal` from `@origen-ui/table` | [use-og-table](../../use-og-table/SKILL.md) | owned props: modelValue, rowKey, ogColumns, ogConfig, ogLocal, ogReadonly, ogTableEvents, ogTableSlots, ogRenderDisabledGridCells, ogQueryDefaults, ogOnVisibleColumnsChange, selectionTooltip; owned events: update:modelValue, loadSuccess, loadError, operationError, pluginError, selectionChange, selectionScopeChange, batchJobChange, transactionConflict, sortChange, search, searchOptionsError, cellChange, filterOptionsError, rowAdd, rowRemove; owned slots: search, empty, error, expand, editor, beforeActions, actions, afterActions, overflowActions, beforeToolbar, afterToolbar, beforeTable, tableEmpty, tableAppend; exposes: addRow, removeRow, refresh, reset, getSelectedRows, clearSelection, toggleRowSelection, toggleRowExpansion, getExpandedRows, resetColumnWidths, scrollTo, getState, applyState; Direct ElTable or ElTableV2 props filtered by the active ogConfig.virtual surface; ogTableEvents / ogTableSlots bridge supported native events and slots; getElTable. | Treating local rows as an implicit remote data source | current |
|
|
21
|
+
| Remote CRUD lists with search and paging | `OgTableWithSearch` from `@origen-ui/table-search` | [use-og-table](../../use-og-table/SKILL.md) | owned props: rowKey, ogColumns, ogDataSource, ogConfig, ogQueryDefaults, ogSearch, selectionTooltip; owned slots: search-*, beforeActions, actions, afterActions, overflowActions, beforeToolbar, editor, empty, error, expand, afterToolbar, beforeTable, tableEmpty, tableAppend, search; exposes: refresh, reset; Direct ElTable or ElTableV2 props filtered by ogConfig.virtual.enabled; ogTableEvents / ogTableSlots bridge table events and slots; ogSearch groups nested search props and events; getElTable / getSearchInstance. | Separate ad-hoc search and table state | current |
|
|
22
|
+
| Page-local business tabs | `OgTabs` from `@origen-ui/tabs` | [use-og-router-tabs](../../use-og-router-tabs/SKILL.md) | owned props: modelValue, ogItems, ogVariant, ogFeatures, ogContextMenu, ogActionPolicy, ogDensity, ogRenderContent, ogReadonly, ogBusy, ogTabsEvents, ogLocale, ogMinTabWidth, ogMaxTabWidth, ogThemeColor, ogSticky, ogFinderThreshold, ogBeforeAction, ogActionHandler; owned events: update:modelValue, update:ogItems, actionRequest, closeRequest, refreshRequest, pinChangeRequest, reorderRequest, operationDenied, operationError, tabClick, tabChange, tabRemove; owned slots: default, label, tabBefore, tabAfter, status, contextMenuTop, contextMenuBottom, header, extra, empty; exposes: close, activate, requestAdd, closeScope, pin, unpin, move, moveTop, moveBottom, refresh, scrollTo, getItems; Direct top-level ElTabs props; Og-owned model and workflow attributes are excluded; ogTabsEvents bridges native callbacks; getNativeTabs. | Using page-local tabs for route workspace state | current |
|
|
23
|
+
| Validated file uploads and URL projection | `OgUpload`, `createXhrUploadAdapter` from `@origen-ui/upload` | [use-og-upload](../../use-og-upload/SKILL.md) | owned props: modelValue, ogAdapter, ogValueType, ogValueCodec, ogAutoUpload, ogBeforeUpload, ogConcurrency, ogConfirmRemove, ogDuplicate, ogLocale, ogMaxSize, ogResolveResponse, ogRetry, ogText, ogTip, ogUploadEvents, ogVariant; owned events: operationError, uploadSuccess, update:modelValue, change, exceed, progress, removeSuccess, validationError; owned slots: default, empty, file, tip; exposes: submit, clearFiles, abort, getFiles, remove, retry, validate; Allowed Element Plus Upload props use their official names at the root; transport, file-list, and lifecycle props are managed by OgUpload, with limit and showFileList exposed as controlled native options; ogUploadEvents exposes change. | Package-level transport clients or mutating internal files | current |
|
|
24
|
+
| A single schema-aware field needs to participate in an existing OgForm context | `OgFormItem` from `@origen-ui/form` | [use-og-form](../../use-og-form/SKILL.md) | owned props: ogName, ogField, ogReadonly, ogLabelTip; owned slots: default, *; Direct top-level ElFormItem props except prop and error, which OgForm owns for field identity and validation.; Use ElFormItem directly for raw Element Plus form-item behavior outside OgForm context. | Using it as a transparent Element Plus ElFormItem replacement | current |
|
|
25
|
+
| An advanced integration needs the registered OgForm control renderer | `FieldRenderer` from `@origen-ui/form` | [use-og-form](../../use-og-form/SKILL.md) | owned props: ogField, ogReadonly, ogA11y; owned slots: options-error; Use the required Element Plus control directly when the schema renderer contract is not needed. | Treating it as a general-purpose Element Plus control wrapper | current |
|
|
26
|
+
| Rendering a project SVG sprite icon | `SvgIcon` from `@origen-ui/icons` | [style-og-origen-ui](../../style-og-origen-ui/SKILL.md) | owned props: name, size, color, label | Passing untrusted or arbitrary symbol identifiers | current |
|
|
27
|
+
| Rendering a route workspace with keep-alive semantics | `RouterViewHost` from `@origen-ui/router` | [use-og-router-tabs](../../use-og-router-tabs/SKILL.md) | owned props: cacheMax; Use vue-router RouterView directly for route slots, props, or transition control not owned by the workspace host. | Using it as a transparent vue-router RouterView replacement | current |
|
|
28
|
+
| Mounting manager-owned dialogs once in the application tree | `OgDialogHost` from `@origen-ui/dialog` | [use-og-dialog](../../use-og-dialog/SKILL.md) | owned props: manager; Mount one host in the app tree after installing createOgDialog(), or pass a DialogManager explicitly. | Creating a second app or mounting multiple hosts for one manager | current |
|
|
29
|
+
| Displaying breadcrumbs derived from the active route | `RouterBreadcrumb` from `@origen-ui/router/element-plus` | [use-og-router-tabs](../../use-og-router-tabs/SKILL.md) | owned slots: default; Element Plus Breadcrumb props stay at the root; by default labels and links come from the active router adapter. | Hard-coding route labels when adapter metadata can provide them | current |
|
|
30
|
+
| Rendering adapter-backed route menus with active selection and icon resolution | `RouterMenu` from `@origen-ui/router/element-plus` | [use-og-router-tabs](../../use-og-router-tabs/SKILL.md) | owned props: ogResolveIcon, ogMenuEvents, ogNodeProps, ogNodeEvents; owned slots: default; Element Plus Menu props stay at the root except adapter-owned defaultActive; native callbacks use ogMenuEvents, and per-node props/events use ogNodeProps and ogNodeEvents. | Trusting backend import paths or duplicating menu authorization in the view | current |
|
|
31
|
+
| Rendering route-backed workspace tabs with route and cache behavior | `RouterTabs` from `@origen-ui/router/tabs` | [use-og-router-tabs](../../use-og-router-tabs/SKILL.md) | owned props: ogFeatures, ogLocale, ogAddTab; Element Plus Tabs props stay at the root; RouterTabs owns route-backed tab identity and activation while ogFeatures and ogAddTab configure workspace behavior.; Do not pass modelValue to control the active workspace tab; RouterTabs derives tab identity and activation from the route workspace. | Using page-local OgTabs for route workspace state | current |
|
|
32
|
+
|
|
33
|
+
## Companion capabilities
|
|
34
|
+
|
|
35
|
+
| Capability | Public import | Skill | Avoid | Lifecycle |
|
|
36
|
+
| ------------------------------------------- | ---------------------------------------------------- | --------------------------------------------- | -------------------------------------- | --------- |
|
|
37
|
+
| Awaitable or manager-owned dialog workflows | `createOgDialog, useDialog` from `@origen-ui/dialog` | [use-og-dialog](../../use-og-dialog/SKILL.md) | createApp or a global fallback manager | current |
|
|
38
|
+
|
|
39
|
+
<!-- component-catalog:end -->
|
|
40
|
+
|
|
41
|
+
Route menu, breadcrumbs, and workspace tabs use `@origen-ui/router`; application
|
|
42
|
+
HTTP uses `ApiClient` from `@origen-ui/http`.
|
|
@@ -7,6 +7,6 @@ description: Build schema-driven create, edit, and readonly business forms with
|
|
|
7
7
|
|
|
8
8
|
Use `FormField<T>` with `prop: keyof T & string`. Prefer visible, disabled, readonly,
|
|
9
9
|
dependencies plus linkage, compute, valueChange, or validators for cross-field behavior.
|
|
10
|
-
Use `
|
|
10
|
+
Use `ogControl: { ogType: 'custom' }` with an instance `RendererRegistry`; unknown renderers must fail.
|
|
11
11
|
Custom controls must update the supplied model. Do not use removed `resetFields` or
|
|
12
12
|
`dependsOn` APIs.
|
|
@@ -6,8 +6,9 @@ description: Build typed editable array fields with @origen-ui/form-table. Use f
|
|
|
6
6
|
# Use OgFormTable
|
|
7
7
|
|
|
8
8
|
Create the field with `createOgFormTableField<T, K, TRow>()` and keep `prop`
|
|
9
|
-
typed as a key of the parent form model.
|
|
10
|
-
|
|
9
|
+
typed as a key of the parent form model. Table instance identity is generated
|
|
10
|
+
internally; do not pass `tableId`/`ogTableId` or a model revision. Declare a
|
|
11
|
+
unique `rowKey`, typed `columns`, and an optional async `createRow`; use `span` or
|
|
11
12
|
`newline` only for intentional OgForm grid placement. The helper defaults to
|
|
12
13
|
`span: 24` and writes every row addition, edit, and removal back to the parent
|
|
13
14
|
field immediately.
|
|
@@ -20,6 +21,6 @@ stable renderer registry when custom editors are needed, and ensure custom
|
|
|
20
21
|
controls update the supplied model.
|
|
21
22
|
|
|
22
23
|
The table is local state: use the existing OgTable column, filter, sort,
|
|
23
|
-
selection,
|
|
24
|
+
selection, filter-memory, and state-snapshot APIs as needed, but do not add a
|
|
24
25
|
second remote fetch or mutate the parent form object directly. Keep row keys
|
|
25
26
|
unique and test add/edit/remove plus validation and computed-field behavior.
|
|
@@ -9,6 +9,6 @@ Keep list loading and pagination outside OgSearch. Type every field against the
|
|
|
9
9
|
query model, make `options` and `optionsApi` mutually exclusive, and pass the
|
|
10
10
|
provided AbortSignal to async option requests. Defaults initialize the component
|
|
11
11
|
once; later controlled model updates are authoritative. Submit explicitly; reset
|
|
12
|
-
is configured only through
|
|
13
|
-
|
|
14
|
-
expansion state in `
|
|
12
|
+
is configured only through `ogReset`, clears every search field, and does not
|
|
13
|
+
silently load a list. Bind expansion through `v-model:og-expanded`; do not put
|
|
14
|
+
expansion state in `ogConfig` or use an imperative expansion setter.
|
|
@@ -1,16 +1,22 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: use-og-table
|
|
3
|
-
description: Build typed remote lists, CRUD tables, paging, search, row actions, batch actions,
|
|
3
|
+
description: Build typed remote lists, CRUD tables, paging, search, row actions, batch actions, state snapshots, drafts, or virtual tables with @origen-ui/table and OgTableWithSearch.
|
|
4
4
|
---
|
|
5
5
|
|
|
6
6
|
# Use OgTable
|
|
7
7
|
|
|
8
|
-
Declare `
|
|
9
|
-
|
|
10
|
-
`
|
|
11
|
-
`config.
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
8
|
+
Declare `rowKey`, typed columns, and `dataSource` explicitly. Table instance
|
|
9
|
+
identity is generated and owned by the component; do not pass an application
|
|
10
|
+
`tableId`/`ogTableId`. Configure filter-memory isolation with an
|
|
11
|
+
application-owned `config.state.filterMemory.key`. The `getState()` and
|
|
12
|
+
`applyState()` methods expose `TableStateSnapshot` to application-owned state;
|
|
13
|
+
the table package does not provide URL synchronization or a server-backed named
|
|
14
|
+
view adapter. Implement `dataSource.list(request, context)` as the only read
|
|
15
|
+
entry and pass `context.signal` to the service. Use `config.search.fields`,
|
|
16
|
+
action columns, and `config.actions.batch`; do not restore `fetch`,
|
|
17
|
+
`searchSchema`, or legacy search v-model APIs. Configure built-ins only through
|
|
18
|
+
named config blocks: filter memory is under `config.state`, while masking and
|
|
19
|
+
analytics keep their own named blocks. Register application extensions with
|
|
20
|
+
`createOgTable({ extensions })` and configure them only through
|
|
21
|
+
`config.extensions`; never put built-in IDs there. Provide
|
|
22
|
+
`config.permissions.has` whenever permissions are declared.
|
|
@@ -12,11 +12,12 @@ request mapping in the application service. For conventional XHR endpoints,
|
|
|
12
12
|
create the same transport explicitly with `createXhrUploadAdapter(options)` and
|
|
13
13
|
pass the returned adapter; response mapping remains in `resolveResponse`.
|
|
14
14
|
|
|
15
|
-
Choose `
|
|
16
|
-
projects one URL, and `urls` projects a URL list.
|
|
17
|
-
`limit`, `multiple`, `duplicate`, and
|
|
18
|
-
`
|
|
19
|
-
`
|
|
15
|
+
Choose `ogValueType` intentionally: `fileList` exposes `OgUploadFile[]`, `url`
|
|
16
|
+
projects one URL, and `urls` projects a URL list. Pass adapters through
|
|
17
|
+
`ogAdapter`; set the native `accept`, `limit`, `multiple`, `duplicate`, and
|
|
18
|
+
`showFileList` props directly, and use `ogMaxSize` and `ogBeforeUpload` for
|
|
19
|
+
wrapper validation. Use `ogVariant="drag"` or `"picture-card"` for the selection
|
|
20
|
+
surface and keep labels accessible.
|
|
20
21
|
|
|
21
22
|
Leave `autoUpload` enabled unless a parent workflow needs an explicit submit;
|
|
22
23
|
then call the typed `submit()` expose and inspect its `successful`, `failed`, and
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
+
VITE_ENABLE_MOCK=false
|
|
1
2
|
VITE_API_BASE_URL=/api
|
|
2
3
|
VITE_API_TARGET=http://127.0.0.1:8080
|
|
3
4
|
VITE_DEFAULT_LOCALE=zh-CN
|
|
4
5
|
|
|
5
|
-
#
|
|
6
|
-
VITE_ROUTE_QUERY_ENCRYPTION=
|
|
6
|
+
# Set both values to enable route query encryption.
|
|
7
|
+
VITE_ROUTE_QUERY_ENCRYPTION=false
|
|
7
8
|
# VITE_ROUTE_QUERY_KEY=<64-character hexadecimal key>
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
node_modules/
|
|
2
|
+
dist/
|
|
3
|
+
coverage/
|
|
4
|
+
playwright-report/
|
|
5
|
+
test-results/
|
|
6
|
+
.vite/
|
|
7
|
+
.turbo/
|
|
8
|
+
src/api/generated/
|
|
9
|
+
scaffold/agent-contracts/
|
|
10
|
+
pnpm-lock.yaml
|
|
11
|
+
component-catalog.json
|
|
12
|
+
.codex/
|
|
13
|
+
.codebuddy/
|
|
14
|
+
.cursor/
|
|
15
|
+
.qoder/
|
|
16
|
+
.zcode/
|
|
17
|
+
.claude/
|
|
18
|
+
|
|
19
|
+
# ESLint owns code formatting (docs/development-guide.md §2.4). Prettier and
|
|
20
|
+
# ESLint disagree on quote style, list reflow and ternary wrapping, so pointing
|
|
21
|
+
# Prettier at these extensions rewrites code into a shape `pnpm lint` rejects.
|
|
22
|
+
# gitignore semantics: no brace expansion, one extension per line.
|
|
23
|
+
*.js
|
|
24
|
+
*.mjs
|
|
25
|
+
*.cjs
|
|
26
|
+
*.jsx
|
|
27
|
+
*.ts
|
|
28
|
+
*.tsx
|
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
---
|
|
2
2
|
trigger: glob
|
|
3
3
|
description: 01-feature-architecture
|
|
4
|
-
|
|
5
|
-
- '**/*'
|
|
4
|
+
glob: '**/*'
|
|
6
5
|
---
|
|
7
6
|
# Feature architecture
|
|
8
7
|
|
|
9
|
-
- Keep route pages thin composition surfaces under `src/
|
|
8
|
+
- Keep route pages thin composition surfaces under `src/views/<feature>/pages`.
|
|
10
9
|
- Put UI sections in `components`, stateful side effects in `composables`, and API adapters in `api`.
|
|
11
10
|
- Keep data flow as props down and typed events up. Do not mutate props.
|
|
12
|
-
- `src/app` owns application integration; `src/
|
|
11
|
+
- `src/app` owns application integration; `src/views` owns business behavior; examples never become feature dependencies.
|