@orangelogic/design-system 2.77.0 → 2.78.0

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 (40) hide show
  1. package/library/chunks/{button.csCRiZzY.js → button.DS64Tr8Z.js} +2 -4
  2. package/library/chunks/{color-swatch-group.CKdXj10T.js → color-swatch-group.C7T6-sY7.js} +1 -1
  3. package/library/chunks/{confirm-popover.Kx6YyQwp.js → confirm-popover.BNjRvnN0.js} +1 -1
  4. package/library/chunks/{file-on-demand.BJZ5E8XT.js → file-on-demand.BTTdth3o.js} +4 -4
  5. package/library/chunks/{folder-select.BqLmIlj6.js → folder-select.B2qxSKA5.js} +1 -1
  6. package/library/chunks/{index.VbMreXxL.js → index.Bx0otwQo.js} +1 -1
  7. package/library/chunks/{list-editor.BzzQoZe1.js → list-editor.DluUZa06.js} +2 -2
  8. package/library/chunks/{pagination.BXCr_5om.js → pagination.g4zErKN2.js} +1 -1
  9. package/library/chunks/{tab-group.G24wrely.js → tab-group.Dg6a82ei.js} +1 -1
  10. package/library/chunks/{table.34yySlt-.js → table.CcqrVieF.js} +530 -484
  11. package/library/chunks/url.Cj9cIQXJ.js +27 -0
  12. package/library/components/asset-link-format.js +1 -1
  13. package/library/components/atoms.js +4 -4
  14. package/library/components/button.js +1 -1
  15. package/library/components/color-picker.js +1 -1
  16. package/library/components/color-swatch-group.js +2 -2
  17. package/library/components/confirm-popover.js +2 -2
  18. package/library/components/dynamic-select.js +1 -1
  19. package/library/components/element-clamp.js +1 -1
  20. package/library/components/file-on-demand.js +5 -5
  21. package/library/components/folder-select.js +1 -1
  22. package/library/components/line-clamp.js +1 -1
  23. package/library/components/list-editor.js +3 -3
  24. package/library/components/molecules.js +3 -3
  25. package/library/components/organisms.js +2 -2
  26. package/library/components/pagination.js +2 -2
  27. package/library/components/tab-group.js +2 -2
  28. package/library/components/table.js +3 -3
  29. package/library/components/textarea.js +198 -170
  30. package/library/components/types.js +10217 -10205
  31. package/library/package.json +1 -1
  32. package/library/packages/atoms/src/components/table/tabulator-tables/modules/Edit/Edit.d.ts +1 -0
  33. package/library/packages/atoms/src/components/textarea/textarea.d.ts +19 -4
  34. package/library/packages/organisms/src/carousel/carousel.d.ts +2 -0
  35. package/library/packages/types/src/textarea.d.ts +4 -0
  36. package/library/packages/utils/src/url/url.d.ts +9 -0
  37. package/library/react-web-component.d.ts +3 -3
  38. package/library/utils.js +34 -33
  39. package/package.json +1 -1
  40. package/library/chunks/url.LjsR2sB5.js +0 -15
@@ -1,19 +1,20 @@
1
- import { n as r, C as x } from "../chunks/lib-cortex-element.CVMmyPMC.js";
2
- import { c as f } from "../chunks/component.styles.DMSLciL5.js";
3
- import { f as m } from "../chunks/form-control.styles.CUGhvlfT.js";
4
- import { c as b } from "../chunks/custom-element.L4WJXn1j.js";
5
- import { d as v } from "../chunks/default-value.COZopaet.js";
6
- import { F as g } from "../chunks/form.DgwYWi0O.js";
7
- import { H as y } from "../chunks/slot.j5oheLJC.js";
8
- import { w as u } from "../chunks/watch.BCJD77bD.js";
9
- import { i as _, x as p } from "../chunks/lit-element.jLBm65_O.js";
10
- import { r as z } from "../chunks/state.CSDxrqLd.js";
11
- import { e as C } from "../chunks/query.BBf1UFkC.js";
12
- import { e as d } from "../chunks/class-map.BiVq-cVR.js";
1
+ import { n as a, C as m } from "../chunks/lib-cortex-element.CVMmyPMC.js";
2
+ import { c as b } from "../chunks/component.styles.DMSLciL5.js";
3
+ import { f as g } from "../chunks/form-control.styles.CUGhvlfT.js";
4
+ import { c as v } from "../chunks/custom-element.L4WJXn1j.js";
5
+ import { d as y } from "../chunks/default-value.COZopaet.js";
6
+ import { F as _ } from "../chunks/form.DgwYWi0O.js";
7
+ import { H as z } from "../chunks/slot.j5oheLJC.js";
8
+ import { w as d } from "../chunks/watch.BCJD77bD.js";
9
+ import { i as w, x as p } from "../chunks/lit-element.jLBm65_O.js";
10
+ import { r as C } from "../chunks/state.CSDxrqLd.js";
11
+ import { e as f } from "../chunks/query.BBf1UFkC.js";
12
+ import { e as x } from "../chunks/class-map.BiVq-cVR.js";
13
13
  import { o as n } from "../chunks/if-defined.BRoBj_Rp.js";
