@umbraco-ui/uui-action-bar
Advanced tools
Comparing version 0.0.1 to 0.0.2
@@ -1,6 +0,6 @@ | ||
(function(f){typeof define=="function"&&define.amd?define(f):f()})(function(){"use strict";/** | ||
(function(_){typeof define=="function"&&define.amd?define(_):_()})(function(){"use strict";/** | ||
* @license | ||
* Copyright 2019 Google LLC | ||
* SPDX-License-Identifier: BSD-3-Clause | ||
*/const f=window.ShadowRoot&&(window.ShadyCSS===void 0||window.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,M=Symbol(),D=new Map;class V{constructor(t,e){if(this._$cssResult$=!0,e!==M)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t}get styleSheet(){let t=D.get(this.cssText);return f&&t===void 0&&(D.set(this.cssText,t=new CSSStyleSheet),t.replaceSync(this.cssText)),t}toString(){return this.cssText}}const rt=o=>new V(typeof o=="string"?o:o+"",M),j=(o,...t)=>{const e=o.length===1?o[0]:t.reduce((i,s,r)=>i+(n=>{if(n._$cssResult$===!0)return n.cssText;if(typeof n=="number")return n;throw Error("Value passed to 'css' function must be a 'css' function result: "+n+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(s)+o[r+1],o[0]);return new V(e,M)},lt=(o,t)=>{f?o.adoptedStyleSheets=t.map(e=>e instanceof CSSStyleSheet?e:e.styleSheet):t.forEach(e=>{const i=document.createElement("style"),s=window.litNonce;s!==void 0&&i.setAttribute("nonce",s),i.textContent=e.cssText,o.appendChild(i)})},W=f?o=>o:o=>o instanceof CSSStyleSheet?(t=>{let e="";for(const i of t.cssRules)e+=i.cssText;return rt(e)})(o):o;/** | ||
*/const _=window.ShadowRoot&&(window.ShadyCSS===void 0||window.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,M=Symbol(),D=new Map;class V{constructor(t,e){if(this._$cssResult$=!0,e!==M)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t}get styleSheet(){let t=D.get(this.cssText);return _&&t===void 0&&(D.set(this.cssText,t=new CSSStyleSheet),t.replaceSync(this.cssText)),t}toString(){return this.cssText}}const rt=o=>new V(typeof o=="string"?o:o+"",M),j=(o,...t)=>{const e=o.length===1?o[0]:t.reduce((i,s,r)=>i+(n=>{if(n._$cssResult$===!0)return n.cssText;if(typeof n=="number")return n;throw Error("Value passed to 'css' function must be a 'css' function result: "+n+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(s)+o[r+1],o[0]);return new V(e,M)},lt=(o,t)=>{_?o.adoptedStyleSheets=t.map(e=>e instanceof CSSStyleSheet?e:e.styleSheet):t.forEach(e=>{const i=document.createElement("style"),s=window.litNonce;s!==void 0&&i.setAttribute("nonce",s),i.textContent=e.cssText,o.appendChild(i)})},W=_?o=>o:o=>o instanceof CSSStyleSheet?(t=>{let e="";for(const i of t.cssRules)e+=i.cssText;return rt(e)})(o):o;/** | ||
* @license | ||
@@ -13,3 +13,3 @@ * Copyright 2017 Google LLC | ||
* SPDX-License-Identifier: BSD-3-Clause | ||
*/var L;const A=globalThis.trustedTypes,Z=A?A.createPolicy("lit-html",{createHTML:o=>o}):void 0,v=`lit$${(Math.random()+"").slice(9)}$`,G="?"+v,ht=`<${G}>`,b=document,S=(o="")=>b.createComment(o),x=o=>o===null||typeof o!="object"&&typeof o!="function",F=Array.isArray,ut=o=>{var t;return F(o)||typeof((t=o)===null||t===void 0?void 0:t[Symbol.iterator])=="function"},w=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Q=/-->/g,X=/>/g,_=/>|[ \n\r](?:([^\s"'>=/]+)([ \n\r]*=[ \n\r]*(?:[^ \n\r"'`<>=]|("|')|))|$)/g,Y=/'/g,tt=/"/g,et=/^(?:script|style|textarea)$/i,at=o=>(t,...e)=>({_$litType$:o,strings:t,values:e}),ct=at(1),m=Symbol.for("lit-noChange"),c=Symbol.for("lit-nothing"),it=new WeakMap,pt=(o,t,e)=>{var i,s;const r=(i=e==null?void 0:e.renderBefore)!==null&&i!==void 0?i:t;let n=r._$litPart$;if(n===void 0){const u=(s=e==null?void 0:e.renderBefore)!==null&&s!==void 0?s:null;r._$litPart$=n=new U(t.insertBefore(S(),u),u,void 0,e??{})}return n._$AI(o),n},y=b.createTreeWalker(b,129,null,!1),$t=(o,t)=>{const e=o.length-1,i=[];let s,r=t===2?"<svg>":"",n=w;for(let l=0;l<e;l++){const d=o[l];let p,h,a=-1,$=0;for(;$<d.length&&(n.lastIndex=$,h=n.exec(d),h!==null);)$=n.lastIndex,n===w?h[1]==="!--"?n=Q:h[1]!==void 0?n=X:h[2]!==void 0?(et.test(h[2])&&(s=RegExp("</"+h[2],"g")),n=_):h[3]!==void 0&&(n=_):n===_?h[0]===">"?(n=s??w,a=-1):h[1]===void 0?a=-2:(a=n.lastIndex-h[2].length,p=h[1],n=h[3]===void 0?_:h[3]==='"'?tt:Y):n===tt||n===Y?n=_:n===Q||n===X?n=w:(n=_,s=void 0);const H=n===_&&o[l+1].startsWith("/>")?" ":"";r+=n===w?d+ht:a>=0?(i.push(p),d.slice(0,a)+"$lit$"+d.slice(a)+v+H):d+v+(a===-2?(i.push(void 0),l):H)}const u=r+(o[e]||"<?>")+(t===2?"</svg>":"");return[Z!==void 0?Z.createHTML(u):u,i]};class C{constructor({strings:t,_$litType$:e},i){let s;this.parts=[];let r=0,n=0;const u=t.length-1,l=this.parts,[d,p]=$t(t,e);if(this.el=C.createElement(d,i),y.currentNode=this.el.content,e===2){const h=this.el.content,a=h.firstChild;a.remove(),h.append(...a.childNodes)}for(;(s=y.nextNode())!==null&&l.length<u;){if(s.nodeType===1){if(s.hasAttributes()){const h=[];for(const a of s.getAttributeNames())if(a.endsWith("$lit$")||a.startsWith(v)){const $=p[n++];if(h.push(a),$!==void 0){const H=s.getAttribute($.toLowerCase()+"$lit$").split(v),N=/([.?@])?(.*)/.exec($);l.push({type:1,index:r,name:N[2],strings:H,ctor:N[1]==="."?_t:N[1]==="?"?gt:N[1]==="@"?At:T})}else l.push({type:6,index:r})}for(const a of h)s.removeAttribute(a)}if(et.test(s.tagName)){const h=s.textContent.split(v),a=h.length-1;if(a>0){s.textContent=A?A.emptyScript:"";for(let $=0;$<a;$++)s.append(h[$],S()),y.nextNode(),l.push({type:2,index:++r});s.append(h[a],S())}}}else if(s.nodeType===8)if(s.data===G)l.push({type:2,index:r});else{let h=-1;for(;(h=s.data.indexOf(v,h+1))!==-1;)l.push({type:7,index:r}),h+=v.length-1}r++}}static createElement(t,e){const i=b.createElement("template");return i.innerHTML=t,i}}function E(o,t,e=o,i){var s,r,n,u;if(t===m)return t;let l=i!==void 0?(s=e._$Cl)===null||s===void 0?void 0:s[i]:e._$Cu;const d=x(t)?void 0:t._$litDirective$;return(l==null?void 0:l.constructor)!==d&&((r=l==null?void 0:l._$AO)===null||r===void 0||r.call(l,!1),d===void 0?l=void 0:(l=new d(o),l._$AT(o,e,i)),i!==void 0?((n=(u=e)._$Cl)!==null&&n!==void 0?n:u._$Cl=[])[i]=l:e._$Cu=l),l!==void 0&&(t=E(o,l._$AS(o,t.values),l,i)),t}class vt{constructor(t,e){this.v=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}p(t){var e;const{el:{content:i},parts:s}=this._$AD,r=((e=t==null?void 0:t.creationScope)!==null&&e!==void 0?e:b).importNode(i,!0);y.currentNode=r;let n=y.nextNode(),u=0,l=0,d=s[0];for(;d!==void 0;){if(u===d.index){let p;d.type===2?p=new U(n,n.nextSibling,this,t):d.type===1?p=new d.ctor(n,d.name,d.strings,this,t):d.type===6&&(p=new bt(n,this,t)),this.v.push(p),d=s[++l]}u!==(d==null?void 0:d.index)&&(n=y.nextNode(),u++)}return r}m(t){let e=0;for(const i of this.v)i!==void 0&&(i.strings!==void 0?(i._$AI(t,i,e),e+=i.strings.length-2):i._$AI(t[e])),e++}}class U{constructor(t,e,i,s){var r;this.type=2,this._$AH=c,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=i,this.options=s,this._$Cg=(r=s==null?void 0:s.isConnected)===null||r===void 0||r}get _$AU(){var t,e;return(e=(t=this._$AM)===null||t===void 0?void 0:t._$AU)!==null&&e!==void 0?e:this._$Cg}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return e!==void 0&&t.nodeType===11&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=E(this,t,e),x(t)?t===c||t==null||t===""?(this._$AH!==c&&this._$AR(),this._$AH=c):t!==this._$AH&&t!==m&&this.$(t):t._$litType$!==void 0?this.T(t):t.nodeType!==void 0?this.S(t):ut(t)?this.M(t):this.$(t)}A(t,e=this._$AB){return this._$AA.parentNode.insertBefore(t,e)}S(t){this._$AH!==t&&(this._$AR(),this._$AH=this.A(t))}$(t){this._$AH!==c&&x(this._$AH)?this._$AA.nextSibling.data=t:this.S(b.createTextNode(t)),this._$AH=t}T(t){var e;const{values:i,_$litType$:s}=t,r=typeof s=="number"?this._$AC(t):(s.el===void 0&&(s.el=C.createElement(s.h,this.options)),s);if(((e=this._$AH)===null||e===void 0?void 0:e._$AD)===r)this._$AH.m(i);else{const n=new vt(r,this),u=n.p(this.options);n.m(i),this.S(u),this._$AH=n}}_$AC(t){let e=it.get(t.strings);return e===void 0&&it.set(t.strings,e=new C(t)),e}M(t){F(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let i,s=0;for(const r of t)s===e.length?e.push(i=new U(this.A(S()),this.A(S()),this,this.options)):i=e[s],i._$AI(r),s++;s<e.length&&(this._$AR(i&&i._$AB.nextSibling,s),e.length=s)}_$AR(t=this._$AA.nextSibling,e){var i;for((i=this._$AP)===null||i===void 0||i.call(this,!1,!0,e);t&&t!==this._$AB;){const s=t.nextSibling;t.remove(),t=s}}setConnected(t){var e;this._$AM===void 0&&(this._$Cg=t,(e=this._$AP)===null||e===void 0||e.call(this,t))}}class T{constructor(t,e,i,s,r){this.type=1,this._$AH=c,this._$AN=void 0,this.element=t,this.name=e,this._$AM=s,this.options=r,i.length>2||i[0]!==""||i[1]!==""?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=c}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,e=this,i,s){const r=this.strings;let n=!1;if(r===void 0)t=E(this,t,e,0),n=!x(t)||t!==this._$AH&&t!==m,n&&(this._$AH=t);else{const u=t;let l,d;for(t=r[0],l=0;l<r.length-1;l++)d=E(this,u[i+l],e,l),d===m&&(d=this._$AH[l]),n||(n=!x(d)||d!==this._$AH[l]),d===c?t=c:t!==c&&(t+=(d??"")+r[l+1]),this._$AH[l]=d}n&&!s&&this.k(t)}k(t){t===c?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}}class _t extends T{constructor(){super(...arguments),this.type=3}k(t){this.element[this.name]=t===c?void 0:t}}const ft=A?A.emptyScript:"";class gt extends T{constructor(){super(...arguments),this.type=4}k(t){t&&t!==c?this.element.setAttribute(this.name,ft):this.element.removeAttribute(this.name)}}class At extends T{constructor(t,e,i,s,r){super(t,e,i,s,r),this.type=5}_$AI(t,e=this){var i;if((t=(i=E(this,t,e,0))!==null&&i!==void 0?i:c)===m)return;const s=this._$AH,r=t===c&&s!==c||t.capture!==s.capture||t.once!==s.once||t.passive!==s.passive,n=t!==c&&(s===c||r);r&&this.element.removeEventListener(this.name,this,s),n&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var e,i;typeof this._$AH=="function"?this._$AH.call((i=(e=this.options)===null||e===void 0?void 0:e.host)!==null&&i!==void 0?i:this.element,t):this._$AH.handleEvent(t)}}class bt{constructor(t,e,i){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(t){E(this,t)}}const st=window.litHtmlPolyfillSupport;st==null||st(C,U),((L=globalThis.litHtmlVersions)!==null&&L!==void 0?L:globalThis.litHtmlVersions=[]).push("2.0.2");/** | ||
*/var L;const A=globalThis.trustedTypes,Z=A?A.createPolicy("lit-html",{createHTML:o=>o}):void 0,v=`lit$${(Math.random()+"").slice(9)}$`,G="?"+v,ht=`<${G}>`,b=document,S=(o="")=>b.createComment(o),x=o=>o===null||typeof o!="object"&&typeof o!="function",F=Array.isArray,ut=o=>{var t;return F(o)||typeof((t=o)===null||t===void 0?void 0:t[Symbol.iterator])=="function"},w=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Q=/-->/g,X=/>/g,f=/>|[ \n\r](?:([^\s"'>=/]+)([ \n\r]*=[ \n\r]*(?:[^ \n\r"'`<>=]|("|')|))|$)/g,Y=/'/g,tt=/"/g,et=/^(?:script|style|textarea)$/i,at=o=>(t,...e)=>({_$litType$:o,strings:t,values:e}),ct=at(1),m=Symbol.for("lit-noChange"),c=Symbol.for("lit-nothing"),it=new WeakMap,pt=(o,t,e)=>{var i,s;const r=(i=e==null?void 0:e.renderBefore)!==null&&i!==void 0?i:t;let n=r._$litPart$;if(n===void 0){const u=(s=e==null?void 0:e.renderBefore)!==null&&s!==void 0?s:null;r._$litPart$=n=new U(t.insertBefore(S(),u),u,void 0,e!=null?e:{})}return n._$AI(o),n},y=b.createTreeWalker(b,129,null,!1),$t=(o,t)=>{const e=o.length-1,i=[];let s,r=t===2?"<svg>":"",n=w;for(let l=0;l<e;l++){const d=o[l];let p,h,a=-1,$=0;for(;$<d.length&&(n.lastIndex=$,h=n.exec(d),h!==null);)$=n.lastIndex,n===w?h[1]==="!--"?n=Q:h[1]!==void 0?n=X:h[2]!==void 0?(et.test(h[2])&&(s=RegExp("</"+h[2],"g")),n=f):h[3]!==void 0&&(n=f):n===f?h[0]===">"?(n=s!=null?s:w,a=-1):h[1]===void 0?a=-2:(a=n.lastIndex-h[2].length,p=h[1],n=h[3]===void 0?f:h[3]==='"'?tt:Y):n===tt||n===Y?n=f:n===Q||n===X?n=w:(n=f,s=void 0);const H=n===f&&o[l+1].startsWith("/>")?" ":"";r+=n===w?d+ht:a>=0?(i.push(p),d.slice(0,a)+"$lit$"+d.slice(a)+v+H):d+v+(a===-2?(i.push(void 0),l):H)}const u=r+(o[e]||"<?>")+(t===2?"</svg>":"");return[Z!==void 0?Z.createHTML(u):u,i]};class C{constructor({strings:t,_$litType$:e},i){let s;this.parts=[];let r=0,n=0;const u=t.length-1,l=this.parts,[d,p]=$t(t,e);if(this.el=C.createElement(d,i),y.currentNode=this.el.content,e===2){const h=this.el.content,a=h.firstChild;a.remove(),h.append(...a.childNodes)}for(;(s=y.nextNode())!==null&&l.length<u;){if(s.nodeType===1){if(s.hasAttributes()){const h=[];for(const a of s.getAttributeNames())if(a.endsWith("$lit$")||a.startsWith(v)){const $=p[n++];if(h.push(a),$!==void 0){const H=s.getAttribute($.toLowerCase()+"$lit$").split(v),N=/([.?@])?(.*)/.exec($);l.push({type:1,index:r,name:N[2],strings:H,ctor:N[1]==="."?ft:N[1]==="?"?gt:N[1]==="@"?At:T})}else l.push({type:6,index:r})}for(const a of h)s.removeAttribute(a)}if(et.test(s.tagName)){const h=s.textContent.split(v),a=h.length-1;if(a>0){s.textContent=A?A.emptyScript:"";for(let $=0;$<a;$++)s.append(h[$],S()),y.nextNode(),l.push({type:2,index:++r});s.append(h[a],S())}}}else if(s.nodeType===8)if(s.data===G)l.push({type:2,index:r});else{let h=-1;for(;(h=s.data.indexOf(v,h+1))!==-1;)l.push({type:7,index:r}),h+=v.length-1}r++}}static createElement(t,e){const i=b.createElement("template");return i.innerHTML=t,i}}function E(o,t,e=o,i){var s,r,n,u;if(t===m)return t;let l=i!==void 0?(s=e._$Cl)===null||s===void 0?void 0:s[i]:e._$Cu;const d=x(t)?void 0:t._$litDirective$;return(l==null?void 0:l.constructor)!==d&&((r=l==null?void 0:l._$AO)===null||r===void 0||r.call(l,!1),d===void 0?l=void 0:(l=new d(o),l._$AT(o,e,i)),i!==void 0?((n=(u=e)._$Cl)!==null&&n!==void 0?n:u._$Cl=[])[i]=l:e._$Cu=l),l!==void 0&&(t=E(o,l._$AS(o,t.values),l,i)),t}class vt{constructor(t,e){this.v=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}p(t){var e;const{el:{content:i},parts:s}=this._$AD,r=((e=t==null?void 0:t.creationScope)!==null&&e!==void 0?e:b).importNode(i,!0);y.currentNode=r;let n=y.nextNode(),u=0,l=0,d=s[0];for(;d!==void 0;){if(u===d.index){let p;d.type===2?p=new U(n,n.nextSibling,this,t):d.type===1?p=new d.ctor(n,d.name,d.strings,this,t):d.type===6&&(p=new bt(n,this,t)),this.v.push(p),d=s[++l]}u!==(d==null?void 0:d.index)&&(n=y.nextNode(),u++)}return r}m(t){let e=0;for(const i of this.v)i!==void 0&&(i.strings!==void 0?(i._$AI(t,i,e),e+=i.strings.length-2):i._$AI(t[e])),e++}}class U{constructor(t,e,i,s){var r;this.type=2,this._$AH=c,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=i,this.options=s,this._$Cg=(r=s==null?void 0:s.isConnected)===null||r===void 0||r}get _$AU(){var t,e;return(e=(t=this._$AM)===null||t===void 0?void 0:t._$AU)!==null&&e!==void 0?e:this._$Cg}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return e!==void 0&&t.nodeType===11&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=E(this,t,e),x(t)?t===c||t==null||t===""?(this._$AH!==c&&this._$AR(),this._$AH=c):t!==this._$AH&&t!==m&&this.$(t):t._$litType$!==void 0?this.T(t):t.nodeType!==void 0?this.S(t):ut(t)?this.M(t):this.$(t)}A(t,e=this._$AB){return this._$AA.parentNode.insertBefore(t,e)}S(t){this._$AH!==t&&(this._$AR(),this._$AH=this.A(t))}$(t){this._$AH!==c&&x(this._$AH)?this._$AA.nextSibling.data=t:this.S(b.createTextNode(t)),this._$AH=t}T(t){var e;const{values:i,_$litType$:s}=t,r=typeof s=="number"?this._$AC(t):(s.el===void 0&&(s.el=C.createElement(s.h,this.options)),s);if(((e=this._$AH)===null||e===void 0?void 0:e._$AD)===r)this._$AH.m(i);else{const n=new vt(r,this),u=n.p(this.options);n.m(i),this.S(u),this._$AH=n}}_$AC(t){let e=it.get(t.strings);return e===void 0&&it.set(t.strings,e=new C(t)),e}M(t){F(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let i,s=0;for(const r of t)s===e.length?e.push(i=new U(this.A(S()),this.A(S()),this,this.options)):i=e[s],i._$AI(r),s++;s<e.length&&(this._$AR(i&&i._$AB.nextSibling,s),e.length=s)}_$AR(t=this._$AA.nextSibling,e){var i;for((i=this._$AP)===null||i===void 0||i.call(this,!1,!0,e);t&&t!==this._$AB;){const s=t.nextSibling;t.remove(),t=s}}setConnected(t){var e;this._$AM===void 0&&(this._$Cg=t,(e=this._$AP)===null||e===void 0||e.call(this,t))}}class T{constructor(t,e,i,s,r){this.type=1,this._$AH=c,this._$AN=void 0,this.element=t,this.name=e,this._$AM=s,this.options=r,i.length>2||i[0]!==""||i[1]!==""?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=c}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,e=this,i,s){const r=this.strings;let n=!1;if(r===void 0)t=E(this,t,e,0),n=!x(t)||t!==this._$AH&&t!==m,n&&(this._$AH=t);else{const u=t;let l,d;for(t=r[0],l=0;l<r.length-1;l++)d=E(this,u[i+l],e,l),d===m&&(d=this._$AH[l]),n||(n=!x(d)||d!==this._$AH[l]),d===c?t=c:t!==c&&(t+=(d!=null?d:"")+r[l+1]),this._$AH[l]=d}n&&!s&&this.k(t)}k(t){t===c?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t!=null?t:"")}}class ft extends T{constructor(){super(...arguments),this.type=3}k(t){this.element[this.name]=t===c?void 0:t}}const _t=A?A.emptyScript:"";class gt extends T{constructor(){super(...arguments),this.type=4}k(t){t&&t!==c?this.element.setAttribute(this.name,_t):this.element.removeAttribute(this.name)}}class At extends T{constructor(t,e,i,s,r){super(t,e,i,s,r),this.type=5}_$AI(t,e=this){var i;if((t=(i=E(this,t,e,0))!==null&&i!==void 0?i:c)===m)return;const s=this._$AH,r=t===c&&s!==c||t.capture!==s.capture||t.once!==s.once||t.passive!==s.passive,n=t!==c&&(s===c||r);r&&this.element.removeEventListener(this.name,this,s),n&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var e,i;typeof this._$AH=="function"?this._$AH.call((i=(e=this.options)===null||e===void 0?void 0:e.host)!==null&&i!==void 0?i:this.element,t):this._$AH.handleEvent(t)}}class bt{constructor(t,e,i){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(t){E(this,t)}}const st=window.litHtmlPolyfillSupport;st==null||st(C,U),((L=globalThis.litHtmlVersions)!==null&&L!==void 0?L:globalThis.litHtmlVersions=[]).push("2.0.2");/** | ||
* @license | ||
@@ -20,3 +20,3 @@ * Copyright 2017 Google LLC | ||
--uui-border-radius,3px | ||
) 0 0 var(--uui-border-radius,3px)}::slotted(uui-dropdown:last-child){--uui-dropdown-toggle-slot-button-border-radius:0 var(--uui-border-radius,3px) var(--uui-border-radius,3px) 0}::slotted(:hover){z-index:1}`];class nt extends I{}nt.styles=[...I.styles,j`::slotted(*){--uui-button-slot-padding-r-factor:0.5;--uui-button-slot-padding-l-factor:0.5}::slotted(uui-button:first-child){--uui-button-border-radius:50px 0 0 50px;--uui-button-slot-padding-l-factor:1.5}::slotted(uui-button:last-child){--uui-button-border-radius:0 50px 50px 0;--uui-button-slot-padding-r-factor:1.5}::slotted(uui-button:first-child:last-child){--uui-button-border-radius:50px 50px 50px 50px;--uui-button-slot-padding-l-factor:1;--uui-button-slot-padding-r-factor:1}::slotted([look=outline]),::slotted([look=placeholder]){--uui-button-slot-padding-r-factor:1;--uui-button-slot-padding-l-factor:1}::slotted(uui-button[look=outline]:first-child),::slotted(uui-button[look=placeholder]:first-child){--uui-button-border-radius:50px 0 0 50px;--uui-button-slot-padding-l-factor:1.5}::slotted(uui-button[look=outline]:last-child),::slotted(uui-button[look=placeholder]:last-child){--uui-button-border-radius:0 50px 50px 0;--uui-button-slot-padding-r-factor:1.5}::slotted(uui-button[look=outline]:first-child:last-child),::slotted(uui-button[look=placeholder]:first-child:last-child){--uui-button-border-radius:50px 50px 50px 50px;--uui-button-slot-padding-l-factor:1.5;--uui-button-slot-padding-r-factor:1.5}`],((o,t,e)=>{if(o.indexOf("-")>0===!1){console.error(`${o} 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(o)?console.error(`${o} is already defined`):customElements.define(o,t,e)})("uui-action-bar",nt)}); | ||
) 0 0 var(--uui-border-radius,3px)}::slotted(uui-dropdown:last-child){--uui-dropdown-toggle-slot-button-border-radius:0 var(--uui-border-radius,3px) var(--uui-border-radius,3px) 0}::slotted(:hover){z-index:1}`];class nt extends I{}nt.styles=[...I.styles,j`::slotted(*){--uui-button-padding-left-factor:0.5;--uui-button-padding-right-factor:0.5}::slotted(uui-button:first-child){--uui-button-border-radius:50px 0 0 50px;--uui-button-padding-left-factor:2}::slotted(uui-button:last-child){--uui-button-border-radius:0 50px 50px 0;--uui-button-padding-right-factor:2}::slotted(uui-button:first-child:last-child){--uui-button-border-radius:50px 50px 50px 50px;--uui-button-padding-left-factor:2;--uui-button-padding-right-factor:2}::slotted([look=outline]),::slotted([look=placeholder]){--uui-button-padding-left-factor:1;--uui-button-padding-right-factor:1}::slotted(uui-button[look=outline]:first-child),::slotted(uui-button[look=placeholder]:first-child){--uui-button-border-radius:50px 0 0 50px;--uui-button-padding-left-factor:1.5}::slotted(uui-button[look=outline]:last-child),::slotted(uui-button[look=placeholder]:last-child){--uui-button-border-radius:0 50px 50px 0;--uui-button-padding-right-factor:1.5}::slotted(uui-button[look=outline]:first-child:last-child),::slotted(uui-button[look=placeholder]:first-child:last-child){--uui-button-border-radius:50px 50px 50px 50px;--uui-button-padding-left-factor:1.5;--uui-button-padding-right-factor:1.5}`],((o,t,e)=>{if(o.indexOf("-")>0===!1){console.error(`${o} 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(o)?console.error(`${o} is already defined`):customElements.define(o,t,e)})("uui-action-bar",nt)}); | ||
//# sourceMappingURL=uui-action-bar.min.js.map |
@@ -11,4 +11,4 @@ import { css } from 'lit'; | ||
::slotted(*) { | ||
--uui-button-slot-padding-r-factor: 0.5; | ||
--uui-button-slot-padding-l-factor: 0.5; | ||
--uui-button-padding-left-factor: 0.5; | ||
--uui-button-padding-right-factor: 0.5; | ||
} | ||
@@ -18,12 +18,12 @@ | ||
--uui-button-border-radius: 50px 0 0 50px; | ||
--uui-button-slot-padding-l-factor: 1.5; | ||
--uui-button-padding-left-factor: 2; | ||
} | ||
::slotted(uui-button:last-child) { | ||
--uui-button-border-radius: 0 50px 50px 0; | ||
--uui-button-slot-padding-r-factor: 1.5; | ||
--uui-button-padding-right-factor: 2; | ||
} | ||
::slotted(uui-button:first-child:last-child) { | ||
--uui-button-border-radius: 50px 50px 50px 50px; | ||
--uui-button-slot-padding-l-factor: 1; | ||
--uui-button-slot-padding-r-factor: 1; | ||
--uui-button-padding-left-factor: 2; | ||
--uui-button-padding-right-factor: 2; | ||
} | ||
@@ -33,4 +33,4 @@ | ||
::slotted([look='placeholder']) { | ||
--uui-button-slot-padding-r-factor: 1; | ||
--uui-button-slot-padding-l-factor: 1; | ||
--uui-button-padding-left-factor: 1; | ||
--uui-button-padding-right-factor: 1; | ||
} | ||
@@ -41,3 +41,3 @@ | ||
--uui-button-border-radius: 50px 0 0 50px; | ||
--uui-button-slot-padding-l-factor: 1.5; | ||
--uui-button-padding-left-factor: 1.5; | ||
} | ||
@@ -47,3 +47,3 @@ ::slotted(uui-button[look='outline']:last-child), | ||
--uui-button-border-radius: 0 50px 50px 0; | ||
--uui-button-slot-padding-r-factor: 1.5; | ||
--uui-button-padding-right-factor: 1.5; | ||
} | ||
@@ -53,4 +53,4 @@ ::slotted(uui-button[look='outline']:first-child:last-child), | ||
--uui-button-border-radius: 50px 50px 50px 50px; | ||
--uui-button-slot-padding-l-factor: 1.5; | ||
--uui-button-slot-padding-r-factor: 1.5; | ||
--uui-button-padding-left-factor: 1.5; | ||
--uui-button-padding-right-factor: 1.5; | ||
} | ||
@@ -57,0 +57,0 @@ ` |
@@ -10,4 +10,4 @@ import { css } from 'lit'; | ||
::slotted(*) { | ||
--uui-button-slot-padding-r-factor: 0.5; | ||
--uui-button-slot-padding-l-factor: 0.5; | ||
--uui-button-padding-left-factor: 0.5; | ||
--uui-button-padding-right-factor: 0.5; | ||
} | ||
@@ -17,12 +17,12 @@ | ||
--uui-button-border-radius: 50px 0 0 50px; | ||
--uui-button-slot-padding-l-factor: 1.5; | ||
--uui-button-padding-left-factor: 2; | ||
} | ||
::slotted(uui-button:last-child) { | ||
--uui-button-border-radius: 0 50px 50px 0; | ||
--uui-button-slot-padding-r-factor: 1.5; | ||
--uui-button-padding-right-factor: 2; | ||
} | ||
::slotted(uui-button:first-child:last-child) { | ||
--uui-button-border-radius: 50px 50px 50px 50px; | ||
--uui-button-slot-padding-l-factor: 1; | ||
--uui-button-slot-padding-r-factor: 1; | ||
--uui-button-padding-left-factor: 2; | ||
--uui-button-padding-right-factor: 2; | ||
} | ||
@@ -32,4 +32,4 @@ | ||
::slotted([look='placeholder']) { | ||
--uui-button-slot-padding-r-factor: 1; | ||
--uui-button-slot-padding-l-factor: 1; | ||
--uui-button-padding-left-factor: 1; | ||
--uui-button-padding-right-factor: 1; | ||
} | ||
@@ -40,3 +40,3 @@ | ||
--uui-button-border-radius: 50px 0 0 50px; | ||
--uui-button-slot-padding-l-factor: 1.5; | ||
--uui-button-padding-left-factor: 1.5; | ||
} | ||
@@ -46,3 +46,3 @@ ::slotted(uui-button[look='outline']:last-child), | ||
--uui-button-border-radius: 0 50px 50px 0; | ||
--uui-button-slot-padding-r-factor: 1.5; | ||
--uui-button-padding-right-factor: 1.5; | ||
} | ||
@@ -52,4 +52,4 @@ ::slotted(uui-button[look='outline']:first-child:last-child), | ||
--uui-button-border-radius: 50px 50px 50px 50px; | ||
--uui-button-slot-padding-l-factor: 1.5; | ||
--uui-button-slot-padding-r-factor: 1.5; | ||
--uui-button-padding-left-factor: 1.5; | ||
--uui-button-padding-right-factor: 1.5; | ||
} | ||
@@ -56,0 +56,0 @@ ` |
{ | ||
"name": "@umbraco-ui/uui-action-bar", | ||
"version": "0.0.1", | ||
"version": "0.0.2", | ||
"license": "MIT", | ||
@@ -32,4 +32,4 @@ "keywords": [ | ||
"dependencies": { | ||
"@umbraco-ui/uui-base": "0.0.13", | ||
"@umbraco-ui/uui-button-group": "0.0.8" | ||
"@umbraco-ui/uui-base": "0.0.14", | ||
"@umbraco-ui/uui-button-group": "0.0.9" | ||
}, | ||
@@ -45,3 +45,3 @@ "scripts": { | ||
"homepage": "https://uui.umbraco.com/?path=/story/uui-action-bar", | ||
"gitHead": "fa4be54d3e80b0a6e14070b2881799dc56df089f" | ||
"gitHead": "27d48bb352dcac2b08d55958ecba92b28c11d957" | ||
} |
Sorry, the diff of this file is not supported yet
65581
+ Added@umbraco-ui/uui-base@0.0.14(transitive)
+ Added@umbraco-ui/uui-button-group@0.0.9(transitive)
- Removed@umbraco-ui/uui-base@0.0.13(transitive)
- Removed@umbraco-ui/uui-button-group@0.0.8(transitive)
Updated@umbraco-ui/uui-base@0.0.14