@orangelogic/design-system 2.77.0 → 2.78.0-ci.3

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 (47) 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.DLXAJdU4.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.C2ZRwPIG.js} +2 -2
  8. package/library/chunks/{pagination.BXCr_5om.js → pagination.DZq0IZjI.js} +83 -73
  9. package/library/chunks/{tab-group.G24wrely.js → tab-group.Dg6a82ei.js} +1 -1
  10. package/library/chunks/{table.34yySlt-.js → table.COCT3Fsb.js} +664 -516
  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/select.js +156 -127
  28. package/library/components/tab-group.js +2 -2
  29. package/library/components/table.js +3 -3
  30. package/library/components/textarea.js +200 -174
  31. package/library/components/types.js +10217 -10205
  32. package/library/components/video.js +3521 -3499
  33. package/library/package.json +4 -1
  34. package/library/packages/atoms/src/components/pagination/pagination.d.ts +2 -1
  35. package/library/packages/atoms/src/components/select/select.d.ts +11 -0
  36. package/library/packages/atoms/src/components/table/tabulator-tables/modules/Ajax/Ajax.d.ts +1 -1
  37. package/library/packages/atoms/src/components/table/tabulator-tables/modules/Edit/Edit.d.ts +1 -0
  38. package/library/packages/atoms/src/components/table/tabulator-tables/modules/Edit/List.d.ts +32 -1
  39. package/library/packages/atoms/src/components/textarea/textarea.d.ts +19 -4
  40. package/library/packages/organisms/src/carousel/carousel.d.ts +2 -0
  41. package/library/packages/types/src/table.d.ts +2 -0
  42. package/library/packages/types/src/textarea.d.ts +4 -0
  43. package/library/packages/utils/src/url/url.d.ts +9 -0
  44. package/library/react-web-component.d.ts +10 -6
  45. package/library/utils.js +34 -33
  46. package/package.json +4 -1
  47. 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,17 @@ 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;
423
- return p`
424
- <div
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;
438
+ return p`<div
425
439
  part="form-control"