14
- import { l as w } from "../chunks/live.SCz6M8Gs.js";
15
- import { n as k } from "../chunks/when.Dr1es41R.js";
16
- const $ = _`
14
+ import { l as k } from "../chunks/live.SCz6M8Gs.js";
15
+ import { n as $ } from "../chunks/when.Dr1es41R.js";
16
+ var c = /* @__PURE__ */ ((t) => (t.Max = "max", t))(c || {});
17
+ const F = w`
17
18
  :host {
18
19
  display: block;
19
20
  }
@@ -28,6 +29,7 @@ const $ = _`
28
29
  }
29
30
 
30
31
  .textarea {
32
+ --textarea-background-color: var(--cx-input-background-color);
31
33
  display: flex;
32
34
  align-items: center;
33
35
  position: relative;
@@ -47,12 +49,12 @@ const $ = _`
47
49
 
48
50
  /* Standard textareas */
49
51
  .textarea--standard {
50
- background-color: var(--cx-input-background-color);
52
+ background-color: var(--textarea-background-color);
51
53
  border: solid var(--cx-input-border-width) var(--cx-input-border-color);
52
54
  }
53
55
 
54
56
  .textarea--standard:hover:not(.textarea--disabled) {
55
- background-color: var(--cx-input-background-color-hover);
57
+ --textarea-background-color: var(--cx-input-background-color-hover);
56
58
  border-color: var(--cx-input-border-color-hover);
57
59
  }
58
60
  .textarea--standard:hover:not(.textarea--disabled) .textarea__control {
@@ -60,7 +62,7 @@ const $ = _`
60
62
  }
61
63
 
62
64
  .textarea--standard.textarea--focused:not(.textarea--disabled) {
63
- background-color: var(--cx-input-background-color-focus);
65
+ --textarea-background-color: var(--cx-input-background-color-focus);
64
66
  border-color: var(--cx-input-border-color-focus);
65
67
  color: var(--cx-input-color-focus);
66
68
  }
@@ -71,7 +73,7 @@ const $ = _`
71
73
  }
72
74
 
73
75
  .textarea--standard.textarea--disabled {
74
- background-color: var(--cx-input-background-color-disabled);
76
+ --textarea-background-color: var(--cx-input-background-color-disabled);
75
77
  border-color: var(--cx-input-border-color-disabled);
76
78
  opacity: 0.5;
77
79
  cursor: default;
@@ -87,23 +89,24 @@ const $ = _`
87
89
 
88
90
  /* Filled textareas */
89
91
  .textarea--filled {
92
+ --textarea-background-color: var(--cx-input-filled-background-color);
90
93
  border: none;
91
- background-color: var(--cx-input-filled-background-color);
94
+ background-color: var(--textarea-background-color);
92
95
  color: var(--cx-input-color);
93
96
  }
94
97
 
95
98
  .textarea--filled:hover:not(.textarea--disabled) {
96
- background-color: var(--cx-input-filled-background-color-hover);
99
+ --textarea-background-color: var(--cx-input-filled-background-color-hover);
97
100
  }
98
101
 
99
102
  .textarea--filled.textarea--focused:not(.textarea--disabled) {
100
- background-color: var(--cx-input-filled-background-color-focus);
103
+ --textarea-background-color: var(--cx-input-filled-background-color-focus);
101
104
  outline: var(--cx-focus-ring);
102
105
  outline-offset: var(--cx-focus-ring-offset);
103
106
  }
104
107
 
105
108
  .textarea--filled.textarea--disabled {
106
- background-color: var(--cx-input-filled-background-color-disabled);
109
+ --textarea-background-color: var(--cx-input-filled-background-color-disabled);
107
110
  opacity: 0.5;
108
111
  cursor: default;
109
112
  }
@@ -215,6 +218,7 @@ const $ = _`
215
218
  pointer-events: none;
216
219
  width: fit-content;
217
220
  line-height: 1; /* use line-height: 1 for easier transform calculation */
221
+ background-color: var(--textarea-background-color);
218
222
  }
