@nuralyui/skeleton 0.0.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/bundle.js +359 -0
- package/index.d.ts +3 -0
- package/index.d.ts.map +1 -0
- package/index.js +3 -0
- package/index.js.map +1 -0
- package/package.json +31 -0
- package/react.d.ts +3 -0
- package/react.d.ts.map +1 -0
- package/react.js +10 -0
- package/react.js.map +1 -0
- package/skeleton.component.d.ts +165 -0
- package/skeleton.component.d.ts.map +1 -0
- package/skeleton.component.js +387 -0
- package/skeleton.component.js.map +1 -0
- package/skeleton.style.d.ts +2 -0
- package/skeleton.style.d.ts.map +1 -0
- package/skeleton.style.js +224 -0
- package/skeleton.style.js.map +1 -0
- package/skeleton.types.d.ts +82 -0
- package/skeleton.types.d.ts.map +1 -0
- package/skeleton.types.js +2 -0
- package/skeleton.types.js.map +1 -0
package/bundle.js
ADDED
|
@@ -0,0 +1,359 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright 2019 Google LLC
|
|
4
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
5
|
+
*/
|
|
6
|
+
const t=window,e=t.ShadowRoot&&(void 0===t.ShadyCSS||t.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,i=Symbol(),s=new WeakMap;class n{constructor(t,e,s){if(this._$cssResult$=!0,s!==i)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o;const i=this.t;if(e&&void 0===t){const e=void 0!==i&&1===i.length;e&&(t=s.get(i)),void 0===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),e&&s.set(i,t))}return t}toString(){return this.cssText}}const o=e?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e="";for(const i of t.cssRules)e+=i.cssText;return(t=>new n("string"==typeof t?t:t+"",void 0,i))(e)})(t):t
|
|
7
|
+
/**
|
|
8
|
+
* @license
|
|
9
|
+
* Copyright 2017 Google LLC
|
|
10
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
11
|
+
*/;var r;const h=window,l=h.trustedTypes,a=l?l.emptyScript:"",d=h.reactiveElementPolyfillSupport,u={toAttribute(t,e){switch(e){case Boolean:t=t?a:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t)}return t},fromAttribute(t,e){let i=t;switch(e){case Boolean:i=null!==t;break;case Number:i=null===t?null:Number(t);break;case Object:case Array:try{i=JSON.parse(t)}catch(t){i=null}}return i}},c=(t,e)=>e!==t&&(e==e||t==t),v={attribute:!0,type:String,converter:u,reflect:!1,hasChanged:c},p="finalized";class g extends HTMLElement{constructor(){super(),this._$Ei=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$El=null,this._$Eu()}static addInitializer(t){var e;this.finalize(),(null!==(e=this.h)&&void 0!==e?e:this.h=[]).push(t)}static get observedAttributes(){this.finalize();const t=[];return this.elementProperties.forEach(((e,i)=>{const s=this._$Ep(i,e);void 0!==s&&(this._$Ev.set(s,i),t.push(s))})),t}static createProperty(t,e=v){if(e.state&&(e.attribute=!1),this.finalize(),this.elementProperties.set(t,e),!e.noAccessor&&!this.prototype.hasOwnProperty(t)){const i="symbol"==typeof t?Symbol():"__"+t,s=this.getPropertyDescriptor(t,i,e);void 0!==s&&Object.defineProperty(this.prototype,t,s)}}static getPropertyDescriptor(t,e,i){return{get(){return this[e]},set(s){const n=this[t];this[e]=s,this.requestUpdate(t,n,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)||v}static finalize(){if(this.hasOwnProperty(p))return!1;this[p]=!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,e=[...Object.getOwnPropertyNames(t),...Object.getOwnPropertySymbols(t)];for(const i of e)this.createProperty(i,t[i])}return this.elementStyles=this.finalizeStyles(this.styles),!0}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const i=new Set(t.flat(1/0).reverse());for(const t of i)e.unshift(o(t))}else void 0!==t&&e.push(o(t));return e}static _$Ep(t,e){const i=e.attribute;return!1===i?void 0:"string"==typeof i?i:"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 e,i;(null!==(e=this._$ES)&&void 0!==e?e:this._$ES=[]).push(t),void 0!==this.renderRoot&&this.isConnected&&(null===(i=t.hostConnected)||void 0===i||i.call(t))}removeController(t){var e;null===(e=this._$ES)||void 0===e||e.splice(this._$ES.indexOf(t)>>>0,1)}_$Eg(){this.constructor.elementProperties.forEach(((t,e)=>{this.hasOwnProperty(e)&&(this._$Ei.set(e,this[e]),delete this[e])}))}createRenderRoot(){var i;const s=null!==(i=this.shadowRoot)&&void 0!==i?i:this.attachShadow(this.constructor.shadowRootOptions);return((i,s)=>{e?i.adoptedStyleSheets=s.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet)):s.forEach((e=>{const s=document.createElement("style"),n=t.litNonce;void 0!==n&&s.setAttribute("nonce",n),s.textContent=e.cssText,i.appendChild(s)}))})(s,this.constructor.elementStyles),s}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 e;return null===(e=t.hostConnected)||void 0===e?void 0:e.call(t)}))}enableUpdating(t){}disconnectedCallback(){var t;null===(t=this._$ES)||void 0===t||t.forEach((t=>{var e;return null===(e=t.hostDisconnected)||void 0===e?void 0:e.call(t)}))}attributeChangedCallback(t,e,i){this._$AK(t,i)}_$EO(t,e,i=v){var s;const n=this.constructor._$Ep(t,i);if(void 0!==n&&!0===i.reflect){const o=(void 0!==(null===(s=i.converter)||void 0===s?void 0:s.toAttribute)?i.converter:u).toAttribute(e,i.type);this._$El=t,null==o?this.removeAttribute(n):this.setAttribute(n,o),this._$El=null}}_$AK(t,e){var i;const s=this.constructor,n=s._$Ev.get(t);if(void 0!==n&&this._$El!==n){const t=s.getPropertyOptions(n),o="function"==typeof t.converter?{fromAttribute:t.converter}:void 0!==(null===(i=t.converter)||void 0===i?void 0:i.fromAttribute)?t.converter:u;this._$El=n,this[n]=o.fromAttribute(e,t.type),this._$El=null}}requestUpdate(t,e,i){let s=!0;void 0!==t&&(((i=i||this.constructor.getPropertyOptions(t)).hasChanged||c)(this[t],e)?(this._$AL.has(t)||this._$AL.set(t,e),!0===i.reflect&&this._$El!==t&&(void 0===this._$EC&&(this._$EC=new Map),this._$EC.set(t,i))):s=!1),!this.isUpdatePending&&s&&(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,e)=>this[e]=t)),this._$Ei=void 0);let e=!1;const i=this._$AL;try{e=this.shouldUpdate(i),e?(this.willUpdate(i),null===(t=this._$ES)||void 0===t||t.forEach((t=>{var e;return null===(e=t.hostUpdate)||void 0===e?void 0:e.call(t)})),this.update(i)):this._$Ek()}catch(t){throw e=!1,this._$Ek(),t}e&&this._$AE(i)}willUpdate(t){}_$AE(t){var e;null===(e=this._$ES)||void 0===e||e.forEach((t=>{var e;return null===(e=t.hostUpdated)||void 0===e?void 0:e.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,e)=>this._$EO(e,this[e],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 f;g[p]=!0,g.elementProperties=new Map,g.elementStyles=[],g.shadowRootOptions={mode:"open"},null==d||d({ReactiveElement:g}),(null!==(r=h.reactiveElementVersions)&&void 0!==r?r:h.reactiveElementVersions=[]).push("1.6.3");const b=window,k=b.trustedTypes,m=k?k.createPolicy("lit-html",{createHTML:t=>t}):void 0,y="$lit$",w=`lit$${(Math.random()+"").slice(9)}$`,$="?"+w,x=`<${$}>`,A=document,S=()=>A.createComment(""),E=t=>null===t||"object"!=typeof t&&"function"!=typeof t,_=Array.isArray,C="[ \t\n\f\r]",j=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,O=/-->/g,T=/>/g,M=RegExp(`>|${C}(?:([^\\s"'>=/]+)(${C}*=${C}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),U=/'/g,R=/"/g,z=/^(?:script|style|textarea|title)$/i,N=Symbol.for("lit-noChange"),I=Symbol.for("lit-nothing"),D=new WeakMap,B=A.createTreeWalker(A,129,null,!1);function P(t,e){if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==m?m.createHTML(e):e}class q{constructor({strings:t,_$litType$:e},i){let s;this.parts=[];let n=0,o=0;const r=t.length-1,h=this.parts,[l,a]=((t,e)=>{const i=t.length-1,s=[];let n,o=2===e?"<svg>":"",r=j;for(let e=0;e<i;e++){const i=t[e];let h,l,a=-1,d=0;for(;d<i.length&&(r.lastIndex=d,l=r.exec(i),null!==l);)d=r.lastIndex,r===j?"!--"===l[1]?r=O:void 0!==l[1]?r=T:void 0!==l[2]?(z.test(l[2])&&(n=RegExp("</"+l[2],"g")),r=M):void 0!==l[3]&&(r=M):r===M?">"===l[0]?(r=null!=n?n:j,a=-1):void 0===l[1]?a=-2:(a=r.lastIndex-l[2].length,h=l[1],r=void 0===l[3]?M:'"'===l[3]?R:U):r===R||r===U?r=M:r===O||r===T?r=j:(r=M,n=void 0);const u=r===M&&t[e+1].startsWith("/>")?" ":"";o+=r===j?i+x:a>=0?(s.push(h),i.slice(0,a)+y+i.slice(a)+w+u):i+w+(-2===a?(s.push(void 0),e):u)}return[P(t,o+(t[i]||"<?>")+(2===e?"</svg>":"")),s]})(t,e);if(this.el=q.createElement(l,i),B.currentNode=this.el.content,2===e){const t=this.el.content,e=t.firstChild;e.remove(),t.append(...e.childNodes)}for(;null!==(s=B.nextNode())&&h.length<r;){if(1===s.nodeType){if(s.hasAttributes()){const t=[];for(const e of s.getAttributeNames())if(e.endsWith(y)||e.startsWith(w)){const i=a[o++];if(t.push(e),void 0!==i){const t=s.getAttribute(i.toLowerCase()+y).split(w),e=/([.?@])?(.*)/.exec(i);h.push({type:1,index:n,name:e[2],strings:t,ctor:"."===e[1]?W:"?"===e[1]?F:"@"===e[1]?J:V})}else h.push({type:6,index:n})}for(const e of t)s.removeAttribute(e)}if(z.test(s.tagName)){const t=s.textContent.split(w),e=t.length-1;if(e>0){s.textContent=k?k.emptyScript:"";for(let i=0;i<e;i++)s.append(t[i],S()),B.nextNode(),h.push({type:2,index:++n});s.append(t[e],S())}}}else if(8===s.nodeType)if(s.data===$)h.push({type:2,index:n});else{let t=-1;for(;-1!==(t=s.data.indexOf(w,t+1));)h.push({type:7,index:n}),t+=w.length-1}n++}}static createElement(t,e){const i=A.createElement("template");return i.innerHTML=t,i}}function H(t,e,i=t,s){var n,o,r,h;if(e===N)return e;let l=void 0!==s?null===(n=i._$Co)||void 0===n?void 0:n[s]:i._$Cl;const a=E(e)?void 0:e._$litDirective$;return(null==l?void 0:l.constructor)!==a&&(null===(o=null==l?void 0:l._$AO)||void 0===o||o.call(l,!1),void 0===a?l=void 0:(l=new a(t),l._$AT(t,i,s)),void 0!==s?(null!==(r=(h=i)._$Co)&&void 0!==r?r:h._$Co=[])[s]=l:i._$Cl=l),void 0!==l&&(e=H(t,l._$AS(t,e.values),l,s)),e}class L{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){var e;const{el:{content:i},parts:s}=this._$AD,n=(null!==(e=null==t?void 0:t.creationScope)&&void 0!==e?e:A).importNode(i,!0);B.currentNode=n;let o=B.nextNode(),r=0,h=0,l=s[0];for(;void 0!==l;){if(r===l.index){let e;2===l.type?e=new K(o,o.nextSibling,this,t):1===l.type?e=new l.ctor(o,l.name,l.strings,this,t):6===l.type&&(e=new G(o,this,t)),this._$AV.push(e),l=s[++h]}r!==(null==l?void 0:l.index)&&(o=B.nextNode(),r++)}return B.currentNode=A,n}v(t){let e=0;for(const i of this._$AV)void 0!==i&&(void 0!==i.strings?(i._$AI(t,i,e),e+=i.strings.length-2):i._$AI(t[e])),e++}}class K{constructor(t,e,i,s){var n;this.type=2,this._$AH=I,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=i,this.options=s,this._$Cp=null===(n=null==s?void 0:s.isConnected)||void 0===n||n}get _$AU(){var t,e;return null!==(e=null===(t=this._$AM)||void 0===t?void 0:t._$AU)&&void 0!==e?e:this._$Cp}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return void 0!==e&&11===(null==t?void 0:t.nodeType)&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=H(this,t,e),E(t)?t===I||null==t||""===t?(this._$AH!==I&&this._$AR(),this._$AH=I):t!==this._$AH&&t!==N&&this._(t):void 0!==t._$litType$?this.g(t):void 0!==t.nodeType?this.$(t):(t=>_(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!==I&&E(this._$AH)?this._$AA.nextSibling.data=t:this.$(A.createTextNode(t)),this._$AH=t}g(t){var e;const{values:i,_$litType$:s}=t,n="number"==typeof s?this._$AC(t):(void 0===s.el&&(s.el=q.createElement(P(s.h,s.h[0]),this.options)),s);if((null===(e=this._$AH)||void 0===e?void 0:e._$AD)===n)this._$AH.v(i);else{const t=new L(n,this),e=t.u(this.options);t.v(i),this.$(e),this._$AH=t}}_$AC(t){let e=D.get(t.strings);return void 0===e&&D.set(t.strings,e=new q(t)),e}T(t){_(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let i,s=0;for(const n of t)s===e.length?e.push(i=new K(this.k(S()),this.k(S()),this,this.options)):i=e[s],i._$AI(n),s++;s<e.length&&(this._$AR(i&&i._$AB.nextSibling,s),e.length=s)}_$AR(t=this._$AA.nextSibling,e){var i;for(null===(i=this._$AP)||void 0===i||i.call(this,!1,!0,e);t&&t!==this._$AB;){const e=t.nextSibling;t.remove(),t=e}}setConnected(t){var e;void 0===this._$AM&&(this._$Cp=t,null===(e=this._$AP)||void 0===e||e.call(this,t))}}class V{constructor(t,e,i,s,n){this.type=1,this._$AH=I,this._$AN=void 0,this.element=t,this.name=e,this._$AM=s,this.options=n,i.length>2||""!==i[0]||""!==i[1]?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=I}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,e=this,i,s){const n=this.strings;let o=!1;if(void 0===n)t=H(this,t,e,0),o=!E(t)||t!==this._$AH&&t!==N,o&&(this._$AH=t);else{const s=t;let r,h;for(t=n[0],r=0;r<n.length-1;r++)h=H(this,s[i+r],e,r),h===N&&(h=this._$AH[r]),o||(o=!E(h)||h!==this._$AH[r]),h===I?t=I:t!==I&&(t+=(null!=h?h:"")+n[r+1]),this._$AH[r]=h}o&&!s&&this.j(t)}j(t){t===I?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}}class W extends V{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===I?void 0:t}}const Z=k?k.emptyScript:"";class F extends V{constructor(){super(...arguments),this.type=4}j(t){t&&t!==I?this.element.setAttribute(this.name,Z):this.element.removeAttribute(this.name)}}class J extends V{constructor(t,e,i,s,n){super(t,e,i,s,n),this.type=5}_$AI(t,e=this){var i;if((t=null!==(i=H(this,t,e,0))&&void 0!==i?i:I)===N)return;const s=this._$AH,n=t===I&&s!==I||t.capture!==s.capture||t.once!==s.once||t.passive!==s.passive,o=t!==I&&(s===I||n);n&&this.element.removeEventListener(this.name,this,s),o&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var e,i;"function"==typeof this._$AH?this._$AH.call(null!==(i=null===(e=this.options)||void 0===e?void 0:e.host)&&void 0!==i?i:this.element,t):this._$AH.handleEvent(t)}}class G{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){H(this,t)}}const Q=b.litHtmlPolyfillSupport;
|
|
18
|
+
/**
|
|
19
|
+
* @license
|
|
20
|
+
* Copyright 2017 Google LLC
|
|
21
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
22
|
+
*/
|
|
23
|
+
var X;null==Q||Q(q,K),(null!==(f=b.litHtmlVersions)&&void 0!==f?f:b.litHtmlVersions=[]).push("2.8.0");const Y=window,tt=Y.trustedTypes,et=tt?tt.createPolicy("lit-html",{createHTML:t=>t}):void 0,it="$lit$",st=`lit$${(Math.random()+"").slice(9)}$`,nt="?"+st,ot=`<${nt}>`,rt=document,ht=()=>rt.createComment(""),lt=t=>null===t||"object"!=typeof t&&"function"!=typeof t,at=Array.isArray,dt="[ \t\n\f\r]",ut=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,ct=/-->/g,vt=/>/g,pt=RegExp(`>|${dt}(?:([^\\s"'>=/]+)(${dt}*=${dt}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),gt=/'/g,ft=/"/g,bt=/^(?:script|style|textarea|title)$/i,kt=(t=>(e,...i)=>({_$litType$:t,strings:e,values:i}))(1),mt=Symbol.for("lit-noChange"),yt=Symbol.for("lit-nothing"),wt=new WeakMap,$t=rt.createTreeWalker(rt,129,null,!1);function xt(t,e){if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==et?et.createHTML(e):e}const At=(t,e)=>{const i=t.length-1,s=[];let n,o=2===e?"<svg>":"",r=ut;for(let e=0;e<i;e++){const i=t[e];let h,l,a=-1,d=0;for(;d<i.length&&(r.lastIndex=d,l=r.exec(i),null!==l);)d=r.lastIndex,r===ut?"!--"===l[1]?r=ct:void 0!==l[1]?r=vt:void 0!==l[2]?(bt.test(l[2])&&(n=RegExp("</"+l[2],"g")),r=pt):void 0!==l[3]&&(r=pt):r===pt?">"===l[0]?(r=null!=n?n:ut,a=-1):void 0===l[1]?a=-2:(a=r.lastIndex-l[2].length,h=l[1],r=void 0===l[3]?pt:'"'===l[3]?ft:gt):r===ft||r===gt?r=pt:r===ct||r===vt?r=ut:(r=pt,n=void 0);const u=r===pt&&t[e+1].startsWith("/>")?" ":"";o+=r===ut?i+ot:a>=0?(s.push(h),i.slice(0,a)+it+i.slice(a)+st+u):i+st+(-2===a?(s.push(void 0),e):u)}return[xt(t,o+(t[i]||"<?>")+(2===e?"</svg>":"")),s]};class St{constructor({strings:t,_$litType$:e},i){let s;this.parts=[];let n=0,o=0;const r=t.length-1,h=this.parts,[l,a]=At(t,e);if(this.el=St.createElement(l,i),$t.currentNode=this.el.content,2===e){const t=this.el.content,e=t.firstChild;e.remove(),t.append(...e.childNodes)}for(;null!==(s=$t.nextNode())&&h.length<r;){if(1===s.nodeType){if(s.hasAttributes()){const t=[];for(const e of s.getAttributeNames())if(e.endsWith(it)||e.startsWith(st)){const i=a[o++];if(t.push(e),void 0!==i){const t=s.getAttribute(i.toLowerCase()+it).split(st),e=/([.?@])?(.*)/.exec(i);h.push({type:1,index:n,name:e[2],strings:t,ctor:"."===e[1]?Ot:"?"===e[1]?Mt:"@"===e[1]?Ut:jt})}else h.push({type:6,index:n})}for(const e of t)s.removeAttribute(e)}if(bt.test(s.tagName)){const t=s.textContent.split(st),e=t.length-1;if(e>0){s.textContent=tt?tt.emptyScript:"";for(let i=0;i<e;i++)s.append(t[i],ht()),$t.nextNode(),h.push({type:2,index:++n});s.append(t[e],ht())}}}else if(8===s.nodeType)if(s.data===nt)h.push({type:2,index:n});else{let t=-1;for(;-1!==(t=s.data.indexOf(st,t+1));)h.push({type:7,index:n}),t+=st.length-1}n++}}static createElement(t,e){const i=rt.createElement("template");return i.innerHTML=t,i}}function Et(t,e,i=t,s){var n,o,r,h;if(e===mt)return e;let l=void 0!==s?null===(n=i._$Co)||void 0===n?void 0:n[s]:i._$Cl;const a=lt(e)?void 0:e._$litDirective$;return(null==l?void 0:l.constructor)!==a&&(null===(o=null==l?void 0:l._$AO)||void 0===o||o.call(l,!1),void 0===a?l=void 0:(l=new a(t),l._$AT(t,i,s)),void 0!==s?(null!==(r=(h=i)._$Co)&&void 0!==r?r:h._$Co=[])[s]=l:i._$Cl=l),void 0!==l&&(e=Et(t,l._$AS(t,e.values),l,s)),e}class _t{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){var e;const{el:{content:i},parts:s}=this._$AD,n=(null!==(e=null==t?void 0:t.creationScope)&&void 0!==e?e:rt).importNode(i,!0);$t.currentNode=n;let o=$t.nextNode(),r=0,h=0,l=s[0];for(;void 0!==l;){if(r===l.index){let e;2===l.type?e=new Ct(o,o.nextSibling,this,t):1===l.type?e=new l.ctor(o,l.name,l.strings,this,t):6===l.type&&(e=new Rt(o,this,t)),this._$AV.push(e),l=s[++h]}r!==(null==l?void 0:l.index)&&(o=$t.nextNode(),r++)}return $t.currentNode=rt,n}v(t){let e=0;for(const i of this._$AV)void 0!==i&&(void 0!==i.strings?(i._$AI(t,i,e),e+=i.strings.length-2):i._$AI(t[e])),e++}}class Ct{constructor(t,e,i,s){var n;this.type=2,this._$AH=yt,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=i,this.options=s,this._$Cp=null===(n=null==s?void 0:s.isConnected)||void 0===n||n}get _$AU(){var t,e;return null!==(e=null===(t=this._$AM)||void 0===t?void 0:t._$AU)&&void 0!==e?e:this._$Cp}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return void 0!==e&&11===(null==t?void 0:t.nodeType)&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=Et(this,t,e),lt(t)?t===yt||null==t||""===t?(this._$AH!==yt&&this._$AR(),this._$AH=yt):t!==this._$AH&&t!==mt&&this._(t):void 0!==t._$litType$?this.g(t):void 0!==t.nodeType?this.$(t):(t=>at(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!==yt&<(this._$AH)?this._$AA.nextSibling.data=t:this.$(rt.createTextNode(t)),this._$AH=t}g(t){var e;const{values:i,_$litType$:s}=t,n="number"==typeof s?this._$AC(t):(void 0===s.el&&(s.el=St.createElement(xt(s.h,s.h[0]),this.options)),s);if((null===(e=this._$AH)||void 0===e?void 0:e._$AD)===n)this._$AH.v(i);else{const t=new _t(n,this),e=t.u(this.options);t.v(i),this.$(e),this._$AH=t}}_$AC(t){let e=wt.get(t.strings);return void 0===e&&wt.set(t.strings,e=new St(t)),e}T(t){at(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let i,s=0;for(const n of t)s===e.length?e.push(i=new Ct(this.k(ht()),this.k(ht()),this,this.options)):i=e[s],i._$AI(n),s++;s<e.length&&(this._$AR(i&&i._$AB.nextSibling,s),e.length=s)}_$AR(t=this._$AA.nextSibling,e){var i;for(null===(i=this._$AP)||void 0===i||i.call(this,!1,!0,e);t&&t!==this._$AB;){const e=t.nextSibling;t.remove(),t=e}}setConnected(t){var e;void 0===this._$AM&&(this._$Cp=t,null===(e=this._$AP)||void 0===e||e.call(this,t))}}class jt{constructor(t,e,i,s,n){this.type=1,this._$AH=yt,this._$AN=void 0,this.element=t,this.name=e,this._$AM=s,this.options=n,i.length>2||""!==i[0]||""!==i[1]?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=yt}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,e=this,i,s){const n=this.strings;let o=!1;if(void 0===n)t=Et(this,t,e,0),o=!lt(t)||t!==this._$AH&&t!==mt,o&&(this._$AH=t);else{const s=t;let r,h;for(t=n[0],r=0;r<n.length-1;r++)h=Et(this,s[i+r],e,r),h===mt&&(h=this._$AH[r]),o||(o=!lt(h)||h!==this._$AH[r]),h===yt?t=yt:t!==yt&&(t+=(null!=h?h:"")+n[r+1]),this._$AH[r]=h}o&&!s&&this.j(t)}j(t){t===yt?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}}class Ot extends jt{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===yt?void 0:t}}const Tt=tt?tt.emptyScript:"";class Mt extends jt{constructor(){super(...arguments),this.type=4}j(t){t&&t!==yt?this.element.setAttribute(this.name,Tt):this.element.removeAttribute(this.name)}}class Ut extends jt{constructor(t,e,i,s,n){super(t,e,i,s,n),this.type=5}_$AI(t,e=this){var i;if((t=null!==(i=Et(this,t,e,0))&&void 0!==i?i:yt)===mt)return;const s=this._$AH,n=t===yt&&s!==yt||t.capture!==s.capture||t.once!==s.once||t.passive!==s.passive,o=t!==yt&&(s===yt||n);n&&this.element.removeEventListener(this.name,this,s),o&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var e,i;"function"==typeof this._$AH?this._$AH.call(null!==(i=null===(e=this.options)||void 0===e?void 0:e.host)&&void 0!==i?i:this.element,t):this._$AH.handleEvent(t)}}class Rt{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){Et(this,t)}}const zt=Y.litHtmlPolyfillSupport;null==zt||zt(St,Ct),(null!==(X=Y.litHtmlVersions)&&void 0!==X?X:Y.litHtmlVersions=[]).push("2.8.0");
|
|
24
|
+
/**
|
|
25
|
+
* @license
|
|
26
|
+
* Copyright 2017 Google LLC
|
|
27
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
28
|
+
*/
|
|
29
|
+
var Nt,It;class Dt extends g{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var t,e;const i=super.createRenderRoot();return null!==(t=(e=this.renderOptions).renderBefore)&&void 0!==t||(e.renderBefore=i.firstChild),i}update(t){const e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=((t,e,i)=>{var s,n;const o=null!==(s=null==i?void 0:i.renderBefore)&&void 0!==s?s:e;let r=o._$litPart$;if(void 0===r){const t=null!==(n=null==i?void 0:i.renderBefore)&&void 0!==n?n:null;o._$litPart$=r=new Ct(e.insertBefore(ht(),t),t,void 0,null!=i?i:{})}return r._$AI(t),r})(e,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}}Dt.finalized=!0,Dt._$litElement$=!0,null===(Nt=globalThis.litElementHydrateSupport)||void 0===Nt||Nt.call(globalThis,{LitElement:Dt});const Bt=globalThis.litElementPolyfillSupport;null==Bt||Bt({LitElement:Dt}),(null!==(It=globalThis.litElementVersions)&&void 0!==It?It:globalThis.litElementVersions=[]).push("3.3.3");
|
|
30
|
+
/**
|
|
31
|
+
* @license
|
|
32
|
+
* Copyright 2017 Google LLC
|
|
33
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
34
|
+
*/
|
|
35
|
+
const Pt=(t,e)=>"method"===e.kind&&e.descriptor&&!("value"in e.descriptor)?{...e,finisher(i){i.createProperty(e.key,t)}}:{kind:"field",key:Symbol(),placement:"own",descriptor:{},originalKey:e.key,initializer(){"function"==typeof e.initializer&&(this[e.key]=e.initializer.call(this))},finisher(i){i.createProperty(e.key,t)}};
|
|
36
|
+
/**
|
|
37
|
+
* @license
|
|
38
|
+
* Copyright 2017 Google LLC
|
|
39
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
40
|
+
*/function qt(t){return(e,i)=>void 0!==i?((t,e,i)=>{e.constructor.createProperty(i,t)})(t,e,i):Pt(t,e)
|
|
41
|
+
/**
|
|
42
|
+
* @license
|
|
43
|
+
* Copyright 2021 Google LLC
|
|
44
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
45
|
+
*/}var Ht;null===(Ht=window.HTMLSlotElement)||void 0===Ht||Ht.prototype.assignedElements;
|
|
46
|
+
/**
|
|
47
|
+
* @license
|
|
48
|
+
* Copyright 2017 Google LLC
|
|
49
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
50
|
+
*/
|
|
51
|
+
const Lt=1,Kt=t=>(...e)=>({_$litDirective$:t,values:e});class Vt{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,i){this._$Ct=t,this._$AM=e,this._$Ci=i}_$AS(t,e){return this.update(t,e)}update(t,e){return this.render(...e)}}
|
|
52
|
+
/**
|
|
53
|
+
* @license
|
|
54
|
+
* Copyright 2018 Google LLC
|
|
55
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
56
|
+
*/const Wt=Kt(class extends Vt{constructor(t){var e;if(super(t),t.type!==Lt||"class"!==t.name||(null===(e=t.strings)||void 0===e?void 0:e.length)>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(t){return" "+Object.keys(t).filter((e=>t[e])).join(" ")+" "}update(t,[e]){var i,s;if(void 0===this.it){this.it=new Set,void 0!==t.strings&&(this.nt=new Set(t.strings.join(" ").split(/\s/).filter((t=>""!==t))));for(const t in e)e[t]&&!(null===(i=this.nt)||void 0===i?void 0:i.has(t))&&this.it.add(t);return this.render(e)}const n=t.element.classList;this.it.forEach((t=>{t in e||(n.remove(t),this.it.delete(t))}));for(const t in e){const i=!!e[t];i===this.it.has(t)||(null===(s=this.nt)||void 0===s?void 0:s.has(t))||(i?(n.add(t),this.it.add(t)):(n.remove(t),this.it.delete(t)))}return N}}),Zt="important",Ft=" !"+Zt,Jt=Kt(class extends Vt{constructor(t){var e;if(super(t),t.type!==Lt||"style"!==t.name||(null===(e=t.strings)||void 0===e?void 0:e.length)>2)throw Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.")}render(t){return Object.keys(t).reduce(((e,i)=>{const s=t[i];return null==s?e:e+`${i=i.includes("-")?i:i.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase()}:${s};`}),"")}update(t,[e]){const{style:i}=t.element;if(void 0===this.ht){this.ht=new Set;for(const t in e)this.ht.add(t);return this.render(e)}this.ht.forEach((t=>{null==e[t]&&(this.ht.delete(t),t.includes("-")?i.removeProperty(t):i[t]="")}));for(const t in e){const s=e[t];if(null!=s){this.ht.add(t);const e="string"==typeof s&&s.endsWith(Ft);t.includes("-")||e?i.setProperty(t,e?s.slice(0,-11):s,e?Zt:""):i[t]=s}}return N}}),Gt=((t,...e)=>{const s=1===t.length?t[0]:e.reduce(((e,i,s)=>e+(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.")})(i)+t[s+1]),t[0]);return new n(s,t,i)})`
|
|
57
|
+
:host {
|
|
58
|
+
display: block;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
.skeleton {
|
|
62
|
+
display: flex;
|
|
63
|
+
flex-direction: column;
|
|
64
|
+
gap: 16px;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
.skeleton-header {
|
|
68
|
+
display: flex;
|
|
69
|
+
align-items: center;
|
|
70
|
+
gap: 16px;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
.skeleton-content {
|
|
74
|
+
flex: 1;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
/* Avatar */
|
|
78
|
+
.skeleton-avatar {
|
|
79
|
+
flex-shrink: 0;
|
|
80
|
+
background: var(--nuraly-skeleton-background, rgba(0, 0, 0, 0.06));
|
|
81
|
+
border-radius: 4px;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
.skeleton-avatar--circle {
|
|
85
|
+
border-radius: 50%;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
.skeleton-avatar--square {
|
|
89
|
+
border-radius: 4px;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
.skeleton-avatar--small {
|
|
93
|
+
width: 32px;
|
|
94
|
+
height: 32px;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
.skeleton-avatar--default {
|
|
98
|
+
width: 40px;
|
|
99
|
+
height: 40px;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
.skeleton-avatar--large {
|
|
103
|
+
width: 48px;
|
|
104
|
+
height: 48px;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
/* Title */
|
|
108
|
+
.skeleton-title {
|
|
109
|
+
height: 16px;
|
|
110
|
+
background: var(--nuraly-skeleton-background, rgba(0, 0, 0, 0.06));
|
|
111
|
+
border-radius: 4px;
|
|
112
|
+
margin-bottom: 12px;
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
.skeleton-title--round {
|
|
116
|
+
border-radius: 8px;
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
/* Paragraph */
|
|
120
|
+
.skeleton-paragraph {
|
|
121
|
+
display: flex;
|
|
122
|
+
flex-direction: column;
|
|
123
|
+
gap: 12px;
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
.skeleton-paragraph-line {
|
|
127
|
+
height: 16px;
|
|
128
|
+
background: var(--nuraly-skeleton-background, rgba(0, 0, 0, 0.06));
|
|
129
|
+
border-radius: 4px;
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
.skeleton-paragraph-line--round {
|
|
133
|
+
border-radius: 8px;
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
/* Button */
|
|
137
|
+
.skeleton-button {
|
|
138
|
+
display: inline-block;
|
|
139
|
+
background: var(--nuraly-skeleton-background, rgba(0, 0, 0, 0.06));
|
|
140
|
+
border-radius: 4px;
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
.skeleton-button--block {
|
|
144
|
+
display: block;
|
|
145
|
+
width: 100%;
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
.skeleton-button--circle {
|
|
149
|
+
border-radius: 50%;
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
.skeleton-button--round {
|
|
153
|
+
border-radius: 16px;
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
.skeleton-button--square {
|
|
157
|
+
border-radius: 4px;
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
.skeleton-button--small {
|
|
161
|
+
width: 64px;
|
|
162
|
+
height: 24px;
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
.skeleton-button--default {
|
|
166
|
+
width: 80px;
|
|
167
|
+
height: 32px;
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
.skeleton-button--large {
|
|
171
|
+
width: 96px;
|
|
172
|
+
height: 40px;
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
/* Input */
|
|
176
|
+
.skeleton-input {
|
|
177
|
+
display: block;
|
|
178
|
+
background: var(--nuraly-skeleton-background, rgba(0, 0, 0, 0.06));
|
|
179
|
+
border-radius: 4px;
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
.skeleton-input--small {
|
|
183
|
+
height: 24px;
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
.skeleton-input--default {
|
|
187
|
+
height: 32px;
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
.skeleton-input--large {
|
|
191
|
+
height: 40px;
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
.skeleton-input--block {
|
|
195
|
+
width: 100%;
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
/* Image */
|
|
199
|
+
.skeleton-image {
|
|
200
|
+
display: flex;
|
|
201
|
+
align-items: center;
|
|
202
|
+
justify-content: center;
|
|
203
|
+
background: var(--nuraly-skeleton-background, rgba(0, 0, 0, 0.06));
|
|
204
|
+
border-radius: 4px;
|
|
205
|
+
width: 100%;
|
|
206
|
+
height: 200px;
|
|
207
|
+
}
|
|
208
|
+
|
|
209
|
+
.skeleton-image-icon {
|
|
210
|
+
font-size: 48px;
|
|
211
|
+
color: var(--nuraly-skeleton-icon-color, rgba(0, 0, 0, 0.15));
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
/* Active animation */
|
|
215
|
+
@keyframes skeleton-loading {
|
|
216
|
+
0% {
|
|
217
|
+
background-position: 100% 50%;
|
|
218
|
+
}
|
|
219
|
+
100% {
|
|
220
|
+
background-position: 0 50%;
|
|
221
|
+
}
|
|
222
|
+
}
|
|
223
|
+
|
|
224
|
+
.skeleton--active .skeleton-avatar,
|
|
225
|
+
.skeleton--active .skeleton-title,
|
|
226
|
+
.skeleton--active .skeleton-paragraph-line,
|
|
227
|
+
.skeleton--active .skeleton-button,
|
|
228
|
+
.skeleton--active .skeleton-input,
|
|
229
|
+
.skeleton--active .skeleton-image {
|
|
230
|
+
background: linear-gradient(
|
|
231
|
+
90deg,
|
|
232
|
+
var(--nuraly-skeleton-gradient-from, rgba(0, 0, 0, 0.06)) 25%,
|
|
233
|
+
var(--nuraly-skeleton-gradient-to, rgba(0, 0, 0, 0.15)) 37%,
|
|
234
|
+
var(--nuraly-skeleton-gradient-from, rgba(0, 0, 0, 0.06)) 63%
|
|
235
|
+
);
|
|
236
|
+
background-size: 400% 100%;
|
|
237
|
+
animation: skeleton-loading 1.4s ease infinite;
|
|
238
|
+
}
|
|
239
|
+
|
|
240
|
+
/* Dark theme support */
|
|
241
|
+
:host([theme='carbon-dark']) .skeleton-avatar,
|
|
242
|
+
:host([theme='carbon-dark']) .skeleton-title,
|
|
243
|
+
:host([theme='carbon-dark']) .skeleton-paragraph-line,
|
|
244
|
+
:host([theme='carbon-dark']) .skeleton-button,
|
|
245
|
+
:host([theme='carbon-dark']) .skeleton-input,
|
|
246
|
+
:host([theme='carbon-dark']) .skeleton-image {
|
|
247
|
+
background: rgba(255, 255, 255, 0.08);
|
|
248
|
+
}
|
|
249
|
+
|
|
250
|
+
:host([theme='carbon-dark']) .skeleton-image-icon {
|
|
251
|
+
color: rgba(255, 255, 255, 0.15);
|
|
252
|
+
}
|
|
253
|
+
|
|
254
|
+
:host([theme='carbon-dark']) .skeleton--active .skeleton-avatar,
|
|
255
|
+
:host([theme='carbon-dark']) .skeleton--active .skeleton-title,
|
|
256
|
+
:host([theme='carbon-dark']) .skeleton--active .skeleton-paragraph-line,
|
|
257
|
+
:host([theme='carbon-dark']) .skeleton--active .skeleton-button,
|
|
258
|
+
:host([theme='carbon-dark']) .skeleton--active .skeleton-input,
|
|
259
|
+
:host([theme='carbon-dark']) .skeleton--active .skeleton-image {
|
|
260
|
+
background: linear-gradient(
|
|
261
|
+
90deg,
|
|
262
|
+
rgba(255, 255, 255, 0.08) 25%,
|
|
263
|
+
rgba(255, 255, 255, 0.15) 37%,
|
|
264
|
+
rgba(255, 255, 255, 0.08) 63%
|
|
265
|
+
);
|
|
266
|
+
background-size: 400% 100%;
|
|
267
|
+
}
|
|
268
|
+
|
|
269
|
+
/* Content wrapper for loading state */
|
|
270
|
+
.skeleton-wrapper {
|
|
271
|
+
display: block;
|
|
272
|
+
}
|
|
273
|
+
|
|
274
|
+
.skeleton-wrapper--hidden {
|
|
275
|
+
display: none;
|
|
276
|
+
}
|
|
277
|
+
`
|
|
278
|
+
/**
|
|
279
|
+
* @license
|
|
280
|
+
* Copyright 2023 Nuraly, Laabidi Aymen
|
|
281
|
+
* SPDX-License-Identifier: MIT
|
|
282
|
+
*/,Qt=t=>class extends t{constructor(){super(...arguments),this.handleSystemThemeChange=()=>{this.closest("[data-theme]")||document.documentElement.hasAttribute("data-theme")||this.requestUpdate()}}connectedCallback(){super.connectedCallback(),this.setupThemeObserver(),this.setupDesignSystemObserver(),this.setupSystemThemeListener()}disconnectedCallback(){var t,e,i;super.disconnectedCallback(),null===(t=this.themeObserver)||void 0===t||t.disconnect(),null===(e=this.designSystemObserver)||void 0===e||e.disconnect(),null===(i=this.mediaQuery)||void 0===i||i.removeEventListener("change",this.handleSystemThemeChange)}get currentTheme(){var t,e;const i=(null===(t=this.closest("[data-theme]"))||void 0===t?void 0:t.getAttribute("data-theme"))||document.documentElement.getAttribute("data-theme");return i||((null===(e=window.matchMedia)||void 0===e?void 0:e.call(window,"(prefers-color-scheme: dark)").matches)?"dark":"light")}get currentDesignSystem(){var t;const e=(null===(t=this.closest("[design-system]"))||void 0===t?void 0:t.getAttribute("design-system"))||document.documentElement.getAttribute("design-system");return"carbon"===e?e:"default"}setupThemeObserver(){this.themeObserver=new MutationObserver((()=>{this.requestUpdate()})),this.themeObserver.observe(document.documentElement,{attributes:!0,attributeFilter:["data-theme"]})}setupDesignSystemObserver(){this.designSystemObserver=new MutationObserver((()=>{this.requestUpdate()})),this.designSystemObserver.observe(document.documentElement,{attributes:!0,attributeFilter:["design-system"]})}setupSystemThemeListener(){window.matchMedia&&(this.mediaQuery=window.matchMedia("(prefers-color-scheme: dark)"),this.mediaQuery.addEventListener("change",this.handleSystemThemeChange))}},Xt=()=>{var t;return void 0!==globalThis.litElementVersions||"undefined"!=typeof process&&"development"===(null===(t=process.env)||void 0===t?void 0:t.NODE_ENV)||"undefined"!=typeof window&&("localhost"===window.location.hostname||"127.0.0.1"===window.location.hostname)},Yt=t=>class extends t{constructor(){super(...arguments),this.requiredComponents=[]}validateDependencies(){if(Xt())for(const t of this.requiredComponents)if(!this.isComponentAvailable(t))throw new Error(`Required component "${t}" is not registered. Please import and register the component before using ${this.tagName.toLowerCase()}. Example: import '@nuralyui/${t}';`)}validateDependenciesWithHandler(t){if(!Xt())return!0;let e=!0;for(const i of this.requiredComponents)if(!this.isComponentAvailable(i)){e=!1;const s=new Error(`Required component "${i}" is not registered. Please import and register the component before using ${this.tagName.toLowerCase()}.`);t?t(i,s):console.error(s.message)}return e}isComponentAvailable(t){return!!customElements.get(t)}getMissingDependencies(){return this.requiredComponents.filter((t=>!this.isComponentAvailable(t)))}areDependenciesAvailable(){return this.requiredComponents.every((t=>this.isComponentAvailable(t)))}addRequiredComponent(t){this.requiredComponents.includes(t)||this.requiredComponents.push(t)}removeRequiredComponent(t){const e=this.requiredComponents.indexOf(t);e>-1&&this.requiredComponents.splice(e,1)}},te=t=>class extends t{dispatchCustomEvent(t,e){this.dispatchEvent(new CustomEvent(t,{detail:e,bubbles:!0,composed:!0}))}dispatchEventWithMetadata(t,e){var i;const s=Object.assign(Object.assign({},e),{timestamp:Date.now(),componentName:(null===(i=this.tagName)||void 0===i?void 0:i.toLowerCase())||"unknown"});this.dispatchCustomEvent(t,s)}dispatchInputEvent(t,e){const i=Object.assign({target:e.target||this,value:e.value,originalEvent:e.originalEvent},e);this.dispatchCustomEvent(t,i)}dispatchFocusEvent(t,e){const i=Object.assign({target:e.target||this,value:e.value,focused:e.focused,cursorPosition:e.cursorPosition,selectedText:e.selectedText},e);this.dispatchCustomEvent(t,i)}dispatchValidationEvent(t,e){var i;const s=Object.assign({target:e.target||this,value:e.value,isValid:null!==(i=e.isValid)&&void 0!==i&&i,error:e.error},e);this.dispatchCustomEvent(t,s)}dispatchActionEvent(t,e){const i=Object.assign({target:e.target||this,action:e.action,previousValue:e.previousValue,newValue:e.newValue},e);this.dispatchCustomEvent(t,i)}isReadonlyKeyAllowed(t){if(t.ctrlKey||t.metaKey){return["KeyA","KeyC"].includes(t.code)}return["Tab","Escape","ArrowLeft","ArrowRight","ArrowUp","ArrowDown","Home","End","PageUp","PageDown"].includes(t.key)}isActivationKey(t){return"Enter"===t.key||" "===t.key}};
|
|
283
|
+
/**
|
|
284
|
+
* @license
|
|
285
|
+
* Copyright 2018 Google LLC
|
|
286
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
287
|
+
*/
|
|
288
|
+
/**
|
|
289
|
+
* @license
|
|
290
|
+
* Copyright 2023 Nuraly, Laabidi Aymen
|
|
291
|
+
* SPDX-License-Identifier: MIT
|
|
292
|
+
*/
|
|
293
|
+
var ee=function(t,e,i,s){for(var n,o=arguments.length,r=o<3?e:null===s?s=Object.getOwnPropertyDescriptor(e,i):s,h=t.length-1;h>=0;h--)(n=t[h])&&(r=(o<3?n(r):o>3?n(e,i,r):n(e,i))||r);return o>3&&r&&Object.defineProperty(e,i,r),r};let ie=class extends((t=>Yt(Qt(te(t))))(Dt)){constructor(){super(...arguments),this.active=!1,this.avatar=!1,this.avatarConfig={},this.loading=!0,this.paragraph=!0,this.paragraphConfig={},this.round=!1,this.showTitle=!0,this.titleConfig={},this.buttonConfig={},this.inputConfig={},this.imageConfig={},this.block=!1,this.shape="default",this.size="default"}renderAvatar(){const t="object"==typeof this.avatar?this.avatar:this.avatarConfig,e=t.shape||"circle",i=t.size||"default",s="number"==typeof i?"":i,n="number"==typeof i?{width:`${i}px`,height:`${i}px`}:{};return kt`
|
|
294
|
+
<div
|
|
295
|
+
class=${Wt({"skeleton-avatar":!0,[`skeleton-avatar--${e}`]:!0,[`skeleton-avatar--${s}`]:!!s})}
|
|
296
|
+
style=${Jt(n)}></div>
|
|
297
|
+
`}renderTitle(){const t=("object"==typeof this.showTitle?this.showTitle:this.titleConfig).width,e=t?{width:"number"==typeof t?`${t}px`:t}:{width:"38%"};return kt`
|
|
298
|
+
<div
|
|
299
|
+
class=${Wt({"skeleton-title":!0,"skeleton-title--round":this.round})}
|
|
300
|
+
style=${Jt(e)}></div>
|
|
301
|
+
`}renderParagraph(){const t="object"==typeof this.paragraph?this.paragraph:this.paragraphConfig,e=t.rows||3,i=t.width;return kt`
|
|
302
|
+
<div class="skeleton-paragraph">
|
|
303
|
+
${Array.from({length:e},((t,s)=>kt`
|
|
304
|
+
<div
|
|
305
|
+
class=${Wt({"skeleton-paragraph-line":!0,"skeleton-paragraph-line--round":this.round})}
|
|
306
|
+
style=${Jt((t=>{if(Array.isArray(i)){const e=i[t];return e?{width:"number"==typeof e?`${e}px`:e}:{}}return t===e-1?i?{width:"number"==typeof i?`${i}px`:i}:{width:"61%"}:{}})(s))}></div>
|
|
307
|
+
`))}
|
|
308
|
+
</div>
|
|
309
|
+
`}renderButton(){const t=this.buttonConfig,e=t.shape||this.shape,i=t.size||this.size,s=void 0!==t.block?t.block:this.block;return kt`
|
|
310
|
+
<div
|
|
311
|
+
class=${Wt({"skeleton-button":!0,[`skeleton-button--${e}`]:!0,[`skeleton-button--${i}`]:!0,"skeleton-button--block":s})}></div>
|
|
312
|
+
`}renderInput(){const t=this.inputConfig,e=t.size||this.size,i=void 0!==t.block?t.block:this.block;return kt`
|
|
313
|
+
<div
|
|
314
|
+
class=${Wt({"skeleton-input":!0,[`skeleton-input--${e}`]:!0,"skeleton-input--block":i})}></div>
|
|
315
|
+
`}renderImage(){return kt`
|
|
316
|
+
<div class="skeleton-image">
|
|
317
|
+
<svg
|
|
318
|
+
class="skeleton-image-icon"
|
|
319
|
+
viewBox="0 0 1024 1024"
|
|
320
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
321
|
+
width="48"
|
|
322
|
+
height="48">
|
|
323
|
+
<path
|
|
324
|
+
d="M928 160H96c-17.7 0-32 14.3-32 32v640c0 17.7 14.3 32 32 32h832c17.7 0 32-14.3 32-32V192c0-17.7-14.3-32-32-32zM338 304c35.3 0 64 28.7 64 64s-28.7 64-64 64-64-28.7-64-64 28.7-64 64-64zm513.9 437.1c-2.1 2.1-4.5 3.8-7 5.1-5.2 2.7-11.1 4.1-17.1 4.1H196.2c-6 0-11.9-1.4-17.1-4.1-2.5-1.3-4.9-3-7-5.1-4.4-4.4-7.1-10.5-7.1-17.1 0-3.7.8-7.4 2.5-10.8 1.6-3.4 4.1-6.4 7.1-8.8l112.3-97.5c8.8-7.6 22.1-7.6 30.9 0l148.5 129 203.9-177c8.8-7.6 22.1-7.6 30.9 0l179.8 156.1c3 2.6 5.5 5.7 7.1 9.3 1.7 3.7 2.5 7.6 2.5 11.6-.1 6.6-2.8 12.7-7.2 17.1z"
|
|
325
|
+
fill="currentColor" />
|
|
326
|
+
</svg>
|
|
327
|
+
</div>
|
|
328
|
+
`}renderStandaloneElement(){switch(this.element){case"button":return this.renderButton();case"input":return this.renderInput();case"image":return this.renderImage();case"avatar":return this.renderAvatar();default:return kt``}}renderSkeleton(){return this.element?kt`
|
|
329
|
+
<div
|
|
330
|
+
class=${Wt({skeleton:!0,"skeleton--active":this.active||"avatar"===this.element&&!!this.avatarConfig.active})}>
|
|
331
|
+
${this.renderStandaloneElement()}
|
|
332
|
+
</div>
|
|
333
|
+
`:kt`
|
|
334
|
+
<div
|
|
335
|
+
class=${Wt({skeleton:!0,"skeleton--active":this.active})}>
|
|
336
|
+
${this.avatar||this.showTitle||this.paragraph?kt`
|
|
337
|
+
${this.avatar?kt`
|
|
338
|
+
<div class="skeleton-header">
|
|
339
|
+
${this.renderAvatar()}
|
|
340
|
+
${this.showTitle||this.paragraph?kt`
|
|
341
|
+
<div class="skeleton-content">
|
|
342
|
+
${this.showTitle?this.renderTitle():""}
|
|
343
|
+
${this.paragraph?this.renderParagraph():""}
|
|
344
|
+
</div>
|
|
345
|
+
`:""}
|
|
346
|
+
</div>
|
|
347
|
+
`:kt`
|
|
348
|
+
<div class="skeleton-content">
|
|
349
|
+
${this.showTitle?this.renderTitle():""}
|
|
350
|
+
${this.paragraph?this.renderParagraph():""}
|
|
351
|
+
</div>
|
|
352
|
+
`}
|
|
353
|
+
`:""}
|
|
354
|
+
</div>
|
|
355
|
+
`}render(){return this.loading?this.renderSkeleton():kt`
|
|
356
|
+
<div class="skeleton-wrapper">
|
|
357
|
+
<slot name="content"><slot></slot></slot>
|
|
358
|
+
</div>
|
|
359
|
+
`}};ie.styles=Gt,ee([qt({type:Boolean})],ie.prototype,"active",void 0),ee([qt({type:Boolean})],ie.prototype,"avatar",void 0),ee([qt({type:Object,attribute:"avatar-config"})],ie.prototype,"avatarConfig",void 0),ee([qt({type:Boolean})],ie.prototype,"loading",void 0),ee([qt({type:Boolean})],ie.prototype,"paragraph",void 0),ee([qt({type:Object,attribute:"paragraph-config"})],ie.prototype,"paragraphConfig",void 0),ee([qt({type:Boolean})],ie.prototype,"round",void 0),ee([qt({type:Boolean,attribute:"show-title"})],ie.prototype,"showTitle",void 0),ee([qt({type:Object,attribute:"title-config"})],ie.prototype,"titleConfig",void 0),ee([qt({type:String})],ie.prototype,"element",void 0),ee([qt({type:Object,attribute:"button-config"})],ie.prototype,"buttonConfig",void 0),ee([qt({type:Object,attribute:"input-config"})],ie.prototype,"inputConfig",void 0),ee([qt({type:Object,attribute:"image-config"})],ie.prototype,"imageConfig",void 0),ee([qt({type:Boolean})],ie.prototype,"block",void 0),ee([qt({type:String})],ie.prototype,"shape",void 0),ee([qt({type:String})],ie.prototype,"size",void 0),ie=ee([(t=>e=>"function"==typeof e?((t,e)=>(customElements.define(t,e),e))(t,e):((t,e)=>{const{kind:i,elements:s}=e;return{kind:i,elements:s,finisher(e){customElements.define(t,e)}}})(t,e))("nr-skeleton")],ie);export{ie as NrSkeletonElement};
|
package/index.d.ts
ADDED
package/index.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/skeleton/index.ts"],"names":[],"mappings":"AAAA,cAAc,yBAAyB,CAAC;AACxC,cAAc,qBAAqB,CAAC"}
|
package/index.js
ADDED
package/index.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/skeleton/index.ts"],"names":[],"mappings":"AAAA,cAAc,yBAAyB,CAAC;AACxC,cAAc,qBAAqB,CAAC","sourcesContent":["export * from './skeleton.component.js';\nexport * from './skeleton.types.js';\n"]}
|
package/package.json
ADDED
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@nuralyui/skeleton",
|
|
3
|
+
"version": "0.0.1",
|
|
4
|
+
"description": "NuralyUI Skeleton Component - Placeholder for loading content",
|
|
5
|
+
"author": "Nuraly, Laabidi Aymen",
|
|
6
|
+
"license": "MIT",
|
|
7
|
+
"type": "module",
|
|
8
|
+
"main": "./index.js",
|
|
9
|
+
"module": "./index.js",
|
|
10
|
+
"exports": {
|
|
11
|
+
".": {
|
|
12
|
+
"import": "./index.js"
|
|
13
|
+
},
|
|
14
|
+
"./bundle": {
|
|
15
|
+
"import": "./bundle.js"
|
|
16
|
+
}
|
|
17
|
+
},
|
|
18
|
+
"keywords": [
|
|
19
|
+
"web-components",
|
|
20
|
+
"lit-element",
|
|
21
|
+
"skeleton",
|
|
22
|
+
"loading",
|
|
23
|
+
"placeholder",
|
|
24
|
+
"ui",
|
|
25
|
+
"nuralyui"
|
|
26
|
+
],
|
|
27
|
+
"repository": {
|
|
28
|
+
"type": "git",
|
|
29
|
+
"url": "https://github.com/NuralyUI/NuralyUI.git"
|
|
30
|
+
}
|
|
31
|
+
}
|
package/react.d.ts
ADDED
package/react.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"react.d.ts","sourceRoot":"","sources":["../../../src/components/skeleton/react.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AAE5D,eAAO,MAAM,UAAU,oEAKrB,CAAC"}
|
package/react.js
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { createComponent } from '@lit-labs/react';
|
|
3
|
+
import { NrSkeletonElement } from './skeleton.component.js';
|
|
4
|
+
export const NrSkeleton = createComponent({
|
|
5
|
+
tagName: 'nr-skeleton',
|
|
6
|
+
elementClass: NrSkeletonElement,
|
|
7
|
+
react: React,
|
|
8
|
+
events: {},
|
|
9
|
+
});
|
|
10
|
+
//# sourceMappingURL=react.js.map
|
package/react.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"react.js","sourceRoot":"","sources":["../../../src/components/skeleton/react.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC;AAClD,OAAO,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AAE5D,MAAM,CAAC,MAAM,UAAU,GAAG,eAAe,CAAC;IACxC,OAAO,EAAE,aAAa;IACtB,YAAY,EAAE,iBAAiB;IAC/B,KAAK,EAAE,KAAK;IACZ,MAAM,EAAE,EAAE;CACX,CAAC,CAAC","sourcesContent":["import * as React from 'react';\nimport { createComponent } from '@lit-labs/react';\nimport { NrSkeletonElement } from './skeleton.component.js';\n\nexport const NrSkeleton = createComponent({\n tagName: 'nr-skeleton',\n elementClass: NrSkeletonElement,\n react: React,\n events: {},\n});\n"]}
|
|
@@ -0,0 +1,165 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright 2023 Nuraly, Laabidi Aymen
|
|
4
|
+
* SPDX-License-Identifier: MIT
|
|
5
|
+
*/
|
|
6
|
+
import { LitElement } from 'lit';
|
|
7
|
+
import { SkeletonShape, SkeletonSize, SkeletonElementType, SkeletonAvatarConfig, SkeletonTitleConfig, SkeletonParagraphConfig, SkeletonButtonConfig, SkeletonInputConfig, SkeletonImageConfig } from './skeleton.types.js';
|
|
8
|
+
declare const NrSkeletonElement_base: (new (...args: any[]) => import("../../shared/dependency-mixin.js").DependencyAware) & (new (...args: any[]) => import("../../shared/theme-mixin.js").ThemeAware) & (new (...args: any[]) => import("../../shared/event-handler-mixin.js").EventHandlerCapable) & typeof LitElement;
|
|
9
|
+
/**
|
|
10
|
+
* # Skeleton Component
|
|
11
|
+
*
|
|
12
|
+
* Provides a placeholder while content is loading, or to visualize content that doesn't exist yet.
|
|
13
|
+
* Improves perceived performance and user experience during data fetching.
|
|
14
|
+
*
|
|
15
|
+
* ## Features
|
|
16
|
+
* - Multiple skeleton elements (Avatar, Title, Paragraph, Button, Input, Image)
|
|
17
|
+
* - Active animation effect
|
|
18
|
+
* - Customizable shapes (circle, square, round)
|
|
19
|
+
* - Configurable sizes (small, default, large)
|
|
20
|
+
* - Loading state management
|
|
21
|
+
* - Theme-aware styling
|
|
22
|
+
* - Flexible configuration options
|
|
23
|
+
*
|
|
24
|
+
* ## Usage
|
|
25
|
+
* ```html
|
|
26
|
+
* <!-- Basic skeleton -->
|
|
27
|
+
* <nr-skeleton></nr-skeleton>
|
|
28
|
+
*
|
|
29
|
+
* <!-- With active animation -->
|
|
30
|
+
* <nr-skeleton active></nr-skeleton>
|
|
31
|
+
*
|
|
32
|
+
* <!-- Complex skeleton with avatar -->
|
|
33
|
+
* <nr-skeleton avatar active></nr-skeleton>
|
|
34
|
+
*
|
|
35
|
+
* <!-- Loading state with content -->
|
|
36
|
+
* <nr-skeleton loading>
|
|
37
|
+
* <div slot="content">
|
|
38
|
+
* <h3>Article Title</h3>
|
|
39
|
+
* <p>Article content goes here...</p>
|
|
40
|
+
* </div>
|
|
41
|
+
* </nr-skeleton>
|
|
42
|
+
*
|
|
43
|
+
* <!-- Skeleton button -->
|
|
44
|
+
* <nr-skeleton element="button" active></nr-skeleton>
|
|
45
|
+
*
|
|
46
|
+
* <!-- Skeleton input -->
|
|
47
|
+
* <nr-skeleton element="input" block></nr-skeleton>
|
|
48
|
+
* ```
|
|
49
|
+
*
|
|
50
|
+
* @element nr-skeleton
|
|
51
|
+
*
|
|
52
|
+
* @slot content - Content to show when loading is false
|
|
53
|
+
*
|
|
54
|
+
* @cssproperty --nuraly-skeleton-background - Background color of skeleton elements
|
|
55
|
+
* @cssproperty --nuraly-skeleton-gradient-from - Start color of active animation gradient
|
|
56
|
+
* @cssproperty --nuraly-skeleton-gradient-to - End color of active animation gradient
|
|
57
|
+
* @cssproperty --nuraly-skeleton-icon-color - Color of image placeholder icon
|
|
58
|
+
*/
|
|
59
|
+
export declare class NrSkeletonElement extends NrSkeletonElement_base {
|
|
60
|
+
static styles: import("lit").CSSResult;
|
|
61
|
+
/**
|
|
62
|
+
* Show animation effect
|
|
63
|
+
*/
|
|
64
|
+
active: boolean;
|
|
65
|
+
/**
|
|
66
|
+
* Show avatar placeholder
|
|
67
|
+
*/
|
|
68
|
+
avatar: boolean;
|
|
69
|
+
/**
|
|
70
|
+
* Avatar configuration
|
|
71
|
+
*/
|
|
72
|
+
avatarConfig: SkeletonAvatarConfig;
|
|
73
|
+
/**
|
|
74
|
+
* Display the skeleton when true
|
|
75
|
+
*/
|
|
76
|
+
loading: boolean;
|
|
77
|
+
/**
|
|
78
|
+
* Show paragraph placeholder
|
|
79
|
+
*/
|
|
80
|
+
paragraph: boolean;
|
|
81
|
+
/**
|
|
82
|
+
* Paragraph configuration
|
|
83
|
+
*/
|
|
84
|
+
paragraphConfig: SkeletonParagraphConfig;
|
|
85
|
+
/**
|
|
86
|
+
* Show paragraph and title radius when true
|
|
87
|
+
*/
|
|
88
|
+
round: boolean;
|
|
89
|
+
/**
|
|
90
|
+
* Show title placeholder
|
|
91
|
+
*/
|
|
92
|
+
showTitle: boolean;
|
|
93
|
+
/**
|
|
94
|
+
* Title configuration
|
|
95
|
+
*/
|
|
96
|
+
titleConfig: SkeletonTitleConfig;
|
|
97
|
+
/**
|
|
98
|
+
* Element type for standalone skeleton elements
|
|
99
|
+
*/
|
|
100
|
+
element?: SkeletonElementType;
|
|
101
|
+
/**
|
|
102
|
+
* Button configuration
|
|
103
|
+
*/
|
|
104
|
+
buttonConfig: SkeletonButtonConfig;
|
|
105
|
+
/**
|
|
106
|
+
* Input configuration
|
|
107
|
+
*/
|
|
108
|
+
inputConfig: SkeletonInputConfig;
|
|
109
|
+
/**
|
|
110
|
+
* Image configuration
|
|
111
|
+
*/
|
|
112
|
+
imageConfig: SkeletonImageConfig;
|
|
113
|
+
/**
|
|
114
|
+
* Block style for button/input
|
|
115
|
+
*/
|
|
116
|
+
block: boolean;
|
|
117
|
+
/**
|
|
118
|
+
* Shape for standalone elements
|
|
119
|
+
*/
|
|
120
|
+
shape: SkeletonShape;
|
|
121
|
+
/**
|
|
122
|
+
* Size for standalone elements
|
|
123
|
+
*/
|
|
124
|
+
size: SkeletonSize;
|
|
125
|
+
/**
|
|
126
|
+
* Render avatar skeleton
|
|
127
|
+
*/
|
|
128
|
+
private renderAvatar;
|
|
129
|
+
/**
|
|
130
|
+
* Render title skeleton
|
|
131
|
+
*/
|
|
132
|
+
private renderTitle;
|
|
133
|
+
/**
|
|
134
|
+
* Render paragraph skeleton
|
|
135
|
+
*/
|
|
136
|
+
private renderParagraph;
|
|
137
|
+
/**
|
|
138
|
+
* Render button skeleton
|
|
139
|
+
*/
|
|
140
|
+
private renderButton;
|
|
141
|
+
/**
|
|
142
|
+
* Render input skeleton
|
|
143
|
+
*/
|
|
144
|
+
private renderInput;
|
|
145
|
+
/**
|
|
146
|
+
* Render image skeleton
|
|
147
|
+
*/
|
|
148
|
+
private renderImage;
|
|
149
|
+
/**
|
|
150
|
+
* Render standalone element
|
|
151
|
+
*/
|
|
152
|
+
private renderStandaloneElement;
|
|
153
|
+
/**
|
|
154
|
+
* Render full skeleton
|
|
155
|
+
*/
|
|
156
|
+
private renderSkeleton;
|
|
157
|
+
render(): import("lit").TemplateResult<1>;
|
|
158
|
+
}
|
|
159
|
+
declare global {
|
|
160
|
+
interface HTMLElementTagNameMap {
|
|
161
|
+
'nr-skeleton': NrSkeletonElement;
|
|
162
|
+
}
|
|
163
|
+
}
|
|
164
|
+
export {};
|
|
165
|
+
//# sourceMappingURL=skeleton.component.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"skeleton.component.d.ts","sourceRoot":"","sources":["../../../src/components/skeleton/skeleton.component.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAQ,UAAU,EAAE,MAAM,KAAK,CAAC;AAMvC,OAAO,EACH,aAAa,EACb,YAAY,EACZ,mBAAmB,EACnB,oBAAoB,EACpB,mBAAmB,EACnB,uBAAuB,EACvB,oBAAoB,EACpB,mBAAmB,EACnB,mBAAmB,EACtB,MAAM,qBAAqB,CAAC;;AAE7B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiDG;AACH,qBACa,iBAAkB,SAAQ,sBAA6B;IAClE,OAAgB,MAAM,0BAAU;IAEhC;;OAEG;IAC0B,MAAM,UAAS;IAE5C;;OAEG;IAC0B,MAAM,UAAS;IAE5C;;OAEG;IACqD,YAAY,EAAE,oBAAoB,CAAM;IAEhG;;OAEG;IAC0B,OAAO,UAAQ;IAE5C;;OAEG;IAC0B,SAAS,UAAQ;IAE9C;;OAEG;IACwD,eAAe,EAAE,uBAAuB,CAAM;IAEzG;;OAEG;IAC0B,KAAK,UAAS;IAE3C;;OAEG;IACmD,SAAS,UAAQ;IAEvE;;OAEG;IACoD,WAAW,EAAE,mBAAmB,CAAM;IAE7F;;OAEG;IACyB,OAAO,CAAC,EAAE,mBAAmB,CAAC;IAE1D;;OAEG;IACqD,YAAY,EAAE,oBAAoB,CAAM;IAEhG;;OAEG;IACoD,WAAW,EAAE,mBAAmB,CAAM;IAE7F;;OAEG;IACoD,WAAW,EAAE,mBAAmB,CAAM;IAE7F;;OAEG;IAC0B,KAAK,UAAS;IAE3C;;OAEG;IACyB,KAAK,EAAE,aAAa,CAAyB;IAEzE;;OAEG;IACyB,IAAI,EAAE,YAAY,CAAwB;IAEtE;;OAEG;IACH,OAAO,CAAC,YAAY;IAmBpB;;OAEG;IACH,OAAO,CAAC,WAAW;IAenB;;OAEG;IACH,OAAO,CAAC,eAAe;IAoCvB;;OAEG;IACH,OAAO,CAAC,YAAY;IAiBpB;;OAEG;IACH,OAAO,CAAC,WAAW;IAenB;;OAEG;IACH,OAAO,CAAC,WAAW;IAiBnB;;OAEG;IACH,OAAO,CAAC,uBAAuB;IAe/B;;OAEG;IACH,OAAO,CAAC,cAAc;IAiDb,MAAM;CAahB;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,aAAa,EAAE,iBAAiB,CAAC;KAClC;CACF"}
|