unplugin-vue-components 0.23.0 → 0.24.1

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
@@ -242,7 +242,7 @@ Components({
242
242
  })
243
243
  ```
244
244
 
245
- If you successfully configured other UI libraries, please feel free to contribute and help others using them out-of-box. Thanks!
245
+ > [We no longer accept new resolvers](./src/core/resolvers/_READ_BEFORE_CONTRIBUTE.md).
246
246
 
247
247
  ## Types for global registered components
248
248
 
@@ -326,8 +326,14 @@ Components({
326
326
 
327
327
  // valid file extensions for components.
328
328
  extensions: ['vue'],
329
+
330
+ // Glob patterns to match file names to be detected as components.
331
+ // When specified, the `dirs` and `extensions` options will be ignored.
332
+ globs: ['src/components/*.{vue}'],
333
+
329
334
  // search for subdirectories
330
335
  deep: true,
336
+
331
337
  // resolvers for custom components
332
338
  resolvers: [],
333
339
 
@@ -343,6 +349,7 @@ Components({
343
349
  // to prevent duplication inside namespaced component name.
344
350
  // works when `directoryAsNamespace: true`
345
351
  collapseSamePrefixes: false,
352
+
346
353
  // Subdirectory paths for ignoring namespace prefixes.
347
354
  // works when `directoryAsNamespace: true`
348
355
  globalNamespaces: [],
@@ -365,7 +372,10 @@ Components({
365
372
 
366
373
  // Vue version of project. It will detect automatically if not specified.
367
374
  // Acceptable value: 2 | 2.7 | 3
368
- version: 2.7
375
+ version: 2.7,
376
+
377
+ // Only provide types of components in library (registered globally)
378
+ types: []
369
379
  })
370
380
  ```
371
381
 
