@vanelsas/baredom 0.1.11-alpha → 0.2.1-alpha

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 (59) hide show
  1. package/CHANGELOG.md +13 -0
  2. package/dist/base.js +231 -231
  3. package/dist/x-alert.js +9 -9
  4. package/dist/x-avatar-group.js +4 -4
  5. package/dist/x-avatar.js +17 -17
  6. package/dist/x-badge.js +11 -11
  7. package/dist/x-breadcrumbs.js +7 -7
  8. package/dist/x-button.js +13 -14
  9. package/dist/x-cancel-dialogue.js +14 -14
  10. package/dist/x-card.js +2 -2
  11. package/dist/x-chart.js +43 -43
  12. package/dist/x-checkbox.js +7 -7
  13. package/dist/x-chip.js +5 -5
  14. package/dist/x-collapse.js +11 -11
  15. package/dist/x-command-palette.js +15 -15
  16. package/dist/x-container.js +6 -6
  17. package/dist/x-context-menu.js +19 -19
  18. package/dist/x-copy.js +13 -13
  19. package/dist/x-currency-field.js +21 -21
  20. package/dist/x-date-picker.js +35 -35
  21. package/dist/x-divider.js +10 -10
  22. package/dist/x-drawer.js +5 -5
  23. package/dist/x-dropdown.js +6 -6
  24. package/dist/x-fieldset.js +5 -5
  25. package/dist/x-file-download.js +6 -6
  26. package/dist/x-form-field.js +14 -14
  27. package/dist/x-form.js +10 -10
  28. package/dist/x-grid.js +7 -7
  29. package/dist/x-menu-item.js +10 -10
  30. package/dist/x-menu.js +10 -10
  31. package/dist/x-modal.js +13 -13
  32. package/dist/x-navbar.js +12 -12
  33. package/dist/x-notification-center.js +5 -5
  34. package/dist/x-pagination.js +16 -16
  35. package/dist/x-popover.js +7 -7
  36. package/dist/x-progress-circle.js +9 -9
  37. package/dist/x-progress.js +8 -8
  38. package/dist/x-radio.js +9 -9
  39. package/dist/x-search-field.js +11 -11
  40. package/dist/x-select.js +10 -10
  41. package/dist/x-sidebar.js +24 -24
  42. package/dist/x-skeleton.js +5 -5
  43. package/dist/x-slider.js +8 -8
  44. package/dist/x-spacer.js +5 -5
  45. package/dist/x-spinner.js +5 -5
  46. package/dist/x-stat.js +8 -8
  47. package/dist/x-stepper.js +6 -6
  48. package/dist/x-switch.js +11 -11
  49. package/dist/x-tab.js +2 -2
  50. package/dist/x-table-cell.js +23 -23
  51. package/dist/x-table-row.js +5 -5
  52. package/dist/x-table.js +6 -6
  53. package/dist/x-tabs.js +6 -6
  54. package/dist/x-text-area.js +18 -18
  55. package/dist/x-timeline-item.js +11 -11
  56. package/dist/x-timeline.js +9 -9
  57. package/dist/x-toast.js +11 -11
  58. package/dist/x-toaster.js +1 -1
  59. package/package.json +1 -1
