diff --git a/src/components/common/VnComponent.vue b/src/components/common/VnComponent.vue
new file mode 100644
index 000000000..6514c1ba6
--- /dev/null
+++ b/src/components/common/VnComponent.vue
@@ -0,0 +1,36 @@
+
+
+
+
+
+
diff --git a/src/components/common/VnSelect.vue b/src/components/common/VnSelect.vue
index e98c4e264..656beed48 100644
--- a/src/components/common/VnSelect.vue
+++ b/src/components/common/VnSelect.vue
@@ -108,17 +108,12 @@ async function fetchFilter(val) {
const { fields, sortBy, limit } = $props;
let key = optionLabel.value;
- console.log('key: ', key);
if (new RegExp(/\d/g).test(val)) key = optionValue.value;
- console.log('key: ', key);
const where = { [key]: { like: `%${val}%` } };
const fetchOptions = { where, order: sortBy, limit };
- console.log('where: ', where);
- console.log('fields: ', fields);
if (fields) fetchOptions.fields = fields;
- console.log('fetchOptions: ', fetchOptions);
return dataRef.value.fetch(fetchOptions);
}
diff --git a/src/components/common/VnTable.vue b/src/components/common/VnTable.vue
index 85d15bec3..8d130ea6b 100644
--- a/src/components/common/VnTable.vue
+++ b/src/components/common/VnTable.vue
@@ -1,15 +1,13 @@
@@ -90,6 +110,7 @@ function columnsCard(cols) {
:data-key="$attrs['data-key']"
:search-button="true"
v-model:params="params"
+ @remove="(key) => console.log('HA LELGADO', key)"
>
event.index > rows.length - 2 && VnPaginateRef.paginate()
"
+ @row-click="(_, row) => rowClickFunction(row)"
>
-
+
-
-
-
-
-
-
-
- {{ row[col.field] }}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+ {
+ $props.rowClick && $props.rowClick(row);
+ }
+ "
>
-
-
-
-
+
+
+
+
+
+ {{
+ row[col.field]
+ }}
+
+
+
+
+
+
+
+ {{ row[cardTemplate.title.field] }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -262,7 +309,7 @@ function columnsCard(cols) {
.bg-chip-secondary {
background-color: var(--vn-page-color);
- color: var(--vn-text-colo);
+ color: var(--vn-text-color);
}
.text-primary-light {
color: var(--primary-light);
@@ -290,7 +337,7 @@ function columnsCard(cols) {
/* Works on Firefox */
* {
scrollbar-width: thin;
- scrollbar-color: var(--primary-light) transparent;
+ scrollbar-color: grey transparent;
}
/* Works on Chrome, Edge, and Safari */
@@ -305,52 +352,17 @@ function columnsCard(cols) {
*::-webkit-scrollbar-thumb {
background-color: transparent;
border-radius: 20px;
- border: 3px solid var(--primary-light);
-}
-
-.grid-one {
- display: grid;
- grid-template-columns: repeat(1, 1fr);
- grid-gap: 10px;
+ border: 3px solid grey;
}
.grid-three {
display: grid;
- grid-template-columns: repeat(auto-fit, minmax(350px, 1px));
+ grid-template-columns: repeat(auto-fit, minmax(350px, max-content));
max-width: 100%;
- grid-gap: 12px;
+ grid-gap: 20px;
margin: 0 auto;
}
-.flex-three {
- display: flex;
- justify-content: space-between;
- align-items: center;
- div.fields {
- width: 50%;
- .vn-label-value {
- display: flex;
- justify-content: flex-start;
- gap: 2%;
- width: 100%;
- .label {
- width: 25%;
- overflow: hidden;
- text-overflow: ellipsis;
- white-space: nowrap;
- flex-grow: 0;
- flex-shrink: 0;
- }
- .value {
- width: 65%;
- overflow: hidden;
- text-overflow: ellipsis;
- white-space: nowrap;
- }
- }
- }
-}
-
.flex-one {
display: flex;
flex-flow: row wrap;
diff --git a/src/components/common/VnTableColumn.vue b/src/components/common/VnTableColumn.vue
index 7cee83a8e..cfa455046 100644
--- a/src/components/common/VnTableColumn.vue
+++ b/src/components/common/VnTableColumn.vue
@@ -1,11 +1,23 @@
-
+
{{ dashIfEmpty(row[column.field]) }}
+