@@ -218,8 +218,10 @@ declare module 'vue' {` : `import '@vue/runtime-core'
218
218
  export {}
219
219
 
220
220
  declare module '@vue/runtime-core' {`;
221
- let code = `// generated by unplugin-vue-components
222
- // We suggest you to commit this file into source control
221
+ let code = `/* eslint-disable */
222
+ /* prettier-ignore */
223
+ // @ts-nocheck
224
+ // Generated by unplugin-vue-components
223
225
  // Read more: https://github.com/vuejs/core/pull/3399
224
226
  ${head}`;
225
227
  if (Object.keys(declarations.component).length > 0) {
@@ -331,7 +333,7 @@ async function resolveVue22(code, s) {
331
333
  sourceType: "module"
332
334
  });
333
335
  const nodes = [];
334
- const { walk } = await import("./src-MR6G3N7Z.mjs");
336
+ const { walk } = await import("./src-EJAVKJEF.mjs");
335
337
  walk(program, {
336
338
  enter(node) {
337
339
  if (node.type === "CallExpression")
@@ -499,6 +501,9 @@ var Context = class {
499
501
  this.onUpdate(path);
500
502
  });
501
503
  }
504
+ /**
505
+ * start watcher for webpack
506
+ */
502
507
  setupWatcherWebpack(watcher, emitUpdate) {
503
508
  const { globs } = this.options;
504
509
  watcher.on("unlink", (path) => {
@@ -516,6 +521,11 @@ var Context = class {
516
521
  emitUpdate(path, "add");
517
522
  });
518
523
  }
524
+ /**
525
+ * Record the usage of components
526
+ * @param path
527
+ * @param paths paths of used components
528
+ */
519
529
  updateUsageMap(path, paths) {
520
530
  if (!this._componentUsageMap[path])
521
531
  this._componentUsageMap[path] = /* @__PURE__ */ new Set();
@@ -559,7 +569,7 @@ var Context = class {
559
569
  type: "update",
560
570
  updates: []
561
571
  };
562
- const timestamp = +new Date();
572
+ const timestamp = +/* @__PURE__ */ new Date();
563
573
  const name = pascalCase(getNameFromFilePath(path, this.options));
564
574
  Object.entries(this._componentUsageMap).forEach(([key, values]) => {
565
575
  if (values.has(name)) {
@@ -626,6 +636,11 @@ var Context = class {
626
636
  return slash3(path.slice(1));
627
637
  return slash3(relative2(this.root, path));
628
638
  }
639
+ /**
640
+ * This search for components in with the given options.
641
+ * Will be called multiple times to ensure file loaded,
642
+ * should normally run only once.
643
+ */
629
644
  searchGlob() {
630
645
  if (this._searched)
631
646
  return;
@@ -218,8 +218,10 @@ declare module 'vue' {` : `import '@vue/runtime-core'
218
218
  export {}
219
219
 
220
220
  declare module '@vue/runtime-core' {`;
221
- let code = `// generated by unplugin-vue-components
222
- // We suggest you to commit this file into source control
221
+ let code = `/* eslint-disable */
222
+ /* prettier-ignore */
223
+ // @ts-nocheck
224
+ // Generated by unplugin-vue-components
223
225
  // Read more: https://github.com/vuejs/core/pull/3399
224
226
  ${head}`;
225
227
  if (Object.keys(declarations.component).length > 0) {
@@ -331,7 +333,7 @@ async function resolveVue22(code, s) {
331
333
  sourceType: "module"
332
334
  });
333
335
  const nodes = [];
334
- const { walk } = await Promise.resolve().then(() => require("./src-M3D46NFP.js"));
336
+ const { walk } = await Promise.resolve().then(() => require("./src-FZTNZZMC.js"));
335
337
  walk(program, {
336
338
  enter(node) {
337
339
  if (node.type === "CallExpression")
@@ -499,6 +501,9 @@ var Context = class {
499
501
  this.onUpdate(path);
500
502
  });
501
503
  }
504
+ /**
505
+ * start watcher for webpack
506
+ */
502
507
  setupWatcherWebpack(watcher, emitUpdate) {
503
508
  const { globs } = this.options;
504
509
  watcher.on("unlink", (path) => {
@@ -516,6 +521,11 @@ var Context = class {
516
521
  emitUpdate(path, "add");
517
522
  });
518
523
  }
524
+ /**
525
+ * Record the usage of components
526
+ * @param path
527
+ * @param paths paths of used components
528
+ */
519
529
  updateUsageMap(path, paths) {
520
530
  if (!this._componentUsageMap[path])
521
531
  this._componentUsageMap[path] = /* @__PURE__ */ new Set();
@@ -559,7 +569,7 @@ var Context = class {
559
569
  type: "update",
560
570
  updates: []
561
571
  };
562
- const timestamp = +new Date();
572
+ const timestamp = +/* @__PURE__ */ new Date();
563
573
  const name = _chunkHCIFGIWSjs.pascalCase.call(void 0, _chunkHCIFGIWSjs.getNameFromFilePath.call(void 0, path, this.options));
564
574
  Object.entries(this._componentUsageMap).forEach(([key, values]) => {
565
575
  if (values.has(name)) {
@@ -626,6 +636,11 @@ var Context = class {
626
636
  return _utils.slash.call(void 0, path.slice(1));
627
637
  return _utils.slash.call(void 0, _path.relative.call(void 0, this.root, path));
628
638
  }
639
+ /**
640
+ * This search for components in with the given options.
641
+ * Will be called multiple times to ensure file loaded,
642
+ * should normally run only once.
643
+ */
629
644
  searchGlob() {
630
645
  if (this._searched)
631
646
  return;
package/dist/esbuild.js CHANGED
@@ -1,12 +1,12 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunkKARXI5H6js = require('./chunk-KARXI5H6.js');
3
+ var _chunkZ3TQFCNGjs = require('./chunk-Z3TQFCNG.js');
4
4
  require('./chunk-HCIFGIWS.js');
5
5
  require('./chunk-BTQOTIPQ.js');
6
6
  require('./chunk-6F4PWJZI.js');
7
7
 
8
8
  // src/esbuild.ts
9
- var esbuild_default = _chunkKARXI5H6js.unplugin_default.esbuild;
9
+ var esbuild_default = _chunkZ3TQFCNGjs.unplugin_default.esbuild;
10
10
 
11
11
 
12
12
  module.exports = esbuild_default;
package/dist/esbuild.mjs CHANGED
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  unplugin_default
3
- } from "./chunk-LKBTW3SO.mjs";
3
+ } from "./chunk-WVTE3GCL.mjs";
4
4
  import "./chunk-BPHJA2FM.mjs";
5
5
  import "./chunk-ZKNUHGJ4.mjs";
6
6
  import "./chunk-WBQAMGXK.mjs";
package/dist/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunkKARXI5H6js = require('./chunk-KARXI5H6.js');
3
+ var _chunkZ3TQFCNGjs = require('./chunk-Z3TQFCNG.js');
4
4
 
5
5
 
6
6
 
@@ -13,4 +13,4 @@ require('./chunk-6F4PWJZI.js');
13
13
 
14
14
 
15
15
 
16
- exports.camelCase = _chunkHCIFGIWSjs.camelCase; exports.default = _chunkKARXI5H6js.unplugin_default; exports.kebabCase = _chunkHCIFGIWSjs.kebabCase; exports.pascalCase = _chunkHCIFGIWSjs.pascalCase;
16
+ exports.camelCase = _chunkHCIFGIWSjs.camelCase; exports.default = _chunkZ3TQFCNGjs.unplugin_default; exports.kebabCase = _chunkHCIFGIWSjs.kebabCase; exports.pascalCase = _chunkHCIFGIWSjs.pascalCase;
package/dist/index.mjs CHANGED
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  unplugin_default
3
- } from "./chunk-LKBTW3SO.mjs";
3
+ } from "./chunk-WVTE3GCL.mjs";
4
4
  import {
5
5
  camelCase,
6
6
  kebabCase,
package/dist/nuxt.js CHANGED
@@ -1,6 +1,6 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunkKARXI5H6js = require('./chunk-KARXI5H6.js');
3
+ var _chunkZ3TQFCNGjs = require('./chunk-Z3TQFCNG.js');
4
4
  require('./chunk-HCIFGIWS.js');
5
5
  require('./chunk-BTQOTIPQ.js');
6
6
  require('./chunk-6F4PWJZI.js');
@@ -9,8 +9,8 @@ require('./chunk-6F4PWJZI.js');
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, _chunkKARXI5H6js.unplugin_default.webpack(options));
13
- _kit.addVitePlugin.call(void 0, _chunkKARXI5H6js.unplugin_default.vite(options));
12
+ _kit.addWebpackPlugin.call(void 0, _chunkZ3TQFCNGjs.unplugin_default.webpack(options));
13
+ _kit.addVitePlugin.call(void 0, _chunkZ3TQFCNGjs.unplugin_default.vite(options));
14
14
  }
15
15
  });
16
16
 
package/dist/nuxt.mjs CHANGED
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  unplugin_default
3
- } from "./chunk-LKBTW3SO.mjs";
3
+ } from "./chunk-WVTE3GCL.mjs";
4
4
  import "./chunk-BPHJA2FM.mjs";
5
5
  import "./chunk-ZKNUHGJ4.mjs";
6
6
  import "./chunk-WBQAMGXK.mjs";
@@ -499,22 +499,20 @@ interface BootstrapVueResolverOptions {
499
499
  *
500
500
  * @link https://github.com/bootstrap-vue/bootstrap-vue
501
501
  */
502
- declare function BootstrapVueResolver(_options?: BootstrapVueResolverOptions): ComponentResolver[];
503
-
504
- interface BootstrapVue3ResolverOptions {
505
- /**
506
- * Auto import for directives.
507
- *
508
- * @default true
509
- */
510
- directives?: boolean;
511
- }
502
+ declare const BootstrapVueResolver: (_options?: BootstrapVueResolverOptions) => ComponentResolver[];
512
503
  /**
513
- * Resolver for BootstrapVue
504
+ * Resolver for BootstrapVueNext
505
+ *
506
+ * @link https://github.com/bootstrap-vue/bootstrap-vue-next
507
+ */
508
+ declare const BootstrapVueNextResolver: (_options?: BootstrapVueResolverOptions) => Array<ComponentResolver>;
509
+ /**
510
+ * Resolver for legacy BootstrapVue3 apps
514
511
  *
515
- * @link https://github.com/cdmoro/bootstrap-vue-3
512
+ * @deprecated use BootstrapVueNextResolver with https://github.com/bootstrap-vue/bootstrap-vue-next
513
+ * @link https://www.npmjs.com/package/bootstrap-vue-3
516
514
  */
517
- declare const BootstrapVue3Resolver: (_options?: BootstrapVue3ResolverOptions) => Array<ComponentResolver>;
515
+ declare const BootstrapVue3Resolver: (_options?: BootstrapVueResolverOptions) => Array<ComponentResolver>;
518
516
 
519
517
  /**
520
518
  * Resolver for ionic framework
@@ -524,4 +522,4 @@ declare const BootstrapVue3Resolver: (_options?: BootstrapVue3ResolverOptions) =
524
522
  */
525
523
  declare function IonicResolver(): ComponentResolver;
526
524
 
527
- export { AllowResolveIconOption, AntDesignVueResolver, AntDesignVueResolverOptions, ArcoResolver, ArcoResolverOptions, BootstrapVue3Resolver, BootstrapVue3ResolverOptions, BootstrapVueResolver, BootstrapVueResolverOptions, DevResolverOptions, DevUiResolver, DisallowResolveIconOption, ElementPlusResolver, ElementPlusResolverOptions, ElementUiResolver, ElementUiResolverOptions, HeadlessUiResolver, HeadlessUiResolverOptions, IduxResolver, IduxResolverOptions, InklineResolver, IonicResolver, LayuiVueResolver, LayuiVueResolverOptions, NaiveUiResolver, PrimeVueResolver, PrimeVueResolverOptions, QuasarResolver, ResolveIconsOption, TDesignResolver, TDesignResolverOptions, VantResolver, VantResolverOptions, VarletUIResolver, VarletUIResolverOptions, VeuiResolver, VeuiResolverOptions, ViewUiResolver, VueUseComponentsResolver, VueUseDirectiveResolver, Vuetify3Resolver, VuetifyResolver, getResolved };
525
+ export { AllowResolveIconOption, AntDesignVueResolver, AntDesignVueResolverOptions, ArcoResolver, ArcoResolverOptions, BootstrapVue3Resolver, BootstrapVueNextResolver, BootstrapVueResolver, BootstrapVueResolverOptions, DevResolverOptions, DevUiResolver, DisallowResolveIconOption, ElementPlusResolver, ElementPlusResolverOptions, ElementUiResolver, ElementUiResolverOptions, HeadlessUiResolver, HeadlessUiResolverOptions, IduxResolver, IduxResolverOptions, InklineResolver, IonicResolver, LayuiVueResolver, LayuiVueResolverOptions, NaiveUiResolver, PrimeVueResolver, PrimeVueResolverOptions, QuasarResolver, ResolveIconsOption, TDesignResolver, TDesignResolverOptions, VantResolver, VantResolverOptions, VarletUIResolver, VarletUIResolverOptions, VeuiResolver, VeuiResolverOptions, ViewUiResolver, VueUseComponentsResolver, VueUseDirectiveResolver, Vuetify3Resolver, VuetifyResolver, getResolved };
package/dist/resolvers.js CHANGED
@@ -316,10 +316,11 @@ function getSideEffects2(dirName, options) {
316
316
  const { importStyle, ssr } = options;
317
317
  const themeFolder = "element-plus/theme-chalk";
318
318
  const esComponentsFolder = "element-plus/es/components";
319
- if (importStyle === "sass")
320
- return ssr ? `${themeFolder}/src/${dirName}.scss` : `${esComponentsFolder}/${dirName}/style/index`;
321
- else if (importStyle === true || importStyle === "css")
322
- return ssr ? `${themeFolder}/el-${dirName}.css` : `${esComponentsFolder}/${dirName}/style/css`;
319
+ if (importStyle === "sass") {
320
+ return ssr ? [`${themeFolder}/src/base.scss`, `${themeFolder}/src/${dirName}.scss`] : [`${esComponentsFolder}/base/style/index`, `${esComponentsFolder}/${dirName}/style/index`];
321
+ } else if (importStyle === true || importStyle === "css") {
322
+ return ssr ? [`${themeFolder}/base.css`, `${themeFolder}/el-${dirName}.css`] : [`${esComponentsFolder}/base/style/css`, `${esComponentsFolder}/${dirName}/style/css`];
323
+ }
323
324
  }
324
325
  function resolveComponent(name, options) {
325
326
  if (options.exclude && name.match(options.exclude))
@@ -612,6 +613,9 @@ var components2 = [
612
613
  "ColorPicker",
613
614
  "Column",
614
615
  "ColumnGroup",
616
+ // 'ConfirmDialog',
617
+ // 'ConfirmPopup',
618
+ // These must be registered globally in order for the confirm service to work properly
615
619
  "ContextMenu",
616
620
  "DataTable",
617
621
  "DataView",
@@ -674,8 +678,12 @@ var components2 = [
674
678
  "TieredMenu",
675
679
  "Timeline",
676
680
  "Timelist",
681
+ // 'Toast',
682
+ // Toast must be registered globally in order for the toast service to work properly
677
683
  "ToggleButton",
678
684
  "Toolbar",
685
+ // 'Tooltip',
686
+ // Tooltip must be registered globally in order for the tooltip service to work properly
679
687
  "Tree",
680
688
  "TreeSelect",
681
689
  "TreeTable",
@@ -741,7 +749,7 @@ function VantResolver(options = {}) {
741
749
 
742
750
  // src/core/resolvers/varlet-ui.ts
743
751
  var varFunctions = ["ImagePreview", "Snackbar", "Picker", "ActionSheet", "Dialog", "Locale", "StyleProvider", "LoadingBar"];
744
- var varDirectives = ["Ripple", "Lazy"];
752
+ var varDirectives = ["Ripple", "Lazy", "Hover"];
745
753
  function getResolved(name, options) {
746
754
  const {
747
755
  importStyle = "css",
@@ -1015,6 +1023,13 @@ function componentsResolver(name, { ssr }) {
1015
1023
  if (!name.match(/^D[A-Z]/))
1016
1024
  return;
1017
1025
  const resolveId = _chunkHCIFGIWSjs.kebabCase.call(void 0, name = name.slice(1));
1026
+ if (["row", "col"].includes(resolveId)) {
1027
+ return {
1028
+ name,
1029
+ sideEffects: getSideEffects7(resolveId),
1030
+ from: resolveDirectory("grid", `index.${ssr ? "umd" : "es"}.js`)
1031
+ };
1032
+ }
1018
1033
  return {
1019
1034
  name,
1020
1035
  sideEffects: getSideEffects7(resolveId),
@@ -1490,7 +1505,7 @@ var COMPONENT_ALIASES = {
1490
1505
  BTextarea: "BFormTextarea",
1491
1506
  BTimepicker: "BFormTimepicker"
1492
1507
  };
1493
- function BootstrapVueResolver(_options = {}) {
1508
+ var BootstrapVueResolver = (_options = {}) => {
1494
1509
  const options = _chunkBTQOTIPQjs.__spreadValues.call(void 0, { directives: true }, _options);
1495
1510
  const resolvers = [{
1496
1511
  type: "component",
@@ -1517,9 +1532,27 @@ function BootstrapVueResolver(_options = {}) {
1517
1532
  });
1518
1533
  }
1519
1534
  return resolvers;
1520
- }
1521
-
1522
- // src/core/resolvers/bootstrap-vue-3.ts
1535
+ };
1536
+ var BootstrapVueNextResolver = (_options = {}) => {
1537
+ const options = _chunkBTQOTIPQjs.__spreadValues.call(void 0, { directives: true }, _options);
1538
+ const resolvers = [{
1539
+ type: "component",
1540
+ resolve: (name) => {
1541
+ if (name.match(/^B[A-Z]/))
1542
+ return { name, from: "bootstrap-vue-next" };
1543
+ }
1544
+ }];
1545
+ if (options.directives) {
1546
+ resolvers.push({
1547
+ type: "directive",
1548
+ resolve: (name) => {
1549
+ if (name.match(/^B[A-Z]/))
1550
+ return { name: `v${name}`, from: "bootstrap-vue-next" };
1551
+ }
1552
+ });
1553
+ }
1554
+ return resolvers;
1555
+ };
1523
1556
  var BootstrapVue3Resolver = (_options = {}) => {
1524
1557
  const options = _chunkBTQOTIPQjs.__spreadValues.call(void 0, { directives: true }, _options);
1525
1558
  const resolvers = [{
@@ -1581,5 +1614,6 @@ function IonicResolver() {
1581
1614
 
1582
1615
 
1583
1616
 
1584
- exports.AntDesignVueResolver = AntDesignVueResolver; exports.ArcoResolver = ArcoResolver; exports.BootstrapVue3Resolver = BootstrapVue3Resolver; exports.BootstrapVueResolver = BootstrapVueResolver; exports.DevUiResolver = DevUiResolver; exports.ElementPlusResolver = ElementPlusResolver; exports.ElementUiResolver = ElementUiResolver; exports.HeadlessUiResolver = HeadlessUiResolver; exports.IduxResolver = IduxResolver; exports.InklineResolver = InklineResolver; exports.IonicResolver = IonicResolver; exports.LayuiVueResolver = LayuiVueResolver; exports.NaiveUiResolver = NaiveUiResolver; exports.PrimeVueResolver = PrimeVueResolver; exports.QuasarResolver = QuasarResolver; exports.TDesignResolver = TDesignResolver; exports.VantResolver = VantResolver; exports.VarletUIResolver = VarletUIResolver; exports.VeuiResolver = VeuiResolver; exports.ViewUiResolver = ViewUiResolver; exports.VueUseComponentsResolver = VueUseComponentsResolver; exports.VueUseDirectiveResolver = VueUseDirectiveResolver; exports.Vuetify3Resolver = Vuetify3Resolver; exports.VuetifyResolver = VuetifyResolver; exports.getResolved = getResolved;
1617
+
1618
+ exports.AntDesignVueResolver = AntDesignVueResolver; exports.ArcoResolver = ArcoResolver; exports.BootstrapVue3Resolver = BootstrapVue3Resolver; exports.BootstrapVueNextResolver = BootstrapVueNextResolver; exports.BootstrapVueResolver = BootstrapVueResolver; exports.DevUiResolver = DevUiResolver; exports.ElementPlusResolver = ElementPlusResolver; exports.ElementUiResolver = ElementUiResolver; exports.HeadlessUiResolver = HeadlessUiResolver; exports.IduxResolver = IduxResolver; exports.InklineResolver = InklineResolver; exports.IonicResolver = IonicResolver; exports.LayuiVueResolver = LayuiVueResolver; exports.NaiveUiResolver = NaiveUiResolver; exports.PrimeVueResolver = PrimeVueResolver; exports.QuasarResolver = QuasarResolver; exports.TDesignResolver = TDesignResolver; exports.VantResolver = VantResolver; exports.VarletUIResolver = VarletUIResolver; exports.VeuiResolver = VeuiResolver; exports.ViewUiResolver = ViewUiResolver; exports.VueUseComponentsResolver = VueUseComponentsResolver; exports.VueUseDirectiveResolver = VueUseDirectiveResolver; exports.Vuetify3Resolver = Vuetify3Resolver; exports.VuetifyResolver = VuetifyResolver; exports.getResolved = getResolved;
1585
1619
  exports.default = module.exports;
@@ -316,10 +316,11 @@ function getSideEffects2(dirName, options) {
316
316
  const { importStyle, ssr } = options;
317
317
  const themeFolder = "element-plus/theme-chalk";
318
318
  const esComponentsFolder = "element-plus/es/components";
319
- if (importStyle === "sass")
320
- return ssr ? `${themeFolder}/src/${dirName}.scss` : `${esComponentsFolder}/${dirName}/style/index`;
321
- else if (importStyle === true || importStyle === "css")
322
- return ssr ? `${themeFolder}/el-${dirName}.css` : `${esComponentsFolder}/${dirName}/style/css`;
319
+ if (importStyle === "sass") {
320
+ return ssr ? [`${themeFolder}/src/base.scss`, `${themeFolder}/src/${dirName}.scss`] : [`${esComponentsFolder}/base/style/index`, `${esComponentsFolder}/${dirName}/style/index`];
321
+ } else if (importStyle === true || importStyle === "css") {
322
+ return ssr ? [`${themeFolder}/base.css`, `${themeFolder}/el-${dirName}.css`] : [`${esComponentsFolder}/base/style/css`, `${esComponentsFolder}/${dirName}/style/css`];
323
+ }
323
324
  }
324
325
  function resolveComponent(name, options) {
325
326
  if (options.exclude && name.match(options.exclude))
@@ -612,6 +613,9 @@ var components2 = [
612
613
  "ColorPicker",
613
614
  "Column",
614
615
  "ColumnGroup",
616
+ // 'ConfirmDialog',
617
+ // 'ConfirmPopup',
618
+ // These must be registered globally in order for the confirm service to work properly
615
619
  "ContextMenu",
616
620
  "DataTable",
617
621
  "DataView",
@@ -674,8 +678,12 @@ var components2 = [
674
678
  "TieredMenu",
675
679
  "Timeline",
676
680
  "Timelist",
681
+ // 'Toast',
682
+ // Toast must be registered globally in order for the toast service to work properly
677
683
  "ToggleButton",
678
684
  "Toolbar",
685
+ // 'Tooltip',
686
+ // Tooltip must be registered globally in order for the tooltip service to work properly
679
687
  "Tree",
680
688
  "TreeSelect",
681
689
  "TreeTable",
@@ -741,7 +749,7 @@ function VantResolver(options = {}) {
741
749
 
742
750
  // src/core/resolvers/varlet-ui.ts
743
751
  var varFunctions = ["ImagePreview", "Snackbar", "Picker", "ActionSheet", "Dialog", "Locale", "StyleProvider", "LoadingBar"];
744
- var varDirectives = ["Ripple", "Lazy"];
752
+ var varDirectives = ["Ripple", "Lazy", "Hover"];
745
753
  function getResolved(name, options) {
746
754
  const {
747
755
  importStyle = "css",
@@ -1015,6 +1023,13 @@ function componentsResolver(name, { ssr }) {
1015
1023
  if (!name.match(/^D[A-Z]/))
1016
1024
  return;
1017
1025
  const resolveId = kebabCase(name = name.slice(1));
1026
+ if (["row", "col"].includes(resolveId)) {
1027
+ return {
1028
+ name,
1029
+ sideEffects: getSideEffects7(resolveId),
1030
+ from: resolveDirectory("grid", `index.${ssr ? "umd" : "es"}.js`)
1031
+ };
1032
+ }
1018
1033
  return {
1019
1034
  name,
1020
1035
  sideEffects: getSideEffects7(resolveId),
@@ -1490,7 +1505,7 @@ var COMPONENT_ALIASES = {
1490
1505
  BTextarea: "BFormTextarea",
1491
1506
  BTimepicker: "BFormTimepicker"
1492
1507
  };
1493
- function BootstrapVueResolver(_options = {}) {
1508
+ var BootstrapVueResolver = (_options = {}) => {
1494
1509
  const options = __spreadValues({ directives: true }, _options);
1495
1510
  const resolvers = [{
1496
1511
  type: "component",
@@ -1517,9 +1532,27 @@ function BootstrapVueResolver(_options = {}) {
1517
1532
  });
1518
1533
  }
1519
1534
  return resolvers;
1520
- }
1521
-
1522
- // src/core/resolvers/bootstrap-vue-3.ts
1535
+ };
1536
+ var BootstrapVueNextResolver = (_options = {}) => {
1537
+ const options = __spreadValues({ directives: true }, _options);
1538
+ const resolvers = [{
1539
+ type: "component",
1540
+ resolve: (name) => {
1541
+ if (name.match(/^B[A-Z]/))
1542
+ return { name, from: "bootstrap-vue-next" };
1543
+ }
1544
+ }];
1545
+ if (options.directives) {
1546
+ resolvers.push({
1547
+ type: "directive",
1548
+ resolve: (name) => {
1549
+ if (name.match(/^B[A-Z]/))
1550
+ return { name: `v${name}`, from: "bootstrap-vue-next" };
1551
+ }
1552
+ });
1553
+ }
1554
+ return resolvers;
1555
+ };
1523
1556
  var BootstrapVue3Resolver = (_options = {}) => {
1524
1557
  const options = __spreadValues({ directives: true }, _options);
1525
1558
  const resolvers = [{
@@ -1559,6 +1592,7 @@ export {
1559
1592
  AntDesignVueResolver,
1560
1593
  ArcoResolver,
1561
1594
  BootstrapVue3Resolver,
1595
+ BootstrapVueNextResolver,
1562
1596
  BootstrapVueResolver,
1563
1597
  DevUiResolver,
1564
1598
  ElementPlusResolver,
package/dist/rollup.js CHANGED
@@ -1,12 +1,12 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunkKARXI5H6js = require('./chunk-KARXI5H6.js');
3
+ var _chunkZ3TQFCNGjs = require('./chunk-Z3TQFCNG.js');
4
4
  require('./chunk-HCIFGIWS.js');
5
5
  require('./chunk-BTQOTIPQ.js');
6
6
  require('./chunk-6F4PWJZI.js');
7
7
 
8
8
  // src/rollup.ts
9
- var rollup_default = _chunkKARXI5H6js.unplugin_default.rollup;
9
+ var rollup_default = _chunkZ3TQFCNGjs.unplugin_default.rollup;
10
10
 
11
11
 
12
12
  module.exports = rollup_default;
package/dist/rollup.mjs CHANGED
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  unplugin_default
3
- } from "./chunk-LKBTW3SO.mjs";
3
+ } from "./chunk-WVTE3GCL.mjs";
4
4
  import "./chunk-BPHJA2FM.mjs";
5
5
  import "./chunk-ZKNUHGJ4.mjs";
6
6
  import "./chunk-WBQAMGXK.mjs";
@@ -12,6 +12,13 @@ var WalkerBase = class {
12
12
  replace: (node) => this.replacement = node
13
13
  };
14
14
  }
15
+ /**
16
+ * @template {Node} Parent
17
+ * @param {Parent | null | undefined} parent
18
+ * @param {keyof Parent | null | undefined} prop
19
+ * @param {number | null | undefined} index
20
+ * @param {Node} node
21
+ */
15
22
  replace(parent, prop, index, node) {
16
23
  if (parent && prop) {
17
24
  if (index != null) {
@@ -21,6 +28,12 @@ var WalkerBase = class {
21
28
  }
22
29
  }
23
30
  }
31
+ /**
32
+ * @template {Node} Parent
33
+ * @param {Parent | null | undefined} parent
34
+ * @param {keyof Parent | null | undefined} prop
35
+ * @param {number | null | undefined} index
36
+ */
24
37
  remove(parent, prop, index) {
25
38
  if (parent && prop) {
26
39
  if (index !== null && index !== void 0) {
@@ -34,6 +47,11 @@ var WalkerBase = class {
34
47
 
35
48
  // node_modules/.pnpm/estree-walker@3.0.3/node_modules/estree-walker/src/sync.js
36
49
  var SyncWalker = class extends WalkerBase {
50
+ /**
51
+ *
52
+ * @param {SyncHandler} [enter]
53
+ * @param {SyncHandler} [leave]
54
+ */
37
55
  constructor(enter, leave) {
38
56
  super();
39
57
  this.should_skip = false;
@@ -47,6 +65,14 @@ var SyncWalker = class extends WalkerBase {
47
65
  this.enter = enter;
48
66
  this.leave = leave;
49
67
  }
68
+ /**
69
+ * @template {Node} Parent
70
+ * @param {Node} node
71
+ * @param {Parent | null} parent
72
+ * @param {keyof Parent} [prop]
73
+ * @param {number | null} [index]
74
+ * @returns {Node | null}
75
+ */
50
76
  visit(node, parent, prop, index) {
51
77
  if (node) {
52
78
  if (this.enter) {
@@ -79,7 +105,10 @@ var SyncWalker = class extends WalkerBase {
79
105
  const value = node[key];
80
106
  if (value && typeof value === "object") {
81
107
  if (Array.isArray(value)) {
82
- const nodes = value;
108
+ const nodes = (
109
+ /** @type {Array<unknown>} */
110
+ value
111
+ );
83
112
  for (let i = 0; i < nodes.length; i += 1) {
84
113
  const item = nodes[i];
85
114
  if (isNode(item)) {
@@ -122,6 +151,11 @@ function isNode(value) {
122
151
 
123
152
  // node_modules/.pnpm/estree-walker@3.0.3/node_modules/estree-walker/src/async.js
124
153
  var AsyncWalker = class extends WalkerBase {
154
+ /**
155
+ *
156
+ * @param {AsyncHandler} [enter]
157
+ * @param {AsyncHandler} [leave]
158
+ */
125
159
  constructor(enter, leave) {
126
160
  super();
127
161
  this.should_skip = false;
@@ -135,6 +169,14 @@ var AsyncWalker = class extends WalkerBase {
135
169
  this.enter = enter;
136
170
  this.leave = leave;
137
171
  }
172
+ /**
173
+ * @template {Node} Parent
174
+ * @param {Node} node
175
+ * @param {Parent | null} parent
176
+ * @param {keyof Parent} [prop]
177
+ * @param {number | null} [index]
178
+ * @returns {Promise<Node | null>}
179
+ */
138
180
  async visit(node, parent, prop, index) {
139
181
  if (node) {
140
182
  if (this.enter) {
@@ -167,7 +209,10 @@ var AsyncWalker = class extends WalkerBase {
167
209
  const value = node[key];
168
210
  if (value && typeof value === "object") {
169
211
  if (Array.isArray(value)) {
170
- const nodes = value;
212
+ const nodes = (
213
+ /** @type {Array<unknown>} */
214
+ value
215
+ );
171
216
  for (let i = 0; i < nodes.length; i += 1) {
172
217
  const item = nodes[i];
173
218
  if (isNode2(item)) {
@@ -12,6 +12,13 @@ var WalkerBase = class {
12
12
  replace: (node) => this.replacement = node
13
13
  };
14
14
  }
15
+ /**
16
+ * @template {Node} Parent
17
+ * @param {Parent | null | undefined} parent
18
+ * @param {keyof Parent | null | undefined} prop
19
+ * @param {number | null | undefined} index
20
+ * @param {Node} node
21
+ */
15
22
  replace(parent, prop, index, node) {
16
23
  if (parent && prop) {
17
24
  if (index != null) {
@@ -21,6 +28,12 @@ var WalkerBase = class {
21
28
  }
22
29
  }
23
30
  }
31
+ /**
32
+ * @template {Node} Parent
33
+ * @param {Parent | null | undefined} parent
34
+ * @param {keyof Parent | null | undefined} prop
35
+ * @param {number | null | undefined} index
36
+ */
24
37
  remove(parent, prop, index) {
25
38
  if (parent && prop) {
26
39
  if (index !== null && index !== void 0) {
@@ -34,6 +47,11 @@ var WalkerBase = class {
34
47
 
35
48
  // node_modules/.pnpm/estree-walker@3.0.3/node_modules/estree-walker/src/sync.js
36
49
  var SyncWalker = class extends WalkerBase {
50
+ /**
51
+ *
52
+ * @param {SyncHandler} [enter]
53
+ * @param {SyncHandler} [leave]
54
+ */
37
55
  constructor(enter, leave) {
38
56
  super();
39
57
  this.should_skip = false;
@@ -47,6 +65,14 @@ var SyncWalker = class extends WalkerBase {
47
65
  this.enter = enter;
48
66
  this.leave = leave;
49
67
  }
68
+ /**
69
+ * @template {Node} Parent
70
+ * @param {Node} node
71
+ * @param {Parent | null} parent
72
+ * @param {keyof Parent} [prop]
73
+ * @param {number | null} [index]
74
+ * @returns {Node | null}
75
+ */
50
76
  visit(node, parent, prop, index) {
51
77
  if (node) {
52
78
  if (this.enter) {
@@ -79,7 +105,10 @@ var SyncWalker = class extends WalkerBase {
79
105
  const value = node[key];
80
106
  if (value && typeof value === "object") {
81
107
  if (Array.isArray(value)) {
82
- const nodes = value;
108
+ const nodes = (
109
+ /** @type {Array<unknown>} */
110
+ value
111
+ );
83
112
  for (let i = 0; i < nodes.length; i += 1) {
84
113
  const item = nodes[i];
85
114
  if (isNode(item)) {
@@ -122,6 +151,11 @@ function isNode(value) {
122
151
 
123
152
  // node_modules/.pnpm/estree-walker@3.0.3/node_modules/estree-walker/src/async.js
124
153
  var AsyncWalker = class extends WalkerBase {
154
+ /**
155
+ *
156
+ * @param {AsyncHandler} [enter]
157
+ * @param {AsyncHandler} [leave]
158
+ */
125
159
  constructor(enter, leave) {
126
160
  super();
127
161
  this.should_skip = false;
@@ -135,6 +169,14 @@ var AsyncWalker = class extends WalkerBase {
135
169
  this.enter = enter;
136
170
  this.leave = leave;
137
171
  }
172
+ /**
173
+ * @template {Node} Parent
174
+ * @param {Node} node
175
+ * @param {Parent | null} parent
176
+ * @param {keyof Parent} [prop]
177
+ * @param {number | null} [index]
178
+ * @returns {Promise<Node | null>}
179
+ */
138
180
  async visit(node, parent, prop, index) {
139
181
  if (node) {
140
182
  if (this.enter) {
@@ -167,7 +209,10 @@ var AsyncWalker = class extends WalkerBase {
167
209
  const value = node[key];
168
210
  if (value && typeof value === "object") {
169
211
  if (Array.isArray(value)) {
170
- const nodes = value;
212
+ const nodes = (
213
+ /** @type {Array<unknown>} */
214
+ value
215
+ );
171
216
  for (let i = 0; i < nodes.length; i += 1) {
172
217
  const item = nodes[i];
173
218
  if (isNode2(item)) {
package/dist/vite.js CHANGED
@@ -1,12 +1,12 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunkKARXI5H6js = require('./chunk-KARXI5H6.js');
3
+ var _chunkZ3TQFCNGjs = require('./chunk-Z3TQFCNG.js');
4
4
  require('./chunk-HCIFGIWS.js');
5
5
  require('./chunk-BTQOTIPQ.js');
6
6
  require('./chunk-6F4PWJZI.js');
7
7
 
8
8
  // src/vite.ts
9
- var vite_default = _chunkKARXI5H6js.unplugin_default.vite;
9
+ var vite_default = _chunkZ3TQFCNGjs.unplugin_default.vite;
10
10
 
11
11
 
12
12
  module.exports = vite_default;
package/dist/vite.mjs CHANGED
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  unplugin_default
3
- } from "./chunk-LKBTW3SO.mjs";
3
+ } from "./chunk-WVTE3GCL.mjs";
4
4
  import "./chunk-BPHJA2FM.mjs";
5
5
  import "./chunk-ZKNUHGJ4.mjs";
6
6
  import "./chunk-WBQAMGXK.mjs";
package/dist/webpack.js CHANGED
@@ -1,12 +1,12 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunkKARXI5H6js = require('./chunk-KARXI5H6.js');
3
+ var _chunkZ3TQFCNGjs = require('./chunk-Z3TQFCNG.js');
4
4
  require('./chunk-HCIFGIWS.js');
5
5
  require('./chunk-BTQOTIPQ.js');
6
6
  require('./chunk-6F4PWJZI.js');
7
7
 
8
8
  // src/webpack.ts
9
- var webpack_default = _chunkKARXI5H6js.unplugin_default.webpack;
9
+ var webpack_default = _chunkZ3TQFCNGjs.unplugin_default.webpack;
10
10
 
11
11
 
12
12
  module.exports = webpack_default;
package/dist/webpack.mjs CHANGED
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  unplugin_default
3
- } from "./chunk-LKBTW3SO.mjs";
3
+ } from "./chunk-WVTE3GCL.mjs";
4
4
  import "./chunk-BPHJA2FM.mjs";
5
5
  import "./chunk-ZKNUHGJ4.mjs";
6
6
  import "./chunk-WBQAMGXK.mjs";
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "unplugin-vue-components",
3
- "version": "0.23.0",
4
- "packageManager": "pnpm@7.13.4",
3
+ "version": "0.24.1",
4
+ "packageManager": "pnpm@7.29.0",
5
5
  "description": "Components auto importing for Vue",
6
6
  "author": "antfu <anthonyfu117@hotmail.com>",
7
7
  "license": "MIT",
@@ -84,48 +84,51 @@
84
84
  },
85
85
  "peerDependencies": {
86
86
  "@babel/parser": "^7.15.8",
87
- "vue": "2 || 3"
87
+ "vue": "2 || 3",
88
+ "@nuxt/kit": "^3.2.2"
88
89
  },
89
90
  "peerDependenciesMeta": {
90
91
  "@babel/parser": {
91
92
  "optional": true
93
+ },
94
+ "@nuxt/kit": {
95
+ "optional": true
92
96
  }
93
97
  },
94
98
  "dependencies": {
95
99
  "@antfu/utils": "^0.7.2",
96
- "@nuxt/kit": "^3.1.1",
97
100
  "@rollup/pluginutils": "^5.0.2",
98
101
  "chokidar": "^3.5.3",
99
102
  "debug": "^4.3.4",
100
103
  "fast-glob": "^3.2.12",
101
104
  "local-pkg": "^0.4.3",
102
- "magic-string": "^0.27.0",
103
- "minimatch": "^6.1.6",
105
+ "magic-string": "^0.30.0",
106
+ "minimatch": "^7.4.2",
104
107
  "resolve": "^1.22.1",
105
- "unplugin": "^1.0.1"
108
+ "unplugin": "^1.1.0"
106
109
  },
107
110
  "devDependencies": {
108
- "@antfu/eslint-config": "^0.34.1",
109
- "@babel/parser": "^7.20.13",
110
- "@babel/types": "^7.20.7",
111
- "@nuxt/schema": "^3.1.1",
111
+ "@antfu/eslint-config": "^0.36.0",
112
+ "@babel/parser": "^7.21.2",
113
+ "@babel/types": "^7.21.2",
114
+ "@nuxt/kit": "^3.2.3",
112
115
  "@types/debug": "^4.1.7",
113
116
  "@types/minimatch": "^5.1.2",
114
- "@types/node": "^18.11.18",
117
+ "@types/node": "^18.14.6",
115
118
  "@types/resolve": "^1.20.2",
116
- "@typescript-eslint/eslint-plugin": "^5.49.0",
117
- "bumpp": "^8.2.1",
119
+ "@typescript-eslint/eslint-plugin": "^5.54.1",
120
+ "bumpp": "^9.0.0",
118
121
  "compare-versions": "^5.0.3",
119
- "element-plus": "^2.2.28",
120
- "eslint": "^8.32.0",
122
+ "element-plus": "^2.2.34",
123
+ "eslint": "^8.35.0",
121
124
  "esno": "^0.16.3",
122
125
  "estree-walker": "^3.0.3",
123
126
  "pathe": "^1.1.0",
124
- "rollup": "^3.12.0",
125
- "tsup": "^6.5.0",
126
- "typescript": "^4.9.4",
127
- "vite": "^4.0.4",
128
- "vitest": "^0.28.3",
127
+ "rollup": "^3.18.0",
128
+ "tsup": "^6.6.3",
129
+ "typescript": "^4.9.5",
130
+ "vite": "^4.1.4",
131
+ "vitest": "^0.29.2",
129
132
  "vue": "3.2.45"
130
133
  }
131
134
  }