aloha-vue 1.0.209 → 1.0.211
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.
|
@@ -201,13 +201,30 @@ export default {
|
|
|
201
201
|
id: "aloha_2"
|
|
202
202
|
},
|
|
203
203
|
{
|
|
204
|
-
label: "Aloha link",
|
|
204
|
+
label: "Aloha link to",
|
|
205
205
|
title: "Aloha link Title",
|
|
206
206
|
disabled: false,
|
|
207
207
|
class: "a_btn a_btn_secondary",
|
|
208
208
|
type: "link",
|
|
209
209
|
to: "/spinner",
|
|
210
210
|
},
|
|
211
|
+
{
|
|
212
|
+
label: "Aloha link href",
|
|
213
|
+
title: "Aloha link Title",
|
|
214
|
+
disabled: false,
|
|
215
|
+
class: "a_btn a_btn_secondary",
|
|
216
|
+
type: "link",
|
|
217
|
+
href: "/spinner",
|
|
218
|
+
icon: "Plus",
|
|
219
|
+
},
|
|
220
|
+
{
|
|
221
|
+
title: "Aloha link Title",
|
|
222
|
+
disabled: false,
|
|
223
|
+
class: "a_btn a_btn_secondary",
|
|
224
|
+
type: "link",
|
|
225
|
+
href: "/spinner",
|
|
226
|
+
icon: "Plus",
|
|
227
|
+
},
|
|
211
228
|
{
|
|
212
229
|
label: "Aloha3",
|
|
213
230
|
title: "Aloha3 Title",
|
package/package.json
CHANGED
|
@@ -42,52 +42,56 @@ export default {
|
|
|
42
42
|
};
|
|
43
43
|
},
|
|
44
44
|
render() {
|
|
45
|
+
const CHILDREN = [
|
|
46
|
+
this.action.title && h("span", {
|
|
47
|
+
class: "a_position_absolute_all",
|
|
48
|
+
title: this.action.title,
|
|
49
|
+
ariaHidden: true,
|
|
50
|
+
}),
|
|
51
|
+
this.action.icon && h(AIcon, {
|
|
52
|
+
class: "a_table__action__icon",
|
|
53
|
+
icon: this.action.icon,
|
|
54
|
+
}),
|
|
55
|
+
this.action.label && withDirectives(h("span", {
|
|
56
|
+
class: "a_table__action__text",
|
|
57
|
+
}), [
|
|
58
|
+
[ASafeHtml, this.action.label],
|
|
59
|
+
]),
|
|
60
|
+
];
|
|
61
|
+
|
|
45
62
|
if (this.type === "button") {
|
|
46
63
|
return h("button", {
|
|
47
64
|
id: this.action.id,
|
|
48
65
|
class: ["a_table__action", this.action.class],
|
|
49
66
|
disabled: this.action.disabled || this.disabled,
|
|
50
67
|
onClick: this.callbackLocal,
|
|
51
|
-
},
|
|
52
|
-
this.action.title && h("span", {
|
|
53
|
-
class: "a_position_absolute_all",
|
|
54
|
-
title: this.action.title,
|
|
55
|
-
ariaHidden: true,
|
|
56
|
-
}),
|
|
57
|
-
this.action.icon && h(AIcon, {
|
|
58
|
-
class: "a_table__action__icon",
|
|
59
|
-
icon: this.action.icon,
|
|
60
|
-
}),
|
|
61
|
-
withDirectives(h("span"), [
|
|
62
|
-
[ASafeHtml, this.action.label],
|
|
63
|
-
]),
|
|
64
|
-
]);
|
|
68
|
+
}, CHILDREN);
|
|
65
69
|
}
|
|
66
70
|
if (this.type === "link") {
|
|
67
|
-
|
|
68
|
-
resolveComponent("RouterLink")
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
71
|
+
if (this.action.to) {
|
|
72
|
+
return h(resolveComponent("RouterLink"), {
|
|
73
|
+
id: this.action.id,
|
|
74
|
+
class: [
|
|
75
|
+
"a_table__action",
|
|
76
|
+
this.action.class,
|
|
77
|
+
{
|
|
78
|
+
disabled: this.action.disabled,
|
|
79
|
+
},
|
|
80
|
+
],
|
|
81
|
+
to: this.action.to,
|
|
82
|
+
}, () => CHILDREN);
|
|
83
|
+
}
|
|
84
|
+
return h("a", {
|
|
72
85
|
id: this.action.id,
|
|
73
|
-
class: [
|
|
74
|
-
|
|
86
|
+
class: [
|
|
87
|
+
"a_table__action",
|
|
88
|
+
this.action.class,
|
|
89
|
+
{
|
|
90
|
+
disabled: this.action.disabled,
|
|
91
|
+
},
|
|
92
|
+
],
|
|
75
93
|
href: this.action.href,
|
|
76
|
-
|
|
77
|
-
}, () => [
|
|
78
|
-
this.action.title && h("span", {
|
|
79
|
-
class: "a_position_absolute_all",
|
|
80
|
-
title: this.action.title,
|
|
81
|
-
ariaHidden: true,
|
|
82
|
-
}),
|
|
83
|
-
this.action.icon && h(AIcon, {
|
|
84
|
-
class: "a_table__action__icon",
|
|
85
|
-
icon: this.action.icon,
|
|
86
|
-
}),
|
|
87
|
-
withDirectives(h("span"), [
|
|
88
|
-
[ASafeHtml, this.action.label],
|
|
89
|
-
]),
|
|
90
|
-
]);
|
|
94
|
+
}, CHILDREN);
|
|
91
95
|
}
|
|
92
96
|
if (this.type === "dropdown") {
|
|
93
97
|
return h("span", "muster dropdown");
|
|
@@ -310,8 +310,8 @@
|
|
|
310
310
|
position: relative;
|
|
311
311
|
margin-left: var(--a_table_between_actions_margin);
|
|
312
312
|
}
|
|
313
|
-
.a_table__action__icon {
|
|
314
|
-
margin-
|
|
313
|
+
.a_table__action__icon + .a_table__action__text{
|
|
314
|
+
margin-left: var(--a_table_between_actions_margin, .5rem);
|
|
315
315
|
}
|
|
316
316
|
|
|
317
317
|
.a_table__row_action {
|