@bimdata/design-system 1.2.0-rc.9 → 1.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (52) hide show
  1. package/README.md +1 -1
  2. package/dist/css/design-system.css +22 -22
  3. package/dist/js/BIMDataComponents/BIMDataButton.js +1 -1
  4. package/dist/js/BIMDataComponents/BIMDataCheckbox.js +1 -1
  5. package/dist/js/BIMDataComponents/BIMDataDropdownList.js +1 -1
  6. package/dist/js/BIMDataComponents/BIMDataFileIcon.js +1 -1
  7. package/dist/js/BIMDataComponents/BIMDataIcon.js +1 -1
  8. package/dist/js/BIMDataComponents/BIMDataIllustration.js +1 -1
  9. package/dist/js/BIMDataComponents/BIMDataInput.js +1 -1
  10. package/dist/js/BIMDataComponents/BIMDataLoading.js +1 -1
  11. package/dist/js/BIMDataComponents/BIMDataNavigation.js +1 -1
  12. package/dist/js/BIMDataComponents/BIMDataPaginatedList.js +1 -1
  13. package/dist/js/BIMDataComponents/BIMDataSearch.js +1 -1
  14. package/dist/js/BIMDataComponents/BIMDataSelect.js +1 -1
  15. package/dist/js/BIMDataComponents/BIMDataTable.js +1 -1
  16. package/dist/js/BIMDataComponents/BIMDataTabs.js +1 -1
  17. package/dist/js/BIMDataComponents/BIMDataTextarea.js +1 -1
  18. package/dist/js/BIMDataComponents/BIMDataTooltip.js +1 -1
  19. package/dist/js/BIMDataComponents/index.js +1 -1
  20. package/dist/js/BIMDataComponents/vue3/BIMDataBigSpinner.js +1 -1
  21. package/dist/js/BIMDataComponents/vue3/BIMDataButton.js +1 -1
  22. package/dist/js/BIMDataComponents/vue3/BIMDataCard.js +1 -1
  23. package/dist/js/BIMDataComponents/vue3/BIMDataCheckbox.js +1 -1
  24. package/dist/js/BIMDataComponents/vue3/BIMDataDropdownList.js +1 -1
  25. package/dist/js/BIMDataComponents/vue3/BIMDataDropdownMenu.js +1 -1
  26. package/dist/js/BIMDataComponents/vue3/BIMDataFileIcon.js +1 -1
  27. package/dist/js/BIMDataComponents/vue3/BIMDataIcon.js +1 -1
  28. package/dist/js/BIMDataComponents/vue3/BIMDataIllustration.js +1 -1
  29. package/dist/js/BIMDataComponents/vue3/BIMDataInput.js +1 -1
  30. package/dist/js/BIMDataComponents/vue3/BIMDataLoading.js +1 -1
  31. package/dist/js/BIMDataComponents/vue3/BIMDataNavigation.js +1 -1
  32. package/dist/js/BIMDataComponents/vue3/BIMDataPaginatedList.js +1 -1
  33. package/dist/js/BIMDataComponents/vue3/BIMDataPieSpinner.js +1 -1
  34. package/dist/js/BIMDataComponents/vue3/BIMDataRadio.js +1 -1
  35. package/dist/js/BIMDataComponents/vue3/BIMDataResponsiveGrid.js +1 -1
  36. package/dist/js/BIMDataComponents/vue3/BIMDataSearch.js +1 -1
  37. package/dist/js/BIMDataComponents/vue3/BIMDataSelect.js +1 -1
  38. package/dist/js/BIMDataComponents/vue3/BIMDataSpinner.js +1 -1
  39. package/dist/js/BIMDataComponents/vue3/BIMDataTable.js +1 -1
  40. package/dist/js/BIMDataComponents/vue3/BIMDataTabs.js +1 -1
  41. package/dist/js/BIMDataComponents/vue3/BIMDataText.js +1 -1
  42. package/dist/js/BIMDataComponents/vue3/BIMDataTextarea.js +1 -1
  43. package/dist/js/BIMDataComponents/vue3/BIMDataTextbox.js +1 -1
  44. package/dist/js/BIMDataComponents/vue3/BIMDataToggle.js +1 -1
  45. package/dist/js/BIMDataComponents/vue3/BIMDataTooltip.js +1 -1
  46. package/dist/js/BIMDataComponents/vue3/index.js +1 -0
  47. package/dist/js/BIMDataDirectives/index.js +1 -0
  48. package/dist/js/BIMDataDirectives/vue3/index.js +1 -0
  49. package/dist/js/BIMDataSmartComponents/BIMDataFileManager.js +1 -1
  50. package/package.json +34 -32
  51. package/plugin-vue3.js +42 -0
  52. package/plugin.js +42 -0
