proto-daisy-db 0.0.244 → 0.0.246
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/dist/cjs/{index-62eb5279.js → index-bfac49b3.js} +22 -18
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/proto-daisy-db.cjs.js +2 -2
- package/dist/cjs/proto-daisy-db_5.cjs.entry.js +1 -1
- package/dist/collection/collection-manifest.json +1 -1
- package/dist/esm/{index-244c1ee8.js → index-b4794de5.js} +22 -18
- package/dist/esm/loader.js +2 -2
- package/dist/esm/proto-daisy-db.js +3 -3
- package/dist/esm/proto-daisy-db_5.entry.js +1 -1
- package/dist/proto-daisy-db/{p-fb620590.js → p-66fb881c.js} +1 -1
- package/dist/proto-daisy-db/{p-0f37c5de.entry.js → p-ea18a518.entry.js} +1 -1
- package/dist/proto-daisy-db/proto-daisy-db.esm.js +1 -1
- package/package.json +5 -5
|
@@ -1531,25 +1531,29 @@ const bootstrapLazy = (lazyBundles, options = {}) => {
|
|
|
1531
1531
|
}
|
|
1532
1532
|
});
|
|
1533
1533
|
});
|
|
1534
|
-
//
|
|
1535
|
-
|
|
1536
|
-
|
|
1537
|
-
|
|
1538
|
-
|
|
1539
|
-
|
|
1540
|
-
|
|
1541
|
-
|
|
1542
|
-
|
|
1543
|
-
|
|
1544
|
-
|
|
1545
|
-
//
|
|
1546
|
-
|
|
1547
|
-
|
|
1548
|
-
|
|
1534
|
+
// Only bother generating CSS if we have components
|
|
1535
|
+
// TODO(STENCIL-1118): Add test cases for CSS content based on conditionals
|
|
1536
|
+
if (cmpTags.length > 0) {
|
|
1537
|
+
// Add styles for `slot-fb` elements if any of our components are using slots outside the Shadow DOM
|
|
1538
|
+
if (hasSlotRelocation) {
|
|
1539
|
+
dataStyles.innerHTML += SLOT_FB_CSS;
|
|
1540
|
+
}
|
|
1541
|
+
// Add hydration styles
|
|
1542
|
+
{
|
|
1543
|
+
dataStyles.innerHTML += cmpTags + HYDRATED_CSS;
|
|
1544
|
+
}
|
|
1545
|
+
// If we have styles, add them to the DOM
|
|
1546
|
+
if (dataStyles.innerHTML.length) {
|
|
1547
|
+
dataStyles.setAttribute('data-styles', '');
|
|
1548
|
+
// Apply CSP nonce to the style tag if it exists
|
|
1549
|
+
const nonce = (_a = plt.$nonce$) !== null && _a !== void 0 ? _a : queryNonceMetaTagContent(doc);
|
|
1550
|
+
if (nonce != null) {
|
|
1551
|
+
dataStyles.setAttribute('nonce', nonce);
|
|
1552
|
+
}
|
|
1553
|
+
// Insert the styles into the document head
|
|
1554
|
+
// NOTE: this _needs_ to happen last so we can ensure the nonce (and other attributes) are applied
|
|
1555
|
+
head.insertBefore(dataStyles, metaCharset ? metaCharset.nextSibling : head.firstChild);
|
|
1549
1556
|
}
|
|
1550
|
-
// Insert the styles into the document head
|
|
1551
|
-
// NOTE: this _needs_ to happen last so we can ensure the nonce (and other attributes) are applied
|
|
1552
|
-
head.insertBefore(dataStyles, metaCharset ? metaCharset.nextSibling : head.firstChild);
|
|
1553
1557
|
}
|
|
1554
1558
|
// Process deferred connectedCallbacks now all components have been registered
|
|
1555
1559
|
isBootstrapping = false;
|
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-bfac49b3.js');
|
|
6
6
|
|
|
7
7
|
const defineCustomElements = (win, options) => {
|
|
8
8
|
if (typeof window === 'undefined') return undefined;
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
5
|
+
const index = require('./index-bfac49b3.js');
|
|
6
6
|
|
|
7
7
|
/*
|
|
8
|
-
Stencil Client Patch Browser v4.12.
|
|
8
|
+
Stencil Client Patch Browser v4.12.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-daisy-db.cjs.js', document.baseURI).href));
|
|
@@ -1509,25 +1509,29 @@ const bootstrapLazy = (lazyBundles, options = {}) => {
|
|
|
1509
1509
|
}
|
|
1510
1510
|
});
|
|
1511
1511
|
});
|
|
1512
|
-
//
|
|
1513
|
-
|
|
1514
|
-
|
|
1515
|
-
|
|
1516
|
-
|
|
1517
|
-
|
|
1518
|
-
|
|
1519
|
-
|
|
1520
|
-
|
|
1521
|
-
|
|
1522
|
-
|
|
1523
|
-
//
|
|
1524
|
-
|
|
1525
|
-
|
|
1526
|
-
|
|
1512
|
+
// Only bother generating CSS if we have components
|
|
1513
|
+
// TODO(STENCIL-1118): Add test cases for CSS content based on conditionals
|
|
1514
|
+
if (cmpTags.length > 0) {
|
|
1515
|
+
// Add styles for `slot-fb` elements if any of our components are using slots outside the Shadow DOM
|
|
1516
|
+
if (hasSlotRelocation) {
|
|
1517
|
+
dataStyles.innerHTML += SLOT_FB_CSS;
|
|
1518
|
+
}
|
|
1519
|
+
// Add hydration styles
|
|
1520
|
+
{
|
|
1521
|
+
dataStyles.innerHTML += cmpTags + HYDRATED_CSS;
|
|
1522
|
+
}
|
|
1523
|
+
// If we have styles, add them to the DOM
|
|
1524
|
+
if (dataStyles.innerHTML.length) {
|
|
1525
|
+
dataStyles.setAttribute('data-styles', '');
|
|
1526
|
+
// Apply CSP nonce to the style tag if it exists
|
|
1527
|
+
const nonce = (_a = plt.$nonce$) !== null && _a !== void 0 ? _a : queryNonceMetaTagContent(doc);
|
|
1528
|
+
if (nonce != null) {
|
|
1529
|
+
dataStyles.setAttribute('nonce', nonce);
|
|
1530
|
+
}
|
|
1531
|
+
// Insert the styles into the document head
|
|
1532
|
+
// NOTE: this _needs_ to happen last so we can ensure the nonce (and other attributes) are applied
|
|
1533
|
+
head.insertBefore(dataStyles, metaCharset ? metaCharset.nextSibling : head.firstChild);
|
|
1527
1534
|
}
|
|
1528
|
-
// Insert the styles into the document head
|
|
1529
|
-
// NOTE: this _needs_ to happen last so we can ensure the nonce (and other attributes) are applied
|
|
1530
|
-
head.insertBefore(dataStyles, metaCharset ? metaCharset.nextSibling : head.firstChild);
|
|
1531
1535
|
}
|
|
1532
1536
|
// Process deferred connectedCallbacks now all components have been registered
|
|
1533
1537
|
isBootstrapping = false;
|
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-b4794de5.js';
|
|
2
|
+
export { s as setNonce } from './index-b4794de5.js';
|
|
3
3
|
|
|
4
4
|
const defineCustomElements = (win, options) => {
|
|
5
5
|
if (typeof window === 'undefined') return undefined;
|
|
@@ -1,8 +1,8 @@
|
|
|
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-b4794de5.js';
|
|
2
|
+
export { s as setNonce } from './index-b4794de5.js';
|
|
3
3
|
|
|
4
4
|
/*
|
|
5
|
-
Stencil Client Patch Browser v4.12.
|
|
5
|
+
Stencil Client Patch Browser v4.12.1 | MIT Licensed | https://stenciljs.com
|
|
6
6
|
*/
|
|
7
7
|
const patchBrowser = () => {
|
|
8
8
|
const importMeta = import.meta.url;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
let e,n,t=!1;const l="slot-fb{display:contents}slot-fb[hidden]{display:none}",o={},s=e=>"object"==(e=typeof e)||"function"===e;function i(e){var n,t,l;return null!==(l=null===(t=null===(n=e.head)||void 0===n?void 0:n.querySelector('meta[name="csp-nonce"]'))||void 0===t?void 0:t.getAttribute("content"))&&void 0!==l?l:void 0}const c=(e,n,...t)=>{let l=null,o=null,i=!1,c=!1;const u=[],f=n=>{for(let t=0;t<n.length;t++)l=n[t],Array.isArray(l)?f(l):null!=l&&"boolean"!=typeof l&&((i="function"!=typeof e&&!s(l))&&(l+=""),i&&c?u[u.length-1].t+=l:u.push(i?r(null,l):l),c=i)};if(f(t),n){n.key&&(o=n.key);{const e=n.className||n.class;e&&(n.class="object"!=typeof e?e:Object.keys(e).filter((n=>e[n])).join(" "))}}const a=r(e,null);return a.l=n,u.length>0&&(a.o=u),a.i=o,a},r=(e,n)=>({u:0,p:e,t:n,$:null,o:null,l:null,i:null}),u={},f=new WeakMap,a=e=>"sc-"+e.h,d=(e,n,t,l,o,i)=>{if(t!==l){let c=H(e,n),r=n.toLowerCase();if("class"===n){const n=e.classList,o=p(t),s=p(l);n.remove(...o.filter((e=>e&&!s.includes(e)))),n.add(...s.filter((e=>e&&!o.includes(e))))}else if("key"===n);else if(c||"o"!==n[0]||"n"!==n[1]){const r=s(l);if((c||r&&null!==l)&&!o)try{if(e.tagName.includes("-"))e[n]=l;else{const o=null==l?"":l;"list"===n?c=!1:null!=t&&e[n]==o||(e[n]=o)}}catch(e){}null==l||!1===l?!1===l&&""!==e.getAttribute(n)||e.removeAttribute(n):(!c||4&i||o)&&!r&&e.setAttribute(n,l=!0===l?"":l)}else if(n="-"===n[2]?n.slice(3):H(G,r)?r.slice(2):r[2]+n.slice(3),t||l){const o=n.endsWith($);n=n.replace(h,""),t&&J.rel(e,n,t,o),l&&J.ael(e,n,l,o)}}},y=/\s/,p=e=>e?e.split(y):[],$="Capture",h=RegExp($+"$"),v=(e,n,t,l)=>{const s=11===n.$.nodeType&&n.$.host?n.$.host:n.$,i=e&&e.l||o,c=n.l||o;for(l in i)l in c||d(s,l,i[l],void 0,t,n.u);for(l in c)d(s,l,i[l],c[l],t,n.u)},m=(t,l,o)=>{const s=l.o[o];let i,c,r=0;if(null!==s.t)i=s.$=I.createTextNode(s.t);else if(i=s.$=I.createElement(s.p),v(null,s,!1),null!=e&&i["s-si"]!==e&&i.classList.add(i["s-si"]=e),s.o)for(r=0;r<s.o.length;++r)c=m(t,s,r),c&&i.appendChild(c);return i["s-hn"]=n,i},b=(e,t,l,o,s,i)=>{let c,r=e;for(r.shadowRoot&&r.tagName===n&&(r=r.shadowRoot);s<=i;++s)o[s]&&(c=m(null,l,s),c&&(o[s].$=c,r.insertBefore(c,t)))},w=(e,n,t)=>{for(let l=n;l<=t;++l){const n=e[l];if(n){const e=n.$;e&&e.remove()}}},S=(e,n,t=!1)=>e.p===n.p&&(!!t||e.i===n.i),g=(e,n,t=!1)=>{const l=n.$=e.$,o=e.o,s=n.o,i=n.t;null===i?(v(e,n,!1),null!==o&&null!==s?((e,n,t,l,o=!1)=>{let s,i,c=0,r=0,u=0,f=0,a=n.length-1,d=n[0],y=n[a],p=l.length-1,$=l[0],h=l[p];for(;c<=a&&r<=p;)if(null==d)d=n[++c];else if(null==y)y=n[--a];else if(null==$)$=l[++r];else if(null==h)h=l[--p];else if(S(d,$,o))g(d,$,o),d=n[++c],$=l[++r];else if(S(y,h,o))g(y,h,o),y=n[--a],h=l[--p];else if(S(d,h,o))g(d,h,o),e.insertBefore(d.$,y.$.nextSibling),d=n[++c],h=l[--p];else if(S(y,$,o))g(y,$,o),e.insertBefore(y.$,d.$),y=n[--a],$=l[++r];else{for(u=-1,f=c;f<=a;++f)if(n[f]&&null!==n[f].i&&n[f].i===$.i){u=f;break}u>=0?(i=n[u],i.p!==$.p?s=m(n&&n[r],t,u):(g(i,$,o),n[u]=void 0,s=i.$),$=l[++r]):(s=m(n&&n[r],t,r),$=l[++r]),s&&d.$.parentNode.insertBefore(s,d.$)}c>a?b(e,null==l[p+1]?null:l[p+1].$,t,l,r,p):r>p&&w(n,c,a)})(l,o,n,s,t):null!==s?(null!==e.t&&(l.textContent=""),b(l,null,n,s,0,s.length-1)):null!==o&&w(o,0,o.length-1)):e.t!==i&&(l.data=i)},j=(e,n)=>{n&&!e.v&&n["s-p"]&&n["s-p"].push(new Promise((n=>e.v=n)))},k=(e,n)=>{if(e.u|=16,!(4&e.u))return j(e,e.m),le((()=>M(e,n)));e.u|=512},M=(e,n)=>{const t=e.S;return O(void 0,(()=>P(e,t,n)))},O=(e,n)=>C(e)?e.then(n):n(),C=e=>e instanceof Promise||e&&e.then&&"function"==typeof e.then,P=async(e,n,t)=>{var o;const s=e.$hostElement$,c=s["s-rc"];t&&(e=>{const n=e.j,t=e.$hostElement$,o=n.u,s=((e,n)=>{var t;const o=a(n),s=B.get(o);if(e=11===e.nodeType?e:I,s)if("string"==typeof s){let c,r=f.get(e=e.head||e);if(r||f.set(e,r=new Set),!r.has(o)){{c=I.createElement("style"),c.innerHTML=s;const n=null!==(t=J.k)&&void 0!==t?t:i(I);null!=n&&c.setAttribute("nonce",n),e.insertBefore(c,e.querySelector("link"))}4&n.u&&(c.innerHTML+=l),r&&r.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);x(e,n,s,t),c&&(c.map((e=>e())),s["s-rc"]=void 0);{const n=null!==(o=s["s-p"])&&void 0!==o?o:[],t=()=>E(e);0===n.length?t():(Promise.all(n).then(t),e.u|=4,n.length=0)}},x=(t,l,o,s)=>{try{l=l.render(),t.u&=-17,t.u|=2,((t,l,o=!1)=>{const s=t.$hostElement$,i=t.M||r(null,null),f=(e=>e&&e.p===u)(l)?l:c(null,null,l);if(n=s.tagName,o&&f.l)for(const e of Object.keys(f.l))s.hasAttribute(e)&&!["key","ref","style","class"].includes(e)&&(f.l[e]=s[e]);f.p=null,f.u|=4,t.M=f,f.$=i.$=s.shadowRoot||s,e=s["s-sc"],g(i,f,o)})(t,l,s)}catch(e){V(e,t.$hostElement$)}return null},E=e=>{const n=e.$hostElement$,t=e.S,l=e.m;64&e.u||(e.u|=64,N(n),L(t,"componentDidLoad"),e.O(n),l||A()),e.v&&(e.v(),e.v=void 0),512&e.u&&te((()=>k(e,!1))),e.u&=-517},A=()=>{N(I.documentElement),te((()=>(e=>{const n=J.ce("appload",{detail:{namespace:"proto-daisy-db"}});return e.dispatchEvent(n),n})(G)))},L=(e,n,t)=>{if(e&&e[n])try{return e[n](t)}catch(e){V(e)}},N=e=>e.classList.add("hydrated"),R=(e,n,t)=>{var l;const o=e.prototype;if(n.C){const i=Object.entries(n.C);if(i.map((([e,[l]])=>{(31&l||2&t&&32&l)&&Object.defineProperty(o,e,{get(){return((e,n)=>q(this).P.get(n))(0,e)},set(t){((e,n,t,l)=>{const o=q(e),i=o.P.get(n),c=o.u,r=o.S;t=((e,n)=>null==e||s(e)?e:1&n?e+"":e)(t,l.C[n][0]),8&c&&void 0!==i||t===i||Number.isNaN(i)&&Number.isNaN(t)||(o.P.set(n,t),r&&2==(18&c)&&k(o,!1))})(this,e,t,n)},configurable:!0,enumerable:!0})})),1&t){const t=new Map;o.attributeChangedCallback=function(e,l,s){J.jmp((()=>{var i;const c=t.get(e);if(this.hasOwnProperty(c))s=this[c],delete this[c];else{if(o.hasOwnProperty(c)&&"number"==typeof this[c]&&this[c]==s)return;if(null==c){const t=q(this),o=null==t?void 0:t.u;if(o&&!(8&o)&&128&o&&s!==l){const o=t.S,c=null===(i=n.A)||void 0===i?void 0:i[e];null==c||c.forEach((n=>{null!=o[n]&&o[n].call(o,s,l,e)}))}return}}this[c]=(null!==s||"boolean"!=typeof this[c])&&s}))},e.observedAttributes=Array.from(new Set([...Object.keys(null!==(l=n.A)&&void 0!==l?l:{}),...i.filter((([e,n])=>15&n[0])).map((([e,n])=>{const l=n[1]||e;return t.set(l,e),l}))]))}}return e},T=(e,n={})=>{var t;const o=[],s=n.exclude||[],c=G.customElements,r=I.head,u=r.querySelector("meta[charset]"),f=I.createElement("style"),d=[];let y,p=!0;Object.assign(J,n),J.L=new URL(n.resourcesUrl||"./",I.baseURI).href;let $=!1;if(e.map((e=>{e[1].map((n=>{const t={u:n[0],h:n[1],C:n[2],N:n[3]};4&t.u&&($=!0),t.C=n[2];const l=t.h,i=class extends HTMLElement{constructor(e){super(e),F(e=this,t),1&t.u&&e.attachShadow({mode:"open"})}connectedCallback(){y&&(clearTimeout(y),y=null),p?d.push(this):J.jmp((()=>(e=>{if(0==(1&J.u)){const n=q(e),t=n.j,l=()=>{};if(1&n.u)(null==n?void 0:n.S)||(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"]){j(n,n.m=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(0==(32&n.u)){n.u|=32;{if(l=z(t),l.then){const e=()=>{};l=await l,e()}l.isProxied||(R(l,t,2),l.isProxied=!0);const e=()=>{};n.u|=8;try{new l(n)}catch(e){V(e)}n.u&=-9,e()}if(l.style){let e=l.style;const n=a(t);if(!B.has(n)){const l=()=>{};((e,n,t)=>{let l=B.get(e);Q&&t?(l=l||new CSSStyleSheet,"string"==typeof l?l=n:l.replaceSync(n)):l=n,B.set(e,l)})(n,e,!!(1&t.u)),l()}}}const o=n.m,s=()=>k(n,!0);o&&o["s-rc"]?o["s-rc"].push(s):s()})(0,n,t)}l()}})(this)))}disconnectedCallback(){J.jmp((()=>(async()=>{if(0==(1&J.u)){const e=q(this);(null==e?void 0:e.S)||(null==e?void 0:e.R)&&e.R.then((()=>{}))}})()))}componentOnReady(){return q(this).R}};t.T=e[0],s.includes(l)||c.get(l)||(o.push(l),c.define(l,R(i,t,1)))}))}))
|
|
1
|
+
let e,n,t=!1;const l="slot-fb{display:contents}slot-fb[hidden]{display:none}",o={},s=e=>"object"==(e=typeof e)||"function"===e;function i(e){var n,t,l;return null!==(l=null===(t=null===(n=e.head)||void 0===n?void 0:n.querySelector('meta[name="csp-nonce"]'))||void 0===t?void 0:t.getAttribute("content"))&&void 0!==l?l:void 0}const c=(e,n,...t)=>{let l=null,o=null,i=!1,c=!1;const u=[],f=n=>{for(let t=0;t<n.length;t++)l=n[t],Array.isArray(l)?f(l):null!=l&&"boolean"!=typeof l&&((i="function"!=typeof e&&!s(l))&&(l+=""),i&&c?u[u.length-1].t+=l:u.push(i?r(null,l):l),c=i)};if(f(t),n){n.key&&(o=n.key);{const e=n.className||n.class;e&&(n.class="object"!=typeof e?e:Object.keys(e).filter((n=>e[n])).join(" "))}}const a=r(e,null);return a.l=n,u.length>0&&(a.o=u),a.i=o,a},r=(e,n)=>({u:0,p:e,t:n,$:null,o:null,l:null,i:null}),u={},f=new WeakMap,a=e=>"sc-"+e.h,d=(e,n,t,l,o,i)=>{if(t!==l){let c=H(e,n),r=n.toLowerCase();if("class"===n){const n=e.classList,o=p(t),s=p(l);n.remove(...o.filter((e=>e&&!s.includes(e)))),n.add(...s.filter((e=>e&&!o.includes(e))))}else if("key"===n);else if(c||"o"!==n[0]||"n"!==n[1]){const r=s(l);if((c||r&&null!==l)&&!o)try{if(e.tagName.includes("-"))e[n]=l;else{const o=null==l?"":l;"list"===n?c=!1:null!=t&&e[n]==o||(e[n]=o)}}catch(e){}null==l||!1===l?!1===l&&""!==e.getAttribute(n)||e.removeAttribute(n):(!c||4&i||o)&&!r&&e.setAttribute(n,l=!0===l?"":l)}else if(n="-"===n[2]?n.slice(3):H(G,r)?r.slice(2):r[2]+n.slice(3),t||l){const o=n.endsWith($);n=n.replace(h,""),t&&J.rel(e,n,t,o),l&&J.ael(e,n,l,o)}}},y=/\s/,p=e=>e?e.split(y):[],$="Capture",h=RegExp($+"$"),v=(e,n,t,l)=>{const s=11===n.$.nodeType&&n.$.host?n.$.host:n.$,i=e&&e.l||o,c=n.l||o;for(l in i)l in c||d(s,l,i[l],void 0,t,n.u);for(l in c)d(s,l,i[l],c[l],t,n.u)},m=(t,l,o)=>{const s=l.o[o];let i,c,r=0;if(null!==s.t)i=s.$=I.createTextNode(s.t);else if(i=s.$=I.createElement(s.p),v(null,s,!1),null!=e&&i["s-si"]!==e&&i.classList.add(i["s-si"]=e),s.o)for(r=0;r<s.o.length;++r)c=m(t,s,r),c&&i.appendChild(c);return i["s-hn"]=n,i},b=(e,t,l,o,s,i)=>{let c,r=e;for(r.shadowRoot&&r.tagName===n&&(r=r.shadowRoot);s<=i;++s)o[s]&&(c=m(null,l,s),c&&(o[s].$=c,r.insertBefore(c,t)))},w=(e,n,t)=>{for(let l=n;l<=t;++l){const n=e[l];if(n){const e=n.$;e&&e.remove()}}},S=(e,n,t=!1)=>e.p===n.p&&(!!t||e.i===n.i),g=(e,n,t=!1)=>{const l=n.$=e.$,o=e.o,s=n.o,i=n.t;null===i?(v(e,n,!1),null!==o&&null!==s?((e,n,t,l,o=!1)=>{let s,i,c=0,r=0,u=0,f=0,a=n.length-1,d=n[0],y=n[a],p=l.length-1,$=l[0],h=l[p];for(;c<=a&&r<=p;)if(null==d)d=n[++c];else if(null==y)y=n[--a];else if(null==$)$=l[++r];else if(null==h)h=l[--p];else if(S(d,$,o))g(d,$,o),d=n[++c],$=l[++r];else if(S(y,h,o))g(y,h,o),y=n[--a],h=l[--p];else if(S(d,h,o))g(d,h,o),e.insertBefore(d.$,y.$.nextSibling),d=n[++c],h=l[--p];else if(S(y,$,o))g(y,$,o),e.insertBefore(y.$,d.$),y=n[--a],$=l[++r];else{for(u=-1,f=c;f<=a;++f)if(n[f]&&null!==n[f].i&&n[f].i===$.i){u=f;break}u>=0?(i=n[u],i.p!==$.p?s=m(n&&n[r],t,u):(g(i,$,o),n[u]=void 0,s=i.$),$=l[++r]):(s=m(n&&n[r],t,r),$=l[++r]),s&&d.$.parentNode.insertBefore(s,d.$)}c>a?b(e,null==l[p+1]?null:l[p+1].$,t,l,r,p):r>p&&w(n,c,a)})(l,o,n,s,t):null!==s?(null!==e.t&&(l.textContent=""),b(l,null,n,s,0,s.length-1)):null!==o&&w(o,0,o.length-1)):e.t!==i&&(l.data=i)},j=(e,n)=>{n&&!e.v&&n["s-p"]&&n["s-p"].push(new Promise((n=>e.v=n)))},k=(e,n)=>{if(e.u|=16,!(4&e.u))return j(e,e.m),le((()=>M(e,n)));e.u|=512},M=(e,n)=>{const t=e.S;return O(void 0,(()=>P(e,t,n)))},O=(e,n)=>C(e)?e.then(n):n(),C=e=>e instanceof Promise||e&&e.then&&"function"==typeof e.then,P=async(e,n,t)=>{var o;const s=e.$hostElement$,c=s["s-rc"];t&&(e=>{const n=e.j,t=e.$hostElement$,o=n.u,s=((e,n)=>{var t;const o=a(n),s=B.get(o);if(e=11===e.nodeType?e:I,s)if("string"==typeof s){let c,r=f.get(e=e.head||e);if(r||f.set(e,r=new Set),!r.has(o)){{c=I.createElement("style"),c.innerHTML=s;const n=null!==(t=J.k)&&void 0!==t?t:i(I);null!=n&&c.setAttribute("nonce",n),e.insertBefore(c,e.querySelector("link"))}4&n.u&&(c.innerHTML+=l),r&&r.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);x(e,n,s,t),c&&(c.map((e=>e())),s["s-rc"]=void 0);{const n=null!==(o=s["s-p"])&&void 0!==o?o:[],t=()=>E(e);0===n.length?t():(Promise.all(n).then(t),e.u|=4,n.length=0)}},x=(t,l,o,s)=>{try{l=l.render(),t.u&=-17,t.u|=2,((t,l,o=!1)=>{const s=t.$hostElement$,i=t.M||r(null,null),f=(e=>e&&e.p===u)(l)?l:c(null,null,l);if(n=s.tagName,o&&f.l)for(const e of Object.keys(f.l))s.hasAttribute(e)&&!["key","ref","style","class"].includes(e)&&(f.l[e]=s[e]);f.p=null,f.u|=4,t.M=f,f.$=i.$=s.shadowRoot||s,e=s["s-sc"],g(i,f,o)})(t,l,s)}catch(e){V(e,t.$hostElement$)}return null},E=e=>{const n=e.$hostElement$,t=e.S,l=e.m;64&e.u||(e.u|=64,N(n),L(t,"componentDidLoad"),e.O(n),l||A()),e.v&&(e.v(),e.v=void 0),512&e.u&&te((()=>k(e,!1))),e.u&=-517},A=()=>{N(I.documentElement),te((()=>(e=>{const n=J.ce("appload",{detail:{namespace:"proto-daisy-db"}});return e.dispatchEvent(n),n})(G)))},L=(e,n,t)=>{if(e&&e[n])try{return e[n](t)}catch(e){V(e)}},N=e=>e.classList.add("hydrated"),R=(e,n,t)=>{var l;const o=e.prototype;if(n.C){const i=Object.entries(n.C);if(i.map((([e,[l]])=>{(31&l||2&t&&32&l)&&Object.defineProperty(o,e,{get(){return((e,n)=>q(this).P.get(n))(0,e)},set(t){((e,n,t,l)=>{const o=q(e),i=o.P.get(n),c=o.u,r=o.S;t=((e,n)=>null==e||s(e)?e:1&n?e+"":e)(t,l.C[n][0]),8&c&&void 0!==i||t===i||Number.isNaN(i)&&Number.isNaN(t)||(o.P.set(n,t),r&&2==(18&c)&&k(o,!1))})(this,e,t,n)},configurable:!0,enumerable:!0})})),1&t){const t=new Map;o.attributeChangedCallback=function(e,l,s){J.jmp((()=>{var i;const c=t.get(e);if(this.hasOwnProperty(c))s=this[c],delete this[c];else{if(o.hasOwnProperty(c)&&"number"==typeof this[c]&&this[c]==s)return;if(null==c){const t=q(this),o=null==t?void 0:t.u;if(o&&!(8&o)&&128&o&&s!==l){const o=t.S,c=null===(i=n.A)||void 0===i?void 0:i[e];null==c||c.forEach((n=>{null!=o[n]&&o[n].call(o,s,l,e)}))}return}}this[c]=(null!==s||"boolean"!=typeof this[c])&&s}))},e.observedAttributes=Array.from(new Set([...Object.keys(null!==(l=n.A)&&void 0!==l?l:{}),...i.filter((([e,n])=>15&n[0])).map((([e,n])=>{const l=n[1]||e;return t.set(l,e),l}))]))}}return e},T=(e,n={})=>{var t;const o=[],s=n.exclude||[],c=G.customElements,r=I.head,u=r.querySelector("meta[charset]"),f=I.createElement("style"),d=[];let y,p=!0;Object.assign(J,n),J.L=new URL(n.resourcesUrl||"./",I.baseURI).href;let $=!1;if(e.map((e=>{e[1].map((n=>{const t={u:n[0],h:n[1],C:n[2],N:n[3]};4&t.u&&($=!0),t.C=n[2];const l=t.h,i=class extends HTMLElement{constructor(e){super(e),F(e=this,t),1&t.u&&e.attachShadow({mode:"open"})}connectedCallback(){y&&(clearTimeout(y),y=null),p?d.push(this):J.jmp((()=>(e=>{if(0==(1&J.u)){const n=q(e),t=n.j,l=()=>{};if(1&n.u)(null==n?void 0:n.S)||(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"]){j(n,n.m=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(0==(32&n.u)){n.u|=32;{if(l=z(t),l.then){const e=()=>{};l=await l,e()}l.isProxied||(R(l,t,2),l.isProxied=!0);const e=()=>{};n.u|=8;try{new l(n)}catch(e){V(e)}n.u&=-9,e()}if(l.style){let e=l.style;const n=a(t);if(!B.has(n)){const l=()=>{};((e,n,t)=>{let l=B.get(e);Q&&t?(l=l||new CSSStyleSheet,"string"==typeof l?l=n:l.replaceSync(n)):l=n,B.set(e,l)})(n,e,!!(1&t.u)),l()}}}const o=n.m,s=()=>k(n,!0);o&&o["s-rc"]?o["s-rc"].push(s):s()})(0,n,t)}l()}})(this)))}disconnectedCallback(){J.jmp((()=>(async()=>{if(0==(1&J.u)){const e=q(this);(null==e?void 0:e.S)||(null==e?void 0:e.R)&&e.R.then((()=>{}))}})()))}componentOnReady(){return q(this).R}};t.T=e[0],s.includes(l)||c.get(l)||(o.push(l),c.define(l,R(i,t,1)))}))})),o.length>0&&($&&(f.innerHTML+=l),f.innerHTML+=o+"{visibility:hidden}.hydrated{visibility:inherit}",f.innerHTML.length)){f.setAttribute("data-styles","");const e=null!==(t=J.k)&&void 0!==t?t:i(I);null!=e&&f.setAttribute("nonce",e),r.insertBefore(f,u?u.nextSibling:r.firstChild)}p=!1,d.length?d.map((e=>e.connectedCallback())):J.jmp((()=>y=setTimeout(A,30)))},U=e=>J.k=e,W=new WeakMap,q=e=>W.get(e),D=(e,n)=>W.set(n.S=e,n),F=(e,n)=>{const t={u:0,$hostElement$:e,j:n,P:new Map};return t.R=new Promise((e=>t.O=e)),e["s-p"]=[],e["s-rc"]=[],W.set(e,t)},H=(e,n)=>n in e,V=(e,n)=>(0,console.error)(e,n),_=new Map,z=e=>{const n=e.h.replace(/-/g,"_"),t=e.T,l=_.get(t);return l?l[n]:import(`./${t}.entry.js`).then((e=>(_.set(t,e),e[n])),V)
|
|
2
2
|
/*!__STENCIL_STATIC_IMPORT_SWITCH__*/},B=new Map,G="undefined"!=typeof window?window:{},I=G.document||{head:{}},J={u: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)},K=e=>Promise.resolve(e),Q=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync}catch(e){}return!1})(),X=[],Y=[],Z=(e,n)=>l=>{e.push(l),t||(t=!0,n&&4&J.u?te(ne):J.raf(ne))},ee=e=>{for(let n=0;n<e.length;n++)try{e[n](performance.now())}catch(e){V(e)}e.length=0},ne=()=>{ee(X),ee(Y),(t=X.length>0)&&J.raf(ne)},te=e=>K().then(e),le=Z(Y,!0);export{T as b,c as h,K as p,D as r,U as s}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as t,h as a}from"./p-
|
|
1
|
+
import{r as t,h as a}from"./p-66fb881c.js";const s="proto-daisy-db:app-data",o=class{constructor(a){t(this,a),this.emitter=void 0}componentDidLoad(){if(this.emitter&&window[this.emitter]){const t=window[this.emitter];t.on("app-data:get",(()=>{var a;console.log("app-data:get"),(a=localStorage.getItem(s),new Promise(((t,s)=>{try{t(JSON.parse(a))}catch(t){s(t)}}))).then((a=>{t.emit("app-data:value",a)})).catch((t=>{console.log(t)}))})),t.on("app-data:store",(t=>{console.log("app-data:store",t),(t=>{const a=JSON.stringify(t);localStorage.setItem(s,a)})(t)})),t.emit("proto-daisy-db",{ready:!0})}}render(){return a("div",{key:"35e42fc3a7d518f3bc0211bc5f2c8221fd9bcc81"})}};o.style="";const e=class{constructor(a){t(this,a),this.data=void 0}render(){const t=this.data?Object.keys(this.data):[];return a("div",{key:"a423b82d951a69b266dd3d508a8dc11326a8008b",class:"flex flex-col"},t.map((t=>a("span",null,t))))}};e.style="";const r=class{constructor(a){t(this,a),this.data=void 0}render(){return a("div",{key:"f4837fa667d5d6e57086b09d1bc91719035442be",class:"flex"},a("span",{key:"a70fa27ba603ead243b5d262922082141420e0ac"},this.data?this.data.stamp:""))}};r.style="";const i=class{constructor(a){t(this,a),this.emitter=void 0,this.data=void 0}componentDidLoad(){this.emitter&&window[this.emitter]&&window[this.emitter].on("app-data:value",(t=>{this.data=t}))}emitData(){if(this.emitter&&window[this.emitter]){const t=window[this.emitter],a={login:!0,stamp:Date.now(),theme:"dark",dealers:[]};this.data=void 0,t.emit("app-data:store",a)}}fetchData(){this.emitter&&window[this.emitter]&&window[this.emitter].emit("app-data:get",42)}render(){return a("div",{key:"47a9f4c68160b18fceedba61f54a7be29c75325a",class:"flex flex-col font-sans"},a("div",{key:"334f34a36a896139cf4cc01f66bbf0d09bd89505",class:"flex flex-row content-center gap-2"},a("button",{key:"784f07b93d4cd4a0287e6dd172bc73ab8e3c49e5",class:"btn bg-clrs-navy text-clrs-white",onClick:()=>this.emitData()},"Save"),a("button",{key:"8526e3216eb0a725ea22b288ac0cb3c503405ee4",class:"btn bg-clrs-blue text-clrs-white",onClick:()=>this.fetchData()},"Fetch")),a("proto-faux-type",{key:"3033b83816b2997c790fb8df1e1d90f387f62afa",class:"mt-4",emitter:this.emitter}),a("proto-faux-stamp",{key:"811eef59cdcdfa2edb318ee5facf7ae0bc497c82",class:"mt-2 text-xs",data:this.data}),a("proto-faux-keys",{key:"ed39e233d92c46f801841240d32d783ee6b0f0fd",class:"mt-2",data:this.data}))}};i.style="*,::before,::after{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-scroll-snap-strictness:proximity;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgb(59 130 246 / 0.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;}::backdrop{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-scroll-snap-strictness:proximity;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgb(59 130 246 / 0.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;}.btn{border-radius:0.375rem;border-width:1px;border-style:solid;border-color:var(--clrs-aqua, #7fdbff);padding:0.5rem}.mt-2{margin-top:0.5rem}.mt-4{margin-top:1rem}.flex{display:flex}.flex-row{flex-direction:row}.flex-col{flex-direction:column}.content-center{align-content:center}.gap-2{gap:0.5rem}.bg-clrs-blue{background-color:var(--clrs-blue, #0074d9)}.bg-clrs-navy{background-color:var(--clrs-navy, #001f3f)}.font-sans{font-family:ui-sans-serif, system-ui, sans-serif, 'Apple Color Emoji',\n 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji'}.text-xs{font-size:0.75rem;line-height:1rem}.italic{font-style:italic}.text-clrs-white{color:var(--clrs-white, #ffffff)}.shadow{--tw-shadow:0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);--tw-shadow-colored:0 1px 3px 0 var(--tw-shadow-color),\n 0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),\n var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)}";const c=class{constructor(a){t(this,a),this.emitter=void 0,this.eventType=void 0}componentDidLoad(){this.emitter&&window[this.emitter]&&window[this.emitter].on("*",(t=>{this.eventType=t}))}render(){return a("div",{key:"d441f639241a54d1ef8ae9c26a4560b5266457df"},a("span",{key:"a192c0ce3af5f94d72856ca851300537fd00f31f",class:"text-xs italic"},this.eventType))}};c.style="proto-faux-type{}";export{o as proto_daisy_db,e as proto_faux_keys,r as proto_faux_stamp,i as proto_faux_trigger,c as proto_faux_type}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as t,b as e}from"./p-
|
|
1
|
+
import{p as t,b as e}from"./p-66fb881c.js";export{s as setNonce}from"./p-66fb881c.js";(()=>{const e=import.meta.url,a={};return""!==e&&(a.resourcesUrl=new URL(".",e).href),t(a)})().then((t=>e([["p-ea18a518",[[0,"proto-faux-trigger",{emitter:[1],data:[1040]}],[1,"proto-daisy-db",{emitter:[1]}],[0,"proto-faux-keys",{data:[16]}],[0,"proto-faux-stamp",{data:[16]}],[0,"proto-faux-type",{emitter:[1],eventType:[1025,"event-type"]}]]]],t)));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "proto-daisy-db",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.246",
|
|
4
4
|
"description": "Stencil Component Starter",
|
|
5
5
|
"main": "dist/index.cjs.js",
|
|
6
6
|
"module": "dist/index.js",
|
|
@@ -27,17 +27,17 @@
|
|
|
27
27
|
"format": "prettier --write src"
|
|
28
28
|
},
|
|
29
29
|
"dependencies": {
|
|
30
|
-
"@stencil/core": "4.12.
|
|
30
|
+
"@stencil/core": "4.12.1",
|
|
31
31
|
"mitt": "3.0.1"
|
|
32
32
|
},
|
|
33
33
|
"devDependencies": {
|
|
34
34
|
"autoprefixer": "10.4.17",
|
|
35
35
|
"concurrently": "8.2.2",
|
|
36
36
|
"cspell": "8.3.2",
|
|
37
|
-
"postcss": "8.4.
|
|
38
|
-
"prettier": "3.2.
|
|
37
|
+
"postcss": "8.4.34",
|
|
38
|
+
"prettier": "3.2.5",
|
|
39
39
|
"prettier-plugin-tailwindcss": "0.5.11",
|
|
40
|
-
"proto-tailwindcss-clrs": "0.0.
|
|
40
|
+
"proto-tailwindcss-clrs": "0.0.307",
|
|
41
41
|
"tailwindcss": "3.4.1"
|
|
42
42
|
},
|
|
43
43
|
"license": "MIT"
|