@bootstrap-vue-next/nuxt 0.0.0 → 0.0.2
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/LICENSE +21 -0
- package/README.md +0 -0
- package/dist/module.cjs +5 -0
- package/dist/module.d.ts +12 -0
- package/dist/module.json +9 -0
- package/dist/module.mjs +64 -0
- package/dist/runtime/breadcrumb.d.ts +2 -0
- package/dist/runtime/breadcrumb.mjs +5 -0
- package/dist/runtime/composables.d.ts +1 -0
- package/dist/runtime/composables.mjs +1 -0
- package/dist/runtime/directives.d.ts +1 -0
- package/dist/runtime/directives.mjs +1 -0
- package/dist/types.d.ts +6 -0
- package/package.json +38 -7
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
The MIT License (MIT)
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2016-2023 - BootstrapVue
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
ADDED
|
File without changes
|
package/dist/module.cjs
ADDED
package/dist/module.d.ts
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import * as _nuxt_schema from '@nuxt/schema';
|
|
2
|
+
import { Composables } from 'bootstrap-vue-next';
|
|
3
|
+
|
|
4
|
+
interface ModuleOptions {
|
|
5
|
+
composables: (Partial<Record<keyof typeof Composables, boolean>> & {
|
|
6
|
+
all: boolean;
|
|
7
|
+
}) | boolean;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
declare const _default: _nuxt_schema.NuxtModule<ModuleOptions>;
|
|
11
|
+
|
|
12
|
+
export { _default as default };
|
package/dist/module.json
ADDED
package/dist/module.mjs
ADDED
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import { addComponent, defineNuxtModule, createResolver, addPlugin, addImports } from '@nuxt/kit';
|
|
2
|
+
import { Components } from 'bootstrap-vue-next';
|
|
3
|
+
|
|
4
|
+
const useComponents = () => {
|
|
5
|
+
Object.keys(Components).forEach((name) => {
|
|
6
|
+
addComponent({
|
|
7
|
+
name,
|
|
8
|
+
export: name,
|
|
9
|
+
filePath: "bootstrap-vue-next"
|
|
10
|
+
});
|
|
11
|
+
});
|
|
12
|
+
};
|
|
13
|
+
|
|
14
|
+
const parseActiveImports = (options, values) => {
|
|
15
|
+
const { all, ...others } = options;
|
|
16
|
+
const valuesCopy = { ...values };
|
|
17
|
+
Object.keys(valuesCopy).forEach((el) => valuesCopy[el] = all);
|
|
18
|
+
const merge = { ...valuesCopy, ...others };
|
|
19
|
+
return Object.entries(merge).filter(([, value]) => value === true).map(([name]) => name);
|
|
20
|
+
};
|
|
21
|
+
|
|
22
|
+
const module = defineNuxtModule({
|
|
23
|
+
meta: {
|
|
24
|
+
name: "bootstrap-vue-next",
|
|
25
|
+
configKey: "bootstrapVueNext",
|
|
26
|
+
compatibility: {
|
|
27
|
+
nuxt: "^3.0.0",
|
|
28
|
+
bridge: false
|
|
29
|
+
}
|
|
30
|
+
},
|
|
31
|
+
defaults: {
|
|
32
|
+
// directives: true,
|
|
33
|
+
composables: true
|
|
34
|
+
},
|
|
35
|
+
setup(options, nuxt) {
|
|
36
|
+
const resolver = createResolver(import.meta.url);
|
|
37
|
+
const normalizedComposables = typeof options.composables === "boolean" ? { all: options.composables } : options.composables;
|
|
38
|
+
nuxt.options.build.transpile.push(resolver.resolve("./runtime"));
|
|
39
|
+
nuxt.options.css.push("bootstrap-vue-next/dist/bootstrap-vue-next.css");
|
|
40
|
+
useComponents();
|
|
41
|
+
if (normalizedComposables.all === true && normalizedComposables.createBreadcrumb !== false || normalizedComposables.createBreadcrumb === true) {
|
|
42
|
+
addPlugin(resolver.resolve("./runtime/breadcrumb"));
|
|
43
|
+
}
|
|
44
|
+
const arr = [];
|
|
45
|
+
if (Object.values(normalizedComposables).some((el) => el === true)) {
|
|
46
|
+
const imports = parseActiveImports(normalizedComposables, {
|
|
47
|
+
createBreadcrumb: false,
|
|
48
|
+
useBreadcrumb: false,
|
|
49
|
+
useColorMode: false
|
|
50
|
+
}).map(
|
|
51
|
+
(el) => ({
|
|
52
|
+
from: resolver.resolve("./runtime/composables"),
|
|
53
|
+
name: el
|
|
54
|
+
})
|
|
55
|
+
);
|
|
56
|
+
arr.push(...imports);
|
|
57
|
+
}
|
|
58
|
+
if (arr.length) {
|
|
59
|
+
addImports(arr);
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
});
|
|
63
|
+
|
|
64
|
+
export { module as default };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { useBreadcrumb, createBreadcrumb, useColorMode } from 'bootstrap-vue-next';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { useBreadcrumb, createBreadcrumb, useColorMode } from "bootstrap-vue-next";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { vBColorMode, vBPopover, vBToggle, vBTooltip } from 'bootstrap-vue-next';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { vBColorMode, vBPopover, vBToggle, vBTooltip } from "bootstrap-vue-next";
|
package/dist/types.d.ts
ADDED
package/package.json
CHANGED
|
@@ -1,16 +1,47 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bootstrap-vue-next/nuxt",
|
|
3
3
|
"description": "",
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.2",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": {
|
|
7
7
|
"name": "Issayah",
|
|
8
8
|
"url": "https://github.com/VividLemon"
|
|
9
9
|
},
|
|
10
|
-
"
|
|
11
|
-
"
|
|
12
|
-
|
|
13
|
-
|
|
10
|
+
"type": "module",
|
|
11
|
+
"exports": {
|
|
12
|
+
".": {
|
|
13
|
+
"types": "./dist/types.d.ts",
|
|
14
|
+
"import": "./dist/module.mjs",
|
|
15
|
+
"require": "./dist/module.cjs"
|
|
16
|
+
}
|
|
17
|
+
},
|
|
18
|
+
"main": "./dist/module.cjs",
|
|
19
|
+
"types": "./dist/types.d.ts",
|
|
20
|
+
"files": [
|
|
21
|
+
"dist"
|
|
22
|
+
],
|
|
23
|
+
"dependencies": {
|
|
24
|
+
"@nuxt/kit": "^3.3.2",
|
|
25
|
+
"bootstrap-vue-next": "0.7.3"
|
|
14
26
|
},
|
|
15
|
-
"
|
|
16
|
-
|
|
27
|
+
"devDependencies": {
|
|
28
|
+
"@nuxt/eslint-config": "^0.1.1",
|
|
29
|
+
"@nuxt/module-builder": "^0.2.1",
|
|
30
|
+
"@nuxt/schema": "^3.3.2",
|
|
31
|
+
"@rushstack/eslint-patch": "^1.2.0",
|
|
32
|
+
"@vue/eslint-config-prettier": "^7.1.0",
|
|
33
|
+
"eslint": "^8.36.0",
|
|
34
|
+
"eslint-define-config": "^1.17.0",
|
|
35
|
+
"nuxt": "^3.3.2",
|
|
36
|
+
"prettier": "^2.8.4",
|
|
37
|
+
"unimport": "^3.0.4",
|
|
38
|
+
"vue": "^3.2.47"
|
|
39
|
+
},
|
|
40
|
+
"scripts": {
|
|
41
|
+
"dev": "nuxi dev playground",
|
|
42
|
+
"dev:build": "nuxi build playground",
|
|
43
|
+
"dev:prepare": "nuxt-module-build --stub && nuxi prepare playground",
|
|
44
|
+
"lint": "eslint .",
|
|
45
|
+
"build": "pnpm run dev:build && pnpm run prepack"
|
|
46
|
+
}
|
|
47
|
+
}
|