package/dist/x-toaster.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import { $APP, shadow$provide } from "./base.js";
2
2
  var so=function(a){a=typeof a==="string"?a.trim().toLowerCase():null;return $APP.Cc(ro,a)?a:"top-end"},to=function(a){return typeof a==="string"?(a=parseInt(a.trim(),10),$APP.p(isNaN(a))&&a>0?Math.floor(a):null):null},vo=function(a){if(!$APP.n($APP.l(a,"__xToasterRefs"))){var b=a.attachShadow({mode:"open"}),c=document.createElement("style"),d=document.createElement("slot");c.textContent=uo;b.appendChild(c);b.appendChild(d);a.__xToasterRefs=new $APP.P(null,2,[$APP.sh,b,$APP.Qh,d],null)}},yo=function(a){a=
3
3
  new $APP.P(null,3,[$APP.Ii,a.getAttribute("position"),wo,a.getAttribute("max-toasts"),$APP.dh,a.getAttribute("label")],null);var b=$APP.M(a),c=$APP.I(b,$APP.Ii);a=$APP.I(b,wo);b=$APP.I(b,$APP.dh);c=so(c);a=to(a);return new $APP.P(null,3,[$APP.aj,c,xo,$APP.n(a)?a:5,$APP.W,typeof b==="string"&&$APP.N(b.trim(),"")?b:"Notifications"],null)},zo=function(a){var b=yo(a);if($APP.N($APP.l(a,"__xToasterModel"),b)){b=$APP.M(b);var c=$APP.I(b,$APP.aj),d=$APP.I(b,$APP.W);vo(a);a.setAttribute("role","region");
4
- a.setAttribute("aria-label",d);a.setAttribute("data-position",c);a.__xToasterModel=b}},Ao=function(a){function b(c){var d=c.detail;if($APP.N($APP.l(d,"reason"),"toaster-remove")){c.preventDefault();var e=$APP.l(d,"type");var f=$APP.l(d,"reason"),h=$APP.l(d,"heading");d=$APP.l(d,"message");e=$APP.xg(new $APP.P(null,4,[$APP.Z,$APP.n(e)?e:"info",$APP.xh,$APP.n(f)?f:"",$APP.Lh,$APP.n(h)?h:"",$APP.Lg,$APP.n(d)?d:""],null));e=new CustomEvent("x-toaster-dismiss",{detail:e,bubbles:!0,composed:!0,cancelable:!0});
4
+ a.setAttribute("aria-label",d);a.setAttribute("data-position",c);a.__xToasterModel=b}},Ao=function(a){function b(c){var d=c.detail;if($APP.N($APP.l(d,"reason"),"toaster-remove")){c.preventDefault();var e=$APP.l(d,"type");var g=$APP.l(d,"reason"),h=$APP.l(d,"heading");d=$APP.l(d,"message");e=$APP.xg(new $APP.P(null,4,[$APP.Z,$APP.n(e)?e:"info",$APP.xh,$APP.n(g)?g:"",$APP.Lh,$APP.n(h)?h:"",$APP.Lg,$APP.n(d)?d:""],null));e=new CustomEvent("x-toaster-dismiss",{detail:e,bubbles:!0,composed:!0,cancelable:!0});
5
5
  e=a.dispatchEvent(e);$APP.n(e)&&c.target.dismiss("toaster-remove")}return null}a.addEventListener("x-toast-dismiss",b);$APP.ma(a,"__xToasterHandlers",{dismiss:b})},Bo=function(a){var b=$APP.l(a,"__xToasterHandlers");$APP.n(b)&&(b=$APP.l(b,"dismiss"),$APP.n(b)&&a.removeEventListener("x-toast-dismiss",b));a.__xToasterHandlers=null},Co=function(a){a=a.prototype;Object.defineProperty(a,"position",{get:function(){return so(this.getAttribute("position"))},set:function(b){return $APP.n(b)?this.setAttribute("position",
6
6
  ""+$APP.S.g(b)):this.removeAttribute("position")},enumerable:!0,configurable:!0});Object.defineProperty(a,"label",{get:function(){var b=this.getAttribute("label");return $APP.n(b)?b:"Notifications"},set:function(b){return $APP.n($APP.n(b)?$APP.N(b,""):b)?this.setAttribute("label",""+$APP.S.g(b)):this.removeAttribute("label")},enumerable:!0,configurable:!0});Object.defineProperty(a,"maxToasts",{get:function(){var b=to(this.getAttribute("max-toasts"));return $APP.n(b)?b:5},set:function(b){return b==
7
7
  null?this.removeAttribute("max-toasts"):this.setAttribute("max-toasts",""+$APP.S.g(Math.floor(b)))},enumerable:!0,configurable:!0});Object.defineProperty(a,"toast",{value:function(b){b=$APP.n(b)?b:{};var c=$APP.l(this,"__xToasterModel");c=$APP.n(c)?c:yo(this);var d=xo.g(c);c=this.querySelectorAll("x-toast");var e=c.length;if(e>=d)for(d=e-d- -1,e=0;;)if(e<d)c[e].dismiss("toaster-remove"),e+=1;else break;c=document.createElement("x-toast");d=$APP.l(b,"type");$APP.n(d)&&c.setAttribute("type",d);d=$APP.l(b,
package/package.json CHANGED
@@ -259,6 +259,6 @@
259
259
  "shadow-cljs" : "^3.3.6"
260
260
  },
261
261
  "files" : [ "dist", "README.md", "LICENSE", "CHANGELOG.md" ],
262
- "version" : "0.1.11-alpha",
262
+ "version" : "0.2.1-alpha",
263
263
  "sideEffects" : [ "./dist/*.js" ]
264
264
  }