New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@umbraco-ui/uui-keyboard-shortcut

Package Overview
Dependencies
Maintainers
3
Versions
62
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@umbraco-ui/uui-keyboard-shortcut - npm Package Compare versions

Comparing version

to
0.0.6

2

dist/uui-keyboard-shortcut.min.js

@@ -25,3 +25,3 @@ var Tt=Object.defineProperty,Ut=Object.defineProperties;var Pt=Object.getOwnPropertyDescriptors;var lt=Object.getOwnPropertySymbols;var Nt=Object.prototype.hasOwnProperty,Ht=Object.prototype.propertyIsEnumerable;var ht=(p,$,v)=>$ in p?Tt(p,$,{enumerable:!0,configurable:!0,writable:!0,value:v}):p[$]=v,at=(p,$)=>{for(var v in $||($={}))Nt.call($,v)&&ht(p,v,$[v]);if(lt)for(var v of lt($))Ht.call($,v)&&ht(p,v,$[v]);return p},dt=(p,$)=>Ut(p,Pt($));(function(p){typeof define=="function"&&define.amd?define(p):p()})(function(){"use strict";/**

* SPDX-License-Identifier: BSD-3-Clause
*/function St(n="",t=!1,e=""){return Et({descriptor:s=>({get(){var i,r,o;const a="slot"+(n?`[name=${n}]`:":not([name])");let l=(o=(r=(i=this.renderRoot)===null||i===void 0?void 0:i.querySelector(a))===null||r===void 0?void 0:r.assignedNodes({flatten:t}))!==null&&o!==void 0?o:[];return e&&(l=l.filter(h=>h.nodeType===Node.ELEMENT_NODE&&h.matches(e))),l},enumerable:!0,configurable:!0})})}var wt=Object.defineProperty,Ct=Object.getOwnPropertyDescriptor,xt=(n,t,e,s)=>{for(var i=s>1?void 0:s?Ct(t,e):t,r=n.length-1,o;r>=0;r--)(o=n[r])&&(i=(s?o(t,e,i):o(i))||i);return s&&i&&wt(t,e,i),i};class K extends w{_changeCase(){this.slotNodes!==null&&this.slotNodes.forEach(t=>{var e;t.nodeName==="#text"&&t.nodeValue&&(t.nodeValue=(e=t.nodeValue)==null?void 0:e.toLowerCase())})}render(){return it`<slot @slotchange="${this._changeCase}"></slot>`}}K.styles=[q`:host{background:var(--uui-interface-surface,#fff);border:1px solid var(--uui-interface-border,#d8d7d9);font-family:inherit;font-size:var(--uui-size-small,12px);border-radius:5px;margin:0 5px;padding:5px 7px;box-sizing:border-box;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}`],xt([St()],K.prototype,"slotNodes",2);class ot extends w{render(){return it`<slot></slot>`}}ot.styles=[q`:host{display:inline-block;font-family:inherit;font-size:var(--uui-size-small,12px)}::slotted(:first-child)uui-key{margin-left:0}::slotted(:last-child)uui-key{margin-right:0}`];const rt=(n,t,e)=>{if(n.indexOf("-")>0===!1){console.error(`${n} is not a valid custom element name. A custom element name should consist of at least two words separated by a hyphen.`);return}customElements.get(n)?console.error(`${n} is already defined`):customElements.define(n,t,e)};rt("uui-key",K),rt("uui-keyboard-shortcut",ot)});
*/function St(n="",t=!1,e=""){return Et({descriptor:s=>({get(){var i,r,o;const a="slot"+(n?`[name=${n}]`:":not([name])");let l=(o=(r=(i=this.renderRoot)===null||i===void 0?void 0:i.querySelector(a))===null||r===void 0?void 0:r.assignedNodes({flatten:t}))!==null&&o!==void 0?o:[];return e&&(l=l.filter(h=>h.nodeType===Node.ELEMENT_NODE&&h.matches(e))),l},enumerable:!0,configurable:!0})})}var wt=Object.defineProperty,Ct=Object.getOwnPropertyDescriptor,xt=(n,t,e,s)=>{for(var i=s>1?void 0:s?Ct(t,e):t,r=n.length-1,o;r>=0;r--)(o=n[r])&&(i=(s?o(t,e,i):o(i))||i);return s&&i&&wt(t,e,i),i};class K extends w{_changeCase(){this.slotNodes!==null&&this.slotNodes.forEach(t=>{var e;t.nodeName==="#text"&&t.nodeValue&&(t.nodeValue=(e=t.nodeValue)==null?void 0:e.toLowerCase())})}render(){return it`<slot @slotchange="${this._changeCase}"></slot>`}}K.styles=[q`:host{background:var(--uui-interface-surface,#fff);border:1px solid var(--uui-interface-border,#d8d7d9);font-family:inherit;font-size:var(--uui-size-4,12px);border-radius:5px;margin:0 5px;padding:5px 7px;box-sizing:border-box;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}`],xt([St()],K.prototype,"slotNodes",2);class ot extends w{render(){return it`<slot></slot>`}}ot.styles=[q`:host{display:inline-block;font-family:inherit;font-size:var(--uui-size-4,12px)}::slotted(:first-child)uui-key{margin-left:0}::slotted(:last-child)uui-key{margin-right:0}`];const rt=(n,t,e)=>{if(n.indexOf("-")>0===!1){console.error(`${n} is not a valid custom element name. A custom element name should consist of at least two words separated by a hyphen.`);return}customElements.get(n)?console.error(`${n} is already defined`):customElements.define(n,t,e)};rt("uui-key",K),rt("uui-keyboard-shortcut",ot)});
//# sourceMappingURL=uui-keyboard-shortcut.min.js.map

