unplugin-vue-components 0.27.3 → 0.27.5

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 CHANGED
@@ -230,7 +230,9 @@ Supported Resolvers:
230
230
  - [Quasar](https://github.com/antfu/unplugin-vue-components/blob/main/src/core/resolvers/quasar.ts)
231
231
  - [TDesign](https://github.com/antfu/unplugin-vue-components/blob/main/src/core/resolvers/tdesign.ts)
232
232
  - [Vant](https://github.com/antfu/unplugin-vue-components/blob/main/src/core/resolvers/vant.ts)
233
+ - [`@vant/auto-import-resolver`](https://github.com/youzan/vant/blob/main/packages/vant-auto-import-resolver/README.md) - Vant's own auto-import resolver
233
234
  - [Varlet UI](https://github.com/antfu/unplugin-vue-components/blob/main/src/core/resolvers/varlet-ui.ts)
235
+ - [`@varlet/import-resolver`](https://github.com/varletjs/varlet/blob/dev/packages/varlet-import-resolver/README.md) - Varlet's own auto-import resolver
234
236
  - [VEUI](https://github.com/antfu/unplugin-vue-components/blob/main/src/core/resolvers/veui.ts)
235
237
  - [View UI](https://github.com/antfu/unplugin-vue-components/blob/main/src/core/resolvers/view-ui.ts)
236
238
  - [Vuetify](https://github.com/antfu/unplugin-vue-components/blob/main/src/core/resolvers/vuetify.ts) — Prefer first-party plugins when possible: [v3 + vite](https://www.npmjs.com/package/vite-plugin-vuetify), [v3 + webpack](https://www.npmjs.com/package/webpack-plugin-vuetify), [v2 + webpack](https://npmjs.com/package/vuetify-loader)
@@ -358,7 +360,7 @@ Components({
358
360
  extensions: ['vue'],
359
361
 
360
362
  // Glob patterns to match file names to be detected as components.
361
- // When specified, the `dirs` and `extensions` options will be ignored.
363
+ // When specified, the `dirs`, `extensions`, and `directoryAsNamespace` options will be ignored.
362
364
  // If you want to exclude components being registered, use negative globs with leading `!`.
363
365
  globs: ['src/components/*.{vue}'],
364
366
 
@@ -398,10 +400,14 @@ Components({
398
400
  allowOverrides: false,
399
401
 
400
402
  // Filters for transforming targets (components to insert the auto import)
401
- // Note these are NOT about including/excluding components registered - use `globs` for that
403
+ // Note these are NOT about including/excluding components registered - use `globs` or `excludeNames` for that
402
404
  include: [/\.vue$/, /\.vue\?vue/],
403
405
  exclude: [/[\\/]node_modules[\\/]/, /[\\/]\.git[\\/]/, /[\\/]\.nuxt[\\/]/],
404
406
 
407
+ // Filters for component names that will not be imported
408
+ // Use for globally imported async components or other conflicts that the plugin cannot detect
409
+ excludeNames: [/^Async.+/],
410
+
405
411
  // Vue version of project. It will detect automatically if not specified.
406
412
  // Acceptable value: 2 | 2.7 | 3
407
413
  version: 2.7,
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; } var _class;
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { newObj[key] = obj[key]; } } } newObj.default = obj; return newObj; } } function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; } var _class;
2
2
 
3
3
 
4
4
 
@@ -10,7 +10,8 @@
10
10
 
11
11
 
12
12
 
13
- var _chunk5RDO6MHScjs = require('./chunk-5RDO6MHS.cjs');
13
+
14
+ var _chunk6IWOTYMJcjs = require('./chunk-6IWOTYMJ.cjs');
14
15
 
15
16
  // src/core/unplugin.ts
16
17
  var _fs = require('fs');
@@ -113,7 +114,7 @@ function resolveOptions(options, root) {
113
114
  return resolved;
114
115
  }
115
116
  function getVueVersion(root) {
116
- const raw = _optionalChain([_localpkg.getPackageInfoSync.call(void 0, "vue", { paths: [root] }), 'optionalAccess', _ => _.version]) || "3";
117
+ const raw = _optionalChain([_localpkg.getPackageInfoSync.call(void 0, "vue", { paths: [_path.join.call(void 0, root, "/")] }), 'optionalAccess', _ => _.version]) || "3";
117
118
  const version = +raw.split(".").slice(0, 2).join(".");
118
119
  if (version === 2.7)
119
120
  return 2.7;
@@ -170,7 +171,7 @@ function parseDeclaration(code) {
170
171
  function stringifyComponentInfo(filepath, { from: path, as: name, name: importName }, importPathTransform) {
171
172
  if (!name)
172
173
  return void 0;
173
- path = _chunk5RDO6MHScjs.getTransformedPath.call(void 0, path, importPathTransform);
174
+ path = _chunk6IWOTYMJcjs.getTransformedPath.call(void 0, path, importPathTransform);
174
175
  const related = _path.isAbsolute.call(void 0, path) ? `./${_path.relative.call(void 0, _path.dirname.call(void 0, filepath), path)}` : path;
175
176
  const entry = `typeof import('${_utils.slash.call(void 0, related)}')['${importName || "default"}']`;
176
177
  return [name, entry];
@@ -291,12 +292,12 @@ async function transformComponent(code, transformer2, s, ctx, sfcPath) {
291
292
  const results = transformer2 === "vue2" ? resolveVue2(code, s) : resolveVue3(code, s);
292
293
  for (const { rawName, replace } of results) {
293
294
  debug2(`| ${rawName}`);
294
- const name = _chunk5RDO6MHScjs.pascalCase.call(void 0, rawName);
295
+ const name = _chunk6IWOTYMJcjs.pascalCase.call(void 0, rawName);
295
296
  ctx.updateUsageMap(sfcPath, [name]);
296
297
  const component = await ctx.findComponent(name, "component", [sfcPath]);
297
298
  if (component) {
298
299
  const varName = `__unplugin_components_${no}`;
299
- s.prepend(`${_chunk5RDO6MHScjs.stringifyComponentImport.call(void 0, { ...component, as: varName }, ctx)};
300
+ s.prepend(`${_chunk6IWOTYMJcjs.stringifyComponentImport.call(void 0, { ...component, as: varName }, ctx)};
300
301
  `);
301
302
  no += 1;
302
303
  replace(varName);
@@ -327,7 +328,7 @@ async function resolveVue22(code, s) {
327
328
  sourceType: "module"
328
329
  });
329
330
  const nodes = [];
330
- const { walk } = await Promise.resolve().then(() => require("./src-KNP44FKK.cjs"));
331
+ const { walk } = await Promise.resolve().then(() => _interopRequireWildcard(require("./src-KNP44FKK.cjs")));
331
332
  walk(program, {
332
333
  enter(node) {
333
334
  if (node.type === "CallExpression")
@@ -399,13 +400,13 @@ async function transformDirective(code, transformer2, s, ctx, sfcPath) {
399
400
  const results = await (transformer2 === "vue2" ? resolveVue22(code, s) : resolveVue32(code, s));
400
401
  for (const { rawName, replace } of results) {
401
402
  debug3(`| ${rawName}`);
402
- const name = `${_chunk5RDO6MHScjs.DIRECTIVE_IMPORT_PREFIX}${_chunk5RDO6MHScjs.pascalCase.call(void 0, rawName)}`;
403
+ const name = `${_chunk6IWOTYMJcjs.DIRECTIVE_IMPORT_PREFIX}${_chunk6IWOTYMJcjs.pascalCase.call(void 0, rawName)}`;
403
404
  ctx.updateUsageMap(sfcPath, [name]);
404
405
  const directive = await ctx.findComponent(name, "directive", [sfcPath]);
405
406
  if (!directive)
406
407
  continue;
407
408
  const varName = `__unplugin_directives_${no}`;
408
- s.prepend(`${_chunk5RDO6MHScjs.stringifyComponentImport.call(void 0, { ...directive, as: varName }, ctx)};
409
+ s.prepend(`${_chunk6IWOTYMJcjs.stringifyComponentImport.call(void 0, { ...directive, as: varName }, ctx)};
409
410
  `);
410
411
  no += 1;
411
412
  replace(varName);
@@ -424,7 +425,7 @@ function transformer(ctx, transformer2) {
424
425
  await transformComponent(code, transformer2, s, ctx, sfcPath);
425
426
  if (ctx.options.directives)
426
427
  await transformDirective(code, transformer2, s, ctx, sfcPath);
427
- s.prepend(_chunk5RDO6MHScjs.DISABLE_COMMENT);
428
+ s.prepend(_chunk6IWOTYMJcjs.DISABLE_COMMENT);
428
429
  const result = { code: s.toString() };
429
430
  if (ctx.sourcemap)
430
431
  result.map = s.generateMap({ source: id, includeContent: true, hires: "boundary" });
@@ -470,7 +471,7 @@ var Context = (_class = class {
470
471
  this.transformer = transformer(this, name || "vue3");
471
472
  }
472
473
  transform(code, id) {
473
- const { path, query } = _chunk5RDO6MHScjs.parseId.call(void 0, id);
474
+ const { path, query } = _chunk6IWOTYMJcjs.parseId.call(void 0, id);
474
475
  return this.transformer(code, id, path, query);
475
476
  }
476
477
  setupViteServer(server) {
@@ -482,14 +483,14 @@ var Context = (_class = class {
482
483
  setupWatcher(watcher) {
483
484
  const { globs } = this.options;
484
485
  watcher.on("unlink", (path) => {
485
- if (!_chunk5RDO6MHScjs.matchGlobs.call(void 0, path, globs))
486
+ if (!_chunk6IWOTYMJcjs.matchGlobs.call(void 0, path, globs))
486
487
  return;
487
488
  path = _utils.slash.call(void 0, path);
488
489
  this.removeComponents(path);
489
490
  this.onUpdate(path);
490
491
  });
491
492
  watcher.on("add", (path) => {
492
- if (!_chunk5RDO6MHScjs.matchGlobs.call(void 0, path, globs))
493
+ if (!_chunk6IWOTYMJcjs.matchGlobs.call(void 0, path, globs))
493
494
  return;
494
495
  path = _utils.slash.call(void 0, path);
495
496
  this.addComponents(path);
@@ -502,14 +503,14 @@ var Context = (_class = class {
502
503
  setupWatcherWebpack(watcher, emitUpdate) {
503
504
  const { globs } = this.options;
504
505
  watcher.on("unlink", (path) => {
505
- if (!_chunk5RDO6MHScjs.matchGlobs.call(void 0, path, globs))
506
+ if (!_chunk6IWOTYMJcjs.matchGlobs.call(void 0, path, globs))
506
507
  return;
507
508
  path = _utils.slash.call(void 0, path);
508
509
  this.removeComponents(path);
509
510
  emitUpdate(path, "unlink");
510
511
  });
511
512
  watcher.on("add", (path) => {
512
- if (!_chunk5RDO6MHScjs.matchGlobs.call(void 0, path, globs))
513
+ if (!_chunk6IWOTYMJcjs.matchGlobs.call(void 0, path, globs))
513
514
  return;
514
515
  path = _utils.slash.call(void 0, path);
515
516
  this.addComponents(path);
@@ -565,7 +566,7 @@ var Context = (_class = class {
565
566
  updates: []
566
567
  };
567
568
  const timestamp = +/* @__PURE__ */ new Date();
568
- const name = _chunk5RDO6MHScjs.pascalCase.call(void 0, _chunk5RDO6MHScjs.getNameFromFilePath.call(void 0, path, this.options));
569
+ const name = _chunk6IWOTYMJcjs.pascalCase.call(void 0, _chunk6IWOTYMJcjs.getNameFromFilePath.call(void 0, path, this.options));
569
570
  Object.entries(this._componentUsageMap).forEach(([key, values]) => {
570
571
  if (values.has(name)) {
571
572
  const r = `/${_utils.slash.call(void 0, _path.relative.call(void 0, this.root, key))}`;
@@ -583,7 +584,11 @@ var Context = (_class = class {
583
584
  updateComponentNameMap() {
584
585
  this._componentNameMap = {};
585
586
  Array.from(this._componentPaths).forEach((path) => {
586
- const name = _chunk5RDO6MHScjs.pascalCase.call(void 0, _chunk5RDO6MHScjs.getNameFromFilePath.call(void 0, path, this.options));
587
+ const name = _chunk6IWOTYMJcjs.pascalCase.call(void 0, _chunk6IWOTYMJcjs.getNameFromFilePath.call(void 0, path, this.options));
588
+ if (_chunk6IWOTYMJcjs.isExclude.call(void 0, name, this.options.excludeNames)) {
589
+ debug5.components("exclude", name);
590
+ return;
591
+ }
587
592
  if (this._componentNameMap[name] && !this.options.allowOverrides) {
588
593
  console.warn(`[unplugin-vue-components] component "${name}"(${path}) has naming conflicts with other components, ignored.`);
589
594
  return;
@@ -601,7 +606,7 @@ var Context = (_class = class {
601
606
  for (const resolver of this.options.resolvers) {
602
607
  if (resolver.type !== type)
603
608
  continue;
604
- const result = await resolver.resolve(type === "directive" ? name.slice(_chunk5RDO6MHScjs.DIRECTIVE_IMPORT_PREFIX.length) : name);
609
+ const result = await resolver.resolve(type === "directive" ? name.slice(_chunk6IWOTYMJcjs.DIRECTIVE_IMPORT_PREFIX.length) : name);
605
610
  if (!result)
606
611
  continue;
607
612
  if (typeof result === "string") {
@@ -612,7 +617,7 @@ var Context = (_class = class {
612
617
  } else {
613
618
  info = {
614
619
  as: name,
615
- ..._chunk5RDO6MHScjs.normalizeComponentInfo.call(void 0, result)
620
+ ..._chunk6IWOTYMJcjs.normalizeComponentInfo.call(void 0, result)
616
621
  };
617
622
  }
618
623
  if (type === "component")
@@ -624,7 +629,7 @@ var Context = (_class = class {
624
629
  return void 0;
625
630
  }
626
631
  normalizePath(path) {
627
- return _chunk5RDO6MHScjs.resolveAlias.call(void 0, path, _optionalChain([this, 'access', _31 => _31.viteConfig, 'optionalAccess', _32 => _32.resolve, 'optionalAccess', _33 => _33.alias]) || _optionalChain([this, 'access', _34 => _34.viteConfig, 'optionalAccess', _35 => _35.alias]) || []);
632
+ return _chunk6IWOTYMJcjs.resolveAlias.call(void 0, path, _optionalChain([this, 'access', _31 => _31.viteConfig, 'optionalAccess', _32 => _32.resolve, 'optionalAccess', _33 => _33.alias]) || _optionalChain([this, 'access', _34 => _34.viteConfig, 'optionalAccess', _35 => _35.alias]) || []);
628
633
  }
629
634
  relative(path) {
630
635
  if (path.startsWith("/") && !path.startsWith(this.root))
@@ -675,7 +680,7 @@ var unplugin_default = _unplugin.createUnplugin.call(void 0, (options = {}) => {
675
680
  return await ctx.findComponent(name, "component", filename ? [filename] : []);
676
681
  },
677
682
  stringifyImport(info) {
678
- return _chunk5RDO6MHScjs.stringifyComponentImport.call(void 0, info, ctx);
683
+ return _chunk6IWOTYMJcjs.stringifyComponentImport.call(void 0, info, ctx);
679
684
  }
680
685
  };
681
686
  return {
@@ -686,7 +691,7 @@ var unplugin_default = _unplugin.createUnplugin.call(void 0, (options = {}) => {
686
691
  return filter(id);
687
692
  },
688
693
  async transform(code, id) {
689
- if (!_chunk5RDO6MHScjs.shouldTransform.call(void 0, code))
694
+ if (!_chunk6IWOTYMJcjs.shouldTransform.call(void 0, code))
690
695
  return null;
691
696
  try {
692
697
  const result = await ctx.transform(code, id);
@@ -1,6 +1,6 @@
1
1
  // src/core/utils.ts
2
- import { parse } from "path";
3
- import process from "process";
2
+ import { parse } from "node:path";
3
+ import process from "node:process";
4
4
  import { minimatch } from "minimatch";
5
5
  import { slash, toArray } from "@antfu/utils";
6
6
  import {
@@ -171,6 +171,21 @@ function shouldTransform(code) {
171
171
  return false;
172
172
  return true;
173
173
  }
174
+ function isExclude(name, exclude) {
175
+ if (!exclude)
176
+ return false;
177
+ if (typeof exclude === "string")
178
+ return name === exclude;
179
+ if (exclude instanceof RegExp)
180
+ return !!name.match(exclude);
181
+ if (Array.isArray(exclude)) {
182
+ for (const item of exclude) {
183
+ if (name === item || name.match(item))
184
+ return true;
185
+ }
186
+ }
187
+ return false;
188
+ }
174
189
 
175
190
  export {
176
191
  DISABLE_COMMENT,
@@ -187,5 +202,6 @@ export {
187
202
  getNameFromFilePath,
188
203
  resolveAlias,
189
204
  getPkgVersion,
190
- shouldTransform
205
+ shouldTransform,
206
+ isExclude
191
207
  };
@@ -171,6 +171,22 @@ function shouldTransform(code) {
171
171
  return false;
172
172
  return true;
173
173
  }
174
+ function isExclude(name, exclude) {
175
+ if (!exclude)
176
+ return false;
177
+ if (typeof exclude === "string")
178
+ return name === exclude;
179
+ if (exclude instanceof RegExp)
180
+ return !!name.match(exclude);
181
+ if (Array.isArray(exclude)) {
182
+ for (const item of exclude) {
183
+ if (name === item || name.match(item))
184
+ return true;
185
+ }
186
+ }
187
+ return false;
188
+ }
189
+
174
190
 
175
191
 
176
192
 
@@ -188,4 +204,4 @@ function shouldTransform(code) {
188
204
 
189
205
 
190
206
 
191
- exports.DISABLE_COMMENT = DISABLE_COMMENT; exports.DIRECTIVE_IMPORT_PREFIX = DIRECTIVE_IMPORT_PREFIX; exports.isSSR = isSSR; exports.pascalCase = pascalCase; exports.camelCase = camelCase; exports.kebabCase = kebabCase; exports.parseId = parseId; exports.matchGlobs = matchGlobs; exports.getTransformedPath = getTransformedPath; exports.normalizeComponentInfo = normalizeComponentInfo; exports.stringifyComponentImport = stringifyComponentImport; exports.getNameFromFilePath = getNameFromFilePath; exports.resolveAlias = resolveAlias; exports.getPkgVersion = getPkgVersion; exports.shouldTransform = shouldTransform;
207
+ exports.DISABLE_COMMENT = DISABLE_COMMENT; exports.DIRECTIVE_IMPORT_PREFIX = DIRECTIVE_IMPORT_PREFIX; exports.isSSR = isSSR; exports.pascalCase = pascalCase; exports.camelCase = camelCase; exports.kebabCase = kebabCase; exports.parseId = parseId; exports.matchGlobs = matchGlobs; exports.getTransformedPath = getTransformedPath; exports.normalizeComponentInfo = normalizeComponentInfo; exports.stringifyComponentImport = stringifyComponentImport; exports.getNameFromFilePath = getNameFromFilePath; exports.resolveAlias = resolveAlias; exports.getPkgVersion = getPkgVersion; exports.shouldTransform = shouldTransform; exports.isExclude = isExclude;
@@ -3,6 +3,7 @@ import {
3
3
  DISABLE_COMMENT,
4
4
  getNameFromFilePath,
5
5
  getTransformedPath,
6
+ isExclude,
6
7
  matchGlobs,
7
8
  normalizeComponentInfo,
8
9
  parseId,
@@ -10,23 +11,23 @@ import {
10
11
  resolveAlias,
11
12
  shouldTransform,
12
13
  stringifyComponentImport
13
- } from "./chunk-4KHLF5I7.js";
14
+ } from "./chunk-4R6MYHM7.js";
14
15
 
15
16
  // src/core/unplugin.ts
16
- import { existsSync as existsSync2 } from "fs";
17
- import process2 from "process";
17
+ import { existsSync as existsSync2 } from "node:fs";
18
+ import process2 from "node:process";
18
19
  import { createUnplugin } from "unplugin";
19
20
  import { createFilter } from "@rollup/pluginutils";
20
21
  import chokidar from "chokidar";
21
22
 
22
23
  // src/core/context.ts
23
- import { relative as relative2 } from "path";
24
- import process from "process";
24
+ import { relative as relative2 } from "node:path";
25
+ import process from "node:process";
25
26
  import Debug5 from "debug";
26
27
  import { slash as slash3, throttle, toArray as toArray2 } from "@antfu/utils";
27
28
 
28
29
  // src/core/options.ts
29
- import { join, resolve } from "path";
30
+ import { join, resolve } from "node:path";
30
31
  import { slash, toArray } from "@antfu/utils";
31
32
  import { getPackageInfoSync, isPackageExists as isPackageExists2 } from "local-pkg";
32
33
 
@@ -113,7 +114,7 @@ function resolveOptions(options, root) {
113
114
  return resolved;
114
115
  }
115
116
  function getVueVersion(root) {
116
- const raw = getPackageInfoSync("vue", { paths: [root] })?.version || "3";
117
+ const raw = getPackageInfoSync("vue", { paths: [join(root, "/")] })?.version || "3";
117
118
  const version = +raw.split(".").slice(0, 2).join(".");
118
119
  if (version === 2.7)
119
120
  return 2.7;
@@ -142,9 +143,9 @@ function searchComponents(ctx) {
142
143
  }
143
144
 
144
145
  // src/core/declaration.ts
145
- import { dirname, isAbsolute, relative } from "path";
146
- import { existsSync } from "fs";
147
- import { mkdir, readFile, writeFile as writeFile_ } from "fs/promises";
146
+ import { dirname, isAbsolute, relative } from "node:path";
147
+ import { existsSync } from "node:fs";
148
+ import { mkdir, readFile, writeFile as writeFile_ } from "node:fs/promises";
148
149
  import { notNullish as notNullish2, slash as slash2 } from "@antfu/utils";
149
150
  var multilineCommentsRE = /\/\*.*?\*\//gs;
150
151
  var singlelineCommentsRE = /\/\/.*$/gm;
@@ -584,6 +585,10 @@ var Context = class {
584
585
  this._componentNameMap = {};
585
586
  Array.from(this._componentPaths).forEach((path) => {
586
587
  const name = pascalCase(getNameFromFilePath(path, this.options));
588
+ if (isExclude(name, this.options.excludeNames)) {
589
+ debug5.components("exclude", name);
590
+ return;
591
+ }
587
592
  if (this._componentNameMap[name] && !this.options.allowOverrides) {
588
593
  console.warn(`[unplugin-vue-components] component "${name}"(${path}) has naming conflicts with other components, ignored.`);
589
594
  return;
package/dist/esbuild.cjs CHANGED
@@ -1,12 +1,12 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunkV7E5BH3Ycjs = require('./chunk-V7E5BH3Y.cjs');
4
- require('./chunk-5RDO6MHS.cjs');
3
+ var _chunk23WSNQH3cjs = require('./chunk-23WSNQH3.cjs');
4
+ require('./chunk-6IWOTYMJ.cjs');
5
5
  require('./chunk-OBGZSXTJ.cjs');
6
6
  require('./chunk-ZBPRDZS4.cjs');
7
7
 
8
8
  // src/esbuild.ts
9
- var esbuild_default = _chunkV7E5BH3Ycjs.unplugin_default.esbuild;
9
+ var esbuild_default = _chunk23WSNQH3cjs.unplugin_default.esbuild;
10
10
 
11
11
 
12
12
  exports.default = esbuild_default;
package/dist/esbuild.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  unplugin_default
3
- } from "./chunk-YOHL3P33.js";
4
- import "./chunk-4KHLF5I7.js";
3
+ } from "./chunk-Q6EJTKZN.js";
4
+ import "./chunk-4R6MYHM7.js";
5
5
  import "./chunk-3RG5ZIWI.js";
6
6
  import "./chunk-6F4PWJZI.js";
7
7
 
package/dist/index.cjs CHANGED
@@ -1,11 +1,11 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunkV7E5BH3Ycjs = require('./chunk-V7E5BH3Y.cjs');
3
+ var _chunk23WSNQH3cjs = require('./chunk-23WSNQH3.cjs');
4
4
 
5
5
 
6
6
 
7
7
 
8
- var _chunk5RDO6MHScjs = require('./chunk-5RDO6MHS.cjs');
8
+ var _chunk6IWOTYMJcjs = require('./chunk-6IWOTYMJ.cjs');
9
9
  require('./chunk-OBGZSXTJ.cjs');
10
10
  require('./chunk-ZBPRDZS4.cjs');
11
11
 
@@ -13,4 +13,4 @@ require('./chunk-ZBPRDZS4.cjs');
13
13
 
14
14
 
15
15
 
16
- exports.camelCase = _chunk5RDO6MHScjs.camelCase; exports.default = _chunkV7E5BH3Ycjs.unplugin_default; exports.kebabCase = _chunk5RDO6MHScjs.kebabCase; exports.pascalCase = _chunk5RDO6MHScjs.pascalCase;
16
+ exports.camelCase = _chunk6IWOTYMJcjs.camelCase; exports.default = _chunk23WSNQH3cjs.unplugin_default; exports.kebabCase = _chunk6IWOTYMJcjs.kebabCase; exports.pascalCase = _chunk6IWOTYMJcjs.pascalCase;
package/dist/index.js CHANGED
@@ -1,11 +1,11 @@
1
1
  import {
2
2
  unplugin_default
3
- } from "./chunk-YOHL3P33.js";
3
+ } from "./chunk-Q6EJTKZN.js";
4
4
  import {
5
5
  camelCase,
6
6
  kebabCase,
7
7
  pascalCase
8
- } from "./chunk-4KHLF5I7.js";
8
+ } from "./chunk-4R6MYHM7.js";
9
9
  import "./chunk-3RG5ZIWI.js";
10
10
  import "./chunk-6F4PWJZI.js";
11
11
  export {
package/dist/nuxt.cjs CHANGED
@@ -1,7 +1,7 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunkV7E5BH3Ycjs = require('./chunk-V7E5BH3Y.cjs');
4
- require('./chunk-5RDO6MHS.cjs');
3
+ var _chunk23WSNQH3cjs = require('./chunk-23WSNQH3.cjs');
4
+ require('./chunk-6IWOTYMJ.cjs');
5
5
  require('./chunk-OBGZSXTJ.cjs');
6
6
  require('./chunk-ZBPRDZS4.cjs');
7
7
 
@@ -9,8 +9,8 @@ require('./chunk-ZBPRDZS4.cjs');
9
9
  var _kit = require('@nuxt/kit');
10
10
  var nuxt_default = _kit.defineNuxtModule.call(void 0, {
11
11
  setup(options) {
12
- _kit.addWebpackPlugin.call(void 0, _chunkV7E5BH3Ycjs.unplugin_default.webpack(options));
13
- _kit.addVitePlugin.call(void 0, _chunkV7E5BH3Ycjs.unplugin_default.vite(options));
12
+ _kit.addWebpackPlugin.call(void 0, _chunk23WSNQH3cjs.unplugin_default.webpack(options));
13
+ _kit.addVitePlugin.call(void 0, _chunk23WSNQH3cjs.unplugin_default.vite(options));
14
14
  }
15
15
  });
16
16
 
package/dist/nuxt.d.cts CHANGED
@@ -4,6 +4,6 @@ import '@rollup/pluginutils';
4
4
  import 'unplugin';
5
5
  import '@antfu/utils';
6
6
 
7
- declare const _default: _nuxt_schema.NuxtModule<Options>;
7
+ declare const _default: _nuxt_schema.NuxtModule<Options, Options, false>;
8
8
 
9
9
  export { _default as default };
package/dist/nuxt.d.ts CHANGED
@@ -4,6 +4,6 @@ import '@rollup/pluginutils';
4
4
  import 'unplugin';
5
5
  import '@antfu/utils';
6
6
 
7
- declare const _default: _nuxt_schema.NuxtModule<Options>;
7
+ declare const _default: _nuxt_schema.NuxtModule<Options, Options, false>;
8
8
 
9
9
  export { _default as default };
package/dist/nuxt.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  unplugin_default
3
- } from "./chunk-YOHL3P33.js";
4
- import "./chunk-4KHLF5I7.js";
3
+ } from "./chunk-Q6EJTKZN.js";
4
+ import "./chunk-4R6MYHM7.js";
5
5
  import "./chunk-3RG5ZIWI.js";
6
6
  import "./chunk-6F4PWJZI.js";
7
7
 
@@ -4,7 +4,8 @@
4
4
 
5
5
 
6
6
 
7
- var _chunk5RDO6MHScjs = require('./chunk-5RDO6MHS.cjs');
7
+
8
+ var _chunk6IWOTYMJcjs = require('./chunk-6IWOTYMJ.cjs');
8
9
 
9
10
 
10
11
  var _chunkOBGZSXTJcjs = require('./chunk-OBGZSXTJ.cjs');
@@ -219,7 +220,7 @@ function getStyleDir(compName) {
219
220
  }
220
221
  }
221
222
  if (!styleDir)
222
- styleDir = _chunk5RDO6MHScjs.kebabCase.call(void 0, compName);
223
+ styleDir = _chunk6IWOTYMJcjs.kebabCase.call(void 0, compName);
223
224
  return styleDir;
224
225
  }
225
226
  function getSideEffects(compName, options) {
@@ -397,7 +398,7 @@ function resolveComponent(name, options) {
397
398
  from: "@element-plus/icons-vue"
398
399
  };
399
400
  }
400
- const partialName = _chunk5RDO6MHScjs.kebabCase.call(void 0, name.slice(2));
401
+ const partialName = _chunk6IWOTYMJcjs.kebabCase.call(void 0, name.slice(2));
401
402
  const { version, ssr, nightly } = options;
402
403
  if (compare(version, "1.1.0-beta.1", ">=") || nightly) {
403
404
  return {
@@ -445,7 +446,7 @@ function ElementPlusResolver(options = {}) {
445
446
  return optionsResolved;
446
447
  optionsResolved = {
447
448
  ssr: false,
448
- version: await _chunk5RDO6MHScjs.getPkgVersion.call(void 0, "element-plus", "2.2.2"),
449
+ version: await _chunk6IWOTYMJcjs.getPkgVersion.call(void 0, "element-plus", "2.2.2"),
449
450
  importStyle: "css",
450
451
  directives: true,
451
452
  exclude: void 0,
@@ -499,7 +500,7 @@ function ElementUiResolver(options = {}) {
499
500
  return;
500
501
  if (/^El[A-Z]/.test(name)) {
501
502
  const compName = name.slice(2);
502
- const partialName = _chunk5RDO6MHScjs.kebabCase.call(void 0, compName);
503
+ const partialName = _chunk6IWOTYMJcjs.kebabCase.call(void 0, compName);
503
504
  if (partialName === "collapse-transition") {
504
505
  return {
505
506
  from: `element-ui/lib/transitions/${partialName}`
@@ -614,11 +615,11 @@ function IduxResolver(options = {}) {
614
615
  const packageName = getPackageName(name);
615
616
  if (!packageName)
616
617
  return;
617
- const resolvedVersion = await _chunk5RDO6MHScjs.getPkgVersion.call(void 0, `${scope}/${packageName}`, "2.0.0");
618
+ const resolvedVersion = await _chunk6IWOTYMJcjs.getPkgVersion.call(void 0, `${scope}/${packageName}`, "2.0.0");
618
619
  let dirname = specialComponents[name];
619
620
  if (!dirname) {
620
621
  const nameIndex = packageName === "pro" ? 2 : 1;
621
- dirname = _chunk5RDO6MHScjs.kebabCase.call(void 0, name).split("-")[nameIndex];
622
+ dirname = _chunk6IWOTYMJcjs.kebabCase.call(void 0, name).split("-")[nameIndex];
622
623
  }
623
624
  const path = `${scope}/${packageName}/${dirname}`;
624
625
  const sideEffects = packageName === "cdk" ? void 0 : getSideEffects4(resolvedVersion, path, importStyle, importStyleTheme);
@@ -823,10 +824,10 @@ function PrimeVueResolver(options = {}) {
823
824
  }
824
825
 
825
826
  // src/core/resolvers/vant.ts
826
- var moduleType = _chunk5RDO6MHScjs.isSSR ? "lib" : "es";
827
+ var moduleType = _chunk6IWOTYMJcjs.isSSR ? "lib" : "es";
827
828
  function getSideEffects5(dirName, options) {
828
829
  const { importStyle = true } = options;
829
- if (!importStyle || _chunk5RDO6MHScjs.isSSR)
830
+ if (!importStyle || _chunk6IWOTYMJcjs.isSSR)
830
831
  return;
831
832
  if (importStyle === "less")
832
833
  return `vant/${moduleType}/${dirName}/style/less`;
@@ -843,7 +844,7 @@ function VantResolver(options = {}) {
843
844
  return {
844
845
  name: partialName,
845
846
  from: `vant/${moduleType}`,
846
- sideEffects: getSideEffects5(_chunk5RDO6MHScjs.kebabCase.call(void 0, partialName), options)
847
+ sideEffects: getSideEffects5(_chunk6IWOTYMJcjs.kebabCase.call(void 0, partialName), options)
847
848
  };
848
849
  }
849
850
  }
@@ -866,9 +867,9 @@ function getResolved(name, options) {
866
867
  const sideEffects = [];
867
868
  if (importStyle || importCss) {
868
869
  if (importStyle === "less" || importLess)
869
- sideEffects.push(`${path}/es/${_chunk5RDO6MHScjs.kebabCase.call(void 0, name)}/style/less`);
870
+ sideEffects.push(`${path}/es/${_chunk6IWOTYMJcjs.kebabCase.call(void 0, name)}/style/less`);
870
871
  else
871
- sideEffects.push(`${path}/es/${_chunk5RDO6MHScjs.kebabCase.call(void 0, name)}/style/index${styleExtname}`);
872
+ sideEffects.push(`${path}/es/${_chunk6IWOTYMJcjs.kebabCase.call(void 0, name)}/style/index${styleExtname}`);
872
873
  }
873
874
  return {
874
875
  from: path,
@@ -931,9 +932,9 @@ function VeuiResolver(options = {}) {
931
932
  };
932
933
  }
933
934
  var formatters = {
934
- "kebab-case": _chunk5RDO6MHScjs.kebabCase,
935
- "camelCase": _chunk5RDO6MHScjs.camelCase,
936
- "PascalCase": _chunk5RDO6MHScjs.pascalCase
935
+ "kebab-case": _chunk6IWOTYMJcjs.kebabCase,
936
+ "camelCase": _chunk6IWOTYMJcjs.camelCase,
937
+ "PascalCase": _chunk6IWOTYMJcjs.pascalCase
937
938
  };
938
939
  var peerPaths = /* @__PURE__ */ new Map();
939
940
  function assertPeerPath(peerPath) {
@@ -993,12 +994,12 @@ function getCompDir(compName) {
993
994
  for (let i = 0; i < total; i++) {
994
995
  const matcher = matchComponents2[i];
995
996
  if (compName.match(matcher.pattern)) {
996
- compPath = `${matcher.compDir}/${_chunk5RDO6MHScjs.kebabCase.call(void 0, compName)}.vue`;
997
+ compPath = `${matcher.compDir}/${_chunk6IWOTYMJcjs.kebabCase.call(void 0, compName)}.vue`;
997
998
  break;
998
999
  }
999
1000
  }
1000
1001
  if (!compPath)
1001
- compPath = _chunk5RDO6MHScjs.kebabCase.call(void 0, compName);
1002
+ compPath = _chunk6IWOTYMJcjs.kebabCase.call(void 0, compName);
1002
1003
  return compPath;
1003
1004
  }
1004
1005
  function ViewUiResolver() {
@@ -1149,7 +1150,7 @@ function getSideEffects8(name, filename) {
1149
1150
  function componentsResolver(name, { ssr }) {
1150
1151
  if (!name.match(/^D[A-Z]/))
1151
1152
  return;
1152
- const resolveId = _chunk5RDO6MHScjs.kebabCase.call(void 0, name = name.slice(1));
1153
+ const resolveId = _chunk6IWOTYMJcjs.kebabCase.call(void 0, name = name.slice(1));
1153
1154
  return {
1154
1155
  name,
1155
1156
  sideEffects: getSideEffects8(resolveId, "style.css"),
@@ -1157,7 +1158,7 @@ function componentsResolver(name, { ssr }) {
1157
1158
  };
1158
1159
  }
1159
1160
  function directivesResolver(name, { ssr }) {
1160
- const resolveId = _chunk5RDO6MHScjs.kebabCase.call(void 0, name);
1161
+ const resolveId = _chunk6IWOTYMJcjs.kebabCase.call(void 0, name);
1161
1162
  return {
1162
1163
  name: `${name}Directive`,
1163
1164
  sideEffects: getSideEffects8(resolveId, "style.css"),
@@ -1183,25 +1184,6 @@ function DevUiResolver(options = {}) {
1183
1184
 
1184
1185
  // src/core/resolvers/arco.ts
1185
1186
  var _debug = require('debug'); var _debug2 = _interopRequireDefault(_debug);
1186
-
1187
- // src/core/resolvers/_utils.ts
1188
- function isExclude(name, exclude) {
1189
- if (!exclude)
1190
- return false;
1191
- if (typeof exclude === "string")
1192
- return name === exclude;
1193
- if (exclude instanceof RegExp)
1194
- return !!name.match(exclude);
1195
- if (Array.isArray(exclude)) {
1196
- for (const item of exclude) {
1197
- if (name === item || name.match(item))
1198
- return true;
1199
- }
1200
- }
1201
- return false;
1202
- }
1203
-
1204
- // src/core/resolvers/arco.ts
1205
1187
  var debug = _debug2.default.call(void 0, "unplugin-vue-components:resolvers:arco");
1206
1188
  var matchComponents3 = [
1207
1189
  {
@@ -1324,7 +1306,7 @@ var matchComponents3 = [
1324
1306
  function getComponentStyleDir(importName, importStyle) {
1325
1307
  if (["ConfigProvider", "Icon"].includes(importName))
1326
1308
  return void 0;
1327
- let componentDir = _chunk5RDO6MHScjs.kebabCase.call(void 0, importName);
1309
+ let componentDir = _chunk6IWOTYMJcjs.kebabCase.call(void 0, importName);
1328
1310
  for (const item of matchComponents3) {
1329
1311
  if (item.pattern.test(importName)) {
1330
1312
  componentDir = item.componentDir;
@@ -1360,7 +1342,7 @@ function ArcoResolver(options = {}) {
1360
1342
  type: "component",
1361
1343
  resolve: (name) => {
1362
1344
  if (canResolveIcons(options.resolveIcons)) {
1363
- const iconPrefix = _chunk5RDO6MHScjs.pascalCase.call(void 0, getResolveIconPrefix(options.resolveIcons));
1345
+ const iconPrefix = _chunk6IWOTYMJcjs.pascalCase.call(void 0, getResolveIconPrefix(options.resolveIcons));
1364
1346
  const newNameRegexp = new RegExp(`^${iconPrefix}Icon`);
1365
1347
  if (newNameRegexp.test(name)) {
1366
1348
  debug("found icon component name %s", name);
@@ -1373,7 +1355,7 @@ function ArcoResolver(options = {}) {
1373
1355
  };
1374
1356
  }
1375
1357
  }
1376
- if (name.match(/^A[A-Z]/) && !isExclude(name, options.exclude)) {
1358
+ if (name.match(/^A[A-Z]/) && !_chunk6IWOTYMJcjs.isExclude.call(void 0, name, options.exclude)) {
1377
1359
  const importStyle = _nullishCoalesce(options.importStyle, () => ( "css"));
1378
1360
  const importName = name.slice(1);
1379
1361
  const config = {
@@ -1396,7 +1378,7 @@ function TDesignResolver(options = {}) {
1396
1378
  resolve: (name) => {
1397
1379
  const { library = "vue", exclude } = options;
1398
1380
  const importFrom = options.esm ? "/esm" : "";
1399
- if (options.exclude && isExclude2(name, exclude))
1381
+ if (_chunk6IWOTYMJcjs.isExclude.call(void 0, name, exclude))
1400
1382
  return;
1401
1383
  if (options.resolveIcons && name.match(/[a-z]Icon$/)) {
1402
1384
  return {
@@ -1414,19 +1396,6 @@ function TDesignResolver(options = {}) {
1414
1396
  }
1415
1397
  };
1416
1398
  }
1417
- function isExclude2(name, exclude) {
1418
- if (typeof exclude === "string")
1419
- return name === exclude;
1420
- if (exclude instanceof RegExp)
1421
- return !!name.match(exclude);
1422
- if (Array.isArray(exclude)) {
1423
- for (const item of exclude) {
1424
- if (name === item || name.match(item))
1425
- return true;
1426
- }
1427
- }
1428
- return false;
1429
- }
1430
1399
 
1431
1400
  // src/core/resolvers/layui-vue.ts
1432
1401
  var matchComponents4 = [
@@ -1529,7 +1498,7 @@ function getSideEffects9(importName, options) {
1529
1498
  }
1530
1499
  function resolveComponent2(importName, options) {
1531
1500
  let name;
1532
- if (options.exclude && isExclude3(importName, options.exclude))
1501
+ if (_chunk6IWOTYMJcjs.isExclude.call(void 0, importName, options.exclude))
1533
1502
  return void 0;
1534
1503
  if (options.resolveIcons && importName.match(iconsRE)) {
1535
1504
  name = importName;
@@ -1543,13 +1512,6 @@ function resolveComponent2(importName, options) {
1543
1512
  }
1544
1513
  return name ? { name, from: libName, sideEffects: getSideEffects9(name, options) } : void 0;
1545
1514
  }
1546
- function isExclude3(name, exclude) {
1547
- for (const item of exclude) {
1548
- if (name === item || name.match(item))
1549
- return true;
1550
- }
1551
- return false;
1552
- }
1553
1515
  function LayuiVueResolver(options = {}) {
1554
1516
  return {
1555
1517
  type: "component",
@@ -1705,6 +1667,7 @@ var IonicBuiltInComponents = [
1705
1667
  "IonInfiniteScroll",
1706
1668
  "IonInfiniteScrollContent",
1707
1669
  "IonInput",
1670
+ "IonInputPasswordToggle",
1708
1671
  "IonItem",
1709
1672
  "IonItemDivider",
1710
1673
  "IonItemGroup",
@@ -1724,6 +1687,9 @@ var IonicBuiltInComponents = [
1724
1687
  "IonNote",
1725
1688
  "IonPage",
1726
1689
  "IonPicker",
1690
+ "IonPickerColumn",
1691
+ "IonPickerColumnOption",
1692
+ "IonPickerLegacy",
1727
1693
  "IonPopover",
1728
1694
  "IonProgressBar",
1729
1695
  "IonRadio",
@@ -1,5 +1,5 @@
1
1
  import { ComponentResolver, ComponentResolveResult } from './types.cjs';
2
- import '@rollup/pluginutils';
2
+ import { FilterPattern } from '@rollup/pluginutils';
3
3
  import 'unplugin';
4
4
  import '@antfu/utils';
5
5
 
@@ -476,7 +476,7 @@ interface TDesignResolverOptions {
476
476
  * exclude component name, if match do not resolve the name
477
477
  *
478
478
  */
479
- exclude?: string | RegExp | (string | RegExp)[];
479
+ exclude?: FilterPattern;
480
480
  }
481
481
  declare function TDesignResolver(options?: TDesignResolverOptions): ComponentResolver;
482
482
 
@@ -498,7 +498,7 @@ interface LayuiVueResolverOptions {
498
498
  * exclude components that do not require automatic import
499
499
  *
500
500
  */
501
- exclude?: Array<string | RegExp>;
501
+ exclude?: FilterPattern;
502
502
  }
503
503
  /**
504
504
  * Resolver for layui-vue
@@ -1,5 +1,5 @@
1
1
  import { ComponentResolver, ComponentResolveResult } from './types.js';
2
- import '@rollup/pluginutils';
2
+ import { FilterPattern } from '@rollup/pluginutils';
3
3
  import 'unplugin';
4
4
  import '@antfu/utils';
5
5
 
@@ -476,7 +476,7 @@ interface TDesignResolverOptions {
476
476
  * exclude component name, if match do not resolve the name
477
477
  *
478
478
  */
479
- exclude?: string | RegExp | (string | RegExp)[];
479
+ exclude?: FilterPattern;
480
480
  }
481
481
  declare function TDesignResolver(options?: TDesignResolverOptions): ComponentResolver;
482
482
 
@@ -498,7 +498,7 @@ interface LayuiVueResolverOptions {
498
498
  * exclude components that do not require automatic import
499
499
  *
500
500
  */
501
- exclude?: Array<string | RegExp>;
501
+ exclude?: FilterPattern;
502
502
  }
503
503
  /**
504
504
  * Resolver for layui-vue
package/dist/resolvers.js CHANGED
@@ -1,10 +1,11 @@
1
1
  import {
2
2
  camelCase,
3
3
  getPkgVersion,
4
+ isExclude,
4
5
  isSSR,
5
6
  kebabCase,
6
7
  pascalCase
7
- } from "./chunk-4KHLF5I7.js";
8
+ } from "./chunk-4R6MYHM7.js";
8
9
  import {
9
10
  __require
10
11
  } from "./chunk-3RG5ZIWI.js";
@@ -903,7 +904,7 @@ function VarletUIResolver(options = {}) {
903
904
  }
904
905
 
905
906
  // src/core/resolvers/veui.ts
906
- import { join, normalize } from "path";
907
+ import { join, normalize } from "node:path";
907
908
  import { resolvePathSync } from "mlly";
908
909
  var VEUI_PACKAGE_NAME = "veui";
909
910
  var components3;
@@ -1037,8 +1038,8 @@ function Vuetify3Resolver() {
1037
1038
  }
1038
1039
 
1039
1040
  // src/core/resolvers/vueuse.ts
1040
- import { readFileSync } from "fs";
1041
- import process from "process";
1041
+ import { readFileSync } from "node:fs";
1042
+ import process from "node:process";
1042
1043
  import { resolveModule as resolveModule2 } from "local-pkg";
1043
1044
  var components4;
1044
1045
  function VueUseComponentsResolver() {
@@ -1064,8 +1065,8 @@ function VueUseComponentsResolver() {
1064
1065
  }
1065
1066
 
1066
1067
  // src/core/resolvers/vueuse-directive.ts
1067
- import { readFileSync as readFileSync2 } from "fs";
1068
- import process2 from "process";
1068
+ import { readFileSync as readFileSync2 } from "node:fs";
1069
+ import process2 from "node:process";
1069
1070
  import { resolveModule as resolveModule3 } from "local-pkg";
1070
1071
  var directives;
1071
1072
  function VueUseDirectiveResolver() {
@@ -1091,7 +1092,7 @@ function VueUseDirectiveResolver() {
1091
1092
  }
1092
1093
 
1093
1094
  // src/core/resolvers/quasar.ts
1094
- import { promises as fs } from "fs";
1095
+ import { promises as fs } from "node:fs";
1095
1096
  import { resolveModule as resolveModule4 } from "local-pkg";
1096
1097
  function QuasarResolver() {
1097
1098
  let components5 = [];
@@ -1183,25 +1184,6 @@ function DevUiResolver(options = {}) {
1183
1184
 
1184
1185
  // src/core/resolvers/arco.ts
1185
1186
  import Debug from "debug";
1186
-
1187
- // src/core/resolvers/_utils.ts
1188
- function isExclude(name, exclude) {
1189
- if (!exclude)
1190
- return false;
1191
- if (typeof exclude === "string")
1192
- return name === exclude;
1193
- if (exclude instanceof RegExp)
1194
- return !!name.match(exclude);
1195
- if (Array.isArray(exclude)) {
1196
- for (const item of exclude) {
1197
- if (name === item || name.match(item))
1198
- return true;
1199
- }
1200
- }
1201
- return false;
1202
- }
1203
-
1204
- // src/core/resolvers/arco.ts
1205
1187
  var debug = Debug("unplugin-vue-components:resolvers:arco");
1206
1188
  var matchComponents3 = [
1207
1189
  {
@@ -1396,7 +1378,7 @@ function TDesignResolver(options = {}) {
1396
1378
  resolve: (name) => {
1397
1379
  const { library = "vue", exclude } = options;
1398
1380
  const importFrom = options.esm ? "/esm" : "";
1399
- if (options.exclude && isExclude2(name, exclude))
1381
+ if (isExclude(name, exclude))
1400
1382
  return;
1401
1383
  if (options.resolveIcons && name.match(/[a-z]Icon$/)) {
1402
1384
  return {
@@ -1414,19 +1396,6 @@ function TDesignResolver(options = {}) {
1414
1396
  }
1415
1397
  };
1416
1398
  }
1417
- function isExclude2(name, exclude) {
1418
- if (typeof exclude === "string")
1419
- return name === exclude;
1420
- if (exclude instanceof RegExp)
1421
- return !!name.match(exclude);
1422
- if (Array.isArray(exclude)) {
1423
- for (const item of exclude) {
1424
- if (name === item || name.match(item))
1425
- return true;
1426
- }
1427
- }
1428
- return false;
1429
- }
1430
1399
 
1431
1400
  // src/core/resolvers/layui-vue.ts
1432
1401
  var matchComponents4 = [
@@ -1529,7 +1498,7 @@ function getSideEffects9(importName, options) {
1529
1498
  }
1530
1499
  function resolveComponent2(importName, options) {
1531
1500
  let name;
1532
- if (options.exclude && isExclude3(importName, options.exclude))
1501
+ if (isExclude(importName, options.exclude))
1533
1502
  return void 0;
1534
1503
  if (options.resolveIcons && importName.match(iconsRE)) {
1535
1504
  name = importName;
@@ -1543,13 +1512,6 @@ function resolveComponent2(importName, options) {
1543
1512
  }
1544
1513
  return name ? { name, from: libName, sideEffects: getSideEffects9(name, options) } : void 0;
1545
1514
  }
1546
- function isExclude3(name, exclude) {
1547
- for (const item of exclude) {
1548
- if (name === item || name.match(item))
1549
- return true;
1550
- }
1551
- return false;
1552
- }
1553
1515
  function LayuiVueResolver(options = {}) {
1554
1516
  return {
1555
1517
  type: "component",
@@ -1705,6 +1667,7 @@ var IonicBuiltInComponents = [
1705
1667
  "IonInfiniteScroll",
1706
1668
  "IonInfiniteScrollContent",
1707
1669
  "IonInput",
1670
+ "IonInputPasswordToggle",
1708
1671
  "IonItem",
1709
1672
  "IonItemDivider",
1710
1673
  "IonItemGroup",
@@ -1724,6 +1687,9 @@ var IonicBuiltInComponents = [
1724
1687
  "IonNote",
1725
1688
  "IonPage",
1726
1689
  "IonPicker",
1690
+ "IonPickerColumn",
1691
+ "IonPickerColumnOption",
1692
+ "IonPickerLegacy",
1727
1693
  "IonPopover",
1728
1694
  "IonProgressBar",
1729
1695
  "IonRadio",
package/dist/rollup.cjs CHANGED
@@ -1,12 +1,12 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunkV7E5BH3Ycjs = require('./chunk-V7E5BH3Y.cjs');
4
- require('./chunk-5RDO6MHS.cjs');
3
+ var _chunk23WSNQH3cjs = require('./chunk-23WSNQH3.cjs');
4
+ require('./chunk-6IWOTYMJ.cjs');
5
5
  require('./chunk-OBGZSXTJ.cjs');
6
6
  require('./chunk-ZBPRDZS4.cjs');
7
7
 
8
8
  // src/rollup.ts
9
- var rollup_default = _chunkV7E5BH3Ycjs.unplugin_default.rollup;
9
+ var rollup_default = _chunk23WSNQH3cjs.unplugin_default.rollup;
10
10
 
11
11
 
12
12
  exports.default = rollup_default;
package/dist/rollup.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  unplugin_default
3
- } from "./chunk-YOHL3P33.js";
4
- import "./chunk-4KHLF5I7.js";
3
+ } from "./chunk-Q6EJTKZN.js";
4
+ import "./chunk-4R6MYHM7.js";
5
5
  import "./chunk-3RG5ZIWI.js";
6
6
  import "./chunk-6F4PWJZI.js";
7
7
 
package/dist/rspack.cjs CHANGED
@@ -1,12 +1,12 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunkV7E5BH3Ycjs = require('./chunk-V7E5BH3Y.cjs');
4
- require('./chunk-5RDO6MHS.cjs');
3
+ var _chunk23WSNQH3cjs = require('./chunk-23WSNQH3.cjs');
4
+ require('./chunk-6IWOTYMJ.cjs');
5
5
  require('./chunk-OBGZSXTJ.cjs');
6
6
  require('./chunk-ZBPRDZS4.cjs');
7
7
 
8
8
  // src/rspack.ts
9
- var rspack_default = _chunkV7E5BH3Ycjs.unplugin_default.rspack;
9
+ var rspack_default = _chunk23WSNQH3cjs.unplugin_default.rspack;
10
10
 
11
11
 
12
12
  exports.default = rspack_default;
package/dist/rspack.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  unplugin_default
3
- } from "./chunk-YOHL3P33.js";
4
- import "./chunk-4KHLF5I7.js";
3
+ } from "./chunk-Q6EJTKZN.js";
4
+ import "./chunk-4R6MYHM7.js";
5
5
  import "./chunk-3RG5ZIWI.js";
6
6
  import "./chunk-6F4PWJZI.js";
7
7
 
package/dist/types.d.cts CHANGED
@@ -58,6 +58,10 @@ interface Options {
58
58
  * RegExp or glob to match files to NOT be transformed
59
59
  */
60
60
  exclude?: FilterPattern;
61
+ /**
62
+ * RegExp or string to match component names that will NOT be imported
63
+ */
64
+ excludeNames?: FilterPattern;
61
65
  /**
62
66
  * Relative paths to the directory to search for components.
63
67
  * @default 'src/components'
@@ -71,7 +75,7 @@ interface Options {
71
75
  /**
72
76
  * Glob patterns to match file names to be detected as components.
73
77
  *
74
- * When specified, the `dirs` and `extensions` options will be ignored.
78
+ * When specified, the `dirs`, `extensions`, and `directoryAsNamespace` options will be ignored.
75
79
  */
76
80
  globs?: string | string[];
77
81
  /**
package/dist/types.d.ts CHANGED
@@ -58,6 +58,10 @@ interface Options {
58
58
  * RegExp or glob to match files to NOT be transformed
59
59
  */
60
60
  exclude?: FilterPattern;
61
+ /**
62
+ * RegExp or string to match component names that will NOT be imported
63
+ */
64
+ excludeNames?: FilterPattern;
61
65
  /**
62
66
  * Relative paths to the directory to search for components.
63
67
  * @default 'src/components'
@@ -71,7 +75,7 @@ interface Options {
71
75
  /**
72
76
  * Glob patterns to match file names to be detected as components.
73
77
  *
74
- * When specified, the `dirs` and `extensions` options will be ignored.
78
+ * When specified, the `dirs`, `extensions`, and `directoryAsNamespace` options will be ignored.
75
79
  */
76
80
  globs?: string | string[];
77
81
  /**
package/dist/vite.cjs CHANGED
@@ -1,12 +1,12 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunkV7E5BH3Ycjs = require('./chunk-V7E5BH3Y.cjs');
4
- require('./chunk-5RDO6MHS.cjs');
3
+ var _chunk23WSNQH3cjs = require('./chunk-23WSNQH3.cjs');
4
+ require('./chunk-6IWOTYMJ.cjs');
5
5
  require('./chunk-OBGZSXTJ.cjs');
6
6
  require('./chunk-ZBPRDZS4.cjs');
7
7
 
8
8
  // src/vite.ts
9
- var vite_default = _chunkV7E5BH3Ycjs.unplugin_default.vite;
9
+ var vite_default = _chunk23WSNQH3cjs.unplugin_default.vite;
10
10
 
11
11
 
12
12
  exports.default = vite_default;
package/dist/vite.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  unplugin_default
3
- } from "./chunk-YOHL3P33.js";
4
- import "./chunk-4KHLF5I7.js";
3
+ } from "./chunk-Q6EJTKZN.js";
4
+ import "./chunk-4R6MYHM7.js";
5
5
  import "./chunk-3RG5ZIWI.js";
6
6
  import "./chunk-6F4PWJZI.js";
7
7
 
package/dist/webpack.cjs CHANGED
@@ -1,12 +1,12 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunkV7E5BH3Ycjs = require('./chunk-V7E5BH3Y.cjs');
4
- require('./chunk-5RDO6MHS.cjs');
3
+ var _chunk23WSNQH3cjs = require('./chunk-23WSNQH3.cjs');
4
+ require('./chunk-6IWOTYMJ.cjs');
5
5
  require('./chunk-OBGZSXTJ.cjs');
6
6
  require('./chunk-ZBPRDZS4.cjs');
7
7
 
8
8
  // src/webpack.ts
9
- var webpack_default = _chunkV7E5BH3Ycjs.unplugin_default.webpack;
9
+ var webpack_default = _chunk23WSNQH3cjs.unplugin_default.webpack;
10
10
 
11
11
 
12
12
  exports.default = webpack_default;
package/dist/webpack.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  unplugin_default
3
- } from "./chunk-YOHL3P33.js";
4
- import "./chunk-4KHLF5I7.js";
3
+ } from "./chunk-Q6EJTKZN.js";
4
+ import "./chunk-4R6MYHM7.js";
5
5
  import "./chunk-3RG5ZIWI.js";
6
6
  import "./chunk-6F4PWJZI.js";
7
7
 
package/package.json CHANGED
@@ -1,8 +1,7 @@
1
1
  {
2
2
  "name": "unplugin-vue-components",
3
3
  "type": "module",
4
- "version": "0.27.3",
5
- "packageManager": "pnpm@9.5.0",
4
+ "version": "0.27.5",
6
5
  "description": "Components auto importing for Vue",
7
6
  "author": "antfu <anthonyfu117@hotmail.com>",
8
7
  "license": "MIT",
@@ -68,17 +67,6 @@
68
67
  "engines": {
69
68
  "node": ">=14"
70
69
  },
71
- "scripts": {
72
- "build": "tsup",
73
- "dev": "tsup --watch src",
74
- "example:build": "npm -C examples/vite-vue3 run build",
75
- "example:dev": "npm -C examples/vite-vue3 run dev",
76
- "prepublishOnly": "npm run build",
77
- "lint": "eslint .",
78
- "release": "bumpp && npm publish",
79
- "test": "vitest",
80
- "test:update": "vitest --u"
81
- },
82
70
  "peerDependencies": {
83
71
  "@babel/parser": "^7.15.8",
84
72
  "@nuxt/kit": "^3.2.2",
@@ -94,37 +82,47 @@
94
82
  },
95
83
  "dependencies": {
96
84
  "@antfu/utils": "^0.7.10",
97
- "@rollup/pluginutils": "^5.1.0",
85
+ "@rollup/pluginutils": "^5.1.3",
98
86
  "chokidar": "^3.6.0",
99
- "debug": "^4.3.5",
87
+ "debug": "^4.3.7",
100
88
  "fast-glob": "^3.3.2",
101
- "local-pkg": "^0.5.0",
102
- "magic-string": "^0.30.10",
89
+ "local-pkg": "^0.5.1",
90
+ "magic-string": "^0.30.14",
103
91
  "minimatch": "^9.0.5",
104
- "mlly": "^1.7.1",
105
- "unplugin": "^1.11.0"
92
+ "mlly": "^1.7.3",
93
+ "unplugin": "^1.16.0"
106
94
  },
107
95
  "devDependencies": {
108
- "@antfu/eslint-config": "^2.22.4",
109
- "@babel/parser": "^7.24.8",
110
- "@babel/types": "^7.24.9",
111
- "@nuxt/kit": "^3.12.3",
96
+ "@antfu/eslint-config": "^3.10.0",
97
+ "@babel/parser": "^7.26.2",
98
+ "@babel/types": "^7.26.0",
99
+ "@nuxt/kit": "^3.14.1592",
112
100
  "@types/debug": "^4.1.12",
113
101
  "@types/minimatch": "^5.1.2",
114
- "@types/node": "^20.14.10",
115
- "bumpp": "^9.4.1",
102
+ "@types/node": "^22.10.0",
103
+ "bumpp": "^9.8.1",
116
104
  "compare-versions": "^6.1.1",
117
- "element-plus": "^2.7.7",
118
- "eslint": "^9.7.0",
105
+ "element-plus": "^2.8.8",
106
+ "eslint": "^9.15.0",
119
107
  "eslint-plugin-format": "^0.1.2",
120
- "esno": "^4.7.0",
108
+ "esno": "^4.8.0",
121
109
  "estree-walker": "^3.0.3",
122
110
  "pathe": "^1.1.2",
123
- "rollup": "^4.18.1",
124
- "tsup": "^8.1.0",
125
- "typescript": "^5.5.3",
126
- "vite": "^5.3.4",
127
- "vitest": "^2.0.3",
111
+ "rollup": "^4.27.4",
112
+ "tsup": "^8.3.5",
113
+ "typescript": "^5.7.2",
114
+ "vite": "^6.0.1",
115
+ "vitest": "^2.1.6",
128
116
  "vue": "3.2.45"
117
+ },
118
+ "scripts": {
119
+ "build": "tsup",
120
+ "dev": "tsup --watch src",
121
+ "example:build": "npm -C examples/vite-vue3 run build",
122
+ "example:dev": "npm -C examples/vite-vue3 run dev",
123
+ "lint": "eslint .",
124
+ "release": "bumpp && npm publish",
125
+ "test": "vitest",
126
+ "test:update": "vitest --u"
129
127
  }
130
- }
128
+ }