client.remove(mapping)} size={'small'} />
client.update(mapping, { comments: evt.detail })} />
client.update(mapping, { attachments: evt.detail })} />
client.update(mapping, { activity: evt.detail })} />
{#each mapping.mixins ?? [] as mixin}
{mixin}
{ client.update(mapping, { $pull: { mixins: mixin } }) }} />
{/each}
{ const h = client.getHierarchy() const mixins = toRefArray([]) for (const o of h.getAncestors(mapping.ofClass)) { const ms = h.getDescendants(h.getBaseClass(o)).filter((it) => h.isMixin(it)) for (const m of ms) { if (!mixins.includes(m)) { mixins.push(m) } } } showPopup( DropdownLabelsPopup, { items: mixins.map((it) => ({ id: it, label: h.getClass(it).label ?? it })) }, 'top', (res) => { if (res != null) { client.update(mapping, { $push: { mixins: res } }) } } ) }} />
{#each Object.entries(fieldsByClass) as field, i} {@const cl = client.getHierarchy().getClass(toClassRef(field[0]))}
{#if cl.icon}
{/if}
{#each field[1] as cfield, i}
{i + 1}.
{ showPopup( CreateMappingAttribute, { mapping, attribute: client.getHierarchy().getAttribute(cfield.ofClass, cfield.attributeName), fields, field: cfield }, 'middle' ) }} />
{/each}
{/each}