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.
Files changed (31) hide show
  1. package/dist/cjs/dash-button.cjs.entry.js +9 -7
  2. package/dist/cjs/dash-button.cjs.entry.js.map +1 -1
  3. package/dist/cjs/{index-065225eb.js → index-ad267eeb.js} +26 -1
  4. package/dist/cjs/index-ad267eeb.js.map +1 -0
  5. package/dist/cjs/loader.cjs.js +2 -2
  6. package/dist/cjs/web-compnont.cjs.js +2 -2
  7. package/dist/collection/components/my-component/dash-button.js +44 -6
  8. package/dist/collection/components/my-component/dash-button.js.map +1 -1
  9. package/dist/components/dash-button.js +10 -6
  10. package/dist/components/dash-button.js.map +1 -1
  11. package/dist/esm/dash-button.entry.js +9 -7
  12. package/dist/esm/dash-button.entry.js.map +1 -1
  13. package/dist/esm/{index-2b1034cf.js → index-46149754.js} +26 -1
  14. package/dist/esm/index-46149754.js.map +1 -0
  15. package/dist/esm/loader.js +3 -3
  16. package/dist/esm/web-compnont.js +3 -3
  17. package/dist/types/components/my-component/dash-button.d.ts +2 -0
  18. package/dist/types/components.d.ts +4 -0
  19. package/dist/web-compnont/{p-ed06c47d.entry.js → p-0816eafe.entry.js} +3 -3
  20. package/dist/web-compnont/p-0816eafe.entry.js.map +1 -0
  21. package/dist/web-compnont/p-db53c3e9.js +3 -0
  22. package/dist/web-compnont/p-db53c3e9.js.map +1 -0
  23. package/dist/web-compnont/web-compnont.esm.js +1 -1
  24. package/dist/web-compnont/web-compnont.esm.js.map +1 -1
  25. package/package.json +1 -1
  26. package/readme.md +13 -1
  27. package/dist/cjs/index-065225eb.js.map +0 -1
  28. package/dist/esm/index-2b1034cf.js.map +0 -1
  29. package/dist/web-compnont/p-bdb5725e.js +0 -3
  30. package/dist/web-compnont/p-bdb5725e.js.map +0 -1
  31. 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-2b1034cf.js.map
1770
+ //# sourceMappingURL=index-46149754.js.map