aloha-vue 1.0.78 → 1.0.80
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.
|
@@ -22,6 +22,7 @@ export default {
|
|
|
22
22
|
locked: true,
|
|
23
23
|
grow: 2,
|
|
24
24
|
footerSlot: "footerAloha",
|
|
25
|
+
class: "a_justify_content_end",
|
|
25
26
|
},
|
|
26
27
|
{
|
|
27
28
|
label: "Aloha frei",
|
|
@@ -30,6 +31,7 @@ export default {
|
|
|
30
31
|
sortId: "aloha",
|
|
31
32
|
grow: 0,
|
|
32
33
|
footerPath: "aloha",
|
|
34
|
+
class: "a_justify_content_end",
|
|
33
35
|
},
|
|
34
36
|
{
|
|
35
37
|
label: "Hola",
|
package/package.json
CHANGED
|
@@ -58,8 +58,8 @@ export default function AFiltersAPI() {
|
|
|
58
58
|
return Link(value, { param, target });
|
|
59
59
|
};
|
|
60
60
|
|
|
61
|
-
const filterList = (value, { isHtml = true, listClass = "
|
|
62
|
-
return list(value, { isHtml, listClass });
|
|
61
|
+
const filterList = (value, { isHtml = true, listClass = "a_list_without_styles", keyLabel = "" } = {}) => {
|
|
62
|
+
return list(value, { isHtml, listClass, keyLabel });
|
|
63
63
|
};
|
|
64
64
|
|
|
65
65
|
const filterPropertyByValue = (value, { mapping = {}, defaultValue = "" } = {}) => {
|
package/src/filters/list.js
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
isArray,
|
|
3
3
|
forEach,
|
|
4
|
+
get,
|
|
4
5
|
} from "lodash-es";
|
|
5
6
|
|
|
6
|
-
export default function(value, { isHtml = true, listClass = "
|
|
7
|
+
export default function(value, { isHtml = true, listClass = "a_list_without_styles", keyLabel = "" } = {}) {
|
|
7
8
|
if (!isArray(value)) {
|
|
8
9
|
return value;
|
|
9
10
|
}
|
|
@@ -13,12 +14,14 @@ export default function(value, { isHtml = true, listClass = "list-unstyled" } =
|
|
|
13
14
|
let result = "";
|
|
14
15
|
if (isHtml === false || isHtml === "false") {
|
|
15
16
|
forEach(value, (item, index) => {
|
|
16
|
-
|
|
17
|
+
const ITEM_TEXT = keyLabel ? get(item, keyLabel) : item;
|
|
18
|
+
result += `${ index !== 0 ? ", " : "" }${ ITEM_TEXT }`;
|
|
17
19
|
});
|
|
18
20
|
return result;
|
|
19
21
|
}
|
|
20
22
|
forEach(value, item => {
|
|
21
|
-
|
|
23
|
+
const ITEM_TEXT = keyLabel ? get(item, keyLabel) : item;
|
|
24
|
+
result += `<li>${ ITEM_TEXT }</li>`;
|
|
22
25
|
});
|
|
23
26
|
return `<ul${ listClass ? ` class="${ listClass }"` : "" }>${ result }</ul>`;
|
|
24
27
|
}
|
|
@@ -82,7 +82,8 @@
|
|
|
82
82
|
}
|
|
83
83
|
|
|
84
84
|
.a_table__th {
|
|
85
|
-
display:
|
|
85
|
+
display: flex;
|
|
86
|
+
align-items: center;
|
|
86
87
|
background-color: var(--a_table_th_bg);
|
|
87
88
|
border-style: solid;
|
|
88
89
|
border-width: var(--a_table_th_border_width);
|
|
@@ -99,7 +100,8 @@
|
|
|
99
100
|
}
|
|
100
101
|
|
|
101
102
|
.a_table__td {
|
|
102
|
-
display:
|
|
103
|
+
display: flex;
|
|
104
|
+
align-items: center;
|
|
103
105
|
}
|
|
104
106
|
|
|
105
107
|
.a_table__body,
|
|
@@ -134,7 +136,7 @@
|
|
|
134
136
|
}
|
|
135
137
|
|
|
136
138
|
.a_table__cell_action {
|
|
137
|
-
|
|
139
|
+
justify-content: flex-end;
|
|
138
140
|
}
|
|
139
141
|
.a_table__th__dropdown_item {
|
|
140
142
|
display: flex;
|