merge newui branch

This commit is contained in:
Gani Georgiev
2026-04-18 16:29:34 +03:00
parent 58f605e90c
commit 4c44044c0c
804 changed files with 58660 additions and 56663 deletions
+25
View File
@@ -0,0 +1,25 @@
// {
// record: undefined,
// field: undefined,
// short: false,
// }
export function view(props) {
return t.div(
{ className: "record-field-view field-type-select" },
t.div({ className: "inline-flex gap-5" }, () => {
const opts = app.utils.toArray(props.record[props.field.name], false);
if (!opts.length) {
return t.span({ className: "missing-value" });
}
return opts.map((opt) => {
return t.span({
className: "label",
title: opt,
textContent: app.utils.truncate(opt, 100),
});
});
}),
);
}