dash-button-web 0.0.4 → 0.0.5
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 +95 -31
- package/dist/cjs/dash-button.cjs.entry.js.map +1 -1
- package/dist/cjs/{index-d91975cd.js → index-991e75df.js} +13 -13
- package/dist/cjs/index-991e75df.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 +10 -0
- package/dist/collection/components/my-component/dash-button.js +130 -29
- package/dist/collection/components/my-component/dash-button.js.map +1 -1
- package/dist/components/dash-button.js +98 -31
- package/dist/components/dash-button.js.map +1 -1
- package/dist/esm/dash-button.entry.js +95 -31
- package/dist/esm/dash-button.entry.js.map +1 -1
- package/dist/esm/{index-1c7e21da.js → index-8310c457.js} +13 -13
- package/dist/{web-compnont/p-aa686508.js.map → esm/index-8310c457.js.map} +1 -1
- 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 +6 -2
- package/dist/types/components.d.ts +4 -0
- package/dist/web-compnont/p-4bd42d49.js +3 -0
- package/dist/web-compnont/p-4bd42d49.js.map +1 -0
- package/dist/web-compnont/{p-ccad140c.entry.js → p-89ceb862.entry.js} +3 -3
- package/dist/web-compnont/p-89ceb862.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/dist/cjs/index-d91975cd.js.map +0 -1
- package/dist/esm/index-1c7e21da.js.map +0 -1
- package/dist/web-compnont/p-aa686508.js +0 -3
- package/dist/web-compnont/p-ccad140c.entry.js.map +0 -1
|
@@ -1002,6 +1002,16 @@ const dispatchHooks = (hostRef, isInitialLoad) => {
|
|
|
1002
1002
|
// 2. If all functions added to the queue are asynchronous they'll all be
|
|
1003
1003
|
// called in order after `dispatchHooks` exits.
|
|
1004
1004
|
let maybePromise;
|
|
1005
|
+
if (isInitialLoad) {
|
|
1006
|
+
{
|
|
1007
|
+
// If `componentWillLoad` returns a `Promise` then we want to wait on
|
|
1008
|
+
// whatever's going on in that `Promise` before we launch into
|
|
1009
|
+
// rendering the component, doing other lifecycle stuff, etc. So
|
|
1010
|
+
// in that case we assign the returned promise to the variable we
|
|
1011
|
+
// declared above to hold a possible 'queueing' Promise
|
|
1012
|
+
maybePromise = safeCall(instance, 'componentWillLoad');
|
|
1013
|
+
}
|
|
1014
|
+
}
|
|
1005
1015
|
endSchedule();
|
|
1006
1016
|
return enqueue(maybePromise, () => updateComponent(hostRef, instance, isInitialLoad));
|
|
1007
1017
|
};
|
|
@@ -1124,11 +1134,7 @@ const postUpdateComponent = (hostRef) => {
|
|
|
1124
1134
|
const tagName = hostRef.$cmpMeta$.$tagName$;
|
|
1125
1135
|
const elm = hostRef.$hostElement$;
|
|
1126
1136
|
const endPostUpdate = createTime('postUpdate', tagName);
|
|
1127
|
-
const instance = hostRef.$lazyInstance$ ;
|
|
1128
1137
|
const ancestorComponent = hostRef.$ancestorComponent$;
|
|
1129
|
-
{
|
|
1130
|
-
safeCall(instance, 'componentDidRender');
|
|
1131
|
-
}
|
|
1132
1138
|
if (!(hostRef.$flags$ & 64 /* HOST_FLAGS.hasLoadedComponent */)) {
|
|
1133
1139
|
hostRef.$flags$ |= 64 /* HOST_FLAGS.hasLoadedComponent */;
|
|
1134
1140
|
{
|
|
@@ -1401,7 +1407,6 @@ const initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
|
1401
1407
|
hostRef.$flags$ &= ~8 /* HOST_FLAGS.isConstructingInstance */;
|
|
1402
1408
|
}
|
|
1403
1409
|
endNewInstance();
|
|
1404
|
-
fireConnectedCallback(hostRef.$lazyInstance$);
|
|
1405
1410
|
}
|
|
1406
1411
|
if (Cstr.style) {
|
|
1407
1412
|
// this component has styles but we haven't registered them yet
|
|
@@ -1431,9 +1436,6 @@ const initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
|
1431
1436
|
}
|
|
1432
1437
|
};
|
|
1433
1438
|
const fireConnectedCallback = (instance) => {
|
|
1434
|
-
{
|
|
1435
|
-
safeCall(instance, 'connectedCallback');
|
|
1436
|
-
}
|
|
1437
1439
|
};
|
|
1438
1440
|
const connectedCallback = (elm) => {
|
|
1439
1441
|
if ((plt.$flags$ & 1 /* PLATFORM_FLAGS.isTmpDisconnected */) === 0) {
|
|
@@ -1475,11 +1477,9 @@ const connectedCallback = (elm) => {
|
|
|
1475
1477
|
}
|
|
1476
1478
|
else {
|
|
1477
1479
|
// fire off connectedCallback() on component instance
|
|
1478
|
-
if (hostRef === null || hostRef === void 0 ? void 0 : hostRef.$lazyInstance$)
|
|
1479
|
-
fireConnectedCallback(hostRef.$lazyInstance$);
|
|
1480
|
-
}
|
|
1480
|
+
if (hostRef === null || hostRef === void 0 ? void 0 : hostRef.$lazyInstance$) ;
|
|
1481
1481
|
else if (hostRef === null || hostRef === void 0 ? void 0 : hostRef.$onReadyPromise$) {
|
|
1482
|
-
hostRef.$onReadyPromise$.then(() => fireConnectedCallback(
|
|
1482
|
+
hostRef.$onReadyPromise$.then(() => fireConnectedCallback());
|
|
1483
1483
|
}
|
|
1484
1484
|
}
|
|
1485
1485
|
endConnected();
|
|
@@ -1765,4 +1765,4 @@ exports.promiseResolve = promiseResolve;
|
|
|
1765
1765
|
exports.registerInstance = registerInstance;
|
|
1766
1766
|
exports.setNonce = setNonce;
|
|
1767
1767
|
|
|
1768
|
-
//# sourceMappingURL=index-
|
|
1768
|
+
//# sourceMappingURL=index-991e75df.js.map
|