@nebularstreams/libmui 2.5.94 → 2.5.96
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
|
@@ -123,7 +123,7 @@ const
|
|
|
123
123
|
m(ThematicWrapper, {
|
|
124
124
|
title: themeTitle,
|
|
125
125
|
containerClass: attrs.containerClass,
|
|
126
|
-
|
|
126
|
+
themeClass: attrs.themeClass,
|
|
127
127
|
icon: themeIcon
|
|
128
128
|
}, allItems),
|
|
129
129
|
...attrs.currentWidget && current >= 0 && items[current] ? attrs.currentWidget(items[current], current) || [] : []
|
|
@@ -289,7 +289,7 @@ const
|
|
|
289
289
|
: targetSource;
|
|
290
290
|
|
|
291
291
|
// targetSource estaba antes, targetParameters incluye TARGET !!!!
|
|
292
|
-
if (
|
|
292
|
+
if (!parameters || (whenner && !checkWhen(whenner, parameters, auxParameters, targetParameters))) {
|
|
293
293
|
return [];
|
|
294
294
|
}
|
|
295
295
|
|
|
@@ -397,7 +397,7 @@ const
|
|
|
397
397
|
? Array.isArray(rawValue)
|
|
398
398
|
? rawValue.map((item, index) => m(CardieWidget, {
|
|
399
399
|
class: "relative grows " + (metaDef.class || "emby w-max") + (metaDef.dynClass ? " " + metaDef.dynClass(parameters, auxParameters) : ""),
|
|
400
|
-
title: metaDef.dynTitle ? metaDef.dynTitle(parameters, auxParameters) : metaDef.title+" "+(index+1),
|
|
400
|
+
title: metaDef.dynTitle ? metaDef.dynTitle(parameters, auxParameters) : metaDef.title + " " + (index + 1),
|
|
401
401
|
cardid: metaDef.cardid + "-" + index,
|
|
402
402
|
nofold: false,
|
|
403
403
|
size: metaDef.margin || 0,
|
|
@@ -463,7 +463,16 @@ const
|
|
|
463
463
|
auxTargetIsDefault: attrs.auxTargetIsDefault,
|
|
464
464
|
AssetButton: attrs.AssetButton,
|
|
465
465
|
CodeMirror: attrs.CodeMirror
|
|
466
|
-
})
|
|
466
|
+
}),
|
|
467
|
+
...metaDef.addAction ? [
|
|
468
|
+
m(ButtonNew, {
|
|
469
|
+
...metaDef.addAction,
|
|
470
|
+
onClick: (e) => {
|
|
471
|
+
metaDef.addAction.onClick(e, parameters, auxParameters);
|
|
472
|
+
m.redraw();
|
|
473
|
+
}
|
|
474
|
+
})
|
|
475
|
+
] : []
|
|
467
476
|
],
|
|
468
477
|
titleExpended: metaDef.titleExpanded || metaDef.hint,
|
|
469
478
|
titleCollapsed: metaDef.titleCollapsed || metaDef.hint,
|