lintje 0.13.1 → 0.13.2
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/dist-elements/actions.js +1 -1
- package/dist-elements/chunks/addon-CpQCmf0a.js +5 -0
- package/dist-elements/chunks/{avatar-DOxyZZu2.js → avatar-B6dKdtGU.js} +1 -1
- package/dist-elements/chunks/axes-Ce4tMvPe.js +129 -0
- package/dist-elements/chunks/base-D8Q8sQCj.js +252 -0
- package/dist-elements/chunks/chart-styles-nx70xRzE.js +45 -0
- package/dist-elements/chunks/{controls-BqqbV4Ko.js → controls-DHkjleqE.js} +1 -1
- package/dist-elements/chunks/date-format-imsP7-Nh.js +1 -0
- package/dist-elements/chunks/{dialog-DLCvsVvo.js → dialog-D4xqY347.js} +1 -1
- package/dist-elements/chunks/{disclosure-DG65T37p.js → disclosure-DK8aIhWl.js} +5 -5
- package/dist-elements/chunks/{download-YwY5U7uD.js → download-Fdo7dKWd.js} +2 -2
- package/dist-elements/chunks/focus-trap-DmfusP3B.js +1 -0
- package/dist-elements/chunks/input-CgCrHxiZ.js +1 -0
- package/dist-elements/chunks/input-DyOCwq6h.js +8 -0
- package/dist-elements/chunks/{month-grid-rHa0Mv6m.js → month-grid-BsW9jRNi.js} +8 -8
- package/dist-elements/chunks/{other-BifP66Ib.js → other-BnXhCURa.js} +2 -1
- package/dist-elements/chunks/{player-CZXc49tR.js → player-CnoXMz2g.js} +21 -21
- package/dist-elements/chunks/sentence-CxM-gm_8.js +3 -0
- package/dist-elements/chunks/{sheet-CaA59Sfw.js → sheet-DKBISOgH.js} +2 -2
- package/dist-elements/chunks/stagger-VUPHAfRM.js +28 -0
- package/dist-elements/core.js +1 -1
- package/dist-elements/custom-elements.json +254 -27
- package/dist-elements/data-types.json +73 -8
- package/dist-elements/feedback.js +1 -1
- package/dist-elements/guides/page-contents.md +2 -1
- package/dist-elements/guides/start.md +6 -2
- package/dist-elements/layout.js +1 -1
- package/dist-elements/lintje.js +2451 -2389
- package/dist-elements/overlays.js +1 -1
- package/dist-elements/tag/accordion.js +3 -3
- package/dist-elements/tag/ai-label.js +5 -5
- package/dist-elements/tag/announcement.js +10 -10
- package/dist-elements/tag/app-search.js +44 -39
- package/dist-elements/tag/attachment.js +28 -27
- package/dist-elements/tag/audio-player.js +50 -50
- package/dist-elements/tag/badge.js +1 -1
- package/dist-elements/tag/breadcrumbs.js +14 -14
- package/dist-elements/tag/button.js +1 -1
- package/dist-elements/tag/card-list.js +10 -9
- package/dist-elements/tag/card.js +41 -41
- package/dist-elements/tag/chart.js +590 -590
- package/dist-elements/tag/chat-answer.js +23 -23
- package/dist-elements/tag/chat-composer.js +57 -54
- package/dist-elements/tag/chat-message.js +16 -16
- package/dist-elements/tag/chat-questions.js +79 -68
- package/dist-elements/tag/chat-steps.js +29 -27
- package/dist-elements/tag/chat-strip.js +25 -25
- package/dist-elements/tag/chat-suggestions.js +5 -5
- package/dist-elements/tag/chat.js +57 -57
- package/dist-elements/tag/checkbox-group.js +15 -12
- package/dist-elements/tag/checkbox.js +9 -9
- package/dist-elements/tag/code.js +7 -7
- package/dist-elements/tag/combobox.js +21 -21
- package/dist-elements/tag/conflict-alert.js +2 -2
- package/dist-elements/tag/copy-button.js +10 -8
- package/dist-elements/tag/data-table.js +301 -295
- package/dist-elements/tag/date-input.js +15 -15
- package/dist-elements/tag/date-range.js +18 -18
- package/dist-elements/tag/description-list.js +24 -24
- package/dist-elements/tag/dialog.js +7 -7
- package/dist-elements/tag/document-viewer.js +31 -31
- package/dist-elements/tag/drawer.js +9 -9
- package/dist-elements/tag/empty-state.js +1 -1
- package/dist-elements/tag/error-page.js +14 -14
- package/dist-elements/tag/error-summary.js +15 -15
- package/dist-elements/tag/expander.js +4 -4
- package/dist-elements/tag/explainer.js +6 -6
- package/dist-elements/tag/field.js +5 -5
- package/dist-elements/tag/file-upload.js +19 -18
- package/dist-elements/tag/filter-bar.js +41 -41
- package/dist-elements/tag/filter-sheet.js +7 -7
- package/dist-elements/tag/filter-zone.js +23 -23
- package/dist-elements/tag/find.js +14 -14
- package/dist-elements/tag/footer.js +13 -13
- package/dist-elements/tag/form-actions.js +5 -2
- package/dist-elements/tag/form-section.js +4 -4
- package/dist-elements/tag/form.js +3 -3
- package/dist-elements/tag/gallery.js +11 -11
- package/dist-elements/tag/graph.js +58 -58
- package/dist-elements/tag/grid-item.js +1 -1
- package/dist-elements/tag/grid.js +1 -1
- package/dist-elements/tag/hero.js +7 -7
- package/dist-elements/tag/highlight.js +3 -3
- package/dist-elements/tag/icon-button.js +1 -1
- package/dist-elements/tag/icon.js +1 -1
- package/dist-elements/tag/job-list.js +4 -4
- package/dist-elements/tag/key.js +1 -1
- package/dist-elements/tag/kpi-row.js +22 -21
- package/dist-elements/tag/kpi.js +84 -84
- package/dist-elements/tag/language-nav.js +20 -20
- package/dist-elements/tag/level-meter.js +7 -7
- package/dist-elements/tag/list.js +54 -48
- package/dist-elements/tag/log-viewer.js +91 -91
- package/dist-elements/tag/logo.js +23 -23
- package/dist-elements/tag/map.js +160 -160
- package/dist-elements/tag/menu-button.js +49 -49
- package/dist-elements/tag/modal.js +12 -10
- package/dist-elements/tag/multiselect.js +21 -21
- package/dist-elements/tag/note.js +6 -6
- package/dist-elements/tag/notifications.js +37 -37
- package/dist-elements/tag/number-input.js +19 -18
- package/dist-elements/tag/page-header.js +17 -17
- package/dist-elements/tag/pagination.js +40 -40
- package/dist-elements/tag/person-group.js +10 -10
- package/dist-elements/tag/person.js +7 -7
- package/dist-elements/tag/popover.js +1 -1
- package/dist-elements/tag/progress-bar.js +1 -1
- package/dist-elements/tag/prose.js +1 -1
- package/dist-elements/tag/qr-code.js +5 -5
- package/dist-elements/tag/radio-group.js +18 -17
- package/dist-elements/tag/range.js +25 -25
- package/dist-elements/tag/recording-status.js +9 -9
- package/dist-elements/tag/repeater.js +4 -4
- package/dist-elements/tag/segmented.js +11 -11
- package/dist-elements/tag/select.js +7 -7
- package/dist-elements/tag/shell.js +355 -355
- package/dist-elements/tag/skeleton.js +1 -1
- package/dist-elements/tag/slot-picker.js +12 -12
- package/dist-elements/tag/sortable-list.js +23 -23
- package/dist-elements/tag/spinner.js +1 -1
- package/dist-elements/tag/split-pane.js +9 -9
- package/dist-elements/tag/status-dot.js +1 -1
- package/dist-elements/tag/stepper.js +18 -18
- package/dist-elements/tag/streaming-text.js +13 -13
- package/dist-elements/tag/sub-nav.js +26 -26
- package/dist-elements/tag/tabs.js +40 -40
- package/dist-elements/tag/tag-input.js +30 -30
- package/dist-elements/tag/text-editor.js +21 -19
- package/dist-elements/tag/text-input.js +19 -19
- package/dist-elements/tag/textarea.js +13 -11
- package/dist-elements/tag/tile.js +1 -1
- package/dist-elements/tag/time-input.js +16 -16
- package/dist-elements/tag/timeline.js +74 -71
- package/dist-elements/tag/toast.js +14 -12
- package/dist-elements/tag/toggle.js +6 -6
- package/dist-elements/tag/toggletip.js +6 -6
- package/dist-elements/tag/token-value.js +1 -1
- package/dist-elements/tag/tooltip.js +1 -1
- package/dist-elements/tag/transcript.js +33 -32
- package/dist-elements/tag/translator.js +4 -3
- package/dist-elements/tag/tree-view.js +22 -22
- package/dist-elements/tag/user-menu.js +58 -57
- package/dist-elements/tag/video-player.js +12 -12
- package/dist-elements/types/components/actions/copy-button/copy-button.d.ts +5 -0
- package/dist-elements/types/components/actions/menu-button/menu-button.d.ts +6 -1
- package/dist-elements/types/components/charts/kpi/kpi.d.ts +3 -0
- package/dist-elements/types/components/charts/kpi-row/kpi-row.d.ts +3 -0
- package/dist-elements/types/components/chat/chat/chat.d.ts +1 -1
- package/dist-elements/types/components/chat/chat-questions/chat-questions.d.ts +2 -1
- package/dist-elements/types/components/chat/shared/chat-terms.d.ts +2 -0
- package/dist-elements/types/components/content/attachment/attachment.d.ts +6 -1
- package/dist-elements/types/components/content/translator/translator.d.ts +5 -0
- package/dist-elements/types/components/feedback/toast/toast.d.ts +5 -1
- package/dist-elements/types/components/filters/filter-zone/filter-zone.d.ts +3 -1
- package/dist-elements/types/components/forms/form-actions/form-actions.d.ts +4 -1
- package/dist-elements/types/components/forms/stepper/stepper.d.ts +1 -0
- package/dist-elements/types/components/frame/app-search/app-search.d.ts +2 -0
- package/dist-elements/types/components/frame/shell/shell.d.ts +5 -0
- package/dist-elements/types/components/frame/user-menu/user-menu.d.ts +2 -0
- package/dist-elements/types/components/inputs/checkbox-group/checkbox-group.d.ts +2 -1
- package/dist-elements/types/components/inputs/date-input/date-input.d.ts +5 -0
- package/dist-elements/types/components/inputs/radio-group/radio-group.d.ts +1 -2
- package/dist-elements/types/components/inputs/shared/field-foot.d.ts +6 -0
- package/dist-elements/types/components/inputs/shared/input.d.ts +17 -2
- package/dist-elements/types/components/inputs/text-input/text-input.d.ts +5 -2
- package/dist-elements/types/components/inputs/textarea/textarea.d.ts +11 -0
- package/dist-elements/types/components/shared/charts/dumbbell-chart/dumbbell-chart.d.ts +4 -1
- package/dist-elements/types/components/shared/charts/histogram-chart/histogram-chart.d.ts +2 -1
- package/dist-elements/types/components/shared/charts/scatter-chart/scatter-chart.d.ts +2 -1
- package/dist-elements/types/components/shared/charts/shared/axes.d.ts +7 -6
- package/dist-elements/types/components/shared/charts/shared/controller.d.ts +45 -5
- package/dist-elements/types/components/shared/charts/shared/forecast.d.ts +6 -1
- package/dist-elements/types/components/shared/charts/shared/scale.d.ts +5 -4
- package/dist-elements/types/components/shared/charts/treemap-chart/treemap-labels.d.ts +3 -2
- package/dist-elements/types/components/shared/date-format.d.ts +3 -3
- package/dist-elements/types/components/shared/other.d.ts +2 -1
- package/dist-elements/types/components/tables/data-table/filters.d.ts +2 -1
- package/dist-elements/types/components/tables/list/list.d.ts +2 -0
- package/dist-elements/types/core/format.d.ts +15 -3
- package/dist-elements/types/core/scroll-room.d.ts +16 -0
- package/dist-elements/types/types.d.ts +2 -0
- package/package.json +1 -1
- package/dist-elements/chunks/addon-DfVEONqu.js +0 -5
- package/dist-elements/chunks/axes-CJ9OYbJH.js +0 -129
- package/dist-elements/chunks/base-BG7S5mfj.js +0 -252
- package/dist-elements/chunks/chart-styles-DJNuYpC7.js +0 -45
- package/dist-elements/chunks/date-format-DvDaZtFc.js +0 -1
- package/dist-elements/chunks/focus-trap-qpJ8dcyO.js +0 -1
- package/dist-elements/chunks/input-C9sgh1sN.js +0 -1
- package/dist-elements/chunks/input-CqG9-9vm.js +0 -8
- package/dist-elements/chunks/sentence-BXX9hGs0.js +0 -3
- package/dist-elements/chunks/stagger-AP4F3gBU.js +0 -28
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{At as e,B as t,En as n,Et as r,Mt as i,Nt as a,V as o,Z as s,wn as c,wt as l,xn as u,yn as d}from"../chunks/base-D8Q8sQCj.js";import"./menu-button.js";import{n as f,o as p,p as m}from"../chunks/playback-gEUDw038.js";import{n as h,t as g}from"../chunks/player-CnoXMz2g.js";var _=`:host{min-width:0;display:block}:host([hidden]){display:none}.lintje-video-player{border:1px solid var(--color-border-default);border-radius:var(--radius);background:var(--color-bg-surface);color:var(--color-text-primary)}.lintje-video-player__stage{aspect-ratio:16/9;background:var(--color-media-bg);justify-content:center;align-items:center;display:flex;position:relative;overflow:hidden}.lintje-video-player__video{object-fit:contain;background:var(--color-media-bg);width:100%;height:100%;position:absolute;inset:0}.lintje-video-player__big-play.lintje-button,.lintje-video-player__retry.lintje-button{border:2px solid var(--color-text-on-fill);position:relative}.lintje-video-player__big-play.lintje-button{width:64px;height:64px;padding:0}.lintje-video-player__big-play.lintje-button.is-disabled{border-color:var(--color-text-on-fill)}.lintje-video-player__failed{align-items:center;gap:var(--space-3);padding:0 var(--space-6);text-align:center;color:var(--color-text-on-fill);flex-direction:column;display:flex;position:relative}.lintje-video-player__failed-mark{width:var(--space-6);height:var(--space-6);background:var(--color-error);color:var(--color-text-inverse);justify-content:center;align-items:center;display:flex}.lintje-video-player__failed-text{font:var(--text-ui);margin:0;font-weight:700}.lintje-video-player__caption{left:var(--space-4);right:var(--space-4);bottom:var(--space-4);text-align:center;pointer-events:none;position:absolute}.lintje-video-player__caption-text{padding:var(--space-1) var(--space-2);background:var(--color-media-bg);color:var(--color-text-on-fill);font:var(--text-body);-webkit-box-decoration-break:clone;box-decoration-break:clone}.lintje-video-player__controls{gap:var(--space-2);padding:var(--space-3) var(--space-3) var(--space-2);flex-direction:column;display:flex}.lintje-video-player__timeline{align-items:center;gap:var(--space-3);display:flex}.lintje-video-player__buttons{align-items:center;gap:var(--space-1);display:flex}.lintje-video-player__speed{padding:0 var(--space-1);background:var(--color-term-bg);color:var(--color-accent-text);font:var(--text-small);font-variant-numeric:tabular-nums;flex:none;font-weight:700}.lintje-video-player__end{align-items:center;gap:var(--space-1);margin-left:auto;display:flex}.lintje-video-player__captions.is-on{box-shadow:inset 0 -3px 0 var(--color-accent-line)}.lintje-video-player__more{--h-icon-button:var(--h-touch)}.lintje-video-player:fullscreen{border:0;flex-direction:column;display:flex}.lintje-video-player:fullscreen .lintje-video-player__stage{aspect-ratio:auto;flex:auto;min-height:0}@media screen and (width<=767px){.lintje-video-player{border-left:0;border-right:0}}@media (forced-colors:active){.lintje-video-player__speed,.lintje-video-player__failed-mark{outline:1px solid canvastext}.lintje-video-player__captions.is-on{border-bottom:3px solid highlight}}`,v=`ondertiteling`,y=`audiodescriptie`;function b(e,t){return e.key.toLowerCase()!==t||e.ctrlKey||e.metaKey||e.altKey?!1:!e.composedPath().some(e=>[`INPUT`,`TEXTAREA`].includes(e.tagName??``))}var x=class extends h{constructor(...e){super(...e),this.segments=[],this.captions=!1,this.described=!1,this.fullscreen=!1,this.muted=!1,this.narrow=!1,this.#e=new s(()=>this.fit()),this.#t=null,this.mediaSelector=`video`,this.onFullscreenChange=()=>{let e=this.shadowRoot?.fullscreenElement;this.fullscreen=e!=null&&e===this.frame},this.onBigPlay=()=>{this.ready&&(this.toggle(),this.updateComplete.then(()=>this.renderRoot.querySelector(`.lintje-player__play`)?.focus()))},this.onRetry=()=>{this.retry(),this.updateComplete.then(()=>this.renderRoot.querySelector(`.lintje-video-player__big-play, .lintje-player__play`)?.focus())}}static{this.styles=[i,u(r),u(o),u(g),u(_)]}static{this.properties={segments:{attribute:!1},captions:{type:Boolean,reflect:!0},describedSrc:{type:String,attribute:`described-src`},described:{type:Boolean,reflect:!0},fullscreen:{state:!0},muted:{state:!0},narrow:{state:!0}}}#e;#t;get frame(){return this.renderRoot.querySelector(`.lintje-video-player`)}connectedCallback(){super.connectedCallback(),document.addEventListener(`fullscreenchange`,this.onFullscreenChange)}disconnectedCallback(){document.removeEventListener(`fullscreenchange`,this.onFullscreenChange),this.#e.disconnect(),this.#t=null,super.disconnectedCallback()}updated(e){super.updated(e);let t=this.renderRoot.querySelector(`.lintje-video-player__buttons`);t&&t!==this.#t&&(this.#e.disconnect(),this.#e.observe(t),this.#t=t,this.fit())}fit(){let e=this.#t;if(!e)return;let n=5*t(e,`--h-touch`,48)+4*t(e,`--space-1`,4),r=e.clientWidth>0&&e.clientWidth<n;r!==this.narrow&&(this.narrow=r)}get source(){return this.described&&this.describedSrc?this.describedSrc:this.src}async switchDescribed(){let e=this.position,t=this.playing;this.described=!this.described,this.ready=!1,this.playing=!1,this.seek(e),await this.updateComplete;let n=this.media;t&&n&&n.addEventListener(`loadedmetadata`,()=>void n.play()?.catch?.(()=>void 0),{once:!0})}get caption(){let e=p(this.segments,this.position);return e<0?``:this.segments[e]?.text??``}get waiting(){return!this.playing&&this.position===0}get menuItems(){return[...this.narrow?[{value:v,label:`Ondertiteling`,checked:this.captions,hint:`C`}]:[],...this.describedSrc?[{value:y,label:`Audiodescriptie`,checked:this.described}]:[],`separator`,{heading:`Afspeelsnelheid`},...f.map(e=>({value:String(e.value),label:e.label,checked:e.value===this.speed,radio:!0}))]}toggleFullscreen(){if(this.fullscreen){typeof document.exitFullscreen==`function`&&document.exitFullscreen().catch(()=>void 0);return}let e=this.frame;e&&this.ready&&e.requestFullscreen?.()?.catch?.(()=>void 0)}onMenuAction(e){e.stopPropagation(),e.detail===v?this.captions=!this.captions:e.detail===y?this.switchDescribed():this.setSpeed(Number(e.detail))}onKeydown(e){b(e,`f`)?(e.preventDefault(),this.toggleFullscreen()):b(e,`c`)?(e.preventDefault(),this.captions=!this.captions):this.onGroupKeydown(e)}renderFailed(){return n`<div class="lintje-video-player__failed" role="alert">
|
|
2
2
|
<span class="lintje-video-player__failed-mark"
|
|
3
|
-
>${
|
|
3
|
+
>${a(`functioneel-waarschuwing`,{size:14})}</span
|
|
4
4
|
>
|
|
5
5
|
<p class="lintje-video-player__failed-text">De video kan niet worden geladen.</p>
|
|
6
6
|
<button
|
|
@@ -8,21 +8,21 @@ import{B as e,Dt as t,Et as n,X as r,bn as i,bt as a,hn as o,pn as s,vn as c,vt
|
|
|
8
8
|
class="lintje-button lintje-button--primary lintje-video-player__retry"
|
|
9
9
|
@click=${this.onRetry}
|
|
10
10
|
>
|
|
11
|
-
${
|
|
11
|
+
${a(`functioneel-refresh`,{size:20})}
|
|
12
12
|
<span class="lintje-button__label" @pointerenter=${l}>Opnieuw proberen</span>
|
|
13
13
|
</button>
|
|
14
|
-
</div>`}renderOverlay(){if(this.failed)return this.renderFailed();if(this.waiting)return
|
|
14
|
+
</div>`}renderOverlay(){if(this.failed)return this.renderFailed();if(this.waiting)return n`<button
|
|
15
15
|
type="button"
|
|
16
|
-
class=${
|
|
16
|
+
class=${e({"lintje-button":!0,"lintje-button--primary":!0,"lintje-video-player__big-play":!0,"is-disabled":!this.ready})}
|
|
17
17
|
aria-label="Afspelen"
|
|
18
18
|
title="Afspelen"
|
|
19
19
|
aria-disabled=${this.ready?c:`true`}
|
|
20
20
|
@click=${this.onBigPlay}
|
|
21
21
|
>
|
|
22
|
-
${
|
|
23
|
-
</button>`;let
|
|
24
|
-
<span class="lintje-video-player__caption-text">${
|
|
25
|
-
</div>`:c}renderStage(){return
|
|
22
|
+
${a(`multimedia-player-afspelen`,{size:28})}
|
|
23
|
+
</button>`;let t=this.captions?this.caption:``;return t?n`<div class="lintje-video-player__caption">
|
|
24
|
+
<span class="lintje-video-player__caption-text">${t}</span>
|
|
25
|
+
</div>`:c}renderStage(){return n`<div class="lintje-video-player__stage">
|
|
26
26
|
<video
|
|
27
27
|
class="lintje-video-player__video"
|
|
28
28
|
preload="metadata"
|
|
@@ -32,12 +32,12 @@ import{B as e,Dt as t,Et as n,X as r,bn as i,bt as a,hn as o,pn as s,vn as c,vt
|
|
|
32
32
|
@click=${()=>this.toggle()}
|
|
33
33
|
></video>
|
|
34
34
|
${this.renderOverlay()}
|
|
35
|
-
</div>`}renderMute(){return this.renderIconButton(this.muted?`functioneel-geluid-uit`:`functioneel-geluid-aan`,`Geluid dempen`,()=>this.muted=!this.muted,{disabled:!1,pressed:this.muted})}renderCaptions(){return this.renderIconButton(`functioneel-ondertiteling`,`Ondertiteling`,()=>this.captions=!this.captions,{disabled:!1,pressed:this.captions,className:`lintje-video-player__captions${this.captions?` is-on`:``}`})}render(){return
|
|
35
|
+
</div>`}renderMute(){return this.renderIconButton(this.muted?`functioneel-geluid-uit`:`functioneel-geluid-aan`,`Geluid dempen`,()=>this.muted=!this.muted,{disabled:!1,pressed:this.muted})}renderCaptions(){return this.renderIconButton(`functioneel-ondertiteling`,`Ondertiteling`,()=>this.captions=!this.captions,{disabled:!1,pressed:this.captions,className:`lintje-video-player__captions${this.captions?` is-on`:``}`})}render(){return n`<div class="lintje-video-player" role="group" aria-label=${this.name||`Video`} @keydown=${this.onKeydown}>
|
|
36
36
|
${this.renderStage()}
|
|
37
37
|
<div class="lintje-video-player__controls">
|
|
38
38
|
<div class="lintje-video-player__timeline">
|
|
39
39
|
${this.renderBar()} ${this.renderTime(!0)}
|
|
40
|
-
${this.speed===1?c:
|
|
40
|
+
${this.speed===1?c:n`<span class="lintje-video-player__speed">${m(this.speed)}</span>`}
|
|
41
41
|
</div>
|
|
42
42
|
<div class="lintje-video-player__buttons">
|
|
43
43
|
${this.renderPlay()} ${this.renderMute()}
|
|
@@ -57,4 +57,4 @@ import{B as e,Dt as t,Et as n,X as r,bn as i,bt as a,hn as o,pn as s,vn as c,vt
|
|
|
57
57
|
</span>
|
|
58
58
|
</div>
|
|
59
59
|
</div>
|
|
60
|
-
</div>`}};
|
|
60
|
+
</div>`}};d(`lintje-video-player`,x);export{x as LintjeVideoPlayer};
|
|
@@ -26,6 +26,11 @@ export declare class LintjeCopyButton extends LintjeElement {
|
|
|
26
26
|
variant?: 'primary' | 'flat';
|
|
27
27
|
/** `compact` stands level with 40 px icon buttons. */
|
|
28
28
|
size: 'regular' | 'compact';
|
|
29
|
+
/**
|
|
30
|
+
* What it copies, read after its name ("zaaknummer"): the name stays "Kopiëren", as the
|
|
31
|
+
* button shows.
|
|
32
|
+
*/
|
|
33
|
+
description?: string;
|
|
29
34
|
disabled: boolean;
|
|
30
35
|
copied: boolean;
|
|
31
36
|
failed: boolean;
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
* Events: `lintje-action` `string` (the row's value, or `action` from a split button's own half),
|
|
12
12
|
* `lintje-navigate` `{ href }` (a link row).
|
|
13
13
|
*/
|
|
14
|
-
import { type PropertyDeclarations, type PropertyValues, type TemplateResult } from 'lit';
|
|
14
|
+
import { nothing, type PropertyDeclarations, type PropertyValues, type TemplateResult } from 'lit';
|
|
15
15
|
import { LintjeElement } from '../../../core/element.js';
|
|
16
16
|
import '../../overlays/popover/popover.js';
|
|
17
17
|
import '../../feedback/spinner/spinner.js';
|
|
@@ -44,6 +44,11 @@ export interface MenuHeading {
|
|
|
44
44
|
export type MenuEntry = MenuItem | MenuHeading | 'separator';
|
|
45
45
|
/** `flat` is the tertiary with less side padding, for a trigger among flat icon buttons. */
|
|
46
46
|
export type MenuButtonVariant = 'primary' | 'secondary' | 'tertiary' | 'flat' | 'ellipsis';
|
|
47
|
+
/**
|
|
48
|
+
* What stands before a row's label: a switch's check, one of a choice's circle, else its icon.
|
|
49
|
+
* Shared with the user menu, which draws its own rows.
|
|
50
|
+
*/
|
|
51
|
+
export declare function renderMenuMark(item: MenuItem): TemplateResult | typeof nothing;
|
|
47
52
|
/**
|
|
48
53
|
* The entries of a menu: a heading and the rows under it form a `group` named by it, since a menu
|
|
49
54
|
* takes no loose text. Shared with the user menu, which draws its own rows.
|
|
@@ -8,6 +8,7 @@ import { type PropertyDeclarations, type PropertyValues, type TemplateResult } f
|
|
|
8
8
|
import { LintjeGridItemElement } from '../../shared/grid-item-element.js';
|
|
9
9
|
import '../../feedback/status-dot/status-dot.js';
|
|
10
10
|
import '../../feedback/skeleton/skeleton.js';
|
|
11
|
+
import { type HeadingLevel } from '../../shared/heading.js';
|
|
11
12
|
import type { KpiGauge, KpiItem, KpiSparkline, ContentStateKind, KpiTrend, KpiVariable } from '../../../types.js';
|
|
12
13
|
type Point = [number, number];
|
|
13
14
|
/** The points of each unbroken run of values: a `null` ends a run (rule 15). */
|
|
@@ -17,6 +18,8 @@ export declare class LintjeKpi extends LintjeGridItemElement {
|
|
|
17
18
|
static styles: import("lit").CSSResult[];
|
|
18
19
|
static properties: PropertyDeclarations;
|
|
19
20
|
label: string;
|
|
21
|
+
/** The label's heading level, 2 to 6; `h3` when unset, as a tile's title. */
|
|
22
|
+
level?: HeadingLevel;
|
|
20
23
|
/** An icon file name, drawn before the label. Decorative; it stays in every state. */
|
|
21
24
|
icon?: string;
|
|
22
25
|
/** A string or number with one number in it counts up when the tile comes into view. */
|
|
@@ -6,12 +6,15 @@ import { type PropertyDeclarations, type PropertyValues, type TemplateResult } f
|
|
|
6
6
|
import { type FrameSettings } from '../../../core/element.js';
|
|
7
7
|
import { LintjeGridItemElement } from '../../shared/grid-item-element.js';
|
|
8
8
|
import '../kpi/kpi.js';
|
|
9
|
+
import type { HeadingLevel } from '../../shared/heading.js';
|
|
9
10
|
import type { KpiRowData } from '../../../types.js';
|
|
10
11
|
export declare class LintjeKpiRow extends LintjeGridItemElement {
|
|
11
12
|
#private;
|
|
12
13
|
static styles: import("lit").CSSResult[];
|
|
13
14
|
static properties: PropertyDeclarations;
|
|
14
15
|
data?: KpiRowData | null;
|
|
16
|
+
/** The heading level of every label, 2 to 6; `h3` when unset, for a row that stands deeper. */
|
|
17
|
+
level?: HeadingLevel;
|
|
15
18
|
protected get dataSettings(): FrameSettings | undefined;
|
|
16
19
|
protected willUpdate(changed: PropertyValues<this>): void;
|
|
17
20
|
protected render(): TemplateResult;
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
* `ready`: a streaming answer drops the strip, and the focus with it, while the reader chooses in
|
|
13
13
|
* it. A turn's `divider` stands as a centred line above its question. The `questions` of the last
|
|
14
14
|
* answer stand in a box above the question box until the next turn; on a phone the question box
|
|
15
|
-
* folds to one line meanwhile.
|
|
15
|
+
* folds to one line meanwhile, unless the reader is typing in it.
|
|
16
16
|
*/
|
|
17
17
|
import { nothing, type PropertyDeclarations, type PropertyValues, type TemplateResult } from 'lit';
|
|
18
18
|
import { LintjeElement, type FrameSettings } from '../../../core/element.js';
|
|
@@ -6,7 +6,8 @@
|
|
|
6
6
|
* Every choice question ends in "Iets anders…". What the reader picked is the element's own until
|
|
7
7
|
* it sends, and starts over only when the questions change (other ids). It checks its own questions
|
|
8
8
|
* at Volgende and Versturen. `focus()` puts the focus on the first choice; `lintje-chat` calls it
|
|
9
|
-
* when the box appears while the focus is in the conversation
|
|
9
|
+
* when the box appears while the focus is in the conversation and the question box holds no
|
|
10
|
+
* draft. The host sets `state: 'sending'`
|
|
10
11
|
* while it waits, then adds a turn with `text` as the reader's message, which ends the questions.
|
|
11
12
|
*
|
|
12
13
|
* Events: `lintje-questions-answer` `{ turnId, answers, text }` (`answers`: per question
|
|
@@ -9,6 +9,8 @@ export interface ChatTextPart {
|
|
|
9
9
|
}
|
|
10
10
|
/** Cuts a text at its term ranges; an empty, out-of-text or overlapping range is dropped. */
|
|
11
11
|
export declare function termParts(text: string, terms?: ChatTermRange[]): ChatTextPart[];
|
|
12
|
+
/** What a recognised term is, in words: its kind and, when it is a guess, "niet zeker". */
|
|
13
|
+
export declare function termWords(term: ChatTermRange): string;
|
|
12
14
|
/**
|
|
13
15
|
* Finds the vocabulary's terms: whole words, case-insensitive, longest spelling first, never
|
|
14
16
|
* overlapping. A term is certain unless `ambiguous` or from a source not in `sources`.
|
|
@@ -45,7 +45,12 @@ export declare class LintjeAttachment extends LintjeElement {
|
|
|
45
45
|
private onLink;
|
|
46
46
|
/** What stands beside the name: the percentage, the reason, `detail` or the size. */
|
|
47
47
|
private get detail();
|
|
48
|
-
/**
|
|
48
|
+
/**
|
|
49
|
+
* The state where the file is not done: the word and the reason ("geweigerd: Dit bestandstype
|
|
50
|
+
* kan niet"). A busy file's percentage is the progress bar's, so it is said once.
|
|
51
|
+
*/
|
|
52
|
+
private get stateWords();
|
|
53
|
+
/** The chip in words: the name, its state where it is not done, else what stands beside it. */
|
|
49
54
|
private get spoken();
|
|
50
55
|
private renderMark;
|
|
51
56
|
private renderContent;
|
|
@@ -27,6 +27,11 @@ export declare class LintjeTranslator extends LintjeElement {
|
|
|
27
27
|
sourceLabel: string;
|
|
28
28
|
/** The translation half's accessible name. */
|
|
29
29
|
targetLabel: string;
|
|
30
|
+
/**
|
|
31
|
+
* The source text's language (`en`), as `lang` on its native field; the label and the counter
|
|
32
|
+
* stay Dutch. The host sets it again on each choice and swap.
|
|
33
|
+
*/
|
|
34
|
+
sourceLang?: string;
|
|
30
35
|
/**
|
|
31
36
|
* `text` (default): the source and its translation. `documents`: the language bar and the swap
|
|
32
37
|
* over the default slot at full width, for documents to translate: the upload and the queue.
|
|
@@ -3,13 +3,17 @@
|
|
|
3
3
|
*
|
|
4
4
|
* The host owns whether it exists. A toast that closes by itself is held while the pointer is on
|
|
5
5
|
* it or the focus in it, and its six seconds start again when both have left. Closing with the
|
|
6
|
-
* focus inside, it gives the focus back first.
|
|
6
|
+
* focus inside, it gives the focus back first. It stands above what else sticks at the bottom of
|
|
7
|
+
* the page (a form's action bar); one that stays keeps its height free as the scroller's
|
|
8
|
+
* `scroll-padding-bottom` and scrolls a focused element that still ends up under it clear.
|
|
7
9
|
*
|
|
8
10
|
* Events: `lintje-close` (timed out or closed), `lintje-action` (its action was pressed).
|
|
9
11
|
*/
|
|
10
12
|
import { type PropertyDeclarations, type TemplateResult } from 'lit';
|
|
11
13
|
import { LintjeElement } from '../../../core/element.js';
|
|
12
14
|
export type ToastKind = 'ok' | 'error' | 'info' | 'warning';
|
|
15
|
+
/** The word a screen reader hears before the text: the glyph and the tint say nothing to it. */
|
|
16
|
+
export declare const TOAST_PREFIX: Record<ToastKind, string>;
|
|
13
17
|
export declare class LintjeToast extends LintjeElement {
|
|
14
18
|
#private;
|
|
15
19
|
static styles: import("lit").CSSResult[];
|
|
@@ -3,7 +3,8 @@
|
|
|
3
3
|
*
|
|
4
4
|
* The controls come in through the slot and the sentence as parts; the owner keeps the state. The
|
|
5
5
|
* zone is expanded, scrolled (a sticky summary bar) or, below 768 px, the sentence only: a button
|
|
6
|
-
* that asks the owner to open its sheet.
|
|
6
|
+
* that asks the owner to open its sheet. Stuck and expanded it lies over the page, so it asks to
|
|
7
|
+
* close as the focus leaves it, and on Escape, which puts the focus on its toggle.
|
|
7
8
|
*
|
|
8
9
|
* Events: `lintje-filters-reset`, `lintje-zone-open-change` `boolean`,
|
|
9
10
|
* `lintje-zone-scrolled-change` `boolean`, `lintje-zone-sheet-open` (below 768 px).
|
|
@@ -38,6 +39,7 @@ export declare class LintjeFilterZone extends LintjeElement {
|
|
|
38
39
|
*/
|
|
39
40
|
focus(options?: FocusOptions): void;
|
|
40
41
|
private readonly onResize;
|
|
42
|
+
constructor();
|
|
41
43
|
connectedCallback(): void;
|
|
42
44
|
disconnectedCallback(): void;
|
|
43
45
|
private measureOverflow;
|
|
@@ -4,7 +4,8 @@
|
|
|
4
4
|
*
|
|
5
5
|
* While connected it reserves its height as the page scroller's `scroll-padding-bottom`, so a
|
|
6
6
|
* field the focus scrolls to is not hidden behind it, and scrolls a focused element that still
|
|
7
|
-
* ends up under it clear. While the form scrolls behind it, it casts its shadow upward
|
|
7
|
+
* ends up under it clear. While the form scrolls behind it, it casts its shadow upward and, below
|
|
8
|
+
* 768 px, runs from edge to edge of the screen, its buttons in line with the fields. Below a
|
|
8
9
|
* viewport height of 30rem it does not stick and reserves nothing: it stands after the last field.
|
|
9
10
|
*/
|
|
10
11
|
import { type PropertyDeclarations, type TemplateResult } from 'lit';
|
|
@@ -28,6 +29,8 @@ export declare class LintjeFormActions extends LintjeElement {
|
|
|
28
29
|
/** When it was saved: "10:42" or anything `Date` parses. */
|
|
29
30
|
savedAt?: string;
|
|
30
31
|
protected stuck: boolean;
|
|
32
|
+
/** Stuck on a phone: how far the bar reaches past its own box to the screen's left and right. */
|
|
33
|
+
protected bleed: [number, number] | null;
|
|
31
34
|
connectedCallback(): void;
|
|
32
35
|
get buttons(): HTMLElement[];
|
|
33
36
|
get primaryButton(): HTMLElement | null;
|
|
@@ -60,6 +60,7 @@ export declare class LintjeStepper extends LintjeElement {
|
|
|
60
60
|
disconnectedCallback(): void;
|
|
61
61
|
protected willUpdate(changed: PropertyValues<this>): void;
|
|
62
62
|
protected updated(changed: PropertyValues<this>): void;
|
|
63
|
+
private watchSteps;
|
|
63
64
|
private get vertical();
|
|
64
65
|
private get current();
|
|
65
66
|
private fit;
|
|
@@ -16,6 +16,8 @@ export interface SearchResult {
|
|
|
16
16
|
/** What `lintje-action` carries. */
|
|
17
17
|
id: string;
|
|
18
18
|
label: string;
|
|
19
|
+
/** The language of the label when it is not the page's (`pl`), as `lang` on it. */
|
|
20
|
+
lang?: string;
|
|
19
21
|
/** A fact on the right in the muted colour: a duration, a date. */
|
|
20
22
|
meta?: string;
|
|
21
23
|
/** The result is a page: a choice sends `lintje-navigate`. */
|
|
@@ -15,6 +15,11 @@
|
|
|
15
15
|
* head in the new style and above it in the earlier one; `footer` holds the `lintje-footer`. The events of its parts (`lintje-action`, `lintje-logout`,
|
|
16
16
|
* `lintje-notification-open`, `lintje-notifications-read`) reach the host as they are.
|
|
17
17
|
*
|
|
18
|
+
* A bar of the host's own that sticks in the page carries `data-sticky="top"` or
|
|
19
|
+
* `data-sticky="bottom"`: the scroller keeps the room it covers free as `scroll-padding`, with the
|
|
20
|
+
* shell's own bar, so a control the keyboard scrolls to does not end up under it. The shell
|
|
21
|
+
* follows the bar as it grows, stops sticking or goes.
|
|
22
|
+
*
|
|
18
23
|
* Events: `lintje-navigate` `{ href }`, `lintje-view-change` `ShellViewChange`,
|
|
19
24
|
* `lintje-search-open`, `lintje-action` with the entry's `action`.
|
|
20
25
|
*/
|
|
@@ -65,6 +65,8 @@ export declare class LintjeUserMenu extends LintjeElement {
|
|
|
65
65
|
private logout;
|
|
66
66
|
disconnectedCallback(): void;
|
|
67
67
|
protected updated(changed: PropertyValues<this>): void;
|
|
68
|
+
/** A switch or a choice says its state as in `lintje-menu-button`; inline, as outside a menu. */
|
|
69
|
+
private rowRole;
|
|
68
70
|
private renderRow;
|
|
69
71
|
/**
|
|
70
72
|
* `compact`: the glyph alone beside the name, its word its accessible name. A button, not a
|
|
@@ -5,7 +5,8 @@
|
|
|
5
5
|
* Only the group tells the host: its rows carry no `name`. `required` draws nothing and sets no
|
|
6
6
|
* ARIA, since a group cannot carry `aria-required`: the browser's message in a native form and
|
|
7
7
|
* the host's message say what is missing. With `other` the last row is "Anders", value `other`,
|
|
8
|
-
* with a text field under it while it is checked
|
|
8
|
+
* with a text field under it while it is checked: the focus stays on the row, and the field is
|
|
9
|
+
* the next Tab stop. The host sets `other-error` for an empty one.
|
|
9
10
|
*
|
|
10
11
|
* Events: `lintje-change` `string[]` (the checked values), `lintje-other-change` `string` (the
|
|
11
12
|
* field's text, on leaving it or Enter), `lintje-values-change`
|
|
@@ -23,6 +23,11 @@ export declare class LintjeDateInput extends LintjeInputElement {
|
|
|
23
23
|
/** The day the calendar marks as today, ISO. Defaults to the real one. */
|
|
24
24
|
today?: string;
|
|
25
25
|
placeholder: string;
|
|
26
|
+
/**
|
|
27
|
+
* What the day is, passed to the native field as is (`bday`), so the browser and assistive
|
|
28
|
+
* software can fill it in; without it the field says `off`.
|
|
29
|
+
*/
|
|
30
|
+
autocomplete: string;
|
|
26
31
|
stacked: boolean;
|
|
27
32
|
/** Whether the calendar is open. Reflected, so a sheet can leave Escape to it. */
|
|
28
33
|
open: boolean;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* `<lintje-radio-group>` — one option per line, for options that do not fit `lintje-segmented`.
|
|
3
3
|
*
|
|
4
4
|
* With `other` the last option is "Anders", value `other`, with a text field under it while it is
|
|
5
|
-
* chosen;
|
|
5
|
+
* chosen; the focus stays on the option, and the field is the next Tab stop. The group checks
|
|
6
6
|
* nothing: the host sets `error`, and `other-error` for an empty field. Cards draw no "Anders".
|
|
7
7
|
*
|
|
8
8
|
* Events: `lintje-change` `string`, `lintje-other-change` `string` (the field's text, on leaving
|
|
@@ -14,7 +14,6 @@ import { LintjeChoiceGroupElement } from '../shared/input.js';
|
|
|
14
14
|
import '../text-input/text-input.js';
|
|
15
15
|
import type { FilterOption } from '../../../types.js';
|
|
16
16
|
export declare class LintjeRadioGroup extends LintjeChoiceGroupElement {
|
|
17
|
-
#private;
|
|
18
17
|
static styles: import("lit").CSSResult[];
|
|
19
18
|
static properties: PropertyDeclarations;
|
|
20
19
|
value: string;
|
|
@@ -8,6 +8,12 @@ export interface FootIds {
|
|
|
8
8
|
hintId: string;
|
|
9
9
|
errorId: string;
|
|
10
10
|
}
|
|
11
|
+
/** Where a control's `description` stands: hidden text, read after its label. */
|
|
12
|
+
export declare const DESCRIPTION_ID = "lintje-input-description";
|
|
11
13
|
export declare function footDescribedBy(hint: string | undefined, message: string, ids: FootIds): string | typeof nothing;
|
|
12
14
|
/** `alert: false` leaves a message out of the alert region, for one that changes as the user types. */
|
|
13
15
|
export declare function renderFieldFoot(hint: string | undefined, message: string, ids: FootIds, alert?: boolean): TemplateResult | typeof nothing;
|
|
16
|
+
/** A control's `description`, never drawn: the host shows those words itself. */
|
|
17
|
+
export declare function renderDescription(description: string | undefined): TemplateResult | typeof nothing;
|
|
18
|
+
/** `aria-describedby` with the description in front of the ids of the foot. */
|
|
19
|
+
export declare function describedWith(description: string | undefined, ids: string | typeof nothing): string | typeof nothing;
|
|
@@ -130,6 +130,11 @@ export declare abstract class LintjeInputElement extends LintjeGridItemElement {
|
|
|
130
130
|
export declare abstract class LintjeFormInputElement extends LintjeInputElement {
|
|
131
131
|
static properties: PropertyDeclarations;
|
|
132
132
|
readonly: boolean;
|
|
133
|
+
/**
|
|
134
|
+
* What the field asks for, passed to the native control as is (`name`, `email`, `bday-year`),
|
|
135
|
+
* so the browser and assistive software can fill it in.
|
|
136
|
+
*/
|
|
137
|
+
autocomplete: string;
|
|
133
138
|
abstract value: unknown;
|
|
134
139
|
private initialValue;
|
|
135
140
|
protected abstract get formValue(): string;
|
|
@@ -157,6 +162,11 @@ export declare abstract class LintjeChoiceGroupElement extends LintjeInputElemen
|
|
|
157
162
|
#private;
|
|
158
163
|
static properties: PropertyDeclarations;
|
|
159
164
|
options?: FilterOption[];
|
|
165
|
+
/**
|
|
166
|
+
* Read after the label and never drawn: what the host shows about the group itself, such as
|
|
167
|
+
* the hint above a group whose label it hides.
|
|
168
|
+
*/
|
|
169
|
+
description?: string;
|
|
160
170
|
/**
|
|
161
171
|
* Ends the options in "Anders", value `other`, with a text field under it while it is chosen.
|
|
162
172
|
* Left out when an option of the host already has the value `other`.
|
|
@@ -176,11 +186,18 @@ export declare abstract class LintjeChoiceGroupElement extends LintjeInputElemen
|
|
|
176
186
|
* sets it from `errors.fields['<name>-other']`. The group never sets it itself.
|
|
177
187
|
*/
|
|
178
188
|
otherError?: string;
|
|
189
|
+
/**
|
|
190
|
+
* Brings the row that takes the keyboard's focus wholly into view, also in a list that scrolls:
|
|
191
|
+
* WebKit leaves a row that is partly in view where it is, with its focus ring cut.
|
|
192
|
+
*/
|
|
193
|
+
protected readonly revealRow: (event: Event) => void;
|
|
179
194
|
/** "Anders" is the choice, or one of them. */
|
|
180
195
|
protected abstract get otherChosen(): boolean;
|
|
181
196
|
/** The control of the option "Anders", where the focus goes when its field goes. */
|
|
182
197
|
protected abstract get otherOption(): HTMLElement | null;
|
|
183
198
|
protected warnOnce(key: string, message: string): void;
|
|
199
|
+
protected get describedBy(): string | typeof nothing;
|
|
200
|
+
protected renderFoot(): TemplateResult | typeof nothing;
|
|
184
201
|
/** The group draws "Anders": `other` is on and no option of the host holds its value. */
|
|
185
202
|
protected get drawsOther(): boolean;
|
|
186
203
|
/** "Anders" is drawn and chosen: its field stands, and its text counts. */
|
|
@@ -189,8 +206,6 @@ export declare abstract class LintjeChoiceGroupElement extends LintjeInputElemen
|
|
|
189
206
|
protected valuesChange(url: unknown): Record<string, unknown>;
|
|
190
207
|
/** The field's commit: `lintje-other-change`, and `lintje-values-change` with a `name`. */
|
|
191
208
|
protected commitOther(text: string): void;
|
|
192
|
-
/** After "Anders" is chosen by a click, a tap or Space: the focus goes into its field. */
|
|
193
|
-
protected focusOther(): Promise<void>;
|
|
194
209
|
formResetCallback(): void;
|
|
195
210
|
protected willUpdate(changed: PropertyValues<this>): void;
|
|
196
211
|
protected updated(changed: PropertyValues<this>): void;
|
|
@@ -33,8 +33,6 @@ export declare class LintjeTextInput extends LintjeFormInputElement {
|
|
|
33
33
|
* bundles keystrokes and commits 300 ms after the last.
|
|
34
34
|
*/
|
|
35
35
|
commitOn: CommitOn;
|
|
36
|
-
/** Passed to the native input as is. */
|
|
37
|
-
autocomplete: string;
|
|
38
36
|
/** The fixed text before the input, as written ("€", "www."); never part of `value`. */
|
|
39
37
|
prefix: string | null;
|
|
40
38
|
/** The fixed text after the input (".nl", "@rijksoverheid.nl"); never part of `value`. */
|
|
@@ -44,6 +42,11 @@ export declare class LintjeTextInput extends LintjeFormInputElement {
|
|
|
44
42
|
* then sends `lintje-action`; it works when `readonly`. Ignored for a password.
|
|
45
43
|
*/
|
|
46
44
|
action?: string;
|
|
45
|
+
/**
|
|
46
|
+
* Says the field must be filled, as `aria-required` only: unlike `required` it holds back no
|
|
47
|
+
* form, for a field whose holder checks it, such as the one under "Anders, namelijk".
|
|
48
|
+
*/
|
|
49
|
+
softRequired: boolean;
|
|
47
50
|
protected revealed: boolean;
|
|
48
51
|
private readonly typing;
|
|
49
52
|
protected get formValue(): string;
|
|
@@ -23,6 +23,11 @@ export declare class LintjeTextarea extends LintjeFormInputElement {
|
|
|
23
23
|
static properties: PropertyDeclarations;
|
|
24
24
|
value: string;
|
|
25
25
|
placeholder: string;
|
|
26
|
+
/**
|
|
27
|
+
* Read after the label and never drawn: what the host shows about the field itself, such as
|
|
28
|
+
* the hint above a field whose label it hides.
|
|
29
|
+
*/
|
|
30
|
+
description?: string;
|
|
26
31
|
/** The limit the counter counts to; the counter is read out from 90 % of it on. */
|
|
27
32
|
maxlength?: number;
|
|
28
33
|
/** The attribute `commit`; `commit()` is the method every input commits through. */
|
|
@@ -35,6 +40,11 @@ export declare class LintjeTextarea extends LintjeFormInputElement {
|
|
|
35
40
|
* stands and the full height, for a surface that frames the text and draws the ring itself.
|
|
36
41
|
*/
|
|
37
42
|
variant: TextareaVariant;
|
|
43
|
+
/**
|
|
44
|
+
* The language of the text in the field (`en`), as `lang` on the native control: the label,
|
|
45
|
+
* the hint and the counter keep the page's.
|
|
46
|
+
*/
|
|
47
|
+
textLang?: string;
|
|
38
48
|
private readonly typing;
|
|
39
49
|
private get counterId();
|
|
40
50
|
private get control();
|
|
@@ -52,6 +62,7 @@ export declare class LintjeTextarea extends LintjeFormInputElement {
|
|
|
52
62
|
private get counterShown();
|
|
53
63
|
protected renderFieldLine(): TemplateResult | typeof nothing;
|
|
54
64
|
protected renderFoot(): TemplateResult | typeof nothing;
|
|
65
|
+
private renderOwnFoot;
|
|
55
66
|
protected render(): TemplateResult;
|
|
56
67
|
}
|
|
57
68
|
declare global {
|
|
@@ -14,7 +14,10 @@ type DumbbellSpec = Extract<ChartSpec, {
|
|
|
14
14
|
/** The legend keys of the two moments: never the host's labels, which may name anything. */
|
|
15
15
|
export declare const FROM_KEY = "moment:from";
|
|
16
16
|
export declare const TO_KEY = "moment:to";
|
|
17
|
-
/**
|
|
17
|
+
/**
|
|
18
|
+
* The chart's height with every name on one line: a row each, the head above and the scale
|
|
19
|
+
* under them. On a phone a name that runs on makes its row taller.
|
|
20
|
+
*/
|
|
18
21
|
export declare function dumbbellHeight(count: number, mobile?: boolean): number;
|
|
19
22
|
/** As many decimals as the most precise value of the rows. */
|
|
20
23
|
export declare function dumbbellDecimals(rows: DumbbellRow[]): number;
|
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
*/
|
|
5
5
|
import { type TemplateResult } from 'lit';
|
|
6
6
|
import { type PlotArea } from '../shared/scale.js';
|
|
7
|
+
import { type TextFont } from '../../../../core/format.js';
|
|
7
8
|
import { type ChartOptions } from '../shared/controller.js';
|
|
8
9
|
import type { ChartSpec } from '../shared/types.js';
|
|
9
10
|
type HistogramSpec = Extract<ChartSpec, {
|
|
@@ -24,7 +25,7 @@ export interface LineLabel {
|
|
|
24
25
|
* Where the labels of the median and the threshold stand: right of their line, or left of it
|
|
25
26
|
* where they would leave the drawing, and the right one a line lower when the two would touch.
|
|
26
27
|
*/
|
|
27
|
-
export declare function placeLineLabels(labels: LineLabel[], area: PlotArea,
|
|
28
|
+
export declare function placeLineLabels(labels: LineLabel[], area: PlotArea, font?: TextFont | string): {
|
|
28
29
|
x: number;
|
|
29
30
|
y: number;
|
|
30
31
|
anchor: 'start' | 'end';
|
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
*/
|
|
5
5
|
import { type TemplateResult } from 'lit';
|
|
6
6
|
import { type PlotArea } from '../shared/scale.js';
|
|
7
|
+
import { type TextFont } from '../../../../core/format.js';
|
|
7
8
|
import { type ChartOptions } from '../shared/controller.js';
|
|
8
9
|
import type { ChartSpec } from '../shared/types.js';
|
|
9
10
|
type ScatterSpec = Extract<ChartSpec, {
|
|
@@ -24,6 +25,6 @@ export declare function placeDataLabels(points: {
|
|
|
24
25
|
label: string;
|
|
25
26
|
x: number;
|
|
26
27
|
y: number;
|
|
27
|
-
}[], names: string[], area: PlotArea,
|
|
28
|
+
}[], names: string[], area: PlotArea, font: TextFont | string): DataLabel[];
|
|
28
29
|
export declare function renderScatterChart(spec: ScatterSpec, options: ChartOptions): TemplateResult;
|
|
29
30
|
export {};
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
/** The chart frame: axes, grid, zero line, hatching, as-of line, description and legend. */
|
|
2
2
|
import { nothing, type SVGTemplateResult, type TemplateResult } from 'lit';
|
|
3
3
|
import { type PlotArea } from './scale.js';
|
|
4
|
+
import { type TextFont } from '../../../../core/format.js';
|
|
4
5
|
import type { PlotKeys } from './plot-keys.js';
|
|
5
6
|
import { type SeriesKey, type SeriesShape } from './series-shapes.js';
|
|
6
7
|
/** Anything that may go inside the `<svg>`; built with lit's `svg`, since `html` draws nothing. */
|
|
@@ -76,8 +77,8 @@ export interface ChartFrameOptions {
|
|
|
76
77
|
zeroLine?: boolean;
|
|
77
78
|
/** How a tick is written; `axisColumn` decides between full and compact. Default full. */
|
|
78
79
|
formatTick?: (tick: number) => string;
|
|
79
|
-
/** The
|
|
80
|
-
|
|
80
|
+
/** The axis labels' type (`controller.font`), for measuring the x labels. */
|
|
81
|
+
font?: TextFont;
|
|
81
82
|
id: string;
|
|
82
83
|
/** Some mark is a button: the drawing is a group named by its description, not an image. */
|
|
83
84
|
interactive?: boolean;
|
|
@@ -104,8 +105,8 @@ export declare function thinLabels<T extends {
|
|
|
104
105
|
label: string;
|
|
105
106
|
x: number;
|
|
106
107
|
anchor?: XAnchor;
|
|
107
|
-
}>(labels: T[],
|
|
108
|
-
export declare function renderChartFrame({ area, ticks, max, axisTitle, xLabels, xTitle, description, defs, underlay, zeroLine, formatTick, id, height,
|
|
108
|
+
}>(labels: T[], font?: TextFont | string): T[];
|
|
109
|
+
export declare function renderChartFrame({ area, ticks, max, axisTitle, xLabels, xTitle, description, defs, underlay, zeroLine, formatTick, id, height, font, interactive, keys, }: ChartFrameOptions, children: SvgSlot): TemplateResult;
|
|
109
110
|
/**
|
|
110
111
|
* The boundary of a forecast: one line at `x`, "Gemeten" left of it and the forecast's word right,
|
|
111
112
|
* or on a row of its own above when it does not fit there (`forecastWordFits`).
|
|
@@ -116,8 +117,8 @@ export interface ForecastBoundary {
|
|
|
116
117
|
x: number;
|
|
117
118
|
/** The forecast's word, `forecastLabel`. */
|
|
118
119
|
label: string;
|
|
119
|
-
/** The
|
|
120
|
-
|
|
120
|
+
/** The axis labels' type (`controller.font`), for measuring whether the word fits. */
|
|
121
|
+
font?: TextFont;
|
|
121
122
|
}
|
|
122
123
|
/**
|
|
123
124
|
* The as-of marker. Up to 6 pending hours (tail) it draws nothing and the missing hours are
|