proto-daisy-db 0.0.105 → 0.0.106

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.
Files changed (66) hide show
  1. package/dist/cjs/index-0fb984e4.js +0 -2
  2. package/dist/cjs/index.cjs.js +0 -2
  3. package/dist/cjs/loader.cjs.js +0 -2
  4. package/dist/cjs/proto-daisy-db.cjs.js +0 -2
  5. package/dist/cjs/proto-daisy-db_5.cjs.entry.js +0 -2
  6. package/dist/collection/components/proto-daisy-db/proto-daisy-db.js +0 -1
  7. package/dist/collection/components/proto-faux-keys/proto-faux-keys.js +0 -1
  8. package/dist/collection/components/proto-faux-stamp/proto-faux-stamp.js +0 -1
  9. package/dist/collection/components/proto-faux-trigger/proto-faux-trigger.js +0 -1
  10. package/dist/collection/components/proto-faux-type/proto-faux-type.js +0 -1
  11. package/dist/collection/index.js +0 -1
  12. package/dist/collection/utils/bag.js +0 -1
  13. package/dist/collection/utils/index.js +0 -1
  14. package/dist/collection/utils/tw-version.js +0 -1
  15. package/dist/components/index.js +0 -2
  16. package/dist/components/proto-daisy-db.js +0 -2
  17. package/dist/components/proto-faux-keys.js +0 -2
  18. package/dist/components/proto-faux-keys2.js +0 -2
  19. package/dist/components/proto-faux-stamp.js +0 -2
  20. package/dist/components/proto-faux-stamp2.js +0 -2
  21. package/dist/components/proto-faux-trigger.js +0 -2
  22. package/dist/components/proto-faux-type.js +0 -2
  23. package/dist/components/proto-faux-type2.js +0 -2
  24. package/dist/esm/index-14cc687e.js +0 -2
  25. package/dist/esm/index.js +0 -2
  26. package/dist/esm/loader.js +0 -2
  27. package/dist/esm/proto-daisy-db.js +0 -2
  28. package/dist/esm/proto-daisy-db_5.entry.js +0 -2
  29. package/dist/proto-daisy-db/index.esm.js +0 -2
  30. package/dist/proto-daisy-db/p-b74bc8ff.js +2 -3
  31. package/dist/proto-daisy-db/p-ee54e12c.entry.js +1 -0
  32. package/dist/proto-daisy-db/proto-daisy-db.esm.js +1 -2
  33. package/package.json +1 -1
  34. package/dist/cjs/index-0fb984e4.js.map +0 -1
  35. package/dist/cjs/index.cjs.js.map +0 -1
  36. package/dist/cjs/loader.cjs.js.map +0 -1
  37. package/dist/cjs/proto-daisy-db.cjs.js.map +0 -1
  38. package/dist/cjs/proto-daisy-db_5.cjs.entry.js.map +0 -1
  39. package/dist/collection/components/proto-daisy-db/proto-daisy-db.js.map +0 -1
  40. package/dist/collection/components/proto-faux-keys/proto-faux-keys.js.map +0 -1
  41. package/dist/collection/components/proto-faux-stamp/proto-faux-stamp.js.map +0 -1
  42. package/dist/collection/components/proto-faux-trigger/proto-faux-trigger.js.map +0 -1
  43. package/dist/collection/components/proto-faux-type/proto-faux-type.js.map +0 -1
  44. package/dist/collection/index.js.map +0 -1
  45. package/dist/collection/utils/bag.js.map +0 -1
  46. package/dist/collection/utils/index.js.map +0 -1
  47. package/dist/collection/utils/tw-version.js.map +0 -1
  48. package/dist/components/index.js.map +0 -1
  49. package/dist/components/proto-daisy-db.js.map +0 -1
  50. package/dist/components/proto-faux-keys.js.map +0 -1
  51. package/dist/components/proto-faux-keys2.js.map +0 -1
  52. package/dist/components/proto-faux-stamp.js.map +0 -1
  53. package/dist/components/proto-faux-stamp2.js.map +0 -1
  54. package/dist/components/proto-faux-trigger.js.map +0 -1
  55. package/dist/components/proto-faux-type.js.map +0 -1
  56. package/dist/components/proto-faux-type2.js.map +0 -1
  57. package/dist/esm/index-14cc687e.js.map +0 -1
  58. package/dist/esm/index.js.map +0 -1
  59. package/dist/esm/loader.js.map +0 -1
  60. package/dist/esm/proto-daisy-db.js.map +0 -1
  61. package/dist/esm/proto-daisy-db_5.entry.js.map +0 -1
  62. package/dist/proto-daisy-db/index.esm.js.map +0 -1
  63. package/dist/proto-daisy-db/p-8e6edc44.entry.js +0 -2
  64. package/dist/proto-daisy-db/p-8e6edc44.entry.js.map +0 -1
  65. package/dist/proto-daisy-db/p-b74bc8ff.js.map +0 -1
  66. package/dist/proto-daisy-db/proto-daisy-db.esm.js.map +0 -1
