@limetech/lime-elements 38.33.8 → 38.35.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 +24 -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-breadcrumbs_8.cjs.entry.js → limel-breadcrumbs_7.cjs.entry.js} +1 -35
- package/dist/cjs/limel-breadcrumbs_7.cjs.entry.js.map +1 -0
- package/dist/cjs/limel-callout.cjs.entry.js +1 -1
- package/dist/cjs/limel-chart.cjs.entry.js +7 -4
- package/dist/cjs/limel-chart.cjs.entry.js.map +1 -1
- package/dist/cjs/limel-chip_2.cjs.entry.js +1 -1
- package/dist/cjs/limel-code-editor.cjs.entry.js +97 -5
- 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-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-helper-line_2.cjs.entry.js +79 -0
- package/dist/cjs/limel-helper-line_2.cjs.entry.js.map +1 -0
- 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-a42886f2.js → translations-e58b6da5.js} +9 -1
- package/dist/cjs/translations-e58b6da5.js.map +1 -0
- package/dist/collection/components/chart/chart.css +53 -0
- package/dist/collection/components/chart/chart.js +42 -3
- package/dist/collection/components/chart/chart.js.map +1 -1
- package/dist/collection/components/code-editor/code-editor.css +29 -0
- package/dist/collection/components/code-editor/code-editor.js +202 -11
- package/dist/collection/components/code-editor/code-editor.js.map +1 -1
- package/dist/collection/translations/da.js +1 -0
- package/dist/collection/translations/da.js.map +1 -1
- package/dist/collection/translations/de.js +1 -0
- package/dist/collection/translations/de.js.map +1 -1
- package/dist/collection/translations/en.js +1 -0
- package/dist/collection/translations/en.js.map +1 -1
- package/dist/collection/translations/fi.js +1 -0
- package/dist/collection/translations/fi.js.map +1 -1
- package/dist/collection/translations/fr.js +1 -0
- package/dist/collection/translations/fr.js.map +1 -1
- package/dist/collection/translations/nl.js +1 -0
- package/dist/collection/translations/nl.js.map +1 -1
- package/dist/collection/translations/no.js +1 -0
- package/dist/collection/translations/no.js.map +1 -1
- package/dist/collection/translations/sv.js +1 -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-breadcrumbs_8.entry.js → limel-breadcrumbs_7.entry.js} +2 -35
- package/dist/esm/limel-breadcrumbs_7.entry.js.map +1 -0
- package/dist/esm/limel-callout.entry.js +1 -1
- package/dist/esm/limel-chart.entry.js +7 -4
- package/dist/esm/limel-chart.entry.js.map +1 -1
- package/dist/esm/limel-chip_2.entry.js +1 -1
- package/dist/esm/limel-code-editor.entry.js +98 -6
- 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-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-helper-line_2.entry.js +74 -0
- package/dist/esm/limel-helper-line_2.entry.js.map +1 -0
- 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-9bfde9f4.js → translations-4151479a.js} +9 -1
- package/dist/esm/translations-4151479a.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-ee5c4112.entry.js → p-13bd2797.entry.js} +2 -2
- package/dist/lime-elements/{p-df9bcace.entry.js → p-158897dd.entry.js} +2 -2
- package/dist/lime-elements/{p-e00465fa.entry.js → p-182ce303.entry.js} +2 -2
- package/dist/lime-elements/{p-d79c85e2.entry.js → p-23de215d.entry.js} +2 -2
- package/dist/lime-elements/{p-8ea3b80a.entry.js → p-3746c217.entry.js} +2 -2
- package/dist/lime-elements/{p-aa1e7319.entry.js → p-61b2e426.entry.js} +2 -2
- package/dist/lime-elements/{p-033a0aa9.entry.js → p-668e583c.entry.js} +11 -11
- package/dist/lime-elements/p-668e583c.entry.js.map +1 -0
- package/dist/lime-elements/{p-92aa9610.entry.js → p-68799403.entry.js} +2 -2
- package/dist/lime-elements/{p-3311eaf3.entry.js → p-6d9fb8e8.entry.js} +2 -2
- package/dist/lime-elements/{p-fbac230b.entry.js → p-7da20f22.entry.js} +2 -2
- package/dist/lime-elements/{p-cd2f780a.entry.js → p-7e1a548a.entry.js} +2 -2
- package/dist/lime-elements/p-93ea4214.entry.js +2 -0
- package/dist/lime-elements/p-93ea4214.entry.js.map +1 -0
- package/dist/lime-elements/{p-b0acf522.entry.js → p-99f5e70b.entry.js} +2 -2
- package/dist/lime-elements/{p-40542ccc.entry.js → p-bf527989.entry.js} +2 -2
- package/dist/lime-elements/p-c582027f.js +2 -0
- package/dist/lime-elements/p-c582027f.js.map +1 -0
- package/dist/lime-elements/{p-31f1cb08.entry.js → p-d76d70ce.entry.js} +2 -2
- package/dist/lime-elements/p-dc55f5ca.entry.js +2 -0
- package/dist/lime-elements/p-dc55f5ca.entry.js.map +1 -0
- package/dist/lime-elements/p-f1ec1eeb.entry.js +2 -0
- package/dist/lime-elements/p-f1ec1eeb.entry.js.map +1 -0
- package/dist/lime-elements/{p-5e976a59.entry.js → p-f529b510.entry.js} +2 -2
- package/dist/lime-elements/{p-42e889d8.entry.js → p-ffedb0be.entry.js} +2 -2
- package/dist/types/components/chart/chart.d.ts +13 -0
- package/dist/types/components/code-editor/code-editor.d.ts +40 -1
- package/dist/types/components.d.ts +68 -4
- package/dist/types/translations/da.d.ts +1 -0
- package/dist/types/translations/de.d.ts +1 -0
- package/dist/types/translations/en.d.ts +1 -0
- package/dist/types/translations/fi.d.ts +1 -0
- package/dist/types/translations/fr.d.ts +1 -0
- package/dist/types/translations/nl.d.ts +1 -0
- package/dist/types/translations/no.d.ts +1 -0
- package/dist/types/translations/sv.d.ts +1 -0
- package/package.json +1 -1
- package/dist/cjs/limel-breadcrumbs_8.cjs.entry.js.map +0 -1
- package/dist/cjs/limel-helper-line.cjs.entry.js +0 -45
- package/dist/cjs/limel-helper-line.cjs.entry.js.map +0 -1
- package/dist/cjs/translations-a42886f2.js.map +0 -1
- package/dist/esm/limel-breadcrumbs_8.entry.js.map +0 -1
- package/dist/esm/limel-helper-line.entry.js +0 -41
- package/dist/esm/limel-helper-line.entry.js.map +0 -1
- package/dist/esm/translations-9bfde9f4.js.map +0 -1
- package/dist/lime-elements/p-033a0aa9.entry.js.map +0 -1
- package/dist/lime-elements/p-2bf4fc20.entry.js +0 -2
- package/dist/lime-elements/p-2bf4fc20.entry.js.map +0 -1
- package/dist/lime-elements/p-5df2361b.js +0 -2
- package/dist/lime-elements/p-5df2361b.js.map +0 -1
- package/dist/lime-elements/p-84e00842.entry.js +0 -2
- package/dist/lime-elements/p-84e00842.entry.js.map +0 -1
- package/dist/lime-elements/p-e4bafb75.entry.js +0 -2
- package/dist/lime-elements/p-e4bafb75.entry.js.map +0 -1
- /package/dist/lime-elements/{p-ee5c4112.entry.js.map → p-13bd2797.entry.js.map} +0 -0
- /package/dist/lime-elements/{p-df9bcace.entry.js.map → p-158897dd.entry.js.map} +0 -0
- /package/dist/lime-elements/{p-e00465fa.entry.js.map → p-182ce303.entry.js.map} +0 -0
- /package/dist/lime-elements/{p-d79c85e2.entry.js.map → p-23de215d.entry.js.map} +0 -0
- /package/dist/lime-elements/{p-8ea3b80a.entry.js.map → p-3746c217.entry.js.map} +0 -0
- /package/dist/lime-elements/{p-aa1e7319.entry.js.map → p-61b2e426.entry.js.map} +0 -0
- /package/dist/lime-elements/{p-92aa9610.entry.js.map → p-68799403.entry.js.map} +0 -0
- /package/dist/lime-elements/{p-3311eaf3.entry.js.map → p-6d9fb8e8.entry.js.map} +0 -0
- /package/dist/lime-elements/{p-fbac230b.entry.js.map → p-7da20f22.entry.js.map} +0 -0
- /package/dist/lime-elements/{p-cd2f780a.entry.js.map → p-7e1a548a.entry.js.map} +0 -0
- /package/dist/lime-elements/{p-b0acf522.entry.js.map → p-99f5e70b.entry.js.map} +0 -0
- /package/dist/lime-elements/{p-40542ccc.entry.js.map → p-bf527989.entry.js.map} +0 -0
- /package/dist/lime-elements/{p-31f1cb08.entry.js.map → p-d76d70ce.entry.js.map} +0 -0
- /package/dist/lime-elements/{p-5e976a59.entry.js.map → p-f529b510.entry.js.map} +0 -0
- /package/dist/lime-elements/{p-42e889d8.entry.js.map → p-ffedb0be.entry.js.map} +0 -0
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{r as t,c as e,h as i,g as o}from"./p-288f0842.js";import{t as s}from"./p-
|
|
2
|
-
//# sourceMappingURL=p-
|
|
1
|
+
import{r as t,c as e,h as i,g as o}from"./p-288f0842.js";import{t as s}from"./p-c582027f.js";function r(t,e){const i=t||e;if(!i){return"unknown"}const o=i.split(".").pop().toLowerCase();const s={pdf:"pdf",jpg:"image",jpeg:"image",heic:"image",bmp:"image",png:"image",gif:"image",svg:"image",svgz:"image",ep:"image",eps:"image",avi:"video",flv:"video",h264:"video",mov:"video",mp4:"video",mwv:"video",mkv:"video",mp3:"audio",wav:"audio",wma:"audio",ogg:"audio",txt:"text",json:"text",html:"text",xml:"text",doc:"office",docx:"office",odt:"office",dot:"office",dotx:"office",docm:"office",dotm:"office",pot:"office",ppt:"office",pptx:"office",odp:"office",potx:"office",potm:"office",pps:"office",ppsx:"office",ppsm:"office",pptm:"office",ppam:"office",pages:"office",xls:"office",xlsx:"office",xlsm:"office",xlsb:"office",ods:"office",csv:"office",numbers:"office"};return s[o]||"unknown"}class n{constructor(t){this.requestFullscreen=()=>{if(this.enter){this.enter()}};this.exitFullscreen=()=>{if(this.exit){this.exit.bind(window.document)()}};this.toggle=()=>{const t=window.document;const e=t.fullscreenElement||t.mozFullScreenElement||t.webkitFullscreenElement||t.msFullscreenElement;if(e){this.exitFullscreen()}else{this.requestFullscreen()}};this.enter=t.requestFullscreen||t.msRequestFullscreen||t.mozRequestFullScreen||t.webkitRequestFullscreen;this.enter=this.enter.bind(t);const e=window.document;this.exit=e.exitFullscreen||e.msExitFullscreen||e.mozCancelFullScreen||e.webkitExitFullscreen}isSupported(){return!!this.requestFullscreen}}const l='@charset "UTF-8";:host{isolation:isolate;position:relative;box-sizing:border-box;display:flex;align-items:center;justify-content:center;width:100%;height:100%}*{box-sizing:border-box}img,video,audio,object,iframe{max-height:100%;max-width:100%;box-sizing:border-box}iframe{border:none;width:100%;height:100%;min-height:20rem}img{min-width:7rem;object-fit:contain}video{width:100%;height:auto}audio{width:100%}object{width:100%;height:100%}object[type="application/pdf"]{min-height:20rem}object[type="text/plain"]{border-radius:0.25rem;padding-right:2rem;overflow-y:auto}:host(:fullscreen){background-color:rgb(var(--color-gray-darker))}:host(:fullscreen) object[type="text/plain"]{max-width:50rem;max-height:calc(100% - 2rem)}:host(:-webkit-full-screen){background-color:rgb(var(--color-gray-darker))}:host(:-webkit-full-screen) object[type="text/plain"]{max-width:50rem;max-height:calc(100% - 2rem)}.buttons{position:absolute;z-index:1;top:0.25rem;right:0.25rem;display:flex;flex-direction:column;gap:0.25rem}@media (pointer: coarse){.buttons{gap:0.5rem}}.no-support{display:flex;flex-direction:column;gap:0.5rem;align-items:center;border:1px dashed rgb(var(--contrast-600));border-radius:0.5rem;padding:1.25rem}.no-support h1,.no-support p{margin:0}[class^=button--]{all:unset;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:var(--lime-elevated-surface-background-color);box-shadow:var(--button-shadow-normal);display:flex;align-items:center;justify-content:center;border-radius:50%;width:2rem;height:2rem;background-color:rgba(var(--contrast-100), 0.8);backdrop-filter:blur(0.25rem);-webkit-backdrop-filter:blur(0.25rem)}[class^=button--]:hover,[class^=button--]:focus,[class^=button--]:focus-visible{will-change:color, background-color, box-shadow, transform}[class^=button--]:hover,[class^=button--]:focus-visible{transform:translate3d(0, -0.04rem, 0);color:var(--limel-theme-on-surface-color);background-color:var(--lime-elevated-surface-background-color);box-shadow:var(--button-shadow-hovered)}[class^=button--]: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)}[class^=button--]:hover,[class^=button--]:active{--limel-clickable-transition-speed:0.2s;--limel-clickable-transform-speed:0.16s}[class^=button--]:focus{outline:none}[class^=button--]:focus-visible{outline:none;box-shadow:var(--shadow-depth-8-focused)}[class^=button--] limel-icon{transition:color 0.2s ease;width:1.25rem;color:rgb(var(--contrast-1200))}[class^=button--]:hover limel-icon{color:rgb(var(--contrast-1400))}.action-menu-for-pdf-files,.action-menu-for-office-files{position:absolute;right:0.75rem}.action-menu-for-pdf-files{bottom:0.75rem}.action-menu-for-office-files{top:0.75rem}';const a=class{constructor(o){t(this,o);this.action=e(this,"action",7);this.renderPdf=()=>[i("div",{class:"action-menu-for-pdf-files"},this.renderActionMenu()),i("iframe",{src:this.sanitizeUrl(this.fileUrl),loading:"lazy"})];this.renderImage=()=>[this.renderButtons(),i("img",{src:this.sanitizeUrl(this.fileUrl),alt:this.alt,loading:"lazy"})];this.renderVideo=()=>i("video",{controls:true},i("source",{src:this.sanitizeUrl(this.fileUrl)}));this.renderAudio=()=>i("audio",{controls:true},i("source",{src:this.sanitizeUrl(this.fileUrl)}));this.renderText=()=>{const t=[this.renderNoFileSupportMessage()];return[this.renderButtons(),i("object",{data:this.sanitizeUrl(this.fileUrl),type:"text/plain"},t)]};this.renderOffice=()=>[i("div",{class:"action-menu-for-office-files"},this.renderActionMenu()),i("iframe",{src:this.getOfficeViewerUrl()+encodeURIComponent(this.sanitizeUrl(this.fileUrl))+"&embedded=true",loading:"lazy"})];this.isOfficeFileAccessibleViaURL=()=>this.fileType==="office"&&!(this.fileUrl.startsWith("http://")||this.fileUrl.startsWith("https://"));this.getOfficeViewerUrl=()=>{const t={"microsoft-office":"https://view.officeapps.live.com/op/embed.aspx?src=","google-drive":"https://docs.google.com/gview?url="};return t[this.officeViewer]};this.renderNoFileSupportMessage=()=>i("div",{class:"no-support",role:"alert"},i("h1",null,"⚠️"),i("p",null,this.getTranslation("file-viewer.message.unsupported-filetype")),i("p",{style:{textAlign:"center",margin:"0 auto"}},this.getTranslation("file-viewer.message.try-other-options")),this.renderDownloadButton());this.renderButtons=()=>i("div",{class:"buttons"},this.renderActionMenu(),this.renderToggleFullscreenButton(),this.renderDownloadButton(),this.renderOpenInNewTabButton());this.renderToggleFullscreenButton=()=>{if(!this.allowFullscreen||!this.fullscreen.isSupported()){return}const t=this.isFullscreen?"multiply":"fit_to_width";const e=this.isFullscreen?this.getTranslation("file-viewer.exit-fullscreen"):this.getTranslation("file-viewer.open-in-fullscreen");return[i("button",{class:"button--toggle-fullscreen",id:"tooltip-toggle-fullscreen",role:"button",onClick:this.handleToggleFullscreen},i("limel-icon",{name:t}),i("limel-tooltip",{label:e,elementId:"tooltip-toggle-fullscreen",openDirection:"left"}))]};this.renderDownloadButton=()=>{var t;if(!this.allowDownload||this.isFullscreen){return}return i("a",{class:"button--download",id:"tooltip-download",role:"button",download:(t=this.filename)!==null&&t!==void 0?t:"",href:this.sanitizeUrl(this.fileUrl),target:"_blank"},i("limel-icon",{name:"download_2"}),i("limel-tooltip",{label:this.getTranslation("file-viewer.download"),elementId:"tooltip-download",openDirection:"left"}))};this.renderOpenInNewTabButton=()=>{if(!this.allowOpenInNewTab||this.isFullscreen){return}return i("a",{class:"button--new-tab",id:"tooltip-new-tab",role:"button",href:this.sanitizeUrl(this.fileUrl),target:"_blank",rel:"noopener noreferrer"},i("limel-icon",{name:"external_link"}),i("limel-tooltip",{label:this.getTranslation("file-viewer.open-in-new-tab"),elementId:"tooltip-new-tab",openDirection:"left"}))};this.renderActionMenu=()=>{if(!this.actions||this.isFullscreen){return}return i("limel-menu",{class:"action-menu",items:this.actions,onSelect:this.emitOnAction,"open-direction":"left"},i("button",{class:"button--action",id:"tooltip-more",role:"button",slot:"trigger"},i("limel-icon",{name:"menu_2"}),i("limel-tooltip",{label:this.getTranslation("file-viewer.more-actions"),elementId:"tooltip-more",openDirection:"left"})))};this.createURL=async t=>{if(["pdf"].includes(t)){const t=await fetch(this.url);const e=await t.blob();this.fileUrl=URL.createObjectURL(e)}else{this.fileUrl=this.url}this.loading=false};this.handleToggleFullscreen=()=>{if(this.fullscreen.isSupported()){this.fullscreen.toggle();this.isFullscreen=!this.isFullscreen}};this.emitOnAction=t=>{t.stopPropagation();this.action.emit(t.detail)};this.url=undefined;this.filename=undefined;this.alt=undefined;this.allowFullscreen=false;this.allowOpenInNewTab=false;this.allowDownload=false;this.language="en";this.officeViewer="microsoft-office";this.actions=undefined;this.isFullscreen=false;this.fileType=undefined;this.loading=true;this.fileUrl="";this.fullscreen=new n(this.HostElement)}async componentWillLoad(){this.fileType=r(this.filename,this.url);await this.createURL(this.fileType)}render(){if(!this.isOfficeFileAccessibleViaURL){return this.renderNoFileSupportMessage()}if(this.loading){return i("limel-spinner",{size:"x-small",limeBranded:false})}return this.renderFileViewer()}async watchUrl(t,e){if(t===e){return}this.loading=true;this.fileType=r(this.filename,this.fileUrl);await this.createURL(this.fileType)}renderFileViewer(){const t={pdf:this.renderPdf,image:this.renderImage,video:this.renderVideo,audio:this.renderAudio,text:this.renderText,office:this.renderOffice};const e=t[this.fileType]||this.renderNoFileSupportMessage;return e()}sanitizeUrl(t){try{const e=new URL(t,window.location.href);const i=["http:","https:","blob:"];return i.includes(e.protocol)?e.href:""}catch(t){return""}}getTranslation(t){return s.get(t,this.language)}get HostElement(){return o(this)}static get watchers(){return{url:["watchUrl"]}}};a.style=l;export{a as limel_file_viewer};
|
|
2
|
+
//# sourceMappingURL=p-ffedb0be.entry.js.map
|
|
@@ -24,6 +24,7 @@ import { ChartItem } from './chart.types';
|
|
|
24
24
|
* @exampleComponent limel-example-chart-axis-increment
|
|
25
25
|
* @exampleComponent limel-example-chart-clickable-items
|
|
26
26
|
* @exampleComponent limel-example-chart-accessibility
|
|
27
|
+
* @exampleComponent limel-example-chart-axis-labels
|
|
27
28
|
* @exampleComponent limel-example-chart-styling
|
|
28
29
|
* @exampleComponent limel-example-chart-creative-styling
|
|
29
30
|
* @beta
|
|
@@ -42,8 +43,20 @@ export declare class Chart {
|
|
|
42
43
|
/**
|
|
43
44
|
* Helps users of assistive technologies to understand
|
|
44
45
|
* what the items in the chart represent.
|
|
46
|
+
* Defaults to the translation for "items" in the current language.
|
|
45
47
|
*/
|
|
46
48
|
accessibleItemsLabel?: string;
|
|
49
|
+
/**
|
|
50
|
+
* Helps users of assistive technologies to understand
|
|
51
|
+
* what the values in the chart represent.
|
|
52
|
+
* Defaults to the translation for "value" in the current language.
|
|
53
|
+
*/
|
|
54
|
+
accessibleValuesLabel?: string;
|
|
55
|
+
/**
|
|
56
|
+
* When set to true, renders visible labels for X and Y axes.
|
|
57
|
+
* Only affects chart types with X and Y axes, such as area, bar, and line charts.
|
|
58
|
+
*/
|
|
59
|
+
displayAxisLabels: boolean;
|
|
47
60
|
/**
|
|
48
61
|
* List of items in the chart,
|
|
49
62
|
* each representing a data point.
|
|
@@ -16,6 +16,7 @@ import 'codemirror/addon/fold/xml-fold';
|
|
|
16
16
|
* @exampleComponent limel-example-code-editor
|
|
17
17
|
* @exampleComponent limel-example-code-editor-readonly-with-line-numbers
|
|
18
18
|
* @exampleComponent limel-example-code-editor-fold-lint-wrap
|
|
19
|
+
* @exampleComponent limel-example-code-editor-composite
|
|
19
20
|
*/
|
|
20
21
|
export declare class CodeEditor {
|
|
21
22
|
/**
|
|
@@ -27,9 +28,35 @@ export declare class CodeEditor {
|
|
|
27
28
|
*/
|
|
28
29
|
language: Language;
|
|
29
30
|
/**
|
|
30
|
-
*
|
|
31
|
+
* Set to `true` to make the editor read-only.
|
|
32
|
+
* Use `readonly` when the editor is only there to present the data it holds,
|
|
33
|
+
* and will not become possible for the current user to edit.
|
|
31
34
|
*/
|
|
32
35
|
readonly: boolean;
|
|
36
|
+
/**
|
|
37
|
+
* Set to `true` to disable the editor.
|
|
38
|
+
* Use `disabled` to indicate that the editor can normally be interacted
|
|
39
|
+
* with, but is currently disabled. This tells the user that if certain
|
|
40
|
+
* requirements are met, the editor may become enabled again.
|
|
41
|
+
*/
|
|
42
|
+
disabled: boolean;
|
|
43
|
+
/**
|
|
44
|
+
* Set to `true` to indicate that the current value of the input editor is
|
|
45
|
+
* invalid.
|
|
46
|
+
*/
|
|
47
|
+
invalid: boolean;
|
|
48
|
+
/**
|
|
49
|
+
* Set to `true` to indicate that the field is required.
|
|
50
|
+
*/
|
|
51
|
+
required: boolean;
|
|
52
|
+
/**
|
|
53
|
+
* The input label.
|
|
54
|
+
*/
|
|
55
|
+
label?: string;
|
|
56
|
+
/**
|
|
57
|
+
* Optional helper text to display below the input field when it has focus
|
|
58
|
+
*/
|
|
59
|
+
helperText?: string;
|
|
33
60
|
/**
|
|
34
61
|
* Displays line numbers in the editor
|
|
35
62
|
*/
|
|
@@ -63,10 +90,18 @@ export declare class CodeEditor {
|
|
|
63
90
|
protected random: number;
|
|
64
91
|
private editor;
|
|
65
92
|
private observer;
|
|
93
|
+
private labelId;
|
|
94
|
+
private helperTextId;
|
|
95
|
+
constructor();
|
|
66
96
|
connectedCallback(): void;
|
|
67
97
|
disconnectedCallback(): void;
|
|
68
98
|
componentDidRender(): void;
|
|
69
99
|
protected watchValue(newValue: string): void;
|
|
100
|
+
protected watchDisabled(): void;
|
|
101
|
+
protected watchReadonly(): void;
|
|
102
|
+
protected watchInvalid(): void;
|
|
103
|
+
protected watchRequired(): void;
|
|
104
|
+
protected watchHelperText(): void;
|
|
70
105
|
private handleChangeDarkMode;
|
|
71
106
|
private handleChange;
|
|
72
107
|
private handleResize;
|
|
@@ -74,7 +109,11 @@ export declare class CodeEditor {
|
|
|
74
109
|
private getOptions;
|
|
75
110
|
private isDarkMode;
|
|
76
111
|
render(): any;
|
|
112
|
+
private renderHelperLine;
|
|
77
113
|
private forceRedraw;
|
|
78
114
|
private get darkMode();
|
|
115
|
+
private updateEditorReadOnlyState;
|
|
116
|
+
private getReadOnlyOption;
|
|
117
|
+
private updateInputFieldAccessibilityAttributes;
|
|
79
118
|
}
|
|
80
119
|
//# sourceMappingURL=code-editor.d.ts.map
|
|
@@ -472,23 +472,32 @@ export namespace Components {
|
|
|
472
472
|
* @exampleComponent limel-example-chart-axis-increment
|
|
473
473
|
* @exampleComponent limel-example-chart-clickable-items
|
|
474
474
|
* @exampleComponent limel-example-chart-accessibility
|
|
475
|
+
* @exampleComponent limel-example-chart-axis-labels
|
|
475
476
|
* @exampleComponent limel-example-chart-styling
|
|
476
477
|
* @exampleComponent limel-example-chart-creative-styling
|
|
477
478
|
* @beta
|
|
478
479
|
*/
|
|
479
480
|
interface LimelChart {
|
|
480
481
|
/**
|
|
481
|
-
* Helps users of assistive technologies to understand what the items in the chart represent.
|
|
482
|
+
* Helps users of assistive technologies to understand what the items in the chart represent. Defaults to the translation for "items" in the current language.
|
|
482
483
|
*/
|
|
483
484
|
"accessibleItemsLabel"?: string;
|
|
484
485
|
/**
|
|
485
486
|
* Helps users of assistive technologies to understand the context of the chart, and what is being displayed.
|
|
486
487
|
*/
|
|
487
488
|
"accessibleLabel"?: string;
|
|
489
|
+
/**
|
|
490
|
+
* Helps users of assistive technologies to understand what the values in the chart represent. Defaults to the translation for "value" in the current language.
|
|
491
|
+
*/
|
|
492
|
+
"accessibleValuesLabel"?: string;
|
|
488
493
|
/**
|
|
489
494
|
* Specifies the increment for the axis lines.
|
|
490
495
|
*/
|
|
491
496
|
"axisIncrement"?: number;
|
|
497
|
+
/**
|
|
498
|
+
* When set to true, renders visible labels for X and Y axes. Only affects chart types with X and Y axes, such as area, bar, and line charts.
|
|
499
|
+
*/
|
|
500
|
+
"displayAxisLabels": boolean;
|
|
492
501
|
/**
|
|
493
502
|
* List of items in the chart, each representing a data point.
|
|
494
503
|
*/
|
|
@@ -865,16 +874,33 @@ export namespace Components {
|
|
|
865
874
|
* @exampleComponent limel-example-code-editor
|
|
866
875
|
* @exampleComponent limel-example-code-editor-readonly-with-line-numbers
|
|
867
876
|
* @exampleComponent limel-example-code-editor-fold-lint-wrap
|
|
877
|
+
* @exampleComponent limel-example-code-editor-composite
|
|
868
878
|
*/
|
|
869
879
|
interface LimelCodeEditor {
|
|
870
880
|
/**
|
|
871
881
|
* Select color scheme for the editor
|
|
872
882
|
*/
|
|
873
883
|
"colorScheme": ColorScheme;
|
|
884
|
+
/**
|
|
885
|
+
* Set to `true` to disable the editor. Use `disabled` to indicate that the editor can normally be interacted with, but is currently disabled. This tells the user that if certain requirements are met, the editor may become enabled again.
|
|
886
|
+
*/
|
|
887
|
+
"disabled": boolean;
|
|
874
888
|
/**
|
|
875
889
|
* Allows the user to fold code
|
|
876
890
|
*/
|
|
877
891
|
"fold": boolean;
|
|
892
|
+
/**
|
|
893
|
+
* Optional helper text to display below the input field when it has focus
|
|
894
|
+
*/
|
|
895
|
+
"helperText"?: string;
|
|
896
|
+
/**
|
|
897
|
+
* Set to `true` to indicate that the current value of the input editor is invalid.
|
|
898
|
+
*/
|
|
899
|
+
"invalid": boolean;
|
|
900
|
+
/**
|
|
901
|
+
* The input label.
|
|
902
|
+
*/
|
|
903
|
+
"label"?: string;
|
|
878
904
|
/**
|
|
879
905
|
* The language of the code
|
|
880
906
|
*/
|
|
@@ -892,9 +918,13 @@ export namespace Components {
|
|
|
892
918
|
*/
|
|
893
919
|
"lint": boolean;
|
|
894
920
|
/**
|
|
895
|
-
*
|
|
921
|
+
* Set to `true` to make the editor read-only. Use `readonly` when the editor is only there to present the data it holds, and will not become possible for the current user to edit.
|
|
896
922
|
*/
|
|
897
923
|
"readonly": boolean;
|
|
924
|
+
/**
|
|
925
|
+
* Set to `true` to indicate that the field is required.
|
|
926
|
+
*/
|
|
927
|
+
"required": boolean;
|
|
898
928
|
/**
|
|
899
929
|
* The code to be rendered
|
|
900
930
|
*/
|
|
@@ -3798,6 +3828,7 @@ declare global {
|
|
|
3798
3828
|
* @exampleComponent limel-example-chart-axis-increment
|
|
3799
3829
|
* @exampleComponent limel-example-chart-clickable-items
|
|
3800
3830
|
* @exampleComponent limel-example-chart-accessibility
|
|
3831
|
+
* @exampleComponent limel-example-chart-axis-labels
|
|
3801
3832
|
* @exampleComponent limel-example-chart-styling
|
|
3802
3833
|
* @exampleComponent limel-example-chart-creative-styling
|
|
3803
3834
|
* @beta
|
|
@@ -3955,6 +3986,7 @@ declare global {
|
|
|
3955
3986
|
* @exampleComponent limel-example-code-editor
|
|
3956
3987
|
* @exampleComponent limel-example-code-editor-readonly-with-line-numbers
|
|
3957
3988
|
* @exampleComponent limel-example-code-editor-fold-lint-wrap
|
|
3989
|
+
* @exampleComponent limel-example-code-editor-composite
|
|
3958
3990
|
*/
|
|
3959
3991
|
interface HTMLLimelCodeEditorElement extends Components.LimelCodeEditor, HTMLStencilElement {
|
|
3960
3992
|
}
|
|
@@ -5650,23 +5682,32 @@ declare namespace LocalJSX {
|
|
|
5650
5682
|
* @exampleComponent limel-example-chart-axis-increment
|
|
5651
5683
|
* @exampleComponent limel-example-chart-clickable-items
|
|
5652
5684
|
* @exampleComponent limel-example-chart-accessibility
|
|
5685
|
+
* @exampleComponent limel-example-chart-axis-labels
|
|
5653
5686
|
* @exampleComponent limel-example-chart-styling
|
|
5654
5687
|
* @exampleComponent limel-example-chart-creative-styling
|
|
5655
5688
|
* @beta
|
|
5656
5689
|
*/
|
|
5657
5690
|
interface LimelChart {
|
|
5658
5691
|
/**
|
|
5659
|
-
* Helps users of assistive technologies to understand what the items in the chart represent.
|
|
5692
|
+
* Helps users of assistive technologies to understand what the items in the chart represent. Defaults to the translation for "items" in the current language.
|
|
5660
5693
|
*/
|
|
5661
5694
|
"accessibleItemsLabel"?: string;
|
|
5662
5695
|
/**
|
|
5663
5696
|
* Helps users of assistive technologies to understand the context of the chart, and what is being displayed.
|
|
5664
5697
|
*/
|
|
5665
5698
|
"accessibleLabel"?: string;
|
|
5699
|
+
/**
|
|
5700
|
+
* Helps users of assistive technologies to understand what the values in the chart represent. Defaults to the translation for "value" in the current language.
|
|
5701
|
+
*/
|
|
5702
|
+
"accessibleValuesLabel"?: string;
|
|
5666
5703
|
/**
|
|
5667
5704
|
* Specifies the increment for the axis lines.
|
|
5668
5705
|
*/
|
|
5669
5706
|
"axisIncrement"?: number;
|
|
5707
|
+
/**
|
|
5708
|
+
* When set to true, renders visible labels for X and Y axes. Only affects chart types with X and Y axes, such as area, bar, and line charts.
|
|
5709
|
+
*/
|
|
5710
|
+
"displayAxisLabels"?: boolean;
|
|
5670
5711
|
/**
|
|
5671
5712
|
* List of items in the chart, each representing a data point.
|
|
5672
5713
|
*/
|
|
@@ -6063,16 +6104,33 @@ declare namespace LocalJSX {
|
|
|
6063
6104
|
* @exampleComponent limel-example-code-editor
|
|
6064
6105
|
* @exampleComponent limel-example-code-editor-readonly-with-line-numbers
|
|
6065
6106
|
* @exampleComponent limel-example-code-editor-fold-lint-wrap
|
|
6107
|
+
* @exampleComponent limel-example-code-editor-composite
|
|
6066
6108
|
*/
|
|
6067
6109
|
interface LimelCodeEditor {
|
|
6068
6110
|
/**
|
|
6069
6111
|
* Select color scheme for the editor
|
|
6070
6112
|
*/
|
|
6071
6113
|
"colorScheme"?: ColorScheme;
|
|
6114
|
+
/**
|
|
6115
|
+
* Set to `true` to disable the editor. Use `disabled` to indicate that the editor can normally be interacted with, but is currently disabled. This tells the user that if certain requirements are met, the editor may become enabled again.
|
|
6116
|
+
*/
|
|
6117
|
+
"disabled"?: boolean;
|
|
6072
6118
|
/**
|
|
6073
6119
|
* Allows the user to fold code
|
|
6074
6120
|
*/
|
|
6075
6121
|
"fold"?: boolean;
|
|
6122
|
+
/**
|
|
6123
|
+
* Optional helper text to display below the input field when it has focus
|
|
6124
|
+
*/
|
|
6125
|
+
"helperText"?: string;
|
|
6126
|
+
/**
|
|
6127
|
+
* Set to `true` to indicate that the current value of the input editor is invalid.
|
|
6128
|
+
*/
|
|
6129
|
+
"invalid"?: boolean;
|
|
6130
|
+
/**
|
|
6131
|
+
* The input label.
|
|
6132
|
+
*/
|
|
6133
|
+
"label"?: string;
|
|
6076
6134
|
/**
|
|
6077
6135
|
* The language of the code
|
|
6078
6136
|
*/
|
|
@@ -6094,9 +6152,13 @@ declare namespace LocalJSX {
|
|
|
6094
6152
|
*/
|
|
6095
6153
|
"onChange"?: (event: LimelCodeEditorCustomEvent<string>) => void;
|
|
6096
6154
|
/**
|
|
6097
|
-
*
|
|
6155
|
+
* Set to `true` to make the editor read-only. Use `readonly` when the editor is only there to present the data it holds, and will not become possible for the current user to edit.
|
|
6098
6156
|
*/
|
|
6099
6157
|
"readonly"?: boolean;
|
|
6158
|
+
/**
|
|
6159
|
+
* Set to `true` to indicate that the field is required.
|
|
6160
|
+
*/
|
|
6161
|
+
"required"?: boolean;
|
|
6100
6162
|
/**
|
|
6101
6163
|
* The code to be rendered
|
|
6102
6164
|
*/
|
|
@@ -9137,6 +9199,7 @@ declare module "@stencil/core" {
|
|
|
9137
9199
|
* @exampleComponent limel-example-chart-axis-increment
|
|
9138
9200
|
* @exampleComponent limel-example-chart-clickable-items
|
|
9139
9201
|
* @exampleComponent limel-example-chart-accessibility
|
|
9202
|
+
* @exampleComponent limel-example-chart-axis-labels
|
|
9140
9203
|
* @exampleComponent limel-example-chart-styling
|
|
9141
9204
|
* @exampleComponent limel-example-chart-creative-styling
|
|
9142
9205
|
* @beta
|
|
@@ -9269,6 +9332,7 @@ declare module "@stencil/core" {
|
|
|
9269
9332
|
* @exampleComponent limel-example-code-editor
|
|
9270
9333
|
* @exampleComponent limel-example-code-editor-readonly-with-line-numbers
|
|
9271
9334
|
* @exampleComponent limel-example-code-editor-fold-lint-wrap
|
|
9335
|
+
* @exampleComponent limel-example-code-editor-composite
|
|
9272
9336
|
*/
|
|
9273
9337
|
"limel-code-editor": LocalJSX.LimelCodeEditor & JSXBase.HTMLAttributes<HTMLLimelCodeEditorElement>;
|
|
9274
9338
|
/**
|