@saasbase-io/core-elements 1.20.0 → 1.21.1
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/dist/components/renderers/_updated/form/form.types.d.ts +2 -2
- package/dist/index.js +1 -3
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +108 -109
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -22121,16 +22121,16 @@ var Em = Object.defineProperty, km = Object.getOwnPropertyDescriptor, ht = (t, e
|
|
|
22121
22121
|
(n = t[o]) && (s = (i ? n(e, r, s) : n(s)) || s);
|
|
22122
22122
|
return i && s && Em(e, r, s), s;
|
|
22123
22123
|
};
|
|
22124
|
-
let
|
|
22124
|
+
let P = class extends v {
|
|
22125
22125
|
constructor() {
|
|
22126
22126
|
super(...arguments), this.seed = Nt(), this.name = "name", this.content = "split", this.label = "Name", this.requiredError = "Name is a required field.", this.formatError = "Enter a valid name.", this._invalid = !1, this._error = "", this._value = "", this._form = null, this._handleInput = (t) => {
|
|
22127
22127
|
const e = t.target;
|
|
22128
|
-
e.matches(`[part="${
|
|
22128
|
+
e.matches(`[part="${P.parts.input}"]>input`) && (this._value = e.value);
|
|
22129
22129
|
}, this._handleFormSubmit = (t) => {
|
|
22130
22130
|
this._validate() || t.preventDefault();
|
|
22131
22131
|
}, this._handleFormReset = () => {
|
|
22132
22132
|
const t = this.querySelector(
|
|
22133
|
-
`rtg-input[part="${
|
|
22133
|
+
`rtg-input[part="${P.parts.input}"]`
|
|
22134
22134
|
);
|
|
22135
22135
|
t && (t.value = ""), this._value = "", this._invalid = !1, this._error = "";
|
|
22136
22136
|
};
|
|
@@ -22159,49 +22159,49 @@ let N = class extends v {
|
|
|
22159
22159
|
* derived from the component's part name and `seed`.
|
|
22160
22160
|
*/
|
|
22161
22161
|
get rootId() {
|
|
22162
|
-
return this.childId ?? `sb-${
|
|
22162
|
+
return this.childId ?? `sb-${P.parts.root}-${this.seed}`;
|
|
22163
22163
|
}
|
|
22164
22164
|
/**
|
|
22165
22165
|
* The `id` of the field content element, derived from `rootId` with the
|
|
22166
22166
|
* content part name appended.
|
|
22167
22167
|
*/
|
|
22168
22168
|
get contentId() {
|
|
22169
|
-
return `${this.rootId}-${
|
|
22169
|
+
return `${this.rootId}-${P._CONTENT}`;
|
|
22170
22170
|
}
|
|
22171
22171
|
/**
|
|
22172
22172
|
* The `id` of the field label element, derived from `rootId` with the label
|
|
22173
22173
|
* part name appended.
|
|
22174
22174
|
*/
|
|
22175
22175
|
get labelId() {
|
|
22176
|
-
return `${this.rootId}-${
|
|
22176
|
+
return `${this.rootId}-${P._LABEL}`;
|
|
22177
22177
|
}
|
|
22178
22178
|
/**
|
|
22179
22179
|
* The `id` of the field description element, derived from `rootId` with the
|
|
22180
22180
|
* description part name appended.
|
|
22181
22181
|
*/
|
|
22182
22182
|
get descriptionId() {
|
|
22183
|
-
return `${this.rootId}-${
|
|
22183
|
+
return `${this.rootId}-${P._DESCRIPTION}`;
|
|
22184
22184
|
}
|
|
22185
22185
|
/**
|
|
22186
22186
|
* The `id` of the mark element, derived from `rootId` with the mark part name
|
|
22187
22187
|
* appended.
|
|
22188
22188
|
*/
|
|
22189
22189
|
get markId() {
|
|
22190
|
-
return `${this.rootId}-${
|
|
22190
|
+
return `${this.rootId}-${P._MARK}`;
|
|
22191
22191
|
}
|
|
22192
22192
|
/**
|
|
22193
22193
|
* The `id` of the input element, equal to `fieldId` when provided, otherwise
|
|
22194
22194
|
* derived from `rootId` with the input part name appended.
|
|
22195
22195
|
*/
|
|
22196
22196
|
get inputId() {
|
|
22197
|
-
return this.fieldId ?? `${this.rootId}-${
|
|
22197
|
+
return this.fieldId ?? `${this.rootId}-${P._INPUT}`;
|
|
22198
22198
|
}
|
|
22199
22199
|
/**
|
|
22200
22200
|
* The `id` of the field error element, derived from `rootId` with the error
|
|
22201
22201
|
* part name appended.
|
|
22202
22202
|
*/
|
|
22203
22203
|
get errorId() {
|
|
22204
|
-
return `${this.rootId}-${
|
|
22204
|
+
return `${this.rootId}-${P._ERROR}`;
|
|
22205
22205
|
}
|
|
22206
22206
|
/**
|
|
22207
22207
|
* Returns the normalized value of `_value` by trimming leading/trailing
|
|
@@ -22227,7 +22227,7 @@ let N = class extends v {
|
|
|
22227
22227
|
* `pattern` prop when provided, otherwise falling back to `_PATTERN`.
|
|
22228
22228
|
*/
|
|
22229
22229
|
get _pattern() {
|
|
22230
|
-
return this.pattern ? new RegExp(this.pattern) :
|
|
22230
|
+
return this.pattern ? new RegExp(this.pattern) : P._PATTERN;
|
|
22231
22231
|
}
|
|
22232
22232
|
/**
|
|
22233
22233
|
* Adds the input, form submit, and form reset event listeners.
|
|
@@ -22254,7 +22254,7 @@ let N = class extends v {
|
|
|
22254
22254
|
* Defines and dispatches the validate event.
|
|
22255
22255
|
*/
|
|
22256
22256
|
_dispatchValidate(t, e, r, i) {
|
|
22257
|
-
const s = this.inputId, o = this.rootId, n = this.name, h = new CustomEvent(
|
|
22257
|
+
const s = this.inputId, o = this.rootId, n = this.name, h = new CustomEvent(P.validateEventName, {
|
|
22258
22258
|
detail: { id: s, parentId: o, name: n, value: r, valid: t, type: e, message: i },
|
|
22259
22259
|
bubbles: !0,
|
|
22260
22260
|
composed: !0
|
|
@@ -22329,7 +22329,7 @@ let N = class extends v {
|
|
|
22329
22329
|
return !this.mark && (!this.caret || !this.required) ? g : d`
|
|
22330
22330
|
<span
|
|
22331
22331
|
id="${this.markId}"
|
|
22332
|
-
part="${
|
|
22332
|
+
part="${P.parts.mark}"
|
|
22333
22333
|
data-content="${this.mark ? "text" : "caret"}"
|
|
22334
22334
|
>
|
|
22335
22335
|
${this.mark ? this.mark : d`*`}
|
|
@@ -22343,7 +22343,7 @@ let N = class extends v {
|
|
|
22343
22343
|
return d`
|
|
22344
22344
|
<rtg-field-label
|
|
22345
22345
|
id="${this.labelId}"
|
|
22346
|
-
part="${
|
|
22346
|
+
part="${P.parts.label}"
|
|
22347
22347
|
for="${this.inputId}"
|
|
22348
22348
|
>
|
|
22349
22349
|
${this.label} ${this._renderMark()}
|
|
@@ -22357,7 +22357,7 @@ let N = class extends v {
|
|
|
22357
22357
|
return this.description ? d`
|
|
22358
22358
|
<rtg-field-description
|
|
22359
22359
|
id="${this.descriptionId}"
|
|
22360
|
-
part="${
|
|
22360
|
+
part="${P.parts.description}"
|
|
22361
22361
|
>
|
|
22362
22362
|
${this.description}
|
|
22363
22363
|
</rtg-field-description>
|
|
@@ -22371,7 +22371,7 @@ let N = class extends v {
|
|
|
22371
22371
|
return this._invalid ? d`
|
|
22372
22372
|
<rtg-field-error
|
|
22373
22373
|
id="${this.errorId}"
|
|
22374
|
-
part="${
|
|
22374
|
+
part="${P.parts.error}"
|
|
22375
22375
|
.errors=${[{ message: this._error }]}
|
|
22376
22376
|
></rtg-field-error>
|
|
22377
22377
|
` : g;
|
|
@@ -22381,7 +22381,7 @@ let N = class extends v {
|
|
|
22381
22381
|
return d`
|
|
22382
22382
|
<rtg-field
|
|
22383
22383
|
id="${this.rootId}"
|
|
22384
|
-
part="${
|
|
22384
|
+
part="${P.parts.root}"
|
|
22385
22385
|
data-content="${this.content}"
|
|
22386
22386
|
?disabled="${this.disabled}"
|
|
22387
22387
|
?invalid="${this._invalid}"
|
|
@@ -22389,7 +22389,7 @@ let N = class extends v {
|
|
|
22389
22389
|
${this.content === "group" ? d`
|
|
22390
22390
|
<rtg-field-content
|
|
22391
22391
|
id="${this.contentId}"
|
|
22392
|
-
part="${
|
|
22392
|
+
part="${P.parts.content}"
|
|
22393
22393
|
>
|
|
22394
22394
|
${this._renderLabel()} ${this._renderDescription()}
|
|
22395
22395
|
</rtg-field-content>
|
|
@@ -22397,11 +22397,10 @@ let N = class extends v {
|
|
|
22397
22397
|
|
|
22398
22398
|
<rtg-input
|
|
22399
22399
|
id="${this.inputId}"
|
|
22400
|
-
part="${
|
|
22400
|
+
part="${P.parts.input}"
|
|
22401
22401
|
type="text"
|
|
22402
22402
|
name="${this.name}"
|
|
22403
22403
|
placeholder="${this.placeholder ?? g}"
|
|
22404
|
-
pattern="${this._pattern.source}"
|
|
22405
22404
|
minlength="${t ?? g}"
|
|
22406
22405
|
maxlength="${e ?? g}"
|
|
22407
22406
|
?disabled="${this.disabled}"
|
|
@@ -22415,84 +22414,84 @@ let N = class extends v {
|
|
|
22415
22414
|
`;
|
|
22416
22415
|
}
|
|
22417
22416
|
};
|
|
22418
|
-
|
|
22419
|
-
|
|
22420
|
-
|
|
22421
|
-
|
|
22422
|
-
|
|
22423
|
-
|
|
22424
|
-
|
|
22425
|
-
|
|
22426
|
-
|
|
22417
|
+
P._ROOT = "name-field";
|
|
22418
|
+
P._CONTENT = "content";
|
|
22419
|
+
P._LABEL = "label";
|
|
22420
|
+
P._MARK = "mark";
|
|
22421
|
+
P._DESCRIPTION = "description";
|
|
22422
|
+
P._INPUT = "input";
|
|
22423
|
+
P._ERROR = "error";
|
|
22424
|
+
P.TAG = `sb-${P._ROOT}`;
|
|
22425
|
+
P._PATTERN = /^[\p{L} .'-]*$/u;
|
|
22427
22426
|
ht([
|
|
22428
22427
|
a({ type: String })
|
|
22429
|
-
],
|
|
22428
|
+
], P.prototype, "seed", 2);
|
|
22430
22429
|
ht([
|
|
22431
22430
|
a({ attribute: "child-id", type: String })
|
|
22432
|
-
],
|
|
22431
|
+
], P.prototype, "childId", 2);
|
|
22433
22432
|
ht([
|
|
22434
22433
|
a({ attribute: "field-id", type: String })
|
|
22435
|
-
],
|
|
22434
|
+
], P.prototype, "fieldId", 2);
|
|
22436
22435
|
ht([
|
|
22437
22436
|
a({ type: String })
|
|
22438
|
-
],
|
|
22437
|
+
], P.prototype, "name", 2);
|
|
22439
22438
|
ht([
|
|
22440
22439
|
a({ type: String })
|
|
22441
|
-
],
|
|
22440
|
+
], P.prototype, "content", 2);
|
|
22442
22441
|
ht([
|
|
22443
22442
|
a({ type: String })
|
|
22444
|
-
],
|
|
22443
|
+
], P.prototype, "label", 2);
|
|
22445
22444
|
ht([
|
|
22446
22445
|
a({ type: String })
|
|
22447
|
-
],
|
|
22446
|
+
], P.prototype, "placeholder", 2);
|
|
22448
22447
|
ht([
|
|
22449
22448
|
a({ type: String })
|
|
22450
|
-
],
|
|
22449
|
+
], P.prototype, "description", 2);
|
|
22451
22450
|
ht([
|
|
22452
22451
|
a({ type: String })
|
|
22453
|
-
],
|
|
22452
|
+
], P.prototype, "mark", 2);
|
|
22454
22453
|
ht([
|
|
22455
22454
|
a({ type: Boolean })
|
|
22456
|
-
],
|
|
22455
|
+
], P.prototype, "caret", 2);
|
|
22457
22456
|
ht([
|
|
22458
22457
|
a({ type: Boolean })
|
|
22459
|
-
],
|
|
22458
|
+
], P.prototype, "disabled", 2);
|
|
22460
22459
|
ht([
|
|
22461
22460
|
a({ type: Boolean })
|
|
22462
|
-
],
|
|
22461
|
+
], P.prototype, "required", 2);
|
|
22463
22462
|
ht([
|
|
22464
22463
|
a({ type: Number })
|
|
22465
|
-
],
|
|
22464
|
+
], P.prototype, "minlength", 2);
|
|
22466
22465
|
ht([
|
|
22467
22466
|
a({ type: Number })
|
|
22468
|
-
],
|
|
22467
|
+
], P.prototype, "maxlength", 2);
|
|
22469
22468
|
ht([
|
|
22470
22469
|
a({ type: String })
|
|
22471
|
-
],
|
|
22470
|
+
], P.prototype, "pattern", 2);
|
|
22472
22471
|
ht([
|
|
22473
22472
|
a({ attribute: "required-error", type: String })
|
|
22474
|
-
],
|
|
22473
|
+
], P.prototype, "requiredError", 2);
|
|
22475
22474
|
ht([
|
|
22476
22475
|
a({ attribute: "minlength-error", type: String })
|
|
22477
|
-
],
|
|
22476
|
+
], P.prototype, "minlengthError", 2);
|
|
22478
22477
|
ht([
|
|
22479
22478
|
a({ attribute: "maxlength-error", type: String })
|
|
22480
|
-
],
|
|
22479
|
+
], P.prototype, "maxlengthError", 2);
|
|
22481
22480
|
ht([
|
|
22482
22481
|
a({ attribute: "format-error", type: String })
|
|
22483
|
-
],
|
|
22482
|
+
], P.prototype, "formatError", 2);
|
|
22484
22483
|
ht([
|
|
22485
22484
|
x()
|
|
22486
|
-
],
|
|
22485
|
+
], P.prototype, "_invalid", 2);
|
|
22487
22486
|
ht([
|
|
22488
22487
|
x()
|
|
22489
|
-
],
|
|
22488
|
+
], P.prototype, "_error", 2);
|
|
22490
22489
|
ht([
|
|
22491
22490
|
x()
|
|
22492
|
-
],
|
|
22493
|
-
|
|
22491
|
+
], P.prototype, "_value", 2);
|
|
22492
|
+
P = ht([
|
|
22494
22493
|
u("sb-name-field")
|
|
22495
|
-
],
|
|
22494
|
+
], P);
|
|
22496
22495
|
var Rm = Object.defineProperty, Om = Object.getOwnPropertyDescriptor, Ot = (t, e, r, i) => {
|
|
22497
22496
|
for (var s = i > 1 ? void 0 : i ? Om(e, r) : e, o = t.length - 1, n; o >= 0; o--)
|
|
22498
22497
|
(n = t[o]) && (s = (i ? n(e, r, s) : n(s)) || s);
|
|
@@ -22811,16 +22810,16 @@ var Im = Object.defineProperty, Am = Object.getOwnPropertyDescriptor, pt = (t, e
|
|
|
22811
22810
|
(n = t[o]) && (s = (i ? n(e, r, s) : n(s)) || s);
|
|
22812
22811
|
return i && s && Im(e, r, s), s;
|
|
22813
22812
|
};
|
|
22814
|
-
let
|
|
22813
|
+
let N = class extends v {
|
|
22815
22814
|
constructor() {
|
|
22816
22815
|
super(...arguments), this.seed = Nt(), this.name = "username", this.content = "split", this.label = "Username", this.requiredError = "Username is a required field.", this.formatError = "Enter a valid username.", this._invalid = !1, this._error = "", this._value = "", this._form = null, this._handleInput = (t) => {
|
|
22817
22816
|
const e = t.target;
|
|
22818
|
-
e.matches(`[part="${
|
|
22817
|
+
e.matches(`[part="${N.parts.input}"]>input`) && (this._value = e.value);
|
|
22819
22818
|
}, this._handleFormSubmit = (t) => {
|
|
22820
22819
|
this._validate() || t.preventDefault();
|
|
22821
22820
|
}, this._handleFormReset = () => {
|
|
22822
22821
|
const t = this.querySelector(
|
|
22823
|
-
`rtg-input[part="${
|
|
22822
|
+
`rtg-input[part="${N.parts.input}"]`
|
|
22824
22823
|
);
|
|
22825
22824
|
t && (t.value = ""), this._value = "", this._invalid = !1, this._error = "";
|
|
22826
22825
|
};
|
|
@@ -22849,49 +22848,49 @@ let P = class extends v {
|
|
|
22849
22848
|
* derived from the component's part name and `seed`.
|
|
22850
22849
|
*/
|
|
22851
22850
|
get rootId() {
|
|
22852
|
-
return this.childId ?? `sb-${
|
|
22851
|
+
return this.childId ?? `sb-${N.parts.root}-${this.seed}`;
|
|
22853
22852
|
}
|
|
22854
22853
|
/**
|
|
22855
22854
|
* The `id` of the field content element, derived from `rootId` with the
|
|
22856
22855
|
* content part name appended.
|
|
22857
22856
|
*/
|
|
22858
22857
|
get contentId() {
|
|
22859
|
-
return `${this.rootId}-${
|
|
22858
|
+
return `${this.rootId}-${N._CONTENT}`;
|
|
22860
22859
|
}
|
|
22861
22860
|
/**
|
|
22862
22861
|
* The `id` of the field label element, derived from `rootId` with the label
|
|
22863
22862
|
* part name appended.
|
|
22864
22863
|
*/
|
|
22865
22864
|
get labelId() {
|
|
22866
|
-
return `${this.rootId}-${
|
|
22865
|
+
return `${this.rootId}-${N._LABEL}`;
|
|
22867
22866
|
}
|
|
22868
22867
|
/**
|
|
22869
22868
|
* The `id` of the field description element, derived from `rootId` with the
|
|
22870
22869
|
* description part name appended.
|
|
22871
22870
|
*/
|
|
22872
22871
|
get descriptionId() {
|
|
22873
|
-
return `${this.rootId}-${
|
|
22872
|
+
return `${this.rootId}-${N._DESCRIPTION}`;
|
|
22874
22873
|
}
|
|
22875
22874
|
/**
|
|
22876
22875
|
* The `id` of the mark element, derived from `rootId` with the mark part name
|
|
22877
22876
|
* appended.
|
|
22878
22877
|
*/
|
|
22879
22878
|
get markId() {
|
|
22880
|
-
return `${this.rootId}-${
|
|
22879
|
+
return `${this.rootId}-${N._MARK}`;
|
|
22881
22880
|
}
|
|
22882
22881
|
/**
|
|
22883
22882
|
* The `id` of the input element, equal to `fieldId` when provided, otherwise
|
|
22884
22883
|
* derived from `rootId` with the input part name appended.
|
|
22885
22884
|
*/
|
|
22886
22885
|
get inputId() {
|
|
22887
|
-
return this.fieldId ?? `${this.rootId}-${
|
|
22886
|
+
return this.fieldId ?? `${this.rootId}-${N._INPUT}`;
|
|
22888
22887
|
}
|
|
22889
22888
|
/**
|
|
22890
22889
|
* The `id` of the field error element, derived from `rootId` with the error
|
|
22891
22890
|
* part name appended.
|
|
22892
22891
|
*/
|
|
22893
22892
|
get errorId() {
|
|
22894
|
-
return `${this.rootId}-${
|
|
22893
|
+
return `${this.rootId}-${N._ERROR}`;
|
|
22895
22894
|
}
|
|
22896
22895
|
/**
|
|
22897
22896
|
* Returns a the normalized value of `_value` by trimming whitespace and
|
|
@@ -22917,7 +22916,7 @@ let P = class extends v {
|
|
|
22917
22916
|
* `pattern` prop when provided, otherwise falling back to `_PATTERN`.
|
|
22918
22917
|
*/
|
|
22919
22918
|
get _pattern() {
|
|
22920
|
-
return this.pattern ? new RegExp(this.pattern) :
|
|
22919
|
+
return this.pattern ? new RegExp(this.pattern) : N._PATTERN;
|
|
22921
22920
|
}
|
|
22922
22921
|
/**
|
|
22923
22922
|
* Adds the input, form submit, and form reset event listeners.
|
|
@@ -22944,7 +22943,7 @@ let P = class extends v {
|
|
|
22944
22943
|
* Defines and dispatches the validate event.
|
|
22945
22944
|
*/
|
|
22946
22945
|
_dispatchValidate(t, e, r, i) {
|
|
22947
|
-
const s = this.inputId, o = this.rootId, n = this.name, h = new CustomEvent(
|
|
22946
|
+
const s = this.inputId, o = this.rootId, n = this.name, h = new CustomEvent(N.validateEventName, {
|
|
22948
22947
|
detail: { id: s, parentId: o, name: n, value: r, valid: t, type: e, message: i },
|
|
22949
22948
|
bubbles: !0,
|
|
22950
22949
|
composed: !0
|
|
@@ -23019,7 +23018,7 @@ let P = class extends v {
|
|
|
23019
23018
|
return !this.mark && (!this.caret || !this.required) ? g : d`
|
|
23020
23019
|
<span
|
|
23021
23020
|
id="${this.markId}"
|
|
23022
|
-
part="${
|
|
23021
|
+
part="${N.parts.mark}"
|
|
23023
23022
|
data-content="${this.mark ? "text" : "caret"}"
|
|
23024
23023
|
>
|
|
23025
23024
|
${this.mark ? this.mark : d`*`}
|
|
@@ -23033,7 +23032,7 @@ let P = class extends v {
|
|
|
23033
23032
|
return d`
|
|
23034
23033
|
<rtg-field-label
|
|
23035
23034
|
id="${this.labelId}"
|
|
23036
|
-
part="${
|
|
23035
|
+
part="${N.parts.label}"
|
|
23037
23036
|
for="${this.inputId}"
|
|
23038
23037
|
>
|
|
23039
23038
|
${this.label} ${this._renderMark()}
|
|
@@ -23047,7 +23046,7 @@ let P = class extends v {
|
|
|
23047
23046
|
return this.description ? d`
|
|
23048
23047
|
<rtg-field-description
|
|
23049
23048
|
id="${this.descriptionId}"
|
|
23050
|
-
part="${
|
|
23049
|
+
part="${N.parts.description}"
|
|
23051
23050
|
>
|
|
23052
23051
|
${this.description}
|
|
23053
23052
|
</rtg-field-description>
|
|
@@ -23061,7 +23060,7 @@ let P = class extends v {
|
|
|
23061
23060
|
return this._invalid ? d`
|
|
23062
23061
|
<rtg-field-error
|
|
23063
23062
|
id="${this.errorId}"
|
|
23064
|
-
part="${
|
|
23063
|
+
part="${N.parts.error}"
|
|
23065
23064
|
.errors=${[{ message: this._error }]}
|
|
23066
23065
|
></rtg-field-error>
|
|
23067
23066
|
` : g;
|
|
@@ -23071,7 +23070,7 @@ let P = class extends v {
|
|
|
23071
23070
|
return d`
|
|
23072
23071
|
<rtg-field
|
|
23073
23072
|
id="${this.rootId}"
|
|
23074
|
-
part="${
|
|
23073
|
+
part="${N.parts.root}"
|
|
23075
23074
|
data-content="${this.content}"
|
|
23076
23075
|
?disabled="${this.disabled}"
|
|
23077
23076
|
?invalid="${this._invalid}"
|
|
@@ -23079,7 +23078,7 @@ let P = class extends v {
|
|
|
23079
23078
|
${this.content === "group" ? d`
|
|
23080
23079
|
<rtg-field-content
|
|
23081
23080
|
id="${this.contentId}"
|
|
23082
|
-
part="${
|
|
23081
|
+
part="${N.parts.content}"
|
|
23083
23082
|
>
|
|
23084
23083
|
${this._renderLabel()} ${this._renderDescription()}
|
|
23085
23084
|
</rtg-field-content>
|
|
@@ -23087,11 +23086,10 @@ let P = class extends v {
|
|
|
23087
23086
|
|
|
23088
23087
|
<rtg-input
|
|
23089
23088
|
id="${this.inputId}"
|
|
23090
|
-
part="${
|
|
23089
|
+
part="${N.parts.input}"
|
|
23091
23090
|
type="text"
|
|
23092
23091
|
name="${this.name}"
|
|
23093
23092
|
placeholder="${this.placeholder ?? g}"
|
|
23094
|
-
pattern="${this._pattern.source}"
|
|
23095
23093
|
minlength="${t ?? g}"
|
|
23096
23094
|
maxlength="${e ?? g}"
|
|
23097
23095
|
?disabled="${this.disabled}"
|
|
@@ -23105,84 +23103,84 @@ let P = class extends v {
|
|
|
23105
23103
|
`;
|
|
23106
23104
|
}
|
|
23107
23105
|
};
|
|
23108
|
-
|
|
23109
|
-
|
|
23110
|
-
|
|
23111
|
-
|
|
23112
|
-
|
|
23113
|
-
|
|
23114
|
-
|
|
23115
|
-
|
|
23116
|
-
|
|
23106
|
+
N._ROOT = "username-field";
|
|
23107
|
+
N._CONTENT = "content";
|
|
23108
|
+
N._LABEL = "label";
|
|
23109
|
+
N._MARK = "mark";
|
|
23110
|
+
N._DESCRIPTION = "description";
|
|
23111
|
+
N._INPUT = "input";
|
|
23112
|
+
N._ERROR = "error";
|
|
23113
|
+
N.TAG = `sb-${N._ROOT}`;
|
|
23114
|
+
N._PATTERN = /^[a-z0-9_]*$/;
|
|
23117
23115
|
pt([
|
|
23118
23116
|
a({ type: String })
|
|
23119
|
-
],
|
|
23117
|
+
], N.prototype, "seed", 2);
|
|
23120
23118
|
pt([
|
|
23121
23119
|
a({ attribute: "child-id", type: String })
|
|
23122
|
-
],
|
|
23120
|
+
], N.prototype, "childId", 2);
|
|
23123
23121
|
pt([
|
|
23124
23122
|
a({ attribute: "field-id", type: String })
|
|
23125
|
-
],
|
|
23123
|
+
], N.prototype, "fieldId", 2);
|
|
23126
23124
|
pt([
|
|
23127
23125
|
a({ type: String })
|
|
23128
|
-
],
|
|
23126
|
+
], N.prototype, "name", 2);
|
|
23129
23127
|
pt([
|
|
23130
23128
|
a({ type: String })
|
|
23131
|
-
],
|
|
23129
|
+
], N.prototype, "content", 2);
|
|
23132
23130
|
pt([
|
|
23133
23131
|
a({ type: String })
|
|
23134
|
-
],
|
|
23132
|
+
], N.prototype, "label", 2);
|
|
23135
23133
|
pt([
|
|
23136
23134
|
a({ type: String })
|
|
23137
|
-
],
|
|
23135
|
+
], N.prototype, "placeholder", 2);
|
|
23138
23136
|
pt([
|
|
23139
23137
|
a({ type: String })
|
|
23140
|
-
],
|
|
23138
|
+
], N.prototype, "description", 2);
|
|
23141
23139
|
pt([
|
|
23142
23140
|
a({ type: String })
|
|
23143
|
-
],
|
|
23141
|
+
], N.prototype, "mark", 2);
|
|
23144
23142
|
pt([
|
|
23145
23143
|
a({ type: Boolean })
|
|
23146
|
-
],
|
|
23144
|
+
], N.prototype, "caret", 2);
|
|
23147
23145
|
pt([
|
|
23148
23146
|
a({ type: Boolean })
|
|
23149
|
-
],
|
|
23147
|
+
], N.prototype, "disabled", 2);
|
|
23150
23148
|
pt([
|
|
23151
23149
|
a({ type: Boolean })
|
|
23152
|
-
],
|
|
23150
|
+
], N.prototype, "required", 2);
|
|
23153
23151
|
pt([
|
|
23154
23152
|
a({ type: Number })
|
|
23155
|
-
],
|
|
23153
|
+
], N.prototype, "minlength", 2);
|
|
23156
23154
|
pt([
|
|
23157
23155
|
a({ type: Number })
|
|
23158
|
-
],
|
|
23156
|
+
], N.prototype, "maxlength", 2);
|
|
23159
23157
|
pt([
|
|
23160
23158
|
a({ type: String })
|
|
23161
|
-
],
|
|
23159
|
+
], N.prototype, "pattern", 2);
|
|
23162
23160
|
pt([
|
|
23163
23161
|
a({ attribute: "required-error", type: String })
|
|
23164
|
-
],
|
|
23162
|
+
], N.prototype, "requiredError", 2);
|
|
23165
23163
|
pt([
|
|
23166
23164
|
a({ attribute: "minlength-error", type: String })
|
|
23167
|
-
],
|
|
23165
|
+
], N.prototype, "minlengthError", 2);
|
|
23168
23166
|
pt([
|
|
23169
23167
|
a({ attribute: "maxlength-error", type: String })
|
|
23170
|
-
],
|
|
23168
|
+
], N.prototype, "maxlengthError", 2);
|
|
23171
23169
|
pt([
|
|
23172
23170
|
a({ attribute: "format-error", type: String })
|
|
23173
|
-
],
|
|
23171
|
+
], N.prototype, "formatError", 2);
|
|
23174
23172
|
pt([
|
|
23175
23173
|
x()
|
|
23176
|
-
],
|
|
23174
|
+
], N.prototype, "_invalid", 2);
|
|
23177
23175
|
pt([
|
|
23178
23176
|
x()
|
|
23179
|
-
],
|
|
23177
|
+
], N.prototype, "_error", 2);
|
|
23180
23178
|
pt([
|
|
23181
23179
|
x()
|
|
23182
|
-
],
|
|
23183
|
-
|
|
23180
|
+
], N.prototype, "_value", 2);
|
|
23181
|
+
N = pt([
|
|
23184
23182
|
u("sb-username-field")
|
|
23185
|
-
],
|
|
23183
|
+
], N);
|
|
23186
23184
|
var Tm = Object.defineProperty, Lm = Object.getOwnPropertyDescriptor, ve = (t, e, r, i) => {
|
|
23187
23185
|
for (var s = i > 1 ? void 0 : i ? Lm(e, r) : e, o = t.length - 1, n; o >= 0; o--)
|
|
23188
23186
|
(n = t[o]) && (s = (i ? n(e, r, s) : n(s)) || s);
|
|
@@ -23321,8 +23319,9 @@ at = ve([
|
|
|
23321
23319
|
const ph = [
|
|
23322
23320
|
D,
|
|
23323
23321
|
U,
|
|
23324
|
-
|
|
23322
|
+
N,
|
|
23325
23323
|
M,
|
|
23324
|
+
P,
|
|
23326
23325
|
A,
|
|
23327
23326
|
j
|
|
23328
23327
|
], Pm = ph.map((t) => t.TAG).join(", "), uc = ph.map((t) => t.validateEventName);
|
|
@@ -27157,7 +27156,7 @@ export {
|
|
|
27157
27156
|
or as SbLocationInfo,
|
|
27158
27157
|
rs as SbLogo,
|
|
27159
27158
|
ts as SbLogoRenderer,
|
|
27160
|
-
|
|
27159
|
+
P as SbNameField,
|
|
27161
27160
|
be as SbOtp,
|
|
27162
27161
|
ao as SbOtpRenderer,
|
|
27163
27162
|
ct as SbPasskeyButton,
|
|
@@ -27176,7 +27175,7 @@ export {
|
|
|
27176
27175
|
yo as SbTitle,
|
|
27177
27176
|
nr as SbUrlsInfo,
|
|
27178
27177
|
we as SbUserProfile,
|
|
27179
|
-
|
|
27178
|
+
N as SbUsernameField,
|
|
27180
27179
|
qt as SbWatermark,
|
|
27181
27180
|
go as SbWatermarkRenderer,
|
|
27182
27181
|
ia as SignedIn,
|