unplugin-vue-components 29.0.0 → 29.2.0
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 +31 -0
- package/dist/esbuild.cjs +2 -2
- package/dist/esbuild.d.cts +2 -3
- package/dist/esbuild.d.ts +1 -1
- package/dist/esbuild.js +3 -3
- package/dist/index.cjs +2 -2
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +3 -3
- package/dist/nuxt.cjs +4 -3
- package/dist/nuxt.d.cts +2 -3
- package/dist/nuxt.d.ts +1 -1
- package/dist/nuxt.js +3 -3
- package/dist/resolvers.cjs +39 -43
- package/dist/resolvers.d.cts +1 -1
- package/dist/resolvers.d.ts +1 -1
- package/dist/resolvers.js +27 -37
- package/dist/rolldown.cjs +9 -0
- package/dist/rolldown.d.cts +6 -0
- package/dist/rolldown.d.ts +7 -0
- package/dist/rolldown.js +9 -0
- package/dist/rollup.cjs +2 -2
- package/dist/rollup.d.cts +2 -3
- package/dist/rollup.d.ts +1 -1
- package/dist/rollup.js +3 -3
- package/dist/rspack.cjs +2 -2
- package/dist/rspack.d.cts +2 -3
- package/dist/rspack.d.ts +1 -1
- package/dist/rspack.js +3 -3
- package/dist/{src-a29vieKX.js → src-BTwFq3T3.cjs} +3 -3
- package/dist/{src-BslXt6ey.cjs → src-D2-JfLYq.js} +2 -4
- package/dist/{src-Cb65v4On.cjs → src-DAvVDVLg.cjs} +61 -42
- package/dist/{src-Be7SlxMY.js → src-bfjkatac.js} +39 -29
- package/dist/types-DQoXDiso.js +1 -0
- package/dist/{types-BED632qH.d.cts → types-DSJ5r-ta.d.cts} +17 -0
- package/dist/{types-CFwIfA2K.d.ts → types-rC3290ja.d.ts} +17 -0
- package/dist/types.d.cts +1 -1
- package/dist/types.d.ts +1 -1
- package/dist/types.js +3 -1
- package/dist/{utils-DGIwBjsw.cjs → utils-8UQ22cuO.cjs} +41 -48
- package/dist/{utils-9P5ODluf.js → utils-BoXu-4gQ.js} +35 -45
- package/dist/vite.cjs +2 -2
- package/dist/vite.d.cts +2 -3
- package/dist/vite.d.ts +1 -1
- package/dist/vite.js +3 -3
- package/dist/webpack.cjs +2 -2
- package/dist/webpack.d.cts +2 -3
- package/dist/webpack.d.ts +1 -1
- package/dist/webpack.js +3 -3
- package/package.json +41 -38
- package/dist/types-Cv8NMtbo.js +0 -0
package/README.md
CHANGED
|
@@ -65,6 +65,22 @@ export default {
|
|
|
65
65
|
|
|
66
66
|
<br></details>
|
|
67
67
|
|
|
68
|
+
<details>
|
|
69
|
+
<summary>Rolldown</summary><br>
|
|
70
|
+
|
|
71
|
+
```ts
|
|
72
|
+
// rolldown.config.js
|
|
73
|
+
import Components from 'unplugin-vue-components/rolldown'
|
|
74
|
+
|
|
75
|
+
export default {
|
|
76
|
+
plugins: [
|
|
77
|
+
Components({ /* options */ }),
|
|
78
|
+
],
|
|
79
|
+
}
|
|
80
|
+
```
|
|
81
|
+
|
|
82
|
+
<br></details>
|
|
83
|
+
|
|
68
84
|
<details>
|
|
69
85
|
<summary>Webpack</summary><br>
|
|
70
86
|
|
|
@@ -407,6 +423,10 @@ Components({
|
|
|
407
423
|
// default: `true` if package typescript is installed
|
|
408
424
|
dts: false,
|
|
409
425
|
|
|
426
|
+
// generate dts with TSX support
|
|
427
|
+
// default: `true` if `@vitejs/plugin-vue-jsx` is installed
|
|
428
|
+
dtsTsx: false,
|
|
429
|
+
|
|
410
430
|
// Allow subdirectories as namespace prefix for components.
|
|
411
431
|
directoryAsNamespace: false,
|
|
412
432
|
|
|
@@ -449,6 +469,17 @@ Components({
|
|
|
449
469
|
types: [
|
|
450
470
|
/* ... */
|
|
451
471
|
],
|
|
472
|
+
|
|
473
|
+
// Save component information into a JSON file for other tools to consume.
|
|
474
|
+
// Provide a filepath to save the JSON file.
|
|
475
|
+
// When set to `true`, it will save to `./.components-info.json`
|
|
476
|
+
dumpComponentsInfo: false,
|
|
477
|
+
|
|
478
|
+
// The mode for syncing the components.d.ts and .components-info.json file.
|
|
479
|
+
// 'append': only append the new components to the existing files.
|
|
480
|
+
// 'overwrite': overwrite the whole existing files with the current components.
|
|
481
|
+
// 'default': use 'append' strategy when using dev server, 'overwrite' strategy when using build.
|
|
482
|
+
syncMode: 'default',
|
|
452
483
|
})
|
|
453
484
|
```
|
|
454
485
|
|
package/dist/esbuild.cjs
CHANGED
package/dist/esbuild.d.cts
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import { Options } from "./types-
|
|
1
|
+
import { Options } from "./types-DSJ5r-ta.cjs";
|
|
2
2
|
import * as esbuild0 from "esbuild";
|
|
3
3
|
|
|
4
4
|
//#region src/esbuild.d.ts
|
|
5
5
|
declare const _default: (options: Options) => esbuild0.Plugin;
|
|
6
|
-
|
|
7
|
-
export { _default as default };
|
|
6
|
+
export = _default;
|
package/dist/esbuild.d.ts
CHANGED
package/dist/esbuild.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import "./utils-
|
|
2
|
-
import { unplugin_default } from "./src-
|
|
3
|
-
import "./types-
|
|
1
|
+
import "./utils-BoXu-4gQ.js";
|
|
2
|
+
import { unplugin_default } from "./src-bfjkatac.js";
|
|
3
|
+
import "./types-DQoXDiso.js";
|
|
4
4
|
|
|
5
5
|
//#region src/esbuild.ts
|
|
6
6
|
var esbuild_default = unplugin_default.esbuild;
|
package/dist/index.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
2
|
-
const require_utils = require('./utils-
|
|
3
|
-
const require_src = require('./src-
|
|
2
|
+
const require_utils = require('./utils-8UQ22cuO.cjs');
|
|
3
|
+
const require_src = require('./src-DAvVDVLg.cjs');
|
|
4
4
|
require('./types-CBTc19th.cjs');
|
|
5
5
|
|
|
6
6
|
exports.camelCase = require_utils.camelCase;
|
package/dist/index.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ComponentInfo, ComponentResolveResult, ComponentResolver, ComponentResolverFunction, ComponentResolverObject, ComponentsImportMap, ImportInfo, ImportInfoLegacy, Matcher, Options, PublicPluginAPI, ResolvedOptions, SideEffectsInfo, SupportedTransformer, Transformer, TypeImport } from "./types-
|
|
1
|
+
import { ComponentInfo, ComponentResolveResult, ComponentResolver, ComponentResolverFunction, ComponentResolverObject, ComponentsImportMap, ImportInfo, ImportInfoLegacy, Matcher, Options, PublicPluginAPI, ResolvedOptions, SideEffectsInfo, SupportedTransformer, Transformer, TypeImport } from "./types-DSJ5r-ta.cjs";
|
|
2
2
|
import * as unplugin0 from "unplugin";
|
|
3
3
|
import { FilterPattern } from "unplugin-utils";
|
|
4
4
|
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ComponentInfo, ComponentResolveResult, ComponentResolver, ComponentResolverFunction, ComponentResolverObject, ComponentsImportMap, ImportInfo, ImportInfoLegacy, Matcher, Options, PublicPluginAPI, ResolvedOptions, SideEffectsInfo, SupportedTransformer, Transformer, TypeImport } from "./types-
|
|
1
|
+
import { ComponentInfo, ComponentResolveResult, ComponentResolver, ComponentResolverFunction, ComponentResolverObject, ComponentsImportMap, ImportInfo, ImportInfoLegacy, Matcher, Options, PublicPluginAPI, ResolvedOptions, SideEffectsInfo, SupportedTransformer, Transformer, TypeImport } from "./types-rC3290ja.js";
|
|
2
2
|
import * as unplugin0 from "unplugin";
|
|
3
3
|
import { FilterPattern } from "unplugin-utils";
|
|
4
4
|
|
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { camelCase, kebabCase, pascalCase } from "./utils-
|
|
2
|
-
import { unplugin_default } from "./src-
|
|
3
|
-
import "./types-
|
|
1
|
+
import { camelCase, kebabCase, pascalCase } from "./utils-BoXu-4gQ.js";
|
|
2
|
+
import { unplugin_default } from "./src-bfjkatac.js";
|
|
3
|
+
import "./types-DQoXDiso.js";
|
|
4
4
|
|
|
5
5
|
export { camelCase, unplugin_default as default, kebabCase, pascalCase };
|
package/dist/nuxt.cjs
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
const require_utils = require('./utils-
|
|
2
|
-
const require_src = require('./src-
|
|
1
|
+
const require_utils = require('./utils-8UQ22cuO.cjs');
|
|
2
|
+
const require_src = require('./src-DAvVDVLg.cjs');
|
|
3
3
|
require('./types-CBTc19th.cjs');
|
|
4
|
-
|
|
4
|
+
let __nuxt_kit = require("@nuxt/kit");
|
|
5
|
+
__nuxt_kit = require_utils.__toESM(__nuxt_kit);
|
|
5
6
|
|
|
6
7
|
//#region src/nuxt.ts
|
|
7
8
|
var nuxt_default = (0, __nuxt_kit.defineNuxtModule)({ setup(options) {
|
package/dist/nuxt.d.cts
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import { Options } from "./types-
|
|
1
|
+
import { Options } from "./types-DSJ5r-ta.cjs";
|
|
2
2
|
import * as _nuxt_schema0 from "@nuxt/schema";
|
|
3
3
|
|
|
4
4
|
//#region src/nuxt.d.ts
|
|
5
5
|
declare const _default: _nuxt_schema0.NuxtModule<Options, Options, false>;
|
|
6
|
-
|
|
7
|
-
export { _default as default };
|
|
6
|
+
export = _default;
|
package/dist/nuxt.d.ts
CHANGED
package/dist/nuxt.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import "./utils-
|
|
2
|
-
import { unplugin_default } from "./src-
|
|
3
|
-
import "./types-
|
|
1
|
+
import "./utils-BoXu-4gQ.js";
|
|
2
|
+
import { unplugin_default } from "./src-bfjkatac.js";
|
|
3
|
+
import "./types-DQoXDiso.js";
|
|
4
4
|
import { addVitePlugin, addWebpackPlugin, defineNuxtModule } from "@nuxt/kit";
|
|
5
5
|
|
|
6
6
|
//#region src/nuxt.ts
|
package/dist/resolvers.cjs
CHANGED
|
@@ -1,10 +1,16 @@
|
|
|
1
|
-
const require_utils = require('./utils-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
1
|
+
const require_utils = require('./utils-8UQ22cuO.cjs');
|
|
2
|
+
let node_fs = require("node:fs");
|
|
3
|
+
node_fs = require_utils.__toESM(node_fs);
|
|
4
|
+
let node_process = require("node:process");
|
|
5
|
+
node_process = require_utils.__toESM(node_process);
|
|
6
|
+
let node_path = require("node:path");
|
|
7
|
+
node_path = require_utils.__toESM(node_path);
|
|
8
|
+
let debug = require("debug");
|
|
9
|
+
debug = require_utils.__toESM(debug);
|
|
10
|
+
let local_pkg = require("local-pkg");
|
|
11
|
+
local_pkg = require_utils.__toESM(local_pkg);
|
|
12
|
+
let mlly = require("mlly");
|
|
13
|
+
mlly = require_utils.__toESM(mlly);
|
|
8
14
|
|
|
9
15
|
//#region src/core/resolvers/antdv.ts
|
|
10
16
|
const matchComponents$3 = [
|
|
@@ -223,13 +229,8 @@ function getSideEffects$8(compName, options) {
|
|
|
223
229
|
if (!importStyle) return;
|
|
224
230
|
const lib = options.cjs ? "lib" : "es";
|
|
225
231
|
const packageName = (options === null || options === void 0 ? void 0 : options.packageName) || "ant-design-vue";
|
|
226
|
-
if (importStyle === "less" || importStyle === "css-in-js" || importLess) {
|
|
227
|
-
|
|
228
|
-
return `${packageName}/${lib}/${styleDir}/style`;
|
|
229
|
-
} else {
|
|
230
|
-
const styleDir = getStyleDir(compName);
|
|
231
|
-
return `${packageName}/${lib}/${styleDir}/style/css`;
|
|
232
|
-
}
|
|
232
|
+
if (importStyle === "less" || importStyle === "css-in-js" || importLess) return `${packageName}/${lib}/${getStyleDir(compName)}/style`;
|
|
233
|
+
else return `${packageName}/${lib}/${getStyleDir(compName)}/style/css`;
|
|
233
234
|
}
|
|
234
235
|
const primitiveNames = [
|
|
235
236
|
"Affix",
|
|
@@ -573,8 +574,7 @@ function ArcoResolver(options = {}) {
|
|
|
573
574
|
resolve: (name) => {
|
|
574
575
|
if (canResolveIcons(options.resolveIcons)) {
|
|
575
576
|
const iconPrefix = require_utils.pascalCase(getResolveIconPrefix(options.resolveIcons));
|
|
576
|
-
|
|
577
|
-
if (newNameRegexp.test(name)) {
|
|
577
|
+
if ((/* @__PURE__ */ new RegExp(`^${iconPrefix}Icon`)).test(name)) {
|
|
578
578
|
debug$1("found icon component name %s", name);
|
|
579
579
|
const rawComponentName = name.slice(iconPrefix.length);
|
|
580
580
|
debug$1("found icon component raw name %s", rawComponentName);
|
|
@@ -817,11 +817,10 @@ function DevUiResolver(options = {}) {
|
|
|
817
817
|
|
|
818
818
|
//#endregion
|
|
819
819
|
//#region node_modules/.pnpm/compare-versions@6.1.1/node_modules/compare-versions/lib/umd/index.js
|
|
820
|
-
var require_umd = require_utils.__commonJS({ "node_modules/.pnpm/compare-versions@6.1.1/node_modules/compare-versions/lib/umd/index.js"(exports, module) {
|
|
820
|
+
var require_umd = /* @__PURE__ */ require_utils.__commonJS({ "node_modules/.pnpm/compare-versions@6.1.1/node_modules/compare-versions/lib/umd/index.js": ((exports, module) => {
|
|
821
821
|
(function(global, factory) {
|
|
822
822
|
typeof exports === "object" && typeof module !== "undefined" ? factory(exports) : typeof define === "function" && define.amd ? define(["exports"], factory) : (global = typeof globalThis !== "undefined" ? globalThis : global || self, factory(global.compareVersions = {}));
|
|
823
|
-
})(
|
|
824
|
-
"use strict";
|
|
823
|
+
})(exports, (function(exports$1) {
|
|
825
824
|
const semver = /^[v^~<>=]*?(\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+))?(?:-([\da-z\-]+(?:\.[\da-z\-]+)*))?(?:\+[\da-z\-]+(?:\.[\da-z\-]+)*)?)?)?$/i;
|
|
826
825
|
const validateAndParse = (version) => {
|
|
827
826
|
if (typeof version !== "string") throw new TypeError("Invalid argument expected string");
|
|
@@ -982,12 +981,12 @@ var require_umd = require_utils.__commonJS({ "node_modules/.pnpm/compare-version
|
|
|
982
981
|
exports$1.satisfies = satisfies;
|
|
983
982
|
exports$1.validate = validate;
|
|
984
983
|
exports$1.validateStrict = validateStrict;
|
|
985
|
-
});
|
|
986
|
-
} });
|
|
984
|
+
}));
|
|
985
|
+
}) });
|
|
987
986
|
|
|
988
987
|
//#endregion
|
|
989
988
|
//#region src/core/resolvers/element-plus.ts
|
|
990
|
-
var import_umd$1 = require_utils.__toESM(require_umd(), 1);
|
|
989
|
+
var import_umd$1 = /* @__PURE__ */ require_utils.__toESM(require_umd(), 1);
|
|
991
990
|
/**
|
|
992
991
|
* @deprecated
|
|
993
992
|
* @param partialName
|
|
@@ -1031,7 +1030,7 @@ function resolveComponent$1(name, options) {
|
|
|
1031
1030
|
}
|
|
1032
1031
|
function resolveDirective(name, options) {
|
|
1033
1032
|
if (!options.directives) return;
|
|
1034
|
-
const
|
|
1033
|
+
const directive = {
|
|
1035
1034
|
Loading: {
|
|
1036
1035
|
importName: "ElLoadingDirective",
|
|
1037
1036
|
styleName: "loading"
|
|
@@ -1044,8 +1043,7 @@ function resolveDirective(name, options) {
|
|
|
1044
1043
|
importName: "ElInfiniteScroll",
|
|
1045
1044
|
styleName: "infinite-scroll"
|
|
1046
1045
|
}
|
|
1047
|
-
};
|
|
1048
|
-
const directive = directives$1[name];
|
|
1046
|
+
}[name];
|
|
1049
1047
|
if (!directive) return;
|
|
1050
1048
|
const { version, ssr, nightly } = options;
|
|
1051
1049
|
if ((0, import_umd$1.compare)(version, "1.1.0-beta.1", ">=") || nightly) return {
|
|
@@ -1119,8 +1117,7 @@ function ElementUiResolver(options = {}) {
|
|
|
1119
1117
|
resolve: (name) => {
|
|
1120
1118
|
if (options.exclude && name.match(options.exclude)) return;
|
|
1121
1119
|
if (/^El[A-Z]/.test(name)) {
|
|
1122
|
-
const
|
|
1123
|
-
const partialName = require_utils.kebabCase(compName);
|
|
1120
|
+
const partialName = require_utils.kebabCase(name.slice(2));
|
|
1124
1121
|
if (partialName === "collapse-transition") return { from: `element-ui/lib/transitions/${partialName}` };
|
|
1125
1122
|
return {
|
|
1126
1123
|
from: `element-ui/lib/${partialName}`,
|
|
@@ -1204,7 +1201,7 @@ function HeadlessUiResolver(options = {}) {
|
|
|
1204
1201
|
|
|
1205
1202
|
//#endregion
|
|
1206
1203
|
//#region src/core/resolvers/idux.ts
|
|
1207
|
-
var import_umd = require_utils.__toESM(require_umd(), 1);
|
|
1204
|
+
var import_umd = /* @__PURE__ */ require_utils.__toESM(require_umd(), 1);
|
|
1208
1205
|
const specialComponents = {
|
|
1209
1206
|
CdkClickOutside: "click-outside",
|
|
1210
1207
|
CdkDraggable: "drag-drop",
|
|
@@ -1246,11 +1243,10 @@ function IduxResolver(options = {}) {
|
|
|
1246
1243
|
dirname = require_utils.kebabCase(name).split("-")[nameIndex];
|
|
1247
1244
|
}
|
|
1248
1245
|
const path = `${scope}/${packageName}/${dirname}`;
|
|
1249
|
-
const sideEffects = packageName === "cdk" ? void 0 : getSideEffects$4(resolvedVersion, path, importStyle, importStyleTheme);
|
|
1250
1246
|
return {
|
|
1251
1247
|
name,
|
|
1252
1248
|
from: path,
|
|
1253
|
-
sideEffects
|
|
1249
|
+
sideEffects: packageName === "cdk" ? void 0 : getSideEffects$4(resolvedVersion, path, importStyle, importStyleTheme)
|
|
1254
1250
|
};
|
|
1255
1251
|
}
|
|
1256
1252
|
};
|
|
@@ -1341,6 +1337,7 @@ const IonicBuiltInComponents = [
|
|
|
1341
1337
|
"IonInfiniteScroll",
|
|
1342
1338
|
"IonInfiniteScrollContent",
|
|
1343
1339
|
"IonInput",
|
|
1340
|
+
"IonInputOtp",
|
|
1344
1341
|
"IonInputPasswordToggle",
|
|
1345
1342
|
"IonItem",
|
|
1346
1343
|
"IonItemDivider",
|
|
@@ -1740,13 +1737,14 @@ function TDesignResolver(options = {}) {
|
|
|
1740
1737
|
name: name.slice(name.startsWith("TTypography") ? 11 : 10),
|
|
1741
1738
|
from: `tdesign-${library}${importFrom}`
|
|
1742
1739
|
};
|
|
1743
|
-
if (name.
|
|
1744
|
-
|
|
1745
|
-
|
|
1746
|
-
|
|
1747
|
-
|
|
1748
|
-
|
|
1749
|
-
|
|
1740
|
+
if (name.startsWith("TQrcode")) return {
|
|
1741
|
+
name: "QRCode",
|
|
1742
|
+
from: `tdesign-${library}${importFrom}`
|
|
1743
|
+
};
|
|
1744
|
+
if (name.match(/^T[A-Z]/) || pluginList.includes(name)) return {
|
|
1745
|
+
name: name.match(/^T[A-Z]/) ? name.slice(1) : name,
|
|
1746
|
+
from: `tdesign-${library}${importFrom}`
|
|
1747
|
+
};
|
|
1750
1748
|
}
|
|
1751
1749
|
};
|
|
1752
1750
|
}
|
|
@@ -1859,11 +1857,10 @@ function VeuiResolver(options = {}) {
|
|
|
1859
1857
|
if (name.match(/^Veui[A-Z]/)) {
|
|
1860
1858
|
const componentName = name.slice(4);
|
|
1861
1859
|
if (!components$1.has(componentName)) return;
|
|
1862
|
-
const sideEffects = getSideEffects$1(componentName, options);
|
|
1863
1860
|
return {
|
|
1864
1861
|
name: componentName,
|
|
1865
1862
|
from: alias,
|
|
1866
|
-
sideEffects
|
|
1863
|
+
sideEffects: getSideEffects$1(componentName, options)
|
|
1867
1864
|
};
|
|
1868
1865
|
}
|
|
1869
1866
|
}
|
|
@@ -1874,7 +1871,7 @@ const formatters = {
|
|
|
1874
1871
|
"camelCase": require_utils.camelCase,
|
|
1875
1872
|
"PascalCase": require_utils.pascalCase
|
|
1876
1873
|
};
|
|
1877
|
-
const peerPaths = new Map();
|
|
1874
|
+
const peerPaths = /* @__PURE__ */ new Map();
|
|
1878
1875
|
function assertPeerPath(peerPath) {
|
|
1879
1876
|
if (!peerPaths.has(peerPath)) try {
|
|
1880
1877
|
(0, mlly.resolvePathSync)(peerPath);
|
|
@@ -1888,8 +1885,7 @@ function getSideEffects$1(name, { alias = VEUI_PACKAGE_NAME, modules = [], local
|
|
|
1888
1885
|
const localeModules = (locale ? Array.isArray(locale) ? locale : [locale] : []).map((locale$1) => `${alias}/locale/${locale$1}/${name}.js`);
|
|
1889
1886
|
const peerModules = modules.map(({ package: pack, path = "components", fileName = "{module}.css", transform = "kebab-case" }) => {
|
|
1890
1887
|
const peer = transform ? formatters[transform](name) : name;
|
|
1891
|
-
|
|
1892
|
-
return (0, node_path.normalize)((0, node_path.join)(pack, path, file));
|
|
1888
|
+
return (0, node_path.normalize)((0, node_path.join)(pack, path, fileName.replace(/\$?\{module\}/g, peer)));
|
|
1893
1889
|
});
|
|
1894
1890
|
return [
|
|
1895
1891
|
...localeModules,
|
|
@@ -2041,7 +2037,7 @@ function VueUseDirectiveResolver() {
|
|
|
2041
2037
|
}
|
|
2042
2038
|
if (directives && directives.includes(name)) return {
|
|
2043
2039
|
name: `v${name}`,
|
|
2044
|
-
as: name
|
|
2040
|
+
as: `v${name}`,
|
|
2045
2041
|
from: "@vueuse/components"
|
|
2046
2042
|
};
|
|
2047
2043
|
}
|
package/dist/resolvers.d.cts
CHANGED
package/dist/resolvers.d.ts
CHANGED
package/dist/resolvers.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { camelCase, getPkgVersion, isExclude, isSSR, kebabCase, pascalCase } from "./utils-
|
|
1
|
+
import { camelCase, getPkgVersion, isExclude, isSSR, kebabCase, pascalCase } from "./utils-BoXu-4gQ.js";
|
|
2
2
|
import { createRequire } from "node:module";
|
|
3
3
|
import { promises, readFileSync } from "node:fs";
|
|
4
4
|
import process from "node:process";
|
|
@@ -251,13 +251,8 @@ function getSideEffects$8(compName, options) {
|
|
|
251
251
|
if (!importStyle) return;
|
|
252
252
|
const lib = options.cjs ? "lib" : "es";
|
|
253
253
|
const packageName = (options === null || options === void 0 ? void 0 : options.packageName) || "ant-design-vue";
|
|
254
|
-
if (importStyle === "less" || importStyle === "css-in-js" || importLess) {
|
|
255
|
-
|
|
256
|
-
return `${packageName}/${lib}/${styleDir}/style`;
|
|
257
|
-
} else {
|
|
258
|
-
const styleDir = getStyleDir(compName);
|
|
259
|
-
return `${packageName}/${lib}/${styleDir}/style/css`;
|
|
260
|
-
}
|
|
254
|
+
if (importStyle === "less" || importStyle === "css-in-js" || importLess) return `${packageName}/${lib}/${getStyleDir(compName)}/style`;
|
|
255
|
+
else return `${packageName}/${lib}/${getStyleDir(compName)}/style/css`;
|
|
261
256
|
}
|
|
262
257
|
const primitiveNames = [
|
|
263
258
|
"Affix",
|
|
@@ -601,8 +596,7 @@ function ArcoResolver(options = {}) {
|
|
|
601
596
|
resolve: (name) => {
|
|
602
597
|
if (canResolveIcons(options.resolveIcons)) {
|
|
603
598
|
const iconPrefix = pascalCase(getResolveIconPrefix(options.resolveIcons));
|
|
604
|
-
|
|
605
|
-
if (newNameRegexp.test(name)) {
|
|
599
|
+
if ((/* @__PURE__ */ new RegExp(`^${iconPrefix}Icon`)).test(name)) {
|
|
606
600
|
debug("found icon component name %s", name);
|
|
607
601
|
const rawComponentName = name.slice(iconPrefix.length);
|
|
608
602
|
debug("found icon component raw name %s", rawComponentName);
|
|
@@ -845,11 +839,10 @@ function DevUiResolver(options = {}) {
|
|
|
845
839
|
|
|
846
840
|
//#endregion
|
|
847
841
|
//#region node_modules/.pnpm/compare-versions@6.1.1/node_modules/compare-versions/lib/umd/index.js
|
|
848
|
-
var require_umd = __commonJS({ "node_modules/.pnpm/compare-versions@6.1.1/node_modules/compare-versions/lib/umd/index.js"(exports, module) {
|
|
842
|
+
var require_umd = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/compare-versions@6.1.1/node_modules/compare-versions/lib/umd/index.js": ((exports, module) => {
|
|
849
843
|
(function(global, factory) {
|
|
850
844
|
typeof exports === "object" && typeof module !== "undefined" ? factory(exports) : typeof define === "function" && define.amd ? define(["exports"], factory) : (global = typeof globalThis !== "undefined" ? globalThis : global || self, factory(global.compareVersions = {}));
|
|
851
|
-
})(
|
|
852
|
-
"use strict";
|
|
845
|
+
})(exports, (function(exports$1) {
|
|
853
846
|
const semver = /^[v^~<>=]*?(\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+))?(?:-([\da-z\-]+(?:\.[\da-z\-]+)*))?(?:\+[\da-z\-]+(?:\.[\da-z\-]+)*)?)?)?$/i;
|
|
854
847
|
const validateAndParse = (version) => {
|
|
855
848
|
if (typeof version !== "string") throw new TypeError("Invalid argument expected string");
|
|
@@ -1010,12 +1003,12 @@ var require_umd = __commonJS({ "node_modules/.pnpm/compare-versions@6.1.1/node_m
|
|
|
1010
1003
|
exports$1.satisfies = satisfies;
|
|
1011
1004
|
exports$1.validate = validate;
|
|
1012
1005
|
exports$1.validateStrict = validateStrict;
|
|
1013
|
-
});
|
|
1014
|
-
} });
|
|
1006
|
+
}));
|
|
1007
|
+
}) });
|
|
1015
1008
|
|
|
1016
1009
|
//#endregion
|
|
1017
1010
|
//#region src/core/resolvers/element-plus.ts
|
|
1018
|
-
var import_umd$1 = __toESM(require_umd(), 1);
|
|
1011
|
+
var import_umd$1 = /* @__PURE__ */ __toESM(require_umd(), 1);
|
|
1019
1012
|
/**
|
|
1020
1013
|
* @deprecated
|
|
1021
1014
|
* @param partialName
|
|
@@ -1059,7 +1052,7 @@ function resolveComponent$1(name, options) {
|
|
|
1059
1052
|
}
|
|
1060
1053
|
function resolveDirective(name, options) {
|
|
1061
1054
|
if (!options.directives) return;
|
|
1062
|
-
const
|
|
1055
|
+
const directive = {
|
|
1063
1056
|
Loading: {
|
|
1064
1057
|
importName: "ElLoadingDirective",
|
|
1065
1058
|
styleName: "loading"
|
|
@@ -1072,8 +1065,7 @@ function resolveDirective(name, options) {
|
|
|
1072
1065
|
importName: "ElInfiniteScroll",
|
|
1073
1066
|
styleName: "infinite-scroll"
|
|
1074
1067
|
}
|
|
1075
|
-
};
|
|
1076
|
-
const directive = directives$1[name];
|
|
1068
|
+
}[name];
|
|
1077
1069
|
if (!directive) return;
|
|
1078
1070
|
const { version, ssr, nightly } = options;
|
|
1079
1071
|
if ((0, import_umd$1.compare)(version, "1.1.0-beta.1", ">=") || nightly) return {
|
|
@@ -1147,8 +1139,7 @@ function ElementUiResolver(options = {}) {
|
|
|
1147
1139
|
resolve: (name) => {
|
|
1148
1140
|
if (options.exclude && name.match(options.exclude)) return;
|
|
1149
1141
|
if (/^El[A-Z]/.test(name)) {
|
|
1150
|
-
const
|
|
1151
|
-
const partialName = kebabCase(compName);
|
|
1142
|
+
const partialName = kebabCase(name.slice(2));
|
|
1152
1143
|
if (partialName === "collapse-transition") return { from: `element-ui/lib/transitions/${partialName}` };
|
|
1153
1144
|
return {
|
|
1154
1145
|
from: `element-ui/lib/${partialName}`,
|
|
@@ -1232,7 +1223,7 @@ function HeadlessUiResolver(options = {}) {
|
|
|
1232
1223
|
|
|
1233
1224
|
//#endregion
|
|
1234
1225
|
//#region src/core/resolvers/idux.ts
|
|
1235
|
-
var import_umd = __toESM(require_umd(), 1);
|
|
1226
|
+
var import_umd = /* @__PURE__ */ __toESM(require_umd(), 1);
|
|
1236
1227
|
const specialComponents = {
|
|
1237
1228
|
CdkClickOutside: "click-outside",
|
|
1238
1229
|
CdkDraggable: "drag-drop",
|
|
@@ -1274,11 +1265,10 @@ function IduxResolver(options = {}) {
|
|
|
1274
1265
|
dirname$1 = kebabCase(name).split("-")[nameIndex];
|
|
1275
1266
|
}
|
|
1276
1267
|
const path = `${scope}/${packageName}/${dirname$1}`;
|
|
1277
|
-
const sideEffects = packageName === "cdk" ? void 0 : getSideEffects$4(resolvedVersion, path, importStyle, importStyleTheme);
|
|
1278
1268
|
return {
|
|
1279
1269
|
name,
|
|
1280
1270
|
from: path,
|
|
1281
|
-
sideEffects
|
|
1271
|
+
sideEffects: packageName === "cdk" ? void 0 : getSideEffects$4(resolvedVersion, path, importStyle, importStyleTheme)
|
|
1282
1272
|
};
|
|
1283
1273
|
}
|
|
1284
1274
|
};
|
|
@@ -1369,6 +1359,7 @@ const IonicBuiltInComponents = [
|
|
|
1369
1359
|
"IonInfiniteScroll",
|
|
1370
1360
|
"IonInfiniteScrollContent",
|
|
1371
1361
|
"IonInput",
|
|
1362
|
+
"IonInputOtp",
|
|
1372
1363
|
"IonInputPasswordToggle",
|
|
1373
1364
|
"IonItem",
|
|
1374
1365
|
"IonItemDivider",
|
|
@@ -1768,13 +1759,14 @@ function TDesignResolver(options = {}) {
|
|
|
1768
1759
|
name: name.slice(name.startsWith("TTypography") ? 11 : 10),
|
|
1769
1760
|
from: `tdesign-${library}${importFrom}`
|
|
1770
1761
|
};
|
|
1771
|
-
if (name.
|
|
1772
|
-
|
|
1773
|
-
|
|
1774
|
-
|
|
1775
|
-
|
|
1776
|
-
|
|
1777
|
-
|
|
1762
|
+
if (name.startsWith("TQrcode")) return {
|
|
1763
|
+
name: "QRCode",
|
|
1764
|
+
from: `tdesign-${library}${importFrom}`
|
|
1765
|
+
};
|
|
1766
|
+
if (name.match(/^T[A-Z]/) || pluginList.includes(name)) return {
|
|
1767
|
+
name: name.match(/^T[A-Z]/) ? name.slice(1) : name,
|
|
1768
|
+
from: `tdesign-${library}${importFrom}`
|
|
1769
|
+
};
|
|
1778
1770
|
}
|
|
1779
1771
|
};
|
|
1780
1772
|
}
|
|
@@ -1887,11 +1879,10 @@ function VeuiResolver(options = {}) {
|
|
|
1887
1879
|
if (name.match(/^Veui[A-Z]/)) {
|
|
1888
1880
|
const componentName = name.slice(4);
|
|
1889
1881
|
if (!components$1.has(componentName)) return;
|
|
1890
|
-
const sideEffects = getSideEffects$1(componentName, options);
|
|
1891
1882
|
return {
|
|
1892
1883
|
name: componentName,
|
|
1893
1884
|
from: alias,
|
|
1894
|
-
sideEffects
|
|
1885
|
+
sideEffects: getSideEffects$1(componentName, options)
|
|
1895
1886
|
};
|
|
1896
1887
|
}
|
|
1897
1888
|
}
|
|
@@ -1902,7 +1893,7 @@ const formatters = {
|
|
|
1902
1893
|
"camelCase": camelCase,
|
|
1903
1894
|
"PascalCase": pascalCase
|
|
1904
1895
|
};
|
|
1905
|
-
const peerPaths = new Map();
|
|
1896
|
+
const peerPaths = /* @__PURE__ */ new Map();
|
|
1906
1897
|
function assertPeerPath(peerPath) {
|
|
1907
1898
|
if (!peerPaths.has(peerPath)) try {
|
|
1908
1899
|
resolvePathSync(peerPath);
|
|
@@ -1916,8 +1907,7 @@ function getSideEffects$1(name, { alias = VEUI_PACKAGE_NAME, modules = [], local
|
|
|
1916
1907
|
const localeModules = (locale ? Array.isArray(locale) ? locale : [locale] : []).map((locale$1) => `${alias}/locale/${locale$1}/${name}.js`);
|
|
1917
1908
|
const peerModules = modules.map(({ package: pack, path = "components", fileName = "{module}.css", transform = "kebab-case" }) => {
|
|
1918
1909
|
const peer = transform ? formatters[transform](name) : name;
|
|
1919
|
-
|
|
1920
|
-
return normalize(join(pack, path, file));
|
|
1910
|
+
return normalize(join(pack, path, fileName.replace(/\$?\{module\}/g, peer)));
|
|
1921
1911
|
});
|
|
1922
1912
|
return [
|
|
1923
1913
|
...localeModules,
|
|
@@ -2069,7 +2059,7 @@ function VueUseDirectiveResolver() {
|
|
|
2069
2059
|
}
|
|
2070
2060
|
if (directives && directives.includes(name)) return {
|
|
2071
2061
|
name: `v${name}`,
|
|
2072
|
-
as: name
|
|
2062
|
+
as: `v${name}`,
|
|
2073
2063
|
from: "@vueuse/components"
|
|
2074
2064
|
};
|
|
2075
2065
|
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
require('./utils-8UQ22cuO.cjs');
|
|
2
|
+
const require_src = require('./src-DAvVDVLg.cjs');
|
|
3
|
+
require('./types-CBTc19th.cjs');
|
|
4
|
+
|
|
5
|
+
//#region src/rolldown.ts
|
|
6
|
+
var rolldown_default = require_src.unplugin_default.rolldown;
|
|
7
|
+
|
|
8
|
+
//#endregion
|
|
9
|
+
module.exports = rolldown_default;
|
package/dist/rolldown.js
ADDED
package/dist/rollup.cjs
CHANGED
package/dist/rollup.d.cts
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import { Options } from "./types-
|
|
1
|
+
import { Options } from "./types-DSJ5r-ta.cjs";
|
|
2
2
|
import * as rollup0 from "rollup";
|
|
3
3
|
|
|
4
4
|
//#region src/rollup.d.ts
|
|
5
5
|
declare const _default: (options: Options) => rollup0.Plugin<any> | rollup0.Plugin<any>[];
|
|
6
|
-
|
|
7
|
-
export { _default as default };
|
|
6
|
+
export = _default;
|
package/dist/rollup.d.ts
CHANGED
package/dist/rollup.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import "./utils-
|
|
2
|
-
import { unplugin_default } from "./src-
|
|
3
|
-
import "./types-
|
|
1
|
+
import "./utils-BoXu-4gQ.js";
|
|
2
|
+
import { unplugin_default } from "./src-bfjkatac.js";
|
|
3
|
+
import "./types-DQoXDiso.js";
|
|
4
4
|
|
|
5
5
|
//#region src/rollup.ts
|
|
6
6
|
var rollup_default = unplugin_default.rollup;
|
package/dist/rspack.cjs
CHANGED