@covalent/components 8.15.0-beta.14 → 8.15.0-beta.16

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/notebook.mjs CHANGED
@@ -1,5 +1,5 @@
1
- import { A as Ru, T as S0, i as T0, r as I0, s as B0, x as v, D as z0, e as M0 } from "./query-assigned-elements-4a39219d.mjs";
2
- import { i as R0, t as q0, e as L0 } from "./directive-daf4e9b6.mjs";
1
+ import { A as qu, T as S0, i as T0, r as I0, s as B0, x as v, D as z0, e as M0 } from "./query-assigned-elements-4a39219d.mjs";
2
+ import { i as q0, t as R0, e as L0 } from "./directive-daf4e9b6.mjs";
3
3
  import { n as su } from "./property-9b6ea53b.mjs";
4
4
  import "./alert.mjs";
5
5
  import "./button.mjs";
@@ -31,7 +31,7 @@ import "./typography.mjs";
31
31
  import "./query-assigned-nodes-df691e78.mjs";
32
32
  import "./_commonjsHelpers-2f131a27.mjs";
33
33
  import "./mwc-list-item-base-3c6a3bfb.mjs";
34
- import "./list-item-e628f363.mjs";
34
+ import "./list-item-24236190.mjs";
35
35
  import "./mwc-line-ripple-directive-aabd8778.mjs";
36
36
  import "./mwc-menu-base-04586160.mjs";
37
37
  import "./mwc-list-base-402e1d8e.mjs";
@@ -41,13 +41,13 @@ import "./form-element-abadd335.mjs";
41
41
  * Copyright 2017 Google LLC
42
42
  * SPDX-License-Identifier: BSD-3-Clause
43
43
  */
44
- class Du extends R0 {
44
+ class Du extends q0 {
45
45
  constructor(e) {
46
- if (super(e), this.et = Ru, e.type !== q0.CHILD)
46
+ if (super(e), this.et = qu, e.type !== R0.CHILD)
47
47
  throw Error(this.constructor.directiveName + "() can only be used in child bindings");
48
48
  }
49
49
  render(e) {
50
- if (e === Ru || e == null)
50
+ if (e === qu || e == null)
51
51
  return this.ft = void 0, this.et = e;
52
52
  if (e === S0)
53
53
  return e;
@@ -61,7 +61,7 @@ class Du extends R0 {
61
61
  }
62
62
  }
63
63
  Du.directiveName = "unsafeHTML", Du.resultType = 1;
64
- const qu = L0(Du), Lu = {};
64
+ const Ru = L0(Du), Lu = {};
65
65
  function P0(u) {
66
66
  let e = Lu[u];
67
67
  if (e)
@@ -821,17 +821,17 @@ const we = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
821
821
  parseLinkDestination: Fe,
822
822
  parseLinkLabel: Ae,
823
823
  parseLinkTitle: ve
824
- }, Symbol.toStringTag, { value: "Module" })), R = {};
825
- R.code_inline = function(u, e, t, n, r) {
824
+ }, Symbol.toStringTag, { value: "Module" })), q = {};
825
+ q.code_inline = function(u, e, t, n, r) {
826
826
  const c = u[e];
827
827
  return "<code" + r.renderAttrs(c) + ">" + N(c.content) + "</code>";
828
828
  };
