@bimdata/bcf-components 1.1.0-rc.2 → 1.1.0-rc.22

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 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 (v9+)
66
+ // Instanciate i18n plugin
63
67
  const i18nPlugin = createI18n({ ... });
64
- // Instanciate BIMData API client (v8.2+)
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 { components } from "@bimdata/bcf-components";
99
-
100
- const { BcfTopicCard } = components;
102
+ import { BcfTopicCard } from "@bimdata/bcf-components";
101
103
  ```
102
104
 
103
105
  ## Build
@@ -1,7 +1,13 @@
1
+ import de from "./lang/de.json";
1
2
  import en from "./lang/en.json";
3
+ import es from "./lang/es.json";
2
4
  import fr from "./lang/fr.json";
5
+ import it from "./lang/it.json";
3
6
 
4
7
  export default {
8
+ de,
5
9
  en,
6
- fr
10
+ es,
11
+ fr,
12
+ it,
7
13
  };
@@ -14,10 +14,7 @@
14
14
  "tagsLabel": "Tags",
15
15
  "resetButton": "Zurücksetzen",
16
16
  "searchButton": "Suchen",
17
- "noPriority": "Keine Priorität",
18
- "undefinedStatus": "Nicht definiert",
19
- "undefinedUser": "Nicht definiert",
20
- "undefinedCreator": "Nicht definiert"
17
+ "undefined": "Nicht definiert"
21
18
  },
22
19
  "BcfSettings": {
23
20
  "goBackButton": "Zurück",
@@ -46,41 +43,27 @@
46
43
  "noElements": "0 Elemente",
47
44
  "see": "Anzeigen"
48
45
  },
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
46
  "BcfTopicCreationCard": {
67
47
  "text": "Ein neues BCF-Thema erstellen",
68
48
  "createBcfSideTitle": "Ein Problem melden"
69
49
  },
70
50
  "BcfTopicForm": {
71
- "goBackButton": "Zurück",
72
51
  "dragDropImageText": "Bitte wählen Sie eine Datei aus.",
73
52
  "addPictureButton": "Fügen Sie ein Bild hinzu.",
74
- "titlePlaceholder": "Titel*",
53
+ "titlePlaceholder": "Titel *",
75
54
  "titleErrorMessage": "Titel fehlt",
76
55
  "typeLabel": "Typ",
77
56
  "priorityLabel": "Priorität",
78
57
  "statusLabel": "Status",
79
58
  "stageLabel": "Phase",
80
59
  "assignedToLabel": "Zugewiesen an",
60
+ "dueDateLabel": "Fälligkeitsdatum (TT.MM.JJJJ)",
61
+ "dateErrorMessage": "Datumsformat oder falsches Datum",
62
+ "dateExample": "(Z. B.: 28.04.2022)",
81
63
  "descriptionLabel": "Beschreibung",
82
64
  "tagsPlaceholder": "Tags",
83
- "editButton": "Diesen BCF bearbeiten",
65
+ "createButton": "Bestätigen",
66
+ "updateButton": "Diesen BCF bearbeiten",
84
67
  "modalText": "Sie sind dabei, die Bearbeitung der Ausgabe {Name} zu beenden, aber es gibt noch ungespeicherte Änderungen.",
85
68
  "cancelButton": "Änderungen verwerfen",
86
69
  "continueButton": "Änderungen fortsetzen"
@@ -14,10 +14,7 @@
14
14
  "tagsLabel": "Tags",
15
15
  "resetButton": "Reset",
16
16
  "searchButton": "Search",
17
- "noPriority": "No priority",
18
- "undefinedStatus": "Undefined",
19
- "undefinedUser": "Undefined",
20
- "undefinedCreator": "Undefined"
17
+ "undefined": "Not defined"
21
18
  },
22
19
  "BcfSettings": {
23
20
  "goBackButton": "Back",
@@ -46,41 +43,29 @@
46
43
  "noElements": "0 Element",
47
44
  "see": "See"
48
45
  },
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
46
  "BcfTopicCreationCard": {
67
47
  "text": "Create a new BCF topic",
68
48
  "createBcfSideTitle": "Report a problem"
69
49
  },
70
50
  "BcfTopicForm": {
71
- "goBackButton": "Back",
72
51
  "dragDropImageText": "Please select a file",
52
+ "addObjectButton": "Object",
53
+ "addAnnotationButton": "Annotation",
73
54
  "addPictureButton": "Add a picture",
74
- "titlePlaceholder": "Title*",
55
+ "titlePlaceholder": "Title *",
75
56
  "titleErrorMessage": "Missing title",
76
57
  "typeLabel": "Type",
77
58
  "priorityLabel": "Priority",
78
59
  "statusLabel": "Status",
79
60
  "stageLabel": "Stage",
80
61
  "assignedToLabel": "Assigned to",
62
+ "dueDateLabel": "Due date",
63
+ "dateErrorMessage": "Date format or incorrect date",
64
+ "dateExample": "(Ex: 28/04/2022)",
81
65
  "descriptionLabel": "Description",
82
66
  "labelsLabel": "Tags",
83
- "editButton": "Modify this BCF",
67
+ "createButton": "Validate",
68
+ "updateButton": "Modify this BCF",
84
69
  "modalText": "You are about to quit editing issue {name} but there are unsaved changes.",
85
70
  "cancelButton": "Discard changes",
86
71
  "continueButton": "Continue editing"
@@ -14,10 +14,7 @@
14
14
  "tagsLabel": "Etiquetas:",
15
15
  "resetButton": "Restablecer",
16
16
  "searchButton": "Buscar en",
17
- "noPriority": "Sin prioridad",
18
- "undefinedStatus": "No definido",
19
- "undefinedUser": "No definido",
20
- "undefinedCreator": "No definido"
17
+ "undefined": "No definido"
21
18
  },
22
19
  "BcfSettings": {
23
20
  "goBackButton": "Volver",
@@ -46,41 +43,27 @@
46
43
  "noElements": "0 Elemento",
47
44
  "see": "Ver"
48
45
  },
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
46
  "BcfTopicCreationCard": {
67
47
  "text": "Crear un nuevo tema BCF",
68
48
  "createBcfSideTitle": "Informar de un problema"
69
49
  },
70
50
  "BcfTopicForm": {
71
- "goBackButton": "Volver",
72
51
  "dragDropImageText": "Seleccione un archivo",
73
52
  "addPictureButton": "Añadir una imagen",
74
- "titlePlaceholder": "Título",
53
+ "titlePlaceholder": "Título *",
75
54
  "titleErrorMessage": "Falta el título",
76
55
  "typeLabel": "Tipo",
77
56
  "priorityLabel": "Prioridad",
78
57
  "statusLabel": "Estado",
79
58
  "stageLabel": "Fase",
80
59
  "assignedToLabel": "Asignado a",
60
+ "dueDateLabel": "Fecha de vencimiento (DD/MM/AAAA)",
61
+ "dateErrorMessage": "Formato de la fecha o fecha incorrecta",
62
+ "dateExample": "(Ej: 28/04/2022)",
81
63
  "descriptionLabel": "Descripción",
82
64
  "tagsPlaceholder": "Etiquetas:",
83
- "editButton": "Modificar este BCF",
65
+ "createButton": "Validar",
66
+ "updateButton": "Modificar este BCF",
84
67
  "modalText": "Está a punto de salir de la edición del problema de {name} pero hay cambios sin guardar.",
85
68
  "cancelButton": "Cancelar los cambios",
86
69
  "continueButton": "Continuar con los cambios"
@@ -6,18 +6,17 @@
6
6
  "priorityLabel": "Priorité",
7
7
  "statusLabel": "Statut",
8
8
  "startDatePlaceholder": "Date de début",
9
+ "startDateError": "Date invalide",
9
10
  "startDateExample": "(Ex: 28/04/2022)",
10
11
  "endDatePlaceholder": "Date de fin",
12
+ "endDateError": "Date invalide",
11
13
  "endDateExample": "(Ex: 28/05/2022)",
12
14
  "assignedToLabel": "Assigné à",
13
15
  "creatorsLabel": "Créé par",
14
16
  "tagsLabel": "Tags",
15
17
  "resetButton": "Réinitialiser",
16
18
  "searchButton": "Rechercher",
17
- "noPriority": "Aucune priorité",
18
- "undefinedStatus": "Non défini",
19
- "undefinedUser": "Non défini",
20
- "undefinedCreator": "Non défini"
19
+ "undefined": "Non défini"
21
20
  },
22
21
  "BcfSettings": {
23
22
  "goBackButton": "Retour",
@@ -46,41 +45,30 @@
46
45
  "notSpecified": "Non défini",
47
46
  "see": "Voir"
48
47
  },
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
48
  "BcfTopicCreationCard": {
67
49
  "text": "Créer un nouveau topic BCF",
68
50
  "createBcfSideTitle": "Signaler un problème"
69
51
  },
70
52
  "BcfTopicForm": {
71
- "goBackButton": "Retour",
72
53
  "dragDropImageText": "Veuillez sélectionner un fichier",
54
+ "addObjectButton": "Objet",
55
+ "addAnnotationButton": "Annotation",
56
+ "annotationButtonTooltip": "Ce topic ne possède actuellement aucun point de vue",
73
57
  "addPictureButton": "Ajouter une image",
74
- "titlePlaceholder": "Titre*",
58
+ "titlePlaceholder": "Titre *",
75
59
  "titleErrorMessage": "Titre manquant",
76
60
  "typeLabel": "Type",
77
61
  "priorityLabel": "Priorité",
78
62
  "statusLabel": "Statut",
79
63
  "stageLabel": "Phase",
80
64
  "assignedToLabel": "Assigné à",
65
+ "dueDateLabel": "Date d'échéance (JJ/MM/AAAA)",
66
+ "dateErrorMessage": "Format de date ou date incorrecte",
67
+ "dateExample": "(Ex: 28/04/2022)",
81
68
  "descriptionLabel": "Description",
82
69
  "labelsLabel": "Tags",
83
- "editButton": "Modifier ce BCF",
70
+ "createButton": "Valider",
71
+ "updateButton": "Modifier ce BCF",
84
72
  "modalText": "Vous êtes sur le point de quitter l'édition de l'issue {name} mais il y'a des modifications non enregistrées.",
85
73
  "cancelButton": "Annuler les modifications",
86
74
  "continueButton": "Continuer les modifications"
@@ -14,10 +14,7 @@
14
14
  "tagsLabel": "Etichette",
15
15
  "resetButton": "Ripristina",
16
16
  "searchButton": "Cerca",
17
- "noPriority": "Nessuna priorità",
18
- "undefinedStatus": "Non definito",
19
- "undefinedUser": "Non definito",
20
- "undefinedCreator": "Non definito"
17
+ "undefined": "Non definito"
21
18
  },
22
19
  "BcfSettings": {
23
20
  "goBackButton": "Indietro",
@@ -46,41 +43,27 @@
46
43
  "noElements": "0 elementi",
47
44
  "see": "Visualizza"
48
45
  },
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
46
  "BcfTopicCreationCard": {
67
47
  "text": "Crea un nuovo topic BCF",
68
48
  "createBcfSideTitle": "Segnala un problema"
69
49
  },
70
50
  "BcfTopicForm": {
71
- "goBackButton": "Indietro",
72
51
  "dragDropImageText": "Selezionare un file",
73
52
  "addPictureButton": "Aggiungere un'immagine",
74
- "titlePlaceholder": "Titolo*",
53
+ "titlePlaceholder": "Titolo *",
75
54
  "titleErrorMessage": "Titolo mancante",
76
55
  "typeLabel": "Tipo",
77
56
  "priorityLabel": "Priorità",
78
57
  "statusLabel": "Stato",
79
58
  "stageLabel": "Fase",
80
59
  "assignedToLabel": "Assegnato a",
60
+ "dueDateLabel": "Data di scadenza (GG/MM/AAAA)",
61
+ "dateErrorMessage": "Formato della data o data errati",
62
+ "dateExample": "(Ad es. 28/04/2022)",
81
63
  "descriptionLabel": "Descrizione",
82
64
  "tagsPlaceholder": "Tags",
83
- "editButton": "Modificare questo BCF",
65
+ "createButton": "Conferma",
66
+ "updateButton": "Modificare questo BCF",
84
67
  "modalText": "State per abbandonare la modifica di {name} ma ci sono modifiche non salvate.",
85
68
  "cancelButton": "Annullare le modifiche",
86
69
  "continueButton": "Continuare le modifiche"