@nebularstreams/libmui 2.5.120 → 2.5.121
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
|
@@ -410,14 +410,9 @@ const
|
|
|
410
410
|
},
|
|
411
411
|
isCardieArray
|
|
412
412
|
? Array.isArray(rawValue)
|
|
413
|
-
? rawValue.map(
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
cardid: metaDef.cardid + "-" + index,
|
|
417
|
-
nofold: false,
|
|
418
|
-
size: metaDef.margin || 0,
|
|
419
|
-
expandedView: () => [
|
|
420
|
-
m(ParameterTable, {
|
|
413
|
+
? rawValue.map(
|
|
414
|
+
(item, index) => metaDef.small
|
|
415
|
+
? m(ParameterTable, {
|
|
421
416
|
meta: metaDef.items,
|
|
422
417
|
crit: {},
|
|
423
418
|
when: {},
|
|
@@ -441,22 +436,55 @@ const
|
|
|
441
436
|
AssetButton: attrs.AssetButton,
|
|
442
437
|
CodeMirror: attrs.CodeMirror
|
|
443
438
|
})
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
439
|
+
: m(CardieWidget, {
|
|
440
|
+
class: "relative grows " + (metaDef.class || "pad-h emby w-max") + (metaDef.dynClass ? " " + metaDef.dynClass(parameters, auxParameters, index) : ""),
|
|
441
|
+
title: metaDef.dynTitle ? metaDef.dynTitle(parameters, auxParameters, index) : metaDef.title + " " + (index + 1),
|
|
442
|
+
cardid: metaDef.cardid + "-" + index,
|
|
443
|
+
nofold: false,
|
|
444
|
+
size: metaDef.margin || 0,
|
|
445
|
+
expandedView: () => [
|
|
446
|
+
m(ParameterTable, {
|
|
447
|
+
meta: metaDef.items,
|
|
448
|
+
crit: {},
|
|
449
|
+
when: {},
|
|
450
|
+
sizes: {},
|
|
451
|
+
|
|
452
|
+
parameters: item,
|
|
453
|
+
auxParameters,
|
|
454
|
+
|
|
455
|
+
global,
|
|
456
|
+
clone,
|
|
457
|
+
onchange,
|
|
458
|
+
itemClass,
|
|
459
|
+
wrapper,
|
|
460
|
+
empty: vacioperovacio,
|
|
461
|
+
itemsDict: attrs.itemsDict,
|
|
462
|
+
layer: attrs.layer,
|
|
463
|
+
onAction: attrs.onAction,
|
|
464
|
+
optionsDict: attrs.optionsDict,
|
|
465
|
+
play: attrs.play,
|
|
466
|
+
auxTargetIsDefault: false,
|
|
467
|
+
AssetButton: attrs.AssetButton,
|
|
468
|
+
CodeMirror: attrs.CodeMirror
|
|
469
|
+
})
|
|
470
|
+
],
|
|
471
|
+
titleExpended: metaDef.titleExpanded || metaDef.hint,
|
|
472
|
+
titleCollapsed: metaDef.titleCollapsed || metaDef.hint,
|
|
473
|
+
})
|
|
474
|
+
)
|
|
475
|
+
.concat(metaDef.addAction ? [
|
|
476
|
+
m(ButtonNew, {
|
|
477
|
+
...metaDef.addAction,
|
|
478
|
+
onClick: (e) => {
|
|
479
|
+
if (metaDef.addAction.onClick) {
|
|
480
|
+
metaDef.addAction.onClick(e, parameters, auxParameters);
|
|
481
|
+
} else if (metaDef.addAction.template) {
|
|
482
|
+
rawValue.push(cloneObject(metaDef.addAction.template));
|
|
483
|
+
}
|
|
484
|
+
m.redraw();
|
|
455
485
|
}
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
})
|
|
459
|
-
] : [])
|
|
486
|
+
})
|
|
487
|
+
] : [])
|
|
460
488
|
: []
|
|
461
489
|
|
|
462
490
|
: isCardie
|
|
@@ -538,11 +566,11 @@ const
|
|
|
538
566
|
)
|
|
539
567
|
: metaDef.attrs,
|
|
540
568
|
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
569
|
+
metaDef.children
|
|
570
|
+
? metaDef.children(rawValue, state, (critical, rootParameters) => {
|
|
571
|
+
onchange(critical || UPDATECODE, rootParameters ? parameters : targetParameters, metaKey, undefined, metaDef);
|
|
572
|
+
}, global, attrs, targetParameters)
|
|
573
|
+
: [])
|
|
546
574
|
]
|
|
547
575
|
: isPlusMinus
|
|
548
576
|
? [
|