@covalent/components 8.18.1 → 8.19.1

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 (158) hide show
  1. package/action-ribbon.js +1 -1
  2. package/action-ribbon.mjs +4 -3
  3. package/alert.js +1 -1
  4. package/alert.mjs +4 -3
  5. package/app-shell.js +3 -3
  6. package/app-shell.mjs +9 -8
  7. package/async-directive-4a34f75e.js +5 -0
  8. package/async-directive-99a01ec7.mjs +78 -0
  9. package/badge.js +1 -1
  10. package/badge.mjs +4 -3
  11. package/button.js +1 -1
  12. package/button.mjs +10 -9
  13. package/card.js +1 -1
  14. package/card.mjs +14 -13
  15. package/check-list-item.js +1 -1
  16. package/check-list-item.mjs +8 -7
  17. package/checkbox.js +1 -1
  18. package/checkbox.mjs +16 -15
  19. package/{chip-ebd0a88e.js → chip-c65a4549.js} +1 -1
  20. package/{chip-2d0fd3f0.mjs → chip-fb0ea5c5.mjs} +1 -1
  21. package/chip-set.js +2 -2
  22. package/chip-set.mjs +46 -45
  23. package/chip.js +1 -1
  24. package/chip.mjs +5 -4
  25. package/circular-progress.js +1 -1
  26. package/circular-progress.mjs +5 -4
  27. package/class-map-0a4c6ca9.js +5 -0
  28. package/class-map-6e504a9a.mjs +38 -0
  29. package/code-editor/code-editor.d.ts +58 -0
  30. package/code-editor/code-editor.d.ts.map +1 -0
  31. package/code-editor/code-editor.theme.d.ts +61 -0
  32. package/code-editor/code-editor.theme.d.ts.map +1 -0
  33. package/code-editor-8064b078.mjs +61268 -0
  34. package/code-editor-f85b0a6b.js +662 -0
  35. package/code-editor.js +1 -0
  36. package/code-editor.mjs +10 -0
  37. package/code-snippet.js +2 -2
  38. package/code-snippet.mjs +5 -4
  39. package/css-5dd354ac.mjs +186 -0
  40. package/css-9be95551.js +8 -0
  41. package/{dialog-c9dbe94d.mjs → dialog-16aad066.mjs} +1 -1
  42. package/{dialog-82b03745.js → dialog-86192b9a.js} +1 -1
  43. package/dialog.js +1 -1
  44. package/dialog.mjs +5 -4
  45. package/directive-1186bc23.js +5 -0
  46. package/directive-daf4e9b6.mjs +27 -0
  47. package/drawer.js +1 -1
  48. package/drawer.mjs +5 -4
  49. package/formfield.js +3 -3
  50. package/formfield.mjs +4 -3
  51. package/html-5fd3a841.mjs +286 -0
  52. package/html-73c71ff4.js +6 -0
  53. package/icon-button-toggle.js +1 -1
  54. package/icon-button-toggle.mjs +6 -5
  55. package/icon-button.js +1 -1
  56. package/icon-button.mjs +6 -5
  57. package/icon-check-toggle.js +1 -1
  58. package/icon-check-toggle.mjs +7 -6
  59. package/icon-radio-toggle.js +3 -3
  60. package/icon-radio-toggle.mjs +7 -6
  61. package/index.d.ts +2 -0
  62. package/index.d.ts.map +1 -1
  63. package/index.js +1 -1
  64. package/index.mjs +123 -117
  65. package/javascript-204f9122.js +6 -0
  66. package/javascript-85aeeec4.mjs +80 -0
  67. package/linear-progress.js +1 -1
  68. package/linear-progress.mjs +5 -4
  69. package/list-item.js +2 -2
  70. package/list-item.mjs +7 -6
  71. package/list.js +1 -1
  72. package/list.mjs +8 -7
  73. package/markdown-9b448c46.mjs +202 -0
  74. package/markdown-eae8e3ba.js +6 -0
  75. package/menu.js +5 -5
  76. package/menu.mjs +9 -8
  77. package/{mwc-checkbox-base-c40d16d2.mjs → mwc-checkbox-base-02b4eb91.mjs} +2 -2
  78. package/{mwc-checkbox-base-3d8c9549.js → mwc-checkbox-base-935d9566.js} +1 -1
  79. package/{mwc-drawer-base-798b11f8.js → mwc-drawer-base-bbae43c3.js} +1 -1
  80. package/{mwc-drawer-base-9c77129c.mjs → mwc-drawer-base-ca75f41f.mjs} +1 -1
  81. package/{mwc-line-ripple-directive-a6b39a3c.js → mwc-line-ripple-directive-40145003.js} +14 -14
  82. package/{mwc-line-ripple-directive-f9dd7fe3.mjs → mwc-line-ripple-directive-aabd8778.mjs} +6 -5
  83. package/{mwc-list-base-400b00e2.js → mwc-list-base-22616d0a.js} +1 -1
  84. package/{mwc-list-base-495cbb3b.mjs → mwc-list-base-402e1d8e.mjs} +1 -1
  85. package/{mwc-list-item-base-297d86b0.js → mwc-list-item-base-06d93e6e.js} +1 -1
  86. package/{mwc-list-item-base-6449e812.mjs → mwc-list-item-base-3c6a3bfb.mjs} +2 -2
  87. package/{mwc-menu-base-9704207e.mjs → mwc-menu-base-04586160.mjs} +3 -3
  88. package/{mwc-menu-base-c75ca473.js → mwc-menu-base-08f54c38.js} +1 -1
  89. package/{mwc-radio-base-913e02e2.js → mwc-radio-base-147cf999.js} +1 -1
  90. package/{mwc-radio-base-4dbe9e38.mjs → mwc-radio-base-768b4221.mjs} +2 -2
  91. package/{mwc-slider.css-c7107d94.js → mwc-slider.css-c5f99704.js} +1 -1
  92. package/{mwc-slider.css-30c91236.mjs → mwc-slider.css-cda43bd0.mjs} +3 -3
  93. package/{mwc-tab-base-effde6e4.mjs → mwc-tab-base-0814a3ef.mjs} +2 -2
  94. package/{mwc-tab-base-f28722aa.js → mwc-tab-base-f2269fd1.js} +1 -1
  95. package/{mwc-top-app-bar-base-28c4192d.mjs → mwc-top-app-bar-base-8a7f7312.mjs} +1 -1
  96. package/{mwc-top-app-bar-base-aec60f27.js → mwc-top-app-bar-base-8c8cde51.js} +1 -1
  97. package/nav-list-item.js +1 -1
  98. package/nav-list-item.mjs +7 -6
  99. package/notebook-cell/notebook-cell.d.ts +94 -0
  100. package/notebook-cell/notebook-cell.d.ts.map +1 -0
  101. package/notebook-cell.js +47 -0
  102. package/notebook-cell.mjs +217 -0
  103. package/package.json +11 -1
  104. package/python-abc06189.mjs +264 -0
  105. package/python-cb76a8a4.js +6 -0
  106. package/r-42c6f0aa.js +6 -0
  107. package/r-630f5d6b.mjs +245 -0
  108. package/radio-list-item.js +1 -1
  109. package/radio-list-item.mjs +8 -7
  110. package/radio.js +2 -2
  111. package/radio.mjs +7 -6
  112. package/{ripple-handlers-0d9ad7c2.mjs → ripple-handlers-8883e893.mjs} +2 -2
  113. package/{ripple-handlers-5d5b21db.js → ripple-handlers-9fb4a31a.js} +1 -1
  114. package/select.js +2 -2
  115. package/select.mjs +11 -10
  116. package/side-sheet.js +1 -1
  117. package/side-sheet.mjs +3 -2
  118. package/slider-range.js +1 -1
  119. package/slider-range.mjs +7 -6
  120. package/slider.js +1 -1
  121. package/slider.mjs +12 -11
  122. package/snackbar.js +14 -18
  123. package/snackbar.mjs +88 -159
  124. package/sql-63ec8e76.mjs +818 -0
  125. package/sql-faf05577.js +6 -0
  126. package/status-dialog.js +1 -1
  127. package/status-dialog.mjs +7 -6
  128. package/status-header.js +1 -1
  129. package/status-header.mjs +4 -3
  130. package/{style-map-88d2563f.js → style-map-a135c6ab.js} +2 -2
  131. package/{style-map-bc3ed3e0.mjs → style-map-e7ec6d41.mjs} +1 -1
  132. package/style.css +1 -0
  133. package/switch.js +1 -1
  134. package/switch.mjs +6 -5
  135. package/tab-bar.js +2 -2
  136. package/tab-bar.mjs +7 -6
  137. package/tab.js +1 -1
  138. package/tab.mjs +9 -8
  139. package/text-lockup.js +1 -1
  140. package/text-lockup.mjs +4 -3
  141. package/textarea.js +1 -1
  142. package/textarea.mjs +6 -5
  143. package/{textfield-a064a2b4.js → textfield-48207bf2.js} +16 -16
  144. package/{textfield-69844234.mjs → textfield-a994ca16.mjs} +5 -4
  145. package/textfield.js +1 -1
  146. package/textfield.mjs +6 -5
  147. package/toolbar.js +1 -1
  148. package/toolbar.mjs +5 -4
  149. package/top-app-bar-fixed.js +1 -1
  150. package/top-app-bar-fixed.mjs +5 -4
  151. package/top-app-bar.js +1 -1
  152. package/top-app-bar.mjs +8 -7
  153. package/tree-list-item.js +1 -1
  154. package/tree-list-item.mjs +4 -3
  155. package/typescript-5cbac06a.mjs +332 -0
  156. package/typescript-95376fa5.js +6 -0
  157. package/class-map-4b94b017.mjs +0 -62
  158. package/class-map-b5efe8da.js +0 -9
