@limetech/lime-elements 38.35.0 → 38.36.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/CHANGELOG.md +17 -0
- package/dist/cjs/lime-elements.cjs.js +1 -1
- package/dist/cjs/limel-action-bar_2.cjs.entry.js +1 -1
- package/dist/cjs/limel-ai-avatar.cjs.entry.js +1 -1
- package/dist/cjs/limel-callout.cjs.entry.js +1 -1
- package/dist/cjs/limel-chart.cjs.entry.js +1 -1
- package/dist/cjs/limel-chip_2.cjs.entry.js +1 -1
- package/dist/cjs/limel-code-editor.cjs.entry.js +49 -2
- package/dist/cjs/limel-code-editor.cjs.entry.js.map +1 -1
- package/dist/cjs/limel-collapsible-section.cjs.entry.js +1 -1
- package/dist/cjs/limel-dialog.cjs.entry.js +4 -4
- package/dist/cjs/limel-dialog.cjs.entry.js.map +1 -1
- package/dist/cjs/limel-drag-handle.cjs.entry.js +1 -1
- package/dist/cjs/limel-file-viewer.cjs.entry.js +1 -1
- package/dist/cjs/limel-file.cjs.entry.js +1 -1
- package/dist/cjs/limel-flatpickr-adapter.cjs.entry.js +1 -1
- package/dist/cjs/limel-linear-progress.cjs.entry.js +1 -1
- package/dist/cjs/limel-list-item.cjs.entry.js +1 -1
- package/dist/cjs/limel-profile-picture.cjs.entry.js +1 -1
- package/dist/cjs/limel-prosemirror-adapter.cjs.entry.js +1 -1
- package/dist/cjs/limel-snackbar.cjs.entry.js +1 -1
- package/dist/cjs/limel-table.cjs.entry.js +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{translations-e58b6da5.js → translations-350aa16f.js} +57 -1
- package/dist/cjs/translations-350aa16f.js.map +1 -0
- package/dist/collection/components/code-editor/code-editor.css +73 -20
- package/dist/collection/components/code-editor/code-editor.js +73 -2
- package/dist/collection/components/code-editor/code-editor.js.map +1 -1
- package/dist/collection/components/dialog/dialog.js +4 -4
- package/dist/collection/components/dialog/dialog.js.map +1 -1
- package/dist/collection/components/dialog/dialog.types.js.map +1 -1
- package/dist/collection/translations/da.js +7 -0
- package/dist/collection/translations/da.js.map +1 -1
- package/dist/collection/translations/de.js +7 -0
- package/dist/collection/translations/de.js.map +1 -1
- package/dist/collection/translations/en.js +7 -0
- package/dist/collection/translations/en.js.map +1 -1
- package/dist/collection/translations/fi.js +7 -0
- package/dist/collection/translations/fi.js.map +1 -1
- package/dist/collection/translations/fr.js +7 -0
- package/dist/collection/translations/fr.js.map +1 -1
- package/dist/collection/translations/nl.js +7 -0
- package/dist/collection/translations/nl.js.map +1 -1
- package/dist/collection/translations/no.js +7 -0
- package/dist/collection/translations/no.js.map +1 -1
- package/dist/collection/translations/sv.js +7 -0
- package/dist/collection/translations/sv.js.map +1 -1
- package/dist/esm/lime-elements.js +1 -1
- package/dist/esm/limel-action-bar_2.entry.js +1 -1
- package/dist/esm/limel-ai-avatar.entry.js +1 -1
- package/dist/esm/limel-callout.entry.js +1 -1
- package/dist/esm/limel-chart.entry.js +1 -1
- package/dist/esm/limel-chip_2.entry.js +1 -1
- package/dist/esm/limel-code-editor.entry.js +49 -2
- package/dist/esm/limel-code-editor.entry.js.map +1 -1
- package/dist/esm/limel-collapsible-section.entry.js +1 -1
- package/dist/esm/limel-dialog.entry.js +4 -4
- package/dist/esm/limel-dialog.entry.js.map +1 -1
- package/dist/esm/limel-drag-handle.entry.js +1 -1
- package/dist/esm/limel-file-viewer.entry.js +1 -1
- package/dist/esm/limel-file.entry.js +1 -1
- package/dist/esm/limel-flatpickr-adapter.entry.js +1 -1
- package/dist/esm/limel-linear-progress.entry.js +1 -1
- package/dist/esm/limel-list-item.entry.js +1 -1
- package/dist/esm/limel-profile-picture.entry.js +1 -1
- package/dist/esm/limel-prosemirror-adapter.entry.js +1 -1
- package/dist/esm/limel-snackbar.entry.js +1 -1
- package/dist/esm/limel-table.entry.js +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/esm/{translations-4151479a.js → translations-694c7c68.js} +57 -1
- package/dist/esm/translations-694c7c68.js.map +1 -0
- package/dist/lime-elements/lime-elements.esm.js +1 -1
- package/dist/lime-elements/lime-elements.esm.js.map +1 -1
- package/dist/lime-elements/{p-3746c217.entry.js → p-20950d83.entry.js} +2 -2
- package/dist/lime-elements/{p-d76d70ce.entry.js → p-416f25fc.entry.js} +2 -2
- package/dist/lime-elements/{p-ffedb0be.entry.js → p-4ddb8b05.entry.js} +2 -2
- package/dist/lime-elements/{p-68799403.entry.js → p-533a3cfb.entry.js} +2 -2
- package/dist/lime-elements/{p-158897dd.entry.js → p-5eaa6f69.entry.js} +2 -2
- package/dist/lime-elements/{p-bf527989.entry.js → p-5f113a63.entry.js} +2 -2
- package/dist/lime-elements/{p-61b2e426.entry.js → p-6ef94d19.entry.js} +2 -2
- package/dist/lime-elements/{p-7da20f22.entry.js → p-706c2e84.entry.js} +2 -2
- package/dist/lime-elements/p-745417ee.entry.js +2 -0
- package/dist/lime-elements/p-745417ee.entry.js.map +1 -0
- package/dist/lime-elements/{p-ef1d26ac.entry.js → p-874f06f0.entry.js} +3 -3
- package/dist/lime-elements/p-874f06f0.entry.js.map +1 -0
- package/dist/lime-elements/{p-13bd2797.entry.js → p-8c667a56.entry.js} +2 -2
- package/dist/lime-elements/{p-99f5e70b.entry.js → p-9b809f4d.entry.js} +2 -2
- package/dist/lime-elements/{p-182ce303.entry.js → p-aa159bd8.entry.js} +2 -2
- package/dist/lime-elements/{p-7e1a548a.entry.js → p-bb0095c2.entry.js} +2 -2
- package/dist/lime-elements/{p-f529b510.entry.js → p-c823d32b.entry.js} +2 -2
- package/dist/lime-elements/{p-23de215d.entry.js → p-d497cac7.entry.js} +2 -2
- package/dist/lime-elements/p-df36e1ae.js +2 -0
- package/dist/lime-elements/p-df36e1ae.js.map +1 -0
- package/dist/lime-elements/{p-6d9fb8e8.entry.js → p-e739d600.entry.js} +2 -2
- package/dist/lime-elements/{p-dc55f5ca.entry.js → p-f8b6d7e1.entry.js} +2 -2
- package/dist/types/components/code-editor/code-editor.d.ts +11 -0
- package/dist/types/components/dialog/dialog.d.ts +1 -1
- package/dist/types/components/dialog/dialog.types.d.ts +1 -1
- package/dist/types/components.d.ts +8 -0
- package/dist/types/translations/da.d.ts +7 -0
- package/dist/types/translations/de.d.ts +7 -0
- package/dist/types/translations/en.d.ts +7 -0
- package/dist/types/translations/fi.d.ts +7 -0
- package/dist/types/translations/fr.d.ts +7 -0
- package/dist/types/translations/nl.d.ts +7 -0
- package/dist/types/translations/no.d.ts +7 -0
- package/dist/types/translations/sv.d.ts +7 -0
- package/package.json +1 -1
- package/dist/cjs/translations-e58b6da5.js.map +0 -1
- package/dist/esm/translations-4151479a.js.map +0 -1
- package/dist/lime-elements/p-93ea4214.entry.js +0 -2
- package/dist/lime-elements/p-93ea4214.entry.js.map +0 -1
- package/dist/lime-elements/p-c582027f.js +0 -2
- package/dist/lime-elements/p-c582027f.js.map +0 -1
- package/dist/lime-elements/p-ef1d26ac.entry.js.map +0 -1
- /package/dist/lime-elements/{p-3746c217.entry.js.map → p-20950d83.entry.js.map} +0 -0
- /package/dist/lime-elements/{p-d76d70ce.entry.js.map → p-416f25fc.entry.js.map} +0 -0
- /package/dist/lime-elements/{p-ffedb0be.entry.js.map → p-4ddb8b05.entry.js.map} +0 -0
- /package/dist/lime-elements/{p-68799403.entry.js.map → p-533a3cfb.entry.js.map} +0 -0
- /package/dist/lime-elements/{p-158897dd.entry.js.map → p-5eaa6f69.entry.js.map} +0 -0
- /package/dist/lime-elements/{p-bf527989.entry.js.map → p-5f113a63.entry.js.map} +0 -0
- /package/dist/lime-elements/{p-61b2e426.entry.js.map → p-6ef94d19.entry.js.map} +0 -0
- /package/dist/lime-elements/{p-7da20f22.entry.js.map → p-706c2e84.entry.js.map} +0 -0
- /package/dist/lime-elements/{p-13bd2797.entry.js.map → p-8c667a56.entry.js.map} +0 -0
- /package/dist/lime-elements/{p-99f5e70b.entry.js.map → p-9b809f4d.entry.js.map} +0 -0
- /package/dist/lime-elements/{p-182ce303.entry.js.map → p-aa159bd8.entry.js.map} +0 -0
- /package/dist/lime-elements/{p-7e1a548a.entry.js.map → p-bb0095c2.entry.js.map} +0 -0
- /package/dist/lime-elements/{p-f529b510.entry.js.map → p-c823d32b.entry.js.map} +0 -0
- /package/dist/lime-elements/{p-23de215d.entry.js.map → p-d497cac7.entry.js.map} +0 -0
- /package/dist/lime-elements/{p-6d9fb8e8.entry.js.map → p-e739d600.entry.js.map} +0 -0
- /package/dist/lime-elements/{p-dc55f5ca.entry.js.map → p-f8b6d7e1.entry.js.map} +0 -0
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{r as e,h as i,H as t}from"./p-288f0842.js";import{g as o}from"./p-d251f404.js";import{c as l}from"./p-ad52787a.js";import{C as r}from"./p-8ded6465.js";import{t as a}from"./p-c582027f.js";const s='@charset "UTF-8";*,*:before,*:after{box-sizing:border-box}.boolean-input{--limel-boolean-input-box-size:1.25rem;--limel-boolean-input-gap-size:0.5rem;position:relative;isolation:isolate;display:flex;align-items:center;min-height:var(--limel-checkbox-min-height, 2.5rem);width:100%}.boolean-input input[type=checkbox],.boolean-input input[type=radio]{position:absolute;width:0;height:0;margin:-1px;padding:0;border:0;overflow:hidden;clip:rect(0, 0, 0, 0);clip-path:inset(50%);white-space:nowrap;-webkit-appearance:none;-moz-appearance:none;appearance:none}label.boolean-input-label{min-width:var(--limel-boolean-input-box-size);min-height:var(--limel-boolean-input-box-size);padding-top:0.125rem;cursor:pointer;position:relative;width:100%;font-size:var(--limel-theme-default-small-font-size);color:var(--limel-theme-text-primary-on-background-color);padding-left:calc(var(--limel-boolean-input-box-size) + var(--limel-boolean-input-gap-size))}.disabled:not([readonly]):not([readonly=true]) label.boolean-input-label{cursor:not-allowed;color:var(--limel-theme-text-disabled-color)}.required label.boolean-input-label:after{margin-left:0.0625rem;content:"*"}.invalid:not(.readonly) label.boolean-input-label{color:var(--limel-theme-error-text-color)}:host(limel-checkbox.hide-label) label.boolean-input-label,.hide-label label.boolean-input-label{overflow:hidden;white-space:nowrap;text-overflow:ellipsis;opacity:0;width:var(--limel-boolean-input-box-size)}.box{position:absolute;pointer-events:none;transition:border-color 0.4s ease 0.2s, background-color 0.2s ease, box-shadow var(--limel-clickable-transform-speed, 0.4s) ease;display:inline-block;vertical-align:middle;width:var(--limel-boolean-input-box-size);height:var(--limel-boolean-input-box-size);margin-right:var(--limel-boolean-input-gap-size);border-radius:var(--limel-boolean-input-box-border-radius);border:0.125rem solid;border-color:var(--checkbox-unchecked-border-color, rgb(var(--contrast-900)));background-color:var(--limel-checkbox-background-color, rgb(var(--contrast-300)));}.checked .box,.boolean-input>input[type=checkbox]:checked+.box,.boolean-input>input[type=radio]:checked+.box{background-color:var(--lime-primary-color, var(--limel-theme-primary-color));border-color:var(--lime-primary-color, var(--limel-theme-primary-color))}.disabled .box{opacity:0.4}.boolean-input:not(.disabled):hover .box{will-change:box-shadow;box-shadow:var(--button-shadow-hovered)}.boolean-input:not(.disabled):active .box{will-change:box-shadow;box-shadow:var(--button-shadow-pressed)}.box:before{transition:color var(--limel-clickable-transition-speed, 0.4s) ease, background-color var(--limel-clickable-transition-speed, 0.4s) ease, box-shadow var(--limel-clickable-transform-speed, 0.4s) ease, transform var(--limel-clickable-transform-speed, 0.4s) var(--limel-clickable-transform-timing-function, ease);content:"";position:absolute;inset:-0.1875rem;border-radius:inherit;}.boolean-input>input[type=checkbox]:focus-visible+.box:before,.boolean-input>input[type=radio]:focus-visible+.box:before{will-change:box-shadow;box-shadow:var(--shadow-depth-8-focused)}.box:after{transition:opacity 0.2s ease, width 0.4s ease, box-shadow 0.6s cubic-bezier(0.68, -0.55, 0, 1.87), transform 0.6s cubic-bezier(0.68, -0.55, 0, 1.87);content:"";position:absolute;inset:0;margin:auto;border-radius:1rem;opacity:0;background-color:rgb(var(--color-white));}.boolean-input:not(.disabled):hover .box:after{will-change:opacity, box-shadow, transform, width}:host(limel-checkbox){min-height:var(--limel-checkbox-min-height, 2.5rem)}.box:after{height:0.125rem;width:0.25rem}.indeterminate .box:after{opacity:1;width:calc(var(--limel-boolean-input-box-size) - 0.5rem)}.checkbox{--limel-boolean-input-box-border-radius:0.25rem;}.checkbox svg.check-mark{position:absolute;z-index:1;inset:0;transform:translate3d(-0.125rem, -0.125rem, 0);width:var(--limel-boolean-input-box-size);height:var(--limel-boolean-input-box-size);padding:0.25rem;color:rgb(var(--color-white));opacity:0;stroke-width:0.1875rem;stroke:currentColor;stroke-linecap:round;stroke-linejoin:round}.checkbox svg.check-mark path{stroke-dashoffset:29.7833;stroke-dasharray:29.7833;transition:stroke-dashoffset 180ms cubic-bezier(0.4, 0, 0.6, 1)}.checkbox:not(.indeterminate)>input[type=checkbox]:checked+.box svg.check-mark{opacity:1}.checkbox:not(.indeterminate)>input[type=checkbox]:checked+.box svg.check-mark path{stroke-dashoffset:0}limel-dynamic-label{margin-top:0.375rem;margin-left:-0.25rem}:host(limel-checkbox:focus),:host(limel-checkbox:focus-visible),:host(limel-checkbox:focus-within){--limel-h-l-grid-template-rows-transition-speed:0.46s;--limel-h-l-grid-template-rows:1fr}:host(limel-checkbox){--limel-h-l-grid-template-rows-transition-speed:0.3s;--limel-h-l-grid-template-rows:0fr}:host(limel-checkbox:focus) limel-helper-line,:host(limel-checkbox:focus-visible) limel-helper-line,:host(limel-checkbox:focus-within) limel-helper-line,:host(limel-checkbox:hover) limel-helper-line{will-change:grid-template-rows}*,*:before,*:after{box-sizing:border-box}limel-list-item{min-height:2.5rem;transition:background-color 0.6s ease;position:relative;isolation:isolate;display:flex;align-items:center;gap:0.5rem;padding:0 1rem;background-color:rgb(var(--contrast-100))}limel-list-item:focus{outline:none}limel-list-item:focus-visible{outline:none;box-shadow:var(--shadow-depth-8-focused)}limel-list-item:hover{z-index:1;transition:background-color 0.2s ease;border-radius:0.5rem}limel-list-item:focus,limel-list-item:focus-visible,limel-list-item:active{z-index:1;border-radius:0.5rem}limel-list-item:first-of-type{border-top-left-radius:0.5rem;border-top-right-radius:0.5rem}limel-list-item:last-of-type{border-bottom-left-radius:0.5rem;border-bottom-right-radius:0.5rem}limel-list-item:not([disabled]):not([disabled=true]){cursor:pointer}limel-list-item[disabled]:not([disabled=false]){cursor:not-allowed}limel-list-item[disabled]:not([disabled=false]){cursor:not-allowed}limel-list-item[disabled]:not([disabled=false]) .text,limel-list-item[disabled]:not([disabled=false]) limel-icon,limel-list-item[disabled]:not([disabled=false]) img,limel-list-item[disabled]:not([disabled=false]) .boolean-input{opacity:0.4}limel-list-item:not([disabled]):not([disabled=true]):hover,limel-list-item:not([disabled]):not([disabled=true]):focus-visible{background-color:rgb(var(--contrast-400))}limel-list-item[type=option]:before{transition:background-color 0.6s ease;content:"";position:absolute;inset:0;opacity:0.2;border-radius:0.5rem}limel-list-item[type=option][selected]:not([selected=false]):before{transition:background-color 0.2s ease;background-color:var(--limel-theme-primary-color)}limel-list-item .text{flex-grow:1;min-width:0;display:flex;flex-direction:column;padding:0.5rem 0;color:var(--limel-theme-text-primary-on-background-color)}limel-list-item .label{overflow:hidden;white-space:nowrap;text-overflow:ellipsis;font-size:var(--limel-theme-default-font-size);line-height:1rem}limel-list-item .description{display:-webkit-box;overflow:hidden;white-space:normal;-webkit-box-orient:vertical;-webkit-line-clamp:var(--maxLinesSecondaryText);line-height:1rem;font-size:var(--limel-theme-default-small-font-size);opacity:0.6}limel-list-item limel-icon{color:var(--limel-theme-text-secondary-on-background-color);flex-shrink:0;margin-left:-0.5rem}limel-list-item limel-icon:has(+img){margin-left:0;position:absolute;top:0.125rem;left:0.125rem;padding:0.1875rem;width:1.25rem;background-color:rgb(var(--contrast-200), 0.8)}limel-list-item img{flex-shrink:0;object-fit:cover;border-radius:50%;width:2rem;height:2rem;box-shadow:0 0 0 1px rgb(var(--contrast-800), 0.5)}limel-list-item limel-menu{margin-right:-0.5rem;order:var(--limel-list-item-menu-order, 3)}limel-list-item[role=menuitem] limel-list-item .label{font-size:var(--limel-theme-default-small-font-size)}.boolean-input,limel-radio-button{width:var(--limel-boolean-input-box-size) !important;margin-left:-0.25rem !important}.boolean-input.checkbox{margin-right:0.25rem}limel-list-item:has(limel-icon) .boolean-input,limel-list-item:has(img) .boolean-input{margin-right:-0.25rem;margin-left:0;order:2}.boolean-input .boolean-input-label{overflow:hidden;white-space:nowrap;text-overflow:ellipsis;opacity:0;width:var(--limel-boolean-input-box-size)}';const n=class{constructor(t){e(this,t);this.renderLabel=()=>i("span",{class:"label",id:this.labelId},this.text);this.renderDescription=()=>{if(!this.secondaryText){return}return i("span",{class:"description",id:this.descriptionId},this.secondaryText)};this.renderIcon=()=>{const e=o(this.icon);if(!e){return}let t;let l;let r;if(typeof this.icon==="object"){t=this.icon.color;l=this.icon.backgroundColor;r=this.icon.title}const a={"aria-label":r,"aria-hidden":r?null:"true",name:e,style:{color:t,"background-color":l},badge:this.badgeIcon,size:this.iconSize};return i("limel-icon",Object.assign({},a))};this.renderPrimaryComponent=()=>{const e=this.primaryComponent;if(!(e===null||e===void 0?void 0:e.name)){return}const t=e.name;const o=e.props||{};return i(t,Object.assign({},o))};this.renderImage=()=>{if(!this.image){return}return i("img",{src:this.image.src,alt:this.image.alt,loading:"lazy"})};this.renderActionMenu=e=>{if(!e||e.length===0){return}const t=this.getStableActions(e);return i("limel-menu",{class:"mdc-deprecated-list-item__meta",items:t,openDirection:"left-start"},i("limel-icon-button",{class:"action-menu-trigger",slot:"trigger",icon:"menu_2",label:this.actionMenuLabel()}))};this.renderRadioButton=()=>{if(this.type!=="radio"){return}return i("limel-radio-button",{id:`radio_${this.labelId}`,checked:this.selected,disabled:this.disabled})};this.renderCheckbox=()=>{if(this.type!=="checkbox"){return}return i(r,{id:`checkbox_${this.labelId}`,checked:this.selected,disabled:this.disabled})};this.actionMenuLabel=()=>a.get("file-viewer.more-actions",this.language);this.language="en";this.value=undefined;this.text=undefined;this.secondaryText=undefined;this.disabled=false;this.icon=undefined;this.iconSize="small";this.badgeIcon=false;this.selected=false;this.actions=undefined;this.primaryComponent=undefined;this.image=undefined;this.type="listitem";this.labelId=l();this.descriptionId=l()}render(){var e;const o={"aria-labelledby":this.labelId,"aria-describedby":this.secondaryText?this.descriptionId:undefined,"aria-disabled":this.disabled?"true":"false"};if(this.type==="radio"||this.type==="checkbox"){o["aria-checked"]=this.selected?"true":"false"}else if(this.type==="option"||this.type==="menuitem"){o["aria-selected"]=this.selected?"true":"false"}return i(t,Object.assign({role:this.getHostRole(),class:{"has-primary-component":!!((e=this.primaryComponent)===null||e===void 0?void 0:e.name)}},o),this.renderRadioButton(),this.renderCheckbox(),this.renderIcon(),this.renderImage(),this.renderPrimaryComponent(),i("div",{class:"text"},this.renderLabel(),this.renderDescription()),this.renderActionMenu(this.actions))}getStableActions(e){if(this.memoizedActions===e){return this.memoizedActions}this.memoizedActions=e;return e}getHostRole(){switch(this.type){case"option":{return"option"}case"radio":{return"radio"}case"checkbox":{return"checkbox"}case"menuitem":{return"menuitem"}default:{return"listitem"}}}};n.style=s;export{n as limel_list_item};
|
|
2
|
-
//# sourceMappingURL=p-
|
|
1
|
+
import{r as e,h as i,H as t}from"./p-288f0842.js";import{g as o}from"./p-d251f404.js";import{c as l}from"./p-ad52787a.js";import{C as r}from"./p-8ded6465.js";import{t as a}from"./p-df36e1ae.js";const s='@charset "UTF-8";*,*:before,*:after{box-sizing:border-box}.boolean-input{--limel-boolean-input-box-size:1.25rem;--limel-boolean-input-gap-size:0.5rem;position:relative;isolation:isolate;display:flex;align-items:center;min-height:var(--limel-checkbox-min-height, 2.5rem);width:100%}.boolean-input input[type=checkbox],.boolean-input input[type=radio]{position:absolute;width:0;height:0;margin:-1px;padding:0;border:0;overflow:hidden;clip:rect(0, 0, 0, 0);clip-path:inset(50%);white-space:nowrap;-webkit-appearance:none;-moz-appearance:none;appearance:none}label.boolean-input-label{min-width:var(--limel-boolean-input-box-size);min-height:var(--limel-boolean-input-box-size);padding-top:0.125rem;cursor:pointer;position:relative;width:100%;font-size:var(--limel-theme-default-small-font-size);color:var(--limel-theme-text-primary-on-background-color);padding-left:calc(var(--limel-boolean-input-box-size) + var(--limel-boolean-input-gap-size))}.disabled:not([readonly]):not([readonly=true]) label.boolean-input-label{cursor:not-allowed;color:var(--limel-theme-text-disabled-color)}.required label.boolean-input-label:after{margin-left:0.0625rem;content:"*"}.invalid:not(.readonly) label.boolean-input-label{color:var(--limel-theme-error-text-color)}:host(limel-checkbox.hide-label) label.boolean-input-label,.hide-label label.boolean-input-label{overflow:hidden;white-space:nowrap;text-overflow:ellipsis;opacity:0;width:var(--limel-boolean-input-box-size)}.box{position:absolute;pointer-events:none;transition:border-color 0.4s ease 0.2s, background-color 0.2s ease, box-shadow var(--limel-clickable-transform-speed, 0.4s) ease;display:inline-block;vertical-align:middle;width:var(--limel-boolean-input-box-size);height:var(--limel-boolean-input-box-size);margin-right:var(--limel-boolean-input-gap-size);border-radius:var(--limel-boolean-input-box-border-radius);border:0.125rem solid;border-color:var(--checkbox-unchecked-border-color, rgb(var(--contrast-900)));background-color:var(--limel-checkbox-background-color, rgb(var(--contrast-300)));}.checked .box,.boolean-input>input[type=checkbox]:checked+.box,.boolean-input>input[type=radio]:checked+.box{background-color:var(--lime-primary-color, var(--limel-theme-primary-color));border-color:var(--lime-primary-color, var(--limel-theme-primary-color))}.disabled .box{opacity:0.4}.boolean-input:not(.disabled):hover .box{will-change:box-shadow;box-shadow:var(--button-shadow-hovered)}.boolean-input:not(.disabled):active .box{will-change:box-shadow;box-shadow:var(--button-shadow-pressed)}.box:before{transition:color var(--limel-clickable-transition-speed, 0.4s) ease, background-color var(--limel-clickable-transition-speed, 0.4s) ease, box-shadow var(--limel-clickable-transform-speed, 0.4s) ease, transform var(--limel-clickable-transform-speed, 0.4s) var(--limel-clickable-transform-timing-function, ease);content:"";position:absolute;inset:-0.1875rem;border-radius:inherit;}.boolean-input>input[type=checkbox]:focus-visible+.box:before,.boolean-input>input[type=radio]:focus-visible+.box:before{will-change:box-shadow;box-shadow:var(--shadow-depth-8-focused)}.box:after{transition:opacity 0.2s ease, width 0.4s ease, box-shadow 0.6s cubic-bezier(0.68, -0.55, 0, 1.87), transform 0.6s cubic-bezier(0.68, -0.55, 0, 1.87);content:"";position:absolute;inset:0;margin:auto;border-radius:1rem;opacity:0;background-color:rgb(var(--color-white));}.boolean-input:not(.disabled):hover .box:after{will-change:opacity, box-shadow, transform, width}:host(limel-checkbox){min-height:var(--limel-checkbox-min-height, 2.5rem)}.box:after{height:0.125rem;width:0.25rem}.indeterminate .box:after{opacity:1;width:calc(var(--limel-boolean-input-box-size) - 0.5rem)}.checkbox{--limel-boolean-input-box-border-radius:0.25rem;}.checkbox svg.check-mark{position:absolute;z-index:1;inset:0;transform:translate3d(-0.125rem, -0.125rem, 0);width:var(--limel-boolean-input-box-size);height:var(--limel-boolean-input-box-size);padding:0.25rem;color:rgb(var(--color-white));opacity:0;stroke-width:0.1875rem;stroke:currentColor;stroke-linecap:round;stroke-linejoin:round}.checkbox svg.check-mark path{stroke-dashoffset:29.7833;stroke-dasharray:29.7833;transition:stroke-dashoffset 180ms cubic-bezier(0.4, 0, 0.6, 1)}.checkbox:not(.indeterminate)>input[type=checkbox]:checked+.box svg.check-mark{opacity:1}.checkbox:not(.indeterminate)>input[type=checkbox]:checked+.box svg.check-mark path{stroke-dashoffset:0}limel-dynamic-label{margin-top:0.375rem;margin-left:-0.25rem}:host(limel-checkbox:focus),:host(limel-checkbox:focus-visible),:host(limel-checkbox:focus-within){--limel-h-l-grid-template-rows-transition-speed:0.46s;--limel-h-l-grid-template-rows:1fr}:host(limel-checkbox){--limel-h-l-grid-template-rows-transition-speed:0.3s;--limel-h-l-grid-template-rows:0fr}:host(limel-checkbox:focus) limel-helper-line,:host(limel-checkbox:focus-visible) limel-helper-line,:host(limel-checkbox:focus-within) limel-helper-line,:host(limel-checkbox:hover) limel-helper-line{will-change:grid-template-rows}*,*:before,*:after{box-sizing:border-box}limel-list-item{min-height:2.5rem;transition:background-color 0.6s ease;position:relative;isolation:isolate;display:flex;align-items:center;gap:0.5rem;padding:0 1rem;background-color:rgb(var(--contrast-100))}limel-list-item:focus{outline:none}limel-list-item:focus-visible{outline:none;box-shadow:var(--shadow-depth-8-focused)}limel-list-item:hover{z-index:1;transition:background-color 0.2s ease;border-radius:0.5rem}limel-list-item:focus,limel-list-item:focus-visible,limel-list-item:active{z-index:1;border-radius:0.5rem}limel-list-item:first-of-type{border-top-left-radius:0.5rem;border-top-right-radius:0.5rem}limel-list-item:last-of-type{border-bottom-left-radius:0.5rem;border-bottom-right-radius:0.5rem}limel-list-item:not([disabled]):not([disabled=true]){cursor:pointer}limel-list-item[disabled]:not([disabled=false]){cursor:not-allowed}limel-list-item[disabled]:not([disabled=false]){cursor:not-allowed}limel-list-item[disabled]:not([disabled=false]) .text,limel-list-item[disabled]:not([disabled=false]) limel-icon,limel-list-item[disabled]:not([disabled=false]) img,limel-list-item[disabled]:not([disabled=false]) .boolean-input{opacity:0.4}limel-list-item:not([disabled]):not([disabled=true]):hover,limel-list-item:not([disabled]):not([disabled=true]):focus-visible{background-color:rgb(var(--contrast-400))}limel-list-item[type=option]:before{transition:background-color 0.6s ease;content:"";position:absolute;inset:0;opacity:0.2;border-radius:0.5rem}limel-list-item[type=option][selected]:not([selected=false]):before{transition:background-color 0.2s ease;background-color:var(--limel-theme-primary-color)}limel-list-item .text{flex-grow:1;min-width:0;display:flex;flex-direction:column;padding:0.5rem 0;color:var(--limel-theme-text-primary-on-background-color)}limel-list-item .label{overflow:hidden;white-space:nowrap;text-overflow:ellipsis;font-size:var(--limel-theme-default-font-size);line-height:1rem}limel-list-item .description{display:-webkit-box;overflow:hidden;white-space:normal;-webkit-box-orient:vertical;-webkit-line-clamp:var(--maxLinesSecondaryText);line-height:1rem;font-size:var(--limel-theme-default-small-font-size);opacity:0.6}limel-list-item limel-icon{color:var(--limel-theme-text-secondary-on-background-color);flex-shrink:0;margin-left:-0.5rem}limel-list-item limel-icon:has(+img){margin-left:0;position:absolute;top:0.125rem;left:0.125rem;padding:0.1875rem;width:1.25rem;background-color:rgb(var(--contrast-200), 0.8)}limel-list-item img{flex-shrink:0;object-fit:cover;border-radius:50%;width:2rem;height:2rem;box-shadow:0 0 0 1px rgb(var(--contrast-800), 0.5)}limel-list-item limel-menu{margin-right:-0.5rem;order:var(--limel-list-item-menu-order, 3)}limel-list-item[role=menuitem] limel-list-item .label{font-size:var(--limel-theme-default-small-font-size)}.boolean-input,limel-radio-button{width:var(--limel-boolean-input-box-size) !important;margin-left:-0.25rem !important}.boolean-input.checkbox{margin-right:0.25rem}limel-list-item:has(limel-icon) .boolean-input,limel-list-item:has(img) .boolean-input{margin-right:-0.25rem;margin-left:0;order:2}.boolean-input .boolean-input-label{overflow:hidden;white-space:nowrap;text-overflow:ellipsis;opacity:0;width:var(--limel-boolean-input-box-size)}';const n=class{constructor(t){e(this,t);this.renderLabel=()=>i("span",{class:"label",id:this.labelId},this.text);this.renderDescription=()=>{if(!this.secondaryText){return}return i("span",{class:"description",id:this.descriptionId},this.secondaryText)};this.renderIcon=()=>{const e=o(this.icon);if(!e){return}let t;let l;let r;if(typeof this.icon==="object"){t=this.icon.color;l=this.icon.backgroundColor;r=this.icon.title}const a={"aria-label":r,"aria-hidden":r?null:"true",name:e,style:{color:t,"background-color":l},badge:this.badgeIcon,size:this.iconSize};return i("limel-icon",Object.assign({},a))};this.renderPrimaryComponent=()=>{const e=this.primaryComponent;if(!(e===null||e===void 0?void 0:e.name)){return}const t=e.name;const o=e.props||{};return i(t,Object.assign({},o))};this.renderImage=()=>{if(!this.image){return}return i("img",{src:this.image.src,alt:this.image.alt,loading:"lazy"})};this.renderActionMenu=e=>{if(!e||e.length===0){return}const t=this.getStableActions(e);return i("limel-menu",{class:"mdc-deprecated-list-item__meta",items:t,openDirection:"left-start"},i("limel-icon-button",{class:"action-menu-trigger",slot:"trigger",icon:"menu_2",label:this.actionMenuLabel()}))};this.renderRadioButton=()=>{if(this.type!=="radio"){return}return i("limel-radio-button",{id:`radio_${this.labelId}`,checked:this.selected,disabled:this.disabled})};this.renderCheckbox=()=>{if(this.type!=="checkbox"){return}return i(r,{id:`checkbox_${this.labelId}`,checked:this.selected,disabled:this.disabled})};this.actionMenuLabel=()=>a.get("file-viewer.more-actions",this.language);this.language="en";this.value=undefined;this.text=undefined;this.secondaryText=undefined;this.disabled=false;this.icon=undefined;this.iconSize="small";this.badgeIcon=false;this.selected=false;this.actions=undefined;this.primaryComponent=undefined;this.image=undefined;this.type="listitem";this.labelId=l();this.descriptionId=l()}render(){var e;const o={"aria-labelledby":this.labelId,"aria-describedby":this.secondaryText?this.descriptionId:undefined,"aria-disabled":this.disabled?"true":"false"};if(this.type==="radio"||this.type==="checkbox"){o["aria-checked"]=this.selected?"true":"false"}else if(this.type==="option"||this.type==="menuitem"){o["aria-selected"]=this.selected?"true":"false"}return i(t,Object.assign({role:this.getHostRole(),class:{"has-primary-component":!!((e=this.primaryComponent)===null||e===void 0?void 0:e.name)}},o),this.renderRadioButton(),this.renderCheckbox(),this.renderIcon(),this.renderImage(),this.renderPrimaryComponent(),i("div",{class:"text"},this.renderLabel(),this.renderDescription()),this.renderActionMenu(this.actions))}getStableActions(e){if(this.memoizedActions===e){return this.memoizedActions}this.memoizedActions=e;return e}getHostRole(){switch(this.type){case"option":{return"option"}case"radio":{return"radio"}case"checkbox":{return"checkbox"}case"menuitem":{return"menuitem"}default:{return"listitem"}}}};n.style=s;export{n as limel_list_item};
|
|
2
|
+
//# sourceMappingURL=p-d497cac7.entry.js.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
const e={remove:"Fjern",save:"Gem",cancel:"Annullér",loading:"Indlæser…",value:"Værdi",items:"Elementer","action-bar.collapse":"Skjul","action-bar.expand":"Vis","action-bar.actions":"Handlinger","callout.note":"Bemærk","callout.important":"Vigtig","callout.tip":"Tip","callout.caution":"Advarsel","callout.warning":"Advarsel","code-editor":"kodeeditor","code-editor.copy":"Kopier","code-editor.copied":"Kopieret","code-editor.copy-failed":"Kunne ikke kopiere","code-editor.copy-aria-label":"Kopier { label } indhold","code-editor.copied-aria-label":"Kopieret { label } indhold","code-editor.copy-failed-aria-label":"Kunne ikke kopiere { label } indhold","collapsible-section.open":"Åbn { header } sektion","collapsible-section.close":"Luk { header } sektion","date-picker.today":"Idag","date-picker.month.heading":"Måned","date-picker.quarter.heading":"Kvartal","date-picker.year.heading":"År","drag-handle.drag-handle":"Trækgreb","drag-handle.drag-to-reorder":"Træk for at omarrangere","chip-set.clear-all":"Ryd alle","snackbar.dismiss":"Luk","file.drag-and-drop-tips":"Træk & slip filen her, eller klik for at gennemse.","file-viewer.message.unsupported-filetype":"Kan ikke vise en forhåndsvisning af denne filtype.","file-viewer.message.try-other-options":"Hent filen eller åbn den i en ny fane.","file-viewer.download":"Hent","file-viewer.exit-fullscreen":"Afslut fuldskærm","file-viewer.open-in-fullscreen":"Åbn i fuld skærm","file-viewer.open-in-new-tab":"Åbn i en ny fane","file-viewer.more-actions":"Mere…","editor-menu.bold":"Fed","editor-menu.italic":"Kursiv","editor-menu.strikethrough":"Gennemstreget","editor-menu.h1":"Overskrift 1","editor-menu.h2":"Overskrift 2","editor-menu.h3":"Overskrift 3","editor-menu.bulleted-list":"Punktliste","editor-menu.numbered-list":"Nummereret liste","editor-menu.blockquote":"Blokcitat","editor-menu.link":"Tilføj link","editor-link-menu.text":"Tekst","editor-link-menu.link":"Link","editor-menu.code-block":"Kodeblok","editor-menu.code":"Kode","editor-image-view.loading":"Indlæser billede: { filename }...","editor-image-view.failed":"Noget gik galt med billede: { filename }","editor-image-view.success":"Billede: { filename } er klar","editor-image-view.resize-handle":"Træk til højre eller venstre for at ændre størrelsen på billedet","progress-bar":"Fremskridtsindikator","ai-avatar.label":"AI-avatar","ai-avatar.thinking":"tænker","table.select-all":"Vælg alle rækker","table.select-row":"Vælg denne række","profile-picture.remove":"Fjern valgt billede","profile-picture.unsupported-preview.title":"Ikke-understøttet billedformat","profile-picture.unsupported-preview.description":"Vi kan ikke vise det valgte billede i denne browser. Vælg venligst en anden billedfil."};const i={remove:"Entfernen",save:"Speichern",cancel:"Abbrechen",loading:"Laden…",value:"Wert",items:"Elemente","action-bar.collapse":"Einklappen","action-bar.expand":"Ausklappen","action-bar.actions":"Aktionen","callout.note":"Hinweis","callout.important":"Wichtig","callout.tip":"Tipp","callout.caution":"Vorsicht","callout.warning":"Warnung","code-editor":"Code-Editor","code-editor.copy":"Kopieren","code-editor.copied":"Kopiert","code-editor.copy-failed":"Kopieren fehlgeschlagen","code-editor.copy-aria-label":"{ label } Inhalt kopieren","code-editor.copied-aria-label":"{ label } Inhalt kopiert","code-editor.copy-failed-aria-label":"{ label } Inhalt konnte nicht kopiert werden","collapsible-section.open":"{ header } Bereich öffnen","collapsible-section.close":"{ header } Bereich schließen","date-picker.today":"Heute","date-picker.month.heading":"Monat","date-picker.quarter.heading":"Quartal","date-picker.year.heading":"Jahr","drag-handle.drag-handle":"Ziehgriff","drag-handle.drag-to-reorder":"Zum Neuordnen ziehen","chip-set.clear-all":"Alles löschen","snackbar.dismiss":"Schließen","file.drag-and-drop-tips":"Ziehen Sie Ihre Datei hierher oder klicken Sie, um zu durchsuchen.","file-viewer.message.unsupported-filetype":"Für diesen Dateityp kann keine Vorschau angezeigt werden.","file-viewer.message.try-other-options":"Laden Sie die Datei herunter oder öffnen Sie sie in einem neuen Tab.","file-viewer.download":"Herunterladen","file-viewer.exit-fullscreen":"Vollbildmodus beenden","file-viewer.open-in-fullscreen":"Im Vollbildmodus öffnen","file-viewer.open-in-new-tab":"In einem neuen Tab öffnen","file-viewer.more-actions":"Mehr…","editor-menu.bold":"Fett","editor-menu.italic":"Kursiv","editor-menu.strikethrough":"Durchgestrichen","editor-menu.h1":"Überschrift 1","editor-menu.h2":"Überschrift 2","editor-menu.h3":"Überschrift 3","editor-menu.bulleted-list":"Aufzählungsliste","editor-menu.numbered-list":"Nummerierte Liste","editor-menu.blockquote":"Zitatblock","editor-menu.link":"Link","editor-link-menu.text":"Text","editor-link-menu.link":"Link","editor-menu.code-block":"Codeblock","editor-menu.code":"Code","editor-image-view.loading":"Lade Bild: { filename }...","editor-image-view.failed":"Beim Laden des Bildes ist etwas schief gelaufen: { filename }","editor-image-view.success":"Bild: { filename } ist bereit","editor-image-view.resize-handle":"Ziehen Sie nach rechts oder links, um die Größe des Bildes zu ändern.","progress-bar":"Fortschrittsbalken","ai-avatar.label":"KI-Avatar","ai-avatar.thinking":"denkt","table.select-all":"Alle Zeilen auswählen","table.select-row":"Diese Zeile auswählen","profile-picture.remove":"Ausgewähltes Bild entfernen","profile-picture.unsupported-preview.title":"Nicht unterstütztes Bildformat","profile-picture.unsupported-preview.description":"Wir können das ausgewählte Bild in diesem Browser nicht anzeigen. Bitte wählen Sie eine andere Bilddatei."};const r={remove:"Remove",save:"Save",cancel:"Cancel",loading:"Loading…",value:"Value",items:"Items","action-bar.collapse":"Collapse","action-bar.expand":"Expand","action-bar.actions":"Actions","callout.note":"Note","callout.important":"Important","callout.tip":"Tip","callout.caution":"Caution","callout.warning":"Warning","code-editor":"code editor","code-editor.copy":"Copy","code-editor.copied":"Copied","code-editor.copy-failed":"Failed to copy","code-editor.copy-aria-label":"Copy { label } content","code-editor.copied-aria-label":"Copied { label } content","code-editor.copy-failed-aria-label":"Failed to copy { label } content","collapsible-section.open":"Open { header } section","collapsible-section.close":"Close { header } section","date-picker.today":"Today","date-picker.month.heading":"Month","date-picker.quarter.heading":"Quarter","date-picker.year.heading":"Year","drag-handle.drag-handle":"Drag handle","drag-handle.drag-to-reorder":"Drag to reorder","chip-set.clear-all":"Clear all","snackbar.dismiss":"Dismiss","file.drag-and-drop-tips":"Drag & drop your file here, or click to browse.","file-viewer.message.unsupported-filetype":"Cannot display a preview for this file type.","file-viewer.message.try-other-options":"Download the file or open it in a new tab.","file-viewer.download":"Download","file-viewer.exit-fullscreen":"Exit fullscreen","file-viewer.open-in-fullscreen":"Open in fullscreen","file-viewer.open-in-new-tab":"Open in a new tab","file-viewer.more-actions":"More…","editor-menu.bold":"Bold","editor-menu.italic":"Italic","editor-menu.strikethrough":"Strikethrough","editor-menu.h1":"Heading 1","editor-menu.h2":"Heading 2","editor-menu.h3":"Heading 3","editor-menu.bulleted-list":"Bulleted list","editor-menu.numbered-list":"Numbered list","editor-menu.blockquote":"Blockquote","editor-menu.link":"Link","editor-link-menu.text":"Text","editor-link-menu.link":"Link","editor-menu.code-block":"Code block","editor-menu.code":"Code","editor-image-view.loading":"Loading image: { filename }...","editor-image-view.failed":"Something went wrong with image: { filename }","editor-image-view.success":"Image: { filename } is ready","editor-image-view.resize-handle":"Drag to right or left to resize the image","progress-bar":"Progress bar","ai-avatar.label":"AI Avatar","ai-avatar.thinking":"thinking","table.select-all":"Select all rows","table.select-row":"Select this row","profile-picture.remove":"Remove selected picture","profile-picture.unsupported-preview.title":"Unsupported image format","profile-picture.unsupported-preview.description":"We cannot display the selected image in this browser. Please select a different image file."};const a={remove:"Poista",save:"Tallenna",cancel:"Peruuta",loading:"Ladataan…",value:"Arvo",items:"Kohteet","action-bar.collapse":"Pienennä","action-bar.expand":"Laajenna","action-bar.actions":"Toiminnot","callout.note":"Huomio","callout.important":"Tärkeää","callout.tip":"Vinkki","callout.caution":"Varoitus","callout.warning":"Varoitus","code-editor":"koodieditori","code-editor.copy":"Kopioi","code-editor.copied":"Kopioitu","code-editor.copy-failed":"Kopiointi epäonnistui","code-editor.copy-aria-label":"Kopioi { label } sisältö","code-editor.copied-aria-label":"Kopioitu { label } sisältö","code-editor.copy-failed-aria-label":"Kopiointi epäonnistui { label } sisältö","collapsible-section.open":"Avaa { header } osio","collapsible-section.close":"Sulje { header } osio","date-picker.today":"Tänään","date-picker.month.heading":"Kuukausi","date-picker.quarter.heading":"Vuosineljännes","date-picker.year.heading":"Vuosi","drag-handle.drag-handle":"Raahauskahva","drag-handle.drag-to-reorder":"Raahaa järjestelläksesi","chip-set.clear-all":"Tyhjennä kaikki","snackbar.dismiss":"Sulje","file.drag-and-drop-tips":"Vedä & pudota tiedostosi tähän, tai napsauta selataksesi.","file-viewer.message.unsupported-filetype":"Esikatselua ei voi näyttää tälle tiedostotyypille.","file-viewer.message.try-other-options":"Lataa tiedosto tai avaa se uudessa välilehdessä.","file-viewer.download":"Ladata","file-viewer.exit-fullscreen":"Poistu koko näytöstä","file-viewer.open-in-fullscreen":"Avaa koko näytössä","file-viewer.open-in-new-tab":"Avaa uudella välilehdellä","file-viewer.more-actions":"Lisää…","editor-menu.bold":"Lihavoitu","editor-menu.italic":"Kursivoitu","editor-menu.strikethrough":"Yliviivaus","editor-menu.h1":"Otsikkotaso 1","editor-menu.h2":"Otsikkotaso 2","editor-menu.h3":"Otsikkotaso 3","editor-menu.bulleted-list":"Luettelomerkitty lista","editor-menu.numbered-list":"Numeroitu lista","editor-menu.blockquote":"Lohkoteksti","editor-menu.link":"Lisää linkki","editor-link-menu.text":"Teksti","editor-link-menu.link":"Linkki","editor-menu.code-block":"Koodilohko","editor-menu.code":"Koodi","editor-image-view.loading":"Ladataan kuvaa: { filename }...","editor-image-view.failed":"Jokin meni pieleen kuvan kanssa: { filename }","editor-image-view.success":"Kuva: { filename } on valmis","editor-image-view.resize-handle":"Vedä oikealle tai vasemmalle muuttaaksesi kuvan kokoa","progress-bar":"Edistymispalkki","ai-avatar.label":"Tekoälyavatar","ai-avatar.thinking":"ajattelee","table.select-all":"Valitse kaikki rivit","table.select-row":"Valitse tämä rivi","profile-picture.remove":"Poista valittu kuva","profile-picture.unsupported-preview.title":"Tiedostomuoto ei ole tuettu","profile-picture.unsupported-preview.description":"Emme voi näyttää valittua kuvaa tässä selaimessa. Valitse jokin toinen kuvatiedosto."};const t={remove:"Supprimer",save:"Enregistrer",cancel:"Annuler",loading:"Chargement…",value:"Valeur",items:"Éléments","action-bar.collapse":"Réduire","action-bar.expand":"Développer","action-bar.actions":"Actions","callout.note":"Note","callout.important":"Important","callout.tip":"Conseil","callout.caution":"Prudence","callout.warning":"Avertissement","code-editor":"éditeur de code","code-editor.copy":"Copie","code-editor.copied":"Copié ","code-editor.copy-failed":"Échec de la copie","code-editor.copy-aria-label":"Copier le contenu { label }","code-editor.copied-aria-label":"Contenu { label } copié","code-editor.copy-failed-aria-label":"Échec de la copie du contenu { label }","collapsible-section.open":"Ouvrir la section { header }","collapsible-section.close":"Fermer la section { header }","date-picker.today":"Aujourd'hui","date-picker.month.heading":"Mois","date-picker.quarter.heading":"Trimestre","date-picker.year.heading":"Année","drag-handle.drag-handle":"Poignée de déplacement","drag-handle.drag-to-reorder":"Glissez pour réorganiser","chip-set.clear-all":"Tout effacer","snackbar.dismiss":"Fermer","file.drag-and-drop-tips":"Glissez-déposez votre fichier ici, ou cliquez pour parcourir.","file-viewer.message.unsupported-filetype":"Impossible d'afficher un aperçu pour ce type de fichier.","file-viewer.message.try-other-options":"Téléchargez le fichier ou ouvrez-le dans un nouvel onglet.","file-viewer.download":"Télécharger","file-viewer.exit-fullscreen":"Quitter le mode plein écran","file-viewer.open-in-fullscreen":"Ouvrir en plein écran","file-viewer.open-in-new-tab":"Ouvrir dans un nouvel onglet","file-viewer.more-actions":"Plus…","editor-menu.bold":"Gras","editor-menu.italic":"Italique","editor-menu.strikethrough":"Barré","editor-menu.h1":"Titre 1","editor-menu.h2":"Titre 2","editor-menu.h3":"Titre 3","editor-menu.bulleted-list":"Liste à puces","editor-menu.numbered-list":"Liste numérotée","editor-menu.blockquote":"Bloc de citation","editor-menu.link":"Lien","editor-link-menu.text":"Texte","editor-link-menu.link":"Lien","editor-menu.code-block":"Bloc de code","editor-menu.code":"Code","editor-image-view.loading":"Chargement de l'image: { filename }...","editor-image-view.failed":"Un problème est survenu avec l'image: { filename }","editor-image-view.success":"Image: { filename } est prête","editor-image-view.resize-handle":"Faites glisser vers la droite ou la gauche pour redimensionner l'image","progress-bar":"Barre de progression","ai-avatar.label":"Avatar IA","ai-avatar.thinking":"en réflexion","table.select-all":"Sélectionner toutes les lignes","table.select-row":"Sélectionner cette ligne","profile-picture.remove":"Supprimer l’image sélectionnée","profile-picture.unsupported-preview.title":"Format d'image non pris en charge","profile-picture.unsupported-preview.description":"Nous ne pouvons pas afficher l'image sélectionnée dans ce navigateur. Veuillez sélectionner un autre fichier image."};const o={remove:"Verwijder",save:"Opslaan",cancel:"Annuleren",loading:"Laden…",value:"Waarde",items:"items","action-bar.collapse":"Inklappen","action-bar.expand":"Uitklappen","action-bar.actions":"Acties","callout.note":"Opmerking","callout.important":"Belangrijk","callout.tip":"Tip","callout.caution":"Waarschuwing","callout.warning":"Waarschuwing","code-editor":"code-editor","code-editor.copy":"Kopiëren","code-editor.copied":"Gekopieerd","code-editor.copy-failed":"Kopiëren mislukt","code-editor.copy-aria-label":"Kopieer { label } inhoud","code-editor.copied-aria-label":"Gekopieerd { label } inhoud","code-editor.copy-failed-aria-label":"Kopiëren { label } inhoud mislukt","collapsible-section.open":"Open { header } sectie","collapsible-section.close":"Sluit { header } sectie","date-picker.today":"Vandaag","date-picker.month.heading":"Maand","date-picker.quarter.heading":"Kwartaal","date-picker.year.heading":"Jaar","drag-handle.drag-handle":"Sleepgreep","drag-handle.drag-to-reorder":"Slepen om opnieuw te ordenen","chip-set.clear-all":"Alles wissen","snackbar.dismiss":"Sluiten","file.drag-and-drop-tips":"Sleep een bestand hierheen of klik om te bladeren.","file-viewer.message.unsupported-filetype":"Kan geen voorbeeld weergeven voor dit bestandstype.","file-viewer.message.try-other-options":"Download het bestand of open het in een nieuw tabblad.","file-viewer.download":"Downloaden","file-viewer.exit-fullscreen":"Verlaat volledig scherm","file-viewer.open-in-fullscreen":"Open in volledig scherm","file-viewer.open-in-new-tab":"Openen op een nieuw tabblad","file-viewer.more-actions":"Meer…","editor-menu.bold":"Vet","editor-menu.italic":"Cursief","editor-menu.strikethrough":"Doorhalen","editor-menu.h1":"Kopniveau 1","editor-menu.h2":"Kopniveau 2","editor-menu.h3":"Kopniveau 3","editor-menu.bulleted-list":"Opsomming","editor-menu.numbered-list":"Genummerde lijst","editor-menu.blockquote":"Blokcitaat","editor-menu.link":"Link toevoegen","editor-link-menu.text":"Tekst","editor-link-menu.link":"Link","editor-menu.code-block":"Codeblok","editor-menu.code":"Code","editor-image-view.loading":"Afbeelding wordt geladen: { filename }...","editor-image-view.failed":"Er is iets misgegaan met de afbeelding: { filename }","editor-image-view.success":"Afbeelding: { filename } is klaar","editor-image-view.resize-handle":"Sleep naar rechts of links om de afbeeldingsgrootte te veranderen","progress-bar":"Voortgangsbalk","ai-avatar.label":"AI-avatar","ai-avatar.thinking":"aan het denken","table.select-all":"Alle rijen selecteren","table.select-row":"Deze rij selecteren","profile-picture.remove":"Geselecteerde afbeelding verwijderen","profile-picture.unsupported-preview.title":"Niet-ondersteund afbeeldingsformaat","profile-picture.unsupported-preview.description":"We kunnen de geselecteerde afbeelding niet weergeven in deze browser. Selecteer een ander afbeeldingsbestand."};const l={remove:"Fjerne",save:"Lagre",cancel:"Avbryt",loading:"Laster…",value:"Verdi",items:"Elementer","action-bar.collapse":"Skjul","action-bar.expand":"Vis","action-bar.actions":"Handlinger","callout.note":"Note","callout.important":"Viktig","callout.tip":"Tip","callout.caution":"Advarsel","callout.warning":"Advarsel","code-editor":"kodeeditor","code-editor.copy":"Kopier","code-editor.copied":"Kopiert","code-editor.copy-failed":"Kunne ikke kopiere","code-editor.copy-aria-label":"Kopier { label } innhold","code-editor.copied-aria-label":"Kopiert { label } innhold","code-editor.copy-failed-aria-label":"Kunne ikke kopiere { label } innhold","collapsible-section.open":"Åpne { header } seksjon","collapsible-section.close":"Lukk { header } seksjon","date-picker.today":"I dag","date-picker.month.heading":"Måned","date-picker.quarter.heading":"Kvartal","date-picker.year.heading":"År","drag-handle.drag-handle":"Dra-håndtak","drag-handle.drag-to-reorder":"Dra for å omorganisere","chip-set.clear-all":"Fjern alle","file.drag-and-drop-tips":"Dra & slipp filen her, eller klikk for å bla gjennom.","file-viewer.message.unsupported-filetype":"Kan ikke vise en forhåndsvisning av denne filtypen.","file-viewer.message.try-other-options":"Last ned filen eller åpne den i en ny fane.","file-viewer.download":"Nedlasting","file-viewer.exit-fullscreen":"Gå ut av fullskjerm","file-viewer.open-in-fullscreen":"Åpne i fullskjerm","file-viewer.open-in-new-tab":"Åpne i en ny fane","file-viewer.more-actions":"Mer…","editor-menu.bold":"Fet","editor-menu.italic":"Kursiv","editor-menu.strikethrough":"Gjennomstreking","editor-menu.h1":"Overskrift 1","editor-menu.h2":"Overskrift 2","editor-menu.h3":"Overskrifts 3","editor-menu.bulleted-list":"Punktliste","editor-menu.numbered-list":"Nummerert liste","editor-menu.blockquote":"Blokksitat","editor-menu.link":"Legg til lenke","editor-link-menu.text":"Tekst","editor-link-menu.link":"Lenke","editor-menu.code-block":"Kodeblokk","editor-menu.code":"Kode","editor-image-view.loading":"Laster bilde: { filename }...","editor-image-view.failed":"Noe gikk galt med bildet: { filename }","editor-image-view.success":"Bilde: { filename } er klart","editor-image-view.resize-handle":"Dra til høyre eller venstre for å endre størrelsen på bildet","progress-bar":"Fremdriftsindikator","snackbar.dismiss":"Lukk","ai-avatar.label":"KI-avatar","ai-avatar.thinking":"tenker","table.select-all":"Velg alle rader","table.select-row":"Velg denne raden","profile-picture.remove":"Fjern valgt bilde","profile-picture.unsupported-preview.title":"Ustøttet bildeformat","profile-picture.unsupported-preview.description":"Vi kan ikke vise det valgte bildet i denne nettleseren. Vennligst velg en annen bildefil."};const n={remove:"Ta bort",save:"Spara",cancel:"Avbryt",loading:"Laddar…",value:"Värde",items:"Objekt","action-bar.collapse":"Dölj","action-bar.expand":"Visa","action-bar.actions":"Åtgärder","callout.note":"Obs","callout.important":"Viktigt","callout.tip":"Tips","callout.caution":"Varning","callout.warning":"Varning","code-editor":"kodredigerare","code-editor.copy":"Kopiera","code-editor.copied":"Kopierat","code-editor.copy-failed":"kopiering misslyckades","code-editor.copy-aria-label":"Kopiera { label } innehåll","code-editor.copied-aria-label":"Kopierat { label } innehåll","code-editor.copy-failed-aria-label":"Kunde inte kopiera { label } innehåll","collapsible-section.open":"Öppna { header }-sektion","collapsible-section.close":"Stäng { header }-sektion","date-picker.today":"Idag","date-picker.month.heading":"Månad","date-picker.quarter.heading":"Kvartal","date-picker.year.heading":"År","drag-handle.drag-handle":"Draghandtag","drag-handle.drag-to-reorder":"Dra för att ändra ordning","chip-set.clear-all":"Rensa alla","snackbar.dismiss":"Stäng","file.drag-and-drop-tips":"Dra & släpp filen här eller klicka om du vill bläddra.","file-viewer.message.unsupported-filetype":"Kan inte visa en förhandsvisning för denna filtyp.","file-viewer.message.try-other-options":"Ladda ner filen eller öppna den i en ny flik.","file-viewer.download":"Ladda ner","file-viewer.exit-fullscreen":"Avsluta fullskärmsläge","file-viewer.open-in-fullscreen":"Öppna i fullskärmsläge","file-viewer.open-in-new-tab":"Öppna i ny flik","file-viewer.more-actions":"Mer…","editor-menu.bold":"Fet","editor-menu.italic":"Kursiv","editor-menu.strikethrough":"Genomstruken","editor-menu.h1":"Rubrik 1","editor-menu.h2":"Rubrik 2","editor-menu.h3":"Rubrik 3","editor-menu.bulleted-list":"Punktlista","editor-menu.numbered-list":"Numrerad lista","editor-menu.blockquote":"Blockcitat","editor-menu.link":"Lägg till länk","editor-link-menu.text":"Text","editor-link-menu.link":"Länk","editor-menu.code-block":"Kodblock","editor-menu.code":"Kod","editor-image-view.loading":"Laddar bilden: { filename }...","editor-image-view.failed":"Något gick fel med bilden: { filename }","editor-image-view.success":"Bilden: { filename } är redo","editor-image-view.resize-handle":"Dra åt höger eller vänster för att ändra storlek på bilden","progress-bar":"Förloppsindikator","ai-avatar.label":"AI-avatar","ai-avatar.thinking":"tänker","table.select-all":"Markera alla rader","table.select-row":"Markera denna rad","profile-picture.remove":"Ta bort vald bild","profile-picture.unsupported-preview.title":"Formatet stöds inte","profile-picture.unsupported-preview.description":"Vi kan inte visa den valda bilden i den här webbläsaren. Välj en annan bildfil."};const d={da:e,de:i,en:r,fi:a,fr:t,no:l,nl:o,sv:n};const s=/\{\s*(\w+)\s*\}/g;class c{get(e,i="en",r){const a=d[i][e];if(!a){return e}return a.replaceAll(s,((e,i)=>r[i]||e))}}const u=new c;const p=(()=>u)();export{p as t};
|
|
2
|
+
//# sourceMappingURL=p-df36e1ae.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["da","remove","save","cancel","loading","value","items","de","en","fi","fr","nl","no","sv","allTranslations","REGEX","Translations","get","key","language","params","translation","replaceAll","match","mergeCodeKey","translations","translate"],"sources":["./src/translations/da.ts","./src/translations/de.ts","./src/translations/en.ts","./src/translations/fi.ts","./src/translations/fr.ts","./src/translations/nl.ts","./src/translations/no.ts","./src/translations/sv.ts","./src/global/translations.ts"],"sourcesContent":["export default {\n remove: 'Fjern',\n save: 'Gem',\n cancel: 'Annullér',\n loading: 'Indlæser…',\n value: 'Værdi',\n items: 'Elementer',\n 'action-bar.collapse': 'Skjul',\n 'action-bar.expand': 'Vis',\n 'action-bar.actions': 'Handlinger',\n 'callout.note': 'Bemærk',\n 'callout.important': 'Vigtig',\n 'callout.tip': 'Tip',\n 'callout.caution': 'Advarsel',\n 'callout.warning': 'Advarsel',\n 'code-editor': 'kodeeditor',\n 'code-editor.copy': 'Kopier',\n 'code-editor.copied': 'Kopieret',\n 'code-editor.copy-failed': 'Kunne ikke kopiere',\n 'code-editor.copy-aria-label': 'Kopier { label } indhold',\n 'code-editor.copied-aria-label': 'Kopieret { label } indhold',\n 'code-editor.copy-failed-aria-label':\n 'Kunne ikke kopiere { label } indhold',\n 'collapsible-section.open': 'Åbn { header } sektion',\n 'collapsible-section.close': 'Luk { header } sektion',\n 'date-picker.today': 'Idag',\n 'date-picker.month.heading': 'Måned',\n 'date-picker.quarter.heading': 'Kvartal',\n 'date-picker.year.heading': 'År',\n 'drag-handle.drag-handle': 'Trækgreb',\n 'drag-handle.drag-to-reorder': 'Træk for at omarrangere',\n 'chip-set.clear-all': 'Ryd alle',\n 'snackbar.dismiss': 'Luk',\n 'file.drag-and-drop-tips':\n 'Træk & slip filen her, eller klik for at gennemse.',\n 'file-viewer.message.unsupported-filetype':\n 'Kan ikke vise en forhåndsvisning af denne filtype.',\n 'file-viewer.message.try-other-options':\n 'Hent filen eller åbn den i en ny fane.',\n 'file-viewer.download': 'Hent',\n 'file-viewer.exit-fullscreen': 'Afslut fuldskærm',\n 'file-viewer.open-in-fullscreen': 'Åbn i fuld skærm',\n 'file-viewer.open-in-new-tab': 'Åbn i en ny fane',\n 'file-viewer.more-actions': 'Mere…',\n 'editor-menu.bold': 'Fed',\n 'editor-menu.italic': 'Kursiv',\n 'editor-menu.strikethrough': 'Gennemstreget',\n 'editor-menu.h1': 'Overskrift 1',\n 'editor-menu.h2': 'Overskrift 2',\n 'editor-menu.h3': 'Overskrift 3',\n 'editor-menu.bulleted-list': 'Punktliste',\n 'editor-menu.numbered-list': 'Nummereret liste',\n 'editor-menu.blockquote': 'Blokcitat',\n 'editor-menu.link': 'Tilføj link',\n 'editor-link-menu.text': 'Tekst',\n 'editor-link-menu.link': 'Link',\n 'editor-menu.code-block': 'Kodeblok',\n 'editor-menu.code': 'Kode',\n 'editor-image-view.loading': 'Indlæser billede: { filename }...',\n 'editor-image-view.failed': 'Noget gik galt med billede: { filename }',\n 'editor-image-view.success': 'Billede: { filename } er klar',\n 'editor-image-view.resize-handle':\n 'Træk til højre eller venstre for at ændre størrelsen på billedet',\n 'progress-bar': 'Fremskridtsindikator',\n 'ai-avatar.label': 'AI-avatar',\n 'ai-avatar.thinking': 'tænker',\n 'table.select-all': 'Vælg alle rækker',\n 'table.select-row': 'Vælg denne række',\n 'profile-picture.remove': 'Fjern valgt billede',\n 'profile-picture.unsupported-preview.title':\n 'Ikke-understøttet billedformat',\n 'profile-picture.unsupported-preview.description':\n 'Vi kan ikke vise det valgte billede i denne browser. Vælg venligst en anden billedfil.',\n};\n","export default {\n remove: 'Entfernen',\n save: 'Speichern',\n cancel: 'Abbrechen',\n loading: 'Laden…',\n value: 'Wert',\n items: 'Elemente',\n 'action-bar.collapse': 'Einklappen',\n 'action-bar.expand': 'Ausklappen',\n 'action-bar.actions': 'Aktionen',\n 'callout.note': 'Hinweis',\n 'callout.important': 'Wichtig',\n 'callout.tip': 'Tipp',\n 'callout.caution': 'Vorsicht',\n 'callout.warning': 'Warnung',\n 'code-editor': 'Code-Editor',\n 'code-editor.copy': 'Kopieren',\n 'code-editor.copied': 'Kopiert',\n 'code-editor.copy-failed': 'Kopieren fehlgeschlagen',\n 'code-editor.copy-aria-label': '{ label } Inhalt kopieren',\n 'code-editor.copied-aria-label': '{ label } Inhalt kopiert',\n 'code-editor.copy-failed-aria-label':\n '{ label } Inhalt konnte nicht kopiert werden',\n 'collapsible-section.open': '{ header } Bereich öffnen',\n 'collapsible-section.close': '{ header } Bereich schließen',\n 'date-picker.today': 'Heute',\n 'date-picker.month.heading': 'Monat',\n 'date-picker.quarter.heading': 'Quartal',\n 'date-picker.year.heading': 'Jahr',\n 'drag-handle.drag-handle': 'Ziehgriff',\n 'drag-handle.drag-to-reorder': 'Zum Neuordnen ziehen',\n 'chip-set.clear-all': 'Alles löschen',\n 'snackbar.dismiss': 'Schließen',\n 'file.drag-and-drop-tips':\n 'Ziehen Sie Ihre Datei hierher oder klicken Sie, um zu durchsuchen.',\n 'file-viewer.message.unsupported-filetype':\n 'Für diesen Dateityp kann keine Vorschau angezeigt werden.',\n 'file-viewer.message.try-other-options':\n 'Laden Sie die Datei herunter oder öffnen Sie sie in einem neuen Tab.',\n 'file-viewer.download': 'Herunterladen',\n 'file-viewer.exit-fullscreen': 'Vollbildmodus beenden',\n 'file-viewer.open-in-fullscreen': 'Im Vollbildmodus öffnen',\n 'file-viewer.open-in-new-tab': 'In einem neuen Tab öffnen',\n 'file-viewer.more-actions': 'Mehr…',\n 'editor-menu.bold': 'Fett',\n 'editor-menu.italic': 'Kursiv',\n 'editor-menu.strikethrough': 'Durchgestrichen',\n 'editor-menu.h1': 'Überschrift 1',\n 'editor-menu.h2': 'Überschrift 2',\n 'editor-menu.h3': 'Überschrift 3',\n 'editor-menu.bulleted-list': 'Aufzählungsliste',\n 'editor-menu.numbered-list': 'Nummerierte Liste',\n 'editor-menu.blockquote': 'Zitatblock',\n 'editor-menu.link': 'Link',\n 'editor-link-menu.text': 'Text',\n 'editor-link-menu.link': 'Link',\n 'editor-menu.code-block': 'Codeblock',\n 'editor-menu.code': 'Code',\n 'editor-image-view.loading': 'Lade Bild: { filename }...',\n 'editor-image-view.failed':\n 'Beim Laden des Bildes ist etwas schief gelaufen: { filename }',\n 'editor-image-view.success': 'Bild: { filename } ist bereit',\n 'editor-image-view.resize-handle':\n 'Ziehen Sie nach rechts oder links, um die Größe des Bildes zu ändern.',\n 'progress-bar': 'Fortschrittsbalken',\n 'ai-avatar.label': 'KI-Avatar',\n 'ai-avatar.thinking': 'denkt',\n 'table.select-all': 'Alle Zeilen auswählen',\n 'table.select-row': 'Diese Zeile auswählen',\n 'profile-picture.remove': 'Ausgewähltes Bild entfernen',\n 'profile-picture.unsupported-preview.title':\n 'Nicht unterstütztes Bildformat',\n 'profile-picture.unsupported-preview.description':\n 'Wir können das ausgewählte Bild in diesem Browser nicht anzeigen. Bitte wählen Sie eine andere Bilddatei.',\n};\n","export default {\n remove: 'Remove',\n save: 'Save',\n cancel: 'Cancel',\n loading: 'Loading…',\n value: 'Value',\n items: 'Items',\n 'action-bar.collapse': 'Collapse',\n 'action-bar.expand': 'Expand',\n 'action-bar.actions': 'Actions',\n 'callout.note': 'Note',\n 'callout.important': 'Important',\n 'callout.tip': 'Tip',\n 'callout.caution': 'Caution',\n 'callout.warning': 'Warning',\n 'code-editor': 'code editor',\n 'code-editor.copy': 'Copy',\n 'code-editor.copied': 'Copied',\n 'code-editor.copy-failed': 'Failed to copy',\n 'code-editor.copy-aria-label': 'Copy { label } content',\n 'code-editor.copied-aria-label': 'Copied { label } content',\n 'code-editor.copy-failed-aria-label': 'Failed to copy { label } content',\n 'collapsible-section.open': 'Open { header } section',\n 'collapsible-section.close': 'Close { header } section',\n 'date-picker.today': 'Today',\n 'date-picker.month.heading': 'Month',\n 'date-picker.quarter.heading': 'Quarter',\n 'date-picker.year.heading': 'Year',\n 'drag-handle.drag-handle': 'Drag handle',\n 'drag-handle.drag-to-reorder': 'Drag to reorder',\n 'chip-set.clear-all': 'Clear all',\n 'snackbar.dismiss': 'Dismiss',\n 'file.drag-and-drop-tips':\n 'Drag & drop your file here, or click to browse.',\n 'file-viewer.message.unsupported-filetype':\n 'Cannot display a preview for this file type.',\n 'file-viewer.message.try-other-options':\n 'Download the file or open it in a new tab.',\n 'file-viewer.download': 'Download',\n 'file-viewer.exit-fullscreen': 'Exit fullscreen',\n 'file-viewer.open-in-fullscreen': 'Open in fullscreen',\n 'file-viewer.open-in-new-tab': 'Open in a new tab',\n 'file-viewer.more-actions': 'More…',\n 'editor-menu.bold': 'Bold',\n 'editor-menu.italic': 'Italic',\n 'editor-menu.strikethrough': 'Strikethrough',\n 'editor-menu.h1': 'Heading 1',\n 'editor-menu.h2': 'Heading 2',\n 'editor-menu.h3': 'Heading 3',\n 'editor-menu.bulleted-list': 'Bulleted list',\n 'editor-menu.numbered-list': 'Numbered list',\n 'editor-menu.blockquote': 'Blockquote',\n 'editor-menu.link': 'Link',\n 'editor-link-menu.text': 'Text',\n 'editor-link-menu.link': 'Link',\n 'editor-menu.code-block': 'Code block',\n 'editor-menu.code': 'Code',\n 'editor-image-view.loading': 'Loading image: { filename }...',\n 'editor-image-view.failed': 'Something went wrong with image: { filename }',\n 'editor-image-view.success': 'Image: { filename } is ready',\n 'editor-image-view.resize-handle':\n 'Drag to right or left to resize the image',\n 'progress-bar': 'Progress bar',\n 'ai-avatar.label': 'AI Avatar',\n 'ai-avatar.thinking': 'thinking',\n 'table.select-all': 'Select all rows',\n 'table.select-row': 'Select this row',\n 'profile-picture.remove': 'Remove selected picture',\n 'profile-picture.unsupported-preview.title': 'Unsupported image format',\n 'profile-picture.unsupported-preview.description':\n 'We cannot display the selected image in this browser. Please select a different image file.',\n};\n","export default {\n remove: 'Poista',\n save: 'Tallenna',\n cancel: 'Peruuta',\n loading: 'Ladataan…',\n value: 'Arvo',\n items: 'Kohteet',\n 'action-bar.collapse': 'Pienennä',\n 'action-bar.expand': 'Laajenna',\n 'action-bar.actions': 'Toiminnot',\n 'callout.note': 'Huomio',\n 'callout.important': 'Tärkeää',\n 'callout.tip': 'Vinkki',\n 'callout.caution': 'Varoitus',\n 'callout.warning': 'Varoitus',\n 'code-editor': 'koodieditori',\n 'code-editor.copy': 'Kopioi',\n 'code-editor.copied': 'Kopioitu',\n 'code-editor.copy-failed': 'Kopiointi epäonnistui',\n 'code-editor.copy-aria-label': 'Kopioi { label } sisältö',\n 'code-editor.copied-aria-label': 'Kopioitu { label } sisältö',\n 'code-editor.copy-failed-aria-label':\n 'Kopiointi epäonnistui { label } sisältö',\n 'collapsible-section.open': 'Avaa { header } osio',\n 'collapsible-section.close': 'Sulje { header } osio',\n 'date-picker.today': 'Tänään',\n 'date-picker.month.heading': 'Kuukausi',\n 'date-picker.quarter.heading': 'Vuosineljännes',\n 'date-picker.year.heading': 'Vuosi',\n 'drag-handle.drag-handle': 'Raahauskahva',\n 'drag-handle.drag-to-reorder': 'Raahaa järjestelläksesi',\n 'chip-set.clear-all': 'Tyhjennä kaikki',\n 'snackbar.dismiss': 'Sulje',\n 'file.drag-and-drop-tips':\n 'Vedä & pudota tiedostosi tähän, tai napsauta selataksesi.',\n 'file-viewer.message.unsupported-filetype':\n 'Esikatselua ei voi näyttää tälle tiedostotyypille.',\n 'file-viewer.message.try-other-options':\n 'Lataa tiedosto tai avaa se uudessa välilehdessä.',\n 'file-viewer.download': 'Ladata',\n 'file-viewer.exit-fullscreen': 'Poistu koko näytöstä',\n 'file-viewer.open-in-fullscreen': 'Avaa koko näytössä',\n 'file-viewer.open-in-new-tab': 'Avaa uudella välilehdellä',\n 'file-viewer.more-actions': 'Lisää…',\n 'editor-menu.bold': 'Lihavoitu',\n 'editor-menu.italic': 'Kursivoitu',\n 'editor-menu.strikethrough': 'Yliviivaus',\n 'editor-menu.h1': 'Otsikkotaso 1',\n 'editor-menu.h2': 'Otsikkotaso 2',\n 'editor-menu.h3': 'Otsikkotaso 3',\n 'editor-menu.bulleted-list': 'Luettelomerkitty lista',\n 'editor-menu.numbered-list': 'Numeroitu lista',\n 'editor-menu.blockquote': 'Lohkoteksti',\n 'editor-menu.link': 'Lisää linkki',\n 'editor-link-menu.text': 'Teksti',\n 'editor-link-menu.link': 'Linkki',\n 'editor-menu.code-block': 'Koodilohko',\n 'editor-menu.code': 'Koodi',\n 'editor-image-view.loading': 'Ladataan kuvaa: { filename }...',\n 'editor-image-view.failed': 'Jokin meni pieleen kuvan kanssa: { filename }',\n 'editor-image-view.success': 'Kuva: { filename } on valmis',\n 'editor-image-view.resize-handle':\n 'Vedä oikealle tai vasemmalle muuttaaksesi kuvan kokoa',\n 'progress-bar': 'Edistymispalkki',\n 'ai-avatar.label': 'Tekoälyavatar',\n 'ai-avatar.thinking': 'ajattelee',\n 'table.select-all': 'Valitse kaikki rivit',\n 'table.select-row': 'Valitse tämä rivi',\n 'profile-picture.remove': 'Poista valittu kuva',\n 'profile-picture.unsupported-preview.title': 'Tiedostomuoto ei ole tuettu',\n 'profile-picture.unsupported-preview.description':\n 'Emme voi näyttää valittua kuvaa tässä selaimessa. Valitse jokin toinen kuvatiedosto.',\n};\n","export default {\n remove: 'Supprimer',\n save: 'Enregistrer',\n cancel: 'Annuler',\n loading: 'Chargement…',\n value: 'Valeur',\n items: 'Éléments',\n 'action-bar.collapse': 'Réduire',\n 'action-bar.expand': 'Développer',\n 'action-bar.actions': 'Actions',\n 'callout.note': 'Note',\n 'callout.important': 'Important',\n 'callout.tip': 'Conseil',\n 'callout.caution': 'Prudence',\n 'callout.warning': 'Avertissement',\n 'code-editor': 'éditeur de code',\n 'code-editor.copy': 'Copie',\n 'code-editor.copied': 'Copié ',\n 'code-editor.copy-failed': 'Échec de la copie',\n 'code-editor.copy-aria-label': 'Copier le contenu { label }',\n 'code-editor.copied-aria-label': 'Contenu { label } copié',\n 'code-editor.copy-failed-aria-label':\n 'Échec de la copie du contenu { label }',\n 'collapsible-section.open': 'Ouvrir la section { header }',\n 'collapsible-section.close': 'Fermer la section { header }',\n 'date-picker.today': \"Aujourd'hui\",\n 'date-picker.month.heading': 'Mois',\n 'date-picker.quarter.heading': 'Trimestre',\n 'date-picker.year.heading': 'Année',\n 'drag-handle.drag-handle': 'Poignée de déplacement',\n 'drag-handle.drag-to-reorder': 'Glissez pour réorganiser',\n 'chip-set.clear-all': 'Tout effacer',\n 'snackbar.dismiss': 'Fermer',\n 'file.drag-and-drop-tips':\n 'Glissez-déposez votre fichier ici, ou cliquez pour parcourir.',\n 'file-viewer.message.unsupported-filetype':\n \"Impossible d'afficher un aperçu pour ce type de fichier.\",\n 'file-viewer.message.try-other-options':\n 'Téléchargez le fichier ou ouvrez-le dans un nouvel onglet.',\n 'file-viewer.download': 'Télécharger',\n 'file-viewer.exit-fullscreen': 'Quitter le mode plein écran',\n 'file-viewer.open-in-fullscreen': 'Ouvrir en plein écran',\n 'file-viewer.open-in-new-tab': 'Ouvrir dans un nouvel onglet',\n 'file-viewer.more-actions': 'Plus…',\n 'editor-menu.bold': 'Gras',\n 'editor-menu.italic': 'Italique',\n 'editor-menu.strikethrough': 'Barré',\n 'editor-menu.h1': 'Titre 1',\n 'editor-menu.h2': 'Titre 2',\n 'editor-menu.h3': 'Titre 3',\n 'editor-menu.bulleted-list': 'Liste à puces',\n 'editor-menu.numbered-list': 'Liste numérotée',\n 'editor-menu.blockquote': 'Bloc de citation',\n 'editor-menu.link': 'Lien',\n 'editor-link-menu.text': 'Texte',\n 'editor-link-menu.link': 'Lien',\n 'editor-menu.code-block': 'Bloc de code',\n 'editor-menu.code': 'Code',\n 'editor-image-view.loading': \"Chargement de l'image: { filename }...\",\n 'editor-image-view.failed':\n \"Un problème est survenu avec l'image: { filename }\",\n 'editor-image-view.success': 'Image: { filename } est prête',\n 'editor-image-view.resize-handle':\n \"Faites glisser vers la droite ou la gauche pour redimensionner l'image\",\n 'progress-bar': 'Barre de progression',\n 'ai-avatar.label': 'Avatar IA',\n 'ai-avatar.thinking': 'en réflexion',\n 'table.select-all': 'Sélectionner toutes les lignes',\n 'table.select-row': 'Sélectionner cette ligne',\n 'profile-picture.remove': 'Supprimer l’image sélectionnée',\n 'profile-picture.unsupported-preview.title':\n \"Format d'image non pris en charge\",\n 'profile-picture.unsupported-preview.description':\n \"Nous ne pouvons pas afficher l'image sélectionnée dans ce navigateur. Veuillez sélectionner un autre fichier image.\",\n};\n","export default {\n remove: 'Verwijder',\n save: 'Opslaan',\n cancel: 'Annuleren',\n loading: 'Laden…',\n value: 'Waarde',\n items: 'items',\n 'action-bar.collapse': 'Inklappen',\n 'action-bar.expand': 'Uitklappen',\n 'action-bar.actions': 'Acties',\n 'callout.note': 'Opmerking',\n 'callout.important': 'Belangrijk',\n 'callout.tip': 'Tip',\n 'callout.caution': 'Waarschuwing',\n 'callout.warning': 'Waarschuwing',\n 'code-editor': 'code-editor',\n 'code-editor.copy': 'Kopiëren',\n 'code-editor.copied': 'Gekopieerd',\n 'code-editor.copy-failed': 'Kopiëren mislukt',\n 'code-editor.copy-aria-label': 'Kopieer { label } inhoud',\n 'code-editor.copied-aria-label': 'Gekopieerd { label } inhoud',\n 'code-editor.copy-failed-aria-label': 'Kopiëren { label } inhoud mislukt',\n 'collapsible-section.open': 'Open { header } sectie',\n 'collapsible-section.close': 'Sluit { header } sectie',\n 'date-picker.today': 'Vandaag',\n 'date-picker.month.heading': 'Maand',\n 'date-picker.quarter.heading': 'Kwartaal',\n 'date-picker.year.heading': 'Jaar',\n 'drag-handle.drag-handle': 'Sleepgreep',\n 'drag-handle.drag-to-reorder': 'Slepen om opnieuw te ordenen',\n 'chip-set.clear-all': 'Alles wissen',\n 'snackbar.dismiss': 'Sluiten',\n 'file.drag-and-drop-tips':\n 'Sleep een bestand hierheen of klik om te bladeren.',\n 'file-viewer.message.unsupported-filetype':\n 'Kan geen voorbeeld weergeven voor dit bestandstype.',\n 'file-viewer.message.try-other-options':\n 'Download het bestand of open het in een nieuw tabblad.',\n 'file-viewer.download': 'Downloaden',\n 'file-viewer.exit-fullscreen': 'Verlaat volledig scherm',\n 'file-viewer.open-in-fullscreen': 'Open in volledig scherm',\n 'file-viewer.open-in-new-tab': 'Openen op een nieuw tabblad',\n 'file-viewer.more-actions': 'Meer…',\n 'editor-menu.bold': 'Vet',\n 'editor-menu.italic': 'Cursief',\n 'editor-menu.strikethrough': 'Doorhalen',\n 'editor-menu.h1': 'Kopniveau 1',\n 'editor-menu.h2': 'Kopniveau 2',\n 'editor-menu.h3': 'Kopniveau 3',\n 'editor-menu.bulleted-list': 'Opsomming',\n 'editor-menu.numbered-list': 'Genummerde lijst',\n 'editor-menu.blockquote': 'Blokcitaat',\n 'editor-menu.link': 'Link toevoegen',\n 'editor-link-menu.text': 'Tekst',\n 'editor-link-menu.link': 'Link',\n 'editor-menu.code-block': 'Codeblok',\n 'editor-menu.code': 'Code',\n 'editor-image-view.loading': 'Afbeelding wordt geladen: { filename }...',\n 'editor-image-view.failed':\n 'Er is iets misgegaan met de afbeelding: { filename }',\n 'editor-image-view.success': 'Afbeelding: { filename } is klaar',\n 'editor-image-view.resize-handle':\n 'Sleep naar rechts of links om de afbeeldingsgrootte te veranderen',\n 'progress-bar': 'Voortgangsbalk',\n 'ai-avatar.label': 'AI-avatar',\n 'ai-avatar.thinking': 'aan het denken',\n 'table.select-all': 'Alle rijen selecteren',\n 'table.select-row': 'Deze rij selecteren',\n 'profile-picture.remove': 'Geselecteerde afbeelding verwijderen',\n 'profile-picture.unsupported-preview.title':\n 'Niet-ondersteund afbeeldingsformaat',\n 'profile-picture.unsupported-preview.description':\n 'We kunnen de geselecteerde afbeelding niet weergeven in deze browser. Selecteer een ander afbeeldingsbestand.',\n};\n","export default {\n remove: 'Fjerne',\n save: 'Lagre',\n cancel: 'Avbryt',\n loading: 'Laster…',\n value: 'Verdi',\n items: 'Elementer',\n 'action-bar.collapse': 'Skjul',\n 'action-bar.expand': 'Vis',\n 'action-bar.actions': 'Handlinger',\n 'callout.note': 'Note',\n 'callout.important': 'Viktig',\n 'callout.tip': 'Tip',\n 'callout.caution': 'Advarsel',\n 'callout.warning': 'Advarsel',\n 'code-editor': 'kodeeditor',\n 'code-editor.copy': 'Kopier',\n 'code-editor.copied': 'Kopiert',\n 'code-editor.copy-failed': 'Kunne ikke kopiere',\n 'code-editor.copy-aria-label': 'Kopier { label } innhold',\n 'code-editor.copied-aria-label': 'Kopiert { label } innhold',\n 'code-editor.copy-failed-aria-label':\n 'Kunne ikke kopiere { label } innhold',\n 'collapsible-section.open': 'Åpne { header } seksjon',\n 'collapsible-section.close': 'Lukk { header } seksjon',\n 'date-picker.today': 'I dag',\n 'date-picker.month.heading': 'Måned',\n 'date-picker.quarter.heading': 'Kvartal',\n 'date-picker.year.heading': 'År',\n 'drag-handle.drag-handle': 'Dra-håndtak',\n 'drag-handle.drag-to-reorder': 'Dra for å omorganisere',\n 'chip-set.clear-all': 'Fjern alle',\n 'file.drag-and-drop-tips':\n 'Dra & slipp filen her, eller klikk for å bla gjennom.',\n 'file-viewer.message.unsupported-filetype':\n 'Kan ikke vise en forhåndsvisning av denne filtypen.',\n 'file-viewer.message.try-other-options':\n 'Last ned filen eller åpne den i en ny fane.',\n 'file-viewer.download': 'Nedlasting',\n 'file-viewer.exit-fullscreen': 'Gå ut av fullskjerm',\n 'file-viewer.open-in-fullscreen': 'Åpne i fullskjerm',\n 'file-viewer.open-in-new-tab': 'Åpne i en ny fane',\n 'file-viewer.more-actions': 'Mer…',\n 'editor-menu.bold': 'Fet',\n 'editor-menu.italic': 'Kursiv',\n 'editor-menu.strikethrough': 'Gjennomstreking',\n 'editor-menu.h1': 'Overskrift 1',\n 'editor-menu.h2': 'Overskrift 2',\n 'editor-menu.h3': 'Overskrifts 3',\n 'editor-menu.bulleted-list': 'Punktliste',\n 'editor-menu.numbered-list': 'Nummerert liste',\n 'editor-menu.blockquote': 'Blokksitat',\n 'editor-menu.link': 'Legg til lenke',\n 'editor-link-menu.text': 'Tekst',\n 'editor-link-menu.link': 'Lenke',\n 'editor-menu.code-block': 'Kodeblokk',\n 'editor-menu.code': 'Kode',\n 'editor-image-view.loading': 'Laster bilde: { filename }...',\n 'editor-image-view.failed': 'Noe gikk galt med bildet: { filename }',\n 'editor-image-view.success': 'Bilde: { filename } er klart',\n 'editor-image-view.resize-handle':\n 'Dra til høyre eller venstre for å endre størrelsen på bildet',\n 'progress-bar': 'Fremdriftsindikator',\n 'snackbar.dismiss': 'Lukk',\n 'ai-avatar.label': 'KI-avatar',\n 'ai-avatar.thinking': 'tenker',\n 'table.select-all': 'Velg alle rader',\n 'table.select-row': 'Velg denne raden',\n 'profile-picture.remove': 'Fjern valgt bilde',\n 'profile-picture.unsupported-preview.title': 'Ustøttet bildeformat',\n 'profile-picture.unsupported-preview.description':\n 'Vi kan ikke vise det valgte bildet i denne nettleseren. Vennligst velg en annen bildefil.',\n};\n","export default {\n remove: 'Ta bort',\n save: 'Spara',\n cancel: 'Avbryt',\n loading: 'Laddar…',\n value: 'Värde',\n items: 'Objekt',\n 'action-bar.collapse': 'Dölj',\n 'action-bar.expand': 'Visa',\n 'action-bar.actions': 'Åtgärder',\n 'callout.note': 'Obs',\n 'callout.important': 'Viktigt',\n 'callout.tip': 'Tips',\n 'callout.caution': 'Varning',\n 'callout.warning': 'Varning',\n 'code-editor': 'kodredigerare',\n 'code-editor.copy': 'Kopiera',\n 'code-editor.copied': 'Kopierat',\n 'code-editor.copy-failed': 'kopiering misslyckades',\n 'code-editor.copy-aria-label': 'Kopiera { label } innehåll',\n 'code-editor.copied-aria-label': 'Kopierat { label } innehåll',\n 'code-editor.copy-failed-aria-label':\n 'Kunde inte kopiera { label } innehåll',\n 'collapsible-section.open': 'Öppna { header }-sektion',\n 'collapsible-section.close': 'Stäng { header }-sektion',\n 'date-picker.today': 'Idag',\n 'date-picker.month.heading': 'Månad',\n 'date-picker.quarter.heading': 'Kvartal',\n 'date-picker.year.heading': 'År',\n 'drag-handle.drag-handle': 'Draghandtag',\n 'drag-handle.drag-to-reorder': 'Dra för att ändra ordning',\n 'chip-set.clear-all': 'Rensa alla',\n 'snackbar.dismiss': 'Stäng',\n 'file.drag-and-drop-tips':\n 'Dra & släpp filen här eller klicka om du vill bläddra.',\n 'file-viewer.message.unsupported-filetype':\n 'Kan inte visa en förhandsvisning för denna filtyp.',\n 'file-viewer.message.try-other-options':\n 'Ladda ner filen eller öppna den i en ny flik.',\n 'file-viewer.download': 'Ladda ner',\n 'file-viewer.exit-fullscreen': 'Avsluta fullskärmsläge',\n 'file-viewer.open-in-fullscreen': 'Öppna i fullskärmsläge',\n 'file-viewer.open-in-new-tab': 'Öppna i ny flik',\n 'file-viewer.more-actions': 'Mer…',\n 'editor-menu.bold': 'Fet',\n 'editor-menu.italic': 'Kursiv',\n 'editor-menu.strikethrough': 'Genomstruken',\n 'editor-menu.h1': 'Rubrik 1',\n 'editor-menu.h2': 'Rubrik 2',\n 'editor-menu.h3': 'Rubrik 3',\n 'editor-menu.bulleted-list': 'Punktlista',\n 'editor-menu.numbered-list': 'Numrerad lista',\n 'editor-menu.blockquote': 'Blockcitat',\n 'editor-menu.link': 'Lägg till länk',\n 'editor-link-menu.text': 'Text',\n 'editor-link-menu.link': 'Länk',\n 'editor-menu.code-block': 'Kodblock',\n 'editor-menu.code': 'Kod',\n 'editor-image-view.loading': 'Laddar bilden: { filename }...',\n 'editor-image-view.failed': 'Något gick fel med bilden: { filename }',\n 'editor-image-view.success': 'Bilden: { filename } är redo',\n 'editor-image-view.resize-handle':\n 'Dra åt höger eller vänster för att ändra storlek på bilden',\n 'progress-bar': 'Förloppsindikator',\n 'ai-avatar.label': 'AI-avatar',\n 'ai-avatar.thinking': 'tänker',\n 'table.select-all': 'Markera alla rader',\n 'table.select-row': 'Markera denna rad',\n 'profile-picture.remove': 'Ta bort vald bild',\n 'profile-picture.unsupported-preview.title': 'Formatet stöds inte',\n 'profile-picture.unsupported-preview.description':\n 'Vi kan inte visa den valda bilden i den här webbläsaren. Välj en annan bildfil.',\n};\n","import da from '../translations/da';\nimport de from '../translations/de';\nimport en from '../translations/en';\nimport fi from '../translations/fi';\nimport fr from '../translations/fr';\nimport nl from '../translations/nl';\nimport no from '../translations/no';\nimport sv from '../translations/sv';\n\nconst allTranslations = {\n da: da,\n de: de,\n en: en,\n fi: fi,\n fr: fr,\n no: no,\n nl: nl,\n sv: sv,\n};\n\nconst REGEX = /\\{\\s*(\\w+)\\s*\\}/g;\n\nexport class Translations {\n public get(key: string, language = 'en', params?: object): string {\n const translation: string = allTranslations[language][key];\n if (!translation) {\n return key;\n }\n\n return translation.replaceAll(\n REGEX,\n (match: string, mergeCodeKey: string) => {\n return params[mergeCodeKey] || match;\n }\n );\n }\n}\n\nconst translations = new Translations();\nexport default (() => {\n return translations;\n})();\n"],"mappings":"AAAA,MAAAA,EAAe,CACXC,OAAQ,QACRC,KAAM,MACNC,OAAQ,WACRC,QAAS,YACTC,MAAO,QACPC,MAAO,YACP,sBAAuB,QACvB,oBAAqB,MACrB,qBAAsB,aACtB,eAAgB,SAChB,oBAAqB,SACrB,cAAe,MACf,kBAAmB,WACnB,kBAAmB,WACnB,cAAe,aACf,mBAAoB,SACpB,qBAAsB,WACtB,0BAA2B,qBAC3B,8BAA+B,2BAC/B,gCAAiC,6BACjC,qCACI,uCACJ,2BAA4B,yBAC5B,4BAA6B,yBAC7B,oBAAqB,OACrB,4BAA6B,QAC7B,8BAA+B,UAC/B,2BAA4B,KAC5B,0BAA2B,WAC3B,8BAA+B,0BAC/B,qBAAsB,WACtB,mBAAoB,MACpB,0BACI,qDACJ,2CACI,qDACJ,wCACI,yCACJ,uBAAwB,OACxB,8BAA+B,mBAC/B,iCAAkC,mBAClC,8BAA+B,mBAC/B,2BAA4B,QAC5B,mBAAoB,MACpB,qBAAsB,SACtB,4BAA6B,gBAC7B,iBAAkB,eAClB,iBAAkB,eAClB,iBAAkB,eAClB,4BAA6B,aAC7B,4BAA6B,mBAC7B,yBAA0B,YAC1B,mBAAoB,cACpB,wBAAyB,QACzB,wBAAyB,OACzB,yBAA0B,WAC1B,mBAAoB,OACpB,4BAA6B,oCAC7B,2BAA4B,2CAC5B,4BAA6B,gCAC7B,kCACI,mEACJ,eAAgB,uBAChB,kBAAmB,YACnB,qBAAsB,SACtB,mBAAoB,mBACpB,mBAAoB,mBACpB,yBAA0B,sBAC1B,4CACI,iCACJ,kDACI,0FCxER,MAAAC,EAAe,CACXN,OAAQ,YACRC,KAAM,YACNC,OAAQ,YACRC,QAAS,SACTC,MAAO,OACPC,MAAO,WACP,sBAAuB,aACvB,oBAAqB,aACrB,qBAAsB,WACtB,eAAgB,UAChB,oBAAqB,UACrB,cAAe,OACf,kBAAmB,WACnB,kBAAmB,UACnB,cAAe,cACf,mBAAoB,WACpB,qBAAsB,UACtB,0BAA2B,0BAC3B,8BAA+B,4BAC/B,gCAAiC,2BACjC,qCACI,+CACJ,2BAA4B,4BAC5B,4BAA6B,+BAC7B,oBAAqB,QACrB,4BAA6B,QAC7B,8BAA+B,UAC/B,2BAA4B,OAC5B,0BAA2B,YAC3B,8BAA+B,uBAC/B,qBAAsB,gBACtB,mBAAoB,YACpB,0BACI,qEACJ,2CACI,4DACJ,wCACI,uEACJ,uBAAwB,gBACxB,8BAA+B,wBAC/B,iCAAkC,0BAClC,8BAA+B,4BAC/B,2BAA4B,QAC5B,mBAAoB,OACpB,qBAAsB,SACtB,4BAA6B,kBAC7B,iBAAkB,gBAClB,iBAAkB,gBAClB,iBAAkB,gBAClB,4BAA6B,mBAC7B,4BAA6B,oBAC7B,yBAA0B,aAC1B,mBAAoB,OACpB,wBAAyB,OACzB,wBAAyB,OACzB,yBAA0B,YAC1B,mBAAoB,OACpB,4BAA6B,6BAC7B,2BACI,gEACJ,4BAA6B,gCAC7B,kCACI,wEACJ,eAAgB,qBAChB,kBAAmB,YACnB,qBAAsB,QACtB,mBAAoB,wBACpB,mBAAoB,wBACpB,yBAA0B,8BAC1B,4CACI,iCACJ,kDACI,6GCzER,MAAAE,EAAe,CACXP,OAAQ,SACRC,KAAM,OACNC,OAAQ,SACRC,QAAS,WACTC,MAAO,QACPC,MAAO,QACP,sBAAuB,WACvB,oBAAqB,SACrB,qBAAsB,UACtB,eAAgB,OAChB,oBAAqB,YACrB,cAAe,MACf,kBAAmB,UACnB,kBAAmB,UACnB,cAAe,cACf,mBAAoB,OACpB,qBAAsB,SACtB,0BAA2B,iBAC3B,8BAA+B,yBAC/B,gCAAiC,2BACjC,qCAAsC,mCACtC,2BAA4B,0BAC5B,4BAA6B,2BAC7B,oBAAqB,QACrB,4BAA6B,QAC7B,8BAA+B,UAC/B,2BAA4B,OAC5B,0BAA2B,cAC3B,8BAA+B,kBAC/B,qBAAsB,YACtB,mBAAoB,UACpB,0BACI,kDACJ,2CACI,+CACJ,wCACI,6CACJ,uBAAwB,WACxB,8BAA+B,kBAC/B,iCAAkC,qBAClC,8BAA+B,oBAC/B,2BAA4B,QAC5B,mBAAoB,OACpB,qBAAsB,SACtB,4BAA6B,gBAC7B,iBAAkB,YAClB,iBAAkB,YAClB,iBAAkB,YAClB,4BAA6B,gBAC7B,4BAA6B,gBAC7B,yBAA0B,aAC1B,mBAAoB,OACpB,wBAAyB,OACzB,wBAAyB,OACzB,yBAA0B,aAC1B,mBAAoB,OACpB,4BAA6B,iCAC7B,2BAA4B,gDAC5B,4BAA6B,+BAC7B,kCACI,4CACJ,eAAgB,eAChB,kBAAmB,YACnB,qBAAsB,WACtB,mBAAoB,kBACpB,mBAAoB,kBACpB,yBAA0B,0BAC1B,4CAA6C,2BAC7C,kDACI,+FCtER,MAAAG,EAAe,CACXR,OAAQ,SACRC,KAAM,WACNC,OAAQ,UACRC,QAAS,YACTC,MAAO,OACPC,MAAO,UACP,sBAAuB,WACvB,oBAAqB,WACrB,qBAAsB,YACtB,eAAgB,SAChB,oBAAqB,UACrB,cAAe,SACf,kBAAmB,WACnB,kBAAmB,WACnB,cAAe,eACf,mBAAoB,SACpB,qBAAsB,WACtB,0BAA2B,wBAC3B,8BAA+B,2BAC/B,gCAAiC,6BACjC,qCACI,0CACJ,2BAA4B,uBAC5B,4BAA6B,wBAC7B,oBAAqB,SACrB,4BAA6B,WAC7B,8BAA+B,iBAC/B,2BAA4B,QAC5B,0BAA2B,eAC3B,8BAA+B,0BAC/B,qBAAsB,kBACtB,mBAAoB,QACpB,0BACI,4DACJ,2CACI,qDACJ,wCACI,mDACJ,uBAAwB,SACxB,8BAA+B,uBAC/B,iCAAkC,qBAClC,8BAA+B,4BAC/B,2BAA4B,SAC5B,mBAAoB,YACpB,qBAAsB,aACtB,4BAA6B,aAC7B,iBAAkB,gBAClB,iBAAkB,gBAClB,iBAAkB,gBAClB,4BAA6B,yBAC7B,4BAA6B,kBAC7B,yBAA0B,cAC1B,mBAAoB,eACpB,wBAAyB,SACzB,wBAAyB,SACzB,yBAA0B,aAC1B,mBAAoB,QACpB,4BAA6B,kCAC7B,2BAA4B,gDAC5B,4BAA6B,+BAC7B,kCACI,wDACJ,eAAgB,kBAChB,kBAAmB,gBACnB,qBAAsB,YACtB,mBAAoB,uBACpB,mBAAoB,oBACpB,yBAA0B,sBAC1B,4CAA6C,8BAC7C,kDACI,wFCvER,MAAAI,EAAe,CACXT,OAAQ,YACRC,KAAM,cACNC,OAAQ,UACRC,QAAS,cACTC,MAAO,SACPC,MAAO,WACP,sBAAuB,UACvB,oBAAqB,aACrB,qBAAsB,UACtB,eAAgB,OAChB,oBAAqB,YACrB,cAAe,UACf,kBAAmB,WACnB,kBAAmB,gBACnB,cAAe,kBACf,mBAAoB,QACpB,qBAAsB,SACtB,0BAA2B,oBAC3B,8BAA+B,8BAC/B,gCAAiC,0BACjC,qCACI,yCACJ,2BAA4B,+BAC5B,4BAA6B,+BAC7B,oBAAqB,cACrB,4BAA6B,OAC7B,8BAA+B,YAC/B,2BAA4B,QAC5B,0BAA2B,yBAC3B,8BAA+B,2BAC/B,qBAAsB,eACtB,mBAAoB,SACpB,0BACI,gEACJ,2CACI,2DACJ,wCACI,6DACJ,uBAAwB,cACxB,8BAA+B,8BAC/B,iCAAkC,wBAClC,8BAA+B,+BAC/B,2BAA4B,QAC5B,mBAAoB,OACpB,qBAAsB,WACtB,4BAA6B,QAC7B,iBAAkB,UAClB,iBAAkB,UAClB,iBAAkB,UAClB,4BAA6B,gBAC7B,4BAA6B,kBAC7B,yBAA0B,mBAC1B,mBAAoB,OACpB,wBAAyB,QACzB,wBAAyB,OACzB,yBAA0B,eAC1B,mBAAoB,OACpB,4BAA6B,yCAC7B,2BACI,qDACJ,4BAA6B,gCAC7B,kCACI,yEACJ,eAAgB,uBAChB,kBAAmB,YACnB,qBAAsB,eACtB,mBAAoB,iCACpB,mBAAoB,2BACpB,yBAA0B,iCAC1B,4CACI,oCACJ,kDACI,uHCzER,MAAAK,EAAe,CACXV,OAAQ,YACRC,KAAM,UACNC,OAAQ,YACRC,QAAS,SACTC,MAAO,SACPC,MAAO,QACP,sBAAuB,YACvB,oBAAqB,aACrB,qBAAsB,SACtB,eAAgB,YAChB,oBAAqB,aACrB,cAAe,MACf,kBAAmB,eACnB,kBAAmB,eACnB,cAAe,cACf,mBAAoB,WACpB,qBAAsB,aACtB,0BAA2B,mBAC3B,8BAA+B,2BAC/B,gCAAiC,8BACjC,qCAAsC,oCACtC,2BAA4B,yBAC5B,4BAA6B,0BAC7B,oBAAqB,UACrB,4BAA6B,QAC7B,8BAA+B,WAC/B,2BAA4B,OAC5B,0BAA2B,aAC3B,8BAA+B,+BAC/B,qBAAsB,eACtB,mBAAoB,UACpB,0BACI,qDACJ,2CACI,sDACJ,wCACI,yDACJ,uBAAwB,aACxB,8BAA+B,0BAC/B,iCAAkC,0BAClC,8BAA+B,8BAC/B,2BAA4B,QAC5B,mBAAoB,MACpB,qBAAsB,UACtB,4BAA6B,YAC7B,iBAAkB,cAClB,iBAAkB,cAClB,iBAAkB,cAClB,4BAA6B,YAC7B,4BAA6B,mBAC7B,yBAA0B,aAC1B,mBAAoB,iBACpB,wBAAyB,QACzB,wBAAyB,OACzB,yBAA0B,WAC1B,mBAAoB,OACpB,4BAA6B,4CAC7B,2BACI,uDACJ,4BAA6B,oCAC7B,kCACI,oEACJ,eAAgB,iBAChB,kBAAmB,YACnB,qBAAsB,iBACtB,mBAAoB,wBACpB,mBAAoB,sBACpB,yBAA0B,uCAC1B,4CACI,sCACJ,kDACI,iHCxER,MAAAM,EAAe,CACXX,OAAQ,SACRC,KAAM,QACNC,OAAQ,SACRC,QAAS,UACTC,MAAO,QACPC,MAAO,YACP,sBAAuB,QACvB,oBAAqB,MACrB,qBAAsB,aACtB,eAAgB,OAChB,oBAAqB,SACrB,cAAe,MACf,kBAAmB,WACnB,kBAAmB,WACnB,cAAe,aACf,mBAAoB,SACpB,qBAAsB,UACtB,0BAA2B,qBAC3B,8BAA+B,2BAC/B,gCAAiC,4BACjC,qCACI,uCACJ,2BAA4B,0BAC5B,4BAA6B,0BAC7B,oBAAqB,QACrB,4BAA6B,QAC7B,8BAA+B,UAC/B,2BAA4B,KAC5B,0BAA2B,cAC3B,8BAA+B,yBAC/B,qBAAsB,aACtB,0BACI,wDACJ,2CACI,sDACJ,wCACI,8CACJ,uBAAwB,aACxB,8BAA+B,sBAC/B,iCAAkC,oBAClC,8BAA+B,oBAC/B,2BAA4B,OAC5B,mBAAoB,MACpB,qBAAsB,SACtB,4BAA6B,kBAC7B,iBAAkB,eAClB,iBAAkB,eAClB,iBAAkB,gBAClB,4BAA6B,aAC7B,4BAA6B,kBAC7B,yBAA0B,aAC1B,mBAAoB,iBACpB,wBAAyB,QACzB,wBAAyB,QACzB,yBAA0B,YAC1B,mBAAoB,OACpB,4BAA6B,gCAC7B,2BAA4B,yCAC5B,4BAA6B,+BAC7B,kCACI,+DACJ,eAAgB,sBAChB,mBAAoB,OACpB,kBAAmB,YACnB,qBAAsB,SACtB,mBAAoB,kBACpB,mBAAoB,mBACpB,yBAA0B,oBAC1B,4CAA6C,uBAC7C,kDACI,6FCvER,MAAAO,EAAe,CACXZ,OAAQ,UACRC,KAAM,QACNC,OAAQ,SACRC,QAAS,UACTC,MAAO,QACPC,MAAO,SACP,sBAAuB,OACvB,oBAAqB,OACrB,qBAAsB,WACtB,eAAgB,MAChB,oBAAqB,UACrB,cAAe,OACf,kBAAmB,UACnB,kBAAmB,UACnB,cAAe,gBACf,mBAAoB,UACpB,qBAAsB,WACtB,0BAA2B,yBAC3B,8BAA+B,6BAC/B,gCAAiC,8BACjC,qCACI,wCACJ,2BAA4B,2BAC5B,4BAA6B,2BAC7B,oBAAqB,OACrB,4BAA6B,QAC7B,8BAA+B,UAC/B,2BAA4B,KAC5B,0BAA2B,cAC3B,8BAA+B,4BAC/B,qBAAsB,aACtB,mBAAoB,QACpB,0BACI,yDACJ,2CACI,qDACJ,wCACI,gDACJ,uBAAwB,YACxB,8BAA+B,yBAC/B,iCAAkC,yBAClC,8BAA+B,kBAC/B,2BAA4B,OAC5B,mBAAoB,MACpB,qBAAsB,SACtB,4BAA6B,eAC7B,iBAAkB,WAClB,iBAAkB,WAClB,iBAAkB,WAClB,4BAA6B,aAC7B,4BAA6B,iBAC7B,yBAA0B,aAC1B,mBAAoB,iBACpB,wBAAyB,OACzB,wBAAyB,OACzB,yBAA0B,WAC1B,mBAAoB,MACpB,4BAA6B,iCAC7B,2BAA4B,0CAC5B,4BAA6B,+BAC7B,kCACI,6DACJ,eAAgB,oBAChB,kBAAmB,YACnB,qBAAsB,SACtB,mBAAoB,qBACpB,mBAAoB,oBACpB,yBAA0B,oBAC1B,4CAA6C,sBAC7C,kDACI,mFC9DR,MAAMQ,EAAkB,CACpBd,GAAIA,EACJO,GAAIA,EACJC,GAAIA,EACJC,GAAIA,EACJC,GAAIA,EACJE,GAAIA,EACJD,GAAIA,EACJE,GAAIA,GAGR,MAAME,EAAQ,mB,MAEDC,EACFC,IAAIC,EAAaC,EAAW,KAAMC,GACrC,MAAMC,EAAsBP,EAAgBK,GAAUD,GACtD,IAAKG,EAAa,CACd,OAAOH,C,CAGX,OAAOG,EAAYC,WACfP,GACA,CAACQ,EAAeC,IACLJ,EAAOI,IAAiBD,G,EAM/C,MAAME,EAAe,IAAIT,EACzB,MAAAU,EAAe,KACJD,EADI,U"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{r as i,c as t,h as e,H as s,g as n}from"./p-288f0842.js";import{t as r}from"./p-
|
|
2
|
-
//# sourceMappingURL=p-
|
|
1
|
+
import{r as i,c as t,h as e,H as s,g as n}from"./p-288f0842.js";import{t as r}from"./p-df36e1ae.js";import{i as a}from"./p-fc998171.js";import{a as o,E as l}from"./p-aa25f475.js";const h='@charset "UTF-8";:host(limel-action-bar){--action-bar-item-height:2rem;--limel-action-bar-item-text-color:var(\n --action-bar-item-text-color,\n rgb(var(--contrast-1100))\n );box-sizing:border-box;display:inline-flex;align-items:center;padding:0.125rem 0.25rem;max-width:100%;border-radius:var(--action-bar-border-radius);background-color:var(--action-bar-background-color, rgb(var(--contrast-100)));transition:max-width 0.3s ease}:host(limel-action-bar),.items{gap:0.25rem}@media (pointer: coarse){:host(limel-action-bar),.items{gap:0.5rem}}.items{display:inline-flex;max-width:100%;min-width:0}:host(limel-action-bar.is-shrunk) .items{opacity:0}:host(limel-action-bar:not(.is-shrunk)) .items{opacity:1}:host(limel-action-bar.is-full-width){width:100%}:host(limel-action-bar.is-floating){--action-bar-border-radius:100vw;border:1px solid rgb(var(--contrast-400));padding-right:0.125rem;padding-left:0.125rem;max-width:calc(100% - 2rem);box-shadow:var(--shadow-depth-16), var(--shadow-depth-8)}:host(limel-action-bar.is-shrunk){max-width:5rem;transition:max-width 0.3s ease-in-out}:host(limel-action-bar.is-shrunk) .expand-shrink{transition:transform 0.3s ease;transform:rotateY(180deg)}:host(limel-action-bar:not(.is-shrunk)){max-width:100%;transition:max-width 0.3s ease-in-out}:host(limel-action-bar:not(.is-shrunk)) .expand-shrink{transition:transform 0.3s ease;transform:rotateY(0deg)}:host(limel-action-bar.can-be-shrunk.is-full-width) .expand-shrink{margin-left:auto}.expand-shrink{all:unset;box-sizing:border-box;border-radius:50%;transition:color var(--limel-clickable-transition-speed, 0.4s) ease, background-color var(--limel-clickable-transition-speed, 0.4s) ease, box-shadow var(--limel-clickable-transform-speed, 0.4s) ease, transform var(--limel-clickable-transform-speed, 0.4s) var(--limel-clickable-transform-timing-function, ease);cursor:pointer;color:var(--limel-theme-on-surface-color);background-color:transparent;display:flex;justify-content:center;align-items:center}.expand-shrink:hover,.expand-shrink:focus,.expand-shrink:focus-visible{will-change:color, background-color, box-shadow, transform}.expand-shrink:hover,.expand-shrink:focus-visible{transform:translate3d(0, 0.01rem, 0);color:var(--limel-theme-on-surface-color);background-color:var(--lime-elevated-surface-background-color)}.expand-shrink:hover{box-shadow:var(--button-shadow-hovered)}.expand-shrink:active{--limel-clickable-transform-timing-function:cubic-bezier(\n 0.83,\n -0.15,\n 0.49,\n 1.16\n );transform:translate3d(0, 0.05rem, 0);box-shadow:var(--button-shadow-pressed)}.expand-shrink:hover,.expand-shrink:active{--limel-clickable-transition-speed:0.2s;--limel-clickable-transform-speed:0.16s}.expand-shrink:focus{outline:none}.expand-shrink:focus-visible{outline:none;box-shadow:var(--shadow-depth-8-focused)}.expand-shrink limel-icon{width:1.5rem;height:1.5rem;padding:0.125rem;color:var(--action-bar-shrink-icon-color, rgb(var(--contrast-1000)))}';const c=class{constructor(s){i(this,s);this.itemSelected=t(this,"itemSelected",7);this.hasRendered=false;this.isFirstIntersectionCheck=true;this.actionBarItems=[];this.renderActionBarItem=(i,t)=>e("limel-action-bar-item",{item:i,onSelect:this.handleSelect,isVisible:this.isVisible(t),role:"gridcell"});this.renderOverflowMenu=i=>{if(!(this.actions.length-this.overflowCutoff)){return}const t={name:"more",color:"rgb(var(--contrast-1000))",title:this.getTranslation("action-bar.actions")};return e("limel-action-bar-overflow-menu",{openDirection:this.openDirection,items:i,onSelect:this.handleSelect,role:"gridcell",overFlowIcon:this.actionBarIsShrunk?t:undefined})};this.handleCollapseExpandClick=()=>{this.actionBarIsShrunk=!this.actionBarIsShrunk};this.handleSelect=i=>{i.stopPropagation();if(a(i.detail)){this.itemSelected.emit(i.detail)}};this.getTranslation=i=>r.get(i,this.language);this.handleIntersection=i=>{const t=i.filter((i=>i.isIntersecting));const e=i.filter((i=>!i.isIntersecting));if(this.isFirstIntersectionCheck){this.overflowCutoff=t.length}else{this.overflowCutoff=this.overflowCutoff+t.length-e.length}this.isFirstIntersectionCheck=false};this.actions=[];this.language=document.documentElement.lang;this.accessibleLabel=undefined;this.layout=undefined;this.collapsible=false;this.openDirection=undefined;this.overflowCutoff=this.actions.length;this.actionBarIsShrunk=false}connectedCallback(){if(this.hasRendered){this.createIntersectionObserver()}}componentDidRender(){var i;if(this.haveItemsChanged()){(i=this.intersectionObserver)===null||i===void 0?void 0:i.disconnect();this.createIntersectionObserver()}}disconnectedCallback(){var i;(i=this.intersectionObserver)===null||i===void 0?void 0:i.disconnect();this.intersectionObserver=undefined;this.actionBarItems=[]}render(){this.hasRendered=true;let i=[];if(this.actions.length>0){i=this.actions.slice(this.overflowCutoff)}return e(s,{"aria-label":this.accessibleLabel,class:{"is-full-width":this.layout==="fullWidth","is-floating":this.layout==="floating","is-shrunk":this.actionBarIsShrunk&&this.collapsible,"can-be-shrunk":!!this.collapsible},role:"grid"},e("div",{class:"items",role:"rowgroup"},this.actions.map(this.renderActionBarItem)),this.renderOverflowMenu(i),this.renderCollapseExpandButton())}renderCollapseExpandButton(){if(!this.collapsible||this.actions.length<=1){return}return e("button",{class:{"expand-shrink":true},"aria-label":this.tooltipLabel,type:"button",onClick:this.handleCollapseExpandClick},e("limel-icon",{name:"double_left",id:"tooltip-expand-shrink-button"}),e("limel-tooltip",{label:this.tooltipLabel,elementId:"tooltip-expand-shrink-button"}))}isVisible(i){return i<this.overflowCutoff}get tooltipLabel(){let i="action-bar.collapse";if(this.actionBarIsShrunk){i="action-bar.expand"}return this.getTranslation(i)}createIntersectionObserver(){const i={root:this.host.shadowRoot.querySelector(".items"),rootMargin:"0px",threshold:1};this.overflowCutoff=this.actions.length;this.isFirstIntersectionCheck=true;this.actionBarItems=[];this.intersectionObserver=new IntersectionObserver(this.handleIntersection,i);for(const i of this.host.shadowRoot.querySelectorAll("limel-action-bar-item")){this.observe(i)}}observe(i){this.intersectionObserver.observe(i);this.actionBarItems.push(i)}haveItemsChanged(){const i=this.actionBarItems.some((i=>!this.host.shadowRoot.contains(i)));const t=[...this.host.shadowRoot.querySelectorAll("limel-action-bar-item")].some((i=>!this.actionBarItems.includes(i)));return i||t}get host(){return n(this)}};c.style=h;const d=":host(limel-text-editor-link-menu){animation:fade 0.2s ease forwards;animation-delay:0.1s;opacity:0;display:flex;flex-direction:column;gap:0.5rem;padding:0.5rem;max-width:calc(100vw - 2rem);border-radius:0.5rem;background-color:var(--lime-elevated-surface-background-color);box-shadow:var(--shadow-depth-16)}.actions{display:flex;justify-content:end;gap:0.5rem}@keyframes fade{0%{scale:0.86;opacity:0}100%{scale:1;opacity:1}}";const m=class{constructor(e){i(this,e);this.cancel=t(this,"cancel",7);this.save=t(this,"save",7);this.linkChange=t(this,"linkChange",7);this.getTranslation=i=>r.get(i,this.language);this.isValid=i=>{try{new URL(i)}catch(i){return false}return true};this.handleKeyDown=i=>{var t;if(i.key!==o){return}if(this.saveButton){this.saveButton.focus()}i.preventDefault();if(this.isValid((t=this.link)===null||t===void 0?void 0:t.href)){this.handleSave(i)}};this.handleCancel=i=>{if(i instanceof KeyboardEvent&&i.key!==l){return}i.stopPropagation();i.preventDefault();this.cancel.emit()};this.handleSave=i=>{i.stopPropagation();this.save.emit()};this.handleLinkInputAction=i=>{window.open(this.link.href,"_blank");i.stopPropagation()};this.handleLinkTitleChange=i=>{var t;this.emitLinkChange(i.detail,(t=this.link)===null||t===void 0?void 0:t.href)};this.handleLinkValueChange=i=>{var t;const e=i.detail;this.emitLinkChange((t=this.link)===null||t===void 0?void 0:t.text,e)};this.emitLinkChange=(i,t)=>{const e={text:i,href:t};this.linkChange.emit(e)};this.link=undefined;this.language="en";this.isOpen=false}connectedCallback(){this.setupGlobalHandlers()}disconnectedCallback(){this.teardownGlobalHandlers()}setupGlobalHandlers(){if(this.isOpen){document.addEventListener("keyup",this.handleCancel)}}teardownGlobalHandlers(){document.removeEventListener("keyup",this.handleCancel)}componentDidLoad(){this.focusOnTextInput()}focusOnTextInput(){if(this.textInput){const i=this.textInput.shadowRoot.querySelector("input");if(i){requestAnimationFrame((()=>{i.focus()}))}}}render(){var i,t;const s=this.isValid(this.link.href);return[e("limel-input-field",{label:this.getTranslation("editor-link-menu.text"),value:((i=this.link)===null||i===void 0?void 0:i.text)||"",leadingIcon:"text_cursor",onChange:this.handleLinkTitleChange,onKeyDown:this.handleKeyDown,ref:i=>this.textInput=i}),e("limel-input-field",{label:this.getTranslation("editor-link-menu.link"),value:((t=this.link)===null||t===void 0?void 0:t.href)||"",type:"text",leadingIcon:"-lime-text-link",trailingIcon:"external_link",invalid:!s,onChange:this.handleLinkValueChange,onAction:this.handleLinkInputAction,onKeyDown:this.handleKeyDown}),e("div",{class:"actions"},e("limel-button",{label:this.getTranslation("cancel"),onClick:this.handleCancel}),e("limel-button",{primary:true,label:this.getTranslation("save"),disabled:!s,onClick:this.handleSave,ref:i=>this.saveButton=i,slot:"button"}))]}};m.style=d;export{c as limel_action_bar,m as limel_text_editor_link_menu};
|
|
2
|
+
//# sourceMappingURL=p-e739d600.entry.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{r as t,c as e,h as a}from"./p-288f0842.js";import{t as r}from"./p-c582027f.js";import{c as i}from"./p-ad52787a.js";const l='@charset "UTF-8";:host(limel-chart){--chart-axis-line-color:var(\n --limel-chart-axis-line-color,\n rgb(var(--contrast-900))\n );box-sizing:border-box;isolation:isolate;display:flex;width:100%;height:100%;min-width:0;min-height:0;padding:var(--limel-chart-padding)}table{all:unset;border-collapse:collapse;border-spacing:0;empty-cells:show;position:relative;display:flex;width:100%;height:100%;min-width:0;min-height:0}table colgroup,table thead,table tbody,table tr,table th,table td{all:unset}table caption,table colgroup,table thead,table tfoot,table th,table td{position:absolute;width:0;height:0;margin:-1px;padding:0;border:0;overflow:hidden;clip:rect(0, 0, 0, 0);clip-path:inset(50%);white-space:nowrap}*,*:before,*:after{box-sizing:border-box}.chart{position:relative;flex-grow:1;width:100%;height:100%;min-height:0;min-width:0}.chart:has(.item:hover) .item,.chart:has(.item:focus-visible) .item{opacity:0.4}.item{transition:background-color 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease, opacity 0.4s ease;cursor:help}.item:focus{outline:none}.item:focus-visible{outline:none;box-shadow:var(--shadow-depth-8-focused)}.item:focus-visible,.item:hover{opacity:1 !important}.item[role=button]{cursor:pointer}limel-spinner{margin:auto}:host(limel-chart[type=bar]) .chart,:host(limel-chart[type=dot]) .chart,:host(limel-chart[type=line]) .chart,:host(limel-chart[type=area]) .chart{display:flex;background-color:var(--chart-background-color, transparent)}:host(limel-chart[type=bar]) .item,:host(limel-chart[type=dot]) .item,:host(limel-chart[type=line]) .item,:host(limel-chart[type=area]) .item{position:relative;mix-blend-mode:hard-light}:host(limel-chart[type=bar][orientation=landscape]),:host(limel-chart[type=dot][orientation=landscape]),:host(limel-chart[type=line][orientation=landscape]),:host(limel-chart[type=area][orientation=landscape]){--limel-chart-padding:0.5rem 0.5rem 0.5rem 2rem}:host(limel-chart[type=bar][orientation=landscape]) .chart,:host(limel-chart[type=dot][orientation=landscape]) .chart,:host(limel-chart[type=line][orientation=landscape]) .chart,:host(limel-chart[type=area][orientation=landscape]) .chart{flex-direction:row;align-items:flex-end;overflow:auto hidden;padding:0 0.125rem}:host(limel-chart[type=bar][orientation=landscape]) .item,:host(limel-chart[type=dot][orientation=landscape]) .item,:host(limel-chart[type=line][orientation=landscape]) .item,:host(limel-chart[type=area][orientation=landscape]) .item{min-width:0.5rem;width:inherit}:host(limel-chart[type=bar][orientation=portrait]),:host(limel-chart[type=dot][orientation=portrait]),:host(limel-chart[type=line][orientation=portrait]),:host(limel-chart[type=area][orientation=portrait]){--limel-chart-padding:0.5rem 0.5rem 1rem 0.5rem}:host(limel-chart[type=bar][orientation=portrait]) .chart,:host(limel-chart[type=dot][orientation=portrait]) .chart,:host(limel-chart[type=line][orientation=portrait]) .chart,:host(limel-chart[type=area][orientation=portrait]) .chart{flex-direction:column;overflow:hidden auto;padding:0.125rem 0}:host(limel-chart[type=bar][orientation=portrait]) .item,:host(limel-chart[type=dot][orientation=portrait]) .item,:host(limel-chart[type=line][orientation=portrait]) .item,:host(limel-chart[type=area][orientation=portrait]) .item{min-height:0.5rem;height:inherit}:host(limel-chart[display-axis-labels][orientation=portrait]){--limel-chart-padding:0.5rem 0.5rem 2rem\n 1.25rem}:host(limel-chart[display-axis-labels][orientation=landscape]){--limel-chart-padding:0.5rem 0.5rem 1.25rem\n 3rem}:host(limel-chart[display-axis-labels][type=line]) table thead,:host(limel-chart[display-axis-labels][type=line]) table th,:host(limel-chart[display-axis-labels][type=dot]) table thead,:host(limel-chart[display-axis-labels][type=dot]) table th,:host(limel-chart[display-axis-labels][type=area]) table thead,:host(limel-chart[display-axis-labels][type=area]) table th,:host(limel-chart[display-axis-labels][type=bar]) table thead,:host(limel-chart[display-axis-labels][type=bar]) table th{all:unset}:host(limel-chart[display-axis-labels][type=line]) table th,:host(limel-chart[display-axis-labels][type=dot]) table th,:host(limel-chart[display-axis-labels][type=area]) table th,:host(limel-chart[display-axis-labels][type=bar]) table th{position:absolute;font-size:var(--limel-theme-default-small-font-size);max-width:100%;max-height:100%;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}:host(limel-chart[display-axis-labels][orientation=portrait]) table thead th:first-of-type{left:-1.25rem;writing-mode:sideways-lr}:host(limel-chart[display-axis-labels][orientation=portrait]) table thead th:last-of-type{bottom:-2rem;left:50%;transform:translateX(-50%)}:host(limel-chart[display-axis-labels][orientation=landscape]) table thead th:first-of-type{bottom:-1.25rem;left:50%;transform:translateX(-50%)}:host(limel-chart[display-axis-labels][orientation=landscape]) table thead th:last-of-type{left:-3rem;writing-mode:sideways-lr}:host(limel-chart[type=pie]) table,:host(limel-chart[type=doughnut]) table,:host(limel-chart[type=ring]) table{min-height:2rem;min-width:2rem}:host(limel-chart[type=pie]) .chart,:host(limel-chart[type=pie]) .item,:host(limel-chart[type=doughnut]) .chart,:host(limel-chart[type=doughnut]) .item,:host(limel-chart[type=ring]) .chart,:host(limel-chart[type=ring]) .item{aspect-ratio:1;display:flex;margin:auto}:host(limel-chart[type=pie]) .chart,:host(limel-chart[type=doughnut]) .chart,:host(limel-chart[type=ring]) .chart{justify-content:center;align-items:center}:host(limel-chart[type=pie]) .chart:before,:host(limel-chart[type=doughnut]) .chart:before,:host(limel-chart[type=ring]) .chart:before{aspect-ratio:1;content:"";position:absolute;z-index:0;inset:0;margin:auto;border-radius:50%;max-width:100%;max-height:100%;background-color:var(--chart-background-color, rgb(var(--contrast-200)))}:host(limel-chart[type=pie]) .item,:host(limel-chart[type=doughnut]) .item,:host(limel-chart[type=ring]) .item{max-width:100%;max-height:100%;border-radius:50%;position:absolute;inset:0}:host(limel-chart[type=bar]) .chart,:host(limel-chart[type=dot]) .chart{gap:0.5rem}:host(limel-chart[type=bar]) .item,:host(limel-chart[type=dot]) .item{display:flex;align-items:center;justify-content:center;border-radius:var(--chart-item-border-radius, 0.125rem)}:host(limel-chart[type=bar]) .item{background:var(--limel-chart-item-color, var(--chart-item-color, rgb(var(--contrast-1100), 0.8)))}:host(limel-chart[type=dot]) .item:before,:host(limel-chart[type=dot]) .item:after{content:"";position:absolute;margin:auto;width:0.5rem;height:0.5rem;border-radius:50%}:host(limel-chart[type=dot]) .item::after{background-color:var(--limel-chart-item-color, var(--chart-item-color, rgb(var(--contrast-1100), 0.8)))}:host(limel-chart[type=dot]) .item.has-start-value:before{background-color:var(--limel-chart-item-color, var(--chart-item-color, rgb(var(--contrast-1100), 0.8)))}:host(limel-chart[type=bar][orientation=landscape]) .item,:host(limel-chart[type=dot][orientation=landscape]) .item{height:calc(var(--limel-chart-item-size) * 1%);bottom:calc(var(--limel-chart-item-offset) * 1%)}:host(limel-chart[type=bar][orientation=landscape]) .item.has-negative-value-only,:host(limel-chart[type=dot][orientation=landscape]) .item.has-negative-value-only{height:calc(var(--limel-chart-item-size) * -1%);transform-origin:bottom;transform:rotateX(180deg)}:host(limel-chart[type=dot][orientation=landscape]) .item.has-start-value,:host(limel-chart[type=dot][orientation=landscape]) .item:hover,:host(limel-chart[type=dot][orientation=landscape]) .item:focus-visible{background:linear-gradient(to bottom, rgb(var(--contrast-800), 0.4) 0%, rgb(var(--contrast-800), 0.4) 100%) center/1px 100% no-repeat}:host(limel-chart[type=dot][orientation=landscape]) .item:before{inset:auto 0 0 0;transform:translateY(50%)}:host(limel-chart[type=dot][orientation=landscape]) .item::after{inset:0 0 auto 0;transform:translateY(-50%)}:host(limel-chart[type=bar][orientation=portrait]) .item,:host(limel-chart[type=dot][orientation=portrait]) .item{width:calc(var(--limel-chart-item-size) * 1%);left:calc(var(--limel-chart-item-offset) * 1%)}:host(limel-chart[type=bar][orientation=portrait]) .item.has-negative-value-only,:host(limel-chart[type=dot][orientation=portrait]) .item.has-negative-value-only{width:calc(var(--limel-chart-item-size) * -1%);transform-origin:left;transform:rotateY(180deg)}:host(limel-chart[type=dot][orientation=portrait]) .item.has-start-value,:host(limel-chart[type=dot][orientation=portrait]) .item:hover,:host(limel-chart[type=dot][orientation=portrait]) .item:focus-visible{background:linear-gradient(to right, rgb(var(--contrast-800), 0.4) 0%, rgb(var(--contrast-800), 0.4) 100%) center/100% 1px no-repeat}:host(limel-chart[type=dot][orientation=portrait]) .item:before{inset:0 auto 0 0;transform:translateX(-50%)}:host(limel-chart[type=dot][orientation=portrait]) .item:after{inset:0 0 0 auto;transform:translateX(50%)}:host(limel-chart[type=area]) .item,:host(limel-chart[type=line]) .item{position:relative}:host(limel-chart[type=area]) .item:after,:host(limel-chart[type=line]) .item:after{margin:auto;width:0.5rem;height:0.5rem;border-radius:50%;border:1px solid rgb(var(--contrast-100))}:host(limel-chart[type=area]) .item:before,:host(limel-chart[type=line]) .item:before{inset:0}:host(limel-chart[type=area]) .item:after,:host(limel-chart[type=area]) .item:before,:host(limel-chart[type=line]) .item:after,:host(limel-chart[type=line]) .item:before{transition:border-color 0.2s ease, opacity 0.4s ease;content:"";position:absolute;background:var(--limel-chart-item-color, var(--chart-item-color, rgb(var(--contrast-1100), 0.8)))}:host(limel-chart[type=area]) .item:hover:after,:host(limel-chart[type=area]) .item:focus-visible:after,:host(limel-chart[type=line]) .item:hover:after,:host(limel-chart[type=line]) .item:focus-visible:after{border-color:transparent}:host(limel-chart[type=line][orientation=landscape]) .item,:host(limel-chart[type=area][orientation=landscape]) .item{height:100%}:host(limel-chart[type=line][orientation=landscape]) .item:after,:host(limel-chart[type=area][orientation=landscape]) .item:after{transform:translateX(-50%) translateY(50%);left:0;bottom:calc((var(--limel-chart-item-size) + var(--limel-chart-item-offset)) * 1%)}:host(limel-chart[type=line][orientation=landscape]) .item:last-of-type:before,:host(limel-chart[type=area][orientation=landscape]) .item:last-of-type:before{display:none}:host(limel-chart[type=line][orientation=portrait]) .item,:host(limel-chart[type=area][orientation=portrait]) .item{width:100%}:host(limel-chart[type=line][orientation=portrait]) .item:after,:host(limel-chart[type=area][orientation=portrait]) .item:after{transform:translateX(-50%) translateY(-50%);left:calc((var(--limel-chart-item-size) + var(--limel-chart-item-offset)) * 1%)}:host(limel-chart[type=area]) .item:after{opacity:0}:host(limel-chart[type=area]) .item:hover:after,:host(limel-chart[type=area]) .item:focus-visible:after{opacity:1}:host(limel-chart[type=area]) .item:hover:before,:host(limel-chart[type=area]) .item:focus-visible:before{opacity:0.7}:host(limel-chart[type=area][orientation=landscape]){}:host(limel-chart[type=area][orientation=landscape]) .item:before{clip-path:polygon(0 calc((100 - var(--limel-chart-item-offset)) * 1%), 0 calc((100 - (var(--limel-chart-item-size) + var(--limel-chart-item-offset))) * 1%), 100% calc((100 - (var(--limel-chart-next-item-size) + var(--limel-chart-next-item-offset))) * 1%), 100% calc((100 - var(--limel-chart-next-item-offset)) * 1%))}:host(limel-chart[type=area][orientation=portrait]){}:host(limel-chart[type=area][orientation=portrait]) .item:before{clip-path:polygon(calc(var(--limel-chart-item-offset) * 1%) 0, calc((var(--limel-chart-item-size) + var(--limel-chart-item-offset)) * 1%) 0, calc((var(--limel-chart-next-item-size) + var(--limel-chart-next-item-offset)) * 1%) 100%, calc(var(--limel-chart-next-item-offset) * 1%) 100%)}:host(limel-chart[type=line]){--limel-chart-line-thickness:0.125rem}:host(limel-chart[type=line]) .item:hover:before{opacity:0.4}:host(limel-chart[type=line][orientation=landscape]){}:host(limel-chart[type=line][orientation=landscape]) .item:hover{background:linear-gradient(to bottom, rgb(var(--contrast-800), 0.4) 0%, rgb(var(--contrast-800), 0.4) 100%) left/1px 100% no-repeat}:host(limel-chart[type=line][orientation=landscape]) .item:before{clip-path:polygon(0 calc((100 - (var(--limel-chart-item-size) + var(--limel-chart-item-offset))) * 1%), 0 calc((100 - (var(--limel-chart-item-size) + var(--limel-chart-item-offset))) * 1% + var(--limel-chart-line-thickness)), 100% calc((100 - (var(--limel-chart-next-item-size) + var(--limel-chart-next-item-offset))) * 1% + var(--limel-chart-line-thickness)), 100% calc((100 - (var(--limel-chart-next-item-size) + var(--limel-chart-next-item-offset))) * 1%))}:host(limel-chart[type=line][orientation=portrait]){}:host(limel-chart[type=line][orientation=portrait]) .item:hover{background:linear-gradient(to right, rgb(var(--contrast-800), 0.4) 0%, rgb(var(--contrast-800), 0.4) 100%) top/100% 1px no-repeat}:host(limel-chart[type=line][orientation=portrait]) .item:before{clip-path:polygon(calc((var(--limel-chart-item-size) + var(--limel-chart-item-offset)) * 1%) 0, calc((var(--limel-chart-item-size) + var(--limel-chart-item-offset)) * 1% + var(--limel-chart-line-thickness)) 0, calc((var(--limel-chart-next-item-size) + var(--limel-chart-next-item-offset)) * 1% + var(--limel-chart-line-thickness)) 100%, calc((var(--limel-chart-next-item-size) + var(--limel-chart-next-item-offset)) * 1%) 100%)}:host(limel-chart[type=pie]) .item,:host(limel-chart[type=doughnut]) .item{background:conic-gradient(transparent 0 calc(var(--limel-chart-item-offset) * 1%), var(--limel-chart-item-color, var(--chart-item-color, rgb(var(--contrast-1100), 0.8))) calc(var(--limel-chart-item-offset) * 1%) calc(var(--limel-chart-item-offset) * 1% + var(--limel-chart-item-size) * 1%), transparent calc(var(--limel-chart-item-offset) * 1% + var(--limel-chart-item-size) * 1%))}:host(limel-chart[type=pie]) .item:focus,:host(limel-chart[type=pie]) .item:focus-visible,:host(limel-chart[type=doughnut]) .item:focus,:host(limel-chart[type=doughnut]) .item:focus-visible{outline:none}:host(limel-chart[type=pie]) .item,:host(limel-chart[type=doughnut]) .item{pointer-events:none}:host(limel-chart[type=doughnut]) .chart:after{aspect-ratio:1;content:"";position:absolute;inset:0;margin:auto;max-width:60%;max-height:60%;border-radius:50%;background-color:rgb(var(--contrast-100))}:host(limel-chart[type=ring]) .chart:after{content:"";position:absolute;inset:0;aspect-ratio:1;border-radius:50%;max-height:calc(100% - var(--limel-chart-number-of-items) * 100% / (var(--limel-chart-number-of-items) + 1));max-width:calc(100% - var(--limel-chart-number-of-items) * 100% / (var(--limel-chart-number-of-items) + 1));background-color:var(--limel-chart-background-color, rgb(var(--contrast-200)))}:host(limel-chart[type=ring]) .chart:has(.item:hover) .item,:host(limel-chart[type=ring]) .chart:has(.item:focus-visible) .item{opacity:1;filter:grayscale(1)}:host(limel-chart[type=ring]) .chart:after,:host(limel-chart[type=ring]) .item{margin:auto;border:1px solid var(--limel-chart-background-color, rgb(var(--contrast-400)))}:host(limel-chart[type=ring]) .item{background:conic-gradient(var(--limel-chart-item-color, var(--chart-item-color, rgb(var(--contrast-1100), 0.8))) 0 calc(var(--limel-chart-item-offset) * 1% + var(--limel-chart-item-size) * 1%), var(--chart-background-color, rgb(var(--contrast-200))) calc(var(--limel-chart-item-offset) * 1% + var(--limel-chart-item-size) * 1%));max-width:calc(100% - var(--limel-chart-item-index) * 100% / (var(--limel-chart-number-of-items) + 1));max-height:calc(100% - var(--limel-chart-item-index) * 100% / (var(--limel-chart-number-of-items) + 1))}:host(limel-chart[type=ring]) .item:focus-visible,:host(limel-chart[type=ring]) .item:hover{filter:grayscale(0) !important}:host(limel-chart[type=stacked-bar]) .chart{display:flex;border-radius:0.25rem;overflow:hidden;background-color:var(--chart-background-color, rgb(var(--contrast-800), 0.2))}:host(limel-chart[type=stacked-bar]) .item{display:flex;border-radius:var(--chart-item-border-radius, 0);background:var(--limel-chart-item-color, var(--chart-item-color, rgb(var(--contrast-1100), 0.8)))}:host(limel-chart[type=stacked-bar]) .item:last-of-type:not(:focus-visible){box-shadow:none !important}:host(limel-chart[type=stacked-bar][orientation=landscape]) .chart{flex-direction:row}:host(limel-chart[type=stacked-bar][orientation=landscape]) .item{min-height:0.5rem;width:calc(var(--limel-chart-item-size) * 1%)}:host(limel-chart[type=stacked-bar][orientation=landscape]) .item:not(:focus-visible){box-shadow:-1px 0 0 0 var(--chart-item-divider-color, rgb(var(--color-white), 0.6)) inset}:host(limel-chart[type=stacked-bar][orientation=portrait]) .chart{flex-direction:column-reverse}:host(limel-chart[type=stacked-bar][orientation=portrait]) .item{min-width:0.5rem;height:calc(var(--limel-chart-item-size) * 1%)}:host(limel-chart[type=stacked-bar][orientation=portrait]) .item:not(:focus-visible){box-shadow:0 -1px 0 0 rgb(var(--color-white), 0.6) inset}:host(limel-chart[type=nps]){--limel-chart-nps-gauge-angel:220deg}:host(limel-chart[type=nps]) table{min-height:4rem;min-width:4rem}:host(limel-chart[type=nps]) .chart{position:relative;display:flex;justify-content:center;align-items:center;aspect-ratio:1;margin:auto;width:unset;height:unset;max-width:100%;max-height:100%;rotate:calc(var(--limel-chart-nps-gauge-angel) / 2 * -1);transform:translate(-15%, -5%)}:host(limel-chart[type=nps]) .chart:before,:host(limel-chart[type=nps]) .chart:after{content:"";aspect-ratio:1;position:absolute;border-radius:50%;z-index:-1;min-height:0;min-width:0}:host(limel-chart[type=nps]) .chart:before{height:100%;max-height:100%;background:conic-gradient(rgb(var(--color-coral-default)) 0deg calc(var(--limel-chart-nps-gauge-angel) / 2), rgb(var(--color-amber-light)) calc(var(--limel-chart-nps-gauge-angel) / 2) calc(var(--limel-chart-nps-gauge-angel) * 0.65), rgb(var(--color-lime-light)) calc(var(--limel-chart-nps-gauge-angel) * 0.65) calc(var(--limel-chart-nps-gauge-angel) * 0.85), rgb(var(--color-lime-default)) calc(var(--limel-chart-nps-gauge-angel) * 0.85) var(--limel-chart-nps-gauge-angel), transparent var(--limel-chart-nps-gauge-angel))}:host(limel-chart[type=nps]) .chart:after{height:calc(100% - min(3rem, 20%) * 2);max-height:calc(100% - min(3rem, 20%) * 2);background:conic-gradient(var(--chart-background-color, rgb(var(--contrast-100))) 0deg var(--limel-chart-nps-gauge-angel), transparent var(--limel-chart-nps-gauge-angel))}:host(limel-chart[type=nps]) .item{display:flex;align-items:flex-start;justify-content:center;border-radius:0.5rem;position:absolute;height:calc(50% - min(3rem, 20%) + 0.5rem);width:0.5rem;transform:translateY(-50%) rotate(calc((var(--limel-chart-item-value) + 100) / 200 * var(--limel-chart-nps-gauge-angel)));transform-origin:bottom}:host(limel-chart[type=nps]) .item:hover,:host(limel-chart[type=nps]) .item:focus-visible{background:linear-gradient(to bottom, rgb(var(--contrast-800), 0.4) 0%, rgb(var(--contrast-800), 0.4) 100%) center/1px 100% no-repeat}:host(limel-chart[type=nps]) .item:before,:host(limel-chart[type=nps]) .item:after{content:"";position:absolute}:host(limel-chart[type=nps]) .item:before{transform:translateY(-60%);width:0.4rem;border-radius:1rem;border-color:var(--limel-chart-item-color, var(--chart-item-color, rgb(var(--contrast-1100), 0.8)));border-style:solid;border-bottom-width:1.75rem;border-right-color:transparent;border-left-color:transparent;border-top-color:transparent}:host(limel-chart[type=nps]) .item:after{border-radius:50%;background-color:var(--limel-chart-item-color, var(--chart-item-color, rgb(var(--contrast-1100), 0.8)));aspect-ratio:1;height:clamp(0.75rem, 10%, 1.25rem);border:0.125rem solid rgb(var(--contrast-100), 0.8);box-shadow:var(--shadow-depth-8)}.axises{position:absolute;display:flex;justify-content:space-between;min-height:100%;min-width:100%;height:100%;width:100%}.axis-line{transition:opacity 0.4s ease;position:relative;opacity:0.2;font-size:0.625rem;border-color:var(--limel-chart-axis-line-color)}.axis-line:hover{opacity:0.6;transition-duration:0.2s}.axis-line.zero-line{opacity:0.6;z-index:1}.axis-line limel-badge{--badge-background-color:transparent;--badge-text-color:currentColor;position:absolute;text-align:right;min-width:2rem}:host(limel-chart[orientation=landscape]) .axises{flex-direction:column-reverse}:host(limel-chart[orientation=landscape]) .axis-line{border-bottom:1px solid;transform:translateY(50%)}:host(limel-chart[orientation=landscape]) .axis-line limel-badge{bottom:0;left:-2rem;transform:translateY(50%)}:host(limel-chart[orientation=portrait]) .axises{flex-direction:row}:host(limel-chart[orientation=portrait]) .axis-line{border-left:1px solid;transform:translateX(-50%)}:host(limel-chart[orientation=portrait]) .axis-line limel-badge{bottom:-1rem;right:-1rem}';const o=100;const s=10;const h=class{constructor(a){t(this,a);this.interact=e(this,"interact",7);this.handleClick=t=>{const e=this.getClickableItem(t.currentTarget);if(!e){return}t.stopPropagation();this.interact.emit(e)};this.handleKeyDown=t=>{if(t.key!=="Enter"&&t.key!==" "){return}const e=this.getClickableItem(t.currentTarget);if(!e){return}t.preventDefault();this.interact.emit(e)};this.language="en";this.accessibleLabel=undefined;this.accessibleItemsLabel=undefined;this.accessibleValuesLabel=undefined;this.displayAxisLabels=false;this.items=undefined;this.type="stacked-bar";this.orientation="landscape";this.maxValue=undefined;this.axisIncrement=undefined;this.loading=false}componentWillLoad(){this.recalculateRangeData()}render(){if(this.loading){return a("limel-spinner",{limeBranded:false})}return a("table",{"aria-busy":this.loading?"true":"false","aria-live":"polite",style:{"--limel-chart-number-of-items":this.items.length.toString()}},this.renderCaption(),this.renderTableHeader(),this.renderAxises(),a("tbody",{class:"chart"},this.renderItems()))}renderCaption(){if(!this.accessibleLabel){return}return a("caption",null,this.accessibleLabel)}renderTableHeader(){var t,e;return a("thead",null,a("tr",null,a("th",{scope:"col"},(t=this.accessibleItemsLabel)!==null&&t!==void 0?t:r.get("items",this.language)),a("th",{scope:"col"},(e=this.accessibleValuesLabel)!==null&&e!==void 0?e:r.get("value",this.language))))}renderAxises(){if(!["bar","dot","area","line"].includes(this.type)){return}const{minValue:t,maxValue:e}=this.range;const r=[];const i=Math.floor(t/this.axisIncrement)*this.axisIncrement;const l=Math.ceil(e/this.axisIncrement)*this.axisIncrement;for(let t=i;t<=l;t+=this.axisIncrement){r.push(a("div",{class:{"axis-line":true,"zero-line":t===0},role:"presentation"},a("limel-badge",{label:t})))}return a("div",{class:"axises",role:"presentation"},r)}renderItems(){var t;if(!((t=this.items)===null||t===void 0?void 0:t.length)){return}let e=0;return this.items.map(((t,r)=>{const l=i();const o=this.calculateSizeAndOffset(t);const s=o.size;let h=o.offset;if(this.type==="pie"||this.type==="doughnut"){h=e;e+=s}return a("tr",{style:this.getItemStyle(t,r,s,h),class:this.getItemClass(t),key:l,id:l,"data-index":r,tabIndex:0,role:t.clickable?"button":null,onClick:this.handleClick,onKeyDown:this.handleKeyDown},a("td",null,this.getItemText(t)),a("td",null,this.getFormattedValue(t)),this.renderTooltip(t,l,s))}))}getItemStyle(t,e,a,r){const i={"--limel-chart-item-offset":`${r}`,"--limel-chart-item-size":`${a}`,"--limel-chart-item-index":`${e}`,"--limel-chart-item-value":`${t.value}`};if(t.color){i["--limel-chart-item-color"]=t.color}if(this.type==="line"||this.type==="area"){const t=this.calculateSizeAndOffset(this.items[e+1]);i["--limel-chart-next-item-size"]=`${t.size}`;i["--limel-chart-next-item-offset"]=`${t.offset}`}return i}getItemClass(t){return{item:true,"has-start-value":Array.isArray(t.value),"has-negative-value-only":this.getMaximumValue(t)<0&&!this.isRangeItem(t)}}calculateSizeAndOffset(t){const{minValue:e,totalRange:a}=this.range;if(!t){return{size:0,offset:0}}let r=0;if(this.isRangeItem(t)){r=this.getMinimumValue(t)}const i=(r-e)/a*o;const l=(this.getMaximumValue(t)-e)/a*o;return{size:l-i,offset:i}}getFormattedValue(t){const{value:e,formattedValue:a}=t;if(a){return a}if(Array.isArray(e)){return`${e[0]} — ${e[1]}`}return`${e}`}getItemText(t){return t.text}renderTooltip(t,e,r){const i=this.getItemText(t);const l=2;const o=this.getFormattedValue(t);const s={label:i,helperLabel:o,elementId:e};if(this.type!=="bar"&&this.type!=="dot"&&this.type!=="nps"){s.label=`${i} (${r.toFixed(l)}%)`}return a("limel-tooltip",Object.assign({},s,{openDirection:this.orientation==="portrait"?"right":"top"}))}calculateRange(){var t;if(this.range){return this.range}const e=Math.min(0,...this.items.map(this.getMinimumValue));const a=Math.max(...this.items.map(this.getMaximumValue));const r=this.items.reduce(((t,e)=>t+this.getMaximumValue(e)),0);let i=(t=this.maxValue)!==null&&t!==void 0?t:a;if((this.type==="pie"||this.type==="doughnut")&&!this.maxValue){i=r}if(!this.axisIncrement){this.axisIncrement=this.calculateAxisIncrement(this.items)}const l=Math.ceil(i/this.axisIncrement)*this.axisIncrement;const o=Math.floor(e/this.axisIncrement)*this.axisIncrement;const s=l-o;return{minValue:o,maxValue:l,totalRange:s}}calculateAxisIncrement(t,e=s){const a=Math.max(...t.map((t=>{const e=t.value;if(Array.isArray(e)){return Math.max(...e)}return e})));const r=a/e;const i=10**Math.floor(Math.log10(r));return Math.ceil(r/i)*i}getMinimumValue(t){const e=t.value;return Array.isArray(e)?Math.min(...e):e}getMaximumValue(t){const e=t.value;return Array.isArray(e)?Math.max(...e):e}isRangeItem(t){return Array.isArray(t.value)}handleChange(){this.range=null;this.recalculateRangeData()}recalculateRangeData(){this.range=this.calculateRange()}getClickableItem(t){const e=t.dataset.index;if(e===undefined){return}const a=this.items[Number(e)];if(!a.clickable){return}return a}static get watchers(){return{items:["handleChange"],axisIncrement:["handleChange"],maxValue:["handleChange"]}}};h.style=l;export{h as limel_chart};
|
|
2
|
-
//# sourceMappingURL=p-
|
|
1
|
+
import{r as t,c as e,h as a}from"./p-288f0842.js";import{t as r}from"./p-df36e1ae.js";import{c as i}from"./p-ad52787a.js";const l='@charset "UTF-8";:host(limel-chart){--chart-axis-line-color:var(\n --limel-chart-axis-line-color,\n rgb(var(--contrast-900))\n );box-sizing:border-box;isolation:isolate;display:flex;width:100%;height:100%;min-width:0;min-height:0;padding:var(--limel-chart-padding)}table{all:unset;border-collapse:collapse;border-spacing:0;empty-cells:show;position:relative;display:flex;width:100%;height:100%;min-width:0;min-height:0}table colgroup,table thead,table tbody,table tr,table th,table td{all:unset}table caption,table colgroup,table thead,table tfoot,table th,table td{position:absolute;width:0;height:0;margin:-1px;padding:0;border:0;overflow:hidden;clip:rect(0, 0, 0, 0);clip-path:inset(50%);white-space:nowrap}*,*:before,*:after{box-sizing:border-box}.chart{position:relative;flex-grow:1;width:100%;height:100%;min-height:0;min-width:0}.chart:has(.item:hover) .item,.chart:has(.item:focus-visible) .item{opacity:0.4}.item{transition:background-color 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease, opacity 0.4s ease;cursor:help}.item:focus{outline:none}.item:focus-visible{outline:none;box-shadow:var(--shadow-depth-8-focused)}.item:focus-visible,.item:hover{opacity:1 !important}.item[role=button]{cursor:pointer}limel-spinner{margin:auto}:host(limel-chart[type=bar]) .chart,:host(limel-chart[type=dot]) .chart,:host(limel-chart[type=line]) .chart,:host(limel-chart[type=area]) .chart{display:flex;background-color:var(--chart-background-color, transparent)}:host(limel-chart[type=bar]) .item,:host(limel-chart[type=dot]) .item,:host(limel-chart[type=line]) .item,:host(limel-chart[type=area]) .item{position:relative;mix-blend-mode:hard-light}:host(limel-chart[type=bar][orientation=landscape]),:host(limel-chart[type=dot][orientation=landscape]),:host(limel-chart[type=line][orientation=landscape]),:host(limel-chart[type=area][orientation=landscape]){--limel-chart-padding:0.5rem 0.5rem 0.5rem 2rem}:host(limel-chart[type=bar][orientation=landscape]) .chart,:host(limel-chart[type=dot][orientation=landscape]) .chart,:host(limel-chart[type=line][orientation=landscape]) .chart,:host(limel-chart[type=area][orientation=landscape]) .chart{flex-direction:row;align-items:flex-end;overflow:auto hidden;padding:0 0.125rem}:host(limel-chart[type=bar][orientation=landscape]) .item,:host(limel-chart[type=dot][orientation=landscape]) .item,:host(limel-chart[type=line][orientation=landscape]) .item,:host(limel-chart[type=area][orientation=landscape]) .item{min-width:0.5rem;width:inherit}:host(limel-chart[type=bar][orientation=portrait]),:host(limel-chart[type=dot][orientation=portrait]),:host(limel-chart[type=line][orientation=portrait]),:host(limel-chart[type=area][orientation=portrait]){--limel-chart-padding:0.5rem 0.5rem 1rem 0.5rem}:host(limel-chart[type=bar][orientation=portrait]) .chart,:host(limel-chart[type=dot][orientation=portrait]) .chart,:host(limel-chart[type=line][orientation=portrait]) .chart,:host(limel-chart[type=area][orientation=portrait]) .chart{flex-direction:column;overflow:hidden auto;padding:0.125rem 0}:host(limel-chart[type=bar][orientation=portrait]) .item,:host(limel-chart[type=dot][orientation=portrait]) .item,:host(limel-chart[type=line][orientation=portrait]) .item,:host(limel-chart[type=area][orientation=portrait]) .item{min-height:0.5rem;height:inherit}:host(limel-chart[display-axis-labels][orientation=portrait]){--limel-chart-padding:0.5rem 0.5rem 2rem\n 1.25rem}:host(limel-chart[display-axis-labels][orientation=landscape]){--limel-chart-padding:0.5rem 0.5rem 1.25rem\n 3rem}:host(limel-chart[display-axis-labels][type=line]) table thead,:host(limel-chart[display-axis-labels][type=line]) table th,:host(limel-chart[display-axis-labels][type=dot]) table thead,:host(limel-chart[display-axis-labels][type=dot]) table th,:host(limel-chart[display-axis-labels][type=area]) table thead,:host(limel-chart[display-axis-labels][type=area]) table th,:host(limel-chart[display-axis-labels][type=bar]) table thead,:host(limel-chart[display-axis-labels][type=bar]) table th{all:unset}:host(limel-chart[display-axis-labels][type=line]) table th,:host(limel-chart[display-axis-labels][type=dot]) table th,:host(limel-chart[display-axis-labels][type=area]) table th,:host(limel-chart[display-axis-labels][type=bar]) table th{position:absolute;font-size:var(--limel-theme-default-small-font-size);max-width:100%;max-height:100%;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}:host(limel-chart[display-axis-labels][orientation=portrait]) table thead th:first-of-type{left:-1.25rem;writing-mode:sideways-lr}:host(limel-chart[display-axis-labels][orientation=portrait]) table thead th:last-of-type{bottom:-2rem;left:50%;transform:translateX(-50%)}:host(limel-chart[display-axis-labels][orientation=landscape]) table thead th:first-of-type{bottom:-1.25rem;left:50%;transform:translateX(-50%)}:host(limel-chart[display-axis-labels][orientation=landscape]) table thead th:last-of-type{left:-3rem;writing-mode:sideways-lr}:host(limel-chart[type=pie]) table,:host(limel-chart[type=doughnut]) table,:host(limel-chart[type=ring]) table{min-height:2rem;min-width:2rem}:host(limel-chart[type=pie]) .chart,:host(limel-chart[type=pie]) .item,:host(limel-chart[type=doughnut]) .chart,:host(limel-chart[type=doughnut]) .item,:host(limel-chart[type=ring]) .chart,:host(limel-chart[type=ring]) .item{aspect-ratio:1;display:flex;margin:auto}:host(limel-chart[type=pie]) .chart,:host(limel-chart[type=doughnut]) .chart,:host(limel-chart[type=ring]) .chart{justify-content:center;align-items:center}:host(limel-chart[type=pie]) .chart:before,:host(limel-chart[type=doughnut]) .chart:before,:host(limel-chart[type=ring]) .chart:before{aspect-ratio:1;content:"";position:absolute;z-index:0;inset:0;margin:auto;border-radius:50%;max-width:100%;max-height:100%;background-color:var(--chart-background-color, rgb(var(--contrast-200)))}:host(limel-chart[type=pie]) .item,:host(limel-chart[type=doughnut]) .item,:host(limel-chart[type=ring]) .item{max-width:100%;max-height:100%;border-radius:50%;position:absolute;inset:0}:host(limel-chart[type=bar]) .chart,:host(limel-chart[type=dot]) .chart{gap:0.5rem}:host(limel-chart[type=bar]) .item,:host(limel-chart[type=dot]) .item{display:flex;align-items:center;justify-content:center;border-radius:var(--chart-item-border-radius, 0.125rem)}:host(limel-chart[type=bar]) .item{background:var(--limel-chart-item-color, var(--chart-item-color, rgb(var(--contrast-1100), 0.8)))}:host(limel-chart[type=dot]) .item:before,:host(limel-chart[type=dot]) .item:after{content:"";position:absolute;margin:auto;width:0.5rem;height:0.5rem;border-radius:50%}:host(limel-chart[type=dot]) .item::after{background-color:var(--limel-chart-item-color, var(--chart-item-color, rgb(var(--contrast-1100), 0.8)))}:host(limel-chart[type=dot]) .item.has-start-value:before{background-color:var(--limel-chart-item-color, var(--chart-item-color, rgb(var(--contrast-1100), 0.8)))}:host(limel-chart[type=bar][orientation=landscape]) .item,:host(limel-chart[type=dot][orientation=landscape]) .item{height:calc(var(--limel-chart-item-size) * 1%);bottom:calc(var(--limel-chart-item-offset) * 1%)}:host(limel-chart[type=bar][orientation=landscape]) .item.has-negative-value-only,:host(limel-chart[type=dot][orientation=landscape]) .item.has-negative-value-only{height:calc(var(--limel-chart-item-size) * -1%);transform-origin:bottom;transform:rotateX(180deg)}:host(limel-chart[type=dot][orientation=landscape]) .item.has-start-value,:host(limel-chart[type=dot][orientation=landscape]) .item:hover,:host(limel-chart[type=dot][orientation=landscape]) .item:focus-visible{background:linear-gradient(to bottom, rgb(var(--contrast-800), 0.4) 0%, rgb(var(--contrast-800), 0.4) 100%) center/1px 100% no-repeat}:host(limel-chart[type=dot][orientation=landscape]) .item:before{inset:auto 0 0 0;transform:translateY(50%)}:host(limel-chart[type=dot][orientation=landscape]) .item::after{inset:0 0 auto 0;transform:translateY(-50%)}:host(limel-chart[type=bar][orientation=portrait]) .item,:host(limel-chart[type=dot][orientation=portrait]) .item{width:calc(var(--limel-chart-item-size) * 1%);left:calc(var(--limel-chart-item-offset) * 1%)}:host(limel-chart[type=bar][orientation=portrait]) .item.has-negative-value-only,:host(limel-chart[type=dot][orientation=portrait]) .item.has-negative-value-only{width:calc(var(--limel-chart-item-size) * -1%);transform-origin:left;transform:rotateY(180deg)}:host(limel-chart[type=dot][orientation=portrait]) .item.has-start-value,:host(limel-chart[type=dot][orientation=portrait]) .item:hover,:host(limel-chart[type=dot][orientation=portrait]) .item:focus-visible{background:linear-gradient(to right, rgb(var(--contrast-800), 0.4) 0%, rgb(var(--contrast-800), 0.4) 100%) center/100% 1px no-repeat}:host(limel-chart[type=dot][orientation=portrait]) .item:before{inset:0 auto 0 0;transform:translateX(-50%)}:host(limel-chart[type=dot][orientation=portrait]) .item:after{inset:0 0 0 auto;transform:translateX(50%)}:host(limel-chart[type=area]) .item,:host(limel-chart[type=line]) .item{position:relative}:host(limel-chart[type=area]) .item:after,:host(limel-chart[type=line]) .item:after{margin:auto;width:0.5rem;height:0.5rem;border-radius:50%;border:1px solid rgb(var(--contrast-100))}:host(limel-chart[type=area]) .item:before,:host(limel-chart[type=line]) .item:before{inset:0}:host(limel-chart[type=area]) .item:after,:host(limel-chart[type=area]) .item:before,:host(limel-chart[type=line]) .item:after,:host(limel-chart[type=line]) .item:before{transition:border-color 0.2s ease, opacity 0.4s ease;content:"";position:absolute;background:var(--limel-chart-item-color, var(--chart-item-color, rgb(var(--contrast-1100), 0.8)))}:host(limel-chart[type=area]) .item:hover:after,:host(limel-chart[type=area]) .item:focus-visible:after,:host(limel-chart[type=line]) .item:hover:after,:host(limel-chart[type=line]) .item:focus-visible:after{border-color:transparent}:host(limel-chart[type=line][orientation=landscape]) .item,:host(limel-chart[type=area][orientation=landscape]) .item{height:100%}:host(limel-chart[type=line][orientation=landscape]) .item:after,:host(limel-chart[type=area][orientation=landscape]) .item:after{transform:translateX(-50%) translateY(50%);left:0;bottom:calc((var(--limel-chart-item-size) + var(--limel-chart-item-offset)) * 1%)}:host(limel-chart[type=line][orientation=landscape]) .item:last-of-type:before,:host(limel-chart[type=area][orientation=landscape]) .item:last-of-type:before{display:none}:host(limel-chart[type=line][orientation=portrait]) .item,:host(limel-chart[type=area][orientation=portrait]) .item{width:100%}:host(limel-chart[type=line][orientation=portrait]) .item:after,:host(limel-chart[type=area][orientation=portrait]) .item:after{transform:translateX(-50%) translateY(-50%);left:calc((var(--limel-chart-item-size) + var(--limel-chart-item-offset)) * 1%)}:host(limel-chart[type=area]) .item:after{opacity:0}:host(limel-chart[type=area]) .item:hover:after,:host(limel-chart[type=area]) .item:focus-visible:after{opacity:1}:host(limel-chart[type=area]) .item:hover:before,:host(limel-chart[type=area]) .item:focus-visible:before{opacity:0.7}:host(limel-chart[type=area][orientation=landscape]){}:host(limel-chart[type=area][orientation=landscape]) .item:before{clip-path:polygon(0 calc((100 - var(--limel-chart-item-offset)) * 1%), 0 calc((100 - (var(--limel-chart-item-size) + var(--limel-chart-item-offset))) * 1%), 100% calc((100 - (var(--limel-chart-next-item-size) + var(--limel-chart-next-item-offset))) * 1%), 100% calc((100 - var(--limel-chart-next-item-offset)) * 1%))}:host(limel-chart[type=area][orientation=portrait]){}:host(limel-chart[type=area][orientation=portrait]) .item:before{clip-path:polygon(calc(var(--limel-chart-item-offset) * 1%) 0, calc((var(--limel-chart-item-size) + var(--limel-chart-item-offset)) * 1%) 0, calc((var(--limel-chart-next-item-size) + var(--limel-chart-next-item-offset)) * 1%) 100%, calc(var(--limel-chart-next-item-offset) * 1%) 100%)}:host(limel-chart[type=line]){--limel-chart-line-thickness:0.125rem}:host(limel-chart[type=line]) .item:hover:before{opacity:0.4}:host(limel-chart[type=line][orientation=landscape]){}:host(limel-chart[type=line][orientation=landscape]) .item:hover{background:linear-gradient(to bottom, rgb(var(--contrast-800), 0.4) 0%, rgb(var(--contrast-800), 0.4) 100%) left/1px 100% no-repeat}:host(limel-chart[type=line][orientation=landscape]) .item:before{clip-path:polygon(0 calc((100 - (var(--limel-chart-item-size) + var(--limel-chart-item-offset))) * 1%), 0 calc((100 - (var(--limel-chart-item-size) + var(--limel-chart-item-offset))) * 1% + var(--limel-chart-line-thickness)), 100% calc((100 - (var(--limel-chart-next-item-size) + var(--limel-chart-next-item-offset))) * 1% + var(--limel-chart-line-thickness)), 100% calc((100 - (var(--limel-chart-next-item-size) + var(--limel-chart-next-item-offset))) * 1%))}:host(limel-chart[type=line][orientation=portrait]){}:host(limel-chart[type=line][orientation=portrait]) .item:hover{background:linear-gradient(to right, rgb(var(--contrast-800), 0.4) 0%, rgb(var(--contrast-800), 0.4) 100%) top/100% 1px no-repeat}:host(limel-chart[type=line][orientation=portrait]) .item:before{clip-path:polygon(calc((var(--limel-chart-item-size) + var(--limel-chart-item-offset)) * 1%) 0, calc((var(--limel-chart-item-size) + var(--limel-chart-item-offset)) * 1% + var(--limel-chart-line-thickness)) 0, calc((var(--limel-chart-next-item-size) + var(--limel-chart-next-item-offset)) * 1% + var(--limel-chart-line-thickness)) 100%, calc((var(--limel-chart-next-item-size) + var(--limel-chart-next-item-offset)) * 1%) 100%)}:host(limel-chart[type=pie]) .item,:host(limel-chart[type=doughnut]) .item{background:conic-gradient(transparent 0 calc(var(--limel-chart-item-offset) * 1%), var(--limel-chart-item-color, var(--chart-item-color, rgb(var(--contrast-1100), 0.8))) calc(var(--limel-chart-item-offset) * 1%) calc(var(--limel-chart-item-offset) * 1% + var(--limel-chart-item-size) * 1%), transparent calc(var(--limel-chart-item-offset) * 1% + var(--limel-chart-item-size) * 1%))}:host(limel-chart[type=pie]) .item:focus,:host(limel-chart[type=pie]) .item:focus-visible,:host(limel-chart[type=doughnut]) .item:focus,:host(limel-chart[type=doughnut]) .item:focus-visible{outline:none}:host(limel-chart[type=pie]) .item,:host(limel-chart[type=doughnut]) .item{pointer-events:none}:host(limel-chart[type=doughnut]) .chart:after{aspect-ratio:1;content:"";position:absolute;inset:0;margin:auto;max-width:60%;max-height:60%;border-radius:50%;background-color:rgb(var(--contrast-100))}:host(limel-chart[type=ring]) .chart:after{content:"";position:absolute;inset:0;aspect-ratio:1;border-radius:50%;max-height:calc(100% - var(--limel-chart-number-of-items) * 100% / (var(--limel-chart-number-of-items) + 1));max-width:calc(100% - var(--limel-chart-number-of-items) * 100% / (var(--limel-chart-number-of-items) + 1));background-color:var(--limel-chart-background-color, rgb(var(--contrast-200)))}:host(limel-chart[type=ring]) .chart:has(.item:hover) .item,:host(limel-chart[type=ring]) .chart:has(.item:focus-visible) .item{opacity:1;filter:grayscale(1)}:host(limel-chart[type=ring]) .chart:after,:host(limel-chart[type=ring]) .item{margin:auto;border:1px solid var(--limel-chart-background-color, rgb(var(--contrast-400)))}:host(limel-chart[type=ring]) .item{background:conic-gradient(var(--limel-chart-item-color, var(--chart-item-color, rgb(var(--contrast-1100), 0.8))) 0 calc(var(--limel-chart-item-offset) * 1% + var(--limel-chart-item-size) * 1%), var(--chart-background-color, rgb(var(--contrast-200))) calc(var(--limel-chart-item-offset) * 1% + var(--limel-chart-item-size) * 1%));max-width:calc(100% - var(--limel-chart-item-index) * 100% / (var(--limel-chart-number-of-items) + 1));max-height:calc(100% - var(--limel-chart-item-index) * 100% / (var(--limel-chart-number-of-items) + 1))}:host(limel-chart[type=ring]) .item:focus-visible,:host(limel-chart[type=ring]) .item:hover{filter:grayscale(0) !important}:host(limel-chart[type=stacked-bar]) .chart{display:flex;border-radius:0.25rem;overflow:hidden;background-color:var(--chart-background-color, rgb(var(--contrast-800), 0.2))}:host(limel-chart[type=stacked-bar]) .item{display:flex;border-radius:var(--chart-item-border-radius, 0);background:var(--limel-chart-item-color, var(--chart-item-color, rgb(var(--contrast-1100), 0.8)))}:host(limel-chart[type=stacked-bar]) .item:last-of-type:not(:focus-visible){box-shadow:none !important}:host(limel-chart[type=stacked-bar][orientation=landscape]) .chart{flex-direction:row}:host(limel-chart[type=stacked-bar][orientation=landscape]) .item{min-height:0.5rem;width:calc(var(--limel-chart-item-size) * 1%)}:host(limel-chart[type=stacked-bar][orientation=landscape]) .item:not(:focus-visible){box-shadow:-1px 0 0 0 var(--chart-item-divider-color, rgb(var(--color-white), 0.6)) inset}:host(limel-chart[type=stacked-bar][orientation=portrait]) .chart{flex-direction:column-reverse}:host(limel-chart[type=stacked-bar][orientation=portrait]) .item{min-width:0.5rem;height:calc(var(--limel-chart-item-size) * 1%)}:host(limel-chart[type=stacked-bar][orientation=portrait]) .item:not(:focus-visible){box-shadow:0 -1px 0 0 rgb(var(--color-white), 0.6) inset}:host(limel-chart[type=nps]){--limel-chart-nps-gauge-angel:220deg}:host(limel-chart[type=nps]) table{min-height:4rem;min-width:4rem}:host(limel-chart[type=nps]) .chart{position:relative;display:flex;justify-content:center;align-items:center;aspect-ratio:1;margin:auto;width:unset;height:unset;max-width:100%;max-height:100%;rotate:calc(var(--limel-chart-nps-gauge-angel) / 2 * -1);transform:translate(-15%, -5%)}:host(limel-chart[type=nps]) .chart:before,:host(limel-chart[type=nps]) .chart:after{content:"";aspect-ratio:1;position:absolute;border-radius:50%;z-index:-1;min-height:0;min-width:0}:host(limel-chart[type=nps]) .chart:before{height:100%;max-height:100%;background:conic-gradient(rgb(var(--color-coral-default)) 0deg calc(var(--limel-chart-nps-gauge-angel) / 2), rgb(var(--color-amber-light)) calc(var(--limel-chart-nps-gauge-angel) / 2) calc(var(--limel-chart-nps-gauge-angel) * 0.65), rgb(var(--color-lime-light)) calc(var(--limel-chart-nps-gauge-angel) * 0.65) calc(var(--limel-chart-nps-gauge-angel) * 0.85), rgb(var(--color-lime-default)) calc(var(--limel-chart-nps-gauge-angel) * 0.85) var(--limel-chart-nps-gauge-angel), transparent var(--limel-chart-nps-gauge-angel))}:host(limel-chart[type=nps]) .chart:after{height:calc(100% - min(3rem, 20%) * 2);max-height:calc(100% - min(3rem, 20%) * 2);background:conic-gradient(var(--chart-background-color, rgb(var(--contrast-100))) 0deg var(--limel-chart-nps-gauge-angel), transparent var(--limel-chart-nps-gauge-angel))}:host(limel-chart[type=nps]) .item{display:flex;align-items:flex-start;justify-content:center;border-radius:0.5rem;position:absolute;height:calc(50% - min(3rem, 20%) + 0.5rem);width:0.5rem;transform:translateY(-50%) rotate(calc((var(--limel-chart-item-value) + 100) / 200 * var(--limel-chart-nps-gauge-angel)));transform-origin:bottom}:host(limel-chart[type=nps]) .item:hover,:host(limel-chart[type=nps]) .item:focus-visible{background:linear-gradient(to bottom, rgb(var(--contrast-800), 0.4) 0%, rgb(var(--contrast-800), 0.4) 100%) center/1px 100% no-repeat}:host(limel-chart[type=nps]) .item:before,:host(limel-chart[type=nps]) .item:after{content:"";position:absolute}:host(limel-chart[type=nps]) .item:before{transform:translateY(-60%);width:0.4rem;border-radius:1rem;border-color:var(--limel-chart-item-color, var(--chart-item-color, rgb(var(--contrast-1100), 0.8)));border-style:solid;border-bottom-width:1.75rem;border-right-color:transparent;border-left-color:transparent;border-top-color:transparent}:host(limel-chart[type=nps]) .item:after{border-radius:50%;background-color:var(--limel-chart-item-color, var(--chart-item-color, rgb(var(--contrast-1100), 0.8)));aspect-ratio:1;height:clamp(0.75rem, 10%, 1.25rem);border:0.125rem solid rgb(var(--contrast-100), 0.8);box-shadow:var(--shadow-depth-8)}.axises{position:absolute;display:flex;justify-content:space-between;min-height:100%;min-width:100%;height:100%;width:100%}.axis-line{transition:opacity 0.4s ease;position:relative;opacity:0.2;font-size:0.625rem;border-color:var(--limel-chart-axis-line-color)}.axis-line:hover{opacity:0.6;transition-duration:0.2s}.axis-line.zero-line{opacity:0.6;z-index:1}.axis-line limel-badge{--badge-background-color:transparent;--badge-text-color:currentColor;position:absolute;text-align:right;min-width:2rem}:host(limel-chart[orientation=landscape]) .axises{flex-direction:column-reverse}:host(limel-chart[orientation=landscape]) .axis-line{border-bottom:1px solid;transform:translateY(50%)}:host(limel-chart[orientation=landscape]) .axis-line limel-badge{bottom:0;left:-2rem;transform:translateY(50%)}:host(limel-chart[orientation=portrait]) .axises{flex-direction:row}:host(limel-chart[orientation=portrait]) .axis-line{border-left:1px solid;transform:translateX(-50%)}:host(limel-chart[orientation=portrait]) .axis-line limel-badge{bottom:-1rem;right:-1rem}';const o=100;const s=10;const h=class{constructor(a){t(this,a);this.interact=e(this,"interact",7);this.handleClick=t=>{const e=this.getClickableItem(t.currentTarget);if(!e){return}t.stopPropagation();this.interact.emit(e)};this.handleKeyDown=t=>{if(t.key!=="Enter"&&t.key!==" "){return}const e=this.getClickableItem(t.currentTarget);if(!e){return}t.preventDefault();this.interact.emit(e)};this.language="en";this.accessibleLabel=undefined;this.accessibleItemsLabel=undefined;this.accessibleValuesLabel=undefined;this.displayAxisLabels=false;this.items=undefined;this.type="stacked-bar";this.orientation="landscape";this.maxValue=undefined;this.axisIncrement=undefined;this.loading=false}componentWillLoad(){this.recalculateRangeData()}render(){if(this.loading){return a("limel-spinner",{limeBranded:false})}return a("table",{"aria-busy":this.loading?"true":"false","aria-live":"polite",style:{"--limel-chart-number-of-items":this.items.length.toString()}},this.renderCaption(),this.renderTableHeader(),this.renderAxises(),a("tbody",{class:"chart"},this.renderItems()))}renderCaption(){if(!this.accessibleLabel){return}return a("caption",null,this.accessibleLabel)}renderTableHeader(){var t,e;return a("thead",null,a("tr",null,a("th",{scope:"col"},(t=this.accessibleItemsLabel)!==null&&t!==void 0?t:r.get("items",this.language)),a("th",{scope:"col"},(e=this.accessibleValuesLabel)!==null&&e!==void 0?e:r.get("value",this.language))))}renderAxises(){if(!["bar","dot","area","line"].includes(this.type)){return}const{minValue:t,maxValue:e}=this.range;const r=[];const i=Math.floor(t/this.axisIncrement)*this.axisIncrement;const l=Math.ceil(e/this.axisIncrement)*this.axisIncrement;for(let t=i;t<=l;t+=this.axisIncrement){r.push(a("div",{class:{"axis-line":true,"zero-line":t===0},role:"presentation"},a("limel-badge",{label:t})))}return a("div",{class:"axises",role:"presentation"},r)}renderItems(){var t;if(!((t=this.items)===null||t===void 0?void 0:t.length)){return}let e=0;return this.items.map(((t,r)=>{const l=i();const o=this.calculateSizeAndOffset(t);const s=o.size;let h=o.offset;if(this.type==="pie"||this.type==="doughnut"){h=e;e+=s}return a("tr",{style:this.getItemStyle(t,r,s,h),class:this.getItemClass(t),key:l,id:l,"data-index":r,tabIndex:0,role:t.clickable?"button":null,onClick:this.handleClick,onKeyDown:this.handleKeyDown},a("td",null,this.getItemText(t)),a("td",null,this.getFormattedValue(t)),this.renderTooltip(t,l,s))}))}getItemStyle(t,e,a,r){const i={"--limel-chart-item-offset":`${r}`,"--limel-chart-item-size":`${a}`,"--limel-chart-item-index":`${e}`,"--limel-chart-item-value":`${t.value}`};if(t.color){i["--limel-chart-item-color"]=t.color}if(this.type==="line"||this.type==="area"){const t=this.calculateSizeAndOffset(this.items[e+1]);i["--limel-chart-next-item-size"]=`${t.size}`;i["--limel-chart-next-item-offset"]=`${t.offset}`}return i}getItemClass(t){return{item:true,"has-start-value":Array.isArray(t.value),"has-negative-value-only":this.getMaximumValue(t)<0&&!this.isRangeItem(t)}}calculateSizeAndOffset(t){const{minValue:e,totalRange:a}=this.range;if(!t){return{size:0,offset:0}}let r=0;if(this.isRangeItem(t)){r=this.getMinimumValue(t)}const i=(r-e)/a*o;const l=(this.getMaximumValue(t)-e)/a*o;return{size:l-i,offset:i}}getFormattedValue(t){const{value:e,formattedValue:a}=t;if(a){return a}if(Array.isArray(e)){return`${e[0]} — ${e[1]}`}return`${e}`}getItemText(t){return t.text}renderTooltip(t,e,r){const i=this.getItemText(t);const l=2;const o=this.getFormattedValue(t);const s={label:i,helperLabel:o,elementId:e};if(this.type!=="bar"&&this.type!=="dot"&&this.type!=="nps"){s.label=`${i} (${r.toFixed(l)}%)`}return a("limel-tooltip",Object.assign({},s,{openDirection:this.orientation==="portrait"?"right":"top"}))}calculateRange(){var t;if(this.range){return this.range}const e=Math.min(0,...this.items.map(this.getMinimumValue));const a=Math.max(...this.items.map(this.getMaximumValue));const r=this.items.reduce(((t,e)=>t+this.getMaximumValue(e)),0);let i=(t=this.maxValue)!==null&&t!==void 0?t:a;if((this.type==="pie"||this.type==="doughnut")&&!this.maxValue){i=r}if(!this.axisIncrement){this.axisIncrement=this.calculateAxisIncrement(this.items)}const l=Math.ceil(i/this.axisIncrement)*this.axisIncrement;const o=Math.floor(e/this.axisIncrement)*this.axisIncrement;const s=l-o;return{minValue:o,maxValue:l,totalRange:s}}calculateAxisIncrement(t,e=s){const a=Math.max(...t.map((t=>{const e=t.value;if(Array.isArray(e)){return Math.max(...e)}return e})));const r=a/e;const i=10**Math.floor(Math.log10(r));return Math.ceil(r/i)*i}getMinimumValue(t){const e=t.value;return Array.isArray(e)?Math.min(...e):e}getMaximumValue(t){const e=t.value;return Array.isArray(e)?Math.max(...e):e}isRangeItem(t){return Array.isArray(t.value)}handleChange(){this.range=null;this.recalculateRangeData()}recalculateRangeData(){this.range=this.calculateRange()}getClickableItem(t){const e=t.dataset.index;if(e===undefined){return}const a=this.items[Number(e)];if(!a.clickable){return}return a}static get watchers(){return{items:["handleChange"],axisIncrement:["handleChange"],maxValue:["handleChange"]}}};h.style=l;export{h as limel_chart};
|
|
2
|
+
//# sourceMappingURL=p-f8b6d7e1.entry.js.map
|
|
@@ -12,6 +12,7 @@ import 'codemirror/addon/lint/json-lint';
|
|
|
12
12
|
import 'codemirror/addon/fold/foldgutter';
|
|
13
13
|
import 'codemirror/addon/fold/brace-fold';
|
|
14
14
|
import 'codemirror/addon/fold/xml-fold';
|
|
15
|
+
import { Languages } from '../date-picker/date.types';
|
|
15
16
|
/**
|
|
16
17
|
* @exampleComponent limel-example-code-editor
|
|
17
18
|
* @exampleComponent limel-example-code-editor-readonly-with-line-numbers
|
|
@@ -77,6 +78,11 @@ export declare class CodeEditor {
|
|
|
77
78
|
* Select color scheme for the editor
|
|
78
79
|
*/
|
|
79
80
|
colorScheme: ColorScheme;
|
|
81
|
+
/**
|
|
82
|
+
* Defines the language for translations.
|
|
83
|
+
* Will translate the translatable strings on the components.
|
|
84
|
+
*/
|
|
85
|
+
translationLanguage: Languages;
|
|
80
86
|
/**
|
|
81
87
|
* Emitted when the code has changed. Will only be emitted when the code
|
|
82
88
|
* area has lost focus
|
|
@@ -88,6 +94,7 @@ export declare class CodeEditor {
|
|
|
88
94
|
* `(prefers-color-scheme: dark)` media query is changed
|
|
89
95
|
*/
|
|
90
96
|
protected random: number;
|
|
97
|
+
private wasCopied;
|
|
91
98
|
private editor;
|
|
92
99
|
private observer;
|
|
93
100
|
private labelId;
|
|
@@ -111,6 +118,10 @@ export declare class CodeEditor {
|
|
|
111
118
|
render(): any;
|
|
112
119
|
private renderHelperLine;
|
|
113
120
|
private forceRedraw;
|
|
121
|
+
private renderCopyButton;
|
|
122
|
+
private copyCode;
|
|
123
|
+
private getButtonText;
|
|
124
|
+
private getButtonAriaLabel;
|
|
114
125
|
private get darkMode();
|
|
115
126
|
private updateEditorReadOnlyState;
|
|
116
127
|
private getReadOnlyOption;
|
|
@@ -925,6 +925,10 @@ export namespace Components {
|
|
|
925
925
|
* Set to `true` to indicate that the field is required.
|
|
926
926
|
*/
|
|
927
927
|
"required": boolean;
|
|
928
|
+
/**
|
|
929
|
+
* Defines the language for translations. Will translate the translatable strings on the components.
|
|
930
|
+
*/
|
|
931
|
+
"translationLanguage": Languages;
|
|
928
932
|
/**
|
|
929
933
|
* The code to be rendered
|
|
930
934
|
*/
|
|
@@ -6159,6 +6163,10 @@ declare namespace LocalJSX {
|
|
|
6159
6163
|
* Set to `true` to indicate that the field is required.
|
|
6160
6164
|
*/
|
|
6161
6165
|
"required"?: boolean;
|
|
6166
|
+
/**
|
|
6167
|
+
* Defines the language for translations. Will translate the translatable strings on the components.
|
|
6168
|
+
*/
|
|
6169
|
+
"translationLanguage"?: Languages;
|
|
6162
6170
|
/**
|
|
6163
6171
|
* The code to be rendered
|
|
6164
6172
|
*/
|
|
@@ -13,6 +13,13 @@ declare const _default: {
|
|
|
13
13
|
'callout.tip': string;
|
|
14
14
|
'callout.caution': string;
|
|
15
15
|
'callout.warning': string;
|
|
16
|
+
'code-editor': string;
|
|
17
|
+
'code-editor.copy': string;
|
|
18
|
+
'code-editor.copied': string;
|
|
19
|
+
'code-editor.copy-failed': string;
|
|
20
|
+
'code-editor.copy-aria-label': string;
|
|
21
|
+
'code-editor.copied-aria-label': string;
|
|
22
|
+
'code-editor.copy-failed-aria-label': string;
|
|
16
23
|
'collapsible-section.open': string;
|
|
17
24
|
'collapsible-section.close': string;
|
|
18
25
|
'date-picker.today': string;
|
|
@@ -13,6 +13,13 @@ declare const _default: {
|
|
|
13
13
|
'callout.tip': string;
|
|
14
14
|
'callout.caution': string;
|
|
15
15
|
'callout.warning': string;
|
|
16
|
+
'code-editor': string;
|
|
17
|
+
'code-editor.copy': string;
|
|
18
|
+
'code-editor.copied': string;
|
|
19
|
+
'code-editor.copy-failed': string;
|
|
20
|
+
'code-editor.copy-aria-label': string;
|
|
21
|
+
'code-editor.copied-aria-label': string;
|
|
22
|
+
'code-editor.copy-failed-aria-label': string;
|
|
16
23
|
'collapsible-section.open': string;
|
|
17
24
|
'collapsible-section.close': string;
|
|
18
25
|
'date-picker.today': string;
|
|
@@ -13,6 +13,13 @@ declare const _default: {
|
|
|
13
13
|
'callout.tip': string;
|
|
14
14
|
'callout.caution': string;
|
|
15
15
|
'callout.warning': string;
|
|
16
|
+
'code-editor': string;
|
|
17
|
+
'code-editor.copy': string;
|
|
18
|
+
'code-editor.copied': string;
|
|
19
|
+
'code-editor.copy-failed': string;
|
|
20
|
+
'code-editor.copy-aria-label': string;
|
|
21
|
+
'code-editor.copied-aria-label': string;
|
|
22
|
+
'code-editor.copy-failed-aria-label': string;
|
|
16
23
|
'collapsible-section.open': string;
|
|
17
24
|
'collapsible-section.close': string;
|
|
18
25
|
'date-picker.today': string;
|
|
@@ -13,6 +13,13 @@ declare const _default: {
|
|
|
13
13
|
'callout.tip': string;
|
|
14
14
|
'callout.caution': string;
|
|
15
15
|
'callout.warning': string;
|
|
16
|
+
'code-editor': string;
|
|
17
|
+
'code-editor.copy': string;
|
|
18
|
+
'code-editor.copied': string;
|
|
19
|
+
'code-editor.copy-failed': string;
|
|
20
|
+
'code-editor.copy-aria-label': string;
|
|
21
|
+
'code-editor.copied-aria-label': string;
|
|
22
|
+
'code-editor.copy-failed-aria-label': string;
|
|
16
23
|
'collapsible-section.open': string;
|
|
17
24
|
'collapsible-section.close': string;
|
|
18
25
|
'date-picker.today': string;
|
|
@@ -13,6 +13,13 @@ declare const _default: {
|
|
|
13
13
|
'callout.tip': string;
|
|
14
14
|
'callout.caution': string;
|
|
15
15
|
'callout.warning': string;
|
|
16
|
+
'code-editor': string;
|
|
17
|
+
'code-editor.copy': string;
|
|
18
|
+
'code-editor.copied': string;
|
|
19
|
+
'code-editor.copy-failed': string;
|
|
20
|
+
'code-editor.copy-aria-label': string;
|
|
21
|
+
'code-editor.copied-aria-label': string;
|
|
22
|
+
'code-editor.copy-failed-aria-label': string;
|
|
16
23
|
'collapsible-section.open': string;
|
|
17
24
|
'collapsible-section.close': string;
|
|
18
25
|
'date-picker.today': string;
|
|
@@ -13,6 +13,13 @@ declare const _default: {
|
|
|
13
13
|
'callout.tip': string;
|
|
14
14
|
'callout.caution': string;
|
|
15
15
|
'callout.warning': string;
|
|
16
|
+
'code-editor': string;
|
|
17
|
+
'code-editor.copy': string;
|
|
18
|
+
'code-editor.copied': string;
|
|
19
|
+
'code-editor.copy-failed': string;
|
|
20
|
+
'code-editor.copy-aria-label': string;
|
|
21
|
+
'code-editor.copied-aria-label': string;
|
|
22
|
+
'code-editor.copy-failed-aria-label': string;
|
|
16
23
|
'collapsible-section.open': string;
|
|
17
24
|
'collapsible-section.close': string;
|
|
18
25
|
'date-picker.today': string;
|