lintje 0.13.0 → 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-LhpMTvpD.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-DksmKkWN.js → controls-DHkjleqE.js} +1 -1
- package/dist-elements/chunks/date-format-imsP7-Nh.js +1 -0
- package/dist-elements/chunks/dialog-D4xqY347.js +1 -0
- package/dist-elements/chunks/{disclosure-CCO3GRDT.js → disclosure-DK8aIhWl.js} +5 -5
- package/dist-elements/chunks/{download-DXiWLTI2.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-S8RlqdwA.js → month-grid-BsW9jRNi.js} +8 -8
- package/dist-elements/chunks/{other-DoAwQm3o.js → other-BnXhCURa.js} +2 -1
- package/dist-elements/chunks/{player-BvpcNxBe.js → player-CnoXMz2g.js} +21 -21
- package/dist-elements/chunks/sentence-CxM-gm_8.js +3 -0
- package/dist-elements/chunks/{sheet-D7wJCRja.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 +274 -28
- package/dist-elements/data-types.json +179 -11
- package/dist-elements/feedback.js +1 -1
- package/dist-elements/guides/dashboard.md +3 -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 +1417 -1293
- 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 +54 -49
- 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 +636 -599
- 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 +62 -61
- 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 +303 -297
- 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 +32 -32
- 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 +45 -44
- 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 +25 -22
- package/dist-elements/tag/kpi.js +85 -82
- 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 +96 -97
- package/dist-elements/tag/logo.js +23 -23
- package/dist-elements/tag/map.js +173 -168
- 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 +41 -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 +360 -354
- 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 +32 -29
- package/dist-elements/tag/text-editor.js +21 -19
- package/dist-elements/tag/text-input.js +21 -21
- 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 +34 -35
- 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/tokens.css +34 -16
- package/dist-elements/tokens.json +12 -2
- 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 +7 -0
- package/dist-elements/types/components/charts/kpi-row/kpi-row.d.ts +10 -2
- package/dist-elements/types/components/chat/chat/chat.d.ts +1 -1
- package/dist-elements/types/components/chat/chat-composer/chat-composer.d.ts +0 -2
- 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/audio-player/audio-player.d.ts +6 -0
- package/dist-elements/types/components/content/log-viewer/log-viewer.d.ts +4 -0
- 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/header.d.ts +5 -1
- package/dist-elements/types/components/frame/shell/navigation.d.ts +0 -2
- 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/tag-input/tag-input.d.ts +2 -0
- 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/overlays/tooltip/tooltip.d.ts +4 -1
- package/dist-elements/types/components/shared/charts/dual-axis-chart/dual-axis-chart.d.ts +2 -2
- 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/map-chart/leaflet.d.ts +4 -0
- package/dist-elements/types/components/shared/charts/map-chart/map-chart.d.ts +10 -1
- package/dist-elements/types/components/shared/charts/map-chart/marks.d.ts +3 -1
- package/dist-elements/types/components/shared/charts/map-chart/reveal.d.ts +2 -2
- package/dist-elements/types/components/shared/charts/pie-chart/pie-chart.d.ts +4 -3
- 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/colors.d.ts +12 -7
- package/dist-elements/types/components/shared/charts/shared/controller.d.ts +88 -5
- package/dist-elements/types/components/shared/charts/shared/fold.d.ts +38 -0
- package/dist-elements/types/components/shared/charts/shared/forecast.d.ts +6 -1
- package/dist-elements/types/components/shared/charts/shared/mark-select.d.ts +4 -3
- package/dist-elements/types/components/shared/charts/shared/nearest-mark.d.ts +25 -0
- package/dist-elements/types/components/shared/charts/shared/plot-keys.d.ts +9 -1
- package/dist-elements/types/components/shared/charts/shared/scale.d.ts +5 -4
- package/dist-elements/types/components/shared/charts/stacked-bar-chart/stacked-bar-chart.d.ts +4 -1
- package/dist-elements/types/components/shared/charts/treemap-chart/treemap-chart.d.ts +7 -0
- 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/data-table.d.ts +7 -3
- 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/components/tables/pagination/pagination.d.ts +1 -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 +6 -1
- package/package.json +1 -1
- package/dist-elements/chunks/addon-uVno0du7.js +0 -5
- package/dist-elements/chunks/axes-Bvby71Kw.js +0 -129
- package/dist-elements/chunks/base-CA5SqOS7.js +0 -252
- package/dist-elements/chunks/chart-styles-DOqcYbwm.js +0 -45
- package/dist-elements/chunks/date-format-DvDaZtFc.js +0 -1
- package/dist-elements/chunks/dialog-IENGotYb.js +0 -1
- package/dist-elements/chunks/focus-trap-BQYLu24z.js +0 -1
- package/dist-elements/chunks/input-Ca1jedrl.js +0 -8
- package/dist-elements/chunks/input-_KQsbmkp.js +0 -1
- package/dist-elements/chunks/sentence-C9bcudIj.js +0 -3
- package/dist-elements/chunks/stagger-w2eZPjUS.js +0 -27
|
@@ -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};
|
package/dist-elements/tokens.css
CHANGED
|
@@ -147,10 +147,10 @@
|
|
|
147
147
|
--data-sky-blue-15: #D9EBF7;
|
|
148
148
|
--data-comparison: var(--neutral-5);
|
|
149
149
|
--data-other: var(--neutral-4);
|
|
150
|
-
/* Yellow as TEXT fails contrast on white: light writes a wait time in this dark gold. */
|
|
151
|
-
--data-dark-yellow-text: #B07A00;
|
|
152
150
|
/* A light colour as a line or a mark reaches 3:1 by an edge: the colour halfway to black,
|
|
153
|
-
written out so it never follows a mix. Dark yellow
|
|
151
|
+
written out so it never follows a mix. Dark yellow's is a dark gold of its own; yellow is
|
|
152
|
+
never text. */
|
|
153
|
+
--data-dark-yellow-edge: #B07A00;
|
|
154
154
|
--data-mint-green-edge: #3B695B;
|
|
155
155
|
--data-orange-edge: #703800;
|
|
156
156
|
--data-pink-edge: #784966;
|
|
@@ -783,6 +783,9 @@
|
|
|
783
783
|
--color-chosen-day-edge: oklch(from var(--primary) 0.8 min(c, 0.1) h);
|
|
784
784
|
/* The 2 px line under a term; dark takes the text tint, as the line tint falls short on it. */
|
|
785
785
|
--color-term-line: var(--color-accent-line);
|
|
786
|
+
/* The ring of today inside a chosen period; dark takes the text tint, as the line tint falls
|
|
787
|
+
short on the period's tint. */
|
|
788
|
+
--color-today-in-range: var(--color-accent-line);
|
|
786
789
|
/* The 4 px edge of a chosen row; dark takes the text tint, as the line tint falls short on the
|
|
787
790
|
selected surface. */
|
|
788
791
|
--color-selected-edge: var(--color-accent-line);
|
|
@@ -794,7 +797,7 @@
|
|
|
794
797
|
/* One colour per variable, named after the Rijkshuisstijl colour. */
|
|
795
798
|
--color-chart-sky-blue: var(--data-sky-blue);
|
|
796
799
|
--color-chart-dark-yellow: var(--data-dark-yellow);
|
|
797
|
-
--color-chart-dark-yellow-
|
|
800
|
+
--color-chart-dark-yellow-edge: var(--data-dark-yellow-edge);
|
|
798
801
|
--color-chart-red: var(--data-red);
|
|
799
802
|
--color-chart-green: var(--data-green);
|
|
800
803
|
--color-chart-mint-green: var(--data-mint-green);
|
|
@@ -822,9 +825,13 @@
|
|
|
822
825
|
--color-chart-grid: var(--data-grid);
|
|
823
826
|
--color-chart-axis: var(--neutral-5);
|
|
824
827
|
/* The zero line (darker than the grid) and the hatch of missing data carry meaning, so they
|
|
825
|
-
reach 3:1 on the surface
|
|
826
|
-
|
|
827
|
-
--color-chart-
|
|
828
|
+
reach 3:1 on the surface and on a forecast's ground: the smallest share of neutral-5 over
|
|
829
|
+
neutral-4 that does (3.0:1 on the light ground; 4.2:1 dark). */
|
|
830
|
+
--color-chart-zero: color-mix(in srgb, var(--neutral-5) 26%, var(--neutral-4));
|
|
831
|
+
--color-chart-hatch: color-mix(in srgb, var(--neutral-5) 26%, var(--neutral-4));
|
|
832
|
+
/* The forecast's part of a drawing. Dark sinks it under the surface: on the subtle grey the
|
|
833
|
+
sky blue of a dotted line fell to 2.8:1. */
|
|
834
|
+
--color-chart-forecast-ground: var(--color-bg-subtle);
|
|
828
835
|
/* A speaker's colour under a whole fragment: this share of it over the surface, so text keeps
|
|
829
836
|
its contrast in light and in dark. */
|
|
830
837
|
--tint-speaker: 12%;
|
|
@@ -1096,9 +1103,10 @@
|
|
|
1096
1103
|
--color-action-danger-hover: color-mix(in srgb, var(--status-error), white 8%);
|
|
1097
1104
|
--color-action-danger-border: oklch(from var(--status-error) max(l, 0.58) c h);
|
|
1098
1105
|
--color-action-danger-text: oklch(from var(--status-error) max(l, 0.71) min(c, 0.18) h);
|
|
1099
|
-
/* A status mark at 3:1 on its own tint
|
|
1106
|
+
/* A status mark at 3:1 on its own tint; the error's also on the filter band, where the edge
|
|
1107
|
+
of a field in error is its only outline. */
|
|
1100
1108
|
--color-attention-line: var(--status-attention);
|
|
1101
|
-
--color-error-line: oklch(from var(--status-error) max(l, 0.
|
|
1109
|
+
--color-error-line: oklch(from var(--status-error) max(l, 0.61) c h);
|
|
1102
1110
|
--color-info-line: oklch(from var(--status-info) max(l, 0.58) c h);
|
|
1103
1111
|
--color-success-line: oklch(from var(--status-success) max(l, 0.57) c h);
|
|
1104
1112
|
/* A status word at 4.5:1 on #333333, lifted as the danger word is. */
|
|
@@ -1153,8 +1161,9 @@
|
|
|
1153
1161
|
/* The menu is neutral here, so its ring is that of every other surface. */
|
|
1154
1162
|
--color-focus-on-theme: var(--color-focus);
|
|
1155
1163
|
--color-focus-on-theme-inner: var(--color-focus-inner);
|
|
1156
|
-
/*
|
|
1157
|
-
|
|
1164
|
+
/* Neutral-4 is 3.43:1 on #282828 but 2.94:1 on #333333, a chosen or opened table row: the
|
|
1165
|
+
edge takes the smallest share of neutral-5 that reaches 3:1 there too. */
|
|
1166
|
+
--color-border-choice: color-mix(in srgb, var(--neutral-5) 3%, var(--neutral-4));
|
|
1158
1167
|
|
|
1159
1168
|
/* A term's box is the subtle surface: behind a word on #282828 the dark wash would be a hole. */
|
|
1160
1169
|
--color-term-bg: var(--neutral-2);
|
|
@@ -1164,12 +1173,12 @@
|
|
|
1164
1173
|
/* The primary tint, and always a step above the fill: an orange primary is its own tint. */
|
|
1165
1174
|
--color-chosen-day-edge: oklch(from var(--primary) max(l + 0.1, 0.55) min(c, 0.15) h);
|
|
1166
1175
|
--color-term-line: var(--primary-tint-text);
|
|
1176
|
+
--color-today-in-range: var(--primary-tint-text);
|
|
1167
1177
|
--color-selected-edge: var(--primary-tint-text);
|
|
1168
1178
|
--color-progress-track: var(--color-bg-inset);
|
|
1169
1179
|
|
|
1170
|
-
/* Yellow as text works on the dark surface, so the dark gold is not needed. */
|
|
1171
|
-
--color-chart-dark-yellow-text: var(--data-dark-yellow);
|
|
1172
1180
|
/* The edges melt into their line: on the dark surface a light colour reaches 3:1 itself. */
|
|
1181
|
+
--color-chart-dark-yellow-edge: var(--data-dark-yellow);
|
|
1173
1182
|
--color-chart-mint-green-edge: var(--data-mint-green);
|
|
1174
1183
|
--color-chart-orange-edge: var(--data-orange);
|
|
1175
1184
|
--color-chart-pink-edge: var(--data-pink);
|
|
@@ -1179,6 +1188,10 @@
|
|
|
1179
1188
|
share of neutral-5 that reaches 4.5:1. */
|
|
1180
1189
|
--data-other: color-mix(in srgb, var(--neutral-5) 11%, var(--neutral-4));
|
|
1181
1190
|
--color-map-water: var(--neutral-1);
|
|
1191
|
+
/* The land is the surface, so a colour that reaches 3:1 on a tile does on the map too: on
|
|
1192
|
+
the subtle grey the sky blue of a flow or a point fell to 2.8:1. */
|
|
1193
|
+
--color-map-land: var(--neutral-0);
|
|
1194
|
+
--color-chart-forecast-ground: var(--neutral-1);
|
|
1182
1195
|
|
|
1183
1196
|
--shadow-sticky: 0 2px 6px var(--alpha-black-40);
|
|
1184
1197
|
--shadow-sticky-up: 0 -2px 6px var(--alpha-black-40);
|
|
@@ -1209,19 +1222,24 @@
|
|
|
1209
1222
|
tab on it is darker than its ground, as a white one is lighter there. */
|
|
1210
1223
|
--primary-wash: oklch(from var(--primary) 0.3 min(c, 0.02) h);
|
|
1211
1224
|
/* A status mark at 3:1 on its own tint and on the page. The info blue and the green reach it
|
|
1212
|
-
by themselves: the floor lies under them.
|
|
1213
|
-
|
|
1225
|
+
by themselves: the floor lies under them. The error's keeps the lift of dark, as the filter
|
|
1226
|
+
band is #333333 here too. */
|
|
1214
1227
|
--color-info-line: oklch(from var(--status-info) max(l, 0.5) c h);
|
|
1215
1228
|
--color-success-line: oklch(from var(--status-success) max(l, 0.5) c h);
|
|
1216
1229
|
/* The filled menu a step below the surface; the line tint is 3:1 on the page only. */
|
|
1217
1230
|
--color-nav-bg: color-mix(in srgb, var(--neutral-0), #000000 25%);
|
|
1218
1231
|
--color-map-water: var(--neutral-0);
|
|
1232
|
+
/* The land a step above the water: the grey of a tile in the earlier dark, on which every
|
|
1233
|
+
colour reaches 3:1. */
|
|
1234
|
+
--color-map-land: var(--neutral-1);
|
|
1219
1235
|
/* The inverse ring of the house style: white with the dark line inside, on every surface. */
|
|
1220
1236
|
--color-focus: var(--ink-white);
|
|
1221
1237
|
--color-focus-inner: var(--ink-black);
|
|
1222
1238
|
--color-focus-on-theme: var(--color-focus);
|
|
1223
1239
|
--color-focus-on-theme-inner: var(--color-focus-inner);
|
|
1224
|
-
|
|
1240
|
+
/* A checkbox stands on a chosen or opened table row (#333333) too, where the line tint falls
|
|
1241
|
+
under 3:1: the text tint, as the field's edge. */
|
|
1242
|
+
--color-border-choice: var(--color-accent-text);
|
|
1225
1243
|
/* A field's edge stands on the filter band (#333333) too, where the line tint falls under 3:1:
|
|
1226
1244
|
the text tint, light as the house style draws a dark field's edge. */
|
|
1227
1245
|
--color-border-field: var(--color-accent-text);
|
|
@@ -1460,6 +1460,11 @@
|
|
|
1460
1460
|
"comment": "The 2 px line under a term; dark takes the text tint, as the line tint falls short on it.",
|
|
1461
1461
|
"group": "Components that the two house styles draw differently ------------ The earlier style's values; the new style's block below sets its own. An element reads these and never the style itself, so its CSS is the same in both."
|
|
1462
1462
|
},
|
|
1463
|
+
{
|
|
1464
|
+
"name": "--color-today-in-range",
|
|
1465
|
+
"comment": "The ring of today inside a chosen period; dark takes the text tint, as the line tint falls short on the period's tint.",
|
|
1466
|
+
"group": "Components that the two house styles draw differently ------------ The earlier style's values; the new style's block below sets its own. An element reads these and never the style itself, so its CSS is the same in both."
|
|
1467
|
+
},
|
|
1463
1468
|
{
|
|
1464
1469
|
"name": "--color-selected-edge",
|
|
1465
1470
|
"comment": "The 4 px edge of a chosen row; dark takes the text tint, as the line tint falls short on the selected surface.",
|
|
@@ -1481,7 +1486,7 @@
|
|
|
1481
1486
|
"group": "Data colors"
|
|
1482
1487
|
},
|
|
1483
1488
|
{
|
|
1484
|
-
"name": "--color-chart-dark-yellow-
|
|
1489
|
+
"name": "--color-chart-dark-yellow-edge",
|
|
1485
1490
|
"comment": "",
|
|
1486
1491
|
"group": "Data colors"
|
|
1487
1492
|
},
|
|
@@ -1617,7 +1622,7 @@
|
|
|
1617
1622
|
},
|
|
1618
1623
|
{
|
|
1619
1624
|
"name": "--color-chart-zero",
|
|
1620
|
-
"comment": "The zero line (darker than the grid) and the hatch of missing data carry meaning, so they reach 3:1 on the surface
|
|
1625
|
+
"comment": "The zero line (darker than the grid) and the hatch of missing data carry meaning, so they reach 3:1 on the surface and on a forecast's ground: the smallest share of neutral-5 over neutral-4 that does (3.0:1 on the light ground; 4.2:1 dark).",
|
|
1621
1626
|
"group": "Data colors"
|
|
1622
1627
|
},
|
|
1623
1628
|
{
|
|
@@ -1625,6 +1630,11 @@
|
|
|
1625
1630
|
"comment": "",
|
|
1626
1631
|
"group": "Data colors"
|
|
1627
1632
|
},
|
|
1633
|
+
{
|
|
1634
|
+
"name": "--color-chart-forecast-ground",
|
|
1635
|
+
"comment": "The forecast's part of a drawing. Dark sinks it under the surface: on the subtle grey the sky blue of a dotted line fell to 2.8:1.",
|
|
1636
|
+
"group": "Data colors"
|
|
1637
|
+
},
|
|
1628
1638
|
{
|
|
1629
1639
|
"name": "--tint-speaker",
|
|
1630
1640
|
"comment": "A speaker's colour under a whole fragment: this share of it over the surface, so text keeps its contrast in light and in dark.",
|
|
@@ -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. */
|
|
@@ -49,6 +52,8 @@ export declare class LintjeKpi extends LintjeGridItemElement {
|
|
|
49
52
|
/** The last known value and its date, shown below a failed result. */
|
|
50
53
|
lastKnown?: string;
|
|
51
54
|
index: number;
|
|
55
|
+
/** Says no state of its own: a `lintje-kpi-row` speaks once for all its KPIs. */
|
|
56
|
+
quiet: boolean;
|
|
52
57
|
counting: (string | null)[];
|
|
53
58
|
/** The sparkline draws in once the tile is in view, like the count. */
|
|
54
59
|
drawn: boolean;
|
|
@@ -82,6 +87,8 @@ export declare class LintjeKpi extends LintjeGridItemElement {
|
|
|
82
87
|
private itemList;
|
|
83
88
|
private figure;
|
|
84
89
|
}
|
|
90
|
+
/** What a state says, as its line shows it: `null` for a ready KPI. */
|
|
91
|
+
export declare function kpiStateWords(state: ContentStateKind, message?: string): string | null;
|
|
85
92
|
declare global {
|
|
86
93
|
interface HTMLElementTagNameMap {
|
|
87
94
|
'lintje-kpi': LintjeKpi;
|
|
@@ -1,14 +1,22 @@
|
|
|
1
|
-
/**
|
|
2
|
-
|
|
1
|
+
/**
|
|
2
|
+
* `<lintje-kpi-row>` — the KPI row: one grid, the KPIs staggered in from left to right. One live
|
|
3
|
+
* region speaks for the row: five KPIs that load say "Laden" once.
|
|
4
|
+
*/
|
|
5
|
+
import { type PropertyDeclarations, type PropertyValues, type TemplateResult } from 'lit';
|
|
3
6
|
import { type FrameSettings } from '../../../core/element.js';
|
|
4
7
|
import { LintjeGridItemElement } from '../../shared/grid-item-element.js';
|
|
5
8
|
import '../kpi/kpi.js';
|
|
9
|
+
import type { HeadingLevel } from '../../shared/heading.js';
|
|
6
10
|
import type { KpiRowData } from '../../../types.js';
|
|
7
11
|
export declare class LintjeKpiRow extends LintjeGridItemElement {
|
|
12
|
+
#private;
|
|
8
13
|
static styles: import("lit").CSSResult[];
|
|
9
14
|
static properties: PropertyDeclarations;
|
|
10
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;
|
|
11
18
|
protected get dataSettings(): FrameSettings | undefined;
|
|
19
|
+
protected willUpdate(changed: PropertyValues<this>): void;
|
|
12
20
|
protected render(): TemplateResult;
|
|
13
21
|
}
|
|
14
22
|
declare global {
|
|
@@ -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';
|
|
@@ -73,8 +73,6 @@ export declare class LintjeChatComposer extends LintjeElement {
|
|
|
73
73
|
dragging: boolean;
|
|
74
74
|
/** How many are dragged: 0 when the browser does not say. */
|
|
75
75
|
dragCount: number;
|
|
76
|
-
/** What changed in the attachments, for the status region. */
|
|
77
|
-
news: string;
|
|
78
76
|
draft: string;
|
|
79
77
|
/** The caret as an offset into the draft. */
|
|
80
78
|
caret: number;
|
|
@@ -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;
|
|
@@ -42,7 +42,13 @@ export declare class LintjeAudioPlayer extends LintjePlayerElement {
|
|
|
42
42
|
private observed;
|
|
43
43
|
private get hasPeaks();
|
|
44
44
|
private get colours();
|
|
45
|
+
connectedCallback(): void;
|
|
45
46
|
disconnectedCallback(): void;
|
|
47
|
+
/**
|
|
48
|
+
* The time label under a resting pointer goes with Escape wherever the focus is (WCAG 1.4.13),
|
|
49
|
+
* and that Escape is its own: a window around the player stays open.
|
|
50
|
+
*/
|
|
51
|
+
private readonly onEscape;
|
|
46
52
|
protected updated(changed: PropertyValues<this>): void;
|
|
47
53
|
/** The slider also says who speaks, so the colours are never the only way to know. */
|
|
48
54
|
protected sliderLabel(): string;
|
|
@@ -71,6 +71,8 @@ export declare class LintjeLogViewer extends LintjeContentTileElement {
|
|
|
71
71
|
protected willUpdate(changed: PropertyValues<this>): void;
|
|
72
72
|
private arrive;
|
|
73
73
|
protected updated(changed: PropertyValues<this>): void;
|
|
74
|
+
/** The foot shows the chosen line; a reader who chose it hears it, also in the modal without one. */
|
|
75
|
+
private speakChoice;
|
|
74
76
|
/** The tile's lines, oldest first. */
|
|
75
77
|
private get rows();
|
|
76
78
|
/** The log's one tab stop: the active line, else the newest. */
|
|
@@ -97,6 +99,7 @@ export declare class LintjeLogViewer extends LintjeContentTileElement {
|
|
|
97
99
|
private viewItems;
|
|
98
100
|
private copyItems;
|
|
99
101
|
private moreItems;
|
|
102
|
+
/** The same keys in the tile and the modal; each walks the rows of its own log. */
|
|
100
103
|
private readonly onRowsKeydown;
|
|
101
104
|
protected render(): TemplateResult | typeof nothing;
|
|
102
105
|
/** Three squares at the height of the fields beside them, so the row has one height. */
|
|
@@ -105,6 +108,7 @@ export declare class LintjeLogViewer extends LintjeContentTileElement {
|
|
|
105
108
|
private renderFilters;
|
|
106
109
|
private renderFrame;
|
|
107
110
|
private renderLines;
|
|
111
|
+
private showCleared;
|
|
108
112
|
private get clearedTime();
|
|
109
113
|
private renderEmpty;
|
|
110
114
|
private renderRow;
|
|
@@ -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`. */
|
|
@@ -60,8 +60,12 @@ export declare const hasPage: (item: ShellLink) => boolean;
|
|
|
60
60
|
/** An entry that opens something of the host's (`action`) instead of a page. */
|
|
61
61
|
export declare const isAction: (item: ShellLink) => boolean;
|
|
62
62
|
/** Why an entry cannot be opened, in words: `aria-disabled` means nothing on a plain span, and
|
|
63
|
-
* the muted colour alone is no reason (rule 13). */
|
|
63
|
+
* the muted colour alone is no reason (rule 13). Only heard: in the bar and the shut rail. */
|
|
64
64
|
export declare function unavailableWord(item: ShellLink): TemplateResult;
|
|
65
|
+
/** The lock, or the words "geen toegang": the strikethrough alone is not a reason (rule 13). */
|
|
66
|
+
export declare function noAccessMark(className: string): TemplateResult;
|
|
67
|
+
/** An entry without a page says so where it is seen, in small text; heard once, after a pause. */
|
|
68
|
+
export declare function unavailableNote(className: string): TemplateResult;
|
|
65
69
|
export declare function renderNavBar(options: NavBarOptions): TemplateResult;
|
|
66
70
|
export interface SubmenuHost extends ReactiveControllerHost {
|
|
67
71
|
/** As `NavBarOptions.open`. */
|
|
@@ -26,8 +26,6 @@ export declare class NavScrollbar implements ReactiveController {
|
|
|
26
26
|
/** Dragging the thumb scrolls the list; the capture keeps the drag past the menu's edge. */
|
|
27
27
|
readonly grab: (event: PointerEvent) => void;
|
|
28
28
|
}
|
|
29
|
-
/** The lock, or the words "geen toegang": the strikethrough alone is not a reason (rule 13). */
|
|
30
|
-
export declare function noAccessMark(className: string): TemplateResult;
|
|
31
29
|
export declare const versionText: (version: string) => string;
|
|
32
30
|
export declare const feedbackLabel: (feedback: NonNullable<ShellData['feedback']>) => string;
|
|
33
31
|
/** The logo as a link to `data.home`, or the logo alone. */
|
|
@@ -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;
|