dash-button-web 0.0.12 → 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 +9 -7
- 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.js +44 -6
- package/dist/collection/components/my-component/dash-button.js.map +1 -1
- package/dist/components/dash-button.js +10 -6
- package/dist/components/dash-button.js.map +1 -1
- package/dist/esm/dash-button.entry.js +9 -7
- 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-ed06c47d.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-bdb5725e.js +0 -3
- package/dist/web-compnont/p-bdb5725e.js.map +0 -1
- package/dist/web-compnont/p-ed06c47d.entry.js.map +0 -1
|
@@ -342,6 +342,31 @@ const setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
|
|
|
342
342
|
classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
|
|
343
343
|
classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
|
|
344
344
|
}
|
|
345
|
+
else if (memberName === 'style') {
|
|
346
|
+
// update style attribute, css properties and values
|
|
347
|
+
{
|
|
348
|
+
for (const prop in oldValue) {
|
|
349
|
+
if (!newValue || newValue[prop] == null) {
|
|
350
|
+
if (prop.includes('-')) {
|
|
351
|
+
elm.style.removeProperty(prop);
|
|
352
|
+
}
|
|
353
|
+
else {
|
|
354
|
+
elm.style[prop] = '';
|
|
355
|
+
}
|
|
356
|
+
}
|
|
357
|
+
}
|
|
358
|
+
}
|
|
359
|
+
for (const prop in newValue) {
|
|
360
|
+
if (!oldValue || newValue[prop] !== oldValue[prop]) {
|
|
361
|
+
if (prop.includes('-')) {
|
|
362
|
+
elm.style.setProperty(prop, newValue[prop]);
|
|
363
|
+
}
|
|
364
|
+
else {
|
|
365
|
+
elm.style[prop] = newValue[prop];
|
|
366
|
+
}
|
|
367
|
+
}
|
|
368
|
+
}
|
|
369
|
+
}
|
|
345
370
|
else if (memberName === 'key')
|
|
346
371
|
;
|
|
347
372
|
else if ((!isProp ) &&
|
|
@@ -1742,4 +1767,4 @@ const writeTask = /*@__PURE__*/ queueTask(queueDomWrites, true);
|
|
|
1742
1767
|
|
|
1743
1768
|
export { bootstrapLazy as b, getElement as g, h, promiseResolve as p, registerInstance as r, setNonce as s };
|
|
1744
1769
|
|
|
1745
|
-
//# sourceMappingURL=index-
|
|
1770
|
+
//# sourceMappingURL=index-46149754.js.map
|