proto-daisy-db 0.0.285 → 0.0.286
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-bd3bdcb9.js → index-8894701e.js} +4 -4
- 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-4a33c60d.js → index-2bec7cb0.js} +4 -4
- 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-2f78b134.js +2 -0
- package/dist/proto-daisy-db/{p-ca6651a0.entry.js → p-38193445.entry.js} +1 -1
- package/dist/proto-daisy-db/proto-daisy-db.esm.js +1 -1
- package/package.json +3 -3
- package/dist/proto-daisy-db/p-c740077b.js +0 -2
|
@@ -23,7 +23,7 @@ function _interopNamespace(e) {
|
|
|
23
23
|
const NAMESPACE = 'proto-daisy-db';
|
|
24
24
|
|
|
25
25
|
/*
|
|
26
|
-
Stencil Client Platform v4.17.
|
|
26
|
+
Stencil Client Platform v4.17.2 | MIT Licensed | https://stenciljs.com
|
|
27
27
|
*/
|
|
28
28
|
var __defProp = Object.defineProperty;
|
|
29
29
|
var __export = (target, all) => {
|
|
@@ -321,18 +321,18 @@ var CAPTURE_EVENT_SUFFIX = "Capture";
|
|
|
321
321
|
var CAPTURE_EVENT_REGEX = new RegExp(CAPTURE_EVENT_SUFFIX + "$");
|
|
322
322
|
|
|
323
323
|
// src/runtime/vdom/update-element.ts
|
|
324
|
-
var updateElement = (oldVnode, newVnode, isSvgMode2
|
|
324
|
+
var updateElement = (oldVnode, newVnode, isSvgMode2) => {
|
|
325
325
|
const elm = newVnode.$elm$.nodeType === 11 /* DocumentFragment */ && newVnode.$elm$.host ? newVnode.$elm$.host : newVnode.$elm$;
|
|
326
326
|
const oldVnodeAttrs = oldVnode && oldVnode.$attrs$ || EMPTY_OBJ;
|
|
327
327
|
const newVnodeAttrs = newVnode.$attrs$ || EMPTY_OBJ;
|
|
328
328
|
{
|
|
329
|
-
for (memberName of sortedAttrNames(Object.keys(oldVnodeAttrs))) {
|
|
329
|
+
for (const memberName of sortedAttrNames(Object.keys(oldVnodeAttrs))) {
|
|
330
330
|
if (!(memberName in newVnodeAttrs)) {
|
|
331
331
|
setAccessor(elm, memberName, oldVnodeAttrs[memberName], void 0, isSvgMode2, newVnode.$flags$);
|
|
332
332
|
}
|
|
333
333
|
}
|
|
334
334
|
}
|
|
335
|
-
for (memberName of sortedAttrNames(Object.keys(newVnodeAttrs))) {
|
|
335
|
+
for (const memberName of sortedAttrNames(Object.keys(newVnodeAttrs))) {
|
|
336
336
|
setAccessor(elm, memberName, oldVnodeAttrs[memberName], newVnodeAttrs[memberName], isSvgMode2, newVnode.$flags$);
|
|
337
337
|
}
|
|
338
338
|
};
|
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-8894701e.js');
|
|
6
6
|
const appGlobals = require('./app-globals-3a1e7e63.js');
|
|
7
7
|
|
|
8
8
|
const defineCustomElements = async (win, options) => {
|
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
5
|
+
const index = require('./index-8894701e.js');
|
|
6
6
|
const appGlobals = require('./app-globals-3a1e7e63.js');
|
|
7
7
|
|
|
8
8
|
/*
|
|
9
|
-
Stencil Client Patch Browser v4.17.
|
|
9
|
+
Stencil Client Patch Browser v4.17.2 | MIT Licensed | https://stenciljs.com
|
|
10
10
|
*/
|
|
11
11
|
var patchBrowser = () => {
|
|
12
12
|
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));
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
const NAMESPACE = 'proto-daisy-db';
|
|
2
2
|
|
|
3
3
|
/*
|
|
4
|
-
Stencil Client Platform v4.17.
|
|
4
|
+
Stencil Client Platform v4.17.2 | MIT Licensed | https://stenciljs.com
|
|
5
5
|
*/
|
|
6
6
|
var __defProp = Object.defineProperty;
|
|
7
7
|
var __export = (target, all) => {
|
|
@@ -299,18 +299,18 @@ var CAPTURE_EVENT_SUFFIX = "Capture";
|
|
|
299
299
|
var CAPTURE_EVENT_REGEX = new RegExp(CAPTURE_EVENT_SUFFIX + "$");
|
|
300
300
|
|
|
301
301
|
// src/runtime/vdom/update-element.ts
|
|
302
|
-
var updateElement = (oldVnode, newVnode, isSvgMode2
|
|
302
|
+
var updateElement = (oldVnode, newVnode, isSvgMode2) => {
|
|
303
303
|
const elm = newVnode.$elm$.nodeType === 11 /* DocumentFragment */ && newVnode.$elm$.host ? newVnode.$elm$.host : newVnode.$elm$;
|
|
304
304
|
const oldVnodeAttrs = oldVnode && oldVnode.$attrs$ || EMPTY_OBJ;
|
|
305
305
|
const newVnodeAttrs = newVnode.$attrs$ || EMPTY_OBJ;
|
|
306
306
|
{
|
|
307
|
-
for (memberName of sortedAttrNames(Object.keys(oldVnodeAttrs))) {
|
|
307
|
+
for (const memberName of sortedAttrNames(Object.keys(oldVnodeAttrs))) {
|
|
308
308
|
if (!(memberName in newVnodeAttrs)) {
|
|
309
309
|
setAccessor(elm, memberName, oldVnodeAttrs[memberName], void 0, isSvgMode2, newVnode.$flags$);
|
|
310
310
|
}
|
|
311
311
|
}
|
|
312
312
|
}
|
|
313
|
-
for (memberName of sortedAttrNames(Object.keys(newVnodeAttrs))) {
|
|
313
|
+
for (const memberName of sortedAttrNames(Object.keys(newVnodeAttrs))) {
|
|
314
314
|
setAccessor(elm, memberName, oldVnodeAttrs[memberName], newVnodeAttrs[memberName], isSvgMode2, newVnode.$flags$);
|
|
315
315
|
}
|
|
316
316
|
};
|
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-2bec7cb0.js';
|
|
2
|
+
export { s as setNonce } from './index-2bec7cb0.js';
|
|
3
3
|
import { g as globalScripts } from './app-globals-0f993ce5.js';
|
|
4
4
|
|
|
5
5
|
const defineCustomElements = async (win, options) => {
|
|
@@ -1,9 +1,9 @@
|
|
|
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-2bec7cb0.js';
|
|
2
|
+
export { s as setNonce } from './index-2bec7cb0.js';
|
|
3
3
|
import { g as globalScripts } from './app-globals-0f993ce5.js';
|
|
4
4
|
|
|
5
5
|
/*
|
|
6
|
-
Stencil Client Patch Browser v4.17.
|
|
6
|
+
Stencil Client Patch Browser v4.17.2 | MIT Licensed | https://stenciljs.com
|
|
7
7
|
*/
|
|
8
8
|
var patchBrowser = () => {
|
|
9
9
|
const importMeta = import.meta.url;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
var e=Object.defineProperty,n={},t=e=>"object"==(e=typeof e)||"function"===e;function l(e){var n,t,l;return null!=(l=null==(t=null==(n=e.head)?void 0:n.querySelector('meta[name="csp-nonce"]'))?void 0:t.getAttribute("content"))?l:void 0}((n,t)=>{for(var l in t)e(n,l,{get:t[l],enumerable:!0})})({},{err:()=>s,map:()=>r,ok:()=>o,unwrap:()=>u,unwrapErr:()=>f});var o=e=>({isOk:!0,isErr:!1,value:e}),s=e=>({isOk:!1,isErr:!0,value:e});function r(e,n){if(e.isOk){const t=n(e.value);return t instanceof Promise?t.then((e=>o(e))):o(t)}if(e.isErr)return s(e.value);throw"should never get here"}var i,c,u=e=>{if(e.isOk)return e.value;throw e.value},f=e=>{if(e.isErr)return e.value;throw e.value},a="slot-fb{display:contents}slot-fb[hidden]{display:none}",d=(e,n,...l)=>{let o=null,s=null,r=!1,i=!1;const c=[],u=n=>{for(let l=0;l<n.length;l++)o=n[l],Array.isArray(o)?u(o):null!=o&&"boolean"!=typeof o&&((r="function"!=typeof e&&!t(o))&&(o+=""),r&&i?c[c.length-1].t+=o:c.push(r?y(null,o):o),i=r)};if(u(l),n){n.key&&(s=n.key);{const e=n.className||n.class;e&&(n.class="object"!=typeof e?e:Object.keys(e).filter((n=>e[n])).join(" "))}}const f=y(e,null);return f.l=n,c.length>0&&(f.o=c),f.i=s,f},y=(e,n)=>({u:0,h:e,t:n,p:null,o:null,l:null,i:null}),h={},p=new WeakMap,m=e=>"sc-"+e.m,$=(e,n,l,o,s,r)=>{if(l!==o){let i=J(e,n),c=n.toLowerCase();if("class"===n){const n=e.classList,t=b(l),s=b(o);n.remove(...t.filter((e=>e&&!s.includes(e)))),n.add(...s.filter((e=>e&&!t.includes(e))))}else if("key"===n);else if(i||"o"!==n[0]||"n"!==n[1]){const c=t(o);if((i||c&&null!==o)&&!s)try{if(e.tagName.includes("-"))e[n]=o;else{const t=null==o?"":o;"list"===n?i=!1:null!=l&&e[n]==t||(e[n]=t)}}catch(e){}null==o||!1===o?!1===o&&""!==e.getAttribute(n)||e.removeAttribute(n):(!i||4&r||s)&&!c&&e.setAttribute(n,o=!0===o?"":o)}else if(n="-"===n[2]?n.slice(3):J(Z,c)?c.slice(2):c[2]+n.slice(3),l||o){const t=n.endsWith(w);n=n.replace(g,""),l&&ne.rel(e,n,l,t),o&&ne.ael(e,n,o,t)}}},v=/\s/,b=e=>e?e.split(v):[],w="Capture",g=RegExp(w+"$"),j=(e,t,l)=>{const o=11===t.p.nodeType&&t.p.host?t.p.host:t.p,s=e&&e.l||n,r=t.l||n;for(const e of S(Object.keys(s)))e in r||$(o,e,s[e],void 0,l,t.u);for(const e of S(Object.keys(r)))$(o,e,s[e],r[e],l,t.u)};function S(e){return e.includes("ref")?[...e.filter((e=>"ref"!==e)),"ref"]:e}var k=!1,O=(e,n,t)=>{const l=n.o[t];let o,s,r=0;if(null!==l.t)o=l.p=ee.createTextNode(l.t);else if(o=l.p=ee.createElement(l.h),j(null,l,k),null!=i&&o["s-si"]!==i&&o.classList.add(o["s-si"]=i),l.o)for(r=0;r<l.o.length;++r)s=O(e,l,r),s&&o.appendChild(s);return o["s-hn"]=c,o},E=(e,n,t,l,o,s)=>{let r,i=e;for(i.shadowRoot&&i.tagName===c&&(i=i.shadowRoot);o<=s;++o)l[o]&&(r=O(null,t,o),r&&(l[o].p=r,i.insertBefore(r,n)))},M=(e,n,t)=>{for(let l=n;l<=t;++l){const n=e[l];if(n){const e=n.p;e&&e.remove()}}},C=(e,n,t=!1)=>e.h===n.h&&(!!t||e.i===n.i),P=(e,n,t=!1)=>{const l=n.p=e.p,o=e.o,s=n.o,r=n.t;null===r?(j(e,n,k),null!==o&&null!==s?((e,n,t,l,o=!1)=>{let s,r,i=0,c=0,u=0,f=0,a=n.length-1,d=n[0],y=n[a],h=l.length-1,p=l[0],m=l[h];for(;i<=a&&c<=h;)if(null==d)d=n[++i];else if(null==y)y=n[--a];else if(null==p)p=l[++c];else if(null==m)m=l[--h];else if(C(d,p,o))P(d,p,o),d=n[++i],p=l[++c];else if(C(y,m,o))P(y,m,o),y=n[--a],m=l[--h];else if(C(d,m,o))P(d,m,o),e.insertBefore(d.p,y.p.nextSibling),d=n[++i],m=l[--h];else if(C(y,p,o))P(y,p,o),e.insertBefore(y.p,d.p),y=n[--a],p=l[++c];else{for(u=-1,f=i;f<=a;++f)if(n[f]&&null!==n[f].i&&n[f].i===p.i){u=f;break}u>=0?(r=n[u],r.h!==p.h?s=O(n&&n[c],t,u):(P(r,p,o),n[u]=void 0,s=r.p),p=l[++c]):(s=O(n&&n[c],t,c),p=l[++c]),s&&d.p.parentNode.insertBefore(s,d.p)}i>a?E(e,null==l[h+1]?null:l[h+1].p,t,l,c,h):c>h&&M(n,i,a)})(l,o,n,s,t):null!==s?(null!==e.t&&(l.textContent=""),E(l,null,n,s,0,s.length-1)):null!==o&&M(o,0,o.length-1)):e.t!==r&&(l.data=r)},x=(e,n)=>{n&&!e.$&&n["s-p"]&&n["s-p"].push(new Promise((n=>e.$=n)))},A=(e,n)=>{if(e.u|=16,!(4&e.u))return x(e,e.v),ae((()=>L(e,n)));e.u|=512},L=(e,n)=>{const t=e.j;return N(void 0,(()=>T(e,t,n)))},N=(e,n)=>R(e)?e.then(n):n(),R=e=>e instanceof Promise||e&&e.then&&"function"==typeof e.then,T=async(e,n,t)=>{var o;const s=e.$hostElement$,r=s["s-rc"];t&&(e=>{const n=e.S,t=e.$hostElement$,o=n.u,s=((e,n)=>{var t;const o=m(n),s=Y.get(o);if(e=11===e.nodeType?e:ee,s)if("string"==typeof s){let r,i=p.get(e=e.head||e);if(i||p.set(e,i=new Set),!i.has(o)){{r=ee.createElement("style"),r.innerHTML=s;const n=null!=(t=ne.k)?t:l(ee);null!=n&&r.setAttribute("nonce",n),e.insertBefore(r,e.querySelector("link"))}4&n.u&&(r.innerHTML+=a),i&&i.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);U(e,n,s,t),r&&(r.map((e=>e())),s["s-rc"]=void 0);{const n=null!=(o=s["s-p"])?o:[],t=()=>W(e);0===n.length?t():(Promise.all(n).then(t),e.u|=4,n.length=0)}},U=(e,n,t,l)=>{try{n=n.render(),e.u&=-17,e.u|=2,((e,n,t=!1)=>{const l=e.$hostElement$,o=e.O||y(null,null),s=(e=>e&&e.h===h)(n)?n:d(null,null,n);if(c=l.tagName,t&&s.l)for(const e of Object.keys(s.l))l.hasAttribute(e)&&!["key","ref","style","class"].includes(e)&&(s.l[e]=l[e]);s.h=null,s.u|=4,e.O=s,s.p=o.p=l.shadowRoot||l,i=l["s-sc"],P(o,s,t)})(e,n,l)}catch(n){K(n,e.$hostElement$)}return null},W=e=>{const n=e.$hostElement$,t=e.j,l=e.v;64&e.u||(e.u|=64,F(n),D(t,"componentDidLoad"),e.M(n),l||q()),e.$&&(e.$(),e.$=void 0),512&e.u&&fe((()=>A(e,!1))),e.u&=-517},q=()=>{F(ee.documentElement),fe((()=>(e=>{const n=ne.ce("appload",{detail:{namespace:"proto-daisy-db"}});return e.dispatchEvent(n),n})(Z)))},D=(e,n,t)=>{if(e&&e[n])try{return e[n](t)}catch(e){K(e)}},F=e=>e.classList.add("hydrated"),H=(e,n,l)=>{var o;const s=e.prototype;if(n.C){const r=Object.entries(n.C);if(r.map((([e,[o]])=>{(31&o||2&l&&32&o)&&Object.defineProperty(s,e,{get(){return((e,n)=>B(this).P.get(n))(0,e)},set(l){((e,n,l,o)=>{const s=B(e),r=s.P.get(n),i=s.u,c=s.j;l=((e,n)=>null==e||t(e)?e:1&n?e+"":e)(l,o.C[n][0]),8&i&&void 0!==r||l===r||Number.isNaN(r)&&Number.isNaN(l)||(s.P.set(n,l),c&&2==(18&i)&&A(s,!1))})(this,e,l,n)},configurable:!0,enumerable:!0})})),1&l){const t=new Map;s.attributeChangedCallback=function(e,l,o){ne.jmp((()=>{var r;const i=t.get(e);if(this.hasOwnProperty(i))o=this[i],delete this[i];else{if(s.hasOwnProperty(i)&&"number"==typeof this[i]&&this[i]==o)return;if(null==i){const t=B(this),s=null==t?void 0:t.u;if(s&&!(8&s)&&128&s&&o!==l){const s=t.j,i=null==(r=n.A)?void 0:r[e];null==i||i.forEach((n=>{null!=s[n]&&s[n].call(s,o,l,e)}))}return}}this[i]=(null!==o||"boolean"!=typeof this[i])&&o}))},e.observedAttributes=Array.from(new Set([...Object.keys(null!=(o=n.A)?o:{}),...r.filter((([e,n])=>15&n[0])).map((([e,n])=>{const l=n[1]||e;return t.set(l,e),l}))]))}}return e},V=(e,n={})=>{var t;const o=[],s=n.exclude||[],r=Z.customElements,i=ee.head,c=i.querySelector("meta[charset]"),u=ee.createElement("style"),f=[];let d,y=!0;Object.assign(ne,n),ne.L=new URL(n.resourcesUrl||"./",ee.baseURI).href;let h=!1;if(e.map((e=>{e[1].map((n=>{const t={u:n[0],m:n[1],C:n[2],N:n[3]};4&t.u&&(h=!0),t.C=n[2];const l=t.m,i=class extends HTMLElement{constructor(e){super(e),I(e=this,t),1&t.u&&e.attachShadow({mode:"open"})}connectedCallback(){d&&(clearTimeout(d),d=null),y?f.push(this):ne.jmp((()=>(e=>{if(!(1&ne.u)){const n=B(e),t=n.S,l=()=>{};if(1&n.u)(null==n?void 0:n.j)||(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"]){x(n,n.v=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(!(32&n.u)){if(n.u|=32,t.T){if(l=X(t),l.then){const e=()=>{};l=await l,e()}l.isProxied||(H(l,t,2),l.isProxied=!0);const e=()=>{};n.u|=8;try{new l(n)}catch(e){K(e)}n.u&=-9,e()}else l=e.constructor,customElements.whenDefined(t.m).then((()=>n.u|=128));if(l.style){let e=l.style;const n=m(t);if(!Y.has(n)){const l=()=>{};((e,n,t)=>{let l=Y.get(e);le&&t?(l=l||new CSSStyleSheet,"string"==typeof l?l=n:l.replaceSync(n)):l=n,Y.set(e,l)})(n,e,!!(1&t.u)),l()}}}const o=n.v,s=()=>A(n,!0);o&&o["s-rc"]?o["s-rc"].push(s):s()})(e,n,t)}l()}})(this)))}disconnectedCallback(){ne.jmp((()=>(async()=>{if(!(1&ne.u)){const e=B(this);(null==e?void 0:e.j)||(null==e?void 0:e.R)&&e.R.then((()=>{}))}})()))}componentOnReady(){return B(this).R}};t.T=e[0],s.includes(l)||r.get(l)||(o.push(l),r.define(l,H(i,t,1)))}))})),o.length>0&&(h&&(u.textContent+=a),u.textContent+=o+"{visibility:hidden}.hydrated{visibility:inherit}",u.innerHTML.length)){u.setAttribute("data-styles","");const e=null!=(t=ne.k)?t:l(ee);null!=e&&u.setAttribute("nonce",e),i.insertBefore(u,c?c.nextSibling:i.firstChild)}y=!1,f.length?f.map((e=>e.connectedCallback())):ne.jmp((()=>d=setTimeout(q,30)))},_=e=>ne.k=e,z=new WeakMap,B=e=>z.get(e),G=(e,n)=>z.set(n.j=e,n),I=(e,n)=>{const t={u:0,$hostElement$:e,S:n,P:new Map};return t.R=new Promise((e=>t.M=e)),e["s-p"]=[],e["s-rc"]=[],z.set(e,t)},J=(e,n)=>n in e,K=(e,n)=>(0,console.error)(e,n),Q=new Map,X=e=>{const n=e.m.replace(/-/g,"_"),t=e.T,l=Q.get(t);return l?l[n]:import(`./${t}.entry.js`).then((e=>(Q.set(t,e),e[n])),K)
|
|
2
|
+
/*!__STENCIL_STATIC_IMPORT_SWITCH__*/},Y=new Map,Z="undefined"!=typeof window?window:{},ee=Z.document||{head:{}},ne={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)},te=e=>Promise.resolve(e),le=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync}catch(e){}return!1})(),oe=!1,se=[],re=[],ie=(e,n)=>t=>{e.push(t),oe||(oe=!0,n&&4&ne.u?fe(ue):ne.raf(ue))},ce=e=>{for(let n=0;n<e.length;n++)try{e[n](performance.now())}catch(e){K(e)}e.length=0},ue=()=>{ce(se),ce(re),(oe=se.length>0)&&ne.raf(ue)},fe=e=>te().then(e),ae=ie(re,!0);export{V as b,d as h,te as p,G as r,_ as s}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as t,h as a}from"./p-
|
|
1
|
+
import{r as t,h as a}from"./p-2f78b134.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
|
|
1
|
+
import{p as t,b as e}from"./p-2f78b134.js";export{s as setNonce}from"./p-2f78b134.js";import{g as a}from"./p-e1255160.js";(()=>{const e=import.meta.url,a={};return""!==e&&(a.resourcesUrl=new URL(".",e).href),t(a)})().then((async t=>(await a(),e([["p-38193445",[[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.286",
|
|
4
4
|
"description": "Stencil Component Starter",
|
|
5
5
|
"main": "dist/index.cjs.js",
|
|
6
6
|
"module": "dist/index.js",
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
"format": "prettier --write src"
|
|
28
28
|
},
|
|
29
29
|
"dependencies": {
|
|
30
|
-
"@stencil/core": "4.17.
|
|
30
|
+
"@stencil/core": "4.17.2",
|
|
31
31
|
"mitt": "3.0.1"
|
|
32
32
|
},
|
|
33
33
|
"devDependencies": {
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
"postcss": "8.4.38",
|
|
38
38
|
"prettier": "3.2.5",
|
|
39
39
|
"prettier-plugin-tailwindcss": "0.5.14",
|
|
40
|
-
"proto-tailwindcss-clrs": "0.0.
|
|
40
|
+
"proto-tailwindcss-clrs": "0.0.331",
|
|
41
41
|
"tailwindcss": "3.4.3"
|
|
42
42
|
},
|
|
43
43
|
"license": "MIT"
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
var e=Object.defineProperty,n={},t=e=>"object"==(e=typeof e)||"function"===e;function l(e){var n,t,l;return null!=(l=null==(t=null==(n=e.head)?void 0:n.querySelector('meta[name="csp-nonce"]'))?void 0:t.getAttribute("content"))?l:void 0}((n,t)=>{for(var l in t)e(n,l,{get:t[l],enumerable:!0})})({},{err:()=>s,map:()=>r,ok:()=>o,unwrap:()=>u,unwrapErr:()=>f});var o=e=>({isOk:!0,isErr:!1,value:e}),s=e=>({isOk:!1,isErr:!0,value:e});function r(e,n){if(e.isOk){const t=n(e.value);return t instanceof Promise?t.then((e=>o(e))):o(t)}if(e.isErr)return s(e.value);throw"should never get here"}var i,c,u=e=>{if(e.isOk)return e.value;throw e.value},f=e=>{if(e.isErr)return e.value;throw e.value},a="slot-fb{display:contents}slot-fb[hidden]{display:none}",d=(e,n,...l)=>{let o=null,s=null,r=!1,i=!1;const c=[],u=n=>{for(let l=0;l<n.length;l++)o=n[l],Array.isArray(o)?u(o):null!=o&&"boolean"!=typeof o&&((r="function"!=typeof e&&!t(o))&&(o+=""),r&&i?c[c.length-1].t+=o:c.push(r?y(null,o):o),i=r)};if(u(l),n){n.key&&(s=n.key);{const e=n.className||n.class;e&&(n.class="object"!=typeof e?e:Object.keys(e).filter((n=>e[n])).join(" "))}}const f=y(e,null);return f.l=n,c.length>0&&(f.o=c),f.i=s,f},y=(e,n)=>({u:0,h:e,t:n,p:null,o:null,l:null,i:null}),h={},p=new WeakMap,m=e=>"sc-"+e.m,$=(e,n,l,o,s,r)=>{if(l!==o){let i=J(e,n),c=n.toLowerCase();if("class"===n){const n=e.classList,t=b(l),s=b(o);n.remove(...t.filter((e=>e&&!s.includes(e)))),n.add(...s.filter((e=>e&&!t.includes(e))))}else if("key"===n);else if(i||"o"!==n[0]||"n"!==n[1]){const c=t(o);if((i||c&&null!==o)&&!s)try{if(e.tagName.includes("-"))e[n]=o;else{const t=null==o?"":o;"list"===n?i=!1:null!=l&&e[n]==t||(e[n]=t)}}catch(e){}null==o||!1===o?!1===o&&""!==e.getAttribute(n)||e.removeAttribute(n):(!i||4&r||s)&&!c&&e.setAttribute(n,o=!0===o?"":o)}else if(n="-"===n[2]?n.slice(3):J(Z,c)?c.slice(2):c[2]+n.slice(3),l||o){const t=n.endsWith(w);n=n.replace(g,""),l&&ne.rel(e,n,l,t),o&&ne.ael(e,n,o,t)}}},v=/\s/,b=e=>e?e.split(v):[],w="Capture",g=RegExp(w+"$"),j=(e,t,l,o)=>{const s=11===t.p.nodeType&&t.p.host?t.p.host:t.p,r=e&&e.l||n,i=t.l||n;for(o of S(Object.keys(r)))o in i||$(s,o,r[o],void 0,l,t.u);for(o of S(Object.keys(i)))$(s,o,r[o],i[o],l,t.u)};function S(e){return e.includes("ref")?[...e.filter((e=>"ref"!==e)),"ref"]:e}var k=!1,O=(e,n,t)=>{const l=n.o[t];let o,s,r=0;if(null!==l.t)o=l.p=ee.createTextNode(l.t);else if(o=l.p=ee.createElement(l.h),j(null,l,k),null!=i&&o["s-si"]!==i&&o.classList.add(o["s-si"]=i),l.o)for(r=0;r<l.o.length;++r)s=O(e,l,r),s&&o.appendChild(s);return o["s-hn"]=c,o},E=(e,n,t,l,o,s)=>{let r,i=e;for(i.shadowRoot&&i.tagName===c&&(i=i.shadowRoot);o<=s;++o)l[o]&&(r=O(null,t,o),r&&(l[o].p=r,i.insertBefore(r,n)))},M=(e,n,t)=>{for(let l=n;l<=t;++l){const n=e[l];if(n){const e=n.p;e&&e.remove()}}},C=(e,n,t=!1)=>e.h===n.h&&(!!t||e.i===n.i),P=(e,n,t=!1)=>{const l=n.p=e.p,o=e.o,s=n.o,r=n.t;null===r?(j(e,n,k),null!==o&&null!==s?((e,n,t,l,o=!1)=>{let s,r,i=0,c=0,u=0,f=0,a=n.length-1,d=n[0],y=n[a],h=l.length-1,p=l[0],m=l[h];for(;i<=a&&c<=h;)if(null==d)d=n[++i];else if(null==y)y=n[--a];else if(null==p)p=l[++c];else if(null==m)m=l[--h];else if(C(d,p,o))P(d,p,o),d=n[++i],p=l[++c];else if(C(y,m,o))P(y,m,o),y=n[--a],m=l[--h];else if(C(d,m,o))P(d,m,o),e.insertBefore(d.p,y.p.nextSibling),d=n[++i],m=l[--h];else if(C(y,p,o))P(y,p,o),e.insertBefore(y.p,d.p),y=n[--a],p=l[++c];else{for(u=-1,f=i;f<=a;++f)if(n[f]&&null!==n[f].i&&n[f].i===p.i){u=f;break}u>=0?(r=n[u],r.h!==p.h?s=O(n&&n[c],t,u):(P(r,p,o),n[u]=void 0,s=r.p),p=l[++c]):(s=O(n&&n[c],t,c),p=l[++c]),s&&d.p.parentNode.insertBefore(s,d.p)}i>a?E(e,null==l[h+1]?null:l[h+1].p,t,l,c,h):c>h&&M(n,i,a)})(l,o,n,s,t):null!==s?(null!==e.t&&(l.textContent=""),E(l,null,n,s,0,s.length-1)):null!==o&&M(o,0,o.length-1)):e.t!==r&&(l.data=r)},x=(e,n)=>{n&&!e.$&&n["s-p"]&&n["s-p"].push(new Promise((n=>e.$=n)))},A=(e,n)=>{if(e.u|=16,!(4&e.u))return x(e,e.v),ae((()=>L(e,n)));e.u|=512},L=(e,n)=>{const t=e.j;return N(void 0,(()=>T(e,t,n)))},N=(e,n)=>R(e)?e.then(n):n(),R=e=>e instanceof Promise||e&&e.then&&"function"==typeof e.then,T=async(e,n,t)=>{var o;const s=e.$hostElement$,r=s["s-rc"];t&&(e=>{const n=e.S,t=e.$hostElement$,o=n.u,s=((e,n)=>{var t;const o=m(n),s=Y.get(o);if(e=11===e.nodeType?e:ee,s)if("string"==typeof s){let r,i=p.get(e=e.head||e);if(i||p.set(e,i=new Set),!i.has(o)){{r=ee.createElement("style"),r.innerHTML=s;const n=null!=(t=ne.k)?t:l(ee);null!=n&&r.setAttribute("nonce",n),e.insertBefore(r,e.querySelector("link"))}4&n.u&&(r.innerHTML+=a),i&&i.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);U(e,n,s,t),r&&(r.map((e=>e())),s["s-rc"]=void 0);{const n=null!=(o=s["s-p"])?o:[],t=()=>W(e);0===n.length?t():(Promise.all(n).then(t),e.u|=4,n.length=0)}},U=(e,n,t,l)=>{try{n=n.render(),e.u&=-17,e.u|=2,((e,n,t=!1)=>{const l=e.$hostElement$,o=e.O||y(null,null),s=(e=>e&&e.h===h)(n)?n:d(null,null,n);if(c=l.tagName,t&&s.l)for(const e of Object.keys(s.l))l.hasAttribute(e)&&!["key","ref","style","class"].includes(e)&&(s.l[e]=l[e]);s.h=null,s.u|=4,e.O=s,s.p=o.p=l.shadowRoot||l,i=l["s-sc"],P(o,s,t)})(e,n,l)}catch(n){K(n,e.$hostElement$)}return null},W=e=>{const n=e.$hostElement$,t=e.j,l=e.v;64&e.u||(e.u|=64,F(n),D(t,"componentDidLoad"),e.M(n),l||q()),e.$&&(e.$(),e.$=void 0),512&e.u&&fe((()=>A(e,!1))),e.u&=-517},q=()=>{F(ee.documentElement),fe((()=>(e=>{const n=ne.ce("appload",{detail:{namespace:"proto-daisy-db"}});return e.dispatchEvent(n),n})(Z)))},D=(e,n,t)=>{if(e&&e[n])try{return e[n](t)}catch(e){K(e)}},F=e=>e.classList.add("hydrated"),H=(e,n,l)=>{var o;const s=e.prototype;if(n.C){const r=Object.entries(n.C);if(r.map((([e,[o]])=>{(31&o||2&l&&32&o)&&Object.defineProperty(s,e,{get(){return((e,n)=>B(this).P.get(n))(0,e)},set(l){((e,n,l,o)=>{const s=B(e),r=s.P.get(n),i=s.u,c=s.j;l=((e,n)=>null==e||t(e)?e:1&n?e+"":e)(l,o.C[n][0]),8&i&&void 0!==r||l===r||Number.isNaN(r)&&Number.isNaN(l)||(s.P.set(n,l),c&&2==(18&i)&&A(s,!1))})(this,e,l,n)},configurable:!0,enumerable:!0})})),1&l){const t=new Map;s.attributeChangedCallback=function(e,l,o){ne.jmp((()=>{var r;const i=t.get(e);if(this.hasOwnProperty(i))o=this[i],delete this[i];else{if(s.hasOwnProperty(i)&&"number"==typeof this[i]&&this[i]==o)return;if(null==i){const t=B(this),s=null==t?void 0:t.u;if(s&&!(8&s)&&128&s&&o!==l){const s=t.j,i=null==(r=n.A)?void 0:r[e];null==i||i.forEach((n=>{null!=s[n]&&s[n].call(s,o,l,e)}))}return}}this[i]=(null!==o||"boolean"!=typeof this[i])&&o}))},e.observedAttributes=Array.from(new Set([...Object.keys(null!=(o=n.A)?o:{}),...r.filter((([e,n])=>15&n[0])).map((([e,n])=>{const l=n[1]||e;return t.set(l,e),l}))]))}}return e},V=(e,n={})=>{var t;const o=[],s=n.exclude||[],r=Z.customElements,i=ee.head,c=i.querySelector("meta[charset]"),u=ee.createElement("style"),f=[];let d,y=!0;Object.assign(ne,n),ne.L=new URL(n.resourcesUrl||"./",ee.baseURI).href;let h=!1;if(e.map((e=>{e[1].map((n=>{const t={u:n[0],m:n[1],C:n[2],N:n[3]};4&t.u&&(h=!0),t.C=n[2];const l=t.m,i=class extends HTMLElement{constructor(e){super(e),I(e=this,t),1&t.u&&e.attachShadow({mode:"open"})}connectedCallback(){d&&(clearTimeout(d),d=null),y?f.push(this):ne.jmp((()=>(e=>{if(!(1&ne.u)){const n=B(e),t=n.S,l=()=>{};if(1&n.u)(null==n?void 0:n.j)||(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"]){x(n,n.v=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(!(32&n.u)){if(n.u|=32,t.T){if(l=X(t),l.then){const e=()=>{};l=await l,e()}l.isProxied||(H(l,t,2),l.isProxied=!0);const e=()=>{};n.u|=8;try{new l(n)}catch(e){K(e)}n.u&=-9,e()}else l=e.constructor,customElements.whenDefined(t.m).then((()=>n.u|=128));if(l.style){let e=l.style;const n=m(t);if(!Y.has(n)){const l=()=>{};((e,n,t)=>{let l=Y.get(e);le&&t?(l=l||new CSSStyleSheet,"string"==typeof l?l=n:l.replaceSync(n)):l=n,Y.set(e,l)})(n,e,!!(1&t.u)),l()}}}const o=n.v,s=()=>A(n,!0);o&&o["s-rc"]?o["s-rc"].push(s):s()})(e,n,t)}l()}})(this)))}disconnectedCallback(){ne.jmp((()=>(async()=>{if(!(1&ne.u)){const e=B(this);(null==e?void 0:e.j)||(null==e?void 0:e.R)&&e.R.then((()=>{}))}})()))}componentOnReady(){return B(this).R}};t.T=e[0],s.includes(l)||r.get(l)||(o.push(l),r.define(l,H(i,t,1)))}))})),o.length>0&&(h&&(u.textContent+=a),u.textContent+=o+"{visibility:hidden}.hydrated{visibility:inherit}",u.innerHTML.length)){u.setAttribute("data-styles","");const e=null!=(t=ne.k)?t:l(ee);null!=e&&u.setAttribute("nonce",e),i.insertBefore(u,c?c.nextSibling:i.firstChild)}y=!1,f.length?f.map((e=>e.connectedCallback())):ne.jmp((()=>d=setTimeout(q,30)))},_=e=>ne.k=e,z=new WeakMap,B=e=>z.get(e),G=(e,n)=>z.set(n.j=e,n),I=(e,n)=>{const t={u:0,$hostElement$:e,S:n,P:new Map};return t.R=new Promise((e=>t.M=e)),e["s-p"]=[],e["s-rc"]=[],z.set(e,t)},J=(e,n)=>n in e,K=(e,n)=>(0,console.error)(e,n),Q=new Map,X=e=>{const n=e.m.replace(/-/g,"_"),t=e.T,l=Q.get(t);return l?l[n]:import(`./${t}.entry.js`).then((e=>(Q.set(t,e),e[n])),K)
|
|
2
|
-
/*!__STENCIL_STATIC_IMPORT_SWITCH__*/},Y=new Map,Z="undefined"!=typeof window?window:{},ee=Z.document||{head:{}},ne={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)},te=e=>Promise.resolve(e),le=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync}catch(e){}return!1})(),oe=!1,se=[],re=[],ie=(e,n)=>t=>{e.push(t),oe||(oe=!0,n&&4&ne.u?fe(ue):ne.raf(ue))},ce=e=>{for(let n=0;n<e.length;n++)try{e[n](performance.now())}catch(e){K(e)}e.length=0},ue=()=>{ce(se),ce(re),(oe=se.length>0)&&ne.raf(ue)},fe=e=>te().then(e),ae=ie(re,!0);export{V as b,d as h,te as p,G as r,_ as s}
|