@covalent/components 8.14.1 → 8.15.0-beta.10

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 (188) 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 +1 -1
  6. package/app-shell.mjs +8 -7
  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 +4 -3
  15. package/cell/cell.d.ts +65 -0
  16. package/cell/cell.d.ts.map +1 -0
  17. package/cell.js +29 -0
  18. package/cell.mjs +147 -0
  19. package/check-list-item.js +1 -1
  20. package/check-list-item.mjs +8 -7
  21. package/checkbox.js +1 -1
  22. package/checkbox.mjs +16 -15
  23. package/{chip-ebd0a88e.js → chip-c65a4549.js} +1 -1
  24. package/{chip-2d0fd3f0.mjs → chip-fb0ea5c5.mjs} +1 -1
  25. package/chip-set.js +2 -2
  26. package/chip-set.mjs +46 -45
  27. package/chip.js +1 -1
  28. package/chip.mjs +5 -4
  29. package/circular-progress.js +1 -1
  30. package/circular-progress.mjs +5 -4
  31. package/class-map-0a4c6ca9.js +5 -0
  32. package/class-map-6e504a9a.mjs +38 -0
  33. package/code-editor/code-editor.d.ts +73 -0
  34. package/code-editor/code-editor.d.ts.map +1 -0
  35. package/code-editor-3a09cbf1.js +732 -0
  36. package/code-editor-ce557bd5.mjs +61376 -0
  37. package/code-editor.js +1 -0
  38. package/code-editor.mjs +10 -0
  39. package/code-snippet.js +2 -2
  40. package/code-snippet.mjs +5 -4
  41. package/cpp-642b10c4.mjs +387 -0
  42. package/cpp-7eec3311.js +6 -0
  43. package/csharp-32862cd2.js +6 -0
  44. package/csharp-d987ddad.mjs +320 -0
  45. package/css-5dd354ac.mjs +186 -0
  46. package/css-9be95551.js +8 -0
  47. package/dart-031264ea.js +6 -0
  48. package/dart-5d209f63.mjs +270 -0
  49. package/{dialog-c9dbe94d.mjs → dialog-16aad066.mjs} +1 -1
  50. package/{dialog-82b03745.js → dialog-86192b9a.js} +1 -1
  51. package/dialog.js +1 -1
  52. package/dialog.mjs +5 -4
  53. package/directive-1186bc23.js +5 -0
  54. package/directive-daf4e9b6.mjs +27 -0
  55. package/drawer.js +1 -1
  56. package/drawer.mjs +5 -4
  57. package/formfield.js +3 -3
  58. package/formfield.mjs +4 -3
  59. package/go-46e3b371.mjs +208 -0
  60. package/go-cdd943fd.js +6 -0
  61. package/html-4fffc46e.js +6 -0
  62. package/html-783f1e7c.mjs +286 -0
  63. package/icon-button-toggle.js +1 -1
  64. package/icon-button-toggle.mjs +6 -5
  65. package/icon-button.js +1 -1
  66. package/icon-button.mjs +6 -5
  67. package/icon-check-toggle.js +1 -1
  68. package/icon-check-toggle.mjs +7 -6
  69. package/icon-radio-toggle.js +3 -3
  70. package/icon-radio-toggle.mjs +7 -6
  71. package/index.d.ts +3 -0
  72. package/index.d.ts.map +1 -1
  73. package/index.js +1 -1
  74. package/index.mjs +125 -117
  75. package/java-32d7b433.js +6 -0
  76. package/java-cd017f60.mjs +221 -0
  77. package/javascript-4d09cd3c.mjs +80 -0
  78. package/javascript-90bb18e6.js +6 -0
  79. package/kotlin-4b9019e1.js +6 -0
  80. package/kotlin-c6e52a56.mjs +245 -0
  81. package/linear-progress.js +1 -1
  82. package/linear-progress.mjs +5 -4
  83. package/list-item.js +2 -2
  84. package/list-item.mjs +7 -6
  85. package/list.js +1 -1
  86. package/list.mjs +8 -7
  87. package/lua-b46719a9.js +6 -0
  88. package/lua-f159160b.mjs +157 -0
  89. package/markdown-9b448c46.mjs +202 -0
  90. package/markdown-eae8e3ba.js +6 -0
  91. package/menu.js +5 -5
  92. package/menu.mjs +9 -8
  93. package/{mwc-checkbox-base-c40d16d2.mjs → mwc-checkbox-base-02b4eb91.mjs} +2 -2
  94. package/{mwc-checkbox-base-3d8c9549.js → mwc-checkbox-base-935d9566.js} +1 -1
  95. package/{mwc-drawer-base-798b11f8.js → mwc-drawer-base-bbae43c3.js} +1 -1
  96. package/{mwc-drawer-base-9c77129c.mjs → mwc-drawer-base-ca75f41f.mjs} +1 -1
  97. package/{mwc-line-ripple-directive-a6b39a3c.js → mwc-line-ripple-directive-40145003.js} +14 -14
  98. package/{mwc-line-ripple-directive-f9dd7fe3.mjs → mwc-line-ripple-directive-aabd8778.mjs} +6 -5
  99. package/{mwc-list-base-400b00e2.js → mwc-list-base-22616d0a.js} +1 -1
  100. package/{mwc-list-base-495cbb3b.mjs → mwc-list-base-402e1d8e.mjs} +1 -1
  101. package/{mwc-list-item-base-297d86b0.js → mwc-list-item-base-06d93e6e.js} +1 -1
  102. package/{mwc-list-item-base-6449e812.mjs → mwc-list-item-base-3c6a3bfb.mjs} +2 -2
  103. package/{mwc-menu-base-9704207e.mjs → mwc-menu-base-04586160.mjs} +3 -3
  104. package/{mwc-menu-base-c75ca473.js → mwc-menu-base-08f54c38.js} +1 -1
  105. package/{mwc-radio-base-913e02e2.js → mwc-radio-base-147cf999.js} +1 -1
  106. package/{mwc-radio-base-4dbe9e38.mjs → mwc-radio-base-768b4221.mjs} +2 -2
  107. package/{mwc-slider.css-c7107d94.js → mwc-slider.css-c5f99704.js} +1 -1
  108. package/{mwc-slider.css-30c91236.mjs → mwc-slider.css-cda43bd0.mjs} +3 -3
  109. package/{mwc-tab-base-effde6e4.mjs → mwc-tab-base-0814a3ef.mjs} +2 -2
  110. package/{mwc-tab-base-f28722aa.js → mwc-tab-base-f2269fd1.js} +1 -1
  111. package/{mwc-top-app-bar-base-28c4192d.mjs → mwc-top-app-bar-base-8a7f7312.mjs} +1 -1
  112. package/{mwc-top-app-bar-base-aec60f27.js → mwc-top-app-bar-base-8c8cde51.js} +1 -1
  113. package/nav-list-item.js +1 -1
  114. package/nav-list-item.mjs +7 -6
  115. package/notebook/notebook.d.ts +87 -0
  116. package/notebook/notebook.d.ts.map +1 -0
  117. package/notebook.js +121 -0
  118. package/notebook.mjs +3449 -0
  119. package/package.json +16 -1
  120. package/php-987b9d87.mjs +471 -0
  121. package/php-a6dcde52.js +6 -0
  122. package/python-562f8e9b.mjs +264 -0
  123. package/python-af3aad7d.js +6 -0
  124. package/r-42c6f0aa.js +6 -0
  125. package/r-630f5d6b.mjs +245 -0
  126. package/radio-list-item.js +1 -1
  127. package/radio-list-item.mjs +8 -7
  128. package/radio.js +2 -2
  129. package/radio.mjs +7 -6
  130. package/{ripple-handlers-0d9ad7c2.mjs → ripple-handlers-8883e893.mjs} +2 -2
  131. package/{ripple-handlers-5d5b21db.js → ripple-handlers-9fb4a31a.js} +1 -1
  132. package/rust-87887495.js +6 -0
  133. package/rust-97f8f6e1.mjs +337 -0
  134. package/scala-c68c650c.mjs +353 -0
  135. package/scala-e8b7bd42.js +6 -0
  136. package/select.js +2 -2
  137. package/select.mjs +11 -10
  138. package/shell-09452d42.mjs +224 -0
  139. package/shell-43cfbe7d.js +6 -0
  140. package/side-sheet.js +1 -1
  141. package/side-sheet.mjs +3 -2
  142. package/slider-range.js +1 -1
  143. package/slider-range.mjs +7 -6
  144. package/slider.js +1 -1
  145. package/slider.mjs +12 -11
  146. package/snackbar.js +14 -18
  147. package/snackbar.mjs +88 -159
  148. package/sql-63ec8e76.mjs +818 -0
  149. package/sql-faf05577.js +6 -0
  150. package/status-dialog.js +1 -1
  151. package/status-dialog.mjs +7 -6
  152. package/status-header.js +1 -1
  153. package/status-header.mjs +4 -3
  154. package/{style-map-88d2563f.js → style-map-a135c6ab.js} +2 -2
  155. package/{style-map-bc3ed3e0.mjs → style-map-e7ec6d41.mjs} +1 -1
  156. package/style.css +1 -0
  157. package/swift-724ff2a3.js +8 -0
  158. package/swift-abdf1835.mjs +315 -0
  159. package/switch.js +1 -1
  160. package/switch.mjs +6 -5
  161. package/tab-bar.js +2 -2
  162. package/tab-bar.mjs +7 -6
  163. package/tab.js +1 -1
  164. package/tab.mjs +9 -8
  165. package/text-lockup.js +1 -1
  166. package/text-lockup.mjs +4 -3
  167. package/textarea.js +1 -1
  168. package/textarea.mjs +6 -5
  169. package/{textfield-11525c88.js → textfield-0645375b.js} +16 -16
  170. package/{textfield-902f3ad3.mjs → textfield-93cfcf3c.mjs} +5 -4
  171. package/textfield.js +1 -1
  172. package/textfield.mjs +6 -5
  173. package/toolbar.js +1 -1
  174. package/toolbar.mjs +5 -4
  175. package/top-app-bar-fixed.js +1 -1
  176. package/top-app-bar-fixed.mjs +5 -4
  177. package/top-app-bar.js +1 -1
  178. package/top-app-bar.mjs +8 -7
  179. package/tree-list-item.js +1 -1
  180. package/tree-list-item.mjs +4 -3
  181. package/typescript-76d039b3.js +6 -0
  182. package/typescript-a2a5d6b2.mjs +332 -0
  183. package/xml-89571455.mjs +100 -0
  184. package/xml-e66929d0.js +6 -0
  185. package/yaml-11a91e71.js +6 -0
  186. package/yaml-4eccd122.mjs +189 -0
  187. package/class-map-4b94b017.mjs +0 -62
  188. package/class-map-b5efe8da.js +0 -9