829
- R.code_block = function(u, e, t, n, r) {
829
+ q.code_block = function(u, e, t, n, r) {
830
830
  const c = u[e];
831
831
  return "<pre" + r.renderAttrs(c) + "><code>" + N(u[e].content) + `</code></pre>
832
832
  `;
833
833
  };
834
- R.fence = function(u, e, t, n, r) {
834
+ q.fence = function(u, e, t, n, r) {
835
835
  const c = u[e], o = c.info ? G(c.info).trim() : "";
836
836
  let i = "", a = "";
837
837
  if (o) {
@@ -854,32 +854,32 @@ R.fence = function(u, e, t, n, r) {
854
854
  return `<pre><code${r.renderAttrs(c)}>${s}</code></pre>
855
855
  `;
856
856
  };
857
- R.image = function(u, e, t, n, r) {
857
+ q.image = function(u, e, t, n, r) {
858
858
  const c = u[e];
859
859
  return c.attrs[c.attrIndex("alt")][1] = r.renderInlineAsText(c.children, t, n), r.renderToken(u, e, t);
860
860
  };
861
- R.hardbreak = function(u, e, t) {
861
+ q.hardbreak = function(u, e, t) {
862
862
  return t.xhtmlOut ? `<br />
863
863
  ` : `<br>
864
864
  `;
865
865
  };
866
- R.softbreak = function(u, e, t) {
866
+ q.softbreak = function(u, e, t) {
867
867
  return t.breaks ? t.xhtmlOut ? `<br />
868
868
  ` : `<br>
869
869
  ` : `
870
870
  `;
871
871
  };
872
- R.text = function(u, e) {
872
+ q.text = function(u, e) {
873
873
  return N(u[e].content);
874
874
  };
875
- R.html_block = function(u, e) {
875
+ q.html_block = function(u, e) {
876
876
  return u[e].content;
877
877
  };
878
- R.html_inline = function(u, e) {
878
+ q.html_inline = function(u, e) {
879
879
  return u[e].content;
880
880
  };
881
881
  function W() {
882
- this.rules = lu({}, R);
882
+ this.rules = lu({}, q);
883
883
  }
884
884
  W.prototype.renderAttrs = function(e) {
885
885
  let t, n, r;
@@ -1088,10 +1088,10 @@ function ze(u) {
1088
1088
  function Me(u) {
1089
1089
  return /^<a[>\s]/i.test(u);
1090
1090
  }
1091
- function Re(u) {
1091
+ function qe(u) {
1092
1092
  return /^<\/a\s*>/i.test(u);
1093
1093
  }
1094
- function qe(u) {
1094
+ function Re(u) {
1095
1095
  const e = u.tokens;
1096
1096
  if (u.md.options.linkify)
1097
1097
  for (let t = 0, n = e.length; t < n; t++) {
@@ -1105,7 +1105,7 @@ function qe(u) {
1105
1105
  o--;
1106
1106
  continue;
1107
1107
  }
1108
- if (i.type === "html_inline" && (Me(i.content) && c > 0 && c--, Re(i.content) && c++), !(c > 0) && i.type === "text" && u.md.linkify.test(i.content)) {
1108
+ if (i.type === "html_inline" && (Me(i.content) && c > 0 && c--, qe(i.content) && c++), !(c > 0) && i.type === "text" && u.md.linkify.test(i.content)) {
1109
1109
  const a = i.content;
1110
1110
  let s = u.md.linkify.match(a);
1111
1111
  const l = [];
@@ -1260,7 +1260,7 @@ const xu = [
1260
1260
  ["normalize", Ie],
1261
1261
  ["block", Be],
1262
1262
  ["inline", ze],
1263
- ["linkify", qe],
1263
+ ["linkify", Re],
1264
1264
  ["replacements", Ue],
1265
1265
  ["smartquotes", Ve],
1266
1266
  // `text_join` finds `text_special` tokens (for escape sequences)
@@ -1278,7 +1278,7 @@ Iu.prototype.process = function(u) {
1278
1278
  e[t](u);
1279
1279
  };
1280
1280
  Iu.prototype.State = s0;
1281
- function q(u, e, t, n) {
1281
+ function R(u, e, t, n) {
1282
1282
  this.src = u, this.md = e, this.env = t, this.tokens = n, this.bMarks = [], this.eMarks = [], this.tShift = [], this.sCount = [], this.bsCount = [], this.blkIndent = 0, this.line = 0, this.lineMax = 0, this.tight = !1, this.ddIndent = -1, this.listIndent = -1, this.parentType = "root", this.level = 0;
1283
1283
  const r = this.src;
1284
1284
  for (let c = 0, o = 0, i = 0, a = 0, s = r.length, l = !1; o < s; o++) {
@@ -1293,19 +1293,19 @@ function q(u, e, t, n) {
1293
1293
  }
1294
1294
  this.bMarks.push(r.length), this.eMarks.push(r.length), this.tShift.push(0), this.sCount.push(0), this.bsCount.push(0), this.lineMax = this.bMarks.length - 1;
1295
1295
  }
1296
- q.prototype.push = function(u, e, t) {
1296
+ R.prototype.push = function(u, e, t) {
1297
1297
  const n = new B(u, e, t);
1298
1298
  return n.block = !0, t < 0 && this.level--, n.level = this.level, t > 0 && this.level++, this.tokens.push(n), n;
1299
1299
  };
1300
- q.prototype.isEmpty = function(e) {
1300
+ R.prototype.isEmpty = function(e) {
1301
1301
  return this.bMarks[e] + this.tShift[e] >= this.eMarks[e];
1302
1302
  };
1303
- q.prototype.skipEmptyLines = function(e) {
1303
+ R.prototype.skipEmptyLines = function(e) {
1304
1304
  for (let t = this.lineMax; e < t && !(this.bMarks[e] + this.tShift[e] < this.eMarks[e]); e++)
1305
1305
  ;
1306
1306
  return e;
1307
1307
  };
1308
- q.prototype.skipSpaces = function(e) {
1308
+ R.prototype.skipSpaces = function(e) {
1309
1309
  for (let t = this.src.length; e < t; e++) {
1310
1310
  const n = this.src.charCodeAt(e);
1311
1311
  if (!E(n))
@@ -1313,7 +1313,7 @@ q.prototype.skipSpaces = function(e) {
1313
1313
  }
1314
1314
  return e;
1315
1315
  };
1316
- q.prototype.skipSpacesBack = function(e, t) {
1316
+ R.prototype.skipSpacesBack = function(e, t) {
1317
1317
  if (e <= t)
1318
1318
  return e;
1319
1319
  for (; e > t; )
@@ -1321,12 +1321,12 @@ q.prototype.skipSpacesBack = function(e, t) {
1321
1321
  return e + 1;
1322
1322
  return e;
1323
1323
  };
1324
- q.prototype.skipChars = function(e, t) {
1324
+ R.prototype.skipChars = function(e, t) {
1325
1325
  for (let n = this.src.length; e < n && this.src.charCodeAt(e) === t; e++)
1326
1326
  ;
1327
1327
  return e;
1328
1328
  };
1329
- q.prototype.skipCharsBack = function(e, t, n) {
1329
+ R.prototype.skipCharsBack = function(e, t, n) {
1330
1330
  if (e <= n)
1331
1331
  return e;
1332
1332
  for (; e > n; )
@@ -1334,7 +1334,7 @@ q.prototype.skipCharsBack = function(e, t, n) {
1334
1334
  return e + 1;
1335
1335
  return e;
1336
1336
  };
1337
- q.prototype.getLines = function(e, t, n, r) {
1337
+ R.prototype.getLines = function(e, t, n, r) {
1338
1338
  if (e >= t)
1339
1339
  return "";
1340
1340
  const c = new Array(t - e);
@@ -1356,7 +1356,7 @@ q.prototype.getLines = function(e, t, n, r) {
1356
1356
  }
1357
1357
  return c.join("");
1358
1358
  };
1359
- q.prototype.Token = B;
1359
+ R.prototype.Token = B;
1360
1360
  const We = 65536;
1361
1361
  function _u(u, e) {
1362
1362
  const t = u.bMarks[e] + u.tShift[e], n = u.eMarks[e];
@@ -2006,7 +2006,7 @@ du.prototype.parse = function(u, e, t, n) {
2006
2006
  const r = new this.State(u, e, t, n);
2007
2007
  this.tokenize(r, r.line, r.lineMax);
2008
2008
  };
2009
- du.prototype.State = q;
2009
+ du.prototype.State = R;
2010
2010
  function eu(u, e, t, n) {
2011
2011
  this.src = u, this.env = t, this.md = e, this.tokens = n, this.tokens_meta = Array(n.length), this.pos = 0, this.posMax = this.src.length, this.level = 0, this.pending = "", this.pendingLevel = 0, this.cache = {}, this.delimiters = [], this._prev_delimiters = [], this.backticks = {}, this.backticksScanned = !1, this.linkLevel = 0;
2012
2012
  }
@@ -2359,7 +2359,7 @@ function Bt(u, e) {
2359
2359
  return u.pos = c, u.posMax = b, !0;
2360
2360
  }
2361
2361
  const zt = /^([a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*)$/, Mt = /^([a-zA-Z][a-zA-Z0-9+.-]{1,31}):([^<>\x00-\x20]*)$/;
2362
- function Rt(u, e) {
2362
+ function qt(u, e) {
2363
2363
  let t = u.pos;
2364
2364
  if (u.src.charCodeAt(t) !== 60)
2365
2365
  return !1;
@@ -2404,7 +2404,7 @@ function Rt(u, e) {
2404
2404
  }
2405
2405
  return !1;
2406
2406
  }
2407
- function qt(u) {
2407
+ function Rt(u) {
2408
2408
  return /^<a[>\s]/i.test(u);
2409
2409
  }
2410
2410
  function Lt(u) {
@@ -2428,7 +2428,7 @@ function $t(u, e) {
2428
2428
  return !1;
2429
2429
  if (!e) {
2430
2430
  const o = u.push("html_inline", "", 0);
2431
- o.content = c[0], qt(o.content) && u.linkLevel++, Lt(o.content) && u.linkLevel--;
2431
+ o.content = c[0], Rt(o.content) && u.linkLevel++, Lt(o.content) && u.linkLevel--;
2432
2432
  }
2433
2433
  return u.pos += c[0].length, !0;
2434
2434
  }
@@ -2511,7 +2511,7 @@ const mu = [
2511
2511
  ["emphasis", b0.tokenize],
2512
2512
  ["link", It],
2513
2513
  ["image", Bt],
2514
- ["autolink", Rt],
2514
+ ["autolink", qt],
2515
2515
  ["html_inline", $t],
2516
2516
  ["entity", jt]
2517
2517
  ], gu = [
@@ -3185,6 +3185,7 @@ let j = class extends B0 {
3185
3185
  copyCell() {
3186
3186
  this._selectedCellIndex !== null && (this._clipboardCell = { ...this.cells[this._selectedCellIndex] });
3187
3187
  }
3188
+ // Create a new cell object
3188
3189
  createNewCell(u) {
3189
3190
  const e = u === "markdown" ? u : this.defaultLanguage || "python";
3190
3191
  return {
@@ -3207,7 +3208,9 @@ let j = class extends B0 {
3207
3208
  // Delete the selected cell
3208
3209
  deleteCell() {
3209
3210
  if (this._selectedCellIndex !== null) {
3210
- this.cells.splice(this._selectedCellIndex, 1);
3211
+ this.cells = this.cells.filter(
3212
+ (e, t) => t !== this._selectedCellIndex
3213
+ );
3211
3214
  const u = Math.min(
3212
3215
  this._selectedCellIndex + 1,
3213
3216
  this.cells.length - 1
@@ -3222,7 +3225,8 @@ let j = class extends B0 {
3222
3225
  disconnectedCallback() {
3223
3226
  super.disconnectedCallback(), document.removeEventListener("keydown", this._handleKeydown);
3224
3227
  }
3225
- // Dispatch a custom cell event
3228
+ // Dispatch a custom cell action event
3229
+ // It handles actions like: run-cell, interrupt-cell, refresh-cell etc
3226
3230
  dispatchCustomCellEvent(u, e) {
3227
3231
  !e && this._selectedCellIndex && (e = this.cells[this._selectedCellIndex]), e && this.dispatchEvent(
3228
3232
  new CustomEvent("cell-action", {
@@ -3277,7 +3281,7 @@ let j = class extends B0 {
3277
3281
  // Dispatch an event when the cell type is changed
3278
3282
  handleCellTypeChange(u) {
3279
3283
  const e = this.cellTypes[u.detail.index];
3280
- this._selectedCellIndex && this.cells[this._selectedCellIndex].cell_type !== e.type && this.dispatchEvent(
3284
+ this._selectedCellIndex !== null && this.dispatchEvent(
3281
3285
  new CustomEvent("cell-type-changed", {
3282
3286
  bubbles: !0,
3283
3287
  cancelable: !0,
@@ -3288,7 +3292,7 @@ let j = class extends B0 {
3288
3292
  // Called whenever the code changes in the cell editor
3289
3293
  handleCodeChange(u, e) {
3290
3294
  const t = this.cells[e];
3291
- t.code = u.detail.code;
3295
+ t.code = u.detail.code, this.dispatchCustomCellEvent("edit-cell", t);
3292
3296
  }
3293
3297
  handleDragStart(u, e) {
3294
3298
  if (this._draggedCellIndex = e, this.deselectAllCells(), u.dataTransfer) {
@@ -3337,6 +3341,7 @@ let j = class extends B0 {
3337
3341
  })
3338
3342
  ), e.blur());
3339
3343
  }
3344
+ // Handle keyboard actions within the notebook
3340
3345
  _handleKeydown(u) {
3341
3346
  var t, n, r, c;
3342
3347
  let e = (t = this.cells) == null ? void 0 : t.findIndex((o) => o.selected);
@@ -3365,13 +3370,13 @@ let j = class extends B0 {
3365
3370
  // Shows the cell editor on clicking output for markdown cells
3366
3371
  handleOutputCLick(u) {
3367
3372
  const e = this.cells[u];
3368
- e.language === "markdown" && (e.showEditor = !0, this.dispatchUpdatedCells());
3373
+ e.language === "markdown" && (e.showEditor = !0, this.cells = this.cells.map((t) => t), this.dispatchUpdatedCells());
3369
3374
  }
3370
3375
  // Paste the copied/cut cell in the desired position
3371
3376
  pasteCell() {
3372
3377
  if (this._clipboardCell !== null) {
3373
3378
  const u = this._selectedCellIndex !== null ? this._selectedCellIndex + 1 : this.cells.length;
3374
- this.deselectAllCells(), this._clipboardCell.selected = !0, this.cells.splice(u, 0, { ...this._clipboardCell }), this.cells = this.cells.map((e, t) => ({ ...e, index: t })), this._selectedCellIndex = u, this.dispatchUpdatedCells();
3379
+ this._clipboardCell.selected = !0, this.cells.splice(u, 0, { ...this._clipboardCell }), this.cells = this.cells.map((e, t) => ({ ...e, index: t })), this.selectCell(u), this.dispatchUpdatedCells();
3375
3380
  }
3376
3381
  }
3377
3382
  renderCellOutput(u) {
@@ -3382,18 +3387,19 @@ let j = class extends B0 {
3382
3387
  switch (n) {
3383
3388
  case "text/markdown":
3384
3389
  return v`<div class="output-container">
3385
- ${qu(r.render(t.data[n]))}
3390
+ ${Ru(r.render(t.data[n]))}
3386
3391
  </div>`;
3387
3392
  case "text/html":
3388
3393
  return v`<div class="output-container">
3389
- ${qu(t.data[n])}
3394
+ ${Ru(t.data[n])}
3390
3395
  </div>`;
3391
3396
  case "image/png":
3397
+ case "image/jpg":
3392
3398
  return v`<div class="output-container">
3393
3399
  <img
3394
3400
  class="output-image"
3395
3401
  draggable="false"
3396
- src=${`data:image/png;base64, ${t.data[n]}`}
3402
+ src=${`data:image/${n.includes("jpg") ? "jpg" : "png"};base64, ${t.data[n]}`}
3397
3403
  />
3398
3404
  </div>`;
3399
3405
  default:
@@ -3428,15 +3434,15 @@ let j = class extends B0 {
3428
3434
  ></cv-icon-button>
3429
3435
  <cv-icon-button
3430
3436
  icon="stop"
3431
- @click="${() => this.dispatchCustomCellEvent("interrupt-cell")}"
3437
+ @click="${() => this.dispatchCustomCellEvent("interrupt-kernel")}"
3432
3438
  ></cv-icon-button>
3433
3439
  <cv-icon-button
3434
3440
  icon="refresh"
3435
- @click="${() => this.dispatchCustomCellEvent("refresh-cell")}"
3441
+ @click="${() => this.dispatchCustomCellEvent("refresh")}"
3436
3442
  ></cv-icon-button>
3437
3443
  <cv-icon-button
3438
3444
  icon="fast_forward"
3439
- @click="${() => this.dispatchCustomCellEvent("refresh-run-all-cell")}"
3445
+ @click="${() => this.dispatchCustomCellEvent("refresh-run-all")}"
3440
3446
  ></cv-icon-button>
3441
3447
  <cv-select
3442
3448
  label="Cell type"
@@ -3520,6 +3526,7 @@ let j = class extends B0 {
3520
3526
  </section>
3521
3527
  </div>`;
3522
3528
  }
3529
+ // Remove a css class from a target element
3523
3530
  removeCSS(u, e) {
3524
3531
  const t = e == null ? void 0 : e.querySelectorAll(u);
3525
3532
  t == null || t.forEach((n) => n.classList.remove(u));
@@ -3538,6 +3545,7 @@ let j = class extends B0 {
3538
3545
  e.selected = !0, this.cellType = e.language === "markdown" ? "markdown" : "code", this.requestUpdate();
3539
3546
  }
3540
3547
  }
3548
+ // Whether a code editor should be shown in the cell
3541
3549
  shouldRenderEditor(u) {
3542
3550
  var e;
3543
3551
  return u.language !== "markdown" || u.language === "markdown" && !((e = u.outputs) != null && e.length);
@@ -3545,8 +3553,8 @@ let j = class extends B0 {
3545
3553
  updated(u) {
3546
3554
  u.has("cells") && this.cells.forEach((e, t) => {
3547
3555
  var n;
3548
- e.showEditor = this.shouldRenderEditor(e), (n = e.inputs) != null && n.length && this.scrollToSelectedCell(t);
3549
- });
3556
+ (n = e.inputs) != null && n.length && this.scrollToSelectedCell(t);
3557
+ }), super.updated(u);
3550
3558
  }
3551
3559
  };
3552
3560
  j.styles = [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@covalent/components",
3
- "version": "8.15.0-beta.14",
3
+ "version": "8.15.0-beta.16",
4
4
  "description": "a catalog of material components for covalent",
5
5
  "main": "./index.js",
6
6
  "module": "./index.mjs",
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("./tslib.es6-98719205.js"),e=require("./query-assigned-elements-f623705d.js"),u=require("./mwc-radio-base-147cf999.js"),_=require("./property-57f6f6fe.js"),b=require("./query-680f1868.js"),p=require("./class-map-0a4c6ca9.js"),g=require("./if-defined-f1c45245.js"),h=require("./mwc-list-item-base-06d93e6e.js"),l=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("./observer-a096ab43.js");require("./event-options-3f5eb195.js");/**
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("./tslib.es6-98719205.js"),e=require("./query-assigned-elements-f623705d.js"),u=require("./mwc-radio-base-147cf999.js"),_=require("./property-57f6f6fe.js"),b=require("./query-680f1868.js"),p=require("./class-map-0a4c6ca9.js"),g=require("./if-defined-f1c45245.js"),h=require("./mwc-list-item-base-06d93e6e.js"),l=require("./list-item-d72b2fff.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("./observer-a096ab43.js");require("./event-options-3f5eb195.js");/**
2
2
  * @license
3
3
  * Copyright 2021 Google LLC
4
4
  * SPDX-LIcense-Identifier: Apache-2.0
@@ -6,7 +6,7 @@ import { i as u } from "./query-d843aa92.mjs";
6
6
  import { o as f } from "./class-map-6e504a9a.mjs";
7
7
  import { l as k } from "./if-defined-c367f208.mjs";
8
8
  import { L as v } from "./mwc-list-item-base-3c6a3bfb.mjs";
9
- import { s as x, a as y, c as w } from "./list-item-e628f363.mjs";
9
+ import { s as x, a as y, c as w } from "./list-item-24236190.mjs";
10
10
  import "./ripple-handlers-8883e893.mjs";
11
11
  import "./base-element-acf30176.mjs";
12
12
  import "./utils-dc65fdc9.mjs";
package/textarea.js CHANGED
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const o=require("./query-assigned-elements-f623705d.js"),n=require("./tslib.es6-98719205.js"),f=require("./textfield-0645375b.js"),x=require("./property-57f6f6fe.js"),s=require("./query-680f1868.js"),p=require("./class-map-0a4c6ca9.js"),a=require("./if-defined-f1c45245.js");require("./mwc-line-ripple-directive-40145003.js");require("./base-element-58a3f9ea.js");require("./utils-a8190a39.js");require("./directive-1186bc23.js");require("./form-element-c553d6f5.js");require("./observer-a096ab43.js");require("./state-0974a8e5.js");require("./event-options-3f5eb195.js");require("./directive-helpers-0ce1f995.js");/**
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const o=require("./query-assigned-elements-f623705d.js"),n=require("./tslib.es6-98719205.js"),f=require("./textfield-48207bf2.js"),x=require("./property-57f6f6fe.js"),s=require("./query-680f1868.js"),p=require("./class-map-0a4c6ca9.js"),a=require("./if-defined-f1c45245.js");require("./mwc-line-ripple-directive-40145003.js");require("./base-element-58a3f9ea.js");require("./utils-a8190a39.js");require("./directive-1186bc23.js");require("./form-element-c553d6f5.js");require("./observer-a096ab43.js");require("./state-0974a8e5.js");require("./event-options-3f5eb195.js");require("./directive-helpers-0ce1f995.js");/**
2
2
  * @license
3
3
  * Copyright 2019 Google LLC
4
4
  * SPDX-License-Identifier: Apache-2.0
package/textarea.mjs CHANGED
@@ -1,6 +1,6 @@
1
1
  import { x as s, i as f, r as p, e as h } from "./query-assigned-elements-4a39219d.mjs";
2
2
  import { _ as n } from "./tslib.es6-c4b0f3b1.mjs";
3
- import { T as g, l as b, s as u } from "./textfield-93cfcf3c.mjs";
3
+ import { T as g, l as b, s as u } from "./textfield-a994ca16.mjs";
4
4
  import { n as x } from "./property-9b6ea53b.mjs";
5
5
  import { i as _ } from "./query-d843aa92.mjs";
6
6
  import { o as v } from "./class-map-6e504a9a.mjs";
@@ -1,4 +1,4 @@
1
- "use strict";const a=require("./tslib.es6-98719205.js"),I=require("./mwc-line-ripple-directive-40145003.js"),E=require("./form-element-c553d6f5.js"),V=require("./observer-a096ab43.js"),u=require("./query-assigned-elements-f623705d.js"),l=require("./property-57f6f6fe.js"),x=require("./state-0974a8e5.js"),H=require("./event-options-3f5eb195.js"),y=require("./query-680f1868.js"),b=require("./class-map-0a4c6ca9.js"),h=require("./if-defined-f1c45245.js"),v=require("./directive-1186bc23.js"),_=require("./directive-helpers-0ce1f995.js"),$=require("./utils-a8190a39.js");/**
1
+ "use strict";const a=require("./tslib.es6-98719205.js"),I=require("./mwc-line-ripple-directive-40145003.js"),E=require("./form-element-c553d6f5.js"),V=require("./observer-a096ab43.js"),u=require("./query-assigned-elements-f623705d.js"),l=require("./property-57f6f6fe.js"),x=require("./state-0974a8e5.js"),H=require("./event-options-3f5eb195.js"),y=require("./query-680f1868.js"),b=require("./class-map-0a4c6ca9.js"),h=require("./if-defined-f1c45245.js"),g=require("./directive-1186bc23.js"),_=require("./directive-helpers-0ce1f995.js"),$=require("./utils-a8190a39.js");/**
2
2
  * @license
3
3
  * Copyright 2016 Google Inc.
4
4
  *
@@ -61,11 +61,11 @@
61
61
  * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
62
62
  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
63
63
  * THE SOFTWARE.
64
- */var C=["mousedown","touchstart"],O=["click","keydown"],M=function(s){a.__extends(e,s);function e(t,i){i===void 0&&(i={});var n=s.call(this,a.__assign(a.__assign({},e.defaultAdapter),t))||this;return n.isFocused=!1,n.receivedUserInput=!1,n.valid=!0,n.useNativeValidation=!0,n.validateOnValueChange=!0,n.helperText=i.helperText,n.characterCounter=i.characterCounter,n.leadingIcon=i.leadingIcon,n.trailingIcon=i.trailingIcon,n.inputFocusHandler=function(){n.activateFocus()},n.inputBlurHandler=function(){n.deactivateFocus()},n.inputInputHandler=function(){n.handleInput()},n.setPointerXOffset=function(o){n.setTransformOrigin(o)},n.textFieldInteractionHandler=function(){n.handleTextFieldInteraction()},n.validationAttributeChangeHandler=function(o){n.handleValidationAttributeChange(o)},n}return Object.defineProperty(e,"cssClasses",{get:function(){return B},enumerable:!1,configurable:!0}),Object.defineProperty(e,"strings",{get:function(){return L},enumerable:!1,configurable:!0}),Object.defineProperty(e,"numbers",{get:function(){return F},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"shouldAlwaysFloat",{get:function(){var t=this.getNativeInput().type;return T.indexOf(t)>=0},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"shouldFloat",{get:function(){return this.shouldAlwaysFloat||this.isFocused||!!this.getValue()||this.isBadInput()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"shouldShake",{get:function(){return!this.isFocused&&!this.isValid()&&!!this.getValue()},enumerable:!1,configurable:!0}),Object.defineProperty(e,"defaultAdapter",{get:function(){return{addClass:function(){},removeClass:function(){},hasClass:function(){return!0},setInputAttr:function(){},removeInputAttr:function(){},registerTextFieldInteractionHandler:function(){},deregisterTextFieldInteractionHandler:function(){},registerInputInteractionHandler:function(){},deregisterInputInteractionHandler:function(){},registerValidationAttributeChangeHandler:function(){return new MutationObserver(function(){})},deregisterValidationAttributeChangeHandler:function(){},getNativeInput:function(){return null},isFocused:function(){return!1},activateLineRipple:function(){},deactivateLineRipple:function(){},setLineRippleTransformOrigin:function(){},shakeLabel:function(){},floatLabel:function(){},setLabelRequired:function(){},hasLabel:function(){return!1},getLabelWidth:function(){return 0},hasOutline:function(){return!1},notchOutline:function(){},closeOutline:function(){}}},enumerable:!1,configurable:!0}),e.prototype.init=function(){var t,i,n,o;this.adapter.hasLabel()&&this.getNativeInput().required&&this.adapter.setLabelRequired(!0),this.adapter.isFocused()?this.inputFocusHandler():this.adapter.hasLabel()&&this.shouldFloat&&(this.notchOutline(!0),this.adapter.floatLabel(!0),this.styleFloating(!0)),this.adapter.registerInputInteractionHandler("focus",this.inputFocusHandler),this.adapter.registerInputInteractionHandler("blur",this.inputBlurHandler),this.adapter.registerInputInteractionHandler("input",this.inputInputHandler);try{for(var d=a.__values(C),c=d.next();!c.done;c=d.next()){var f=c.value;this.adapter.registerInputInteractionHandler(f,this.setPointerXOffset)}}catch(g){t={error:g}}finally{try{c&&!c.done&&(i=d.return)&&i.call(d)}finally{if(t)throw t.error}}try{for(var m=a.__values(O),p=m.next();!p.done;p=m.next()){var f=p.value;this.adapter.registerTextFieldInteractionHandler(f,this.textFieldInteractionHandler)}}catch(g){n={error:g}}finally{try{p&&!p.done&&(o=m.return)&&o.call(m)}finally{if(n)throw n.error}}this.validationObserver=this.adapter.registerValidationAttributeChangeHandler(this.validationAttributeChangeHandler),this.setcharacterCounter(this.getValue().length)},e.prototype.destroy=function(){var t,i,n,o;this.adapter.deregisterInputInteractionHandler("focus",this.inputFocusHandler),this.adapter.deregisterInputInteractionHandler("blur",this.inputBlurHandler),this.adapter.deregisterInputInteractionHandler("input",this.inputInputHandler);try{for(var d=a.__values(C),c=d.next();!c.done;c=d.next()){var f=c.value;this.adapter.deregisterInputInteractionHandler(f,this.setPointerXOffset)}}catch(g){t={error:g}}finally{try{c&&!c.done&&(i=d.return)&&i.call(d)}finally{if(t)throw t.error}}try{for(var m=a.__values(O),p=m.next();!p.done;p=m.next()){var f=p.value;this.adapter.deregisterTextFieldInteractionHandler(f,this.textFieldInteractionHandler)}}catch(g){n={error:g}}finally{try{p&&!p.done&&(o=m.return)&&o.call(m)}finally{if(n)throw n.error}}this.adapter.deregisterValidationAttributeChangeHandler(this.validationObserver)},e.prototype.handleTextFieldInteraction=function(){var t=this.adapter.getNativeInput();t&&t.disabled||(this.receivedUserInput=!0)},e.prototype.handleValidationAttributeChange=function(t){var i=this;t.some(function(n){return U.indexOf(n)>-1?(i.styleValidity(!0),i.adapter.setLabelRequired(i.getNativeInput().required),!0):!1}),t.indexOf("maxlength")>-1&&this.setcharacterCounter(this.getValue().length)},e.prototype.notchOutline=function(t){if(!(!this.adapter.hasOutline()||!this.adapter.hasLabel()))if(t){var i=this.adapter.getLabelWidth()*F.LABEL_SCALE;this.adapter.notchOutline(i)}else this.adapter.closeOutline()},e.prototype.activateFocus=function(){this.isFocused=!0,this.styleFocused(this.isFocused),this.adapter.activateLineRipple(),this.adapter.hasLabel()&&(this.notchOutline(this.shouldFloat),this.adapter.floatLabel(this.shouldFloat),this.styleFloating(this.shouldFloat),this.adapter.shakeLabel(this.shouldShake)),this.helperText&&(this.helperText.isPersistent()||!this.helperText.isValidation()||!this.valid)&&this.helperText.showToScreenReader()},e.prototype.setTransformOrigin=function(t){if(!(this.isDisabled()||this.adapter.hasOutline())){var i=t.touches,n=i?i[0]:t,o=n.target.getBoundingClientRect(),d=n.clientX-o.left;this.adapter.setLineRippleTransformOrigin(d)}},e.prototype.handleInput=function(){this.autoCompleteFocus(),this.setcharacterCounter(this.getValue().length)},e.prototype.autoCompleteFocus=function(){this.receivedUserInput||this.activateFocus()},e.prototype.deactivateFocus=function(){this.isFocused=!1,this.adapter.deactivateLineRipple();var t=this.isValid();this.styleValidity(t),this.styleFocused(this.isFocused),this.adapter.hasLabel()&&(this.notchOutline(this.shouldFloat),this.adapter.floatLabel(this.shouldFloat),this.styleFloating(this.shouldFloat),this.adapter.shakeLabel(this.shouldShake)),this.shouldFloat||(this.receivedUserInput=!1)},e.prototype.getValue=function(){return this.getNativeInput().value},e.prototype.setValue=function(t){if(this.getValue()!==t&&(this.getNativeInput().value=t),this.setcharacterCounter(t.length),this.validateOnValueChange){var i=this.isValid();this.styleValidity(i)}this.adapter.hasLabel()&&(this.notchOutline(this.shouldFloat),this.adapter.floatLabel(this.shouldFloat),this.styleFloating(this.shouldFloat),this.validateOnValueChange&&this.adapter.shakeLabel(this.shouldShake))},e.prototype.isValid=function(){return this.useNativeValidation?this.isNativeInputValid():this.valid},e.prototype.setValid=function(t){this.valid=t,this.styleValidity(t);var i=!t&&!this.isFocused&&!!this.getValue();this.adapter.hasLabel()&&this.adapter.shakeLabel(i)},e.prototype.setValidateOnValueChange=function(t){this.validateOnValueChange=t},e.prototype.getValidateOnValueChange=function(){return this.validateOnValueChange},e.prototype.setUseNativeValidation=function(t){this.useNativeValidation=t},e.prototype.isDisabled=function(){return this.getNativeInput().disabled},e.prototype.setDisabled=function(t){this.getNativeInput().disabled=t,this.styleDisabled(t)},e.prototype.setHelperTextContent=function(t){this.helperText&&this.helperText.setContent(t)},e.prototype.setLeadingIconAriaLabel=function(t){this.leadingIcon&&this.leadingIcon.setAriaLabel(t)},e.prototype.setLeadingIconContent=function(t){this.leadingIcon&&this.leadingIcon.setContent(t)},e.prototype.setTrailingIconAriaLabel=function(t){this.trailingIcon&&this.trailingIcon.setAriaLabel(t)},e.prototype.setTrailingIconContent=function(t){this.trailingIcon&&this.trailingIcon.setContent(t)},e.prototype.setcharacterCounter=function(t){if(this.characterCounter){var i=this.getNativeInput().maxLength;if(i===-1)throw new Error("MDCTextFieldFoundation: Expected maxlength html property on text input or textarea.");this.characterCounter.setCounterValue(t,i)}},e.prototype.isBadInput=function(){return this.getNativeInput().validity.badInput||!1},e.prototype.isNativeInputValid=function(){return this.getNativeInput().validity.valid},e.prototype.styleValidity=function(t){var i=e.cssClasses.INVALID;if(t?this.adapter.removeClass(i):this.adapter.addClass(i),this.helperText){this.helperText.setValidity(t);var n=this.helperText.isValidation();if(!n)return;var o=this.helperText.isVisible(),d=this.helperText.getId();o&&d?this.adapter.setInputAttr(L.ARIA_DESCRIBEDBY,d):this.adapter.removeInputAttr(L.ARIA_DESCRIBEDBY)}},e.prototype.styleFocused=function(t){var i=e.cssClasses.FOCUSED;t?this.adapter.addClass(i):this.adapter.removeClass(i)},e.prototype.styleDisabled=function(t){var i=e.cssClasses,n=i.DISABLED,o=i.INVALID;t?(this.adapter.addClass(n),this.adapter.removeClass(o)):this.adapter.removeClass(n),this.leadingIcon&&this.leadingIcon.setDisabled(t),this.trailingIcon&&this.trailingIcon.setDisabled(t)},e.prototype.styleFloating=function(t){var i=e.cssClasses.LABEL_FLOATING;t?this.adapter.addClass(i):this.adapter.removeClass(i)},e.prototype.getNativeInput=function(){var t=this.adapter?this.adapter.getNativeInput():null;return t||{disabled:!1,maxLength:-1,required:!1,type:"input",validity:{badInput:!1,valid:!0},value:""}},e}(w);const q=M;/**
64
+ */var C=["mousedown","touchstart"],O=["click","keydown"],M=function(s){a.__extends(e,s);function e(t,i){i===void 0&&(i={});var n=s.call(this,a.__assign(a.__assign({},e.defaultAdapter),t))||this;return n.isFocused=!1,n.receivedUserInput=!1,n.valid=!0,n.useNativeValidation=!0,n.validateOnValueChange=!0,n.helperText=i.helperText,n.characterCounter=i.characterCounter,n.leadingIcon=i.leadingIcon,n.trailingIcon=i.trailingIcon,n.inputFocusHandler=function(){n.activateFocus()},n.inputBlurHandler=function(){n.deactivateFocus()},n.inputInputHandler=function(){n.handleInput()},n.setPointerXOffset=function(o){n.setTransformOrigin(o)},n.textFieldInteractionHandler=function(){n.handleTextFieldInteraction()},n.validationAttributeChangeHandler=function(o){n.handleValidationAttributeChange(o)},n}return Object.defineProperty(e,"cssClasses",{get:function(){return B},enumerable:!1,configurable:!0}),Object.defineProperty(e,"strings",{get:function(){return L},enumerable:!1,configurable:!0}),Object.defineProperty(e,"numbers",{get:function(){return F},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"shouldAlwaysFloat",{get:function(){var t=this.getNativeInput().type;return T.indexOf(t)>=0},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"shouldFloat",{get:function(){return this.shouldAlwaysFloat||this.isFocused||!!this.getValue()||this.isBadInput()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"shouldShake",{get:function(){return!this.isFocused&&!this.isValid()&&!!this.getValue()},enumerable:!1,configurable:!0}),Object.defineProperty(e,"defaultAdapter",{get:function(){return{addClass:function(){},removeClass:function(){},hasClass:function(){return!0},setInputAttr:function(){},removeInputAttr:function(){},registerTextFieldInteractionHandler:function(){},deregisterTextFieldInteractionHandler:function(){},registerInputInteractionHandler:function(){},deregisterInputInteractionHandler:function(){},registerValidationAttributeChangeHandler:function(){return new MutationObserver(function(){})},deregisterValidationAttributeChangeHandler:function(){},getNativeInput:function(){return null},isFocused:function(){return!1},activateLineRipple:function(){},deactivateLineRipple:function(){},setLineRippleTransformOrigin:function(){},shakeLabel:function(){},floatLabel:function(){},setLabelRequired:function(){},hasLabel:function(){return!1},getLabelWidth:function(){return 0},hasOutline:function(){return!1},notchOutline:function(){},closeOutline:function(){}}},enumerable:!1,configurable:!0}),e.prototype.init=function(){var t,i,n,o;this.adapter.hasLabel()&&this.getNativeInput().required&&this.adapter.setLabelRequired(!0),this.adapter.isFocused()?this.inputFocusHandler():this.adapter.hasLabel()&&this.shouldFloat&&(this.notchOutline(!0),this.adapter.floatLabel(!0),this.styleFloating(!0)),this.adapter.registerInputInteractionHandler("focus",this.inputFocusHandler),this.adapter.registerInputInteractionHandler("blur",this.inputBlurHandler),this.adapter.registerInputInteractionHandler("input",this.inputInputHandler);try{for(var d=a.__values(C),c=d.next();!c.done;c=d.next()){var f=c.value;this.adapter.registerInputInteractionHandler(f,this.setPointerXOffset)}}catch(v){t={error:v}}finally{try{c&&!c.done&&(i=d.return)&&i.call(d)}finally{if(t)throw t.error}}try{for(var m=a.__values(O),p=m.next();!p.done;p=m.next()){var f=p.value;this.adapter.registerTextFieldInteractionHandler(f,this.textFieldInteractionHandler)}}catch(v){n={error:v}}finally{try{p&&!p.done&&(o=m.return)&&o.call(m)}finally{if(n)throw n.error}}this.validationObserver=this.adapter.registerValidationAttributeChangeHandler(this.validationAttributeChangeHandler),this.setcharacterCounter(this.getValue().length)},e.prototype.destroy=function(){var t,i,n,o;this.adapter.deregisterInputInteractionHandler("focus",this.inputFocusHandler),this.adapter.deregisterInputInteractionHandler("blur",this.inputBlurHandler),this.adapter.deregisterInputInteractionHandler("input",this.inputInputHandler);try{for(var d=a.__values(C),c=d.next();!c.done;c=d.next()){var f=c.value;this.adapter.deregisterInputInteractionHandler(f,this.setPointerXOffset)}}catch(v){t={error:v}}finally{try{c&&!c.done&&(i=d.return)&&i.call(d)}finally{if(t)throw t.error}}try{for(var m=a.__values(O),p=m.next();!p.done;p=m.next()){var f=p.value;this.adapter.deregisterTextFieldInteractionHandler(f,this.textFieldInteractionHandler)}}catch(v){n={error:v}}finally{try{p&&!p.done&&(o=m.return)&&o.call(m)}finally{if(n)throw n.error}}this.adapter.deregisterValidationAttributeChangeHandler(this.validationObserver)},e.prototype.handleTextFieldInteraction=function(){var t=this.adapter.getNativeInput();t&&t.disabled||(this.receivedUserInput=!0)},e.prototype.handleValidationAttributeChange=function(t){var i=this;t.some(function(n){return U.indexOf(n)>-1?(i.styleValidity(!0),i.adapter.setLabelRequired(i.getNativeInput().required),!0):!1}),t.indexOf("maxlength")>-1&&this.setcharacterCounter(this.getValue().length)},e.prototype.notchOutline=function(t){if(!(!this.adapter.hasOutline()||!this.adapter.hasLabel()))if(t){var i=this.adapter.getLabelWidth()*F.LABEL_SCALE;this.adapter.notchOutline(i)}else this.adapter.closeOutline()},e.prototype.activateFocus=function(){this.isFocused=!0,this.styleFocused(this.isFocused),this.adapter.activateLineRipple(),this.adapter.hasLabel()&&(this.notchOutline(this.shouldFloat),this.adapter.floatLabel(this.shouldFloat),this.styleFloating(this.shouldFloat),this.adapter.shakeLabel(this.shouldShake)),this.helperText&&(this.helperText.isPersistent()||!this.helperText.isValidation()||!this.valid)&&this.helperText.showToScreenReader()},e.prototype.setTransformOrigin=function(t){if(!(this.isDisabled()||this.adapter.hasOutline())){var i=t.touches,n=i?i[0]:t,o=n.target.getBoundingClientRect(),d=n.clientX-o.left;this.adapter.setLineRippleTransformOrigin(d)}},e.prototype.handleInput=function(){this.autoCompleteFocus(),this.setcharacterCounter(this.getValue().length)},e.prototype.autoCompleteFocus=function(){this.receivedUserInput||this.activateFocus()},e.prototype.deactivateFocus=function(){this.isFocused=!1,this.adapter.deactivateLineRipple();var t=this.isValid();this.styleValidity(t),this.styleFocused(this.isFocused),this.adapter.hasLabel()&&(this.notchOutline(this.shouldFloat),this.adapter.floatLabel(this.shouldFloat),this.styleFloating(this.shouldFloat),this.adapter.shakeLabel(this.shouldShake)),this.shouldFloat||(this.receivedUserInput=!1)},e.prototype.getValue=function(){return this.getNativeInput().value},e.prototype.setValue=function(t){if(this.getValue()!==t&&(this.getNativeInput().value=t),this.setcharacterCounter(t.length),this.validateOnValueChange){var i=this.isValid();this.styleValidity(i)}this.adapter.hasLabel()&&(this.notchOutline(this.shouldFloat),this.adapter.floatLabel(this.shouldFloat),this.styleFloating(this.shouldFloat),this.validateOnValueChange&&this.adapter.shakeLabel(this.shouldShake))},e.prototype.isValid=function(){return this.useNativeValidation?this.isNativeInputValid():this.valid},e.prototype.setValid=function(t){this.valid=t,this.styleValidity(t);var i=!t&&!this.isFocused&&!!this.getValue();this.adapter.hasLabel()&&this.adapter.shakeLabel(i)},e.prototype.setValidateOnValueChange=function(t){this.validateOnValueChange=t},e.prototype.getValidateOnValueChange=function(){return this.validateOnValueChange},e.prototype.setUseNativeValidation=function(t){this.useNativeValidation=t},e.prototype.isDisabled=function(){return this.getNativeInput().disabled},e.prototype.setDisabled=function(t){this.getNativeInput().disabled=t,this.styleDisabled(t)},e.prototype.setHelperTextContent=function(t){this.helperText&&this.helperText.setContent(t)},e.prototype.setLeadingIconAriaLabel=function(t){this.leadingIcon&&this.leadingIcon.setAriaLabel(t)},e.prototype.setLeadingIconContent=function(t){this.leadingIcon&&this.leadingIcon.setContent(t)},e.prototype.setTrailingIconAriaLabel=function(t){this.trailingIcon&&this.trailingIcon.setAriaLabel(t)},e.prototype.setTrailingIconContent=function(t){this.trailingIcon&&this.trailingIcon.setContent(t)},e.prototype.setcharacterCounter=function(t){if(this.characterCounter){var i=this.getNativeInput().maxLength;if(i===-1)throw new Error("MDCTextFieldFoundation: Expected maxlength html property on text input or textarea.");this.characterCounter.setCounterValue(t,i)}},e.prototype.isBadInput=function(){return this.getNativeInput().validity.badInput||!1},e.prototype.isNativeInputValid=function(){return this.getNativeInput().validity.valid},e.prototype.styleValidity=function(t){var i=e.cssClasses.INVALID;if(t?this.adapter.removeClass(i):this.adapter.addClass(i),this.helperText){this.helperText.setValidity(t);var n=this.helperText.isValidation();if(!n)return;var o=this.helperText.isVisible(),d=this.helperText.getId();o&&d?this.adapter.setInputAttr(L.ARIA_DESCRIBEDBY,d):this.adapter.removeInputAttr(L.ARIA_DESCRIBEDBY)}},e.prototype.styleFocused=function(t){var i=e.cssClasses.FOCUSED;t?this.adapter.addClass(i):this.adapter.removeClass(i)},e.prototype.styleDisabled=function(t){var i=e.cssClasses,n=i.DISABLED,o=i.INVALID;t?(this.adapter.addClass(n),this.adapter.removeClass(o)):this.adapter.removeClass(n),this.leadingIcon&&this.leadingIcon.setDisabled(t),this.trailingIcon&&this.trailingIcon.setDisabled(t)},e.prototype.styleFloating=function(t){var i=e.cssClasses.LABEL_FLOATING;t?this.adapter.addClass(i):this.adapter.removeClass(i)},e.prototype.getNativeInput=function(){var t=this.adapter?this.adapter.getNativeInput():null;return t||{disabled:!1,maxLength:-1,required:!1,type:"input",validity:{badInput:!1,valid:!0},value:""}},e}(w);const q=M;/**
65
65
  * @license
66
66
  * Copyright 2020 Google LLC
67
67
  * SPDX-License-Identifier: BSD-3-Clause
68
- */const R=v.e(class extends v.i{constructor(s){if(super(s),s.type!==v.t.PROPERTY&&s.type!==v.t.ATTRIBUTE&&s.type!==v.t.BOOLEAN_ATTRIBUTE)throw Error("The `live` directive is not allowed on child or event bindings");if(!_.e(s))throw Error("`live` bindings can only contain a single expression")}render(s){return s}update(s,[e]){if(e===u.T||e===u.A)return e;const t=s.element,i=s.name;if(s.type===v.t.PROPERTY){if(e===t[i])return u.T}else if(s.type===v.t.BOOLEAN_ATTRIBUTE){if(!!e===t.hasAttribute(i))return u.T}else if(s.type===v.t.ATTRIBUTE&&t.getAttribute(i)===e+"")return u.T;return _.a(s),e}});/**
68
+ */const R=g.e(class extends g.i{constructor(s){if(super(s),s.type!==g.t.PROPERTY&&s.type!==g.t.ATTRIBUTE&&s.type!==g.t.BOOLEAN_ATTRIBUTE)throw Error("The `live` directive is not allowed on child or event bindings");if(!_.e(s))throw Error("`live` bindings can only contain a single expression")}render(s){return s}update(s,[e]){if(e===u.T||e===u.A)return e;const t=s.element,i=s.name;if(s.type===g.t.PROPERTY){if(e===t[i])return u.T}else if(s.type===g.t.BOOLEAN_ATTRIBUTE){if(!!e===t.hasAttribute(i))return u.T}else if(s.type===g.t.ATTRIBUTE&&t.getAttribute(i)===e+"")return u.T;return _.a(s),e}});/**
69
69
  * @license
70
70
  * Copyright 2019 Google LLC
71
71
  * SPDX-License-Identifier: Apache-2.0
@@ -129,5 +129,5 @@
129
129
  ${this.renderCharCounter(t)}
130
130
  </div>`:""}renderCharCounter(e){const t=Math.min(this.value.length,this.maxLength);return e?u.x`
131
131
  <span class="mdc-text-field-character-counter"
132
- >${t} / ${this.maxLength}</span>`:""}onInputFocus(){this.focused=!0}onInputBlur(){this.focused=!1,this.reportValidity()}checkValidity(){const e=this._checkValidity(this.value);if(!e){const t=new Event("invalid",{bubbles:!1,cancelable:!0});this.dispatchEvent(t)}return e}reportValidity(){const e=this.checkValidity();return this.mdcFoundation.setValid(e),this.isUiValid=e,e}_checkValidity(e){const t=this.formElement.validity;let i=A(t);if(this.validityTransform){const n=this.validityTransform(e,i);i=Object.assign(Object.assign({},i),n),this.mdcFoundation.setUseNativeValidation(!1)}else this.mdcFoundation.setUseNativeValidation(!0);return this._validity=i,this._validity.valid}setCustomValidity(e){this.validationMessage=e,this.formElement.setCustomValidity(e)}handleInputChange(){this.value=this.formElement.value}createAdapter(){return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},this.getRootAdapterMethods()),this.getInputAdapterMethods()),this.getLabelAdapterMethods()),this.getLineRippleAdapterMethods()),this.getOutlineAdapterMethods())}getRootAdapterMethods(){return Object.assign({registerTextFieldInteractionHandler:(e,t)=>this.addEventListener(e,t),deregisterTextFieldInteractionHandler:(e,t)=>this.removeEventListener(e,t),registerValidationAttributeChangeHandler:e=>{const t=o=>o.map(d=>d.attributeName).filter(d=>d),i=new MutationObserver(o=>{e(t(o))}),n={attributes:!0};return i.observe(this.formElement,n),i},deregisterValidationAttributeChangeHandler:e=>e.disconnect()},$.addHasRemoveClass(this.mdcRoot))}getInputAdapterMethods(){return{getNativeInput:()=>this.formElement,setInputAttr:()=>{},removeInputAttr:()=>{},isFocused:()=>this.shadowRoot?this.shadowRoot.activeElement===this.formElement:!1,registerInputInteractionHandler:(e,t)=>this.formElement.addEventListener(e,t,{passive:e in k}),deregisterInputInteractionHandler:(e,t)=>this.formElement.removeEventListener(e,t)}}getLabelAdapterMethods(){return{floatLabel:e=>this.labelElement&&this.labelElement.floatingLabelFoundation.float(e),getLabelWidth:()=>this.labelElement?this.labelElement.floatingLabelFoundation.getWidth():0,hasLabel:()=>!!this.labelElement,shakeLabel:e=>this.labelElement&&this.labelElement.floatingLabelFoundation.shake(e),setLabelRequired:e=>{this.labelElement&&this.labelElement.floatingLabelFoundation.setRequired(e)}}}getLineRippleAdapterMethods(){return{activateLineRipple:()=>{this.lineRippleElement&&this.lineRippleElement.lineRippleFoundation.activate()},deactivateLineRipple:()=>{this.lineRippleElement&&this.lineRippleElement.lineRippleFoundation.deactivate()},setLineRippleTransformOrigin:e=>{this.lineRippleElement&&this.lineRippleElement.lineRippleFoundation.setRippleCenter(e)}}}async getUpdateComplete(){var e;const t=await super.getUpdateComplete();return await((e=this.outlineElement)===null||e===void 0?void 0:e.updateComplete),t}firstUpdated(){var e;super.firstUpdated(),this.mdcFoundation.setValidateOnValueChange(this.autoValidate),this.validateOnInitialRender&&this.reportValidity(),(e=this.outlineElement)===null||e===void 0||e.updateComplete.then(()=>{var t;this.outlineWidth=((t=this.labelElement)===null||t===void 0?void 0:t.floatingLabelFoundation.getWidth())||0})}getOutlineAdapterMethods(){return{closeOutline:()=>this.outlineElement&&(this.outlineOpen=!1),hasOutline:()=>!!this.outlineElement,notchOutline:e=>{this.outlineElement&&!this.outlineOpen&&(this.outlineWidth=e,this.outlineOpen=!0)}}}async layout(){await this.updateComplete;const e=this.labelElement;if(!e){this.outlineOpen=!1;return}const t=!!this.label&&!!this.value;if(e.floatingLabelFoundation.float(t),!this.outlined)return;this.outlineOpen=t,await this.updateComplete;const i=e.floatingLabelFoundation.getWidth();this.outlineOpen&&(this.outlineWidth=i,await this.updateComplete)}}a.__decorate([y.i(".mdc-text-field")],r.prototype,"mdcRoot",void 0);a.__decorate([y.i("input")],r.prototype,"formElement",void 0);a.__decorate([y.i(".mdc-floating-label")],r.prototype,"labelElement",void 0);a.__decorate([y.i(".mdc-line-ripple")],r.prototype,"lineRippleElement",void 0);a.__decorate([y.i("mwc-notched-outline")],r.prototype,"outlineElement",void 0);a.__decorate([y.i(".mdc-notched-outline__notch")],r.prototype,"notchElement",void 0);a.__decorate([l.n({type:String})],r.prototype,"value",void 0);a.__decorate([l.n({type:String})],r.prototype,"type",void 0);a.__decorate([l.n({type:String})],r.prototype,"placeholder",void 0);a.__decorate([l.n({type:String}),V.observer(function(s,e){e!==void 0&&this.label!==e&&this.layout()})],r.prototype,"label",void 0);a.__decorate([l.n({type:String})],r.prototype,"icon",void 0);a.__decorate([l.n({type:String})],r.prototype,"iconTrailing",void 0);a.__decorate([l.n({type:Boolean,reflect:!0})],r.prototype,"disabled",void 0);a.__decorate([l.n({type:Boolean})],r.prototype,"required",void 0);a.__decorate([l.n({type:Number})],r.prototype,"minLength",void 0);a.__decorate([l.n({type:Number})],r.prototype,"maxLength",void 0);a.__decorate([l.n({type:Boolean,reflect:!0}),V.observer(function(s,e){e!==void 0&&this.outlined!==e&&this.layout()})],r.prototype,"outlined",void 0);a.__decorate([l.n({type:String})],r.prototype,"helper",void 0);a.__decorate([l.n({type:Boolean})],r.prototype,"validateOnInitialRender",void 0);a.__decorate([l.n({type:String})],r.prototype,"validationMessage",void 0);a.__decorate([l.n({type:Boolean})],r.prototype,"autoValidate",void 0);a.__decorate([l.n({type:String})],r.prototype,"pattern",void 0);a.__decorate([l.n({type:String})],r.prototype,"min",void 0);a.__decorate([l.n({type:String})],r.prototype,"max",void 0);a.__decorate([l.n({type:String})],r.prototype,"step",void 0);a.__decorate([l.n({type:Number})],r.prototype,"size",void 0);a.__decorate([l.n({type:Boolean})],r.prototype,"helperPersistent",void 0);a.__decorate([l.n({type:Boolean})],r.prototype,"charCounter",void 0);a.__decorate([l.n({type:Boolean})],r.prototype,"endAligned",void 0);a.__decorate([l.n({type:String})],r.prototype,"prefix",void 0);a.__decorate([l.n({type:String})],r.prototype,"suffix",void 0);a.__decorate([l.n({type:String})],r.prototype,"name",void 0);a.__decorate([l.n({type:String})],r.prototype,"inputMode",void 0);a.__decorate([l.n({type:Boolean})],r.prototype,"readOnly",void 0);a.__decorate([l.n({type:String})],r.prototype,"autocapitalize",void 0);a.__decorate([x.t()],r.prototype,"outlineOpen",void 0);a.__decorate([x.t()],r.prototype,"outlineWidth",void 0);a.__decorate([x.t()],r.prototype,"isUiValid",void 0);a.__decorate([x.t()],r.prototype,"focused",void 0);a.__decorate([H.e({passive:!0})],r.prototype,"handleInputChange",null);const S=`:host{--mdc-text-field-label-ink-color: var( --mdc-theme-text-secondary-on-background );--mdc-text-field-ink-color: var(--mdc-theme-text-secondary-on-background);--mdc-text-field-fill-color: var(--mdc-theme-surface-canvas);--mdc-text-field-idle-line-color: var(--mdc-theme-border);--mdc-text-field-hover-line-color: var(--mdc-theme-text-icon-on-background);--mdc-text-field-outlined-idle-border-color: var(--mdc-theme-border);--mdc-text-field-outlined-hover-border-color: var( --mdc-theme-text-icon-on-background )}:host([dense]){height:48px}.mdc-text-field:not(.mdc-text-field--disabled) .mdc-text-field__icon{color:var(--mdc-theme-text-icon-on-background)}
132
+ >${t} / ${this.maxLength}</span>`:""}onInputFocus(){this.focused=!0}onInputBlur(){this.focused=!1,this.reportValidity()}checkValidity(){const e=this._checkValidity(this.value);if(!e){const t=new Event("invalid",{bubbles:!1,cancelable:!0});this.dispatchEvent(t)}return e}reportValidity(){const e=this.checkValidity();return this.mdcFoundation.setValid(e),this.isUiValid=e,e}_checkValidity(e){const t=this.formElement.validity;let i=A(t);if(this.validityTransform){const n=this.validityTransform(e,i);i=Object.assign(Object.assign({},i),n),this.mdcFoundation.setUseNativeValidation(!1)}else this.mdcFoundation.setUseNativeValidation(!0);return this._validity=i,this._validity.valid}setCustomValidity(e){this.validationMessage=e,this.formElement.setCustomValidity(e)}handleInputChange(){this.value=this.formElement.value}createAdapter(){return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},this.getRootAdapterMethods()),this.getInputAdapterMethods()),this.getLabelAdapterMethods()),this.getLineRippleAdapterMethods()),this.getOutlineAdapterMethods())}getRootAdapterMethods(){return Object.assign({registerTextFieldInteractionHandler:(e,t)=>this.addEventListener(e,t),deregisterTextFieldInteractionHandler:(e,t)=>this.removeEventListener(e,t),registerValidationAttributeChangeHandler:e=>{const t=o=>o.map(d=>d.attributeName).filter(d=>d),i=new MutationObserver(o=>{e(t(o))}),n={attributes:!0};return i.observe(this.formElement,n),i},deregisterValidationAttributeChangeHandler:e=>e.disconnect()},$.addHasRemoveClass(this.mdcRoot))}getInputAdapterMethods(){return{getNativeInput:()=>this.formElement,setInputAttr:()=>{},removeInputAttr:()=>{},isFocused:()=>this.shadowRoot?this.shadowRoot.activeElement===this.formElement:!1,registerInputInteractionHandler:(e,t)=>this.formElement.addEventListener(e,t,{passive:e in k}),deregisterInputInteractionHandler:(e,t)=>this.formElement.removeEventListener(e,t)}}getLabelAdapterMethods(){return{floatLabel:e=>this.labelElement&&this.labelElement.floatingLabelFoundation.float(e),getLabelWidth:()=>this.labelElement?this.labelElement.floatingLabelFoundation.getWidth():0,hasLabel:()=>!!this.labelElement,shakeLabel:e=>this.labelElement&&this.labelElement.floatingLabelFoundation.shake(e),setLabelRequired:e=>{this.labelElement&&this.labelElement.floatingLabelFoundation.setRequired(e)}}}getLineRippleAdapterMethods(){return{activateLineRipple:()=>{this.lineRippleElement&&this.lineRippleElement.lineRippleFoundation.activate()},deactivateLineRipple:()=>{this.lineRippleElement&&this.lineRippleElement.lineRippleFoundation.deactivate()},setLineRippleTransformOrigin:e=>{this.lineRippleElement&&this.lineRippleElement.lineRippleFoundation.setRippleCenter(e)}}}async getUpdateComplete(){var e;const t=await super.getUpdateComplete();return await((e=this.outlineElement)===null||e===void 0?void 0:e.updateComplete),t}firstUpdated(){var e;super.firstUpdated(),this.mdcFoundation.setValidateOnValueChange(this.autoValidate),this.validateOnInitialRender&&this.reportValidity(),(e=this.outlineElement)===null||e===void 0||e.updateComplete.then(()=>{var t;this.outlineWidth=((t=this.labelElement)===null||t===void 0?void 0:t.floatingLabelFoundation.getWidth())||0})}getOutlineAdapterMethods(){return{closeOutline:()=>this.outlineElement&&(this.outlineOpen=!1),hasOutline:()=>!!this.outlineElement,notchOutline:e=>{this.outlineElement&&!this.outlineOpen&&(this.outlineWidth=e,this.outlineOpen=!0)}}}async layout(){await this.updateComplete;const e=this.labelElement;if(!e){this.outlineOpen=!1;return}const t=!!this.label&&!!this.value;if(e.floatingLabelFoundation.float(t),!this.outlined)return;this.outlineOpen=t,await this.updateComplete;const i=e.floatingLabelFoundation.getWidth();this.outlineOpen&&(this.outlineWidth=i,await this.updateComplete)}}a.__decorate([y.i(".mdc-text-field")],r.prototype,"mdcRoot",void 0);a.__decorate([y.i("input")],r.prototype,"formElement",void 0);a.__decorate([y.i(".mdc-floating-label")],r.prototype,"labelElement",void 0);a.__decorate([y.i(".mdc-line-ripple")],r.prototype,"lineRippleElement",void 0);a.__decorate([y.i("mwc-notched-outline")],r.prototype,"outlineElement",void 0);a.__decorate([y.i(".mdc-notched-outline__notch")],r.prototype,"notchElement",void 0);a.__decorate([l.n({type:String})],r.prototype,"value",void 0);a.__decorate([l.n({type:String})],r.prototype,"type",void 0);a.__decorate([l.n({type:String})],r.prototype,"placeholder",void 0);a.__decorate([l.n({type:String}),V.observer(function(s,e){e!==void 0&&this.label!==e&&this.layout()})],r.prototype,"label",void 0);a.__decorate([l.n({type:String})],r.prototype,"icon",void 0);a.__decorate([l.n({type:String})],r.prototype,"iconTrailing",void 0);a.__decorate([l.n({type:Boolean,reflect:!0})],r.prototype,"disabled",void 0);a.__decorate([l.n({type:Boolean})],r.prototype,"required",void 0);a.__decorate([l.n({type:Number})],r.prototype,"minLength",void 0);a.__decorate([l.n({type:Number})],r.prototype,"maxLength",void 0);a.__decorate([l.n({type:Boolean,reflect:!0}),V.observer(function(s,e){e!==void 0&&this.outlined!==e&&this.layout()})],r.prototype,"outlined",void 0);a.__decorate([l.n({type:String})],r.prototype,"helper",void 0);a.__decorate([l.n({type:Boolean})],r.prototype,"validateOnInitialRender",void 0);a.__decorate([l.n({type:String})],r.prototype,"validationMessage",void 0);a.__decorate([l.n({type:Boolean})],r.prototype,"autoValidate",void 0);a.__decorate([l.n({type:String})],r.prototype,"pattern",void 0);a.__decorate([l.n({type:String})],r.prototype,"min",void 0);a.__decorate([l.n({type:String})],r.prototype,"max",void 0);a.__decorate([l.n({type:String})],r.prototype,"step",void 0);a.__decorate([l.n({type:Number})],r.prototype,"size",void 0);a.__decorate([l.n({type:Boolean})],r.prototype,"helperPersistent",void 0);a.__decorate([l.n({type:Boolean})],r.prototype,"charCounter",void 0);a.__decorate([l.n({type:Boolean})],r.prototype,"endAligned",void 0);a.__decorate([l.n({type:String})],r.prototype,"prefix",void 0);a.__decorate([l.n({type:String})],r.prototype,"suffix",void 0);a.__decorate([l.n({type:String})],r.prototype,"name",void 0);a.__decorate([l.n({type:String})],r.prototype,"inputMode",void 0);a.__decorate([l.n({type:Boolean})],r.prototype,"readOnly",void 0);a.__decorate([l.n({type:String})],r.prototype,"autocapitalize",void 0);a.__decorate([x.t()],r.prototype,"outlineOpen",void 0);a.__decorate([x.t()],r.prototype,"outlineWidth",void 0);a.__decorate([x.t()],r.prototype,"isUiValid",void 0);a.__decorate([x.t()],r.prototype,"focused",void 0);a.__decorate([H.e({passive:!0})],r.prototype,"handleInputChange",null);const S=`:host{--mdc-text-field-label-ink-color: var( --mdc-theme-text-secondary-on-background );--mdc-text-field-ink-color: var(--mdc-theme-text-secondary-on-background);--mdc-text-field-fill-color: var(--mdc-theme-surface-canvas);--mdc-text-field-idle-line-color: var(--mdc-theme-border);--mdc-text-field-hover-line-color: var(--mdc-theme-text-icon-on-background);--mdc-text-field-outlined-idle-border-color: var(--mdc-theme-border);--mdc-text-field-outlined-hover-border-color: var( --mdc-theme-text-icon-on-background );--mdc-typography-subtitle1-font-family: var( --mdc-typography-body1-font-family );--mdc-typography-subtitle1-font-size: var( --mdc-typography-body1-font-size, 1rem );--mdc-typography-subtitle1-font-weight: var( --mdc-typography-body1-font-weight, 400 )}:host([dense]){height:48px}.mdc-text-field:not(.mdc-text-field--disabled) .mdc-text-field__icon{color:var(--mdc-theme-text-icon-on-background)}
133
133
  `;exports.TextFieldBase=r;exports.l=R;exports.styles=S;
@@ -117,7 +117,7 @@ var F = {
117
117
  WITH_INTERNAL_COUNTER: "mdc-text-field--with-internal-counter"
118
118
  }, O = {
119
119
  LABEL_SCALE: 0.75
120
- }, q = [
120
+ }, z = [
121
121
  "pattern",
122
122
  "min",
123
123
  "max",
@@ -125,7 +125,7 @@ var F = {
125
125
  "step",
126
126
  "minlength",
127
127
  "maxlength"
128
- ], z = [
128
+ ], q = [
129
129
  "color",
130
130
  "date",
131
131
  "datetime-local",
@@ -198,7 +198,7 @@ var A = ["mousedown", "touchstart"], V = ["click", "keydown"], X = (
198
198
  }), Object.defineProperty(e.prototype, "shouldAlwaysFloat", {
199
199
  get: function() {
200
200
  var t = this.getNativeInput().type;
201
- return z.indexOf(t) >= 0;
201
+ return q.indexOf(t) >= 0;
202
202
  },
203
203
  enumerable: !1,
204
204
  configurable: !0
@@ -355,7 +355,7 @@ var A = ["mousedown", "touchstart"], V = ["click", "keydown"], X = (
355
355
  }, e.prototype.handleValidationAttributeChange = function(t) {
356
356
  var i = this;
357
357
  t.some(function(n) {
358
- return q.indexOf(n) > -1 ? (i.styleValidity(!0), i.adapter.setLabelRequired(i.getNativeInput().required), !0) : !1;
358
+ return z.indexOf(n) > -1 ? (i.styleValidity(!0), i.adapter.setLabelRequired(i.getNativeInput().required), !0) : !1;
359
359
  }), t.indexOf("maxlength") > -1 && this.setcharacterCounter(this.getValue().length);
360
360
  }, e.prototype.notchOutline = function(t) {
361
361
  if (!(!this.adapter.hasOutline() || !this.adapter.hasLabel()))
@@ -924,7 +924,7 @@ a([
924
924
  a([
925
925
  _({ passive: !0 })
926
926
  ], r.prototype, "handleInputChange", null);
927
- const de = `:host{--mdc-text-field-label-ink-color: var( --mdc-theme-text-secondary-on-background );--mdc-text-field-ink-color: var(--mdc-theme-text-secondary-on-background);--mdc-text-field-fill-color: var(--mdc-theme-surface-canvas);--mdc-text-field-idle-line-color: var(--mdc-theme-border);--mdc-text-field-hover-line-color: var(--mdc-theme-text-icon-on-background);--mdc-text-field-outlined-idle-border-color: var(--mdc-theme-border);--mdc-text-field-outlined-hover-border-color: var( --mdc-theme-text-icon-on-background )}:host([dense]){height:48px}.mdc-text-field:not(.mdc-text-field--disabled) .mdc-text-field__icon{color:var(--mdc-theme-text-icon-on-background)}
927
+ const de = `:host{--mdc-text-field-label-ink-color: var( --mdc-theme-text-secondary-on-background );--mdc-text-field-ink-color: var(--mdc-theme-text-secondary-on-background);--mdc-text-field-fill-color: var(--mdc-theme-surface-canvas);--mdc-text-field-idle-line-color: var(--mdc-theme-border);--mdc-text-field-hover-line-color: var(--mdc-theme-text-icon-on-background);--mdc-text-field-outlined-idle-border-color: var(--mdc-theme-border);--mdc-text-field-outlined-hover-border-color: var( --mdc-theme-text-icon-on-background );--mdc-typography-subtitle1-font-family: var( --mdc-typography-body1-font-family );--mdc-typography-subtitle1-font-size: var( --mdc-typography-body1-font-size, 1rem );--mdc-typography-subtitle1-font-weight: var( --mdc-typography-body1-font-weight, 400 )}:host([dense]){height:48px}.mdc-text-field:not(.mdc-text-field--disabled) .mdc-text-field__icon{color:var(--mdc-theme-text-icon-on-background)}
928
928
  `;
929
929
  export {
930
930
  r as T,
package/textfield.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("./textfield-0645375b.js");require("./tslib.es6-98719205.js");require("./mwc-line-ripple-directive-40145003.js");require("./base-element-58a3f9ea.js");require("./utils-a8190a39.js");require("./property-57f6f6fe.js");require("./query-680f1868.js");require("./class-map-0a4c6ca9.js");require("./directive-1186bc23.js");require("./form-element-c553d6f5.js");require("./observer-a096ab43.js");require("./state-0974a8e5.js");require("./event-options-3f5eb195.js");require("./if-defined-f1c45245.js");require("./directive-helpers-0ce1f995.js");/**
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const i=require("./query-assigned-elements-f623705d.js"),c=require("./textfield-48207bf2.js");require("./tslib.es6-98719205.js");require("./mwc-line-ripple-directive-40145003.js");require("./base-element-58a3f9ea.js");require("./utils-a8190a39.js");require("./property-57f6f6fe.js");require("./query-680f1868.js");require("./class-map-0a4c6ca9.js");require("./directive-1186bc23.js");require("./form-element-c553d6f5.js");require("./observer-a096ab43.js");require("./state-0974a8e5.js");require("./event-options-3f5eb195.js");require("./if-defined-f1c45245.js");require("./directive-helpers-0ce1f995.js");/**
2
2
  * @license
3
3
  * Copyright 2021 Google LLC
4
4
  * SPDX-LIcense-Identifier: Apache-2.0
package/textfield.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  import { i as c, r as n, e as m } from "./query-assigned-elements-4a39219d.mjs";
2
- import { T as f, s as x } from "./textfield-93cfcf3c.mjs";
2
+ import { T as f, s as x } from "./textfield-a994ca16.mjs";
3
3
  import "./tslib.es6-c4b0f3b1.mjs";
4
4
  import "./mwc-line-ripple-directive-aabd8778.mjs";
5
5
  import "./base-element-acf30176.mjs";