@@ -1385,5 +1385,3 @@ exports.h = h;
1385
1385
  exports.promiseResolve = promiseResolve;
1386
1386
  exports.registerInstance = registerInstance;
1387
1387
  exports.setNonce = setNonce;
1388
-
1389
- //# sourceMappingURL=index-0fb984e4.js.map
@@ -1,4 +1,2 @@
1
1
  'use strict';
2
2
 
3
-
4
- //# sourceMappingURL=index.cjs.js.map
@@ -20,5 +20,3 @@ const defineCustomElements = (win, options) => {
20
20
 
21
21
  exports.setNonce = index.setNonce;
22
22
  exports.defineCustomElements = defineCustomElements;
23
-
24
- //# sourceMappingURL=loader.cjs.js.map
@@ -24,5 +24,3 @@ patchBrowser().then(options => {
24
24
  });
25
25
 
26
26
  exports.setNonce = index.setNonce;
27
-
28
- //# sourceMappingURL=proto-daisy-db.cjs.js.map
@@ -158,5 +158,3 @@ exports.proto_faux_keys = ProtoFauxKeys;
158
158
  exports.proto_faux_stamp = ProtoFauxStamp;
159
159
  exports.proto_faux_trigger = ProtoFauxTrigger;
160
160
  exports.proto_faux_type = ProtoFauxType;
161
-
162
- //# sourceMappingURL=proto-daisy-db_5.cjs.entry.js.map
@@ -64,4 +64,3 @@ export class ProtoDaisyDB {
64
64
  };
65
65
  }
66
66
  }
67
- //# sourceMappingURL=proto-daisy-db.js.map
@@ -39,4 +39,3 @@ export class ProtoFauxKeys {
39
39
  };
40
40
  }
41
41
  }
42
- //# sourceMappingURL=proto-faux-keys.js.map
@@ -39,4 +39,3 @@ export class ProtoFauxStamp {
39
39
  };
40
40
  }
41
41
  }
42
- //# sourceMappingURL=proto-faux-stamp.js.map
@@ -83,4 +83,3 @@ export class ProtoFauxTrigger {
83
83
  };
84
84
  }
85
85
  }
86
- //# sourceMappingURL=proto-faux-trigger.js.map
@@ -67,4 +67,3 @@ export class ProtoFauxType {
67
67
  };
68
68
  }
69
69
  }
70
- //# sourceMappingURL=proto-faux-type.js.map
@@ -1,2 +1 @@
1
1
  export {};
2
- //# sourceMappingURL=index.js.map
@@ -23,4 +23,3 @@ const bag = {
23
23
  };
24
24
  export { bag };
25
25
  export default bag;
26
- //# sourceMappingURL=bag.js.map
@@ -1,3 +1,2 @@
1
1
  export * from './bag';
2
2
  export * from './tw-version';
3
- //# sourceMappingURL=index.js.map
@@ -2,4 +2,3 @@
2
2
  const TW_VERSION = '3.2.4';
3
3
  export { TW_VERSION };
4
4
  export default TW_VERSION;
5
- //# sourceMappingURL=tw-version.js.map
@@ -1,3 +1 @@
1
1
  export { setAssetPath, setNonce, setPlatformOptions } from '@stencil/core/internal/client';
2
-
3
- //# sourceMappingURL=index.js.map
@@ -80,5 +80,3 @@ const ProtoDaisyDb = ProtoDaisyDB;
80
80
  const defineCustomElement = defineCustomElement$1;
81
81
 
82
82
  export { ProtoDaisyDb, defineCustomElement };
83
-
84
- //# sourceMappingURL=proto-daisy-db.js.map
@@ -4,5 +4,3 @@ const ProtoFauxKeys = ProtoFauxKeys$1;
4
4
  const defineCustomElement = defineCustomElement$1;
5
5
 
6
6
  export { ProtoFauxKeys, defineCustomElement };
7
-
8
- //# sourceMappingURL=proto-faux-keys.js.map
@@ -31,5 +31,3 @@ function defineCustomElement() {
31
31
  }
32
32
 
33
33
  export { ProtoFauxKeys as P, defineCustomElement as d };
34
-
35
- //# sourceMappingURL=proto-faux-keys2.js.map
@@ -4,5 +4,3 @@ const ProtoFauxStamp = ProtoFauxStamp$1;
4
4
  const defineCustomElement = defineCustomElement$1;
5
5
 
6
6
  export { ProtoFauxStamp, defineCustomElement };
7
-
8
- //# sourceMappingURL=proto-faux-stamp.js.map
@@ -31,5 +31,3 @@ function defineCustomElement() {
31
31
  }
32
32
 
33
33
  export { ProtoFauxStamp as P, defineCustomElement as d };
34
-
35
- //# sourceMappingURL=proto-faux-stamp2.js.map
@@ -79,5 +79,3 @@ const ProtoFauxTrigger = ProtoFauxTrigger$1;
79
79
  const defineCustomElement = defineCustomElement$1;
