@limetech/lime-elements 37.59.1 → 37.60.1
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 +23 -0
- package/dist/cjs/{component-55b926ef.js → component-3f00c197.js} +7 -8
- package/dist/cjs/component-3f00c197.js.map +1 -0
- package/dist/cjs/{component-37425b99.js → component-44f52caf.js} +50 -51
- package/dist/cjs/component-44f52caf.js.map +1 -0
- package/dist/cjs/{component-cba208a8.js → component-864afce0.js} +13 -14
- package/dist/cjs/component-864afce0.js.map +1 -0
- package/dist/cjs/{component-a4eb183b.js → component-a8e11c4c.js} +12 -13
- package/dist/cjs/component-a8e11c4c.js.map +1 -0
- package/dist/cjs/lime-elements.cjs.js +1 -1
- package/dist/cjs/limel-action-bar_4.cjs.entry.js +1 -1
- package/dist/cjs/limel-breadcrumbs_5.cjs.entry.js +21 -22
- package/dist/cjs/limel-breadcrumbs_5.cjs.entry.js.map +1 -1
- package/dist/cjs/limel-callout.cjs.entry.js +1 -1
- package/dist/cjs/limel-checkbox.cjs.entry.js +18 -19
- package/dist/cjs/limel-checkbox.cjs.entry.js.map +1 -1
- package/dist/cjs/limel-chip_2.cjs.entry.js +6 -7
- package/dist/cjs/limel-chip_2.cjs.entry.js.map +1 -1
- package/dist/cjs/limel-date-picker.cjs.entry.js +4 -5
- package/dist/cjs/limel-date-picker.cjs.entry.js.map +1 -1
- package/dist/cjs/limel-dialog.cjs.entry.js +9 -10
- package/dist/cjs/limel-dialog.cjs.entry.js.map +1 -1
- package/dist/cjs/limel-dynamic-label_4.cjs.entry.js +2 -3
- package/dist/cjs/limel-dynamic-label_4.cjs.entry.js.map +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-info-tile.cjs.entry.js +1 -1
- package/dist/cjs/limel-info-tile.cjs.entry.js.map +1 -1
- package/dist/cjs/limel-linear-progress.cjs.entry.js +17 -396
- package/dist/cjs/limel-linear-progress.cjs.entry.js.map +1 -1
- package/dist/cjs/limel-prosemirror-adapter.cjs.entry.js +1 -1
- package/dist/cjs/limel-select.cjs.entry.js +8 -9
- package/dist/cjs/limel-select.cjs.entry.js.map +1 -1
- package/dist/cjs/limel-slider.cjs.entry.js +10 -11
- package/dist/cjs/limel-slider.cjs.entry.js.map +1 -1
- package/dist/cjs/limel-snackbar.cjs.entry.js +1 -1
- package/dist/cjs/limel-switch.cjs.entry.js +16 -17
- package/dist/cjs/limel-switch.cjs.entry.js.map +1 -1
- package/dist/cjs/limel-tab-bar.cjs.entry.js +42 -43
- package/dist/cjs/limel-tab-bar.cjs.entry.js.map +1 -1
- package/dist/cjs/limel-table.cjs.entry.js +1 -1
- package/dist/cjs/limel-table.cjs.entry.js.map +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{component-b37fd9bc.js → ponyfill-63966294.js} +75 -1
- package/dist/cjs/ponyfill-63966294.js.map +1 -0
- package/dist/cjs/{translations-6d759b59.js → translations-e12a6869.js} +13 -1
- package/dist/cjs/translations-e12a6869.js.map +1 -0
- package/dist/collection/components/chip/chip.css +0 -2
- package/dist/collection/components/info-tile/info-tile.css +0 -2
- package/dist/collection/components/linear-progress/linear-progress.css +58 -250
- package/dist/collection/components/linear-progress/linear-progress.js +62 -29
- package/dist/collection/components/linear-progress/linear-progress.js.map +1 -1
- package/dist/collection/components/table/table.js +1 -1
- package/dist/collection/components/table/table.js.map +1 -1
- package/dist/collection/translations/da.js +2 -0
- package/dist/collection/translations/da.js.map +1 -1
- package/dist/collection/translations/en.js +2 -0
- package/dist/collection/translations/en.js.map +1 -1
- package/dist/collection/translations/fi.js +2 -0
- package/dist/collection/translations/fi.js.map +1 -1
- package/dist/collection/translations/nl.js +2 -0
- package/dist/collection/translations/nl.js.map +1 -1
- package/dist/collection/translations/no.js +2 -0
- package/dist/collection/translations/no.js.map +1 -1
- package/dist/collection/translations/sv.js +2 -0
- package/dist/collection/translations/sv.js.map +1 -1
- package/dist/esm/{component-db286494.js → component-5e233629.js} +2 -3
- package/dist/esm/component-5e233629.js.map +1 -0
- package/dist/esm/{component-f972b8db.js → component-a531729c.js} +2 -3
- package/dist/esm/component-a531729c.js.map +1 -0
- package/dist/esm/{component-fc0a08f6.js → component-b934161d.js} +2 -3
- package/dist/esm/component-b934161d.js.map +1 -0
- package/dist/esm/{component-58f68f3e.js → component-e6eb55fa.js} +4 -5
- package/dist/esm/component-e6eb55fa.js.map +1 -0
- package/dist/esm/lime-elements.js +1 -1
- package/dist/esm/limel-action-bar_4.entry.js +1 -1
- package/dist/esm/limel-breadcrumbs_5.entry.js +5 -6
- package/dist/esm/limel-breadcrumbs_5.entry.js.map +1 -1
- package/dist/esm/limel-callout.entry.js +1 -1
- package/dist/esm/limel-checkbox.entry.js +2 -3
- package/dist/esm/limel-checkbox.entry.js.map +1 -1
- package/dist/esm/limel-chip_2.entry.js +6 -7
- package/dist/esm/limel-chip_2.entry.js.map +1 -1
- package/dist/esm/limel-date-picker.entry.js +4 -5
- package/dist/esm/limel-date-picker.entry.js.map +1 -1
- package/dist/esm/limel-dialog.entry.js +2 -3
- package/dist/esm/limel-dialog.entry.js.map +1 -1
- package/dist/esm/limel-dynamic-label_4.entry.js +2 -3
- package/dist/esm/limel-dynamic-label_4.entry.js.map +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-info-tile.entry.js +1 -1
- package/dist/esm/limel-info-tile.entry.js.map +1 -1
- package/dist/esm/limel-linear-progress.entry.js +18 -397
- package/dist/esm/limel-linear-progress.entry.js.map +1 -1
- package/dist/esm/limel-prosemirror-adapter.entry.js +1 -1
- package/dist/esm/limel-select.entry.js +2 -3
- package/dist/esm/limel-select.entry.js.map +1 -1
- package/dist/esm/limel-slider.entry.js +2 -3
- package/dist/esm/limel-slider.entry.js.map +1 -1
- package/dist/esm/limel-snackbar.entry.js +1 -1
- package/dist/esm/limel-switch.entry.js +2 -3
- package/dist/esm/limel-switch.entry.js.map +1 -1
- package/dist/esm/limel-tab-bar.entry.js +2 -3
- package/dist/esm/limel-tab-bar.entry.js.map +1 -1
- package/dist/esm/limel-table.entry.js +1 -1
- package/dist/esm/limel-table.entry.js.map +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/esm/{component-8b6ce3e9.js → ponyfill-9f1f6cd2.js} +73 -2
- package/dist/esm/ponyfill-9f1f6cd2.js.map +1 -0
- package/dist/esm/{translations-aee148ca.js → translations-d6a1fb0b.js} +13 -1
- package/dist/esm/translations-d6a1fb0b.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-d2077011.entry.js → p-02e9b8ce.entry.js} +2 -2
- package/dist/lime-elements/{p-9b437537.entry.js → p-20440a35.entry.js} +2 -2
- package/dist/lime-elements/{p-83648c76.entry.js → p-216eb1cf.entry.js} +2 -2
- package/dist/lime-elements/{p-c36a9afa.entry.js → p-2512011c.entry.js} +4 -4
- package/dist/lime-elements/{p-f1d08f33.entry.js → p-30ca30ec.entry.js} +5 -5
- package/dist/lime-elements/{p-f1d08f33.entry.js.map → p-30ca30ec.entry.js.map} +1 -1
- package/dist/lime-elements/{p-ef5539b0.entry.js → p-3e1e3fe6.entry.js} +2 -2
- package/dist/lime-elements/{p-11d5d44e.js → p-5a478c15.js} +3 -3
- package/dist/lime-elements/{p-9375145d.entry.js → p-6b0ef5ee.entry.js} +3 -3
- package/dist/lime-elements/p-6c74fcaa.entry.js +2 -0
- package/dist/lime-elements/{p-c66da652.entry.js.map → p-6c74fcaa.entry.js.map} +1 -1
- package/dist/lime-elements/{p-48c62d9d.entry.js → p-715d4a78.entry.js} +2 -2
- package/dist/lime-elements/p-78889be5.entry.js +2 -0
- package/dist/lime-elements/{p-2367b082.entry.js.map → p-78889be5.entry.js.map} +1 -1
- package/dist/lime-elements/{p-9ab3a908.js → p-85a982f9.js} +3 -3
- package/dist/lime-elements/{p-cb63f2d7.entry.js → p-9452ff1b.entry.js} +2 -2
- package/dist/lime-elements/{p-5e0ee0be.entry.js → p-9bb104b1.entry.js} +2 -2
- package/dist/lime-elements/p-9bb104b1.entry.js.map +1 -0
- package/dist/lime-elements/p-9f722992.js +68 -0
- package/dist/{cjs/component-b37fd9bc.js.map → lime-elements/p-9f722992.js.map} +1 -1
- package/dist/lime-elements/{p-fe1decdc.entry.js → p-a80507e5.entry.js} +2 -2
- package/dist/lime-elements/p-afefcd43.entry.js +2 -0
- package/dist/lime-elements/p-afefcd43.entry.js.map +1 -0
- package/dist/lime-elements/{p-16ad4500.entry.js → p-c4760e4a.entry.js} +2 -2
- package/dist/lime-elements/{p-16ad4500.entry.js.map → p-c4760e4a.entry.js.map} +1 -1
- package/dist/lime-elements/{p-6fc349f0.entry.js → p-c544c575.entry.js} +2 -2
- package/dist/lime-elements/p-c85589d6.entry.js +2 -0
- package/dist/lime-elements/{p-7603dc0d.entry.js.map → p-c85589d6.entry.js.map} +1 -1
- package/dist/lime-elements/{p-8da06871.entry.js → p-cd04c508.entry.js} +2 -2
- package/dist/lime-elements/{p-f764b655.js → p-d528606a.js} +8 -8
- package/dist/lime-elements/{p-178bbeb4.entry.js → p-dab818a1.entry.js} +2 -2
- package/dist/lime-elements/{p-178bbeb4.entry.js.map → p-dab818a1.entry.js.map} +1 -1
- package/dist/lime-elements/{p-43c83a69.entry.js → p-dd85a0b2.entry.js} +2 -2
- package/dist/lime-elements/{p-083d1db4.js → p-e7281e6a.js} +3 -3
- package/dist/lime-elements/p-f63f1114.js +2 -0
- package/dist/lime-elements/p-f63f1114.js.map +1 -0
- package/dist/types/components/linear-progress/linear-progress.d.ts +19 -7
- package/dist/types/components.d.ts +32 -4
- package/dist/types/translations/da.d.ts +2 -0
- package/dist/types/translations/en.d.ts +2 -0
- package/dist/types/translations/fi.d.ts +2 -0
- package/dist/types/translations/nl.d.ts +2 -0
- package/dist/types/translations/no.d.ts +2 -0
- package/dist/types/translations/sv.d.ts +2 -0
- package/package.json +2 -2
- package/dist/cjs/component-37425b99.js.map +0 -1
- package/dist/cjs/component-55b926ef.js.map +0 -1
- package/dist/cjs/component-a4eb183b.js.map +0 -1
- package/dist/cjs/component-cba208a8.js.map +0 -1
- package/dist/cjs/ponyfill-98ca4766.js +0 -78
- package/dist/cjs/ponyfill-98ca4766.js.map +0 -1
- package/dist/cjs/translations-6d759b59.js.map +0 -1
- package/dist/esm/component-58f68f3e.js.map +0 -1
- package/dist/esm/component-8b6ce3e9.js.map +0 -1
- package/dist/esm/component-db286494.js.map +0 -1
- package/dist/esm/component-f972b8db.js.map +0 -1
- package/dist/esm/component-fc0a08f6.js.map +0 -1
- package/dist/esm/ponyfill-30263d5e.js +0 -74
- package/dist/esm/ponyfill-30263d5e.js.map +0 -1
- package/dist/esm/translations-aee148ca.js.map +0 -1
- package/dist/lime-elements/p-2367b082.entry.js +0 -2
- package/dist/lime-elements/p-2ff3f85e.js +0 -46
- package/dist/lime-elements/p-2ff3f85e.js.map +0 -1
- package/dist/lime-elements/p-4d503318.js +0 -2
- package/dist/lime-elements/p-4d503318.js.map +0 -1
- package/dist/lime-elements/p-5e0ee0be.entry.js.map +0 -1
- package/dist/lime-elements/p-7603dc0d.entry.js +0 -2
- package/dist/lime-elements/p-9605854b.entry.js +0 -68
- package/dist/lime-elements/p-9605854b.entry.js.map +0 -1
- package/dist/lime-elements/p-c66da652.entry.js +0 -2
- package/dist/lime-elements/p-dcc97cc2.js +0 -24
- package/dist/lime-elements/p-dcc97cc2.js.map +0 -1
- /package/dist/lime-elements/{p-d2077011.entry.js.map → p-02e9b8ce.entry.js.map} +0 -0
- /package/dist/lime-elements/{p-9b437537.entry.js.map → p-20440a35.entry.js.map} +0 -0
- /package/dist/lime-elements/{p-83648c76.entry.js.map → p-216eb1cf.entry.js.map} +0 -0
- /package/dist/lime-elements/{p-c36a9afa.entry.js.map → p-2512011c.entry.js.map} +0 -0
- /package/dist/lime-elements/{p-ef5539b0.entry.js.map → p-3e1e3fe6.entry.js.map} +0 -0
- /package/dist/lime-elements/{p-11d5d44e.js.map → p-5a478c15.js.map} +0 -0
- /package/dist/lime-elements/{p-9375145d.entry.js.map → p-6b0ef5ee.entry.js.map} +0 -0
- /package/dist/lime-elements/{p-48c62d9d.entry.js.map → p-715d4a78.entry.js.map} +0 -0
- /package/dist/lime-elements/{p-9ab3a908.js.map → p-85a982f9.js.map} +0 -0
- /package/dist/lime-elements/{p-cb63f2d7.entry.js.map → p-9452ff1b.entry.js.map} +0 -0
- /package/dist/lime-elements/{p-fe1decdc.entry.js.map → p-a80507e5.entry.js.map} +0 -0
- /package/dist/lime-elements/{p-6fc349f0.entry.js.map → p-c544c575.entry.js.map} +0 -0
- /package/dist/lime-elements/{p-8da06871.entry.js.map → p-cd04c508.entry.js.map} +0 -0
- /package/dist/lime-elements/{p-f764b655.js.map → p-d528606a.js.map} +0 -0
- /package/dist/lime-elements/{p-43c83a69.entry.js.map → p-dd85a0b2.entry.js.map} +0 -0
- /package/dist/lime-elements/{p-083d1db4.js.map → p-e7281e6a.js.map} +0 -0
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{r as t,c as e,h as o,g as i}from"./p-443111b3.js";import{t as r}from"./p-
|
|
2
|
-
//# sourceMappingURL=p-
|
|
1
|
+
import{r as t,c as e,h as o,g as i}from"./p-443111b3.js";import{t as r}from"./p-f63f1114.js";function s(t,e){const o=t||e;if(!o){return"unknown"}const i=o.split(".").pop().toLowerCase();const r={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 r[i]||"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 a='@charset "UTF-8";:host{--mdc-theme-primary:var(\n --lime-primary-color,\n rgb(var(--color-teal-default))\n );--mdc-theme-secondary:var(\n --lime-secondary-color,\n rgb(var(--contrast-1100))\n );--mdc-theme-on-primary:var(\n --lime-on-primary-color,\n rgb(var(--contrast-100))\n );--mdc-theme-on-secondary:var(\n --lime-on-secondary-color,\n rgb(var(--contrast-100))\n );--mdc-theme-text-disabled-on-background:var(\n --lime-text-disabled-on-background-color,\n rgba(var(--contrast-1700), 0.38)\n );--mdc-theme-text-primary-on-background:var(\n --lime-text-primary-on-background-color,\n rgba(var(--contrast-1700), 0.87)\n );--mdc-theme-text-secondary-on-background:var(\n --lime-text-secondary-on-background-color,\n rgba(var(--contrast-1700), 0.54)\n );--mdc-theme-error:var(\n --lime-error-background-color,\n rgb(var(--color-red-dark))\n );--lime-error-text-color:rgb(var(--color-red-darker));--mdc-theme-surface:var(\n --lime-surface-background-color,\n rgb(var(--contrast-100))\n );--mdc-theme-on-surface:var(\n --lime-on-surface-color,\n rgb(var(--contrast-1500))\n )}: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;align-items:center;border:1px dashed rgb(var(--contrast-600));border-radius:0.5rem;padding:1.25rem}.no-support .icon--warning{color:rgb(var(--color-orange-default))}[class^=button--]{all:unset;transition:color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease, transform 0.1s ease-out;cursor:pointer;color:var(--mdc-theme-on-surface);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{color:var(--mdc-theme-on-surface);background-color:var(--lime-elevated-surface-background-color);box-shadow:var(--button-shadow-hovered)}[class^=button--]:active{box-shadow:var(--button-shadow-pressed);transform:translate3d(0, 0.08rem, 0)}[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 l=class{constructor(i){t(this,i);this.action=e(this,"action",7);this.renderPdf=()=>[o("div",{class:"action-menu-for-pdf-files"},this.renderActionMenu()),o("iframe",{src:this.fileUrl,loading:"lazy"})];this.renderImage=()=>[this.renderButtons(),o("img",{src:this.fileUrl,alt:this.alt,loading:"lazy"})];this.renderVideo=()=>o("video",{controls:true},o("source",{src:this.fileUrl}));this.renderAudio=()=>o("audio",{controls:true},o("source",{src:this.fileUrl}));this.renderText=()=>[this.renderButtons(),o("object",{data:this.fileUrl,type:"text/plain"})];this.renderOffice=()=>[o("div",{class:"action-menu-for-office-files"},this.renderActionMenu()),o("iframe",{src:this.getOfficeViewerUrl()+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=()=>o("div",{class:"no-support"},o("limel-icon",{class:"icon--warning",name:"brake_warning",size:"large",role:"presentation"}),o("p",null,this.getTranslation("message.unsupported-filetype")),this.renderDownloadButton());this.renderButtons=()=>o("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("exit-fullscreen"):this.getTranslation("open-in-fullscreen");return[o("button",{class:"button--toggle-fullscreen",id:"tooltip-toggle-fullscreen",role:"button",onClick:this.handleToggleFullscreen},o("limel-icon",{name:t}),o("limel-tooltip",{label:e,elementId:"tooltip-toggle-fullscreen",openDirection:"left"}))]};this.renderDownloadButton=()=>{if(!this.allowDownload||this.isFullscreen){return}return o("a",{class:"button--download",id:"tooltip-download",role:"button",download:this.filename?this.filename:"",href:this.fileUrl,target:"_blank"},o("limel-icon",{name:"download_2"}),o("limel-tooltip",{label:this.getTranslation("download"),elementId:"tooltip-download",openDirection:"left"}))};this.renderOpenInNewTabButton=()=>{if(!this.allowOpenInNewTab||this.isFullscreen){return}return o("a",{class:"button--new-tab",id:"tooltip-new-tab",role:"button",href:this.fileUrl,target:"_blank",rel:"noopener noreferrer"},o("limel-icon",{name:"external_link"}),o("limel-tooltip",{label:this.getTranslation("open-in-new-tab"),elementId:"tooltip-new-tab",openDirection:"left"}))};this.renderActionMenu=()=>{if(!this.actions||this.isFullscreen){return}return o("limel-menu",{class:"action-menu",items:this.actions,onSelect:this.emitOnAction,"open-direction":"left"},o("button",{class:"button--action",id:"tooltip-more",role:"button",slot:"trigger"},o("limel-icon",{name:"menu_2"}),o("limel-tooltip",{label:this.getTranslation("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=s(this.filename,this.url);await this.createURL(this.fileType)}render(){if(!this.isOfficeFileAccessibleViaURL){return this.renderNoFileSupportMessage()}if(this.loading){return o("limel-spinner",{size:"x-small",limeBranded:false})}return this.renderFileViewer()}async watchUrl(t,e){if(t===e){return}this.loading=true;this.fileType=s(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()}getTranslation(t){return r.get(`file-viewer.${t}`,this.language)}get HostElement(){return i(this)}static get watchers(){return{url:["watchUrl"]}}};l.style=a;export{l as limel_file_viewer};
|
|
2
|
+
//# sourceMappingURL=p-dd85a0b2.entry.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{_ as n,a as t,M as e,
|
|
1
|
+
import{_ as n,a as t,M as e,e as i,b as r}from"./p-9f722992.js";
|
|
2
2
|
/**
|
|
3
3
|
* @license
|
|
4
4
|
* Copyright 2016 Google Inc.
|
|
@@ -64,5 +64,5 @@ import{_ as n,a as t,M as e,b as i}from"./p-2ff3f85e.js";import{e as r}from"./p-
|
|
|
64
64
|
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
65
65
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
66
66
|
* THE SOFTWARE.
|
|
67
|
-
*/var s=function(t){n(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}e.attachTo=function(n){return new e(n)};e.prototype.shake=function(n){this.foundation.shake(n)};e.prototype.float=function(n){this.foundation.float(n)};e.prototype.setRequired=function(n){this.foundation.setRequired(n)};e.prototype.getWidth=function(){return this.foundation.getWidth()};e.prototype.getDefaultFoundation=function(){var n=this;var t={addClass:function(t){return n.root.classList.add(t)},removeClass:function(t){return n.root.classList.remove(t)},getWidth:function(){return
|
|
68
|
-
//# sourceMappingURL=p-
|
|
67
|
+
*/var s=function(t){n(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}e.attachTo=function(n){return new e(n)};e.prototype.shake=function(n){this.foundation.shake(n)};e.prototype.float=function(n){this.foundation.float(n)};e.prototype.setRequired=function(n){this.foundation.setRequired(n)};e.prototype.getWidth=function(){return this.foundation.getWidth()};e.prototype.getDefaultFoundation=function(){var n=this;var t={addClass:function(t){return n.root.classList.add(t)},removeClass:function(t){return n.root.classList.remove(t)},getWidth:function(){return i(n.root)},registerInteractionHandler:function(t,e){return n.listen(t,e)},deregisterInteractionHandler:function(t,e){return n.unlisten(t,e)}};return new a(t)};return e}(r);export{a as M,s as a};
|
|
68
|
+
//# sourceMappingURL=p-e7281e6a.js.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
const e={remove:"Fjern",save:"Gem",cancel:"Annullér",loading:"Indlæser…","callout.note":"Bemærk","callout.important":"Vigtig","callout.tip":"Tip","callout.caution":"Advarsel","callout.warning":"Advarsel","date-picker.today":"Idag","date-picker.month.heading":"Måned","date-picker.quarter.heading":"Kvartal","date-picker.year.heading":"År","chip-set.clear-all":"Ryd alle","file.drag-and-drop-tips":"Træk & slip filen her, eller klik for at gennemse.","file-viewer.message.unsupported-filetype":"Denne fil kan ikke vises!","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.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","progress-bar":"Fremskridtsindikator"};const i={remove:"Remove",save:"Save",cancel:"Cancel",loading:"Loading…","callout.note":"Note","callout.important":"Important","callout.tip":"Tip","callout.caution":"Caution","callout.warning":"Warning","date-picker.today":"Today","date-picker.month.heading":"Month","date-picker.quarter.heading":"Quarter","date-picker.year.heading":"Year","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 this file!","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.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","progress-bar":"Progress bar"};const t={remove:"Poista",save:"Tallenna",canceL:"Peruuta",loading:"Ladataan…","callout.note":"Huomio","callout.important":"Tärkeää","callout.tip":"Vinkki","callout.caution":"Varoitus","callout.warning":"Varoitus","date-picker.today":"Tänään","date-picker.month.heading":"Kuukausi","date-picker.quarter.heading":"Vuosineljännes","date-picker.year.heading":"Vuosi","chip-set.clear-all":"Tyhjennä kaikki","file.drag-and-drop-tips":"Vedä & pudota tiedostosi tähän, tai napsauta selataksesi.","file-viewer.message.unsupported-filetype":"Tätä tiedostoa ei voi näyttää!","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.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","progress-bar":"Edistymispalkki"};const n={remove:"Verwijder",save:"Opslaan",cancel:"Annuleren",loading:"Laden…","callout.note":"Opmerking","callout.important":"Belangrijk","callout.tip":"Tip","callout.caution":"Waarschuwing","callout.warning":"Waarschuwing","date-picker.today":"Vandaag","date-picker.month.heading":"Maand","date-picker.quarter.heading":"Kwartaal","date-picker.year.heading":"Jaar","chip-set.clear-all":"Alles wissen","file.drag-and-drop-tips":"Sleep & bestand en zet het hier neer of klik om te bladeren.","file-viewer.message.unsupported-filetype":"Kan dit bestand niet weergeven!","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.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","progress-bar":"Voortgangsbalk"};const l={remove:"Fjerne",save:"Lagre",cancel:"Avbryt",loading:"Laster…","callout.note":"Note","callout.important":"Viktig","callout.tip":"Tip","callout.caution":"Advarsel","callout.warning":"Advarsel","date-picker.today":"I dag","date-picker.month.heading":"Måned","date-picker.quarter.heading":"Kvartal","date-picker.year.heading":"År","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 denne filen!","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.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","progress-bar":"Fremdriftsindikator"};const r={remove:"Ta bort",save:"Spara",cancel:"Avbryt",loading:"Laddar…","callout.note":"Obs","callout.important":"Viktigt","callout.tip":"Tips","callout.caution":"Varning","callout.warning":"Varning","date-picker.today":"Idag","date-picker.month.heading":"Månad","date-picker.quarter.heading":"Kvartal","date-picker.year.heading":"År","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 den här filen!","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.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","progress-bar":"Förloppsindikator"};const o={da:e,en:i,fi:t,no:l,nl:n,sv:r};class a{get(e,i="en"){return o[i][e]}}const d=new a;const u=(()=>d)();export{u as t};
|
|
2
|
+
//# sourceMappingURL=p-f63f1114.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["da","remove","save","cancel","loading","en","fi","canceL","nl","no","sv","allTranslations","Translations","get","key","language","translations","translate"],"sources":["./src/translations/da.ts","./src/translations/en.ts","./src/translations/fi.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 'callout.note': 'Bemærk',\n 'callout.important': 'Vigtig',\n 'callout.tip': 'Tip',\n 'callout.caution': 'Advarsel',\n 'callout.warning': 'Advarsel',\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 'chip-set.clear-all': 'Ryd alle',\n 'file.drag-and-drop-tips':\n 'Træk & slip filen her, eller klik for at gennemse.',\n 'file-viewer.message.unsupported-filetype': 'Denne fil kan ikke vises!',\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.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 'progress-bar': 'Fremskridtsindikator',\n};\n","export default {\n remove: 'Remove',\n save: 'Save',\n cancel: 'Cancel',\n loading: 'Loading…',\n 'callout.note': 'Note',\n 'callout.important': 'Important',\n 'callout.tip': 'Tip',\n 'callout.caution': 'Caution',\n 'callout.warning': 'Warning',\n 'date-picker.today': 'Today',\n 'date-picker.month.heading': 'Month',\n 'date-picker.quarter.heading': 'Quarter',\n 'date-picker.year.heading': 'Year',\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': 'Cannot display this file!',\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.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 'progress-bar': 'Progress bar',\n};\n","export default {\n remove: 'Poista',\n save: 'Tallenna',\n canceL: 'Peruuta',\n loading: 'Ladataan…',\n 'callout.note': 'Huomio',\n 'callout.important': 'Tärkeää',\n 'callout.tip': 'Vinkki',\n 'callout.caution': 'Varoitus',\n 'callout.warning': 'Varoitus',\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 'chip-set.clear-all': 'Tyhjennä kaikki',\n 'file.drag-and-drop-tips':\n 'Vedä & pudota tiedostosi tähän, tai napsauta selataksesi.',\n 'file-viewer.message.unsupported-filetype':\n 'Tätä tiedostoa ei voi näyttää!',\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.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 'progress-bar': 'Edistymispalkki',\n};\n","export default {\n remove: 'Verwijder',\n save: 'Opslaan',\n cancel: 'Annuleren',\n loading: 'Laden…',\n 'callout.note': 'Opmerking',\n 'callout.important': 'Belangrijk',\n 'callout.tip': 'Tip',\n 'callout.caution': 'Waarschuwing',\n 'callout.warning': 'Waarschuwing',\n 'date-picker.today': 'Vandaag',\n 'date-picker.month.heading': 'Maand',\n 'date-picker.quarter.heading': 'Kwartaal',\n 'date-picker.year.heading': 'Jaar',\n 'chip-set.clear-all': 'Alles wissen',\n 'file.drag-and-drop-tips':\n 'Sleep & bestand en zet het hier neer of klik om te bladeren.',\n 'file-viewer.message.unsupported-filetype':\n 'Kan dit bestand niet weergeven!',\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.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 'progress-bar': 'Voortgangsbalk',\n};\n","export default {\n remove: 'Fjerne',\n save: 'Lagre',\n cancel: 'Avbryt',\n loading: 'Laster…',\n 'callout.note': 'Note',\n 'callout.important': 'Viktig',\n 'callout.tip': 'Tip',\n 'callout.caution': 'Advarsel',\n 'callout.warning': 'Advarsel',\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 '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': 'Kan ikke vise denne filen!',\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.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 'progress-bar': 'Fremdriftsindikator',\n};\n","export default {\n remove: 'Ta bort',\n save: 'Spara',\n cancel: 'Avbryt',\n loading: 'Laddar…',\n 'callout.note': 'Obs',\n 'callout.important': 'Viktigt',\n 'callout.tip': 'Tips',\n 'callout.caution': 'Varning',\n 'callout.warning': 'Varning',\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 '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': 'Kan inte visa den här filen!',\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.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 'progress-bar': 'Förloppsindikator',\n};\n","import da from '../translations/da';\nimport en from '../translations/en';\nimport fi from '../translations/fi';\nimport nl from '../translations/nl';\nimport no from '../translations/no';\nimport sv from '../translations/sv';\n\nconst allTranslations = { da: da, en: en, fi: fi, no: no, nl: nl, sv: sv };\n\nexport class Translations {\n public get(key, language = 'en') {\n return allTranslations[language][key];\n }\n}\n\nconst translations = new Translations();\nexport default (() => {\n return translations;\n})();\n"],"mappings":"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"}
|
|
@@ -1,9 +1,19 @@
|
|
|
1
|
+
import { Languages } from '../date-picker/date.types';
|
|
1
2
|
/**
|
|
3
|
+
* The linear progress component can be used to visualize the current state of a progress in a scale;
|
|
4
|
+
* for example percentage of completion of a task.
|
|
5
|
+
*
|
|
2
6
|
* @exampleComponent limel-example-linear-progress
|
|
3
|
-
* @exampleComponent limel-example-linear-progress-color
|
|
4
7
|
* @exampleComponent limel-example-linear-progress-indeterminate
|
|
8
|
+
* @exampleComponent limel-example-linear-progress-accessible-label
|
|
9
|
+
* @exampleComponent limel-example-linear-progress-color
|
|
5
10
|
*/
|
|
6
11
|
export declare class LinearProgress {
|
|
12
|
+
/**
|
|
13
|
+
* Defines the language for translations.
|
|
14
|
+
* Will translate the translatable strings on the components.
|
|
15
|
+
*/
|
|
16
|
+
language: Languages;
|
|
7
17
|
/**
|
|
8
18
|
* The value of the progress bar. Should be between `0` and `1`.
|
|
9
19
|
*/
|
|
@@ -12,14 +22,16 @@ export declare class LinearProgress {
|
|
|
12
22
|
* Puts the progress bar in an indeterminate state
|
|
13
23
|
*/
|
|
14
24
|
indeterminate: boolean;
|
|
25
|
+
/**
|
|
26
|
+
* A label used to describe the purpose of the element to users
|
|
27
|
+
* of assistive technologies, like screen readers.
|
|
28
|
+
* If not provided, the generic word of "Progress bar" will be used.
|
|
29
|
+
*/
|
|
30
|
+
accessibleLabel?: string;
|
|
15
31
|
private host;
|
|
16
|
-
private mdcLinearProgress;
|
|
17
|
-
connectedCallback(): void;
|
|
18
|
-
componentDidLoad(): void;
|
|
19
|
-
private initialize;
|
|
20
|
-
disconnectedCallback(): void;
|
|
21
32
|
render(): any;
|
|
22
|
-
protected watchValue(newValue:
|
|
33
|
+
protected watchValue(newValue: number): void;
|
|
34
|
+
private updateProgress;
|
|
23
35
|
private isFinite;
|
|
24
36
|
}
|
|
25
37
|
//# sourceMappingURL=linear-progress.d.ts.map
|
|
@@ -1661,15 +1661,26 @@ export namespace Components {
|
|
|
1661
1661
|
"value": string;
|
|
1662
1662
|
}
|
|
1663
1663
|
/**
|
|
1664
|
+
* The linear progress component can be used to visualize the current state of a progress in a scale;
|
|
1665
|
+
* for example percentage of completion of a task.
|
|
1664
1666
|
* @exampleComponent limel-example-linear-progress
|
|
1665
|
-
* @exampleComponent limel-example-linear-progress-color
|
|
1666
1667
|
* @exampleComponent limel-example-linear-progress-indeterminate
|
|
1668
|
+
* @exampleComponent limel-example-linear-progress-accessible-label
|
|
1669
|
+
* @exampleComponent limel-example-linear-progress-color
|
|
1667
1670
|
*/
|
|
1668
1671
|
interface LimelLinearProgress {
|
|
1672
|
+
/**
|
|
1673
|
+
* A label used to describe the purpose of the element to users of assistive technologies, like screen readers. If not provided, the generic word of "Progress bar" will be used.
|
|
1674
|
+
*/
|
|
1675
|
+
"accessibleLabel"?: string;
|
|
1669
1676
|
/**
|
|
1670
1677
|
* Puts the progress bar in an indeterminate state
|
|
1671
1678
|
*/
|
|
1672
1679
|
"indeterminate": boolean;
|
|
1680
|
+
/**
|
|
1681
|
+
* Defines the language for translations. Will translate the translatable strings on the components.
|
|
1682
|
+
*/
|
|
1683
|
+
"language": Languages;
|
|
1673
1684
|
/**
|
|
1674
1685
|
* The value of the progress bar. Should be between `0` and `1`.
|
|
1675
1686
|
*/
|
|
@@ -3710,9 +3721,12 @@ declare global {
|
|
|
3710
3721
|
new (): HTMLLimelInputFieldElement;
|
|
3711
3722
|
};
|
|
3712
3723
|
/**
|
|
3724
|
+
* The linear progress component can be used to visualize the current state of a progress in a scale;
|
|
3725
|
+
* for example percentage of completion of a task.
|
|
3713
3726
|
* @exampleComponent limel-example-linear-progress
|
|
3714
|
-
* @exampleComponent limel-example-linear-progress-color
|
|
3715
3727
|
* @exampleComponent limel-example-linear-progress-indeterminate
|
|
3728
|
+
* @exampleComponent limel-example-linear-progress-accessible-label
|
|
3729
|
+
* @exampleComponent limel-example-linear-progress-color
|
|
3716
3730
|
*/
|
|
3717
3731
|
interface HTMLLimelLinearProgressElement extends Components.LimelLinearProgress, HTMLStencilElement {
|
|
3718
3732
|
}
|
|
@@ -6030,15 +6044,26 @@ declare namespace LocalJSX {
|
|
|
6030
6044
|
"value"?: string;
|
|
6031
6045
|
}
|
|
6032
6046
|
/**
|
|
6047
|
+
* The linear progress component can be used to visualize the current state of a progress in a scale;
|
|
6048
|
+
* for example percentage of completion of a task.
|
|
6033
6049
|
* @exampleComponent limel-example-linear-progress
|
|
6034
|
-
* @exampleComponent limel-example-linear-progress-color
|
|
6035
6050
|
* @exampleComponent limel-example-linear-progress-indeterminate
|
|
6051
|
+
* @exampleComponent limel-example-linear-progress-accessible-label
|
|
6052
|
+
* @exampleComponent limel-example-linear-progress-color
|
|
6036
6053
|
*/
|
|
6037
6054
|
interface LimelLinearProgress {
|
|
6055
|
+
/**
|
|
6056
|
+
* A label used to describe the purpose of the element to users of assistive technologies, like screen readers. If not provided, the generic word of "Progress bar" will be used.
|
|
6057
|
+
*/
|
|
6058
|
+
"accessibleLabel"?: string;
|
|
6038
6059
|
/**
|
|
6039
6060
|
* Puts the progress bar in an indeterminate state
|
|
6040
6061
|
*/
|
|
6041
6062
|
"indeterminate"?: boolean;
|
|
6063
|
+
/**
|
|
6064
|
+
* Defines the language for translations. Will translate the translatable strings on the components.
|
|
6065
|
+
*/
|
|
6066
|
+
"language"?: Languages;
|
|
6042
6067
|
/**
|
|
6043
6068
|
* The value of the progress bar. Should be between `0` and `1`.
|
|
6044
6069
|
*/
|
|
@@ -7906,9 +7931,12 @@ declare module "@stencil/core" {
|
|
|
7906
7931
|
*/
|
|
7907
7932
|
"limel-input-field": LocalJSX.LimelInputField & JSXBase.HTMLAttributes<HTMLLimelInputFieldElement>;
|
|
7908
7933
|
/**
|
|
7934
|
+
* The linear progress component can be used to visualize the current state of a progress in a scale;
|
|
7935
|
+
* for example percentage of completion of a task.
|
|
7909
7936
|
* @exampleComponent limel-example-linear-progress
|
|
7910
|
-
* @exampleComponent limel-example-linear-progress-color
|
|
7911
7937
|
* @exampleComponent limel-example-linear-progress-indeterminate
|
|
7938
|
+
* @exampleComponent limel-example-linear-progress-accessible-label
|
|
7939
|
+
* @exampleComponent limel-example-linear-progress-color
|
|
7912
7940
|
*/
|
|
7913
7941
|
"limel-linear-progress": LocalJSX.LimelLinearProgress & JSXBase.HTMLAttributes<HTMLLimelLinearProgressElement>;
|
|
7914
7942
|
/**
|
|
@@ -2,6 +2,7 @@ declare const _default: {
|
|
|
2
2
|
remove: string;
|
|
3
3
|
save: string;
|
|
4
4
|
cancel: string;
|
|
5
|
+
loading: string;
|
|
5
6
|
'callout.note': string;
|
|
6
7
|
'callout.important': string;
|
|
7
8
|
'callout.tip': string;
|
|
@@ -32,6 +33,7 @@ declare const _default: {
|
|
|
32
33
|
'editor-link-menu.link': string;
|
|
33
34
|
'editor-menu.code-block': string;
|
|
34
35
|
'editor-menu.code': string;
|
|
36
|
+
'progress-bar': string;
|
|
35
37
|
};
|
|
36
38
|
export default _default;
|
|
37
39
|
//# sourceMappingURL=da.d.ts.map
|
|
@@ -2,6 +2,7 @@ declare const _default: {
|
|
|
2
2
|
remove: string;
|
|
3
3
|
save: string;
|
|
4
4
|
cancel: string;
|
|
5
|
+
loading: string;
|
|
5
6
|
'callout.note': string;
|
|
6
7
|
'callout.important': string;
|
|
7
8
|
'callout.tip': string;
|
|
@@ -33,6 +34,7 @@ declare const _default: {
|
|
|
33
34
|
'editor-link-menu.link': string;
|
|
34
35
|
'editor-menu.code-block': string;
|
|
35
36
|
'editor-menu.code': string;
|
|
37
|
+
'progress-bar': string;
|
|
36
38
|
};
|
|
37
39
|
export default _default;
|
|
38
40
|
//# sourceMappingURL=en.d.ts.map
|
|
@@ -2,6 +2,7 @@ declare const _default: {
|
|
|
2
2
|
remove: string;
|
|
3
3
|
save: string;
|
|
4
4
|
canceL: string;
|
|
5
|
+
loading: string;
|
|
5
6
|
'callout.note': string;
|
|
6
7
|
'callout.important': string;
|
|
7
8
|
'callout.tip': string;
|
|
@@ -32,6 +33,7 @@ declare const _default: {
|
|
|
32
33
|
'editor-link-menu.link': string;
|
|
33
34
|
'editor-menu.code-block': string;
|
|
34
35
|
'editor-menu.code': string;
|
|
36
|
+
'progress-bar': string;
|
|
35
37
|
};
|
|
36
38
|
export default _default;
|
|
37
39
|
//# sourceMappingURL=fi.d.ts.map
|
|
@@ -2,6 +2,7 @@ declare const _default: {
|
|
|
2
2
|
remove: string;
|
|
3
3
|
save: string;
|
|
4
4
|
cancel: string;
|
|
5
|
+
loading: string;
|
|
5
6
|
'callout.note': string;
|
|
6
7
|
'callout.important': string;
|
|
7
8
|
'callout.tip': string;
|
|
@@ -32,6 +33,7 @@ declare const _default: {
|
|
|
32
33
|
'editor-link-menu.link': string;
|
|
33
34
|
'editor-menu.code-block': string;
|
|
34
35
|
'editor-menu.code': string;
|
|
36
|
+
'progress-bar': string;
|
|
35
37
|
};
|
|
36
38
|
export default _default;
|
|
37
39
|
//# sourceMappingURL=nl.d.ts.map
|
|
@@ -2,6 +2,7 @@ declare const _default: {
|
|
|
2
2
|
remove: string;
|
|
3
3
|
save: string;
|
|
4
4
|
cancel: string;
|
|
5
|
+
loading: string;
|
|
5
6
|
'callout.note': string;
|
|
6
7
|
'callout.important': string;
|
|
7
8
|
'callout.tip': string;
|
|
@@ -32,6 +33,7 @@ declare const _default: {
|
|
|
32
33
|
'editor-link-menu.link': string;
|
|
33
34
|
'editor-menu.code-block': string;
|
|
34
35
|
'editor-menu.code': string;
|
|
36
|
+
'progress-bar': string;
|
|
35
37
|
};
|
|
36
38
|
export default _default;
|
|
37
39
|
//# sourceMappingURL=no.d.ts.map
|
|
@@ -2,6 +2,7 @@ declare const _default: {
|
|
|
2
2
|
remove: string;
|
|
3
3
|
save: string;
|
|
4
4
|
cancel: string;
|
|
5
|
+
loading: string;
|
|
5
6
|
'callout.note': string;
|
|
6
7
|
'callout.important': string;
|
|
7
8
|
'callout.tip': string;
|
|
@@ -33,6 +34,7 @@ declare const _default: {
|
|
|
33
34
|
'editor-link-menu.link': string;
|
|
34
35
|
'editor-menu.code-block': string;
|
|
35
36
|
'editor-menu.code': string;
|
|
37
|
+
'progress-bar': string;
|
|
36
38
|
};
|
|
37
39
|
export default _default;
|
|
38
40
|
//# sourceMappingURL=sv.d.ts.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@limetech/lime-elements",
|
|
3
|
-
"version": "37.
|
|
3
|
+
"version": "37.60.1",
|
|
4
4
|
"description": "Lime Elements",
|
|
5
5
|
"author": "Lime Technologies",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -56,7 +56,7 @@
|
|
|
56
56
|
"@types/html-escaper": "^3.0.2",
|
|
57
57
|
"@types/jest": "^27.4.0",
|
|
58
58
|
"@types/lodash-es": "^4.17.12",
|
|
59
|
-
"@types/react": "^18.3.
|
|
59
|
+
"@types/react": "^18.3.7",
|
|
60
60
|
"@types/react-dom": "^18.3.0",
|
|
61
61
|
"@types/tabulator-tables": "^4.9.4",
|
|
62
62
|
"@typescript-eslint/eslint-plugin": "^8.2.0",
|