not-bulma 1.2.24 → 1.2.26
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/package.json
CHANGED
|
@@ -55,8 +55,8 @@
|
|
|
55
55
|
? 'list-item-first'
|
|
56
56
|
: ''} {`list-item-at-${index}`} {`list-item-` +
|
|
57
57
|
(index % 2 ? 'odd' : 'even')}"
|
|
58
|
-
on:click
|
|
59
|
-
on:keyup
|
|
58
|
+
on:click={onClick}
|
|
59
|
+
on:keyup={(e) => {
|
|
60
60
|
if (e && e.key == "Enter") {
|
|
61
61
|
onClick();
|
|
62
62
|
}
|
|
@@ -192,13 +192,14 @@
|
|
|
192
192
|
{/if}
|
|
193
193
|
</div>
|
|
194
194
|
|
|
195
|
-
{#if allActions && allActions.length}
|
|
195
|
+
{#if (allActions && allActions.length) || (allLinks && allLinks.length)}
|
|
196
196
|
<div class="list-item-controls">
|
|
197
|
-
|
|
197
|
+
{#if allActions && allActions.length}
|
|
198
|
+
<UIButtons values={allActions} right={true} />
|
|
199
|
+
{/if}
|
|
200
|
+
{#if allLinks && allLinks.length}
|
|
201
|
+
<UILinks values={allLinks} right={true} />
|
|
202
|
+
{/if}
|
|
198
203
|
</div>
|
|
199
204
|
{/if}
|
|
200
|
-
|
|
201
|
-
{#if allLinks && allLinks.length}
|
|
202
|
-
<UILinks values={allLinks} right={true} />
|
|
203
|
-
{/if}
|
|
204
205
|
</div>
|
|
@@ -6,7 +6,16 @@
|
|
|
6
6
|
|
|
7
7
|
onMount(() => {
|
|
8
8
|
if (typeof field.type === "undefined") {
|
|
9
|
-
|
|
9
|
+
if (Object.hasOwn(field, "titlePath")) {
|
|
10
|
+
title = notPath.get(field.titlePath, item, helpers);
|
|
11
|
+
} else if (
|
|
12
|
+
Object.hasOwn("titleComposer") &&
|
|
13
|
+
typeof field.titleComposer === "function"
|
|
14
|
+
) {
|
|
15
|
+
title = field.titleComposer(item, helpers);
|
|
16
|
+
} else {
|
|
17
|
+
title = notPath.get(field.path, item, helpers);
|
|
18
|
+
}
|
|
10
19
|
}
|
|
11
20
|
});
|
|
12
21
|
|
|
@@ -186,6 +186,7 @@ class CRUDGenericAction {
|
|
|
186
186
|
validators: controller.getOptions("Validators"),
|
|
187
187
|
variants: controller.getOptions(`variants.${this.ACTION}`, {}),
|
|
188
188
|
masters: controller.getOptions(`${this.ACTION}.masters`, {}),
|
|
189
|
+
injected: controller.getOptions(`${this.ACTION}.injected`, {}),
|
|
189
190
|
},
|
|
190
191
|
data: this.TRANSFORMER(response.result),
|
|
191
192
|
};
|