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
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* `<lintje-attachment>` — one file as a quiet chip of one line: the icon of its kind or a
|
|
3
|
+
* thumbnail, the name and the size, busy or with an error.
|
|
4
|
+
*
|
|
5
|
+
* It opens nothing itself: a chip with `href` is a link, one without asks the host with
|
|
6
|
+
* `lintje-file-open`. A `removable` chip has the cross and opens nothing. Whoever draws a list
|
|
7
|
+
* puts each chip in its own `<li>`.
|
|
8
|
+
*
|
|
9
|
+
* Events: `lintje-file-remove` `{ id }` (the cross on a done or failed file),
|
|
10
|
+
* `lintje-file-cancel` `{ id }` (the cross on a busy one), `lintje-file-retry` `{ id }`,
|
|
11
|
+
* `lintje-file-open` `{ id }` (a chip without `href`), `lintje-navigate` `{ href }` (a chip with
|
|
12
|
+
* `href` and without `download`; cancel it to route yourself).
|
|
13
|
+
*/
|
|
14
|
+
import { nothing, type PropertyDeclarations, type PropertyValues, type TemplateResult } from 'lit';
|
|
15
|
+
import { LintjeElement } from '../../../core/element.js';
|
|
16
|
+
import { type UploadFile } from '../../shared/files.js';
|
|
17
|
+
/** What follows the last dot, unless that dot starts the name: ".env" has none. */
|
|
18
|
+
export declare function extensionOf(name: string): string;
|
|
19
|
+
export declare function fileIcon(file: Pick<UploadFile, 'name' | 'type'>): string;
|
|
20
|
+
/** The name in two: a stem that takes the ellipsis and keeps three letters, and a tail that stays. */
|
|
21
|
+
export declare function splitName(name: string): {
|
|
22
|
+
stem: string;
|
|
23
|
+
tail: string;
|
|
24
|
+
};
|
|
25
|
+
export declare class LintjeAttachment extends LintjeElement {
|
|
26
|
+
#private;
|
|
27
|
+
static styles: import("lit").CSSResult[];
|
|
28
|
+
static properties: PropertyDeclarations;
|
|
29
|
+
data?: UploadFile;
|
|
30
|
+
/** The cross, in a question box or an upload field: the chip then opens nothing. */
|
|
31
|
+
removable: boolean;
|
|
32
|
+
/** Its error is the drawing element's own refusal ("geweigerd"), not the host's ("mislukt"). */
|
|
33
|
+
refused: boolean;
|
|
34
|
+
/** No cross, no "Opnieuw", and it opens nothing. */
|
|
35
|
+
disabled: boolean;
|
|
36
|
+
/** The chip's first control: the cross, "Opnieuw", or the chip itself when it opens. */
|
|
37
|
+
focus(options?: FocusOptions): void;
|
|
38
|
+
private get opens();
|
|
39
|
+
protected willUpdate(changed: PropertyValues<this>): void;
|
|
40
|
+
protected updated(changed: PropertyValues<this>): void;
|
|
41
|
+
private send;
|
|
42
|
+
private onLink;
|
|
43
|
+
/** What stands beside the name: the percentage, the reason, `detail` or the size. */
|
|
44
|
+
private get detail();
|
|
45
|
+
/** The chip in words: the name, its state where it is not done, and what stands beside it. */
|
|
46
|
+
private get spoken();
|
|
47
|
+
private renderMark;
|
|
48
|
+
private renderContent;
|
|
49
|
+
private renderMain;
|
|
50
|
+
private renderActions;
|
|
51
|
+
private renderProgress;
|
|
52
|
+
protected render(): TemplateResult | typeof nothing;
|
|
53
|
+
}
|
|
54
|
+
declare global {
|
|
55
|
+
interface HTMLElementTagNameMap {
|
|
56
|
+
'lintje-attachment': LintjeAttachment;
|
|
57
|
+
}
|
|
58
|
+
}
|
|
@@ -5,7 +5,8 @@
|
|
|
5
5
|
* It never autoplays.
|
|
6
6
|
*
|
|
7
7
|
* Events: `lintje-time-change` `number` (seconds, at most four times a second), `lintje-seek`
|
|
8
|
-
* `number` (seconds: the reader moved the position), `lintje-play`, `lintje-pause
|
|
8
|
+
* `number` (seconds: the reader moved the position), `lintje-play`, `lintje-pause`, `lintje-retry`
|
|
9
|
+
* ("Opnieuw proberen" was pressed).
|
|
9
10
|
*/
|
|
10
11
|
import { type PropertyDeclarations, type PropertyValues, type TemplateResult } from 'lit';
|
|
11
12
|
import '../../actions/button/button.js';
|
|
@@ -4,7 +4,8 @@
|
|
|
4
4
|
* It shows images only: the host renders a PDF to page images, and gives each page's text in
|
|
5
5
|
* `texts`, which a screen reader reads after the page. The file behind "Downloaden" is the
|
|
6
6
|
* accessible version: a tagged PDF, not a scan. Page and zoom are the element's; every change is
|
|
7
|
-
* reported.
|
|
7
|
+
* reported. The toolbar is one Tab stop: the arrows move along its buttons, while Home and End
|
|
8
|
+
* stay the first and the last page, as PageUp, PageDown, + and − stay the page and the zoom.
|
|
8
9
|
*
|
|
9
10
|
* Events: `lintje-page-change` `number` (the page, from 1), `lintje-zoom-change`
|
|
10
11
|
* `number | 'fit'` (a percentage), `lintje-download`.
|
|
@@ -47,7 +48,14 @@ export declare class LintjeDocumentViewer extends LintjeElement {
|
|
|
47
48
|
protected fitPercent: number;
|
|
48
49
|
/** What a change of page or zoom says in the status region; empty until one is made. */
|
|
49
50
|
protected said: string;
|
|
51
|
+
/** The toolbar button that holds the toolbar's one Tab stop. */
|
|
52
|
+
protected tool: number;
|
|
50
53
|
private shown;
|
|
54
|
+
private readonly resize;
|
|
55
|
+
connectedCallback(): void;
|
|
56
|
+
disconnectedCallback(): void;
|
|
57
|
+
protected firstUpdated(): void;
|
|
58
|
+
private observeView;
|
|
51
59
|
private get urls();
|
|
52
60
|
private get count();
|
|
53
61
|
private get url();
|
|
@@ -59,6 +67,11 @@ export declare class LintjeDocumentViewer extends LintjeElement {
|
|
|
59
67
|
private onLoad;
|
|
60
68
|
private onError;
|
|
61
69
|
private onKeydown;
|
|
70
|
+
/** The arrows move the one Tab stop along the toolbar; Home and End stay the pages'. */
|
|
71
|
+
private onToolbarKeydown;
|
|
72
|
+
/** A button reached by click or by focus takes the Tab stop. */
|
|
73
|
+
private onToolbarFocusin;
|
|
74
|
+
private toolButtons;
|
|
62
75
|
/** A zoomed page that can still scroll that way keeps the page keys for scrolling. */
|
|
63
76
|
private scrollsItself;
|
|
64
77
|
protected willUpdate(changed: PropertyValues<this>): void;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* `<lintje-key>` — one keyboard key on the page, drawn as Lintje draws a key inside its own
|
|
3
|
+
* elements: `<lintje-key>Ctrl</lintje-key>`.
|
|
4
|
+
*
|
|
5
|
+
* A combination is two keys side by side, with a space between them. It reads as the key's text,
|
|
6
|
+
* is no button and takes no focus.
|
|
7
|
+
*/
|
|
8
|
+
import { type PropertyDeclarations, type TemplateResult } from 'lit';
|
|
9
|
+
import { LintjeElement } from '../../../core/element.js';
|
|
10
|
+
export declare class LintjeKey extends LintjeElement {
|
|
11
|
+
static styles: import("lit").CSSResult[];
|
|
12
|
+
static properties: PropertyDeclarations;
|
|
13
|
+
/** The key's text, for a host that sets it rather than writing it inside; the content wins. */
|
|
14
|
+
key?: string;
|
|
15
|
+
protected render(): TemplateResult;
|
|
16
|
+
}
|
|
17
|
+
declare global {
|
|
18
|
+
interface HTMLElementTagNameMap {
|
|
19
|
+
'lintje-key': LintjeKey;
|
|
20
|
+
}
|
|
21
|
+
}
|
|
@@ -72,6 +72,7 @@ export declare class LintjeLogViewer extends LintjeContentTileElement {
|
|
|
72
72
|
private arrive;
|
|
73
73
|
protected updated(changed: PropertyValues<this>): void;
|
|
74
74
|
private watchFit;
|
|
75
|
+
private watchGrowth;
|
|
75
76
|
private refit;
|
|
76
77
|
private get log();
|
|
77
78
|
/** Scrolls the log, never the page: moving the page moves the controls from under the pointer. */
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* `<lintje-prose>` — a block of text on the type scale: `html`, else `text`, else the slot.
|
|
3
3
|
*
|
|
4
|
-
*
|
|
5
|
-
* stands.
|
|
4
|
+
* `html` is for formatted content: the host renders the markdown and sanitises it, and it is
|
|
5
|
+
* written into the shadow root as it stands. `text` is one paragraph. The slot is for plain text
|
|
6
|
+
* only, in the block's font and colour: a heading, list or paragraph in it gets no styling.
|
|
6
7
|
*/
|
|
7
8
|
import { type PropertyDeclarations, type TemplateResult } from 'lit';
|
|
8
9
|
import { LintjeGridItemElement } from '../../shared/grid-item-element.js';
|
|
@@ -10,7 +11,7 @@ export type ProseTone = 'default' | 'muted';
|
|
|
10
11
|
export declare class LintjeProse extends LintjeGridItemElement {
|
|
11
12
|
static styles: import("lit").CSSResult;
|
|
12
13
|
static properties: PropertyDeclarations;
|
|
13
|
-
/**
|
|
14
|
+
/** Formatted content: server-rendered, server-sanitised HTML. A property only. */
|
|
14
15
|
html?: string;
|
|
15
16
|
/** One paragraph. Ignored when `html` is set. */
|
|
16
17
|
text?: string;
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*
|
|
4
4
|
* Events: `lintje-time-change` (seconds; at most four a second while playing, at once after a
|
|
5
5
|
* seek or pause), `lintje-seek` (seconds: the reader moved the position, with the bar, a key or a
|
|
6
|
-
* skip), `lintje-play`, `lintje-pause
|
|
6
|
+
* skip), `lintje-play`, `lintje-pause`, `lintje-retry` ("Opnieuw proberen" was pressed).
|
|
7
7
|
*
|
|
8
8
|
* Setting `currentTime` seeks without an event of its own, so a host that answers
|
|
9
9
|
* `lintje-time-change` by setting it cannot loop. A seek before the duration is known is kept.
|
|
@@ -46,6 +46,7 @@ export declare abstract class LintjePlayerElement extends LintjeElement {
|
|
|
46
46
|
play(): void;
|
|
47
47
|
protected skip(seconds: number): void;
|
|
48
48
|
protected setSpeed(speed: number): void;
|
|
49
|
+
/** Loads again and tells the host, which may answer with a new `src` for a lasting failure. */
|
|
49
50
|
protected retry(): void;
|
|
50
51
|
private readonly onMetadata;
|
|
51
52
|
private readonly onTimeUpdate;
|
|
@@ -99,6 +99,8 @@ export declare class LintjeTranscript extends LintjeElement {
|
|
|
99
99
|
private followed;
|
|
100
100
|
/** The segment whose field had the focus when its save began. */
|
|
101
101
|
private savedFrom;
|
|
102
|
+
/** The segment whose speaker button had the focus when `segments` changed. */
|
|
103
|
+
private speakerFrom;
|
|
102
104
|
private get currentIndex();
|
|
103
105
|
private segmentElement;
|
|
104
106
|
private focusInside;
|
|
@@ -114,6 +116,11 @@ export declare class LintjeTranscript extends LintjeElement {
|
|
|
114
116
|
/** The menu's own `lintje-action` ends here, as the request it stands for. */
|
|
115
117
|
private onSpeakerAction;
|
|
116
118
|
protected willUpdate(changed: PropertyValues<this>): void;
|
|
119
|
+
/**
|
|
120
|
+
* Grouped as a chat, a fragment that takes the speaker of the one before hides its name, button
|
|
121
|
+
* and all: the focus goes to the name of its turn instead of dropping to the page.
|
|
122
|
+
*/
|
|
123
|
+
private keepSpeakerFocus;
|
|
117
124
|
/**
|
|
118
125
|
* A saving field is natively disabled, which drops its focus to the page: "Opslaan", busy but
|
|
119
126
|
* focusable, holds it meanwhile, and a save that failed gives it back to the field.
|
|
@@ -7,9 +7,10 @@
|
|
|
7
7
|
* load says so on the picture, with "Opnieuw proberen".
|
|
8
8
|
*
|
|
9
9
|
* Events: `lintje-time-change` `number` (seconds, at most four times a second), `lintje-seek`
|
|
10
|
-
* `number` (seconds: the reader moved the position), `lintje-play`, `lintje-pause
|
|
10
|
+
* `number` (seconds: the reader moved the position), `lintje-play`, `lintje-pause`, `lintje-retry`
|
|
11
|
+
* ("Opnieuw proberen" was pressed).
|
|
11
12
|
*/
|
|
12
|
-
import { type PropertyDeclarations, type TemplateResult } from 'lit';
|
|
13
|
+
import { type PropertyDeclarations, type PropertyValues, type TemplateResult } from 'lit';
|
|
13
14
|
import '../../actions/menu-button/menu-button.js';
|
|
14
15
|
import { LintjePlayerElement } from '../shared/player.js';
|
|
15
16
|
export interface TimedText {
|
|
@@ -17,11 +18,12 @@ export interface TimedText {
|
|
|
17
18
|
text: string;
|
|
18
19
|
}
|
|
19
20
|
export declare class LintjeVideoPlayer extends LintjePlayerElement {
|
|
21
|
+
#private;
|
|
20
22
|
static styles: import("lit").CSSResult[];
|
|
21
23
|
static properties: PropertyDeclarations;
|
|
22
24
|
/** The captions: the transcript's segments, or any `{ start, text }[]`. */
|
|
23
25
|
segments: TimedText[];
|
|
24
|
-
/** Whether the captions show; the reader switches it
|
|
26
|
+
/** Whether the captions show; the reader switches it with the bar's button or with C. */
|
|
25
27
|
captions: boolean;
|
|
26
28
|
/**
|
|
27
29
|
* The same video with an audio description: "Meer opties" offers it when given, and the switch
|
|
@@ -32,11 +34,16 @@ export declare class LintjeVideoPlayer extends LintjePlayerElement {
|
|
|
32
34
|
described: boolean;
|
|
33
35
|
protected fullscreen: boolean;
|
|
34
36
|
protected muted: boolean;
|
|
37
|
+
/** The bar holds fewer than five buttons: the captions move from the bar into the menu. */
|
|
38
|
+
protected narrow: boolean;
|
|
35
39
|
protected readonly mediaSelector = "video";
|
|
36
40
|
private get frame();
|
|
37
41
|
private readonly onFullscreenChange;
|
|
38
42
|
connectedCallback(): void;
|
|
39
43
|
disconnectedCallback(): void;
|
|
44
|
+
protected updated(changed: PropertyValues<this>): void;
|
|
45
|
+
/** Five 48 px buttons and the gaps between them; the bar's width, not the screen's. */
|
|
46
|
+
private fit;
|
|
40
47
|
/** What the `<video>` plays: the described version when the reader chose it. */
|
|
41
48
|
private get source();
|
|
42
49
|
/** The other version goes on at the same moment, and plays on if this one played. */
|
|
@@ -58,6 +65,8 @@ export declare class LintjeVideoPlayer extends LintjePlayerElement {
|
|
|
58
65
|
private renderStage;
|
|
59
66
|
/** As the audio player's: one name, pressed while muted. */
|
|
60
67
|
private renderMute;
|
|
68
|
+
/** The same `captions` as the C key; pressed and underlined while they show. */
|
|
69
|
+
private renderCaptions;
|
|
61
70
|
protected render(): TemplateResult;
|
|
62
71
|
}
|
|
63
72
|
declare global {
|
|
@@ -6,8 +6,8 @@
|
|
|
6
6
|
*/
|
|
7
7
|
import { type PropertyDeclarations, type PropertyValues, type TemplateResult } from 'lit';
|
|
8
8
|
import { LintjeElement } from '../../../core/element.js';
|
|
9
|
-
import {
|
|
10
|
-
export type { HeadingLevel } from '../../shared/
|
|
9
|
+
import type { HeadingLevel } from '../../shared/heading.js';
|
|
10
|
+
export type { HeadingLevel } from '../../shared/heading.js';
|
|
11
11
|
export declare class LintjeEmptyState extends LintjeElement {
|
|
12
12
|
#private;
|
|
13
13
|
static styles: import("lit").CSSResult[];
|
|
@@ -7,7 +7,9 @@
|
|
|
7
7
|
* with an `href` opens a done job's result, or what runs where it can be followed.
|
|
8
8
|
*
|
|
9
9
|
* Events: `lintje-job-cancel`, `lintje-job-retry`, `lintje-job-resume`, `lintje-job-remove`, each
|
|
10
|
-
* `string` (the job's id), `lintje-navigate` `{ href }` (a row with an `href`; cancel it to route)
|
|
10
|
+
* `string` (the job's id), `lintje-navigate` `{ href }` (a row with an `href`; cancel it to route),
|
|
11
|
+
* `lintje-jobs-empty` (the last job went with the focus in the list; cancel it to put the focus on
|
|
12
|
+
* a visible target of your own, or it lands on the status region).
|
|
11
13
|
*/
|
|
12
14
|
import { type PropertyDeclarations, type PropertyValues, type TemplateResult } from 'lit';
|
|
13
15
|
import { LintjeElement } from '../../../core/element.js';
|
|
@@ -39,11 +41,16 @@ export declare function jobRow(job: Job, quiet?: boolean): ListItem;
|
|
|
39
41
|
export declare class LintjeJobList extends LintjeElement {
|
|
40
42
|
static styles: import("lit").CSSResult;
|
|
41
43
|
static properties: PropertyDeclarations;
|
|
42
|
-
|
|
44
|
+
/**
|
|
45
|
+
* The jobs, in the host's order. Unset until the host loads them: the first value is the load
|
|
46
|
+
* and is not read out; every change after it is, also the first job in an empty list.
|
|
47
|
+
*/
|
|
48
|
+
jobs: Job[] | undefined;
|
|
43
49
|
/** The level of a group's heading ("Vandaag"), as on `lintje-list`. */
|
|
44
50
|
headingLevel: 2 | 3 | 4 | 5 | 6;
|
|
45
51
|
spoken: string;
|
|
46
52
|
private known;
|
|
53
|
+
private loaded;
|
|
47
54
|
private emptiedWithFocus;
|
|
48
55
|
protected willUpdate(changed: PropertyValues<this>): void;
|
|
49
56
|
protected updated(changed: PropertyValues<this>): void;
|
|
@@ -1,12 +1,23 @@
|
|
|
1
1
|
/** `<lintje-status-dot>` — a status as a dot with its word; colour is never the only carrier. */
|
|
2
|
-
import { type TemplateResult } from 'lit';
|
|
2
|
+
import { type CSSResult, type TemplateResult } from 'lit';
|
|
3
3
|
import { LintjeElement } from '../../../core/element.js';
|
|
4
4
|
import { type Tone } from '../../shared/tone.js';
|
|
5
5
|
/** A source's delivery status: the element's own words, each a tone. */
|
|
6
6
|
export type StatusTone = 'complete' | 'delayed' | 'outage' | 'no-data';
|
|
7
7
|
export declare const STATUS_LABEL: Record<StatusTone, string>;
|
|
8
|
+
export declare const statusDotStyles: CSSResult;
|
|
9
|
+
export interface StatusDotOptions {
|
|
10
|
+
tone: Tone | StatusTone;
|
|
11
|
+
/** Overrides the Dutch word for the tone. */
|
|
12
|
+
label?: string;
|
|
13
|
+
/** The dot's diameter in px; default 10. */
|
|
14
|
+
size?: number;
|
|
15
|
+
className?: string;
|
|
16
|
+
}
|
|
17
|
+
/** The one drawing of a status dot, also for a root that draws one without the element. */
|
|
18
|
+
export declare function renderStatusDot({ tone, label, size, className, }: StatusDotOptions): TemplateResult;
|
|
8
19
|
export declare class LintjeStatusDot extends LintjeElement {
|
|
9
|
-
static styles:
|
|
20
|
+
static styles: CSSResult[];
|
|
10
21
|
static properties: {
|
|
11
22
|
tone: {
|
|
12
23
|
type: StringConstructor;
|
|
@@ -25,6 +25,7 @@ import '../filter-sheet/filter-sheet.js';
|
|
|
25
25
|
import type { FilterBarData, FilterValue } from '../../../types.js';
|
|
26
26
|
type Values = Record<string, FilterValue>;
|
|
27
27
|
export declare class LintjeFilterBar extends LintjeElement {
|
|
28
|
+
#private;
|
|
28
29
|
static styles: import("lit").CSSResult;
|
|
29
30
|
static properties: PropertyDeclarations;
|
|
30
31
|
data?: FilterBarData | null;
|
|
@@ -46,7 +47,9 @@ export declare class LintjeFilterBar extends LintjeElement {
|
|
|
46
47
|
private get visible();
|
|
47
48
|
private get defaults();
|
|
48
49
|
protected willUpdate(changed: PropertyValues<this>): void;
|
|
50
|
+
connectedCallback(): void;
|
|
49
51
|
disconnectedCallback(): void;
|
|
52
|
+
protected firstUpdated(changed: PropertyValues<this>): void;
|
|
50
53
|
private isModified;
|
|
51
54
|
private get modifiedCount();
|
|
52
55
|
private commit;
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
*
|
|
7
7
|
* Events: `lintje-filters-apply`, `lintje-sheet-close`, `lintje-filters-reset`.
|
|
8
8
|
*/
|
|
9
|
-
import { nothing, type PropertyDeclarations, type TemplateResult
|
|
9
|
+
import { nothing, type PropertyDeclarations, type TemplateResult } from 'lit';
|
|
10
10
|
import { LintjeElement } from '../../../core/element.js';
|
|
11
11
|
import '../../actions/button/button.js';
|
|
12
12
|
import '../../actions/icon-button/icon-button.js';
|
|
@@ -22,15 +22,10 @@ export declare class LintjeFilterSheet extends LintjeElement {
|
|
|
22
22
|
sentence: SentencePart[];
|
|
23
23
|
/** The element that scrolls the page; without it the sheet uses `lockScroll`. */
|
|
24
24
|
scrollLock?: HTMLElement | null;
|
|
25
|
-
private locked;
|
|
26
|
-
private readonly onKeyDown;
|
|
27
25
|
private hasOpenPopover;
|
|
28
|
-
connectedCallback(): void;
|
|
29
26
|
disconnectedCallback(): void;
|
|
30
27
|
private close;
|
|
31
|
-
|
|
32
|
-
private unlock;
|
|
33
|
-
protected updated(changed: PropertyValues<this>): void;
|
|
28
|
+
protected updated(): void;
|
|
34
29
|
protected render(): TemplateResult | typeof nothing;
|
|
35
30
|
}
|
|
36
31
|
declare global {
|
|
@@ -22,8 +22,6 @@ export declare class LintjeFilterZone extends LintjeElement {
|
|
|
22
22
|
/** The open transition is done, so the body may stop clipping the popovers hanging out of it. */
|
|
23
23
|
protected settled: boolean;
|
|
24
24
|
private settleTimer;
|
|
25
|
-
/** The stuck panel is taller than the space below the top bar. Scrolling clips popovers. */
|
|
26
|
-
protected scrollable: boolean;
|
|
27
25
|
/** `fixed` where the zone's own box is too small to stick in (a component mount). */
|
|
28
26
|
stick: 'sticky' | 'fixed';
|
|
29
27
|
sentence: SentencePart[];
|
|
@@ -3,7 +3,11 @@
|
|
|
3
3
|
*
|
|
4
4
|
* It never validates, and with nothing to show it draws nothing. A link focuses the field, found
|
|
5
5
|
* by `name` or `id` in the summary's own tree or, from a shadow root, in its host's light DOM, and
|
|
6
|
-
* scrolls it into view clear of a sticky top bar and the form's action bar.
|
|
6
|
+
* scrolls it into view clear of a sticky top bar and the form's action bar. `<name>-other` is the
|
|
7
|
+
* field under a choice group's "Anders".
|
|
8
|
+
*
|
|
9
|
+
* It is no alert: the focus is the announcement. A host that shows it after an attempt calls its
|
|
10
|
+
* `focus()`, as `lintje-form` does; a page that arrives with its errors set leaves the focus alone.
|
|
7
11
|
*
|
|
8
12
|
* Events: `lintje-retry` ("Opnieuw proberen" was pressed).
|
|
9
13
|
*/
|
|
@@ -4,7 +4,8 @@
|
|
|
4
4
|
*
|
|
5
5
|
* Its `<form>` is in the shadow root, so slotted fields have no form owner: Enter and a submit
|
|
6
6
|
* button reach it through the element's own handlers, once. It stops `lintje-values-change`, so
|
|
7
|
-
* form input never reaches the URL.
|
|
7
|
+
* form input never reaches the URL. A choice group's "Anders" text is a value of its own, under
|
|
8
|
+
* `<name>-other`, in the draft, the submit and `errors.fields`.
|
|
8
9
|
*
|
|
9
10
|
* Events: `lintje-submit` `{ values }`, `lintje-invalid` `FormErrors`, `lintje-dirty-change`
|
|
10
11
|
* `boolean`.
|
|
@@ -47,9 +48,15 @@ export declare class LintjeForm extends LintjeElement {
|
|
|
47
48
|
protected phase: Exclude<FormActionsState, 'busy'>;
|
|
48
49
|
connectedCallback(): void;
|
|
49
50
|
disconnectedCallback(): void;
|
|
50
|
-
/**
|
|
51
|
+
/**
|
|
52
|
+
* The values to send: `values` with the draft over it; silent and native controls are read. A
|
|
53
|
+
* group with "Anders" adds `<name>-other`: its text while "Anders" is chosen, else `null`.
|
|
54
|
+
*/
|
|
51
55
|
collect(): FormValues;
|
|
52
|
-
/**
|
|
56
|
+
/**
|
|
57
|
+
* Drops a field from `values` and the draft, with its "Anders" text; the form does this when a
|
|
58
|
+
* named field leaves.
|
|
59
|
+
*/
|
|
53
60
|
forget(name: string): void;
|
|
54
61
|
/**
|
|
55
62
|
* The draft put back from `localStorage`, readable before any field exists so a host can build
|
|
@@ -3,7 +3,9 @@
|
|
|
3
3
|
* slotted `lintje-button`s on the right, the last one primary.
|
|
4
4
|
*
|
|
5
5
|
* While connected it reserves its height as the page scroller's `scroll-padding-bottom`, so a
|
|
6
|
-
* field the focus scrolls to is not hidden behind it
|
|
6
|
+
* field the focus scrolls to is not hidden behind it, and scrolls a focused element that still
|
|
7
|
+
* ends up under it clear. While the form scrolls behind it, it casts its shadow upward. Below a
|
|
8
|
+
* viewport height of 30rem it does not stick and reserves nothing: it stands after the last field.
|
|
7
9
|
*/
|
|
8
10
|
import { type PropertyDeclarations, type TemplateResult } from 'lit';
|
|
9
11
|
import { LintjeElement } from '../../../core/element.js';
|
|
@@ -16,12 +18,16 @@ export declare class LintjeFormActions extends LintjeElement {
|
|
|
16
18
|
static styles: import("lit").CSSResult[];
|
|
17
19
|
static properties: PropertyDeclarations;
|
|
18
20
|
/**
|
|
19
|
-
*
|
|
20
|
-
*
|
|
21
|
+
* What the status line shows: `''` nothing; `dirty` "Wijzigingen nog niet opgeslagen"; `busy`
|
|
22
|
+
* "Bezig met opslaan", with the primary button `busy` and the others `disabled` (after, each
|
|
23
|
+
* has what it had); `saved` "Opgeslagen om 10:42", the time from `saved-at`; `draft` "Concept
|
|
24
|
+
* opgeslagen om 10:42", when `lintje-form` kept a draft in the browser (`saveDraft()`, Ctrl+S).
|
|
25
|
+
* Set by the surrounding `lintje-form`, with `saved-at`; standing alone, the host sets it.
|
|
21
26
|
*/
|
|
22
27
|
state: FormActionsState;
|
|
23
28
|
/** When it was saved: "10:42" or anything `Date` parses. */
|
|
24
29
|
savedAt?: string;
|
|
30
|
+
protected stuck: boolean;
|
|
25
31
|
connectedCallback(): void;
|
|
26
32
|
get buttons(): HTMLElement[];
|
|
27
33
|
get primaryButton(): HTMLElement | null;
|
|
@@ -28,8 +28,6 @@ export interface SearchGroup {
|
|
|
28
28
|
export type AppSearchCloseReason = 'escape' | 'scrim' | 'button' | 'choice';
|
|
29
29
|
/** Milliseconds after the last keystroke before `lintje-search` is sent. */
|
|
30
30
|
export declare const SEARCH_DELAY = 200;
|
|
31
|
-
/** The label split around the first case-insensitive occurrence of the term; null when absent. */
|
|
32
|
-
export declare function splitMatch(label: string, query: string): [string, string, string] | null;
|
|
33
31
|
/** What the live region says; while loading the spinner's own status speaks. */
|
|
34
32
|
export declare function resultsMessage(count: number, query: string, loading: boolean): string;
|
|
35
33
|
export declare class LintjeAppSearch extends LintjeElement {
|
|
@@ -51,6 +49,7 @@ export declare class LintjeAppSearch extends LintjeElement {
|
|
|
51
49
|
private optionId;
|
|
52
50
|
connectedCallback(): void;
|
|
53
51
|
disconnectedCallback(): void;
|
|
52
|
+
private askOpen;
|
|
54
53
|
private close;
|
|
55
54
|
protected willUpdate(changed: PropertyValues<this>): void;
|
|
56
55
|
protected updated(changed: PropertyValues<this>): void;
|
|
@@ -20,7 +20,7 @@ export declare class LintjePageHeader extends LintjeElement {
|
|
|
20
20
|
data?: PageHeaderData | null;
|
|
21
21
|
/**
|
|
22
22
|
* In `lintje-shell`'s `header` slot: an application's title row, flush in the content column,
|
|
23
|
-
* with no band
|
|
23
|
+
* with no band and no top bar to tell.
|
|
24
24
|
*/
|
|
25
25
|
inShell: boolean;
|
|
26
26
|
/** An empty actions slot takes no place, so a long title never wraps onto an empty line. */
|
|
@@ -14,11 +14,6 @@ export interface NavGroup {
|
|
|
14
14
|
heading?: string;
|
|
15
15
|
items: ShellLink[];
|
|
16
16
|
}
|
|
17
|
-
/** The ribbon's width in px; matches `--w-ribbon`. */
|
|
18
|
-
export declare const RIBBON_WIDTH: {
|
|
19
|
-
readonly desktop: 48;
|
|
20
|
-
readonly phone: 40;
|
|
21
|
-
};
|
|
22
17
|
export interface LogoBarOptions {
|
|
23
18
|
/** URL or data URI of an emblem the host resolved itself; wins over `emblem`. */
|
|
24
19
|
logo?: string;
|
|
@@ -28,8 +23,6 @@ export interface LogoBarOptions {
|
|
|
28
23
|
label: string;
|
|
29
24
|
byline?: string;
|
|
30
25
|
};
|
|
31
|
-
/** `RIBBON_WIDTH.desktop` or `.phone`. */
|
|
32
|
-
ribbon: number;
|
|
33
26
|
/** The environment outside production ("Acceptatie"); a phone shows its first three letters. */
|
|
34
27
|
environment?: string;
|
|
35
28
|
/** Without it the logo is not a link. */
|
|
@@ -38,6 +31,11 @@ export interface LogoBarOptions {
|
|
|
38
31
|
onNavigate: (event: MouseEvent) => void;
|
|
39
32
|
};
|
|
40
33
|
}
|
|
34
|
+
/**
|
|
35
|
+
* The home link's description. Its name is what the logo shows, the organisation (WCAG 2.5.3);
|
|
36
|
+
* only a logo without a name leaves this as the name, so the link is never nameless.
|
|
37
|
+
*/
|
|
38
|
+
export declare const HOME_LABEL = "Naar de startpagina";
|
|
41
39
|
export declare function renderLogoBar(options: LogoBarOptions): TemplateResult;
|
|
42
40
|
/** `NavBarOptions.open` while the panel of "Menu", the whole menu, is open. */
|
|
43
41
|
export declare const WHOLE_MENU = -1;
|
|
@@ -84,7 +82,7 @@ export declare class SubmenuController implements ReactiveController {
|
|
|
84
82
|
hostUpdated(): void;
|
|
85
83
|
/**
|
|
86
84
|
* A change of `collapsed` closes whatever was open, whose entry has gone. Without layout it
|
|
87
|
-
* leaves the state as is.
|
|
85
|
+
* leaves the state as is.
|
|
88
86
|
*/
|
|
89
87
|
measure(): void;
|
|
90
88
|
}
|
|
@@ -40,10 +40,3 @@ export declare function renderNavigation(shell: LintjeShell, groups: NavGroup[])
|
|
|
40
40
|
* geometry, so the block below stands in the same place in both cases.
|
|
41
41
|
*/
|
|
42
42
|
export declare function renderNavMeta(shell: LintjeShell, open: boolean): TemplateResult | typeof nothing;
|
|
43
|
-
/**
|
|
44
|
-
* Afmelden, in its own form and not a fetch: the server answers with a redirect to the
|
|
45
|
-
* identity provider, which only a navigation follows. The token travels in `csrf_token`,
|
|
46
|
-
* which the middleware reads from a form-encoded body. Collapsed, the form is `hidden` and
|
|
47
|
-
* not merely transparent, so nothing invisible is in the tab order.
|
|
48
|
-
*/
|
|
49
|
-
export declare function logoutButton(logout: NonNullable<ShellData['logout']>, buttonClass: string, open: boolean): TemplateResult;
|
|
@@ -37,8 +37,6 @@ export declare class LintjeShell extends LintjeElement {
|
|
|
37
37
|
layout: 'side' | 'top';
|
|
38
38
|
/** Top layout: index of the open group; `WHOLE_MENU`; or `null`. */
|
|
39
39
|
openGroup: number | null;
|
|
40
|
-
/** Top layout: the logo bar has scrolled away and the bar under it is pinned. */
|
|
41
|
-
barStuck: boolean;
|
|
42
40
|
railExpanded: boolean;
|
|
43
41
|
/** The next focus in the rail is the shell's own hand-on after Escape: it does not expand. */
|
|
44
42
|
railRefocus: boolean;
|
|
@@ -51,8 +49,6 @@ export declare class LintjeShell extends LintjeElement {
|
|
|
51
49
|
viewOpen: boolean;
|
|
52
50
|
/** Side layout: the name and the labelled tools do not fit in the top bar, so the tools are bare icons. */
|
|
53
51
|
toolsCompact: boolean;
|
|
54
|
-
/** Below 768 px: the header's tools do not fit, so "Filters" and "Menu" show only their glyph. */
|
|
55
|
-
headerCompact: boolean;
|
|
56
52
|
/** The `header` or default slot holds something; without, `full` takes the room. */
|
|
57
53
|
hasContent: boolean;
|
|
58
54
|
toast?: string | null;
|
|
@@ -92,13 +88,18 @@ export declare class LintjeShell extends LintjeElement {
|
|
|
92
88
|
skipToContent(event: Event): void;
|
|
93
89
|
renderSearch(): TemplateResult | typeof nothing;
|
|
94
90
|
renderNotifications(): TemplateResult | typeof nothing;
|
|
95
|
-
/**
|
|
96
|
-
|
|
91
|
+
/**
|
|
92
|
+
* `bar`: the avatar in the bar opens it. `sheet`: inline, the foot of the mobile menu. `side`:
|
|
93
|
+
* the foot of the side menu opens it, folded to the avatar in the folded rail.
|
|
94
|
+
*/
|
|
95
|
+
renderUserMenu(place: 'bar' | 'sheet' | 'side', folded?: boolean): TemplateResult | typeof nothing;
|
|
97
96
|
private renderSkipLink;
|
|
98
97
|
private renderLogo;
|
|
99
98
|
/** Paper has no bars: the logo, the application's name and the environment say what it is. */
|
|
100
99
|
private renderPrintHead;
|
|
101
100
|
private renderNavEnd;
|
|
101
|
+
/** The feedback link as a bare tool: its glyph, or its word without the icon file. */
|
|
102
|
+
private renderFeedbackTool;
|
|
102
103
|
/** The slot of the nav bar keeps its height while the bar itself is pinned to the viewport. */
|
|
103
104
|
private renderTop;
|
|
104
105
|
private renderTopPhone;
|
|
@@ -18,8 +18,11 @@ export declare function renderTopBar(shell: LintjeShell): TemplateResult;
|
|
|
18
18
|
export declare function renderBarTools(shell: LintjeShell): TemplateResult;
|
|
19
19
|
/** The panel of "Weergave": a choice applies at once and the panel stays; a press beside closes. */
|
|
20
20
|
export declare function renderView(shell: LintjeShell, view: ShellView): TemplateResult;
|
|
21
|
-
/**
|
|
22
|
-
|
|
21
|
+
/**
|
|
22
|
+
* One option in a toggle group, named by the word it shows. With an `icon` that has a file the
|
|
23
|
+
* face is the drawing, so the word becomes its `aria-label` and tooltip.
|
|
24
|
+
*/
|
|
25
|
+
export declare function toggle(text: string, active: boolean, onClick: () => void, icon?: string): TemplateResult;
|
|
23
26
|
/** This view's link for a phone, under the host's scheme so an app opens it (`mibrowsers`). */
|
|
24
27
|
export declare function phoneLink(href: string, scheme?: string): string;
|
|
25
28
|
/**
|