@teipublisher/pb-components 2.14.6 → 2.15.1
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/CHANGELOG.md +20 -0
- package/dist/pb-component-docs.js +2 -2
- package/dist/pb-components-bundle.js +19 -12
- package/dist/pb-elements.json +13 -2
- package/i18n/common/de.json +47 -24
- package/i18n/common/es.json +62 -13
- package/package.json +1 -1
- package/pb-elements.json +13 -2
- package/src/pb-authority-lookup.js +4 -3
- package/src/pb-code-highlight.js +10 -1
- package/src/pb-navigation.js +24 -7
package/dist/pb-elements.json
CHANGED
|
@@ -2396,7 +2396,7 @@
|
|
|
2396
2396
|
"attributes": [
|
|
2397
2397
|
{
|
|
2398
2398
|
"name": "code",
|
|
2399
|
-
"description": "The code to be highlighted as a string. If not set,\r\nthis will be populated from either a template child element\r\nor the element's text content.",
|
|
2399
|
+
"description": "The code to be highlighted as a string. If not set,\r\nthis will be populated from either a template child element\r\nor the element's text content.\r\nThe value of the property can be changed programmatically from JavaScript.",
|
|
2400
2400
|
"type": "string"
|
|
2401
2401
|
},
|
|
2402
2402
|
{
|
|
@@ -2421,7 +2421,7 @@
|
|
|
2421
2421
|
{
|
|
2422
2422
|
"name": "code",
|
|
2423
2423
|
"attribute": "code",
|
|
2424
|
-
"description": "The code to be highlighted as a string. If not set,\r\nthis will be populated from either a template child element\r\nor the element's text content.",
|
|
2424
|
+
"description": "The code to be highlighted as a string. If not set,\r\nthis will be populated from either a template child element\r\nor the element's text content.\r\nThe value of the property can be changed programmatically from JavaScript.",
|
|
2425
2425
|
"type": "string"
|
|
2426
2426
|
},
|
|
2427
2427
|
{
|
|
@@ -7147,6 +7147,11 @@
|
|
|
7147
7147
|
"description": "Register a shortcut key, e.g. 'left' or 'shift+left'",
|
|
7148
7148
|
"type": "string"
|
|
7149
7149
|
},
|
|
7150
|
+
{
|
|
7151
|
+
"name": "rendition",
|
|
7152
|
+
"description": "Rendition of the navigation element if it's disabled\nPossible values:\n- hidden (default if not set; control is removed from the document layout)\n- invisible (controll is hidden, but keeped in the document layout)\n- visible (control is visible)",
|
|
7153
|
+
"type": "string"
|
|
7154
|
+
},
|
|
7150
7155
|
{
|
|
7151
7156
|
"name": "direction",
|
|
7152
7157
|
"description": "The direction to navigate in, either `forward` or `backward`",
|
|
@@ -7197,6 +7202,12 @@
|
|
|
7197
7202
|
"description": "Register a shortcut key, e.g. 'left' or 'shift+left'",
|
|
7198
7203
|
"type": "string"
|
|
7199
7204
|
},
|
|
7205
|
+
{
|
|
7206
|
+
"name": "rendition",
|
|
7207
|
+
"attribute": "rendition",
|
|
7208
|
+
"description": "Rendition of the navigation element if it's disabled\nPossible values:\n- hidden (default if not set; control is removed from the document layout)\n- invisible (controll is hidden, but keeped in the document layout)\n- visible (control is visible)",
|
|
7209
|
+
"type": "string"
|
|
7210
|
+
},
|
|
7200
7211
|
{
|
|
7201
7212
|
"name": "direction",
|
|
7202
7213
|
"attribute": "direction",
|
package/i18n/common/de.json
CHANGED
|
@@ -46,7 +46,10 @@
|
|
|
46
46
|
},
|
|
47
47
|
"browse": {
|
|
48
48
|
"description": "Diese Anwendung dient vorrangig zum Experimentieren mit verschiedenen Dokumenten und deren Transformationen über das TEI Processing Model. Es können eigene Dateien hochgeladen und neue ODDs erstellt werden.",
|
|
49
|
-
"login": "zum Hochladen eigener Dateien oder Zugriff auf administrative Funktionen (Standardnutzer: 'tei
|
|
49
|
+
"login": "zum Hochladen eigener Dateien oder Zugriff auf administrative Funktionen (Standardnutzer: 'tei', Passwort: 'simple').",
|
|
50
|
+
"login-1": "Anmelden als ",
|
|
51
|
+
"login-2": "mit Passwort",
|
|
52
|
+
"login-3": "um mit eigenen Dateien und ODDs zu experimentieren",
|
|
50
53
|
"sort": "Sortiere nach",
|
|
51
54
|
"filter": "Filtere nach",
|
|
52
55
|
"filterPlaceholder": "Filter",
|
|
@@ -60,6 +63,9 @@
|
|
|
60
63
|
"confirmDeletion": "Möchten Sie die Datei wirklich löschen?",
|
|
61
64
|
"confirmDeletion_plural": "Möchten Sie wirklich {{count}} Dateien löschen?",
|
|
62
65
|
"documents": "Dokumente",
|
|
66
|
+
"documents-removed": "Dokumente gelöscht",
|
|
67
|
+
"document-not-found": "Dokument nicht gefunden",
|
|
68
|
+
"document-remove-failed": "Löschen des Dokuments fehlgeschlagen",
|
|
63
69
|
"collections": "Lokale Sammlung",
|
|
64
70
|
"dts": "Distributed Text Services (experimentell)",
|
|
65
71
|
"test": {
|
|
@@ -78,6 +84,10 @@
|
|
|
78
84
|
"title": "Markdown-Beispiel",
|
|
79
85
|
"description": "Ein Beispiel zur Verwendung von Markdown für statische Inhalte."
|
|
80
86
|
},
|
|
87
|
+
"annotate": {
|
|
88
|
+
"title": "Annotierte Dokumente",
|
|
89
|
+
"description": "Beschreibbare Sammlung zum Annotieren von Dokumenten."
|
|
90
|
+
},
|
|
81
91
|
"up": "Übergeordnetes Verzeichnis"
|
|
82
92
|
},
|
|
83
93
|
"upload": {
|
|
@@ -111,11 +121,15 @@
|
|
|
111
121
|
"reset": "Zurücksetzen",
|
|
112
122
|
"placeholder": "Suche nach",
|
|
113
123
|
"sections": "Abschnitte durchsuchen",
|
|
114
|
-
"headings": "Überschriften durchsuchen"
|
|
124
|
+
"headings": "Überschriften durchsuchen",
|
|
125
|
+
"title": "Titel suchen",
|
|
126
|
+
"content": "Inhalte durchsuchen",
|
|
127
|
+
"scope": "Suchbereich"
|
|
115
128
|
},
|
|
116
129
|
"dts": {
|
|
117
130
|
"endpoint": "Server wählen",
|
|
118
|
-
"note": "Experimentell: Zugriff auf externe Editionen über DTS API"
|
|
131
|
+
"note": "Experimentell: Zugriff auf externe Editionen über DTS API",
|
|
132
|
+
"requires-login": "Anmeldung erforderlich"
|
|
119
133
|
},
|
|
120
134
|
"odd": {
|
|
121
135
|
"files": "ODD Dateien",
|
|
@@ -175,7 +189,10 @@
|
|
|
175
189
|
"facets": {
|
|
176
190
|
"show": "Zeige 50 häufigste",
|
|
177
191
|
"genre": "Genre",
|
|
178
|
-
"language": "Sprache"
|
|
192
|
+
"language": "Sprache",
|
|
193
|
+
"feature": "Feature",
|
|
194
|
+
"form": "Art der Quelle",
|
|
195
|
+
"period": "Zeitraum"
|
|
179
196
|
},
|
|
180
197
|
"appgen": {
|
|
181
198
|
"account": {
|
|
@@ -217,38 +234,38 @@
|
|
|
217
234
|
"success": "Deine App wurde erfolgreich generiert!"
|
|
218
235
|
},
|
|
219
236
|
"annotations": {
|
|
220
|
-
"abbreviation": "Abkürzung",
|
|
221
|
-
"delete": "Annotation löschen",
|
|
222
237
|
"edit": "Annotation ändern",
|
|
238
|
+
"delete": "Annotation löschen",
|
|
239
|
+
"save": "Änderungen ins TEI speichern",
|
|
223
240
|
"no-properties": "Keine Eigenschaften vorhanden.",
|
|
224
|
-
"occurrences": "Vorkommen im Text",
|
|
225
|
-
"organisation": "Organisation",
|
|
226
241
|
"person": "Person",
|
|
242
|
+
"organisation": "Organisation",
|
|
227
243
|
"place": "Ort",
|
|
228
|
-
"term": "
|
|
244
|
+
"term": "Begriff",
|
|
229
245
|
"date": "Datum",
|
|
230
|
-
"
|
|
246
|
+
"reg": "Regularisierung",
|
|
247
|
+
"app": "Apparatus",
|
|
248
|
+
"hi": "Hervorhebung",
|
|
249
|
+
"ref": "Link (ref)",
|
|
250
|
+
"abbreviation": "Abkürzung",
|
|
251
|
+
"occurrences": "Vorkommen im Text",
|
|
231
252
|
"correction": "Korrektur",
|
|
253
|
+
"expansion": "Auflösung",
|
|
232
254
|
"reference": "Referenz",
|
|
233
|
-
"
|
|
255
|
+
"lookup": "Entität suchen",
|
|
256
|
+
"apply": "Anwenden",
|
|
257
|
+
"apply-all": "Alle selektieren und anwenden",
|
|
234
258
|
"changes": "Änderungen",
|
|
235
|
-
"reg": "Regularisierung",
|
|
236
|
-
"hi": "Hervorhebung",
|
|
237
|
-
"app": "Apparatus",
|
|
238
|
-
"download": "Ergebnis als lokale Datei speichern",
|
|
239
|
-
"restore": "Es wurden Annotationen für dieses Dokument aus einer früheren Sitzung gefunden. Möchtest Du diese wiederherstellen?",
|
|
240
259
|
"undo": "Letzten Arbeitsschritt rückgängig machen",
|
|
241
|
-
"
|
|
260
|
+
"download": "Ergebnis als lokale Datei speichern",
|
|
261
|
+
"reload": "Quelle neu laden",
|
|
242
262
|
"preview": "Voransicht erneuern",
|
|
243
|
-
"
|
|
263
|
+
"confirm-restore-title": "Annotationen wiederherstellen",
|
|
264
|
+
"restore": "Es wurden Annotationen für dieses Dokument aus einer früheren Sitzung gefunden. Möchtest Du diese wiederherstellen?",
|
|
265
|
+
"confirm-reload-title": "Quelle neu laden",
|
|
244
266
|
"confirm-reload": "Annotationen verwerfen und Quelle neu laden?",
|
|
245
|
-
"confirm-reload-title": "Quelle neu laden?",
|
|
246
|
-
"confirm-restore-title": "Annotationen wiederherstellen?",
|
|
247
|
-
"ref": "Link (ref)",
|
|
248
|
-
"reload": "Quelle neu laden",
|
|
249
267
|
"modify": "Änderung am Text vornehmen",
|
|
250
268
|
"modify-info": "Achtung: dies ist keine Annotation. Die Änderung wird beim Merge auf den Transkriptionstext angewandt.",
|
|
251
|
-
"apply-all": "Alle selektieren und anwenden",
|
|
252
269
|
"permission": "Zugriff verweigert: keine Berechtigung zum Speichern von Annotationen.",
|
|
253
270
|
"ner": {
|
|
254
271
|
"title": "Automatische Entitätenerkennung",
|
|
@@ -256,7 +273,13 @@
|
|
|
256
273
|
"run": "Ausführen",
|
|
257
274
|
"model": "Wähle ein Modell",
|
|
258
275
|
"denied": "Ungespeicherte Änderungen gefunden: bitte zuerst speichern oder verwerfen."
|
|
259
|
-
}
|
|
276
|
+
},
|
|
277
|
+
"confirm-discard-title": "Verwerfen",
|
|
278
|
+
"confirm-discard": "Liste anderer Vorkommen verwerfen?",
|
|
279
|
+
"doc-count": "{{count}} von {{total}}",
|
|
280
|
+
"toggle": "Ein-/Ausblenden der Vorschau/Kontrollleiste",
|
|
281
|
+
"add-entity": "Entität hinzufügen",
|
|
282
|
+
"edit-entity": "Entität bearbeiten"
|
|
260
283
|
},
|
|
261
284
|
"ner": {
|
|
262
285
|
"title": "Trainiere ein Modell zur Entitätenerkennung",
|
package/i18n/common/es.json
CHANGED
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
"no": "No",
|
|
29
29
|
"serverError": "La solicitud al servidor ha fallado.",
|
|
30
30
|
"generatingFile": "Generando el archivo...",
|
|
31
|
-
"downloadMessage": "Generar el archivo para su descarga puede tardar algunos minutos.
|
|
31
|
+
"downloadMessage": "Generar el archivo para su descarga puede tardar algunos minutos. Espera, por favor. Este mensaje debería cerrarse automáticamente cuando la descarga esté completa.",
|
|
32
32
|
"loading": "Cargando ..."
|
|
33
33
|
},
|
|
34
34
|
"document": {
|
|
@@ -37,16 +37,19 @@
|
|
|
37
37
|
"selectTemplate": "Seleccionar Plantilla",
|
|
38
38
|
"selectFeature": "Seleccionar una característica",
|
|
39
39
|
"normalized": "Vista normalizada",
|
|
40
|
-
"plain": "Vista de lectura
|
|
40
|
+
"plain": "Vista de lectura simple",
|
|
41
41
|
"view-type": "Ver por páginas",
|
|
42
42
|
"add-panel": "Añadir Vista",
|
|
43
43
|
"caveat-heading": "Cuidado",
|
|
44
44
|
"settings": "Configuración",
|
|
45
|
-
"caveat": "Experimenta con diferentes plantillas y ODDs cambiando las opciones aquí. Por favor, ten en cuenta que no todas las combinaciones de configuración tienen sentido para todos los documentos. Por ejemplo, un mapa no puede ser producido sin marcar ni procesar las coordenadas explícitamente, y la vista de página asume que se han marcado los saltos de página. Si ves el mensaje \"el servidor no devolvió ningún contenido\", generalmente es señal de una
|
|
45
|
+
"caveat": "Experimenta con diferentes plantillas y ODDs cambiando las opciones aquí. Por favor, ten en cuenta que no todas las combinaciones de configuración tienen sentido para todos los documentos. Por ejemplo, un mapa no puede ser producido sin marcar ni procesar las coordenadas explícitamente, y la vista de página asume que se han marcado los saltos de página. Si ves el mensaje \"el servidor no devolvió ningún contenido\", generalmente es señal de una desalineación entre los datos codificados, la ODD y la plantilla."
|
|
46
46
|
},
|
|
47
47
|
"browse": {
|
|
48
|
-
"description": "Utiliza esta aplicación para experimentar y probar varios ODDs
|
|
48
|
+
"description": "Utiliza esta aplicación para experimentar y probar varios ODDs creados a partir de diferentes instrucciones del modelo de procesamiento. Carga tus propios archivos y crea un ODD personalizado.",
|
|
49
49
|
"login": "para subir archivos o ver funciones administrativas (usuario predeterminado: 'tei-demo', contraseña: 'demo').",
|
|
50
|
+
"login-1": "Inicia sesión como ",
|
|
51
|
+
"login-2": "con contraseña",
|
|
52
|
+
"login-3": "para experimentar con tus propios archivos y ODDs",
|
|
50
53
|
"sort": "Ordenar por",
|
|
51
54
|
"filter": "Filtrar por",
|
|
52
55
|
"filterPlaceholder": "Filtro",
|
|
@@ -60,6 +63,9 @@
|
|
|
60
63
|
"confirmDeletion": "¿Seguro que quieres eliminar el archivo?",
|
|
61
64
|
"confirmDeletion_plural": "¿Seguro que quieres eliminar {{count}} archivos?",
|
|
62
65
|
"documents": "Documentos",
|
|
66
|
+
"documents-removed":"Documentos eliminados",
|
|
67
|
+
"document-not-found":"Documento no encontrado",
|
|
68
|
+
"document-remove-failed":"No se ha podido eliminar el documento",
|
|
63
69
|
"collections": "Colección local",
|
|
64
70
|
"dts": "Servicios de texto distribuidos (versión experimental)",
|
|
65
71
|
"test": {
|
|
@@ -75,9 +81,13 @@
|
|
|
75
81
|
"description": "Documentación (en Docbook XML)."
|
|
76
82
|
},
|
|
77
83
|
"markdown": {
|
|
78
|
-
"title": "
|
|
84
|
+
"title": "Ejemplo en Markdown",
|
|
79
85
|
"description": "Un ejemplo de uso de Markdown para generar contenido estático."
|
|
80
86
|
},
|
|
87
|
+
"annotate": {
|
|
88
|
+
"title": "Ejemplos de anotación",
|
|
89
|
+
"description": "Otro espacio de pruebas para anotar documentos."
|
|
90
|
+
},
|
|
81
91
|
"up": "Ir a la carpeta anterior"
|
|
82
92
|
},
|
|
83
93
|
"upload": {
|
|
@@ -109,13 +119,14 @@
|
|
|
109
119
|
"search": {
|
|
110
120
|
"search": "Buscar",
|
|
111
121
|
"reset": "Reestablecer",
|
|
112
|
-
"placeholder": "Escribe el término
|
|
122
|
+
"placeholder": "Escribe el término de búsqueda",
|
|
113
123
|
"sections": "Buscar en secciones",
|
|
114
124
|
"headings": "Buscar en títulos"
|
|
115
125
|
},
|
|
116
126
|
"dts": {
|
|
117
127
|
"endpoint": "Seleccionar punto final",
|
|
118
|
-
"note": "Experimental: acceder a otras ediciones que exponen la API DTS"
|
|
128
|
+
"note": "Experimental: acceder a otras ediciones que exponen la API DTS",
|
|
129
|
+
"requires-login":"Es necesario iniciar sesión"
|
|
119
130
|
},
|
|
120
131
|
"odd": {
|
|
121
132
|
"files": "Archivos ODD",
|
|
@@ -134,6 +145,9 @@
|
|
|
134
145
|
"save": "Guardar",
|
|
135
146
|
"saving": "Guardando...",
|
|
136
147
|
"saved": "Guardado",
|
|
148
|
+
"unsaved": "Hay cambios no guardados que se incluirán en la exportación. ¿Continuar de todos modos?",
|
|
149
|
+
"download": "Descargar ODD",
|
|
150
|
+
"save-as": "Guardar ODD en un directorio",
|
|
137
151
|
"denied": "Permiso denegado",
|
|
138
152
|
"denied-message": "No tienes permiso para guardar {{odd}}",
|
|
139
153
|
"reload": "Volver a cargar",
|
|
@@ -159,10 +173,11 @@
|
|
|
159
173
|
"predicate-placeholder": "[Definir otras condiciones que deben cumplirse (en xquery)]",
|
|
160
174
|
"link-with-or": "o",
|
|
161
175
|
"css-class-placeholder": "[Definir nombre de clase CSS (para CSS externo)]",
|
|
162
|
-
"custom-behaviour-placeholder": "[
|
|
176
|
+
"custom-behaviour-placeholder": "[Comportamiento personalizado]",
|
|
163
177
|
"template-placeholder": "[Definir plantilla de código para aplicar al contenido]",
|
|
164
178
|
"param-name-placeholder": "[Nombre del parámetro]",
|
|
165
|
-
"empty": "[Vacío]"
|
|
179
|
+
"empty": "[Vacío]",
|
|
180
|
+
"mode-placeholder": "[Modo de procesamiento: se pasa a los modelos siguientes]"
|
|
166
181
|
},
|
|
167
182
|
"css-source": "Abrir fichero CSS"
|
|
168
183
|
}
|
|
@@ -186,13 +201,13 @@
|
|
|
186
201
|
"index-text": "Crear por texto"
|
|
187
202
|
},
|
|
188
203
|
"view": {
|
|
189
|
-
"help": "
|
|
204
|
+
"help": "Elige lo que se muestra por defecto al navegar por el texto: vista por páginas o por divisiones completas. La vista por página exige que el TEI XML esté correctamente marcado con etiquetas <tei:pb>.",
|
|
190
205
|
"div": "Por divisiones (capítulo/sección...)",
|
|
191
206
|
"page": "Por páginas"
|
|
192
207
|
},
|
|
193
208
|
"label": "Vista predeterminada",
|
|
194
209
|
"template": {
|
|
195
|
-
"help": "
|
|
210
|
+
"help": "Elige la plantilla HTML que se utilizará por defecto",
|
|
196
211
|
"label": "Plantilla HTML"
|
|
197
212
|
},
|
|
198
213
|
"title": {
|
|
@@ -239,11 +254,45 @@
|
|
|
239
254
|
"reload": "Recargar fuente TEI",
|
|
240
255
|
"preview": "Vista previa de los resultados de la fusión",
|
|
241
256
|
"confirm-restore-title": "Confirmar restauración",
|
|
242
|
-
"restore": "Se han encontrado anotaciones
|
|
257
|
+
"restore": "Se han encontrado anotaciones en este documento hechas en una sesión anterior. ¿Quieres recargarlas?",
|
|
243
258
|
"confirm-reload-title": "Confirmar recarga",
|
|
244
259
|
"confirm-reload": "¿Descartar las anotaciones actuales y recargar la fuente?",
|
|
245
260
|
"modify": "Aplicar edición al texto base",
|
|
246
261
|
"modify-info": "Nota: esto no es una anotación, pero modificará el texto base cuando se fusione.",
|
|
247
|
-
"permission": "Permiso denegado: no
|
|
262
|
+
"permission": "Permiso denegado: no tienes permiso para guardar anotaciones.",
|
|
263
|
+
"ner": {
|
|
264
|
+
"title": "Extracción de entidades nombradas",
|
|
265
|
+
"description": "Intenta encontrar automáticamente entidades nombradas en el texto y marcarlas como anotaciones.",
|
|
266
|
+
"run": "Ejecutar",
|
|
267
|
+
"model": "Selecciona un modelo",
|
|
268
|
+
"denied": "Se han encontrado cambios no guardados: por favor, guárdalos o descártalos antes."
|
|
269
|
+
},
|
|
270
|
+
"confirm-discard-title": "Descartar",
|
|
271
|
+
"confirm-discard": "¿Descartar la lista de ocurrencias?",
|
|
272
|
+
"doc-count": "{{count}} de {{total}}"
|
|
273
|
+
},
|
|
274
|
+
"ner": {
|
|
275
|
+
"title": "Entrena un modelo de reconocimiento de entidades nombradas (NER)",
|
|
276
|
+
"not-found": "Esta función requiere que el servicio TEI Publisher NER esté en funcionamiento. No se ha podido contactar con el servicio.",
|
|
277
|
+
"found": "Se ha encontrado TEI Publisher NER con la versión spaCy",
|
|
278
|
+
"name-placeholder": "Nombre del modelo a crear",
|
|
279
|
+
"name": "Nombre",
|
|
280
|
+
"path": "Ruta",
|
|
281
|
+
"path-placeholder": "Ruta relativa al documento o colección",
|
|
282
|
+
"path-info": "Introduce la ruta a un documento o colección que se utilizará como entrada de entrenamiento. Debe ser relativa a la raíz de datos de TEI Publisher.",
|
|
283
|
+
"lang-info": "Puedes entrenar un nuevo modelo para una lengua o seleccionar un modelo existente para ampliarlo a continuación. Si no amplías un modelo existente, debes especificar un idioma. En caso contrario, déjalo vacío.",
|
|
284
|
+
"language-placeholder": "Lengua para la que se crea el modelo",
|
|
285
|
+
"language": "Lengua",
|
|
286
|
+
"language-error": "Se requiere una lengua o un modelo base",
|
|
287
|
+
"model": "Modelo base",
|
|
288
|
+
"model-placeholder": "Modelo base para ampliar o copiar",
|
|
289
|
+
"vectors": "Solo copiar vectores del modelo base",
|
|
290
|
+
"output": "Resultado del entrenamiento",
|
|
291
|
+
"prepare": "Datos de entrenamiento en preparación",
|
|
292
|
+
"start": "Ejecutar"
|
|
293
|
+
},
|
|
294
|
+
"timeline": {
|
|
295
|
+
"unknown": "sin fecha",
|
|
296
|
+
"clear": "Borrar selección de fecha"
|
|
248
297
|
}
|
|
249
298
|
}
|
package/package.json
CHANGED
package/pb-elements.json
CHANGED
|
@@ -2396,7 +2396,7 @@
|
|
|
2396
2396
|
"attributes": [
|
|
2397
2397
|
{
|
|
2398
2398
|
"name": "code",
|
|
2399
|
-
"description": "The code to be highlighted as a string. If not set,\r\nthis will be populated from either a template child element\r\nor the element's text content.",
|
|
2399
|
+
"description": "The code to be highlighted as a string. If not set,\r\nthis will be populated from either a template child element\r\nor the element's text content.\r\nThe value of the property can be changed programmatically from JavaScript.",
|
|
2400
2400
|
"type": "string"
|
|
2401
2401
|
},
|
|
2402
2402
|
{
|
|
@@ -2421,7 +2421,7 @@
|
|
|
2421
2421
|
{
|
|
2422
2422
|
"name": "code",
|
|
2423
2423
|
"attribute": "code",
|
|
2424
|
-
"description": "The code to be highlighted as a string. If not set,\r\nthis will be populated from either a template child element\r\nor the element's text content.",
|
|
2424
|
+
"description": "The code to be highlighted as a string. If not set,\r\nthis will be populated from either a template child element\r\nor the element's text content.\r\nThe value of the property can be changed programmatically from JavaScript.",
|
|
2425
2425
|
"type": "string"
|
|
2426
2426
|
},
|
|
2427
2427
|
{
|
|
@@ -7147,6 +7147,11 @@
|
|
|
7147
7147
|
"description": "Register a shortcut key, e.g. 'left' or 'shift+left'",
|
|
7148
7148
|
"type": "string"
|
|
7149
7149
|
},
|
|
7150
|
+
{
|
|
7151
|
+
"name": "rendition",
|
|
7152
|
+
"description": "Rendition of the navigation element if it's disabled\nPossible values:\n- hidden (default if not set; control is removed from the document layout)\n- invisible (controll is hidden, but keeped in the document layout)\n- visible (control is visible)",
|
|
7153
|
+
"type": "string"
|
|
7154
|
+
},
|
|
7150
7155
|
{
|
|
7151
7156
|
"name": "direction",
|
|
7152
7157
|
"description": "The direction to navigate in, either `forward` or `backward`",
|
|
@@ -7197,6 +7202,12 @@
|
|
|
7197
7202
|
"description": "Register a shortcut key, e.g. 'left' or 'shift+left'",
|
|
7198
7203
|
"type": "string"
|
|
7199
7204
|
},
|
|
7205
|
+
{
|
|
7206
|
+
"name": "rendition",
|
|
7207
|
+
"attribute": "rendition",
|
|
7208
|
+
"description": "Rendition of the navigation element if it's disabled\nPossible values:\n- hidden (default if not set; control is removed from the document layout)\n- invisible (controll is hidden, but keeped in the document layout)\n- visible (control is visible)",
|
|
7209
|
+
"type": "string"
|
|
7210
|
+
},
|
|
7200
7211
|
{
|
|
7201
7212
|
"name": "direction",
|
|
7202
7213
|
"attribute": "direction",
|
|
@@ -163,6 +163,7 @@ export class PbAuthorityLookup extends pbMixin(LitElement) {
|
|
|
163
163
|
const connector = this._authorities[item.register];
|
|
164
164
|
const options = {
|
|
165
165
|
strings: item.strings,
|
|
166
|
+
type: item.register,
|
|
166
167
|
properties: {
|
|
167
168
|
ref: item.id,
|
|
168
169
|
}
|
|
@@ -182,9 +183,9 @@ export class PbAuthorityLookup extends pbMixin(LitElement) {
|
|
|
182
183
|
if (connector) {
|
|
183
184
|
connector
|
|
184
185
|
.select(item)
|
|
185
|
-
.then(() => this.emitTo('pb-authority-edit-entity', {id: item.id}));
|
|
186
|
+
.then(() => this.emitTo('pb-authority-edit-entity', {id: item.id, type: item.register}));
|
|
186
187
|
} else {
|
|
187
|
-
this.emitTo('pb-authority-edit-entity', {id: item.id});
|
|
188
|
+
this.emitTo('pb-authority-edit-entity', {id: item.id, type: item.register});
|
|
188
189
|
}
|
|
189
190
|
}
|
|
190
191
|
|
|
@@ -207,7 +208,7 @@ export class PbAuthorityLookup extends pbMixin(LitElement) {
|
|
|
207
208
|
}
|
|
208
209
|
|
|
209
210
|
_addEntity() {
|
|
210
|
-
this.emitTo('pb-authority-new-entity', {query: this.query});
|
|
211
|
+
this.emitTo('pb-authority-new-entity', {query: this.query, type: this.type});
|
|
211
212
|
}
|
|
212
213
|
|
|
213
214
|
_occurrences(items) {
|
package/src/pb-code-highlight.js
CHANGED
|
@@ -51,6 +51,7 @@ export class PbCodeHighlight extends themableMixin(LitElement) {
|
|
|
51
51
|
* The code to be highlighted as a string. If not set,
|
|
52
52
|
* this will be populated from either a template child element
|
|
53
53
|
* or the element's text content.
|
|
54
|
+
* The value of the property can be changed programmatically from JavaScript.
|
|
54
55
|
*/
|
|
55
56
|
code: {
|
|
56
57
|
type: String
|
|
@@ -118,6 +119,14 @@ export class PbCodeHighlight extends themableMixin(LitElement) {
|
|
|
118
119
|
updated(changedProperties) {
|
|
119
120
|
super.updated(changedProperties);
|
|
120
121
|
if (changedProperties.has('code')) {
|
|
122
|
+
//if the code property is changed, the content of the <code> element is replaced
|
|
123
|
+
const pre = this.shadowRoot.getElementById("pb-code-highlight");
|
|
124
|
+
if(pre != null) {
|
|
125
|
+
const code = document.createElement("code");
|
|
126
|
+
code.textContent = this.code; //textContent property keeps new lines in the code
|
|
127
|
+
pre.replaceChildren(code);
|
|
128
|
+
|
|
129
|
+
}
|
|
121
130
|
this.highlight();
|
|
122
131
|
}
|
|
123
132
|
}
|
|
@@ -130,7 +139,7 @@ export class PbCodeHighlight extends themableMixin(LitElement) {
|
|
|
130
139
|
if (this.code) {
|
|
131
140
|
return html`
|
|
132
141
|
${this._themeStyles}
|
|
133
|
-
<pre class="${this.lineNumbers ? 'line-numbers' : ''} language-${this.language}"><code>${this.code}</code></pre>
|
|
142
|
+
<pre id="pb-code-highlight" class="${this.lineNumbers ? 'line-numbers' : ''} language-${this.language}"><code>${this.code}</code></pre>
|
|
134
143
|
`;
|
|
135
144
|
}
|
|
136
145
|
return html`<pre class="line-numbers"><code><code></pre>`;
|
package/src/pb-navigation.js
CHANGED
|
@@ -27,6 +27,16 @@ export class PbNavigation extends pbHotkeys(pbMixin(LitElement)) {
|
|
|
27
27
|
*/
|
|
28
28
|
keyboard: {
|
|
29
29
|
type: String
|
|
30
|
+
},
|
|
31
|
+
/**
|
|
32
|
+
* Rendition of the navigation element if it's disabled
|
|
33
|
+
* Possible values:
|
|
34
|
+
* - hidden (default if not set; control is removed from the document layout)
|
|
35
|
+
* - invisible (controll is hidden, but keeped in the document layout)
|
|
36
|
+
* - visible (control is visible)
|
|
37
|
+
*/
|
|
38
|
+
rendition : {
|
|
39
|
+
type: String
|
|
30
40
|
}
|
|
31
41
|
};
|
|
32
42
|
}
|
|
@@ -79,13 +89,20 @@ export class PbNavigation extends pbHotkeys(pbMixin(LitElement)) {
|
|
|
79
89
|
|
|
80
90
|
static get styles() {
|
|
81
91
|
return css`
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
92
|
+
:host {
|
|
93
|
+
display: inline;
|
|
94
|
+
}
|
|
95
|
+
:host([disabled]):host(:not([rendition])), :host([disabled]):host([rendition="hidden"]) {
|
|
96
|
+
display: none;
|
|
97
|
+
}
|
|
98
|
+
:host([disabled]):host([rendition="invisible"]) {
|
|
99
|
+
visibility: hidden;
|
|
100
|
+
}
|
|
101
|
+
:host([disabled]):host([rendition="visible"]) {
|
|
102
|
+
visibility: visible;
|
|
103
|
+
cursor: not-allowed;
|
|
104
|
+
}
|
|
105
|
+
`;
|
|
89
106
|
}
|
|
90
107
|
}
|
|
91
108
|
|