@bimdata/design-system 1.2.0-rc.9 → 1.3.0-rc.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/README.md +1 -1
- package/components.js +1 -0
- package/dist/css/design-system.css +79 -79
- package/dist/js/BIMDataComponents/BIMDataButton.js +1 -1
- package/dist/js/BIMDataComponents/BIMDataCheckbox.js +1 -1
- package/dist/js/BIMDataComponents/BIMDataDropdownList.js +1 -1
- package/dist/js/BIMDataComponents/BIMDataFileIcon.js +1 -1
- package/dist/js/BIMDataComponents/BIMDataGuidedTour.js +1 -0
- package/dist/js/BIMDataComponents/BIMDataIcon.js +1 -1
- package/dist/js/BIMDataComponents/BIMDataIllustration.js +1 -1
- package/dist/js/BIMDataComponents/BIMDataInput.js +1 -1
- package/dist/js/BIMDataComponents/BIMDataLoading.js +1 -1
- package/dist/js/BIMDataComponents/BIMDataNavigation.js +1 -1
- package/dist/js/BIMDataComponents/BIMDataPaginatedList.js +1 -1
- package/dist/js/BIMDataComponents/BIMDataSearch.js +1 -1
- package/dist/js/BIMDataComponents/BIMDataSelect.js +1 -1
- package/dist/js/BIMDataComponents/BIMDataTable.js +1 -1
- package/dist/js/BIMDataComponents/BIMDataTabs.js +1 -1
- package/dist/js/BIMDataComponents/BIMDataTextarea.js +1 -1
- package/dist/js/BIMDataComponents/BIMDataTooltip.js +1 -1
- package/dist/js/BIMDataComponents/index.js +1 -1
- package/dist/js/BIMDataComponents/vue3/BIMDataBigSpinner.js +1 -1
- package/dist/js/BIMDataComponents/vue3/BIMDataButton.js +1 -1
- package/dist/js/BIMDataComponents/vue3/BIMDataCard.js +1 -1
- package/dist/js/BIMDataComponents/vue3/BIMDataCheckbox.js +1 -1
- package/dist/js/BIMDataComponents/vue3/BIMDataDropdownList.js +1 -1
- package/dist/js/BIMDataComponents/vue3/BIMDataDropdownMenu.js +1 -1
- package/dist/js/BIMDataComponents/vue3/BIMDataFileIcon.js +1 -1
- package/dist/js/BIMDataComponents/vue3/BIMDataGuidedTour.js +1 -0
- package/dist/js/BIMDataComponents/vue3/BIMDataIcon.js +1 -1
- package/dist/js/BIMDataComponents/vue3/BIMDataIllustration.js +1 -1
- package/dist/js/BIMDataComponents/vue3/BIMDataInput.js +1 -1
- package/dist/js/BIMDataComponents/vue3/BIMDataLoading.js +1 -1
- package/dist/js/BIMDataComponents/vue3/BIMDataNavigation.js +1 -1
- package/dist/js/BIMDataComponents/vue3/BIMDataPaginatedList.js +1 -1
- package/dist/js/BIMDataComponents/vue3/BIMDataPieSpinner.js +1 -1
- package/dist/js/BIMDataComponents/vue3/BIMDataRadio.js +1 -1
- package/dist/js/BIMDataComponents/vue3/BIMDataResponsiveGrid.js +1 -1
- package/dist/js/BIMDataComponents/vue3/BIMDataSearch.js +1 -1
- package/dist/js/BIMDataComponents/vue3/BIMDataSelect.js +1 -1
- package/dist/js/BIMDataComponents/vue3/BIMDataSpinner.js +1 -1
- package/dist/js/BIMDataComponents/vue3/BIMDataTable.js +1 -1
- package/dist/js/BIMDataComponents/vue3/BIMDataTabs.js +1 -1
- package/dist/js/BIMDataComponents/vue3/BIMDataText.js +1 -1
- package/dist/js/BIMDataComponents/vue3/BIMDataTextarea.js +1 -1
- package/dist/js/BIMDataComponents/vue3/BIMDataTextbox.js +1 -1
- package/dist/js/BIMDataComponents/vue3/BIMDataToggle.js +1 -1
- package/dist/js/BIMDataComponents/vue3/BIMDataTooltip.js +1 -1
- package/dist/js/BIMDataComponents/vue3/index.js +1 -0
- package/dist/js/BIMDataDirectives/index.js +1 -0
- package/dist/js/BIMDataDirectives/vue3/index.js +1 -0
- package/dist/js/BIMDataSmartComponents/BIMDataFileManager.js +1 -1
- package/package.json +35 -35
- package/plugin-vue3.js +42 -0
- package/plugin.js +42 -0
package/package.json
CHANGED
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bimdata/design-system",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.3.0-rc.2",
|
|
4
4
|
"main": "./dist/js/BIMDataComponents/index.js",
|
|
5
5
|
"module": "./dist/js/BIMDataComponents/index.js",
|
|
6
6
|
"files": [
|
|
7
7
|
"dist/*",
|
|
8
8
|
"components.js",
|
|
9
|
+
"plugin.js",
|
|
10
|
+
"plugin-vue3.js",
|
|
9
11
|
"screenshots/*"
|
|
10
12
|
],
|
|
11
13
|
"scripts": {
|
|
@@ -19,48 +21,46 @@
|
|
|
19
21
|
"semantic-release": "semantic-release"
|
|
20
22
|
},
|
|
21
23
|
"devDependencies": {
|
|
22
|
-
"@babel/preset-env": "^7.
|
|
23
|
-
"@bimdata/typescript-fetch-api-client": "^
|
|
24
|
-
"@rollup/plugin-alias": "^3.1.
|
|
25
|
-
"@rollup/plugin-commonjs": "^21.0.
|
|
24
|
+
"@babel/preset-env": "^7.16.11",
|
|
25
|
+
"@bimdata/typescript-fetch-api-client": "^7.4.2",
|
|
26
|
+
"@rollup/plugin-alias": "^3.1.9",
|
|
27
|
+
"@rollup/plugin-commonjs": "^21.0.3",
|
|
26
28
|
"@rollup/plugin-image": "^2.1.1",
|
|
27
|
-
"@rollup/plugin-node-resolve": "^13.
|
|
28
|
-
"@rollup/plugin-replace": "^2.
|
|
29
|
+
"@rollup/plugin-node-resolve": "^13.1.3",
|
|
30
|
+
"@rollup/plugin-replace": "^2.4.2",
|
|
29
31
|
"@semantic-release/changelog": "^6.0.1",
|
|
30
|
-
"@semantic-release/commit-analyzer": "^9.0.
|
|
32
|
+
"@semantic-release/commit-analyzer": "^9.0.2",
|
|
31
33
|
"@semantic-release/git": "^10.0.1",
|
|
32
|
-
"@semantic-release/github": "^8.0.
|
|
34
|
+
"@semantic-release/github": "^8.0.4",
|
|
33
35
|
"@semantic-release/npm": "^8.0.3",
|
|
34
|
-
"@semantic-release/release-notes-generator": "^10.0.
|
|
35
|
-
"@vue/cli-plugin-unit-jest": "^4.
|
|
36
|
-
"@vue/cli-service": "^4.
|
|
37
|
-
"@vue/compiler-sfc": "^3.
|
|
38
|
-
"@vue/test-utils": "^1.0
|
|
36
|
+
"@semantic-release/release-notes-generator": "^10.0.3",
|
|
37
|
+
"@vue/cli-plugin-unit-jest": "^4.5.17",
|
|
38
|
+
"@vue/cli-service": "^4.5.17",
|
|
39
|
+
"@vue/compiler-sfc": "^3.2.31",
|
|
40
|
+
"@vue/test-utils": "^1.3.0",
|
|
39
41
|
"conventional-changelog-eslint": "^3.0.9",
|
|
40
|
-
"eslint": "^
|
|
41
|
-
"eslint-config-prettier": "^6.
|
|
42
|
-
"eslint-plugin-prettier": "^3.1
|
|
43
|
-
"eslint-plugin-vue": "^6.
|
|
44
|
-
"
|
|
45
|
-
"
|
|
46
|
-
"
|
|
47
|
-
"
|
|
48
|
-
"
|
|
49
|
-
"rollup": "^2.
|
|
50
|
-
"rollup-plugin-
|
|
51
|
-
"rollup-plugin-
|
|
52
|
-
"rollup-plugin-postcss": "^4.0.0",
|
|
53
|
-
"rollup-plugin-terser": "^5.3.0",
|
|
42
|
+
"eslint": "^8.12.0",
|
|
43
|
+
"eslint-config-prettier": "^6.15.0",
|
|
44
|
+
"eslint-plugin-prettier": "^3.4.1",
|
|
45
|
+
"eslint-plugin-vue": "^8.6.0",
|
|
46
|
+
"postcss": "^8.4.12",
|
|
47
|
+
"prettier": "^2.6.1",
|
|
48
|
+
"prismjs": "^1.27.0",
|
|
49
|
+
"rollup": "^2.70.1",
|
|
50
|
+
"rollup-plugin-copy": "^3.4.0",
|
|
51
|
+
"rollup-plugin-css-only": "^2.1.0",
|
|
52
|
+
"rollup-plugin-postcss": "^4.0.2",
|
|
53
|
+
"rollup-plugin-terser": "^5.3.1",
|
|
54
54
|
"rollup-plugin-vue2": "npm:rollup-plugin-vue@^5.1.9",
|
|
55
55
|
"rollup-plugin-vue3": "npm:rollup-plugin-vue@^6.0.0",
|
|
56
|
-
"sass": "^1.
|
|
56
|
+
"sass": "^1.49.9",
|
|
57
57
|
"sass-loader": "^8.0.2",
|
|
58
|
-
"semantic-release": "^18.0.
|
|
59
|
-
"vue": "^2.6.
|
|
60
|
-
"vue-clipboard2": "^0.3.
|
|
61
|
-
"vue-router": "^3.
|
|
62
|
-
"vue-template-compiler": "^2.6.
|
|
63
|
-
"vuex": "^3.
|
|
58
|
+
"semantic-release": "^18.0.1",
|
|
59
|
+
"vue": "^2.6.14",
|
|
60
|
+
"vue-clipboard2": "^0.3.3",
|
|
61
|
+
"vue-router": "^3.5.3",
|
|
62
|
+
"vue-template-compiler": "^2.6.14",
|
|
63
|
+
"vuex": "^3.6.2"
|
|
64
64
|
},
|
|
65
65
|
"postcss": {
|
|
66
66
|
"plugins": {
|
package/plugin-vue3.js
ADDED
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import * as Components from "./dist/js/BIMDataComponents/vue3/index.js";
|
|
2
|
+
import * as Directives from "./dist/js/BIMDataDirectives/vue3/index.js";
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* Instal components and directives from the design system.
|
|
6
|
+
* WARNING: The css needs to be added manually.
|
|
7
|
+
* @param { { directives?: boolean, includedComponents?: string[], excludedComponents?: string[] } } [cfg]
|
|
8
|
+
*/
|
|
9
|
+
const pluginFactory = cfg => {
|
|
10
|
+
return {
|
|
11
|
+
install(app) {
|
|
12
|
+
// COMPONENTS
|
|
13
|
+
Object.entries(Components).forEach(([componentName, component]) => {
|
|
14
|
+
if (
|
|
15
|
+
cfg &&
|
|
16
|
+
cfg.excludedComponents &&
|
|
17
|
+
cfg.excludedComponents.length > 0 &&
|
|
18
|
+
cfg.excludedComponents.includes(componentName)
|
|
19
|
+
) {
|
|
20
|
+
return;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
if (
|
|
24
|
+
!cfg ||
|
|
25
|
+
!cfg.includedComponents ||
|
|
26
|
+
cfg.includedComponents.includes(componentName)
|
|
27
|
+
) {
|
|
28
|
+
app.component(componentName, component);
|
|
29
|
+
}
|
|
30
|
+
});
|
|
31
|
+
|
|
32
|
+
// DIRECTIVES
|
|
33
|
+
if (!cfg || cfg.directives !== false) {
|
|
34
|
+
Object.entries(Directives).forEach(([directiveName, directive]) =>
|
|
35
|
+
app.directive(directiveName.split("BIMData")[1], directive)
|
|
36
|
+
);
|
|
37
|
+
}
|
|
38
|
+
},
|
|
39
|
+
};
|
|
40
|
+
};
|
|
41
|
+
|
|
42
|
+
export default pluginFactory;
|
package/plugin.js
ADDED
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import * as Components from "./dist/js/BIMDataComponents/index.js";
|
|
2
|
+
import * as Directives from "./dist/js/BIMDataDirectives/index.js";
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* Instal components and directives from the design system.
|
|
6
|
+
* WARNING: The css needs to be added manually.
|
|
7
|
+
* @param { { directives?: boolean, includedComponents?: string[], excludedComponents?: string[] } } [cfg]
|
|
8
|
+
*/
|
|
9
|
+
const pluginFactory = cfg => {
|
|
10
|
+
return {
|
|
11
|
+
install(Vue) {
|
|
12
|
+
// COMPONENTS
|
|
13
|
+
Object.entries(Components).forEach(([componentName, component]) => {
|
|
14
|
+
if (
|
|
15
|
+
cfg &&
|
|
16
|
+
cfg.excludedComponents &&
|
|
17
|
+
cfg.excludedComponents.length > 0 &&
|
|
18
|
+
cfg.excludedComponents.includes(componentName)
|
|
19
|
+
) {
|
|
20
|
+
return;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
if (
|
|
24
|
+
!cfg ||
|
|
25
|
+
!cfg.includedComponents ||
|
|
26
|
+
cfg.includedComponents.includes(componentName)
|
|
27
|
+
) {
|
|
28
|
+
Vue.component(componentName, component);
|
|
29
|
+
}
|
|
30
|
+
});
|
|
31
|
+
|
|
32
|
+
// DIRECTIVES
|
|
33
|
+
if (!cfg || cfg.directives !== false) {
|
|
34
|
+
Object.entries(Directives).forEach(([directiveName, directive]) =>
|
|
35
|
+
Vue.directive(directiveName.split("BIMData")[1], directive)
|
|
36
|
+
);
|
|
37
|
+
}
|
|
38
|
+
},
|
|
39
|
+
};
|
|
40
|
+
};
|
|
41
|
+
|
|
42
|
+
export default pluginFactory;
|