80
80
 
81
81
  export { ProtoFauxTrigger, defineCustomElement };
82
-
83
- //# sourceMappingURL=proto-faux-trigger.js.map
@@ -4,5 +4,3 @@ const ProtoFauxType = ProtoFauxType$1;
4
4
  const defineCustomElement = defineCustomElement$1;
5
5
 
6
6
  export { ProtoFauxType, defineCustomElement };
7
-
8
- //# sourceMappingURL=proto-faux-type.js.map
@@ -40,5 +40,3 @@ function defineCustomElement() {
40
40
  }
41
41
 
42
42
  export { ProtoFauxType as P, defineCustomElement as d };
43
-
44
- //# sourceMappingURL=proto-faux-type2.js.map
@@ -1359,5 +1359,3 @@ const nextTick = /*@__PURE__*/ (cb) => promiseResolve().then(cb);
1359
1359
  const writeTask = /*@__PURE__*/ queueTask(queueDomWrites, true);
1360
1360
 
1361
1361
  export { bootstrapLazy as b, h, promiseResolve as p, registerInstance as r, setNonce as s };
1362
-
1363
- //# sourceMappingURL=index-14cc687e.js.map
package/dist/esm/index.js CHANGED
@@ -1,3 +1 @@
1
1
 
2
-
3
- //# sourceMappingURL=index.js.map
@@ -16,5 +16,3 @@ const defineCustomElements = (win, options) => {
16
16
  };
17
17
 
18
18
  export { defineCustomElements };
