ednl-liftstatus-web-components 1.0.1 → 1.3.0
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/ednl-liftstatus-web-components.cjs.js +3 -3
- package/dist/cjs/{index-844f384e.js → index-23750fdc.js} +43 -0
- package/dist/cjs/loader.cjs.js +3 -3
- package/dist/cjs/ls-3d-scene_8.cjs.entry.js +51632 -316
- package/dist/collection/collection-manifest.json +1 -1
- package/dist/collection/components/ls-3d-scene/assets/digital.woff +0 -0
- package/dist/collection/components/ls-3d-scene/assets/elevator-001.dae +5556 -0
- package/dist/collection/components/ls-3d-scene/ls-3d-scene.css +66 -0
- package/dist/collection/components/ls-3d-scene/ls-3d-scene.js +552 -3
- package/dist/collection/components/ls-data/ls-data.js +80 -24
- package/dist/collection/components/ls-history/ls-history.js +1 -1
- package/dist/collection/components/ls-status/ls-status.js +30 -11
- package/dist/collection/components/ls-status-item/ls-status-item.css +11 -9
- package/dist/collection/components/ls-status-item/ls-status-item.js +16 -21
- package/dist/collection/store.js +11 -0
- package/dist/custom-elements/index.js +51640 -324
- package/dist/ednl-liftstatus-web-components/assets/digital.woff +0 -0
- package/dist/ednl-liftstatus-web-components/assets/elevator-001.dae +5556 -0
- package/dist/ednl-liftstatus-web-components/ednl-liftstatus-web-components.css +2 -1
- package/dist/ednl-liftstatus-web-components/ednl-liftstatus-web-components.esm.js +1 -1
- package/dist/ednl-liftstatus-web-components/p-154beb99.js +1 -0
- package/dist/ednl-liftstatus-web-components/p-8972e3e1.entry.js +3 -0
- package/dist/esm/ednl-liftstatus-web-components.js +3 -3
- package/dist/esm/{index-01d5c148.js → index-558a910b.js} +41 -1
- package/dist/esm/loader.js +3 -3
- package/dist/esm/ls-3d-scene_8.entry.js +51632 -316
- package/dist/types/components/ls-3d-scene/ls-3d-scene.d.ts +68 -0
- package/dist/types/components/ls-3d-scene/types.d.ts +9 -0
- package/dist/types/components/ls-data/ls-data.d.ts +18 -4
- package/dist/types/components/ls-status/ls-status.d.ts +4 -0
- package/dist/types/components/ls-status-item/ls-status-item.d.ts +5 -0
- package/dist/types/components.d.ts +16 -8
- package/dist/types/store.d.ts +10 -0
- package/loader/index.d.ts +0 -1
- package/package.json +10 -9
- package/dist/collection/components/ls-data/ls-data.css +0 -4
- package/dist/ednl-liftstatus-web-components/p-7b9ecd22.js +0 -1
- package/dist/ednl-liftstatus-web-components/p-aa4d6837.entry.js +0 -2
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
const index = require('./index-
|
|
3
|
+
const index = require('./index-23750fdc.js');
|
|
4
4
|
|
|
5
5
|
/*
|
|
6
|
-
Stencil Client Patch Browser v2.
|
|
6
|
+
Stencil Client Patch Browser v2.9.0 | MIT Licensed | https://stenciljs.com
|
|
7
7
|
*/
|
|
8
8
|
const patchBrowser = () => {
|
|
9
9
|
const importMeta = (typeof document === 'undefined' ? new (require('u' + 'rl').URL)('file:' + __filename).href : (document.currentScript && document.currentScript.src || new URL('ednl-liftstatus-web-components.cjs.js', document.baseURI).href));
|
|
@@ -15,5 +15,5 @@ const patchBrowser = () => {
|
|
|
15
15
|
};
|
|
16
16
|
|
|
17
17
|
patchBrowser().then(options => {
|
|
18
|
-
return index.bootstrapLazy([["ls-3d-scene_8.cjs",[[1,"ls-status"],[1,"ls-3d-scene"],[1,"ls-counters"],[1,"ls-data",{"accessToken":[1,"access-token"],"
|
|
18
|
+
return index.bootstrapLazy([["ls-3d-scene_8.cjs",[[1,"ls-status",{"sensorIds":[1,"sensor-ids"]}],[1,"ls-3d-scene",{"sensor500":[32],"sensor515":[32],"sensor514":[32]}],[1,"ls-counters"],[1,"ls-data",{"accessToken":[1,"access-token"],"installationId":[1,"installation-id"]}],[1,"ls-history"],[1,"ls-status-history"],[1,"ls-swimlane"],[1,"ls-status-item",{"sensorId":[2,"sensor-id"],"dataLabel":[32],"sensorData":[32],"timestamp":[32]}]]]], options);
|
|
19
19
|
});
|
|
@@ -25,6 +25,7 @@ const NAMESPACE = 'ednl-liftstatus-web-components';
|
|
|
25
25
|
let scopeId;
|
|
26
26
|
let hostTagName;
|
|
27
27
|
let isSvgMode = false;
|
|
28
|
+
let renderingRef = null;
|
|
28
29
|
let queuePending = false;
|
|
29
30
|
const win = typeof window !== 'undefined' ? window : {};
|
|
30
31
|
const doc = win.document || { head: {} };
|
|
@@ -234,6 +235,12 @@ const setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
|
|
|
234
235
|
classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
|
|
235
236
|
classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
|
|
236
237
|
}
|
|
238
|
+
else if (memberName === 'ref') {
|
|
239
|
+
// minifier will clean this up
|
|
240
|
+
if (newValue) {
|
|
241
|
+
newValue(elm);
|
|
242
|
+
}
|
|
243
|
+
}
|
|
237
244
|
else {
|
|
238
245
|
// Set property if it exists and it's not a SVG
|
|
239
246
|
const isComplex = isComplexType(newValue);
|
|
@@ -352,6 +359,7 @@ const removeVnodes = (vnodes, startIdx, endIdx, vnode, elm) => {
|
|
|
352
359
|
for (; startIdx <= endIdx; ++startIdx) {
|
|
353
360
|
if ((vnode = vnodes[startIdx])) {
|
|
354
361
|
elm = vnode.$elm$;
|
|
362
|
+
callNodeRefs(vnode);
|
|
355
363
|
// remove the vnode's element from the dom
|
|
356
364
|
elm.remove();
|
|
357
365
|
}
|
|
@@ -473,6 +481,12 @@ const patch = (oldVNode, newVNode) => {
|
|
|
473
481
|
elm.data = text;
|
|
474
482
|
}
|
|
475
483
|
};
|
|
484
|
+
const callNodeRefs = (vNode) => {
|
|
485
|
+
{
|
|
486
|
+
vNode.$attrs$ && vNode.$attrs$.ref && vNode.$attrs$.ref(null);
|
|
487
|
+
vNode.$children$ && vNode.$children$.map(callNodeRefs);
|
|
488
|
+
}
|
|
489
|
+
};
|
|
476
490
|
const renderVdom = (hostRef, renderFnResults) => {
|
|
477
491
|
const hostElm = hostRef.$hostElement$;
|
|
478
492
|
const oldVNode = hostRef.$vnode$ || newVNode(null, null);
|
|
@@ -569,6 +583,7 @@ const updateComponent = async (hostRef, instance, isInitialLoad) => {
|
|
|
569
583
|
};
|
|
570
584
|
const callRender = (hostRef, instance, elm) => {
|
|
571
585
|
try {
|
|
586
|
+
renderingRef = instance;
|
|
572
587
|
instance = instance.render() ;
|
|
573
588
|
{
|
|
574
589
|
hostRef.$flags$ &= ~16 /* isQueuedForUpdate */;
|
|
@@ -590,12 +605,15 @@ const callRender = (hostRef, instance, elm) => {
|
|
|
590
605
|
catch (e) {
|
|
591
606
|
consoleError(e, hostRef.$hostElement$);
|
|
592
607
|
}
|
|
608
|
+
renderingRef = null;
|
|
593
609
|
return null;
|
|
594
610
|
};
|
|
611
|
+
const getRenderingRef = () => renderingRef;
|
|
595
612
|
const postUpdateComponent = (hostRef) => {
|
|
596
613
|
const tagName = hostRef.$cmpMeta$.$tagName$;
|
|
597
614
|
const elm = hostRef.$hostElement$;
|
|
598
615
|
const endPostUpdate = createTime('postUpdate', tagName);
|
|
616
|
+
const instance = hostRef.$lazyInstance$ ;
|
|
599
617
|
const ancestorComponent = hostRef.$ancestorComponent$;
|
|
600
618
|
if (!(hostRef.$flags$ & 64 /* hasLoadedComponent */)) {
|
|
601
619
|
hostRef.$flags$ |= 64 /* hasLoadedComponent */;
|
|
@@ -603,6 +621,9 @@ const postUpdateComponent = (hostRef) => {
|
|
|
603
621
|
// DOM WRITE!
|
|
604
622
|
addHydratedFlag(elm);
|
|
605
623
|
}
|
|
624
|
+
{
|
|
625
|
+
safeCall(instance, 'componentDidLoad');
|
|
626
|
+
}
|
|
606
627
|
endPostUpdate();
|
|
607
628
|
{
|
|
608
629
|
hostRef.$onReadyResolve$(elm);
|
|
@@ -612,6 +633,9 @@ const postUpdateComponent = (hostRef) => {
|
|
|
612
633
|
}
|
|
613
634
|
}
|
|
614
635
|
else {
|
|
636
|
+
{
|
|
637
|
+
safeCall(instance, 'componentDidUpdate');
|
|
638
|
+
}
|
|
615
639
|
endPostUpdate();
|
|
616
640
|
}
|
|
617
641
|
// load events fire from bottom to top
|
|
@@ -630,6 +654,18 @@ const postUpdateComponent = (hostRef) => {
|
|
|
630
654
|
// ( •_•)>⌐■-■
|
|
631
655
|
// (⌐■_■)
|
|
632
656
|
};
|
|
657
|
+
const forceUpdate = (ref) => {
|
|
658
|
+
{
|
|
659
|
+
const hostRef = getHostRef(ref);
|
|
660
|
+
const isConnected = hostRef.$hostElement$.isConnected;
|
|
661
|
+
if (isConnected &&
|
|
662
|
+
(hostRef.$flags$ & (2 /* hasRendered */ | 16 /* isQueuedForUpdate */)) === 2 /* hasRendered */) {
|
|
663
|
+
scheduleUpdate(hostRef, false);
|
|
664
|
+
}
|
|
665
|
+
// Returns "true" when the forced update was successfully scheduled
|
|
666
|
+
return isConnected;
|
|
667
|
+
}
|
|
668
|
+
};
|
|
633
669
|
const appDidLoad = (who) => {
|
|
634
670
|
// on appload
|
|
635
671
|
// we have finish the first big initial render
|
|
@@ -983,6 +1019,10 @@ const bootstrapLazy = (lazyBundles, options = {}) => {
|
|
|
983
1019
|
// Fallback appLoad event
|
|
984
1020
|
endBootstrap();
|
|
985
1021
|
};
|
|
1022
|
+
const getAssetPath = (path) => {
|
|
1023
|
+
const assetUrl = new URL(path, plt.$resourcesUrl$);
|
|
1024
|
+
return assetUrl.origin !== win.location.origin ? assetUrl.href : assetUrl.pathname;
|
|
1025
|
+
};
|
|
986
1026
|
const hostRefs = new WeakMap();
|
|
987
1027
|
const getHostRef = (ref) => hostRefs.get(ref);
|
|
988
1028
|
const registerInstance = (lazyInstance, hostRef) => hostRefs.set((hostRef.$lazyInstance$ = lazyInstance), hostRef);
|
|
@@ -1068,6 +1108,9 @@ const writeTask = /*@__PURE__*/ queueTask(queueDomWrites, true);
|
|
|
1068
1108
|
|
|
1069
1109
|
exports.Host = Host;
|
|
1070
1110
|
exports.bootstrapLazy = bootstrapLazy;
|
|
1111
|
+
exports.forceUpdate = forceUpdate;
|
|
1112
|
+
exports.getAssetPath = getAssetPath;
|
|
1113
|
+
exports.getRenderingRef = getRenderingRef;
|
|
1071
1114
|
exports.h = h;
|
|
1072
1115
|
exports.promiseResolve = promiseResolve;
|
|
1073
1116
|
exports.registerInstance = registerInstance;
|
package/dist/cjs/loader.cjs.js
CHANGED
|
@@ -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-23750fdc.js');
|
|
6
6
|
|
|
7
7
|
/*
|
|
8
|
-
Stencil Client Patch Esm v2.
|
|
8
|
+
Stencil Client Patch Esm v2.9.0 | MIT Licensed | https://stenciljs.com
|
|
9
9
|
*/
|
|
10
10
|
const patchEsm = () => {
|
|
11
11
|
return index.promiseResolve();
|
|
@@ -14,7 +14,7 @@ const patchEsm = () => {
|
|
|
14
14
|
const defineCustomElements = (win, options) => {
|
|
15
15
|
if (typeof window === 'undefined') return Promise.resolve();
|
|
16
16
|
return patchEsm().then(() => {
|
|
17
|
-
return index.bootstrapLazy([["ls-3d-scene_8.cjs",[[1,"ls-status"],[1,"ls-3d-scene"],[1,"ls-counters"],[1,"ls-data",{"accessToken":[1,"access-token"],"
|
|
17
|
+
return index.bootstrapLazy([["ls-3d-scene_8.cjs",[[1,"ls-status",{"sensorIds":[1,"sensor-ids"]}],[1,"ls-3d-scene",{"sensor500":[32],"sensor515":[32],"sensor514":[32]}],[1,"ls-counters"],[1,"ls-data",{"accessToken":[1,"access-token"],"installationId":[1,"installation-id"]}],[1,"ls-history"],[1,"ls-status-history"],[1,"ls-swimlane"],[1,"ls-status-item",{"sensorId":[2,"sensor-id"],"dataLabel":[32],"sensorData":[32],"timestamp":[32]}]]]], options);
|
|
18
18
|
});
|
|
19
19
|
};
|
|
20
20
|
|