proto-table-wc 0.0.426 → 0.0.429
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-c03a3c70.js → index-c9f1b4c7.js} +17 -9
- package/dist/cjs/loader.cjs.js +1 -10
- package/dist/cjs/proto-table-wc.cjs.js +2 -5
- package/dist/collection/collection-manifest.json +3 -3
- package/dist/collection/components/demo-table/demo-table.js +1 -1
- package/dist/collection/components/proto-table/proto-table.js +2 -2
- package/dist/esm/demo-table_2.entry.js +1 -1
- package/dist/esm/{index-f309bd9e.js → index-0f81ef28.js} +17 -9
- package/dist/esm/loader.js +2 -11
- package/dist/esm/proto-table-wc.js +3 -6
- package/dist/proto-table-wc/p-c3422e1b.js +2 -0
- package/dist/proto-table-wc/{p-11839a21.entry.js → p-fc7284bc.entry.js} +1 -1
- package/dist/proto-table-wc/proto-table-wc.esm.js +1 -1
- package/dist/types/stencil-public-runtime.d.ts +2 -0
- package/package.json +5 -5
- package/dist/esm/polyfills/css-shim.js +0 -1
- package/dist/proto-table-wc/p-6ea9ad25.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-c9f1b4c7.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
|
|
@@ -236,9 +236,9 @@ const registerStyle = (scopeId, cssText, allowCS) => {
|
|
236
236
|
}
|
237
237
|
styles.set(scopeId, style);
|
238
238
|
};
|
239
|
-
const addStyle = (styleContainerNode, cmpMeta, mode
|
239
|
+
const addStyle = (styleContainerNode, cmpMeta, mode) => {
|
240
240
|
var _a;
|
241
|
-
|
241
|
+
const scopeId = getScopeId(cmpMeta);
|
242
242
|
const style = styles.get(scopeId);
|
243
243
|
// if an element is NOT connected then getRootNode() will return the wrong root node
|
244
244
|
// so the fallback is to always use the document for the root node in those cases
|
@@ -253,11 +253,8 @@ const addStyle = (styleContainerNode, cmpMeta, mode, hostElm) => {
|
|
253
253
|
}
|
254
254
|
if (!appliedStyles.has(scopeId)) {
|
255
255
|
{
|
256
|
-
|
257
|
-
|
258
|
-
styleElm = doc.createElement('style');
|
259
|
-
styleElm.innerHTML = style;
|
260
|
-
}
|
256
|
+
styleElm = doc.createElement('style');
|
257
|
+
styleElm.innerHTML = style;
|
261
258
|
// Apply CSP nonce to the style tag if it exists
|
262
259
|
const nonce = (_a = plt.$nonce$) !== null && _a !== void 0 ? _a : queryNonceMetaTagContent(doc);
|
263
260
|
if (nonce != null) {
|
@@ -282,7 +279,6 @@ const attachStyles = (hostRef) => {
|
|
282
279
|
const flags = cmpMeta.$flags$;
|
283
280
|
const endAttachStyles = createTime('attachStyles', cmpMeta.$tagName$);
|
284
281
|
const scopeId = addStyle(elm.shadowRoot ? elm.shadowRoot : elm.getRootNode(), cmpMeta);
|
285
|
-
// TODO(STENCIL-662): Remove code related to deprecated shadowDomShim field
|
286
282
|
if (flags & 10 /* CMP_FLAGS.needsScopedEncapsulation */) {
|
287
283
|
// only required when we're NOT using native shadow dom (slot)
|
288
284
|
// or this browser doesn't support native shadow dom
|
@@ -908,7 +904,19 @@ const dispatchHooks = (hostRef, isInitialLoad) => {
|
|
908
904
|
* @param fn a function to enqueue
|
909
905
|
* @returns either a `Promise` or the return value of the provided function
|
910
906
|
*/
|
911
|
-
const enqueue = (maybePromise, fn) => maybePromise
|
907
|
+
const enqueue = (maybePromise, fn) => isPromisey(maybePromise) ? maybePromise.then(fn) : fn();
|
908
|
+
/**
|
909
|
+
* Check that a value is a `Promise`. To check, we first see if the value is an
|
910
|
+
* instance of the `Promise` global. In a few circumstances, in particular if
|
911
|
+
* the global has been overwritten, this is could be misleading, so we also do
|
912
|
+
* a little 'duck typing' check to see if the `.then` property of the value is
|
913
|
+
* defined and a function.
|
914
|
+
*
|
915
|
+
* @param maybePromise it might be a promise!
|
916
|
+
* @returns whether it is or not
|
917
|
+
*/
|
918
|
+
const isPromisey = (maybePromise) => maybePromise instanceof Promise ||
|
919
|
+
(maybePromise && maybePromise.then && typeof maybePromise.then === 'function');
|
912
920
|
const updateComponent = async (hostRef, instance, isInitialLoad) => {
|
913
921
|
var _a;
|
914
922
|
const elm = hostRef.$hostElement$;
|
package/dist/cjs/loader.cjs.js
CHANGED
@@ -2,20 +2,11 @@
|
|
2
2
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
4
4
|
|
5
|
-
const index = require('./index-
|
6
|
-
|
7
|
-
/*
|
8
|
-
Stencil Client Patch Esm v3.3.1 | MIT Licensed | https://stenciljs.com
|
9
|
-
*/
|
10
|
-
const patchEsm = () => {
|
11
|
-
return index.promiseResolve();
|
12
|
-
};
|
5
|
+
const index = require('./index-c9f1b4c7.js');
|
13
6
|
|
14
7
|
const defineCustomElements = (win, options) => {
|
15
8
|
if (typeof window === 'undefined') return Promise.resolve();
|
16
|
-
return patchEsm().then(() => {
|
17
9
|
return index.bootstrapLazy([["demo-table_2.cjs",[[1,"demo-table"],[0,"proto-table",{"data":[16],"details":[8],"fields":[16],"expanded":[32],"sort":[32],"clicks":[32]}]]]], options);
|
18
|
-
});
|
19
10
|
};
|
20
11
|
|
21
12
|
exports.setNonce = index.setNonce;
|
@@ -2,19 +2,16 @@
|
|
2
2
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
4
4
|
|
5
|
-
const index = require('./index-
|
5
|
+
const index = require('./index-c9f1b4c7.js');
|
6
6
|
|
7
7
|
/*
|
8
|
-
Stencil Client Patch Browser
|
8
|
+
Stencil Client Patch Browser v4.0.1 | MIT Licensed | https://stenciljs.com
|
9
9
|
*/
|
10
10
|
const patchBrowser = () => {
|
11
11
|
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));
|
12
12
|
const opts = {};
|
13
|
-
// TODO(STENCIL-663): Remove code related to deprecated `safari10` field.
|
14
13
|
if (importMeta !== '') {
|
15
14
|
opts.resourcesUrl = new URL('.', importMeta).href;
|
16
|
-
// TODO(STENCIL-661): Remove code related to the dynamic import shim
|
17
|
-
// TODO(STENCIL-663): Remove code related to deprecated `safari10` field.
|
18
15
|
}
|
19
16
|
return index.promiseResolve(opts);
|
20
17
|
};
|
@@ -1,11 +1,11 @@
|
|
1
1
|
{
|
2
2
|
"entries": [
|
3
|
-
"
|
4
|
-
"
|
3
|
+
"components/demo-table/demo-table.js",
|
4
|
+
"components/proto-table/proto-table.js"
|
5
5
|
],
|
6
6
|
"compiler": {
|
7
7
|
"name": "@stencil/core",
|
8
|
-
"version": "
|
8
|
+
"version": "4.0.1",
|
9
9
|
"typescriptVersion": "5.0.4"
|
10
10
|
},
|
11
11
|
"collections": [],
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { r as registerInstance, h } from './index-
|
1
|
+
import { r as registerInstance, h } from './index-0f81ef28.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
|
|
@@ -214,9 +214,9 @@ const registerStyle = (scopeId, cssText, allowCS) => {
|
|
214
214
|
}
|
215
215
|
styles.set(scopeId, style);
|
216
216
|
};
|
217
|
-
const addStyle = (styleContainerNode, cmpMeta, mode
|
217
|
+
const addStyle = (styleContainerNode, cmpMeta, mode) => {
|
218
218
|
var _a;
|
219
|
-
|
219
|
+
const scopeId = getScopeId(cmpMeta);
|
220
220
|
const style = styles.get(scopeId);
|
221
221
|
// if an element is NOT connected then getRootNode() will return the wrong root node
|
222
222
|
// so the fallback is to always use the document for the root node in those cases
|
@@ -231,11 +231,8 @@ const addStyle = (styleContainerNode, cmpMeta, mode, hostElm) => {
|
|
231
231
|
}
|
232
232
|
if (!appliedStyles.has(scopeId)) {
|
233
233
|
{
|
234
|
-
|
235
|
-
|
236
|
-
styleElm = doc.createElement('style');
|
237
|
-
styleElm.innerHTML = style;
|
238
|
-
}
|
234
|
+
styleElm = doc.createElement('style');
|
235
|
+
styleElm.innerHTML = style;
|
239
236
|
// Apply CSP nonce to the style tag if it exists
|
240
237
|
const nonce = (_a = plt.$nonce$) !== null && _a !== void 0 ? _a : queryNonceMetaTagContent(doc);
|
241
238
|
if (nonce != null) {
|
@@ -260,7 +257,6 @@ const attachStyles = (hostRef) => {
|
|
260
257
|
const flags = cmpMeta.$flags$;
|
261
258
|
const endAttachStyles = createTime('attachStyles', cmpMeta.$tagName$);
|
262
259
|
const scopeId = addStyle(elm.shadowRoot ? elm.shadowRoot : elm.getRootNode(), cmpMeta);
|
263
|
-
// TODO(STENCIL-662): Remove code related to deprecated shadowDomShim field
|
264
260
|
if (flags & 10 /* CMP_FLAGS.needsScopedEncapsulation */) {
|
265
261
|
// only required when we're NOT using native shadow dom (slot)
|
266
262
|
// or this browser doesn't support native shadow dom
|
@@ -886,7 +882,19 @@ const dispatchHooks = (hostRef, isInitialLoad) => {
|
|
886
882
|
* @param fn a function to enqueue
|
887
883
|
* @returns either a `Promise` or the return value of the provided function
|
888
884
|
*/
|
889
|
-
const enqueue = (maybePromise, fn) => maybePromise
|
885
|
+
const enqueue = (maybePromise, fn) => isPromisey(maybePromise) ? maybePromise.then(fn) : fn();
|
886
|
+
/**
|
887
|
+
* Check that a value is a `Promise`. To check, we first see if the value is an
|
888
|
+
* instance of the `Promise` global. In a few circumstances, in particular if
|
889
|
+
* the global has been overwritten, this is could be misleading, so we also do
|
890
|
+
* a little 'duck typing' check to see if the `.then` property of the value is
|
891
|
+
* defined and a function.
|
892
|
+
*
|
893
|
+
* @param maybePromise it might be a promise!
|
894
|
+
* @returns whether it is or not
|
895
|
+
*/
|
896
|
+
const isPromisey = (maybePromise) => maybePromise instanceof Promise ||
|
897
|
+
(maybePromise && maybePromise.then && typeof maybePromise.then === 'function');
|
890
898
|
const updateComponent = async (hostRef, instance, isInitialLoad) => {
|
891
899
|
var _a;
|
892
900
|
const elm = hostRef.$hostElement$;
|
package/dist/esm/loader.js
CHANGED
@@ -1,18 +1,9 @@
|
|
1
|
-
import {
|
2
|
-
export { s as setNonce } from './index-
|
3
|
-
|
4
|
-
/*
|
5
|
-
Stencil Client Patch Esm v3.3.1 | MIT Licensed | https://stenciljs.com
|
6
|
-
*/
|
7
|
-
const patchEsm = () => {
|
8
|
-
return promiseResolve();
|
9
|
-
};
|
1
|
+
import { b as bootstrapLazy } from './index-0f81ef28.js';
|
2
|
+
export { s as setNonce } from './index-0f81ef28.js';
|
10
3
|
|
11
4
|
const defineCustomElements = (win, options) => {
|
12
5
|
if (typeof window === 'undefined') return Promise.resolve();
|
13
|
-
return patchEsm().then(() => {
|
14
6
|
return bootstrapLazy([["demo-table_2",[[1,"demo-table"],[0,"proto-table",{"data":[16],"details":[8],"fields":[16],"expanded":[32],"sort":[32],"clicks":[32]}]]]], options);
|
15
|
-
});
|
16
7
|
};
|
17
8
|
|
18
9
|
export { defineCustomElements };
|
@@ -1,17 +1,14 @@
|
|
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-0f81ef28.js';
|
2
|
+
export { s as setNonce } from './index-0f81ef28.js';
|
3
3
|
|
4
4
|
/*
|
5
|
-
Stencil Client Patch Browser
|
5
|
+
Stencil Client Patch Browser v4.0.1 | MIT Licensed | https://stenciljs.com
|
6
6
|
*/
|
7
7
|
const patchBrowser = () => {
|
8
8
|
const importMeta = import.meta.url;
|
9
9
|
const opts = {};
|
10
|
-
// TODO(STENCIL-663): Remove code related to deprecated `safari10` field.
|
11
10
|
if (importMeta !== '') {
|
12
11
|
opts.resourcesUrl = new URL('.', importMeta).href;
|
13
|
-
// TODO(STENCIL-661): Remove code related to the dynamic import shim
|
14
|
-
// TODO(STENCIL-663): Remove code related to deprecated `safari10` field.
|
15
12
|
}
|
16
13
|
return promiseResolve(opts);
|
17
14
|
};
|
@@ -0,0 +1,2 @@
|
|
1
|
+
let n,t,e=!1,l=!1;const o={},s=n=>"object"==(n=typeof n)||"function"===n;function i(n){var t,e,l;return null!==(l=null===(e=null===(t=n.head)||void 0===t?void 0:t.querySelector('meta[name="csp-nonce"]'))||void 0===e?void 0:e.getAttribute("content"))&&void 0!==l?l:void 0}const c=(n,t,...e)=>{let l=null,o=!1,i=!1;const c=[],u=t=>{for(let e=0;e<t.length;e++)l=t[e],Array.isArray(l)?u(l):null!=l&&"boolean"!=typeof l&&((o="function"!=typeof n&&!s(l))&&(l+=""),o&&i?c[c.length-1].t+=l:c.push(o?r(null,l):l),i=o)};if(u(e),t){const n=t.className||t.class;n&&(t.class="object"!=typeof n?n:Object.keys(n).filter((t=>n[t])).join(" "))}const a=r(n,null);return a.l=t,c.length>0&&(a.o=c),a},r=(n,t)=>({i:0,u:n,t,p:null,o:null,l:null}),u={},a=new WeakMap,f=n=>"sc-"+n.h,d=(n,t,e,l,o,i)=>{if(e!==l){let c=F(n,t),r=t.toLowerCase();if("class"===t){const t=n.classList,o=h(e),s=h(l);t.remove(...o.filter((n=>n&&!s.includes(n)))),t.add(...s.filter((n=>n&&!o.includes(n))))}else if("ref"===t)l&&l(n);else if(c||"o"!==t[0]||"n"!==t[1]){const r=s(l);if((c||r&&null!==l)&&!o)try{if(n.tagName.includes("-"))n[t]=l;else{const o=null==l?"":l;"list"===t?c=!1:null!=e&&n[t]==o||(n[t]=o)}}catch(n){}null==l||!1===l?!1===l&&""!==n.getAttribute(t)||n.removeAttribute(t):(!c||4&i||o)&&!r&&n.setAttribute(t,l=!0===l?"":l)}else t="-"===t[2]?t.slice(3):F(B,r)?r.slice(2):r[2]+t.slice(3),e&&I.rel(n,t,e,!1),l&&I.ael(n,t,l,!1)}},p=/\s/,h=n=>n?n.split(p):[],m=(n,t,e,l)=>{const s=11===t.p.nodeType&&t.p.host?t.p.host:t.p,i=n&&n.l||o,c=t.l||o;for(l in i)l in c||d(s,l,i[l],void 0,e,t.i);for(l in c)d(s,l,i[l],c[l],e,t.i)},$=(t,l,o)=>{const s=l.o[o];let i,c,r=0;if(null!==s.t)i=s.p=G.createTextNode(s.t);else{if(e||(e="svg"===s.u),i=s.p=G.createElementNS(e?"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",s.u),e&&"foreignObject"===s.u&&(e=!1),m(null,s,e),null!=n&&i["s-si"]!==n&&i.classList.add(i["s-si"]=n),s.o)for(r=0;r<s.o.length;++r)c=$(t,s,r),c&&i.appendChild(c);"svg"===s.u?e=!1:"foreignObject"===i.tagName&&(e=!0)}return i},y=(n,e,l,o,s,i)=>{let c,r=n;for(r.shadowRoot&&r.tagName===t&&(r=r.shadowRoot);s<=i;++s)o[s]&&(c=$(null,l,s),c&&(o[s].p=c,r.insertBefore(c,e)))},w=(n,t,e)=>{for(let l=t;l<=e;++l){const t=n[l];if(t){const n=t.p;g(t),n&&n.remove()}}},b=(n,t)=>n.u===t.u,v=(n,t)=>{const l=t.p=n.p,o=n.o,s=t.o,i=t.u,c=t.t;null===c?(e="svg"===i||"foreignObject"!==i&&e,m(n,t,e),null!==o&&null!==s?((n,t,e,l)=>{let o,s=0,i=0,c=t.length-1,r=t[0],u=t[c],a=l.length-1,f=l[0],d=l[a];for(;s<=c&&i<=a;)null==r?r=t[++s]:null==u?u=t[--c]:null==f?f=l[++i]:null==d?d=l[--a]:b(r,f)?(v(r,f),r=t[++s],f=l[++i]):b(u,d)?(v(u,d),u=t[--c],d=l[--a]):b(r,d)?(v(r,d),n.insertBefore(r.p,u.p.nextSibling),r=t[++s],d=l[--a]):b(u,f)?(v(u,f),n.insertBefore(u.p,r.p),u=t[--c],f=l[++i]):(o=$(t&&t[i],e,i),f=l[++i],o&&r.p.parentNode.insertBefore(o,r.p));s>c?y(n,null==l[a+1]?null:l[a+1].p,e,l,i,a):i>a&&w(t,s,c)})(l,o,t,s):null!==s?(null!==n.t&&(l.textContent=""),y(l,null,t,s,0,s.length-1)):null!==o&&w(o,0,o.length-1),e&&"svg"===i&&(e=!1)):n.t!==c&&(l.data=c)},g=n=>{n.l&&n.l.ref&&n.l.ref(null),n.o&&n.o.map(g)},S=(n,t)=>{t&&!n.m&&t["s-p"]&&t["s-p"].push(new Promise((t=>n.m=t)))},j=(n,t)=>{if(n.i|=16,!(4&n.i))return S(n,n.$),en((()=>O(n,t)));n.i|=512},O=(n,t)=>{const e=n.v;let l;return t&&(l=E(e,"componentWillLoad")),M(l,(()=>C(n,e,t)))},M=(n,t)=>k(n)?n.then(t):t(),k=n=>n instanceof Promise||n&&n.then&&"function"==typeof n.then,C=async(n,t,e)=>{var l;const o=n.g,s=o["s-rc"];e&&(n=>{const t=n.S,e=n.g,l=t.i,o=((n,t)=>{var e;const l=f(t),o=z.get(l);if(n=11===n.nodeType?n:G,o)if("string"==typeof o){let t,s=a.get(n=n.head||n);if(s||a.set(n,s=new Set),!s.has(l)){{t=G.createElement("style"),t.innerHTML=o;const l=null!==(e=I.j)&&void 0!==e?e:i(G);null!=l&&t.setAttribute("nonce",l),n.insertBefore(t,n.querySelector("link"))}s&&s.add(l)}}else n.adoptedStyleSheets.includes(o)||(n.adoptedStyleSheets=[...n.adoptedStyleSheets,o]);return l})(e.shadowRoot?e.shadowRoot:e.getRootNode(),t);10&l&&(e["s-sc"]=o,e.classList.add(o+"-h"))})(n);P(n,t),s&&(s.map((n=>n())),o["s-rc"]=void 0);{const t=null!==(l=o["s-p"])&&void 0!==l?l:[],e=()=>x(n);0===t.length?e():(Promise.all(t).then(e),n.i|=4,t.length=0)}},P=(e,l)=>{try{l=l.render(),e.i&=-17,e.i|=2,((e,l)=>{const o=e.g,s=e.O||r(null,null),i=(n=>n&&n.u===u)(l)?l:c(null,null,l);t=o.tagName,i.u=null,i.i|=4,e.O=i,i.p=s.p=o.shadowRoot||o,n=o["s-sc"],v(s,i)})(e,l)}catch(n){H(n,e.g)}return null},x=n=>{const t=n.g,e=n.v,l=n.$;64&n.i||(n.i|=64,N(t),E(e,"componentDidLoad"),n.M(t),l||L()),n.m&&(n.m(),n.m=void 0),512&n.i&&tn((()=>j(n,!1))),n.i&=-517},L=()=>{N(G.documentElement),tn((()=>(n=>{const t=I.ce("appload",{detail:{namespace:"proto-table-wc"}});return n.dispatchEvent(t),t})(B)))},E=(n,t,e)=>{if(n&&n[t])try{return n[t](e)}catch(n){H(n)}},N=n=>n.classList.add("hydrated"),T=(n,t,e)=>{if(t.k){const l=Object.entries(t.k),o=n.prototype;if(l.map((([n,[t]])=>{(31&t||2&e&&32&t)&&Object.defineProperty(o,n,{get(){return((n,t)=>U(this).C.get(t))(0,n)},set(t){((n,t,e)=>{const l=U(n),o=l.C.get(t),i=l.i,c=l.v;e=(n=>(null==n||s(n),n))(e),8&i&&void 0!==o||e===o||Number.isNaN(o)&&Number.isNaN(e)||(l.C.set(t,e),c&&2==(18&i)&&j(l,!1))})(this,n,t)},configurable:!0,enumerable:!0})})),1&e){const t=new Map;o.attributeChangedCallback=function(n,e,l){I.jmp((()=>{const e=t.get(n);if(this.hasOwnProperty(e))l=this[e],delete this[e];else if(o.hasOwnProperty(e)&&"number"==typeof this[e]&&this[e]==l)return;this[e]=(null!==l||"boolean"!=typeof this[e])&&l}))},n.observedAttributes=l.filter((([n,t])=>15&t[0])).map((([n,e])=>{const l=e[1]||n;return t.set(l,n),l}))}}return n},W=(n,t={})=>{var e;const l=[],o=t.exclude||[],s=B.customElements,c=G.head,r=c.querySelector("meta[charset]"),u=G.createElement("style"),a=[];let d,p=!0;Object.assign(I,t),I.P=new URL(t.resourcesUrl||"./",G.baseURI).href,n.map((n=>{n[1].map((t=>{const e={i:t[0],h:t[1],k:t[2],L:t[3]};e.k=t[2];const i=e.h,c=class extends HTMLElement{constructor(n){super(n),D(n=this,e),1&e.i&&n.attachShadow({mode:"open"})}connectedCallback(){d&&(clearTimeout(d),d=null),p?a.push(this):I.jmp((()=>(n=>{if(0==(1&I.i)){const t=U(n),e=t.S,l=()=>{};if(!(1&t.i)){t.i|=1;{let e=n;for(;e=e.parentNode||e.host;)if(e["s-p"]){S(t,t.$=e);break}}e.k&&Object.entries(e.k).map((([t,[e]])=>{if(31&e&&n.hasOwnProperty(t)){const e=n[t];delete n[t],n[t]=e}})),(async(n,t,e,l,o)=>{if(0==(32&t.i)){t.i|=32;{if((o=_(e)).then){const n=()=>{};o=await o,n()}o.isProxied||(T(o,e,2),o.isProxied=!0);const n=()=>{};t.i|=8;try{new o(t)}catch(n){H(n)}t.i&=-9,n()}if(o.style){let n=o.style;const t=f(e);if(!z.has(t)){const l=()=>{};((n,t,e)=>{let l=z.get(n);K&&e?(l=l||new CSSStyleSheet,"string"==typeof l?l=t:l.replaceSync(t)):l=t,z.set(n,l)})(t,n,!!(1&e.i)),l()}}}const s=t.$,i=()=>j(t,!0);s&&s["s-rc"]?s["s-rc"].push(i):i()})(0,t,e)}l()}})(this)))}disconnectedCallback(){I.jmp((()=>{}))}componentOnReady(){return U(this).N}};e.T=n[0],o.includes(i)||s.get(i)||(l.push(i),s.define(i,T(c,e,1)))}))}));{u.innerHTML=l+"{visibility:hidden}.hydrated{visibility:inherit}",u.setAttribute("data-styles","");const n=null!==(e=I.j)&&void 0!==e?e:i(G);null!=n&&u.setAttribute("nonce",n),c.insertBefore(u,r?r.nextSibling:c.firstChild)}p=!1,a.length?a.map((n=>n.connectedCallback())):I.jmp((()=>d=setTimeout(L,30)))},A=n=>I.j=n,R=new WeakMap,U=n=>R.get(n),q=(n,t)=>R.set(t.v=n,t),D=(n,t)=>{const e={i:0,g:n,S:t,C:new Map};return e.N=new Promise((n=>e.M=n)),n["s-p"]=[],n["s-rc"]=[],R.set(n,e)},F=(n,t)=>t in n,H=(n,t)=>(0,console.error)(n,t),V=new Map,_=n=>{const t=n.h.replace(/-/g,"_"),e=n.T,l=V.get(e);return l?l[t]:import(`./${e}.entry.js`).then((n=>(V.set(e,n),n[t])),H)
|
2
|
+
/*!__STENCIL_STATIC_IMPORT_SWITCH__*/},z=new Map,B="undefined"!=typeof window?window:{},G=B.document||{head:{}},I={i:0,P:"",jmp:n=>n(),raf:n=>requestAnimationFrame(n),ael:(n,t,e,l)=>n.addEventListener(t,e,l),rel:(n,t,e,l)=>n.removeEventListener(t,e,l),ce:(n,t)=>new CustomEvent(n,t)},J=n=>Promise.resolve(n),K=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync}catch(n){}return!1})(),Q=[],X=[],Y=(n,t)=>e=>{n.push(e),l||(l=!0,t&&4&I.i?tn(nn):I.raf(nn))},Z=n=>{for(let t=0;t<n.length;t++)try{n[t](performance.now())}catch(n){H(n)}n.length=0},nn=()=>{Z(Q),Z(X),(l=Q.length>0)&&I.raf(nn)},tn=n=>J().then(n),en=Y(X,!0);export{W as b,c as h,J as p,q as r,A as s}
|
@@ -1 +1 @@
|
|
1
|
-
import{r as t,h as e}from"./p-
|
1
|
+
import{r as t,h as e}from"./p-c3422e1b.js";const r=class{constructor(r){t(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=t=>{const{tags:r=[]}=t;return e("div",{class:"detailWrapper"},e("span",null,r.length," details..."),e("ul",null,r.map((t=>e("li",null,t)))))}}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:t,items:e,fields:r}=this;t.data=e,t.fields=r,t.details=this.renderDetails}render(){return e("proto-table",{ref:t=>this.table=t})}};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){t(this,r),this.protoIcon=(t,r,l=24)=>{const o=s[t];return e("svg",{width:l,height:l,viewBox:"0 0 24 24",role:"img","aria-labelledby":"title"},e("title",null,(t=>i[t])(t)),e("g",{fill:r},e("path",{d:o})),e("path",{d:"M0 0h24v24H0z",fill:"none"}))},this.handleCellClick=(t,e)=>()=>{0===t&&(this.expanded=this.expanded===e?void 0:e)},this.handleSortClick=t=>()=>{this.sort===t?2===this.clicks?(this.clicks=0,this.sort=void 0):this.clicks=this.clicks+1:(this.sort=t,this.clicks=1)},this.iconFor=t=>this.sort===t&&2===this.clicks?"arrow-up":"arrow-down",this.header=()=>{const{fields:t,iconFor:r,protoIcon:s}=this;return e("div",{class:"header"},t.map((({label:t},i)=>{const l=i===this.sort?"headerCell sort":"headerCell",o=r(i);return e("div",{class:l,onClick:this.handleSortClick(i)},s(o),e("span",null,t))})))},this.row=(t,r)=>{const{fields:s,protoIcon:i}=this;return e("div",{class:"rowContainer"},e("div",{class:this.expanded===r?"row expanded":"row"},s.map((({prop:s},l)=>e("div",{class:l===this.sort?"cell sort":"cell",onClick:this.handleCellClick(l,r)},i(0===l&&this.details?this.expanded===r?"down":"right":"pad"),t[s])))),this.details&&this.expanded===r&&this.details(t))},this.data=[],this.details=void 0,this.fields=[],this.expanded=void 0,this.sort=void 0,this.clicks=0}render(){const t=this.data||[];return e("div",{class:"table"},this.header(),t.map(((t,e)=>this.row(t,e))))}};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 e,b as t}from"./p-c3422e1b.js";export{s as setNonce}from"./p-c3422e1b.js";(()=>{const t=import.meta.url,s={};return""!==t&&(s.resourcesUrl=new URL(".",t).href),e(s)})().then((e=>t([["p-fc7284bc",[[1,"demo-table"],[0,"proto-table",{data:[16],details:[8],fields:[16],expanded:[32],sort:[32],clicks:[32]}]]]],e)));
|
@@ -1131,6 +1131,8 @@ export declare namespace JSXBase {
|
|
1131
1131
|
summary?: string;
|
1132
1132
|
}
|
1133
1133
|
interface TextareaHTMLAttributes<T> extends HTMLAttributes<T> {
|
1134
|
+
autoComplete?: string;
|
1135
|
+
autocomplete?: string;
|
1134
1136
|
autoFocus?: boolean;
|
1135
1137
|
autofocus?: boolean | string;
|
1136
1138
|
cols?: number;
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "proto-table-wc",
|
3
|
-
"version": "0.0.
|
3
|
+
"version": "0.0.429",
|
4
4
|
"description": "Stencil Component Starter",
|
5
5
|
"main": "dist/index.cjs.js",
|
6
6
|
"module": "dist/index.js",
|
@@ -25,14 +25,14 @@
|
|
25
25
|
"format": "prettier --write src"
|
26
26
|
},
|
27
27
|
"dependencies": {
|
28
|
-
"@stencil/core": "
|
28
|
+
"@stencil/core": "4.0.1"
|
29
29
|
},
|
30
30
|
"devDependencies": {
|
31
31
|
"cspell": "6.31.1",
|
32
|
-
"eslint": "8.
|
33
|
-
"prettier": "
|
32
|
+
"eslint": "8.44.0",
|
33
|
+
"prettier": "3.0.0",
|
34
34
|
"tslint": "6.1.3",
|
35
|
-
"typescript": "5.1.
|
35
|
+
"typescript": "5.1.6"
|
36
36
|
},
|
37
37
|
"license": "MIT"
|
38
38
|
}
|
@@ -1 +0,0 @@
|
|
1
|
-
var __assign=this&&this.__assign||function(){return __assign=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var s in t=arguments[r])Object.prototype.hasOwnProperty.call(t,s)&&(e[s]=t[s]);return e},__assign.apply(this,arguments)},StyleNode=function(){this.start=0,this.end=0,this.previous=null,this.parent=null,this.rules=null,this.parsedCssText="",this.cssText="",this.atRule=!1,this.type=0,this.keyframesName="",this.selector="",this.parsedSelector=""};function parse(e){return parseCss(lex(e=clean(e)),e)}function clean(e){return e.replace(RX.comments,"").replace(RX.port,"")}function lex(e){var t=new StyleNode;t.start=0,t.end=e.length;for(var r=t,n=0,s=e.length;n<s;n++)if(e[n]===OPEN_BRACE){r.rules||(r.rules=[]);var o=r,a=o.rules[o.rules.length-1]||null;(r=new StyleNode).start=n+1,r.parent=o,r.previous=a,o.rules.push(r)}else e[n]===CLOSE_BRACE&&(r.end=n+1,r=r.parent||t);return t}function parseCss(e,t){var r=t.substring(e.start,e.end-1);if(e.parsedCssText=e.cssText=r.trim(),e.parent){var n=e.previous?e.previous.end:e.parent.start;r=(r=(r=_expandUnicodeEscapes(r=t.substring(n,e.start-1))).replace(RX.multipleSpaces," ")).substring(r.lastIndexOf(";")+1);var s=e.parsedSelector=e.selector=r.trim();e.atRule=0===s.indexOf(AT_START),e.atRule?0===s.indexOf(MEDIA_START)?e.type=types.MEDIA_RULE:s.match(RX.keyframesRule)&&(e.type=types.KEYFRAMES_RULE,e.keyframesName=e.selector.split(RX.multipleSpaces).pop()):0===s.indexOf(VAR_START)?e.type=types.MIXIN_RULE:e.type=types.STYLE_RULE}var o=e.rules;if(o)for(var a=0,i=o.length,l=void 0;a<i&&(l=o[a]);a++)parseCss(l,t);return e}function _expandUnicodeEscapes(e){return e.replace(/\\([0-9a-f]{1,6})\s/gi,(function(){for(var e=arguments[1],t=6-e.length;t--;)e="0"+e;return"\\"+e}))}var types={STYLE_RULE:1,KEYFRAMES_RULE:7,MEDIA_RULE:4,MIXIN_RULE:1e3},OPEN_BRACE="{",CLOSE_BRACE="}",RX={comments:/\/\*[^*]*\*+([^/*][^*]*\*+)*\//gim,port:/@import[^;]*;/gim,customProp:/(?:^[^;\-\s}]+)?--[^;{}]*?:[^{};]*?(?:[;\n]|$)/gim,mixinProp:/(?:^[^;\-\s}]+)?--[^;{}]*?:[^{};]*?{[^}]*?}(?:[;\n]|$)?/gim,mixinApply:/@apply\s*\(?[^);]*\)?\s*(?:[;\n]|$)?/gim,varApply:/[^;:]*?:[^;]*?var\([^;]*\)(?:[;\n]|$)?/gim,keyframesRule:/^@[^\s]*keyframes/,multipleSpaces:/\s+/g},VAR_START="--",MEDIA_START="@media",AT_START="@",VAR_USAGE_START=/\bvar\(/,VAR_ASSIGN_START=/\B--[\w-]+\s*:/,COMMENTS=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//gim,TRAILING_LINES=/^[\t ]+\n/gm;function findRegex(e,t,r){e.lastIndex=0;var n=t.substring(r).match(e);if(n){var s=r+n.index;return{start:s,end:s+n[0].length}}return null}function resolveVar(e,t,r){return e[t]?e[t]:r?executeTemplate(r,e):""}function findVarEndIndex(e,t){for(var r=0,n=t;n<e.length;n++){var s=e[n];if("("===s)r++;else if(")"===s&&--r<=0)return n+1}return n}function parseVar(e,t){var r=findRegex(VAR_USAGE_START,e,t);if(!r)return null;var n=findVarEndIndex(e,r.start),s=e.substring(r.end,n-1).split(","),o=s[0],a=s.slice(1);return{start:r.start,end:n,propName:o.trim(),fallback:a.length>0?a.join(",").trim():void 0}}function compileVar(e,t,r){var n=parseVar(e,r);if(!n)return t.push(e.substring(r,e.length)),e.length;var s=n.propName,o=null!=n.fallback?compileTemplate(n.fallback):void 0;return t.push(e.substring(r,n.start),(function(e){return resolveVar(e,s,o)})),n.end}function executeTemplate(e,t){for(var r="",n=0;n<e.length;n++){var s=e[n];r+="string"==typeof s?s:s(t)}return r}function findEndValue(e,t){for(var r=!1,n=!1,s=t;s<e.length;s++){var o=e[s];if(r)n&&'"'===o&&(r=!1),n||"'"!==o||(r=!1);else if('"'===o)r=!0,n=!0;else if("'"===o)r=!0,n=!1;else{if(";"===o)return s+1;if("}"===o)return s}}return s}function removeCustomAssigns(e){for(var t="",r=0;;){var n=findRegex(VAR_ASSIGN_START,e,r),s=n?n.start:e.length;if(t+=e.substring(r,s),!n)break;r=findEndValue(e,s)}return t}function compileTemplate(e){var t=0;e=removeCustomAssigns(e=e.replace(COMMENTS,"")).replace(TRAILING_LINES,"");for(var r=[];t<e.length;)t=compileVar(e,r,t);return r}function resolveValues(e){var t={};e.forEach((function(e){e.declarations.forEach((function(e){t[e.prop]=e.value}))}));for(var r={},n=Object.entries(t),s=function(e){var t=!1;if(n.forEach((function(e){var n=e[0],s=executeTemplate(e[1],r);s!==r[n]&&(r[n]=s,t=!0)})),!t)return"break"},o=0;o<10;o++){if("break"===s())break}return r}function getSelectors(e,t){if(void 0===t&&(t=0),!e.rules)return[];var r=[];return e.rules.filter((function(e){return e.type===types.STYLE_RULE})).forEach((function(e){var n=getDeclarations(e.cssText);n.length>0&&e.parsedSelector.split(",").forEach((function(e){e=e.trim(),r.push({selector:e,declarations:n,specificity:computeSpecificity(),nu:t})})),t++})),r}function computeSpecificity(e){return 1}var IMPORTANT="!important",FIND_DECLARATIONS=/(?:^|[;\s{]\s*)(--[\w-]*?)\s*:\s*(?:((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};{])+)|\{([^}]*)\}(?:(?=[;\s}])|$))/gm;function getDeclarations(e){for(var t,r=[];t=FIND_DECLARATIONS.exec(e.trim());){var n=normalizeValue(t[2]),s=n.value,o=n.important;r.push({prop:t[1].trim(),value:compileTemplate(s),important:o})}return r}function normalizeValue(e){var t=(e=e.replace(/\s+/gim," ").trim()).endsWith(IMPORTANT);return t&&(e=e.slice(0,e.length-IMPORTANT.length).trim()),{value:e,important:t}}function getActiveSelectors(e,t,r){var n=[],s=getScopesForElement(t,e);return r.forEach((function(e){return n.push(e)})),s.forEach((function(e){return n.push(e)})),sortSelectors(getSelectorsForScopes(n).filter((function(t){return matches(e,t.selector)})))}function getScopesForElement(e,t){for(var r=[];t;){var n=e.get(t);n&&r.push(n),t=t.parentElement}return r}function getSelectorsForScopes(e){var t=[];return e.forEach((function(e){t.push.apply(t,e.selectors)})),t}function sortSelectors(e){return e.sort((function(e,t){return e.specificity===t.specificity?e.nu-t.nu:e.specificity-t.specificity})),e}function matches(e,t){return":root"===t||"html"===t||e.matches(t)}function parseCSS(e){var t=parse(e),r=compileTemplate(e);return{original:e,template:r,selectors:getSelectors(t),usesCssVars:r.length>1}}function addGlobalStyle(e,t){if(e.some((function(e){return e.styleEl===t})))return!1;var r=parseCSS(t.textContent);return r.styleEl=t,e.push(r),!0}function updateGlobalScopes(e){var t=resolveValues(getSelectorsForScopes(e));e.forEach((function(e){e.usesCssVars&&(e.styleEl.textContent=executeTemplate(e.template,t))}))}function reScope(e,t){var r=e.template.map((function(r){return"string"==typeof r?replaceScope(r,e.scopeId,t):r})),n=e.selectors.map((function(r){return __assign(__assign({},r),{selector:replaceScope(r.selector,e.scopeId,t)})}));return __assign(__assign({},e),{template:r,selectors:n,scopeId:t})}function replaceScope(e,t,r){return e=replaceAll(e,"\\.".concat(t),".".concat(r))}function replaceAll(e,t,r){return e.replace(new RegExp(t,"g"),r)}function loadDocument(e,t){return loadDocumentStyles(e,t),loadDocumentLinks(e,t).then((function(){updateGlobalScopes(t)}))}function startWatcher(e,t){"undefined"!=typeof MutationObserver&&new MutationObserver((function(){loadDocumentStyles(e,t)&&updateGlobalScopes(t)})).observe(document.head,{childList:!0})}function loadDocumentLinks(e,t){for(var r=[],n=e.querySelectorAll('link[rel="stylesheet"][href]:not([data-no-shim])'),s=0;s<n.length;s++)r.push(addGlobalLink(e,t,n[s]));return Promise.all(r)}function loadDocumentStyles(e,t){return Array.from(e.querySelectorAll("style:not([data-styles]):not([data-no-shim])")).map((function(e){return addGlobalStyle(t,e)})).some(Boolean)}function addGlobalLink(e,t,r){var n=r.href;return fetch(n).then((function(e){return e.text()})).then((function(s){if(hasCssVariables(s)&&r.parentNode){hasRelativeUrls(s)&&(s=fixRelativeUrls(s,n));var o=e.createElement("style");o.setAttribute("data-styles",""),o.textContent=s,addGlobalStyle(t,o),r.parentNode.insertBefore(o,r),r.remove()}})).catch((function(e){console.error(e)}))}var CSS_VARIABLE_REGEXP=/[\s;{]--[-a-zA-Z0-9]+\s*:/m;function hasCssVariables(e){return e.indexOf("var(")>-1||CSS_VARIABLE_REGEXP.test(e)}var CSS_URL_REGEXP=/url[\s]*\([\s]*['"]?(?!(?:https?|data)\:|\/)([^\'\"\)]*)[\s]*['"]?\)[\s]*/gim;function hasRelativeUrls(e){return CSS_URL_REGEXP.lastIndex=0,CSS_URL_REGEXP.test(e)}function fixRelativeUrls(e,t){var r=t.replace(/[^/]*$/,"");return e.replace(CSS_URL_REGEXP,(function(e,t){var n=r+t;return e.replace(t,n)}))}var CustomStyle=function(){function e(e,t){this.win=e,this.doc=t,this.count=0,this.hostStyleMap=new WeakMap,this.hostScopeMap=new WeakMap,this.globalScopes=[],this.scopesMap=new Map,this.didInit=!1}return e.prototype.i=function(){var e=this;return this.didInit||!this.win.requestAnimationFrame?Promise.resolve():(this.didInit=!0,new Promise((function(t){e.win.requestAnimationFrame((function(){startWatcher(e.doc,e.globalScopes),loadDocument(e.doc,e.globalScopes).then((function(){return t()}))}))})))},e.prototype.addLink=function(e){var t=this;return addGlobalLink(this.doc,this.globalScopes,e).then((function(){t.updateGlobal()}))},e.prototype.addGlobalStyle=function(e){addGlobalStyle(this.globalScopes,e)&&this.updateGlobal()},e.prototype.createHostStyle=function(e,t,r,n){if(this.hostScopeMap.has(e))throw new Error("host style already created");var s=this.registerHostTemplate(r,t,n),o=this.doc.createElement("style");return o.setAttribute("data-no-shim",""),s.usesCssVars?n?(o["s-sc"]=t="".concat(s.scopeId,"-").concat(this.count),o.textContent="/*needs update*/",this.hostStyleMap.set(e,o),this.hostScopeMap.set(e,reScope(s,t)),this.count++):(s.styleEl=o,s.usesCssVars||(o.textContent=executeTemplate(s.template,{})),this.globalScopes.push(s),this.updateGlobal(),this.hostScopeMap.set(e,s)):o.textContent=r,o},e.prototype.removeHost=function(e){var t=this.hostStyleMap.get(e);t&&t.remove(),this.hostStyleMap.delete(e),this.hostScopeMap.delete(e)},e.prototype.updateHost=function(e){var t=this.hostScopeMap.get(e);if(t&&t.usesCssVars&&t.isScoped){var r=this.hostStyleMap.get(e);if(r){var n=resolveValues(getActiveSelectors(e,this.hostScopeMap,this.globalScopes));r.textContent=executeTemplate(t.template,n)}}},e.prototype.updateGlobal=function(){updateGlobalScopes(this.globalScopes)},e.prototype.registerHostTemplate=function(e,t,r){var n=this.scopesMap.get(t);return n||((n=parseCSS(e)).scopeId=t,n.isScoped=r,this.scopesMap.set(t,n)),n},e}();!function(e){!e||e.__cssshim||e.CSS&&e.CSS.supports&&e.CSS.supports("color","var(--c)")||(e.__cssshim=new CustomStyle(e,e.document))}("undefined"!=typeof window&&window);
|
@@ -1,2 +0,0 @@
|
|
1
|
-
let t,e,n=!1,l=!1;const o={},s=t=>"object"==(t=typeof t)||"function"===t;function i(t){var e,n,l;return null!==(l=null===(n=null===(e=t.head)||void 0===e?void 0:e.querySelector('meta[name="csp-nonce"]'))||void 0===n?void 0:n.getAttribute("content"))&&void 0!==l?l:void 0}const r=(t,e,...n)=>{let l=null,o=!1,i=!1;const r=[],u=e=>{for(let n=0;n<e.length;n++)l=e[n],Array.isArray(l)?u(l):null!=l&&"boolean"!=typeof l&&((o="function"!=typeof t&&!s(l))&&(l+=""),o&&i?r[r.length-1].t+=l:r.push(o?c(null,l):l),i=o)};if(u(n),e){const t=e.className||e.class;t&&(e.class="object"!=typeof t?t:Object.keys(t).filter((e=>t[e])).join(" "))}const a=c(t,null);return a.l=e,r.length>0&&(a.o=r),a},c=(t,e)=>({i:0,u:t,t:e,h:null,o:null,l:null}),u={},a=new WeakMap,f=t=>"sc-"+t.p,d=(t,e,n,l,o,i)=>{if(n!==l){let r=D(t,e),c=e.toLowerCase();if("class"===e){const e=t.classList,o=p(n),s=p(l);e.remove(...o.filter((t=>t&&!s.includes(t)))),e.add(...s.filter((t=>t&&!o.includes(t))))}else if("ref"===e)l&&l(t);else if(r||"o"!==e[0]||"n"!==e[1]){const c=s(l);if((r||c&&null!==l)&&!o)try{if(t.tagName.includes("-"))t[e]=l;else{const o=null==l?"":l;"list"===e?r=!1:null!=n&&t[e]==o||(t[e]=o)}}catch(t){}null==l||!1===l?!1===l&&""!==t.getAttribute(e)||t.removeAttribute(e):(!r||4&i||o)&&!c&&t.setAttribute(e,l=!0===l?"":l)}else e="-"===e[2]?e.slice(3):D(z,c)?c.slice(2):c[2]+e.slice(3),n&&G.rel(t,e,n,!1),l&&G.ael(t,e,l,!1)}},h=/\s/,p=t=>t?t.split(h):[],m=(t,e,n,l)=>{const s=11===e.h.nodeType&&e.h.host?e.h.host:e.h,i=t&&t.l||o,r=e.l||o;for(l in i)l in r||d(s,l,i[l],void 0,n,e.i);for(l in r)d(s,l,i[l],r[l],n,e.i)},$=(e,l,o)=>{const s=l.o[o];let i,r,c=0;if(null!==s.t)i=s.h=B.createTextNode(s.t);else{if(n||(n="svg"===s.u),i=s.h=B.createElementNS(n?"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",s.u),n&&"foreignObject"===s.u&&(n=!1),m(null,s,n),null!=t&&i["s-si"]!==t&&i.classList.add(i["s-si"]=t),s.o)for(c=0;c<s.o.length;++c)r=$(e,s,c),r&&i.appendChild(r);"svg"===s.u?n=!1:"foreignObject"===i.tagName&&(n=!0)}return i},y=(t,n,l,o,s,i)=>{let r,c=t;for(c.shadowRoot&&c.tagName===e&&(c=c.shadowRoot);s<=i;++s)o[s]&&(r=$(null,l,s),r&&(o[s].h=r,c.insertBefore(r,n)))},w=(t,e,n)=>{for(let l=e;l<=n;++l){const e=t[l];if(e){const t=e.h;g(e),t&&t.remove()}}},b=(t,e)=>t.u===e.u,v=(t,e)=>{const l=e.h=t.h,o=t.o,s=e.o,i=e.u,r=e.t;null===r?(n="svg"===i||"foreignObject"!==i&&n,m(t,e,n),null!==o&&null!==s?((t,e,n,l)=>{let o,s=0,i=0,r=e.length-1,c=e[0],u=e[r],a=l.length-1,f=l[0],d=l[a];for(;s<=r&&i<=a;)null==c?c=e[++s]:null==u?u=e[--r]:null==f?f=l[++i]:null==d?d=l[--a]:b(c,f)?(v(c,f),c=e[++s],f=l[++i]):b(u,d)?(v(u,d),u=e[--r],d=l[--a]):b(c,d)?(v(c,d),t.insertBefore(c.h,u.h.nextSibling),c=e[++s],d=l[--a]):b(u,f)?(v(u,f),t.insertBefore(u.h,c.h),u=e[--r],f=l[++i]):(o=$(e&&e[i],n,i),f=l[++i],o&&c.h.parentNode.insertBefore(o,c.h));s>r?y(t,null==l[a+1]?null:l[a+1].h,n,l,i,a):i>a&&w(e,s,r)})(l,o,e,s):null!==s?(null!==t.t&&(l.textContent=""),y(l,null,e,s,0,s.length-1)):null!==o&&w(o,0,o.length-1),n&&"svg"===i&&(n=!1)):t.t!==r&&(l.data=r)},g=t=>{t.l&&t.l.ref&&t.l.ref(null),t.o&&t.o.map(g)},S=(t,e)=>{e&&!t.m&&e["s-p"]&&e["s-p"].push(new Promise((e=>t.m=e)))},j=(t,e)=>{if(t.i|=16,!(4&t.i))return S(t,t.$),et((()=>O(t,e)));t.i|=512},O=(t,e)=>{const n=t.v;let l;return e&&(l=L(n,"componentWillLoad")),M(l,(()=>k(t,n,e)))},M=(t,e)=>t instanceof Promise?t.then(e):e(),k=async(t,e,n)=>{var l;const o=t.g,s=o["s-rc"];n&&(t=>{const e=t.S,n=t.g,l=e.i,o=((t,e)=>{var n;let l=f(e);const o=_.get(l);if(t=11===t.nodeType?t:B,o)if("string"==typeof o){let e,s=a.get(t=t.head||t);if(s||a.set(t,s=new Set),!s.has(l)){{e=B.createElement("style"),e.innerHTML=o;const l=null!==(n=G.j)&&void 0!==n?n:i(B);null!=l&&e.setAttribute("nonce",l),t.insertBefore(e,t.querySelector("link"))}s&&s.add(l)}}else t.adoptedStyleSheets.includes(o)||(t.adoptedStyleSheets=[...t.adoptedStyleSheets,o]);return l})(n.shadowRoot?n.shadowRoot:n.getRootNode(),e);10&l&&(n["s-sc"]=o,n.classList.add(o+"-h"))})(t);C(t,e),s&&(s.map((t=>t())),o["s-rc"]=void 0);{const e=null!==(l=o["s-p"])&&void 0!==l?l:[],n=()=>P(t);0===e.length?n():(Promise.all(e).then(n),t.i|=4,e.length=0)}},C=(n,l)=>{try{l=l.render(),n.i&=-17,n.i|=2,((n,l)=>{const o=n.g,s=n.O||c(null,null),i=(t=>t&&t.u===u)(l)?l:r(null,null,l);e=o.tagName,i.u=null,i.i|=4,n.O=i,i.h=s.h=o.shadowRoot||o,t=o["s-sc"],v(s,i)})(n,l)}catch(t){F(t,n.g)}return null},P=t=>{const e=t.g,n=t.v,l=t.$;64&t.i||(t.i|=64,E(e),L(n,"componentDidLoad"),t.M(e),l||x()),t.m&&(t.m(),t.m=void 0),512&t.i&&tt((()=>j(t,!1))),t.i&=-517},x=()=>{E(B.documentElement),tt((()=>(t=>{const e=G.ce("appload",{detail:{namespace:"proto-table-wc"}});return t.dispatchEvent(e),e})(z)))},L=(t,e,n)=>{if(t&&t[e])try{return t[e](n)}catch(t){F(t)}},E=t=>t.classList.add("hydrated"),N=(t,e,n)=>{if(e.k){const l=Object.entries(e.k),o=t.prototype;if(l.map((([t,[e]])=>{(31&e||2&n&&32&e)&&Object.defineProperty(o,t,{get(){return((t,e)=>R(this).C.get(e))(0,t)},set(e){((t,e,n)=>{const l=R(t),o=l.C.get(e),i=l.i,r=l.v;n=(t=>(null==t||s(t),t))(n),8&i&&void 0!==o||n===o||Number.isNaN(o)&&Number.isNaN(n)||(l.C.set(e,n),r&&2==(18&i)&&j(l,!1))})(this,t,e)},configurable:!0,enumerable:!0})})),1&n){const e=new Map;o.attributeChangedCallback=function(t,n,l){G.jmp((()=>{const n=e.get(t);if(this.hasOwnProperty(n))l=this[n],delete this[n];else if(o.hasOwnProperty(n)&&"number"==typeof this[n]&&this[n]==l)return;this[n]=(null!==l||"boolean"!=typeof this[n])&&l}))},t.observedAttributes=l.filter((([t,e])=>15&e[0])).map((([t,n])=>{const l=n[1]||t;return e.set(l,t),l}))}}return t},T=(t,e={})=>{var n;const l=[],o=e.exclude||[],s=z.customElements,r=B.head,c=r.querySelector("meta[charset]"),u=B.createElement("style"),a=[];let d,h=!0;Object.assign(G,e),G.P=new URL(e.resourcesUrl||"./",B.baseURI).href,t.map((t=>{t[1].map((e=>{const n={i:e[0],p:e[1],k:e[2],L:e[3]};n.k=e[2];const i=n.p,r=class extends HTMLElement{constructor(t){super(t),q(t=this,n),1&n.i&&t.attachShadow({mode:"open"})}connectedCallback(){d&&(clearTimeout(d),d=null),h?a.push(this):G.jmp((()=>(t=>{if(0==(1&G.i)){const e=R(t),n=e.S,l=()=>{};if(!(1&e.i)){e.i|=1;{let n=t;for(;n=n.parentNode||n.host;)if(n["s-p"]){S(e,e.$=n);break}}n.k&&Object.entries(n.k).map((([e,[n]])=>{if(31&n&&t.hasOwnProperty(e)){const n=t[e];delete t[e],t[e]=n}})),(async(t,e,n,l,o)=>{if(0==(32&e.i)){e.i|=32;{if((o=V(n)).then){const t=()=>{};o=await o,t()}o.isProxied||(N(o,n,2),o.isProxied=!0);const t=()=>{};e.i|=8;try{new o(e)}catch(t){F(t)}e.i&=-9,t()}if(o.style){let t=o.style;const e=f(n);if(!_.has(e)){const l=()=>{};((t,e,n)=>{let l=_.get(t);J&&n?(l=l||new CSSStyleSheet,"string"==typeof l?l=e:l.replaceSync(e)):l=e,_.set(t,l)})(e,t,!!(1&n.i)),l()}}}const s=e.$,i=()=>j(e,!0);s&&s["s-rc"]?s["s-rc"].push(i):i()})(0,e,n)}l()}})(this)))}disconnectedCallback(){G.jmp((()=>{}))}componentOnReady(){return R(this).N}};n.T=t[0],o.includes(i)||s.get(i)||(l.push(i),s.define(i,N(r,n,1)))}))}));{u.innerHTML=l+"{visibility:hidden}.hydrated{visibility:inherit}",u.setAttribute("data-styles","");const t=null!==(n=G.j)&&void 0!==n?n:i(B);null!=t&&u.setAttribute("nonce",t),r.insertBefore(u,c?c.nextSibling:r.firstChild)}h=!1,a.length?a.map((t=>t.connectedCallback())):G.jmp((()=>d=setTimeout(x,30)))},W=t=>G.j=t,A=new WeakMap,R=t=>A.get(t),U=(t,e)=>A.set(e.v=t,e),q=(t,e)=>{const n={i:0,g:t,S:e,C:new Map};return n.N=new Promise((t=>n.M=t)),t["s-p"]=[],t["s-rc"]=[],A.set(t,n)},D=(t,e)=>e in t,F=(t,e)=>(0,console.error)(t,e),H=new Map,V=t=>{const e=t.p.replace(/-/g,"_"),n=t.T,l=H.get(n);return l?l[e]:import(`./${n}.entry.js`).then((t=>(H.set(n,t),t[e])),F)
|
2
|
-
/*!__STENCIL_STATIC_IMPORT_SWITCH__*/},_=new Map,z="undefined"!=typeof window?window:{},B=z.document||{head:{}},G={i:0,P:"",jmp:t=>t(),raf:t=>requestAnimationFrame(t),ael:(t,e,n,l)=>t.addEventListener(e,n,l),rel:(t,e,n,l)=>t.removeEventListener(e,n,l),ce:(t,e)=>new CustomEvent(t,e)},I=t=>Promise.resolve(t),J=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync}catch(t){}return!1})(),K=[],Q=[],X=(t,e)=>n=>{t.push(n),l||(l=!0,e&&4&G.i?tt(Z):G.raf(Z))},Y=t=>{for(let e=0;e<t.length;e++)try{t[e](performance.now())}catch(t){F(t)}t.length=0},Z=()=>{Y(K),Y(Q),(l=K.length>0)&&G.raf(Z)},tt=t=>I().then(t),et=X(Q,!0);export{T as b,r as h,I as p,U as r,W as s}
|