Remove data property from Article View.

This commit is contained in:
Emmanuel 2022-08-25 17:12:49 +02:00
parent a0d9f1a06e
commit 6d9efd976f
4 changed files with 3 additions and 5 deletions

View file

@ -1,12 +1,10 @@
<script lang="ts"> <script lang="ts">
import { SummaryView } from "augmented-data-viewer" import { SummaryView } from "augmented-data-viewer"
import type { Aggregate } from "$lib/aggregates"
import type { Article } from "$lib/legal" import type { Article } from "$lib/legal"
import { summarizeLegalObject } from "$lib/summaries" import { summarizeLegalObject } from "$lib/summaries"
export let article: Article export let article: Article
export let data: Aggregate
export let level = 1 export let level = 1
$: summary = summarizeLegalObject({ key: "article" }, "article", article) $: summary = summarizeLegalObject({ key: "article" }, "article", article)

View file

@ -12,7 +12,7 @@
{#if items !== undefined} {#if items !== undefined}
<div class="tabs"> <div class="tabs">
{#each items as { href, label }} {#each items as { href, label }}
<a class="tab tab-bordered" class:tab-active={href === pathname} {href} <a class="tab tab-lifted" class:tab-active={href === pathname} {href}
>{label}</a >{label}</a
> >
{/each} {/each}

View file

@ -28,7 +28,7 @@
{#each [...iterArrayOrSingleton(sectionTa.STRUCTURE_TA.LIEN_ART)] as lienArt} {#each [...iterArrayOrSingleton(sectionTa.STRUCTURE_TA.LIEN_ART)] as lienArt}
{@const article = data.article?.[lienArt["@id"]]} {@const article = data.article?.[lienArt["@id"]]}
{#if article !== undefined} {#if article !== undefined}
<ArticleView {article} {data} level={level + 1} /> <ArticleView {article} level={level + 1} />
{/if} {/if}
{/each} {/each}
{:else if sectionTa.STRUCTURE_TA.LIEN_ART !== undefined} {:else if sectionTa.STRUCTURE_TA.LIEN_ART !== undefined}

View file

@ -16,7 +16,7 @@
{#each [...iterArrayOrSingleton(textelr.STRUCT.LIEN_ART)] as lienArt} {#each [...iterArrayOrSingleton(textelr.STRUCT.LIEN_ART)] as lienArt}
{@const article = data.article?.[lienArt["@id"]]} {@const article = data.article?.[lienArt["@id"]]}
{#if article !== undefined} {#if article !== undefined}
<ArticleView {article} {data} level={level + 1} /> <ArticleView {article} level={level + 1} />
{/if} {/if}
{/each} {/each}
{:else if textelr.STRUCT.LIEN_ART !== undefined} {:else if textelr.STRUCT.LIEN_ART !== undefined}