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
+68 -4
View File
@@ -18,8 +18,8 @@ importers:
apps/admin-panel:
dependencies:
'@ant-design/icons-vue':
specifier: ^6.1.0
version: 6.1.0(vue@3.5.42(typescript@5.9.3))
specifier: ^7.0.1
version: 7.0.1(vue@3.5.42(typescript@5.9.3))
'@gold-bank/shared-types':
specifier: workspace:*
version: link:../../packages/shared-types
@@ -27,8 +27,8 @@ importers:
specifier: ^9.13.0
version: 9.13.0(vue@3.5.42(typescript@5.9.3))
ant-design-vue:
specifier: ^3.2.20
version: 3.2.20(vue@3.5.42(typescript@5.9.3))
specifier: ^4.2.6
version: 4.2.6(vue@3.5.42(typescript@5.9.3))
axios:
specifier: ^1.7.7
version: 1.20.0
@@ -259,6 +259,11 @@ packages:
peerDependencies:
vue: '>=3.0.3'
'@ant-design/icons-vue@7.0.1':
resolution: {integrity: sha512-eCqY2unfZK6Fe02AwFlDHLfoyEFreP6rBwAZMIJ1LugmfMiVgwWDYlp1YsRugaPtICYOabV1iWxXdP12u9U43Q==}
peerDependencies:
vue: '>=3.0.3'
'@apideck/better-ajv-errors@0.3.7':
resolution: {integrity: sha512-TajUJwGWbDwkCx/CZi7tRE8PVB7simCvKJfHUsSdvps+aTM/PDPP4gkLmKnc+x3CE//y9i/nj74GqdL/hwk7Iw==}
engines: {node: '>=10'}
@@ -781,6 +786,12 @@ packages:
resolution: {integrity: sha512-SITSV6aIXsuVNV3f3O0f2n/cgyEDWoSqtZMYiAmcsYHydcKrOz3gUxB/iXd/Qf08+IZX4KpgNbvUdMBmWz+kcA==}
engines: {node: '>=10'}
'@emotion/hash@0.9.2':
resolution: {integrity: sha512-MyqliTZGuOm3+5ZRSaaBGP3USLw6+EGykkwZns2EPC5g8jJ4z9OrdZY9apkl3+UP9+sdz76YYkwCKP5gh8iY3g==}
'@emotion/unitless@0.8.1':
resolution: {integrity: sha512-KOEGMu6dmJZtpadb476IsZBclKvILjopjUii3V+7MnXIQCYh8W3NgNcgwo21n9LXZX6EDIKvqfjYxXebDwxKmQ==}
'@esbuild/aix-ppc64@0.21.5':
resolution: {integrity: sha512-1SDgH6ZSPTlggy1yI6+Dbkiz8xzpHJEVAlF/AM1tHPLsf5STom9rwtjE4hKAF20FfXXNTFqEYXyJNWh1GiZedQ==}
engines: {node: '>=12'}
@@ -1766,6 +1777,12 @@ packages:
peerDependencies:
vue: '>=3.2.0'
ant-design-vue@4.2.6:
resolution: {integrity: sha512-t7eX13Yj3i9+i5g9lqFyYneoIb3OzTvQjq9Tts1i+eiOd3Eva/6GagxBSXM1fOCjqemIu0FYVE1ByZ/38epR3Q==}
engines: {node: '>=12.22.0'}
peerDependencies:
vue: '>=3.2.0'
anymatch@3.1.3:
resolution: {integrity: sha512-KMReFUr0B4t+D+OBkjR3KYqvocp2XaSzO55UcB6mgQMd3KbcE+mWTyvVV7D/zsdEbNnV6acZUutkiHQXvTr1Rw==}
engines: {node: '>= 8'}
@@ -3549,6 +3566,9 @@ packages:
resolution: {integrity: sha512-ki4hZQfh5rX0QDLLkOCj+h+CVNkqmp/CMf8v8kZpkNVK6jGQooMytqzLZYUVYIZcFZ6yDB70EfD8POcFXiF5oA==}
engines: {node: '>=18'}
stylis@4.4.0:
resolution: {integrity: sha512-5Z9ZpRzfuH6l/UAvCPAPUo3665Nk2wLaZU3x+TLHKVzIz33+sbJqbtrYoC3KD4/uVOr2Zp+L0LySezP9OHV9yA==}
supports-color@7.2.0:
resolution: {integrity: sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==}
engines: {node: '>=8'}
@@ -3637,6 +3657,10 @@ packages:
engines: {node: '>=10'}
hasBin: true
throttle-debounce@5.0.2:
resolution: {integrity: sha512-B71/4oyj61iNH0KeCamLuE2rmKuTO5byTOSVwECM5FA7TiAiAW+UqTKZ9ERueC4qvgSttUhdmq1mXC3kJqGX7A==}
engines: {node: '>=12.22'}
through@2.3.8:
resolution: {integrity: sha512-w89qg7PI8wAdvX60bMDP+bFoD5Dvhm9oLheFp5O4a2QF0cSBGsBX4qZmadPMvVqlLJBBci+WqGGOAPvcDeNSVg==}
@@ -4085,6 +4109,12 @@ snapshots:
'@ant-design/icons-svg': 4.6.0
vue: 3.5.42(typescript@5.9.3)
'@ant-design/icons-vue@7.0.1(vue@3.5.42(typescript@5.9.3))':
dependencies:
'@ant-design/colors': 6.0.0
'@ant-design/icons-svg': 4.6.0
vue: 3.5.42(typescript@5.9.3)
'@apideck/better-ajv-errors@0.3.7(ajv@8.20.0)':
dependencies:
ajv: 8.20.0
@@ -4765,6 +4795,10 @@ snapshots:
'@ctrl/tinycolor@3.6.1': {}
'@emotion/hash@0.9.2': {}
'@emotion/unitless@0.8.1': {}
'@esbuild/aix-ppc64@0.21.5':
optional: true
@@ -5682,6 +5716,32 @@ snapshots:
vue-types: 3.0.2(vue@3.5.42(typescript@5.9.3))
warning: 4.0.3
ant-design-vue@4.2.6(vue@3.5.42(typescript@5.9.3)):
dependencies:
'@ant-design/colors': 6.0.0
'@ant-design/icons-vue': 7.0.1(vue@3.5.42(typescript@5.9.3))
'@babel/runtime': 7.29.7
'@ctrl/tinycolor': 3.6.1
'@emotion/hash': 0.9.2
'@emotion/unitless': 0.8.1
'@simonwep/pickr': 1.8.2
array-tree-filter: 2.1.0
async-validator: 4.2.5
csstype: 3.2.3
dayjs: 1.11.23
dom-align: 1.12.4
dom-scroll-into-view: 2.0.1
lodash: 4.18.1
lodash-es: 4.18.1
resize-observer-polyfill: 1.5.1
scroll-into-view-if-needed: 2.2.31
shallow-equal: 1.2.1
stylis: 4.4.0
throttle-debounce: 5.0.2
vue: 3.5.42(typescript@5.9.3)
vue-types: 3.0.2(vue@3.5.42(typescript@5.9.3))
warning: 4.0.3
anymatch@3.1.3:
dependencies:
normalize-path: 3.0.0
@@ -7662,6 +7722,8 @@ snapshots:
dependencies:
'@tokenizer/token': 0.3.0
stylis@4.4.0: {}
supports-color@7.2.0:
dependencies:
has-flag: 4.0.0
@@ -7734,6 +7796,8 @@ snapshots:
commander: 2.20.3
source-map-support: 0.5.21
throttle-debounce@5.0.2: {}
through@2.3.8: {}
tinyglobby@0.2.17: