Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
42 commits
Select commit Hold shift + click to select a range
8dc462a
Bump @commitlint/cli from 20.2.0 to 20.3.0
dependabot[bot] Jan 2, 2026
0328f14
ci(iceberg): make tsc acknowledge vitest-caused node types
oeninghe-dataport Jan 5, 2026
07048a5
fix(core): enforce usage of `Icon` type
oeninghe-dataport Jan 7, 2026
2fa72f1
feat(filter): migrate plugin
oeninghe-dataport Jan 2, 2026
6aabb56
Merge branch 'next' into vue3/migrate-plugin-filter
dopenguin Jan 16, 2026
cd23d05
fix(filter): use correct import for export store
dopenguin Jan 16, 2026
56ea116
Merge branch 'next' into vue3/migrate-plugin-filter
dopenguin Jan 19, 2026
9c92633
Merge branch 'next' into vue3/migrate-plugin-filter
dopenguin Jan 20, 2026
e6916db
Merge branch 'next' into vue3/migrate-plugin-filter
dopenguin Jan 22, 2026
25d11ec
style: apply new linting rule for self-closing
oeninghe-dataport Jan 23, 2026
b7b6c3b
Merge branch 'next' into vue3/migrate-plugin-filter
dopenguin Jan 23, 2026
0d1200c
Merge branch 'next' into vue3/migrate-plugin-filter
dopenguin Jan 23, 2026
52c14f3
Merge branch 'next' into vue3/migrate-plugin-filter
dopenguin Jan 28, 2026
e973288
fix(filter): remove bottom padding that was mitigation for a fixed bug
oeninghe-dataport Jan 30, 2026
1a1516e
fix(filter): use sensible defaults for user-defined locales
oeninghe-dataport Jan 30, 2026
7c65f97
docs(filter): recommend l10n
oeninghe-dataport Feb 2, 2026
8daf691
fix(filter): show layer name instead of ID
oeninghe-dataport Feb 2, 2026
0fb038b
fix(filter): show layer name if only one layer is offered
oeninghe-dataport Feb 2, 2026
bdb3cd6
refactor(filter): use `PluginId` as namespace for i18n
oeninghe-dataport Feb 2, 2026
952f425
refactor: move `getVectorSource` to global lib functions
oeninghe-dataport Feb 2, 2026
e573790
refactor(filter): move common getters to store
oeninghe-dataport Feb 3, 2026
49d36bb
refactor(filter): introduce store logic for time-related filters
oeninghe-dataport Feb 3, 2026
20d3c31
fix: reserve space for border in KernBlockButtonX
oeninghe-dataport Feb 3, 2026
36777db
chore(filter): add missing store files
oeninghe-dataport Feb 3, 2026
ac723a0
refactor: show focus for KernBlockButtonX
oeninghe-dataport Feb 3, 2026
715c37b
chore: remove now unused @ts-expect-error directives
oeninghe-dataport Feb 3, 2026
01f8943
Merge branch 'next' into vue3/migrate-plugin-filter
dopenguin Feb 4, 2026
3288804
feat(filter): allow multiple filter categories for a targetProperty
oeninghe-dataport Feb 6, 2026
2f0ef30
refactor(filter): replace non-null-assertion w/ explicit type assertion
oeninghe-dataport Feb 6, 2026
873e53f
feat(filter): allow grouping multiple values to a single category entry
oeninghe-dataport Feb 6, 2026
4e97981
refactor(filter): remove card CSS that is no longer needed
oeninghe-dataport Feb 9, 2026
1a9f2a7
fix: prohibit that PolarCard is sometimes focusable in Gecko
oeninghe-dataport Feb 9, 2026
413aece
fix: hide block button input elements w/ Gecko
oeninghe-dataport Feb 9, 2026
c879fbf
feat: radio groups behave more like buttons
oeninghe-dataport Feb 16, 2026
cd44fbc
feat: show focus for block buttons only if keyboard-focused
oeninghe-dataport Feb 16, 2026
afb71b1
feat: allow enabling/toggling w/ enter for block buttons
oeninghe-dataport Feb 16, 2026
c7942f3
feat(filter): improved scrolling behavior for tab navigation
oeninghe-dataport Feb 16, 2026
04d38ef
refactor(core): rename `getLayerConfiguration` and improve types
oeninghe-dataport Feb 16, 2026
537f5d2
feat(filter): add nine-regions-style layout
oeninghe-dataport Feb 16, 2026
740e0a8
refactor(filter): initialize state non-lazily
oeninghe-dataport Feb 16, 2026
b19e761
Merge branch 'next' into vue3/migrate-plugin-filter
dopenguin Feb 16, 2026
117f4ba
Merge branch 'next' into vue3/migrate-plugin-filter
dopenguin Feb 18, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions examples/iceberg/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
"types": [
"vitest/importMeta",
"vitest/jsdom",
"node",
"../../src/@types/vite-env.d.ts",
"../../src/@types/i18next.d.ts",
"../../src/@types/pinia.d.ts",
Expand Down
90 changes: 90 additions & 0 deletions examples/snowbox/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
subscribe,
updateState,
} from '@polar/polar'
import pluginFilter from '@polar/polar/plugins/filter'
import pluginFooter from '@polar/polar/plugins/footer'
import pluginFullscreen from '@polar/polar/plugins/fullscreen'
import pluginGeoLocation from '@polar/polar/plugins/geoLocation'
Expand Down Expand Up @@ -73,7 +74,7 @@
},
}