426
- class=${d({
440
+ class=${x({
427
441
  "form-control": !0,
428
- "form-control--has-help-text": s,
429
- "form-control--has-label": l,
442
+ "form-control--has-help-text": l,
443
+ "form-control--has-label": i,
430
444
  "form-control--large": this.size === "large",
431
445
  "form-control--medium": this.size === "medium",
432
446
  "form-control--small": this.size === "small"
@@ -435,7 +449,7 @@ let t = class extends x {
435
449
  <div part="form-control-input" class="form-control-input">
436
450
  <div
437
451
  part="base"
438
- class=${d({
452
+ class=${x({
439
453
  textarea: !0,
440
454
  "textarea--disabled": this.disabled,
441
455
  "textarea--empty": !this.value,
@@ -443,8 +457,8 @@ let t = class extends x {
443
457
  "textarea--focused": this.hasFocus,
444
458
  "textarea--large": this.size === "large",
445
459
  "textarea--medium": this.size === "medium",
446
- "textarea--placeholder-visible": o,
447
- "textarea--resize-auto": this.resize === "auto",
460
+ "textarea--placeholder-visible": s,
461
+ "textarea--resize-auto": this.resize === "auto" && this.rows !== c.Max,
448
462
  "textarea--resize-none": this.resize === "none",
449
463
  "textarea--resize-vertical": this.resize === "vertical",
450
464
  "textarea--small": this.size === "small",
@@ -456,22 +470,20 @@ let t = class extends x {
456
470
  part="form-control-label"
457
471
  class="form-control__label"
458
472
  for="input"
459
- aria-hidden=${l ? "false" : "true"}
460
- >
461
- <slot name="label">${this.label}</slot>
462
- </label>
473
+ aria-hidden=${i ? "false" : "true"}
474
+ ><slot name="label">${this.label}</slot></label>
463
475
  <textarea
464
476
  part="textarea"
465
477
  id="input"
466
478
  class="textarea__control"
467
479
  title=${this.title}
468
480
  name=${n(this.name)}
469
- .value=${w(this.value)}
481
+ .value=${k(this.value)}
470
482
  ?disabled=${this.disabled}
471
483
  ?readonly=${this.readonly}
472
484
  ?required=${this.required}
473
485
  placeholder=${n(this.placeholder)}
474
- rows=${n(this.rows)}
486
+ rows=${n(this.rows === c.Max ? void 0 : this.rows)}
475
487
  minlength=${n(this.minlength)}
476
488
  maxlength=${n(this.maxlength)}
477
489
  autocapitalize=${n(this.autoCapitalize)}
@@ -489,7 +501,7 @@ let t = class extends x {
489
501
  ></textarea>
490
502
  </span>
491
503
  </div>
492
- ${k(this.showLength, () => p`
504
+ ${$(this.showLength, () => p`
493
505
  <div part="character-count" class="textarea__character-count">
494
506
  ${[
495
507
  this.minlength && `${this.minlength} /`,
@@ -504,117 +516,131 @@ let t = class extends x {
504
516
  part="form-control-help-text"
505
517
  id="help-text"
506
518
  class="form-control__help-text"
507
- aria-hidden=${s ? "false" : "true"}
519
+ aria-hidden=${l ? "false" : "true"}
508
520
  >
509
521
  <slot name="help-text">${this.helpText}</slot>
510
522
  </div>
511
- </div>
512
- `;
523
+ </div>`;
513
524
  }
514
525
  };
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({
526
+ e.styles = [b, g, F];
527
+ r([
528
+ f(".textarea__control")
529
+ ], e.prototype, "input", 2);
530
+ r([
531
+ f(".form-control")
532
+ ], e.prototype, "formControlRoot", 2);
533
+ r([
534
+ C()
535
+ ], e.prototype, "hasFocus", 2);
536
+ r([
537
+ a()
538
+ ], e.prototype, "title", 2);
539
+ r([
540
+ a()
541
+ ], e.prototype, "name", 2);
542
+ r([
543
+ a()
544
+ ], e.prototype, "value", 2);
545
+ r([
546
+ a({ reflect: !0 })
547
+ ], e.prototype, "size", 2);
548
+ r([
549
+ a({ reflect: !0, type: Boolean })
550
+ ], e.prototype, "filled", 2);
551
+ r([
552
+ a()
553
+ ], e.prototype, "label", 2);
554
+ r([
555
+ a({ attribute: "help-text" })
556
+ ], e.prototype, "helpText", 2);
557
+ r([
558
+ a()
559
+ ], e.prototype, "placeholder", 2);
560
+ r([
561
+ a({
562
+ converter: {
563
+ fromAttribute: (t) => {
564
+ if (t == null || t.trim() === "")
565
+ return 4;
566
+ if (t === c.Max)
567
+ return c.Max;
568
+ const o = Number(t);
569
+ return Number.isFinite(o) && o > 0 ? o : 4;
570
+ },
571
+ toAttribute: String
572
+ }
573
+ })
574
+ ], e.prototype, "rows", 2);
575
+ r([
576
+ a()
577
+ ], e.prototype, "resize", 2);
578
+ r([
579
+ a({ reflect: !0, type: Boolean })
580
+ ], e.prototype, "disabled", 2);
581
+ r([
582
+ a({ reflect: !0, type: Boolean })
583
+ ], e.prototype, "readonly", 2);
584
+ r([
585
+ a({ reflect: !1 })
586
+ ], e.prototype, "form", 2);
587
+ r([
588
+ a({ reflect: !0, type: Boolean })
589
+ ], e.prototype, "required", 2);
590
+ r([
591
+ a({ type: Number })
592
+ ], e.prototype, "minlength", 2);
593
+ r([
594
+ a({ type: Number })
595
+ ], e.prototype, "maxlength", 2);
596
+ r([
597
+ a({ attribute: "show-length", type: Boolean })
598
+ ], e.prototype, "showLength", 2);
599
+ r([
600
+ a({ attribute: "autocapitalize", reflect: !0, type: String })
601
+ ], e.prototype, "autoCapitalize", 2);
602
+ r([
603
+ a({ attribute: "autocorrect", reflect: !0, type: Boolean })
604
+ ], e.prototype, "autoCorrect", 2);
605
+ r([
606
+ a()
607
+ ], e.prototype, "autocomplete", 2);
608
+ r([
609
+ a({ attribute: "autofocus", reflect: !0, type: Boolean })
610
+ ], e.prototype, "autoFocus", 2);
611
+ r([
612
+ a({ attribute: "enterkeyhint", reflect: !0, type: String })
613
+ ], e.prototype, "enterKeyHint", 2);
614
+ r([
615
+ a({
590
616
  attribute: "spellcheck",
591
617
  converter: {
592
618
  // Allow "true|false" attribute values but keep the property boolean
593
- fromAttribute: (a) => !(!a || a === "false"),
594
- toAttribute: (a) => a ? "true" : "false"
619
+ fromAttribute: (t) => !(!t || t === "false"),
620
+ toAttribute: (t) => t ? "true" : "false"
595
621
  },
596
622
  reflect: !0,
597
623
  type: Boolean
598
624
  })
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);
625
+ ], e.prototype, "spellCheck", 2);
626
+ r([
627
+ a({ attribute: "inputmode", reflect: !0, type: String })
628
+ ], e.prototype, "inputMode", 2);
629
+ r([
630
+ y()
631
+ ], e.prototype, "defaultValue", 2);
632
+ r([
633
+ d("disabled", { waitUntilFirstUpdate: !0 })
634
+ ], e.prototype, "handleDisabledChange", 1);
635
+ r([
636
+ d("rows", { waitUntilFirstUpdate: !0 })
637
+ ], e.prototype, "handleRowsChange", 1);
638
+ r([
639
+ d("value", { waitUntilFirstUpdate: !0 })
640
+ ], e.prototype, "handleValueChange", 1);
641
+ e = r([
642
+ v("cx-textarea")
643
+ ], e);
618
644
  export {
619
- t as default
645
+ e as default
620
646
  };