lintje 0.3.0 → 0.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist-elements/actions.js +1 -1
- package/dist-elements/chunks/{base-CbmWxUig.js → base-CVKIPSLx.js} +151 -145
- package/dist-elements/chunks/chart-styles-JK4clSyA.js +108 -0
- package/dist-elements/chunks/{controls-DxmnDSBr.js → controls-_4ac1Lpz.js} +1 -1
- package/dist-elements/chunks/{date-format-mHtZyBys.js → date-format-DxP9yfDp.js} +1 -1
- package/dist-elements/chunks/{dialog-DChINFxD.js → dialog-D4V467iC.js} +2 -2
- package/dist-elements/chunks/{disclosure-DLkXPUpV.js → disclosure-DVex7Lo_.js} +1 -1
- package/dist-elements/chunks/download-D7ZarlMZ.js +103 -0
- package/dist-elements/chunks/{focus-trap-BwOxE5BX.js → focus-trap-rje9Oz19.js} +1 -1
- package/dist-elements/chunks/input-DEHA2Z_0.js +195 -0
- package/dist-elements/chunks/input-lQTmOMOz.js +4 -0
- package/dist-elements/chunks/{player-B8QXJ0Z5.js → player-DDDWUevR.js} +2 -2
- package/dist-elements/chunks/{sentence-B19AyZBS.js → sentence-mY0Iqu5H.js} +1 -1
- package/dist-elements/chunks/{stagger-BHoOgy0g.js → stagger-Dvkth9_C.js} +116 -107
- package/dist-elements/content.js +2 -0
- package/dist-elements/core.js +1 -1
- package/dist-elements/custom-elements.json +7740 -6789
- package/dist-elements/data-types.json +338 -29
- package/dist-elements/feedback.js +1 -1
- package/dist-elements/guides/loading.md +3 -3
- package/dist-elements/inputs.js +2 -1
- package/dist-elements/layout.js +1 -1
- package/dist-elements/lintje.js +7346 -5856
- package/dist-elements/overlays.js +1 -1
- package/dist-elements/tag/activity-log.js +1 -1
- package/dist-elements/tag/ai-label.js +1 -1
- package/dist-elements/tag/announcement.js +2 -2
- package/dist-elements/tag/app-search.js +2 -2
- package/dist-elements/tag/audio-player.js +2 -2
- package/dist-elements/tag/badge.d.ts +1 -1
- package/dist-elements/tag/badge.js +1 -1
- package/dist-elements/tag/breadcrumbs.js +1 -1
- package/dist-elements/tag/button.d.ts +1 -1
- package/dist-elements/tag/button.js +1 -1
- package/dist-elements/tag/card-list.js +1 -1
- package/dist-elements/tag/card.js +1 -1
- package/dist-elements/tag/chart.js +1168 -794
- package/dist-elements/tag/chat-answer.js +2 -2
- package/dist-elements/tag/chat-composer.js +1 -1
- package/dist-elements/tag/chat-message.js +1 -1
- package/dist-elements/tag/chat-strip.js +1 -1
- package/dist-elements/tag/chat-suggestions.js +1 -1
- package/dist-elements/tag/chat.js +1 -1
- package/dist-elements/tag/checkbox-group.js +3 -2
- package/dist-elements/tag/checkbox.js +3 -2
- package/dist-elements/tag/code.js +1 -1
- package/dist-elements/tag/combobox.js +11 -10
- package/dist-elements/tag/conflict-alert.js +1 -1
- package/dist-elements/tag/copy-button.js +1 -1
- package/dist-elements/tag/data-table.js +179 -178
- package/dist-elements/tag/date-input.js +14 -13
- package/dist-elements/tag/date-range.js +5 -4
- package/dist-elements/tag/description-list.js +1 -1
- package/dist-elements/tag/dialog.js +4 -4
- package/dist-elements/tag/document-viewer.js +1 -1
- package/dist-elements/tag/drawer.js +3 -3
- package/dist-elements/tag/empty-state.js +1 -1
- package/dist-elements/tag/error-page.js +1 -1
- package/dist-elements/tag/error-summary.js +2 -2
- package/dist-elements/tag/expander.js +2 -2
- package/dist-elements/tag/explainer.js +2 -2
- package/dist-elements/tag/field.js +1 -1
- package/dist-elements/tag/file-upload.js +4 -3
- package/dist-elements/tag/filter-bar.js +3 -3
- package/dist-elements/tag/filter-sheet.js +3 -3
- package/dist-elements/tag/filter-zone.js +2 -2
- package/dist-elements/tag/find.d.ts +1 -0
- package/dist-elements/tag/find.js +132 -0
- package/dist-elements/tag/footer.js +1 -1
- package/dist-elements/tag/form-actions.js +2 -2
- package/dist-elements/tag/form-section.js +2 -2
- package/dist-elements/tag/form.js +2 -2
- package/dist-elements/tag/gallery.js +1 -1
- package/dist-elements/tag/grid-item.d.ts +1 -1
- package/dist-elements/tag/grid-item.js +1 -1
- package/dist-elements/tag/grid.d.ts +1 -1
- package/dist-elements/tag/grid.js +1 -1
- package/dist-elements/tag/hero.js +1 -1
- package/dist-elements/tag/highlight.js +1 -1
- package/dist-elements/tag/icon-button.d.ts +1 -1
- package/dist-elements/tag/icon-button.js +1 -1
- package/dist-elements/tag/icon.d.ts +1 -1
- package/dist-elements/tag/icon.js +1 -1
- package/dist-elements/tag/job-list.js +1 -1
- package/dist-elements/tag/kpi-row.js +1 -1
- package/dist-elements/tag/kpi.js +73 -71
- package/dist-elements/tag/level-meter.js +1 -1
- package/dist-elements/tag/list.js +2 -2
- package/dist-elements/tag/log-viewer.d.ts +1 -0
- package/dist-elements/tag/log-viewer.js +847 -0
- package/dist-elements/tag/logo.js +1 -1
- package/dist-elements/tag/map.js +151 -144
- package/dist-elements/tag/menu-button.js +14 -9
- package/dist-elements/tag/modal.js +2 -2
- package/dist-elements/tag/multiselect.js +4 -3
- package/dist-elements/tag/note.js +1 -1
- package/dist-elements/tag/notifications.js +2 -2
- package/dist-elements/tag/number-input.js +3 -2
- package/dist-elements/tag/page-header.js +1 -1
- package/dist-elements/tag/pagination.js +25 -25
- package/dist-elements/tag/popover.d.ts +1 -1
- package/dist-elements/tag/popover.js +1 -1
- package/dist-elements/tag/progress-bar.d.ts +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 +1 -1
- package/dist-elements/tag/radio-group.js +3 -2
- package/dist-elements/tag/range.js +3 -2
- package/dist-elements/tag/recording-status.js +1 -1
- package/dist-elements/tag/repeater.js +1 -1
- package/dist-elements/tag/segmented.js +3 -2
- package/dist-elements/tag/select.js +3 -2
- package/dist-elements/tag/shell.js +3 -3
- package/dist-elements/tag/skeleton.d.ts +1 -1
- package/dist-elements/tag/skeleton.js +1 -1
- package/dist-elements/tag/slot-picker.js +4 -3
- package/dist-elements/tag/sortable-list.js +1 -1
- package/dist-elements/tag/spinner.d.ts +1 -1
- package/dist-elements/tag/spinner.js +1 -1
- package/dist-elements/tag/split-pane.js +1 -1
- package/dist-elements/tag/status-dot.d.ts +1 -1
- package/dist-elements/tag/status-dot.js +1 -1
- package/dist-elements/tag/stepper.js +1 -1
- package/dist-elements/tag/streaming-text.js +1 -1
- package/dist-elements/tag/sub-nav.js +1 -1
- package/dist-elements/tag/tabs.js +1 -1
- package/dist-elements/tag/tag-input.js +11 -10
- package/dist-elements/tag/text-editor.js +3 -2
- package/dist-elements/tag/text-input.js +3 -2
- package/dist-elements/tag/textarea.js +3 -2
- package/dist-elements/tag/tile.d.ts +1 -1
- package/dist-elements/tag/tile.js +1 -1
- package/dist-elements/tag/time-input.js +7 -6
- package/dist-elements/tag/toast.js +2 -2
- package/dist-elements/tag/toggle.js +3 -2
- package/dist-elements/tag/toggletip.js +2 -2
- package/dist-elements/tag/token-value.d.ts +1 -0
- package/dist-elements/tag/token-value.js +75 -0
- package/dist-elements/tag/tooltip.d.ts +1 -1
- package/dist-elements/tag/tooltip.js +1 -1
- package/dist-elements/tag/transcript.js +1 -1
- package/dist-elements/tag/translator.js +1 -1
- package/dist-elements/tag/tree-view.js +1 -1
- package/dist-elements/tag/user-menu.js +1 -1
- package/dist-elements/tag/video-player.js +2 -2
- package/dist-elements/tokens.css +2 -0
- package/dist-elements/tokens.json +1248 -0
- package/dist-elements/types/bundle/actions.d.ts +3 -3
- package/dist-elements/types/bundle/content.d.ts +2 -0
- package/dist-elements/types/bundle/feedback.d.ts +5 -5
- package/dist-elements/types/bundle/index.d.ts +1 -11
- package/dist-elements/types/bundle/inputs.d.ts +1 -0
- package/dist-elements/types/bundle/layout.d.ts +3 -3
- package/dist-elements/types/bundle/overlays.d.ts +2 -2
- package/dist-elements/types/categories.d.ts +4 -0
- package/dist-elements/types/{primitives → components/actions}/button/button.d.ts +1 -1
- package/dist-elements/types/components/actions/copy-button/copy-button.d.ts +2 -2
- package/dist-elements/types/{icons → components/actions}/icon/icon.d.ts +2 -2
- package/dist-elements/types/{primitives → components/actions}/icon-button/icon-button.d.ts +1 -1
- package/dist-elements/types/components/actions/menu-button/menu-button.d.ts +7 -4
- package/dist-elements/types/components/actions/qr-code/qr-code.d.ts +1 -1
- package/dist-elements/types/components/charts/chart/chart.d.ts +1 -1
- package/dist-elements/types/components/charts/explainer/explainer.d.ts +1 -1
- package/dist-elements/types/components/charts/kpi/kpi.d.ts +3 -3
- package/dist-elements/types/components/charts/kpi-row/kpi-row.d.ts +1 -1
- package/dist-elements/types/components/charts/note/note.d.ts +1 -1
- package/dist-elements/types/components/chat/chat/chat.d.ts +1 -1
- package/dist-elements/types/components/chat/chat-answer/chat-answer.d.ts +3 -3
- package/dist-elements/types/components/chat/chat-composer/chat-composer.d.ts +2 -2
- package/dist-elements/types/components/chat/chat-message/chat-message.d.ts +1 -1
- package/dist-elements/types/components/content/audio-player/audio-player.d.ts +5 -5
- package/dist-elements/types/components/content/code/code.d.ts +1 -1
- package/dist-elements/types/components/content/document-viewer/document-viewer.d.ts +2 -2
- package/dist-elements/types/components/content/highlight/highlight.d.ts +1 -1
- package/dist-elements/types/components/content/log-viewer/lines.d.ts +33 -0
- package/dist-elements/types/components/content/log-viewer/log-viewer.d.ts +117 -0
- package/dist-elements/types/components/content/prose/prose.d.ts +1 -1
- package/dist-elements/types/components/content/token-value/token-value.d.ts +42 -0
- package/dist-elements/types/components/content/transcript/transcript.d.ts +3 -3
- package/dist-elements/types/components/content/translator/translator.d.ts +1 -1
- package/dist-elements/types/components/content/video-player/video-player.d.ts +1 -1
- package/dist-elements/types/components/feedback/announcement/announcement.d.ts +2 -2
- package/dist-elements/types/{primitives → components/feedback}/badge/badge.d.ts +2 -2
- package/dist-elements/types/components/feedback/conflict-alert/conflict-alert.d.ts +1 -1
- 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 +1 -1
- package/dist-elements/types/{primitives → components/feedback}/progress-bar/progress-bar.d.ts +2 -2
- package/dist-elements/types/{primitives → components/feedback}/skeleton/skeleton.d.ts +1 -1
- package/dist-elements/types/{primitives → components/feedback}/spinner/spinner.d.ts +1 -1
- package/dist-elements/types/{primitives → components/feedback}/status-dot/status-dot.d.ts +2 -2
- package/dist-elements/types/components/feedback/streaming-text/streaming-text.d.ts +2 -2
- package/dist-elements/types/components/filters/filter-sheet/filter-sheet.d.ts +2 -2
- package/dist-elements/types/components/forms/error-summary/error-summary.d.ts +1 -1
- package/dist-elements/types/components/forms/form-actions/form-actions.d.ts +1 -1
- package/dist-elements/types/components/forms/repeater/repeater.d.ts +2 -2
- package/dist-elements/types/components/forms/stepper/stepper.d.ts +1 -1
- package/dist-elements/types/components/frame/app-search/app-search.d.ts +1 -1
- package/dist-elements/types/components/frame/notifications/notifications.d.ts +2 -2
- package/dist-elements/types/components/frame/page-header/page-header.d.ts +1 -1
- package/dist-elements/types/components/frame/shell/shell.d.ts +1 -1
- package/dist-elements/types/components/frame/user-menu/user-menu.d.ts +2 -2
- package/dist-elements/types/components/index.d.ts +45 -3
- package/dist-elements/types/components/inputs/combobox/combobox.d.ts +2 -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 +2 -2
- package/dist-elements/types/components/inputs/file-upload/file-upload.d.ts +2 -2
- package/dist-elements/types/components/inputs/find/find.d.ts +52 -0
- package/dist-elements/types/components/inputs/segmented/segmented.d.ts +1 -1
- package/dist-elements/types/components/inputs/shared/input.d.ts +1 -1
- package/dist-elements/types/components/inputs/tag-input/tag-input.d.ts +1 -1
- package/dist-elements/types/components/inputs/text-editor/text-editor.d.ts +2 -2
- package/dist-elements/types/components/inputs/text-input/text-input.d.ts +1 -1
- package/dist-elements/types/components/inputs/time-input/time-input.d.ts +1 -1
- package/dist-elements/types/components/layout/expander/expander.d.ts +1 -1
- package/dist-elements/types/{primitives → components/layout}/grid/grid.d.ts +1 -1
- package/dist-elements/types/{primitives → components/layout}/grid-item/grid-item.d.ts +1 -1
- package/dist-elements/types/components/layout/tabs/tabs.d.ts +1 -1
- package/dist-elements/types/{primitives → components/layout}/tile/tile.d.ts +6 -6
- package/dist-elements/types/components/map/map/map.d.ts +2 -2
- package/dist-elements/types/components/overlays/modal/modal.d.ts +2 -2
- package/dist-elements/types/{primitives → components/overlays}/popover/popover.d.ts +2 -2
- package/dist-elements/types/components/overlays/toggletip/toggletip.d.ts +1 -1
- package/dist-elements/types/{primitives → components/overlays}/tooltip/tooltip.d.ts +2 -2
- package/dist-elements/types/components/shared/charts/index.d.ts +1 -0
- package/dist-elements/types/components/shared/charts/kinds.d.ts +6 -0
- package/dist-elements/types/components/shared/charts/map-chart/map-chart.d.ts +1 -1
- package/dist-elements/types/components/shared/charts/radar-chart/radar-chart.d.ts +31 -0
- package/dist-elements/types/components/shared/charts/shared/axes.d.ts +10 -2
- package/dist-elements/types/components/shared/charts/shared/controller.d.ts +5 -1
- package/dist-elements/types/components/shared/charts/shared/layer-motion.d.ts +21 -0
- package/dist-elements/types/components/shared/charts/shared/types.d.ts +33 -0
- package/dist-elements/types/components/shared/content-tile.d.ts +1 -1
- package/dist-elements/types/components/{forms/form → shared}/controls.d.ts +3 -2
- package/dist-elements/types/components/shared/download.d.ts +2 -0
- package/dist-elements/types/components/shared/overflow.d.ts +1 -1
- package/dist-elements/types/components/tables/activity-log/activity-log.d.ts +1 -1
- package/dist-elements/types/components/tables/card/card.d.ts +4 -4
- 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 +3 -3
- package/dist-elements/types/components/tables/data-table/editing.d.ts +1 -1
- package/dist-elements/types/components/tables/data-table/filters.d.ts +3 -3
- package/dist-elements/types/components/tables/description-list/description-list.d.ts +2 -2
- package/dist-elements/types/components/tables/list/list.d.ts +4 -4
- package/dist-elements/types/components/tables/tree-view/tree-view.d.ts +1 -1
- package/dist-elements/types/core/focus.d.ts +1 -1
- package/dist-elements/types/types.d.ts +51 -7
- package/package.json +1 -1
- package/dist-elements/chunks/download-Ct9q2anY.js +0 -206
- package/dist-elements/chunks/input-CRW_exv_.js +0 -195
- package/dist-elements/types/primitives/index.d.ts +0 -35
- /package/dist-elements/types/components/content/{audio-player → shared}/playback.d.ts +0 -0
- /package/dist-elements/types/components/content/{audio-player → shared}/player.d.ts +0 -0
- /package/dist-elements/types/{primitives → components}/shared/announcement-block.d.ts +0 -0
- /package/dist-elements/types/components/{inputs/date-input → shared}/date-format.d.ts +0 -0
- /package/dist-elements/types/{primitives → components}/shared/empty-state-block.d.ts +0 -0
- /package/dist-elements/types/{primitives → components}/shared/grid-item-element.d.ts +0 -0
- /package/dist-elements/types/{primitives → components}/shared/length.d.ts +0 -0
- /package/dist-elements/types/{primitives → components}/shared/place.d.ts +0 -0
- /package/dist-elements/types/{primitives → components}/shared/tone.d.ts +0 -0
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/** The actions category (Knoppen en iconen): importing it defines its tags. */
|
|
2
|
-
import '../
|
|
3
|
-
import '../
|
|
2
|
+
import '../components/actions/button/button.js';
|
|
3
|
+
import '../components/actions/icon-button/icon-button.js';
|
|
4
4
|
import '../components/actions/menu-button/menu-button.js';
|
|
5
5
|
import '../components/actions/copy-button/copy-button.js';
|
|
6
6
|
import '../components/actions/qr-code/qr-code.js';
|
|
7
|
-
import '../
|
|
7
|
+
import '../components/actions/icon/icon.js';
|
|
8
8
|
import '../components/actions/logo/logo.js';
|
|
@@ -2,9 +2,11 @@
|
|
|
2
2
|
import '../components/content/prose/prose.js';
|
|
3
3
|
import '../components/content/code/code.js';
|
|
4
4
|
import '../components/content/highlight/highlight.js';
|
|
5
|
+
import '../components/content/token-value/token-value.js';
|
|
5
6
|
import '../components/content/translator/translator.js';
|
|
6
7
|
import '../components/content/audio-player/audio-player.js';
|
|
7
8
|
import '../components/content/video-player/video-player.js';
|
|
8
9
|
import '../components/content/transcript/transcript.js';
|
|
10
|
+
import '../components/content/log-viewer/log-viewer.js';
|
|
9
11
|
import '../components/content/document-viewer/document-viewer.js';
|
|
10
12
|
import '../components/content/gallery/gallery.js';
|
|
@@ -4,11 +4,11 @@ import '../components/feedback/toast/toast.js';
|
|
|
4
4
|
import '../components/feedback/conflict-alert/conflict-alert.js';
|
|
5
5
|
import '../components/feedback/empty-state/empty-state.js';
|
|
6
6
|
import '../components/feedback/error-page/error-page.js';
|
|
7
|
-
import '../
|
|
8
|
-
import '../
|
|
9
|
-
import '../
|
|
10
|
-
import '../
|
|
11
|
-
import '../
|
|
7
|
+
import '../components/feedback/badge/badge.js';
|
|
8
|
+
import '../components/feedback/status-dot/status-dot.js';
|
|
9
|
+
import '../components/feedback/spinner/spinner.js';
|
|
10
|
+
import '../components/feedback/skeleton/skeleton.js';
|
|
11
|
+
import '../components/feedback/progress-bar/progress-bar.js';
|
|
12
12
|
import '../components/feedback/job-list/job-list.js';
|
|
13
13
|
import '../components/feedback/streaming-text/streaming-text.js';
|
|
14
14
|
import '../components/feedback/ai-label/ai-label.js';
|
|
@@ -1,14 +1,4 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* The bundle: one module a plain HTML page includes; every `lintje-…` tag is registered.
|
|
3
|
-
* `define()` leaves a tag another copy already defined alone. `tokens.css` and `fonts.css` stay
|
|
4
|
-
* files: themes are document-level and a shadow root ignores `@font-face`. A page takes this
|
|
5
|
-
* module or the category/tag entries (`core.ts`, `forms.ts`, `tag/<name>.js`), never both: they
|
|
6
|
-
* do not share module state.
|
|
7
|
-
*/
|
|
8
|
-
import '../icons/icon/icon.js';
|
|
9
1
|
export * from './core.js';
|
|
10
|
-
export { LintjeIcon, ICON_NAMES } from '../icons/icon/icon.js';
|
|
11
|
-
export * from '../primitives/index.js';
|
|
12
2
|
export * from '../components/index.js';
|
|
13
3
|
export * from '../components/shared/charts/index.js';
|
|
14
4
|
export { CATEGORIES, SECTIONS, tagsOf } from '../categories.js';
|
|
@@ -17,7 +7,7 @@ export type * from '../types.js';
|
|
|
17
7
|
/** Every tag this bundle defines, for a host that wants to check. */
|
|
18
8
|
export declare const LINTJE_TAGS: readonly string[];
|
|
19
9
|
/** The views a host mounts: the tags that take a `data` object straight from the host. */
|
|
20
|
-
export declare const LINTJE_VIEWS: readonly ['shell', 'page-header', 'filter-bar', 'kpi-row', 'chart', 'data-table', 'announcement', 'map', 'explainer', 'note', 'chat'];
|
|
10
|
+
export declare const LINTJE_VIEWS: readonly ['shell', 'page-header', 'filter-bar', 'kpi-row', 'chart', 'data-table', 'announcement', 'map', 'explainer', 'note', 'chat', 'log-viewer'];
|
|
21
11
|
export type LintjeViewName = (typeof LINTJE_VIEWS)[number];
|
|
22
12
|
/** The tag of a view: `lintje-` plus its name. */
|
|
23
13
|
export declare const tagFor: (view: LintjeViewName) => string;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
/** The inputs category (Invoervelden): importing it defines its tags. */
|
|
2
2
|
import '../components/inputs/field/field.js';
|
|
3
3
|
import '../components/inputs/text-input/text-input.js';
|
|
4
|
+
import '../components/inputs/find/find.js';
|
|
4
5
|
import '../components/inputs/textarea/textarea.js';
|
|
5
6
|
import '../components/inputs/number-input/number-input.js';
|
|
6
7
|
import '../components/inputs/select/select.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/** The layout category (Indeling): importing it defines its tags. */
|
|
2
|
-
import '../
|
|
3
|
-
import '../
|
|
4
|
-
import '../
|
|
2
|
+
import '../components/layout/grid/grid.js';
|
|
3
|
+
import '../components/layout/grid-item/grid-item.js';
|
|
4
|
+
import '../components/layout/tile/tile.js';
|
|
5
5
|
import '../components/layout/tabs/tabs.js';
|
|
6
6
|
import '../components/layout/expander/expander.js';
|
|
7
7
|
import '../components/layout/split-pane/split-pane.js';
|
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
import '../components/overlays/modal/modal.js';
|
|
3
3
|
import '../components/overlays/dialog/dialog.js';
|
|
4
4
|
import '../components/overlays/drawer/drawer.js';
|
|
5
|
-
import '../
|
|
6
|
-
import '../
|
|
5
|
+
import '../components/overlays/popover/popover.js';
|
|
6
|
+
import '../components/overlays/tooltip/tooltip.js';
|
|
7
7
|
import '../components/overlays/toggletip/toggletip.js';
|
|
@@ -9,9 +9,13 @@ export interface Category {
|
|
|
9
9
|
intro: string;
|
|
10
10
|
/** Tags without `lintje-`, or the id of a style guide section that shows no single tag. */
|
|
11
11
|
elements: readonly string[];
|
|
12
|
+
/** The composite tags among `elements`; every other tag is a building block. */
|
|
13
|
+
composite?: readonly string[];
|
|
12
14
|
}
|
|
13
15
|
export declare const CATEGORIES: readonly Category[];
|
|
14
16
|
/** The style guide's sections that show no single tag. */
|
|
15
17
|
export declare const SECTIONS: readonly string[];
|
|
18
|
+
/** Every composite tag, with its prefix. */
|
|
19
|
+
export declare const COMPOSITE: readonly string[];
|
|
16
20
|
/** A category's tags, with their prefix. */
|
|
17
21
|
export declare const tagsOf: (category: Category) => string[];
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
* there is a property; focusing the host focuses the inner control.
|
|
7
7
|
*/
|
|
8
8
|
import { type PropertyDeclarations, type TemplateResult } from 'lit';
|
|
9
|
-
import { LintjeElement } from '
|
|
9
|
+
import { LintjeElement } from '../../../core/element.js';
|
|
10
10
|
export type ButtonVariant = 'primary' | 'secondary' | 'tertiary' | 'link' | 'danger' | 'danger-secondary';
|
|
11
11
|
export type ButtonSize = 'regular' | 'compact' | 'chrome';
|
|
12
12
|
export declare class LintjeButton extends LintjeElement {
|
|
@@ -9,8 +9,8 @@
|
|
|
9
9
|
*/
|
|
10
10
|
import { type PropertyDeclarations, type PropertyValues, type TemplateResult } from 'lit';
|
|
11
11
|
import { LintjeElement } from '../../../core/element.js';
|
|
12
|
-
import '
|
|
13
|
-
import '
|
|
12
|
+
import '../button/button.js';
|
|
13
|
+
import '../icon-button/icon-button.js';
|
|
14
14
|
import '../../feedback/toast/toast.js';
|
|
15
15
|
export declare class LintjeCopyButton extends LintjeElement {
|
|
16
16
|
static styles: import("lit").CSSResult[];
|
|
@@ -5,8 +5,8 @@
|
|
|
5
5
|
* through. It takes `src`, else the register, else a loaded file; without any it draws nothing.
|
|
6
6
|
*/
|
|
7
7
|
import { nothing, type TemplateResult } from 'lit';
|
|
8
|
-
import { LintjeElement } from '
|
|
9
|
-
import { ICONS, type IconGlyph, type IconName } from '
|
|
8
|
+
import { LintjeElement } from '../../../core/element.js';
|
|
9
|
+
import { ICONS, type IconGlyph, type IconName } from '../../../icons/register.js';
|
|
10
10
|
export type { IconName, IconGlyph };
|
|
11
11
|
export { ICONS };
|
|
12
12
|
/** The names the bundle carries; every other name is fetched. */
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* `disabled` keeps it focusable but swallows the press: no listener on the host sees it.
|
|
6
6
|
*/
|
|
7
7
|
import { type TemplateResult } from 'lit';
|
|
8
|
-
import { LintjeElement } from '
|
|
8
|
+
import { LintjeElement } from '../../../core/element.js';
|
|
9
9
|
export type IconButtonVariant = 'flat' | 'outlined' | 'tile';
|
|
10
10
|
export declare class LintjeIconButton extends LintjeElement {
|
|
11
11
|
static styles: import("lit").CSSResult[];
|
|
@@ -9,9 +9,9 @@
|
|
|
9
9
|
*/
|
|
10
10
|
import { type PropertyDeclarations, type PropertyValues, type TemplateResult } from 'lit';
|
|
11
11
|
import { LintjeElement } from '../../../core/element.js';
|
|
12
|
-
import '
|
|
13
|
-
import '
|
|
14
|
-
import '
|
|
12
|
+
import '../../overlays/popover/popover.js';
|
|
13
|
+
import '../../feedback/spinner/spinner.js';
|
|
14
|
+
import '../../overlays/tooltip/tooltip.js';
|
|
15
15
|
export interface MenuItem {
|
|
16
16
|
/** What `lintje-action` carries. */
|
|
17
17
|
value: string;
|
|
@@ -67,7 +67,10 @@ export declare class LintjeMenuButton extends LintjeElement {
|
|
|
67
67
|
* flat with `variant="tertiary"` where it repeats, as at the end of every table row.
|
|
68
68
|
*/
|
|
69
69
|
icon: boolean;
|
|
70
|
-
/**
|
|
70
|
+
/**
|
|
71
|
+
* An icon file name before the label, saying what the label is a value of (the speed's "1×").
|
|
72
|
+
* Without a `label` the trigger is this icon alone, in a square; `accessible-label` names it.
|
|
73
|
+
*/
|
|
71
74
|
leadingIcon: string;
|
|
72
75
|
disabled: boolean;
|
|
73
76
|
/**
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
*/
|
|
10
10
|
import { type PropertyDeclarations, type TemplateResult } from 'lit';
|
|
11
11
|
import { LintjeElement } from '../../../core/element.js';
|
|
12
|
-
import '
|
|
12
|
+
import '../button/button.js';
|
|
13
13
|
import '../../feedback/toast/toast.js';
|
|
14
14
|
/** The code of `text` as an SVG of its dark modules, one path of horizontal runs. */
|
|
15
15
|
export declare function codeImage(text: string, colour: string): string;
|
|
@@ -13,7 +13,7 @@ import { LintjeContentTileElement } from '../../shared/content-tile.js';
|
|
|
13
13
|
import '../../feedback/announcement/announcement.js';
|
|
14
14
|
import '../../tables/data-table/data-table.js';
|
|
15
15
|
import '../../inputs/segmented/segmented.js';
|
|
16
|
-
import '
|
|
16
|
+
import '../../layout/tile/tile.js';
|
|
17
17
|
import type { ChartData } from '../../../types.js';
|
|
18
18
|
type ChartView = 'chart' | 'table';
|
|
19
19
|
export declare class LintjeChart extends LintjeContentTileElement {
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
*/
|
|
7
7
|
import { nothing, type PropertyDeclarations, type PropertyValues, type TemplateResult } from 'lit';
|
|
8
8
|
import { type FrameSettings } from '../../../core/element.js';
|
|
9
|
-
import { LintjeGridItemElement } from '
|
|
9
|
+
import { LintjeGridItemElement } from '../../shared/grid-item-element.js';
|
|
10
10
|
import type { ExplainerData } from '../../../types.js';
|
|
11
11
|
export declare class LintjeExplainer extends LintjeGridItemElement {
|
|
12
12
|
#private;
|
|
@@ -5,9 +5,9 @@
|
|
|
5
5
|
* `prefers-reduced-motion` both stand at once.
|
|
6
6
|
*/
|
|
7
7
|
import { type PropertyDeclarations, type PropertyValues, type TemplateResult } from 'lit';
|
|
8
|
-
import { LintjeGridItemElement } from '
|
|
9
|
-
import '
|
|
10
|
-
import '
|
|
8
|
+
import { LintjeGridItemElement } from '../../shared/grid-item-element.js';
|
|
9
|
+
import '../../feedback/status-dot/status-dot.js';
|
|
10
|
+
import '../../feedback/skeleton/skeleton.js';
|
|
11
11
|
import type { KpiGauge, KpiItem, KpiSparkline, ContentStateKind, KpiTrend, KpiVariable } from '../../../types.js';
|
|
12
12
|
type Point = [number, number];
|
|
13
13
|
/** The points of each unbroken run of values: a `null` ends a run (rule 15). */
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/** `<lintje-kpi-row>` — the KPI row: one grid, the KPIs staggered in from left to right. */
|
|
2
2
|
import { type PropertyDeclarations, type TemplateResult } from 'lit';
|
|
3
3
|
import { type FrameSettings } from '../../../core/element.js';
|
|
4
|
-
import { LintjeGridItemElement } from '
|
|
4
|
+
import { LintjeGridItemElement } from '../../shared/grid-item-element.js';
|
|
5
5
|
import '../kpi/kpi.js';
|
|
6
6
|
import type { KpiRowData } from '../../../types.js';
|
|
7
7
|
export declare class LintjeKpiRow extends LintjeGridItemElement {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/** `<lintje-note>` — the analyst's note ("Toelichting analist"). */
|
|
2
2
|
import { nothing, type PropertyDeclarations, type TemplateResult } from 'lit';
|
|
3
3
|
import { type FrameSettings } from '../../../core/element.js';
|
|
4
|
-
import { LintjeGridItemElement } from '
|
|
4
|
+
import { LintjeGridItemElement } from '../../shared/grid-item-element.js';
|
|
5
5
|
import type { NoteData } from '../../../types.js';
|
|
6
6
|
export declare class LintjeNote extends LintjeGridItemElement {
|
|
7
7
|
static styles: import("lit").CSSResult[];
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
*/
|
|
13
13
|
import { nothing, type PropertyDeclarations, type PropertyValues, type TemplateResult } from 'lit';
|
|
14
14
|
import { LintjeElement, type FrameSettings } from '../../../core/element.js';
|
|
15
|
-
import '
|
|
15
|
+
import '../../actions/button/button.js';
|
|
16
16
|
import '../chat-answer/chat-answer.js';
|
|
17
17
|
import '../chat-composer/chat-composer.js';
|
|
18
18
|
import '../chat-message/chat-message.js';
|
|
@@ -11,9 +11,9 @@
|
|
|
11
11
|
*/
|
|
12
12
|
import { type PropertyDeclarations, type PropertyValues, type TemplateResult } from 'lit';
|
|
13
13
|
import { LintjeElement } from '../../../core/element.js';
|
|
14
|
-
import '
|
|
15
|
-
import '
|
|
16
|
-
import '
|
|
14
|
+
import '../../actions/button/button.js';
|
|
15
|
+
import '../../actions/icon-button/icon-button.js';
|
|
16
|
+
import '../../feedback/spinner/spinner.js';
|
|
17
17
|
import '../../feedback/announcement/announcement.js';
|
|
18
18
|
import '../../charts/chart/chart.js';
|
|
19
19
|
import '../chat-strip/chat-strip.js';
|
|
@@ -12,8 +12,8 @@
|
|
|
12
12
|
*/
|
|
13
13
|
import { type PropertyDeclarations, type PropertyValues, type TemplateResult } from 'lit';
|
|
14
14
|
import { LintjeElement } from '../../../core/element.js';
|
|
15
|
-
import '
|
|
16
|
-
import '
|
|
15
|
+
import '../../actions/button/button.js';
|
|
16
|
+
import '../../actions/icon-button/icon-button.js';
|
|
17
17
|
import '../../inputs/multiselect/multiselect.js';
|
|
18
18
|
import '../../inputs/radio-group/radio-group.js';
|
|
19
19
|
import type { ChatAnswerForm, ChatDraftTerms, ChatSourceData, ChatTermData } from '../../../types.js';
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
*/
|
|
11
11
|
import { type PropertyDeclarations, type TemplateResult } from 'lit';
|
|
12
12
|
import { LintjeElement } from '../../../core/element.js';
|
|
13
|
-
import '
|
|
13
|
+
import '../../actions/icon-button/icon-button.js';
|
|
14
14
|
import '../chat-composer/chat-composer.js';
|
|
15
15
|
import type { ChatSourceData, ChatTermData, ChatTermRange } from '../../../types.js';
|
|
16
16
|
export declare class LintjeChatMessage extends LintjeElement {
|
|
@@ -8,13 +8,13 @@
|
|
|
8
8
|
* `number` (seconds: the reader moved the position), `lintje-play`, `lintje-pause`.
|
|
9
9
|
*/
|
|
10
10
|
import { type PropertyDeclarations, type PropertyValues, type TemplateResult } from 'lit';
|
|
11
|
-
import '
|
|
12
|
-
import '
|
|
11
|
+
import '../../actions/button/button.js';
|
|
12
|
+
import '../../feedback/skeleton/skeleton.js';
|
|
13
13
|
import '../../feedback/announcement/announcement.js';
|
|
14
14
|
import '../../actions/menu-button/menu-button.js';
|
|
15
|
-
import { type SpeakerTurn } from '
|
|
16
|
-
import { LintjePlayerElement } from '
|
|
17
|
-
export type { SpeakerTurn } from '
|
|
15
|
+
import { type SpeakerTurn } from '../shared/playback.js';
|
|
16
|
+
import { LintjePlayerElement } from '../shared/player.js';
|
|
17
|
+
export type { SpeakerTurn } from '../shared/playback.js';
|
|
18
18
|
export declare class LintjeAudioPlayer extends LintjePlayerElement {
|
|
19
19
|
static styles: import("lit").CSSResult[];
|
|
20
20
|
static properties: PropertyDeclarations;
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* It scrolls sideways by default, because a broken line is a changed line. No syntax colouring.
|
|
5
5
|
*/
|
|
6
6
|
import { type PropertyDeclarations, type TemplateResult } from 'lit';
|
|
7
|
-
import { LintjeGridItemElement } from '
|
|
7
|
+
import { LintjeGridItemElement } from '../../shared/grid-item-element.js';
|
|
8
8
|
export declare class LintjeCode extends LintjeGridItemElement {
|
|
9
9
|
static styles: import("lit").CSSResult;
|
|
10
10
|
static properties: PropertyDeclarations;
|
|
@@ -11,8 +11,8 @@
|
|
|
11
11
|
*/
|
|
12
12
|
import { type PropertyDeclarations, type PropertyValues, type TemplateResult } from 'lit';
|
|
13
13
|
import { LintjeElement } from '../../../core/element.js';
|
|
14
|
-
import '
|
|
15
|
-
import '
|
|
14
|
+
import '../../actions/button/button.js';
|
|
15
|
+
import '../../feedback/skeleton/skeleton.js';
|
|
16
16
|
import '../../feedback/empty-state/empty-state.js';
|
|
17
17
|
export type ZoomLevel = number | 'fit';
|
|
18
18
|
export declare const ZOOM_MIN = 50;
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
*/
|
|
8
8
|
import { type PropertyDeclarations, type TemplateResult } from 'lit';
|
|
9
9
|
import { LintjeElement } from '../../../core/element.js';
|
|
10
|
-
import '
|
|
10
|
+
import '../../overlays/tooltip/tooltip.js';
|
|
11
11
|
export type HighlightKind = 'uncertain' | 'term' | 'match' | 'added' | 'removed';
|
|
12
12
|
export declare class LintjeHighlight extends LintjeElement {
|
|
13
13
|
static styles: import("lit").CSSResult;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/** What the log viewer works out from its lines, apart from drawing them. */
|
|
2
|
+
import type { LogEntry, LogLevel } from '../../../types.js';
|
|
3
|
+
import type { CsvCell } from '../../shared/download.js';
|
|
4
|
+
/** A longer message shows this many lines and a button for the rest. */
|
|
5
|
+
export declare const FOLD_AFTER = 5;
|
|
6
|
+
export declare const FOLD_SHOW = 4;
|
|
7
|
+
export declare const LEVEL_WORD: Record<LogLevel, string>;
|
|
8
|
+
/** The text without terminal codes (CSI colour and cursor, OSC titles); colour carries no meaning here. */
|
|
9
|
+
export declare function plain(text: string): string;
|
|
10
|
+
/** No line says when, how bad or from where: the lines are drawn as plain output. */
|
|
11
|
+
export declare function isRaw(entries: readonly LogEntry[]): boolean;
|
|
12
|
+
/** How often `term` stands in `text`, ignoring case; `term` is lower case. */
|
|
13
|
+
export declare function countHits(text: string, term: string): number;
|
|
14
|
+
export interface Part {
|
|
15
|
+
text: string;
|
|
16
|
+
/** The hit's number in the whole log, from 1; absent for the text between hits. */
|
|
17
|
+
hit?: number;
|
|
18
|
+
}
|
|
19
|
+
/** The text cut at each hit; `first` is the number the first hit in it gets. */
|
|
20
|
+
export declare function splitHits(text: string, term: string, first: number): Part[];
|
|
21
|
+
/** The lines a folded message shows, and how many it hides; `hidden` is 0 for a short one. */
|
|
22
|
+
export declare function fold(text: string): {
|
|
23
|
+
shown: string;
|
|
24
|
+
hidden: number;
|
|
25
|
+
};
|
|
26
|
+
/** The time since `start` as `+mm:ss.mmm`; `null` when either moment does not parse. */
|
|
27
|
+
export declare function since(at: string | undefined, start: string | undefined): string | null;
|
|
28
|
+
/** One line as text, as a terminal would show it. */
|
|
29
|
+
export declare function lineText(entry: LogEntry): string;
|
|
30
|
+
export declare const asText: (entries: readonly LogEntry[]) => string;
|
|
31
|
+
export declare const asJson: (entries: readonly LogEntry[]) => string;
|
|
32
|
+
/** The rows of a spreadsheet: one column per field, the message without terminal codes. */
|
|
33
|
+
export declare const csvRows: (entries: readonly LogEntry[]) => CsvCell[][];
|
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* `<lintje-log-viewer>` — log lines in a tile, oldest first, that follow the newest while live.
|
|
3
|
+
*
|
|
4
|
+
* The host holds the filter (level, search term, "alleen treffers") and the chosen line, keeps
|
|
5
|
+
* them in the URL and sends only the lines that match; the view, the following and the cleared
|
|
6
|
+
* view are the element's own. It finds the hits of the term itself and steps through them. It
|
|
7
|
+
* never guesses: a line without a level has no badge. Lines without time, level or source are
|
|
8
|
+
* drawn as plain output. A danger action is the host's to confirm.
|
|
9
|
+
*
|
|
10
|
+
* Events: `lintje-log-filter-change` `{ level, search, onlyHits }`, `lintje-log-select`
|
|
11
|
+
* `string | null` (the chosen line), `lintje-log-action` `string` (one of `actions`),
|
|
12
|
+
* `lintje-log-retry`.
|
|
13
|
+
*/
|
|
14
|
+
import { nothing, type PropertyDeclarations, type PropertyValues, type TemplateResult } from 'lit';
|
|
15
|
+
import { type FrameSettings } from '../../../core/element.js';
|
|
16
|
+
import '../../actions/button/button.js';
|
|
17
|
+
import '../../actions/icon-button/icon-button.js';
|
|
18
|
+
import '../../feedback/skeleton/skeleton.js';
|
|
19
|
+
import '../../layout/tile/tile.js';
|
|
20
|
+
import '../../actions/menu-button/menu-button.js';
|
|
21
|
+
import '../../feedback/announcement/announcement.js';
|
|
22
|
+
import '../../inputs/find/find.js';
|
|
23
|
+
import '../../inputs/segmented/segmented.js';
|
|
24
|
+
import '../../inputs/select/select.js';
|
|
25
|
+
import '../code/code.js';
|
|
26
|
+
import '../highlight/highlight.js';
|
|
27
|
+
import { LintjeContentTileElement } from '../../shared/content-tile.js';
|
|
28
|
+
import type { LogViewerData } from '../../../types.js';
|
|
29
|
+
type TimeShown = 'clock' | 'since';
|
|
30
|
+
/** How the filter row fits its own width: all on one line, the level folded to a select, or stacked. */
|
|
31
|
+
type Fit = 'wide' | 'compact' | 'narrow';
|
|
32
|
+
interface View {
|
|
33
|
+
wrap: boolean;
|
|
34
|
+
fold: boolean;
|
|
35
|
+
time: TimeShown;
|
|
36
|
+
columns: {
|
|
37
|
+
time: boolean;
|
|
38
|
+
level: boolean;
|
|
39
|
+
source: boolean;
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
export declare class LintjeLogViewer extends LintjeContentTileElement {
|
|
43
|
+
#private;
|
|
44
|
+
static styles: import("lit").CSSResult[];
|
|
45
|
+
static properties: PropertyDeclarations;
|
|
46
|
+
data?: LogViewerData;
|
|
47
|
+
protected view: View;
|
|
48
|
+
/** The current hit, from 1. */
|
|
49
|
+
protected hit: number;
|
|
50
|
+
/** The reader stands at the newest line, so new lines keep them there. */
|
|
51
|
+
protected following: boolean;
|
|
52
|
+
/** The first line that came in while the reader looked elsewhere. */
|
|
53
|
+
protected unreadFrom: string | null;
|
|
54
|
+
/** The last line hidden by "Venster leegmaken". */
|
|
55
|
+
protected clearedAfter: string | null;
|
|
56
|
+
protected unfolded: ReadonlySet<string>;
|
|
57
|
+
protected opened: ReadonlySet<string>;
|
|
58
|
+
/** The line the arrow keys stand on. */
|
|
59
|
+
protected activeId: string | null;
|
|
60
|
+
protected copied: 'menu' | 'line' | 'link' | null;
|
|
61
|
+
protected message: string;
|
|
62
|
+
protected fit: Fit;
|
|
63
|
+
protected get dataSettings(): FrameSettings | undefined;
|
|
64
|
+
disconnectedCallback(): void;
|
|
65
|
+
private get entries();
|
|
66
|
+
/** The lines after the cleared ones; all of them when the cleared line is no longer sent. */
|
|
67
|
+
private get shown();
|
|
68
|
+
private get filter();
|
|
69
|
+
/** A filter the host answered: an empty answer is "nothing for this filter", not an empty log. */
|
|
70
|
+
private get filtered();
|
|
71
|
+
private get term();
|
|
72
|
+
protected willUpdate(changed: PropertyValues<this>): void;
|
|
73
|
+
private arrive;
|
|
74
|
+
protected updated(changed: PropertyValues<this>): void;
|
|
75
|
+
private watchFit;
|
|
76
|
+
private refit;
|
|
77
|
+
private get log();
|
|
78
|
+
/** Scrolls the log, never the page: moving the page moves the controls from under the pointer. */
|
|
79
|
+
private reveal;
|
|
80
|
+
private readonly onScroll;
|
|
81
|
+
private toLatest;
|
|
82
|
+
private say;
|
|
83
|
+
private askFilter;
|
|
84
|
+
private select;
|
|
85
|
+
private get hitCounts();
|
|
86
|
+
private onStep;
|
|
87
|
+
private copy;
|
|
88
|
+
private get fileName();
|
|
89
|
+
private onViewAction;
|
|
90
|
+
private onCopyAction;
|
|
91
|
+
private onMoreAction;
|
|
92
|
+
/** In a narrow row the three menus are one: what does not fit beside the level folds into "Meer". */
|
|
93
|
+
private readonly onAnyAction;
|
|
94
|
+
private viewItems;
|
|
95
|
+
private copyItems;
|
|
96
|
+
private moreItems;
|
|
97
|
+
private readonly onRowsKeydown;
|
|
98
|
+
protected render(): TemplateResult | typeof nothing;
|
|
99
|
+
/** Three squares at the height of the fields beside them, so the row has one height. */
|
|
100
|
+
private renderTools;
|
|
101
|
+
private renderNotice;
|
|
102
|
+
private renderFilters;
|
|
103
|
+
private renderFrame;
|
|
104
|
+
private renderLines;
|
|
105
|
+
private get clearedTime();
|
|
106
|
+
private renderEmpty;
|
|
107
|
+
private renderRow;
|
|
108
|
+
private renderCells;
|
|
109
|
+
private toggle;
|
|
110
|
+
private renderFoot;
|
|
111
|
+
}
|
|
112
|
+
declare global {
|
|
113
|
+
interface HTMLElementTagNameMap {
|
|
114
|
+
'lintje-log-viewer': LintjeLogViewer;
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
export {};
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* stands.
|
|
6
6
|
*/
|
|
7
7
|
import { type PropertyDeclarations, type TemplateResult } from 'lit';
|
|
8
|
-
import { LintjeGridItemElement } from '
|
|
8
|
+
import { LintjeGridItemElement } from '../../shared/grid-item-element.js';
|
|
9
9
|
export type ProseTone = 'default' | 'muted';
|
|
10
10
|
export declare class LintjeProse extends LintjeGridItemElement {
|
|
11
11
|
static styles: import("lit").CSSResult;
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* `<lintje-token-value>` — what a design token computes to, here and now: a colour as a swatch
|
|
3
|
+
* and hex, a length in rem also in px, a text style as weight, size and line height.
|
|
4
|
+
*
|
|
5
|
+
* The value is read from the computed style, since a token ends in a `color-mix()` or an
|
|
6
|
+
* `oklch()` of the theme's `--primary`. A change of mode redraws it like any element; a change
|
|
7
|
+
* of theme is watched on the document.
|
|
8
|
+
*/
|
|
9
|
+
import { type PropertyDeclarations, type TemplateResult } from 'lit';
|
|
10
|
+
import { LintjeElement } from '../../../core/element.js';
|
|
11
|
+
export declare const NO_VALUE = "\u2014";
|
|
12
|
+
/**
|
|
13
|
+
* A computed sRGB colour as upper-case hex, with its alpha in percent when it is not opaque;
|
|
14
|
+
* `null` for anything else. Browsers compute to `rgb(14, 61, 110)` or `color(srgb 0.05 0.24 0.43)`.
|
|
15
|
+
*/
|
|
16
|
+
export declare function formatColour(computed: string): string | null;
|
|
17
|
+
export declare class LintjeTokenValue extends LintjeElement {
|
|
18
|
+
static styles: import("lit").CSSResult;
|
|
19
|
+
static properties: PropertyDeclarations;
|
|
20
|
+
/** The custom property to show, with its dashes: `--color-accent`. */
|
|
21
|
+
name?: string;
|
|
22
|
+
/** Without the swatch, where the colour already stands beside it, larger. */
|
|
23
|
+
noSwatch: boolean;
|
|
24
|
+
private observer?;
|
|
25
|
+
connectedCallback(): void;
|
|
26
|
+
disconnectedCallback(): void;
|
|
27
|
+
protected updated(): void;
|
|
28
|
+
/**
|
|
29
|
+
* Set on the nodes, not bound: the probe exists only after render, and a reactive property
|
|
30
|
+
* set from `updated()` would schedule a second render per reading.
|
|
31
|
+
*/
|
|
32
|
+
private reread;
|
|
33
|
+
/** The CSSOM keeps a valid declaration and drops the rest, so the probe tells what a value is. */
|
|
34
|
+
private colourOf;
|
|
35
|
+
private describe;
|
|
36
|
+
protected render(): TemplateResult;
|
|
37
|
+
}
|
|
38
|
+
declare global {
|
|
39
|
+
interface HTMLElementTagNameMap {
|
|
40
|
+
'lintje-token-value': LintjeTokenValue;
|
|
41
|
+
}
|
|
42
|
+
}
|
|
@@ -13,13 +13,13 @@
|
|
|
13
13
|
*/
|
|
14
14
|
import { type PropertyDeclarations, type PropertyValues, type TemplateResult } from 'lit';
|
|
15
15
|
import { LintjeElement } from '../../../core/element.js';
|
|
16
|
-
import '
|
|
17
|
-
import '
|
|
16
|
+
import '../../actions/button/button.js';
|
|
17
|
+
import '../../actions/icon-button/icon-button.js';
|
|
18
18
|
import '../highlight/highlight.js';
|
|
19
19
|
import '../../inputs/textarea/textarea.js';
|
|
20
20
|
import '../../actions/menu-button/menu-button.js';
|
|
21
21
|
import type { MenuEntry } from '../../actions/menu-button/menu-button.js';
|
|
22
|
-
import { type BadgeTone } from '
|
|
22
|
+
import { type BadgeTone } from '../../feedback/badge/badge.js';
|
|
23
23
|
export interface TranscriptSegment {
|
|
24
24
|
id: string;
|
|
25
25
|
/** When it starts, in seconds. */
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
import { type PropertyDeclarations, type TemplateResult } from 'lit';
|
|
13
13
|
import { LintjeElement } from '../../../core/element.js';
|
|
14
14
|
import '../../inputs/textarea/textarea.js';
|
|
15
|
-
import '
|
|
15
|
+
import '../../actions/icon-button/icon-button.js';
|
|
16
16
|
export declare class LintjeTranslator extends LintjeElement {
|
|
17
17
|
#private;
|
|
18
18
|
static styles: import("lit").CSSResult;
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
*/
|
|
12
12
|
import { type PropertyDeclarations, type TemplateResult } from 'lit';
|
|
13
13
|
import '../../actions/menu-button/menu-button.js';
|
|
14
|
-
import { LintjePlayerElement } from '../
|
|
14
|
+
import { LintjePlayerElement } from '../shared/player.js';
|
|
15
15
|
export interface TimedText {
|
|
16
16
|
start: number;
|
|
17
17
|
text: string;
|
|
@@ -7,8 +7,8 @@
|
|
|
7
7
|
*/
|
|
8
8
|
import { nothing, type PropertyDeclarations, type PropertyValues, type TemplateResult } from 'lit';
|
|
9
9
|
import { type FrameSettings } from '../../../core/element.js';
|
|
10
|
-
import { LintjeGridItemElement } from '
|
|
11
|
-
import '
|
|
10
|
+
import { LintjeGridItemElement } from '../../shared/grid-item-element.js';
|
|
11
|
+
import '../../layout/tile/tile.js';
|
|
12
12
|
import type { AnnouncementViewData } from '../../../types.js';
|
|
13
13
|
export declare class LintjeAnnouncement extends LintjeGridItemElement {
|
|
14
14
|
static styles: import("lit").CSSResult[];
|
|
@@ -6,8 +6,8 @@
|
|
|
6
6
|
* as `renderIcon()` / `iconStyles` do.
|
|
7
7
|
*/
|
|
8
8
|
import { type CSSResult, type PropertyDeclarations, type TemplateResult } from 'lit';
|
|
9
|
-
import { LintjeElement } from '
|
|
10
|
-
import type { Tone } from '
|
|
9
|
+
import { LintjeElement } from '../../../core/element.js';
|
|
10
|
+
import type { Tone } from '../../shared/tone.js';
|
|
11
11
|
export type BadgeTone = Tone;
|
|
12
12
|
export type BadgeVariant = 'label' | 'count' | 'unread';
|
|
13
13
|
export declare const badgeStyles: CSSResult;
|