@limetech/lime-elements 36.4.0-next.6 → 36.4.0-next.8
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/dist/cjs/limel-icon.cjs.entry.js +1 -1
- package/dist/cjs/limel-list_2.cjs.entry.js +1 -1
- package/dist/cjs/limel-menu_2.cjs.entry.js +1 -1
- package/dist/cjs/limel-popover_2.cjs.entry.js +1 -1
- package/dist/collection/components/list/list.css +2 -2
- package/dist/collection/components/menu-list/menu-list.css +2 -2
- package/dist/collection/components/popover-surface/popover-surface.css +8 -5
- package/dist/collection/global/icon-cache.js +1 -1
- package/dist/esm/limel-icon.entry.js +1 -1
- package/dist/esm/limel-list_2.entry.js +1 -1
- package/dist/esm/limel-menu_2.entry.js +1 -1
- package/dist/esm/limel-popover_2.entry.js +1 -1
- package/dist/lime-elements/lime-elements.esm.js +1 -1
- package/dist/lime-elements/p-07dd6729.entry.js +1 -0
- package/dist/lime-elements/{p-a030e9ab.entry.js → p-a3acc38f.entry.js} +1 -1
- package/dist/lime-elements/{p-f1d963ec.entry.js → p-b0bfec52.entry.js} +1 -1
- package/dist/types/global/icon-cache.d.ts +1 -1
- package/package.json +5 -5
- package/dist/lime-elements/p-c823809f.entry.js +0 -1
|
@@ -6,7 +6,7 @@ export declare class IconCache {
|
|
|
6
6
|
* Get icon data from the cache
|
|
7
7
|
* @param {string} name name of the icon
|
|
8
8
|
* @param {string} path path on the server where the assets are located
|
|
9
|
-
* @returns {string} svg markup
|
|
9
|
+
* @returns {Promise<string>} svg markup
|
|
10
10
|
*/
|
|
11
11
|
get(name: string, path?: string): Promise<string>;
|
|
12
12
|
private fetchData;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@limetech/lime-elements",
|
|
3
|
-
"version": "36.4.0-next.
|
|
3
|
+
"version": "36.4.0-next.8",
|
|
4
4
|
"description": "Lime Elements",
|
|
5
5
|
"author": "Lime Technologies",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -49,16 +49,16 @@
|
|
|
49
49
|
"@types/html-escaper": "^3.0.0",
|
|
50
50
|
"@types/jest": "^27.4.0",
|
|
51
51
|
"@types/lodash-es": "^4.17.7",
|
|
52
|
-
"@types/react": "^18.2.
|
|
52
|
+
"@types/react": "^18.2.13",
|
|
53
53
|
"@types/tabulator-tables": "^4.9.4",
|
|
54
|
-
"@typescript-eslint/eslint-plugin": "^5.
|
|
55
|
-
"@typescript-eslint/parser": "^5.
|
|
54
|
+
"@typescript-eslint/eslint-plugin": "^5.60.0",
|
|
55
|
+
"@typescript-eslint/parser": "^5.60.0",
|
|
56
56
|
"ajv": "^6.12.6",
|
|
57
57
|
"awesome-debounce-promise": "^2.1.0",
|
|
58
58
|
"codemirror": "^5.65.9",
|
|
59
59
|
"cross-env": "^7.0.3",
|
|
60
60
|
"dayjs": "^1.11.8",
|
|
61
|
-
"eslint": "^8.
|
|
61
|
+
"eslint": "^8.43.0",
|
|
62
62
|
"eslint-config-prettier": "^8.8.0",
|
|
63
63
|
"eslint-plugin-ban": "^1.6.0",
|
|
64
64
|
"eslint-plugin-jsdoc": "^46.2.6",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as e,c as o,h as t,g as r}from"./p-d4e788e1.js";import{c as i}from"./p-6c094f3f.js";import{E as s}from"./p-d7801e00.js";import{z as a}from"./p-7cda574b.js";import"./p-b28128d2.js";import"./p-5fdb83c9.js";import"./p-4c3358cb.js";import"./p-eda23c05.js";import"./p-c93050d6.js";function c(e,o){var t;if(e.contains(o)||(null===(t=e.shadowRoot)||void 0===t?void 0:t.contains(o)))return!0;const r=function(e){const o=e.closest(".limel-portal--container");return o?o.portalSource:e.getRootNode().host}(o);return!!r&&c(e,r)}const p=class{constructor(t){e(this,t),this.close=o(this,"close",7),this.handleGlobalKeyPress=e=>{e.key===s&&(e.stopPropagation(),e.preventDefault(),this.close.emit())},this.open=!1,this.openDirection=void 0,this.portalId=i(),this.globalClickListener=this.globalClickListener.bind(this)}watchOpen(){this.setupGlobalHandlers()}componentWillLoad(){this.setupGlobalHandlers()}setupGlobalHandlers(){this.open?(document.addEventListener("click",this.globalClickListener,{capture:!0}),document.addEventListener("keyup",this.handleGlobalKeyPress)):(document.removeEventListener("click",this.globalClickListener),document.removeEventListener("keyup",this.handleGlobalKeyPress))}render(){const e=this.getCssProperties(),o=getComputedStyle(this.host).getPropertyValue("--popover-z-index");return t("div",{class:"trigger-anchor"},t("slot",{name:"trigger"}),t("limel-portal",{visible:this.open,containerId:this.portalId,containerStyle:{"z-index":o},openDirection:this.openDirection},t("limel-popover-surface",{contentCollection:this.host.children,style:e})))}globalClickListener(e){const o=c(this.host,e.target);this.open&&!o&&(e.stopPropagation(),e.preventDefault(),this.close.emit())}getCssProperties(){const e=["--popover-surface-width","--popover-body-background-color","--popover-border-radius"],o=getComputedStyle(this.host),t=e.map((e=>o.getPropertyValue(e)));return a(e,t)}get host(){return r(this)}static get watchers(){return{open:["watchOpen"]}}};p.style=".trigger-anchor{display:inline-block;position:relative}";const n=class{constructor(o){e(this,o),this.contentCollection=void 0}componentDidLoad(){this.appendElement()}render(){return t("div",{class:"limel-popover-surface",tabindex:"0"})}appendElement(){const e=this.host.shadowRoot.querySelector(".limel-popover-surface");Array.from(this.contentCollection).forEach((o=>{"trigger"!==o.slot&&e.appendChild(o)}))}get host(){return r(this)}};n.style=':host(limel-popover-surface){isolation:isolate}.limel-popover-surface{position:relative;display:flex;flex-direction:column;width:var(--popover-surface-width, auto);max-height:calc(100vh - 2rem);max-width:calc(100vw - 2rem);margin:0 0.25rem;border-radius:var(--popover-border-radius, 0.75rem);box-shadow:var(--shadow-depth-16);backdrop-filter:blur(0.3125rem);-webkit-backdrop-filter:blur(0.3125rem)}.limel-popover-surface:after{transition:opacity 0.4s ease;pointer-events:none;content:"";position:absolute;top:0;right:0;bottom:0;left:0;z-index:-1;opacity:0.75;border-radius:var(--popover-border-radius, 0.75rem);background-color:var(--popover-body-background-color, var(--lime-elevated-surface-background-color))}.limel-popover-surface:focus{outline:none}.limel-popover-surface:focus-visible{outline:none;box-shadow:var(--shadow-depth-8-focused)}.limel-popover-surface:focus:after,.limel-popover-surface:focus-within:after{opacity:1}';export{p as limel_popover,n as limel_popover_surface}
|