@aurodesignsystem-dev/auro-formkit 0.0.0-pr652.0 → 0.0.0-pr652.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/components/combobox/demo/api.min.js +33 -126
- package/components/combobox/demo/index.min.js +33 -126
- package/components/combobox/dist/index.js +33 -126
- package/components/combobox/dist/registered.js +33 -126
- package/components/datepicker/demo/api.min.js +33 -126
- package/components/datepicker/demo/index.min.js +33 -126
- package/components/datepicker/dist/index.js +33 -126
- package/components/datepicker/dist/registered.js +33 -126
- package/components/input/README.md +1 -1
- package/components/input/demo/api.md +6 -6
- package/components/input/demo/api.min.js +33 -126
- package/components/input/demo/index.md +4 -4
- package/components/input/demo/index.min.js +33 -126
- package/components/input/demo/readme.md +1 -1
- package/components/input/dist/auro-input.d.ts +2 -1
- package/components/input/dist/index.js +33 -126
- package/components/input/dist/registered.js +33 -126
- package/components/input/dist/styles/classic/color-css.d.ts +2 -0
- package/components/input/dist/styles/classic/style-css.d.ts +2 -0
- package/package.json +1 -1
|
@@ -5115,7 +5115,7 @@ var dropdownVersion = '3.0.0';
|
|
|
5115
5115
|
*/
|
|
5116
5116
|
const u=(e,s,t)=>{const r=new Map;for(let l=s;l<=t;l++)r.set(e[l],l);return r},c=e$1(class extends i{constructor(e){if(super(e),e.type!==t$1.CHILD)throw Error("repeat() can only be used in text expressions")}dt(e,s,t){let r;void 0===t?t=s:void 0!==s&&(r=s);const l=[],o=[];let i=0;for(const s of e)l[i]=r?r(s,i):i,o[i]=t(s,i),i++;return {values:o,keys:l}}render(e,s,t){return this.dt(e,s,t).values}update(s,[t,r$1,c]){const d=p(s),{values:p$1,keys:a}=this.dt(t,r$1,c);if(!Array.isArray(d))return this.ut=a,p$1;const h=this.ut??=[],v$1=[];let m$1,y,x=0,j=d.length-1,k=0,w=p$1.length-1;for(;x<=j&&k<=w;)if(null===d[x])x++;else if(null===d[j])j--;else if(h[x]===a[k])v$1[k]=v(d[x],p$1[k]),x++,k++;else if(h[j]===a[w])v$1[w]=v(d[j],p$1[w]),j--,w--;else if(h[x]===a[w])v$1[w]=v(d[x],p$1[w]),r(s,v$1[w+1],d[x]),x++,w--;else if(h[j]===a[k])v$1[k]=v(d[j],p$1[k]),r(s,d[x],d[j]),j--,k++;else if(void 0===m$1&&(m$1=u(a,k,w),y=u(h,x,j)),m$1.has(h[x]))if(m$1.has(h[j])){const e=y.get(a[k]),t=void 0!==e?d[e]:null;if(null===t){const e=r(s,d[x]);v(e,p$1[k]),v$1[k]=e;}else v$1[k]=v(t,p$1[k]),r(s,d[x],t),d[e]=null;k++;}else M(d[j]),j--;else M(d[x]),x++;for(;k<=w;){const e=r(s,v$1[w+1]);v(e,p$1[k]),v$1[k++]=e;}for(;x<=j;){const e=d[x++];null!==e&&M(e);}return this.ut=a,m(s,v$1),T}});
|
|
5117
5117
|
|
|
5118
|
-
var shapeSizeCss = i$5`.shape-snowflake-xl,.shape-snowflake-lg,.shape-snowflake-md,.shape-snowflake-sm,.shape-snowflake-xs{min-height:56px;max-height:56px;border-style:solid;border-width:2px;border-color:transparent;border-radius:30px}.shape-snowflake-xl.simple,.shape-snowflake-lg.simple,.shape-snowflake-md.simple,.shape-snowflake-sm.simple,.shape-snowflake-xs.simple{border-width:
|
|
5118
|
+
var shapeSizeCss = i$5`.shape-snowflake-xl,.shape-snowflake-lg,.shape-snowflake-md,.shape-snowflake-sm,.shape-snowflake-xs{min-height:56px;max-height:56px;border-style:solid;border-width:2px;border-color:transparent;border-radius:30px}.shape-snowflake-xl.simple,.shape-snowflake-lg.simple,.shape-snowflake-md.simple,.shape-snowflake-sm.simple,.shape-snowflake-xs.simple{border-width:0px;min-height:60px;max-height:60px;background-color:unset}.shape-snowflake-xl.thin,.shape-snowflake-lg.thin,.shape-snowflake-md.thin,.shape-snowflake-sm.thin,.shape-snowflake-xs.thin{border-width:1px;min-height:58px;max-height:58px;background-color:unset}.shape-box-xl{min-height:68px;max-height:68px;border-style:solid;border-width:2px;border-color:transparent}.shape-box-xl.simple{border-width:0px;min-height:72px;max-height:72px;background-color:unset}.shape-box-xl.thin{border-width:1px;min-height:70px;max-height:70px;background-color:unset}.shape-rounded-lg{min-height:56px;max-height:56px;border-style:solid;border-width:2px;border-color:transparent;border-radius:6px}.shape-rounded-lg.simple{border-width:0px;min-height:56px;max-height:56px;background-color:unset}.shape-rounded-lg.thin{border-width:1px;min-height:54px;max-height:54px;background-color:unset}.shape-pill-xl{min-height:72px;max-height:72px;border-style:solid;border-width:2px;border-color:transparent;border-radius:36px}.shape-pill-xl.simple{border-width:0px;min-height:72px;max-height:72px;background-color:unset}.shape-pill-xl.thin{border-width:1px;min-height:70px;max-height:70px;background-color:unset}.shape-pill-left-xl{min-height:72px;max-height:72px;border-style:solid;border-width:2px;border-color:transparent;border-radius:36px 0 0 36px}.shape-pill-left-xl.simple{border-width:0px;min-height:72px;max-height:72px;background-color:unset}.shape-pill-left-xl.thin{border-width:1px;min-height:70px;max-height:70px;background-color:unset}.shape-pill-right-xl{min-height:72px;max-height:72px;border-style:solid;border-width:2px;border-color:transparent;border-radius:0 36px 36px 0}.shape-pill-right-xl.simple{border-width:0px;min-height:72px;max-height:72px;background-color:unset}.shape-pill-right-xl.thin{border-width:1px;min-height:70px;max-height:70px;background-color:unset}.shape-pill-md{min-height:72px;max-height:72px;border-style:solid;border-width:2px;border-color:transparent;border-radius:36px}.shape-pill-md.simple{border-width:0px;min-height:48px;max-height:48px;background-color:unset}.shape-pill-md.thin{border-width:1px;min-height:46px;max-height:46px;background-color:unset}.shape-pill-left-md{min-height:72px;max-height:72px;border-style:solid;border-width:2px;border-color:transparent;border-radius:36px 0 0 36px}.shape-pill-left-md.simple{border-width:0px;min-height:48px;max-height:48px;background-color:unset}.shape-pill-left-md.thin{border-width:1px;min-height:46px;max-height:46px;background-color:unset}.shape-pill-right-md{min-height:72px;max-height:72px;border-style:solid;border-width:2px;border-color:transparent;border-radius:0 36px 36px 0}.shape-pill-right-md.simple{border-width:0px;min-height:48px;max-height:48px;background-color:unset}.shape-pill-right-md.thin{border-width:1px;min-height:46px;max-height:46px;background-color:unset}`;
|
|
5119
5119
|
|
|
5120
5120
|
var styleCss$4$1 = i$5`.util_displayInline{display:inline}.util_displayInlineBlock{display:inline-block}.util_displayBlock{display:block}.util_displayFlex{display:flex}.util_displayHidden{display:none}.util_displayHiddenVisually{position:absolute;overflow:hidden;clip:rect(1px, 1px, 1px, 1px);width:1px;height:1px;padding:0;border:0}`;
|
|
5121
5121
|
|
|
@@ -5125,6 +5125,10 @@ var colorBaseCss = i$5`.wrapper{border-color:var(--ds-auro-input-border-color);b
|
|
|
5125
5125
|
|
|
5126
5126
|
var tokensCss$4 = i$5`:host(:not(ondark)){--ds-auro-input-border-color: var(--ds-basic-color-border-bold, #585e67);--ds-auro-input-background-color: var(--ds-basic-color-surface-default, #ffffff);--ds-auro-input-container-color: var(--ds-basic-color-surface-default, #ffffff);--ds-auro-input-caret-color: var(--ds-advanced-color-state-focused, #01426a);--ds-auro-input-label-text-color: var(--ds-basic-color-texticon-muted, #676767);--ds-auro-input-placeholder-text-color: var(--ds-basic-color-texticon-default, #2a2a2a);--ds-auro-input-text-color: var(--ds-basic-color-texticon-default, #2a2a2a);--ds-auro-input-error-icon-color: var(--ds-basic-color-status-error, #e31f26)}:host([ondark]){--ds-auro-input-border-color: var(--ds-basic-color-border-inverse, #ffffff);--ds-auro-input-background-color: var(--ds-advanced-color-shared-background-inverse, rgba(255, 255, 255, 0.15));--ds-auro-input-container-color: var(--ds-advanced-color-shared-background-inverse, rgba(255, 255, 255, 0.15));--ds-auro-input-caret-color: var(--ds-advanced-color-state-focused-inverse, #ffffff);--ds-auro-input-label-text-color: var(--ds-basic-color-texticon-inverse, #ffffff);--ds-auro-input-placeholder-text-color: var(--ds-basic-color-texticon-inverse, #ffffff);--ds-auro-input-text-color: var(--ds-basic-color-texticon-inverse, #ffffff);--ds-auro-input-error-icon-color: var(--ds-advanced-color-state-error-inverse, #f9a4a8)}`;
|
|
5127
5127
|
|
|
5128
|
+
var classicStyleCss = i$5`.layout-classic{display:flex;flex-direction:row}.layout-classic .mainContent{position:relative;display:flex;flex-direction:column;justify-content:center;flex:1;cursor:text}.layout-classic .mainContent label{cursor:text;padding-top:4px;font-size:var(--ds-text-body-size-xs);line-height:20px;transition:all .3s cubic-bezier(0.215, 0.61, 0.355, 1)}.layout-classic .mainContent input{font-size:var(--ds-basic-text-body-default-font-size, 16px);line-height:var(--ds-basic-text-body-default-line-height, 24px);padding-bottom:8px;transition:all .3s cubic-bezier(0.215, 0.61, 0.355, 1);height:auto}.layout-classic .mainContent:has(input.util_displayHiddenVisually) label{justify-self:flex-start;padding-top:0;font-size:var(--ds-text-body-size-default, 1rem);line-height:var(--ds-text-body-size-default)}.layout-classic .mainContent:has(input.util_displayHiddenVisually) input{height:0;line-height:0;padding-bottom:0}.layout-classic .displayValue{position:absolute;top:0;right:0;bottom:0;left:0;display:none}.layout-classic .displayValue.hasContent:is(.withValue):not(.hasFocus){display:block}.layout-classic .accents{display:flex;flex-direction:row;justify-content:center;align-items:center}.layout-classic.withValue{justify-content:flex-start}.layout-classic:focus-within{box-shadow:inset 0 0 0 1px var(--ds-auro-input-border-color);justify-content:flex-start}.layout-classic:focus-within .alertNotification{display:none}.layout-classic .accents.left{padding-left:8px}.layout-classic .accents.right{padding-right:8px}`;
|
|
5129
|
+
|
|
5130
|
+
var classicColorCss = i$5`.layout-default label{color:var(--ds-auro-input-label-text-color)}`;
|
|
5131
|
+
|
|
5128
5132
|
var emphasizedStyleCss$2 = i$5`:host{display:block}.wrapper{cursor:text}.helpTextClasses{cursor:default}input{background:unset;width:100%;padding:0;border:0;outline:none;overflow:hidden;text-overflow:ellipsis}:host([layout*=emphasized][shape*=pill]:not([layout*=right])) .leftIndent{margin-left:24px;width:calc(100% - 24px)}:host([layout*=emphasized][shape*=pill]:not([layout*=left])) .rightIndent{margin-right:24px;width:calc(100% - 24px)}:host([layout*=emphasized][shape*=pill]:not([layout*=left]):not([layout*=right])) .rightIndent{margin-right:24px;width:calc(100% - 48px)}.layout-emphasized,.layout-emphasized-left,.layout-emphasized-right{display:flex;flex-direction:row;align-items:center;justify-content:center}.layout-emphasized label,.layout-emphasized-left label,.layout-emphasized-right label{text-transform:uppercase;font-size:32px;line-height:38px}.layout-emphasized input,.layout-emphasized-left input,.layout-emphasized-right input{text-align:center;font-size:14px;line-height:20px}.layout-emphasized .mainContent,.layout-emphasized-left .mainContent,.layout-emphasized-right .mainContent{position:relative;display:flex;flex-direction:column;justify-content:center;align-items:center;flex:1}.layout-emphasized .displayValue,.layout-emphasized-left .displayValue,.layout-emphasized-right .displayValue{position:absolute;top:0;right:0;bottom:0;left:0;display:none}.layout-emphasized .displayValue.hasContent:is(.withValue):not(.hasFocus),.layout-emphasized-left .displayValue.hasContent:is(.withValue):not(.hasFocus),.layout-emphasized-right .displayValue.hasContent:is(.withValue):not(.hasFocus){display:block}.layout-emphasized .displayValueWrapper,.layout-emphasized-left .displayValueWrapper,.layout-emphasized-right .displayValueWrapper{transform:translateY(-50%)}.layout-emphasized .accents,.layout-emphasized-left .accents,.layout-emphasized-right .accents{display:flex;flex-direction:row;justify-content:center;align-items:center}.layout-emphasized.withValue,.layout-emphasized-left.withValue,.layout-emphasized-right.withValue{justify-content:flex-start}.layout-emphasized.withValue label,.layout-emphasized-left.withValue label,.layout-emphasized-right.withValue label{display:block;text-transform:unset;font-size:10px;line-height:14px;width:100%;text-align:left}.layout-emphasized.withValue input,.layout-emphasized-left.withValue input,.layout-emphasized-right.withValue input{text-transform:uppercase;font-size:32px;line-height:38px;text-align:left;width:100%}.layout-emphasized:not(:focus-within):not(:is([validity]:not([validity=valid]))),.layout-emphasized-left:not(:focus-within):not(:is([validity]:not([validity=valid]))),.layout-emphasized-right:not(:focus-within):not(:is([validity]:not([validity=valid]))){--ds-auro-input-border-color: transparent}.layout-emphasized:focus-within,.layout-emphasized-left:focus-within,.layout-emphasized-right:focus-within{justify-content:flex-start}.layout-emphasized:focus-within label,.layout-emphasized-left:focus-within label,.layout-emphasized-right:focus-within label{display:block;text-transform:unset;font-size:10px;line-height:14px;width:100%;text-align:left}.layout-emphasized:focus-within input,.layout-emphasized-left:focus-within input,.layout-emphasized-right:focus-within input{text-transform:uppercase;font-size:32px;line-height:38px;text-align:left;width:100%}.layout-emphasized:focus-within .alertNotification,.layout-emphasized-left:focus-within .alertNotification,.layout-emphasized-right:focus-within .alertNotification{display:none}.layout-emphasized .accents.left,.layout-emphasized-left .accents.left,.layout-emphasized-right .accents.left{padding-left:24px}.layout-emphasized .accents.right,.layout-emphasized-left .accents.right,.layout-emphasized-right .accents.right{padding-right:24px}.layout-emphasized-left .alertNotification{margin-right:8px}.layout-emphasized-left .clear{margin-left:8px}.layout-emphasized-right .alertNotification{margin-left:8px}.layout-emphasized-right .clear{margin-right:8px}`;
|
|
5129
5133
|
|
|
5130
5134
|
var emphasizedColorCss$1 = i$5`.layout-emphasized:focus-within,.layout-emphasized.withValue,.layout-emphasized-left:focus-within,.layout-emphasized-left.withValue,.layout-emphasized-right:focus-within,.layout-emphasized-right.withValue{--ds-auro-input-label-text-color: var(--ds-basic-color-texticon-inverse-muted, #ccd2db)}.layout-emphasized:focus-within,.layout-emphasized-left:focus-within,.layout-emphasized-right:focus-within{--auro-input-border-color: var(--ds-auro-input-border-color)}`;
|
|
@@ -10069,9 +10073,9 @@ class BaseInput extends AuroElement$1$1 {
|
|
|
10069
10073
|
this.required = false;
|
|
10070
10074
|
this.setCustomValidityForType = undefined;
|
|
10071
10075
|
|
|
10072
|
-
this.layout = '
|
|
10076
|
+
this.layout = 'classic';
|
|
10073
10077
|
this.shape = 'rounded';
|
|
10074
|
-
this.size = '
|
|
10078
|
+
this.size = 'lg';
|
|
10075
10079
|
}
|
|
10076
10080
|
|
|
10077
10081
|
/**
|
|
@@ -12201,6 +12205,8 @@ class AuroInput extends BaseInput {
|
|
|
12201
12205
|
i$5`${styleCss$4$1}`,
|
|
12202
12206
|
i$5`${styleDefaultCss}`,
|
|
12203
12207
|
i$5`${tokensCss$4}`,
|
|
12208
|
+
i$5`${classicStyleCss}`,
|
|
12209
|
+
i$5`${classicColorCss}`,
|
|
12204
12210
|
i$5`${emphasizedStyleCss$2}`,
|
|
12205
12211
|
i$5`${emphasizedColorCss$1}`,
|
|
12206
12212
|
i$5`${snowflakeStyleCss}`
|
|
@@ -12311,14 +12317,19 @@ class AuroInput extends BaseInput {
|
|
|
12311
12317
|
/**
|
|
12312
12318
|
* Returns HTML for the HTML5 input element.
|
|
12313
12319
|
* @private
|
|
12320
|
+
* @param {boolean} [hideInputWhenBlurred=false] - If true, the input will be visually hidden when not focused and has no value.
|
|
12314
12321
|
* @returns {html} - Returns HTML for the HTML5 input element.
|
|
12315
12322
|
*/
|
|
12316
|
-
renderHtmlInput() {
|
|
12323
|
+
renderHtmlInput(hideInputWhenBlurred = false) {
|
|
12317
12324
|
const displayValueClasses = {
|
|
12318
12325
|
'displayValue': true,
|
|
12319
12326
|
'hasContent': this.hasDisplayValueContent,
|
|
12320
12327
|
'hasFocus': this.hasFocus,
|
|
12321
|
-
'withValue': this.value && this.value.length > 0
|
|
12328
|
+
'withValue': this.value && this.value.length > 0,
|
|
12329
|
+
};
|
|
12330
|
+
|
|
12331
|
+
const inputClasses = {
|
|
12332
|
+
'util_displayHiddenVisually': hideInputWhenBlurred && !this.hasFocus && !this.value
|
|
12322
12333
|
};
|
|
12323
12334
|
|
|
12324
12335
|
return u$2`
|
|
@@ -12341,6 +12352,7 @@ class AuroInput extends BaseInput {
|
|
|
12341
12352
|
autocapitalize="${o(this.autocapitalize ? this.autocapitalize : undefined)}"
|
|
12342
12353
|
autocomplete="${o(this.autocomplete ? this.autocomplete : undefined)}"
|
|
12343
12354
|
autocorrect="${o(this.autocorrect ? this.autocorrect : undefined)}"
|
|
12355
|
+
class="${e(inputClasses)}"
|
|
12344
12356
|
id="${this.inputId}"
|
|
12345
12357
|
inputMode="${o(this.inputMode ? this.inputMode : undefined)}"
|
|
12346
12358
|
lang="${o(this.lang)}"
|
|
@@ -12486,137 +12498,32 @@ class AuroInput extends BaseInput {
|
|
|
12486
12498
|
/**
|
|
12487
12499
|
* Returns HTML for the default layout.
|
|
12488
12500
|
* @private
|
|
12489
|
-
* @returns {
|
|
12501
|
+
* @returns {import("lit").TemplateResult} - Returns HTML for the default layout.
|
|
12490
12502
|
*/
|
|
12491
12503
|
renderLayoutClassic() {
|
|
12492
|
-
const wrapperClasses = {
|
|
12493
|
-
'layoutDefault': true
|
|
12494
|
-
};
|
|
12495
|
-
|
|
12496
|
-
// is-disabled class - THIS IS ONLY HERE TO MAKE A TEST PASS AS FAR AS I CAN TELL
|
|
12497
|
-
const labelClasses = {
|
|
12498
|
-
'is-disabled': this.disabled,
|
|
12499
|
-
'withIcon': this.hasTypeIcon(),
|
|
12500
|
-
'withValue': this.value && this.value.length > 0
|
|
12501
|
-
};
|
|
12502
|
-
|
|
12503
12504
|
return u$2`
|
|
12504
|
-
<div
|
|
12505
|
-
|
|
12506
|
-
|
|
12507
|
-
|
|
12508
|
-
|
|
12509
|
-
|
|
12510
|
-
This should be cleaned up when auro-icon issue #31 is resolved. -->
|
|
12511
|
-
${this.inputIconName
|
|
12512
|
-
? c([this.inputIconName], (val) => val, (name) => u$2`
|
|
12513
|
-
<${this.iconTag}
|
|
12514
|
-
class="accentIcon"
|
|
12515
|
-
category="payment"
|
|
12516
|
-
name="${name}"
|
|
12517
|
-
part="accentIcon"
|
|
12518
|
-
?onDark="${this.onDark}"
|
|
12519
|
-
variant="${this.disabled ? 'disabled' : 'muted'}">
|
|
12520
|
-
</${this.iconTag}>
|
|
12521
|
-
`) : undefined
|
|
12522
|
-
}
|
|
12523
|
-
|
|
12524
|
-
${this.type === 'date'
|
|
12525
|
-
? u$2`
|
|
12526
|
-
<${this.iconTag}
|
|
12527
|
-
class="accentIcon"
|
|
12528
|
-
category="interface"
|
|
12529
|
-
name="calendar"
|
|
12530
|
-
part="accentIcon"
|
|
12531
|
-
?onDark="${this.onDark}"
|
|
12532
|
-
variant="${this.disabled ? 'disabled' : 'muted'}">
|
|
12533
|
-
</${this.iconTag}>`
|
|
12534
|
-
: undefined
|
|
12535
|
-
}
|
|
12536
|
-
</div>
|
|
12537
|
-
<label for=${this.id} class="${e(labelClasses)}" part="label">
|
|
12538
|
-
<slot name="label">
|
|
12539
|
-
${this.label}
|
|
12540
|
-
</slot>
|
|
12541
|
-
${this.required ? '' : ` (${i18n(this.lang, 'optional')})`}
|
|
12542
|
-
</label>
|
|
12543
|
-
|
|
12544
|
-
${this.renderHtmlInput()}
|
|
12505
|
+
<div
|
|
12506
|
+
@click="${this.handleClick}"
|
|
12507
|
+
class="${e(this.commonWrapperClasses)} thin"
|
|
12508
|
+
part="wrapper">
|
|
12509
|
+
<div class="accents left">
|
|
12510
|
+
${this.renderHtmlTypeIcon()}
|
|
12545
12511
|
</div>
|
|
12546
|
-
<div
|
|
12547
|
-
|
|
12548
|
-
|
|
12549
|
-
|
|
12550
|
-
${this.
|
|
12551
|
-
<div class="notification alertNotification">
|
|
12552
|
-
<${this.iconTag}
|
|
12553
|
-
category="alert"
|
|
12554
|
-
customColor
|
|
12555
|
-
name="error-stroke"
|
|
12556
|
-
</${this.iconTag}>
|
|
12557
|
-
</div>
|
|
12558
|
-
` : undefined}
|
|
12512
|
+
<div class="mainContent">
|
|
12513
|
+
${this.renderHtmlInput(true)}
|
|
12514
|
+
</div>
|
|
12515
|
+
<div class="accents right">
|
|
12516
|
+
${this.renderValidationErrorIconHtml()}
|
|
12559
12517
|
${this.hasValue ? u$2`
|
|
12560
|
-
${this.type === 'password' ? u$2`
|
|
12561
|
-
<div class="notification">
|
|
12562
|
-
<${this.buttonTag}
|
|
12563
|
-
@click="${this.handleClickShowPassword}"
|
|
12564
|
-
?onDark="${this.onDark}"
|
|
12565
|
-
aria-hidden="true"
|
|
12566
|
-
class="notificationBtn passwordBtn"
|
|
12567
|
-
tabindex="-1"
|
|
12568
|
-
variant="flat">
|
|
12569
|
-
<${this.iconTag}
|
|
12570
|
-
?hidden=${!this.showPassword}
|
|
12571
|
-
category="interface"
|
|
12572
|
-
customColor
|
|
12573
|
-
name="hide-password-stroke">
|
|
12574
|
-
</${this.iconTag}>
|
|
12575
|
-
<${this.iconTag}
|
|
12576
|
-
?hidden=${this.showPassword}
|
|
12577
|
-
category="interface"
|
|
12578
|
-
customColor
|
|
12579
|
-
name="view-password-stroke">
|
|
12580
|
-
</${this.iconTag}>
|
|
12581
|
-
</${this.buttonTag}>
|
|
12582
|
-
</div>
|
|
12583
|
-
` : undefined}
|
|
12584
12518
|
${!this.disabled && !this.readonly ? u$2`
|
|
12585
|
-
|
|
12586
|
-
<${this.buttonTag}
|
|
12587
|
-
@click="${this.handleClickClear}"
|
|
12588
|
-
?onDark="${this.onDark}"
|
|
12589
|
-
arialabel="${i18n(this.lang, 'clearInput')}"
|
|
12590
|
-
class="notificationBtn clearBtn"
|
|
12591
|
-
variant="flat">
|
|
12592
|
-
<${this.iconTag}
|
|
12593
|
-
category="interface"
|
|
12594
|
-
customColor
|
|
12595
|
-
name="x-lg">
|
|
12596
|
-
</${this.iconTag}>
|
|
12597
|
-
</${this.buttonTag}>
|
|
12598
|
-
</div>
|
|
12519
|
+
${this.renderHtmlActionClear()}
|
|
12599
12520
|
` : undefined}
|
|
12600
12521
|
` : undefined}
|
|
12601
12522
|
</div>
|
|
12602
12523
|
</div>
|
|
12603
|
-
|
|
12604
|
-
|
|
12605
|
-
|
|
12606
|
-
<${this.helpTextTag} ?onDark="${this.onDark}">
|
|
12607
|
-
<p id="${this.uniqueId}" part="helpText">
|
|
12608
|
-
<slot name="helptext">${this.getHelpText()}</slot>
|
|
12609
|
-
</p>
|
|
12610
|
-
</${this.helpTextTag}>
|
|
12611
|
-
`
|
|
12612
|
-
: u$2`
|
|
12613
|
-
<${this.helpTextTag} error ?onDark="${this.onDark}">
|
|
12614
|
-
<p id="${this.uniqueId}" role="alert" aria-live="assertive" part="helpText">
|
|
12615
|
-
${this.errorMessage}
|
|
12616
|
-
</p>
|
|
12617
|
-
</${this.helpTextTag}>
|
|
12618
|
-
`
|
|
12619
|
-
}
|
|
12524
|
+
<div class="helpTextWrapper leftIndent rightIndent" part="inputHelpText">
|
|
12525
|
+
${this.renderHtmlHelpText()}
|
|
12526
|
+
</div>
|
|
12620
12527
|
`;
|
|
12621
12528
|
}
|
|
12622
12529
|
|
|
@@ -4973,7 +4973,7 @@ var dropdownVersion = '3.0.0';
|
|
|
4973
4973
|
*/
|
|
4974
4974
|
const u=(e,s,t)=>{const r=new Map;for(let l=s;l<=t;l++)r.set(e[l],l);return r},c=e$1(class extends i{constructor(e){if(super(e),e.type!==t$1.CHILD)throw Error("repeat() can only be used in text expressions")}dt(e,s,t){let r;void 0===t?t=s:void 0!==s&&(r=s);const l=[],o=[];let i=0;for(const s of e)l[i]=r?r(s,i):i,o[i]=t(s,i),i++;return {values:o,keys:l}}render(e,s,t){return this.dt(e,s,t).values}update(s,[t,r$1,c]){const d=p(s),{values:p$1,keys:a}=this.dt(t,r$1,c);if(!Array.isArray(d))return this.ut=a,p$1;const h=this.ut??=[],v$1=[];let m$1,y,x=0,j=d.length-1,k=0,w=p$1.length-1;for(;x<=j&&k<=w;)if(null===d[x])x++;else if(null===d[j])j--;else if(h[x]===a[k])v$1[k]=v(d[x],p$1[k]),x++,k++;else if(h[j]===a[w])v$1[w]=v(d[j],p$1[w]),j--,w--;else if(h[x]===a[w])v$1[w]=v(d[x],p$1[w]),r(s,v$1[w+1],d[x]),x++,w--;else if(h[j]===a[k])v$1[k]=v(d[j],p$1[k]),r(s,d[x],d[j]),j--,k++;else if(void 0===m$1&&(m$1=u(a,k,w),y=u(h,x,j)),m$1.has(h[x]))if(m$1.has(h[j])){const e=y.get(a[k]),t=void 0!==e?d[e]:null;if(null===t){const e=r(s,d[x]);v(e,p$1[k]),v$1[k]=e;}else v$1[k]=v(t,p$1[k]),r(s,d[x],t),d[e]=null;k++;}else M(d[j]),j--;else M(d[x]),x++;for(;k<=w;){const e=r(s,v$1[w+1]);v(e,p$1[k]),v$1[k++]=e;}for(;x<=j;){const e=d[x++];null!==e&&M(e);}return this.ut=a,m(s,v$1),T}});
|
|
4975
4975
|
|
|
4976
|
-
var shapeSizeCss = i$5`.shape-snowflake-xl,.shape-snowflake-lg,.shape-snowflake-md,.shape-snowflake-sm,.shape-snowflake-xs{min-height:56px;max-height:56px;border-style:solid;border-width:2px;border-color:transparent;border-radius:30px}.shape-snowflake-xl.simple,.shape-snowflake-lg.simple,.shape-snowflake-md.simple,.shape-snowflake-sm.simple,.shape-snowflake-xs.simple{border-width:
|
|
4976
|
+
var shapeSizeCss = i$5`.shape-snowflake-xl,.shape-snowflake-lg,.shape-snowflake-md,.shape-snowflake-sm,.shape-snowflake-xs{min-height:56px;max-height:56px;border-style:solid;border-width:2px;border-color:transparent;border-radius:30px}.shape-snowflake-xl.simple,.shape-snowflake-lg.simple,.shape-snowflake-md.simple,.shape-snowflake-sm.simple,.shape-snowflake-xs.simple{border-width:0px;min-height:60px;max-height:60px;background-color:unset}.shape-snowflake-xl.thin,.shape-snowflake-lg.thin,.shape-snowflake-md.thin,.shape-snowflake-sm.thin,.shape-snowflake-xs.thin{border-width:1px;min-height:58px;max-height:58px;background-color:unset}.shape-box-xl{min-height:68px;max-height:68px;border-style:solid;border-width:2px;border-color:transparent}.shape-box-xl.simple{border-width:0px;min-height:72px;max-height:72px;background-color:unset}.shape-box-xl.thin{border-width:1px;min-height:70px;max-height:70px;background-color:unset}.shape-rounded-lg{min-height:56px;max-height:56px;border-style:solid;border-width:2px;border-color:transparent;border-radius:6px}.shape-rounded-lg.simple{border-width:0px;min-height:56px;max-height:56px;background-color:unset}.shape-rounded-lg.thin{border-width:1px;min-height:54px;max-height:54px;background-color:unset}.shape-pill-xl{min-height:72px;max-height:72px;border-style:solid;border-width:2px;border-color:transparent;border-radius:36px}.shape-pill-xl.simple{border-width:0px;min-height:72px;max-height:72px;background-color:unset}.shape-pill-xl.thin{border-width:1px;min-height:70px;max-height:70px;background-color:unset}.shape-pill-left-xl{min-height:72px;max-height:72px;border-style:solid;border-width:2px;border-color:transparent;border-radius:36px 0 0 36px}.shape-pill-left-xl.simple{border-width:0px;min-height:72px;max-height:72px;background-color:unset}.shape-pill-left-xl.thin{border-width:1px;min-height:70px;max-height:70px;background-color:unset}.shape-pill-right-xl{min-height:72px;max-height:72px;border-style:solid;border-width:2px;border-color:transparent;border-radius:0 36px 36px 0}.shape-pill-right-xl.simple{border-width:0px;min-height:72px;max-height:72px;background-color:unset}.shape-pill-right-xl.thin{border-width:1px;min-height:70px;max-height:70px;background-color:unset}.shape-pill-md{min-height:72px;max-height:72px;border-style:solid;border-width:2px;border-color:transparent;border-radius:36px}.shape-pill-md.simple{border-width:0px;min-height:48px;max-height:48px;background-color:unset}.shape-pill-md.thin{border-width:1px;min-height:46px;max-height:46px;background-color:unset}.shape-pill-left-md{min-height:72px;max-height:72px;border-style:solid;border-width:2px;border-color:transparent;border-radius:36px 0 0 36px}.shape-pill-left-md.simple{border-width:0px;min-height:48px;max-height:48px;background-color:unset}.shape-pill-left-md.thin{border-width:1px;min-height:46px;max-height:46px;background-color:unset}.shape-pill-right-md{min-height:72px;max-height:72px;border-style:solid;border-width:2px;border-color:transparent;border-radius:0 36px 36px 0}.shape-pill-right-md.simple{border-width:0px;min-height:48px;max-height:48px;background-color:unset}.shape-pill-right-md.thin{border-width:1px;min-height:46px;max-height:46px;background-color:unset}`;
|
|
4977
4977
|
|
|
4978
4978
|
var styleCss$4$1 = i$5`.util_displayInline{display:inline}.util_displayInlineBlock{display:inline-block}.util_displayBlock{display:block}.util_displayFlex{display:flex}.util_displayHidden{display:none}.util_displayHiddenVisually{position:absolute;overflow:hidden;clip:rect(1px, 1px, 1px, 1px);width:1px;height:1px;padding:0;border:0}`;
|
|
4979
4979
|
|
|
@@ -4983,6 +4983,10 @@ var colorBaseCss = i$5`.wrapper{border-color:var(--ds-auro-input-border-color);b
|
|
|
4983
4983
|
|
|
4984
4984
|
var tokensCss$4 = i$5`:host(:not(ondark)){--ds-auro-input-border-color: var(--ds-basic-color-border-bold, #585e67);--ds-auro-input-background-color: var(--ds-basic-color-surface-default, #ffffff);--ds-auro-input-container-color: var(--ds-basic-color-surface-default, #ffffff);--ds-auro-input-caret-color: var(--ds-advanced-color-state-focused, #01426a);--ds-auro-input-label-text-color: var(--ds-basic-color-texticon-muted, #676767);--ds-auro-input-placeholder-text-color: var(--ds-basic-color-texticon-default, #2a2a2a);--ds-auro-input-text-color: var(--ds-basic-color-texticon-default, #2a2a2a);--ds-auro-input-error-icon-color: var(--ds-basic-color-status-error, #e31f26)}:host([ondark]){--ds-auro-input-border-color: var(--ds-basic-color-border-inverse, #ffffff);--ds-auro-input-background-color: var(--ds-advanced-color-shared-background-inverse, rgba(255, 255, 255, 0.15));--ds-auro-input-container-color: var(--ds-advanced-color-shared-background-inverse, rgba(255, 255, 255, 0.15));--ds-auro-input-caret-color: var(--ds-advanced-color-state-focused-inverse, #ffffff);--ds-auro-input-label-text-color: var(--ds-basic-color-texticon-inverse, #ffffff);--ds-auro-input-placeholder-text-color: var(--ds-basic-color-texticon-inverse, #ffffff);--ds-auro-input-text-color: var(--ds-basic-color-texticon-inverse, #ffffff);--ds-auro-input-error-icon-color: var(--ds-advanced-color-state-error-inverse, #f9a4a8)}`;
|
|
4985
4985
|
|
|
4986
|
+
var classicStyleCss = i$5`.layout-classic{display:flex;flex-direction:row}.layout-classic .mainContent{position:relative;display:flex;flex-direction:column;justify-content:center;flex:1;cursor:text}.layout-classic .mainContent label{cursor:text;padding-top:4px;font-size:var(--ds-text-body-size-xs);line-height:20px;transition:all .3s cubic-bezier(0.215, 0.61, 0.355, 1)}.layout-classic .mainContent input{font-size:var(--ds-basic-text-body-default-font-size, 16px);line-height:var(--ds-basic-text-body-default-line-height, 24px);padding-bottom:8px;transition:all .3s cubic-bezier(0.215, 0.61, 0.355, 1);height:auto}.layout-classic .mainContent:has(input.util_displayHiddenVisually) label{justify-self:flex-start;padding-top:0;font-size:var(--ds-text-body-size-default, 1rem);line-height:var(--ds-text-body-size-default)}.layout-classic .mainContent:has(input.util_displayHiddenVisually) input{height:0;line-height:0;padding-bottom:0}.layout-classic .displayValue{position:absolute;top:0;right:0;bottom:0;left:0;display:none}.layout-classic .displayValue.hasContent:is(.withValue):not(.hasFocus){display:block}.layout-classic .accents{display:flex;flex-direction:row;justify-content:center;align-items:center}.layout-classic.withValue{justify-content:flex-start}.layout-classic:focus-within{box-shadow:inset 0 0 0 1px var(--ds-auro-input-border-color);justify-content:flex-start}.layout-classic:focus-within .alertNotification{display:none}.layout-classic .accents.left{padding-left:8px}.layout-classic .accents.right{padding-right:8px}`;
|
|
4987
|
+
|
|
4988
|
+
var classicColorCss = i$5`.layout-default label{color:var(--ds-auro-input-label-text-color)}`;
|
|
4989
|
+
|
|
4986
4990
|
var emphasizedStyleCss$2 = i$5`:host{display:block}.wrapper{cursor:text}.helpTextClasses{cursor:default}input{background:unset;width:100%;padding:0;border:0;outline:none;overflow:hidden;text-overflow:ellipsis}:host([layout*=emphasized][shape*=pill]:not([layout*=right])) .leftIndent{margin-left:24px;width:calc(100% - 24px)}:host([layout*=emphasized][shape*=pill]:not([layout*=left])) .rightIndent{margin-right:24px;width:calc(100% - 24px)}:host([layout*=emphasized][shape*=pill]:not([layout*=left]):not([layout*=right])) .rightIndent{margin-right:24px;width:calc(100% - 48px)}.layout-emphasized,.layout-emphasized-left,.layout-emphasized-right{display:flex;flex-direction:row;align-items:center;justify-content:center}.layout-emphasized label,.layout-emphasized-left label,.layout-emphasized-right label{text-transform:uppercase;font-size:32px;line-height:38px}.layout-emphasized input,.layout-emphasized-left input,.layout-emphasized-right input{text-align:center;font-size:14px;line-height:20px}.layout-emphasized .mainContent,.layout-emphasized-left .mainContent,.layout-emphasized-right .mainContent{position:relative;display:flex;flex-direction:column;justify-content:center;align-items:center;flex:1}.layout-emphasized .displayValue,.layout-emphasized-left .displayValue,.layout-emphasized-right .displayValue{position:absolute;top:0;right:0;bottom:0;left:0;display:none}.layout-emphasized .displayValue.hasContent:is(.withValue):not(.hasFocus),.layout-emphasized-left .displayValue.hasContent:is(.withValue):not(.hasFocus),.layout-emphasized-right .displayValue.hasContent:is(.withValue):not(.hasFocus){display:block}.layout-emphasized .displayValueWrapper,.layout-emphasized-left .displayValueWrapper,.layout-emphasized-right .displayValueWrapper{transform:translateY(-50%)}.layout-emphasized .accents,.layout-emphasized-left .accents,.layout-emphasized-right .accents{display:flex;flex-direction:row;justify-content:center;align-items:center}.layout-emphasized.withValue,.layout-emphasized-left.withValue,.layout-emphasized-right.withValue{justify-content:flex-start}.layout-emphasized.withValue label,.layout-emphasized-left.withValue label,.layout-emphasized-right.withValue label{display:block;text-transform:unset;font-size:10px;line-height:14px;width:100%;text-align:left}.layout-emphasized.withValue input,.layout-emphasized-left.withValue input,.layout-emphasized-right.withValue input{text-transform:uppercase;font-size:32px;line-height:38px;text-align:left;width:100%}.layout-emphasized:not(:focus-within):not(:is([validity]:not([validity=valid]))),.layout-emphasized-left:not(:focus-within):not(:is([validity]:not([validity=valid]))),.layout-emphasized-right:not(:focus-within):not(:is([validity]:not([validity=valid]))){--ds-auro-input-border-color: transparent}.layout-emphasized:focus-within,.layout-emphasized-left:focus-within,.layout-emphasized-right:focus-within{justify-content:flex-start}.layout-emphasized:focus-within label,.layout-emphasized-left:focus-within label,.layout-emphasized-right:focus-within label{display:block;text-transform:unset;font-size:10px;line-height:14px;width:100%;text-align:left}.layout-emphasized:focus-within input,.layout-emphasized-left:focus-within input,.layout-emphasized-right:focus-within input{text-transform:uppercase;font-size:32px;line-height:38px;text-align:left;width:100%}.layout-emphasized:focus-within .alertNotification,.layout-emphasized-left:focus-within .alertNotification,.layout-emphasized-right:focus-within .alertNotification{display:none}.layout-emphasized .accents.left,.layout-emphasized-left .accents.left,.layout-emphasized-right .accents.left{padding-left:24px}.layout-emphasized .accents.right,.layout-emphasized-left .accents.right,.layout-emphasized-right .accents.right{padding-right:24px}.layout-emphasized-left .alertNotification{margin-right:8px}.layout-emphasized-left .clear{margin-left:8px}.layout-emphasized-right .alertNotification{margin-left:8px}.layout-emphasized-right .clear{margin-right:8px}`;
|
|
4987
4991
|
|
|
4988
4992
|
var emphasizedColorCss$1 = i$5`.layout-emphasized:focus-within,.layout-emphasized.withValue,.layout-emphasized-left:focus-within,.layout-emphasized-left.withValue,.layout-emphasized-right:focus-within,.layout-emphasized-right.withValue{--ds-auro-input-label-text-color: var(--ds-basic-color-texticon-inverse-muted, #ccd2db)}.layout-emphasized:focus-within,.layout-emphasized-left:focus-within,.layout-emphasized-right:focus-within{--auro-input-border-color: var(--ds-auro-input-border-color)}`;
|
|
@@ -9927,9 +9931,9 @@ class BaseInput extends AuroElement$1$1 {
|
|
|
9927
9931
|
this.required = false;
|
|
9928
9932
|
this.setCustomValidityForType = undefined;
|
|
9929
9933
|
|
|
9930
|
-
this.layout = '
|
|
9934
|
+
this.layout = 'classic';
|
|
9931
9935
|
this.shape = 'rounded';
|
|
9932
|
-
this.size = '
|
|
9936
|
+
this.size = 'lg';
|
|
9933
9937
|
}
|
|
9934
9938
|
|
|
9935
9939
|
/**
|
|
@@ -12059,6 +12063,8 @@ class AuroInput extends BaseInput {
|
|
|
12059
12063
|
i$5`${styleCss$4$1}`,
|
|
12060
12064
|
i$5`${styleDefaultCss}`,
|
|
12061
12065
|
i$5`${tokensCss$4}`,
|
|
12066
|
+
i$5`${classicStyleCss}`,
|
|
12067
|
+
i$5`${classicColorCss}`,
|
|
12062
12068
|
i$5`${emphasizedStyleCss$2}`,
|
|
12063
12069
|
i$5`${emphasizedColorCss$1}`,
|
|
12064
12070
|
i$5`${snowflakeStyleCss}`
|
|
@@ -12169,14 +12175,19 @@ class AuroInput extends BaseInput {
|
|
|
12169
12175
|
/**
|
|
12170
12176
|
* Returns HTML for the HTML5 input element.
|
|
12171
12177
|
* @private
|
|
12178
|
+
* @param {boolean} [hideInputWhenBlurred=false] - If true, the input will be visually hidden when not focused and has no value.
|
|
12172
12179
|
* @returns {html} - Returns HTML for the HTML5 input element.
|
|
12173
12180
|
*/
|
|
12174
|
-
renderHtmlInput() {
|
|
12181
|
+
renderHtmlInput(hideInputWhenBlurred = false) {
|
|
12175
12182
|
const displayValueClasses = {
|
|
12176
12183
|
'displayValue': true,
|
|
12177
12184
|
'hasContent': this.hasDisplayValueContent,
|
|
12178
12185
|
'hasFocus': this.hasFocus,
|
|
12179
|
-
'withValue': this.value && this.value.length > 0
|
|
12186
|
+
'withValue': this.value && this.value.length > 0,
|
|
12187
|
+
};
|
|
12188
|
+
|
|
12189
|
+
const inputClasses = {
|
|
12190
|
+
'util_displayHiddenVisually': hideInputWhenBlurred && !this.hasFocus && !this.value
|
|
12180
12191
|
};
|
|
12181
12192
|
|
|
12182
12193
|
return u$2`
|
|
@@ -12199,6 +12210,7 @@ class AuroInput extends BaseInput {
|
|
|
12199
12210
|
autocapitalize="${o(this.autocapitalize ? this.autocapitalize : undefined)}"
|
|
12200
12211
|
autocomplete="${o(this.autocomplete ? this.autocomplete : undefined)}"
|
|
12201
12212
|
autocorrect="${o(this.autocorrect ? this.autocorrect : undefined)}"
|
|
12213
|
+
class="${e(inputClasses)}"
|
|
12202
12214
|
id="${this.inputId}"
|
|
12203
12215
|
inputMode="${o(this.inputMode ? this.inputMode : undefined)}"
|
|
12204
12216
|
lang="${o(this.lang)}"
|
|
@@ -12344,137 +12356,32 @@ class AuroInput extends BaseInput {
|
|
|
12344
12356
|
/**
|
|
12345
12357
|
* Returns HTML for the default layout.
|
|
12346
12358
|
* @private
|
|
12347
|
-
* @returns {
|
|
12359
|
+
* @returns {import("lit").TemplateResult} - Returns HTML for the default layout.
|
|
12348
12360
|
*/
|
|
12349
12361
|
renderLayoutClassic() {
|
|
12350
|
-
const wrapperClasses = {
|
|
12351
|
-
'layoutDefault': true
|
|
12352
|
-
};
|
|
12353
|
-
|
|
12354
|
-
// is-disabled class - THIS IS ONLY HERE TO MAKE A TEST PASS AS FAR AS I CAN TELL
|
|
12355
|
-
const labelClasses = {
|
|
12356
|
-
'is-disabled': this.disabled,
|
|
12357
|
-
'withIcon': this.hasTypeIcon(),
|
|
12358
|
-
'withValue': this.value && this.value.length > 0
|
|
12359
|
-
};
|
|
12360
|
-
|
|
12361
12362
|
return u$2`
|
|
12362
|
-
<div
|
|
12363
|
-
|
|
12364
|
-
|
|
12365
|
-
|
|
12366
|
-
|
|
12367
|
-
|
|
12368
|
-
This should be cleaned up when auro-icon issue #31 is resolved. -->
|
|
12369
|
-
${this.inputIconName
|
|
12370
|
-
? c([this.inputIconName], (val) => val, (name) => u$2`
|
|
12371
|
-
<${this.iconTag}
|
|
12372
|
-
class="accentIcon"
|
|
12373
|
-
category="payment"
|
|
12374
|
-
name="${name}"
|
|
12375
|
-
part="accentIcon"
|
|
12376
|
-
?onDark="${this.onDark}"
|
|
12377
|
-
variant="${this.disabled ? 'disabled' : 'muted'}">
|
|
12378
|
-
</${this.iconTag}>
|
|
12379
|
-
`) : undefined
|
|
12380
|
-
}
|
|
12381
|
-
|
|
12382
|
-
${this.type === 'date'
|
|
12383
|
-
? u$2`
|
|
12384
|
-
<${this.iconTag}
|
|
12385
|
-
class="accentIcon"
|
|
12386
|
-
category="interface"
|
|
12387
|
-
name="calendar"
|
|
12388
|
-
part="accentIcon"
|
|
12389
|
-
?onDark="${this.onDark}"
|
|
12390
|
-
variant="${this.disabled ? 'disabled' : 'muted'}">
|
|
12391
|
-
</${this.iconTag}>`
|
|
12392
|
-
: undefined
|
|
12393
|
-
}
|
|
12394
|
-
</div>
|
|
12395
|
-
<label for=${this.id} class="${e(labelClasses)}" part="label">
|
|
12396
|
-
<slot name="label">
|
|
12397
|
-
${this.label}
|
|
12398
|
-
</slot>
|
|
12399
|
-
${this.required ? '' : ` (${i18n(this.lang, 'optional')})`}
|
|
12400
|
-
</label>
|
|
12401
|
-
|
|
12402
|
-
${this.renderHtmlInput()}
|
|
12363
|
+
<div
|
|
12364
|
+
@click="${this.handleClick}"
|
|
12365
|
+
class="${e(this.commonWrapperClasses)} thin"
|
|
12366
|
+
part="wrapper">
|
|
12367
|
+
<div class="accents left">
|
|
12368
|
+
${this.renderHtmlTypeIcon()}
|
|
12403
12369
|
</div>
|
|
12404
|
-
<div
|
|
12405
|
-
|
|
12406
|
-
|
|
12407
|
-
|
|
12408
|
-
${this.
|
|
12409
|
-
<div class="notification alertNotification">
|
|
12410
|
-
<${this.iconTag}
|
|
12411
|
-
category="alert"
|
|
12412
|
-
customColor
|
|
12413
|
-
name="error-stroke"
|
|
12414
|
-
</${this.iconTag}>
|
|
12415
|
-
</div>
|
|
12416
|
-
` : undefined}
|
|
12370
|
+
<div class="mainContent">
|
|
12371
|
+
${this.renderHtmlInput(true)}
|
|
12372
|
+
</div>
|
|
12373
|
+
<div class="accents right">
|
|
12374
|
+
${this.renderValidationErrorIconHtml()}
|
|
12417
12375
|
${this.hasValue ? u$2`
|
|
12418
|
-
${this.type === 'password' ? u$2`
|
|
12419
|
-
<div class="notification">
|
|
12420
|
-
<${this.buttonTag}
|
|
12421
|
-
@click="${this.handleClickShowPassword}"
|
|
12422
|
-
?onDark="${this.onDark}"
|
|
12423
|
-
aria-hidden="true"
|
|
12424
|
-
class="notificationBtn passwordBtn"
|
|
12425
|
-
tabindex="-1"
|
|
12426
|
-
variant="flat">
|
|
12427
|
-
<${this.iconTag}
|
|
12428
|
-
?hidden=${!this.showPassword}
|
|
12429
|
-
category="interface"
|
|
12430
|
-
customColor
|
|
12431
|
-
name="hide-password-stroke">
|
|
12432
|
-
</${this.iconTag}>
|
|
12433
|
-
<${this.iconTag}
|
|
12434
|
-
?hidden=${this.showPassword}
|
|
12435
|
-
category="interface"
|
|
12436
|
-
customColor
|
|
12437
|
-
name="view-password-stroke">
|
|
12438
|
-
</${this.iconTag}>
|
|
12439
|
-
</${this.buttonTag}>
|
|
12440
|
-
</div>
|
|
12441
|
-
` : undefined}
|
|
12442
12376
|
${!this.disabled && !this.readonly ? u$2`
|
|
12443
|
-
|
|
12444
|
-
<${this.buttonTag}
|
|
12445
|
-
@click="${this.handleClickClear}"
|
|
12446
|
-
?onDark="${this.onDark}"
|
|
12447
|
-
arialabel="${i18n(this.lang, 'clearInput')}"
|
|
12448
|
-
class="notificationBtn clearBtn"
|
|
12449
|
-
variant="flat">
|
|
12450
|
-
<${this.iconTag}
|
|
12451
|
-
category="interface"
|
|
12452
|
-
customColor
|
|
12453
|
-
name="x-lg">
|
|
12454
|
-
</${this.iconTag}>
|
|
12455
|
-
</${this.buttonTag}>
|
|
12456
|
-
</div>
|
|
12377
|
+
${this.renderHtmlActionClear()}
|
|
12457
12378
|
` : undefined}
|
|
12458
12379
|
` : undefined}
|
|
12459
12380
|
</div>
|
|
12460
12381
|
</div>
|
|
12461
|
-
|
|
12462
|
-
|
|
12463
|
-
|
|
12464
|
-
<${this.helpTextTag} ?onDark="${this.onDark}">
|
|
12465
|
-
<p id="${this.uniqueId}" part="helpText">
|
|
12466
|
-
<slot name="helptext">${this.getHelpText()}</slot>
|
|
12467
|
-
</p>
|
|
12468
|
-
</${this.helpTextTag}>
|
|
12469
|
-
`
|
|
12470
|
-
: u$2`
|
|
12471
|
-
<${this.helpTextTag} error ?onDark="${this.onDark}">
|
|
12472
|
-
<p id="${this.uniqueId}" role="alert" aria-live="assertive" part="helpText">
|
|
12473
|
-
${this.errorMessage}
|
|
12474
|
-
</p>
|
|
12475
|
-
</${this.helpTextTag}>
|
|
12476
|
-
`
|
|
12477
|
-
}
|
|
12382
|
+
<div class="helpTextWrapper leftIndent rightIndent" part="inputHelpText">
|
|
12383
|
+
${this.renderHtmlHelpText()}
|
|
12384
|
+
</div>
|
|
12478
12385
|
`;
|
|
12479
12386
|
}
|
|
12480
12387
|
|