proto-daisy-db 0.0.172 → 0.0.174
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-3f55ff78.js → index-1f16daf6.js} +85 -6
- 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-4f7b19b8.js → index-60536f9e.js} +85 -6
- 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-fa435e3e.entry.js → p-1b67124b.entry.js} +1 -1
- package/dist/proto-daisy-db/p-ba867c97.js +2 -0
- package/dist/proto-daisy-db/proto-daisy-db.esm.js +1 -1
- package/dist/types/stencil-public-runtime.d.ts +5 -1
- package/package.json +3 -3
- package/dist/proto-daisy-db/p-d062bae6.js +0 -2
|
@@ -301,6 +301,21 @@ const getScopeId = (cmp, mode) => 'sc-' + (cmp.$tagName$);
|
|
|
301
301
|
*
|
|
302
302
|
* Modified for Stencil's compiler and vdom
|
|
303
303
|
*/
|
|
304
|
+
/**
|
|
305
|
+
* When running a VDom render set properties present on a VDom node onto the
|
|
306
|
+
* corresponding HTML element.
|
|
307
|
+
*
|
|
308
|
+
* Note that this function has special functionality for the `class`,
|
|
309
|
+
* `style`, `key`, and `ref` attributes, as well as event handlers (like
|
|
310
|
+
* `onClick`, etc). All others are just passed through as-is.
|
|
311
|
+
*
|
|
312
|
+
* @param elm the HTMLElement onto which attributes should be set
|
|
313
|
+
* @param memberName the name of the attribute to set
|
|
314
|
+
* @param oldValue the old value for the attribute
|
|
315
|
+
* @param newValue the new value for the attribute
|
|
316
|
+
* @param isSvg whether we're in an svg context or not
|
|
317
|
+
* @param flags bitflags for Vdom variables
|
|
318
|
+
*/
|
|
304
319
|
const setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
|
|
305
320
|
if (oldValue !== newValue) {
|
|
306
321
|
let isProp = isMemberInElement(elm, memberName);
|
|
@@ -767,12 +782,39 @@ const patch = (oldVNode, newVNode) => {
|
|
|
767
782
|
* @param hostRef data needed to root and render the virtual DOM tree, such as
|
|
768
783
|
* the DOM node into which it should be rendered.
|
|
769
784
|
* @param renderFnResults the virtual DOM nodes to be rendered
|
|
785
|
+
* @param isInitialLoad whether or not this is the first call after page load
|
|
770
786
|
*/
|
|
771
|
-
const renderVdom = (hostRef, renderFnResults) => {
|
|
787
|
+
const renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
|
|
772
788
|
const hostElm = hostRef.$hostElement$;
|
|
773
789
|
const oldVNode = hostRef.$vnode$ || newVNode(null, null);
|
|
790
|
+
// if `renderFnResults` is a Host node then we can use it directly. If not,
|
|
791
|
+
// we need to call `h` again to wrap the children of our component in a
|
|
792
|
+
// 'dummy' Host node (well, an empty vnode) since `renderVdom` assumes
|
|
793
|
+
// implicitly that the top-level vdom node is 1) an only child and 2)
|
|
794
|
+
// contains attrs that need to be set on the host element.
|
|
774
795
|
const rootVnode = isHost(renderFnResults) ? renderFnResults : h(null, null, renderFnResults);
|
|
775
796
|
hostTagName = hostElm.tagName;
|
|
797
|
+
// On the first render and *only* on the first render we want to check for
|
|
798
|
+
// any attributes set on the host element which are also set on the vdom
|
|
799
|
+
// node. If we find them, we override the value on the VDom node attrs with
|
|
800
|
+
// the value from the host element, which allows developers building apps
|
|
801
|
+
// with Stencil components to override e.g. the `role` attribute on a
|
|
802
|
+
// component even if it's already set on the `Host`.
|
|
803
|
+
if (isInitialLoad && rootVnode.$attrs$) {
|
|
804
|
+
for (const key of Object.keys(rootVnode.$attrs$)) {
|
|
805
|
+
// We have a special implementation in `setAccessor` for `style` and
|
|
806
|
+
// `class` which reconciles values coming from the VDom with values
|
|
807
|
+
// already present on the DOM element, so we don't want to override those
|
|
808
|
+
// attributes on the VDom tree with values from the host element if they
|
|
809
|
+
// are present.
|
|
810
|
+
//
|
|
811
|
+
// Likewise, `ref` and `key` are special internal values for the Stencil
|
|
812
|
+
// runtime and we don't want to override those either.
|
|
813
|
+
if (hostElm.hasAttribute(key) && !['key', 'ref', 'style', 'class'].includes(key)) {
|
|
814
|
+
rootVnode.$attrs$[key] = hostElm[key];
|
|
815
|
+
}
|
|
816
|
+
}
|
|
817
|
+
}
|
|
776
818
|
rootVnode.$tag$ = null;
|
|
777
819
|
rootVnode.$flags$ |= 4 /* VNODE_FLAGS.isHost */;
|
|
778
820
|
hostRef.$vnode$ = rootVnode;
|
|
@@ -861,6 +903,16 @@ const enqueue = (maybePromise, fn) => isPromisey(maybePromise) ? maybePromise.th
|
|
|
861
903
|
*/
|
|
862
904
|
const isPromisey = (maybePromise) => maybePromise instanceof Promise ||
|
|
863
905
|
(maybePromise && maybePromise.then && typeof maybePromise.then === 'function');
|
|
906
|
+
/**
|
|
907
|
+
* Update a component given reference to its host elements and so on.
|
|
908
|
+
*
|
|
909
|
+
* @param hostRef an object containing references to the element's host node,
|
|
910
|
+
* VDom nodes, and other metadata
|
|
911
|
+
* @param instance a reference to the underlying host element where it will be
|
|
912
|
+
* rendered
|
|
913
|
+
* @param isInitialLoad whether or not this function is being called as part of
|
|
914
|
+
* the first render cycle
|
|
915
|
+
*/
|
|
864
916
|
const updateComponent = async (hostRef, instance, isInitialLoad) => {
|
|
865
917
|
var _a;
|
|
866
918
|
const elm = hostRef.$hostElement$;
|
|
@@ -872,7 +924,7 @@ const updateComponent = async (hostRef, instance, isInitialLoad) => {
|
|
|
872
924
|
}
|
|
873
925
|
const endRender = createTime('render', hostRef.$cmpMeta$.$tagName$);
|
|
874
926
|
{
|
|
875
|
-
callRender(hostRef, instance);
|
|
927
|
+
callRender(hostRef, instance, elm, isInitialLoad);
|
|
876
928
|
}
|
|
877
929
|
if (rc) {
|
|
878
930
|
// ok, so turns out there are some child host elements
|
|
@@ -896,7 +948,19 @@ const updateComponent = async (hostRef, instance, isInitialLoad) => {
|
|
|
896
948
|
}
|
|
897
949
|
}
|
|
898
950
|
};
|
|
899
|
-
|
|
951
|
+
/**
|
|
952
|
+
* Handle making the call to the VDom renderer with the proper context given
|
|
953
|
+
* various build variables
|
|
954
|
+
*
|
|
955
|
+
* @param hostRef an object containing references to the element's host node,
|
|
956
|
+
* VDom nodes, and other metadata
|
|
957
|
+
* @param instance a reference to the underlying host element where it will be
|
|
958
|
+
* rendered
|
|
959
|
+
* @param elm the Host element for the component
|
|
960
|
+
* @param isInitialLoad whether or not this function is being called as part of
|
|
961
|
+
* @returns an empty promise
|
|
962
|
+
*/
|
|
963
|
+
const callRender = (hostRef, instance, elm, isInitialLoad) => {
|
|
900
964
|
try {
|
|
901
965
|
instance = instance.render() ;
|
|
902
966
|
{
|
|
@@ -911,7 +975,7 @@ const callRender = (hostRef, instance, elm) => {
|
|
|
911
975
|
// or we need to update the css class/attrs on the host element
|
|
912
976
|
// DOM WRITE!
|
|
913
977
|
{
|
|
914
|
-
renderVdom(hostRef, instance);
|
|
978
|
+
renderVdom(hostRef, instance, isInitialLoad);
|
|
915
979
|
}
|
|
916
980
|
}
|
|
917
981
|
}
|
|
@@ -1178,6 +1242,8 @@ const initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId, Cstr) =>
|
|
|
1178
1242
|
schedule();
|
|
1179
1243
|
}
|
|
1180
1244
|
};
|
|
1245
|
+
const fireConnectedCallback = (instance) => {
|
|
1246
|
+
};
|
|
1181
1247
|
const connectedCallback = (elm) => {
|
|
1182
1248
|
if ((plt.$flags$ & 1 /* PLATFORM_FLAGS.isTmpDisconnected */) === 0) {
|
|
1183
1249
|
const hostRef = getHostRef(elm);
|
|
@@ -1216,12 +1282,25 @@ const connectedCallback = (elm) => {
|
|
|
1216
1282
|
initializeComponent(elm, hostRef, cmpMeta);
|
|
1217
1283
|
}
|
|
1218
1284
|
}
|
|
1285
|
+
else {
|
|
1286
|
+
// fire off connectedCallback() on component instance
|
|
1287
|
+
if (hostRef === null || hostRef === void 0 ? void 0 : hostRef.$lazyInstance$) ;
|
|
1288
|
+
else if (hostRef === null || hostRef === void 0 ? void 0 : hostRef.$onReadyPromise$) {
|
|
1289
|
+
hostRef.$onReadyPromise$.then(() => fireConnectedCallback());
|
|
1290
|
+
}
|
|
1291
|
+
}
|
|
1219
1292
|
endConnected();
|
|
1220
1293
|
}
|
|
1221
1294
|
};
|
|
1222
|
-
const
|
|
1295
|
+
const disconnectInstance = (instance) => {
|
|
1296
|
+
};
|
|
1297
|
+
const disconnectedCallback = async (elm) => {
|
|
1223
1298
|
if ((plt.$flags$ & 1 /* PLATFORM_FLAGS.isTmpDisconnected */) === 0) {
|
|
1224
|
-
getHostRef(elm);
|
|
1299
|
+
const hostRef = getHostRef(elm);
|
|
1300
|
+
if (hostRef === null || hostRef === void 0 ? void 0 : hostRef.$lazyInstance$) ;
|
|
1301
|
+
else if (hostRef === null || hostRef === void 0 ? void 0 : hostRef.$onReadyPromise$) {
|
|
1302
|
+
hostRef.$onReadyPromise$.then(() => disconnectInstance());
|
|
1303
|
+
}
|
|
1225
1304
|
}
|
|
1226
1305
|
};
|
|
1227
1306
|
const bootstrapLazy = (lazyBundles, options = {}) => {
|
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-1f16daf6.js');
|
|
6
6
|
|
|
7
7
|
const defineCustomElements = (win, options) => {
|
|
8
8
|
if (typeof window === 'undefined') return undefined;
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
5
|
+
const index = require('./index-1f16daf6.js');
|
|
6
6
|
|
|
7
7
|
/*
|
|
8
|
-
Stencil Client Patch Browser v4.0.
|
|
8
|
+
Stencil Client Patch Browser v4.0.3 | 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));
|
|
@@ -279,6 +279,21 @@ const getScopeId = (cmp, mode) => 'sc-' + (cmp.$tagName$);
|
|
|
279
279
|
*
|
|
280
280
|
* Modified for Stencil's compiler and vdom
|
|
281
281
|
*/
|
|
282
|
+
/**
|
|
283
|
+
* When running a VDom render set properties present on a VDom node onto the
|
|
284
|
+
* corresponding HTML element.
|
|
285
|
+
*
|
|
286
|
+
* Note that this function has special functionality for the `class`,
|
|
287
|
+
* `style`, `key`, and `ref` attributes, as well as event handlers (like
|
|
288
|
+
* `onClick`, etc). All others are just passed through as-is.
|
|
289
|
+
*
|
|
290
|
+
* @param elm the HTMLElement onto which attributes should be set
|
|
291
|
+
* @param memberName the name of the attribute to set
|
|
292
|
+
* @param oldValue the old value for the attribute
|
|
293
|
+
* @param newValue the new value for the attribute
|
|
294
|
+
* @param isSvg whether we're in an svg context or not
|
|
295
|
+
* @param flags bitflags for Vdom variables
|
|
296
|
+
*/
|
|
282
297
|
const setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
|
|
283
298
|
if (oldValue !== newValue) {
|
|
284
299
|
let isProp = isMemberInElement(elm, memberName);
|
|
@@ -745,12 +760,39 @@ const patch = (oldVNode, newVNode) => {
|
|
|
745
760
|
* @param hostRef data needed to root and render the virtual DOM tree, such as
|
|
746
761
|
* the DOM node into which it should be rendered.
|
|
747
762
|
* @param renderFnResults the virtual DOM nodes to be rendered
|
|
763
|
+
* @param isInitialLoad whether or not this is the first call after page load
|
|
748
764
|
*/
|
|
749
|
-
const renderVdom = (hostRef, renderFnResults) => {
|
|
765
|
+
const renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
|
|
750
766
|
const hostElm = hostRef.$hostElement$;
|
|
751
767
|
const oldVNode = hostRef.$vnode$ || newVNode(null, null);
|
|
768
|
+
// if `renderFnResults` is a Host node then we can use it directly. If not,
|
|
769
|
+
// we need to call `h` again to wrap the children of our component in a
|
|
770
|
+
// 'dummy' Host node (well, an empty vnode) since `renderVdom` assumes
|
|
771
|
+
// implicitly that the top-level vdom node is 1) an only child and 2)
|
|
772
|
+
// contains attrs that need to be set on the host element.
|
|
752
773
|
const rootVnode = isHost(renderFnResults) ? renderFnResults : h(null, null, renderFnResults);
|
|
753
774
|
hostTagName = hostElm.tagName;
|
|
775
|
+
// On the first render and *only* on the first render we want to check for
|
|
776
|
+
// any attributes set on the host element which are also set on the vdom
|
|
777
|
+
// node. If we find them, we override the value on the VDom node attrs with
|
|
778
|
+
// the value from the host element, which allows developers building apps
|
|
779
|
+
// with Stencil components to override e.g. the `role` attribute on a
|
|
780
|
+
// component even if it's already set on the `Host`.
|
|
781
|
+
if (isInitialLoad && rootVnode.$attrs$) {
|
|
782
|
+
for (const key of Object.keys(rootVnode.$attrs$)) {
|
|
783
|
+
// We have a special implementation in `setAccessor` for `style` and
|
|
784
|
+
// `class` which reconciles values coming from the VDom with values
|
|
785
|
+
// already present on the DOM element, so we don't want to override those
|
|
786
|
+
// attributes on the VDom tree with values from the host element if they
|
|
787
|
+
// are present.
|
|
788
|
+
//
|
|
789
|
+
// Likewise, `ref` and `key` are special internal values for the Stencil
|
|
790
|
+
// runtime and we don't want to override those either.
|
|
791
|
+
if (hostElm.hasAttribute(key) && !['key', 'ref', 'style', 'class'].includes(key)) {
|
|
792
|
+
rootVnode.$attrs$[key] = hostElm[key];
|
|
793
|
+
}
|
|
794
|
+
}
|
|
795
|
+
}
|
|
754
796
|
rootVnode.$tag$ = null;
|
|
755
797
|
rootVnode.$flags$ |= 4 /* VNODE_FLAGS.isHost */;
|
|
756
798
|
hostRef.$vnode$ = rootVnode;
|
|
@@ -839,6 +881,16 @@ const enqueue = (maybePromise, fn) => isPromisey(maybePromise) ? maybePromise.th
|
|
|
839
881
|
*/
|
|
840
882
|
const isPromisey = (maybePromise) => maybePromise instanceof Promise ||
|
|
841
883
|
(maybePromise && maybePromise.then && typeof maybePromise.then === 'function');
|
|
884
|
+
/**
|
|
885
|
+
* Update a component given reference to its host elements and so on.
|
|
886
|
+
*
|
|
887
|
+
* @param hostRef an object containing references to the element's host node,
|
|
888
|
+
* VDom nodes, and other metadata
|
|
889
|
+
* @param instance a reference to the underlying host element where it will be
|
|
890
|
+
* rendered
|
|
891
|
+
* @param isInitialLoad whether or not this function is being called as part of
|
|
892
|
+
* the first render cycle
|
|
893
|
+
*/
|
|
842
894
|
const updateComponent = async (hostRef, instance, isInitialLoad) => {
|
|
843
895
|
var _a;
|
|
844
896
|
const elm = hostRef.$hostElement$;
|
|
@@ -850,7 +902,7 @@ const updateComponent = async (hostRef, instance, isInitialLoad) => {
|
|
|
850
902
|
}
|
|
851
903
|
const endRender = createTime('render', hostRef.$cmpMeta$.$tagName$);
|
|
852
904
|
{
|
|
853
|
-
callRender(hostRef, instance);
|
|
905
|
+
callRender(hostRef, instance, elm, isInitialLoad);
|
|
854
906
|
}
|
|
855
907
|
if (rc) {
|
|
856
908
|
// ok, so turns out there are some child host elements
|
|
@@ -874,7 +926,19 @@ const updateComponent = async (hostRef, instance, isInitialLoad) => {
|
|
|
874
926
|
}
|
|
875
927
|
}
|
|
876
928
|
};
|
|
877
|
-
|
|
929
|
+
/**
|
|
930
|
+
* Handle making the call to the VDom renderer with the proper context given
|
|
931
|
+
* various build variables
|
|
932
|
+
*
|
|
933
|
+
* @param hostRef an object containing references to the element's host node,
|
|
934
|
+
* VDom nodes, and other metadata
|
|
935
|
+
* @param instance a reference to the underlying host element where it will be
|
|
936
|
+
* rendered
|
|
937
|
+
* @param elm the Host element for the component
|
|
938
|
+
* @param isInitialLoad whether or not this function is being called as part of
|
|
939
|
+
* @returns an empty promise
|
|
940
|
+
*/
|
|
941
|
+
const callRender = (hostRef, instance, elm, isInitialLoad) => {
|
|
878
942
|
try {
|
|
879
943
|
instance = instance.render() ;
|
|
880
944
|
{
|
|
@@ -889,7 +953,7 @@ const callRender = (hostRef, instance, elm) => {
|
|
|
889
953
|
// or we need to update the css class/attrs on the host element
|
|
890
954
|
// DOM WRITE!
|
|
891
955
|
{
|
|
892
|
-
renderVdom(hostRef, instance);
|
|
956
|
+
renderVdom(hostRef, instance, isInitialLoad);
|
|
893
957
|
}
|
|
894
958
|
}
|
|
895
959
|
}
|
|
@@ -1156,6 +1220,8 @@ const initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId, Cstr) =>
|
|
|
1156
1220
|
schedule();
|
|
1157
1221
|
}
|
|
1158
1222
|
};
|
|
1223
|
+
const fireConnectedCallback = (instance) => {
|
|
1224
|
+
};
|
|
1159
1225
|
const connectedCallback = (elm) => {
|
|
1160
1226
|
if ((plt.$flags$ & 1 /* PLATFORM_FLAGS.isTmpDisconnected */) === 0) {
|
|
1161
1227
|
const hostRef = getHostRef(elm);
|
|
@@ -1194,12 +1260,25 @@ const connectedCallback = (elm) => {
|
|
|
1194
1260
|
initializeComponent(elm, hostRef, cmpMeta);
|
|
1195
1261
|
}
|
|
1196
1262
|
}
|
|
1263
|
+
else {
|
|
1264
|
+
// fire off connectedCallback() on component instance
|
|
1265
|
+
if (hostRef === null || hostRef === void 0 ? void 0 : hostRef.$lazyInstance$) ;
|
|
1266
|
+
else if (hostRef === null || hostRef === void 0 ? void 0 : hostRef.$onReadyPromise$) {
|
|
1267
|
+
hostRef.$onReadyPromise$.then(() => fireConnectedCallback());
|
|
1268
|
+
}
|
|
1269
|
+
}
|
|
1197
1270
|
endConnected();
|
|
1198
1271
|
}
|
|
1199
1272
|
};
|
|
1200
|
-
const
|
|
1273
|
+
const disconnectInstance = (instance) => {
|
|
1274
|
+
};
|
|
1275
|
+
const disconnectedCallback = async (elm) => {
|
|
1201
1276
|
if ((plt.$flags$ & 1 /* PLATFORM_FLAGS.isTmpDisconnected */) === 0) {
|
|
1202
|
-
getHostRef(elm);
|
|
1277
|
+
const hostRef = getHostRef(elm);
|
|
1278
|
+
if (hostRef === null || hostRef === void 0 ? void 0 : hostRef.$lazyInstance$) ;
|
|
1279
|
+
else if (hostRef === null || hostRef === void 0 ? void 0 : hostRef.$onReadyPromise$) {
|
|
1280
|
+
hostRef.$onReadyPromise$.then(() => disconnectInstance());
|
|
1281
|
+
}
|
|
1203
1282
|
}
|
|
1204
1283
|
};
|
|
1205
1284
|
const bootstrapLazy = (lazyBundles, options = {}) => {
|
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-60536f9e.js';
|
|
2
|
+
export { s as setNonce } from './index-60536f9e.js';
|
|
3
3
|
|
|
4
4
|
const defineCustomElements = (win, options) => {
|
|
5
5
|
if (typeof window === 'undefined') return undefined;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { p as promiseResolve, b as bootstrapLazy } from './index-
|
|
2
|
-
export { s as setNonce } from './index-
|
|
1
|
+
import { p as promiseResolve, b as bootstrapLazy } from './index-60536f9e.js';
|
|
2
|
+
export { s as setNonce } from './index-60536f9e.js';
|
|
3
3
|
|
|
4
4
|
/*
|
|
5
|
-
Stencil Client Patch Browser v4.0.
|
|
5
|
+
Stencil Client Patch Browser v4.0.3 | MIT Licensed | https://stenciljs.com
|
|
6
6
|
*/
|
|
7
7
|
const patchBrowser = () => {
|
|
8
8
|
const importMeta = import.meta.url;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as t,h as o}from"./p-
|
|
1
|
+
import{r as t,h as o}from"./p-ba867c97.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}
|
|
@@ -0,0 +1,2 @@
|
|
|
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 r=[],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?r[r.length-1].t+=l:r.push(s?c(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=c(n,null);return a.l=t,r.length>0&&(a.o=r),a},c=(n,t)=>({i:0,u:n,t,$:null,o:null,l:null}),r={},u=new WeakMap,a=n=>"sc-"+n.h,f=(n,t,e,l,s,i)=>{if(e!==l){let c=q(n,t),r=t.toLowerCase();if("class"===t){const t=n.classList,o=y(e),s=y(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=o(l);if((c||r&&null!==l)&&!s)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||s)&&!r&&n.setAttribute(t,l=!0===l?"":l)}else t="-"===t[2]?t.slice(3):q(_,r)?r.slice(2):r[2]+t.slice(3),e&&B.rel(n,t,e,!1),l&&B.ael(n,t,l,!1)}},d=/\s/,y=n=>n?n.split(d):[],$=(n,t,e,o)=>{const s=11===t.$.nodeType&&t.$.host?t.$.host:t.$,i=n&&n.l||l,c=t.l||l;for(o in i)o in c||f(s,o,i[o],void 0,e,t.i);for(o in c)f(s,o,i[o],c[o],e,t.i)},h=(t,e,l)=>{const o=e.o[l];let s,i,c=0;if(null!==o.t)s=o.$=z.createTextNode(o.t);else if(s=o.$=z.createElement(o.u),$(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=h(t,o,c),i&&s.appendChild(i);return s},p=(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=h(null,l,s),c&&(o[s].$=c,r.insertBefore(c,e)))},m=(n,t,e)=>{for(let l=t;l<=e;++l){const t=n[l];if(t){const n=t.$;n&&n.remove()}}},v=(n,t)=>n.u===t.u,b=(n,t)=>{const e=t.$=n.$,l=n.o,o=t.o,s=t.t;null===s?($(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]:v(r,f)?(b(r,f),r=t[++s],f=l[++i]):v(u,d)?(b(u,d),u=t[--c],d=l[--a]):v(r,d)?(b(r,d),n.insertBefore(r.$,u.$.nextSibling),r=t[++s],d=l[--a]):v(u,f)?(b(u,f),n.insertBefore(u.$,r.$),u=t[--c],f=l[++i]):(o=h(t&&t[i],e,i),f=l[++i],o&&r.$.parentNode.insertBefore(o,r.$));s>c?p(n,null==l[a+1]?null:l[a+1].$,e,l,i,a):i>a&&m(t,s,c)})(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)},w=(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 w(n,n.m),nn((()=>g(n,t)));n.i|=512},g=(n,t)=>{const e=n.v;return j(void 0,(()=>k(n,e,t)))},j=(n,t)=>M(n)?n.then(t):t(),M=n=>n instanceof Promise||n&&n.then&&"function"==typeof n.then,k=async(n,t,e)=>{var l;const o=n.S,i=o["s-rc"];e&&(n=>{const t=n.g,e=n.S,l=t.i,o=((n,t)=>{var e;const l=a(t),o=V.get(l);if(n=11===n.nodeType?n:z,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=z.createElement("style"),t.innerHTML=o;const l=null!==(e=B.j)&&void 0!==e?e:s(z);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);O(n,t,o,e),i&&(i.map((n=>n())),o["s-rc"]=void 0);{const t=null!==(l=o["s-p"])&&void 0!==l?l:[],e=()=>C(n);0===t.length?e():(Promise.all(t).then(e),n.i|=4,t.length=0)}},O=(e,l,o,s)=>{try{l=l.render(),e.i&=-17,e.i|=2,((e,l,o=!1)=>{const s=e.S,u=e.M||c(null,null),a=(n=>n&&n.u===r)(l)?l:i(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.$=u.$=s.shadowRoot||s,n=s["s-sc"],b(u,a)})(e,l,s)}catch(n){D(n,e.S)}return null},C=n=>{const t=n.S,e=n.v,l=n.m;64&n.i||(n.i|=64,E(t),x(e,"componentDidLoad"),n.k(t),l||P()),n.p&&(n.p(),n.p=void 0),512&n.i&&Z((()=>S(n,!1))),n.i&=-517},P=()=>{E(z.documentElement),Z((()=>(n=>{const t=B.ce("appload",{detail:{namespace:"proto-daisy-db"}});return n.dispatchEvent(t),t})(_)))},x=(n,t,e)=>{if(n&&n[t])try{return n[t](e)}catch(n){D(n)}},E=n=>n.classList.add("hydrated"),L=(n,t,e)=>{if(t.O){const l=Object.entries(t.O),s=n.prototype;if(l.map((([n,[l]])=>{(31&l||2&e&&32&l)&&Object.defineProperty(s,n,{get(){return((n,t)=>R(this).C.get(t))(0,n)},set(e){((n,t,e,l)=>{const s=R(n),i=s.C.get(t),c=s.i,r=s.v;e=((n,t)=>null==n||o(n)?n:1&t?n+"":n)(e,l.O[t][0]),8&c&&void 0!==i||e===i||Number.isNaN(i)&&Number.isNaN(e)||(s.C.set(t,e),r&&2==(18&c)&&S(s,!1))})(this,n,e,t)},configurable:!0,enumerable:!0})})),1&e){const t=new Map;s.attributeChangedCallback=function(n,e,l){B.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},N=(n,t={})=>{var e;const l=[],o=t.exclude||[],i=_.customElements,c=z.head,r=c.querySelector("meta[charset]"),u=z.createElement("style"),f=[];let d,y=!0;Object.assign(B,t),B.P=new URL(t.resourcesUrl||"./",z.baseURI).href,n.map((n=>{n[1].map((t=>{const e={i:t[0],h:t[1],O:t[2],L:t[3]};e.O=t[2];const s=e.h,c=class extends HTMLElement{constructor(n){super(n),W(n=this,e),1&e.i&&n.attachShadow({mode:"open"})}connectedCallback(){d&&(clearTimeout(d),d=null),y?f.push(this):B.jmp((()=>(n=>{if(0==(1&B.i)){const t=R(n),e=t.g,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"]){w(t,t.m=e);break}}e.O&&Object.entries(e.O).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)){t.i|=32;{if((o=H(e)).then){const n=()=>{};o=await o,n()}o.isProxied||(L(o,e,2),o.isProxied=!0);const n=()=>{};t.i|=8;try{new o(t)}catch(n){D(n)}t.i&=-9,n()}if(o.style){let n=o.style;const t=a(e);if(!V.has(t)){const l=()=>{};((n,t,e)=>{let l=V.get(n);I&&e?(l=l||new CSSStyleSheet,"string"==typeof l?l=t:l.replaceSync(t)):l=t,V.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(){B.jmp((()=>(async()=>{if(0==(1&B.i)){const n=R(this);(null==n?void 0:n.v)||(null==n?void 0:n.N)&&n.N.then((()=>{}))}})()))}componentOnReady(){return R(this).N}};e.T=n[0],o.includes(s)||i.get(s)||(l.push(s),i.define(s,L(c,e,1)))}))}));{u.innerHTML=l+"{visibility:hidden}.hydrated{visibility:inherit}",u.setAttribute("data-styles","");const n=null!==(e=B.j)&&void 0!==e?e:s(z);null!=n&&u.setAttribute("nonce",n),c.insertBefore(u,r?r.nextSibling:c.firstChild)}y=!1,f.length?f.map((n=>n.connectedCallback())):B.jmp((()=>d=setTimeout(P,30)))},T=n=>B.j=n,A=new WeakMap,R=n=>A.get(n),U=(n,t)=>A.set(t.v=n,t),W=(n,t)=>{const e={i:0,S:n,g:t,C:new Map};return e.N=new Promise((n=>e.k=n)),n["s-p"]=[],n["s-rc"]=[],A.set(n,e)},q=(n,t)=>t in n,D=(n,t)=>(0,console.error)(n,t),F=new Map,H=n=>{const t=n.h.replace(/-/g,"_"),e=n.T,l=F.get(e);return l?l[t]:import(`./${e}.entry.js`).then((n=>(F.set(e,n),n[t])),D)
|
|
2
|
+
/*!__STENCIL_STATIC_IMPORT_SWITCH__*/},V=new Map,_="undefined"!=typeof window?window:{},z=_.document||{head:{}},B={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)},G=n=>Promise.resolve(n),I=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync}catch(n){}return!1})(),J=[],K=[],Q=(n,t)=>l=>{n.push(l),e||(e=!0,t&&4&B.i?Z(Y):B.raf(Y))},X=n=>{for(let t=0;t<n.length;t++)try{n[t](performance.now())}catch(n){D(n)}n.length=0},Y=()=>{X(J),X(K),(e=J.length>0)&&B.raf(Y)},Z=n=>G().then(n),nn=Q(K,!0);export{N as b,i as h,G as p,U as r,T as s}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as t,b as e}from"./p-
|
|
1
|
+
import{p as t,b as e}from"./p-ba867c97.js";export{s as setNonce}from"./p-ba867c97.js";(()=>{const e=import.meta.url,a={};return""!==e&&(a.resourcesUrl=new URL(".",e).href),t(a)})().then((t=>e([["p-1b67124b",[[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)));
|
|
@@ -432,7 +432,7 @@ export interface QueueApi {
|
|
|
432
432
|
/**
|
|
433
433
|
* Host
|
|
434
434
|
*/
|
|
435
|
-
interface HostAttributes {
|
|
435
|
+
export interface HostAttributes {
|
|
436
436
|
class?: string | {
|
|
437
437
|
[className: string]: boolean;
|
|
438
438
|
};
|
|
@@ -930,6 +930,8 @@ export declare namespace JSXBase {
|
|
|
930
930
|
minlength?: number | string;
|
|
931
931
|
multiple?: boolean;
|
|
932
932
|
name?: string;
|
|
933
|
+
onSelect?: (event: Event) => void;
|
|
934
|
+
onselect?: (event: Event) => void;
|
|
933
935
|
pattern?: string;
|
|
934
936
|
placeholder?: string;
|
|
935
937
|
readOnly?: boolean;
|
|
@@ -1143,6 +1145,8 @@ export declare namespace JSXBase {
|
|
|
1143
1145
|
minLength?: number;
|
|
1144
1146
|
minlength?: number | string;
|
|
1145
1147
|
name?: string;
|
|
1148
|
+
onSelect?: (event: Event) => void;
|
|
1149
|
+
onselect?: (event: Event) => void;
|
|
1146
1150
|
placeholder?: string;
|
|
1147
1151
|
readOnly?: boolean;
|
|
1148
1152
|
readonly?: boolean | string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "proto-daisy-db",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.174",
|
|
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.0.
|
|
30
|
+
"@stencil/core": "4.0.3",
|
|
31
31
|
"mitt": "3.0.1"
|
|
32
32
|
},
|
|
33
33
|
"devDependencies": {
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
"postcss": "8.4.27",
|
|
38
38
|
"prettier": "3.0.0",
|
|
39
39
|
"prettier-plugin-tailwindcss": "0.4.1",
|
|
40
|
-
"proto-tailwindcss-clrs": "0.0.
|
|
40
|
+
"proto-tailwindcss-clrs": "0.0.260",
|
|
41
41
|
"tailwindcss": "3.3.3"
|
|
42
42
|
},
|
|
43
43
|
"license": "MIT"
|
|
@@ -1,2 +0,0 @@
|
|
|
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 r=[],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?r[r.length-1].t+=l:r.push(s?c(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=c(n,null);return a.l=t,r.length>0&&(a.o=r),a},c=(n,t)=>({i:0,u:n,t,$:null,o:null,l:null}),r={},u=new WeakMap,a=n=>"sc-"+n.p,f=(n,t,e,l,s,i)=>{if(e!==l){let c=q(n,t),r=t.toLowerCase();if("class"===t){const t=n.classList,o=y(e),s=y(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=o(l);if((c||r&&null!==l)&&!s)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||s)&&!r&&n.setAttribute(t,l=!0===l?"":l)}else t="-"===t[2]?t.slice(3):q(_,r)?r.slice(2):r[2]+t.slice(3),e&&B.rel(n,t,e,!1),l&&B.ael(n,t,l,!1)}},d=/\s/,y=n=>n?n.split(d):[],$=(n,t,e,o)=>{const s=11===t.$.nodeType&&t.$.host?t.$.host:t.$,i=n&&n.l||l,c=t.l||l;for(o in i)o in c||f(s,o,i[o],void 0,e,t.i);for(o in c)f(s,o,i[o],c[o],e,t.i)},p=(t,e,l)=>{const o=e.o[l];let s,i,c=0;if(null!==o.t)s=o.$=z.createTextNode(o.t);else if(s=o.$=z.createElement(o.u),$(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=p(t,o,c),i&&s.appendChild(i);return s},h=(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=p(null,l,s),c&&(o[s].$=c,r.insertBefore(c,e)))},m=(n,t,e)=>{for(let l=t;l<=e;++l){const t=n[l];if(t){const n=t.$;n&&n.remove()}}},b=(n,t)=>n.u===t.u,v=(n,t)=>{const e=t.$=n.$,l=n.o,o=t.o,s=t.t;null===s?($(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]:b(r,f)?(v(r,f),r=t[++s],f=l[++i]):b(u,d)?(v(u,d),u=t[--c],d=l[--a]):b(r,d)?(v(r,d),n.insertBefore(r.$,u.$.nextSibling),r=t[++s],d=l[--a]):b(u,f)?(v(u,f),n.insertBefore(u.$,r.$),u=t[--c],f=l[++i]):(o=p(t&&t[i],e,i),f=l[++i],o&&r.$.parentNode.insertBefore(o,r.$));s>c?h(n,null==l[a+1]?null:l[a+1].$,e,l,i,a):i>a&&m(t,s,c)})(e,l,t,o):null!==o?(null!==n.t&&(e.textContent=""),h(e,null,t,o,0,o.length-1)):null!==l&&m(l,0,l.length-1)):n.t!==s&&(e.data=s)},w=(n,t)=>{t&&!n.h&&t["s-p"]&&t["s-p"].push(new Promise((t=>n.h=t)))},S=(n,t)=>{if(n.i|=16,!(4&n.i))return w(n,n.m),nn((()=>g(n,t)));n.i|=512},g=(n,t)=>{const e=n.v;return j(void 0,(()=>k(n,e,t)))},j=(n,t)=>M(n)?n.then(t):t(),M=n=>n instanceof Promise||n&&n.then&&"function"==typeof n.then,k=async(n,t,e)=>{var l;const o=n.S,i=o["s-rc"];e&&(n=>{const t=n.g,e=n.S,l=t.i,o=((n,t)=>{var e;const l=a(t),o=V.get(l);if(n=11===n.nodeType?n:z,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=z.createElement("style"),t.innerHTML=o;const l=null!==(e=B.j)&&void 0!==e?e:s(z);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);C(n,t),i&&(i.map((n=>n())),o["s-rc"]=void 0);{const t=null!==(l=o["s-p"])&&void 0!==l?l:[],e=()=>O(n);0===t.length?e():(Promise.all(t).then(e),n.i|=4,t.length=0)}},C=(e,l)=>{try{l=l.render(),e.i&=-17,e.i|=2,((e,l)=>{const o=e.S,s=e.M||c(null,null),u=(n=>n&&n.u===r)(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"],v(s,u)})(e,l)}catch(n){D(n,e.S)}return null},O=n=>{const t=n.S,e=n.v,l=n.m;64&n.i||(n.i|=64,E(t),x(e,"componentDidLoad"),n.k(t),l||P()),n.h&&(n.h(),n.h=void 0),512&n.i&&Z((()=>S(n,!1))),n.i&=-517},P=()=>{E(z.documentElement),Z((()=>(n=>{const t=B.ce("appload",{detail:{namespace:"proto-daisy-db"}});return n.dispatchEvent(t),t})(_)))},x=(n,t,e)=>{if(n&&n[t])try{return n[t](e)}catch(n){D(n)}},E=n=>n.classList.add("hydrated"),L=(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)=>R(this).O.get(t))(0,n)},set(e){((n,t,e,l)=>{const s=R(n),i=s.O.get(t),c=s.i,r=s.v;e=((n,t)=>null==n||o(n)?n:1&t?n+"":n)(e,l.C[t][0]),8&c&&void 0!==i||e===i||Number.isNaN(i)&&Number.isNaN(e)||(s.O.set(t,e),r&&2==(18&c)&&S(s,!1))})(this,n,e,t)},configurable:!0,enumerable:!0})})),1&e){const t=new Map;s.attributeChangedCallback=function(n,e,l){B.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},N=(n,t={})=>{var e;const l=[],o=t.exclude||[],i=_.customElements,c=z.head,r=c.querySelector("meta[charset]"),u=z.createElement("style"),f=[];let d,y=!0;Object.assign(B,t),B.P=new URL(t.resourcesUrl||"./",z.baseURI).href,n.map((n=>{n[1].map((t=>{const e={i:t[0],p:t[1],C:t[2],L:t[3]};e.C=t[2];const s=e.p,c=class extends HTMLElement{constructor(n){super(n),W(n=this,e),1&e.i&&n.attachShadow({mode:"open"})}connectedCallback(){d&&(clearTimeout(d),d=null),y?f.push(this):B.jmp((()=>(n=>{if(0==(1&B.i)){const t=R(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"]){w(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)){t.i|=32;{if((o=H(e)).then){const n=()=>{};o=await o,n()}o.isProxied||(L(o,e,2),o.isProxied=!0);const n=()=>{};t.i|=8;try{new o(t)}catch(n){D(n)}t.i&=-9,n()}if(o.style){let n=o.style;const t=a(e);if(!V.has(t)){const l=()=>{};((n,t,e)=>{let l=V.get(n);I&&e?(l=l||new CSSStyleSheet,"string"==typeof l?l=t:l.replaceSync(t)):l=t,V.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(){B.jmp((()=>{}))}componentOnReady(){return R(this).N}};e.T=n[0],o.includes(s)||i.get(s)||(l.push(s),i.define(s,L(c,e,1)))}))}));{u.innerHTML=l+"{visibility:hidden}.hydrated{visibility:inherit}",u.setAttribute("data-styles","");const n=null!==(e=B.j)&&void 0!==e?e:s(z);null!=n&&u.setAttribute("nonce",n),c.insertBefore(u,r?r.nextSibling:c.firstChild)}y=!1,f.length?f.map((n=>n.connectedCallback())):B.jmp((()=>d=setTimeout(P,30)))},T=n=>B.j=n,A=new WeakMap,R=n=>A.get(n),U=(n,t)=>A.set(t.v=n,t),W=(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"]=[],A.set(n,e)},q=(n,t)=>t in n,D=(n,t)=>(0,console.error)(n,t),F=new Map,H=n=>{const t=n.p.replace(/-/g,"_"),e=n.T,l=F.get(e);return l?l[t]:import(`./${e}.entry.js`).then((n=>(F.set(e,n),n[t])),D)
|
|
2
|
-
/*!__STENCIL_STATIC_IMPORT_SWITCH__*/},V=new Map,_="undefined"!=typeof window?window:{},z=_.document||{head:{}},B={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)},G=n=>Promise.resolve(n),I=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync}catch(n){}return!1})(),J=[],K=[],Q=(n,t)=>l=>{n.push(l),e||(e=!0,t&&4&B.i?Z(Y):B.raf(Y))},X=n=>{for(let t=0;t<n.length;t++)try{n[t](performance.now())}catch(n){D(n)}n.length=0},Y=()=>{X(J),X(K),(e=J.length>0)&&B.raf(Y)},Z=n=>G().then(n),nn=Q(K,!0);export{N as b,i as h,G as p,U as r,T as s}
|