package/package.json CHANGED
@@ -1,11 +1,13 @@
1
1
  {
2
2
  "name": "@bimdata/design-system",
3
- "version": "1.2.0-rc.9",
3
+ "version": "1.2.0",
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,48 @@
19
21
  "semantic-release": "semantic-release"
20
22
  },
21
23
  "devDependencies": {
22
- "@babel/preset-env": "^7.10.2",
23
- "@bimdata/typescript-fetch-api-client": "^6.17.2",
24
- "@rollup/plugin-alias": "^3.1.1",
25
- "@rollup/plugin-commonjs": "^21.0.1",
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.0.6",
28
- "@rollup/plugin-replace": "^2.3.3",
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.1",
32
+ "@semantic-release/commit-analyzer": "^9.0.2",
31
33
  "@semantic-release/git": "^10.0.1",
32
- "@semantic-release/github": "^8.0.2",
34
+ "@semantic-release/github": "^8.0.4",
33
35
  "@semantic-release/npm": "^8.0.3",
34
- "@semantic-release/release-notes-generator": "^10.0.2",
35
- "@vue/cli-plugin-unit-jest": "^4.4.1",
36
- "@vue/cli-service": "^4.0.0",
37
- "@vue/compiler-sfc": "^3.0.4",
38
- "@vue/test-utils": "^1.0.3",
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": "^7.2.0",
41
- "eslint-config-prettier": "^6.11.0",
42
- "eslint-plugin-prettier": "^3.1.3",
42
+ "eslint": "^7.32.0",
43
+ "eslint-config-prettier": "^6.15.0",
44
+ "eslint-plugin-prettier": "^3.4.1",
43
45
  "eslint-plugin-vue": "^6.2.2",
44
46
  "i": "^0.3.7",
45
47
  "npm": "^7.24.2",
46
- "postcss": "^8.2.10",
47
- "prettier": "^2.0.5",
48
- "prismjs": "^1.25.0",
49
- "rollup": "^2.2.0",
50
- "rollup-plugin-copy": "^3.3.0",
51
- "rollup-plugin-css-only": "^2.0.0",
52
- "rollup-plugin-postcss": "^4.0.0",
53
- "rollup-plugin-terser": "^5.3.0",
48
+ "postcss": "^8.4.12",
49
+ "prettier": "^2.6.1",
50
+ "prismjs": "^1.27.0",
51
+ "rollup": "^2.70.1",
52
+ "rollup-plugin-copy": "^3.4.0",
53
+ "rollup-plugin-css-only": "^2.1.0",
54
+ "rollup-plugin-postcss": "^4.0.2",
55
+ "rollup-plugin-terser": "^5.3.1",
54
56
  "rollup-plugin-vue2": "npm:rollup-plugin-vue@^5.1.9",
55
57
  "rollup-plugin-vue3": "npm:rollup-plugin-vue@^6.0.0",
56
- "sass": "^1.42.1",
58
+ "sass": "^1.49.9",
57
59
  "sass-loader": "^8.0.2",
58
- "semantic-release": "^18.0.0",
59
- "vue": "^2.6.10",
60
- "vue-clipboard2": "^0.3.1",
61
- "vue-router": "^3.1.3",
62
- "vue-template-compiler": "^2.6.10",
63
- "vuex": "^3.1.2"
60
+ "semantic-release": "^18.0.1",
61
+ "vue": "^2.6.14",
62
+ "vue-clipboard2": "^0.3.3",
63
+ "vue-router": "^3.5.3",
64
+ "vue-template-compiler": "^2.6.14",
65
+ "vuex": "^3.6.2"
64
66
  },
65
67
  "postcss": {
66
68
  "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;