219
223
 
220
224
  .form-control--has-label .textarea--small .form-control__label {
@@ -298,20 +302,20 @@ const $ = _`
298
302
  ); /* distance from top */
299
303
  }
300
304
  `;
301
- var F = Object.defineProperty, T = Object.getOwnPropertyDescriptor, e = (a, i, l, s) => {
302
- for (var o = s > 1 ? void 0 : s ? T(i, l) : i, c = a.length - 1, h; c >= 0; c--)
303
- (h = a[c]) && (o = (s ? h(i, l, o) : h(o)) || o);
304
- return s && o && F(i, l, o), o;
305
+ var H = Object.defineProperty, S = Object.getOwnPropertyDescriptor, r = (t, o, i, l) => {
306
+ for (var s = l > 1 ? void 0 : l ? S(o, i) : o, h = t.length - 1, u; h >= 0; h--)
307
+ (u = t[h]) && (s = (l ? u(o, i, s) : u(s)) || s);
308
+ return l && s && H(o, i, s), s;
305
309
  };
306
- let t = class extends x {
310
+ let e = class extends m {
307
311
  constructor() {
308
- super(...arguments), this.formControlController = new g(this, {
312
+ super(...arguments), this.formControlController = new _(this, {
309
313
  assumeInteractionOn: ["cx-input"]
310
- }), this.hasSlotController = new y(
314
+ }), this.hasSlotController = new z(
311
315
  this,
312
316
  "help-text",
313
317
  "label"
314
- ), this.hasFocus = !1, this.title = "", this.name = "", this.value = "", this.size = "medium", this.filled = !1, this.label = "", this.helpText = "", this.placeholder = "", this.rows = 4, this.resize = "vertical", this.disabled = !1, this.readonly = !1, this.form = void 0, this.required = !1, this.showLength = !1, this.autoFocus = !1, this.spellCheck = !0, this.defaultValue = "";
318
+ ), this.hasFocus = !1, this.title = "", this.name = "", this.value = "", this.size = "medium", this.filled = !1, this.label = "", this.helpText = "", this.placeholder = "", this.rows = 4, this.resize = "vertical", this.disabled = !1, this.readonly = !1, this.form = void 0, this.required = !1, this.showLength = !1, this.autoFocus = !1, this.spellCheck = !0, this.defaultValue = "", this._fillHeightPx = null;
315
319
  }
316
320
  /** Gets the validity state object */
317
321
  get validity() {
@@ -321,18 +325,19 @@ let t = class extends x {
321
325
  get validationMessage() {
322
326
  return this.input.validationMessage;
323
327
  }
324
- connectedCallback() {
325
- super.connectedCallback(), this.resizeObserver = new ResizeObserver(() => {
328
+ connectedUpdatedCallback() {
329
+ this.resizeObserver = new ResizeObserver(() => {
326
330
  requestAnimationFrame(() => this.setTextareaHeight());
327
- }), this.updateComplete.then(() => {
328
- this.setTextareaHeight(), this.resizeObserver.observe(this.input);
329
- });
331
+ }), this.setTextareaHeight(), this.updateResizeObserver();
330
332
  }
331
333
  runFirstUpdated() {
332
334
  this.formControlController.updateValidity();
333
335
  }
334
336
  disconnectedCallback() {
335
- super.disconnectedCallback(), this.input && this.resizeObserver?.unobserve(this.input);
337
+ super.disconnectedCallback(), this.resizeObserver?.disconnect();
338
+ }
339
+ updateResizeObserver() {
340
+ this.resizeObserver.disconnect(), this.rows === c.Max ? (this.resizeObserver.observe(this), this.resizeObserver.observe(this.formControlRoot)) : this.resizeObserver.observe(this.input);
336
341
  }
337
342
  handleBlur() {
338
343
  this.hasFocus = !1, this.emit("cx-blur");
@@ -346,24 +351,34 @@ let t = class extends x {
346
351
  handleInput() {
347
352
  this.value = this.input.value, this.emit("cx-input");
348
353
  }
349
- handleInvalid(a) {
350
- this.formControlController.setValidity(!1), this.formControlController.emitInvalidEvent(a);
354
+ handleInvalid(t) {
355
+ this.formControlController.setValidity(!1), this.formControlController.emitInvalidEvent(t);
351
356
  }
352
357
  setTextareaHeight() {
353
- this.resize === "auto" ? (this.input.style.height = "auto", this.input.style.height = `${this.input.scrollHeight}px`) : this.input.style.height = void 0;
358
+ if (this.rows === c.Max) {
359
+ const t = this.clientHeight;
360
+ if (t === 0)
361
+ return;
362
+ const o = Number.parseFloat(this.input.style.height);
363
+ if (this._fillHeightPx !== null && o !== this._fillHeightPx)
364
+ return;
365
+ this.input.style.height = "0px";
366
+ const i = this.formControlRoot?.offsetHeight ?? 0, l = Math.max(t - i, 0);
367
+ this.input.style.height = `${l}px`, this._fillHeightPx = l;
368
+ } else this.resize === "auto" ? (this.input.style.height = "auto", this.input.style.height = `${this.input.scrollHeight}px`) : this.input.style.height = void 0;
354
369
  }
355
370
  handleDisabledChange() {
356
371
  this.formControlController.setValidity(this.disabled);
357
372
  }
358
373
  handleRowsChange() {
359
- this.setTextareaHeight();
374
+ this.input.style.height = "", this._fillHeightPx = null, this.setTextareaHeight(), this.updateResizeObserver();
360
375
  }
361
376
  async handleValueChange() {
362
377
  await this.updateComplete, this.formControlController.updateValidity(), this.setTextareaHeight();
363
378
  }
364
379
  /** Sets focus on the textarea. */
365
- focus(a) {
366
- this.input.focus(a);
380
+ focus(t) {
381
+ this.input.focus(t);
367
382
  }
368
383
  /** Removes focus from the textarea. */
369
384
  blur() {
@@ -374,9 +389,9 @@ let t = class extends x {
374
389
  this.input.select();
375
390
  }
376
391
  /** Gets or sets the textarea's scroll position. */
377
- scrollPosition(a) {
378
- if (a) {
379
- typeof a.top == "number" && (this.input.scrollTop = a.top), typeof a.left == "number" && (this.input.scrollLeft = a.left);
392
+ scrollPosition(t) {
393
+ if (t) {
394
+ typeof t.top == "number" && (this.input.scrollTop = t.top), typeof t.left == "number" && (this.input.scrollLeft = t.left);
380
395
  return;
381
396
  }
382
397
  return {
@@ -385,21 +400,21 @@ let t = class extends x {
385
400
  };
386
401
  }
387
402
  /** Sets the start and end positions of the text selection (0-based). */
388
- setSelectionRange(a, i, l = "none") {
403
+ setSelectionRange(t, o, i = "none") {
389
404
  this.input.setSelectionRange(
390
- a,
391
- i,
392
- l
405
+ t,
406
+ o,
407
+ i
393
408
  );
394
409
  }
395
410
  /** Replaces a range of text with a new string. */
396
- setRangeText(a, i, l, s = "preserve") {
397
- const o = i ?? this.input.selectionStart, c = l ?? this.input.selectionEnd;
411
+ setRangeText(t, o, i, l = "preserve") {
412
+ const s = o ?? this.input.selectionStart, h = i ?? this.input.selectionEnd;
398
413
  this.input.setRangeText(
399
- a,
400
- o,
401
- c,
402
- s
414
+ t,
415
+ s,
416
+ h,
417
+ l
403
418
  ), this.value !== this.input.value && (this.value = this.input.value, this.setTextareaHeight());
404
419
  }
405
420
  /** Checks for validity but does not show a validation message. Returns `true` when valid and `false` when invalid. */
@@ -415,18 +430,18 @@ let t = class extends x {
415
430
  return this.input.reportValidity();
416
431
  }
417
432
  /** Sets a custom validation message. Pass an empty string to restore validity. */
418
- setCustomValidity(a) {
419
- this.input.setCustomValidity(a), this.formControlController.updateValidity();
433
+ setCustomValidity(t) {
434
+ this.input.setCustomValidity(t), this.formControlController.updateValidity();
420
435
  }
421
436
  render() {
422
- const a = this.hasSlotController.test("label"), i = this.hasSlotController.test("help-text"), l = this.label ? !0 : !!a, s = this.helpText ? !0 : !!i, o = this.placeholder && this.value.length === 0;
437
+ const t = this.hasSlotController.test("label"), o = this.hasSlotController.test("help-text"), i = this.label ? !0 : !!t, l = this.helpText ? !0 : !!o, s = this.placeholder && this.value.length === 0;
423
438
  return p`
424
439
  <div
425
440
  part="form-control"
426
- class=${d({
441
+ class=${x({
427
442
  "form-control": !0,
428
- "form-control--has-help-text": s,
429
- "form-control--has-label": l,
443
+ "form-control--has-help-text": l,
444
+ "form-control--has-label": i,
430
445
  "form-control--large": this.size === "large",
431
446
  "form-control--medium": this.size === "medium",
432
447
  "form-control--small": this.size === "small"
@@ -435,7 +450,7 @@ let t = class extends x {
435
450
  <div part="form-control-input" class="form-control-input">
436
451
  <div
437
452
  part="base"
438
- class=${d({
453
+ class=${x({
439
454
  textarea: !0,
440
455
  "textarea--disabled": this.disabled,
441
456
  "textarea--empty": !this.value,
@@ -443,8 +458,8 @@ let t = class extends x {
443
458
  "textarea--focused": this.hasFocus,
444
459
  "textarea--large": this.size === "large",
445
460
  "textarea--medium": this.size === "medium",
446
- "textarea--placeholder-visible": o,
447
- "textarea--resize-auto": this.resize === "auto",
461
+ "textarea--placeholder-visible": s,
462
+ "textarea--resize-auto": this.resize === "auto" && this.rows !== c.Max,
448
463
  "textarea--resize-none": this.resize === "none",
449
464
  "textarea--resize-vertical": this.resize === "vertical",
450
465
  "textarea--small": this.size === "small",
@@ -456,22 +471,20 @@ let t = class extends x {
456
471
  part="form-control-label"
457
472
  class="form-control__label"
458
473
  for="input"
459
- aria-hidden=${l ? "false" : "true"}
460
- >
461
- <slot name="label">${this.label}</slot>
462
- </label>
474
+ aria-hidden=${i ? "false" : "true"}
475
+ ><slot name="label">${this.label}</slot></label>
463
476
  <textarea
464
477
  part="textarea"
465
478
  id="input"
466
479
  class="textarea__control"
467
480
  title=${this.title}
468
481
  name=${n(this.name)}
469
- .value=${w(this.value)}
482
+ .value=${k(this.value)}
470
483
  ?disabled=${this.disabled}
471
484
  ?readonly=${this.readonly}
472
485
  ?required=${this.required}
473
486
  placeholder=${n(this.placeholder)}
474
- rows=${n(this.rows)}
487
+ rows=${n(this.rows === c.Max ? void 0 : this.rows)}
475
488
  minlength=${n(this.minlength)}
476
489
  maxlength=${n(this.maxlength)}
477
490
  autocapitalize=${n(this.autoCapitalize)}
@@ -489,7 +502,7 @@ let t = class extends x {
489
502
  ></textarea>
490
503
  </span>
491
504
  </div>
492
- ${k(this.showLength, () => p`
505
+ ${$(this.showLength, () => p`
493
506
  <div part="character-count" class="textarea__character-count">
494
507
  ${[
495
508
  this.minlength && `${this.minlength} /`,
@@ -504,7 +517,7 @@ let t = class extends x {
504
517
  part="form-control-help-text"
505
518
  id="help-text"
506
519
  class="form-control__help-text"
507
- aria-hidden=${s ? "false" : "true"}
520
+ aria-hidden=${l ? "false" : "true"}
508
521
  >
509
522
  <slot name="help-text">${this.helpText}</slot>
510
523
  </div>
@@ -512,109 +525,124 @@ let t = class extends x {
512
525
  `;
513
526
  }
514
527
  };
515
- t.styles = [f, m, $];
516
- e([
517
- C(".textarea__control")
518
- ], t.prototype, "input", 2);
519
- e([
520
- z()
521
- ], t.prototype, "hasFocus", 2);
522
- e([
523
- r()
524
- ], t.prototype, "title", 2);
525
- e([
526
- r()
527
- ], t.prototype, "name", 2);
528
- e([
529
- r()
530
- ], t.prototype, "value", 2);
531
- e([
532
- r({ reflect: !0 })
533
- ], t.prototype, "size", 2);
534
- e([
535
- r({ reflect: !0, type: Boolean })
536
- ], t.prototype, "filled", 2);
537
- e([
538
- r()
539
- ], t.prototype, "label", 2);
540
- e([
541
- r({ attribute: "help-text" })
542
- ], t.prototype, "helpText", 2);
543
- e([
544
- r()
545
- ], t.prototype, "placeholder", 2);
546
- e([
547
- r({ type: Number })
548
- ], t.prototype, "rows", 2);
549
- e([
550
- r()
551
- ], t.prototype, "resize", 2);
552
- e([
553
- r({ reflect: !0, type: Boolean })
554
- ], t.prototype, "disabled", 2);
555
- e([
556
- r({ reflect: !0, type: Boolean })
557
- ], t.prototype, "readonly", 2);
558
- e([
559
- r({ reflect: !1 })
560
- ], t.prototype, "form", 2);
561
- e([
562
- r({ reflect: !0, type: Boolean })
563
- ], t.prototype, "required", 2);
564
- e([
565
- r({ type: Number })
566
- ], t.prototype, "minlength", 2);
567
- e([
568
- r({ type: Number })
569
- ], t.prototype, "maxlength", 2);
570
- e([
571
- r({ attribute: "show-length", type: Boolean })
572
- ], t.prototype, "showLength", 2);
573
- e([
574
- r({ attribute: "autocapitalize", reflect: !0, type: String })
575
- ], t.prototype, "autoCapitalize", 2);
576
- e([
577
- r({ attribute: "autocorrect", reflect: !0, type: Boolean })
578
- ], t.prototype, "autoCorrect", 2);
579
- e([
580
- r()
581
- ], t.prototype, "autocomplete", 2);
582
- e([
583
- r({ attribute: "autofocus", reflect: !0, type: Boolean })
584
- ], t.prototype, "autoFocus", 2);
585
- e([
586
- r({ attribute: "enterkeyhint", reflect: !0, type: String })
587
- ], t.prototype, "enterKeyHint", 2);
588
- e([
589
- r({
528
+ e.styles = [b, g, F];
529
+ r([
530
+ f(".textarea__control")
531
+ ], e.prototype, "input", 2);
532
+ r([
533
+ f(".form-control")
534
+ ], e.prototype, "formControlRoot", 2);
535
+ r([
536
+ C()
537
+ ], e.prototype, "hasFocus", 2);
538
+ r([
539
+ a()
540
+ ], e.prototype, "title", 2);
541
+ r([
542
+ a()
543
+ ], e.prototype, "name", 2);
544
+ r([
545
+ a()
546
+ ], e.prototype, "value", 2);
547
+ r([
548
+ a({ reflect: !0 })
549
+ ], e.prototype, "size", 2);
550
+ r([
551
+ a({ reflect: !0, type: Boolean })
552
+ ], e.prototype, "filled", 2);
553
+ r([
554
+ a()
555
+ ], e.prototype, "label", 2);
556
+ r([
557
+ a({ attribute: "help-text" })
558
+ ], e.prototype, "helpText", 2);
559
+ r([
560
+ a()
561
+ ], e.prototype, "placeholder", 2);
562
+ r([
563
+ a({
564
+ converter: {
565
+ fromAttribute: (t) => {
566
+ if (t == null || t.trim() === "")
567
+ return 4;
568
+ if (t === c.Max)
569
+ return c.Max;
570
+ const o = Number(t);
571
+ return Number.isFinite(o) && o > 0 ? o : 4;
572
+ },
573
+ toAttribute: String
574
+ }
575
+ })
576
+ ], e.prototype, "rows", 2);
577
+ r([
578
+ a()
579
+ ], e.prototype, "resize", 2);
580
+ r([
581
+ a({ reflect: !0, type: Boolean })
582
+ ], e.prototype, "disabled", 2);
583
+ r([
584
+ a({ reflect: !0, type: Boolean })
585
+ ], e.prototype, "readonly", 2);
586
+ r([
587
+ a({ reflect: !1 })
588
+ ], e.prototype, "form", 2);
589
+ r([
590
+ a({ reflect: !0, type: Boolean })
591
+ ], e.prototype, "required", 2);
592
+ r([
593
+ a({ type: Number })
594
+ ], e.prototype, "minlength", 2);
595
+ r([
596
+ a({ type: Number })
597
+ ], e.prototype, "maxlength", 2);
598
+ r([
599
+ a({ attribute: "show-length", type: Boolean })
600
+ ], e.prototype, "showLength", 2);
601
+ r([
602
+ a({ attribute: "autocapitalize", reflect: !0, type: String })
603
+ ], e.prototype, "autoCapitalize", 2);
604
+ r([
605
+ a({ attribute: "autocorrect", reflect: !0, type: Boolean })
606
+ ], e.prototype, "autoCorrect", 2);
607
+ r([
608
+ a()
609
+ ], e.prototype, "autocomplete", 2);
610
+ r([
611
+ a({ attribute: "autofocus", reflect: !0, type: Boolean })
612
+ ], e.prototype, "autoFocus", 2);
613
+ r([
614
+ a({ attribute: "enterkeyhint", reflect: !0, type: String })
615
+ ], e.prototype, "enterKeyHint", 2);
616
+ r([
617
+ a({
590
618
  attribute: "spellcheck",
591
619
  converter: {
592
620
  // Allow "true|false" attribute values but keep the property boolean
593
- fromAttribute: (a) => !(!a || a === "false"),
594
- toAttribute: (a) => a ? "true" : "false"
621
+ fromAttribute: (t) => !(!t || t === "false"),
622
+ toAttribute: (t) => t ? "true" : "false"
595
623
  },
596
624
  reflect: !0,
597
625
  type: Boolean
598
626
  })
599
- ], t.prototype, "spellCheck", 2);
600
- e([
601
- r({ attribute: "inputmode", reflect: !0, type: String })
602
- ], t.prototype, "inputMode", 2);
603
- e([
604
- v()
605
- ], t.prototype, "defaultValue", 2);
606
- e([
607
- u("disabled", { waitUntilFirstUpdate: !0 })
608
- ], t.prototype, "handleDisabledChange", 1);
609
- e([
610
- u("rows", { waitUntilFirstUpdate: !0 })
611
- ], t.prototype, "handleRowsChange", 1);
612
- e([
613
- u("value", { waitUntilFirstUpdate: !0 })
614
- ], t.prototype, "handleValueChange", 1);
615
- t = e([
616
- b("cx-textarea")
617
- ], t);
627
+ ], e.prototype, "spellCheck", 2);
628
+ r([
629
+ a({ attribute: "inputmode", reflect: !0, type: String })
630
+ ], e.prototype, "inputMode", 2);
631
+ r([
632
+ y()
633
+ ], e.prototype, "defaultValue", 2);
634
+ r([
635
+ d("disabled", { waitUntilFirstUpdate: !0 })
636
+ ], e.prototype, "handleDisabledChange", 1);
637
+ r([
638
+ d("rows", { waitUntilFirstUpdate: !0 })
639
+ ], e.prototype, "handleRowsChange", 1);
640
+ r([
641
+ d("value", { waitUntilFirstUpdate: !0 })
642
+ ], e.prototype, "handleValueChange", 1);
643
+ e = r([
644
+ v("cx-textarea")
645
+ ], e);
618
646
  export {
619
- t as default
647
+ e as default
620
648
  };