lintje 0.6.0 → 0.8.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/NOTICE.md +2 -0
- package/README.md +2 -2
- package/dist-elements/actions.js +1 -1
- package/dist-elements/chat.js +1 -1
- package/dist-elements/chunks/addon-B-nZKTVZ.js +5 -0
- package/dist-elements/chunks/avatar-C1Wj9drG.js +1 -0
- package/dist-elements/chunks/axes-DPj3RyPk.js +129 -0
- package/dist-elements/chunks/base-lxVG98kf.js +226 -0
- package/dist-elements/chunks/chart-styles-sK3xVPFj.js +45 -0
- package/dist-elements/chunks/controls-lVYdiFQu.js +1 -0
- package/dist-elements/chunks/{date-format-5bii3QLP.js → date-format-DvDaZtFc.js} +1 -1
- package/dist-elements/chunks/dialog-close-DpjJ6JbT.js +1 -0
- package/dist-elements/chunks/disclosure-Ch2SwnkG.js +1 -0
- package/dist-elements/chunks/disclosure-o3Agc4Ji.js +20 -0
- package/dist-elements/chunks/download-C74iql1Q.js +18 -0
- package/dist-elements/chunks/focus-trap-xGyZPSzU.js +1 -0
- package/dist-elements/chunks/follow-7IBDa51N.js +1 -0
- package/dist-elements/chunks/frame-BMR48Vea.js +1 -0
- package/dist-elements/chunks/input-C7MnFu5X.js +8 -0
- package/dist-elements/chunks/input-CCT6CcW1.js +1 -0
- package/dist-elements/chunks/month-grid-CoYFI13w.js +26 -0
- package/dist-elements/chunks/other-D_wlqvPA.js +11 -0
- package/dist-elements/chunks/{player-Dh7ZHcMF.js → player-BW0tPg9_.js} +14 -14
- package/dist-elements/chunks/{prose-DOF7h3je.js → prose-aNcSsHId.js} +1 -1
- package/dist-elements/chunks/search-text-i-Em9oIy.js +1 -0
- package/dist-elements/chunks/sentence-CJX3W7W5.js +3 -0
- package/dist-elements/chunks/stagger-DYloMMgF.js +27 -0
- package/dist-elements/chunks/wheel-Co2Dpj0Q.js +1 -0
- package/dist-elements/content.js +1 -1
- package/dist-elements/core.js +1 -1
- package/dist-elements/custom-elements.json +1757 -222
- package/dist-elements/data-types.json +3857 -1500
- package/dist-elements/feedback.js +1 -1
- package/dist-elements/graph.d.ts +1 -0
- package/dist-elements/graph.js +1 -0
- package/dist-elements/guides/events.md +13 -3
- package/dist-elements/guides/loading.md +12 -9
- package/dist-elements/inputs.js +1 -1
- package/dist-elements/layout.js +1 -1
- package/dist-elements/lintje.js +3240 -2434
- package/dist-elements/overlays.js +1 -1
- package/dist-elements/skills/lintje/SKILL.md +26 -5
- package/dist-elements/skills/lintje/check.mjs +180 -0
- package/dist-elements/skills/lintje/reference.mjs +24 -3
- package/dist-elements/tables.js +1 -1
- package/dist-elements/tag/accordion.d.ts +1 -0
- package/dist-elements/tag/accordion.js +6 -0
- package/dist-elements/tag/activity-log.js +13 -11
- package/dist-elements/tag/ai-label.js +5 -5
- package/dist-elements/tag/announcement.js +9 -9
- package/dist-elements/tag/app-search.js +15 -15
- package/dist-elements/tag/attachment.d.ts +1 -0
- package/dist-elements/tag/attachment.js +54 -0
- package/dist-elements/tag/audio-player.js +27 -27
- package/dist-elements/tag/badge.js +1 -1
- package/dist-elements/tag/breadcrumbs.js +7 -7
- package/dist-elements/tag/button.js +1 -1
- package/dist-elements/tag/card-list.js +8 -8
- package/dist-elements/tag/card.js +36 -30
- package/dist-elements/tag/chart.js +674 -411
- package/dist-elements/tag/chat-answer.js +43 -41
- package/dist-elements/tag/chat-composer.js +101 -43
- package/dist-elements/tag/chat-message.js +16 -11
- package/dist-elements/tag/chat-questions.d.ts +1 -0
- package/dist-elements/tag/chat-questions.js +133 -0
- package/dist-elements/tag/chat-steps.d.ts +1 -0
- package/dist-elements/tag/chat-steps.js +52 -0
- package/dist-elements/tag/chat-strip.js +7 -7
- package/dist-elements/tag/chat-suggestions.js +7 -8
- package/dist-elements/tag/chat.js +65 -37
- package/dist-elements/tag/checkbox-group.js +14 -6
- package/dist-elements/tag/checkbox.js +8 -8
- package/dist-elements/tag/code.js +8 -8
- package/dist-elements/tag/combobox.js +18 -18
- package/dist-elements/tag/conflict-alert.js +4 -4
- package/dist-elements/tag/copy-button.js +7 -7
- package/dist-elements/tag/data-table.js +255 -246
- package/dist-elements/tag/date-input.js +17 -41
- package/dist-elements/tag/date-range.js +22 -46
- package/dist-elements/tag/description-list.js +17 -15
- package/dist-elements/tag/dialog.js +7 -7
- package/dist-elements/tag/document-viewer.js +34 -26
- package/dist-elements/tag/drawer.js +9 -9
- package/dist-elements/tag/empty-state.js +1 -1
- package/dist-elements/tag/error-page.js +7 -7
- package/dist-elements/tag/error-summary.js +12 -12
- package/dist-elements/tag/expander.js +5 -5
- package/dist-elements/tag/explainer.js +5 -5
- package/dist-elements/tag/field.js +5 -5
- package/dist-elements/tag/file-upload.js +34 -44
- package/dist-elements/tag/filter-bar.js +18 -18
- package/dist-elements/tag/filter-sheet.js +3 -3
- package/dist-elements/tag/filter-zone.js +14 -15
- package/dist-elements/tag/find.js +14 -14
- package/dist-elements/tag/footer.js +14 -14
- package/dist-elements/tag/form-actions.js +3 -3
- package/dist-elements/tag/form-section.js +4 -4
- package/dist-elements/tag/form.js +5 -5
- package/dist-elements/tag/gallery.js +11 -11
- package/dist-elements/tag/graph.d.ts +1 -0
- package/dist-elements/tag/graph.js +102 -0
- package/dist-elements/tag/grid-item.js +1 -1
- package/dist-elements/tag/grid.js +1 -1
- package/dist-elements/tag/hero.js +5 -5
- package/dist-elements/tag/highlight.js +1 -1
- 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.d.ts +1 -0
- package/dist-elements/tag/key.js +1 -0
- package/dist-elements/tag/kpi-row.js +5 -5
- package/dist-elements/tag/kpi.js +69 -69
- package/dist-elements/tag/level-meter.js +5 -5
- package/dist-elements/tag/list.js +29 -28
- package/dist-elements/tag/log-viewer.js +68 -68
- package/dist-elements/tag/logo.js +26 -29
- package/dist-elements/tag/map.js +161 -158
- package/dist-elements/tag/menu-button.js +32 -32
- package/dist-elements/tag/modal.js +6 -6
- package/dist-elements/tag/multiselect.js +21 -22
- package/dist-elements/tag/note.js +2 -2
- package/dist-elements/tag/notifications.js +21 -21
- package/dist-elements/tag/number-input.js +18 -17
- package/dist-elements/tag/page-header.js +15 -16
- package/dist-elements/tag/pagination.js +18 -20
- package/dist-elements/tag/person-group.d.ts +1 -0
- package/dist-elements/tag/person-group.js +36 -0
- package/dist-elements/tag/person.d.ts +1 -0
- package/dist-elements/tag/person.js +11 -0
- 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 +31 -22
- package/dist-elements/tag/range.js +27 -31
- package/dist-elements/tag/recording-status.js +8 -8
- package/dist-elements/tag/repeater.js +4 -4
- package/dist-elements/tag/segmented.js +11 -11
- package/dist-elements/tag/select.js +6 -6
- package/dist-elements/tag/shell.js +229 -240
- package/dist-elements/tag/skeleton.js +1 -1
- package/dist-elements/tag/slot-picker.js +11 -11
- package/dist-elements/tag/sortable-list.js +8 -8
- package/dist-elements/tag/spinner.js +1 -1
- package/dist-elements/tag/split-pane.js +5 -5
- 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 +12 -13
- package/dist-elements/tag/tag-input.js +22 -22
- package/dist-elements/tag/text-editor.js +26 -25
- package/dist-elements/tag/text-input.js +52 -37
- package/dist-elements/tag/textarea.js +14 -14
- package/dist-elements/tag/tile.js +1 -1
- package/dist-elements/tag/time-input.js +14 -14
- package/dist-elements/tag/toast.js +8 -8
- package/dist-elements/tag/toggle.js +7 -7
- package/dist-elements/tag/toggletip.js +6 -7
- package/dist-elements/tag/token-value.js +1 -1
- package/dist-elements/tag/tooltip.js +1 -1
- package/dist-elements/tag/transcript.js +27 -27
- package/dist-elements/tag/translator.js +6 -6
- package/dist-elements/tag/tree-view.js +18 -18
- package/dist-elements/tag/user-menu.js +34 -22
- package/dist-elements/tag/video-player.js +17 -14
- package/dist-elements/tokens.css +54 -1
- package/dist-elements/tokens.json +704 -312
- package/dist-elements/types/bundle/chat.d.ts +2 -0
- package/dist-elements/types/bundle/content.d.ts +2 -0
- package/dist-elements/types/bundle/graph.d.ts +2 -0
- package/dist-elements/types/bundle/index.d.ts +1 -1
- package/dist-elements/types/bundle/layout.d.ts +1 -0
- package/dist-elements/types/bundle/tables.d.ts +2 -0
- package/dist-elements/types/components/actions/button/button.d.ts +1 -0
- package/dist-elements/types/components/actions/icon/icon.d.ts +2 -1
- package/dist-elements/types/components/actions/icon-button/icon-button.d.ts +0 -5
- package/dist-elements/types/components/actions/logo/logo.d.ts +7 -2
- package/dist-elements/types/components/charts/chart/chart.d.ts +3 -12
- package/dist-elements/types/components/chat/chat/chat.d.ts +11 -4
- package/dist-elements/types/components/chat/chat-answer/chat-answer.d.ts +6 -4
- package/dist-elements/types/components/chat/chat-composer/chat-composer.d.ts +62 -15
- package/dist-elements/types/components/chat/chat-message/chat-message.d.ts +6 -2
- package/dist-elements/types/components/chat/chat-questions/chat-questions.d.ts +106 -0
- package/dist-elements/types/components/chat/chat-steps/chat-steps.d.ts +53 -0
- package/dist-elements/types/components/chat/chat-suggestions/chat-suggestions.d.ts +4 -11
- package/dist-elements/types/components/content/attachment/attachment.d.ts +58 -0
- package/dist-elements/types/components/content/audio-player/audio-player.d.ts +2 -1
- package/dist-elements/types/components/content/document-viewer/document-viewer.d.ts +14 -1
- package/dist-elements/types/components/content/key/key.d.ts +21 -0
- package/dist-elements/types/components/content/log-viewer/log-viewer.d.ts +1 -0
- package/dist-elements/types/components/content/prose/prose.d.ts +4 -3
- package/dist-elements/types/components/content/shared/player.d.ts +2 -1
- package/dist-elements/types/components/content/transcript/transcript.d.ts +7 -0
- package/dist-elements/types/components/content/video-player/video-player.d.ts +12 -3
- package/dist-elements/types/components/feedback/empty-state/empty-state.d.ts +2 -2
- package/dist-elements/types/components/feedback/job-list/job-list.d.ts +9 -2
- package/dist-elements/types/components/feedback/status-dot/status-dot.d.ts +13 -2
- package/dist-elements/types/components/filters/filter-bar/filter-bar.d.ts +3 -0
- package/dist-elements/types/components/filters/filter-sheet/filter-sheet.d.ts +2 -7
- package/dist-elements/types/components/filters/filter-zone/filter-zone.d.ts +0 -2
- package/dist-elements/types/components/forms/error-summary/error-summary.d.ts +5 -1
- package/dist-elements/types/components/forms/form/form.d.ts +10 -3
- package/dist-elements/types/components/forms/form-actions/form-actions.d.ts +9 -3
- package/dist-elements/types/components/frame/app-search/app-search.d.ts +1 -2
- package/dist-elements/types/components/frame/page-header/page-header.d.ts +1 -1
- package/dist-elements/types/components/frame/shell/header.d.ts +6 -8
- package/dist-elements/types/components/frame/shell/navigation.d.ts +0 -7
- package/dist-elements/types/components/frame/shell/shell.d.ts +7 -6
- package/dist-elements/types/components/frame/shell/top-bar.d.ts +5 -2
- package/dist-elements/types/components/frame/user-menu/user-menu.d.ts +17 -4
- package/dist-elements/types/components/graph/graph/graph.d.ts +147 -0
- package/dist-elements/types/components/graph/graph/layout-runner.d.ts +13 -0
- package/dist-elements/types/components/graph/graph/layout-worker.d.ts +1 -0
- package/dist-elements/types/components/graph/graph/layout.d.ts +27 -0
- package/dist-elements/types/components/graph/graph/model.d.ts +81 -0
- package/dist-elements/types/components/graph/graph/routes.d.ts +62 -0
- package/dist-elements/types/components/graph/graph/view.d.ts +58 -0
- package/dist-elements/types/components/index.d.ts +22 -5
- package/dist-elements/types/components/inputs/checkbox-group/checkbox-group.d.ts +13 -7
- package/dist-elements/types/components/inputs/combobox/combobox.d.ts +0 -2
- package/dist-elements/types/components/inputs/date-input/date-input.d.ts +1 -1
- package/dist-elements/types/components/inputs/date-range/date-range.d.ts +17 -6
- package/dist-elements/types/components/inputs/file-upload/file-upload.d.ts +10 -33
- package/dist-elements/types/components/inputs/multiselect/multiselect.d.ts +1 -11
- package/dist-elements/types/components/inputs/number-input/number-input.d.ts +4 -2
- package/dist-elements/types/components/inputs/radio-group/radio-group.d.ts +16 -4
- package/dist-elements/types/components/inputs/range/range.d.ts +0 -1
- package/dist-elements/types/components/inputs/segmented/segmented.d.ts +0 -2
- package/dist-elements/types/components/inputs/shared/addon.d.ts +14 -0
- package/dist-elements/types/components/inputs/shared/input.d.ts +58 -1
- package/dist-elements/types/components/inputs/text-input/text-input.d.ts +15 -1
- package/dist-elements/types/components/inputs/textarea/textarea.d.ts +3 -2
- package/dist-elements/types/components/layout/accordion/accordion.d.ts +37 -0
- package/dist-elements/types/components/layout/expander/expander.d.ts +5 -1
- package/dist-elements/types/components/layout/split-pane/split-pane.d.ts +2 -0
- package/dist-elements/types/components/layout/tabs/tabs.d.ts +3 -4
- package/dist-elements/types/components/overlays/popover/popover.d.ts +9 -4
- package/dist-elements/types/components/overlays/toggletip/toggletip.d.ts +2 -4
- package/dist-elements/types/components/overlays/tooltip/tooltip.d.ts +1 -3
- package/dist-elements/types/components/shared/avatar.d.ts +21 -0
- package/dist-elements/types/components/shared/charts/bar-chart/bar-chart.d.ts +3 -2
- package/dist-elements/types/components/shared/charts/dumbbell-chart/dumbbell-chart.d.ts +33 -0
- package/dist-elements/types/components/shared/charts/index.d.ts +6 -2
- package/dist-elements/types/components/shared/charts/kinds.d.ts +22 -4
- package/dist-elements/types/components/shared/charts/line-chart/line-chart.d.ts +3 -2
- package/dist-elements/types/components/shared/charts/sankey-chart/sankey-chart.d.ts +124 -0
- package/dist-elements/types/components/shared/charts/shared/axes.d.ts +33 -6
- package/dist-elements/types/components/shared/charts/shared/chart-states.d.ts +1 -1
- package/dist-elements/types/components/shared/charts/shared/chart-styles.d.ts +2 -0
- package/dist-elements/types/components/shared/charts/shared/colors.d.ts +29 -4
- package/dist-elements/types/components/shared/charts/shared/controller.d.ts +23 -3
- package/dist-elements/types/components/shared/charts/shared/forecast.d.ts +21 -0
- package/dist-elements/types/components/shared/charts/shared/plot-keys.d.ts +5 -0
- package/dist-elements/types/components/shared/charts/shared/tints.d.ts +2 -0
- package/dist-elements/types/components/shared/charts/shared/types.d.ts +146 -0
- package/dist-elements/types/components/shared/charts/shared/wheel.d.ts +11 -0
- package/dist-elements/types/components/shared/charts/treemap-chart/squarify.d.ts +16 -0
- package/dist-elements/types/components/shared/charts/treemap-chart/treemap-chart.d.ts +18 -0
- package/dist-elements/types/components/shared/charts/treemap-chart/treemap-labels.d.ts +36 -0
- package/dist-elements/types/components/shared/charts/treemap-chart/treemap-parts.d.ts +64 -0
- package/dist-elements/types/components/shared/controls.d.ts +26 -0
- package/dist-elements/types/components/shared/cut-text.d.ts +6 -0
- package/dist-elements/types/components/shared/dialog.d.ts +8 -2
- package/dist-elements/types/components/shared/disclosure.d.ts +5 -3
- package/dist-elements/types/components/shared/download.d.ts +28 -2
- package/dist-elements/types/components/shared/empty-state-block.d.ts +1 -1
- package/dist-elements/types/components/shared/files.d.ts +67 -0
- package/dist-elements/types/components/shared/focus-trap.d.ts +2 -0
- package/dist-elements/types/components/shared/follow.d.ts +8 -0
- package/dist-elements/types/components/shared/heading.d.ts +4 -0
- package/dist-elements/types/components/shared/month-grid.d.ts +33 -0
- package/dist-elements/types/components/shared/other.d.ts +24 -0
- package/dist-elements/types/components/shared/overflow.d.ts +4 -3
- package/dist-elements/types/components/shared/place.d.ts +7 -2
- package/dist-elements/types/components/shared/search-text.d.ts +5 -0
- package/dist-elements/types/components/tables/activity-log/activity-log.d.ts +9 -2
- package/dist-elements/types/components/tables/card/card.d.ts +13 -2
- package/dist-elements/types/components/tables/data-table/actions.d.ts +1 -1
- package/dist-elements/types/components/tables/data-table/data-table.d.ts +15 -3
- package/dist-elements/types/components/tables/data-table/editing.d.ts +7 -2
- package/dist-elements/types/components/tables/data-table/filters.d.ts +2 -0
- package/dist-elements/types/components/tables/description-list/description-list.d.ts +4 -0
- package/dist-elements/types/components/tables/list/list.d.ts +11 -6
- package/dist-elements/types/components/tables/person/person.d.ts +35 -0
- package/dist-elements/types/components/tables/person-group/person-group.d.ts +42 -0
- package/dist-elements/types/core/format.d.ts +2 -2
- package/dist-elements/types/core/frame-state.d.ts +2 -0
- package/dist-elements/types/core/id.d.ts +2 -0
- package/dist-elements/types/icons/register.d.ts +1 -1
- package/dist-elements/types/icons/render.d.ts +1 -1
- package/dist-elements/types/types.d.ts +221 -19
- package/dist-elements/workers/layout-worker.js +3 -0
- package/dist-icons/functioneel-link.svg +1 -0
- package/dist-icons/functioneel-ondertiteling.svg +1 -0
- package/package.json +8 -1
- package/dist-elements/chunks/base-DuuwEY22.js +0 -224
- package/dist-elements/chunks/chart-styles-zJy-DGvZ.js +0 -44
- package/dist-elements/chunks/controls-IwMNNdZt.js +0 -1
- package/dist-elements/chunks/dialog-CuB90unp.js +0 -1
- package/dist-elements/chunks/dialog-close-CIwpGpo7.js +0 -1
- package/dist-elements/chunks/disclosure-DHZz0V4I.js +0 -22
- package/dist-elements/chunks/disclosure-DjLQzn9n.js +0 -1
- package/dist-elements/chunks/download-D1wbtARJ.js +0 -13
- package/dist-elements/chunks/focus-trap-qYvMiFZF.js +0 -1
- package/dist-elements/chunks/frame-resize-observer-BGZg6VbV.js +0 -1
- package/dist-elements/chunks/input-CTxDOlLs.js +0 -1
- package/dist-elements/chunks/input-fzGBdp-5.js +0 -8
- package/dist-elements/chunks/sentence-DCIShaRE.js +0 -3
- package/dist-elements/chunks/stagger-nGiD5JgJ.js +0 -133
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
import { type PropertyDeclarations, type TemplateResult } from 'lit';
|
|
10
10
|
import { LintjeGridItemElement } from '../../shared/grid-item-element.js';
|
|
11
11
|
import { type Tone } from '../../shared/tone.js';
|
|
12
|
+
import '../../content/key/key.js';
|
|
12
13
|
/** A link on the right of the value, for changing it ("Locatie wijzigen" as accessible name). */
|
|
13
14
|
export interface DescriptionAction {
|
|
14
15
|
href: string;
|
|
@@ -24,6 +25,8 @@ export interface DescriptionItem {
|
|
|
24
25
|
action?: DescriptionAction;
|
|
25
26
|
/** The value as separate tags (word lists, people); `value` is then left out. */
|
|
26
27
|
tags?: string[];
|
|
28
|
+
/** The value as keyboard keys, one `lintje-key` each (`keyLabels()`); `value` is then left out. */
|
|
29
|
+
keys?: string[];
|
|
27
30
|
/** Grid: an icon by the label, by file name. */
|
|
28
31
|
icon?: string;
|
|
29
32
|
/** Grid: two columns instead of one. */
|
|
@@ -57,6 +60,7 @@ export declare class LintjeDescriptionList extends LintjeGridItemElement {
|
|
|
57
60
|
*/
|
|
58
61
|
layout: DescriptionListLayout;
|
|
59
62
|
private follow;
|
|
63
|
+
private slotOnly;
|
|
60
64
|
private value;
|
|
61
65
|
private action;
|
|
62
66
|
private renderItem;
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
* `lintje-row-action`. A row with `rename` turns its title into a field in place; the host keeps
|
|
8
8
|
* that state, as for every row.
|
|
9
9
|
*
|
|
10
|
-
* Events: `lintje-row-click` `{ id, label, href? }`, `lintje-row-action` `{ id, label,
|
|
10
|
+
* Events: `lintje-row-click` `{ id, label, href? }`, `lintje-row-action` `{ id, label, action }` (a
|
|
11
11
|
* chosen menu row or the row's own action), `lintje-row-rename` `{ id, value }`,
|
|
12
12
|
* `lintje-row-rename-cancel` `{ id }`.
|
|
13
13
|
*/
|
|
@@ -19,8 +19,10 @@ import '../../inputs/text-input/text-input.js';
|
|
|
19
19
|
import '../../feedback/badge/badge.js';
|
|
20
20
|
import '../../actions/button/button.js';
|
|
21
21
|
import '../../feedback/progress-bar/progress-bar.js';
|
|
22
|
+
import '../person/person.js';
|
|
22
23
|
import type { MenuEntry } from '../../actions/menu-button/menu-button.js';
|
|
23
24
|
import type { BadgeTone } from '../../feedback/badge/badge.js';
|
|
25
|
+
import type { Person } from '../../../types.js';
|
|
24
26
|
export interface ListItem {
|
|
25
27
|
id: string;
|
|
26
28
|
title: string;
|
|
@@ -50,6 +52,11 @@ export interface ListItem {
|
|
|
50
52
|
icon?: string;
|
|
51
53
|
/** A data colour as a bar along the row (`sky-blue`): a speaker, as in the player and transcript. */
|
|
52
54
|
swatch?: string;
|
|
55
|
+
/**
|
|
56
|
+
* Who handles or made it, before the status: never a link, since the row opens. `null` is
|
|
57
|
+
* "Niet toegewezen"; without the field no person.
|
|
58
|
+
*/
|
|
59
|
+
person?: Person | null;
|
|
53
60
|
/** The state as a word ("Bezig"), drawn as a badge in the badge's tone. */
|
|
54
61
|
status?: {
|
|
55
62
|
label: string;
|
|
@@ -67,11 +74,6 @@ export declare function groupRuns(items: ListItem[]): {
|
|
|
67
74
|
label: string;
|
|
68
75
|
items: ListItem[];
|
|
69
76
|
}[];
|
|
70
|
-
export interface RowClickDetail {
|
|
71
|
-
id: string;
|
|
72
|
-
label: string;
|
|
73
|
-
href?: string;
|
|
74
|
-
}
|
|
75
77
|
export declare class LintjeList extends LintjeElement {
|
|
76
78
|
#private;
|
|
77
79
|
static styles: import("lit").CSSResult[];
|
|
@@ -99,6 +101,9 @@ export declare class LintjeList extends LintjeElement {
|
|
|
99
101
|
private detail;
|
|
100
102
|
private onRowClick;
|
|
101
103
|
private onAction;
|
|
104
|
+
private rowAction;
|
|
105
|
+
/** At 24 px, in the letter of the facts; passed without `href`, as the row opens. */
|
|
106
|
+
private renderPerson;
|
|
102
107
|
private renderTitle;
|
|
103
108
|
private renderAction;
|
|
104
109
|
private row;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* `<lintje-person>` — one person: a circle with photo, initials or icon, and the name beside it.
|
|
3
|
+
*
|
|
4
|
+
* A person is a value: in a table cell, a row, a card or a log entry it reads in the letter of
|
|
5
|
+
* where it stands. Without `person` it is the empty place, read as its word. With `href` circle
|
|
6
|
+
* and name are one link; a table, list or card that opens itself passes the person without one.
|
|
7
|
+
*
|
|
8
|
+
* Events: `lintje-navigate` `{ href }` (a plain click on a name with `href`).
|
|
9
|
+
*/
|
|
10
|
+
import { type PropertyDeclarations, type TemplateResult } from 'lit';
|
|
11
|
+
import { LintjeElement } from '../../../core/element.js';
|
|
12
|
+
import { type AvatarSize } from '../../shared/avatar.js';
|
|
13
|
+
import type { SpeakerColour } from '../../content/shared/playback.js';
|
|
14
|
+
import type { Person } from '../../../types.js';
|
|
15
|
+
/** The word for nobody, where a host names none. */
|
|
16
|
+
export declare const NO_PERSON = "Niet toegewezen";
|
|
17
|
+
export declare class LintjePerson extends LintjeElement {
|
|
18
|
+
static styles: import("lit").CSSResult[];
|
|
19
|
+
static properties: PropertyDeclarations;
|
|
20
|
+
/** Without a person, the empty place with `empty`. */
|
|
21
|
+
person: Person | null;
|
|
22
|
+
/** 24, 32 or 40 px. `small` shows no second line: it does not fit beside 24 px in a row. */
|
|
23
|
+
size: AvatarSize;
|
|
24
|
+
/** The word where nobody is ("Nog niemand"). */
|
|
25
|
+
empty: string;
|
|
26
|
+
/** A speaker's colour, only where the people are the variable, as the speakers of a recording. */
|
|
27
|
+
color?: SpeakerColour;
|
|
28
|
+
private onClick;
|
|
29
|
+
protected render(): TemplateResult;
|
|
30
|
+
}
|
|
31
|
+
declare global {
|
|
32
|
+
interface HTMLElementTagNameMap {
|
|
33
|
+
'lintje-person': LintjePerson;
|
|
34
|
+
}
|
|
35
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* `<lintje-person-group>` — a row of overlapping circles with "+n", that opens a list of everyone.
|
|
3
|
+
*
|
|
4
|
+
* It shows no names, so it is always a button with a panel: a disclosure, not a menu. It opens and
|
|
5
|
+
* closes itself, as the user menu does, and says so; a host may set `open`. The list holds the
|
|
6
|
+
* people in the host's order, each with name and role; a name with `href` is a link there.
|
|
7
|
+
*
|
|
8
|
+
* Events: `lintje-toggle` `{ open }`, `lintje-navigate` `{ href }` (from a name in the list).
|
|
9
|
+
*/
|
|
10
|
+
import { type PropertyDeclarations, type PropertyValues, type TemplateResult } from 'lit';
|
|
11
|
+
import { LintjeElement } from '../../../core/element.js';
|
|
12
|
+
import '../person/person.js';
|
|
13
|
+
import '../../overlays/popover/popover.js';
|
|
14
|
+
import type { Person } from '../../../types.js';
|
|
15
|
+
/** The names a reader sees, then how many more stand in "+n": "A, B en 3 anderen". */
|
|
16
|
+
export declare function spoken(names: string[], more: number): string;
|
|
17
|
+
export declare class LintjePersonGroup extends LintjeElement {
|
|
18
|
+
#private;
|
|
19
|
+
static styles: import("lit").CSSResult[];
|
|
20
|
+
static properties: PropertyDeclarations;
|
|
21
|
+
people: Person[];
|
|
22
|
+
/** What the row is ("Meelezers"): the list's heading and the start of the button's name. */
|
|
23
|
+
label: string;
|
|
24
|
+
/** The number of circles, "+n" included; at least 2. With more people, `max − 1` and "+n". */
|
|
25
|
+
max: number;
|
|
26
|
+
/** 24 or 32 px. */
|
|
27
|
+
size: 'small' | 'medium';
|
|
28
|
+
/** The word where nobody is. */
|
|
29
|
+
empty: string;
|
|
30
|
+
/** Whether the list stands open. */
|
|
31
|
+
open: boolean;
|
|
32
|
+
protected updated(changed: PropertyValues<this>): void;
|
|
33
|
+
private get trigger();
|
|
34
|
+
private setOpen;
|
|
35
|
+
private onPopoverClose;
|
|
36
|
+
protected render(): TemplateResult;
|
|
37
|
+
}
|
|
38
|
+
declare global {
|
|
39
|
+
interface HTMLElementTagNameMap {
|
|
40
|
+
'lintje-person-group': LintjePersonGroup;
|
|
41
|
+
}
|
|
42
|
+
}
|
|
@@ -10,7 +10,7 @@ export declare function dataLabelFits(text: string, available: number): boolean;
|
|
|
10
10
|
export declare function truncateToWidth(text: string, maxWidth: number, fontFamily?: string): string;
|
|
11
11
|
/**
|
|
12
12
|
* Width in px of `text` in the 12 px chart font, at `weight` (400 for an axis label, 700 for a
|
|
13
|
-
* data label)
|
|
13
|
+
* data label), or at another `size`; ~6.5 px per character at 12 px without a canvas.
|
|
14
14
|
*/
|
|
15
|
-
export declare function textWidth(text: string, fontFamily?: string, weight?: number): number;
|
|
15
|
+
export declare function textWidth(text: string, fontFamily?: string, weight?: number, size?: number): number;
|
|
16
16
|
export declare function formatPercent(n: number, decimals?: number): string;
|
|
@@ -12,6 +12,8 @@ export interface FrameState {
|
|
|
12
12
|
modifiedCount: number;
|
|
13
13
|
summary: string;
|
|
14
14
|
hasFilters: boolean;
|
|
15
|
+
/** Below 768 px, the height of the filter sentence that sticks under the bar; else 0. */
|
|
16
|
+
sentenceHeight: number;
|
|
15
17
|
}
|
|
16
18
|
export declare function getFrameState(): FrameState;
|
|
17
19
|
export declare function setFrameState(patch: Partial<FrameState>): void;
|
|
@@ -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
|
+
* 73 icons, of 1202 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. */
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
*
|
|
5
5
|
* Sources in order: `src` (a mask in the text colour); the register; the loader (names from
|
|
6
6
|
* data); `nothing`. A name without a file draws nothing: compare the result with `nothing` and
|
|
7
|
-
* show the Dutch label instead.
|
|
7
|
+
* show the Dutch label instead. While the file loads, the empty box carries the `label`.
|
|
8
8
|
*/
|
|
9
9
|
import { nothing, type CSSResult, type TemplateResult } from 'lit';
|
|
10
10
|
import { type IconGlyph } from './register.js';
|
|
@@ -5,13 +5,14 @@
|
|
|
5
5
|
* names come from their one list, `tokens/colors.ts`.
|
|
6
6
|
*/
|
|
7
7
|
import type { DataColor } from './tokens/colors.js';
|
|
8
|
-
import type { ContentStateKind, Tone } from './components/shared/tone.js';
|
|
8
|
+
import type { ContentStateKind, Tone, WorkState } from './components/shared/tone.js';
|
|
9
9
|
import type { StatusTone } from './components/feedback/status-dot/status-dot.js';
|
|
10
10
|
import type { AnnouncementKind } from './components/shared/announcement-block.js';
|
|
11
11
|
import type { ChartSpec, MapSpec } from './components/shared/charts/shared/types.js';
|
|
12
12
|
import type { MenuEntry } from './components/actions/menu-button/menu-button.js';
|
|
13
13
|
import type { NotificationItem } from './components/frame/notifications/notifications.js';
|
|
14
|
-
|
|
14
|
+
import type { UploadFile } from './components/shared/files.js';
|
|
15
|
+
export type { BarSeriesData, ChartColor, ChartEvent, ChartForecast, ChartKind, ChartSpec, LineSeriesData, MapSpec, MapValue, MapSeriesKey, MapSeriesColor, MapSeriesStyle, MapPlotData, MapPlotVariant, MapVariant, ScatterPoint, SankeyFlow, SankeyNode, SankeyStep, ScatterSeriesData, DumbbellRow, WmsBasemap, MapArea, MapControls, RadarSeriesData, TreemapPart, TreemapSubPart, } from './components/shared/charts/shared/types.js';
|
|
15
16
|
export type { SeriesShape } from './components/shared/charts/shared/series-shapes.js';
|
|
16
17
|
export type { DataColor } from './tokens/colors.js';
|
|
17
18
|
export type { Tone, WorkState, ContentStateKind } from './components/shared/tone.js';
|
|
@@ -135,8 +136,6 @@ export interface ChartData extends FrameSettings, TileData, ContentState {
|
|
|
135
136
|
selectedId?: string | null;
|
|
136
137
|
/** The URL that undoes the selection; clicking the chosen mark again and Escape follow it. */
|
|
137
138
|
clearHref?: string;
|
|
138
|
-
/** Offers "Grafiek" / "Tabel" in the header while `ready`; the table shows the CSV's rows. */
|
|
139
|
-
tableSwitch?: boolean;
|
|
140
139
|
}
|
|
141
140
|
/**
|
|
142
141
|
* Events: `lintje-mark-select` `{id, label, href?}` on a click on an area or point,
|
|
@@ -147,6 +146,82 @@ export interface ChartData extends FrameSettings, TileData, ContentState {
|
|
|
147
146
|
*/
|
|
148
147
|
export interface MapData extends FrameSettings, TileData, ContentState, MapSpec {
|
|
149
148
|
}
|
|
149
|
+
/** A kind of node: its words, its icon and its data colour. */
|
|
150
|
+
export interface GraphNodeType {
|
|
151
|
+
/** What a node's `type` names. */
|
|
152
|
+
key: string;
|
|
153
|
+
/** The kind in words, singular: "Persoon". */
|
|
154
|
+
label: string;
|
|
155
|
+
/** The kind in words, plural, which names a group of them: "Personen". Without it `label`. */
|
|
156
|
+
plural?: string;
|
|
157
|
+
/** An icon file name (`dist-icons/`, without `.svg`). */
|
|
158
|
+
icon: string;
|
|
159
|
+
/** The kind's data colour; without it the colour of its place in `types`. */
|
|
160
|
+
color?: DataColor;
|
|
161
|
+
}
|
|
162
|
+
/** A state of a node in words, with the tone its dot takes: "geldend", "vervallen". */
|
|
163
|
+
export interface GraphNodeStatus {
|
|
164
|
+
label: string;
|
|
165
|
+
/** Default `neutral`. */
|
|
166
|
+
tone?: Tone;
|
|
167
|
+
}
|
|
168
|
+
export interface GraphNode {
|
|
169
|
+
id: string;
|
|
170
|
+
label: string;
|
|
171
|
+
/** The `key` of its type. */
|
|
172
|
+
type: string;
|
|
173
|
+
status?: GraphNodeStatus;
|
|
174
|
+
/** Drawn in a circle instead of the type's icon, for a person. */
|
|
175
|
+
initials?: string;
|
|
176
|
+
/** How many relations the host has not loaded yet; its counter asks for them. */
|
|
177
|
+
more?: number;
|
|
178
|
+
}
|
|
179
|
+
/** `to`: an arrowhead at `to`; `both`: at both ends; `none`: a relation without direction. */
|
|
180
|
+
export type GraphDirection = 'to' | 'both' | 'none';
|
|
181
|
+
export interface GraphEdge {
|
|
182
|
+
from: string;
|
|
183
|
+
to: string;
|
|
184
|
+
/** The relation's word, on the line: "aanvrager", "werkt bij". */
|
|
185
|
+
label?: string;
|
|
186
|
+
/** Default `to`. */
|
|
187
|
+
direction?: GraphDirection;
|
|
188
|
+
/** A number the line's thickness shows, from 1.5 to 4 px over the largest of the graph. */
|
|
189
|
+
value?: number;
|
|
190
|
+
/** The number's unit, after it in the tooltip: "records per dag". */
|
|
191
|
+
unit?: string;
|
|
192
|
+
}
|
|
193
|
+
/** Layered to the right or downwards, by force, or in rings round the centre. */
|
|
194
|
+
export type GraphLayout = 'layered-right' | 'layered-down' | 'force' | 'radial';
|
|
195
|
+
/** `orthogonal` draws a layered graph in right angles; elsewhere it is straight. */
|
|
196
|
+
export type GraphLines = 'straight' | 'curved' | 'orthogonal';
|
|
197
|
+
/**
|
|
198
|
+
* Events: `lintje-node-select` `{id, label}` for a chosen node, `{id: null, label: null}` when
|
|
199
|
+
* undone; `lintje-node-toggle` `{id, open}` when a branch or a group is opened or folded, one per
|
|
200
|
+
* node when the reset button sets it all back; `lintje-node-expand` `{id}` when a node with `more`
|
|
201
|
+
* is opened. With `download` the tile offers the drawing as a PNG.
|
|
202
|
+
*/
|
|
203
|
+
export interface GraphData extends FrameSettings, TileData, ContentState {
|
|
204
|
+
/** The kinds in the order the legend and the colours take them. */
|
|
205
|
+
types: GraphNodeType[];
|
|
206
|
+
nodes: GraphNode[];
|
|
207
|
+
edges: GraphEdge[];
|
|
208
|
+
/** The drawing's `<desc>`: what the graph shows, the accessible alternative. Required. */
|
|
209
|
+
description: string;
|
|
210
|
+
/** Without it the element chooses by the graph's shape. */
|
|
211
|
+
layout?: GraphLayout;
|
|
212
|
+
/** Without it straight, and curved round the centre in `radial`. */
|
|
213
|
+
lines?: GraphLines;
|
|
214
|
+
/** The chosen node: outlined, its relations and neighbours lit, the rest stepped back. */
|
|
215
|
+
selected?: string | null;
|
|
216
|
+
/** Nodes whose branch is folded. */
|
|
217
|
+
collapsed?: string[];
|
|
218
|
+
/** Groups the reader opened, by the id `lintje-node-toggle` gave them. */
|
|
219
|
+
opened?: string[];
|
|
220
|
+
/** Draws each kind's icon and mark in its data colour; default true. */
|
|
221
|
+
typeColors?: boolean;
|
|
222
|
+
/** The drawing's height in px; without it 480, and 360 on a phone. */
|
|
223
|
+
height?: number;
|
|
224
|
+
}
|
|
150
225
|
export type CellValue = string | number | null;
|
|
151
226
|
export interface TableColumnData {
|
|
152
227
|
key: string;
|
|
@@ -161,12 +236,20 @@ export interface TableColumnData {
|
|
|
161
236
|
truncate?: boolean;
|
|
162
237
|
/**
|
|
163
238
|
* How a value shows; default `number` for numbers. `change`: a signed percentage with ▲ ▼ ●.
|
|
164
|
-
* `change-compact`: only the ▲ ▼ ● of `change
|
|
165
|
-
* below 768 px the row's measure shows
|
|
239
|
+
* `change-compact`: only the ▲ ▼ ● of `change`, its words in a tooltip (`tooltip`); a screen
|
|
240
|
+
* reader hears them, and below 768 px the row's measure shows the change whole.
|
|
166
241
|
* `status`: a `StatusTone` (or mapped through `status.tones`) as the status dot with its label.
|
|
167
242
|
* `label`: the value as a badge with the word, tone and icon from `labels`.
|
|
243
|
+
* `person`: the value is an id in `people`, drawn as `lintje-person`.
|
|
168
244
|
*/
|
|
169
|
-
format?: 'text' | 'number' | 'percent' | 'decimal' | 'change' | 'change-compact' | 'status' | 'label';
|
|
245
|
+
format?: 'text' | 'number' | 'percent' | 'decimal' | 'change' | 'change-compact' | 'status' | 'label' | 'person';
|
|
246
|
+
/**
|
|
247
|
+
* `change-compact`: the words the glyph stands for, as a template with `{key}` placeholders
|
|
248
|
+
* filled from the row, each value read the way its column reads it (`{change}` gives
|
|
249
|
+
* "▲ +4,2%"). They are the glyph's tooltip, a screen reader hears them, and under the keyboard's
|
|
250
|
+
* focus or without hover they stand whole. Without it, the whole change. Other formats ignore it.
|
|
251
|
+
*/
|
|
252
|
+
tooltip?: string;
|
|
170
253
|
decimals?: number;
|
|
171
254
|
/** Suffix after the value, e.g. "min". */
|
|
172
255
|
unit?: string;
|
|
@@ -187,6 +270,13 @@ export interface TableColumnData {
|
|
|
187
270
|
* value without an entry stands as plain text. Sorting and the CSV use the word.
|
|
188
271
|
*/
|
|
189
272
|
labels?: Record<string, TableLabel>;
|
|
273
|
+
/**
|
|
274
|
+
* `person` format: value → the person it stands for, as `labels` does for a label. An id without
|
|
275
|
+
* an entry stands as plain text. Sorting, filtering and the CSV use the name.
|
|
276
|
+
*/
|
|
277
|
+
people?: Record<string, Person>;
|
|
278
|
+
/** `person` format: the word for `null`; default "Niet toegewezen". */
|
|
279
|
+
empty?: string;
|
|
190
280
|
/** Shown muted instead of an exact 0, where 0 means "none" (e.g. "—"). Missing stays `null`. */
|
|
191
281
|
zeroText?: string;
|
|
192
282
|
mobileSubline?: boolean;
|
|
@@ -233,6 +323,22 @@ export interface TableAction {
|
|
|
233
323
|
danger?: boolean;
|
|
234
324
|
disabled?: boolean;
|
|
235
325
|
}
|
|
326
|
+
/** What `lintje-row-click` and `lintje-row-open` carry, in `lintje-list` and `lintje-data-table`. */
|
|
327
|
+
export interface RowClickDetail {
|
|
328
|
+
id: string;
|
|
329
|
+
/** The row's name: a list row's title, a table row's first column. */
|
|
330
|
+
label: string;
|
|
331
|
+
/** The address the host gave the row, if any. */
|
|
332
|
+
href?: string;
|
|
333
|
+
}
|
|
334
|
+
/** What `lintje-row-action` carries, in `lintje-list` and `lintje-data-table`. */
|
|
335
|
+
export interface RowActionDetail {
|
|
336
|
+
id: string;
|
|
337
|
+
/** The row's name: a list row's title, a table row's first column. */
|
|
338
|
+
label: string;
|
|
339
|
+
/** The `value` of the chosen action. */
|
|
340
|
+
action: string;
|
|
341
|
+
}
|
|
236
342
|
export interface SortState {
|
|
237
343
|
key: string;
|
|
238
344
|
direction: 'asc' | 'desc';
|
|
@@ -244,7 +350,7 @@ export interface SortState {
|
|
|
244
350
|
* `lintje-checked-change` with the checked keys in a selectable one;
|
|
245
351
|
* `lintje-sort-change` with `{key, direction}` or `null`;
|
|
246
352
|
* `lintje-cell-edit` `{id, column, value}` from an `editor` column;
|
|
247
|
-
* `lintje-row-action` `{id, action}` from `rowActions`;
|
|
353
|
+
* `lintje-row-action` `{id, label, action}` from `rowActions`;
|
|
248
354
|
* `lintje-bulk-action` `{ids, action}` from `bulkActions`;
|
|
249
355
|
* `lintje-filter-change` `{column, value}` (`string[] | string | null`) from a column `filter`;
|
|
250
356
|
* `lintje-columns-change` `{order, hidden}` from the `columnChooser`.
|
|
@@ -478,12 +584,20 @@ export interface ShellGroup {
|
|
|
478
584
|
label: string;
|
|
479
585
|
links: ShellLink[];
|
|
480
586
|
}
|
|
481
|
-
|
|
587
|
+
/** A person as an element shows them. */
|
|
588
|
+
export interface Person {
|
|
482
589
|
name: string;
|
|
483
|
-
/**
|
|
590
|
+
/** Written by the host ("JV"): initials are not derived, "J. de Vries" has no rule. */
|
|
591
|
+
initials?: string;
|
|
592
|
+
/** The second line: function or department ("Senior behandelaar"). */
|
|
484
593
|
role?: string;
|
|
485
|
-
initials
|
|
594
|
+
/** A photo, cropped to the circle; when it does not load, the initials. */
|
|
595
|
+
photo?: string;
|
|
596
|
+
/** Makes the name a link to a profile. */
|
|
597
|
+
href?: string;
|
|
486
598
|
}
|
|
599
|
+
/** The person in the user menu: unchanged for every host that sets it. */
|
|
600
|
+
export type UserMenuUser = Person;
|
|
487
601
|
/** The light/dark setting as the reader chose it; `system` follows `prefers-color-scheme`. */
|
|
488
602
|
export type ModeSetting = 'system' | 'light' | 'dark';
|
|
489
603
|
/** The reader's display settings, as the host holds them; with them the bar has "Weergave". */
|
|
@@ -615,10 +729,13 @@ export interface ChatTermRange {
|
|
|
615
729
|
certain?: boolean;
|
|
616
730
|
}
|
|
617
731
|
export interface ChatMessageData {
|
|
732
|
+
/** `''` for a message that is only its attachments. */
|
|
618
733
|
text: string;
|
|
619
734
|
terms?: ChatTermRange[];
|
|
620
735
|
/** When it was sent, as the host formats it ("08:20"). */
|
|
621
736
|
time?: string;
|
|
737
|
+
/** What was sent along with the question; always `state: 'done'`. */
|
|
738
|
+
attachments?: UploadFile[];
|
|
622
739
|
}
|
|
623
740
|
export interface ChatSuggestion {
|
|
624
741
|
label: string;
|
|
@@ -659,7 +776,72 @@ export type ChatBlock = {
|
|
|
659
776
|
} | {
|
|
660
777
|
kind: 'data-table';
|
|
661
778
|
data: DataTableData;
|
|
779
|
+
}
|
|
780
|
+
/** Files the answer gives back or cites, beside the sentence that names them. */
|
|
781
|
+
| {
|
|
782
|
+
kind: 'attachments';
|
|
783
|
+
items: UploadFile[];
|
|
662
784
|
};
|
|
785
|
+
/** One thing the assistant did for an answer. The host writes the label in its own tense and
|
|
786
|
+
* with its outcome: "3 bronnen doorzoeken" while busy, "3 bronnen doorzocht" when done,
|
|
787
|
+
* "Tabel ophalen mislukt" or "Tabel ophalen gestopt". */
|
|
788
|
+
export interface ChatStep {
|
|
789
|
+
label: string;
|
|
790
|
+
/** `done` without it. */
|
|
791
|
+
state?: Extract<WorkState, 'busy' | 'done' | 'error' | 'cancelled'>;
|
|
792
|
+
/** Short, after the label on the same line: the sources, the table, or why it failed. */
|
|
793
|
+
detail?: string;
|
|
794
|
+
/** Makes `linkText` in the detail a link: the source's page. */
|
|
795
|
+
href?: string;
|
|
796
|
+
/** Without it, or when the detail does not hold it, the whole detail is the link. */
|
|
797
|
+
linkText?: string;
|
|
798
|
+
}
|
|
799
|
+
/** What the assistant did for one answer, oldest first; steps are only ever added at the end. */
|
|
800
|
+
export interface ChatStepsData {
|
|
801
|
+
items: ChatStep[];
|
|
802
|
+
/** How long it took, as the host formats it ("12 s"). Only once nothing is busy: while a step
|
|
803
|
+
* runs, it is not drawn. */
|
|
804
|
+
duration?: string;
|
|
805
|
+
}
|
|
806
|
+
/** A line between turns, above the question of its turn. */
|
|
807
|
+
export interface ChatDivider {
|
|
808
|
+
/** `time` ("Gisteren") and `topic` ("Nieuw onderwerp") are quiet; `context`: the conversation
|
|
809
|
+
* was trimmed, and what stands above is no longer used. `time` without it. */
|
|
810
|
+
kind?: 'time' | 'topic' | 'context';
|
|
811
|
+
label: string;
|
|
812
|
+
/** One sentence under the label. A `context` divider without it says "De assistent neemt de
|
|
813
|
+
* vragen hierboven niet meer mee." */
|
|
814
|
+
note?: string;
|
|
815
|
+
}
|
|
816
|
+
export type ChatQuestionKind = 'one' | 'many' | 'text';
|
|
817
|
+
/** One question the assistant asks before it answers. */
|
|
818
|
+
export interface ChatQuestion {
|
|
819
|
+
id: string;
|
|
820
|
+
/** The short name in the progress line and the reader's message: "Periode". */
|
|
821
|
+
label: string;
|
|
822
|
+
/** The question itself: "Welke periode bedoel je?" */
|
|
823
|
+
text: string;
|
|
824
|
+
kind: ChatQuestionKind;
|
|
825
|
+
/** `one` and `many`; a `description` stands under its label. "Iets anders…" always follows. */
|
|
826
|
+
options?: FilterOption[];
|
|
827
|
+
/** The placeholder of the "Iets anders…" field. */
|
|
828
|
+
otherPlaceholder?: string;
|
|
829
|
+
/** Marks "(niet verplicht)" and offers Overslaan; a question is required without it. */
|
|
830
|
+
optional?: boolean;
|
|
831
|
+
hint?: string;
|
|
832
|
+
/** `text`: the field's placeholder. */
|
|
833
|
+
placeholder?: string;
|
|
834
|
+
/** The message when a required question has no answer; "Kies een antwoord." without it
|
|
835
|
+
* ("Vul een antwoord in." for `text`). */
|
|
836
|
+
error?: string;
|
|
837
|
+
}
|
|
838
|
+
/** What the assistant asks before it answers: `lintje-chat-questions`. */
|
|
839
|
+
export interface ChatQuestionsData {
|
|
840
|
+
/** 1 to 5. One `one` question without descriptions is drawn in the short form. */
|
|
841
|
+
questions: ChatQuestion[];
|
|
842
|
+
/** `sending`: the answers are on their way. */
|
|
843
|
+
state?: 'open' | 'sending';
|
|
844
|
+
}
|
|
663
845
|
/** Where an answer stands. `out-of-scope` needs a source on; `needs-clarification` asks back. */
|
|
664
846
|
export type ChatAnswerState = 'ready' | 'streaming' | 'stopped' | 'error' | 'out-of-scope' | 'needs-clarification';
|
|
665
847
|
/** What the assistant answered: `lintje-chat-answer`. */
|
|
@@ -669,20 +851,28 @@ export interface ChatAnswerData {
|
|
|
669
851
|
text?: string;
|
|
670
852
|
blocks?: ChatBlock[];
|
|
671
853
|
strip?: ChatStripData;
|
|
672
|
-
/** `streaming`: the step that is running ("Cijfers berekenen · stap 2 van 3").
|
|
854
|
+
/** `streaming`: the step that is running ("Cijfers berekenen · stap 2 van 3"). With `steps`,
|
|
855
|
+
* the running step says it and `status` is not drawn. */
|
|
673
856
|
status?: string;
|
|
857
|
+
/** What the assistant did for this answer, above its text in every state. */
|
|
858
|
+
steps?: ChatStepsData;
|
|
674
859
|
/** `error`: what went wrong, and the way out in words. */
|
|
675
860
|
error?: {
|
|
676
861
|
title?: string;
|
|
677
862
|
text: string;
|
|
678
863
|
};
|
|
679
|
-
/**
|
|
680
|
-
|
|
864
|
+
/**
|
|
865
|
+
* `needs-clarification` and `out-of-scope`: what the assistant asks before it answers, in a box
|
|
866
|
+
* above the question box. Counts on the last answer only; a new turn ends it.
|
|
867
|
+
*/
|
|
868
|
+
questions?: ChatQuestionsData;
|
|
681
869
|
/** Suggested next questions, dashed. Drawn under the last answer only. */
|
|
682
870
|
followUps?: ChatSuggestion[];
|
|
683
871
|
}
|
|
684
872
|
export interface ChatTurnData {
|
|
685
873
|
id: string;
|
|
874
|
+
/** The line above this turn's question: "Gisteren", "Nieuw onderwerp", "Gesprek ingekort". */
|
|
875
|
+
divider?: ChatDivider;
|
|
686
876
|
message: ChatMessageData;
|
|
687
877
|
answer?: ChatAnswerData;
|
|
688
878
|
}
|
|
@@ -718,9 +908,11 @@ export interface ChatStartData {
|
|
|
718
908
|
}
|
|
719
909
|
/**
|
|
720
910
|
* The host owns the conversation and sets `data` again on change.
|
|
721
|
-
* Events: `lintje-message-send`, `lintje-answer
|
|
722
|
-
* `lintje-draft-change`, `lintje-suggestion-select`, `lintje-message-edit`,
|
|
723
|
-
* `lintje-answer-retry`, `lintje-answer-rate`, `lintje-strip-change`,
|
|
911
|
+
* Events: `lintje-message-send`, `lintje-questions-answer`, `lintje-answer-stop`,
|
|
912
|
+
* `lintje-sources-change`, `lintje-draft-change`, `lintje-suggestion-select`, `lintje-message-edit`,
|
|
913
|
+
* `lintje-answer-retry`, `lintje-answer-rate`, `lintje-strip-change`, the attachments'
|
|
914
|
+
* `lintje-files-add`, `lintje-file-remove`, `lintje-file-cancel`, `lintje-file-retry` and
|
|
915
|
+
* `lintje-file-open`, `lintje-navigate` from a link in a step, and the blocks' own
|
|
724
916
|
* `lintje-mark-select`, `lintje-row-click` and `lintje-sort-change`.
|
|
725
917
|
*/
|
|
726
918
|
export interface ChatData extends FrameSettings {
|
|
@@ -732,11 +924,21 @@ export interface ChatData extends FrameSettings {
|
|
|
732
924
|
draftTerms?: ChatDraftTerms;
|
|
733
925
|
/** The question box's placeholder; "Stel een vraag over de gegevens" without it. */
|
|
734
926
|
placeholder?: string;
|
|
927
|
+
/**
|
|
928
|
+
* Files sent along with a question: the paperclip, dragging and pasting. Without it the box
|
|
929
|
+
* takes no files. `files` are those of the question still being typed; the host keeps them.
|
|
930
|
+
*/
|
|
931
|
+
upload?: {
|
|
932
|
+
accept?: string;
|
|
933
|
+
maxSize?: number;
|
|
934
|
+
files?: UploadFile[];
|
|
935
|
+
};
|
|
735
936
|
}
|
|
736
937
|
export type { FormValues, FormErrors, StoredDraft } from './components/forms/form/form.js';
|
|
737
938
|
export type { ErrorSummaryItem } from './components/forms/error-summary/error-summary.js';
|
|
939
|
+
export type { ChatQuestionAnswer } from './components/chat/chat-questions/chat-questions.js';
|
|
738
940
|
export type { ErrorPageLink } from './components/feedback/error-page/error-page.js';
|
|
739
|
-
export type { UploadFile } from './components/
|
|
941
|
+
export type { UploadFile } from './components/shared/files.js';
|
|
740
942
|
export type { DateRange } from './components/inputs/date-range/date-range.js';
|
|
741
943
|
export type { SlotDay, TimeSlot } from './components/inputs/slot-picker/slot-picker.js';
|
|
742
944
|
export type { TabItem } from './components/layout/tabs/tabs.js';
|
|
@@ -744,7 +946,7 @@ export type { Step, StepState, StepperOrientation } from './components/forms/ste
|
|
|
744
946
|
export type { MenuEntry, MenuHeading, MenuItem } from './components/actions/menu-button/menu-button.js';
|
|
745
947
|
export type { Crumb } from './components/frame/breadcrumbs/breadcrumbs.js';
|
|
746
948
|
export type { SubNavAction, SubNavGroup, SubNavItem } from './components/frame/sub-nav/sub-nav.js';
|
|
747
|
-
export type { ListItem
|
|
949
|
+
export type { ListItem } from './components/tables/list/list.js';
|
|
748
950
|
export type { CardAction, CardData, CardFact, CardLayout, CardMedia, CardStatus, CardStatusTone, } from './components/tables/card/card.js';
|
|
749
951
|
export type { GalleryItem } from './components/content/gallery/gallery.js';
|
|
750
952
|
export type { FooterColumn, FooterData, FooterLink } from './components/frame/footer/footer.js';
|