dash-button-web 0.0.11 → 0.0.13
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 +10 -8
- package/dist/cjs/dash-button.cjs.entry.js.map +1 -1
- package/dist/cjs/{index-065225eb.js → index-ad267eeb.js} +26 -1
- package/dist/cjs/index-ad267eeb.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 +11 -4
- package/dist/collection/components/my-component/dash-button.js +44 -6
- package/dist/collection/components/my-component/dash-button.js.map +1 -1
- package/dist/components/dash-button.js +11 -7
- package/dist/components/dash-button.js.map +1 -1
- package/dist/esm/dash-button.entry.js +10 -8
- package/dist/esm/dash-button.entry.js.map +1 -1
- package/dist/esm/{index-2b1034cf.js → index-46149754.js} +26 -1
- package/dist/esm/index-46149754.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 +2 -0
- package/dist/types/components.d.ts +4 -0
- package/dist/web-compnont/{p-68d3596c.entry.js → p-0816eafe.entry.js} +3 -3
- package/dist/web-compnont/p-0816eafe.entry.js.map +1 -0
- package/dist/web-compnont/p-db53c3e9.js +3 -0
- package/dist/web-compnont/p-db53c3e9.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 +13 -1
- package/dist/cjs/index-065225eb.js.map +0 -1
- package/dist/esm/index-2b1034cf.js.map +0 -1
- package/dist/web-compnont/p-68d3596c.entry.js.map +0 -1
- package/dist/web-compnont/p-bdb5725e.js +0 -3
- package/dist/web-compnont/p-bdb5725e.js.map +0 -1
|
@@ -364,6 +364,31 @@ const setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
|
|
|
364
364
|
classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
|
|
365
365
|
classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
|
|
366
366
|
}
|
|
367
|
+
else if (memberName === 'style') {
|
|
368
|
+
// update style attribute, css properties and values
|
|
369
|
+
{
|
|
370
|
+
for (const prop in oldValue) {
|
|
371
|
+
if (!newValue || newValue[prop] == null) {
|
|
372
|
+
if (prop.includes('-')) {
|
|
373
|
+
elm.style.removeProperty(prop);
|
|
374
|
+
}
|
|
375
|
+
else {
|
|
376
|
+
elm.style[prop] = '';
|
|
377
|
+
}
|
|
378
|
+
}
|
|
379
|
+
}
|
|
380
|
+
}
|
|
381
|
+
for (const prop in newValue) {
|
|
382
|
+
if (!oldValue || newValue[prop] !== oldValue[prop]) {
|
|
383
|
+
if (prop.includes('-')) {
|
|
384
|
+
elm.style.setProperty(prop, newValue[prop]);
|
|
385
|
+
}
|
|
386
|
+
else {
|
|
387
|
+
elm.style[prop] = newValue[prop];
|
|
388
|
+
}
|
|
389
|
+
}
|
|
390
|
+
}
|
|
391
|
+
}
|
|
367
392
|
else if (memberName === 'key')
|
|
368
393
|
;
|
|
369
394
|
else if ((!isProp ) &&
|
|
@@ -1769,4 +1794,4 @@ exports.promiseResolve = promiseResolve;
|
|
|
1769
1794
|
exports.registerInstance = registerInstance;
|
|
1770
1795
|
exports.setNonce = setNonce;
|
|
1771
1796
|
|
|
1772
|
-
//# sourceMappingURL=index-
|
|
1797
|
+
//# sourceMappingURL=index-ad267eeb.js.map
|