lintje 0.9.3 → 0.11.0
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/README.md +22 -2
- package/dist-elements/actions.js +1 -1
- package/dist-elements/chunks/{addon-zZwlFBDN.js → addon-vDKHjfAZ.js} +1 -1
- package/dist-elements/chunks/{avatar-kLK6qFix.js → avatar-C9j937BH.js} +1 -1
- package/dist-elements/chunks/{axes-jbBotAbO.js → axes-B9fzQwCk.js} +53 -53
- package/dist-elements/chunks/base-DuQ2Vtz3.js +242 -0
- package/dist-elements/chunks/chart-styles-DaUNCkQY.js +45 -0
- package/dist-elements/chunks/dialog-close-C7CGALyn.js +1 -0
- package/dist-elements/chunks/{disclosure-aaAybyXK.js → disclosure-BgVHG1xD.js} +6 -6
- package/dist-elements/chunks/{disclosure-Ch2SwnkG.js → disclosure-CfMDSiGM.js} +1 -1
- package/dist-elements/chunks/{download-BTmiE2sH.js → download-DWeK24tr.js} +1 -1
- package/dist-elements/chunks/{focus-trap-tejzhStJ.js → focus-trap-C9KKNhHI.js} +1 -1
- package/dist-elements/chunks/frame-CWMTL0Pv.js +1 -0
- package/dist-elements/chunks/input-Ap7GDYW9.js +1 -0
- package/dist-elements/chunks/{input-DU30gcqt.js → input-DwmXkGtG.js} +4 -4
- package/dist-elements/chunks/menu-ku7K3tXM.js +1 -0
- package/dist-elements/chunks/{month-grid-CLVsqhJ2.js → month-grid-8yhG22kd.js} +1 -1
- package/dist-elements/chunks/{other-CykCb2df.js → other-COvEJIZk.js} +1 -1
- package/dist-elements/chunks/{player-DDjAMclj.js → player-BsBxV8WN.js} +17 -17
- package/dist-elements/chunks/prose-BALGe_vb.js +1 -0
- package/dist-elements/chunks/sentence-6WiGDAwX.js +3 -0
- package/dist-elements/chunks/{stagger-B3XWt8tj.js → stagger-C2i8bcj-.js} +8 -8
- package/dist-elements/core.js +1 -1
- package/dist-elements/custom-elements.json +3941 -251
- package/dist-elements/data-types.json +349 -34
- package/dist-elements/feedback.js +1 -1
- package/dist-elements/frame.js +1 -1
- package/dist-elements/guides/dashboard.md +13 -3
- package/dist-elements/guides/loading.md +2 -2
- package/dist-elements/guides/start.md +53 -1
- package/dist-elements/guides/theming.md +69 -0
- package/dist-elements/layout.js +1 -1
- package/dist-elements/lintje.js +2473 -2262
- package/dist-elements/overlays.js +1 -1
- package/dist-elements/skills/lintje/SKILL.md +3 -1
- package/dist-elements/tables.js +1 -1
- package/dist-elements/tag/accordion.js +3 -3
- package/dist-elements/tag/ai-label.js +4 -4
- package/dist-elements/tag/announcement.js +9 -9
- package/dist-elements/tag/app-search.js +19 -19
- package/dist-elements/tag/attachment.js +24 -24
- package/dist-elements/tag/audio-player.js +39 -39
- package/dist-elements/tag/badge.js +1 -1
- package/dist-elements/tag/breadcrumbs.js +10 -10
- package/dist-elements/tag/button.js +1 -1
- package/dist-elements/tag/card-list.js +9 -9
- package/dist-elements/tag/card.js +30 -30
- package/dist-elements/tag/chart.js +542 -530
- package/dist-elements/tag/chat-answer.js +43 -43
- package/dist-elements/tag/chat-composer.js +66 -74
- package/dist-elements/tag/chat-message.js +14 -14
- package/dist-elements/tag/chat-questions.js +57 -57
- package/dist-elements/tag/chat-steps.js +20 -20
- package/dist-elements/tag/chat-strip.js +23 -23
- package/dist-elements/tag/chat-suggestions.js +6 -6
- package/dist-elements/tag/chat.js +47 -47
- package/dist-elements/tag/checkbox-group.js +11 -10
- package/dist-elements/tag/checkbox.js +7 -7
- package/dist-elements/tag/code.js +6 -6
- package/dist-elements/tag/combobox.js +20 -19
- package/dist-elements/tag/conflict-alert.js +8 -8
- package/dist-elements/tag/copy-button.js +5 -5
- package/dist-elements/tag/data-table.js +164 -163
- package/dist-elements/tag/date-input.js +11 -10
- package/dist-elements/tag/date-range.js +16 -15
- package/dist-elements/tag/description-list.js +17 -17
- package/dist-elements/tag/dialog.js +7 -7
- package/dist-elements/tag/document-viewer.js +21 -21
- package/dist-elements/tag/drawer.js +9 -9
- package/dist-elements/tag/empty-state.js +1 -1
- package/dist-elements/tag/error-page.js +11 -11
- package/dist-elements/tag/error-summary.js +12 -12
- package/dist-elements/tag/expander.js +4 -4
- package/dist-elements/tag/explainer.js +4 -4
- package/dist-elements/tag/field.js +4 -4
- package/dist-elements/tag/file-upload.js +18 -17
- package/dist-elements/tag/filter-bar.js +40 -40
- package/dist-elements/tag/filter-sheet.js +3 -3
- package/dist-elements/tag/filter-zone.js +18 -18
- package/dist-elements/tag/find.js +14 -14
- package/dist-elements/tag/footer.js +15 -15
- package/dist-elements/tag/form-actions.js +2 -2
- package/dist-elements/tag/form-section.js +3 -3
- package/dist-elements/tag/form.js +3 -3
- package/dist-elements/tag/gallery.js +11 -11
- package/dist-elements/tag/graph.js +64 -63
- package/dist-elements/tag/grid-item.js +1 -1
- package/dist-elements/tag/grid.js +1 -1
- package/dist-elements/tag/hero.js +8 -7
- package/dist-elements/tag/highlight.js +4 -4
- package/dist-elements/tag/icon-button.js +1 -1
- package/dist-elements/tag/icon.js +1 -1
- package/dist-elements/tag/job-list.js +3 -3
- package/dist-elements/tag/key.js +1 -1
- package/dist-elements/tag/kpi-row.js +4 -4
- package/dist-elements/tag/kpi.js +73 -73
- package/dist-elements/tag/language-nav.d.ts +1 -0
- package/dist-elements/tag/language-nav.js +45 -0
- package/dist-elements/tag/level-meter.js +8 -8
- package/dist-elements/tag/list.js +26 -26
- package/dist-elements/tag/log-viewer.js +72 -71
- package/dist-elements/tag/logo.js +15 -15
- package/dist-elements/tag/map.js +163 -162
- package/dist-elements/tag/menu-button.js +43 -41
- package/dist-elements/tag/modal.js +9 -9
- package/dist-elements/tag/multiselect.js +15 -14
- package/dist-elements/tag/note.js +2 -2
- package/dist-elements/tag/notifications.js +23 -23
- package/dist-elements/tag/number-input.js +19 -18
- package/dist-elements/tag/page-header.js +21 -11
- package/dist-elements/tag/pagination.js +28 -28
- package/dist-elements/tag/person-group.js +5 -5
- package/dist-elements/tag/person.js +8 -8
- 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 +3 -3
- package/dist-elements/tag/radio-group.js +15 -14
- package/dist-elements/tag/range.js +17 -16
- package/dist-elements/tag/recording-status.js +9 -9
- package/dist-elements/tag/repeater.js +5 -5
- package/dist-elements/tag/segmented.js +8 -7
- package/dist-elements/tag/select.js +10 -7
- package/dist-elements/tag/shell.js +265 -248
- package/dist-elements/tag/skeleton.js +1 -1
- package/dist-elements/tag/slot-picker.js +15 -14
- package/dist-elements/tag/sortable-list.js +21 -21
- 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 +12 -12
- package/dist-elements/tag/streaming-text.js +12 -12
- package/dist-elements/tag/sub-nav.js +20 -20
- package/dist-elements/tag/tabs.js +35 -33
- package/dist-elements/tag/tag-input.js +26 -25
- package/dist-elements/tag/text-editor.js +12 -11
- package/dist-elements/tag/text-input.js +20 -19
- package/dist-elements/tag/textarea.js +11 -10
- package/dist-elements/tag/tile.js +1 -1
- package/dist-elements/tag/time-input.js +8 -7
- package/dist-elements/tag/timeline.d.ts +1 -0
- package/dist-elements/tag/timeline.js +121 -0
- package/dist-elements/tag/toast.js +8 -8
- package/dist-elements/tag/toggle.js +4 -4
- package/dist-elements/tag/toggletip.js +6 -6
- package/dist-elements/tag/token-value.js +2 -2
- package/dist-elements/tag/tooltip.js +1 -1
- package/dist-elements/tag/transcript.js +22 -22
- package/dist-elements/tag/translator.js +6 -6
- package/dist-elements/tag/tree-view.js +22 -22
- package/dist-elements/tag/user-menu.js +43 -42
- package/dist-elements/tag/video-player.js +15 -15
- package/dist-elements/tokens.css +331 -11
- package/dist-elements/tokens.json +419 -19
- package/dist-elements/types/bundle/frame.d.ts +1 -0
- package/dist-elements/types/bundle/styleguide/suite.d.ts +4 -0
- package/dist-elements/types/bundle/tables.d.ts +1 -1
- package/dist-elements/types/components/actions/button/button.d.ts +5 -1
- package/dist-elements/types/components/actions/menu-button/menu-button.d.ts +23 -5
- package/dist-elements/types/components/chat/chat-composer/chat-composer.d.ts +4 -2
- package/dist-elements/types/components/frame/breadcrumbs/breadcrumbs.d.ts +6 -2
- package/dist-elements/types/components/frame/footer/footer.d.ts +5 -1
- package/dist-elements/types/components/frame/hero/hero.d.ts +18 -1
- package/dist-elements/types/components/frame/language-nav/language-nav.d.ts +49 -0
- package/dist-elements/types/components/frame/page-header/page-header.d.ts +15 -1
- package/dist-elements/types/components/frame/shell/shell.d.ts +23 -3
- package/dist-elements/types/components/index.d.ts +7 -4
- package/dist-elements/types/components/inputs/shared/field-foot.d.ts +3 -2
- package/dist-elements/types/components/inputs/shared/input.d.ts +11 -0
- package/dist-elements/types/components/inputs/text-input/text-input.d.ts +1 -1
- package/dist-elements/types/components/inputs/textarea/textarea.d.ts +1 -0
- package/dist-elements/types/components/layout/expander/expander.d.ts +10 -5
- package/dist-elements/types/components/layout/tabs/tabs.d.ts +3 -0
- package/dist-elements/types/components/layout/tile/tile.d.ts +22 -2
- package/dist-elements/types/components/overlays/drawer/drawer.d.ts +5 -1
- package/dist-elements/types/components/overlays/popover/popover.d.ts +2 -0
- package/dist-elements/types/components/shared/announcement-block.d.ts +2 -0
- package/dist-elements/types/components/shared/avatar.d.ts +2 -0
- package/dist-elements/types/components/shared/charts/map-chart/leaflet.d.ts +3 -0
- package/dist-elements/types/components/shared/charts/map-chart/map-chart.d.ts +3 -0
- package/dist-elements/types/components/shared/charts/shared/types.d.ts +6 -0
- package/dist-elements/types/components/shared/grid-item-element.d.ts +24 -1
- package/dist-elements/types/components/shared/tone.d.ts +7 -0
- package/dist-elements/types/components/tables/list/list.d.ts +6 -0
- package/dist-elements/types/components/tables/timeline/timeline.d.ts +231 -0
- package/dist-elements/types/core/element.d.ts +20 -2
- package/dist-elements/types/core/styles.d.ts +4 -2
- package/dist-elements/types/icons/register.d.ts +1 -1
- package/dist-elements/types/types.d.ts +16 -1
- package/dist-icons/functioneel-cirkel-vinkje-gekleurd.svg +1 -0
- package/dist-icons/functioneel-foutmelding-gekleurd.svg +1 -0
- package/dist-icons/functioneel-info-gekleurd.svg +1 -0
- package/dist-icons/functioneel-waarschuwing-gekleurd.svg +1 -0
- package/package.json +1 -1
- package/dist-elements/chunks/base-DJgeU93O.js +0 -226
- package/dist-elements/chunks/chart-styles-rqZu3uuz.js +0 -45
- package/dist-elements/chunks/dialog-close-D_M0cwDT.js +0 -1
- package/dist-elements/chunks/frame-BMR48Vea.js +0 -1
- package/dist-elements/chunks/input-CCT6CcW1.js +0 -1
- package/dist-elements/chunks/prose-aNcSsHId.js +0 -1
- package/dist-elements/chunks/sentence-DuGsxXp6.js +0 -3
- package/dist-elements/tag/activity-log.d.ts +0 -1
- package/dist-elements/tag/activity-log.js +0 -30
- package/dist-elements/types/components/tables/activity-log/activity-log.d.ts +0 -45
|
@@ -2,10 +2,33 @@
|
|
|
2
2
|
import { type PropertyDeclarations, type PropertyValues } from 'lit';
|
|
3
3
|
import { LintjeElement } from '../../core/element.js';
|
|
4
4
|
export declare const spanStyles: import("lit").CSSResult;
|
|
5
|
-
/**
|
|
5
|
+
/**
|
|
6
|
+
* Where an item stands in `<lintje-grid>`: `span`, and on a phone `span-mobile`, `order-mobile`
|
|
7
|
+
* and whether it shows (`hide-mobile`, `hide-desktop`), reflected, with `--lintje-span`,
|
|
8
|
+
* `--lintje-span-mobile` and `--lintje-order-mobile` written inline for `span.css`.
|
|
9
|
+
*/
|
|
6
10
|
export declare class LintjeGridItemElement extends LintjeElement {
|
|
7
11
|
static properties: PropertyDeclarations;
|
|
8
12
|
/** Columns of the 12-column grid; default one. */
|
|
9
13
|
span?: number;
|
|
14
|
+
/**
|
|
15
|
+
* Columns of the phone's four in the new house style, below 768 px; default all four. The
|
|
16
|
+
* earlier style has one column on a phone, so there it changes nothing.
|
|
17
|
+
*/
|
|
18
|
+
spanMobile?: number;
|
|
19
|
+
/**
|
|
20
|
+
* The place on a phone, below 768 px, in both house styles: items without it are 0, a higher
|
|
21
|
+
* number stands lower (`1` after them, `-1` before). Only the drawing moves: the reading and
|
|
22
|
+
* focus order stay that of the markup, so move a whole block (a map to the end), never one
|
|
23
|
+
* field among others.
|
|
24
|
+
*/
|
|
25
|
+
orderMobile?: number;
|
|
26
|
+
/**
|
|
27
|
+
* Left out on a phone, below 768 px; a desktop reader zoomed to 400 % sees that view too. Only
|
|
28
|
+
* for what the page also says another way, such as a map whose figures stand in a table.
|
|
29
|
+
*/
|
|
30
|
+
hideMobile: boolean;
|
|
31
|
+
/** Left out from 768 px, and on paper; shown on a phone only. */
|
|
32
|
+
hideDesktop: boolean;
|
|
10
33
|
protected willUpdate(changed: PropertyValues<this>): void;
|
|
11
34
|
}
|
|
@@ -8,6 +8,13 @@
|
|
|
8
8
|
export type Tone = 'neutral' | 'subtle' | 'busy' | 'success' | 'warning' | 'error' | 'info' | 'attention' | 'live';
|
|
9
9
|
/** The glyph that says what the tone means; the colour is never the only carrier (rule 13). */
|
|
10
10
|
export declare const TONE_ICON: Partial<Record<Tone, string>>;
|
|
11
|
+
/**
|
|
12
|
+
* The same glyphs in the house style's coloured form, for a status block (a message, a toast, the
|
|
13
|
+
* summary of a form) in the new house style: the shape in the status colour with the glyph white.
|
|
14
|
+
*/
|
|
15
|
+
export declare const TONE_ICON_COLOURED: Partial<Record<Tone, string>>;
|
|
16
|
+
/** The glyph of a status block: the coloured form in the new house style, the plain one otherwise. */
|
|
17
|
+
export declare function statusIcon(tone: Tone, isNewStyle: boolean): string | undefined;
|
|
11
18
|
/** The word a tone stands for when an element has nothing more specific to say. */
|
|
12
19
|
export declare const TONE_WORD: Record<Tone, string>;
|
|
13
20
|
/** What a task is doing: the queue, a progress bar and a status word share it. */
|
|
@@ -50,6 +50,12 @@ export interface ListItem {
|
|
|
50
50
|
};
|
|
51
51
|
/** The kind of work, as an icon file name, before the title. */
|
|
52
52
|
icon?: string;
|
|
53
|
+
/**
|
|
54
|
+
* The row is a person, a speaker: their circle before the title, as `lintje-person` draws it,
|
|
55
|
+
* with the host's initials or photo, else the person icon. With `swatch` the circle takes that
|
|
56
|
+
* colour instead of the bar along the row, where the people are the variable.
|
|
57
|
+
*/
|
|
58
|
+
avatar?: Person;
|
|
53
59
|
/** A data colour as a bar along the row (`sky-blue`): a speaker, as in the player and transcript. */
|
|
54
60
|
swatch?: string;
|
|
55
61
|
/**
|
|
@@ -0,0 +1,231 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* `<lintje-timeline>` — moments along a rail: how something went over time, or who did what.
|
|
3
|
+
*
|
|
4
|
+
* The host gives the moments in the order they stand and writes every date in Dutch; the element
|
|
5
|
+
* never reads the clock. Where now is follows from the data: planned moments sit at the end still
|
|
6
|
+
* to come; without them the first and last `at` decide; without those, the oldest comes first.
|
|
7
|
+
* From there come the accent on the last moment that happened, the stroke of `today`, and which
|
|
8
|
+
* moments `limit` keeps back behind "Toon eerdere". A moment has three lines: the date and a label
|
|
9
|
+
* above, the title, and under it a sentence, a link and its own slot. Lying, every moment stands
|
|
10
|
+
* at its place in time; a row that does not fit stands up. Below 768 px every moment stands on one
|
|
11
|
+
* side.
|
|
12
|
+
*
|
|
13
|
+
* Events: `lintje-navigate` `{ href }` for a plain click on a moment's link.
|
|
14
|
+
*/
|
|
15
|
+
import { type PropertyDeclarations, type PropertyValues, type TemplateResult } from 'lit';
|
|
16
|
+
import { LintjeElement } from '../../../core/element.js';
|
|
17
|
+
import { type HeadingLevel } from '../../shared/heading.js';
|
|
18
|
+
import '../../actions/button/button.js';
|
|
19
|
+
import '../person/person.js';
|
|
20
|
+
import type { Person } from '../../../types.js';
|
|
21
|
+
export type TimelineSide = 'start' | 'end';
|
|
22
|
+
export type TimelinePlacement = 'start' | 'alternate' | 'sides';
|
|
23
|
+
export type TimelineOrientation = 'vertical' | 'horizontal';
|
|
24
|
+
/** Who did something when that is no person: a name and the icon in its circle. */
|
|
25
|
+
export interface TimelineActor {
|
|
26
|
+
name: string;
|
|
27
|
+
/** The icon's file name; the cogs (`gereedschap-tandwielen`) without it. */
|
|
28
|
+
icon?: string;
|
|
29
|
+
}
|
|
30
|
+
export interface TimelineLink {
|
|
31
|
+
label: string;
|
|
32
|
+
href: string;
|
|
33
|
+
}
|
|
34
|
+
export interface TimelineMoment {
|
|
35
|
+
/** The moment as the host wrote it, in Dutch: "3 augustus 2026", "08:12", "Nog niet bekend". */
|
|
36
|
+
when: string;
|
|
37
|
+
/**
|
|
38
|
+
* The same moment as ISO 8601, for `<time datetime>` and for its place on a lying rail. A moment
|
|
39
|
+
* without it stands apart after the end of that rail.
|
|
40
|
+
*/
|
|
41
|
+
at?: string;
|
|
42
|
+
/** A word or two after the date, above the title: whose step or what kind ("Uw actie"). */
|
|
43
|
+
label?: string;
|
|
44
|
+
/** What happened. After `who` it is the rest of the sentence: "wijzigde de omschrijving". */
|
|
45
|
+
title: string;
|
|
46
|
+
/**
|
|
47
|
+
* Who did it: someone, with the circle before the name and a link with `href`; or what is no
|
|
48
|
+
* person ("Systeem"), a name with an icon in the circle: the cogs, or the one `icon` names.
|
|
49
|
+
*/
|
|
50
|
+
who?: string | Person | TimelineActor;
|
|
51
|
+
/** A sentence or two under the title. */
|
|
52
|
+
text?: string;
|
|
53
|
+
link?: TimelineLink;
|
|
54
|
+
/**
|
|
55
|
+
* The name of the moment's slot: a child of `<lintje-timeline>` with `slot="<value>"` stands
|
|
56
|
+
* under the sentence and the link, a badge or an attachment, any Lintje element or plain HTML.
|
|
57
|
+
*/
|
|
58
|
+
value?: string;
|
|
59
|
+
/**
|
|
60
|
+
* Still to come: a hollow mark on a dashed rail. Say it in `when` too ("Verwacht vóór 1
|
|
61
|
+
* december 2026"), so it never rests on the drawing alone.
|
|
62
|
+
*/
|
|
63
|
+
planned?: boolean;
|
|
64
|
+
/** With `placement="sides"`: under the first or the second name of `sides`. */
|
|
65
|
+
side?: TimelineSide;
|
|
66
|
+
/**
|
|
67
|
+
* A heading on the rail where it changes from the moment before, such as a year; `when` can
|
|
68
|
+
* then leave it out. Drawn where the moments stand on one side.
|
|
69
|
+
*/
|
|
70
|
+
group?: string;
|
|
71
|
+
}
|
|
72
|
+
/** A moment, the group heading before it, or the stroke of today: one item of the list. */
|
|
73
|
+
export type TimelineRow = {
|
|
74
|
+
kind: 'moment';
|
|
75
|
+
moment: TimelineMoment;
|
|
76
|
+
index: number;
|
|
77
|
+
} | {
|
|
78
|
+
kind: 'group';
|
|
79
|
+
label: string;
|
|
80
|
+
future: boolean;
|
|
81
|
+
} | {
|
|
82
|
+
kind: 'today';
|
|
83
|
+
label: string;
|
|
84
|
+
};
|
|
85
|
+
/**
|
|
86
|
+
* Whether the newest moment comes first. Planned moments sit at the end still to come; without
|
|
87
|
+
* them the first and last moment with a time decide; without those, the oldest comes first.
|
|
88
|
+
*/
|
|
89
|
+
export declare function newestFirst(moments: TimelineMoment[]): boolean;
|
|
90
|
+
/** Where the stroke of today stands: between what happened and what is planned. */
|
|
91
|
+
export declare function todayIndex(moments: TimelineMoment[], newest: boolean): number;
|
|
92
|
+
/** The last moment that happened: the one drawn in the accent. */
|
|
93
|
+
export declare function latestIndex(moments: TimelineMoment[], newest: boolean): number;
|
|
94
|
+
export declare function sideOf(moment: TimelineMoment, index: number, placement: TimelinePlacement): TimelineSide;
|
|
95
|
+
/**
|
|
96
|
+
* The moments that show, `from` up to `to`: all of them, or the `limit` nearest now and as many
|
|
97
|
+
* more as the reader asked for. The ones kept back are the oldest, at whichever end they are.
|
|
98
|
+
*/
|
|
99
|
+
export declare function shownMoments(moments: TimelineMoment[], limit: number | undefined, more: number, newest: boolean): {
|
|
100
|
+
from: number;
|
|
101
|
+
to: number;
|
|
102
|
+
hidden: number;
|
|
103
|
+
};
|
|
104
|
+
/**
|
|
105
|
+
* The rows in reading order. A group heading comes before the first moment of its group, today
|
|
106
|
+
* between what happened and what is planned; with groups off, only the moments and today.
|
|
107
|
+
*/
|
|
108
|
+
export declare function timelineRows(moments: TimelineMoment[], from: number, to: number, today: string | undefined, groups: boolean, newest: boolean): TimelineRow[];
|
|
109
|
+
/** The stretch of rail between two rows is dashed when either of them is still to come. */
|
|
110
|
+
export declare function dashedBetween(rows: TimelineRow[], at: number): boolean;
|
|
111
|
+
/**
|
|
112
|
+
* The top of each item when the moments stand on two sides: never above the one before it, at
|
|
113
|
+
* least `STEP` below it, and `GAP` below the last one on its own side.
|
|
114
|
+
*/
|
|
115
|
+
export declare function stagger(items: {
|
|
116
|
+
side: TimelineSide;
|
|
117
|
+
height: number;
|
|
118
|
+
}[]): number[];
|
|
119
|
+
export interface RowPlace {
|
|
120
|
+
x: number;
|
|
121
|
+
up: boolean;
|
|
122
|
+
width: number;
|
|
123
|
+
/** Without `at`: after the end of the rail. */
|
|
124
|
+
apart: boolean;
|
|
125
|
+
}
|
|
126
|
+
export interface RowLayout {
|
|
127
|
+
places: RowPlace[];
|
|
128
|
+
/** Where the rail starts: half a mark in, so the first mark stays inside the element. */
|
|
129
|
+
begin: number;
|
|
130
|
+
/** The rail is drawn through to here, dashed after it. */
|
|
131
|
+
boundary: number;
|
|
132
|
+
end: number;
|
|
133
|
+
today?: number;
|
|
134
|
+
/** A year at the start of each year, under a rail with every moment above it. */
|
|
135
|
+
years: {
|
|
136
|
+
x: number;
|
|
137
|
+
label: string;
|
|
138
|
+
}[];
|
|
139
|
+
fits: boolean;
|
|
140
|
+
}
|
|
141
|
+
/**
|
|
142
|
+
* Where each moment stands on a lying rail `width` wide: in proportion to its time, the oldest
|
|
143
|
+
* left whatever the order, with room after the last for its label and for every moment without
|
|
144
|
+
* a time. It fits when each label has `LABEL_MIN` before the next one on its side.
|
|
145
|
+
*/
|
|
146
|
+
export declare function rowLayout(moments: TimelineMoment[], placement: TimelinePlacement, width: number, todayAt?: string): RowLayout;
|
|
147
|
+
export declare class LintjeTimeline extends LintjeElement {
|
|
148
|
+
#private;
|
|
149
|
+
static styles: import("lit").CSSResult[];
|
|
150
|
+
static properties: PropertyDeclarations;
|
|
151
|
+
/** The moments, in the order they stand: the oldest first, or the newest. */
|
|
152
|
+
moments: TimelineMoment[];
|
|
153
|
+
heading?: string;
|
|
154
|
+
/** The heading's level on the page. */
|
|
155
|
+
level: HeadingLevel;
|
|
156
|
+
/** `start`: on one side, the date before the rail. `alternate`: in turn. `sides`: by `side`. */
|
|
157
|
+
placement: TimelinePlacement;
|
|
158
|
+
/**
|
|
159
|
+
* `horizontal` lays the moments along a rail at their place in time; when their labels do not
|
|
160
|
+
* fit, and on a phone, the timeline stands.
|
|
161
|
+
*/
|
|
162
|
+
orientation: TimelineOrientation;
|
|
163
|
+
/** The names over the two sides with `placement="sides"`: `['U', 'Wij']`. */
|
|
164
|
+
sides?: [string, string];
|
|
165
|
+
/** The label of today on the rail: "Vandaag, 21 oktober". */
|
|
166
|
+
today?: string;
|
|
167
|
+
/** Today as ISO 8601: where its stroke stands on a lying rail. Without it a lying rail has none. */
|
|
168
|
+
todayAt?: string;
|
|
169
|
+
/** How many moments nearest now show before "Toon eerdere"; all of them without it. */
|
|
170
|
+
limit?: number;
|
|
171
|
+
/** How many more each "Toon eerdere" shows; all the rest without it. */
|
|
172
|
+
step?: number;
|
|
173
|
+
/** The sentence that stands without moments. */
|
|
174
|
+
empty: string;
|
|
175
|
+
/** How many moments the reader asked to see beyond `limit`. */
|
|
176
|
+
protected more: number;
|
|
177
|
+
/** The element's width, measured: what a lying rail is laid out against. */
|
|
178
|
+
protected width: number;
|
|
179
|
+
connectedCallback(): void;
|
|
180
|
+
disconnectedCallback(): void;
|
|
181
|
+
protected updated(changed: PropertyValues<this>): void;
|
|
182
|
+
private get twoSided();
|
|
183
|
+
private fit;
|
|
184
|
+
/**
|
|
185
|
+
* A lying rail stands under the tallest label above it; the labels below, the years and the
|
|
186
|
+
* names of the sides take their place from it.
|
|
187
|
+
*/
|
|
188
|
+
private fitRow;
|
|
189
|
+
/**
|
|
190
|
+
* On two sides the items stand where `stagger` puts them. The spine runs between the marks,
|
|
191
|
+
* dashed over the stretch that is still to come: at the top or at the bottom.
|
|
192
|
+
*/
|
|
193
|
+
private fitSides;
|
|
194
|
+
/**
|
|
195
|
+
* Shows `step` more, or the rest. A button that stays keeps the focus; one that goes hands it
|
|
196
|
+
* to the first moment that came in.
|
|
197
|
+
*/
|
|
198
|
+
private showEarlier;
|
|
199
|
+
private onLink;
|
|
200
|
+
private renderDate;
|
|
201
|
+
/** A person's circle before the name; what is no person has an icon in its circle. */
|
|
202
|
+
private renderWho;
|
|
203
|
+
/**
|
|
204
|
+
* A moment's three lines: above the title its date and label, or only the label when the date
|
|
205
|
+
* stands in a column; the title; under it the sentence, the link and the moment's slot.
|
|
206
|
+
*/
|
|
207
|
+
private renderBody;
|
|
208
|
+
/** The name of a moment's side, in front of its date where the sides are not drawn. */
|
|
209
|
+
private sideName;
|
|
210
|
+
private rowClasses;
|
|
211
|
+
/**
|
|
212
|
+
* The rail of one row on one side: a stub up to the mark, the mark, and the line down. Past the
|
|
213
|
+
* first or last row it runs on only where moments are kept back.
|
|
214
|
+
*/
|
|
215
|
+
private renderRail;
|
|
216
|
+
/** One side: a date column before the rail, or on a phone the date above the title. */
|
|
217
|
+
private renderOneSide;
|
|
218
|
+
/** Two sides: the spine in the middle, each moment beside it; `fit` places them. */
|
|
219
|
+
private renderTwoSides;
|
|
220
|
+
/** Lying: each moment at its place in time, its label above or under the rail. */
|
|
221
|
+
private renderRow;
|
|
222
|
+
/** The layout of a lying rail, or none when the timeline stands. */
|
|
223
|
+
private lying;
|
|
224
|
+
private renderMore;
|
|
225
|
+
protected render(): TemplateResult;
|
|
226
|
+
}
|
|
227
|
+
declare global {
|
|
228
|
+
interface HTMLElementTagNameMap {
|
|
229
|
+
'lintje-timeline': LintjeTimeline;
|
|
230
|
+
}
|
|
231
|
+
}
|
|
@@ -3,10 +3,20 @@
|
|
|
3
3
|
* to its styles, resolves the mode onto the host, and emits composed events.
|
|
4
4
|
*
|
|
5
5
|
* The mode resolves in this order: the element's own attribute; the nearest ancestor's
|
|
6
|
-
* `data-mode` (across shadow roots); its `data`; the default.
|
|
6
|
+
* `data-mode` (across shadow roots); its `data`; the default. The house style (`data-style-version`) and
|
|
7
|
+
* the corner of the page's head (`data-style-new-corner`) come from the nearest ancestor alone, usually
|
|
8
|
+
* `<html>`, and are mirrored onto the host the same way: the stylesheets read them there.
|
|
7
9
|
*/
|
|
8
10
|
import { LitElement, type CSSResultGroup, type CSSResultOrNative, type PropertyDeclarations, type PropertyValues } from 'lit';
|
|
9
11
|
export type Mode = 'light' | 'dark';
|
|
12
|
+
/**
|
|
13
|
+
* `classic`: the earlier house style online, the menu filled in the theme's colour and square
|
|
14
|
+
* corners, the default until 1.0.0. `new`: the house style as it is drawn now, the light menu,
|
|
15
|
+
* the small corners on controls and fields and the one large corner on a drawer and a narrow band.
|
|
16
|
+
*/
|
|
17
|
+
export type Style = 'classic' | 'new';
|
|
18
|
+
/** The large corner of a drawer and a narrow band in the new style: `round` draws it, `square` does not. */
|
|
19
|
+
export type Corner = 'round' | 'square';
|
|
10
20
|
export interface FrameSettings {
|
|
11
21
|
mode?: Mode;
|
|
12
22
|
}
|
|
@@ -14,6 +24,14 @@ export declare class LintjeElement extends LitElement {
|
|
|
14
24
|
static properties: PropertyDeclarations;
|
|
15
25
|
mode?: Mode;
|
|
16
26
|
resolvedMode: Mode;
|
|
27
|
+
/** The house style the element draws. */
|
|
28
|
+
resolvedStyle: Style;
|
|
29
|
+
resolvedCorner: Corner;
|
|
30
|
+
/**
|
|
31
|
+
* Whether the element draws the new house style: the one question a template asks where the
|
|
32
|
+
* two styles differ in what they render, not only in how it looks.
|
|
33
|
+
*/
|
|
34
|
+
get isNewStyle(): boolean;
|
|
17
35
|
protected static finalizeStyles(styles?: CSSResultGroup): Array<CSSResultOrNative>;
|
|
18
36
|
/** The settings the element's `data` carries; a view element overrides it. */
|
|
19
37
|
protected get dataSettings(): FrameSettings | undefined;
|
|
@@ -27,7 +45,7 @@ export declare class LintjeElement extends LitElement {
|
|
|
27
45
|
private readDataSources;
|
|
28
46
|
disconnectedCallback(): void;
|
|
29
47
|
protected willUpdate(changed: PropertyValues<this>): void;
|
|
30
|
-
/** Resolves the mode and reflects
|
|
48
|
+
/** Resolves the mode, the style and the corner and reflects them. Public for the document observer. */
|
|
31
49
|
resolveSettings(): void;
|
|
32
50
|
/** Bubbling and composed, so it reaches the host; `false` when a listener cancelled it. */
|
|
33
51
|
protected emit(name: string, detail?: unknown): boolean;
|
|
@@ -9,8 +9,10 @@ import { type CSSResult } from 'lit';
|
|
|
9
9
|
* - `@font-face` is dropped: Chromium ignores it in a shadow root; the host page declares fonts.
|
|
10
10
|
* - `:root:not(X)` becomes `:host(:not(X))`: `:host:not(X)` does not match in Chromium.
|
|
11
11
|
* It runs before the plain `:root` rule.
|
|
12
|
-
* - `[data-mode=…]`
|
|
13
|
-
* it or bare as the minifier leaves it
|
|
12
|
+
* - `[data-mode=…]`, `[data-style-version=…]` and `[data-style-new-corner=…]` become `:host([…])`, with the value
|
|
13
|
+
* quoted as the source writes it or bare as the minifier leaves it; a run of them
|
|
14
|
+
* (`[data-mode='dark'][data-style-version='new']`) becomes one `:host([…][…])`, as `:host([a])[b]` does
|
|
15
|
+
* not match.
|
|
14
16
|
*/
|
|
15
17
|
export declare function toShadowCss(css: string): string;
|
|
16
18
|
/** The stylesheet of one copied CSS file, scoped to the shadow root and shared. */
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* Every other icon is fetched by name when a name needs it
|
|
6
6
|
* (`src/icons/loader.ts`); the name is always the file name.
|
|
7
7
|
*
|
|
8
|
-
*
|
|
8
|
+
* 78 icons, of 1206 in `dist-icons/`.
|
|
9
9
|
*/
|
|
10
10
|
export interface IconGlyph {
|
|
11
11
|
/** The file's own viewBox: 64 or 48 in RVO's set, 24 for an own icon, 346x75 for an emblem. */
|
|
@@ -122,6 +122,11 @@ export interface TileData {
|
|
|
122
122
|
span?: number;
|
|
123
123
|
/** The subtitle below 768 px, where it says something else (e.g. "tik op een cel"). */
|
|
124
124
|
mobileSubtitle?: string;
|
|
125
|
+
/**
|
|
126
|
+
* On a phone, below 768 px, the tile shows only its head with a button that unfolds the rest
|
|
127
|
+
* (`collapsed-mobile` on `lintje-tile`): for a view that matters less there than its neighbours.
|
|
128
|
+
*/
|
|
129
|
+
collapsedMobile?: boolean;
|
|
125
130
|
}
|
|
126
131
|
/**
|
|
127
132
|
* Events: `lintje-mark-select` `{id, label, href}` when a mark with a `href` is clicked,
|
|
@@ -612,12 +617,22 @@ export interface ShellView {
|
|
|
612
617
|
}[];
|
|
613
618
|
/** The theme that stands now: one of `themes`. Without it the first is marked. */
|
|
614
619
|
theme?: string;
|
|
620
|
+
/** The house style the page follows, when the host lets the reader choose: `classic` is the
|
|
621
|
+
* menu filled in the theme's colour with square corners, `new` the light menu with the
|
|
622
|
+
* rounded corners. The host draws it: `data-style-version` on `<html>`. */
|
|
623
|
+
style?: 'classic' | 'new';
|
|
624
|
+
/** The corner of the band at the page's head in the new style, when the host lets the reader
|
|
625
|
+
* choose: `round` is the house style's one rounded corner, `square` none. The host draws it:
|
|
626
|
+
* `data-style-new-corner` on `<html>`. */
|
|
627
|
+
corner?: 'square' | 'round';
|
|
615
628
|
}
|
|
616
629
|
/** What the reader changed in "Weergave" or with the pin: one key per `lintje-view-change`. */
|
|
617
630
|
export interface ShellViewChange {
|
|
618
631
|
mode?: ModeSetting;
|
|
619
632
|
layout?: 'side' | 'top';
|
|
620
633
|
theme?: string;
|
|
634
|
+
style?: 'classic' | 'new';
|
|
635
|
+
corner?: 'square' | 'round';
|
|
621
636
|
menu?: 'pinned' | 'unpinned';
|
|
622
637
|
}
|
|
623
638
|
/**
|
|
@@ -953,7 +968,7 @@ export type { FooterColumn, FooterData, FooterLink } from './components/frame/fo
|
|
|
953
968
|
export type { TreeNode } from './components/tables/tree-view/tree-view.js';
|
|
954
969
|
export type { SortableItem } from './components/tables/sortable-list/sortable-list.js';
|
|
955
970
|
export type { DescriptionItem, DescriptionAction, } from './components/tables/description-list/description-list.js';
|
|
956
|
-
export type {
|
|
971
|
+
export type { TimelineActor, TimelineLink, TimelineMoment, TimelinePlacement, TimelineSide, } from './components/tables/timeline/timeline.js';
|
|
957
972
|
export type { Job, JobState } from './components/feedback/job-list/job-list.js';
|
|
958
973
|
export type { ConflictChange, ConflictChoice, } from './components/feedback/conflict-alert/conflict-alert.js';
|
|
959
974
|
export type { TimedText } from './components/content/video-player/video-player.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?><svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path fill="currentColor" d="M11.958 1C18.035 1.022 22.961 5.933 23 12.009l-.006.39a10.992 10.992 0 0 1-1.3 4.825 10.843 10.843 0 0 1-1.86 2.525l-.063.071a10.78 10.78 0 0 1-2.193 1.686 11.035 11.035 0 0 1-13.574-1.973A11.031 11.031 0 0 1 2.84 5.867a11.18 11.18 0 0 1 1.346-1.638A11.147 11.147 0 0 1 11.958 1Z"/><path fill="#FFFFFF" d="M16.971 5.266l-6.37 7.05-3.83-3.281a1.095 1.095 0 0 0-1.411-.01c-.41.339-.509.923-.234 1.376l4.639 7.659c.196.323.548.521.929.522h.004c.38 0 .732-.195.93-.517l7.084-11.523a1.068 1.068 0 0 0-.282-1.423 1.097 1.097 0 0 0-1.459.147Z"/></svg>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?><svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path fill="currentColor" d="M12 1c6.075 0 11 4.925 11 11s-4.925 11-11 11S1 18.075 1 12 5.925 1 12 1Z"/><path fill="#FFFFFF" d="M7.527 7.527a.885.885 0 0 0-.021 1.194L10.408 12l-2.902 3.269a.874.874 0 0 0 .02 1.194.885.885 0 0 0 1.195.02L12 13.594l3.269 2.901a.885.885 0 0 0 1.194-.02.885.885 0 0 0 .02-1.195L13.594 12l2.901-3.269a.874.874 0 0 0-.02-1.194.888.888 0 0 0-1.205-.031L12 10.408 8.731 7.506a.899.899 0 0 0-1.204.02Z"/></svg>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?><svg viewBox="0 0 48 48" xmlns="http://www.w3.org/2000/svg"><path fill="currentColor" d="M40.391 10.59c-.254-1.547-1.434-2.723-2.98-2.98-4.469-.746-11.922-.746-13.41-.746s-8.941 0-13.41.746c-1.547.258-2.727 1.434-2.98 2.98-.746 4.469-.746 11.922-.746 13.41s0 8.941.746 13.41c.254 1.547 1.434 2.723 2.98 2.98 4.469.746 11.922.746 13.41.746s8.941 0 13.41-.746c1.547-.258 2.727-1.434 2.98-2.98.746-4.469.746-11.922.746-13.41 0-4.473 0-8.941-.746-13.41Z"/><path fill="#FFFFFF" d="M26.25 36h-4.922l.422-10.5v-6h4.5ZM24.016 16.5c-1.68 0-2.641-.941-2.641-2.656 0-1.461.891-2.594 2.609-2.594 1.68 0 2.641.906 2.641 2.594 0 1.488-.891 2.656-2.609 2.656Z"/></svg>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?><svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path fill="currentColor" d="M10.349 2.928c.731-1.237 2.58-1.237 3.302 0l9.602 16.349C23.965 20.496 23.055 22 21.61 22H2.4C.945 22 .035 20.496.747 19.277Z"/><path fill="#FFFFFF" d="M11.985 16.39c-.502 0-.87.15-1.116.46-.246.3-.369.68-.369 1.12 0 .51.133.89.39 1.14.255.26.634.39 1.125.39.502 0 .87-.15 1.116-.44.246-.29.369-.66.369-1.09 0-.52-.133-.91-.39-1.18-.255-.26-.634-.4-1.125-.4ZM13.357 7.5l-2.54.2h-.01v7.99l2.324-.05v-2.63l.226-5.51Z"/></svg>
|