@bimdata/bcf-components 3.0.0-rc.4 → 3.0.0-rc.7
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 +8 -7
- package/dist/vue2/bcf-components.mjs +6759 -0
- package/dist/vue2/style.css +1 -1
- package/dist/vue3/bcf-components.mjs +12184 -0
- package/dist/vue3/style.css +1 -1
- package/package.json +18 -17
- package/vue2-plugin.js +11 -6
- package/vue3-plugin.js +11 -6
- package/dist/vue2/bcf-components.es.js +0 -4628
- package/dist/vue3/bcf-components.es.js +0 -5411
package/README.md
CHANGED
|
@@ -15,7 +15,7 @@ npm install @bimdata/bcf-components
|
|
|
15
15
|
Then refer to the next sub-sections on how to use the library depending
|
|
16
16
|
on which version of Vue you're using.
|
|
17
17
|
|
|
18
|
-
### Vue 2.7
|
|
18
|
+
### Vue 2.7 application
|
|
19
19
|
|
|
20
20
|
**Note:** the library won't work as expected for versions of Vue below **2.7**.
|
|
21
21
|
|
|
@@ -76,15 +76,16 @@ To setup the library without the use of the plugin you have to provide your own
|
|
|
76
76
|
(as described above in the *Using Vue plugin* section) and inject an API client like so:
|
|
77
77
|
|
|
78
78
|
```js
|
|
79
|
-
import { makeBIMDataApiClient } from "@bimdata/typescript-fetch-api-client";
|
|
80
|
-
// Import
|
|
81
|
-
import {
|
|
79
|
+
import { makeBIMDataApiClient } from "@bimdata/typescript-fetch-api-client"; // v8.2+
|
|
80
|
+
// Import `createService` and `setService` utils
|
|
81
|
+
import { createService, setService } from "@bimdata/bcf-components";
|
|
82
82
|
|
|
83
|
-
// Instanciate BIMData API client
|
|
83
|
+
// Instanciate BIMData API client
|
|
84
84
|
const apiClient = makeBIMDataApiClient({ ... });
|
|
85
85
|
|
|
86
|
-
//
|
|
87
|
-
|
|
86
|
+
// Initialize library service
|
|
87
|
+
const service = createService(apiClient);
|
|
88
|
+
setService(service);
|
|
88
89
|
```
|
|
89
90
|
|
|
90
91
|
Then you can directly use components in your app that way:
|