19
-
20
- //# sourceMappingURL=loader.js.map
@@ -19,5 +19,3 @@ const patchBrowser = () => {
19
19
  patchBrowser().then(options => {
20
20
  return bootstrapLazy([["proto-daisy-db_5",[[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"]}]]]], options);
21
21
  });
22
-
23
- //# sourceMappingURL=proto-daisy-db.js.map
@@ -150,5 +150,3 @@ const ProtoFauxType = class {
150
150
  ProtoFauxType.style = protoFauxTypeCss;
151
151
 
152
152
  export { ProtoDaisyDB as proto_daisy_db, ProtoFauxKeys as proto_faux_keys, ProtoFauxStamp as proto_faux_stamp, ProtoFauxTrigger as proto_faux_trigger, ProtoFauxType as proto_faux_type };
153
-
154
- //# sourceMappingURL=proto-daisy-db_5.entry.js.map
@@ -1,2 +0,0 @@
1
-
2
- //# sourceMappingURL=index.esm.js.map
@@ -1,3 +1,2 @@
1
- const t="proto-daisy-db";let n;let e;let s=false;let o=false;const l=(t,n="")=>{{return()=>{}}};const c=(t,n)=>{{return()=>{}}};const i="{visibility:hidden}.hydrated{visibility:inherit}";const f={};const r=t=>t!=null;const u=t=>{t=typeof t;return t==="object"||t==="function"};function a(t){var n,e,s;return(s=(e=(n=t.head)===null||n===void 0?void 0:n.querySelector('meta[name="csp-nonce"]'))===null||e===void 0?void 0:e.getAttribute("content"))!==null&&s!==void 0?s:undefined}const d=(t,n,...e)=>{let s=null;let o=false;let l=false;const c=[];const i=n=>{for(let e=0;e<n.length;e++){s=n[e];if(Array.isArray(s)){i(s)}else if(s!=null&&typeof s!=="boolean"){if(o=typeof t!=="function"&&!u(s)){s=String(s)}if(o&&l){c[c.length-1].t+=s}else{c.push(o?h(null,s):s)}l=o}}};i(e);if(n){{const t=n.className||n.class;if(t){n.class=typeof t!=="object"?t:Object.keys(t).filter((n=>t[n])).join(" ")}}}const f=h(t,null);f.o=n;if(c.length>0){f.l=c}return f};const h=(t,n)=>{const e={i:0,u:t,t:n,h:null,l:null};{e.o=null}return e};const p={};const y=t=>t&&t.u===p;const $=(t,n)=>{if(t!=null&&!u(t)){if(n&1){return String(t)}return t}return t};const m=(t,n,e)=>{const s=rt.ce(n,e);t.dispatchEvent(s);return s};const b=new WeakMap;const w=(t,n,e)=>{let s=ct.get(t);if(at&&e){s=s||new CSSStyleSheet;if(typeof s==="string"){s=n}else{s.replaceSync(n)}}else{s=n}ct.set(t,s)};const S=(t,n,e,s)=>{var o;let l=v(n);const c=ct.get(l);t=t.nodeType===11?t:ft;if(c){if(typeof c==="string"){t=t.head||t;let n=b.get(t);let e;if(!n){b.set(t,n=new Set)}if(!n.has(l)){{{e=ft.createElement("style");e.innerHTML=c}const n=(o=rt.p)!==null&&o!==void 0?o:a(ft);if(n!=null){e.setAttribute("nonce",n)}t.insertBefore(e,t.querySelector("link"))}if(n){n.add(l)}}}else if(!t.adoptedStyleSheets.includes(c)){t.adoptedStyleSheets=[...t.adoptedStyleSheets,c]}}return l};const g=t=>{const n=t.$;const e=t.m;const s=n.i;const o=l("attachStyles",n.S);const c=S(e.shadowRoot?e.shadowRoot:e.getRootNode(),n);if(s&10){e["s-sc"]=c;e.classList.add(c+"-h")}o()};const v=(t,n)=>"sc-"+t.S;const j=(t,n,e,s,o,l)=>{if(e!==s){let c=et(t,n);let i=n.toLowerCase();if(n==="class"){const n=t.classList;const o=k(e);const l=k(s);n.remove(...o.filter((t=>t&&!l.includes(t))));n.add(...l.filter((t=>t&&!o.includes(t))))}else if(!c&&n[0]==="o"&&n[1]==="n"){if(n[2]==="-"){n=n.slice(3)}else if(et(it,i)){n=i.slice(2)}else{n=i[2]+n.slice(3)}if(e){rt.rel(t,n,e,false)}if(s){rt.ael(t,n,s,false)}}else{const i=u(s);if((c||i&&s!==null)&&!o){try{if(!t.tagName.includes("-")){const o=s==null?"":s;if(n==="list"){c=false}else if(e==null||t[n]!=o){t[n]=o}}else{t[n]=s}}catch(t){}}if(s==null||s===false){if(s!==false||t.getAttribute(n)===""){{t.removeAttribute(n)}}}else if((!c||l&4||o)&&!i){s=s===true?"":s;{t.setAttribute(n,s)}}}}};const M=/\s/;const k=t=>!t?[]:t.split(M);const C=(t,n,e,s)=>{const o=n.h.nodeType===11&&n.h.host?n.h.host:n.h;const l=t&&t.o||f;const c=n.o||f;{for(s in l){if(!(s in c)){j(o,s,l[s],undefined,e,n.i)}}}for(s in c){j(o,s,l[s],c[s],e,n.i)}};const O=(t,e,o,l)=>{const c=e.l[o];let i=0;let f;let u;if(c.t!==null){f=c.h=ft.createTextNode(c.t)}else{f=c.h=ft.createElement(c.u);{C(null,c,s)}if(r(n)&&f["s-si"]!==n){f.classList.add(f["s-si"]=n)}if(c.l){for(i=0;i<c.l.length;++i){u=O(t,c,i);if(u){f.appendChild(u)}}}}return f};const P=(t,n,s,o,l,c)=>{let i=t;let f;if(i.shadowRoot&&i.tagName===e){i=i.shadowRoot}for(;l<=c;++l){if(o[l]){f=O(null,s,l);if(f){o[l].h=f;i.insertBefore(f,n)}}}};const U=(t,n,e,s,o)=>{for(;n<=e;++n){if(s=t[n]){o=s.h;o.remove()}}};const x=(t,n,e,s)=>{let o=0;let l=0;let c=n.length-1;let i=n[0];let f=n[c];let r=s.length-1;let u=s[0];let a=s[r];let d;while(o<=c&&l<=r){if(i==null){i=n[++o]}else if(f==null){f=n[--c]}else if(u==null){u=s[++l]}else if(a==null){a=s[--r]}else if(E(i,u)){L(i,u);i=n[++o];u=s[++l]}else if(E(f,a)){L(f,a);f=n[--c];a=s[--r]}else if(E(i,a)){L(i,a);t.insertBefore(i.h,f.h.nextSibling);i=n[++o];a=s[--r]}else if(E(f,u)){L(f,u);t.insertBefore(f.h,i.h);f=n[--c];u=s[++l]}else{{d=O(n&&n[l],e,l);u=s[++l]}if(d){{i.h.parentNode.insertBefore(d,i.h)}}}}if(o>c){P(t,s[r+1]==null?null:s[r+1].h,e,s,l,r)}else if(l>r){U(n,o,c)}};const E=(t,n)=>{if(t.u===n.u){return true}return false};const L=(t,n)=>{const e=n.h=t.h;const o=t.l;const l=n.l;const c=n.t;if(c===null){{{C(t,n,s)}}if(o!==null&&l!==null){x(e,o,n,l)}else if(l!==null){if(t.t!==null){e.textContent=""}P(e,null,n,l,0,l.length-1)}else if(o!==null){U(o,0,o.length-1)}}else if(t.t!==c){e.data=c}};const N=(t,s)=>{const o=t.m;const l=t.g||h(null,null);const c=y(s)?s:d(null,null,s);e=o.tagName;c.u=null;c.i|=4;t.g=c;c.h=l.h=o.shadowRoot||o;{n=o["s-sc"]}L(l,c)};const T=(t,n)=>{if(n&&!t.v&&n["s-p"]){n["s-p"].push(new Promise((n=>t.v=n)))}};const A=(t,n)=>{{t.i|=16}if(t.i&4){t.i|=512;return}T(t,t.j);const e=()=>R(t,n);return bt(e)};const R=(t,n)=>{const e=l("scheduleUpdate",t.$.S);const s=t.M;let o;e();return I(o,(()=>W(t,s,n)))};const W=async(t,n,e)=>{const s=t.m;const o=l("update",t.$.S);const c=s["s-rc"];if(e){g(t)}const i=l("render",t.$.S);{q(t,n)}if(c){c.map((t=>t()));s["s-rc"]=undefined}i();o();{const n=s["s-p"];const e=()=>D(t);if(n.length===0){e()}else{Promise.all(n).then(e);t.i|=4;n.length=0}}};const q=(t,n,e)=>{try{n=n.render();{t.i&=~16}{t.i|=2}{{{N(t,n)}}}}catch(n){st(n,t.m)}return null};const D=t=>{const n=t.$.S;const e=t.m;const s=l("postUpdate",n);const o=t.M;const c=t.j;if(!(t.i&64)){t.i|=64;{V(e)}{H(o,"componentDidLoad")}s();{t.k(e);if(!c){F()}}}else{s()}{if(t.v){t.v();t.v=undefined}if(t.i&512){mt((()=>A(t,false)))}t.i&=~(4|512)}};const F=n=>{{V(ft.documentElement)}mt((()=>m(it,"appload",{detail:{namespace:t}})))};const H=(t,n,e)=>{if(t&&t[n]){try{return t[n](e)}catch(t){st(t)}}return undefined};const I=(t,n)=>t&&t.then?t.then(n):n();const V=t=>t.classList.add("hydrated");const _=(t,n)=>Z(t).C.get(n);const z=(t,n,e,s)=>{const o=Z(t);const l=o.C.get(n);const c=o.i;const i=o.M;e=$(e,s.O[n][0]);const f=Number.isNaN(l)&&Number.isNaN(e);const r=e!==l&&!f;if((!(c&8)||l===undefined)&&r){o.C.set(n,e);if(i){if((c&(2|16))===2){A(o,false)}}}};const B=(t,n,e)=>{if(n.O){const s=Object.entries(n.O);const o=t.prototype;s.map((([t,[s]])=>{if(s&31||e&2&&s&32){Object.defineProperty(o,t,{get(){return _(this,t)},set(e){z(this,t,e,n)},configurable:true,enumerable:true})}}));if(e&1){const n=new Map;o.attributeChangedCallback=function(t,e,s){rt.jmp((()=>{const e=n.get(t);if(this.hasOwnProperty(e)){s=this[e];delete this[e]}else if(o.hasOwnProperty(e)&&typeof this[e]==="number"&&this[e]==s){return}this[e]=s===null&&typeof this[e]==="boolean"?false:s}))};t.observedAttributes=s.filter((([t,n])=>n[0]&15)).map((([t,e])=>{const s=e[1]||t;n.set(s,t);return s}))}}return t};const G=async(t,n,e,s,o)=>{if((n.i&32)===0){{n.i|=32;o=lt(e);if(o.then){const t=c();o=await o;t()}if(!o.isProxied){B(o,e,2);o.isProxied=true}const t=l("createInstance",e.S);{n.i|=8}try{new o(n)}catch(t){st(t)}{n.i&=~8}t()}if(o.style){let t=o.style;const n=v(e);if(!ct.has(n)){const s=l("registerStyles",e.S);w(n,t,!!(e.i&1));s()}}}const i=n.j;const f=()=>A(n,true);if(i&&i["s-rc"]){i["s-rc"].push(f)}else{f()}};const J=t=>{if((rt.i&1)===0){const n=Z(t);const e=n.$;const s=l("connectedCallback",e.S);if(!(n.i&1)){n.i|=1;{let e=t;while(e=e.parentNode||e.host){if(e["s-p"]){T(n,n.j=e);break}}}if(e.O){Object.entries(e.O).map((([n,[e]])=>{if(e&31&&t.hasOwnProperty(n)){const e=t[n];delete t[n];t[n]=e}}))}{G(t,n,e)}}s()}};const K=t=>{if((rt.i&1)===0){Z(t)}};const Q=(t,n={})=>{var e;const s=l();const o=[];const c=n.exclude||[];const f=it.customElements;const r=ft.head;const u=r.querySelector("meta[charset]");const d=ft.createElement("style");const h=[];let p;let y=true;Object.assign(rt,n);rt.P=new URL(n.resourcesUrl||"./",ft.baseURI).href;t.map((t=>{t[1].map((n=>{const e={i:n[0],S:n[1],O:n[2],U:n[3]};{e.O=n[2]}const s=e.S;const l=class extends HTMLElement{constructor(t){super(t);t=this;nt(t,e);if(e.i&1){{{t.attachShadow({mode:"open"})}}}}connectedCallback(){if(p){clearTimeout(p);p=null}if(y){h.push(this)}else{rt.jmp((()=>J(this)))}}disconnectedCallback(){rt.jmp((()=>K(this)))}componentOnReady(){return Z(this).L}};e.N=t[0];if(!c.includes(s)&&!f.get(s)){o.push(s);f.define(s,B(l,e,1))}}))}));{d.innerHTML=o+i;d.setAttribute("data-styles","");const t=(e=rt.p)!==null&&e!==void 0?e:a(ft);if(t!=null){d.setAttribute("nonce",t)}r.insertBefore(d,u?u.nextSibling:r.firstChild)}y=false;if(h.length){h.map((t=>t.connectedCallback()))}else{{rt.jmp((()=>p=setTimeout(F,30)))}}s()};const X=t=>rt.p=t;const Y=new WeakMap;const Z=t=>Y.get(t);const tt=(t,n)=>Y.set(n.M=t,n);const nt=(t,n)=>{const e={i:0,m:t,$:n,C:new Map};{e.L=new Promise((t=>e.k=t));t["s-p"]=[];t["s-rc"]=[]}return Y.set(t,e)};const et=(t,n)=>n in t;const st=(t,n)=>(0,console.error)(t,n);const ot=new Map;const lt=(t,n,e)=>{const s=t.S.replace(/-/g,"_");const o=t.N;const l=ot.get(o);if(l){return l[s]}
2
- /*!__STENCIL_STATIC_IMPORT_SWITCH__*/return import(`./${o}.entry.js${""}`).then((t=>{{ot.set(o,t)}return t[s]}),st)};const ct=new Map;const it=typeof window!=="undefined"?window:{};const ft=it.document||{head:{}};const rt={i:0,P:"",jmp:t=>t(),raf:t=>requestAnimationFrame(t),ael:(t,n,e,s)=>t.addEventListener(n,e,s),rel:(t,n,e,s)=>t.removeEventListener(n,e,s),ce:(t,n)=>new CustomEvent(t,n)};const ut=t=>Promise.resolve(t);const at=(()=>{try{new CSSStyleSheet;return typeof(new CSSStyleSheet).replaceSync==="function"}catch(t){}return false})();const dt=[];const ht=[];const pt=(t,n)=>e=>{t.push(e);if(!o){o=true;if(n&&rt.i&4){mt($t)}else{rt.raf($t)}}};const yt=t=>{for(let n=0;n<t.length;n++){try{t[n](performance.now())}catch(t){st(t)}}t.length=0};const $t=()=>{yt(dt);{yt(ht);if(o=dt.length>0){rt.raf($t)}}};const mt=t=>ut().then(t);const bt=pt(ht,true);export{Q as b,d as h,ut as p,tt as r,X as s};
3
- //# sourceMappingURL=p-b74bc8ff.js.map
1
+ let n,t,e=!1;const l={},o=n=>"object"==(n=typeof n)||"function"===n;function s(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 i=(n,t,...e)=>{let l=null,s=!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&&((s="function"!=typeof n&&!o(l))&&(l+=""),s&&i?c[c.length-1].t+=l:c.push(s?r(null,l):l),i=s)};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,$:null,o:null,l:null}),c={},u=new WeakMap,a=n=>"sc-"+n.h,f=(n,t,e,l,s,i)=>{if(e!==l){let r=W(n,t),c=t.toLowerCase();if("class"===t){const t=n.classList,o=$(e),s=$(l);t.remove(...o.filter((n=>n&&!s.includes(n)))),t.add(...s.filter((n=>n&&!o.includes(n))))}else if(r||"o"!==t[0]||"n"!==t[1]){const c=o(l);if((r||c&&null!==l)&&!s)try{if(n.tagName.includes("-"))n[t]=l;else{const o=null==l?"":l;"list"===t?r=!1:null!=e&&n[t]==o||(n[t]=o)}}catch(n){}null==l||!1===l?!1===l&&""!==n.getAttribute(t)||n.removeAttribute(t):(!r||4&i||s)&&!c&&n.setAttribute(t,l=!0===l?"":l)}else t="-"===t[2]?t.slice(3):W(V,c)?c.slice(2):c[2]+t.slice(3),e&&z.rel(n,t,e,!1),l&&z.ael(n,t,l,!1)}},d=/\s/,$=n=>n?n.split(d):[],y=(n,t,e,o)=>{const s=11===t.$.nodeType&&t.$.host?t.$.host:t.$,i=n&&n.l||l,r=t.l||l;for(o in i)o in r||f(s,o,i[o],void 0,e,t.i);for(o in r)f(s,o,i[o],r[o],e,t.i)},h=(t,e,l)=>{const o=e.o[l];let s,i,r=0;if(null!==o.t)s=o.$=_.createTextNode(o.t);else if(s=o.$=_.createElement(o.u),y(null,o,!1),null!=n&&s["s-si"]!==n&&s.classList.add(s["s-si"]=n),o.o)for(r=0;r<o.o.length;++r)i=h(t,o,r),i&&s.appendChild(i);return s},p=(n,e,l,o,s,i)=>{let r,c=n;for(c.shadowRoot&&c.tagName===t&&(c=c.shadowRoot);s<=i;++s)o[s]&&(r=h(null,l,s),r&&(o[s].$=r,c.insertBefore(r,e)))},m=(n,t,e,l)=>{for(;t<=e;++t)(l=n[t])&&l.$.remove()},b=(n,t)=>n.u===t.u,w=(n,t)=>{const e=t.$=n.$,l=n.o,o=t.o,s=t.t;null===s?(y(n,t,!1),null!==l&&null!==o?((n,t,e,l)=>{let o,s=0,i=0,r=t.length-1,c=t[0],u=t[r],a=l.length-1,f=l[0],d=l[a];for(;s<=r&&i<=a;)null==c?c=t[++s]:null==u?u=t[--r]:null==f?f=l[++i]:null==d?d=l[--a]:b(c,f)?(w(c,f),c=t[++s],f=l[++i]):b(u,d)?(w(u,d),u=t[--r],d=l[--a]):b(c,d)?(w(c,d),n.insertBefore(c.$,u.$.nextSibling),c=t[++s],d=l[--a]):b(u,f)?(w(u,f),n.insertBefore(u.$,c.$),u=t[--r],f=l[++i]):(o=h(t&&t[i],e,i),f=l[++i],o&&c.$.parentNode.insertBefore(o,c.$));s>r?p(n,null==l[a+1]?null:l[a+1].$,e,l,i,a):i>a&&m(t,s,r)})(e,l,t,o):null!==o?(null!==n.t&&(e.textContent=""),p(e,null,t,o,0,o.length-1)):null!==l&&m(l,0,l.length-1)):n.t!==s&&(e.data=s)},v=(n,t)=>{t&&!n.p&&t["s-p"]&&t["s-p"].push(new Promise((t=>n.p=t)))},S=(n,t)=>{if(n.i|=16,!(4&n.i))return v(n,n.m),Z((()=>g(n,t)));n.i|=512},g=(n,t)=>{const e=n.v;return P(void 0,(()=>j(n,e,t)))},j=async(n,t,e)=>{const l=n.S,o=l["s-rc"];e&&(n=>{const t=n.g,e=n.S,l=t.i,o=((n,t)=>{var e;let l=a(t);const o=H.get(l);if(n=11===n.nodeType?n:_,o)if("string"==typeof o){let t,i=u.get(n=n.head||n);if(i||u.set(n,i=new Set),!i.has(l)){{t=_.createElement("style"),t.innerHTML=o;const l=null!==(e=z.j)&&void 0!==e?e:s(_);null!=l&&t.setAttribute("nonce",l),n.insertBefore(t,n.querySelector("link"))}i&&i.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);M(n,t),o&&(o.map((n=>n())),l["s-rc"]=void 0);{const t=l["s-p"],e=()=>k(n);0===t.length?e():(Promise.all(t).then(e),n.i|=4,t.length=0)}},M=(e,l)=>{try{l=l.render(),e.i&=-17,e.i|=2,((e,l)=>{const o=e.S,s=e.M||r(null,null),u=(n=>n&&n.u===c)(l)?l:i(null,null,l);t=o.tagName,u.u=null,u.i|=4,e.M=u,u.$=s.$=o.shadowRoot||o,n=o["s-sc"],w(s,u)})(e,l)}catch(n){q(n,e.S)}return null},k=n=>{const t=n.S,e=n.v,l=n.m;64&n.i||(n.i|=64,x(t),O(e,"componentDidLoad"),n.k(t),l||C()),n.p&&(n.p(),n.p=void 0),512&n.i&&Y((()=>S(n,!1))),n.i&=-517},C=()=>{x(_.documentElement),Y((()=>(n=>{const t=z.ce("appload",{detail:{namespace:"proto-daisy-db"}});return n.dispatchEvent(t),t})(V)))},O=(n,t,e)=>{if(n&&n[t])try{return n[t](e)}catch(n){q(n)}},P=(n,t)=>n&&n.then?n.then(t):t(),x=n=>n.classList.add("hydrated"),E=(n,t,e)=>{if(t.C){const l=Object.entries(t.C),s=n.prototype;if(l.map((([n,[l]])=>{(31&l||2&e&&32&l)&&Object.defineProperty(s,n,{get(){return((n,t)=>A(this).O.get(t))(0,n)},set(e){((n,t,e,l)=>{const s=A(n),i=s.O.get(t),r=s.i,c=s.v;e=((n,t)=>null==n||o(n)?n:1&t?n+"":n)(e,l.C[t][0]),8&r&&void 0!==i||e===i||Number.isNaN(i)&&Number.isNaN(e)||(s.O.set(t,e),c&&2==(18&r)&&S(s,!1))})(this,n,e,t)},configurable:!0,enumerable:!0})})),1&e){const t=new Map;s.attributeChangedCallback=function(n,e,l){z.jmp((()=>{const e=t.get(n);if(this.hasOwnProperty(e))l=this[e],delete this[e];else if(s.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},L=(n,t={})=>{var e;const l=[],o=t.exclude||[],i=V.customElements,r=_.head,c=r.querySelector("meta[charset]"),u=_.createElement("style"),f=[];let d,$=!0;Object.assign(z,t),z.P=new URL(t.resourcesUrl||"./",_.baseURI).href,n.map((n=>{n[1].map((t=>{const e={i:t[0],h:t[1],C:t[2],L:t[3]};e.C=t[2];const s=e.h,r=class extends HTMLElement{constructor(n){super(n),U(n=this,e),1&e.i&&n.attachShadow({mode:"open"})}connectedCallback(){d&&(clearTimeout(d),d=null),$?f.push(this):z.jmp((()=>(n=>{if(0==(1&z.i)){const t=A(n),e=t.g,l=()=>{};if(!(1&t.i)){t.i|=1;{let e=n;for(;e=e.parentNode||e.host;)if(e["s-p"]){v(t,t.m=e);break}}e.C&&Object.entries(e.C).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)){{if(t.i|=32,(o=F(e)).then){const n=()=>{};o=await o,n()}o.isProxied||(E(o,e,2),o.isProxied=!0);const n=()=>{};t.i|=8;try{new o(t)}catch(n){q(n)}t.i&=-9,n()}if(o.style){let n=o.style;const t=a(e);if(!H.has(t)){const l=()=>{};((n,t,e)=>{let l=H.get(n);G&&e?(l=l||new CSSStyleSheet,"string"==typeof l?l=t:l.replaceSync(t)):l=t,H.set(n,l)})(t,n,!!(1&e.i)),l()}}}const s=t.m,i=()=>S(t,!0);s&&s["s-rc"]?s["s-rc"].push(i):i()})(0,t,e)}l()}})(this)))}disconnectedCallback(){z.jmp((()=>{}))}componentOnReady(){return A(this).N}};e.T=n[0],o.includes(s)||i.get(s)||(l.push(s),i.define(s,E(r,e,1)))}))}));{u.innerHTML=l+"{visibility:hidden}.hydrated{visibility:inherit}",u.setAttribute("data-styles","");const n=null!==(e=z.j)&&void 0!==e?e:s(_);null!=n&&u.setAttribute("nonce",n),r.insertBefore(u,c?c.nextSibling:r.firstChild)}$=!1,f.length?f.map((n=>n.connectedCallback())):z.jmp((()=>d=setTimeout(C,30)))},N=n=>z.j=n,T=new WeakMap,A=n=>T.get(n),R=(n,t)=>T.set(t.v=n,t),U=(n,t)=>{const e={i:0,S:n,g:t,O:new Map};return e.N=new Promise((n=>e.k=n)),n["s-p"]=[],n["s-rc"]=[],T.set(n,e)},W=(n,t)=>t in n,q=(n,t)=>(0,console.error)(n,t),D=new Map,F=n=>{const t=n.h.replace(/-/g,"_"),e=n.T,l=D.get(e);return l?l[t]:import(`./${e}.entry.js`).then((n=>(D.set(e,n),n[t])),q)
2
+ /*!__STENCIL_STATIC_IMPORT_SWITCH__*/},H=new Map,V="undefined"!=typeof window?window:{},_=V.document||{head:{}},z={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)},B=n=>Promise.resolve(n),G=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync}catch(n){}return!1})(),I=[],J=[],K=(n,t)=>l=>{n.push(l),e||(e=!0,t&&4&z.i?Y(X):z.raf(X))},Q=n=>{for(let t=0;t<n.length;t++)try{n[t](performance.now())}catch(n){q(n)}n.length=0},X=()=>{Q(I),Q(J),(e=I.length>0)&&z.raf(X)},Y=n=>B().then(n),Z=K(J,!0);export{L as b,i as h,B as p,R as r,N as s}
@@ -0,0 +1 @@
1
+ import{r as t,h as o}from"./p-b74bc8ff.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-4{margin-top:1rem}.mt-2{margin-top:0.5rem}.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-navy{background-color:var(--clrs-navy, #001f3f)}.bg-clrs-blue{background-color:var(--clrs-blue, #0074d9)}.font-sans{font-family:ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,\n 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif,\n 'Apple Color Emoji', '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 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 @@
1
- import{p as t,b as e}from"./p-b74bc8ff.js";export{s as setNonce}from"./p-b74bc8ff.js";const o=()=>{const e=import.meta.url;const o={};if(e!==""){o.resourcesUrl=new URL(".",e).href}return t(o)};o().then((t=>e([["p-8e6edc44",[[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)));
2
- //# sourceMappingURL=proto-daisy-db.esm.js.map
1
+ import{p as t,b as e}from"./p-b74bc8ff.js";export{s as setNonce}from"./p-b74bc8ff.js";(()=>{const e=import.meta.url,o={};return""!==e&&(o.resourcesUrl=new URL(".",e).href),t(o)})().then((t=>e([["p-ee54e12c",[[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.105",
3
+ "version": "0.0.106",
4
4
  "description": "Stencil Component Starter",
5
5
  "main": "dist/index.cjs.js",
6
6
  "module": "dist/index.js",