admin-panel: upgrade to ant-design-vue 4.2.6

- Bump ant-design-vue 3.2.20 -> 4.2.6, @ant-design/icons-vue 6.1.0 -> 7.0.1.
- ADV4 removed LESS theming (modifyVars) for CSS-in-JS design tokens: drop
  the vite.config.ts modifyVars block and the antd.less import; move the
  three tokens ant actually consumed (primary/link/border-radius) to
  App.vue's <a-config-provider :theme>.
- Delete src/assets/styles/ant.less (426 lines of hand-written RTL flips):
  ADV4 renders RTL natively via CSS logical properties given direction="rtl",
  which App.vue already sets. Preserve only the small residue ADV4 doesn't
  cover natively (upload filename LTR, select dropdown z-index, tabs nav
  direction) in a new rtl-overrides.css.
- Clean up the stale --primary/--accent token comment in utilities.less now
  that ant.less is gone.
- Verified: pnpm build (vue-tsc -b && vite build) passes with zero errors;
  the codebase already used v-model:open everywhere (no ADV3 visible prop
  usage to migrate).

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
s.esmaeili
2026-09-14 15:05:05 +03:30
co-authored by Claude Sonnet 5
parent 8fac6a3f36
commit 7e30701570
8 changed files with 147 additions and 456 deletions
@@ -0,0 +1,31 @@
/*
* Residue from the legacy ant.less (426 lines, deleted when ant-design-vue was
* upgraded to v4). ADV4 renders RTL natively via CSS logical properties given
* App.vue's direction="rtl", which covers nearly everything ant.less used to
* hand-fix (pagination arrows, table alignment, column floats, menu padding,
* steps, tags, radio margins, input-group radii, etc).
*
* The handful of rules below are NOT direction-driven ant behaviour — they are
* app-specific fixes that stay regardless of LTR/RTL — so they still apply.
*/
/* Uploaded file names are Latin filenames; keep them LTR even in an RTL panel. */
.ant-upload-list-item-name {
font-family: Arial, sans-serif !important;
direction: ltr;
}
/* App-specific stacking fix: dropdowns must sit above other floating layers
used elsewhere in the panel (image previews, modals). */
.ant-select-dropdown {
z-index: 2500000;
}
/* Deliberate: keep the tab strip itself LTR-ordered while each tab's content
stays RTL, matching legacy's reading order for horizontal tab rows. */
.ant-tabs-nav {
direction: ltr;
}
.ant-tabs-nav .ant-tabs-tab {
direction: rtl;
}