@@ -36,3 +36,3 @@ import { css, LitElement, html } from 'lit';

font-family: inherit;
font-size: var(--uui-size-small, 12px);
font-size: var(--uui-size-4,12px);
border-radius: 5px;

@@ -63,3 +63,3 @@ margin: 0px 5px;

font-family: inherit;
font-size: var(--uui-size-small,12px);
font-size: var(--uui-size-4,12px);
}

@@ -66,0 +66,0 @@

@@ -13,3 +13,3 @@ import { css, LitElement, html } from 'lit';

font-family: inherit;
font-size: var(--uui-size-small,12px);
font-size: var(--uui-size-4,12px);
}

@@ -16,0 +16,0 @@

{
"name": "@umbraco-ui/uui-keyboard-shortcut",
"version": "0.0.5",
"version": "0.0.6",
"license": "MIT",

@@ -32,3 +32,3 @@ "keywords": [

"dependencies": {
"@umbraco-ui/uui-base": "^0.0.9"
"@umbraco-ui/uui-base": "0.0.10"
},

@@ -43,3 +43,3 @@ "scripts": {

},
"gitHead": "ffb7ad3be3197ddb38f2a2917ffc3d70334d1ce2"
"gitHead": "5fa8aa5ade2a0b35193b05533156dbe10b25df3e"
}
# uui-input
## Usage
## Installation
### ES imports
```zsh

@@ -21,5 +23,17 @@ npm i @umbraco-ui/uui-keyboard-shortcut

## Example
### CDN
The component is available via CDN. This means it can be added to your application without the need of any bundler configuration. Here is how to use it with jsDelivr.
```html
<!-- Latest Version -->
<script src="https://cdn.jsdelivr.net/npm/@umbraco-ui/uui-keyboard-shortcut@latest/dist/uui-keyboard-shortcut.min.js"></script>
<!-- Specific version -->
<script src="https://cdn.jsdelivr.net/npm/@umbraco-ui/uui-keyboard-shortcut@X.X.X/dist/uui-keyboard-shortcut.min.js"></script>
```
## Usage
```html
<uui-keyboard-shortcut>

@@ -26,0 +40,0 @@ <uui-key>ALT</uui-key>

Sorry, the diff of this file is not supported yet