@aurodesignsystem-dev/auro-formkit 0.0.0-pr624.17 → 0.0.0-pr624.19
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/bibtemplate/dist/buttonVersion.d.ts +1 -1
- package/components/bibtemplate/dist/index.js +61 -10
- package/components/bibtemplate/dist/registered.js +61 -10
- package/components/combobox/demo/api.min.js +164 -33
- package/components/combobox/demo/index.min.js +164 -33
- package/components/combobox/dist/index.js +152 -33
- package/components/combobox/dist/registered.js +152 -33
- package/components/counter/demo/api.min.js +159 -33
- package/components/counter/demo/index.min.js +159 -33
- package/components/counter/dist/auro-counter.d.ts +6 -0
- package/components/counter/dist/index.js +159 -33
- package/components/counter/dist/registered.js +159 -33
- package/components/datepicker/demo/api.md +9 -1
- package/components/datepicker/demo/api.min.js +791 -339
- package/components/datepicker/demo/index.md +68 -6
- package/components/datepicker/demo/index.min.js +791 -339
- package/components/datepicker/dist/auro-datepicker.d.ts +50 -11
- package/components/datepicker/dist/buttonVersion.d.ts +1 -1
- package/components/datepicker/dist/index.js +628 -176
- package/components/datepicker/dist/popoverVersion.d.ts +1 -1
- package/components/datepicker/dist/registered.js +628 -176
- package/components/datepicker/dist/styles/snowflake/style-css.d.ts +2 -0
- package/components/input/demo/api.md +1 -0
- package/components/input/demo/api.min.js +90 -22
- package/components/input/demo/index.min.js +90 -22
- package/components/input/dist/auro-input.d.ts +174 -0
- package/components/input/dist/index.js +90 -22
- package/components/input/dist/registered.js +90 -22
- package/components/menu/demo/api.min.js +12 -0
- package/components/menu/demo/index.min.js +12 -0
- package/components/menu/dist/auro-menu.d.ts +6 -0
- package/components/menu/dist/index.js +12 -0
- package/components/menu/dist/registered.js +12 -0
- package/components/select/demo/api.min.js +94 -17
- package/components/select/demo/index.min.js +94 -17
- package/components/select/dist/auro-select.d.ts +7 -0
- package/components/select/dist/index.js +82 -17
- package/components/select/dist/registered.js +82 -17
- package/package.json +3 -3
- /package/components/datepicker/dist/styles/{emphasized/style-css.d.ts → snowflake/color-css.d.ts} +0 -0
|
@@ -21,6 +21,7 @@ Generate unique names for dependency components.
|
|
|
21
21
|
| [error](#error) | `error` | `string` | | When defined, sets persistent validity to `customError` and sets `setCustomValidity` = attribute value. |
|
|
22
22
|
| [errorMessage](#errorMessage) | `errorMessage` | `string` | | Contains the help text message for the current validity error. |
|
|
23
23
|
| [format](#format) | `format` | `string` | | Specifies the input mask format. |
|
|
24
|
+
| [hideInputVisually](#hideInputVisually) | `hideInputVisually` | `boolean` | | |
|
|
24
25
|
| [icon](#icon) | `icon` | `boolean` | false | If set, will render an icon inside the input to the left of the value. Support is limited to auro-input instances with credit card format. |
|
|
25
26
|
| [id](#id) | `id` | `string` | | The id global attribute defines an identifier (ID) which must be unique in the whole document. |
|
|
26
27
|
| [inputmode](#inputmode) | `inputmode` | `string` | | Exposes inputmode attribute for input. |
|
|
@@ -5985,22 +5985,17 @@ class BaseInput extends AuroElement$2 {
|
|
|
5985
5985
|
* @returns {void}
|
|
5986
5986
|
*/
|
|
5987
5987
|
getPlaceholder() {
|
|
5988
|
-
|
|
5988
|
+
this.inputElement === this.getActiveElement();
|
|
5989
5989
|
|
|
5990
5990
|
// console.warn('isFocused', isFocused);
|
|
5991
5991
|
// console.warn(this.inputElement);
|
|
5992
5992
|
// console.warn(this.getActiveElement());
|
|
5993
5993
|
|
|
5994
|
-
if (!isFocused) {
|
|
5995
|
-
|
|
5996
|
-
|
|
5997
|
-
|
|
5998
|
-
|
|
5999
|
-
this.placeholderStr = this.format ? this.format.toUpperCase() : 'MM/DD/YYYY';
|
|
6000
|
-
// return this.format ? this.format.toUpperCase() : 'MM/DD/YYYY';
|
|
6001
|
-
}
|
|
6002
|
-
} else {
|
|
6003
|
-
this.placeholderStr = '';
|
|
5994
|
+
// if (!isFocused) {
|
|
5995
|
+
if (this.placeholder) {
|
|
5996
|
+
this.placeholderStr = this.placeholder;
|
|
5997
|
+
} else if (this.type === 'date') {
|
|
5998
|
+
this.placeholderStr = this.format ? this.format.toUpperCase() : 'MM/DD/YYYY';
|
|
6004
5999
|
}
|
|
6005
6000
|
|
|
6006
6001
|
this.requestUpdate();
|
|
@@ -6987,7 +6982,6 @@ class AuroElement extends i$2 {
|
|
|
6987
6982
|
* @private
|
|
6988
6983
|
*/
|
|
6989
6984
|
wrapper: {
|
|
6990
|
-
type: HTMLElement,
|
|
6991
6985
|
attribute: false,
|
|
6992
6986
|
reflect: false
|
|
6993
6987
|
}
|
|
@@ -7296,7 +7290,7 @@ class AuroLoader extends i$2 {
|
|
|
7296
7290
|
|
|
7297
7291
|
var loaderVersion = '5.0.0';
|
|
7298
7292
|
|
|
7299
|
-
/* eslint-disable max-lines, curly */
|
|
7293
|
+
/* eslint-disable max-lines, curly, jsdoc/no-undefined-types */
|
|
7300
7294
|
// Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
|
|
7301
7295
|
// See LICENSE in the project root for license information.
|
|
7302
7296
|
|
|
@@ -7363,6 +7357,21 @@ class AuroButton extends AuroElement {
|
|
|
7363
7357
|
* @private
|
|
7364
7358
|
*/
|
|
7365
7359
|
this.loaderTag = versioning.generateTag('auro-loader', loaderVersion, AuroLoader);
|
|
7360
|
+
|
|
7361
|
+
/**
|
|
7362
|
+
* @private
|
|
7363
|
+
*/
|
|
7364
|
+
this.buttonHref = undefined;
|
|
7365
|
+
|
|
7366
|
+
/**
|
|
7367
|
+
* @private
|
|
7368
|
+
*/
|
|
7369
|
+
this.buttonTarget = undefined;
|
|
7370
|
+
|
|
7371
|
+
/**
|
|
7372
|
+
* @private
|
|
7373
|
+
*/
|
|
7374
|
+
this.buttonRel = undefined;
|
|
7366
7375
|
}
|
|
7367
7376
|
|
|
7368
7377
|
static get styles() {
|
|
@@ -7429,13 +7438,23 @@ class AuroButton extends AuroElement {
|
|
|
7429
7438
|
},
|
|
7430
7439
|
|
|
7431
7440
|
/**
|
|
7432
|
-
* Populates `
|
|
7441
|
+
* Populates `tabindex` to define the focusable sequence in keyboard navigation.
|
|
7433
7442
|
*/
|
|
7434
7443
|
tIndex: {
|
|
7435
7444
|
type: String,
|
|
7436
7445
|
reflect: true
|
|
7437
7446
|
},
|
|
7438
7447
|
|
|
7448
|
+
/**
|
|
7449
|
+
* Populates `tabindex` to define the focusable sequence in keyboard navigation.
|
|
7450
|
+
* Must be used with "." to ensure the host element does not retain a reference to the `tabindex` attribute.
|
|
7451
|
+
* Example: `<auro-button .tabindex="${this.disabled ? '-1' : '0'}"></auro-button>`
|
|
7452
|
+
*/
|
|
7453
|
+
tabindex: {
|
|
7454
|
+
type: String,
|
|
7455
|
+
reflect: false
|
|
7456
|
+
},
|
|
7457
|
+
|
|
7439
7458
|
/**
|
|
7440
7459
|
* Sets title attribute. The information is most often shown as a tooltip text when the mouse moves over the element.
|
|
7441
7460
|
*/
|
|
@@ -7468,6 +7487,27 @@ class AuroButton extends AuroElement {
|
|
|
7468
7487
|
type: String,
|
|
7469
7488
|
reflect: true
|
|
7470
7489
|
},
|
|
7490
|
+
|
|
7491
|
+
/**
|
|
7492
|
+
* @private
|
|
7493
|
+
*/
|
|
7494
|
+
buttonHref: {
|
|
7495
|
+
type: String,
|
|
7496
|
+
},
|
|
7497
|
+
|
|
7498
|
+
/**
|
|
7499
|
+
* @private
|
|
7500
|
+
*/
|
|
7501
|
+
buttonTarget: {
|
|
7502
|
+
type: String,
|
|
7503
|
+
},
|
|
7504
|
+
|
|
7505
|
+
/**
|
|
7506
|
+
* @private
|
|
7507
|
+
*/
|
|
7508
|
+
buttonRel: {
|
|
7509
|
+
type: String,
|
|
7510
|
+
},
|
|
7471
7511
|
};
|
|
7472
7512
|
}
|
|
7473
7513
|
|
|
@@ -7558,14 +7598,17 @@ class AuroButton extends AuroElement {
|
|
|
7558
7598
|
loading: this.loading,
|
|
7559
7599
|
};
|
|
7560
7600
|
|
|
7601
|
+
const tag = this.buttonHref ? i$1`a` : i$1`button`;
|
|
7602
|
+
const part = this.buttonHref ? 'link' : 'button';
|
|
7603
|
+
|
|
7561
7604
|
return u$2`
|
|
7562
|
-
|
|
7563
|
-
part="
|
|
7605
|
+
<${tag}
|
|
7606
|
+
part="${part}"
|
|
7564
7607
|
aria-label="${o(this.loading ? this.loadingText : this.currentAriaLabel || undefined)}"
|
|
7565
7608
|
aria-labelledby="${o(this.loading ? undefined : this.currentAriaLabelledBy || undefined)}"
|
|
7566
|
-
|
|
7609
|
+
tabindex="${o(this.tIndex || this.tabindex)}"
|
|
7567
7610
|
?autofocus="${this.autofocus}"
|
|
7568
|
-
class
|
|
7611
|
+
class=${e(classes)}
|
|
7569
7612
|
?disabled="${this.disabled || this.loading}"
|
|
7570
7613
|
?onDark="${this.onDark}"
|
|
7571
7614
|
title="${o(this.title ? this.title : undefined)}"
|
|
@@ -7574,6 +7617,9 @@ class AuroButton extends AuroElement {
|
|
|
7574
7617
|
variant="${o(this.variant ? this.variant : undefined)}"
|
|
7575
7618
|
.value="${o(this.value ? this.value : undefined)}"
|
|
7576
7619
|
@click="${this.type === 'submit' ? this.surfaceSubmitEvent : undefined}"
|
|
7620
|
+
href="${o(this.buttonHref || undefined)}"
|
|
7621
|
+
target="${o(this.buttonTarget || undefined)}"
|
|
7622
|
+
rel="${o(this.buttonRel || undefined)}"
|
|
7577
7623
|
>
|
|
7578
7624
|
${o(this.loading ? u$2`<${this.loaderTag} pulse part="loader"></${this.loaderTag}>` : undefined)}
|
|
7579
7625
|
|
|
@@ -7582,12 +7628,12 @@ class AuroButton extends AuroElement {
|
|
|
7582
7628
|
<slot></slot>
|
|
7583
7629
|
</span>
|
|
7584
7630
|
</span>
|
|
7585
|
-
|
|
7631
|
+
</${tag}>
|
|
7586
7632
|
`;
|
|
7587
7633
|
}
|
|
7588
7634
|
|
|
7589
7635
|
/**
|
|
7590
|
-
* Renders the layout of the button
|
|
7636
|
+
* Renders the layout of the button.
|
|
7591
7637
|
* @returns {TemplateResult}
|
|
7592
7638
|
* @private
|
|
7593
7639
|
*/
|
|
@@ -7842,6 +7888,20 @@ class AuroInput extends BaseInput {
|
|
|
7842
7888
|
this.iconTag = versioning.generateTag('auro-formkit-input-icon', iconVersion, AuroIcon);
|
|
7843
7889
|
}
|
|
7844
7890
|
|
|
7891
|
+
static get properties() {
|
|
7892
|
+
return {
|
|
7893
|
+
...super.properties,
|
|
7894
|
+
|
|
7895
|
+
/**
|
|
7896
|
+
* @type {boolean}
|
|
7897
|
+
*/
|
|
7898
|
+
hideInputVisually: {
|
|
7899
|
+
type: Boolean,
|
|
7900
|
+
reflect: true,
|
|
7901
|
+
}
|
|
7902
|
+
};
|
|
7903
|
+
}
|
|
7904
|
+
|
|
7845
7905
|
static get styles() {
|
|
7846
7906
|
return [
|
|
7847
7907
|
i$5`${classicStyleCss}`,
|
|
@@ -7876,8 +7936,13 @@ class AuroInput extends BaseInput {
|
|
|
7876
7936
|
* @returns {object} - Returns classmap.
|
|
7877
7937
|
*/
|
|
7878
7938
|
get commonInputClasses() {
|
|
7939
|
+
console.log(`hideInputVisually: ${JSON.stringify(this.hideInputVisually)}`);
|
|
7879
7940
|
return {
|
|
7880
|
-
'util_displayHiddenVisually': this.
|
|
7941
|
+
'util_displayHiddenVisually': this.hideInputVisually !== undefined
|
|
7942
|
+
? this.hideInputVisually
|
|
7943
|
+
// eslint-disable-next-line no-warning-comments
|
|
7944
|
+
// TODO: refactor this to use a less brittle/forced solution.
|
|
7945
|
+
: this.hasDisplayValueContent && !this.hasFocus && this.value && this.value.length > 0
|
|
7881
7946
|
};
|
|
7882
7947
|
}
|
|
7883
7948
|
|
|
@@ -7889,7 +7954,10 @@ class AuroInput extends BaseInput {
|
|
|
7889
7954
|
get legacyInputClasses() {
|
|
7890
7955
|
return {
|
|
7891
7956
|
...this.commonInputClasses,
|
|
7892
|
-
'util_displayHiddenVisually':
|
|
7957
|
+
'util_displayHiddenVisually':
|
|
7958
|
+
this.hideInputVisually !== undefined
|
|
7959
|
+
? this.hideInputVisually
|
|
7960
|
+
: !this.hasFocus && !this.value
|
|
7893
7961
|
};
|
|
7894
7962
|
}
|
|
7895
7963
|
|
|
@@ -5910,22 +5910,17 @@ class BaseInput extends AuroElement$2 {
|
|
|
5910
5910
|
* @returns {void}
|
|
5911
5911
|
*/
|
|
5912
5912
|
getPlaceholder() {
|
|
5913
|
-
|
|
5913
|
+
this.inputElement === this.getActiveElement();
|
|
5914
5914
|
|
|
5915
5915
|
// console.warn('isFocused', isFocused);
|
|
5916
5916
|
// console.warn(this.inputElement);
|
|
5917
5917
|
// console.warn(this.getActiveElement());
|
|
5918
5918
|
|
|
5919
|
-
if (!isFocused) {
|
|
5920
|
-
|
|
5921
|
-
|
|
5922
|
-
|
|
5923
|
-
|
|
5924
|
-
this.placeholderStr = this.format ? this.format.toUpperCase() : 'MM/DD/YYYY';
|
|
5925
|
-
// return this.format ? this.format.toUpperCase() : 'MM/DD/YYYY';
|
|
5926
|
-
}
|
|
5927
|
-
} else {
|
|
5928
|
-
this.placeholderStr = '';
|
|
5919
|
+
// if (!isFocused) {
|
|
5920
|
+
if (this.placeholder) {
|
|
5921
|
+
this.placeholderStr = this.placeholder;
|
|
5922
|
+
} else if (this.type === 'date') {
|
|
5923
|
+
this.placeholderStr = this.format ? this.format.toUpperCase() : 'MM/DD/YYYY';
|
|
5929
5924
|
}
|
|
5930
5925
|
|
|
5931
5926
|
this.requestUpdate();
|
|
@@ -6912,7 +6907,6 @@ class AuroElement extends i$2 {
|
|
|
6912
6907
|
* @private
|
|
6913
6908
|
*/
|
|
6914
6909
|
wrapper: {
|
|
6915
|
-
type: HTMLElement,
|
|
6916
6910
|
attribute: false,
|
|
6917
6911
|
reflect: false
|
|
6918
6912
|
}
|
|
@@ -7221,7 +7215,7 @@ class AuroLoader extends i$2 {
|
|
|
7221
7215
|
|
|
7222
7216
|
var loaderVersion = '5.0.0';
|
|
7223
7217
|
|
|
7224
|
-
/* eslint-disable max-lines, curly */
|
|
7218
|
+
/* eslint-disable max-lines, curly, jsdoc/no-undefined-types */
|
|
7225
7219
|
// Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
|
|
7226
7220
|
// See LICENSE in the project root for license information.
|
|
7227
7221
|
|
|
@@ -7288,6 +7282,21 @@ class AuroButton extends AuroElement {
|
|
|
7288
7282
|
* @private
|
|
7289
7283
|
*/
|
|
7290
7284
|
this.loaderTag = versioning.generateTag('auro-loader', loaderVersion, AuroLoader);
|
|
7285
|
+
|
|
7286
|
+
/**
|
|
7287
|
+
* @private
|
|
7288
|
+
*/
|
|
7289
|
+
this.buttonHref = undefined;
|
|
7290
|
+
|
|
7291
|
+
/**
|
|
7292
|
+
* @private
|
|
7293
|
+
*/
|
|
7294
|
+
this.buttonTarget = undefined;
|
|
7295
|
+
|
|
7296
|
+
/**
|
|
7297
|
+
* @private
|
|
7298
|
+
*/
|
|
7299
|
+
this.buttonRel = undefined;
|
|
7291
7300
|
}
|
|
7292
7301
|
|
|
7293
7302
|
static get styles() {
|
|
@@ -7354,13 +7363,23 @@ class AuroButton extends AuroElement {
|
|
|
7354
7363
|
},
|
|
7355
7364
|
|
|
7356
7365
|
/**
|
|
7357
|
-
* Populates `
|
|
7366
|
+
* Populates `tabindex` to define the focusable sequence in keyboard navigation.
|
|
7358
7367
|
*/
|
|
7359
7368
|
tIndex: {
|
|
7360
7369
|
type: String,
|
|
7361
7370
|
reflect: true
|
|
7362
7371
|
},
|
|
7363
7372
|
|
|
7373
|
+
/**
|
|
7374
|
+
* Populates `tabindex` to define the focusable sequence in keyboard navigation.
|
|
7375
|
+
* Must be used with "." to ensure the host element does not retain a reference to the `tabindex` attribute.
|
|
7376
|
+
* Example: `<auro-button .tabindex="${this.disabled ? '-1' : '0'}"></auro-button>`
|
|
7377
|
+
*/
|
|
7378
|
+
tabindex: {
|
|
7379
|
+
type: String,
|
|
7380
|
+
reflect: false
|
|
7381
|
+
},
|
|
7382
|
+
|
|
7364
7383
|
/**
|
|
7365
7384
|
* Sets title attribute. The information is most often shown as a tooltip text when the mouse moves over the element.
|
|
7366
7385
|
*/
|
|
@@ -7393,6 +7412,27 @@ class AuroButton extends AuroElement {
|
|
|
7393
7412
|
type: String,
|
|
7394
7413
|
reflect: true
|
|
7395
7414
|
},
|
|
7415
|
+
|
|
7416
|
+
/**
|
|
7417
|
+
* @private
|
|
7418
|
+
*/
|
|
7419
|
+
buttonHref: {
|
|
7420
|
+
type: String,
|
|
7421
|
+
},
|
|
7422
|
+
|
|
7423
|
+
/**
|
|
7424
|
+
* @private
|
|
7425
|
+
*/
|
|
7426
|
+
buttonTarget: {
|
|
7427
|
+
type: String,
|
|
7428
|
+
},
|
|
7429
|
+
|
|
7430
|
+
/**
|
|
7431
|
+
* @private
|
|
7432
|
+
*/
|
|
7433
|
+
buttonRel: {
|
|
7434
|
+
type: String,
|
|
7435
|
+
},
|
|
7396
7436
|
};
|
|
7397
7437
|
}
|
|
7398
7438
|
|
|
@@ -7483,14 +7523,17 @@ class AuroButton extends AuroElement {
|
|
|
7483
7523
|
loading: this.loading,
|
|
7484
7524
|
};
|
|
7485
7525
|
|
|
7526
|
+
const tag = this.buttonHref ? i$1`a` : i$1`button`;
|
|
7527
|
+
const part = this.buttonHref ? 'link' : 'button';
|
|
7528
|
+
|
|
7486
7529
|
return u$2`
|
|
7487
|
-
|
|
7488
|
-
part="
|
|
7530
|
+
<${tag}
|
|
7531
|
+
part="${part}"
|
|
7489
7532
|
aria-label="${o(this.loading ? this.loadingText : this.currentAriaLabel || undefined)}"
|
|
7490
7533
|
aria-labelledby="${o(this.loading ? undefined : this.currentAriaLabelledBy || undefined)}"
|
|
7491
|
-
|
|
7534
|
+
tabindex="${o(this.tIndex || this.tabindex)}"
|
|
7492
7535
|
?autofocus="${this.autofocus}"
|
|
7493
|
-
class
|
|
7536
|
+
class=${e(classes)}
|
|
7494
7537
|
?disabled="${this.disabled || this.loading}"
|
|
7495
7538
|
?onDark="${this.onDark}"
|
|
7496
7539
|
title="${o(this.title ? this.title : undefined)}"
|
|
@@ -7499,6 +7542,9 @@ class AuroButton extends AuroElement {
|
|
|
7499
7542
|
variant="${o(this.variant ? this.variant : undefined)}"
|
|
7500
7543
|
.value="${o(this.value ? this.value : undefined)}"
|
|
7501
7544
|
@click="${this.type === 'submit' ? this.surfaceSubmitEvent : undefined}"
|
|
7545
|
+
href="${o(this.buttonHref || undefined)}"
|
|
7546
|
+
target="${o(this.buttonTarget || undefined)}"
|
|
7547
|
+
rel="${o(this.buttonRel || undefined)}"
|
|
7502
7548
|
>
|
|
7503
7549
|
${o(this.loading ? u$2`<${this.loaderTag} pulse part="loader"></${this.loaderTag}>` : undefined)}
|
|
7504
7550
|
|
|
@@ -7507,12 +7553,12 @@ class AuroButton extends AuroElement {
|
|
|
7507
7553
|
<slot></slot>
|
|
7508
7554
|
</span>
|
|
7509
7555
|
</span>
|
|
7510
|
-
|
|
7556
|
+
</${tag}>
|
|
7511
7557
|
`;
|
|
7512
7558
|
}
|
|
7513
7559
|
|
|
7514
7560
|
/**
|
|
7515
|
-
* Renders the layout of the button
|
|
7561
|
+
* Renders the layout of the button.
|
|
7516
7562
|
* @returns {TemplateResult}
|
|
7517
7563
|
* @private
|
|
7518
7564
|
*/
|
|
@@ -7767,6 +7813,20 @@ class AuroInput extends BaseInput {
|
|
|
7767
7813
|
this.iconTag = versioning.generateTag('auro-formkit-input-icon', iconVersion, AuroIcon);
|
|
7768
7814
|
}
|
|
7769
7815
|
|
|
7816
|
+
static get properties() {
|
|
7817
|
+
return {
|
|
7818
|
+
...super.properties,
|
|
7819
|
+
|
|
7820
|
+
/**
|
|
7821
|
+
* @type {boolean}
|
|
7822
|
+
*/
|
|
7823
|
+
hideInputVisually: {
|
|
7824
|
+
type: Boolean,
|
|
7825
|
+
reflect: true,
|
|
7826
|
+
}
|
|
7827
|
+
};
|
|
7828
|
+
}
|
|
7829
|
+
|
|
7770
7830
|
static get styles() {
|
|
7771
7831
|
return [
|
|
7772
7832
|
i$5`${classicStyleCss}`,
|
|
@@ -7801,8 +7861,13 @@ class AuroInput extends BaseInput {
|
|
|
7801
7861
|
* @returns {object} - Returns classmap.
|
|
7802
7862
|
*/
|
|
7803
7863
|
get commonInputClasses() {
|
|
7864
|
+
console.log(`hideInputVisually: ${JSON.stringify(this.hideInputVisually)}`);
|
|
7804
7865
|
return {
|
|
7805
|
-
'util_displayHiddenVisually': this.
|
|
7866
|
+
'util_displayHiddenVisually': this.hideInputVisually !== undefined
|
|
7867
|
+
? this.hideInputVisually
|
|
7868
|
+
// eslint-disable-next-line no-warning-comments
|
|
7869
|
+
// TODO: refactor this to use a less brittle/forced solution.
|
|
7870
|
+
: this.hasDisplayValueContent && !this.hasFocus && this.value && this.value.length > 0
|
|
7806
7871
|
};
|
|
7807
7872
|
}
|
|
7808
7873
|
|
|
@@ -7814,7 +7879,10 @@ class AuroInput extends BaseInput {
|
|
|
7814
7879
|
get legacyInputClasses() {
|
|
7815
7880
|
return {
|
|
7816
7881
|
...this.commonInputClasses,
|
|
7817
|
-
'util_displayHiddenVisually':
|
|
7882
|
+
'util_displayHiddenVisually':
|
|
7883
|
+
this.hideInputVisually !== undefined
|
|
7884
|
+
? this.hideInputVisually
|
|
7885
|
+
: !this.hasFocus && !this.value
|
|
7818
7886
|
};
|
|
7819
7887
|
}
|
|
7820
7888
|
|
|
@@ -1,4 +1,178 @@
|
|
|
1
1
|
export class AuroInput extends BaseInput {
|
|
2
|
+
static get properties(): {
|
|
3
|
+
/**
|
|
4
|
+
* @type {boolean}
|
|
5
|
+
*/
|
|
6
|
+
hideInputVisually: boolean;
|
|
7
|
+
a11yRole: {
|
|
8
|
+
type: StringConstructor;
|
|
9
|
+
reflect: boolean;
|
|
10
|
+
};
|
|
11
|
+
a11yExpanded: {
|
|
12
|
+
type: BooleanConstructor;
|
|
13
|
+
reflect: boolean;
|
|
14
|
+
};
|
|
15
|
+
a11yControls: {
|
|
16
|
+
type: StringConstructor;
|
|
17
|
+
reflect: boolean;
|
|
18
|
+
};
|
|
19
|
+
activeLabel: {
|
|
20
|
+
type: BooleanConstructor;
|
|
21
|
+
reflect: boolean;
|
|
22
|
+
};
|
|
23
|
+
autocapitalize: {
|
|
24
|
+
type: StringConstructor;
|
|
25
|
+
reflect: boolean;
|
|
26
|
+
};
|
|
27
|
+
autocomplete: {
|
|
28
|
+
type: StringConstructor;
|
|
29
|
+
reflect: boolean;
|
|
30
|
+
};
|
|
31
|
+
autocorrect: {
|
|
32
|
+
type: StringConstructor;
|
|
33
|
+
reflect: boolean;
|
|
34
|
+
};
|
|
35
|
+
disabled: {
|
|
36
|
+
type: BooleanConstructor;
|
|
37
|
+
reflect: boolean;
|
|
38
|
+
};
|
|
39
|
+
error: {
|
|
40
|
+
type: StringConstructor;
|
|
41
|
+
reflect: boolean;
|
|
42
|
+
};
|
|
43
|
+
errorMessage: {
|
|
44
|
+
type: StringConstructor;
|
|
45
|
+
};
|
|
46
|
+
format: {
|
|
47
|
+
type: StringConstructor;
|
|
48
|
+
reflect: boolean;
|
|
49
|
+
};
|
|
50
|
+
icon: {
|
|
51
|
+
type: BooleanConstructor;
|
|
52
|
+
reflect: boolean;
|
|
53
|
+
};
|
|
54
|
+
inputmode: {
|
|
55
|
+
type: StringConstructor;
|
|
56
|
+
reflect: boolean;
|
|
57
|
+
};
|
|
58
|
+
lang: {
|
|
59
|
+
type: StringConstructor;
|
|
60
|
+
reflect: boolean;
|
|
61
|
+
};
|
|
62
|
+
max: {
|
|
63
|
+
type: StringConstructor;
|
|
64
|
+
};
|
|
65
|
+
maxLength: {
|
|
66
|
+
type: NumberConstructor;
|
|
67
|
+
reflect: boolean;
|
|
68
|
+
};
|
|
69
|
+
min: {
|
|
70
|
+
type: StringConstructor;
|
|
71
|
+
};
|
|
72
|
+
minLength: {
|
|
73
|
+
type: NumberConstructor;
|
|
74
|
+
reflect: boolean;
|
|
75
|
+
};
|
|
76
|
+
name: {
|
|
77
|
+
type: StringConstructor;
|
|
78
|
+
reflect: boolean;
|
|
79
|
+
};
|
|
80
|
+
nested: {
|
|
81
|
+
type: BooleanConstructor;
|
|
82
|
+
reflect: boolean;
|
|
83
|
+
};
|
|
84
|
+
noValidate: {
|
|
85
|
+
type: BooleanConstructor;
|
|
86
|
+
reflect: boolean;
|
|
87
|
+
};
|
|
88
|
+
onDark: {
|
|
89
|
+
type: BooleanConstructor;
|
|
90
|
+
reflect: boolean;
|
|
91
|
+
};
|
|
92
|
+
pattern: {
|
|
93
|
+
type: StringConstructor;
|
|
94
|
+
reflect: boolean;
|
|
95
|
+
};
|
|
96
|
+
placeholder: {
|
|
97
|
+
type: StringConstructor;
|
|
98
|
+
reflect: boolean;
|
|
99
|
+
};
|
|
100
|
+
readonly: {
|
|
101
|
+
type: BooleanConstructor;
|
|
102
|
+
reflect: boolean;
|
|
103
|
+
};
|
|
104
|
+
required: {
|
|
105
|
+
type: BooleanConstructor;
|
|
106
|
+
reflect: boolean;
|
|
107
|
+
};
|
|
108
|
+
showPassword: {
|
|
109
|
+
state: boolean;
|
|
110
|
+
};
|
|
111
|
+
setCustomValidity: {
|
|
112
|
+
type: StringConstructor;
|
|
113
|
+
};
|
|
114
|
+
setCustomValidityBadInput: {
|
|
115
|
+
type: StringConstructor;
|
|
116
|
+
};
|
|
117
|
+
setCustomValidityCustomError: {
|
|
118
|
+
type: StringConstructor;
|
|
119
|
+
};
|
|
120
|
+
setCustomValidityForType: {
|
|
121
|
+
type: StringConstructor;
|
|
122
|
+
};
|
|
123
|
+
setCustomValidityRangeOverflow: {
|
|
124
|
+
type: StringConstructor;
|
|
125
|
+
};
|
|
126
|
+
setCustomValidityRangeUnderflow: {
|
|
127
|
+
type: StringConstructor;
|
|
128
|
+
};
|
|
129
|
+
setCustomValidityTooLong: {
|
|
130
|
+
type: StringConstructor;
|
|
131
|
+
};
|
|
132
|
+
setCustomValidityTooShort: {
|
|
133
|
+
type: StringConstructor;
|
|
134
|
+
};
|
|
135
|
+
setCustomValidityValueMissing: {
|
|
136
|
+
type: StringConstructor;
|
|
137
|
+
};
|
|
138
|
+
simple: {
|
|
139
|
+
type: BooleanConstructor;
|
|
140
|
+
reflect: boolean;
|
|
141
|
+
};
|
|
142
|
+
customValidityTypeEmail: {
|
|
143
|
+
type: StringConstructor;
|
|
144
|
+
};
|
|
145
|
+
spellcheck: {
|
|
146
|
+
type: StringConstructor;
|
|
147
|
+
reflect: boolean;
|
|
148
|
+
};
|
|
149
|
+
type: {
|
|
150
|
+
type: StringConstructor;
|
|
151
|
+
reflect: boolean;
|
|
152
|
+
};
|
|
153
|
+
value: {
|
|
154
|
+
type: StringConstructor;
|
|
155
|
+
reflect: boolean;
|
|
156
|
+
};
|
|
157
|
+
validateOnInput: {
|
|
158
|
+
type: BooleanConstructor;
|
|
159
|
+
};
|
|
160
|
+
validity: {
|
|
161
|
+
type: StringConstructor;
|
|
162
|
+
reflect: boolean;
|
|
163
|
+
};
|
|
164
|
+
touched: boolean;
|
|
165
|
+
inputId: {
|
|
166
|
+
type: StringConstructor;
|
|
167
|
+
reflect: boolean;
|
|
168
|
+
attribute: boolean;
|
|
169
|
+
};
|
|
170
|
+
layout: {
|
|
171
|
+
type: StringConstructor;
|
|
172
|
+
attribute: string;
|
|
173
|
+
reflect: boolean;
|
|
174
|
+
};
|
|
175
|
+
};
|
|
2
176
|
static get styles(): import("lit").CSSResult[];
|
|
3
177
|
/**
|
|
4
178
|
* This will register this element with the browser.
|