Skip to content
Merged
Show file tree
Hide file tree
Changes from 6 commits
Commits
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 src/Umbraco.Web.UI.Client/src/assets/lang/da.ts
Original file line number Diff line number Diff line change
Expand Up @@ -848,6 +848,7 @@ export default {
details: 'Detaljer',
dictionary: 'Ordbog',
dimensions: 'Dimensioner',
dividerPosition: (value: string | number) => `Skillevæg ved ${value}%`,
discard: 'Kassér',
down: 'Ned',
download: 'Hent',
Expand Down
1 change: 1 addition & 0 deletions src/Umbraco.Web.UI.Client/src/assets/lang/de.ts
Original file line number Diff line number Diff line change
Expand Up @@ -770,6 +770,7 @@ export default {
design: 'Design',
dictionary: 'Wörterbuch',
dimensions: 'Abmessungen',
dividerPosition: (value: string | number) => `Trenner bei ${value}%`,
discard: 'Verwerfen',
down: 'nach unten',
download: 'Herunterladen',
Expand Down
1 change: 1 addition & 0 deletions src/Umbraco.Web.UI.Client/src/assets/lang/en.ts
Original file line number Diff line number Diff line change
Expand Up @@ -847,6 +847,7 @@ export default {
details: 'Details',
dictionary: 'Dictionary',
dimensions: 'Dimensions',
dividerPosition: (value: string | number) => `Divider at ${value}%`,
discard: 'Discard',
document: 'Document',
down: 'Down',
Expand Down
1 change: 1 addition & 0 deletions src/Umbraco.Web.UI.Client/src/assets/lang/es.ts
Original file line number Diff line number Diff line change
Expand Up @@ -481,6 +481,7 @@ export default {
design: 'Diseño',
dictionary: 'Diccionario',
dimensions: 'Dimensiones',
dividerPosition: (value: string | number) => `Divisor en ${value}%`,
down: 'Abajo',
download: 'Descargar',
edit: 'Editar',
Expand Down
1 change: 1 addition & 0 deletions src/Umbraco.Web.UI.Client/src/assets/lang/fr.ts
Original file line number Diff line number Diff line change
Expand Up @@ -673,6 +673,7 @@ export default {
design: 'Design',
dictionary: 'Dictionnaire',
dimensions: 'Dimensions',
dividerPosition: (value: string | number) => `Séparateur à ${value}%`,
down: 'Bas',
download: 'Télécharger',
edit: 'Editer',
Expand Down
1 change: 1 addition & 0 deletions src/Umbraco.Web.UI.Client/src/assets/lang/nl.ts
Original file line number Diff line number Diff line change
Expand Up @@ -688,6 +688,7 @@ export default {
design: 'Ontwerp',
dictionary: 'Woordenboek',
dimensions: 'Afmetingen',
dividerPosition: (value: string | number) => `Verdeler op ${value}%`,
discard: 'Gooi weg',
down: 'Omlaag',
download: 'Download',
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { UmbLitElement } from '@umbraco-cms/backoffice/lit-element';
import {
type PropertyValueMap,
LitElement,

Check failure on line 4 in src/Umbraco.Web.UI.Client/src/packages/core/components/split-panel/split-panel.element.ts

View workflow job for this annotation

GitHub Actions / build

'LitElement' is defined but never used
css,
customElement,
html,
Expand All @@ -23,7 +24,7 @@
* @cssprop --umb-split-panel-divider-color - Color of the divider.
*/
@customElement('umb-split-panel')
export class UmbSplitPanelElement extends LitElement {
export class UmbSplitPanelElement extends UmbLitElement {
@query('#main') mainElement!: HTMLElement;
@query('#divider-touch-area') dividerTouchAreaElement!: HTMLElement;
@query('#divider') dividerElement!: HTMLElement;
Expand Down Expand Up @@ -91,11 +92,17 @@
}

#setPosition(pos: number) {
const { width } = this.mainElement.getBoundingClientRect();
const localPos = clamp(pos, 0, width);
const percentagePos = (localPos / width) * 100;
this.position = percentagePos + '%';
}
const { width } = this.mainElement.getBoundingClientRect();
const localPos = clamp(pos, 0, width);
const percentagePos = (localPos / width) * 100;
this.position = percentagePos + '%';

// Update ARIA value for divider
const formatted = percentagePos.toFixed(0);
const ariaText = this.localize?.term('general_dividerPosition', [formatted]) ?? `Divider at ${formatted}%`;

this.dividerTouchAreaElement.setAttribute('aria-valuetext', ariaText);
}

#updateSplit() {
// If lock is none
Expand Down
Loading