package/cell.mjs ADDED
@@ -0,0 +1,147 @@
1
+ import { i as p, r as h, s as u, x as c, e as m } from "./query-assigned-elements-4a39219d.mjs";
2
+ import { n as l } from "./property-9b6ea53b.mjs";
3
+ import { o as g } from "./class-map-6e504a9a.mjs";
4
+ import "./code-editor-ce557bd5.mjs";
5
+ import "./code-snippet.mjs";
6
+ import "./icon-button.mjs";
7
+ import "./typography.mjs";
8
+ import "./directive-daf4e9b6.mjs";
9
+ import "./async-directive-99a01ec7.mjs";
10
+ import "./directive-helpers-e3ea6592.mjs";
11
+ import "./query-assigned-nodes-df691e78.mjs";
12
+ import "./_commonjsHelpers-2f131a27.mjs";
13
+ import "./tslib.es6-c4b0f3b1.mjs";
14
+ import "./ripple-handlers-8883e893.mjs";
15
+ import "./base-element-acf30176.mjs";
16
+ import "./utils-dc65fdc9.mjs";
17
+ import "./state-b5e865db.mjs";
18
+ import "./query-d843aa92.mjs";
19
+ import "./style-map-e7ec6d41.mjs";
20
+ import "./aria-property-fa2717fe.mjs";
21
+ import "./event-options-78d6cf94.mjs";
22
+ import "./if-defined-c367f208.mjs";
23
+ const v = `:host{--mdc-icon-button-size: 24px;font-family:var(--mdc-typography-body1-font-family);width:100%}cv-code-snippet{background-color:var(--cv-theme-surface-container-high);border-radius:0;box-sizing:border-box;min-height:21px;padding:0 .25rem}cv-code-snippet::part(code){font-size:var(--mdc-typography-body2-font-size);line-height:var(--mdc-typography-body2-line-height);padding:1px 0;white-space:pre-wrap}.selection-indicator{background-color:var(--cv-theme-primary);border-radius:2px;margin-top:2px;visibility:hidden;min-width:8px}.timesExecuted{color:var(--cv-theme-outline-variant);margin:0 2rem;min-height:var(--mdc-icon-button-size);min-width:var(--mdc-icon-button-size)}.cell{box-sizing:border-box;display:flex;justify-content:space-between}.cell:hover .selection-indicator,.cell.focused .selection-indicator,.cell.selected .selection-indicator{visibility:visible}.cell:hover .timesExecuted,.cell.focused .timesExecuted,.cell.selected .timesExecuted{color:var(--cv-theme-primary)}.cellWrapper{display:flex;flex-direction:column;width:100%}.cellCodeWrapper{align-items:flex-start;display:flex;justify-content:space-between}.cellOutputWrapper{width:calc(100% - 96px)}.output{margin:.75rem .25rem .5rem;max-width:100%}
24
+ `;
25
+ var f = Object.defineProperty, y = Object.getOwnPropertyDescriptor, s = (e, o, d, r) => {
26
+ for (var t = r > 1 ? void 0 : r ? y(o, d) : o, a = e.length - 1, n; a >= 0; a--)
27
+ (n = e[a]) && (t = (r ? n(o, d, t) : n(t)) || t);
28
+ return r && t && f(o, d, t), t;
29
+ };
30
+ let i = class extends u {
31
+ constructor() {
32
+ super(...arguments), this.code = "", this.language = "", this.selected = !1, this.timesExecuted = 0, this.showEditor = !0, this._editorFocused = !1, this.editorOptions = {
33
+ minimap: { enabled: !1 },
34
+ // Disable minimap to save space
35
+ wordWrap: "on",
36
+ // Enable word wrap to avoid horizontal scroll
37
+ fontSize: "14px",
38
+ glyphMargin: !1,
39
+ folding: !1,
40
+ lineNumbers: "off",
41
+ lineDecorationsWidth: 0,
42
+ lineNumbersMinChars: 0,
43
+ renderLineHighlight: "none",
44
+ overviewRulerLanes: 0,
45
+ hideCursorInOverviewRuler: !0,
46
+ scrollbar: {
47
+ alwaysConsumeMouseWheel: !1,
48
+ vertical: "hidden"
49
+ }
50
+ };
51
+ }
52
+ handleCodeChange(e) {
53
+ this.code = e.detail.code;
54
+ }
55
+ handleRun() {
56
+ this.dispatchEvent(
57
+ new CustomEvent("cell-run-code", {
58
+ detail: { index: this.index, code: this.code },
59
+ bubbles: !0,
60
+ composed: !0
61
+ })
62
+ );
63
+ }
64
+ setEditorFocus(e) {
65
+ this._editorFocused = e, this.requestUpdate();
66
+ }
67
+ updated(e) {
68
+ var o, d;
69
+ if (e.has("code") || e.has("language")) {
70
+ const r = (o = this.shadowRoot) == null ? void 0 : o.querySelector("cv-code-editor");
71
+ if (r)
72
+ r.code = this.code, r.language = this.language;
73
+ else {
74
+ const t = (d = this.shadowRoot) == null ? void 0 : d.querySelector("cv-code-snippet");
75
+ t && !this.selected && (t.language = this.language);
76
+ }
77
+ }
78
+ }
79
+ renderEditor() {
80
+ const e = this.selected ? c`<cv-code-editor
81
+ @code-change="${this.handleCodeChange}"
82
+ @editor-focus="${() => this.setEditorFocus(!0)}"
83
+ @editor-blur="${() => this.setEditorFocus(!1)}"
84
+ .code="${this.code}"
85
+ .language="${this.language}"
86
+ .options="${this.editorOptions}"
87
+ ></cv-code-editor>` : c`<cv-code-snippet hideHeader .language="${this.language}"
88
+ >${this.code}</cv-code-snippet
89
+ >`, o = c`<slot name="error"></slot>
90
+ <cv-typography class="output" scale="body1">
91
+ <slot name="output"></slot>
92
+ <slot name="input"></slot>
93
+ </cv-typography>`;
94
+ return c`${this.showEditor ? e : ""}${!this.showEditor && this.language === "markdown" || this.language !== "markdown" ? o : ""}`;
95
+ }
96
+ render() {
97
+ const e = {
98
+ cell: !0,
99
+ selected: this.selected,
100
+ focused: this._editorFocused
101
+ };
102
+ return c`
103
+ <div class="${g(e)}">
104
+ <span class="selection-indicator"></span>
105
+ <div class="cellWrapper">
106
+ <div class="cellCodeWrapper">
107
+ <span class="timesExecuted">
108
+ ${this.showEditor ? c`[${this.timesExecuted ? this.timesExecuted : " "}]:` : ""}
109
+ </span>
110
+ <div class="cellOutputWrapper">${this.renderEditor()}</div>
111
+ </div>
112
+ </div>
113
+ </div>
114
+ `;
115
+ }
116
+ };
117
+ i.styles = [
118
+ p`
119
+ ${h(v)}
120
+ `
121
+ ];
122
+ s([
123
+ l({ type: Number })
124
+ ], i.prototype, "index", 2);
125
+ s([
126
+ l({ type: String })
127
+ ], i.prototype, "code", 2);
128
+ s([
129
+ l({ type: String })
130
+ ], i.prototype, "language", 2);
131
+ s([
132
+ l({ type: Boolean, reflect: !0 })
133
+ ], i.prototype, "selected", 2);
134
+ s([
135
+ l({ type: Number })
136
+ ], i.prototype, "timesExecuted", 2);
137
+ s([
138
+ l({ type: Boolean, reflect: !0 })
139
+ ], i.prototype, "showEditor", 2);
140
+ i = s([
141
+ m("cv-cell")
142
+ ], i);
143
+ const I = i;
144
+ export {
145
+ i as CovalentCell,
146
+ I as default
147
+ };
@@ -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-e336fb0e.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-e336fb0e.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-e628f363.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
+ };