@anzusystems/common-admin 1.47.0-beta.dev-1788935852 → 1.47.0-beta.dev-1784059879-fix1
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/dist/AFormRemoteAutocomplete.vue_vue_type_script_setup_true_lang-DAnD88NB.mjs +10084 -0
- package/dist/AFormRemoteAutocomplete.vue_vue_type_script_setup_true_lang-DAnD88NB.mjs.map +1 -0
- package/dist/common-admin.css +1 -2
- package/dist/common-admin.d.ts +7 -62
- package/dist/common-admin.js +23871 -23486
- package/dist/common-admin.js.map +1 -1
- package/dist/index-2jGSo7Ju.mjs +22165 -0
- package/dist/index-2jGSo7Ju.mjs.map +1 -0
- package/dist/labs.d.ts +0 -7
- package/dist/labs.js +3518 -3190
- package/dist/labs.js.map +1 -1
- package/dist/webfontloader-CZqOgyx0.mjs +454 -0
- package/dist/webfontloader-CZqOgyx0.mjs.map +1 -0
- package/package.json +34 -38
- package/src/eslint/plugin.mjs +28 -39
- package/dist/AFormRemoteAutocomplete-Cb9Sk6H6.mjs +0 -9417
- package/dist/AFormRemoteAutocomplete-Cb9Sk6H6.mjs.map +0 -1
- package/dist/common-admin.css.d.ts +0 -6
- package/dist/esm-CdGfO7hW.mjs +0 -18198
- package/dist/esm-CdGfO7hW.mjs.map +0 -1
- package/dist/webfontloader-MU9EmUQJ.mjs +0 -485
- package/dist/webfontloader-MU9EmUQJ.mjs.map +0 -1
- package/src/eslint/oxlint.mjs +0 -30
package/package.json
CHANGED
|
@@ -3,28 +3,24 @@
|
|
|
3
3
|
"packageManager": "yarn@4.18.0",
|
|
4
4
|
"files": [
|
|
5
5
|
"dist",
|
|
6
|
-
"src/eslint
|
|
6
|
+
"src/eslint"
|
|
7
7
|
],
|
|
8
|
-
"module": "./dist/common-admin.js",
|
|
8
|
+
"module": "./dist/common-admin.es.js",
|
|
9
9
|
"types": "./dist/common-admin.d.ts",
|
|
10
10
|
"exports": {
|
|
11
11
|
".": {
|
|
12
12
|
"import": "./dist/common-admin.js",
|
|
13
13
|
"types": "./dist/common-admin.d.ts"
|
|
14
14
|
},
|
|
15
|
-
"./styles":
|
|
16
|
-
"types": "./dist/common-admin.css.d.ts",
|
|
17
|
-
"default": "./dist/common-admin.css"
|
|
18
|
-
},
|
|
15
|
+
"./styles": "./dist/common-admin.css",
|
|
19
16
|
"./labs": {
|
|
20
17
|
"import": "./dist/labs.js",
|
|
21
18
|
"types": "./dist/labs.d.ts"
|
|
22
19
|
},
|
|
23
20
|
"./eslint": "./src/eslint/plugin.mjs",
|
|
24
|
-
"./oxlint": "./src/eslint/oxlint.mjs",
|
|
25
21
|
"./*": "./*"
|
|
26
22
|
},
|
|
27
|
-
"version": "1.47.0-beta.dev-
|
|
23
|
+
"version": "1.47.0-beta.dev-1784059879-fix1",
|
|
28
24
|
"license": "Apache-2.0",
|
|
29
25
|
"repository": {
|
|
30
26
|
"type": "git",
|
|
@@ -34,25 +30,25 @@
|
|
|
34
30
|
"prepare": "node -e \"if (process.env.SKIP_PLAYWRIGHT_INSTALL !== 'true') { require('child_process').execSync('playwright install chromium --with-deps', { stdio: 'inherit' }) }\"",
|
|
35
31
|
"docs:dev": "vitepress dev docs",
|
|
36
32
|
"docs:build-only": "vitepress build docs",
|
|
37
|
-
"docs:build": "
|
|
33
|
+
"docs:build": "yarn build ; yarn docs:build-only",
|
|
38
34
|
"docs:preview": "vitepress preview docs",
|
|
39
35
|
"playground:dev": "vite",
|
|
40
36
|
"playground:build": "vite build",
|
|
41
37
|
"playground:build:nm": "vite build --minify false",
|
|
42
|
-
"build": "vite build --config vite.config.lib.
|
|
43
|
-
"build:dev": "vite build --minify false --sourcemap true --config vite.config.lib.
|
|
44
|
-
"lib:build": "
|
|
45
|
-
"ci": "run-
|
|
38
|
+
"build": "vite build --config vite.config.lib.ts",
|
|
39
|
+
"build:dev": "vite build --minify false --sourcemap true --config vite.config.lib.ts",
|
|
40
|
+
"lib:build": "vite build --config vite.config.lib.ts",
|
|
41
|
+
"ci": "run-s --print-name lint:tsc lint:oxlint lint:eslint lint:stylelint",
|
|
46
42
|
"lint": "[ \"$*\" = \"--fix\" ] && yarn lint:fix || yarn ci",
|
|
47
43
|
"lint:fix": "run-s --print-name lint:tsc format lint:oxlint:fix lint:eslint:fix lint:stylelint:fix",
|
|
48
44
|
"lint:tsc": "NODE_OPTIONS=--max-old-space-size=4096 vue-tsc --build",
|
|
49
45
|
"lint:tsc:test": "NODE_OPTIONS=--max-old-space-size=4096 vue-tsc --build tsconfig.test.json",
|
|
50
|
-
"lint:eslint": "eslint
|
|
51
|
-
"lint:eslint:fix": "eslint --fix
|
|
46
|
+
"lint:eslint": "eslint",
|
|
47
|
+
"lint:eslint:fix": "eslint --fix",
|
|
52
48
|
"lint:oxlint": "oxlint .",
|
|
53
49
|
"lint:oxlint:fix": "oxlint . --fix",
|
|
54
|
-
"lint:stylelint": "stylelint src/**/*.{scss,vue}
|
|
55
|
-
"lint:stylelint:fix": "stylelint src/**/*.{scss,vue} --fix
|
|
50
|
+
"lint:stylelint": "stylelint src/**/*.{scss,vue}",
|
|
51
|
+
"lint:stylelint:fix": "stylelint src/**/*.{scss,vue} --fix",
|
|
56
52
|
"format": "oxfmt src/",
|
|
57
53
|
"format:check": "oxfmt src/ --check",
|
|
58
54
|
"test": "vitest",
|
|
@@ -64,18 +60,19 @@
|
|
|
64
60
|
"@intlify/unplugin-vue-i18n": "^11.2.5",
|
|
65
61
|
"@kyvg/vue3-notification": "^3.4.2",
|
|
66
62
|
"@mdi/font": "^7.4.47",
|
|
67
|
-
"@microsoft/api-extractor": "^7.59.
|
|
63
|
+
"@microsoft/api-extractor": "^7.59.0",
|
|
68
64
|
"@sentry/vue": "^10.73.0",
|
|
69
65
|
"@shikijs/vitepress-twoslash": "^4.4.3",
|
|
66
|
+
"@stylistic/eslint-plugin": "^5.10.0",
|
|
70
67
|
"@tsconfig/node22": "^22.0.6",
|
|
71
68
|
"@types/node": "^24.13.3",
|
|
72
69
|
"@types/rusha": "^0.8.3",
|
|
73
70
|
"@types/sortablejs": "^1.15.9",
|
|
74
71
|
"@types/webfontloader": "^1.6.38",
|
|
75
72
|
"@vitejs/plugin-vue": "^6.0.8",
|
|
76
|
-
"@vitest/browser": "^
|
|
77
|
-
"@vitest/browser-playwright": "^
|
|
78
|
-
"@vitest/ui": "^
|
|
73
|
+
"@vitest/browser": "^4.1.11",
|
|
74
|
+
"@vitest/browser-playwright": "^4.1.11",
|
|
75
|
+
"@vitest/ui": "^4.1.11",
|
|
79
76
|
"@vue/compiler-dom": "3.5.42",
|
|
80
77
|
"@vue/devtools-api": "^8.2.1",
|
|
81
78
|
"@vue/eslint-config-typescript": "^14.9.0",
|
|
@@ -89,42 +86,41 @@
|
|
|
89
86
|
"axios": "1.20.0",
|
|
90
87
|
"cropperjs": "^1.6.3",
|
|
91
88
|
"dayjs": "1.11.23",
|
|
92
|
-
"eslint": "^10.
|
|
93
|
-
"eslint-
|
|
94
|
-
"eslint-plugin-
|
|
95
|
-
"eslint-plugin-vue": "10.11.0",
|
|
89
|
+
"eslint": "^10.9.1",
|
|
90
|
+
"eslint-plugin-oxlint": "1.80.0",
|
|
91
|
+
"eslint-plugin-vue": "10.10.0",
|
|
96
92
|
"eslint-plugin-vuetify": "^2.7.2",
|
|
97
93
|
"npm-run-all2": "^9.0.3",
|
|
98
|
-
"oxfmt": "^0.
|
|
99
|
-
"oxlint": "1.
|
|
94
|
+
"oxfmt": "^0.65.0",
|
|
95
|
+
"oxlint": "1.80.0",
|
|
100
96
|
"pinia": "4.0.3",
|
|
101
|
-
"playwright": "^1.
|
|
102
|
-
"postcss": "^8.5.
|
|
97
|
+
"playwright": "^1.62.1",
|
|
98
|
+
"postcss": "^8.5.26",
|
|
103
99
|
"postcss-html": "^2.0.0",
|
|
104
|
-
"postcss-prefix-selector": "^2.2.
|
|
100
|
+
"postcss-prefix-selector": "^2.2.0",
|
|
105
101
|
"rusha": "^0.8.14",
|
|
106
|
-
"sass": "1.
|
|
102
|
+
"sass": "1.103.1",
|
|
107
103
|
"socket.io-client": "4.8.3",
|
|
108
104
|
"sortablejs": "^1.15.7",
|
|
109
|
-
"stylelint": "17.
|
|
105
|
+
"stylelint": "17.14.1",
|
|
110
106
|
"stylelint-config-html": "^2.0.0",
|
|
111
107
|
"stylelint-config-recommended": "^18.0.0",
|
|
112
108
|
"stylelint-config-recommended-vue": "^2.0.0",
|
|
113
109
|
"stylelint-config-standard-scss": "^17.0.0",
|
|
114
|
-
"typescript": "
|
|
110
|
+
"typescript": "5.9.3",
|
|
115
111
|
"unplugin": "3.3.0",
|
|
116
|
-
"unplugin-dts": "^1.
|
|
112
|
+
"unplugin-dts": "^1.0.3",
|
|
117
113
|
"uuid": "^14.0.2",
|
|
118
|
-
"vite": "
|
|
114
|
+
"vite": "7.3.6",
|
|
119
115
|
"vite-plugin-vuetify": "^2.1.3",
|
|
120
116
|
"vitepress": "1.6.4",
|
|
121
|
-
"vitest": "^
|
|
117
|
+
"vitest": "^4.1.11",
|
|
122
118
|
"vue": "3.5.42",
|
|
123
119
|
"vue-eslint-parser": "^10.4.1",
|
|
124
120
|
"vue-i18n": "11.4.10",
|
|
125
|
-
"vue-router": "5.3.
|
|
121
|
+
"vue-router": "5.3.0",
|
|
126
122
|
"vue-tsc": "3.3.11",
|
|
127
|
-
"vuetify": "4.
|
|
123
|
+
"vuetify": "4.1.12",
|
|
128
124
|
"webfontloader": "^1.6.28"
|
|
129
125
|
},
|
|
130
126
|
"peerDependencies": {
|
package/src/eslint/plugin.mjs
CHANGED
|
@@ -203,52 +203,41 @@ const anzuPlugin = {
|
|
|
203
203
|
return rule.path
|
|
204
204
|
})
|
|
205
205
|
|
|
206
|
-
// Index rules by the module specifier they match, so one import is
|
|
207
|
-
// resolved by a single Map lookup instead of scanning every rule.
|
|
208
|
-
const rulesBySource = new Map()
|
|
209
|
-
for (const rule of deprecationRules) {
|
|
210
|
-
const matchPath = rule.path || rule.module
|
|
211
|
-
if (!matchPath) continue
|
|
212
|
-
const entry = { matchPath, imports: new Set(rule.imports) }
|
|
213
|
-
const existing = rulesBySource.get(matchPath)
|
|
214
|
-
if (existing) existing.push(entry)
|
|
215
|
-
else rulesBySource.set(matchPath, [entry])
|
|
216
|
-
}
|
|
217
|
-
|
|
218
|
-
// Skipping depends only on the file name, so resolve it once per file
|
|
219
|
-
// instead of once per import declaration.
|
|
220
|
-
let fileSkipped = null
|
|
221
|
-
const isFileSkipped = () => {
|
|
222
|
-
if (fileSkipped !== null) return fileSkipped
|
|
223
|
-
const normalizedFilename = context.filename.replace(/\\/g, '/')
|
|
224
|
-
fileSkipped =
|
|
225
|
-
skipFiles.some((skip) => normalizedFilename.endsWith(skip)) ||
|
|
226
|
-
ruleFilePaths.some(
|
|
227
|
-
(rulePath) =>
|
|
228
|
-
normalizedFilename.endsWith(rulePath + '.ts') ||
|
|
229
|
-
normalizedFilename.endsWith(rulePath + '.js') ||
|
|
230
|
-
normalizedFilename.endsWith(rulePath + '.vue') ||
|
|
231
|
-
normalizedFilename.endsWith(rulePath),
|
|
232
|
-
)
|
|
233
|
-
return fileSkipped
|
|
234
|
-
}
|
|
235
|
-
|
|
236
206
|
return {
|
|
237
207
|
ImportDeclaration(node) {
|
|
208
|
+
const filename = context.filename
|
|
209
|
+
const normalizedFilename = filename.replace(/\\/g, '/')
|
|
210
|
+
|
|
211
|
+
// Check manual skip list
|
|
212
|
+
if (skipFiles.some((skip) => normalizedFilename.endsWith(skip))) return
|
|
213
|
+
|
|
214
|
+
// Auto-skip source files of path-based rules
|
|
215
|
+
if (
|
|
216
|
+
ruleFilePaths.some(
|
|
217
|
+
(rulePath) =>
|
|
218
|
+
normalizedFilename.endsWith(rulePath + '.ts') ||
|
|
219
|
+
normalizedFilename.endsWith(rulePath + '.js') ||
|
|
220
|
+
normalizedFilename.endsWith(rulePath + '.vue') ||
|
|
221
|
+
normalizedFilename.endsWith(rulePath),
|
|
222
|
+
)
|
|
223
|
+
)
|
|
224
|
+
return
|
|
225
|
+
|
|
238
226
|
const source = node.source.value
|
|
239
227
|
if (typeof source !== 'string') return
|
|
240
228
|
|
|
241
|
-
const
|
|
242
|
-
|
|
243
|
-
|
|
229
|
+
for (const rule of deprecationRules) {
|
|
230
|
+
const matchPath = rule.path || rule.module
|
|
231
|
+
if (!matchPath || source !== matchPath) continue
|
|
232
|
+
|
|
233
|
+
const deprecatedImports = node.specifiers
|
|
234
|
+
.filter((spec) => spec.type === 'ImportSpecifier')
|
|
235
|
+
.filter((spec) => rule.imports.includes(spec.imported.name))
|
|
244
236
|
|
|
245
|
-
|
|
246
|
-
for (const spec of node.specifiers) {
|
|
247
|
-
if (spec.type !== 'ImportSpecifier') continue
|
|
248
|
-
if (!imports.has(spec.imported.name)) continue
|
|
237
|
+
for (const importSpec of deprecatedImports) {
|
|
249
238
|
context.report({
|
|
250
|
-
node:
|
|
251
|
-
message: `'${
|
|
239
|
+
node: importSpec,
|
|
240
|
+
message: `'${importSpec.imported.name}' from '${matchPath}' is deprecated`,
|
|
252
241
|
})
|
|
253
242
|
}
|
|
254
243
|
}
|