ednl-liftstatus-web-components 1.2.0 → 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 +2 -2
- package/dist/cjs/{index-d739056e.js → index-23750fdc.js} +26 -1
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/ls-3d-scene_8.cjs.entry.js +51365 -295
- 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 +38 -9
- package/dist/collection/components/ls-history/ls-history.js +1 -1
- package/dist/collection/components/ls-status/ls-status.js +3 -3
- package/dist/custom-elements/index.js +51364 -294
- 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 +2 -2
- package/dist/esm/{index-d80055d5.js → index-558a910b.js} +26 -2
- package/dist/esm/loader.js +2 -2
- package/dist/esm/ls-3d-scene_8.entry.js +51365 -295
- 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 +8 -3
- package/dist/types/components.d.ts +8 -0
- package/package.json +6 -2
- package/dist/ednl-liftstatus-web-components/p-b45f55a0.js +0 -1
- package/dist/ednl-liftstatus-web-components/p-f829335e.entry.js +0 -2
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
const index = require('./index-
|
|
3
|
+
const index = require('./index-23750fdc.js');
|
|
4
4
|
|
|
5
5
|
/*
|
|
6
6
|
Stencil Client Patch Browser v2.9.0 | MIT Licensed | https://stenciljs.com
|
|
@@ -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",{"sensorIds":[1,"sensor-ids"]}],[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
|
});
|
|
@@ -235,6 +235,12 @@ const setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
|
|
|
235
235
|
classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
|
|
236
236
|
classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
|
|
237
237
|
}
|
|
238
|
+
else if (memberName === 'ref') {
|
|
239
|
+
// minifier will clean this up
|
|
240
|
+
if (newValue) {
|
|
241
|
+
newValue(elm);
|
|
242
|
+
}
|
|
243
|
+
}
|
|
238
244
|
else {
|
|
239
245
|
// Set property if it exists and it's not a SVG
|
|
240
246
|
const isComplex = isComplexType(newValue);
|
|
@@ -353,6 +359,7 @@ const removeVnodes = (vnodes, startIdx, endIdx, vnode, elm) => {
|
|
|
353
359
|
for (; startIdx <= endIdx; ++startIdx) {
|
|
354
360
|
if ((vnode = vnodes[startIdx])) {
|
|
355
361
|
elm = vnode.$elm$;
|
|
362
|
+
callNodeRefs(vnode);
|
|
356
363
|
// remove the vnode's element from the dom
|
|
357
364
|
elm.remove();
|
|
358
365
|
}
|
|
@@ -474,6 +481,12 @@ const patch = (oldVNode, newVNode) => {
|
|
|
474
481
|
elm.data = text;
|
|
475
482
|
}
|
|
476
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
|
+
};
|
|
477
490
|
const renderVdom = (hostRef, renderFnResults) => {
|
|
478
491
|
const hostElm = hostRef.$hostElement$;
|
|
479
492
|
const oldVNode = hostRef.$vnode$ || newVNode(null, null);
|
|
@@ -571,7 +584,7 @@ const updateComponent = async (hostRef, instance, isInitialLoad) => {
|
|
|
571
584
|
const callRender = (hostRef, instance, elm) => {
|
|
572
585
|
try {
|
|
573
586
|
renderingRef = instance;
|
|
574
|
-
instance = instance.render
|
|
587
|
+
instance = instance.render() ;
|
|
575
588
|
{
|
|
576
589
|
hostRef.$flags$ &= ~16 /* isQueuedForUpdate */;
|
|
577
590
|
}
|
|
@@ -600,6 +613,7 @@ const postUpdateComponent = (hostRef) => {
|
|
|
600
613
|
const tagName = hostRef.$cmpMeta$.$tagName$;
|
|
601
614
|
const elm = hostRef.$hostElement$;
|
|
602
615
|
const endPostUpdate = createTime('postUpdate', tagName);
|
|
616
|
+
const instance = hostRef.$lazyInstance$ ;
|
|
603
617
|
const ancestorComponent = hostRef.$ancestorComponent$;
|
|
604
618
|
if (!(hostRef.$flags$ & 64 /* hasLoadedComponent */)) {
|
|
605
619
|
hostRef.$flags$ |= 64 /* hasLoadedComponent */;
|
|
@@ -607,6 +621,9 @@ const postUpdateComponent = (hostRef) => {
|
|
|
607
621
|
// DOM WRITE!
|
|
608
622
|
addHydratedFlag(elm);
|
|
609
623
|
}
|
|
624
|
+
{
|
|
625
|
+
safeCall(instance, 'componentDidLoad');
|
|
626
|
+
}
|
|
610
627
|
endPostUpdate();
|
|
611
628
|
{
|
|
612
629
|
hostRef.$onReadyResolve$(elm);
|
|
@@ -616,6 +633,9 @@ const postUpdateComponent = (hostRef) => {
|
|
|
616
633
|
}
|
|
617
634
|
}
|
|
618
635
|
else {
|
|
636
|
+
{
|
|
637
|
+
safeCall(instance, 'componentDidUpdate');
|
|
638
|
+
}
|
|
619
639
|
endPostUpdate();
|
|
620
640
|
}
|
|
621
641
|
// load events fire from bottom to top
|
|
@@ -999,6 +1019,10 @@ const bootstrapLazy = (lazyBundles, options = {}) => {
|
|
|
999
1019
|
// Fallback appLoad event
|
|
1000
1020
|
endBootstrap();
|
|
1001
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
|
+
};
|
|
1002
1026
|
const hostRefs = new WeakMap();
|
|
1003
1027
|
const getHostRef = (ref) => hostRefs.get(ref);
|
|
1004
1028
|
const registerInstance = (lazyInstance, hostRef) => hostRefs.set((hostRef.$lazyInstance$ = lazyInstance), hostRef);
|
|
@@ -1085,6 +1109,7 @@ const writeTask = /*@__PURE__*/ queueTask(queueDomWrites, true);
|
|
|
1085
1109
|
exports.Host = Host;
|
|
1086
1110
|
exports.bootstrapLazy = bootstrapLazy;
|
|
1087
1111
|
exports.forceUpdate = forceUpdate;
|
|
1112
|
+
exports.getAssetPath = getAssetPath;
|
|
1088
1113
|
exports.getRenderingRef = getRenderingRef;
|
|
1089
1114
|
exports.h = h;
|
|
1090
1115
|
exports.promiseResolve = promiseResolve;
|
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-23750fdc.js');
|
|
6
6
|
|
|
7
7
|
/*
|
|
8
8
|
Stencil Client Patch Esm v2.9.0 | MIT Licensed | https://stenciljs.com
|
|
@@ -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",{"sensorIds":[1,"sensor-ids"]}],[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
|
|