@bimdata/design-system 1.2.0-rc.4 → 1.2.0-rc.40
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/dist/css/design-system.css +4 -1
- package/dist/css/fonts.css +1 -1
- package/dist/js/BIMDataComponents/BIMDataButton.js +1 -1
- package/dist/js/BIMDataComponents/BIMDataCard.js +1 -1
- package/dist/js/BIMDataComponents/BIMDataCheckbox.js +1 -1
- package/dist/js/BIMDataComponents/BIMDataDropdownList.js +1 -1
- package/dist/js/BIMDataComponents/BIMDataDropdownMenu.js +1 -1
- package/dist/js/BIMDataComponents/BIMDataFileIcon.js +1 -1
- 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/BIMDataRadio.js +1 -1
- package/dist/js/BIMDataComponents/BIMDataSearch.js +1 -1
- package/dist/js/BIMDataComponents/BIMDataSelect.js +1 -1
- package/dist/js/BIMDataComponents/BIMDataSpinner.js +1 -1
- package/dist/js/BIMDataComponents/BIMDataTable.js +1 -1
- package/dist/js/BIMDataComponents/BIMDataTabs.js +1 -1
- package/dist/js/BIMDataComponents/BIMDataText.js +1 -1
- package/dist/js/BIMDataComponents/BIMDataTextarea.js +1 -1
- package/dist/js/BIMDataComponents/BIMDataTextbox.js +1 -1
- package/dist/js/BIMDataComponents/BIMDataToggle.js +1 -1
- package/dist/js/BIMDataComponents/BIMDataTooltip.js +1 -1
- package/dist/js/BIMDataComponents/index.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/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/BIMDataRadio.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/dist/scss/BIMData.scss +0 -2
- package/dist/scss/_BIMDataVariables.scss +3 -0
- package/package.json +5 -3
- package/plugin-vue3.js +42 -0
- package/plugin.js +42 -0
package/dist/scss/BIMData.scss
CHANGED
|
@@ -95,6 +95,9 @@ html {
|
|
|
95
95
|
/* base BOX-SHADOW ----------------------------------------- */
|
|
96
96
|
--box-shadow: 0px 2px 10px rgba(0, 0, 0, 0.1);
|
|
97
97
|
|
|
98
|
+
/* base BORDER RADIUS ----------------------------------------- */
|
|
99
|
+
--border-radius-tiny: 3px;
|
|
100
|
+
|
|
98
101
|
/* base SPACING UNIT -------------------------------------- */
|
|
99
102
|
--spacing-unit: 12px;
|
|
100
103
|
--size-btn-options: 45px;
|
package/package.json
CHANGED
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bimdata/design-system",
|
|
3
|
-
"version": "1.2.0-rc.
|
|
3
|
+
"version": "1.2.0-rc.40",
|
|
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": {
|
|
@@ -20,7 +22,7 @@
|
|
|
20
22
|
},
|
|
21
23
|
"devDependencies": {
|
|
22
24
|
"@babel/preset-env": "^7.10.2",
|
|
23
|
-
"@bimdata/typescript-fetch-api-client": "^
|
|
25
|
+
"@bimdata/typescript-fetch-api-client": "^7.0.0",
|
|
24
26
|
"@rollup/plugin-alias": "^3.1.1",
|
|
25
27
|
"@rollup/plugin-commonjs": "^21.0.1",
|
|
26
28
|
"@rollup/plugin-image": "^2.1.1",
|
|
@@ -54,7 +56,7 @@
|
|
|
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
58
|
"sass": "^1.42.1",
|
|
57
|
-
"sass-loader": "^8.0.
|
|
59
|
+
"sass-loader": "^8.0.2",
|
|
58
60
|
"semantic-release": "^18.0.0",
|
|
59
61
|
"vue": "^2.6.10",
|
|
60
62
|
"vue-clipboard2": "^0.3.1",
|
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;
|