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
|
@@ -1,24 +1,25 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* `<lintje-user-menu>` — the user's avatar in the navigation bar and the menu it opens: name and
|
|
3
|
-
* role, the host's rows (`MenuEntry`), "Afmelden" and the version.
|
|
3
|
+
* role, the host's rows (`MenuEntry`), "Afmelden" and the version. With `variant="side"` it is
|
|
4
|
+
* the foot of the side menu: the avatar with the name and role beside it, the menu above it.
|
|
4
5
|
*
|
|
5
6
|
* A menu, not a dialog: it traps no focus, and an Escape in a dialog opened over it is the
|
|
6
7
|
* dialog's.
|
|
7
8
|
*
|
|
8
9
|
* Events: `lintje-action` `string` (the row's value), `lintje-navigate` `{ href }` (a link row),
|
|
9
|
-
* `lintje-logout` (without `logout-action`).
|
|
10
|
+
* `lintje-logout` (without `logout-action`), `lintje-toggle` `{ open }` (the menu opens or closes).
|
|
10
11
|
*/
|
|
11
12
|
import { type PropertyDeclarations, type PropertyValues, type TemplateResult } from 'lit';
|
|
12
13
|
import { LintjeElement } from '../../../core/element.js';
|
|
13
14
|
import { type MenuEntry } from '../../actions/menu-button/menu-button.js';
|
|
14
15
|
import '../../overlays/popover/popover.js';
|
|
15
16
|
import '../../overlays/tooltip/tooltip.js';
|
|
16
|
-
import type {
|
|
17
|
+
import type { Person } from '../../../types.js';
|
|
17
18
|
export declare class LintjeUserMenu extends LintjeElement {
|
|
18
19
|
#private;
|
|
19
20
|
static styles: import("lit").CSSResult[];
|
|
20
21
|
static properties: PropertyDeclarations;
|
|
21
|
-
user?:
|
|
22
|
+
user?: Person | null;
|
|
22
23
|
items: MenuEntry[];
|
|
23
24
|
/** Shown at the bottom: "Versie 2.4.1". */
|
|
24
25
|
version?: string;
|
|
@@ -31,6 +32,13 @@ export declare class LintjeUserMenu extends LintjeElement {
|
|
|
31
32
|
csrf: string;
|
|
32
33
|
/** The content without button and popover, on the navigation's colours: for the mobile sheet. */
|
|
33
34
|
inline: boolean;
|
|
35
|
+
/**
|
|
36
|
+
* `bar`: the avatar in the navigation bar, the menu below it. `side`: the foot of the side
|
|
37
|
+
* menu, named by the user's name with the role beside it, the menu above it.
|
|
38
|
+
*/
|
|
39
|
+
variant: 'bar' | 'side';
|
|
40
|
+
/** `side` in the folded rail: only the avatar shows; name and role stay for a screen reader. */
|
|
41
|
+
folded: boolean;
|
|
34
42
|
open: boolean;
|
|
35
43
|
private get trigger();
|
|
36
44
|
private rowElements;
|
|
@@ -39,6 +47,9 @@ export declare class LintjeUserMenu extends LintjeElement {
|
|
|
39
47
|
private focusRow;
|
|
40
48
|
private show;
|
|
41
49
|
private hide;
|
|
50
|
+
private setOpen;
|
|
51
|
+
/** A pointer gets the whole name and role as a tooltip, only where they are cut off. */
|
|
52
|
+
private readonly onTriggerPointerEnter;
|
|
42
53
|
private readonly onFocusOut;
|
|
43
54
|
constructor();
|
|
44
55
|
private readonly onTriggerKeydown;
|
|
@@ -50,6 +61,8 @@ export declare class LintjeUserMenu extends LintjeElement {
|
|
|
50
61
|
private renderRow;
|
|
51
62
|
private renderLogout;
|
|
52
63
|
private renderContent;
|
|
64
|
+
/** The name and role beside the avatar; the role is the button's description, not its name. */
|
|
65
|
+
private renderNames;
|
|
53
66
|
protected render(): TemplateResult;
|
|
54
67
|
}
|
|
55
68
|
declare global {
|
|
@@ -0,0 +1,147 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* `<lintje-graph>` — an entity diagram in its tile: nodes and the relations between them, laid
|
|
3
|
+
* out, folded and zoomed by the element itself.
|
|
4
|
+
*
|
|
5
|
+
* The host sends the graph; the element finds its centre, gathers more than five leaves of one
|
|
6
|
+
* kind into a group, lays it out and draws it. `selected`, `collapsed` and `opened` are the
|
|
7
|
+
* host's: a click shows at once and asks with an event, and the host confirms in the next `data`.
|
|
8
|
+
* A node with `more` asks for its neighbours and shows a busy counter until the host sends them.
|
|
9
|
+
* Above a hundred nodes the layout is worked out in a worker. The zoom, the kinds switched off in
|
|
10
|
+
* the legend and the pointer are the element's own.
|
|
11
|
+
*
|
|
12
|
+
* Events: `lintje-node-select` `{ id, label }` (undone, `{ id: null, label: null }`),
|
|
13
|
+
* `lintje-node-toggle` `{ id, open }`, `lintje-node-expand` `{ id }`.
|
|
14
|
+
*/
|
|
15
|
+
import { nothing, type PropertyDeclarations, type PropertyValues, type TemplateResult } from 'lit';
|
|
16
|
+
import { type FrameSettings } from '../../../core/element.js';
|
|
17
|
+
import { LintjeContentTileElement } from '../../shared/content-tile.js';
|
|
18
|
+
import '../../feedback/announcement/announcement.js';
|
|
19
|
+
import '../../feedback/spinner/spinner.js';
|
|
20
|
+
import '../../layout/tile/tile.js';
|
|
21
|
+
import '../../overlays/tooltip/tooltip.js';
|
|
22
|
+
import type { GraphData } from '../../../types.js';
|
|
23
|
+
/** The drawing's height in px, in the tile and on a phone. */
|
|
24
|
+
export declare const GRAPH_HEIGHT: {
|
|
25
|
+
readonly desktop: 480;
|
|
26
|
+
readonly mobile: 360;
|
|
27
|
+
};
|
|
28
|
+
export declare class LintjeGraph extends LintjeContentTileElement {
|
|
29
|
+
#private;
|
|
30
|
+
static styles: import("lit").CSSResult[];
|
|
31
|
+
static properties: PropertyDeclarations;
|
|
32
|
+
data?: GraphData | null;
|
|
33
|
+
protected get dataSettings(): FrameSettings | undefined;
|
|
34
|
+
connectedCallback(): void;
|
|
35
|
+
disconnectedCallback(): void;
|
|
36
|
+
protected expandChanged(open: boolean): void;
|
|
37
|
+
protected willUpdate(changed: PropertyValues<this>): void;
|
|
38
|
+
/** Takes over what the host keeps, each only when the host changed it. */
|
|
39
|
+
private adopt;
|
|
40
|
+
private get layoutKind();
|
|
41
|
+
private get lines();
|
|
42
|
+
/** The model again, and its layout when what it lays out changed. */
|
|
43
|
+
private rebuild;
|
|
44
|
+
private readFont;
|
|
45
|
+
/** px at a 14 px text into the element's own text size. */
|
|
46
|
+
private unit;
|
|
47
|
+
private wordWidth;
|
|
48
|
+
/** The counter a node carries, if any: what it shows and what it does. */
|
|
49
|
+
private counterOf;
|
|
50
|
+
/** The counter's width: its circle, or as wide as its sign and number; on a mark, 2 px of
|
|
51
|
+
* clear target round a smaller drawing. */
|
|
52
|
+
private counterWidth;
|
|
53
|
+
/** The room a card keeps at its end for its counter, in px at zoom 1. */
|
|
54
|
+
private roomFor;
|
|
55
|
+
/** A card's size: a fixed width, its name in one or two lines, and its status or group under it. */
|
|
56
|
+
private cardSize;
|
|
57
|
+
/** The line under a card's name: its status, or where a group hangs. */
|
|
58
|
+
private subOf;
|
|
59
|
+
/** How many lines text takes in a width, wrapping at its spaces. */
|
|
60
|
+
private lineCount;
|
|
61
|
+
/**
|
|
62
|
+
* A new layout. What leaves fades first where it stood, with its lines; then what stays moves
|
|
63
|
+
* to its new place, a new node comes out of its neighbour and the fitted view follows.
|
|
64
|
+
*/
|
|
65
|
+
private apply;
|
|
66
|
+
private tick;
|
|
67
|
+
/** How far a motion has come, eased; nothing yet while what leaves still fades. */
|
|
68
|
+
private progress;
|
|
69
|
+
/** Where each node stands now, on its way from its last place to its new one. */
|
|
70
|
+
private positionsNow;
|
|
71
|
+
private select;
|
|
72
|
+
private toggle;
|
|
73
|
+
/**
|
|
74
|
+
* Back to the start, as the map's reset: the whole drawing in view, nothing chosen, every
|
|
75
|
+
* folded branch open again and every opened group closed. The host hears each change.
|
|
76
|
+
*/
|
|
77
|
+
private reset;
|
|
78
|
+
private toggleType;
|
|
79
|
+
private leave;
|
|
80
|
+
private surfaces;
|
|
81
|
+
private hover;
|
|
82
|
+
/** The view a surface shows: the reader's, or the whole drawing fitted. */
|
|
83
|
+
private viewOf;
|
|
84
|
+
private zoom;
|
|
85
|
+
/** The chosen node and its neighbours in view. */
|
|
86
|
+
private zoomToSelection;
|
|
87
|
+
/** Brings a node into view when the keyboard reaches it outside. */
|
|
88
|
+
private reveal;
|
|
89
|
+
private focusNode;
|
|
90
|
+
/** The neighbour that lies most in the arrow's direction. */
|
|
91
|
+
private neighbourTowards;
|
|
92
|
+
private onKey;
|
|
93
|
+
private onWheel;
|
|
94
|
+
/** What a pointer on the drawing itself does: drag it, or pinch it with two fingers. */
|
|
95
|
+
private onPointerDown;
|
|
96
|
+
private onPointerMove;
|
|
97
|
+
private onPointerUp;
|
|
98
|
+
/** A point of the overview as a point of the graph. */
|
|
99
|
+
private overviewPoint;
|
|
100
|
+
/**
|
|
101
|
+
* The overview: a press outside its frame goes there, and the frame follows the pointer while
|
|
102
|
+
* it is held, from where it was taken.
|
|
103
|
+
*/
|
|
104
|
+
private onOverviewDown;
|
|
105
|
+
private onOverviewMove;
|
|
106
|
+
/**
|
|
107
|
+
* The drawing as the reader sees it, with its legend and the words of its tile, as a PNG; the
|
|
108
|
+
* zoom buttons, the overview and the tooltip stay out.
|
|
109
|
+
*/
|
|
110
|
+
private png;
|
|
111
|
+
private typeColor;
|
|
112
|
+
private legend;
|
|
113
|
+
protected render(): TemplateResult | typeof nothing;
|
|
114
|
+
private content;
|
|
115
|
+
/** The legend and the drawing of one surface; `height` null takes the modal's. */
|
|
116
|
+
private drawing;
|
|
117
|
+
private picture;
|
|
118
|
+
/**
|
|
119
|
+
* Which marks show their name beside them: the one pointed at and the chosen one first, then
|
|
120
|
+
* the busiest, each only where it covers no node and no other name. Far out, only the first two.
|
|
121
|
+
*/
|
|
122
|
+
private markNames;
|
|
123
|
+
/**
|
|
124
|
+
* One node and its counter. The node is one button in either form, a card or a mark, so a
|
|
125
|
+
* change of zoom keeps the element that has the focus.
|
|
126
|
+
*/
|
|
127
|
+
private renderNode;
|
|
128
|
+
private renderCounter;
|
|
129
|
+
/** What the tooltip says, for a node or a line; none for the chosen node, whose relations the host shows. */
|
|
130
|
+
private tooltip;
|
|
131
|
+
private controls;
|
|
132
|
+
protected updated(changed: PropertyValues<this>): void;
|
|
133
|
+
/** The node or counter in the drawing that holds the focus, with the node it belongs to. */
|
|
134
|
+
private focusedPart;
|
|
135
|
+
/**
|
|
136
|
+
* A node or counter that held the focus and is gone, or fading, hands it on: to the node that
|
|
137
|
+
* folded it away, to the first member of the group it opened, else to the centre.
|
|
138
|
+
*/
|
|
139
|
+
private handFocus;
|
|
140
|
+
/** Each tooltip 12 px under its node or the pointer, above it when the room is too small. */
|
|
141
|
+
private placeTips;
|
|
142
|
+
}
|
|
143
|
+
declare global {
|
|
144
|
+
interface HTMLElementTagNameMap {
|
|
145
|
+
'lintje-graph': LintjeGraph;
|
|
146
|
+
}
|
|
147
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Runs a layout: on the page for a small graph, and in a worker above `LARGE_GRAPH` nodes, so the
|
|
3
|
+
* page keeps answering while it works. Where no worker starts — a test document, a policy that
|
|
4
|
+
* forbids one — a large graph is laid out on the page too, a frame later, after its busy state.
|
|
5
|
+
*/
|
|
6
|
+
import { type LayoutRequest, type LayoutResult } from './layout.js';
|
|
7
|
+
export declare class LayoutRunner {
|
|
8
|
+
#private;
|
|
9
|
+
/** A small graph's result at once; a large one's when it is ready. */
|
|
10
|
+
run(request: LayoutRequest): LayoutResult | Promise<LayoutResult>;
|
|
11
|
+
destroy(): void;
|
|
12
|
+
private worker;
|
|
13
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import type { GraphLayout } from '../../../types.js';
|
|
2
|
+
export interface Point {
|
|
3
|
+
x: number;
|
|
4
|
+
y: number;
|
|
5
|
+
}
|
|
6
|
+
export interface LayoutRequest {
|
|
7
|
+
kind: GraphLayout;
|
|
8
|
+
/** Each node's box, centred on where it will stand. */
|
|
9
|
+
nodes: {
|
|
10
|
+
id: string;
|
|
11
|
+
width: number;
|
|
12
|
+
height: number;
|
|
13
|
+
}[];
|
|
14
|
+
edges: {
|
|
15
|
+
from: string;
|
|
16
|
+
to: string;
|
|
17
|
+
}[];
|
|
18
|
+
centre: string | null;
|
|
19
|
+
/** Where the nodes stood: force keeps them there and puts a new one beside its neighbour. */
|
|
20
|
+
previous?: Record<string, Point>;
|
|
21
|
+
}
|
|
22
|
+
export interface LayoutResult {
|
|
23
|
+
positions: Record<string, Point>;
|
|
24
|
+
/** Per edge, in the request's order: the points dagre routed it along. */
|
|
25
|
+
routes?: Point[][];
|
|
26
|
+
}
|
|
27
|
+
export declare function computeLayout(request: LayoutRequest): LayoutResult;
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The graph as drawn, from the graph as the host sent it: the leaves gathered into groups, the
|
|
3
|
+
* centre, what hangs behind each node, and the branches the reader folded. Pure: the element, the
|
|
4
|
+
* layout worker and the tests read the same functions.
|
|
5
|
+
*/
|
|
6
|
+
import type { GraphData, GraphDirection, GraphLayout, GraphNode, GraphNodeType } from '../../../types.js';
|
|
7
|
+
/** More leaves than this of one kind on one node become a group, as a pie folds into "Overig". */
|
|
8
|
+
export declare const GROUP_MAX = 5;
|
|
9
|
+
/** Above this many nodes the layout is worked out away from the page, in a worker. */
|
|
10
|
+
export declare const LARGE_GRAPH = 100;
|
|
11
|
+
/** A group's id: the node its members hang on and their kind. */
|
|
12
|
+
export declare function groupId(parent: string, type: string): string;
|
|
13
|
+
export interface DrawnNode extends GraphNode {
|
|
14
|
+
/** A group of leaves: the node they hang on and their ids, in the host's order. */
|
|
15
|
+
group?: {
|
|
16
|
+
parent: string;
|
|
17
|
+
members: string[];
|
|
18
|
+
};
|
|
19
|
+
}
|
|
20
|
+
export interface DrawnEdge {
|
|
21
|
+
/** Stable while both ends stay: the ends and how many before it share them. */
|
|
22
|
+
key: string;
|
|
23
|
+
from: string;
|
|
24
|
+
to: string;
|
|
25
|
+
label: string;
|
|
26
|
+
direction: GraphDirection;
|
|
27
|
+
value?: number;
|
|
28
|
+
unit?: string;
|
|
29
|
+
}
|
|
30
|
+
export interface GraphModel {
|
|
31
|
+
nodes: DrawnNode[];
|
|
32
|
+
edges: DrawnEdge[];
|
|
33
|
+
byId: Map<string, DrawnNode>;
|
|
34
|
+
neighbours: Map<string, Set<string>>;
|
|
35
|
+
/** The busiest node; it stays while it is there, so opening a branch never moves it. */
|
|
36
|
+
centre: string | null;
|
|
37
|
+
/** What hangs behind a node: all the centre reaches only through it. The centre has all. */
|
|
38
|
+
behind: Map<string, string[]>;
|
|
39
|
+
/** The nodes a folded branch hides, drawn no more. */
|
|
40
|
+
folded: Set<string>;
|
|
41
|
+
/** Every node's name as the host sent it, members of a group too. */
|
|
42
|
+
names: Map<string, string>;
|
|
43
|
+
/** The layout the graph's shape asks for, read before any branch is folded. */
|
|
44
|
+
layout: GraphLayout;
|
|
45
|
+
}
|
|
46
|
+
export declare function adjacency(nodes: {
|
|
47
|
+
id: string;
|
|
48
|
+
}[], edges: DrawnEdge[]): Map<string, Set<string>>;
|
|
49
|
+
/** The node with the most relations; the first the host names wins a tie. */
|
|
50
|
+
export declare function busiest(nodes: {
|
|
51
|
+
id: string;
|
|
52
|
+
}[], neighbours: Map<string, Set<string>>): string | null;
|
|
53
|
+
/**
|
|
54
|
+
* What hangs behind each node: everything the centre reaches only through it, whichever way the
|
|
55
|
+
* arrows point. Behind the centre hangs all it reaches, so folding it leaves the centre alone.
|
|
56
|
+
*/
|
|
57
|
+
export declare function behindSets(nodes: {
|
|
58
|
+
id: string;
|
|
59
|
+
}[], neighbours: Map<string, Set<string>>, centre: string | null): Map<string, string[]>;
|
|
60
|
+
export interface ModelOptions {
|
|
61
|
+
/** Groups opened, by `groupId`. */
|
|
62
|
+
opened?: Iterable<string>;
|
|
63
|
+
/** Nodes whose branch is folded. */
|
|
64
|
+
collapsed?: Iterable<string>;
|
|
65
|
+
/** The centre the element kept; it stays while the graph still has it. */
|
|
66
|
+
centre?: string | null;
|
|
67
|
+
}
|
|
68
|
+
export declare function buildModel(data: Pick<GraphData, 'nodes' | 'edges' | 'types'>, options?: ModelOptions): GraphModel;
|
|
69
|
+
/**
|
|
70
|
+
* The layout a graph takes when the host names none, by its shape: a large network, a ring of
|
|
71
|
+
* references or a relation both ways goes by force; a chain of directed relations is layered to
|
|
72
|
+
* the right; one node that holds most of the others is the hub of rings; the rest is a
|
|
73
|
+
* hierarchy, layered downwards.
|
|
74
|
+
*/
|
|
75
|
+
export declare function defaultLayout(model: Pick<GraphModel, 'nodes' | 'edges' | 'neighbours' | 'centre'>): GraphLayout;
|
|
76
|
+
/** A type by its key; an unknown key still draws, as a type with only its key for a name. */
|
|
77
|
+
export declare function typeOf(types: GraphNodeType[], key: string): GraphNodeType;
|
|
78
|
+
/** A relation as one line, read from `id`: its word, then the other end, an arrow for direction. */
|
|
79
|
+
export declare function sentence(model: GraphModel, edge: DrawnEdge, id: string): string;
|
|
80
|
+
/** The relations of a node as lines, as many as `max`, then "nog n". */
|
|
81
|
+
export declare function relationLines(model: GraphModel, id: string, max?: number): string[];
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The lines between the nodes, on the screen: straight from edge to edge, bent round a node in the
|
|
3
|
+
* way, curved round the centre, along dagre's route or in right angles; their arrowheads; and
|
|
4
|
+
* where each relation's word stands, clear of the nodes and of the other words.
|
|
5
|
+
*/
|
|
6
|
+
import type { GraphDirection, GraphLines } from '../../../types.js';
|
|
7
|
+
import type { Point } from './layout.js';
|
|
8
|
+
/** A node's outline on the screen: a box, or the circle of a mark. */
|
|
9
|
+
export interface Shape {
|
|
10
|
+
cx: number;
|
|
11
|
+
cy: number;
|
|
12
|
+
/** Half the width and the height; a circle's radius twice. */
|
|
13
|
+
hw: number;
|
|
14
|
+
hh: number;
|
|
15
|
+
round: boolean;
|
|
16
|
+
}
|
|
17
|
+
export interface RouteEdge {
|
|
18
|
+
key: string;
|
|
19
|
+
from: string;
|
|
20
|
+
to: string;
|
|
21
|
+
label: string;
|
|
22
|
+
direction: GraphDirection;
|
|
23
|
+
/** The stroke's width in px. */
|
|
24
|
+
width: number;
|
|
25
|
+
/** The word shows: at reading zoom, or on a line in the light. */
|
|
26
|
+
labelled: boolean;
|
|
27
|
+
/** The line is in the light: its word shows even where it has no clear place. */
|
|
28
|
+
lit: boolean;
|
|
29
|
+
}
|
|
30
|
+
export interface RouteOptions {
|
|
31
|
+
lines: GraphLines;
|
|
32
|
+
/** The direction of a layered layout; `null` for force and radial. */
|
|
33
|
+
layered: 'right' | 'down' | null;
|
|
34
|
+
/** dagre's route per edge key, on the screen; only while the cards are drawn. */
|
|
35
|
+
routed?: Map<string, Point[]>;
|
|
36
|
+
/** The width a word takes, with its halo. */
|
|
37
|
+
labelWidth: (text: string) => number;
|
|
38
|
+
}
|
|
39
|
+
export interface Route {
|
|
40
|
+
key: string;
|
|
41
|
+
/** The line's path. */
|
|
42
|
+
d: string;
|
|
43
|
+
/** A filled triangle at each end that has an arrowhead. */
|
|
44
|
+
arrows: string[];
|
|
45
|
+
/** The word's centre, if it shows. */
|
|
46
|
+
label: Point | null;
|
|
47
|
+
}
|
|
48
|
+
interface Rect {
|
|
49
|
+
x: number;
|
|
50
|
+
y: number;
|
|
51
|
+
w: number;
|
|
52
|
+
h: number;
|
|
53
|
+
}
|
|
54
|
+
/** Where a line from the shape's centre in direction (dx, dy) leaves its outline, `pad` beyond. */
|
|
55
|
+
export declare function border(shape: Shape, dx: number, dy: number, pad?: number): Point;
|
|
56
|
+
/** Whether the segment p–q crosses the box (Liang–Barsky). */
|
|
57
|
+
export declare function segmentHits(p: Point, q: Point, box: Rect): boolean;
|
|
58
|
+
/** The point at share `t` along a polyline. */
|
|
59
|
+
export declare function along(points: Point[], t: number): Point;
|
|
60
|
+
/** Every line, in the order given; a word placed earlier keeps its place against a later one. */
|
|
61
|
+
export declare function routeEdges(edges: RouteEdge[], shapes: Map<string, Shape>, options: RouteOptions): Route[];
|
|
62
|
+
export {};
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The zoom: where the graph's own units land on the screen (`screen = world · k + t`), fitting,
|
|
3
|
+
* zooming round a point, and the overview map's scale. Pure arithmetic.
|
|
4
|
+
*/
|
|
5
|
+
import type { Point } from './layout.js';
|
|
6
|
+
export interface View {
|
|
7
|
+
k: number;
|
|
8
|
+
x: number;
|
|
9
|
+
y: number;
|
|
10
|
+
}
|
|
11
|
+
export interface Bounds {
|
|
12
|
+
x: number;
|
|
13
|
+
y: number;
|
|
14
|
+
width: number;
|
|
15
|
+
height: number;
|
|
16
|
+
}
|
|
17
|
+
/** How a node is drawn at a zoom: a card, a mark with its name where it fits, or a mark alone. */
|
|
18
|
+
export type Level = 'card' | 'mark' | 'icon';
|
|
19
|
+
export declare const ZOOM: {
|
|
20
|
+
readonly min: 0.15;
|
|
21
|
+
readonly max: 3;
|
|
22
|
+
readonly fit: 1.25;
|
|
23
|
+
readonly step: 1.25;
|
|
24
|
+
};
|
|
25
|
+
export declare function levelAt(k: number): Level;
|
|
26
|
+
/** The box round the given nodes, each of its own size. */
|
|
27
|
+
export declare function boundsOf(positions: Record<string, Point>, sizes: Map<string, {
|
|
28
|
+
width: number;
|
|
29
|
+
height: number;
|
|
30
|
+
}>, ids?: Iterable<string>): Bounds;
|
|
31
|
+
/**
|
|
32
|
+
* The view that shows the whole box in the area, never closer than `ZOOM.fit`; `right` keeps a
|
|
33
|
+
* strip of the area clear, where the zoom buttons stand.
|
|
34
|
+
*/
|
|
35
|
+
export declare function fit(box: Bounds, area: {
|
|
36
|
+
width: number;
|
|
37
|
+
height: number;
|
|
38
|
+
}, right?: number): View;
|
|
39
|
+
/** Zooms by `factor` round a point of the area, so what is under it stays there. */
|
|
40
|
+
export declare function zoomAt(view: View, at: Point, factor: number): View;
|
|
41
|
+
/** Centres a point of the graph in the area at the view's zoom. */
|
|
42
|
+
export declare function centreOn(view: View, point: Point, area: {
|
|
43
|
+
width: number;
|
|
44
|
+
height: number;
|
|
45
|
+
}): View;
|
|
46
|
+
export declare function fits(box: Bounds, view: View, area: {
|
|
47
|
+
width: number;
|
|
48
|
+
height: number;
|
|
49
|
+
}): boolean;
|
|
50
|
+
/** The overview map: the scale and offset that put the whole box in a frame of `size`. */
|
|
51
|
+
export declare function overview(box: Bounds, size: {
|
|
52
|
+
width: number;
|
|
53
|
+
height: number;
|
|
54
|
+
}): {
|
|
55
|
+
scale: number;
|
|
56
|
+
x: number;
|
|
57
|
+
y: number;
|
|
58
|
+
};
|
|
@@ -26,17 +26,22 @@ import './feedback/announcement/announcement.js';
|
|
|
26
26
|
import './charts/chart/chart.js';
|
|
27
27
|
import './chat/chat/chat.js';
|
|
28
28
|
import './chat/chat-answer/chat-answer.js';
|
|
29
|
+
import './chat/chat-steps/chat-steps.js';
|
|
29
30
|
import './chat/chat-composer/chat-composer.js';
|
|
31
|
+
import './chat/chat-questions/chat-questions.js';
|
|
30
32
|
import './chat/chat-message/chat-message.js';
|
|
31
33
|
import './chat/chat-strip/chat-strip.js';
|
|
32
34
|
import './chat/chat-suggestions/chat-suggestions.js';
|
|
33
35
|
import './content/code/code.js';
|
|
36
|
+
import './content/key/key.js';
|
|
34
37
|
import './tables/data-table/data-table.js';
|
|
35
38
|
import './layout/expander/expander.js';
|
|
39
|
+
import './layout/accordion/accordion.js';
|
|
36
40
|
import './charts/explainer/explainer.js';
|
|
37
41
|
import './charts/kpi/kpi.js';
|
|
38
42
|
import './charts/kpi-row/kpi-row.js';
|
|
39
43
|
import './map/map/map.js';
|
|
44
|
+
import './graph/graph/graph.js';
|
|
40
45
|
import './overlays/modal/modal.js';
|
|
41
46
|
import './charts/note/note.js';
|
|
42
47
|
import './content/prose/prose.js';
|
|
@@ -88,6 +93,7 @@ import './tables/list/list.js';
|
|
|
88
93
|
import './tables/card/card.js';
|
|
89
94
|
import './tables/card-list/card-list.js';
|
|
90
95
|
import './content/gallery/gallery.js';
|
|
96
|
+
import './content/attachment/attachment.js';
|
|
91
97
|
import './frame/footer/footer.js';
|
|
92
98
|
import './tables/tree-view/tree-view.js';
|
|
93
99
|
import './tables/sortable-list/sortable-list.js';
|
|
@@ -95,6 +101,8 @@ import './tables/description-list/description-list.js';
|
|
|
95
101
|
import './feedback/empty-state/empty-state.js';
|
|
96
102
|
import './feedback/error-page/error-page.js';
|
|
97
103
|
import './tables/activity-log/activity-log.js';
|
|
104
|
+
import './tables/person/person.js';
|
|
105
|
+
import './tables/person-group/person-group.js';
|
|
98
106
|
import './actions/copy-button/copy-button.js';
|
|
99
107
|
import './actions/qr-code/qr-code.js';
|
|
100
108
|
import './feedback/ai-label/ai-label.js';
|
|
@@ -117,6 +125,7 @@ export { LintjeIconButton } from './actions/icon-button/icon-button.js';
|
|
|
117
125
|
export type { IconButtonVariant } from './actions/icon-button/icon-button.js';
|
|
118
126
|
export { LintjeStatusDot, STATUS_LABEL } from './feedback/status-dot/status-dot.js';
|
|
119
127
|
export { TONE_ICON, TONE_WORD, WORK_STATE_LABEL, WORK_STATE_TONE } from './shared/tone.js';
|
|
128
|
+
export { OTHER_MISSING_TEXT } from './shared/other.js';
|
|
120
129
|
export type { ContentStateKind, Tone, WorkState } from './shared/tone.js';
|
|
121
130
|
export { LintjeSkeleton } from './feedback/skeleton/skeleton.js';
|
|
122
131
|
export { LintjeGrid } from './layout/grid/grid.js';
|
|
@@ -138,23 +147,28 @@ export { LintjeChart } from './charts/chart/chart.js';
|
|
|
138
147
|
export { LintjeChat } from './chat/chat/chat.js';
|
|
139
148
|
export { LintjeChatAnswer } from './chat/chat-answer/chat-answer.js';
|
|
140
149
|
export type { ChatRating } from './chat/chat-answer/chat-answer.js';
|
|
150
|
+
export { LintjeChatSteps } from './chat/chat-steps/chat-steps.js';
|
|
141
151
|
export { LintjeChatComposer } from './chat/chat-composer/chat-composer.js';
|
|
142
152
|
export type { ChatComposerVariant, ChatSendKey } from './chat/chat-composer/chat-composer.js';
|
|
153
|
+
export { LintjeChatQuestions } from './chat/chat-questions/chat-questions.js';
|
|
154
|
+
export type { ChatQuestionAnswer } from './chat/chat-questions/chat-questions.js';
|
|
143
155
|
export { LintjeChatMessage } from './chat/chat-message/chat-message.js';
|
|
144
156
|
export { completions, recogniseTerms, termParts, wordBefore } from './chat/shared/chat-terms.js';
|
|
145
157
|
export type { ChatTextPart } from './chat/shared/chat-terms.js';
|
|
146
158
|
export { LintjeChatStrip } from './chat/chat-strip/chat-strip.js';
|
|
147
159
|
export { LintjeChatSuggestions } from './chat/chat-suggestions/chat-suggestions.js';
|
|
148
|
-
export type { ChatSuggestionKind } from './chat/chat-suggestions/chat-suggestions.js';
|
|
149
160
|
export { LintjeCode } from './content/code/code.js';
|
|
161
|
+
export { LintjeKey } from './content/key/key.js';
|
|
150
162
|
export { LintjeContentTileElement } from './shared/content-tile.js';
|
|
151
163
|
export type { ExpandModalOptions } from './shared/content-tile.js';
|
|
152
164
|
export { LintjeDataTable } from './tables/data-table/data-table.js';
|
|
153
165
|
export { LintjeExpander } from './layout/expander/expander.js';
|
|
166
|
+
export { LintjeAccordion } from './layout/accordion/accordion.js';
|
|
154
167
|
export { LintjeExplainer } from './charts/explainer/explainer.js';
|
|
155
168
|
export { LintjeKpi } from './charts/kpi/kpi.js';
|
|
156
169
|
export { LintjeKpiRow } from './charts/kpi-row/kpi-row.js';
|
|
157
170
|
export { LintjeMap } from './map/map/map.js';
|
|
171
|
+
export { LintjeGraph } from './graph/graph/graph.js';
|
|
158
172
|
export { LintjeModal } from './overlays/modal/modal.js';
|
|
159
173
|
export { LintjeNote } from './charts/note/note.js';
|
|
160
174
|
export { LintjeProse } from './content/prose/prose.js';
|
|
@@ -195,7 +209,7 @@ export { LintjeDialog } from './overlays/dialog/dialog.js';
|
|
|
195
209
|
export type { DialogCloseReason } from './overlays/dialog/dialog.js';
|
|
196
210
|
export { LintjeTextarea } from './inputs/textarea/textarea.js';
|
|
197
211
|
export { LintjeFileUpload } from './inputs/file-upload/file-upload.js';
|
|
198
|
-
export type { UploadFile } from './
|
|
212
|
+
export type { UploadFile } from './shared/files.js';
|
|
199
213
|
export { LintjeCombobox } from './inputs/combobox/combobox.js';
|
|
200
214
|
export { LintjeTagInput } from './inputs/tag-input/tag-input.js';
|
|
201
215
|
export { LintjeDateInput } from './inputs/date-input/date-input.js';
|
|
@@ -227,12 +241,13 @@ export type { SubNavAction, SubNavGroup, SubNavItem } from './frame/sub-nav/sub-
|
|
|
227
241
|
export { LintjePagination, pageRange } from './tables/pagination/pagination.js';
|
|
228
242
|
export type { PageSlot } from './tables/pagination/pagination.js';
|
|
229
243
|
export { LintjeList } from './tables/list/list.js';
|
|
230
|
-
export type { ListItem
|
|
244
|
+
export type { ListItem } from './tables/list/list.js';
|
|
231
245
|
export { LintjeCard } from './tables/card/card.js';
|
|
232
246
|
export type { CardAction, CardData, CardFact, CardLayout, CardMedia, CardStatus, CardStatusTone, } from './tables/card/card.js';
|
|
233
247
|
export { LintjeCardList } from './tables/card-list/card-list.js';
|
|
234
248
|
export { LintjeGallery } from './content/gallery/gallery.js';
|
|
235
249
|
export type { GalleryItem } from './content/gallery/gallery.js';
|
|
250
|
+
export { LintjeAttachment } from './content/attachment/attachment.js';
|
|
236
251
|
export { LintjeFooter } from './frame/footer/footer.js';
|
|
237
252
|
export type { FooterColumn, FooterData, FooterLink } from './frame/footer/footer.js';
|
|
238
253
|
export { LintjeTreeView } from './tables/tree-view/tree-view.js';
|
|
@@ -246,6 +261,8 @@ export { LintjeErrorPage } from './feedback/error-page/error-page.js';
|
|
|
246
261
|
export type { ErrorPageLink } from './feedback/error-page/error-page.js';
|
|
247
262
|
export { LintjeActivityLog } from './tables/activity-log/activity-log.js';
|
|
248
263
|
export type { ActivityEntry } from './tables/activity-log/activity-log.js';
|
|
264
|
+
export { LintjePerson } from './tables/person/person.js';
|
|
265
|
+
export { LintjePersonGroup } from './tables/person-group/person-group.js';
|
|
249
266
|
export { LintjeCopyButton } from './actions/copy-button/copy-button.js';
|
|
250
267
|
export { LintjeQrCode } from './actions/qr-code/qr-code.js';
|
|
251
268
|
export { LintjeAiLabel } from './feedback/ai-label/ai-label.js';
|
|
@@ -277,9 +294,9 @@ export { setHostConfig, scrollRoot } from '../core/host-config.js';
|
|
|
277
294
|
export type { HostConfig } from '../core/host-config.js';
|
|
278
295
|
export { toCsv, downloadCsv, downloadPng } from './shared/download.js';
|
|
279
296
|
export type { CsvCell } from './shared/download.js';
|
|
280
|
-
export type { AnnouncementData, AnnouncementKind, AnnouncementViewData, CellValue, ChartData, DataTableData, ExplainerData, KpiData, KpiRowData, MapData, NoteData, SortState, TableColumnData, TileData, } from '../types.js';
|
|
297
|
+
export type { AnnouncementData, AnnouncementKind, AnnouncementViewData, CellValue, ChartData, DataTableData, ExplainerData, GraphData, GraphDirection, GraphEdge, GraphLayout, GraphLines, GraphNode, GraphNodeStatus, GraphNodeType, KpiData, KpiRowData, MapData, NoteData, RowActionDetail, RowClickDetail, SortState, TableColumnData, TileData, } from '../types.js';
|
|
281
298
|
export { LintjeShell } from './frame/shell/shell.js';
|
|
282
299
|
export { LintjeUserMenu } from './frame/user-menu/user-menu.js';
|
|
283
300
|
export { LintjePageHeader } from './frame/page-header/page-header.js';
|
|
284
301
|
export { LintjeFilterBar } from './filters/filter-bar/filter-bar.js';
|
|
285
|
-
export type { FilterBarData, FilterDefinition, FilterKind, FilterOption, FilterValue, ModeSetting, PageHeaderData, ShellData, ShellGroup, ShellLink, ShellView, ShellViewChange, UserMenuUser, } from '../types.js';
|
|
302
|
+
export type { FilterBarData, FilterDefinition, FilterKind, FilterOption, FilterValue, ModeSetting, PageHeaderData, Person, ShellData, ShellGroup, ShellLink, ShellView, ShellViewChange, UserMenuUser, } from '../types.js';
|
|
@@ -4,25 +4,31 @@
|
|
|
4
4
|
*
|
|
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
|
-
* the host's message say what is missing.
|
|
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; the host sets `other-error` for an empty one.
|
|
8
9
|
*
|
|
9
|
-
* Events: `lintje-change` `string[]` (the checked values), `lintje-
|
|
10
|
-
*
|
|
10
|
+
* Events: `lintje-change` `string[]` (the checked values), `lintje-other-change` `string` (the
|
|
11
|
+
* field's text, on leaving it or Enter), `lintje-values-change`
|
|
12
|
+
* `{ [name]: value, [name-other]: text | null }` (with a `name`; the second key with `other`),
|
|
13
|
+
* `lintje-reset` (the reset link was pressed).
|
|
11
14
|
*/
|
|
12
15
|
import { type PropertyDeclarations, type TemplateResult } from 'lit';
|
|
13
|
-
import {
|
|
16
|
+
import { LintjeChoiceGroupElement } from '../shared/input.js';
|
|
17
|
+
import '../text-input/text-input.js';
|
|
14
18
|
import '../checkbox/checkbox.js';
|
|
15
19
|
import type { FilterOption } from '../../../types.js';
|
|
16
|
-
export declare class LintjeCheckboxGroup extends
|
|
20
|
+
export declare class LintjeCheckboxGroup extends LintjeChoiceGroupElement {
|
|
17
21
|
static styles: import("lit").CSSResult[];
|
|
18
22
|
static properties: PropertyDeclarations;
|
|
19
23
|
/** A `description` stands under its option. */
|
|
20
24
|
options?: FilterOption[];
|
|
21
25
|
/**
|
|
22
|
-
* The checked values, in the order of `options
|
|
23
|
-
*
|
|
26
|
+
* The checked values, in the order of `options`, `other` after them; a value the options do not
|
|
27
|
+
* hold is kept at the end. A property, not an attribute: a server-rendered page sets it as data.
|
|
24
28
|
*/
|
|
25
29
|
selected: string[];
|
|
30
|
+
protected get otherChosen(): boolean;
|
|
31
|
+
protected get otherOption(): HTMLElement | null;
|
|
26
32
|
private toggle;
|
|
27
33
|
protected get focusTarget(): HTMLElement | null;
|
|
28
34
|
protected render(): TemplateResult;
|
|
@@ -15,8 +15,6 @@ import '../../feedback/spinner/spinner.js';
|
|
|
15
15
|
import { LintjeInputElement } from '../shared/input.js';
|
|
16
16
|
import type { FilterOption } from '../../../types.js';
|
|
17
17
|
export declare function filterOptions(options: FilterOption[], query: string): FilterOption[];
|
|
18
|
-
export declare function splitMatch(label: string, query: string): [string, string, string];
|
|
19
|
-
export declare function resultsText(count: number): string;
|
|
20
18
|
export declare class LintjeCombobox extends LintjeInputElement {
|
|
21
19
|
static styles: import("lit").CSSResult[];
|
|
22
20
|
static properties: PropertyDeclarations;
|
|
@@ -45,7 +45,7 @@ export declare class LintjeDateInput extends LintjeInputElement {
|
|
|
45
45
|
private onPopoverClose;
|
|
46
46
|
private onFocusOut;
|
|
47
47
|
private pick;
|
|
48
|
-
private
|
|
48
|
+
private moveTo;
|
|
49
49
|
private shiftMonth;
|
|
50
50
|
private renderCalendar;
|
|
51
51
|
protected render(): TemplateResult;
|