proto-daisy-db 0.0.2
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/LICENSE +21 -0
- package/README.md +6 -0
- package/dist/cjs/index-69b24cc8.js +1141 -0
- package/dist/cjs/index.cjs.js +2 -0
- package/dist/cjs/loader.cjs.js +21 -0
- package/dist/cjs/proto-daisy-db.cjs.js +19 -0
- package/dist/cjs/proto-daisy-db_4.cjs.entry.js +137 -0
- package/dist/collection/collection-manifest.json +15 -0
- package/dist/collection/components/proto-daisy-db/proto-daisy-db.css +0 -0
- package/dist/collection/components/proto-daisy-db/proto-daisy-db.js +60 -0
- package/dist/collection/components/proto-faux-keys/proto-faux-keys.css +0 -0
- package/dist/collection/components/proto-faux-keys/proto-faux-keys.js +35 -0
- package/dist/collection/components/proto-faux-stamp/proto-faux-stamp.css +0 -0
- package/dist/collection/components/proto-faux-stamp/proto-faux-stamp.js +36 -0
- package/dist/collection/components/proto-faux-trigger/proto-faux-trigger.css +189 -0
- package/dist/collection/components/proto-faux-trigger/proto-faux-trigger.js +84 -0
- package/dist/collection/index.js +1 -0
- package/dist/collection/utils/bag.js +25 -0
- package/dist/collection/utils/index.js +2 -0
- package/dist/collection/utils/tw-version.js +4 -0
- package/dist/components/index.d.ts +25 -0
- package/dist/components/index.js +5 -0
- package/dist/components/proto-daisy-db.d.ts +11 -0
- package/dist/components/proto-daisy-db.js +82 -0
- package/dist/components/proto-faux-keys.d.ts +11 -0
- package/dist/components/proto-faux-keys.js +6 -0
- package/dist/components/proto-faux-keys2.js +33 -0
- package/dist/components/proto-faux-stamp.d.ts +11 -0
- package/dist/components/proto-faux-stamp.js +6 -0
- package/dist/components/proto-faux-stamp2.js +33 -0
- package/dist/components/proto-faux-trigger.d.ts +11 -0
- package/dist/components/proto-faux-trigger.js +75 -0
- package/dist/esm/index-1d7e6324.js +1116 -0
- package/dist/esm/index.js +1 -0
- package/dist/esm/loader.js +17 -0
- package/dist/esm/polyfills/core-js.js +11 -0
- package/dist/esm/polyfills/css-shim.js +1 -0
- package/dist/esm/polyfills/dom.js +79 -0
- package/dist/esm/polyfills/es5-html-element.js +1 -0
- package/dist/esm/polyfills/index.js +34 -0
- package/dist/esm/polyfills/system.js +6 -0
- package/dist/esm/proto-daisy-db.js +17 -0
- package/dist/esm/proto-daisy-db_4.entry.js +130 -0
- package/dist/index.cjs.js +1 -0
- package/dist/index.js +1 -0
- package/dist/proto-daisy-db/index.esm.js +0 -0
- package/dist/proto-daisy-db/p-05fdda3d.entry.js +1 -0
- package/dist/proto-daisy-db/p-39bf50a0.js +2 -0
- package/dist/proto-daisy-db/proto-daisy-db.esm.js +1 -0
- package/dist/types/components/proto-daisy-db/proto-daisy-db.d.ts +5 -0
- package/dist/types/components/proto-faux-keys/proto-faux-keys.d.ts +4 -0
- package/dist/types/components/proto-faux-stamp/proto-faux-stamp.d.ts +4 -0
- package/dist/types/components/proto-faux-trigger/proto-faux-trigger.d.ts +8 -0
- package/dist/types/components.d.ts +86 -0
- package/dist/types/index.d.ts +1 -0
- package/dist/types/stencil-public-runtime.d.ts +1565 -0
- package/dist/types/utils/bag.d.ts +6 -0
- package/dist/types/utils/index.d.ts +2 -0
- package/dist/types/utils/tw-version.d.ts +3 -0
- package/loader/cdn.js +3 -0
- package/loader/index.cjs.js +3 -0
- package/loader/index.d.ts +12 -0
- package/loader/index.es2017.js +3 -0
- package/loader/index.js +4 -0
- package/loader/package.json +10 -0
- package/package.json +50 -0
|
@@ -0,0 +1,130 @@
|
|
|
1
|
+
import { r as registerInstance, h } from './index-1d7e6324.js';
|
|
2
|
+
|
|
3
|
+
const KEY = 'proto-daisy-db:app-data';
|
|
4
|
+
const promisedParseJSON = (json) => {
|
|
5
|
+
return new Promise((resolve, reject) => {
|
|
6
|
+
try {
|
|
7
|
+
resolve(JSON.parse(json));
|
|
8
|
+
}
|
|
9
|
+
catch (e) {
|
|
10
|
+
reject(e);
|
|
11
|
+
}
|
|
12
|
+
});
|
|
13
|
+
};
|
|
14
|
+
// localStorage implementation... [ generic storage ]
|
|
15
|
+
const bag = {
|
|
16
|
+
get: () => {
|
|
17
|
+
const json = localStorage.getItem(KEY);
|
|
18
|
+
return promisedParseJSON(json);
|
|
19
|
+
},
|
|
20
|
+
store: (data) => {
|
|
21
|
+
// NOTE: this assumes you're passing REAL data, not a proxy...
|
|
22
|
+
const json = JSON.stringify(data);
|
|
23
|
+
localStorage.setItem(KEY, json);
|
|
24
|
+
},
|
|
25
|
+
};
|
|
26
|
+
|
|
27
|
+
const protoDaisyDbCss = "";
|
|
28
|
+
|
|
29
|
+
const ProtoDaisyDB = class {
|
|
30
|
+
constructor(hostRef) {
|
|
31
|
+
registerInstance(this, hostRef);
|
|
32
|
+
this.emitter = undefined;
|
|
33
|
+
}
|
|
34
|
+
componentDidLoad() {
|
|
35
|
+
if (this.emitter && window[this.emitter]) {
|
|
36
|
+
const emitter = window[this.emitter];
|
|
37
|
+
emitter.on('app-data:get', _e => {
|
|
38
|
+
console.log('app-data:get');
|
|
39
|
+
bag
|
|
40
|
+
.get()
|
|
41
|
+
.then(value => {
|
|
42
|
+
emitter.emit('app-data:value', value);
|
|
43
|
+
})
|
|
44
|
+
.catch(reason => {
|
|
45
|
+
console.log(reason);
|
|
46
|
+
});
|
|
47
|
+
});
|
|
48
|
+
emitter.on('app-data:store', e => {
|
|
49
|
+
console.log('app-data:store', e);
|
|
50
|
+
bag.store(e);
|
|
51
|
+
});
|
|
52
|
+
const data = { ready: true };
|
|
53
|
+
emitter.emit('proto-daisy-db', data);
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
render() {
|
|
57
|
+
return h("div", null);
|
|
58
|
+
}
|
|
59
|
+
};
|
|
60
|
+
ProtoDaisyDB.style = protoDaisyDbCss;
|
|
61
|
+
|
|
62
|
+
const protoFauxKeysCss = "";
|
|
63
|
+
|
|
64
|
+
const ProtoFauxKeys = class {
|
|
65
|
+
constructor(hostRef) {
|
|
66
|
+
registerInstance(this, hostRef);
|
|
67
|
+
this.data = undefined;
|
|
68
|
+
}
|
|
69
|
+
render() {
|
|
70
|
+
const keys = this.data ? Object.keys(this.data) : [];
|
|
71
|
+
return (h("div", { class: "flex flex-col" }, keys.map(key => (h("span", null, key)))));
|
|
72
|
+
}
|
|
73
|
+
};
|
|
74
|
+
ProtoFauxKeys.style = protoFauxKeysCss;
|
|
75
|
+
|
|
76
|
+
const protoFauxStampCss = "";
|
|
77
|
+
|
|
78
|
+
const ProtoFauxStamp = class {
|
|
79
|
+
constructor(hostRef) {
|
|
80
|
+
registerInstance(this, hostRef);
|
|
81
|
+
this.data = undefined;
|
|
82
|
+
}
|
|
83
|
+
render() {
|
|
84
|
+
const stamp = this.data ? this.data['stamp'] : '';
|
|
85
|
+
return (h("div", { class: "flex" }, h("span", null, stamp)));
|
|
86
|
+
}
|
|
87
|
+
};
|
|
88
|
+
ProtoFauxStamp.style = protoFauxStampCss;
|
|
89
|
+
|
|
90
|
+
const protoFauxTriggerCss = "*,::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;}::-webkit-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;}::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;}.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}.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}.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)}";
|
|
91
|
+
|
|
92
|
+
const ProtoFauxTrigger = class {
|
|
93
|
+
constructor(hostRef) {
|
|
94
|
+
registerInstance(this, hostRef);
|
|
95
|
+
this.emitter = undefined;
|
|
96
|
+
this.data = undefined;
|
|
97
|
+
}
|
|
98
|
+
componentDidLoad() {
|
|
99
|
+
if (this.emitter && window[this.emitter]) {
|
|
100
|
+
const emitter = window[this.emitter];
|
|
101
|
+
emitter.on('app-data:value', e => {
|
|
102
|
+
this.data = e;
|
|
103
|
+
});
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
emitData() {
|
|
107
|
+
if (this.emitter && window[this.emitter]) {
|
|
108
|
+
const emitter = window[this.emitter];
|
|
109
|
+
const login = true;
|
|
110
|
+
const stamp = Date.now();
|
|
111
|
+
const theme = 'dark';
|
|
112
|
+
const dealers = [];
|
|
113
|
+
const data = { login, stamp, theme, dealers };
|
|
114
|
+
this.data = undefined;
|
|
115
|
+
emitter.emit('app-data:store', data);
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
fetchData() {
|
|
119
|
+
if (this.emitter && window[this.emitter]) {
|
|
120
|
+
const emitter = window[this.emitter];
|
|
121
|
+
emitter.emit('app-data:get', 42);
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
render() {
|
|
125
|
+
return (h("div", { class: "flex flex-col font-sans" }, h("div", { class: "flex flex-row content-center gap-2" }, h("button", { onClick: () => this.emitData() }, "Save"), h("button", { onClick: () => this.fetchData() }, "Fetch")), h("proto-faux-stamp", { class: "mt-4 text-xs", data: this.data }), h("proto-faux-keys", { class: "mt-2", data: this.data })));
|
|
126
|
+
}
|
|
127
|
+
};
|
|
128
|
+
ProtoFauxTrigger.style = protoFauxTriggerCss;
|
|
129
|
+
|
|
130
|
+
export { ProtoDaisyDB as proto_daisy_db, ProtoFauxKeys as proto_faux_keys, ProtoFauxStamp as proto_faux_stamp, ProtoFauxTrigger as proto_faux_trigger };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
module.exports = require('./cjs/index.cjs.js');
|
package/dist/index.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './esm/index.js';
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as t,h as o}from"./p-39bf50a0.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 e=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))))}};e.style="";const r=class{constructor(o){t(this,o),this.data=void 0}render(){return o("div",{class:"flex"},o("span",null,this.data?this.data.stamp:""))}};r.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",{onClick:()=>this.emitData()},"Save"),o("button",{onClick:()=>this.fetchData()},"Fetch")),o("proto-faux-stamp",{class:"mt-4 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;}::-webkit-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;}::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;}.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}.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}.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)}";export{a as proto_daisy_db,e as proto_faux_keys,r as proto_faux_stamp,i as proto_faux_trigger}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
let e,t,n=!1;const l="undefined"!=typeof window?window:{},s=l.document||{head:{}},o={t:0,l:"",jmp:e=>e(),raf:e=>requestAnimationFrame(e),ael:(e,t,n,l)=>e.addEventListener(t,n,l),rel:(e,t,n,l)=>e.removeEventListener(t,n,l),ce:(e,t)=>new CustomEvent(e,t)},r=e=>Promise.resolve(e),i=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync}catch(e){}return!1})(),c=new WeakMap,u=e=>"sc-"+e.o,a={},f=e=>"object"==(e=typeof e)||"function"===e,$=(e,t,...n)=>{let l=null,s=!1,o=!1;const r=[],i=t=>{for(let n=0;n<t.length;n++)l=t[n],Array.isArray(l)?i(l):null!=l&&"boolean"!=typeof l&&((s="function"!=typeof e&&!f(l))&&(l+=""),s&&o?r[r.length-1].i+=l:r.push(s?d(null,l):l),o=s)};if(i(n),t){const e=t.className||t.class;e&&(t.class="object"!=typeof e?e:Object.keys(e).filter((t=>e[t])).join(" "))}const c=d(e,null);return c.u=t,r.length>0&&(c.$=r),c},d=(e,t)=>({t:0,h:e,i:t,p:null,$:null,u:null}),y={},h=(e,t,n,s,r,i)=>{if(n!==s){let c=F(e,t),u=t.toLowerCase();if("class"===t){const t=e.classList,l=m(n),o=m(s);t.remove(...l.filter((e=>e&&!o.includes(e)))),t.add(...o.filter((e=>e&&!l.includes(e))))}else if(c||"o"!==t[0]||"n"!==t[1]){const l=f(s);if((c||l&&null!==s)&&!r)try{if(e.tagName.includes("-"))e[t]=s;else{const l=null==s?"":s;"list"===t?c=!1:null!=n&&e[t]==l||(e[t]=l)}}catch(e){}null==s||!1===s?!1===s&&""!==e.getAttribute(t)||e.removeAttribute(t):(!c||4&i||r)&&!l&&e.setAttribute(t,s=!0===s?"":s)}else t="-"===t[2]?t.slice(3):F(l,u)?u.slice(2):u[2]+t.slice(3),n&&o.rel(e,t,n,!1),s&&o.ael(e,t,s,!1)}},p=/\s/,m=e=>e?e.split(p):[],b=(e,t,n,l)=>{const s=11===t.p.nodeType&&t.p.host?t.p.host:t.p,o=e&&e.u||a,r=t.u||a;for(l in o)l in r||h(s,l,o[l],void 0,n,t.t);for(l in r)h(s,l,o[l],r[l],n,t.t)},w=(t,n,l)=>{const o=n.$[l];let r,i,c=0;if(null!==o.i)r=o.p=s.createTextNode(o.i);else if(r=o.p=s.createElement(o.h),b(null,o,!1),null!=e&&r["s-si"]!==e&&r.classList.add(r["s-si"]=e),o.$)for(c=0;c<o.$.length;++c)i=w(t,o,c),i&&r.appendChild(i);return r},S=(e,n,l,s,o,r)=>{let i,c=e;for(c.shadowRoot&&c.tagName===t&&(c=c.shadowRoot);o<=r;++o)s[o]&&(i=w(null,l,o),i&&(s[o].p=i,c.insertBefore(i,n)))},g=(e,t,n,l)=>{for(;t<=n;++t)(l=e[t])&&l.p.remove()},j=(e,t)=>e.h===t.h,v=(e,t)=>{const n=t.p=e.p,l=e.$,s=t.$,o=t.i;null===o?(b(e,t,!1),null!==l&&null!==s?((e,t,n,l)=>{let s,o=0,r=0,i=t.length-1,c=t[0],u=t[i],a=l.length-1,f=l[0],$=l[a];for(;o<=i&&r<=a;)null==c?c=t[++o]:null==u?u=t[--i]:null==f?f=l[++r]:null==$?$=l[--a]:j(c,f)?(v(c,f),c=t[++o],f=l[++r]):j(u,$)?(v(u,$),u=t[--i],$=l[--a]):j(c,$)?(v(c,$),e.insertBefore(c.p,u.p.nextSibling),c=t[++o],$=l[--a]):j(u,f)?(v(u,f),e.insertBefore(u.p,c.p),u=t[--i],f=l[++r]):(s=w(t&&t[r],n,r),f=l[++r],s&&c.p.parentNode.insertBefore(s,c.p));o>i?S(e,null==l[a+1]?null:l[a+1].p,n,l,r,a):r>a&&g(t,o,i)})(n,l,t,s):null!==s?(null!==e.i&&(n.textContent=""),S(n,null,t,s,0,s.length-1)):null!==l&&g(l,0,l.length-1)):e.i!==o&&(n.data=o)},M=(e,t)=>{t&&!e.m&&t["s-p"]&&t["s-p"].push(new Promise((t=>e.m=t)))},k=(e,t)=>{if(e.t|=16,!(4&e.t))return M(e,e.S),X((()=>C(e,t)));e.t|=512},C=(e,t)=>{const n=e.g;return N(void 0,(()=>O(e,n,t)))},O=async(e,t,n)=>{const l=e.j,o=l["s-rc"];n&&(e=>{const t=e.v,n=e.j,l=t.t,o=((e,t)=>{let n=u(t);const l=z.get(n);if(e=11===e.nodeType?e:s,l)if("string"==typeof l){let t,o=c.get(e=e.head||e);o||c.set(e,o=new Set),o.has(n)||(t=s.createElement("style"),t.innerHTML=l,e.insertBefore(t,e.querySelector("link")),o&&o.add(n))}else e.adoptedStyleSheets.includes(l)||(e.adoptedStyleSheets=[...e.adoptedStyleSheets,l]);return n})(n.shadowRoot?n.shadowRoot:n.getRootNode(),t);10&l&&(n["s-sc"]=o,n.classList.add(o+"-h"))})(e);P(e,t),o&&(o.map((e=>e())),l["s-rc"]=void 0);{const t=l["s-p"],n=()=>x(e);0===t.length?n():(Promise.all(t).then(n),e.t|=4,t.length=0)}},P=(n,l)=>{try{l=l.render(),n.t&=-17,n.t|=2,((n,l)=>{const s=n.j,o=n.M||d(null,null),r=(e=>e&&e.h===y)(l)?l:$(null,null,l);t=s.tagName,r.h=null,r.t|=4,n.M=r,r.p=o.p=s.shadowRoot||s,e=s["s-sc"],v(o,r)})(n,l)}catch(e){H(e,n.j)}return null},x=e=>{const t=e.j,n=e.g,l=e.S;64&e.t||(e.t|=64,T(t),L(n,"componentDidLoad"),e.k(t),l||E()),e.m&&(e.m(),e.m=void 0),512&e.t&&Q((()=>k(e,!1))),e.t&=-517},E=()=>{T(s.documentElement),Q((()=>(e=>{const t=o.ce("appload",{detail:{namespace:"proto-daisy-db"}});return e.dispatchEvent(t),t})(l)))},L=(e,t,n)=>{if(e&&e[t])try{return e[t](n)}catch(e){H(e)}},N=(e,t)=>e&&e.then?e.then(t):t(),T=e=>e.classList.add("hydrated"),A=(e,t,n)=>{if(t.C){const l=Object.entries(t.C),s=e.prototype;if(l.map((([e,[l]])=>{(31&l||2&n&&32&l)&&Object.defineProperty(s,e,{get(){return((e,t)=>W(this).O.get(t))(0,e)},set(n){((e,t,n,l)=>{const s=W(e),o=s.O.get(t),r=s.t,i=s.g;n=((e,t)=>null==e||f(e)?e:1&t?e+"":e)(n,l.C[t][0]),8&r&&void 0!==o||n===o||Number.isNaN(o)&&Number.isNaN(n)||(s.O.set(t,n),i&&2==(18&r)&&k(s,!1))})(this,e,n,t)},configurable:!0,enumerable:!0})})),1&n){const t=new Map;s.attributeChangedCallback=function(e,n,l){o.jmp((()=>{const n=t.get(e);if(this.hasOwnProperty(n))l=this[n],delete this[n];else if(s.hasOwnProperty(n)&&"number"==typeof this[n]&&this[n]==l)return;this[n]=(null!==l||"boolean"!=typeof this[n])&&l}))},e.observedAttributes=l.filter((([e,t])=>15&t[0])).map((([e,n])=>{const l=n[1]||e;return t.set(l,e),l}))}}return e},R=(e,t={})=>{const n=[],r=t.exclude||[],c=l.customElements,a=s.head,f=a.querySelector("meta[charset]"),$=s.createElement("style"),d=[];let y,h=!0;Object.assign(o,t),o.l=new URL(t.resourcesUrl||"./",s.baseURI).href,e.map((e=>{e[1].map((t=>{const l={t:t[0],o:t[1],C:t[2],P:t[3]};l.C=t[2];const s=l.o,a=class extends HTMLElement{constructor(e){super(e),D(e=this,l),1&l.t&&e.attachShadow({mode:"open"})}connectedCallback(){y&&(clearTimeout(y),y=null),h?d.push(this):o.jmp((()=>(e=>{if(0==(1&o.t)){const t=W(e),n=t.v,l=()=>{};if(!(1&t.t)){t.t|=1;{let n=e;for(;n=n.parentNode||n.host;)if(n["s-p"]){M(t,t.S=n);break}}n.C&&Object.entries(n.C).map((([t,[n]])=>{if(31&n&&e.hasOwnProperty(t)){const n=e[t];delete e[t],e[t]=n}})),(async(e,t,n,l,s)=>{if(0==(32&t.t)){{if(t.t|=32,(s=_(n)).then){const e=()=>{};s=await s,e()}s.isProxied||(A(s,n,2),s.isProxied=!0);const e=()=>{};t.t|=8;try{new s(t)}catch(e){H(e)}t.t&=-9,e()}if(s.style){let e=s.style;const t=u(n);if(!z.has(t)){const l=()=>{};((e,t,n)=>{let l=z.get(e);i&&n?(l=l||new CSSStyleSheet,"string"==typeof l?l=t:l.replaceSync(t)):l=t,z.set(e,l)})(t,e,!!(1&n.t)),l()}}}const o=t.S,r=()=>k(t,!0);o&&o["s-rc"]?o["s-rc"].push(r):r()})(0,t,n)}l()}})(this)))}disconnectedCallback(){o.jmp((()=>{}))}componentOnReady(){return W(this).L}};l.N=e[0],r.includes(s)||c.get(s)||(n.push(s),c.define(s,A(a,l,1)))}))})),$.innerHTML=n+"{visibility:hidden}.hydrated{visibility:inherit}",$.setAttribute("data-styles",""),a.insertBefore($,f?f.nextSibling:a.firstChild),h=!1,d.length?d.map((e=>e.connectedCallback())):o.jmp((()=>y=setTimeout(E,30)))},U=new WeakMap,W=e=>U.get(e),q=(e,t)=>U.set(t.g=e,t),D=(e,t)=>{const n={t:0,j:e,v:t,O:new Map};return n.L=new Promise((e=>n.k=e)),e["s-p"]=[],e["s-rc"]=[],U.set(e,n)},F=(e,t)=>t in e,H=(e,t)=>(0,console.error)(e,t),V=new Map,_=e=>{const t=e.o.replace(/-/g,"_"),n=e.N,l=V.get(n);return l?l[t]:import(`./${n}.entry.js`).then((e=>(V.set(n,e),e[t])),H)
|
|
2
|
+
/*!__STENCIL_STATIC_IMPORT_SWITCH__*/},z=new Map,B=[],G=[],I=(e,t)=>l=>{e.push(l),n||(n=!0,t&&4&o.t?Q(K):o.raf(K))},J=e=>{for(let t=0;t<e.length;t++)try{e[t](performance.now())}catch(e){H(e)}e.length=0},K=()=>{J(B),J(G),(n=B.length>0)&&o.raf(K)},Q=e=>r().then(e),X=I(G,!0);export{R as b,$ as h,r as p,q as r}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{p as t,b as a}from"./p-39bf50a0.js";(()=>{const a=import.meta.url,r={};return""!==a&&(r.resourcesUrl=new URL(".",a).href),t(r)})().then((t=>a([["p-05fdda3d",[[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]}]]]],t)));
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/**
|
|
4
|
+
* This is an autogenerated file created by the Stencil compiler.
|
|
5
|
+
* It contains typing information for all components that exist in this project.
|
|
6
|
+
*/
|
|
7
|
+
import { HTMLStencilElement, JSXBase } from "./stencil-public-runtime";
|
|
8
|
+
export namespace Components {
|
|
9
|
+
interface ProtoDaisyDb {
|
|
10
|
+
"emitter": string;
|
|
11
|
+
}
|
|
12
|
+
interface ProtoFauxKeys {
|
|
13
|
+
"data": object;
|
|
14
|
+
}
|
|
15
|
+
interface ProtoFauxStamp {
|
|
16
|
+
"data": object;
|
|
17
|
+
}
|
|
18
|
+
interface ProtoFauxTrigger {
|
|
19
|
+
"data": object;
|
|
20
|
+
"emitter": string;
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
declare global {
|
|
24
|
+
interface HTMLProtoDaisyDbElement extends Components.ProtoDaisyDb, HTMLStencilElement {
|
|
25
|
+
}
|
|
26
|
+
var HTMLProtoDaisyDbElement: {
|
|
27
|
+
prototype: HTMLProtoDaisyDbElement;
|
|
28
|
+
new (): HTMLProtoDaisyDbElement;
|
|
29
|
+
};
|
|
30
|
+
interface HTMLProtoFauxKeysElement extends Components.ProtoFauxKeys, HTMLStencilElement {
|
|
31
|
+
}
|
|
32
|
+
var HTMLProtoFauxKeysElement: {
|
|
33
|
+
prototype: HTMLProtoFauxKeysElement;
|
|
34
|
+
new (): HTMLProtoFauxKeysElement;
|
|
35
|
+
};
|
|
36
|
+
interface HTMLProtoFauxStampElement extends Components.ProtoFauxStamp, HTMLStencilElement {
|
|
37
|
+
}
|
|
38
|
+
var HTMLProtoFauxStampElement: {
|
|
39
|
+
prototype: HTMLProtoFauxStampElement;
|
|
40
|
+
new (): HTMLProtoFauxStampElement;
|
|
41
|
+
};
|
|
42
|
+
interface HTMLProtoFauxTriggerElement extends Components.ProtoFauxTrigger, HTMLStencilElement {
|
|
43
|
+
}
|
|
44
|
+
var HTMLProtoFauxTriggerElement: {
|
|
45
|
+
prototype: HTMLProtoFauxTriggerElement;
|
|
46
|
+
new (): HTMLProtoFauxTriggerElement;
|
|
47
|
+
};
|
|
48
|
+
interface HTMLElementTagNameMap {
|
|
49
|
+
"proto-daisy-db": HTMLProtoDaisyDbElement;
|
|
50
|
+
"proto-faux-keys": HTMLProtoFauxKeysElement;
|
|
51
|
+
"proto-faux-stamp": HTMLProtoFauxStampElement;
|
|
52
|
+
"proto-faux-trigger": HTMLProtoFauxTriggerElement;
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
declare namespace LocalJSX {
|
|
56
|
+
interface ProtoDaisyDb {
|
|
57
|
+
"emitter"?: string;
|
|
58
|
+
}
|
|
59
|
+
interface ProtoFauxKeys {
|
|
60
|
+
"data"?: object;
|
|
61
|
+
}
|
|
62
|
+
interface ProtoFauxStamp {
|
|
63
|
+
"data"?: object;
|
|
64
|
+
}
|
|
65
|
+
interface ProtoFauxTrigger {
|
|
66
|
+
"data"?: object;
|
|
67
|
+
"emitter"?: string;
|
|
68
|
+
}
|
|
69
|
+
interface IntrinsicElements {
|
|
70
|
+
"proto-daisy-db": ProtoDaisyDb;
|
|
71
|
+
"proto-faux-keys": ProtoFauxKeys;
|
|
72
|
+
"proto-faux-stamp": ProtoFauxStamp;
|
|
73
|
+
"proto-faux-trigger": ProtoFauxTrigger;
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
export { LocalJSX as JSX };
|
|
77
|
+
declare module "@stencil/core" {
|
|
78
|
+
export namespace JSX {
|
|
79
|
+
interface IntrinsicElements {
|
|
80
|
+
"proto-daisy-db": LocalJSX.ProtoDaisyDb & JSXBase.HTMLAttributes<HTMLProtoDaisyDbElement>;
|
|
81
|
+
"proto-faux-keys": LocalJSX.ProtoFauxKeys & JSXBase.HTMLAttributes<HTMLProtoFauxKeysElement>;
|
|
82
|
+
"proto-faux-stamp": LocalJSX.ProtoFauxStamp & JSXBase.HTMLAttributes<HTMLProtoFauxStampElement>;
|
|
83
|
+
"proto-faux-trigger": LocalJSX.ProtoFauxTrigger & JSXBase.HTMLAttributes<HTMLProtoFauxTriggerElement>;
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Components, JSX } from './components';
|