@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.
- package/library/chunks/{button.csCRiZzY.js → button.DS64Tr8Z.js} +2 -4
- package/library/chunks/{color-swatch-group.CKdXj10T.js → color-swatch-group.C7T6-sY7.js} +1 -1
- package/library/chunks/{confirm-popover.Kx6YyQwp.js → confirm-popover.BNjRvnN0.js} +1 -1
- package/library/chunks/{file-on-demand.BJZ5E8XT.js → file-on-demand.BTTdth3o.js} +4 -4
- package/library/chunks/{folder-select.BqLmIlj6.js → folder-select.B2qxSKA5.js} +1 -1
- package/library/chunks/{index.VbMreXxL.js → index.Bx0otwQo.js} +1 -1
- package/library/chunks/{list-editor.BzzQoZe1.js → list-editor.DluUZa06.js} +2 -2
- package/library/chunks/{pagination.BXCr_5om.js → pagination.g4zErKN2.js} +1 -1
- package/library/chunks/{tab-group.G24wrely.js → tab-group.Dg6a82ei.js} +1 -1
- package/library/chunks/{table.34yySlt-.js → table.CcqrVieF.js} +530 -484
- package/library/chunks/url.Cj9cIQXJ.js +27 -0
- package/library/components/asset-link-format.js +1 -1
- package/library/components/atoms.js +4 -4
- package/library/components/button.js +1 -1
- package/library/components/color-picker.js +1 -1
- package/library/components/color-swatch-group.js +2 -2
- package/library/components/confirm-popover.js +2 -2
- package/library/components/dynamic-select.js +1 -1
- package/library/components/element-clamp.js +1 -1
- package/library/components/file-on-demand.js +5 -5
- package/library/components/folder-select.js +1 -1
- package/library/components/line-clamp.js +1 -1
- package/library/components/list-editor.js +3 -3
- package/library/components/molecules.js +3 -3
- package/library/components/organisms.js +2 -2
- package/library/components/pagination.js +2 -2
- package/library/components/tab-group.js +2 -2
- package/library/components/table.js +3 -3
- package/library/components/textarea.js +198 -170
- package/library/components/types.js +10217 -10205
- package/library/package.json +1 -1
- package/library/packages/atoms/src/components/table/tabulator-tables/modules/Edit/Edit.d.ts +1 -0
- package/library/packages/atoms/src/components/textarea/textarea.d.ts +19 -4
- package/library/packages/organisms/src/carousel/carousel.d.ts +2 -0
- package/library/packages/types/src/textarea.d.ts +4 -0
- package/library/packages/utils/src/url/url.d.ts +9 -0
- package/library/react-web-component.d.ts +3 -3
- package/library/utils.js +34 -33
- package/package.json +1 -1
- package/library/chunks/url.LjsR2sB5.js +0 -15
|
@@ -1,19 +1,20 @@
|
|
|
1
|
-
import { n as
|
|
2
|
-
import { c as
|
|
3
|
-
import { f as
|
|
4
|
-
import { c as
|
|
5
|
-
import { d as
|
|
6
|
-
import { F as
|
|
7
|
-
import { H as
|
|
8
|
-
import { w as
|
|
9
|
-
import { i as
|
|
10
|
-
import { r as
|
|
11
|
-
import { e as
|
|
12
|
-
import { e as
|
|
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
|
|
15
|
-
import { n as
|
|
16
|
-
|
|
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(--
|
|
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(--
|
|
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
|
|
302
|
-
for (var
|
|
303
|
-
(
|
|
304
|
-
return
|
|
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
|
|
310
|
+
let e = class extends m {
|
|
307
311
|
constructor() {
|
|
308
|
-
super(...arguments), this.formControlController = new
|
|
312
|
+
super(...arguments), this.formControlController = new _(this, {
|
|
309
313
|
assumeInteractionOn: ["cx-input"]
|
|
310
|
-
}), this.hasSlotController = new
|
|
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
|
-
|
|
325
|
-
|
|
328
|
+
connectedUpdatedCallback() {
|
|
329
|
+
this.resizeObserver = new ResizeObserver(() => {
|
|
326
330
|
requestAnimationFrame(() => this.setTextareaHeight());
|
|
327
|
-
}), this.
|
|
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.
|
|
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(
|
|
350
|
-
this.formControlController.setValidity(!1), this.formControlController.emitInvalidEvent(
|
|
354
|
+
handleInvalid(t) {
|
|
355
|
+
this.formControlController.setValidity(!1), this.formControlController.emitInvalidEvent(t);
|
|
351
356
|
}
|
|
352
357
|
setTextareaHeight() {
|
|
353
|
-
|
|
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(
|
|
366
|
-
this.input.focus(
|
|
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(
|
|
378
|
-
if (
|
|
379
|
-
typeof
|
|
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(
|
|
403
|
+
setSelectionRange(t, o, i = "none") {
|
|
389
404
|
this.input.setSelectionRange(
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
405
|
+
t,
|
|
406
|
+
o,
|
|
407
|
+
i
|
|
393
408
|
);
|
|
394
409
|
}
|
|
395
410
|
/** Replaces a range of text with a new string. */
|
|
396
|
-
setRangeText(
|
|
397
|
-
const
|
|
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
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
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(
|
|
419
|
-
this.input.setCustomValidity(
|
|
433
|
+
setCustomValidity(t) {
|
|
434
|
+
this.input.setCustomValidity(t), this.formControlController.updateValidity();
|
|
420
435
|
}
|
|
421
436
|
render() {
|
|
422
|
-
const
|
|
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=${
|
|
441
|
+
class=${x({
|
|
427
442
|
"form-control": !0,
|
|
428
|
-
"form-control--has-help-text":
|
|
429
|
-
"form-control--has-label":
|
|
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=${
|
|
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":
|
|
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=${
|
|
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=${
|
|
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
|
-
${
|
|
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=${
|
|
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
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
],
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
],
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
],
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
],
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
],
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
],
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
],
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
],
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
],
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
],
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
],
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
],
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
],
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
],
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
],
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
],
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
],
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
],
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
],
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
],
|
|
588
|
-
|
|
589
|
-
|
|
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: (
|
|
594
|
-
toAttribute: (
|
|
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
|
-
],
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
],
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
],
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
],
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
],
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
],
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
],
|
|
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
|
-
|
|
647
|
+
e as default
|
|
620
648
|
};
|