proto-table-wc 0.0.505 → 0.0.506
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/cjs/demo-table_2.cjs.entry.js +1 -1
- package/dist/cjs/{index-5b8b6703.js → index-6a326d9f.js} +4 -4
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/proto-table-wc.cjs.js +2 -2
- package/dist/collection/collection-manifest.json +1 -1
- package/dist/esm/demo-table_2.entry.js +1 -1
- package/dist/esm/{index-d90c438b.js → index-f0e314d6.js} +4 -4
- package/dist/esm/loader.js +2 -2
- package/dist/esm/proto-table-wc.js +3 -3
- package/dist/proto-table-wc/p-113392a2.js +2 -0
- package/dist/proto-table-wc/{p-4cc628e2.entry.js → p-13a97378.entry.js} +1 -1
- package/dist/proto-table-wc/proto-table-wc.esm.js +1 -1
- package/package.json +2 -2
- package/dist/proto-table-wc/p-d43f766d.js +0 -2
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
4
4
|
|
5
|
-
const index = require('./index-
|
5
|
+
const index = require('./index-6a326d9f.js');
|
6
6
|
|
7
7
|
const demoTableCss = ".detailWrapper{font-weight:100;font-size:13px;display:flex;flex-direction:column;justify-items:start;padding:5px;padding-left:30px}";
|
8
8
|
const DemoTableStyle0 = demoTableCss;
|
@@ -23,7 +23,7 @@ function _interopNamespace(e) {
|
|
23
23
|
const NAMESPACE = 'proto-table-wc';
|
24
24
|
|
25
25
|
/*
|
26
|
-
Stencil Client Platform v4.17.
|
26
|
+
Stencil Client Platform v4.17.2 | MIT Licensed | https://stenciljs.com
|
27
27
|
*/
|
28
28
|
var __defProp = Object.defineProperty;
|
29
29
|
var __export = (target, all) => {
|
@@ -324,18 +324,18 @@ var CAPTURE_EVENT_SUFFIX = "Capture";
|
|
324
324
|
var CAPTURE_EVENT_REGEX = new RegExp(CAPTURE_EVENT_SUFFIX + "$");
|
325
325
|
|
326
326
|
// src/runtime/vdom/update-element.ts
|
327
|
-
var updateElement = (oldVnode, newVnode, isSvgMode2
|
327
|
+
var updateElement = (oldVnode, newVnode, isSvgMode2) => {
|
328
328
|
const elm = newVnode.$elm$.nodeType === 11 /* DocumentFragment */ && newVnode.$elm$.host ? newVnode.$elm$.host : newVnode.$elm$;
|
329
329
|
const oldVnodeAttrs = oldVnode && oldVnode.$attrs$ || EMPTY_OBJ;
|
330
330
|
const newVnodeAttrs = newVnode.$attrs$ || EMPTY_OBJ;
|
331
331
|
{
|
332
|
-
for (memberName of sortedAttrNames(Object.keys(oldVnodeAttrs))) {
|
332
|
+
for (const memberName of sortedAttrNames(Object.keys(oldVnodeAttrs))) {
|
333
333
|
if (!(memberName in newVnodeAttrs)) {
|
334
334
|
setAccessor(elm, memberName, oldVnodeAttrs[memberName], void 0, isSvgMode2, newVnode.$flags$);
|
335
335
|
}
|
336
336
|
}
|
337
337
|
}
|
338
|
-
for (memberName of sortedAttrNames(Object.keys(newVnodeAttrs))) {
|
338
|
+
for (const memberName of sortedAttrNames(Object.keys(newVnodeAttrs))) {
|
339
339
|
setAccessor(elm, memberName, oldVnodeAttrs[memberName], newVnodeAttrs[memberName], isSvgMode2, newVnode.$flags$);
|
340
340
|
}
|
341
341
|
};
|
package/dist/cjs/loader.cjs.js
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
4
4
|
|
5
|
-
const index = require('./index-
|
5
|
+
const index = require('./index-6a326d9f.js');
|
6
6
|
const appGlobals = require('./app-globals-3a1e7e63.js');
|
7
7
|
|
8
8
|
const defineCustomElements = async (win, options) => {
|
@@ -2,11 +2,11 @@
|
|
2
2
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
4
4
|
|
5
|
-
const index = require('./index-
|
5
|
+
const index = require('./index-6a326d9f.js');
|
6
6
|
const appGlobals = require('./app-globals-3a1e7e63.js');
|
7
7
|
|
8
8
|
/*
|
9
|
-
Stencil Client Patch Browser v4.17.
|
9
|
+
Stencil Client Patch Browser v4.17.2 | MIT Licensed | https://stenciljs.com
|
10
10
|
*/
|
11
11
|
var patchBrowser = () => {
|
12
12
|
const importMeta = (typeof document === 'undefined' ? new (require('u' + 'rl').URL)('file:' + __filename).href : (document.currentScript && document.currentScript.src || new URL('proto-table-wc.cjs.js', document.baseURI).href));
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { r as registerInstance, h } from './index-
|
1
|
+
import { r as registerInstance, h } from './index-f0e314d6.js';
|
2
2
|
|
3
3
|
const demoTableCss = ".detailWrapper{font-weight:100;font-size:13px;display:flex;flex-direction:column;justify-items:start;padding:5px;padding-left:30px}";
|
4
4
|
const DemoTableStyle0 = demoTableCss;
|
@@ -1,7 +1,7 @@
|
|
1
1
|
const NAMESPACE = 'proto-table-wc';
|
2
2
|
|
3
3
|
/*
|
4
|
-
Stencil Client Platform v4.17.
|
4
|
+
Stencil Client Platform v4.17.2 | MIT Licensed | https://stenciljs.com
|
5
5
|
*/
|
6
6
|
var __defProp = Object.defineProperty;
|
7
7
|
var __export = (target, all) => {
|
@@ -302,18 +302,18 @@ var CAPTURE_EVENT_SUFFIX = "Capture";
|
|
302
302
|
var CAPTURE_EVENT_REGEX = new RegExp(CAPTURE_EVENT_SUFFIX + "$");
|
303
303
|
|
304
304
|
// src/runtime/vdom/update-element.ts
|
305
|
-
var updateElement = (oldVnode, newVnode, isSvgMode2
|
305
|
+
var updateElement = (oldVnode, newVnode, isSvgMode2) => {
|
306
306
|
const elm = newVnode.$elm$.nodeType === 11 /* DocumentFragment */ && newVnode.$elm$.host ? newVnode.$elm$.host : newVnode.$elm$;
|
307
307
|
const oldVnodeAttrs = oldVnode && oldVnode.$attrs$ || EMPTY_OBJ;
|
308
308
|
const newVnodeAttrs = newVnode.$attrs$ || EMPTY_OBJ;
|
309
309
|
{
|
310
|
-
for (memberName of sortedAttrNames(Object.keys(oldVnodeAttrs))) {
|
310
|
+
for (const memberName of sortedAttrNames(Object.keys(oldVnodeAttrs))) {
|
311
311
|
if (!(memberName in newVnodeAttrs)) {
|
312
312
|
setAccessor(elm, memberName, oldVnodeAttrs[memberName], void 0, isSvgMode2, newVnode.$flags$);
|
313
313
|
}
|
314
314
|
}
|
315
315
|
}
|
316
|
-
for (memberName of sortedAttrNames(Object.keys(newVnodeAttrs))) {
|
316
|
+
for (const memberName of sortedAttrNames(Object.keys(newVnodeAttrs))) {
|
317
317
|
setAccessor(elm, memberName, oldVnodeAttrs[memberName], newVnodeAttrs[memberName], isSvgMode2, newVnode.$flags$);
|
318
318
|
}
|
319
319
|
};
|
package/dist/esm/loader.js
CHANGED
@@ -1,5 +1,5 @@
|
|
1
|
-
import { b as bootstrapLazy } from './index-
|
2
|
-
export { s as setNonce } from './index-
|
1
|
+
import { b as bootstrapLazy } from './index-f0e314d6.js';
|
2
|
+
export { s as setNonce } from './index-f0e314d6.js';
|
3
3
|
import { g as globalScripts } from './app-globals-0f993ce5.js';
|
4
4
|
|
5
5
|
const defineCustomElements = async (win, options) => {
|
@@ -1,9 +1,9 @@
|
|
1
|
-
import { p as promiseResolve, b as bootstrapLazy } from './index-
|
2
|
-
export { s as setNonce } from './index-
|
1
|
+
import { p as promiseResolve, b as bootstrapLazy } from './index-f0e314d6.js';
|
2
|
+
export { s as setNonce } from './index-f0e314d6.js';
|
3
3
|
import { g as globalScripts } from './app-globals-0f993ce5.js';
|
4
4
|
|
5
5
|
/*
|
6
|
-
Stencil Client Patch Browser v4.17.
|
6
|
+
Stencil Client Patch Browser v4.17.2 | MIT Licensed | https://stenciljs.com
|
7
7
|
*/
|
8
8
|
var patchBrowser = () => {
|
9
9
|
const importMeta = import.meta.url;
|
@@ -0,0 +1,2 @@
|
|
1
|
+
var e=Object.defineProperty,n={},t=e=>"object"==(e=typeof e)||"function"===e;function l(e){var n,t,l;return null!=(l=null==(t=null==(n=e.head)?void 0:n.querySelector('meta[name="csp-nonce"]'))?void 0:t.getAttribute("content"))?l:void 0}((n,t)=>{for(var l in t)e(n,l,{get:t[l],enumerable:!0})})({},{err:()=>s,map:()=>r,ok:()=>o,unwrap:()=>u,unwrapErr:()=>f});var o=e=>({isOk:!0,isErr:!1,value:e}),s=e=>({isOk:!1,isErr:!0,value:e});function r(e,n){if(e.isOk){const t=n(e.value);return t instanceof Promise?t.then((e=>o(e))):o(t)}if(e.isErr)return s(e.value);throw"should never get here"}var i,c,u=e=>{if(e.isOk)return e.value;throw e.value},f=e=>{if(e.isErr)return e.value;throw e.value},a="slot-fb{display:contents}slot-fb[hidden]{display:none}",d=(e,n,...l)=>{let o=null,s=null,r=!1,i=!1;const c=[],u=n=>{for(let l=0;l<n.length;l++)o=n[l],Array.isArray(o)?u(o):null!=o&&"boolean"!=typeof o&&((r="function"!=typeof e&&!t(o))&&(o+=""),r&&i?c[c.length-1].t+=o:c.push(r?h(null,o):o),i=r)};if(u(l),n){n.key&&(s=n.key);{const e=n.className||n.class;e&&(n.class="object"!=typeof e?e:Object.keys(e).filter((n=>e[n])).join(" "))}}const f=h(e,null);return f.l=n,c.length>0&&(f.o=c),f.i=s,f},h=(e,n)=>({u:0,h:e,t:n,p:null,o:null,l:null,i:null}),p={},y=new WeakMap,m=e=>"sc-"+e.m,v=(e,n,l,o,s,r)=>{if(l!==o){let i=K(e,n),c=n.toLowerCase();if("class"===n){const n=e.classList,t=w(l),s=w(o);n.remove(...t.filter((e=>e&&!s.includes(e)))),n.add(...s.filter((e=>e&&!t.includes(e))))}else if("key"===n);else if("ref"===n)o&&o(e);else if(i||"o"!==n[0]||"n"!==n[1]){const c=t(o);if((i||c&&null!==o)&&!s)try{if(e.tagName.includes("-"))e[n]=o;else{const t=null==o?"":o;"list"===n?i=!1:null!=l&&e[n]==t||(e[n]=t)}}catch(e){}null==o||!1===o?!1===o&&""!==e.getAttribute(n)||e.removeAttribute(n):(!i||4&r||s)&&!c&&e.setAttribute(n,o=!0===o?"":o)}else if(n="-"===n[2]?n.slice(3):K(ee,c)?c.slice(2):c[2]+n.slice(3),l||o){const t=n.endsWith(b);n=n.replace(g,""),l&&te.rel(e,n,l,t),o&&te.ael(e,n,o,t)}}},$=/\s/,w=e=>e?e.split($):[],b="Capture",g=RegExp(b+"$"),j=(e,t,l)=>{const o=11===t.p.nodeType&&t.p.host?t.p.host:t.p,s=e&&e.l||n,r=t.l||n;for(const e of O(Object.keys(s)))e in r||v(o,e,s[e],void 0,l,t.u);for(const e of O(Object.keys(r)))v(o,e,s[e],r[e],l,t.u)};function O(e){return e.includes("ref")?[...e.filter((e=>"ref"!==e)),"ref"]:e}var S=!1,k=(e,n,t)=>{const l=n.o[t];let o,s,r=0;if(null!==l.t)o=l.p=ne.createTextNode(l.t);else{if(S||(S="svg"===l.h),o=l.p=ne.createElementNS(S?"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",l.h),S&&"foreignObject"===l.h&&(S=!1),j(null,l,S),null!=i&&o["s-si"]!==i&&o.classList.add(o["s-si"]=i),l.o)for(r=0;r<l.o.length;++r)s=k(e,l,r),s&&o.appendChild(s);"svg"===l.h?S=!1:"foreignObject"===o.tagName&&(S=!0)}return o["s-hn"]=c,o},E=(e,n,t,l,o,s)=>{let r,i=e;for(i.shadowRoot&&i.tagName===c&&(i=i.shadowRoot);o<=s;++o)l[o]&&(r=k(null,t,o),r&&(l[o].p=r,i.insertBefore(r,n)))},M=(e,n,t)=>{for(let l=n;l<=t;++l){const n=e[l];if(n){const e=n.p;x(n),e&&e.remove()}}},C=(e,n,t=!1)=>e.h===n.h&&(!!t||e.i===n.i),P=(e,n,t=!1)=>{const l=n.p=e.p,o=e.o,s=n.o,r=n.h,i=n.t;null===i?(j(e,n,S="svg"===r||"foreignObject"!==r&&S),null!==o&&null!==s?((e,n,t,l,o=!1)=>{let s,r,i=0,c=0,u=0,f=0,a=n.length-1,d=n[0],h=n[a],p=l.length-1,y=l[0],m=l[p];for(;i<=a&&c<=p;)if(null==d)d=n[++i];else if(null==h)h=n[--a];else if(null==y)y=l[++c];else if(null==m)m=l[--p];else if(C(d,y,o))P(d,y,o),d=n[++i],y=l[++c];else if(C(h,m,o))P(h,m,o),h=n[--a],m=l[--p];else if(C(d,m,o))P(d,m,o),e.insertBefore(d.p,h.p.nextSibling),d=n[++i],m=l[--p];else if(C(h,y,o))P(h,y,o),e.insertBefore(h.p,d.p),h=n[--a],y=l[++c];else{for(u=-1,f=i;f<=a;++f)if(n[f]&&null!==n[f].i&&n[f].i===y.i){u=f;break}u>=0?(r=n[u],r.h!==y.h?s=k(n&&n[c],t,u):(P(r,y,o),n[u]=void 0,s=r.p),y=l[++c]):(s=k(n&&n[c],t,c),y=l[++c]),s&&d.p.parentNode.insertBefore(s,d.p)}i>a?E(e,null==l[p+1]?null:l[p+1].p,t,l,c,p):c>p&&M(n,i,a)})(l,o,n,s,t):null!==s?(null!==e.t&&(l.textContent=""),E(l,null,n,s,0,s.length-1)):null!==o&&M(o,0,o.length-1),S&&"svg"===r&&(S=!1)):e.t!==i&&(l.data=i)},x=e=>{e.l&&e.l.ref&&e.l.ref(null),e.o&&e.o.map(x)},L=(e,n)=>{n&&!e.v&&n["s-p"]&&n["s-p"].push(new Promise((n=>e.v=n)))},A=(e,n)=>{if(e.u|=16,!(4&e.u))return L(e,e.$),de((()=>N(e,n)));e.u|=512},N=(e,n)=>{const t=e.j;let l;return n&&(l=F(t,"componentWillLoad")),R(l,(()=>W(e,t,n)))},R=(e,n)=>T(e)?e.then(n):n(),T=e=>e instanceof Promise||e&&e.then&&"function"==typeof e.then,W=async(e,n,t)=>{var o;const s=e.$hostElement$,r=s["s-rc"];t&&(e=>{const n=e.O,t=e.$hostElement$,o=n.u,s=((e,n)=>{var t;const o=m(n),s=Z.get(o);if(e=11===e.nodeType?e:ne,s)if("string"==typeof s){let r,i=y.get(e=e.head||e);if(i||y.set(e,i=new Set),!i.has(o)){{r=ne.createElement("style"),r.innerHTML=s;const n=null!=(t=te.S)?t:l(ne);null!=n&&r.setAttribute("nonce",n),e.insertBefore(r,e.querySelector("link"))}4&n.u&&(r.innerHTML+=a),i&&i.add(o)}}else e.adoptedStyleSheets.includes(s)||(e.adoptedStyleSheets=[...e.adoptedStyleSheets,s]);return o})(t.shadowRoot?t.shadowRoot:t.getRootNode(),n);10&o&&(t["s-sc"]=s,t.classList.add(s+"-h"))})(e);U(e,n,s,t),r&&(r.map((e=>e())),s["s-rc"]=void 0);{const n=null!=(o=s["s-p"])?o:[],t=()=>q(e);0===n.length?t():(Promise.all(n).then(t),e.u|=4,n.length=0)}},U=(e,n,t,l)=>{try{n=n.render(),e.u&=-17,e.u|=2,((e,n,t=!1)=>{const l=e.$hostElement$,o=e.k||h(null,null),s=(e=>e&&e.h===p)(n)?n:d(null,null,n);if(c=l.tagName,t&&s.l)for(const e of Object.keys(s.l))l.hasAttribute(e)&&!["key","ref","style","class"].includes(e)&&(s.l[e]=l[e]);s.h=null,s.u|=4,e.k=s,s.p=o.p=l.shadowRoot||l,i=l["s-sc"],P(o,s,t)})(e,n,l)}catch(n){Q(n,e.$hostElement$)}return null},q=e=>{const n=e.$hostElement$,t=e.j,l=e.$;64&e.u||(e.u|=64,H(n),F(t,"componentDidLoad"),e.M(n),l||D()),e.v&&(e.v(),e.v=void 0),512&e.u&&ae((()=>A(e,!1))),e.u&=-517},D=()=>{H(ne.documentElement),ae((()=>(e=>{const n=te.ce("appload",{detail:{namespace:"proto-table-wc"}});return e.dispatchEvent(n),n})(ee)))},F=(e,n,t)=>{if(e&&e[n])try{return e[n](t)}catch(e){Q(e)}},H=e=>e.classList.add("hydrated"),V=(e,n,l)=>{var o;const s=e.prototype;if(n.C){const r=Object.entries(n.C);if(r.map((([e,[n]])=>{(31&n||2&l&&32&n)&&Object.defineProperty(s,e,{get(){return((e,n)=>G(this).P.get(n))(0,e)},set(n){((e,n,l)=>{const o=G(e),s=o.P.get(n),r=o.u,i=o.j;l=(e=>(null==e||t(e),e))(l),8&r&&void 0!==s||l===s||Number.isNaN(s)&&Number.isNaN(l)||(o.P.set(n,l),i&&2==(18&r)&&A(o,!1))})(this,e,n)},configurable:!0,enumerable:!0})})),1&l){const t=new Map;s.attributeChangedCallback=function(e,l,o){te.jmp((()=>{var r;const i=t.get(e);if(this.hasOwnProperty(i))o=this[i],delete this[i];else{if(s.hasOwnProperty(i)&&"number"==typeof this[i]&&this[i]==o)return;if(null==i){const t=G(this),s=null==t?void 0:t.u;if(s&&!(8&s)&&128&s&&o!==l){const s=t.j,i=null==(r=n.L)?void 0:r[e];null==i||i.forEach((n=>{null!=s[n]&&s[n].call(s,o,l,e)}))}return}}this[i]=(null!==o||"boolean"!=typeof this[i])&&o}))},e.observedAttributes=Array.from(new Set([...Object.keys(null!=(o=n.L)?o:{}),...r.filter((([e,n])=>15&n[0])).map((([e,n])=>{const l=n[1]||e;return t.set(l,e),l}))]))}}return e},_=(e,n={})=>{var t;const o=[],s=n.exclude||[],r=ee.customElements,i=ne.head,c=i.querySelector("meta[charset]"),u=ne.createElement("style"),f=[];let d,h=!0;Object.assign(te,n),te.A=new URL(n.resourcesUrl||"./",ne.baseURI).href;let p=!1;if(e.map((e=>{e[1].map((n=>{const t={u:n[0],m:n[1],C:n[2],N:n[3]};4&t.u&&(p=!0),t.C=n[2];const l=t.m,i=class extends HTMLElement{constructor(e){super(e),J(e=this,t),1&t.u&&e.attachShadow({mode:"open"})}connectedCallback(){d&&(clearTimeout(d),d=null),h?f.push(this):te.jmp((()=>(e=>{if(!(1&te.u)){const n=G(e),t=n.O,l=()=>{};if(1&n.u)(null==n?void 0:n.j)||(null==n?void 0:n.R)&&n.R.then((()=>{}));else{n.u|=1;{let t=e;for(;t=t.parentNode||t.host;)if(t["s-p"]){L(n,n.$=t);break}}t.C&&Object.entries(t.C).map((([n,[t]])=>{if(31&t&&e.hasOwnProperty(n)){const t=e[n];delete e[n],e[n]=t}})),(async(e,n,t)=>{let l;if(!(32&n.u)){if(n.u|=32,t.T){if(l=Y(t),l.then){const e=()=>{};l=await l,e()}l.isProxied||(V(l,t,2),l.isProxied=!0);const e=()=>{};n.u|=8;try{new l(n)}catch(e){Q(e)}n.u&=-9,e()}else l=e.constructor,customElements.whenDefined(t.m).then((()=>n.u|=128));if(l.style){let e=l.style;const n=m(t);if(!Z.has(n)){const l=()=>{};((e,n,t)=>{let l=Z.get(e);oe&&t?(l=l||new CSSStyleSheet,"string"==typeof l?l=n:l.replaceSync(n)):l=n,Z.set(e,l)})(n,e,!!(1&t.u)),l()}}}const o=n.$,s=()=>A(n,!0);o&&o["s-rc"]?o["s-rc"].push(s):s()})(e,n,t)}l()}})(this)))}disconnectedCallback(){te.jmp((()=>(async()=>{if(!(1&te.u)){const e=G(this);(null==e?void 0:e.j)||(null==e?void 0:e.R)&&e.R.then((()=>{}))}})()))}componentOnReady(){return G(this).R}};t.T=e[0],s.includes(l)||r.get(l)||(o.push(l),r.define(l,V(i,t,1)))}))})),o.length>0&&(p&&(u.textContent+=a),u.textContent+=o+"{visibility:hidden}.hydrated{visibility:inherit}",u.innerHTML.length)){u.setAttribute("data-styles","");const e=null!=(t=te.S)?t:l(ne);null!=e&&u.setAttribute("nonce",e),i.insertBefore(u,c?c.nextSibling:i.firstChild)}h=!1,f.length?f.map((e=>e.connectedCallback())):te.jmp((()=>d=setTimeout(D,30)))},z=e=>te.S=e,B=new WeakMap,G=e=>B.get(e),I=(e,n)=>B.set(n.j=e,n),J=(e,n)=>{const t={u:0,$hostElement$:e,O:n,P:new Map};return t.R=new Promise((e=>t.M=e)),e["s-p"]=[],e["s-rc"]=[],B.set(e,t)},K=(e,n)=>n in e,Q=(e,n)=>(0,console.error)(e,n),X=new Map,Y=e=>{const n=e.m.replace(/-/g,"_"),t=e.T,l=X.get(t);return l?l[n]:import(`./${t}.entry.js`).then((e=>(X.set(t,e),e[n])),Q)
|
2
|
+
/*!__STENCIL_STATIC_IMPORT_SWITCH__*/},Z=new Map,ee="undefined"!=typeof window?window:{},ne=ee.document||{head:{}},te={u:0,A:"",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)},le=e=>Promise.resolve(e),oe=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync}catch(e){}return!1})(),se=!1,re=[],ie=[],ce=(e,n)=>t=>{e.push(t),se||(se=!0,n&&4&te.u?ae(fe):te.raf(fe))},ue=e=>{for(let n=0;n<e.length;n++)try{e[n](performance.now())}catch(e){Q(e)}e.length=0},fe=()=>{ue(re),ue(ie),(se=re.length>0)&&te.raf(fe)},ae=e=>le().then(e),de=ce(ie,!0);export{_ as b,d as h,le as p,I as r,z as s}
|
@@ -1 +1 @@
|
|
1
|
-
import{r as e,h as t}from"./p-
|
1
|
+
import{r as e,h as t}from"./p-113392a2.js";const r=class{constructor(r){e(this,r),this.fields=[{label:"Date",prop:"date"},{label:"List Price",prop:"price"},{label:"% of Market",prop:"market"},{label:"ProfitTime Score",prop:"score"}],this.items=[],this.table=void 0,this.renderDetails=e=>{const{tags:r=[]}=e;return t("div",{class:"detailWrapper"},t("span",null,r.length," details..."),t("ul",null,r.map((e=>t("li",null,e)))))}}componentWillLoad(){this.items=[{date:"08/30/2020",price:"$24,000",market:"98%",score:"No Score",tags:["one","two","three"]},{date:"08/31/2020",price:"$24,000",market:"99%",score:"No Score",tags:["uno","duo"]},{date:"09/01/2020",price:"$27,000",market:"102%",score:"Platinum"},{date:"09/02/2020",price:"$27,423",market:"104%",score:"Platinum",tags:["dog","cat","fish","hamster"]},{date:"09/03/2020",price:"$27,521",market:"106%",score:"Platinum",tags:["4wd","sports"]},{date:"09/04/2020",price:"$27,687",market:"107%",score:"Platinum",tags:["leather","chrome"]}]}componentDidLoad(){const{table:e,items:t,fields:r}=this;e.data=t,e.fields=r,e.details=this.renderDetails}render(){return t("proto-table",{key:"aa5f26287b85073afb5bbd3c133f9ad388fc8138",ref:e=>this.table=e})}};r.style=".detailWrapper{font-weight:100;font-size:13px;display:flex;flex-direction:column;justify-items:start;padding:5px;padding-left:30px}";const s={down:"M12 15.4L6.6 10 8 8.6l4 4 4-4 1.4 1.4z",up:"M16 15.4l-4-4-4 4L6.6 14 12 8.6l5.4 5.4z",left:"M14 17.4L8.6 12 14 6.6 15.4 8l-4 4 4 4z",right:"M10 17.4L8.6 16l4-4-4-4L10 6.6l5.4 5.4z",more:"M12 14a2 2 0 100-4 2 2 0 000 4zm-6 0a2 2 0 100-4 2 2 0 000 4zm12 0a2 2 0 100-4 2 2 0 000 4z","arrow-up":"M5.3 10.7l1.4 1.4L11 7.8V20h2V7.8l4.3 4.3 1.4-1.4L12 4z","arrow-down":"M18.7 13.3l-1.4-1.4-4.3 4.3V4h-2v12.2l-4.3-4.3-1.4 1.4L12 20z"},i={right:"show",down:"hide","arrow-up":"sort","arrow-down":"sort"},l=class{constructor(r){e(this,r),this.protoIcon=(e,r,l=24)=>{const o=s[e];return t("svg",{width:l,height:l,viewBox:"0 0 24 24",role:"img","aria-labelledby":"title"},t("title",null,(e=>i[e])(e)),t("g",{fill:r},t("path",{d:o})),t("path",{d:"M0 0h24v24H0z",fill:"none"}))},this.handleCellClick=(e,t)=>()=>{0===e&&(this.expanded=this.expanded===t?void 0:t)},this.handleSortClick=e=>()=>{this.sort===e?2===this.clicks?(this.clicks=0,this.sort=void 0):this.clicks=this.clicks+1:(this.sort=e,this.clicks=1)},this.iconFor=e=>this.sort===e&&2===this.clicks?"arrow-up":"arrow-down",this.header=()=>{const{fields:e,iconFor:r,protoIcon:s}=this;return t("div",{class:"header"},e.map((({label:e},i)=>{const l=i===this.sort?"headerCell sort":"headerCell",o=r(i);return t("div",{class:l,onClick:this.handleSortClick(i)},s(o),t("span",null,e))})))},this.row=(e,r)=>{const{fields:s,protoIcon:i}=this;return t("div",{class:"rowContainer"},t("div",{class:this.expanded===r?"row expanded":"row"},s.map((({prop:s},l)=>t("div",{class:l===this.sort?"cell sort":"cell",onClick:this.handleCellClick(l,r)},i(0===l&&this.details?this.expanded===r?"down":"right":"pad"),e[s])))),this.details&&this.expanded===r&&this.details(e))},this.data=[],this.details=void 0,this.fields=[],this.expanded=void 0,this.sort=void 0,this.clicks=0}render(){const e=this.data||[];return t("div",{key:"c30742fde0de976c553234528a7bfb6ce10d3ef5",class:"table"},this.header(),e.map(((e,t)=>this.row(e,t))))}};l.style=".table{font-weight:400;font-size:13px;display:flex;flex-direction:column;width:100%;border:1px solid var(--clrs-navy);border-radius:2px}.table svg{fill:var(--clrs-navy)}.header{display:flex}.headerCell{flex-basis:100%;display:flex;align-items:center;justify-items:start;border-right:1px solid var(--clrs-navy);border-bottom:1px solid var(--clrs-navy);padding:5px;cursor:pointer}.headerCell svg g{display:none}.headerCell.sort svg g{display:inline}.headerCell:hover svg g{display:inline}.headerCell:hover{background-color:var(--clrs-silver)}.headerCell:last-child{border-right:none}.cell{flex-basis:100%;display:flex;align-items:center;justify-items:start;padding:5px}.cell:first-child svg{cursor:pointer}.sort{background-color:var(--cx-column-sort)}.row{display:flex;justify-items:stretch;width:100%}.row.expanded{background-color:var(--cx-row-expanded)}.row.expanded svg{fill:var(--clrs-red)}.row:hover{background-color:var(--cx-row-hover)}";export{r as demo_table,l as proto_table}
|
@@ -1 +1 @@
|
|
1
|
-
import{p as
|
1
|
+
import{p as a,b as t}from"./p-113392a2.js";export{s as setNonce}from"./p-113392a2.js";import{g as e}from"./p-e1255160.js";(()=>{const s=import.meta.url,t={};return""!==s&&(t.resourcesUrl=new URL(".",s).href),a(t)})().then((async a=>(await e(),t([["p-13a97378",[[1,"demo-table"],[0,"proto-table",{data:[16],details:[8],fields:[16],expanded:[32],sort:[32],clicks:[32]}]]]],a))));
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "proto-table-wc",
|
3
|
-
"version": "0.0.
|
3
|
+
"version": "0.0.506",
|
4
4
|
"description": "Stencil Component Starter",
|
5
5
|
"main": "dist/index.cjs.js",
|
6
6
|
"module": "dist/index.js",
|
@@ -25,7 +25,7 @@
|
|
25
25
|
"format": "prettier --write src"
|
26
26
|
},
|
27
27
|
"dependencies": {
|
28
|
-
"@stencil/core": "4.17.
|
28
|
+
"@stencil/core": "4.17.2"
|
29
29
|
},
|
30
30
|
"devDependencies": {
|
31
31
|
"cspell": "8.7.0",
|
@@ -1,2 +0,0 @@
|
|
1
|
-
var e=Object.defineProperty,n={},t=e=>"object"==(e=typeof e)||"function"===e;function l(e){var n,t,l;return null!=(l=null==(t=null==(n=e.head)?void 0:n.querySelector('meta[name="csp-nonce"]'))?void 0:t.getAttribute("content"))?l:void 0}((n,t)=>{for(var l in t)e(n,l,{get:t[l],enumerable:!0})})({},{err:()=>s,map:()=>r,ok:()=>o,unwrap:()=>u,unwrapErr:()=>f});var o=e=>({isOk:!0,isErr:!1,value:e}),s=e=>({isOk:!1,isErr:!0,value:e});function r(e,n){if(e.isOk){const t=n(e.value);return t instanceof Promise?t.then((e=>o(e))):o(t)}if(e.isErr)return s(e.value);throw"should never get here"}var i,c,u=e=>{if(e.isOk)return e.value;throw e.value},f=e=>{if(e.isErr)return e.value;throw e.value},a="slot-fb{display:contents}slot-fb[hidden]{display:none}",d=(e,n,...l)=>{let o=null,s=null,r=!1,i=!1;const c=[],u=n=>{for(let l=0;l<n.length;l++)o=n[l],Array.isArray(o)?u(o):null!=o&&"boolean"!=typeof o&&((r="function"!=typeof e&&!t(o))&&(o+=""),r&&i?c[c.length-1].t+=o:c.push(r?h(null,o):o),i=r)};if(u(l),n){n.key&&(s=n.key);{const e=n.className||n.class;e&&(n.class="object"!=typeof e?e:Object.keys(e).filter((n=>e[n])).join(" "))}}const f=h(e,null);return f.l=n,c.length>0&&(f.o=c),f.i=s,f},h=(e,n)=>({u:0,h:e,t:n,p:null,o:null,l:null,i:null}),p={},y=new WeakMap,m=e=>"sc-"+e.m,v=(e,n,l,o,s,r)=>{if(l!==o){let i=K(e,n),c=n.toLowerCase();if("class"===n){const n=e.classList,t=w(l),s=w(o);n.remove(...t.filter((e=>e&&!s.includes(e)))),n.add(...s.filter((e=>e&&!t.includes(e))))}else if("key"===n);else if("ref"===n)o&&o(e);else if(i||"o"!==n[0]||"n"!==n[1]){const c=t(o);if((i||c&&null!==o)&&!s)try{if(e.tagName.includes("-"))e[n]=o;else{const t=null==o?"":o;"list"===n?i=!1:null!=l&&e[n]==t||(e[n]=t)}}catch(e){}null==o||!1===o?!1===o&&""!==e.getAttribute(n)||e.removeAttribute(n):(!i||4&r||s)&&!c&&e.setAttribute(n,o=!0===o?"":o)}else if(n="-"===n[2]?n.slice(3):K(ee,c)?c.slice(2):c[2]+n.slice(3),l||o){const t=n.endsWith(b);n=n.replace(g,""),l&&te.rel(e,n,l,t),o&&te.ael(e,n,o,t)}}},$=/\s/,w=e=>e?e.split($):[],b="Capture",g=RegExp(b+"$"),j=(e,t,l,o)=>{const s=11===t.p.nodeType&&t.p.host?t.p.host:t.p,r=e&&e.l||n,i=t.l||n;for(o of O(Object.keys(r)))o in i||v(s,o,r[o],void 0,l,t.u);for(o of O(Object.keys(i)))v(s,o,r[o],i[o],l,t.u)};function O(e){return e.includes("ref")?[...e.filter((e=>"ref"!==e)),"ref"]:e}var S=!1,k=(e,n,t)=>{const l=n.o[t];let o,s,r=0;if(null!==l.t)o=l.p=ne.createTextNode(l.t);else{if(S||(S="svg"===l.h),o=l.p=ne.createElementNS(S?"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",l.h),S&&"foreignObject"===l.h&&(S=!1),j(null,l,S),null!=i&&o["s-si"]!==i&&o.classList.add(o["s-si"]=i),l.o)for(r=0;r<l.o.length;++r)s=k(e,l,r),s&&o.appendChild(s);"svg"===l.h?S=!1:"foreignObject"===o.tagName&&(S=!0)}return o["s-hn"]=c,o},E=(e,n,t,l,o,s)=>{let r,i=e;for(i.shadowRoot&&i.tagName===c&&(i=i.shadowRoot);o<=s;++o)l[o]&&(r=k(null,t,o),r&&(l[o].p=r,i.insertBefore(r,n)))},M=(e,n,t)=>{for(let l=n;l<=t;++l){const n=e[l];if(n){const e=n.p;x(n),e&&e.remove()}}},C=(e,n,t=!1)=>e.h===n.h&&(!!t||e.i===n.i),P=(e,n,t=!1)=>{const l=n.p=e.p,o=e.o,s=n.o,r=n.h,i=n.t;null===i?(j(e,n,S="svg"===r||"foreignObject"!==r&&S),null!==o&&null!==s?((e,n,t,l,o=!1)=>{let s,r,i=0,c=0,u=0,f=0,a=n.length-1,d=n[0],h=n[a],p=l.length-1,y=l[0],m=l[p];for(;i<=a&&c<=p;)if(null==d)d=n[++i];else if(null==h)h=n[--a];else if(null==y)y=l[++c];else if(null==m)m=l[--p];else if(C(d,y,o))P(d,y,o),d=n[++i],y=l[++c];else if(C(h,m,o))P(h,m,o),h=n[--a],m=l[--p];else if(C(d,m,o))P(d,m,o),e.insertBefore(d.p,h.p.nextSibling),d=n[++i],m=l[--p];else if(C(h,y,o))P(h,y,o),e.insertBefore(h.p,d.p),h=n[--a],y=l[++c];else{for(u=-1,f=i;f<=a;++f)if(n[f]&&null!==n[f].i&&n[f].i===y.i){u=f;break}u>=0?(r=n[u],r.h!==y.h?s=k(n&&n[c],t,u):(P(r,y,o),n[u]=void 0,s=r.p),y=l[++c]):(s=k(n&&n[c],t,c),y=l[++c]),s&&d.p.parentNode.insertBefore(s,d.p)}i>a?E(e,null==l[p+1]?null:l[p+1].p,t,l,c,p):c>p&&M(n,i,a)})(l,o,n,s,t):null!==s?(null!==e.t&&(l.textContent=""),E(l,null,n,s,0,s.length-1)):null!==o&&M(o,0,o.length-1),S&&"svg"===r&&(S=!1)):e.t!==i&&(l.data=i)},x=e=>{e.l&&e.l.ref&&e.l.ref(null),e.o&&e.o.map(x)},L=(e,n)=>{n&&!e.v&&n["s-p"]&&n["s-p"].push(new Promise((n=>e.v=n)))},A=(e,n)=>{if(e.u|=16,!(4&e.u))return L(e,e.$),de((()=>N(e,n)));e.u|=512},N=(e,n)=>{const t=e.j;let l;return n&&(l=F(t,"componentWillLoad")),R(l,(()=>W(e,t,n)))},R=(e,n)=>T(e)?e.then(n):n(),T=e=>e instanceof Promise||e&&e.then&&"function"==typeof e.then,W=async(e,n,t)=>{var o;const s=e.$hostElement$,r=s["s-rc"];t&&(e=>{const n=e.O,t=e.$hostElement$,o=n.u,s=((e,n)=>{var t;const o=m(n),s=Z.get(o);if(e=11===e.nodeType?e:ne,s)if("string"==typeof s){let r,i=y.get(e=e.head||e);if(i||y.set(e,i=new Set),!i.has(o)){{r=ne.createElement("style"),r.innerHTML=s;const n=null!=(t=te.S)?t:l(ne);null!=n&&r.setAttribute("nonce",n),e.insertBefore(r,e.querySelector("link"))}4&n.u&&(r.innerHTML+=a),i&&i.add(o)}}else e.adoptedStyleSheets.includes(s)||(e.adoptedStyleSheets=[...e.adoptedStyleSheets,s]);return o})(t.shadowRoot?t.shadowRoot:t.getRootNode(),n);10&o&&(t["s-sc"]=s,t.classList.add(s+"-h"))})(e);U(e,n,s,t),r&&(r.map((e=>e())),s["s-rc"]=void 0);{const n=null!=(o=s["s-p"])?o:[],t=()=>q(e);0===n.length?t():(Promise.all(n).then(t),e.u|=4,n.length=0)}},U=(e,n,t,l)=>{try{n=n.render(),e.u&=-17,e.u|=2,((e,n,t=!1)=>{const l=e.$hostElement$,o=e.k||h(null,null),s=(e=>e&&e.h===p)(n)?n:d(null,null,n);if(c=l.tagName,t&&s.l)for(const e of Object.keys(s.l))l.hasAttribute(e)&&!["key","ref","style","class"].includes(e)&&(s.l[e]=l[e]);s.h=null,s.u|=4,e.k=s,s.p=o.p=l.shadowRoot||l,i=l["s-sc"],P(o,s,t)})(e,n,l)}catch(n){Q(n,e.$hostElement$)}return null},q=e=>{const n=e.$hostElement$,t=e.j,l=e.$;64&e.u||(e.u|=64,H(n),F(t,"componentDidLoad"),e.M(n),l||D()),e.v&&(e.v(),e.v=void 0),512&e.u&&ae((()=>A(e,!1))),e.u&=-517},D=()=>{H(ne.documentElement),ae((()=>(e=>{const n=te.ce("appload",{detail:{namespace:"proto-table-wc"}});return e.dispatchEvent(n),n})(ee)))},F=(e,n,t)=>{if(e&&e[n])try{return e[n](t)}catch(e){Q(e)}},H=e=>e.classList.add("hydrated"),V=(e,n,l)=>{var o;const s=e.prototype;if(n.C){const r=Object.entries(n.C);if(r.map((([e,[n]])=>{(31&n||2&l&&32&n)&&Object.defineProperty(s,e,{get(){return((e,n)=>G(this).P.get(n))(0,e)},set(n){((e,n,l)=>{const o=G(e),s=o.P.get(n),r=o.u,i=o.j;l=(e=>(null==e||t(e),e))(l),8&r&&void 0!==s||l===s||Number.isNaN(s)&&Number.isNaN(l)||(o.P.set(n,l),i&&2==(18&r)&&A(o,!1))})(this,e,n)},configurable:!0,enumerable:!0})})),1&l){const t=new Map;s.attributeChangedCallback=function(e,l,o){te.jmp((()=>{var r;const i=t.get(e);if(this.hasOwnProperty(i))o=this[i],delete this[i];else{if(s.hasOwnProperty(i)&&"number"==typeof this[i]&&this[i]==o)return;if(null==i){const t=G(this),s=null==t?void 0:t.u;if(s&&!(8&s)&&128&s&&o!==l){const s=t.j,i=null==(r=n.L)?void 0:r[e];null==i||i.forEach((n=>{null!=s[n]&&s[n].call(s,o,l,e)}))}return}}this[i]=(null!==o||"boolean"!=typeof this[i])&&o}))},e.observedAttributes=Array.from(new Set([...Object.keys(null!=(o=n.L)?o:{}),...r.filter((([e,n])=>15&n[0])).map((([e,n])=>{const l=n[1]||e;return t.set(l,e),l}))]))}}return e},_=(e,n={})=>{var t;const o=[],s=n.exclude||[],r=ee.customElements,i=ne.head,c=i.querySelector("meta[charset]"),u=ne.createElement("style"),f=[];let d,h=!0;Object.assign(te,n),te.A=new URL(n.resourcesUrl||"./",ne.baseURI).href;let p=!1;if(e.map((e=>{e[1].map((n=>{const t={u:n[0],m:n[1],C:n[2],N:n[3]};4&t.u&&(p=!0),t.C=n[2];const l=t.m,i=class extends HTMLElement{constructor(e){super(e),J(e=this,t),1&t.u&&e.attachShadow({mode:"open"})}connectedCallback(){d&&(clearTimeout(d),d=null),h?f.push(this):te.jmp((()=>(e=>{if(!(1&te.u)){const n=G(e),t=n.O,l=()=>{};if(1&n.u)(null==n?void 0:n.j)||(null==n?void 0:n.R)&&n.R.then((()=>{}));else{n.u|=1;{let t=e;for(;t=t.parentNode||t.host;)if(t["s-p"]){L(n,n.$=t);break}}t.C&&Object.entries(t.C).map((([n,[t]])=>{if(31&t&&e.hasOwnProperty(n)){const t=e[n];delete e[n],e[n]=t}})),(async(e,n,t)=>{let l;if(!(32&n.u)){if(n.u|=32,t.T){if(l=Y(t),l.then){const e=()=>{};l=await l,e()}l.isProxied||(V(l,t,2),l.isProxied=!0);const e=()=>{};n.u|=8;try{new l(n)}catch(e){Q(e)}n.u&=-9,e()}else l=e.constructor,customElements.whenDefined(t.m).then((()=>n.u|=128));if(l.style){let e=l.style;const n=m(t);if(!Z.has(n)){const l=()=>{};((e,n,t)=>{let l=Z.get(e);oe&&t?(l=l||new CSSStyleSheet,"string"==typeof l?l=n:l.replaceSync(n)):l=n,Z.set(e,l)})(n,e,!!(1&t.u)),l()}}}const o=n.$,s=()=>A(n,!0);o&&o["s-rc"]?o["s-rc"].push(s):s()})(e,n,t)}l()}})(this)))}disconnectedCallback(){te.jmp((()=>(async()=>{if(!(1&te.u)){const e=G(this);(null==e?void 0:e.j)||(null==e?void 0:e.R)&&e.R.then((()=>{}))}})()))}componentOnReady(){return G(this).R}};t.T=e[0],s.includes(l)||r.get(l)||(o.push(l),r.define(l,V(i,t,1)))}))})),o.length>0&&(p&&(u.textContent+=a),u.textContent+=o+"{visibility:hidden}.hydrated{visibility:inherit}",u.innerHTML.length)){u.setAttribute("data-styles","");const e=null!=(t=te.S)?t:l(ne);null!=e&&u.setAttribute("nonce",e),i.insertBefore(u,c?c.nextSibling:i.firstChild)}h=!1,f.length?f.map((e=>e.connectedCallback())):te.jmp((()=>d=setTimeout(D,30)))},z=e=>te.S=e,B=new WeakMap,G=e=>B.get(e),I=(e,n)=>B.set(n.j=e,n),J=(e,n)=>{const t={u:0,$hostElement$:e,O:n,P:new Map};return t.R=new Promise((e=>t.M=e)),e["s-p"]=[],e["s-rc"]=[],B.set(e,t)},K=(e,n)=>n in e,Q=(e,n)=>(0,console.error)(e,n),X=new Map,Y=e=>{const n=e.m.replace(/-/g,"_"),t=e.T,l=X.get(t);return l?l[n]:import(`./${t}.entry.js`).then((e=>(X.set(t,e),e[n])),Q)
|
2
|
-
/*!__STENCIL_STATIC_IMPORT_SWITCH__*/},Z=new Map,ee="undefined"!=typeof window?window:{},ne=ee.document||{head:{}},te={u:0,A:"",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)},le=e=>Promise.resolve(e),oe=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync}catch(e){}return!1})(),se=!1,re=[],ie=[],ce=(e,n)=>t=>{e.push(t),se||(se=!0,n&&4&te.u?ae(fe):te.raf(fe))},ue=e=>{for(let n=0;n<e.length;n++)try{e[n](performance.now())}catch(e){Q(e)}e.length=0},fe=()=>{ue(re),ue(ie),(se=re.length>0)&&te.raf(fe)},ae=e=>le().then(e),de=ce(ie,!0);export{_ as b,d as h,le as p,I as r,z as s}
|