dash-button-web 0.0.23 → 0.0.24
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/dash-button.cjs.entry.js +74 -31
- package/dist/cjs/dash-button.cjs.entry.js.map +1 -1
- package/dist/cjs/{index-87d4993d.js → index-bc7ebbee.js} +25 -1
- package/dist/cjs/index-bc7ebbee.js.map +1 -0
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/web-compnont.cjs.js +2 -2
- package/dist/collection/components/my-component/dash-button.css +224 -0
- package/dist/collection/components/my-component/dash-button.js +75 -31
- package/dist/collection/components/my-component/dash-button.js.map +1 -1
- package/dist/components/dash-button.js +75 -31
- package/dist/components/dash-button.js.map +1 -1
- package/dist/esm/dash-button.entry.js +74 -31
- package/dist/esm/dash-button.entry.js.map +1 -1
- package/dist/esm/{index-e3df5eaf.js → index-51aa24d3.js} +25 -1
- package/dist/esm/index-51aa24d3.js.map +1 -0
- package/dist/esm/loader.js +3 -3
- package/dist/esm/web-compnont.js +3 -3
- package/dist/types/components/my-component/dash-button.d.ts +17 -2
- package/dist/types/components.d.ts +1 -1
- package/dist/web-compnont/p-06623215.js +3 -0
- package/dist/web-compnont/p-06623215.js.map +1 -0
- package/dist/web-compnont/{p-2e8505f3.entry.js → p-55f91c48.entry.js} +3 -3
- package/dist/web-compnont/p-55f91c48.entry.js.map +1 -0
- package/dist/web-compnont/web-compnont.esm.js +1 -1
- package/dist/web-compnont/web-compnont.esm.js.map +1 -1
- package/package.json +1 -1
- package/readme.md +18 -0
- package/dist/cjs/index-87d4993d.js.map +0 -1
- package/dist/esm/index-e3df5eaf.js.map +0 -1
- package/dist/web-compnont/p-2e8505f3.entry.js.map +0 -1
- package/dist/web-compnont/p-c1ec12fe.js +0 -3
- package/dist/web-compnont/p-c1ec12fe.js.map +0 -1
|
@@ -387,6 +387,12 @@ const setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
|
|
|
387
387
|
}
|
|
388
388
|
else if (memberName === 'key')
|
|
389
389
|
;
|
|
390
|
+
else if (memberName === 'ref') {
|
|
391
|
+
// minifier will clean this up
|
|
392
|
+
if (newValue) {
|
|
393
|
+
newValue(elm);
|
|
394
|
+
}
|
|
395
|
+
}
|
|
390
396
|
else if ((!isProp ) &&
|
|
391
397
|
memberName[0] === 'o' &&
|
|
392
398
|
memberName[1] === 'n') {
|
|
@@ -619,6 +625,7 @@ const removeVnodes = (vnodes, startIdx, endIdx) => {
|
|
|
619
625
|
const vnode = vnodes[index];
|
|
620
626
|
if (vnode) {
|
|
621
627
|
const elm = vnode.$elm$;
|
|
628
|
+
nullifyVNodeRefs(vnode);
|
|
622
629
|
if (elm) {
|
|
623
630
|
// remove the vnode's element from the dom
|
|
624
631
|
elm.remove();
|
|
@@ -927,6 +934,19 @@ const patch = (oldVNode, newVNode, isInitialRender = false) => {
|
|
|
927
934
|
elm.data = text;
|
|
928
935
|
}
|
|
929
936
|
};
|
|
937
|
+
/**
|
|
938
|
+
* 'Nullify' any VDom `ref` callbacks on a VDom node or its children by calling
|
|
939
|
+
* them with `null`. This signals that the DOM element corresponding to the VDom
|
|
940
|
+
* node has been removed from the DOM.
|
|
941
|
+
*
|
|
942
|
+
* @param vNode a virtual DOM node
|
|
943
|
+
*/
|
|
944
|
+
const nullifyVNodeRefs = (vNode) => {
|
|
945
|
+
{
|
|
946
|
+
vNode.$attrs$ && vNode.$attrs$.ref && vNode.$attrs$.ref(null);
|
|
947
|
+
vNode.$children$ && vNode.$children$.map(nullifyVNodeRefs);
|
|
948
|
+
}
|
|
949
|
+
};
|
|
930
950
|
/**
|
|
931
951
|
* The main entry point for Stencil's virtual DOM-based rendering engine
|
|
932
952
|
*
|
|
@@ -1159,7 +1179,11 @@ const postUpdateComponent = (hostRef) => {
|
|
|
1159
1179
|
const tagName = hostRef.$cmpMeta$.$tagName$;
|
|
1160
1180
|
const elm = hostRef.$hostElement$;
|
|
1161
1181
|
const endPostUpdate = createTime('postUpdate', tagName);
|
|
1182
|
+
const instance = hostRef.$lazyInstance$ ;
|
|
1162
1183
|
const ancestorComponent = hostRef.$ancestorComponent$;
|
|
1184
|
+
{
|
|
1185
|
+
safeCall(instance, 'componentDidRender');
|
|
1186
|
+
}
|
|
1163
1187
|
if (!(hostRef.$flags$ & 64 /* HOST_FLAGS.hasLoadedComponent */)) {
|
|
1164
1188
|
hostRef.$flags$ |= 64 /* HOST_FLAGS.hasLoadedComponent */;
|
|
1165
1189
|
{
|
|
@@ -1790,4 +1814,4 @@ exports.promiseResolve = promiseResolve;
|
|
|
1790
1814
|
exports.registerInstance = registerInstance;
|
|
1791
1815
|
exports.setNonce = setNonce;
|
|
1792
1816
|
|
|
1793
|
-
//# sourceMappingURL=index-
|
|
1817
|
+
//# sourceMappingURL=index-bc7ebbee.js.map
|