@dile/crud
Advanced tools
Comparing version 0.0.51 to 0.0.52
@@ -134,3 +134,3 @@ import { LitElement, html, css } from 'lit'; | ||
<div class="modalcontainer"> | ||
${this.formActionsTemplate(this.selection)} | ||
${this.actionsTemplateRunner} | ||
</div> | ||
@@ -141,2 +141,6 @@ </dile-confirm> | ||
get actionsTemplateRunner() { | ||
return this.formActionsTemplate(this.selection, this.actionIds); | ||
} | ||
setActionIds(items) { | ||
@@ -143,0 +147,0 @@ this.actionIds = items; |
@@ -40,2 +40,3 @@ import { LitElement, html, css } from 'lit'; | ||
actions: { type: Array }, | ||
element: { type: Object }, | ||
}; | ||
@@ -73,4 +74,6 @@ } | ||
get actionsTemplateRunner() { | ||
return html`${this.formActionsTemplate(this.selection, this.element)}`; | ||
} | ||
onActionSelected(e) { | ||
@@ -77,0 +80,0 @@ this.selection = e.detail.selected; |
@@ -101,2 +101,5 @@ import { LitElement, html } from 'lit'; | ||
break; | ||
case 413: | ||
this.dispatchError(this.translations.http_413); | ||
break; | ||
case 419: | ||
@@ -103,0 +106,0 @@ this.dispatchError(this.translations.http_419); |
@@ -17,3 +17,3 @@ import { LitElement, html, css } from 'lit'; | ||
.detail-data { | ||
background-color: #f5f5f5; | ||
background-color: var(--dile-crud-detail-data-background-color, #f5f5f5); | ||
padding: 1rem; | ||
@@ -20,0 +20,0 @@ border-top-left-radius: 0.6rem; |
@@ -118,2 +118,3 @@ import { LitElement, html, css } from 'lit'; | ||
language="${this.language}" | ||
.element=${this.element} | ||
></dile-crud-single-actions> | ||
@@ -120,0 +121,0 @@ ` |
@@ -6,2 +6,3 @@ export const translations = { | ||
http_405: "Method Not Allowed", | ||
http_413: "Content Too Large", | ||
http_419: "Your session has expired. Please refresh the page", | ||
@@ -8,0 +9,0 @@ http_502: "Connection error, invalid gateway", |
@@ -6,2 +6,3 @@ export const translations = { | ||
http_405: "Método HTTP no permitido", | ||
http_413: "Contenido enviado al servidor demasiado largo", | ||
http_419: "La sesión ha expirado. Refresca la página.", | ||
@@ -8,0 +9,0 @@ http_502: "Error de conexión, gateway no válido", |
{ | ||
"name": "@dile/crud", | ||
"version": "0.0.51", | ||
"version": "0.0.52", | ||
"description": "Components to create a generic crud system based on Web Components and Lit", | ||
@@ -27,3 +27,3 @@ "main": "index.js", | ||
"dependencies": { | ||
"@dile/ui": "^2.1.27", | ||
"@dile/ui": "^2.1.28", | ||
"axios": "^1.7.2", | ||
@@ -35,3 +35,3 @@ "lit": "^2.7.0 || ^3.0.0" | ||
}, | ||
"gitHead": "252763ee699b898671883ea5c67f4207488ea472" | ||
"gitHead": "2ff303719dd914f0beeee873b285466e3c8eadf5" | ||
} |
113769
3447
Updated@dile/ui@^2.1.28