proto-daisy-db 0.0.216 → 0.0.218

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.
@@ -1479,12 +1479,14 @@ const bootstrapLazy = (lazyBundles, options = {}) => {
1479
1479
  // If we have styles, add them to the DOM
1480
1480
  if (dataStyles.innerHTML.length) {
1481
1481
  dataStyles.setAttribute('data-styles', '');
1482
- head.insertBefore(dataStyles, metaCharset ? metaCharset.nextSibling : head.firstChild);
1483
1482
  // Apply CSP nonce to the style tag if it exists
1484
1483
  const nonce = (_a = plt.$nonce$) !== null && _a !== void 0 ? _a : queryNonceMetaTagContent(doc);
1485
1484
  if (nonce != null) {
1486
1485
  dataStyles.setAttribute('nonce', nonce);
1487
1486
  }
1487
+ // Insert the styles into the document head
1488
+ // NOTE: this _needs_ to happen last so we can ensure the nonce (and other attributes) are applied
1489
+ head.insertBefore(dataStyles, metaCharset ? metaCharset.nextSibling : head.firstChild);
1488
1490
  }
1489
1491
  // Process deferred connectedCallbacks now all components have been registered
1490
1492
  isBootstrapping = false;
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-2bb3a8dd.js');
5
+ const index = require('./index-0e444aae.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-2bb3a8dd.js');
5
+ const index = require('./index-0e444aae.js');
6
6
 
7
7
  /*
8
- Stencil Client Patch Browser v4.8.0 | MIT Licensed | https://stenciljs.com
8
+ Stencil Client Patch Browser v4.8.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));
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-2bb3a8dd.js');
5
+ const index = require('./index-0e444aae.js');
6
6
 
7
7
  const KEY = 'proto-daisy-db:app-data';
8
8
  const promisedParseJSON = (json) => {
@@ -8,7 +8,7 @@
8
8
  ],
9
9
  "compiler": {
10
10
  "name": "@stencil/core",
11
- "version": "4.8.0",
11
+ "version": "4.8.1",
12
12
  "typescriptVersion": "5.2.2"
13
13
  },
14
14
  "collections": [],
@@ -1,4 +1,4 @@
1
1
  // WARNING: generated file...
2
- const TW_VERSION = '3.3.5';
2
+ const TW_VERSION = '3.3.6';
3
3
  export { TW_VERSION };
4
4
  export default TW_VERSION;
@@ -1457,12 +1457,14 @@ const bootstrapLazy = (lazyBundles, options = {}) => {
1457
1457
  // If we have styles, add them to the DOM
1458
1458
  if (dataStyles.innerHTML.length) {
1459
1459
  dataStyles.setAttribute('data-styles', '');
1460
- head.insertBefore(dataStyles, metaCharset ? metaCharset.nextSibling : head.firstChild);
1461
1460
  // Apply CSP nonce to the style tag if it exists
1462
1461
  const nonce = (_a = plt.$nonce$) !== null && _a !== void 0 ? _a : queryNonceMetaTagContent(doc);
1463
1462
  if (nonce != null) {
1464
1463
  dataStyles.setAttribute('nonce', nonce);
1465
1464
  }
1465
+ // Insert the styles into the document head
1466
+ // NOTE: this _needs_ to happen last so we can ensure the nonce (and other attributes) are applied
1467
+ head.insertBefore(dataStyles, metaCharset ? metaCharset.nextSibling : head.firstChild);
1466
1468
  }
1467
1469
  // Process deferred connectedCallbacks now all components have been registered
1468
1470
  isBootstrapping = false;
@@ -1,5 +1,5 @@
1
- import { b as bootstrapLazy } from './index-9cd2d809.js';
2
- export { s as setNonce } from './index-9cd2d809.js';
1
+ import { b as bootstrapLazy } from './index-167d5b2a.js';
2
+ export { s as setNonce } from './index-167d5b2a.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-9cd2d809.js';
2
- export { s as setNonce } from './index-9cd2d809.js';
1
+ import { p as promiseResolve, b as bootstrapLazy } from './index-167d5b2a.js';
2
+ export { s as setNonce } from './index-167d5b2a.js';
3
3
 
4
4
  /*
5
- Stencil Client Patch Browser v4.8.0 | MIT Licensed | https://stenciljs.com
5
+ Stencil Client Patch Browser v4.8.1 | MIT Licensed | https://stenciljs.com
6
6
  */
7
7
  const patchBrowser = () => {
8
8
  const importMeta = import.meta.url;
@@ -1,4 +1,4 @@
1
- import { r as registerInstance, h } from './index-9cd2d809.js';
1
+ import { r as registerInstance, h } from './index-167d5b2a.js';
2
2
 
3
3
  const KEY = 'proto-daisy-db:app-data';
4
4
  const promisedParseJSON = (json) => {
@@ -1 +1 @@
1
- import{r as t,h as o}from"./p-8cdb3b30.js";const s="proto-daisy-db:app-data",a=class{constructor(o){t(this,o),this.emitter=void 0}componentDidLoad(){if(this.emitter&&window[this.emitter]){const t=window[this.emitter];t.on("app-data:get",(()=>{var o;console.log("app-data:get"),(o=localStorage.getItem(s),new Promise(((t,s)=>{try{t(JSON.parse(o))}catch(t){s(t)}}))).then((o=>{t.emit("app-data:value",o)})).catch((t=>{console.log(t)}))})),t.on("app-data:store",(t=>{console.log("app-data:store",t),(t=>{const o=JSON.stringify(t);localStorage.setItem(s,o)})(t)})),t.emit("proto-daisy-db",{ready:!0})}}render(){return o("div",null)}};a.style="";const r=class{constructor(o){t(this,o),this.data=void 0}render(){const t=this.data?Object.keys(this.data):[];return o("div",{class:"flex flex-col"},t.map((t=>o("span",null,t))))}};r.style="";const e=class{constructor(o){t(this,o),this.data=void 0}render(){return o("div",{class:"flex"},o("span",null,this.data?this.data.stamp:""))}};e.style="";const i=class{constructor(o){t(this,o),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],o={login:!0,stamp:Date.now(),theme:"dark",dealers:[]};this.data=void 0,t.emit("app-data:store",o)}}fetchData(){this.emitter&&window[this.emitter]&&window[this.emitter].emit("app-data:get",42)}render(){return o("div",{class:"flex flex-col font-sans"},o("div",{class:"flex flex-row content-center gap-2"},o("button",{class:"btn bg-clrs-navy text-clrs-white",onClick:()=>this.emitData()},"Save"),o("button",{class:"btn bg-clrs-blue text-clrs-white",onClick:()=>this.fetchData()},"Fetch")),o("proto-faux-type",{class:"mt-4",emitter:this.emitter}),o("proto-faux-stamp",{class:"mt-2 text-xs",data:this.data}),o("proto-faux-keys",{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,\n system-ui,\n -apple-system,\n BlinkMacSystemFont,\n 'Segoe UI',\n Roboto,\n 'Helvetica Neue',\n Arial,\n 'Noto Sans',\n sans-serif,\n 'Apple Color Emoji',\n 'Segoe UI Emoji',\n 'Segoe UI Symbol',\n '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 n=class{constructor(o){t(this,o),this.emitter=void 0,this.eventType=void 0}componentDidLoad(){this.emitter&&window[this.emitter]&&window[this.emitter].on("*",(t=>{this.eventType=t}))}render(){return o("div",null,o("span",{class:"text-xs italic"},this.eventType))}};n.style="proto-faux-type{}";export{a as proto_daisy_db,r as proto_faux_keys,e as proto_faux_stamp,i as proto_faux_trigger,n as proto_faux_type}
1
+ import{r as t,h as o}from"./p-73c68f12.js";const s="proto-daisy-db:app-data",a=class{constructor(o){t(this,o),this.emitter=void 0}componentDidLoad(){if(this.emitter&&window[this.emitter]){const t=window[this.emitter];t.on("app-data:get",(()=>{var o;console.log("app-data:get"),(o=localStorage.getItem(s),new Promise(((t,s)=>{try{t(JSON.parse(o))}catch(t){s(t)}}))).then((o=>{t.emit("app-data:value",o)})).catch((t=>{console.log(t)}))})),t.on("app-data:store",(t=>{console.log("app-data:store",t),(t=>{const o=JSON.stringify(t);localStorage.setItem(s,o)})(t)})),t.emit("proto-daisy-db",{ready:!0})}}render(){return o("div",null)}};a.style="";const r=class{constructor(o){t(this,o),this.data=void 0}render(){const t=this.data?Object.keys(this.data):[];return o("div",{class:"flex flex-col"},t.map((t=>o("span",null,t))))}};r.style="";const e=class{constructor(o){t(this,o),this.data=void 0}render(){return o("div",{class:"flex"},o("span",null,this.data?this.data.stamp:""))}};e.style="";const i=class{constructor(o){t(this,o),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],o={login:!0,stamp:Date.now(),theme:"dark",dealers:[]};this.data=void 0,t.emit("app-data:store",o)}}fetchData(){this.emitter&&window[this.emitter]&&window[this.emitter].emit("app-data:get",42)}render(){return o("div",{class:"flex flex-col font-sans"},o("div",{class:"flex flex-row content-center gap-2"},o("button",{class:"btn bg-clrs-navy text-clrs-white",onClick:()=>this.emitData()},"Save"),o("button",{class:"btn bg-clrs-blue text-clrs-white",onClick:()=>this.fetchData()},"Fetch")),o("proto-faux-type",{class:"mt-4",emitter:this.emitter}),o("proto-faux-stamp",{class:"mt-2 text-xs",data:this.data}),o("proto-faux-keys",{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,\n system-ui,\n -apple-system,\n BlinkMacSystemFont,\n 'Segoe UI',\n Roboto,\n 'Helvetica Neue',\n Arial,\n 'Noto Sans',\n sans-serif,\n 'Apple Color Emoji',\n 'Segoe UI Emoji',\n 'Segoe UI Symbol',\n '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 n=class{constructor(o){t(this,o),this.emitter=void 0,this.eventType=void 0}componentDidLoad(){this.emitter&&window[this.emitter]&&window[this.emitter].on("*",(t=>{this.eventType=t}))}render(){return o("div",null,o("span",{class:"text-xs italic"},this.eventType))}};n.style="proto-faux-type{}";export{a as proto_daisy_db,r as proto_faux_keys,e as proto_faux_stamp,i as proto_faux_trigger,n as proto_faux_type}
@@ -1,2 +1,2 @@
1
- let n,t,e=!1;const l="slot-fb{display:contents}slot-fb[hidden]{display:none}",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=H(n,t),r=t.toLowerCase();if("class"===t){const t=n.classList,o=p(e),s=p(l);t.remove(...o.filter((n=>n&&!s.includes(n)))),t.add(...s.filter((n=>n&&!o.includes(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 if(t="-"===t[2]?t.slice(3):H(G,r)?r.slice(2):r[2]+t.slice(3),e||l){const o=t.endsWith(h);t=t.replace($,""),e&&J.rel(n,t,e,o),l&&J.ael(n,t,l,o)}}},y=/\s/,p=n=>n?n.split(y):[],h="Capture",$=RegExp(h+"$"),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)},v=(t,e,l)=>{const o=e.o[l];let s,i,c=0;if(null!==o.t)s=o.p=I.createTextNode(o.t);else if(s=o.p=I.createElement(o.u),m(null,o,!1),null!=n&&s["s-si"]!==n&&s.classList.add(s["s-si"]=n),o.o)for(c=0;c<o.o.length;++c)i=v(t,o,c),i&&s.appendChild(i);return s},b=(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=v(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;n&&n.remove()}}},S=(n,t)=>n.u===t.u,g=(n,t)=>{const e=t.p=n.p,l=n.o,o=t.o,s=t.t;null===s?(m(n,t,!1),null!==l&&null!==o?((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]:S(r,f)?(g(r,f),r=t[++s],f=l[++i]):S(u,d)?(g(u,d),u=t[--c],d=l[--a]):S(r,d)?(g(r,d),n.insertBefore(r.p,u.p.nextSibling),r=t[++s],d=l[--a]):S(u,f)?(g(u,f),n.insertBefore(u.p,r.p),u=t[--c],f=l[++i]):(o=v(t&&t[i],e,i),f=l[++i],o&&r.p.parentNode.insertBefore(o,r.p));s>c?b(n,null==l[a+1]?null:l[a+1].p,e,l,i,a):i>a&&w(t,s,c)})(e,l,t,o):null!==o?(null!==n.t&&(e.textContent=""),b(e,null,t,o,0,o.length-1)):null!==l&&w(l,0,l.length-1)):n.t!==s&&(e.data=s)},j=(n,t)=>{t&&!n.$&&t["s-p"]&&t["s-p"].push(new Promise((t=>n.$=t)))},M=(n,t)=>{if(n.i|=16,!(4&n.i))return j(n,n.m),ln((()=>O(n,t)));n.i|=512},O=(n,t)=>{const e=n.v;return k(void 0,(()=>P(n,e,t)))},k=(n,t)=>C(n)?n.then(t):t(),C=n=>n instanceof Promise||n&&n.then&&"function"==typeof n.then,P=async(n,t,e)=>{var o;const s=n.$hostElement$,c=s["s-rc"];e&&(n=>{const t=n.S,e=n.$hostElement$,o=t.i,s=((n,t)=>{var e;const o=f(t),s=B.get(o);if(n=11===n.nodeType?n:I,s)if("string"==typeof s){let c,r=a.get(n=n.head||n);if(r||a.set(n,r=new Set),!r.has(o)){{c=I.createElement("style"),c.innerHTML=s;const t=null!==(e=J.j)&&void 0!==e?e:i(I);null!=t&&c.setAttribute("nonce",t),n.insertBefore(c,n.querySelector("link"))}4&t.i&&(c.innerHTML+=l),r&&r.add(o)}}else n.adoptedStyleSheets.includes(s)||(n.adoptedStyleSheets=[...n.adoptedStyleSheets,s]);return o})(e.shadowRoot?e.shadowRoot:e.getRootNode(),t);10&o&&(e["s-sc"]=s,e.classList.add(s+"-h"))})(n);x(n,t,s,e),c&&(c.map((n=>n())),s["s-rc"]=void 0);{const t=null!==(o=s["s-p"])&&void 0!==o?o:[],e=()=>E(n);0===t.length?e():(Promise.all(t).then(e),n.i|=4,t.length=0)}},x=(e,l,o,s)=>{try{l=l.render(),e.i&=-17,e.i|=2,((e,l,o=!1)=>{const s=e.$hostElement$,i=e.M||r(null,null),a=(n=>n&&n.u===u)(l)?l:c(null,null,l);if(t=s.tagName,o&&a.l)for(const n of Object.keys(a.l))s.hasAttribute(n)&&!["key","ref","style","class"].includes(n)&&(a.l[n]=s[n]);a.u=null,a.i|=4,e.M=a,a.p=i.p=s.shadowRoot||s,n=s["s-sc"],g(i,a)})(e,l,s)}catch(n){V(n,e.$hostElement$)}return null},E=n=>{const t=n.$hostElement$,e=n.v,l=n.m;64&n.i||(n.i|=64,N(t),L(e,"componentDidLoad"),n.O(t),l||A()),n.$&&(n.$(),n.$=void 0),512&n.i&&en((()=>M(n,!1))),n.i&=-517},A=()=>{N(I.documentElement),en((()=>(n=>{const t=J.ce("appload",{detail:{namespace:"proto-daisy-db"}});return n.dispatchEvent(t),t})(G)))},L=(n,t,e)=>{if(n&&n[t])try{return n[t](e)}catch(n){V(n)}},N=n=>n.classList.add("hydrated"),R=(n,t,e)=>{var l;const o=n.prototype;if(t.k){const i=Object.entries(t.k);if(i.map((([n,[l]])=>{(31&l||2&e&&32&l)&&Object.defineProperty(o,n,{get(){return((n,t)=>q(this).C.get(t))(0,n)},set(e){((n,t,e,l)=>{const o=q(n),i=o.C.get(t),c=o.i,r=o.v;e=((n,t)=>null==n||s(n)?n:1&t?n+"":n)(e,l.k[t][0]),8&c&&void 0!==i||e===i||Number.isNaN(i)&&Number.isNaN(e)||(o.C.set(t,e),r&&2==(18&c)&&M(o,!1))})(this,n,e,t)},configurable:!0,enumerable:!0})})),1&e){const e=new Map;o.attributeChangedCallback=function(n,l,s){J.jmp((()=>{var i;const c=e.get(n);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 e=q(this),o=null==e?void 0:e.i;if(o&&!(8&o)&&128&o&&s!==l){const o=e.v,c=null===(i=t.P)||void 0===i?void 0:i[n];null==c||c.forEach((t=>{null!=o[t]&&o[t].call(o,s,l,n)}))}return}}this[c]=(null!==s||"boolean"!=typeof this[c])&&s}))},n.observedAttributes=Array.from(new Set([...Object.keys(null!==(l=t.P)&&void 0!==l?l:{}),...i.filter((([n,t])=>15&t[0])).map((([n,t])=>{const l=t[1]||n;return e.set(l,n),l}))]))}}return n},T=(n,t={})=>{var e;const o=[],s=t.exclude||[],c=G.customElements,r=I.head,u=r.querySelector("meta[charset]"),a=I.createElement("style"),d=[];let y,p=!0;Object.assign(J,t),J.A=new URL(t.resourcesUrl||"./",I.baseURI).href;let h=!1;if(n.map((n=>{n[1].map((t=>{const e={i:t[0],h:t[1],k:t[2],L:t[3]};4&e.i&&(h=!0),e.k=t[2];const l=e.h,i=class extends HTMLElement{constructor(n){super(n),F(n=this,e),1&e.i&&n.attachShadow({mode:"open"})}connectedCallback(){y&&(clearTimeout(y),y=null),p?d.push(this):J.jmp((()=>(n=>{if(0==(1&J.i)){const t=q(n),e=t.S,l=()=>{};if(1&t.i)(null==t?void 0:t.v)||(null==t?void 0:t.N)&&t.N.then((()=>{}));else{t.i|=1;{let e=n;for(;e=e.parentNode||e.host;)if(e["s-p"]){j(t,t.m=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)=>{let l;if(0==(32&t.i)){t.i|=32;{if(l=z(e),l.then){const n=()=>{};l=await l,n()}l.isProxied||(R(l,e,2),l.isProxied=!0);const n=()=>{};t.i|=8;try{new l(t)}catch(n){V(n)}t.i&=-9,n()}if(l.style){let n=l.style;const t=f(e);if(!B.has(t)){const l=()=>{};((n,t,e)=>{let l=B.get(n);Q&&e?(l=l||new CSSStyleSheet,"string"==typeof l?l=t:l.replaceSync(t)):l=t,B.set(n,l)})(t,n,!!(1&e.i)),l()}}}const o=t.m,s=()=>M(t,!0);o&&o["s-rc"]?o["s-rc"].push(s):s()})(0,t,e)}l()}})(this)))}disconnectedCallback(){J.jmp((()=>(async()=>{if(0==(1&J.i)){const n=q(this);(null==n?void 0:n.v)||(null==n?void 0:n.N)&&n.N.then((()=>{}))}})()))}componentOnReady(){return q(this).N}};e.R=n[0],s.includes(l)||c.get(l)||(o.push(l),c.define(l,R(i,e,1)))}))})),h&&(a.innerHTML+=l),a.innerHTML+=o+"{visibility:hidden}.hydrated{visibility:inherit}",a.innerHTML.length){a.setAttribute("data-styles",""),r.insertBefore(a,u?u.nextSibling:r.firstChild);const n=null!==(e=J.j)&&void 0!==e?e:i(I);null!=n&&a.setAttribute("nonce",n)}p=!1,d.length?d.map((n=>n.connectedCallback())):J.jmp((()=>y=setTimeout(A,30)))},U=n=>J.j=n,W=new WeakMap,q=n=>W.get(n),D=(n,t)=>W.set(t.v=n,t),F=(n,t)=>{const e={i:0,$hostElement$:n,S:t,C:new Map};return e.N=new Promise((n=>e.O=n)),n["s-p"]=[],n["s-rc"]=[],W.set(n,e)},H=(n,t)=>t in n,V=(n,t)=>(0,console.error)(n,t),_=new Map,z=n=>{const t=n.h.replace(/-/g,"_"),e=n.R,l=_.get(e);return l?l[t]:import(`./${e}.entry.js`).then((n=>(_.set(e,n),n[t])),V)
1
+ let n,t,e=!1;const l="slot-fb{display:contents}slot-fb[hidden]{display:none}",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=H(n,t),r=t.toLowerCase();if("class"===t){const t=n.classList,o=p(e),s=p(l);t.remove(...o.filter((n=>n&&!s.includes(n)))),t.add(...s.filter((n=>n&&!o.includes(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 if(t="-"===t[2]?t.slice(3):H(G,r)?r.slice(2):r[2]+t.slice(3),e||l){const o=t.endsWith(h);t=t.replace($,""),e&&J.rel(n,t,e,o),l&&J.ael(n,t,l,o)}}},y=/\s/,p=n=>n?n.split(y):[],h="Capture",$=RegExp(h+"$"),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)},v=(t,e,l)=>{const o=e.o[l];let s,i,c=0;if(null!==o.t)s=o.p=I.createTextNode(o.t);else if(s=o.p=I.createElement(o.u),m(null,o,!1),null!=n&&s["s-si"]!==n&&s.classList.add(s["s-si"]=n),o.o)for(c=0;c<o.o.length;++c)i=v(t,o,c),i&&s.appendChild(i);return s},b=(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=v(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;n&&n.remove()}}},S=(n,t)=>n.u===t.u,g=(n,t)=>{const e=t.p=n.p,l=n.o,o=t.o,s=t.t;null===s?(m(n,t,!1),null!==l&&null!==o?((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]:S(r,f)?(g(r,f),r=t[++s],f=l[++i]):S(u,d)?(g(u,d),u=t[--c],d=l[--a]):S(r,d)?(g(r,d),n.insertBefore(r.p,u.p.nextSibling),r=t[++s],d=l[--a]):S(u,f)?(g(u,f),n.insertBefore(u.p,r.p),u=t[--c],f=l[++i]):(o=v(t&&t[i],e,i),f=l[++i],o&&r.p.parentNode.insertBefore(o,r.p));s>c?b(n,null==l[a+1]?null:l[a+1].p,e,l,i,a):i>a&&w(t,s,c)})(e,l,t,o):null!==o?(null!==n.t&&(e.textContent=""),b(e,null,t,o,0,o.length-1)):null!==l&&w(l,0,l.length-1)):n.t!==s&&(e.data=s)},j=(n,t)=>{t&&!n.$&&t["s-p"]&&t["s-p"].push(new Promise((t=>n.$=t)))},M=(n,t)=>{if(n.i|=16,!(4&n.i))return j(n,n.m),ln((()=>O(n,t)));n.i|=512},O=(n,t)=>{const e=n.v;return k(void 0,(()=>P(n,e,t)))},k=(n,t)=>C(n)?n.then(t):t(),C=n=>n instanceof Promise||n&&n.then&&"function"==typeof n.then,P=async(n,t,e)=>{var o;const s=n.$hostElement$,c=s["s-rc"];e&&(n=>{const t=n.S,e=n.$hostElement$,o=t.i,s=((n,t)=>{var e;const o=f(t),s=B.get(o);if(n=11===n.nodeType?n:I,s)if("string"==typeof s){let c,r=a.get(n=n.head||n);if(r||a.set(n,r=new Set),!r.has(o)){{c=I.createElement("style"),c.innerHTML=s;const t=null!==(e=J.j)&&void 0!==e?e:i(I);null!=t&&c.setAttribute("nonce",t),n.insertBefore(c,n.querySelector("link"))}4&t.i&&(c.innerHTML+=l),r&&r.add(o)}}else n.adoptedStyleSheets.includes(s)||(n.adoptedStyleSheets=[...n.adoptedStyleSheets,s]);return o})(e.shadowRoot?e.shadowRoot:e.getRootNode(),t);10&o&&(e["s-sc"]=s,e.classList.add(s+"-h"))})(n);x(n,t,s,e),c&&(c.map((n=>n())),s["s-rc"]=void 0);{const t=null!==(o=s["s-p"])&&void 0!==o?o:[],e=()=>E(n);0===t.length?e():(Promise.all(t).then(e),n.i|=4,t.length=0)}},x=(e,l,o,s)=>{try{l=l.render(),e.i&=-17,e.i|=2,((e,l,o=!1)=>{const s=e.$hostElement$,i=e.M||r(null,null),a=(n=>n&&n.u===u)(l)?l:c(null,null,l);if(t=s.tagName,o&&a.l)for(const n of Object.keys(a.l))s.hasAttribute(n)&&!["key","ref","style","class"].includes(n)&&(a.l[n]=s[n]);a.u=null,a.i|=4,e.M=a,a.p=i.p=s.shadowRoot||s,n=s["s-sc"],g(i,a)})(e,l,s)}catch(n){V(n,e.$hostElement$)}return null},E=n=>{const t=n.$hostElement$,e=n.v,l=n.m;64&n.i||(n.i|=64,N(t),L(e,"componentDidLoad"),n.O(t),l||A()),n.$&&(n.$(),n.$=void 0),512&n.i&&en((()=>M(n,!1))),n.i&=-517},A=()=>{N(I.documentElement),en((()=>(n=>{const t=J.ce("appload",{detail:{namespace:"proto-daisy-db"}});return n.dispatchEvent(t),t})(G)))},L=(n,t,e)=>{if(n&&n[t])try{return n[t](e)}catch(n){V(n)}},N=n=>n.classList.add("hydrated"),R=(n,t,e)=>{var l;const o=n.prototype;if(t.k){const i=Object.entries(t.k);if(i.map((([n,[l]])=>{(31&l||2&e&&32&l)&&Object.defineProperty(o,n,{get(){return((n,t)=>q(this).C.get(t))(0,n)},set(e){((n,t,e,l)=>{const o=q(n),i=o.C.get(t),c=o.i,r=o.v;e=((n,t)=>null==n||s(n)?n:1&t?n+"":n)(e,l.k[t][0]),8&c&&void 0!==i||e===i||Number.isNaN(i)&&Number.isNaN(e)||(o.C.set(t,e),r&&2==(18&c)&&M(o,!1))})(this,n,e,t)},configurable:!0,enumerable:!0})})),1&e){const e=new Map;o.attributeChangedCallback=function(n,l,s){J.jmp((()=>{var i;const c=e.get(n);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 e=q(this),o=null==e?void 0:e.i;if(o&&!(8&o)&&128&o&&s!==l){const o=e.v,c=null===(i=t.P)||void 0===i?void 0:i[n];null==c||c.forEach((t=>{null!=o[t]&&o[t].call(o,s,l,n)}))}return}}this[c]=(null!==s||"boolean"!=typeof this[c])&&s}))},n.observedAttributes=Array.from(new Set([...Object.keys(null!==(l=t.P)&&void 0!==l?l:{}),...i.filter((([n,t])=>15&t[0])).map((([n,t])=>{const l=t[1]||n;return e.set(l,n),l}))]))}}return n},T=(n,t={})=>{var e;const o=[],s=t.exclude||[],c=G.customElements,r=I.head,u=r.querySelector("meta[charset]"),a=I.createElement("style"),d=[];let y,p=!0;Object.assign(J,t),J.A=new URL(t.resourcesUrl||"./",I.baseURI).href;let h=!1;if(n.map((n=>{n[1].map((t=>{const e={i:t[0],h:t[1],k:t[2],L:t[3]};4&e.i&&(h=!0),e.k=t[2];const l=e.h,i=class extends HTMLElement{constructor(n){super(n),F(n=this,e),1&e.i&&n.attachShadow({mode:"open"})}connectedCallback(){y&&(clearTimeout(y),y=null),p?d.push(this):J.jmp((()=>(n=>{if(0==(1&J.i)){const t=q(n),e=t.S,l=()=>{};if(1&t.i)(null==t?void 0:t.v)||(null==t?void 0:t.N)&&t.N.then((()=>{}));else{t.i|=1;{let e=n;for(;e=e.parentNode||e.host;)if(e["s-p"]){j(t,t.m=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)=>{let l;if(0==(32&t.i)){t.i|=32;{if(l=z(e),l.then){const n=()=>{};l=await l,n()}l.isProxied||(R(l,e,2),l.isProxied=!0);const n=()=>{};t.i|=8;try{new l(t)}catch(n){V(n)}t.i&=-9,n()}if(l.style){let n=l.style;const t=f(e);if(!B.has(t)){const l=()=>{};((n,t,e)=>{let l=B.get(n);Q&&e?(l=l||new CSSStyleSheet,"string"==typeof l?l=t:l.replaceSync(t)):l=t,B.set(n,l)})(t,n,!!(1&e.i)),l()}}}const o=t.m,s=()=>M(t,!0);o&&o["s-rc"]?o["s-rc"].push(s):s()})(0,t,e)}l()}})(this)))}disconnectedCallback(){J.jmp((()=>(async()=>{if(0==(1&J.i)){const n=q(this);(null==n?void 0:n.v)||(null==n?void 0:n.N)&&n.N.then((()=>{}))}})()))}componentOnReady(){return q(this).N}};e.R=n[0],s.includes(l)||c.get(l)||(o.push(l),c.define(l,R(i,e,1)))}))})),h&&(a.innerHTML+=l),a.innerHTML+=o+"{visibility:hidden}.hydrated{visibility:inherit}",a.innerHTML.length){a.setAttribute("data-styles","");const n=null!==(e=J.j)&&void 0!==e?e:i(I);null!=n&&a.setAttribute("nonce",n),r.insertBefore(a,u?u.nextSibling:r.firstChild)}p=!1,d.length?d.map((n=>n.connectedCallback())):J.jmp((()=>y=setTimeout(A,30)))},U=n=>J.j=n,W=new WeakMap,q=n=>W.get(n),D=(n,t)=>W.set(t.v=n,t),F=(n,t)=>{const e={i:0,$hostElement$:n,S:t,C:new Map};return e.N=new Promise((n=>e.O=n)),n["s-p"]=[],n["s-rc"]=[],W.set(n,e)},H=(n,t)=>t in n,V=(n,t)=>(0,console.error)(n,t),_=new Map,z=n=>{const t=n.h.replace(/-/g,"_"),e=n.R,l=_.get(e);return l?l[t]:import(`./${e}.entry.js`).then((n=>(_.set(e,n),n[t])),V)
2
2
  /*!__STENCIL_STATIC_IMPORT_SWITCH__*/},B=new Map,G="undefined"!=typeof window?window:{},I=G.document||{head:{}},J={i:0,A:"",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)},K=n=>Promise.resolve(n),Q=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync}catch(n){}return!1})(),X=[],Y=[],Z=(n,t)=>l=>{n.push(l),e||(e=!0,t&&4&J.i?en(tn):J.raf(tn))},nn=n=>{for(let t=0;t<n.length;t++)try{n[t](performance.now())}catch(n){V(n)}n.length=0},tn=()=>{nn(X),nn(Y),(e=X.length>0)&&J.raf(tn)},en=n=>K().then(n),ln=Z(Y,!0);export{T as b,c as h,K as p,D as r,U as s}
@@ -1 +1 @@
1
- import{p as t,b as e}from"./p-8cdb3b30.js";export{s as setNonce}from"./p-8cdb3b30.js";(()=>{const e=import.meta.url,o={};return""!==e&&(o.resourcesUrl=new URL(".",e).href),t(o)})().then((t=>e([["p-686357f2",[[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)));
1
+ import{p as t,b as e}from"./p-73c68f12.js";export{s as setNonce}from"./p-73c68f12.js";(()=>{const e=import.meta.url,a={};return""!==e&&(a.resourcesUrl=new URL(".",e).href),t(a)})().then((t=>e([["p-34c43a81",[[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)));
@@ -1,3 +1,3 @@
1
- declare const TW_VERSION = "3.3.5";
1
+ declare const TW_VERSION = "3.3.6";
2
2
  export { TW_VERSION };
3
3
  export default TW_VERSION;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "proto-daisy-db",
3
- "version": "0.0.216",
3
+ "version": "0.0.218",
4
4
  "description": "Stencil Component Starter",
5
5
  "main": "dist/index.cjs.js",
6
6
  "module": "dist/index.js",
@@ -27,18 +27,18 @@
27
27
  "format": "prettier --write src"
28
28
  },
29
29
  "dependencies": {
30
- "@stencil/core": "4.8.0",
30
+ "@stencil/core": "4.8.1",
31
31
  "mitt": "3.0.1"
32
32
  },
33
33
  "devDependencies": {
34
34
  "autoprefixer": "10.4.16",
35
35
  "concurrently": "8.2.2",
36
- "cspell": "8.1.0",
36
+ "cspell": "8.1.2",
37
37
  "postcss": "8.4.32",
38
38
  "prettier": "3.1.0",
39
- "prettier-plugin-tailwindcss": "0.5.7",
39
+ "prettier-plugin-tailwindcss": "0.5.8",
40
40
  "proto-tailwindcss-clrs": "0.0.292",
41
- "tailwindcss": "3.3.5"
41
+ "tailwindcss": "3.3.6"
42
42
  },
43
43
  "license": "MIT"
44
44
  }