package/card.mjs CHANGED
@@ -1,22 +1,23 @@
1
1
  import { s, x as l, i as _, r as f, e as g } from "./query-assigned-elements-4a39219d.mjs";
2
- import { o as u } from "./class-map-4b94b017.mjs";
2
+ import { o as u } from "./class-map-6e504a9a.mjs";
3
3
  import { n } from "./property-9b6ea53b.mjs";
4
- var b = Object.defineProperty, h = Object.getOwnPropertyDescriptor, p = (o, e, a, i) => {
5
- for (var r = i > 1 ? void 0 : i ? h(e, a) : e, t = o.length - 1, c; t >= 0; t--)
6
- (c = o[t]) && (r = (i ? c(e, a, r) : c(r)) || r);
7
- return i && r && b(e, a, r), r;
4
+ import "./directive-daf4e9b6.mjs";
5
+ var b = Object.defineProperty, h = Object.getOwnPropertyDescriptor, p = (o, i, a, e) => {
6
+ for (var r = e > 1 ? void 0 : e ? h(i, a) : i, t = o.length - 1, c; t >= 0; t--)
7
+ (c = o[t]) && (r = (e ? c(i, a, r) : c(r)) || r);
8
+ return e && r && b(i, a, r), r;
8
9
  };
9
10
  class d extends s {
10
11
  constructor() {
11
12
  super(...arguments), this.cardTitle = "", this.subTitle = "", this.actionBar = !1, this.interactive = !1, this.outlined = !1, this.fullHeight = !1;
12
13
  }
13
14
  render() {
14
- const e = {
15
+ const i = {
15
16
  "mdc-card": !0,
16
17
  "mdc-card--outlined": this.outlined,
17
18
  "cv-height-full": this.fullHeight
18
19
  };
19
- return l` <div class="${u(e)}">
20
+ return l` <div class="${u(i)}">
20
21
  ${this.cardTitle ? l`
21
22
  <div class="mdc-card__actions mdc-typography--headline5">
22
23
  ${this.cardTitle}
@@ -56,10 +57,10 @@ p([
56
57
  ], d.prototype, "fullHeight", 2);
57
58
  const y = `.mdc-elevation-overlay{position:absolute;border-radius:inherit;pointer-events:none;opacity:0;opacity:var(--mdc-elevation-overlay-opacity, 0);transition:opacity .28s cubic-bezier(.4,0,.2,1);background-color:#fff;background-color:var(--mdc-elevation-overlay-color, #fff)}.mdc-card{border-radius:4px;border-radius:var(--mdc-shape-medium, 4px);background-color:#fff;background-color:var(--mdc-theme-surface, #fff);position:relative;box-shadow:0 2px 1px -1px #0003,0 1px 1px #00000024,0 1px 3px #0000001f}.mdc-card .mdc-elevation-overlay{width:100%;height:100%;top:0;left:0}.mdc-card:after{border-radius:4px;border-radius:var(--mdc-shape-medium, 4px)}.mdc-card--outlined{box-shadow:0 0 #0003,0 0 #00000024,0 0 #0000001f;border-width:1px;border-style:solid;border-color:#e0e0e0}.mdc-card{display:flex;flex-direction:column;box-sizing:border-box}.mdc-card:after{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:1px solid transparent;border-radius:inherit;content:"";pointer-events:none}@media screen and (forced-colors: active){.mdc-card:after{border-color:CanvasText}}.mdc-card--outlined:after{border:none}.mdc-card__content{border-radius:inherit;height:100%}.mdc-card__media{position:relative;box-sizing:border-box;background-repeat:no-repeat;background-position:center;background-size:cover}.mdc-card__media:before{display:block;content:""}.mdc-card__media:first-child{border-top-left-radius:inherit;border-top-right-radius:inherit}.mdc-card__media:last-child{border-bottom-left-radius:inherit;border-bottom-right-radius:inherit}.mdc-card__media--square:before{margin-top:100%}.mdc-card__media--16-9:before{margin-top:56.25%}.mdc-card__media-content{position:absolute;top:0;right:0;bottom:0;left:0;box-sizing:border-box}.mdc-card__primary-action{display:flex;flex-direction:column;box-sizing:border-box;position:relative;outline:none;color:inherit;text-decoration:none;cursor:pointer;overflow:hidden}.mdc-card__primary-action:first-child{border-top-left-radius:inherit;border-top-right-radius:inherit}.mdc-card__primary-action:last-child{border-bottom-left-radius:inherit;border-bottom-right-radius:inherit}.mdc-card__actions{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;min-height:52px;padding:8px}.mdc-card__actions--full-bleed{padding:0}.mdc-card__action-buttons,.mdc-card__action-icons{display:flex;flex-direction:row;align-items:center;box-sizing:border-box}.mdc-card__action-icons{color:#0009;flex-grow:1;justify-content:flex-end}.mdc-card__action-buttons+.mdc-card__action-icons{margin-left:16px;margin-right:0}[dir=rtl] .mdc-card__action-buttons+.mdc-card__action-icons,.mdc-card__action-buttons+.mdc-card__action-icons[dir=rtl]{margin-left:0;margin-right:16px}.mdc-card__action{display:inline-flex;flex-direction:row;align-items:center;box-sizing:border-box;justify-content:center;cursor:pointer;-webkit-user-select:none;user-select:none}.mdc-card__action:focus{outline:none}.mdc-card__action--button{margin-left:0;margin-right:8px;padding:0 8px}[dir=rtl] .mdc-card__action--button,.mdc-card__action--button[dir=rtl]{margin-left:8px;margin-right:0}.mdc-card__action--button:last-child{margin-left:0;margin-right:0}[dir=rtl] .mdc-card__action--button:last-child,.mdc-card__action--button:last-child[dir=rtl]{margin-left:0;margin-right:0}.mdc-card__actions--full-bleed .mdc-card__action--button{justify-content:space-between;width:100%;height:auto;max-height:none;margin:0;padding:8px 16px;text-align:left}[dir=rtl] .mdc-card__actions--full-bleed .mdc-card__action--button,.mdc-card__actions--full-bleed .mdc-card__action--button[dir=rtl]{text-align:right}.mdc-card__action--icon{margin:-6px 0;padding:12px}.mdc-card__action--icon:not(:disabled){color:#0009}@keyframes mdc-ripple-fg-radius-in{0%{animation-timing-function:cubic-bezier(.4,0,.2,1);transform:translate(var(--mdc-ripple-fg-translate-start, 0)) scale(1)}to{transform:translate(var(--mdc-ripple-fg-translate-end, 0)) scale(var(--mdc-ripple-fg-scale, 1))}}@keyframes mdc-ripple-fg-opacity-in{0%{animation-timing-function:linear;opacity:0}to{opacity:var(--mdc-ripple-fg-opacity, 0)}}@keyframes mdc-ripple-fg-opacity-out{0%{animation-timing-function:linear;opacity:var(--mdc-ripple-fg-opacity, 0)}to{opacity:0}}.mdc-card__primary-action{--mdc-ripple-fg-size: 0;--mdc-ripple-left: 0;--mdc-ripple-top: 0;--mdc-ripple-fg-scale: 1;--mdc-ripple-fg-translate-end: 0;--mdc-ripple-fg-translate-start: 0;-webkit-tap-highlight-color:rgba(0,0,0,0);will-change:transform,opacity}.mdc-card__primary-action .mdc-card__ripple:before,.mdc-card__primary-action .mdc-card__ripple:after{position:absolute;border-radius:50%;opacity:0;pointer-events:none;content:""}.mdc-card__primary-action .mdc-card__ripple:before{transition:opacity 15ms linear,background-color 15ms linear;z-index:1;z-index:var(--mdc-ripple-z-index, 1)}.mdc-card__primary-action .mdc-card__ripple:after{z-index:0;z-index:var(--mdc-ripple-z-index, 0)}.mdc-card__primary-action.mdc-ripple-upgraded .mdc-card__ripple:before{transform:scale(var(--mdc-ripple-fg-scale, 1))}.mdc-card__primary-action.mdc-ripple-upgraded .mdc-card__ripple:after{top:0;left:0;transform:scale(0);transform-origin:center center}.mdc-card__primary-action.mdc-ripple-upgraded--unbounded .mdc-card__ripple:after{top:var(--mdc-ripple-top, 0);left:var(--mdc-ripple-left, 0)}.mdc-card__primary-action.mdc-ripple-upgraded--foreground-activation .mdc-card__ripple:after{animation:mdc-ripple-fg-radius-in 225ms forwards,mdc-ripple-fg-opacity-in 75ms forwards}.mdc-card__primary-action.mdc-ripple-upgraded--foreground-deactivation .mdc-card__ripple:after{animation:mdc-ripple-fg-opacity-out .15s;transform:translate(var(--mdc-ripple-fg-translate-end, 0)) scale(var(--mdc-ripple-fg-scale, 1))}.mdc-card__primary-action .mdc-card__ripple:before,.mdc-card__primary-action .mdc-card__ripple:after{top:-50%;left:-50%;width:200%;height:200%}.mdc-card__primary-action.mdc-ripple-upgraded .mdc-card__ripple:after{width:var(--mdc-ripple-fg-size, 100%);height:var(--mdc-ripple-fg-size, 100%)}.mdc-card__primary-action .mdc-card__ripple:before,.mdc-card__primary-action .mdc-card__ripple:after{background-color:#000;background-color:var(--mdc-ripple-color, #000)}.mdc-card__primary-action:hover .mdc-card__ripple:before,.mdc-card__primary-action.mdc-ripple-surface--hover .mdc-card__ripple:before{opacity:.04;opacity:var(--mdc-ripple-hover-opacity, .04)}.mdc-card__primary-action.mdc-ripple-upgraded--background-focused .mdc-card__ripple:before,.mdc-card__primary-action:not(.mdc-ripple-upgraded):focus .mdc-card__ripple:before{transition-duration:75ms;opacity:.12;opacity:var(--mdc-ripple-focus-opacity, .12)}.mdc-card__primary-action:not(.mdc-ripple-upgraded) .mdc-card__ripple:after{transition:opacity .15s linear}.mdc-card__primary-action:not(.mdc-ripple-upgraded):active .mdc-card__ripple:after{transition-duration:75ms;opacity:.12;opacity:var(--mdc-ripple-press-opacity, .12)}.mdc-card__primary-action.mdc-ripple-upgraded{--mdc-ripple-fg-opacity: var(--mdc-ripple-press-opacity, .12)}.mdc-card__primary-action .mdc-card__ripple{box-sizing:content-box;height:100%;overflow:hidden;left:0;pointer-events:none;position:absolute;top:0;width:100%}.mdc-card__primary-action.mdc-ripple-upgraded--background-focused:after,.mdc-card__primary-action:not(.mdc-ripple-upgraded):focus:after{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:5px double transparent;border-radius:inherit;content:"";pointer-events:none}@media screen and (forced-colors: active){.mdc-card__primary-action.mdc-ripple-upgraded--background-focused:after,.mdc-card__primary-action:not(.mdc-ripple-upgraded):focus:after{border-color:CanvasText}}:host([fullHeight]){display:block;height:100%}.mdc-card{--mdc-theme-surface: var(--cv-theme-surface-container-lowest, #ffffff);box-shadow:none}.mdc-card.cv-height-full,.mdc-card.cv-height-full .mdc-card__primary-action{height:100%}.mdc-typography--headline5{font-family:var(--mdc-typography-headline5-font-family);font-size:var(--mdc-typography-headline5-font-size);font-weight:var(--mdc-typography-headline5-font-weight);line-height:var(--mdc-typography-headline5-line-height);color:var(--mdc-theme-text-primary-on-background)}.mdc-card__actions{color:var(--mdc-theme-text-primary-on-background);justify-content:space-between}.mdc-card__actions:first-of-type{border-bottom:1px solid var(--mdc-theme-border);padding-left:16px}.mdc-card.mdc-card--outlined{background-color:var(--mdc-theme-surface)}
58
59
  `;
59
- var v = Object.defineProperty, x = Object.getOwnPropertyDescriptor, w = (o, e, a, i) => {
60
- for (var r = i > 1 ? void 0 : i ? x(e, a) : e, t = o.length - 1, c; t >= 0; t--)
61
- (c = o[t]) && (r = (i ? c(e, a, r) : c(r)) || r);
62
- return i && r && v(e, a, r), r;
60
+ var v = Object.defineProperty, x = Object.getOwnPropertyDescriptor, w = (o, i, a, e) => {
61
+ for (var r = e > 1 ? void 0 : e ? x(i, a) : i, t = o.length - 1, c; t >= 0; t--)
62
+ (c = o[t]) && (r = (e ? c(i, a, r) : c(r)) || r);
63
+ return e && r && v(i, a, r), r;
63
64
  };
64
65
  let m = class extends d {
65
66
  };
@@ -71,8 +72,8 @@ m.styles = [
71
72
  m = w([
72
73
  g("cv-card")
73
74
  ], m);
74
- const C = m;
75
+ const j = m;
75
76
  export {
76
77
  m as CovalentCard,
77
- C as default
78
+ j as default
78
79
  };
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const i=require("./tslib.es6-98719205.js"),r=require("./query-assigned-elements-f623705d.js"),x=require("./mwc-checkbox-base-3d8c9549.js"),b=require("./property-57f6f6fe.js"),s=require("./query-680f1868.js"),l=require("./class-map-b5efe8da.js"),p=require("./mwc-list-item-base-297d86b0.js"),k=require("./list-item-8b940ec8.js");require("./ripple-handlers-5d5b21db.js");require("./base-element-58a3f9ea.js");require("./utils-a8190a39.js");require("./state-0974a8e5.js");require("./style-map-88d2563f.js");require("./aria-property-849c8816.js");require("./form-element-c553d6f5.js");require("./event-options-3f5eb195.js");require("./if-defined-f1c45245.js");require("./observer-a096ab43.js");/**
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const i=require("./tslib.es6-98719205.js"),r=require("./query-assigned-elements-f623705d.js"),x=require("./mwc-checkbox-base-935d9566.js"),b=require("./property-57f6f6fe.js"),s=require("./query-680f1868.js"),l=require("./class-map-0a4c6ca9.js"),p=require("./mwc-list-item-base-06d93e6e.js"),k=require("./list-item-8b940ec8.js");require("./ripple-handlers-9fb4a31a.js");require("./base-element-58a3f9ea.js");require("./utils-a8190a39.js");require("./state-0974a8e5.js");require("./style-map-a135c6ab.js");require("./directive-1186bc23.js");require("./aria-property-849c8816.js");require("./form-element-c553d6f5.js");require("./event-options-3f5eb195.js");require("./if-defined-f1c45245.js");require("./observer-a096ab43.js");/**
2
2
  * @license
3
3
  * Copyright 2021 Google LLC
4
4
  * SPDX-LIcense-Identifier: Apache-2.0
@@ -1,16 +1,17 @@
1
1
  import { _ as a } from "./tslib.es6-c4b0f3b1.mjs";
2
2
  import { i as b, e as s, x as k, r as l } from "./query-assigned-elements-4a39219d.mjs";
3
- import { C as _ } from "./mwc-checkbox-base-c40d16d2.mjs";
3
+ import { C as _ } from "./mwc-checkbox-base-02b4eb91.mjs";
4
4
  import { n as x } from "./property-9b6ea53b.mjs";
5
5
  import { i as p } from "./query-d843aa92.mjs";
6
- import { o as u } from "./class-map-4b94b017.mjs";
7
- import { L as g } from "./mwc-list-item-base-6449e812.mjs";
6
+ import { o as u } from "./class-map-6e504a9a.mjs";
7
+ import { L as g } from "./mwc-list-item-base-3c6a3bfb.mjs";
8
8
  import { s as f, a as v, c as y } from "./list-item-ef175b93.mjs";
9
- import "./ripple-handlers-0d9ad7c2.mjs";
9
+ import "./ripple-handlers-8883e893.mjs";
10
10
  import "./base-element-acf30176.mjs";
11
11
  import "./utils-dc65fdc9.mjs";
12
12
  import "./state-b5e865db.mjs";
13
- import "./style-map-bc3ed3e0.mjs";
13
+ import "./style-map-e7ec6d41.mjs";
14
+ import "./directive-daf4e9b6.mjs";
14
15
  import "./aria-property-fa2717fe.mjs";
15
16
  import "./form-element-abadd335.mjs";
16
17
  import "./event-options-78d6cf94.mjs";
@@ -97,8 +98,8 @@ n.styles = [
97
98
  n = F([
98
99
  s("cv-check-list-item")
99
100
  ], n);
100
- const K = n;
101
+ const N = n;
101
102
  export {
102
103
  n as CovalentCheckListItem,
103
- K as default
104
+ N as default
104
105
  };
package/checkbox.js CHANGED
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const i=require("./query-assigned-elements-f623705d.js"),n=require("./mwc-checkbox-base-3d8c9549.js"),l=require("./mwc-checkbox.css-b3434429.js");require("./tslib.es6-98719205.js");require("./ripple-handlers-5d5b21db.js");require("./base-element-58a3f9ea.js");require("./utils-a8190a39.js");require("./property-57f6f6fe.js");require("./state-0974a8e5.js");require("./query-680f1868.js");require("./class-map-b5efe8da.js");require("./style-map-88d2563f.js");require("./aria-property-849c8816.js");require("./form-element-c553d6f5.js");require("./event-options-3f5eb195.js");require("./if-defined-f1c45245.js");const a=`:host{--mdc-checkbox-checked-color: var(--mdc-theme-primary);--mdc-checkbox-disabled-color: var(--mdc-theme-text-disabled-on-background);--mdc-checkbox-ink-color: var(--mdc-theme-on-primary);--mdc-checkbox-unchecked-color: var(--mdc-theme-text-icon-on-background)}
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const i=require("./query-assigned-elements-f623705d.js"),n=require("./mwc-checkbox-base-935d9566.js"),l=require("./mwc-checkbox.css-b3434429.js");require("./tslib.es6-98719205.js");require("./ripple-handlers-9fb4a31a.js");require("./base-element-58a3f9ea.js");require("./utils-a8190a39.js");require("./property-57f6f6fe.js");require("./state-0974a8e5.js");require("./query-680f1868.js");require("./class-map-0a4c6ca9.js");require("./directive-1186bc23.js");require("./style-map-a135c6ab.js");require("./aria-property-849c8816.js");require("./form-element-c553d6f5.js");require("./event-options-3f5eb195.js");require("./if-defined-f1c45245.js");const a=`:host{--mdc-checkbox-checked-color: var(--mdc-theme-primary);--mdc-checkbox-disabled-color: var(--mdc-theme-text-disabled-on-background);--mdc-checkbox-ink-color: var(--mdc-theme-on-primary);--mdc-checkbox-unchecked-color: var(--mdc-theme-text-icon-on-background)}
2
2
  `;var b=Object.defineProperty,h=Object.getOwnPropertyDescriptor,d=(o,r,t,c)=>{for(var e=c>1?void 0:c?h(r,t):r,s=o.length-1,u;s>=0;s--)(u=o[s])&&(e=(c?u(r,t,e):u(e))||e);return c&&e&&b(r,t,e),e};exports.CovalentCheckbox=class extends n.CheckboxBase{};exports.CovalentCheckbox.styles=[l.styles,i.i`${i.r(a)}`];exports.CovalentCheckbox=d([i.e("cv-checkbox")],exports.CovalentCheckbox);const v=exports.CovalentCheckbox;exports.default=v;
package/checkbox.mjs CHANGED
@@ -1,34 +1,35 @@
1
1
  import { i as s, r as a, e as l } from "./query-assigned-elements-4a39219d.mjs";
2
- import { C as d } from "./mwc-checkbox-base-c40d16d2.mjs";
2
+ import { C as d } from "./mwc-checkbox-base-02b4eb91.mjs";
3
3
  import { s as h } from "./mwc-checkbox.css-8f4f1a9b.mjs";
4
4
  import "./tslib.es6-c4b0f3b1.mjs";
5
- import "./ripple-handlers-0d9ad7c2.mjs";
5
+ import "./ripple-handlers-8883e893.mjs";
6
6
  import "./base-element-acf30176.mjs";
7
7
  import "./utils-dc65fdc9.mjs";
8
8
  import "./property-9b6ea53b.mjs";
9
9
  import "./state-b5e865db.mjs";
10
10
  import "./query-d843aa92.mjs";
11
- import "./class-map-4b94b017.mjs";
12
- import "./style-map-bc3ed3e0.mjs";
11
+ import "./class-map-6e504a9a.mjs";
12
+ import "./directive-daf4e9b6.mjs";
13
+ import "./style-map-e7ec6d41.mjs";
13
14
  import "./aria-property-fa2717fe.mjs";
14
15
  import "./form-element-abadd335.mjs";
15
16
  import "./event-options-78d6cf94.mjs";
16
17
  import "./if-defined-c367f208.mjs";
17
18
  const n = `:host{--mdc-checkbox-checked-color: var(--mdc-theme-primary);--mdc-checkbox-disabled-color: var(--mdc-theme-text-disabled-on-background);--mdc-checkbox-ink-color: var(--mdc-theme-on-primary);--mdc-checkbox-unchecked-color: var(--mdc-theme-text-icon-on-background)}
18
19
  `;
19
- var b = Object.defineProperty, v = Object.getOwnPropertyDescriptor, x = (i, e, t, r) => {
20
- for (var o = r > 1 ? void 0 : r ? v(e, t) : e, m = i.length - 1, p; m >= 0; m--)
21
- (p = i[m]) && (o = (r ? p(e, t, o) : p(o)) || o);
22
- return r && o && b(e, t, o), o;
20
+ var b = Object.defineProperty, v = Object.getOwnPropertyDescriptor, x = (i, r, c, e) => {
21
+ for (var o = e > 1 ? void 0 : e ? v(r, c) : r, m = i.length - 1, p; m >= 0; m--)
22
+ (p = i[m]) && (o = (e ? p(r, c, o) : p(o)) || o);
23
+ return e && o && b(r, c, o), o;
23
24
  };
24
- let c = class extends d {
25
+ let t = class extends d {
25
26
  };
26
- c.styles = [h, s`${a(n)}`];
27
- c = x([
27
+ t.styles = [h, s`${a(n)}`];
28
+ t = x([
28
29
  l("cv-checkbox")
29
- ], c);
30
- const A = c;
30
+ ], t);
31
+ const E = t;
31
32
  export {
32
- c as CovalentCheckbox,
33
- A as default
33
+ t as CovalentCheckbox,
34
+ E as default
34
35
  };
@@ -1,4 +1,4 @@
1
- "use strict";var kt=Object.defineProperty;var Bt=(e,i,t)=>i in e?kt(e,i,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[i]=t;var p=(e,i,t)=>(Bt(e,typeof i!="symbol"?i+"":i,t),t);const b=require("./query-assigned-elements-f623705d.js"),jt=require("./utils-a8190a39.js"),s=require("./tslib.es6-98719205.js"),v=require("./keyboard-39125691.js"),$=require("./foundation-e830bd94.js"),R=require("./property-57f6f6fe.js"),Gt=require("./query-680f1868.js"),Kt=require("./class-map-b5efe8da.js"),f=require("./_commonjsHelpers-2367a3a2.js");var w={};/**
1
+ "use strict";var kt=Object.defineProperty;var Bt=(e,i,t)=>i in e?kt(e,i,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[i]=t;var p=(e,i,t)=>(Bt(e,typeof i!="symbol"?i+"":i,t),t);const b=require("./query-assigned-elements-f623705d.js"),jt=require("./utils-a8190a39.js"),s=require("./tslib.es6-98719205.js"),v=require("./keyboard-39125691.js"),$=require("./foundation-e830bd94.js"),R=require("./property-57f6f6fe.js"),Gt=require("./query-680f1868.js"),Kt=require("./class-map-0a4c6ca9.js"),f=require("./_commonjsHelpers-2367a3a2.js");var w={};/**
2
2
  * @license
3
3
  * SPDX-License-Identifier: Apache-2.0
4
4
  */const A={};function $t(e){if(e!==A)throw new Error("Bad secret")}/**
@@ -8,7 +8,7 @@ import { A as ne, K as _, n as re, i as oe } from "./keyboard-983b121c.mjs";
8
8
  import { M as Q } from "./foundation-2334d146.mjs";
9
9
  import { n as L } from "./property-9b6ea53b.mjs";
10
10
  import { i as ae } from "./query-d843aa92.mjs";
11
- import { o as ce } from "./class-map-4b94b017.mjs";
11
+ import { o as ce } from "./class-map-6e504a9a.mjs";
12
12
  import { a as m } from "./_commonjsHelpers-2f131a27.mjs";
13
13
  var T = {};
14
14
  /**
package/chip-set.js CHANGED
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const I=require("./query-assigned-elements-f623705d.js"),c=require("./chip-ebd0a88e.js"),d=require("./tslib.es6-98719205.js"),S=require("./foundation-e830bd94.js"),C=require("./keyboard-39125691.js"),E=require("./property-57f6f6fe.js"),N=require("./query-680f1868.js");require("./utils-a8190a39.js");require("./class-map-b5efe8da.js");require("./_commonjsHelpers-2367a3a2.js");/**
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const I=require("./query-assigned-elements-f623705d.js"),c=require("./chip-c65a4549.js"),d=require("./tslib.es6-98719205.js"),S=require("./foundation-e830bd94.js"),C=require("./keyboard-39125691.js"),E=require("./property-57f6f6fe.js"),N=require("./query-680f1868.js");require("./utils-a8190a39.js");require("./class-map-0a4c6ca9.js");require("./directive-1186bc23.js");require("./_commonjsHelpers-2367a3a2.js");/**
2
2
  * @license
3
3
  * Copyright 2016 Google Inc.
4
4
  *
@@ -73,4 +73,4 @@
73
73
  </span>`}async updated(i){super.updated(i),await this.updateComplete,this.activeIndex!=this._previousActiveIndex&&this.mdcFoundation.setChipSelected(this.activeIndex,c.MDCChipActionType.PRIMARY,!0)}firstUpdated(i){var r;super.firstUpdated(i);const e=(r=this.shadowRoot)==null?void 0:r.querySelector("slot"),t=(e==null?void 0:e.assignedElements().filter(n=>n instanceof c.CovalentChip))??[];for(let n=0;n<t.length;n++){const o=t[n];this.chips.push(o)}this.mdcFoundation!==void 0&&this.mdcFoundation.destroy(),this.mdcFoundation=new R(this.createAdapter()),this.mdcFoundation.init()}connectedCallback(){super.connectedCallback(),this.addEventListener(c.MDCChipEvents.ANIMATION,this._handleChipAnimation),this.addEventListener(c.MDCChipEvents.INTERACTION,this._handleChipInteraction),this.addEventListener(c.MDCChipEvents.NAVIGATION,this._handleChipNavigation)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener(c.MDCChipEvents.ANIMATION,this._handleChipAnimation),this.removeEventListener(c.MDCChipEvents.INTERACTION,this._handleChipInteraction),this.removeEventListener(c.MDCChipEvents.NAVIGATION,this._handleChipNavigation)}createAdapter(){return{announceMessage:D,emitEvent:(i,e)=>this.dispatchEvent(new CustomEvent(i,{bubbles:!0,detail:e})),getAttribute:i=>this.mdcRoot.getAttribute(i),getChipActionsAtIndex:i=>this.chips[i].getActions(),getChipCount:()=>this.chips.length,getChipIdAtIndex:i=>this.chips[i].getElementID(),getChipIndexById:i=>this.chips.findIndex(e=>e.getElementID()===i),isChipFocusableAtIndex:(i,e)=>this.chips[i].isActionFocusable(e),isChipSelectableAtIndex:(i,e)=>this.chips[i].isActionSelectable(e),isChipSelectedAtIndex:(i,e)=>this.chips[i].isActionSelected(e),removeChipAtIndex:i=>this.chips[i].remove(),setChipFocusAtIndex:(i,e,t)=>this.chips[i].setActionFocus(e,t),setChipSelectedAtIndex:(i,e,t)=>this.chips[i].setActionSelected(e,t),startChipAnimationAtIndex:(i,e)=>this.chips[i].startAnimation(e)}}_handleChipAnimation(i){this.mdcFoundation.handleChipAnimation(i)}_handleChipInteraction(i){this.mdcFoundation.handleChipInteraction(i)}_handleChipNavigation(i){this.mdcFoundation.handleChipNavigation(i)}}g([N.i(".mdc-evolution-chip-set")],A.prototype,"mdcRoot",2);g([E.n({type:Boolean,reflect:!0})],A.prototype,"selectable",2);g([E.n({type:Boolean,reflect:!0})],A.prototype,"multi",2);g([E.n()],A.prototype,"label",2);g([E.n({type:Number})],A.prototype,"activeIndex",2);const _=`.mdc-evolution-chip-set{display:flex}.mdc-evolution-chip-set:focus{outline:none}.mdc-evolution-chip-set__chips{display:flex;flex-flow:wrap;min-width:0}.mdc-evolution-chip-set--overflow .mdc-evolution-chip-set__chips{flex-flow:nowrap}.mdc-evolution-chip-set .mdc-evolution-chip-set__chips{margin-left:-8px;margin-right:0}[dir=rtl] .mdc-evolution-chip-set .mdc-evolution-chip-set__chips,.mdc-evolution-chip-set .mdc-evolution-chip-set__chips[dir=rtl]{margin-left:0;margin-right:-8px}.mdc-evolution-chip-set .mdc-evolution-chip{margin-left:8px;margin-right:0}[dir=rtl] .mdc-evolution-chip-set .mdc-evolution-chip,.mdc-evolution-chip-set .mdc-evolution-chip[dir=rtl]{margin-left:0;margin-right:8px}.mdc-evolution-chip-set .mdc-evolution-chip{margin-top:4px;margin-bottom:4px}::slotted(cv-chip){margin:4px 0 4px 8px}[dir=rtl] ::slotted(cv-chip),::slotted(cv-chip[dir=rtl]){margin-left:0;margin-right:8px}
74
74
  `;var w=Object.defineProperty,B=Object.getOwnPropertyDescriptor,P=(a,i,e,t)=>{for(var r=t>1?void 0:t?B(i,e):i,n=a.length-1,o;n>=0;n--)(o=a[n])&&(r=(t?o(i,e,r):o(r))||r);return t&&r&&w(i,e,r),r};exports.CovalentChipSet=class extends A{};exports.CovalentChipSet.styles=[I.i`
75
75
  ${I.r(_)}
76
- `];exports.CovalentChipSet=P([I.e("cv-chip-set")],exports.CovalentChipSet);const U=exports.CovalentChipSet;exports.default=U;
76
+ `];exports.CovalentChipSet=P([I.e("cv-chip-set")],exports.CovalentChipSet);const q=exports.CovalentChipSet;exports.default=q;
package/chip-set.mjs CHANGED
@@ -1,12 +1,13 @@
1
1
  import { s as M, x as D, i as O, r as L, e as _ } from "./query-assigned-elements-4a39219d.mjs";
2
- import { M as E, a as A, b as T, C as w, c as v } from "./chip-2d0fd3f0.mjs";
2
+ import { M as E, a as A, b as T, C as w, c as v } from "./chip-fb0ea5c5.mjs";
3
3
  import { a as P, b as F, c as I } from "./tslib.es6-c4b0f3b1.mjs";
4
4
  import { M as B } from "./foundation-2334d146.mjs";
5
5
  import { K as l } from "./keyboard-983b121c.mjs";
6
6
  import { n as y } from "./property-9b6ea53b.mjs";
7
7
  import { i as U } from "./query-d843aa92.mjs";
8
8
  import "./utils-dc65fdc9.mjs";
9
- import "./class-map-4b94b017.mjs";
9
+ import "./class-map-6e504a9a.mjs";
10
+ import "./directive-daf4e9b6.mjs";
10
11
  import "./_commonjsHelpers-2f131a27.mjs";
11
12
  /**
12
13
  * @license
@@ -119,28 +120,28 @@ var $ = (
119
120
  enumerable: !1,
120
121
  configurable: !0
121
122
  }), i.prototype.handleChipAnimation = function(t) {
122
- var e = t.detail, r = e.chipID, n = e.animation, o = e.isComplete, h = e.addedAnnouncement, s = e.removedAnnouncement, p = this.adapter.getChipIndexById(r);
123
+ var e = t.detail, r = e.chipID, n = e.animation, o = e.isComplete, p = e.addedAnnouncement, s = e.removedAnnouncement, h = this.adapter.getChipIndexById(r);
123
124
  if (n === E.EXIT && o) {
124
- s && this.adapter.announceMessage(s), this.removeAfterAnimation(p, r);
125
+ s && this.adapter.announceMessage(s), this.removeAfterAnimation(h, r);
125
126
  return;
126
127
  }
127
- if (n === E.ENTER && o && h) {
128
- this.adapter.announceMessage(h);
128
+ if (n === E.ENTER && o && p) {
129
+ this.adapter.announceMessage(p);
129
130
  return;
130
131
  }
131
132
  }, i.prototype.handleChipInteraction = function(t) {
132
- var e = t.detail, r = e.source, n = e.chipID, o = e.isSelectable, h = e.isSelected, s = e.shouldRemove, p = this.adapter.getChipIndexById(n);
133
+ var e = t.detail, r = e.source, n = e.chipID, o = e.isSelectable, p = e.isSelected, s = e.shouldRemove, h = this.adapter.getChipIndexById(n);
133
134
  if (s) {
134
- this.removeChip(p);
135
+ this.removeChip(h);
135
136
  return;
136
137
  }
137
- this.focusChip(p, r, A.FOCUSABLE), this.adapter.emitEvent(f.INTERACTION, {
138
- chipIndex: p,
138
+ this.focusChip(h, r, A.FOCUSABLE), this.adapter.emitEvent(f.INTERACTION, {
139
+ chipIndex: h,
139
140
  chipID: n
140
- }), o && this.setSelection(p, r, !h);
141
+ }), o && this.setSelection(h, r, !p);
141
142
  }, i.prototype.handleChipNavigation = function(t) {
142
- var e = t.detail, r = e.chipID, n = e.key, o = e.isRTL, h = e.source, s = this.adapter.getChipIndexById(r), p = n === l.ARROW_RIGHT && !o || n === l.ARROW_LEFT && o;
143
- if (p) {
143
+ var e = t.detail, r = e.chipID, n = e.key, o = e.isRTL, p = e.source, s = this.adapter.getChipIndexById(r), h = n === l.ARROW_RIGHT && !o || n === l.ARROW_LEFT && o;
144
+ if (h) {
144
145
  this.focusNextChipFrom(s + 1);
145
146
  return;
146
147
  }
@@ -150,34 +151,34 @@ var $ = (
150
151
  return;
151
152
  }
152
153
  if (n === l.ARROW_DOWN) {
153
- this.focusNextChipFrom(s + 1, h);
154
+ this.focusNextChipFrom(s + 1, p);
154
155
  return;
155
156
  }
156
157
  if (n === l.ARROW_UP) {
157
- this.focusPrevChipFrom(s - 1, h);
158
+ this.focusPrevChipFrom(s - 1, p);
158
159
  return;
159
160
  }
160
161
  if (n === l.HOME) {
161
- this.focusNextChipFrom(0, h);
162
+ this.focusNextChipFrom(0, p);
162
163
  return;
163
164
  }
164
165
  if (n === l.END) {
165
- this.focusPrevChipFrom(this.adapter.getChipCount() - 1, h);
166
+ this.focusPrevChipFrom(this.adapter.getChipCount() - 1, p);
166
167
  return;
167
168
  }
168
169
  }, i.prototype.getSelectedChipIndexes = function() {
169
170
  for (var t, e, r = /* @__PURE__ */ new Set(), n = this.adapter.getChipCount(), o = 0; o < n; o++) {
170
- var h = this.adapter.getChipActionsAtIndex(o);
171
+ var p = this.adapter.getChipActionsAtIndex(o);
171
172
  try {
172
- for (var s = (t = void 0, I(h)), p = s.next(); !p.done; p = s.next()) {
173
- var c = p.value;
173
+ for (var s = (t = void 0, I(p)), h = s.next(); !h.done; h = s.next()) {
174
+ var c = h.value;
174
175
  this.adapter.isChipSelectedAtIndex(o, c) && r.add(o);
175
176
  }
176
177
  } catch (u) {
177
178
  t = { error: u };
178
179
  } finally {
179
180
  try {
180
- p && !p.done && (e = s.return) && e.call(s);
181
+ h && !h.done && (e = s.return) && e.call(s);
181
182
  } finally {
182
183
  if (t)
183
184
  throw t.error;
@@ -219,16 +220,16 @@ var $ = (
219
220
  }, i.prototype.getFirstFocusableAction = function(t, e) {
220
221
  var r, n;
221
222
  try {
222
- for (var o = I(e), h = o.next(); !h.done; h = o.next()) {
223
- var s = h.value;
223
+ for (var o = I(e), p = o.next(); !p.done; p = o.next()) {
224
+ var s = p.value;
224
225
  if (this.adapter.isChipFocusableAtIndex(t, s))
225
226
  return s;
226
227
  }
227
- } catch (p) {
228
- r = { error: p };
228
+ } catch (h) {
229
+ r = { error: h };
229
230
  } finally {
230
231
  try {
231
- h && !h.done && (n = o.return) && n.call(o);
232
+ p && !p.done && (n = o.return) && n.call(o);
232
233
  } finally {
233
234
  if (r)
234
235
  throw r.error;
@@ -236,31 +237,31 @@ var $ = (
236
237
  }
237
238
  return null;
238
239
  }, i.prototype.getMatchingFocusableAction = function(t, e, r) {
239
- var n, o, h = null;
240
+ var n, o, p = null;
240
241
  try {
241
- for (var s = I(e), p = s.next(); !p.done; p = s.next()) {
242
- var c = p.value;
243
- if (this.adapter.isChipFocusableAtIndex(t, c) && (h = c), h === r)
244
- return h;
242
+ for (var s = I(e), h = s.next(); !h.done; h = s.next()) {
243
+ var c = h.value;
244
+ if (this.adapter.isChipFocusableAtIndex(t, c) && (p = c), p === r)
245
+ return p;
245
246
  }
246
247
  } catch (u) {
247
248
  n = { error: u };
248
249
  } finally {
249
250
  try {
250
- p && !p.done && (o = s.return) && o.call(s);
251
+ h && !h.done && (o = s.return) && o.call(s);
251
252
  } finally {
252
253
  if (n)
253
254
  throw n.error;
254
255
  }
255
256
  }
256
- return h;
257
+ return p;
257
258
  }, i.prototype.focusChip = function(t, e, r) {
258
259
  var n, o;
259
260
  this.adapter.setChipFocusAtIndex(t, e, r);
260
- for (var h = this.adapter.getChipCount(), s = 0; s < h; s++) {
261
- var p = this.adapter.getChipActionsAtIndex(s);
261
+ for (var p = this.adapter.getChipCount(), s = 0; s < p; s++) {
262
+ var h = this.adapter.getChipActionsAtIndex(s);
262
263
  try {
263
- for (var c = (n = void 0, I(p)), u = c.next(); !u.done; u = c.next()) {
264
+ for (var c = (n = void 0, I(h)), u = c.next(); !u.done; u = c.next()) {
264
265
  var m = u.value;
265
266
  m === e && s === t || this.adapter.setChipFocusAtIndex(s, m, A.NOT_FOCUSABLE);
266
267
  }
@@ -284,10 +285,10 @@ var $ = (
284
285
  chipIndex: t,
285
286
  isSelected: r
286
287
  }), !this.supportsMultiSelect())
287
- for (var h = this.adapter.getChipCount(), s = 0; s < h; s++) {
288
- var p = this.adapter.getChipActionsAtIndex(s);
288
+ for (var p = this.adapter.getChipCount(), s = 0; s < p; s++) {
289
+ var h = this.adapter.getChipActionsAtIndex(s);
289
290
  try {
290
- for (var c = (n = void 0, I(p)), u = c.next(); !u.done; u = c.next()) {
291
+ for (var c = (n = void 0, I(h)), u = c.next(); !u.done; u = c.next()) {
291
292
  var m = u.value;
292
293
  m === e && s === t || this.adapter.setChipSelectedAtIndex(s, m, !1);
293
294
  }
@@ -375,12 +376,12 @@ var j = (
375
376
  return a.getInstance = function() {
376
377
  return a.instance || (a.instance = new a()), a.instance;
377
378
  }, a.prototype.say = function(i, t) {
378
- var e, r, n = (e = t == null ? void 0 : t.priority) !== null && e !== void 0 ? e : R.POLITE, o = (r = t == null ? void 0 : t.ownerDocument) !== null && r !== void 0 ? r : document, h = this.getLiveRegion(n, o);
379
- h.textContent = "", setTimeout(function() {
380
- h.textContent = i, o.addEventListener("click", s);
379
+ var e, r, n = (e = t == null ? void 0 : t.priority) !== null && e !== void 0 ? e : R.POLITE, o = (r = t == null ? void 0 : t.ownerDocument) !== null && r !== void 0 ? r : document, p = this.getLiveRegion(n, o);
380
+ p.textContent = "", setTimeout(function() {
381
+ p.textContent = i, o.addEventListener("click", s);
381
382
  }, 1);
382
383
  function s() {
383
- h.textContent = "", o.removeEventListener("click", s);
384
+ p.textContent = "", o.removeEventListener("click", s);
384
385
  }
385
386
  }, a.prototype.getLiveRegion = function(i, t) {
386
387
  var e = this.liveRegions.get(t);
@@ -527,8 +528,8 @@ x.styles = [
527
528
  x = q([
528
529
  _("cv-chip-set")
529
530
  ], x);
530
- const ot = x;
531
+ const at = x;
531
532
  export {
532
533
  x as CovalentChipSet,
533
- ot as default
534
+ at as default
534
535
  };
package/chip.js CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});require("./query-assigned-elements-f623705d.js");const e=require("./chip-ebd0a88e.js");require("./utils-a8190a39.js");require("./tslib.es6-98719205.js");require("./keyboard-39125691.js");require("./foundation-e830bd94.js");require("./property-57f6f6fe.js");require("./query-680f1868.js");require("./class-map-b5efe8da.js");require("./_commonjsHelpers-2367a3a2.js");Object.defineProperty(exports,"CovalentChip",{enumerable:!0,get:()=>e.CovalentChip});exports.default=e.CovalentChip$1;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});require("./query-assigned-elements-f623705d.js");const e=require("./chip-c65a4549.js");require("./utils-a8190a39.js");require("./tslib.es6-98719205.js");require("./keyboard-39125691.js");require("./foundation-e830bd94.js");require("./property-57f6f6fe.js");require("./query-680f1868.js");require("./class-map-0a4c6ca9.js");require("./directive-1186bc23.js");require("./_commonjsHelpers-2367a3a2.js");Object.defineProperty(exports,"CovalentChip",{enumerable:!0,get:()=>e.CovalentChip});exports.default=e.CovalentChip$1;
package/chip.mjs CHANGED
@@ -1,14 +1,15 @@
1
1
  import "./query-assigned-elements-4a39219d.mjs";
2
- import { C as l, d as s } from "./chip-2d0fd3f0.mjs";
2
+ import { C as s, d as h } from "./chip-fb0ea5c5.mjs";
3
3
  import "./utils-dc65fdc9.mjs";
4
4
  import "./tslib.es6-c4b0f3b1.mjs";
5
5
  import "./keyboard-983b121c.mjs";
6
6
  import "./foundation-2334d146.mjs";
7
7
  import "./property-9b6ea53b.mjs";
8
8
  import "./query-d843aa92.mjs";
9
- import "./class-map-4b94b017.mjs";
9
+ import "./class-map-6e504a9a.mjs";
10
+ import "./directive-daf4e9b6.mjs";
10
11
  import "./_commonjsHelpers-2f131a27.mjs";
11
12
  export {
12
- l as CovalentChip,
13
- s as default
13
+ s as CovalentChip,
14
+ h as default
14
15
  };
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const n=require("./tslib.es6-98719205.js"),m=require("./aria-property-849c8816.js"),a=require("./query-assigned-elements-f623705d.js"),d=require("./property-57f6f6fe.js"),g=require("./class-map-b5efe8da.js"),p=require("./if-defined-f1c45245.js"),u=require("./style-map-88d2563f.js");/**
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const n=require("./tslib.es6-98719205.js"),m=require("./aria-property-849c8816.js"),a=require("./query-assigned-elements-f623705d.js"),d=require("./property-57f6f6fe.js"),g=require("./class-map-0a4c6ca9.js"),p=require("./if-defined-f1c45245.js"),u=require("./style-map-a135c6ab.js");require("./directive-1186bc23.js");/**
2
2
  * @license
3
3
  * Copyright 2020 Google LLC
4
4
  * SPDX-License-Identifier: Apache-2.0
@@ -2,9 +2,10 @@ import { _ as o } from "./tslib.es6-c4b0f3b1.mjs";
2
2
  import { a as g } from "./aria-property-fa2717fe.mjs";
3
3
  import { s as u, x as d, i as h, e as f } from "./query-assigned-elements-4a39219d.mjs";
4
4
  import { n } from "./property-9b6ea53b.mjs";
5
- import { o as _ } from "./class-map-4b94b017.mjs";
5
+ import { o as _ } from "./class-map-6e504a9a.mjs";
6
6
  import { l as m } from "./if-defined-c367f208.mjs";
7
- import { o as y } from "./style-map-bc3ed3e0.mjs";
7
+ import { o as y } from "./style-map-e7ec6d41.mjs";
8
+ import "./directive-daf4e9b6.mjs";
8
9
  /**
9
10
  * @license
10
11
  * Copyright 2020 Google LLC
@@ -146,8 +147,8 @@ l.styles = [b];
146
147
  l = k([
147
148
  f("cv-circular-progress")
148
149
  ], l);
149
- const D = l;
150
+ const O = l;
150
151
  export {
151
152
  l as CovalentCircularProgress,
152
- D as default
153
+ O as default
153
154
  };
@@ -0,0 +1,5 @@
1
+ "use strict";const a=require("./query-assigned-elements-f623705d.js"),o=require("./directive-1186bc23.js");/**
2
+ * @license
3
+ * Copyright 2018 Google LLC
4
+ * SPDX-License-Identifier: BSD-3-Clause
5
+ */const h=o.e(class extends o.i{constructor(i){var e;if(super(i),i.type!==o.t.ATTRIBUTE||i.name!=="class"||((e=i.strings)===null||e===void 0?void 0:e.length)>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(i){return" "+Object.keys(i).filter(e=>i[e]).join(" ")+" "}update(i,[e]){var s,n;if(this.it===void 0){this.it=new Set,i.strings!==void 0&&(this.nt=new Set(i.strings.join(" ").split(/\s/).filter(t=>t!=="")));for(const t in e)e[t]&&!(!((s=this.nt)===null||s===void 0)&&s.has(t))&&this.it.add(t);return this.render(e)}const r=i.element.classList;this.it.forEach(t=>{t in e||(r.remove(t),this.it.delete(t))});for(const t in e){const d=!!e[t];d===this.it.has(t)||!((n=this.nt)===null||n===void 0)&&n.has(t)||(d?(r.add(t),this.it.add(t)):(r.remove(t),this.it.delete(t)))}return a.T}});exports.o=h;
@@ -0,0 +1,38 @@
1
+ import { T as a } from "./query-assigned-elements-4a39219d.mjs";
2
+ import { e as d, i as h, t as l } from "./directive-daf4e9b6.mjs";
3
+ /**
4
+ * @license
5
+ * Copyright 2018 Google LLC
6
+ * SPDX-License-Identifier: BSD-3-Clause
7
+ */
8
+ const v = d(class extends h {
9
+ constructor(e) {
10
+ var i;
11
+ if (super(e), e.type !== l.ATTRIBUTE || e.name !== "class" || ((i = e.strings) === null || i === void 0 ? void 0 : i.length) > 2)
12
+ throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.");
13
+ }
14
+ render(e) {
15
+ return " " + Object.keys(e).filter((i) => e[i]).join(" ") + " ";
16
+ }
17
+ update(e, [i]) {
18
+ var s, r;
19
+ if (this.it === void 0) {
20
+ this.it = /* @__PURE__ */ new Set(), e.strings !== void 0 && (this.nt = new Set(e.strings.join(" ").split(/\s/).filter((t) => t !== "")));
21
+ for (const t in i)
22
+ i[t] && !(!((s = this.nt) === null || s === void 0) && s.has(t)) && this.it.add(t);
23
+ return this.render(i);
24
+ }
25
+ const n = e.element.classList;
26
+ this.it.forEach((t) => {
27
+ t in i || (n.remove(t), this.it.delete(t));
28
+ });
29
+ for (const t in i) {
30
+ const o = !!i[t];
31
+ o === this.it.has(t) || !((r = this.nt) === null || r === void 0) && r.has(t) || (o ? (n.add(t), this.it.add(t)) : (n.remove(t), this.it.delete(t)));
32
+ }
33
+ return a;
34
+ }
35
+ });
36
+ export {
37
+ v as o
38
+ };
@@ -0,0 +1,58 @@
1
+ import { LitElement, PropertyValues } from 'lit';
2
+ import { editor } from 'monaco-editor/esm/vs/editor/editor.api.js';
3
+ import 'monaco-editor/esm/vs/basic-languages/html/html.contribution';
4
+ import 'monaco-editor/esm/vs/basic-languages/css/css.contribution';
5
+ import 'monaco-editor/esm/vs/basic-languages/javascript/javascript.contribution';
6
+ import 'monaco-editor/esm/vs/basic-languages/typescript/typescript.contribution';
7
+ import 'monaco-editor/esm/vs/basic-languages/python/python.contribution';
8
+ import 'monaco-editor/esm/vs/basic-languages/sql/sql.contribution';
9
+ import 'monaco-editor/esm/vs/basic-languages/markdown/markdown.contribution';
10
+ import 'monaco-editor/esm/vs/basic-languages/r/r.contribution';
11
+ export declare class CovalentCodeEditor extends LitElement {
12
+ /**
13
+ * The container where editor will be created
14
+ */
15
+ private container;
16
+ /**
17
+ * Editor instance
18
+ */
19
+ editor?: editor.IStandaloneCodeEditor;
20
+ /**
21
+ * Theme of the editor
22
+ */
23
+ theme?: string;
24
+ /**
25
+ * Language of th editor instance
26
+ */
27
+ language?: string;
28
+ /**
29
+ * Code entered into the editor
30
+ */
31
+ code?: string;
32
+ /**
33
+ * Options that can be set for the editor
34
+ */
35
+ options?: editor.IEditorOptions & editor.IGlobalEditorOptions;
36
+ static styles: import("lit").CSSResult[];
37
+ private getFile;
38
+ private getCode;
39
+ private getLang;
40
+ private getTheme;
41
+ private setTheme;
42
+ adjustHeight(): void;
43
+ createEditor(container: HTMLElement): void;
44
+ disconnectedCallback(): void;
45
+ firstUpdated(): void;
46
+ getValue(): string | undefined;
47
+ onModelChange(): void;
48
+ render(): import("lit-html").TemplateResult<1>;
49
+ setValue(value: string): void;
50
+ updated(changedProperties: PropertyValues): void;
51
+ }
52
+ declare global {
53
+ interface HTMLElementTagNameMap {
54
+ 'cv-code-editor': CovalentCodeEditor;
55
+ }
56
+ }
57
+ export default CovalentCodeEditor;
58
+ //# sourceMappingURL=code-editor.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"code-editor.d.ts","sourceRoot":"","sources":["../../../../libs/components/src/code-editor/code-editor.ts"],"names":[],"mappings":"AAAA,OAAO,EAAa,UAAU,EAAE,cAAc,EAAa,MAAM,KAAK,CAAC;AAQvE,OAAO,EAAE,MAAM,EAAE,MAAM,2CAA2C,CAAC;AAInE,OAAO,6DAA6D,CAAC;AACrE,OAAO,2DAA2D,CAAC;AACnE,OAAO,yEAAyE,CAAC;AACjF,OAAO,yEAAyE,CAAC;AACjF,OAAO,iEAAiE,CAAC;AACzE,OAAO,2DAA2D,CAAC;AACnE,OAAO,qEAAqE,CAAC;AAC7E,OAAO,uDAAuD,CAAC;AAE/D,qBACa,kBAAmB,SAAQ,UAAU;IAChD;;OAEG;IACH,OAAO,CAAC,SAAS,CAAiC;IAClD;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC,qBAAqB,CAAC;IACtC;;OAEG;IACyB,KAAK,CAAC,EAAE,MAAM,CAAC;IAC3C;;OAEG;IACS,QAAQ,CAAC,EAAE,MAAM,CAAC;IAC9B;;OAEG;IACS,IAAI,CAAC,EAAE,MAAM,CAAC;IAC1B;;OAEG;IACyB,OAAO,CAAC,EAAE,MAAM,CAAC,cAAc,GACzD,MAAM,CAAC,oBAAoB,CAAC;IAE9B,MAAM,CAAC,MAAM,4BAIX;IAEF,OAAO,CAAC,OAAO;IAKf,OAAO,CAAC,OAAO;IAOf,OAAO,CAAC,OAAO;IAQf,OAAO,CAAC,QAAQ;IAKhB,OAAO,CAAC,QAAQ,CAEd;IAEF,YAAY;IAQZ,YAAY,CAAC,SAAS,EAAE,WAAW;IA4B1B,oBAAoB,IAAI,IAAI;IAMrC,YAAY;IAuCZ,QAAQ;IAKR,aAAa;IAcb,MAAM;IAIN,QAAQ,CAAC,KAAK,EAAE,MAAM;IAItB,OAAO,CAAC,iBAAiB,EAAE,cAAc;CAe1C;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,gBAAgB,EAAE,kBAAkB,CAAC;KACtC;CACF;AAED,eAAe,kBAAkB,CAAC"}