@nuralyui/button 0.0.16 → 0.0.18
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/bundle.js +43 -93
- package/package.json +1 -1
package/bundle.js
CHANGED
|
@@ -1,54 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
* @license
|
|
3
|
-
* Copyright 2019 Google LLC
|
|
4
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
5
|
-
*/
|
|
6
|
-
const t=window,o=t.ShadowRoot&&(void 0===t.ShadyCSS||t.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,e=Symbol(),i=new WeakMap;class r{constructor(t,o,i){if(this._$cssResult$=!0,i!==e)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=o}get styleSheet(){let t=this.o;const e=this.t;if(o&&void 0===t){const o=void 0!==e&&1===e.length;o&&(t=i.get(e)),void 0===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),o&&i.set(e,t))}return t}toString(){return this.cssText}}const n=o?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let o="";for(const e of t.cssRules)o+=e.cssText;return(t=>new r("string"==typeof t?t:t+"",void 0,e))(o)})(t):t
|
|
7
|
-
/**
|
|
8
|
-
* @license
|
|
9
|
-
* Copyright 2017 Google LLC
|
|
10
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
11
|
-
*/;var s;const a=window,l=a.trustedTypes,c=l?l.emptyScript:"",h=a.reactiveElementPolyfillSupport,d={toAttribute(t,o){switch(o){case Boolean:t=t?c:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t)}return t},fromAttribute(t,o){let e=t;switch(o){case Boolean:e=null!==t;break;case Number:e=null===t?null:Number(t);break;case Object:case Array:try{e=JSON.parse(t)}catch(t){e=null}}return e}},u=(t,o)=>o!==t&&(o==o||t==t),v={attribute:!0,type:String,converter:d,reflect:!1,hasChanged:u},b="finalized";class p extends HTMLElement{constructor(){super(),this._$Ei=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$El=null,this._$Eu()}static addInitializer(t){var o;this.finalize(),(null!==(o=this.h)&&void 0!==o?o:this.h=[]).push(t)}static get observedAttributes(){this.finalize();const t=[];return this.elementProperties.forEach(((o,e)=>{const i=this._$Ep(e,o);void 0!==i&&(this._$Ev.set(i,e),t.push(i))})),t}static createProperty(t,o=v){if(o.state&&(o.attribute=!1),this.finalize(),this.elementProperties.set(t,o),!o.noAccessor&&!this.prototype.hasOwnProperty(t)){const e="symbol"==typeof t?Symbol():"__"+t,i=this.getPropertyDescriptor(t,e,o);void 0!==i&&Object.defineProperty(this.prototype,t,i)}}static getPropertyDescriptor(t,o,e){return{get(){return this[o]},set(i){const r=this[t];this[o]=i,this.requestUpdate(t,r,e)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)||v}static finalize(){if(this.hasOwnProperty(b))return!1;this[b]=!0;const t=Object.getPrototypeOf(this);if(t.finalize(),void 0!==t.h&&(this.h=[...t.h]),this.elementProperties=new Map(t.elementProperties),this._$Ev=new Map,this.hasOwnProperty("properties")){const t=this.properties,o=[...Object.getOwnPropertyNames(t),...Object.getOwnPropertySymbols(t)];for(const e of o)this.createProperty(e,t[e])}return this.elementStyles=this.finalizeStyles(this.styles),!0}static finalizeStyles(t){const o=[];if(Array.isArray(t)){const e=new Set(t.flat(1/0).reverse());for(const t of e)o.unshift(n(t))}else void 0!==t&&o.push(n(t));return o}static _$Ep(t,o){const e=o.attribute;return!1===e?void 0:"string"==typeof e?e:"string"==typeof t?t.toLowerCase():void 0}_$Eu(){var t;this._$E_=new Promise((t=>this.enableUpdating=t)),this._$AL=new Map,this._$Eg(),this.requestUpdate(),null===(t=this.constructor.h)||void 0===t||t.forEach((t=>t(this)))}addController(t){var o,e;(null!==(o=this._$ES)&&void 0!==o?o:this._$ES=[]).push(t),void 0!==this.renderRoot&&this.isConnected&&(null===(e=t.hostConnected)||void 0===e||e.call(t))}removeController(t){var o;null===(o=this._$ES)||void 0===o||o.splice(this._$ES.indexOf(t)>>>0,1)}_$Eg(){this.constructor.elementProperties.forEach(((t,o)=>{this.hasOwnProperty(o)&&(this._$Ei.set(o,this[o]),delete this[o])}))}createRenderRoot(){var e;const i=null!==(e=this.shadowRoot)&&void 0!==e?e:this.attachShadow(this.constructor.shadowRootOptions);return((e,i)=>{o?e.adoptedStyleSheets=i.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet)):i.forEach((o=>{const i=document.createElement("style"),r=t.litNonce;void 0!==r&&i.setAttribute("nonce",r),i.textContent=o.cssText,e.appendChild(i)}))})(i,this.constructor.elementStyles),i}connectedCallback(){var t;void 0===this.renderRoot&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),null===(t=this._$ES)||void 0===t||t.forEach((t=>{var o;return null===(o=t.hostConnected)||void 0===o?void 0:o.call(t)}))}enableUpdating(t){}disconnectedCallback(){var t;null===(t=this._$ES)||void 0===t||t.forEach((t=>{var o;return null===(o=t.hostDisconnected)||void 0===o?void 0:o.call(t)}))}attributeChangedCallback(t,o,e){this._$AK(t,e)}_$EO(t,o,e=v){var i;const r=this.constructor._$Ep(t,e);if(void 0!==r&&!0===e.reflect){const n=(void 0!==(null===(i=e.converter)||void 0===i?void 0:i.toAttribute)?e.converter:d).toAttribute(o,e.type);this._$El=t,null==n?this.removeAttribute(r):this.setAttribute(r,n),this._$El=null}}_$AK(t,o){var e;const i=this.constructor,r=i._$Ev.get(t);if(void 0!==r&&this._$El!==r){const t=i.getPropertyOptions(r),n="function"==typeof t.converter?{fromAttribute:t.converter}:void 0!==(null===(e=t.converter)||void 0===e?void 0:e.fromAttribute)?t.converter:d;this._$El=r,this[r]=n.fromAttribute(o,t.type),this._$El=null}}requestUpdate(t,o,e){let i=!0;void 0!==t&&(((e=e||this.constructor.getPropertyOptions(t)).hasChanged||u)(this[t],o)?(this._$AL.has(t)||this._$AL.set(t,o),!0===e.reflect&&this._$El!==t&&(void 0===this._$EC&&(this._$EC=new Map),this._$EC.set(t,e))):i=!1),!this.isUpdatePending&&i&&(this._$E_=this._$Ej())}async _$Ej(){this.isUpdatePending=!0;try{await this._$E_}catch(t){Promise.reject(t)}const t=this.scheduleUpdate();return null!=t&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var t;if(!this.isUpdatePending)return;this.hasUpdated,this._$Ei&&(this._$Ei.forEach(((t,o)=>this[o]=t)),this._$Ei=void 0);let o=!1;const e=this._$AL;try{o=this.shouldUpdate(e),o?(this.willUpdate(e),null===(t=this._$ES)||void 0===t||t.forEach((t=>{var o;return null===(o=t.hostUpdate)||void 0===o?void 0:o.call(t)})),this.update(e)):this._$Ek()}catch(t){throw o=!1,this._$Ek(),t}o&&this._$AE(e)}willUpdate(t){}_$AE(t){var o;null===(o=this._$ES)||void 0===o||o.forEach((t=>{var o;return null===(o=t.hostUpdated)||void 0===o?void 0:o.call(t)})),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$Ek(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$E_}shouldUpdate(t){return!0}update(t){void 0!==this._$EC&&(this._$EC.forEach(((t,o)=>this._$EO(o,this[o],t))),this._$EC=void 0),this._$Ek()}updated(t){}firstUpdated(t){}}
|
|
12
|
-
/**
|
|
13
|
-
* @license
|
|
14
|
-
* Copyright 2017 Google LLC
|
|
15
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
16
|
-
*/
|
|
17
|
-
var y;p[b]=!0,p.elementProperties=new Map,p.elementStyles=[],p.shadowRootOptions={mode:"open"},null==h||h({ReactiveElement:p}),(null!==(s=a.reactiveElementVersions)&&void 0!==s?s:a.reactiveElementVersions=[]).push("1.6.3");const f=window,g=f.trustedTypes,m=g?g.createPolicy("lit-html",{createHTML:t=>t}):void 0,w="$lit$",x=`lit$${(Math.random()+"").slice(9)}$`,$="?"+x,k=`<${$}>`,S=document,E=()=>S.createComment(""),A=t=>null===t||"object"!=typeof t&&"function"!=typeof t,C=Array.isArray,z="[ \t\n\f\r]",R=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,_=/-->/g,j=/>/g,T=RegExp(`>|${z}(?:([^\\s"'>=/]+)(${z}*=${z}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),D=/'/g,O=/"/g,I=/^(?:script|style|textarea|title)$/i,U=Symbol.for("lit-noChange"),M=Symbol.for("lit-nothing"),N=new WeakMap,B=S.createTreeWalker(S,129,null,!1);function L(t,o){if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==m?m.createHTML(o):o}class P{constructor({strings:t,_$litType$:o},e){let i;this.parts=[];let r=0,n=0;const s=t.length-1,a=this.parts,[l,c]=((t,o)=>{const e=t.length-1,i=[];let r,n=2===o?"<svg>":"",s=R;for(let o=0;o<e;o++){const e=t[o];let a,l,c=-1,h=0;for(;h<e.length&&(s.lastIndex=h,l=s.exec(e),null!==l);)h=s.lastIndex,s===R?"!--"===l[1]?s=_:void 0!==l[1]?s=j:void 0!==l[2]?(I.test(l[2])&&(r=RegExp("</"+l[2],"g")),s=T):void 0!==l[3]&&(s=T):s===T?">"===l[0]?(s=null!=r?r:R,c=-1):void 0===l[1]?c=-2:(c=s.lastIndex-l[2].length,a=l[1],s=void 0===l[3]?T:'"'===l[3]?O:D):s===O||s===D?s=T:s===_||s===j?s=R:(s=T,r=void 0);const d=s===T&&t[o+1].startsWith("/>")?" ":"";n+=s===R?e+k:c>=0?(i.push(a),e.slice(0,c)+w+e.slice(c)+x+d):e+x+(-2===c?(i.push(void 0),o):d)}return[L(t,n+(t[e]||"<?>")+(2===o?"</svg>":"")),i]})(t,o);if(this.el=P.createElement(l,e),B.currentNode=this.el.content,2===o){const t=this.el.content,o=t.firstChild;o.remove(),t.append(...o.childNodes)}for(;null!==(i=B.nextNode())&&a.length<s;){if(1===i.nodeType){if(i.hasAttributes()){const t=[];for(const o of i.getAttributeNames())if(o.endsWith(w)||o.startsWith(x)){const e=c[n++];if(t.push(o),void 0!==e){const t=i.getAttribute(e.toLowerCase()+w).split(x),o=/([.?@])?(.*)/.exec(e);a.push({type:1,index:r,name:o[2],strings:t,ctor:"."===o[1]?V:"?"===o[1]?Z:"@"===o[1]?G:H})}else a.push({type:6,index:r})}for(const o of t)i.removeAttribute(o)}if(I.test(i.tagName)){const t=i.textContent.split(x),o=t.length-1;if(o>0){i.textContent=g?g.emptyScript:"";for(let e=0;e<o;e++)i.append(t[e],E()),B.nextNode(),a.push({type:2,index:++r});i.append(t[o],E())}}}else if(8===i.nodeType)if(i.data===$)a.push({type:2,index:r});else{let t=-1;for(;-1!==(t=i.data.indexOf(x,t+1));)a.push({type:7,index:r}),t+=x.length-1}r++}}static createElement(t,o){const e=S.createElement("template");return e.innerHTML=t,e}}function K(t,o,e=t,i){var r,n,s,a;if(o===U)return o;let l=void 0!==i?null===(r=e._$Co)||void 0===r?void 0:r[i]:e._$Cl;const c=A(o)?void 0:o._$litDirective$;return(null==l?void 0:l.constructor)!==c&&(null===(n=null==l?void 0:l._$AO)||void 0===n||n.call(l,!1),void 0===c?l=void 0:(l=new c(t),l._$AT(t,e,i)),void 0!==i?(null!==(s=(a=e)._$Co)&&void 0!==s?s:a._$Co=[])[i]=l:e._$Cl=l),void 0!==l&&(o=K(t,l._$AS(t,o.values),l,i)),o}class q{constructor(t,o){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=o}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){var o;const{el:{content:e},parts:i}=this._$AD,r=(null!==(o=null==t?void 0:t.creationScope)&&void 0!==o?o:S).importNode(e,!0);B.currentNode=r;let n=B.nextNode(),s=0,a=0,l=i[0];for(;void 0!==l;){if(s===l.index){let o;2===l.type?o=new F(n,n.nextSibling,this,t):1===l.type?o=new l.ctor(n,l.name,l.strings,this,t):6===l.type&&(o=new J(n,this,t)),this._$AV.push(o),l=i[++a]}s!==(null==l?void 0:l.index)&&(n=B.nextNode(),s++)}return B.currentNode=S,r}v(t){let o=0;for(const e of this._$AV)void 0!==e&&(void 0!==e.strings?(e._$AI(t,e,o),o+=e.strings.length-2):e._$AI(t[o])),o++}}class F{constructor(t,o,e,i){var r;this.type=2,this._$AH=M,this._$AN=void 0,this._$AA=t,this._$AB=o,this._$AM=e,this.options=i,this._$Cp=null===(r=null==i?void 0:i.isConnected)||void 0===r||r}get _$AU(){var t,o;return null!==(o=null===(t=this._$AM)||void 0===t?void 0:t._$AU)&&void 0!==o?o:this._$Cp}get parentNode(){let t=this._$AA.parentNode;const o=this._$AM;return void 0!==o&&11===(null==t?void 0:t.nodeType)&&(t=o.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,o=this){t=K(this,t,o),A(t)?t===M||null==t||""===t?(this._$AH!==M&&this._$AR(),this._$AH=M):t!==this._$AH&&t!==U&&this._(t):void 0!==t._$litType$?this.g(t):void 0!==t.nodeType?this.$(t):(t=>C(t)||"function"==typeof(null==t?void 0:t[Symbol.iterator]))(t)?this.T(t):this._(t)}k(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}$(t){this._$AH!==t&&(this._$AR(),this._$AH=this.k(t))}_(t){this._$AH!==M&&A(this._$AH)?this._$AA.nextSibling.data=t:this.$(S.createTextNode(t)),this._$AH=t}g(t){var o;const{values:e,_$litType$:i}=t,r="number"==typeof i?this._$AC(t):(void 0===i.el&&(i.el=P.createElement(L(i.h,i.h[0]),this.options)),i);if((null===(o=this._$AH)||void 0===o?void 0:o._$AD)===r)this._$AH.v(e);else{const t=new q(r,this),o=t.u(this.options);t.v(e),this.$(o),this._$AH=t}}_$AC(t){let o=N.get(t.strings);return void 0===o&&N.set(t.strings,o=new P(t)),o}T(t){C(this._$AH)||(this._$AH=[],this._$AR());const o=this._$AH;let e,i=0;for(const r of t)i===o.length?o.push(e=new F(this.k(E()),this.k(E()),this,this.options)):e=o[i],e._$AI(r),i++;i<o.length&&(this._$AR(e&&e._$AB.nextSibling,i),o.length=i)}_$AR(t=this._$AA.nextSibling,o){var e;for(null===(e=this._$AP)||void 0===e||e.call(this,!1,!0,o);t&&t!==this._$AB;){const o=t.nextSibling;t.remove(),t=o}}setConnected(t){var o;void 0===this._$AM&&(this._$Cp=t,null===(o=this._$AP)||void 0===o||o.call(this,t))}}class H{constructor(t,o,e,i,r){this.type=1,this._$AH=M,this._$AN=void 0,this.element=t,this.name=o,this._$AM=i,this.options=r,e.length>2||""!==e[0]||""!==e[1]?(this._$AH=Array(e.length-1).fill(new String),this.strings=e):this._$AH=M}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,o=this,e,i){const r=this.strings;let n=!1;if(void 0===r)t=K(this,t,o,0),n=!A(t)||t!==this._$AH&&t!==U,n&&(this._$AH=t);else{const i=t;let s,a;for(t=r[0],s=0;s<r.length-1;s++)a=K(this,i[e+s],o,s),a===U&&(a=this._$AH[s]),n||(n=!A(a)||a!==this._$AH[s]),a===M?t=M:t!==M&&(t+=(null!=a?a:"")+r[s+1]),this._$AH[s]=a}n&&!i&&this.j(t)}j(t){t===M?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}}class V extends H{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===M?void 0:t}}const W=g?g.emptyScript:"";class Z extends H{constructor(){super(...arguments),this.type=4}j(t){t&&t!==M?this.element.setAttribute(this.name,W):this.element.removeAttribute(this.name)}}class G extends H{constructor(t,o,e,i,r){super(t,o,e,i,r),this.type=5}_$AI(t,o=this){var e;if((t=null!==(e=K(this,t,o,0))&&void 0!==e?e:M)===U)return;const i=this._$AH,r=t===M&&i!==M||t.capture!==i.capture||t.once!==i.once||t.passive!==i.passive,n=t!==M&&(i===M||r);r&&this.element.removeEventListener(this.name,this,i),n&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var o,e;"function"==typeof this._$AH?this._$AH.call(null!==(e=null===(o=this.options)||void 0===o?void 0:o.host)&&void 0!==e?e:this.element,t):this._$AH.handleEvent(t)}}class J{constructor(t,o,e){this.element=t,this.type=6,this._$AN=void 0,this._$AM=o,this.options=e}get _$AU(){return this._$AM._$AU}_$AI(t){K(this,t)}}const Y=f.litHtmlPolyfillSupport;
|
|
18
|
-
/**
|
|
19
|
-
* @license
|
|
20
|
-
* Copyright 2017 Google LLC
|
|
21
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
22
|
-
*/
|
|
23
|
-
var Q;null==Y||Y(P,F),(null!==(y=f.litHtmlVersions)&&void 0!==y?y:f.litHtmlVersions=[]).push("2.8.0");const X=window,tt=X.trustedTypes,ot=tt?tt.createPolicy("lit-html",{createHTML:t=>t}):void 0,et="$lit$",it=`lit$${(Math.random()+"").slice(9)}$`,rt="?"+it,nt=`<${rt}>`,st=document,at=()=>st.createComment(""),lt=t=>null===t||"object"!=typeof t&&"function"!=typeof t,ct=Array.isArray,ht="[ \t\n\f\r]",dt=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,ut=/-->/g,vt=/>/g,bt=RegExp(`>|${ht}(?:([^\\s"'>=/]+)(${ht}*=${ht}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),pt=/'/g,yt=/"/g,ft=/^(?:script|style|textarea|title)$/i,gt=(t=>(o,...e)=>({_$litType$:t,strings:o,values:e}))(1),mt=Symbol.for("lit-noChange"),wt=Symbol.for("lit-nothing"),xt=new WeakMap,$t=st.createTreeWalker(st,129,null,!1);function kt(t,o){if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==ot?ot.createHTML(o):o}const St=(t,o)=>{const e=t.length-1,i=[];let r,n=2===o?"<svg>":"",s=dt;for(let o=0;o<e;o++){const e=t[o];let a,l,c=-1,h=0;for(;h<e.length&&(s.lastIndex=h,l=s.exec(e),null!==l);)h=s.lastIndex,s===dt?"!--"===l[1]?s=ut:void 0!==l[1]?s=vt:void 0!==l[2]?(ft.test(l[2])&&(r=RegExp("</"+l[2],"g")),s=bt):void 0!==l[3]&&(s=bt):s===bt?">"===l[0]?(s=null!=r?r:dt,c=-1):void 0===l[1]?c=-2:(c=s.lastIndex-l[2].length,a=l[1],s=void 0===l[3]?bt:'"'===l[3]?yt:pt):s===yt||s===pt?s=bt:s===ut||s===vt?s=dt:(s=bt,r=void 0);const d=s===bt&&t[o+1].startsWith("/>")?" ":"";n+=s===dt?e+nt:c>=0?(i.push(a),e.slice(0,c)+et+e.slice(c)+it+d):e+it+(-2===c?(i.push(void 0),o):d)}return[kt(t,n+(t[e]||"<?>")+(2===o?"</svg>":"")),i]};class Et{constructor({strings:t,_$litType$:o},e){let i;this.parts=[];let r=0,n=0;const s=t.length-1,a=this.parts,[l,c]=St(t,o);if(this.el=Et.createElement(l,e),$t.currentNode=this.el.content,2===o){const t=this.el.content,o=t.firstChild;o.remove(),t.append(...o.childNodes)}for(;null!==(i=$t.nextNode())&&a.length<s;){if(1===i.nodeType){if(i.hasAttributes()){const t=[];for(const o of i.getAttributeNames())if(o.endsWith(et)||o.startsWith(it)){const e=c[n++];if(t.push(o),void 0!==e){const t=i.getAttribute(e.toLowerCase()+et).split(it),o=/([.?@])?(.*)/.exec(e);a.push({type:1,index:r,name:o[2],strings:t,ctor:"."===o[1]?_t:"?"===o[1]?Tt:"@"===o[1]?Dt:Rt})}else a.push({type:6,index:r})}for(const o of t)i.removeAttribute(o)}if(ft.test(i.tagName)){const t=i.textContent.split(it),o=t.length-1;if(o>0){i.textContent=tt?tt.emptyScript:"";for(let e=0;e<o;e++)i.append(t[e],at()),$t.nextNode(),a.push({type:2,index:++r});i.append(t[o],at())}}}else if(8===i.nodeType)if(i.data===rt)a.push({type:2,index:r});else{let t=-1;for(;-1!==(t=i.data.indexOf(it,t+1));)a.push({type:7,index:r}),t+=it.length-1}r++}}static createElement(t,o){const e=st.createElement("template");return e.innerHTML=t,e}}function At(t,o,e=t,i){var r,n,s,a;if(o===mt)return o;let l=void 0!==i?null===(r=e._$Co)||void 0===r?void 0:r[i]:e._$Cl;const c=lt(o)?void 0:o._$litDirective$;return(null==l?void 0:l.constructor)!==c&&(null===(n=null==l?void 0:l._$AO)||void 0===n||n.call(l,!1),void 0===c?l=void 0:(l=new c(t),l._$AT(t,e,i)),void 0!==i?(null!==(s=(a=e)._$Co)&&void 0!==s?s:a._$Co=[])[i]=l:e._$Cl=l),void 0!==l&&(o=At(t,l._$AS(t,o.values),l,i)),o}class Ct{constructor(t,o){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=o}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){var o;const{el:{content:e},parts:i}=this._$AD,r=(null!==(o=null==t?void 0:t.creationScope)&&void 0!==o?o:st).importNode(e,!0);$t.currentNode=r;let n=$t.nextNode(),s=0,a=0,l=i[0];for(;void 0!==l;){if(s===l.index){let o;2===l.type?o=new zt(n,n.nextSibling,this,t):1===l.type?o=new l.ctor(n,l.name,l.strings,this,t):6===l.type&&(o=new Ot(n,this,t)),this._$AV.push(o),l=i[++a]}s!==(null==l?void 0:l.index)&&(n=$t.nextNode(),s++)}return $t.currentNode=st,r}v(t){let o=0;for(const e of this._$AV)void 0!==e&&(void 0!==e.strings?(e._$AI(t,e,o),o+=e.strings.length-2):e._$AI(t[o])),o++}}class zt{constructor(t,o,e,i){var r;this.type=2,this._$AH=wt,this._$AN=void 0,this._$AA=t,this._$AB=o,this._$AM=e,this.options=i,this._$Cp=null===(r=null==i?void 0:i.isConnected)||void 0===r||r}get _$AU(){var t,o;return null!==(o=null===(t=this._$AM)||void 0===t?void 0:t._$AU)&&void 0!==o?o:this._$Cp}get parentNode(){let t=this._$AA.parentNode;const o=this._$AM;return void 0!==o&&11===(null==t?void 0:t.nodeType)&&(t=o.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,o=this){t=At(this,t,o),lt(t)?t===wt||null==t||""===t?(this._$AH!==wt&&this._$AR(),this._$AH=wt):t!==this._$AH&&t!==mt&&this._(t):void 0!==t._$litType$?this.g(t):void 0!==t.nodeType?this.$(t):(t=>ct(t)||"function"==typeof(null==t?void 0:t[Symbol.iterator]))(t)?this.T(t):this._(t)}k(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}$(t){this._$AH!==t&&(this._$AR(),this._$AH=this.k(t))}_(t){this._$AH!==wt&<(this._$AH)?this._$AA.nextSibling.data=t:this.$(st.createTextNode(t)),this._$AH=t}g(t){var o;const{values:e,_$litType$:i}=t,r="number"==typeof i?this._$AC(t):(void 0===i.el&&(i.el=Et.createElement(kt(i.h,i.h[0]),this.options)),i);if((null===(o=this._$AH)||void 0===o?void 0:o._$AD)===r)this._$AH.v(e);else{const t=new Ct(r,this),o=t.u(this.options);t.v(e),this.$(o),this._$AH=t}}_$AC(t){let o=xt.get(t.strings);return void 0===o&&xt.set(t.strings,o=new Et(t)),o}T(t){ct(this._$AH)||(this._$AH=[],this._$AR());const o=this._$AH;let e,i=0;for(const r of t)i===o.length?o.push(e=new zt(this.k(at()),this.k(at()),this,this.options)):e=o[i],e._$AI(r),i++;i<o.length&&(this._$AR(e&&e._$AB.nextSibling,i),o.length=i)}_$AR(t=this._$AA.nextSibling,o){var e;for(null===(e=this._$AP)||void 0===e||e.call(this,!1,!0,o);t&&t!==this._$AB;){const o=t.nextSibling;t.remove(),t=o}}setConnected(t){var o;void 0===this._$AM&&(this._$Cp=t,null===(o=this._$AP)||void 0===o||o.call(this,t))}}class Rt{constructor(t,o,e,i,r){this.type=1,this._$AH=wt,this._$AN=void 0,this.element=t,this.name=o,this._$AM=i,this.options=r,e.length>2||""!==e[0]||""!==e[1]?(this._$AH=Array(e.length-1).fill(new String),this.strings=e):this._$AH=wt}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,o=this,e,i){const r=this.strings;let n=!1;if(void 0===r)t=At(this,t,o,0),n=!lt(t)||t!==this._$AH&&t!==mt,n&&(this._$AH=t);else{const i=t;let s,a;for(t=r[0],s=0;s<r.length-1;s++)a=At(this,i[e+s],o,s),a===mt&&(a=this._$AH[s]),n||(n=!lt(a)||a!==this._$AH[s]),a===wt?t=wt:t!==wt&&(t+=(null!=a?a:"")+r[s+1]),this._$AH[s]=a}n&&!i&&this.j(t)}j(t){t===wt?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}}class _t extends Rt{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===wt?void 0:t}}const jt=tt?tt.emptyScript:"";class Tt extends Rt{constructor(){super(...arguments),this.type=4}j(t){t&&t!==wt?this.element.setAttribute(this.name,jt):this.element.removeAttribute(this.name)}}class Dt extends Rt{constructor(t,o,e,i,r){super(t,o,e,i,r),this.type=5}_$AI(t,o=this){var e;if((t=null!==(e=At(this,t,o,0))&&void 0!==e?e:wt)===mt)return;const i=this._$AH,r=t===wt&&i!==wt||t.capture!==i.capture||t.once!==i.once||t.passive!==i.passive,n=t!==wt&&(i===wt||r);r&&this.element.removeEventListener(this.name,this,i),n&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var o,e;"function"==typeof this._$AH?this._$AH.call(null!==(e=null===(o=this.options)||void 0===o?void 0:o.host)&&void 0!==e?e:this.element,t):this._$AH.handleEvent(t)}}class Ot{constructor(t,o,e){this.element=t,this.type=6,this._$AN=void 0,this._$AM=o,this.options=e}get _$AU(){return this._$AM._$AU}_$AI(t){At(this,t)}}const It=X.litHtmlPolyfillSupport;null==It||It(Et,zt),(null!==(Q=X.litHtmlVersions)&&void 0!==Q?Q:X.litHtmlVersions=[]).push("2.8.0");
|
|
24
|
-
/**
|
|
25
|
-
* @license
|
|
26
|
-
* Copyright 2017 Google LLC
|
|
27
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
28
|
-
*/
|
|
29
|
-
var Ut,Mt;class Nt extends p{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var t,o;const e=super.createRenderRoot();return null!==(t=(o=this.renderOptions).renderBefore)&&void 0!==t||(o.renderBefore=e.firstChild),e}update(t){const o=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=((t,o,e)=>{var i,r;const n=null!==(i=null==e?void 0:e.renderBefore)&&void 0!==i?i:o;let s=n._$litPart$;if(void 0===s){const t=null!==(r=null==e?void 0:e.renderBefore)&&void 0!==r?r:null;n._$litPart$=s=new zt(o.insertBefore(at(),t),t,void 0,null!=e?e:{})}return s._$AI(t),s})(o,this.renderRoot,this.renderOptions)}connectedCallback(){var t;super.connectedCallback(),null===(t=this._$Do)||void 0===t||t.setConnected(!0)}disconnectedCallback(){var t;super.disconnectedCallback(),null===(t=this._$Do)||void 0===t||t.setConnected(!1)}render(){return mt}}Nt.finalized=!0,Nt._$litElement$=!0,null===(Ut=globalThis.litElementHydrateSupport)||void 0===Ut||Ut.call(globalThis,{LitElement:Nt});const Bt=globalThis.litElementPolyfillSupport;null==Bt||Bt({LitElement:Nt}),(null!==(Mt=globalThis.litElementVersions)&&void 0!==Mt?Mt:globalThis.litElementVersions=[]).push("3.3.3");
|
|
30
|
-
/**
|
|
31
|
-
* @license
|
|
32
|
-
* Copyright 2017 Google LLC
|
|
33
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
34
|
-
*/
|
|
35
|
-
const Lt=(t,o)=>"method"===o.kind&&o.descriptor&&!("value"in o.descriptor)?{...o,finisher(e){e.createProperty(o.key,t)}}:{kind:"field",key:Symbol(),placement:"own",descriptor:{},originalKey:o.key,initializer(){"function"==typeof o.initializer&&(this[o.key]=o.initializer.call(this))},finisher(e){e.createProperty(o.key,t)}};
|
|
36
|
-
/**
|
|
37
|
-
* @license
|
|
38
|
-
* Copyright 2017 Google LLC
|
|
39
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
40
|
-
*/function Pt(t){return(o,e)=>void 0!==e?((t,o,e)=>{o.constructor.createProperty(e,t)})(t,o,e):Lt(t,o)
|
|
41
|
-
/**
|
|
42
|
-
* @license
|
|
43
|
-
* Copyright 2021 Google LLC
|
|
44
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
45
|
-
*/}var Kt;null===(Kt=window.HTMLSlotElement)||void 0===Kt||Kt.prototype.assignedElements;
|
|
46
|
-
/**
|
|
47
|
-
* @license
|
|
48
|
-
* Copyright 2018 Google LLC
|
|
49
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
50
|
-
*/
|
|
51
|
-
const qt=t=>null!=t?t:M,Ft="",Ht=((t,...o)=>{const i=1===t.length?t[0]:o.reduce(((o,e,i)=>o+(t=>{if(!0===t._$cssResult$)return t.cssText;if("number"==typeof t)return t;throw Error("Value passed to 'css' function must be a 'css' function result: "+t+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(e)+t[i+1]),t[0]);return new r(i,t,e)})`
|
|
1
|
+
import{css as t,LitElement as r,nothing as o,html as e}from"lit";import{property as a,customElement as n}from"lit/decorators.js";import{ifDefined as i}from"lit/directives/if-defined.js";import{NuralyUIBaseMixin as l}from"@nuralyui/common/mixins";const s="",c=t`
|
|
52
2
|
:host {
|
|
53
3
|
display: inline-block;
|
|
54
4
|
vertical-align: middle;
|
|
@@ -535,85 +485,85 @@ const qt=t=>null!=t?t:M,Ft="",Ht=((t,...o)=>{const i=1===t.length?t[0]:o.reduce(
|
|
|
535
485
|
line-height: inherit;
|
|
536
486
|
}
|
|
537
487
|
}
|
|
538
|
-
|
|
488
|
+
`;
|
|
539
489
|
/**
|
|
540
490
|
* @license
|
|
541
491
|
* Copyright 2023 Nuraly, Laabidi Aymen
|
|
542
492
|
* SPDX-License-Identifier: MIT
|
|
543
493
|
*/
|
|
544
|
-
class
|
|
494
|
+
class u{constructor(t){this._host=t,this._host.addController(this)}get host(){return this._host}hostConnected(){}hostDisconnected(){}hostUpdate(){}hostUpdated(){}handleError(t,r){console.error(`[ButtonController:${this.constructor.name}] Error in ${r}:`,t),this._host.dispatchEvent(new CustomEvent("nr-button-error",{detail:{error:t.message,context:r,controller:this.constructor.name},bubbles:!0,composed:!0}))}requestUpdate(){try{this._host.requestUpdate()}catch(t){this.handleError(t,"requestUpdate")}}dispatchEvent(t){try{return this._host.dispatchEvent(t)}catch(t){return this.handleError(t,"dispatchEvent"),!1}}}
|
|
545
495
|
/**
|
|
546
496
|
* @license
|
|
547
497
|
* Copyright 2023 Nuraly, Laabidi Aymen
|
|
548
498
|
* SPDX-License-Identifier: MIT
|
|
549
|
-
*/class
|
|
499
|
+
*/class d extends u{createRipple(t){try{if(!this.host.ripple||this.host.disabled)return;const r=t.currentTarget,o=r.getBoundingClientRect(),e=2*Math.max(o.width,o.height),a=t.clientX-o.left-e/2,n=t.clientY-o.top-e/2,i=document.createElement("span");i.className="ripple",i.style.width=i.style.height=e+"px",i.style.left=a+"px",i.style.top=n+"px";r.querySelectorAll(".ripple").forEach((t=>t.remove())),r.appendChild(i),setTimeout((()=>{i.remove()}),600)}catch(t){this.handleError(t,"createRipple")}}handleRippleClick(t){try{this.createRipple(t),this.dispatchEvent(new CustomEvent("button-click",{detail:{disabled:this.host.disabled,timestamp:Date.now(),coordinates:{x:t.clientX,y:t.clientY}},bubbles:!0,composed:!0}))}catch(t){this.handleError(t,"handleRippleClick")}}}
|
|
550
500
|
/**
|
|
551
501
|
* @license
|
|
552
502
|
* Copyright 2023 Nuraly, Laabidi Aymen
|
|
553
503
|
* SPDX-License-Identifier: MIT
|
|
554
|
-
*/class
|
|
504
|
+
*/class b extends u{handleKeyboardActivation(t){try{if(this.host.disabled)return;this.isActivationKey(t)&&(t.preventDefault(),this.host.click(),this.dispatchEvent(new CustomEvent("keyboard-activation",{detail:{key:t.key,timestamp:Date.now(),target:this.host},bubbles:!0,composed:!0})))}catch(t){this.handleError(t,"handleKeyboardActivation")}}handleKeydown(t){try{if(this.host.disabled){if(!this.isReadonlyKeyAllowed(t))return void t.preventDefault()}this.handleKeyboardActivation(t)}catch(t){this.handleError(t,"handleKeydown")}}isActivationKey(t){return"Enter"===t.key||" "===t.key}isReadonlyKeyAllowed(t){return["Tab","Shift","Escape","ArrowUp","ArrowDown","ArrowLeft","ArrowRight","Home","End"].includes(t.key)}}
|
|
555
505
|
/**
|
|
556
506
|
* @license
|
|
557
507
|
* Copyright 2023 Nuraly, Laabidi Aymen
|
|
558
508
|
* SPDX-License-Identifier: MIT
|
|
559
|
-
*/class
|
|
509
|
+
*/class h extends u{isLinkType(){return"link"===this.host.type&&!!this.host.href}getElementTag(){return this.isLinkType()?"a":"button"}getLinkAttributes(){try{const t={};return this.isLinkType()?(t.href=this.host.href,this.host.target&&(t.target=this.host.target,"_blank"===this.host.target&&(t.rel="noopener noreferrer")),t.role="link"):t.role="button",t}catch(t){return this.handleError(t,"getLinkAttributes"),{role:"button"}}}handleLinkNavigation(t){try{this.isLinkType()&&this.dispatchEvent(new CustomEvent("link-navigation",{detail:{href:this.host.href,target:this.host.target,timestamp:Date.now(),originalEvent:t},bubbles:!0,composed:!0}))}catch(t){this.handleError(t,"handleLinkNavigation")}}}
|
|
560
510
|
/**
|
|
561
511
|
* @license
|
|
562
512
|
* Copyright 2023 Nuraly, Laabidi Aymen
|
|
563
513
|
* SPDX-License-Identifier: MIT
|
|
564
|
-
*/var
|
|
565
|
-
name=${
|
|
566
|
-
type=${
|
|
567
|
-
alt=${
|
|
568
|
-
size=${
|
|
569
|
-
color=${
|
|
570
|
-
></nr-icon>`}handleClick(t){this.disabled?t.preventDefault():(this.rippleController.handleRippleClick(t),this.linkController.isLinkType()&&this.linkController.handleLinkNavigation(t),this.dispatchEventWithMetadata("button-clicked",{type:this.type,disabled:this.disabled,loading:this.loading,href:this.href||null}))}handleKeydown(t){this.keyboardController.handleKeydown(t)}getResolvedLeftIcon(){var t,
|
|
514
|
+
*/var y=function(t,r,o,e){for(var a,n=arguments.length,i=n<3?r:null===e?e=Object.getOwnPropertyDescriptor(r,o):e,l=t.length-1;l>=0;l--)(a=t[l])&&(i=(n<3?a(i):n>3?a(r,o,i):a(r,o))||i);return n>3&&i&&Object.defineProperty(r,o,i),i};let p=class extends(l(r)){constructor(){super(...arguments),this.disabled=!1,this.loading=!1,this.size=s,this.type="default",this.shape="default",this.block=!1,this.dashed=!1,this.icon=[],this.iconPosition="left",this.href=s,this.target=s,this.ripple=!0,this.buttonAriaLabel=s,this.ariaDescribedBy=s,this.htmlType=s,this.requiredComponents=["nr-icon"],this.rippleController=new d(this),this.keyboardController=new b(this),this.linkController=new h(this)}connectedCallback(){super.connectedCallback(),this.validateDependencies()}getCommonAttributes(){return{"data-type":this.type,"data-shape":this.shape,"data-size":this.size||o,"data-state":this.loading?"loading":o,"data-theme":this.currentTheme,"data-block":this.block?"true":o,class:this.dashed?"button-dashed":"","aria-disabled":this.disabled?"true":"false","aria-label":this.buttonAriaLabel||o,"aria-describedby":this.ariaDescribedBy||o,tabindex:this.disabled?"-1":"0"}}renderIcon(t){if(!this.isComponentAvailable("nr-icon")){const r="string"==typeof t?t:t.name;return console.warn(`[nr-button] Icon component 'nr-icon' not available. Icon "${r}" will not render. Ensure the icon component is imported and registered.`),o}const r=()=>{switch(this.size){case"small":return"small";case"medium":default:return"medium";case"large":return"large"}};if("string"==typeof t){const o=r();return e`<nr-icon name=${t} size=${i(o)}></nr-icon>`}const{name:a,type:n="solid",size:l,color:s,alt:c}=t,u=l||r();return e`<nr-icon
|
|
515
|
+
name=${a}
|
|
516
|
+
type=${n}
|
|
517
|
+
alt=${c||""}
|
|
518
|
+
size=${i(u)}
|
|
519
|
+
color=${s||""}
|
|
520
|
+
></nr-icon>`}handleClick(t){this.disabled?t.preventDefault():(this.rippleController.handleRippleClick(t),this.linkController.isLinkType()&&this.linkController.handleLinkNavigation(t),this.dispatchEventWithMetadata("button-clicked",{type:this.type,disabled:this.disabled,loading:this.loading,href:this.href||null}))}handleKeydown(t){this.keyboardController.handleKeydown(t)}getResolvedLeftIcon(){var t,r;return this.iconLeft?this.iconLeft:(null===(t=this.icons)||void 0===t?void 0:t.left)?this.icons.left:(null===(r=this.icon)||void 0===r?void 0:r.length)>0?this.icon[0]:void 0}getResolvedRightIcon(){var t,r;return this.iconRight?this.iconRight:(null===(t=this.icons)||void 0===t?void 0:t.right)?this.icons.right:2===(null===(r=this.icon)||void 0===r?void 0:r.length)?this.icon[1]:void 0}render(){const t=this.linkController.getElementTag(),r=this.getCommonAttributes(),a=this.linkController.getLinkAttributes(),n=this.getResolvedLeftIcon(),i=this.getResolvedRightIcon(),l=e`
|
|
571
521
|
<span id="container" part="container">
|
|
572
|
-
${
|
|
522
|
+
${n?this.renderIcon(n):o}
|
|
573
523
|
<slot id="slot"></slot>
|
|
574
|
-
${
|
|
524
|
+
${i?this.renderIcon(i):o}
|
|
575
525
|
</span>
|
|
576
|
-
`;return"a"===t?
|
|
526
|
+
`;return"a"===t?e`
|
|
577
527
|
<a
|
|
578
|
-
href="${
|
|
579
|
-
target="${
|
|
580
|
-
rel="${
|
|
581
|
-
role="${
|
|
582
|
-
data-type="${
|
|
583
|
-
data-shape="${
|
|
584
|
-
data-size="${
|
|
585
|
-
data-state="${
|
|
586
|
-
data-theme="${
|
|
587
|
-
data-block="${
|
|
588
|
-
class="${
|
|
528
|
+
href="${a.href}"
|
|
529
|
+
target="${a.target||o}"
|
|
530
|
+
rel="${a.rel||o}"
|
|
531
|
+
role="${a.role}"
|
|
532
|
+
data-type="${r["data-type"]}"
|
|
533
|
+
data-shape="${r["data-shape"]}"
|
|
534
|
+
data-size="${r["data-size"]}"
|
|
535
|
+
data-state="${r["data-state"]}"
|
|
536
|
+
data-theme="${r["data-theme"]}"
|
|
537
|
+
data-block="${r["data-block"]}"
|
|
538
|
+
class="${r.class}"
|
|
589
539
|
aria-disabled="${this.disabled}"
|
|
590
|
-
aria-label="${this.buttonAriaLabel||
|
|
591
|
-
aria-describedby="${this.ariaDescribedBy||
|
|
540
|
+
aria-label="${this.buttonAriaLabel||o}"
|
|
541
|
+
aria-describedby="${this.ariaDescribedBy||o}"
|
|
592
542
|
tabindex="${this.disabled?-1:0}"
|
|
593
543
|
@click="${this.handleClick}"
|
|
594
544
|
@keydown="${this.handleKeydown}"
|
|
595
545
|
>
|
|
596
|
-
${
|
|
546
|
+
${l}
|
|
597
547
|
</a>
|
|
598
|
-
`:
|
|
548
|
+
`:e`
|
|
599
549
|
<button
|
|
600
550
|
?disabled="${this.disabled}"
|
|
601
551
|
type="${this.htmlType||"button"}"
|
|
602
|
-
role="${
|
|
603
|
-
data-type="${
|
|
604
|
-
data-shape="${
|
|
605
|
-
data-size="${
|
|
606
|
-
data-state="${
|
|
607
|
-
data-theme="${
|
|
608
|
-
data-block="${
|
|
609
|
-
class="${
|
|
552
|
+
role="${a.role}"
|
|
553
|
+
data-type="${r["data-type"]}"
|
|
554
|
+
data-shape="${r["data-shape"]}"
|
|
555
|
+
data-size="${r["data-size"]}"
|
|
556
|
+
data-state="${r["data-state"]}"
|
|
557
|
+
data-theme="${r["data-theme"]}"
|
|
558
|
+
data-block="${r["data-block"]}"
|
|
559
|
+
class="${r.class}"
|
|
610
560
|
aria-disabled="${this.disabled}"
|
|
611
|
-
aria-label="${this.buttonAriaLabel||
|
|
612
|
-
aria-describedby="${this.ariaDescribedBy||
|
|
561
|
+
aria-label="${this.buttonAriaLabel||o}"
|
|
562
|
+
aria-describedby="${this.ariaDescribedBy||o}"
|
|
613
563
|
tabindex="${this.disabled?-1:0}"
|
|
614
564
|
@click="${this.handleClick}"
|
|
615
565
|
@keydown="${this.handleKeydown}"
|
|
616
566
|
>
|
|
617
|
-
${
|
|
567
|
+
${l}
|
|
618
568
|
</button>
|
|
619
|
-
`}};
|
|
569
|
+
`}};p.styles=c,y([a({type:Boolean})],p.prototype,"disabled",void 0),y([a({type:Boolean})],p.prototype,"loading",void 0),y([a({type:String})],p.prototype,"size",void 0),y([a({type:String})],p.prototype,"type",void 0),y([a({type:String})],p.prototype,"shape",void 0),y([a({type:Boolean})],p.prototype,"block",void 0),y([a({type:Boolean})],p.prototype,"dashed",void 0),y([a({type:Array})],p.prototype,"icon",void 0),y([a({type:Object})],p.prototype,"iconLeft",void 0),y([a({type:Object})],p.prototype,"iconRight",void 0),y([a({type:Object})],p.prototype,"icons",void 0),y([a({reflect:!0})],p.prototype,"iconPosition",void 0),y([a({type:String})],p.prototype,"href",void 0),y([a({type:String})],p.prototype,"target",void 0),y([a({type:Boolean})],p.prototype,"ripple",void 0),y([a({type:String})],p.prototype,"buttonAriaLabel",void 0),y([a({type:String})],p.prototype,"ariaDescribedBy",void 0),y([a({type:String})],p.prototype,"htmlType",void 0),p=y([n("nr-button")],p);export{p as NrButtonElement};
|