@bimdata/bcf-components 1.1.0-rc.3 → 1.1.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 +17 -15
- package/dist/i18n/index.js +7 -1
- package/dist/i18n/lang/de.json +3 -20
- package/dist/i18n/lang/en.json +3 -20
- package/dist/i18n/lang/es.json +3 -20
- package/dist/i18n/lang/fr.json +3 -20
- package/dist/i18n/lang/it.json +3 -20
- package/dist/vue2/bcf-components.es.js +8311 -856
- package/dist/vue2/style.css +1 -1
- package/dist/vue3/bcf-components.es.js +8365 -1057
- package/dist/vue3/style.css +1 -1
- package/package.json +3 -2
package/README.md
CHANGED
|
@@ -31,20 +31,24 @@ Then, in your application bootstrap script, add the following:
|
|
|
31
31
|
```js
|
|
32
32
|
import Vue from "vue";
|
|
33
33
|
import VueCompositionApi from "@vue/composition-api";
|
|
34
|
+
import VueI18n from "vue-i18n"; // v8.x
|
|
35
|
+
import { makeBIMDataApiClient } from "@bimdata/typescript-fetch-api-client"; // v8.2+
|
|
36
|
+
// Import Vue 2 plugin factory
|
|
37
|
+
import BIMDataBcfComponents from "@bimdata/bcf-components/vue2-plugin.js";
|
|
34
38
|
...
|
|
35
39
|
|
|
40
|
+
// Instanciate i18n plugin
|
|
41
|
+
const i18nPlugin = new VueI18n({ ... });
|
|
42
|
+
// Instanciate BIMData API client
|
|
43
|
+
const apiClient = makeBIMDataApiClient({ ... });
|
|
44
|
+
|
|
36
45
|
Vue.use(VueCompositionApi);
|
|
46
|
+
Vue.use(i18nPlugin);
|
|
47
|
+
// Provide both i18n plugin and API client as plugin config
|
|
48
|
+
Vue.use(BIMDataBcfComponents({ i18nPlugin, apiClient }));
|
|
37
49
|
...
|
|
38
50
|
```
|
|
39
51
|
|
|
40
|
-
You can now use library components like so:
|
|
41
|
-
|
|
42
|
-
```js
|
|
43
|
-
import { components } from "@bimdata/bcf-components/dist/vue2/bcf-components.es.js";
|
|
44
|
-
|
|
45
|
-
const { BcfTopicCard } = components;
|
|
46
|
-
```
|
|
47
|
-
|
|
48
52
|
### Vue 3.x application
|
|
49
53
|
|
|
50
54
|
**Using Vue plugin**
|
|
@@ -54,14 +58,14 @@ and make all components available globally.
|
|
|
54
58
|
|
|
55
59
|
```js
|
|
56
60
|
import { createApp } from "vue";
|
|
57
|
-
import { createI18n } from "vue-i18n";
|
|
58
|
-
import { makeBIMDataApiClient } from "@bimdata/typescript-fetch-api-client";
|
|
61
|
+
import { createI18n } from "vue-i18n"; // v9.x
|
|
62
|
+
import { makeBIMDataApiClient } from "@bimdata/typescript-fetch-api-client"; // v8.2+
|
|
59
63
|
// Import Vue 3 plugin factory
|
|
60
64
|
import BIMDataBcfComponents from "@bimdata/bcf-components/vue3-plugin.js";
|
|
61
65
|
|
|
62
|
-
// Instanciate i18n plugin
|
|
66
|
+
// Instanciate i18n plugin
|
|
63
67
|
const i18nPlugin = createI18n({ ... });
|
|
64
|
-
// Instanciate BIMData API client
|
|
68
|
+
// Instanciate BIMData API client
|
|
65
69
|
const apiClient = makeBIMDataApiClient({ ... });
|
|
66
70
|
|
|
67
71
|
const app = createApp()
|
|
@@ -95,9 +99,7 @@ setApiClient(apiClient);
|
|
|
95
99
|
Then you can directly use components in your app that way:
|
|
96
100
|
|
|
97
101
|
```js
|
|
98
|
-
import {
|
|
99
|
-
|
|
100
|
-
const { BcfTopicCard } = components;
|
|
102
|
+
import { BcfTopicCard } from "@bimdata/bcf-components";
|
|
101
103
|
```
|
|
102
104
|
|
|
103
105
|
## Build
|
package/dist/i18n/index.js
CHANGED
package/dist/i18n/lang/de.json
CHANGED
|
@@ -46,32 +46,14 @@
|
|
|
46
46
|
"noElements": "0 Elemente",
|
|
47
47
|
"see": "Anzeigen"
|
|
48
48
|
},
|
|
49
|
-
"BcfTopicCreate": {
|
|
50
|
-
"dragDropImageText": "Bitte wählen Sie eine Datei aus",
|
|
51
|
-
"addPictureButton": "Ein Bild hinzufügen",
|
|
52
|
-
"titlePlaceholder": "Titel *",
|
|
53
|
-
"titleErrorMessage": "Fehlender Titel",
|
|
54
|
-
"typeLabel": "Typ",
|
|
55
|
-
"priorityLabel": "Priorität",
|
|
56
|
-
"statusLabel": "Status",
|
|
57
|
-
"stageLabel": "Phase",
|
|
58
|
-
"assignedToLabel": "Zugewiesen an",
|
|
59
|
-
"dueDateLabel": "Fälligkeitsdatum (TT.MM.JJJJ)",
|
|
60
|
-
"dateErrorMessage": "Datumsformat oder falsches Datum",
|
|
61
|
-
"dateExample": "(Z. B.: 28.04.2022)",
|
|
62
|
-
"descriptionLabel": "Beschreibung",
|
|
63
|
-
"tagsLabel": "Tags",
|
|
64
|
-
"validateButton": "Bestätigen"
|
|
65
|
-
},
|
|
66
49
|
"BcfTopicCreationCard": {
|
|
67
50
|
"text": "Ein neues BCF-Thema erstellen",
|
|
68
51
|
"createBcfSideTitle": "Ein Problem melden"
|
|
69
52
|
},
|
|
70
53
|
"BcfTopicForm": {
|
|
71
|
-
"goBackButton": "Zurück",
|
|
72
54
|
"dragDropImageText": "Bitte wählen Sie eine Datei aus.",
|
|
73
55
|
"addPictureButton": "Fügen Sie ein Bild hinzu.",
|
|
74
|
-
"titlePlaceholder": "Titel*",
|
|
56
|
+
"titlePlaceholder": "Titel *",
|
|
75
57
|
"titleErrorMessage": "Titel fehlt",
|
|
76
58
|
"typeLabel": "Typ",
|
|
77
59
|
"priorityLabel": "Priorität",
|
|
@@ -83,7 +65,8 @@
|
|
|
83
65
|
"dateExample": "(Z. B.: 28.04.2022)",
|
|
84
66
|
"descriptionLabel": "Beschreibung",
|
|
85
67
|
"tagsPlaceholder": "Tags",
|
|
86
|
-
"
|
|
68
|
+
"createButton": "Bestätigen",
|
|
69
|
+
"updateButton": "Diesen BCF bearbeiten",
|
|
87
70
|
"modalText": "Sie sind dabei, die Bearbeitung der Ausgabe {Name} zu beenden, aber es gibt noch ungespeicherte Änderungen.",
|
|
88
71
|
"cancelButton": "Änderungen verwerfen",
|
|
89
72
|
"continueButton": "Änderungen fortsetzen"
|
package/dist/i18n/lang/en.json
CHANGED
|
@@ -46,32 +46,14 @@
|
|
|
46
46
|
"noElements": "0 Element",
|
|
47
47
|
"see": "See"
|
|
48
48
|
},
|
|
49
|
-
"BcfTopicCreate": {
|
|
50
|
-
"dragDropImageText": "Please select a file",
|
|
51
|
-
"addPictureButton": "Add a picture",
|
|
52
|
-
"titlePlaceholder": "Title *",
|
|
53
|
-
"titleErrorMessage": "Missing title",
|
|
54
|
-
"typeLabel": "Type",
|
|
55
|
-
"priorityLabel": "Priority",
|
|
56
|
-
"statusLabel": "Status",
|
|
57
|
-
"stageLabel": "Stage",
|
|
58
|
-
"assignedToLabel": "Assigned to",
|
|
59
|
-
"dueDateLabel": "Due date",
|
|
60
|
-
"dateErrorMessage": "Date format or incorrect date",
|
|
61
|
-
"dateExample": "(Ex: 28/04/2022)",
|
|
62
|
-
"descriptionLabel": "Description",
|
|
63
|
-
"labelsLabel": "Tags",
|
|
64
|
-
"validateButton": "Validate"
|
|
65
|
-
},
|
|
66
49
|
"BcfTopicCreationCard": {
|
|
67
50
|
"text": "Create a new BCF topic",
|
|
68
51
|
"createBcfSideTitle": "Report a problem"
|
|
69
52
|
},
|
|
70
53
|
"BcfTopicForm": {
|
|
71
|
-
"goBackButton": "Back",
|
|
72
54
|
"dragDropImageText": "Please select a file",
|
|
73
55
|
"addPictureButton": "Add a picture",
|
|
74
|
-
"titlePlaceholder": "Title*",
|
|
56
|
+
"titlePlaceholder": "Title *",
|
|
75
57
|
"titleErrorMessage": "Missing title",
|
|
76
58
|
"typeLabel": "Type",
|
|
77
59
|
"priorityLabel": "Priority",
|
|
@@ -83,7 +65,8 @@
|
|
|
83
65
|
"dateExample": "(Ex: 28/04/2022)",
|
|
84
66
|
"descriptionLabel": "Description",
|
|
85
67
|
"labelsLabel": "Tags",
|
|
86
|
-
"
|
|
68
|
+
"createButton": "Validate",
|
|
69
|
+
"updateButton": "Modify this BCF",
|
|
87
70
|
"modalText": "You are about to quit editing issue {name} but there are unsaved changes.",
|
|
88
71
|
"cancelButton": "Discard changes",
|
|
89
72
|
"continueButton": "Continue editing"
|
package/dist/i18n/lang/es.json
CHANGED
|
@@ -46,32 +46,14 @@
|
|
|
46
46
|
"noElements": "0 Elemento",
|
|
47
47
|
"see": "Ver"
|
|
48
48
|
},
|
|
49
|
-
"BcfTopicCreate": {
|
|
50
|
-
"dragDropImageText": "Seleccione un archivo",
|
|
51
|
-
"addPictureButton": "Añadir una imagen",
|
|
52
|
-
"titlePlaceholder": "Título *",
|
|
53
|
-
"titleErrorMessage": "Falta el título",
|
|
54
|
-
"typeLabel": "Tipo",
|
|
55
|
-
"priorityLabel": "Prioridad",
|
|
56
|
-
"statusLabel": "Estado",
|
|
57
|
-
"stageLabel": "Fase",
|
|
58
|
-
"assignedToLabel": "Asignado a",
|
|
59
|
-
"dueDateLabel": "Fecha de vencimiento (DD/MM/AAAA)",
|
|
60
|
-
"dateErrorMessage": "Formato de la fecha o fecha incorrecta",
|
|
61
|
-
"dateExample": "(Ej: 28/04/2022)",
|
|
62
|
-
"descriptionLabel": "Descripción",
|
|
63
|
-
"tagsLabel": "Etiquetas:",
|
|
64
|
-
"validateButton": "Validar"
|
|
65
|
-
},
|
|
66
49
|
"BcfTopicCreationCard": {
|
|
67
50
|
"text": "Crear un nuevo tema BCF",
|
|
68
51
|
"createBcfSideTitle": "Informar de un problema"
|
|
69
52
|
},
|
|
70
53
|
"BcfTopicForm": {
|
|
71
|
-
"goBackButton": "Volver",
|
|
72
54
|
"dragDropImageText": "Seleccione un archivo",
|
|
73
55
|
"addPictureButton": "Añadir una imagen",
|
|
74
|
-
"titlePlaceholder": "Título",
|
|
56
|
+
"titlePlaceholder": "Título *",
|
|
75
57
|
"titleErrorMessage": "Falta el título",
|
|
76
58
|
"typeLabel": "Tipo",
|
|
77
59
|
"priorityLabel": "Prioridad",
|
|
@@ -83,7 +65,8 @@
|
|
|
83
65
|
"dateExample": "(Ej: 28/04/2022)",
|
|
84
66
|
"descriptionLabel": "Descripción",
|
|
85
67
|
"tagsPlaceholder": "Etiquetas:",
|
|
86
|
-
"
|
|
68
|
+
"createButton": "Validar",
|
|
69
|
+
"updateButton": "Modificar este BCF",
|
|
87
70
|
"modalText": "Está a punto de salir de la edición del problema de {name} pero hay cambios sin guardar.",
|
|
88
71
|
"cancelButton": "Cancelar los cambios",
|
|
89
72
|
"continueButton": "Continuar con los cambios"
|
package/dist/i18n/lang/fr.json
CHANGED
|
@@ -46,32 +46,14 @@
|
|
|
46
46
|
"notSpecified": "Non défini",
|
|
47
47
|
"see": "Voir"
|
|
48
48
|
},
|
|
49
|
-
"BcfTopicCreate": {
|
|
50
|
-
"dragDropImageText": "Veuillez sélectionner un fichier",
|
|
51
|
-
"addPictureButton": "Ajouter une image",
|
|
52
|
-
"titlePlaceholder": "Titre *",
|
|
53
|
-
"titleErrorMessage": "Titre manquant",
|
|
54
|
-
"typeLabel": "Type",
|
|
55
|
-
"priorityLabel": "Priorité",
|
|
56
|
-
"statusLabel": "Statut",
|
|
57
|
-
"stageLabel": "Phase",
|
|
58
|
-
"assignedToLabel": "Assigné à",
|
|
59
|
-
"dueDateLabel": "Date d'échéance (JJ/MM/AAAA)",
|
|
60
|
-
"dateErrorMessage": "Format de date ou date incorrecte",
|
|
61
|
-
"dateExample": "(Ex: 28/04/2022)",
|
|
62
|
-
"descriptionLabel": "Description",
|
|
63
|
-
"labelsLabel": "Tags",
|
|
64
|
-
"validateButton": "Valider"
|
|
65
|
-
},
|
|
66
49
|
"BcfTopicCreationCard": {
|
|
67
50
|
"text": "Créer un nouveau topic BCF",
|
|
68
51
|
"createBcfSideTitle": "Signaler un problème"
|
|
69
52
|
},
|
|
70
53
|
"BcfTopicForm": {
|
|
71
|
-
"goBackButton": "Retour",
|
|
72
54
|
"dragDropImageText": "Veuillez sélectionner un fichier",
|
|
73
55
|
"addPictureButton": "Ajouter une image",
|
|
74
|
-
"titlePlaceholder": "Titre*",
|
|
56
|
+
"titlePlaceholder": "Titre *",
|
|
75
57
|
"titleErrorMessage": "Titre manquant",
|
|
76
58
|
"typeLabel": "Type",
|
|
77
59
|
"priorityLabel": "Priorité",
|
|
@@ -83,7 +65,8 @@
|
|
|
83
65
|
"dateExample": "(Ex: 28/04/2022)",
|
|
84
66
|
"descriptionLabel": "Description",
|
|
85
67
|
"labelsLabel": "Tags",
|
|
86
|
-
"
|
|
68
|
+
"createButton": "Valider",
|
|
69
|
+
"updateButton": "Modifier ce BCF",
|
|
87
70
|
"modalText": "Vous êtes sur le point de quitter l'édition de l'issue {name} mais il y'a des modifications non enregistrées.",
|
|
88
71
|
"cancelButton": "Annuler les modifications",
|
|
89
72
|
"continueButton": "Continuer les modifications"
|
package/dist/i18n/lang/it.json
CHANGED
|
@@ -46,32 +46,14 @@
|
|
|
46
46
|
"noElements": "0 elementi",
|
|
47
47
|
"see": "Visualizza"
|
|
48
48
|
},
|
|
49
|
-
"BcfTopicCreate": {
|
|
50
|
-
"dragDropImageText": "Seleziona un file",
|
|
51
|
-
"addPictureButton": "Aggiungi un'immagine",
|
|
52
|
-
"titlePlaceholder": "Titolo*",
|
|
53
|
-
"titleErrorMessage": "Titolo assente",
|
|
54
|
-
"typeLabel": "Tipo",
|
|
55
|
-
"priorityLabel": "Priorità",
|
|
56
|
-
"statusLabel": "Stato",
|
|
57
|
-
"stageLabel": "Fase",
|
|
58
|
-
"assignedToLabel": "Assegnato a",
|
|
59
|
-
"dueDateLabel": "Data di scadenza (GG/MM/AAAA)",
|
|
60
|
-
"dateErrorMessage": "Formato della data o data errati",
|
|
61
|
-
"dateExample": "(Ad es. 28/04/2022)",
|
|
62
|
-
"descriptionLabel": "Descrizione",
|
|
63
|
-
"tagsLabel": "Etichette",
|
|
64
|
-
"validateButton": "Conferma"
|
|
65
|
-
},
|
|
66
49
|
"BcfTopicCreationCard": {
|
|
67
50
|
"text": "Crea un nuovo topic BCF",
|
|
68
51
|
"createBcfSideTitle": "Segnala un problema"
|
|
69
52
|
},
|
|
70
53
|
"BcfTopicForm": {
|
|
71
|
-
"goBackButton": "Indietro",
|
|
72
54
|
"dragDropImageText": "Selezionare un file",
|
|
73
55
|
"addPictureButton": "Aggiungere un'immagine",
|
|
74
|
-
"titlePlaceholder": "Titolo*",
|
|
56
|
+
"titlePlaceholder": "Titolo *",
|
|
75
57
|
"titleErrorMessage": "Titolo mancante",
|
|
76
58
|
"typeLabel": "Tipo",
|
|
77
59
|
"priorityLabel": "Priorità",
|
|
@@ -83,7 +65,8 @@
|
|
|
83
65
|
"dateExample": "(Ad es. 28/04/2022)",
|
|
84
66
|
"descriptionLabel": "Descrizione",
|
|
85
67
|
"tagsPlaceholder": "Tags",
|
|
86
|
-
"
|
|
68
|
+
"createButton": "Conferma",
|
|
69
|
+
"updateButton": "Modificare questo BCF",
|
|
87
70
|
"modalText": "State per abbandonare la modifica di {name} ma ci sono modifiche non salvate.",
|
|
88
71
|
"cancelButton": "Annullare le modifiche",
|
|
89
72
|
"continueButton": "Continuare le modifiche"
|