// TODO: Re-enable with isSelectable

Check warning on line 77 in examples/snowbox/index.js

View workflow job for this annotation

GitHub Actions / Linting

Unexpected 'todo' comment: 'TODO: Re-enable with isSelectable'
/*
// arbitrary condition for testing
const isEvenId = (mmlid) => Number(mmlid.slice(-1)) % 2 === 0
Expand All @@ -93,7 +94,7 @@
colorScheme,
startCenter: [573364, 6028874],
layers: [
// TODO: Add internalization to snowbox

Check warning on line 97 in examples/snowbox/index.js

View workflow job for this annotation

GitHub Actions / Linting

Unexpected 'todo' comment: 'TODO: Add internalization to snowbox'
{
id: basemapId,
visibility: true,
Expand Down Expand Up @@ -173,20 +174,44 @@
stroke: '#FFFFFF',
fill: '#333333',
},
// TODO(dopenguin): Has some HMR issues, needs to be fixed

Check warning on line 177 in examples/snowbox/index.js

View workflow job for this annotation

GitHub Actions / Linting

Unexpected 'todo' comment: 'TODO(dopenguin): Has some HMR issues,...'
// isSelectable: isReportSelectable,
},
],
clusterClickZoom: true,
},
// theme: dataportTheme,
/*

Check warning on line 184 in examples/snowbox/index.js

View workflow job for this annotation

GitHub Actions / Linting

Unexpected 'todo' comment: 'TODO(dopenguin): Surrounding application...'
TODO(dopenguin): Surrounding application should be able give information about dark or light mode via update of a state parameter; light mode by default
*/
locales: [
{
type: 'de',
resources: {
filter: {
layer: {
[reports]: {
category: {
skat: {
title: 'Schadensart',
knownValue: {
'1xx': 'Alle Wege- und Straßenschäden',
100: 'Wege und Straßen',
101: 'Schlagloch und Wegeschaden',
102: 'Verunreinigung und Vandalismus',
},
},
statu: {
title: 'Bearbeitungsstatus',
knownValue: {
todo: 'In Bearbeitung',
done: 'Abgeschlossen',
},
},
},
},
},
},
fullscreen: {
button: {
label_on: 'Mach groß',
Expand Down Expand Up @@ -293,7 +318,7 @@
key: 'coordinate',
},
],
// TODO: Check if this works when addressSearch is implemented

Check warning on line 321 in examples/snowbox/index.js

View workflow job for this annotation

GitHub Actions / Linting

Unexpected 'todo' comment: 'TODO: Check if this works when...'
addressTarget: {
plugin: 'addressSearch',
key: 'selectResult',
Expand All @@ -318,7 +343,7 @@
},
],
menus: [
// TODO: Delete the mock plugins including the components once the correct plugins have been implemented

Check warning on line 346 in examples/snowbox/index.js

View workflow job for this annotation

GitHub Actions / Linting

Unexpected 'todo' comment: 'TODO: Delete the mock plugins including...'
[
{
plugin: pluginGeoLocation({
Expand All @@ -344,6 +369,71 @@
icon: 'kern-icon-fill--share',
},
],
[
{
plugin: pluginFilter({
layers: {
[reports]: {
categories: [
{
targetProperty: 'skat',
knownValues: [
{
key: '100',
values: ['100'],
icon: 'kern-icon--road',
},
{
key: '101',
values: ['101'],
icon: 'kern-icon--remove-road',
},
{
key: '102',
values: ['102'],
icon: 'kern-icon--destruction',
},
],
selectAll: true,
},
{
targetProperty: 'skat',
knownValues: [
{
key: '1xx',
values: ['100', '101', '102'],
icon: 'kern-icon--road',
},
],
selectAll: true,
},
{
targetProperty: 'statu',
knownValues: [
{
key: 'todo',
values: ['In Bearbeitung'],
icon: 'kern-icon--assignment',
},
{
key: 'done',
values: ['abgeschlossen'],
icon: 'kern-icon--check',
},
],
},
],
time: {
targetProperty: 'start',
freeSelection: 'until',
last: [0, 7, 30],
pattern: 'YYYYMMDD',
},
},
},
}),
},
],
[
{
plugin: pluginLayerChooser({}),
Expand Down
2 changes: 1 addition & 1 deletion src/architecture.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ describe('Architectural checks', () => {
.matchingPattern('^plugins/.*$')
.should()
.matchPattern(
'^plugins/[^/]+/((index|locales|store|types)\\.ts|utils/.*\\.ts|components/.*\\.spec\\.ts)$'
'^plugins/[^/]+/((index|locales|store|types)\\.ts|utils/.*\\.ts|components/.*\\.spec\\.ts|stores/.*\\.ts)$'
)
.check()
expect(violations).toEqual([])
Expand Down
2 changes: 1 addition & 1 deletion src/components/PolarCard.ce.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<template>
<article class="kern-card kern-card--small">
<article class="kern-card kern-card--small" tabindex="-1">
<div class="kern-card__container">
<slot />
</div>
Expand Down
37 changes: 37 additions & 0 deletions src/components/kern/KernBlockButton.ce.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
<template>
<button
class="kern-btn kern-btn--block kern-btn--tertiary"
@click="emit('click')"
>
<span
v-if="props.icon"
:class="{ 'kern-icon': true, [props.icon]: true }"
aria-hidden="true"
/>
<span class="kern-label">{{ props.label }}</span>
</button>
</template>

<script setup lang="ts">
import type { Icon } from '@/core'

const props = defineProps<{
icon?: Icon | false
label: string
}>()

const emit = defineEmits<{
click: []
}>()
</script>

<style scoped>
.kern-btn--tertiary {
background-color: #edf1fa;
justify-content: left;

.kern-label {
text-decoration: none;
}
}
</style>
78 changes: 78 additions & 0 deletions src/components/kern/KernBlockButtonCheckbox.ce.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,78 @@
<template>
<input
:id="id"
v-model="model"
type="checkbox"
@keydown.prevent.enter="model = !model"
@focus="scrollVisible($event)"
/>
<label :for="id" class="kern-btn kern-btn--block kern-btn--tertiary">
<span
v-if="props.icon"
:class="{ 'kern-icon': true, [props.icon]: true }"
aria-hidden="true"
/>
<span class="kern-label">{{ props.label }}</span>
</label>
</template>

<script setup lang="ts">
import { useId } from 'vue'

import type { Icon } from '@/core'

const props = defineProps<{
icon?: Icon | false
label: string
}>()

const model = defineModel<boolean>({ required: true })

const id = useId()

function scrollVisible(evt: FocusEvent) {
const target = evt.target as HTMLInputElement
const label = target.parentElement?.querySelector(`label[for="${target.id}"]`)
if (label?.scrollIntoView) {
label.scrollIntoView({
behavior: 'smooth',
block: 'nearest',
inline: 'nearest',
})
}
}
</script>

<style scoped>
.kern-btn--tertiary {
background-color: #edf1fa;
justify-content: left;

.kern-label {
text-decoration: none;
}
}

label {
border: var(--kern-metric-border-width-default) solid transparent;
}

input[type='checkbox'] {
position: absolute;
height: 0;
clip-path: circle(0);

&:focus-visible + label {
padding: var(--kern-metric-space-none) var(--kern-metric-space-default);
border-radius: var(--kern-metric-border-radius-default);
box-shadow:
0 0 0 2px var(--kern-color-action-on-default),
0 0 0 4px var(--kern-color-action-focus-border-inside),
0 0 0 6px var(--kern-color-action-focus-border-outside);
}

&:checked + label {
border-color: var(--kern-color-action-default);
}
}
</style>
101 changes: 101 additions & 0 deletions src/components/kern/KernBlockButtonRadioGroup.ce.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,101 @@
<template>
<div class="radiogroup" role="radiogroup">
<template v-for="(item, idx) of props.items" :key="item.value">
<span
ref="radios"
role="radio"
:aria-checked="model === item.value"
:aria-labelledby="id + '*' + item.value"
tabindex="0"
:data-value="item.value"
@keydown.prevent.space="model = item.value"
@keydown.prevent.enter="model = item.value"
@focus="scrollVisible($event)"
/>
<label
:id="id + '*' + item.value"
class="kern-btn kern-btn--block kern-btn--tertiary"
@click.prevent="((model = item.value), radios?.[idx].focus())"
>
<span
v-if="item.icon"
:class="{ 'kern-icon': true, [item.icon]: true }"
aria-hidden="true"
/>
<span class="kern-label">{{ item.label }}</span>
</label>
</template>
</div>
</template>

<script setup lang="ts">
import { useId, useTemplateRef } from 'vue'

import type { Icon } from '@/core'

const props = defineProps<{
items: {
value: string
label: string
icon?: Icon | false
}[]
}>()

const model = defineModel<string>({ required: true })

const id = useId()

const radios = useTemplateRef<HTMLInputElement>('radios')

function scrollVisible(evt: FocusEvent) {
const target = evt.target as HTMLInputElement
const label = target.parentElement?.querySelector(
`label[id="${target.getAttribute('aria-labelledby')}"]`
)
if (label?.scrollIntoView) {
label.scrollIntoView({
behavior: 'smooth',
block: 'nearest',
inline: 'nearest',
})
}
}
</script>

<style scoped>
.radiogroup {
display: contents;
}

.kern-btn--tertiary {
background-color: #edf1fa;
justify-content: left;

.kern-label {
text-decoration: none;
}
}

label {
border: var(--kern-metric-border-width-default) solid transparent;
}

[role='radio'] {
position: absolute;
height: 0;
clip-path: circle(0);

&:focus-visible + label {
padding: var(--kern-metric-space-none) var(--kern-metric-space-default);
border-radius: var(--kern-metric-border-radius-default);
box-shadow:
0 0 0 2px var(--kern-color-action-on-default),
0 0 0 4px var(--kern-color-action-focus-border-inside),
0 0 0 6px var(--kern-color-action-focus-border-outside);
}

&[aria-checked='true'] + label {
border-color: var(--kern-color-action-default);
}
}
</style>
29 changes: 29 additions & 0 deletions src/components/kern/KernCheckbox.ce.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
<template>
<div class="kern-form-check">
<input
:id="id"
v-model="model"
class="kern-form-check__checkbox"
type="checkbox"
@keydown.prevent.enter="model = !model"
/>
<label :for="id" class="kern-label">
{{ props.label }}
</label>
</div>
</template>

<script setup lang="ts">
import { useId } from 'vue'

import type { Icon } from '@/core'

const props = defineProps<{
icon?: Icon | false
label: string
}>()

const model = defineModel<boolean>({ required: true })

const id = useId()
</script>
Loading
Loading