@senlinz/import-export 0.0.1-beta.5 → 0.1.0-beta.11
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/README.md +60 -0
- package/dist/components/editable-cell.js +2 -0
- package/dist/components/import-export-definition.js +2 -0
- package/dist/components/import-export-studio.js +2 -0
- package/dist/components/import-export-table.js +2 -0
- package/dist/components/index.js +1 -1
- package/dist/components/p-24a77e62.js +2 -0
- package/dist/components/p-c9904f6a.js +2 -0
- package/dist/components/p-dd1bf849.js +2 -0
- package/dist/components/p-ddbe189c.js +2 -0
- package/dist/components/p-f7586df1.js +2 -0
- package/dist/tests/dist/editable-cell.d.ts +11 -0
- package/dist/{components → tests/dist}/imexport-table.d.ts +1 -1
- package/dist/tests/dist/import-export-definition.d.ts +11 -0
- package/dist/tests/dist/import-export-definiton.d.ts +11 -0
- package/dist/tests/dist/import-export-studio.d.ts +11 -0
- package/dist/tests/dist/import-export-table.d.ts +11 -0
- package/dist/tests/dist/table-definition.d.ts +11 -0
- package/dist/types/components/editable-cell/editable-cell.d.ts +18 -0
- package/dist/types/components/imexport-table/imexport-table.d.ts +4 -5
- package/dist/types/components/import-export-definition/import-export-definition.d.ts +7 -0
- package/dist/types/components/import-export-definition/import-export-definiton.d.ts +6 -0
- package/dist/types/components/import-export-studio/import-export-studio.d.ts +14 -0
- package/dist/types/components/import-export-studio/import-export-table.d.ts +5 -0
- package/dist/types/components/import-export-table/import-export-table.d.ts +6 -0
- package/dist/types/components/table-definition/table-definition.d.ts +0 -0
- package/dist/types/components.d.ts +79 -23
- package/dist/types/declarations/ExcelDefinition.d.ts +46 -0
- package/dist/types/declarations/ExcelDefintion.d.ts +17 -0
- package/dist/types/index.d.ts +15 -1
- package/dist/types/types/index.d.ts +10 -3
- package/dist/types/utils/utils.d.ts +8 -5
- package/dist/types/utils.d.ts +13 -0
- package/package.json +12 -12
- package/dist/components/imexport-table.js +0 -2
- package/dist/components/p-4789c9c3.js +0 -2
- /package/dist/{components → tests/dist}/index.d.ts +0 -0
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
const e="hydrated",n=!1,t=!1,l=!0,o=!1;var r=Object.defineProperty,s=new WeakMap,i=e=>s.get(e),c=(e,n)=>n in e,u=(e,n)=>(0,console.error)(e,n),a=new Map,f="undefined"!=typeof window?window:{},d=f.document||{head:{}},p=f.HTMLElement||class{},m={t:0,l:"",jmp:e=>e(),raf:e=>requestAnimationFrame(e),ael:(e,n,t,l)=>e.addEventListener(n,t,l),rel:(e,n,t,l)=>e.removeEventListener(n,t,l),ce:(e,n)=>new CustomEvent(e,n)},h=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync}catch(e){}return!1})(),y=!1,v=[],$=[],b=(e,n)=>t=>{e.push(t),y||(y=!0,n&&4&m.t?S(g):m.raf(g))},w=e=>{for(let n=0;n<e.length;n++)try{e[n](performance.now())}catch(e){u(e)}e.length=0},g=()=>{w(v),w($),(y=v.length>0)&&m.raf(g)},S=e=>{return Promise.resolve(n).then(e);var n},k=b($,!0),j=e=>{const n=new URL(e,m.l);return n.origin!==f.location.origin?n.href:n.pathname},E=e=>m.l=e,O={},x=e=>"object"===(e=typeof e)||"function"===e;((e,n)=>{for(var t in n)r(e,t,{get:n[t],enumerable:!0})})({},{err:()=>M,map:()=>P,ok:()=>C,unwrap:()=>_,unwrapErr:()=>D});var C=e=>({isOk:!0,isErr:!1,value:e}),M=e=>({isOk:!1,isErr:!0,value:e});function P(e,n){if(e.isOk){const t=n(e.value);return t instanceof Promise?t.then((e=>C(e))):C(t)}if(e.isErr){const n=e.value;return M(n)}throw"should never get here"}var A,H,_=e=>{if(e.isOk)return e.value;throw e.value},D=e=>{if(e.isErr)return e.value;throw e.value},F=(e,n,...t)=>{let l=null,o=null,r=!1,s=!1;const i=[],c=n=>{for(let t=0;t<n.length;t++)l=n[t],Array.isArray(l)?c(l):null!=l&&"boolean"!=typeof l&&((r="function"!=typeof e&&!x(l))&&(l=String(l)),r&&s?i[i.length-1].o+=l:i.push(r?N(null,l):l),s=r)};if(c(t),n&&n.key&&(o=n.key),"function"==typeof e)return e(null===n?{}:n,i,U);const u=N(e,null);return u.i=n,i.length>0&&(u.u=i),u.p=o,u},N=(e,n)=>{const t={t:0,m:e,o:n,h:null,u:null,i:null,p:null};return t},R={},U={forEach:(e,n)=>e.map(L).forEach(n),map:(e,n)=>e.map(L).map(n).map(W)},L=e=>({vattrs:e.i,vchildren:e.u,vkey:e.p,vname:e.v,vtag:e.m,vtext:e.o}),W=e=>{if("function"==typeof e.vtag){const n={...e.vattrs};return e.vkey&&(n.key=e.vkey),e.vname&&(n.name=e.vname),F(e.vtag,n,...e.vchildren||[])}const n=N(e.vtag,e.vtext);return n.i=e.vattrs,n.u=e.vchildren,n.p=e.vkey,n.v=e.vname,n},q=(e,n,t)=>{const l=e;return{emit:e=>V(l,n,{bubbles:!!(4&t),composed:!!(2&t),cancelable:!!(1&t),detail:e})}},V=(e,n,t)=>{const l=m.ce(n,t);return e.dispatchEvent(l),l},z=new WeakMap,B=e=>{const n=e.$,t=e.$hostElement$,l=n.t,o=(n.S,()=>{}),r=((e,n)=>{var t;const l=G(n),o=a.get(l);if(e=11===e.nodeType?e:d,o)if("string"==typeof o){e=e.head||e;let r,s=z.get(e);if(s||z.set(e,s=new Set),!s.has(l)){{r=d.createElement("style"),r.innerHTML=o;const l=null!=(t=m.k)?t:function(){var e,n,t;return null!=(t=null==(n=null==(e=d.head)?void 0:e.querySelector('meta[name="csp-nonce"]'))?void 0:n.getAttribute("content"))?t:void 0}();if(null!=l&&r.setAttribute("nonce",l),!(1&n.t))if("HEAD"===e.nodeName){const n=e.querySelectorAll("link[rel=preconnect]"),t=n.length>0?n[n.length-1].nextSibling:document.querySelector("style");e.insertBefore(r,t)}else"host"in e?e.prepend(r):e.append(r);1&n.t&&"HEAD"!==e.nodeName&&e.insertBefore(r,null)}4&n.t&&(r.innerHTML+="slot-fb{display:contents}slot-fb[hidden]{display:none}"),s&&s.add(l)}}else e.adoptedStyleSheets.includes(o)||(e.adoptedStyleSheets=[...e.adoptedStyleSheets,o]);return l})(t.shadowRoot?t.shadowRoot:t.getRootNode(),n);10&l&&2&l&&(t["s-sc"]=r,t.classList.add(r+"-h")),o()},G=(e,n)=>"sc-"+e.S,I=(e,n,t,l,o,r)=>{if(t!==l){let s=c(e,n),i=n.toLowerCase();if("key"===n);else if("ref"===n)l&&l(e);else if(e.__lookupSetter__(n)||"o"!==n[0]||"n"!==n[1]){const i=x(l);if((s||i&&null!==l)&&!o)try{if(e.tagName.includes("-"))e[n]=l;else{const o=null==l?"":l;"list"===n?s=!1:null!=t&&e[n]==o||("function"==typeof e.__lookupSetter__(n)?e[n]=o:e.setAttribute(n,o))}}catch(e){}null==l||!1===l?!1===l&&""!==e.getAttribute(n)||e.removeAttribute(n):(!s||4&r||o)&&!i&&(l=!0===l?"":l,e.setAttribute(n,l))}else if(n="-"===n[2]?n.slice(3):c(f,i)?i.slice(2):i[2]+n.slice(3),t||l){const o=n.endsWith(J);n=n.replace(K,""),t&&m.rel(e,n,t,o),l&&m.ael(e,n,l,o)}}},J="Capture",K=new RegExp(J+"$"),Q=(e,n,t)=>{const l=11===n.h.nodeType&&n.h.host?n.h.host:n.h,o=e&&e.i||O,r=n.i||O;for(const e of T(Object.keys(o)))e in r||I(l,e,o[e],void 0,t,n.t);for(const e of T(Object.keys(r)))I(l,e,o[e],r[e],t,n.t)};function T(e){return e.includes("ref")?[...e.filter((e=>"ref"!==e)),"ref"]:e}var X=!1,Y=!1,Z=(e,l,o,r)=>{const s=l.u[o];let i,c,u=0;if(null!==s.o)i=s.h=d.createTextNode(s.o);else{i=s.h=d.createElement(!X&&t&&2&s.t?"slot-fb":s.m),Q(null,s,Y);if(!!i.getRootNode().querySelector("body")&&n&&null!=A&&i["s-si"]!==A&&i.classList.add(i["s-si"]=A),s.u)for(u=0;u<s.u.length;++u)c=Z(e,s,u),c&&i.appendChild(c)}return i["s-hn"]=H,i},ee=(e,n,t,l,o,r)=>{let s,i=e;for(i.shadowRoot&&i.tagName===H&&(i=i.shadowRoot);o<=r;++o)l[o]&&(s=Z(null,t,o),s&&(l[o].h=s,re(i,s,n)))},ne=(e,n,t)=>{for(let l=n;l<=t;++l){const n=e[l];if(n){const e=n.h;oe(n),e&&e.remove()}}},te=(e,n,t=!1)=>e.m===n.m&&(!!t||e.p===n.p),le=(e,n,t=!1)=>{const o=n.h=e.h,r=e.u,s=n.u,i=n.o;null===i?(Q(e,n,Y),null!==r&&null!==s?((e,n,t,l,o=!1)=>{let r,s,i=0,c=0,u=0,a=0,f=n.length-1,d=n[0],p=n[f],m=l.length-1,h=l[0],y=l[m];for(;i<=f&&c<=m;)if(null==d)d=n[++i];else if(null==p)p=n[--f];else if(null==h)h=l[++c];else if(null==y)y=l[--m];else if(te(d,h,o))le(d,h,o),d=n[++i],h=l[++c];else if(te(p,y,o))le(p,y,o),p=n[--f],y=l[--m];else if(te(d,y,o))le(d,y,o),re(e,d.h,p.h.nextSibling),d=n[++i],y=l[--m];else if(te(p,h,o))le(p,h,o),re(e,p.h,d.h),p=n[--f],h=l[++c];else{for(u=-1,a=i;a<=f;++a)if(n[a]&&null!==n[a].p&&n[a].p===h.p){u=a;break}u>=0?(s=n[u],s.m!==h.m?r=Z(n&&n[c],t,u):(le(s,h,o),n[u]=void 0,r=s.h),h=l[++c]):(r=Z(n&&n[c],t,c),h=l[++c]),r&&re(d.h.parentNode,r,d.h)}i>f?ee(e,null==l[m+1]?null:l[m+1].h,t,l,c,m):c>m&&ne(n,i,f)})(o,r,n,s,t):null!==s?(null!==e.o&&(o.textContent=""),ee(o,null,n,s,0,s.length-1)):!t&&l&&null!==r&&ne(r,0,r.length-1)):e.o!==i&&(o.data=i)},oe=e=>{e.i&&e.i.ref&&e.i.ref(null),e.u&&e.u.map(oe)},re=(e,n,t)=>null==e?void 0:e.insertBefore(n,t),se=(e,n,t=!1)=>{const l=e.$hostElement$,o=e.$,r=e.j||N(null,null),s=(i=n)&&i.m===R?n:F(null,null,n);var i;if(H=l.tagName,t&&s.i)for(const e of Object.keys(s.i))l.hasAttribute(e)&&!["key","ref","style","class"].includes(e)&&(s.i[e]=l[e]);s.m=null,s.t|=4,e.j=s,s.h=r.h=l.shadowRoot||l,A=l["s-sc"],X=!!(1&o.t),le(r,s,t)},ie=(e,n)=>{n&&!e.O&&n["s-p"]&&n["s-p"].push(new Promise((n=>e.O=n)))},ce=(e,n)=>{if(e.t|=16,4&e.t)return void(e.t|=512);ie(e,e.C);return k((()=>ue(e,n)))},ue=(e,n)=>{const t=e.$hostElement$,l=(e.$.S,()=>{}),o=t;if(!o)throw new Error(`Can't render component <${t.tagName.toLowerCase()} /> with invalid Stencil runtime! Make sure this imported component is compiled with a \`externalRuntime: true\` flag. For more information, please refer to https://stenciljs.com/docs/custom-elements#externalruntime`);return l(),ae(undefined,(()=>de(e,o,n)))},ae=(e,n)=>fe(e)?e.then(n).catch((e=>{console.error(e),n()})):n(),fe=e=>e instanceof Promise||e&&e.then&&"function"==typeof e.then,de=async(e,n,t)=>{var l;const o=e.$hostElement$,r=(e.$.S,()=>{}),s=o["s-rc"];t&&B(e);const i=(e.$.S,()=>{});pe(e,n,o,t),s&&(s.map((e=>e())),o["s-rc"]=void 0),i(),r();{const n=null!=(l=o["s-p"])?l:[],t=()=>me(e);0===n.length?t():(Promise.all(n).then(t),e.t|=4,n.length=0)}},pe=(e,n,t,l)=>{try{n=n.render(),e.t&=-17,e.t|=2,se(e,n,l)}catch(n){u(n,e.$hostElement$)}return null},me=e=>{e.$.S;const n=e.$hostElement$,t=()=>{},l=n,o=e.C;64&e.t?t():(e.t|=64,ve(n),ye(l,"componentDidLoad"),t(),e.M(n),o||he()),e.O&&(e.O(),e.O=void 0),512&e.t&&S((()=>ce(e,!1))),e.t&=-517},he=e=>{ve(d.documentElement),S((()=>V(f,"appload",{detail:{namespace:"imexport-table"}})))},ye=(e,n,t)=>{if(e&&e[n])try{return e[n](t)}catch(e){u(e)}},ve=n=>{var t;return n.classList.add(null!=(t=e)?t:"hydrated")},$e=(e,n,t,l)=>{const o=i(e),r=o.P.get(n),s=o.t;var c;null==(c=t)||x(c),t=c;const u=Number.isNaN(r)&&Number.isNaN(t);t!==r&&!u&&(o.P.set(n,t),2==(18&s)&&ce(o,!1))},be=(e,n,t)=>{var l;const r=e.prototype;if(n.A||o){Object.entries(null!=(l=n.A)?l:{}).map((([e,[n]])=>{(31&n||32&n)&&Object.defineProperty(r,e,{get(){return n=e,i(this).P.get(n);var n},set(n){$e(this,e,n)},configurable:!0,enumerable:!0})}))}return e},we=async(e,n,t,l)=>{let o;if(!(32&n.t)){n.t|=32;{o=e.constructor;const t=e.localName;customElements.whenDefined(t).then((()=>n.t|=128))}if(o&&o.style){let e;"string"==typeof o.style&&(e=o.style);const n=G(t);if(!a.has(n)){const l=(t.S,()=>{});((e,n,t)=>{let l=a.get(e);h&&t?(l=l||new CSSStyleSheet,"string"==typeof l?l=n:l.replaceSync(n)):l=n,a.set(e,l)})(n,e,!!(1&t.t)),l()}}}const r=n.C,s=()=>ce(n,!0);r&&r["s-rc"]?r["s-rc"].push(s):s()},ge=(e,n)=>{const t={t:n[0],S:n[1]};return t.A=n[2],Object.assign(e.prototype,{__registerHost(){((e,n)=>{const t={t:0,$hostElement$:e,$:n,P:new Map};t.H=new Promise((e=>t.M=e)),e["s-p"]=[],e["s-rc"]=[],s.set(e,t)})(this,t)},connectedCallback(){i(this),(e=>{if(!(1&m.t)){const n=i(e),t=n.$,l=(t.S,()=>{});if(1&n.t)(null==n?void 0:n._)||(null==n?void 0:n.H)&&n.H.then((()=>{}));else{n.t|=1;{let t=e;for(;t=t.parentNode||t.host;)if(t["s-p"]){ie(n,n.C=t);break}}t.A&&Object.entries(t.A).map((([n,[t]])=>{if(31&t&&e.hasOwnProperty(n)){const t=e[n];delete e[n],e[n]=t}})),we(e,n,t)}l()}})(this)},disconnectedCallback(){(async e=>{1&m.t||i(e)})(this)},__attachShadow(){if(this.shadowRoot){if("open"!==this.shadowRoot.mode)throw new Error(`Unable to re-use existing shadow root for ${t.S}! Mode is set to ${this.shadowRoot.mode} but Stencil only supports open shadow roots.`)}else this.attachShadow({mode:"open"})}}),e.is=t.S,be(e,t)},Se=(e,n)=>n,ke=e=>m.k=e,je=e=>Object.assign(m,e);export{Se as F,p as H,ke as a,je as b,q as c,j as g,F as h,ge as p,E as s};
|
|
2
|
-
//# sourceMappingURL=p-4789c9c3.js.map
|
|
File without changes
|