@aurodesignsystem-dev/auro-formkit 0.0.0-pr624.2 → 0.0.0-pr624.4

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.
@@ -16,6 +16,7 @@
16
16
  | [inputmode](#inputmode) | `inputmode` | `string` | | Exposes inputmode attribute for input. |
17
17
  | [largeFullscreenHeadline](#largeFullscreenHeadline) | `largeFullscreenHeadline` | `boolean` | | If declared, make bib.fullscreen.headline in HeadingDisplay.<br />Otherwise, Heading 600 |
18
18
  | [layout](#layout) | | `string` | | |
19
+ | [matchWidth](#matchWidth) | `matchWidth` | `boolean` | true | If declared, the popover and trigger will be set to the same width. |
19
20
  | [noFilter](#noFilter) | `noFilter` | `boolean` | | If set, combobox will not filter menuoptions based in input. |
20
21
  | [noFlip](#noFlip) | `noFlip` | `boolean` | "false" | If declared, the bib will NOT flip to an alternate position<br />when there isn't enough space in the specified `placement`. |
21
22
  | [noValidate](#noValidate) | `noValidate` | `boolean` | | If set, disables auto-validation on blur. |
@@ -12246,7 +12246,7 @@ class AuroInput extends BaseInput {
12246
12246
  /**
12247
12247
  * Returns classmap configuration for html5 inputs in all layouts.
12248
12248
  * @private
12249
- * @returns {void}
12249
+ * @returns {object} - Returns classmap configuration for html5 inputs in all layouts.
12250
12250
  */
12251
12251
  get commonInputClasses() {
12252
12252
  return {
@@ -12254,6 +12254,18 @@ class AuroInput extends BaseInput {
12254
12254
  };
12255
12255
  }
12256
12256
 
12257
+ /**
12258
+ * Returns classmap configuration for html5 inputs in all layouts.
12259
+ * @private
12260
+ * @return {object} - Returns classmap configuration for "classic" html5 inputs.
12261
+ */
12262
+ get legacyInputClasses() {
12263
+ return {
12264
+ ...this.commonInputClasses,
12265
+ 'util_displayHiddenVisually': !this.hasFocus && !this.value
12266
+ };
12267
+ }
12268
+
12257
12269
  get commonWrapperClasses() {
12258
12270
  return {
12259
12271
  'wrapper': true,
@@ -12335,10 +12347,10 @@ class AuroInput extends BaseInput {
12335
12347
  /**
12336
12348
  * Returns HTML for the HTML5 input element.
12337
12349
  * @private
12338
- * @param {boolean} [hideInputWhenBlurred=false] - If true, the input will be visually hidden when not focused and has no value.
12350
+ * @param {boolean} [useLegacyHiddenState=false] - If true, the input will be visually hidden when not focused and has no value.
12339
12351
  * @returns {html} - Returns HTML for the HTML5 input element.
12340
12352
  */
12341
- renderHtmlInput(hideInputWhenBlurred = false) {
12353
+ renderHtmlInput(useLegacyHiddenState = false) {
12342
12354
  const displayValueClasses = {
12343
12355
  'displayValue': true,
12344
12356
  'hasContent': this.hasDisplayValueContent,
@@ -12346,9 +12358,10 @@ class AuroInput extends BaseInput {
12346
12358
  'withValue': this.value && this.value.length > 0,
12347
12359
  };
12348
12360
 
12349
- const inputClasses = {
12350
- 'util_displayHiddenVisually': hideInputWhenBlurred && !this.hasFocus && !this.value
12351
- };
12361
+ // Remove this when the classic layout is sunset.
12362
+ const inputOverrideClasses = useLegacyHiddenState
12363
+ ? this.legacyInputClasses
12364
+ : this.commonInputClasses;
12352
12365
 
12353
12366
  return u$2`
12354
12367
  <label for=${this.id} class="${e(this.commonLabelClasses)}" part="label">
@@ -12370,7 +12383,7 @@ class AuroInput extends BaseInput {
12370
12383
  autocapitalize="${o(this.autocapitalize ? this.autocapitalize : undefined)}"
12371
12384
  autocomplete="${o(this.autocomplete ? this.autocomplete : undefined)}"
12372
12385
  autocorrect="${o(this.autocorrect ? this.autocorrect : undefined)}"
12373
- class="${e(inputClasses)}"
12386
+ class="${e(inputOverrideClasses)}"
12374
12387
  id="${this.inputId}"
12375
12388
  inputMode="${o(this.inputMode ? this.inputMode : undefined)}"
12376
12389
  lang="${o(this.lang)}"
@@ -13672,6 +13685,8 @@ class AuroCombobox extends AuroElement$1 {
13672
13685
  constructor() {
13673
13686
  super();
13674
13687
 
13688
+ this.matchWidth = true;
13689
+
13675
13690
  this.privateDefaults();
13676
13691
  }
13677
13692
 
@@ -13805,6 +13820,14 @@ class AuroCombobox extends AuroElement$1 {
13805
13820
  reflect: true
13806
13821
  },
13807
13822
 
13823
+ /**
13824
+ * If declared, the popover and trigger will be set to the same width.
13825
+ */
13826
+ matchWidth: {
13827
+ type: Boolean,
13828
+ reflect: true
13829
+ },
13830
+
13808
13831
  /**
13809
13832
  * If set, combobox will not filter menuoptions based in input.
13810
13833
  */
@@ -14692,7 +14715,7 @@ class AuroCombobox extends AuroElement$1 {
14692
14715
  fluid
14693
14716
  for="dropdownMenu"
14694
14717
  layout="${this.layout}"
14695
- matchWidth
14718
+ matchWidth="${o(this.matchWidth)}"
14696
14719
  nocheckmark
14697
14720
  rounded
14698
14721
  shape="${this.shape}"
@@ -12104,7 +12104,7 @@ class AuroInput extends BaseInput {
12104
12104
  /**
12105
12105
  * Returns classmap configuration for html5 inputs in all layouts.
12106
12106
  * @private
12107
- * @returns {void}
12107
+ * @returns {object} - Returns classmap configuration for html5 inputs in all layouts.
12108
12108
  */
12109
12109
  get commonInputClasses() {
12110
12110
  return {
@@ -12112,6 +12112,18 @@ class AuroInput extends BaseInput {
12112
12112
  };
12113
12113
  }
12114
12114
 
12115
+ /**
12116
+ * Returns classmap configuration for html5 inputs in all layouts.
12117
+ * @private
12118
+ * @return {object} - Returns classmap configuration for "classic" html5 inputs.
12119
+ */
12120
+ get legacyInputClasses() {
12121
+ return {
12122
+ ...this.commonInputClasses,
12123
+ 'util_displayHiddenVisually': !this.hasFocus && !this.value
12124
+ };
12125
+ }
12126
+
12115
12127
  get commonWrapperClasses() {
12116
12128
  return {
12117
12129
  'wrapper': true,
@@ -12193,10 +12205,10 @@ class AuroInput extends BaseInput {
12193
12205
  /**
12194
12206
  * Returns HTML for the HTML5 input element.
12195
12207
  * @private
12196
- * @param {boolean} [hideInputWhenBlurred=false] - If true, the input will be visually hidden when not focused and has no value.
12208
+ * @param {boolean} [useLegacyHiddenState=false] - If true, the input will be visually hidden when not focused and has no value.
12197
12209
  * @returns {html} - Returns HTML for the HTML5 input element.
12198
12210
  */
12199
- renderHtmlInput(hideInputWhenBlurred = false) {
12211
+ renderHtmlInput(useLegacyHiddenState = false) {
12200
12212
  const displayValueClasses = {
12201
12213
  'displayValue': true,
12202
12214
  'hasContent': this.hasDisplayValueContent,
@@ -12204,9 +12216,10 @@ class AuroInput extends BaseInput {
12204
12216
  'withValue': this.value && this.value.length > 0,
12205
12217
  };
12206
12218
 
12207
- const inputClasses = {
12208
- 'util_displayHiddenVisually': hideInputWhenBlurred && !this.hasFocus && !this.value
12209
- };
12219
+ // Remove this when the classic layout is sunset.
12220
+ const inputOverrideClasses = useLegacyHiddenState
12221
+ ? this.legacyInputClasses
12222
+ : this.commonInputClasses;
12210
12223
 
12211
12224
  return u$2`
12212
12225
  <label for=${this.id} class="${e(this.commonLabelClasses)}" part="label">
@@ -12228,7 +12241,7 @@ class AuroInput extends BaseInput {
12228
12241
  autocapitalize="${o(this.autocapitalize ? this.autocapitalize : undefined)}"
12229
12242
  autocomplete="${o(this.autocomplete ? this.autocomplete : undefined)}"
12230
12243
  autocorrect="${o(this.autocorrect ? this.autocorrect : undefined)}"
12231
- class="${e(inputClasses)}"
12244
+ class="${e(inputOverrideClasses)}"
12232
12245
  id="${this.inputId}"
12233
12246
  inputMode="${o(this.inputMode ? this.inputMode : undefined)}"
12234
12247
  lang="${o(this.lang)}"
@@ -13530,6 +13543,8 @@ class AuroCombobox extends AuroElement$1 {
13530
13543
  constructor() {
13531
13544
  super();
13532
13545
 
13546
+ this.matchWidth = true;
13547
+
13533
13548
  this.privateDefaults();
13534
13549
  }
13535
13550
 
@@ -13663,6 +13678,14 @@ class AuroCombobox extends AuroElement$1 {
13663
13678
  reflect: true
13664
13679
  },
13665
13680
 
13681
+ /**
13682
+ * If declared, the popover and trigger will be set to the same width.
13683
+ */
13684
+ matchWidth: {
13685
+ type: Boolean,
13686
+ reflect: true
13687
+ },
13688
+
13666
13689
  /**
13667
13690
  * If set, combobox will not filter menuoptions based in input.
13668
13691
  */
@@ -14550,7 +14573,7 @@ class AuroCombobox extends AuroElement$1 {
14550
14573
  fluid
14551
14574
  for="dropdownMenu"
14552
14575
  layout="${this.layout}"
14553
- matchWidth
14576
+ matchWidth="${o(this.matchWidth)}"
14554
14577
  nocheckmark
14555
14578
  rounded
14556
14579
  shape="${this.shape}"
@@ -68,6 +68,13 @@ export class AuroCombobox extends AuroElement {
68
68
  attribute: boolean;
69
69
  reflect: boolean;
70
70
  };
71
+ /**
72
+ * If declared, the popover and trigger will be set to the same width.
73
+ */
74
+ matchWidth: {
75
+ type: BooleanConstructor;
76
+ reflect: boolean;
77
+ };
71
78
  /**
72
79
  * If set, combobox will not filter menuoptions based in input.
73
80
  */
@@ -222,6 +229,7 @@ export class AuroCombobox extends AuroElement {
222
229
  *
223
230
  */
224
231
  static register(name?: string): void;
232
+ matchWidth: boolean;
225
233
  /**
226
234
  * @private
227
235
  * @returns {void} Internal defaults.
@@ -12022,7 +12022,7 @@ class AuroInput extends BaseInput {
12022
12022
  /**
12023
12023
  * Returns classmap configuration for html5 inputs in all layouts.
12024
12024
  * @private
12025
- * @returns {void}
12025
+ * @returns {object} - Returns classmap configuration for html5 inputs in all layouts.
12026
12026
  */
12027
12027
  get commonInputClasses() {
12028
12028
  return {
@@ -12030,6 +12030,18 @@ class AuroInput extends BaseInput {
12030
12030
  };
12031
12031
  }
12032
12032
 
12033
+ /**
12034
+ * Returns classmap configuration for html5 inputs in all layouts.
12035
+ * @private
12036
+ * @return {object} - Returns classmap configuration for "classic" html5 inputs.
12037
+ */
12038
+ get legacyInputClasses() {
12039
+ return {
12040
+ ...this.commonInputClasses,
12041
+ 'util_displayHiddenVisually': !this.hasFocus && !this.value
12042
+ };
12043
+ }
12044
+
12033
12045
  get commonWrapperClasses() {
12034
12046
  return {
12035
12047
  'wrapper': true,
@@ -12111,10 +12123,10 @@ class AuroInput extends BaseInput {
12111
12123
  /**
12112
12124
  * Returns HTML for the HTML5 input element.
12113
12125
  * @private
12114
- * @param {boolean} [hideInputWhenBlurred=false] - If true, the input will be visually hidden when not focused and has no value.
12126
+ * @param {boolean} [useLegacyHiddenState=false] - If true, the input will be visually hidden when not focused and has no value.
12115
12127
  * @returns {html} - Returns HTML for the HTML5 input element.
12116
12128
  */
12117
- renderHtmlInput(hideInputWhenBlurred = false) {
12129
+ renderHtmlInput(useLegacyHiddenState = false) {
12118
12130
  const displayValueClasses = {
12119
12131
  'displayValue': true,
12120
12132
  'hasContent': this.hasDisplayValueContent,
@@ -12122,9 +12134,10 @@ class AuroInput extends BaseInput {
12122
12134
  'withValue': this.value && this.value.length > 0,
12123
12135
  };
12124
12136
 
12125
- const inputClasses = {
12126
- 'util_displayHiddenVisually': hideInputWhenBlurred && !this.hasFocus && !this.value
12127
- };
12137
+ // Remove this when the classic layout is sunset.
12138
+ const inputOverrideClasses = useLegacyHiddenState
12139
+ ? this.legacyInputClasses
12140
+ : this.commonInputClasses;
12128
12141
 
12129
12142
  return html`
12130
12143
  <label for=${this.id} class="${classMap(this.commonLabelClasses)}" part="label">
@@ -12146,7 +12159,7 @@ class AuroInput extends BaseInput {
12146
12159
  autocapitalize="${ifDefined(this.autocapitalize ? this.autocapitalize : undefined)}"
12147
12160
  autocomplete="${ifDefined(this.autocomplete ? this.autocomplete : undefined)}"
12148
12161
  autocorrect="${ifDefined(this.autocorrect ? this.autocorrect : undefined)}"
12149
- class="${classMap(inputClasses)}"
12162
+ class="${classMap(inputOverrideClasses)}"
12150
12163
  id="${this.inputId}"
12151
12164
  inputMode="${ifDefined(this.inputMode ? this.inputMode : undefined)}"
12152
12165
  lang="${ifDefined(this.lang)}"
@@ -13448,6 +13461,8 @@ class AuroCombobox extends AuroElement {
13448
13461
  constructor() {
13449
13462
  super();
13450
13463
 
13464
+ this.matchWidth = true;
13465
+
13451
13466
  this.privateDefaults();
13452
13467
  }
13453
13468
 
@@ -13581,6 +13596,14 @@ class AuroCombobox extends AuroElement {
13581
13596
  reflect: true
13582
13597
  },
13583
13598
 
13599
+ /**
13600
+ * If declared, the popover and trigger will be set to the same width.
13601
+ */
13602
+ matchWidth: {
13603
+ type: Boolean,
13604
+ reflect: true
13605
+ },
13606
+
13584
13607
  /**
13585
13608
  * If set, combobox will not filter menuoptions based in input.
13586
13609
  */
@@ -14468,7 +14491,7 @@ class AuroCombobox extends AuroElement {
14468
14491
  fluid
14469
14492
  for="dropdownMenu"
14470
14493
  layout="${this.layout}"
14471
- matchWidth
14494
+ matchWidth="${ifDefined(this.matchWidth)}"
14472
14495
  nocheckmark
14473
14496
  rounded
14474
14497
  shape="${this.shape}"
@@ -12022,7 +12022,7 @@ class AuroInput extends BaseInput {
12022
12022
  /**
12023
12023
  * Returns classmap configuration for html5 inputs in all layouts.
12024
12024
  * @private
12025
- * @returns {void}
12025
+ * @returns {object} - Returns classmap configuration for html5 inputs in all layouts.
12026
12026
  */
12027
12027
  get commonInputClasses() {
12028
12028
  return {
@@ -12030,6 +12030,18 @@ class AuroInput extends BaseInput {
12030
12030
  };
12031
12031
  }
12032
12032
 
12033
+ /**
12034
+ * Returns classmap configuration for html5 inputs in all layouts.
12035
+ * @private
12036
+ * @return {object} - Returns classmap configuration for "classic" html5 inputs.
12037
+ */
12038
+ get legacyInputClasses() {
12039
+ return {
12040
+ ...this.commonInputClasses,
12041
+ 'util_displayHiddenVisually': !this.hasFocus && !this.value
12042
+ };
12043
+ }
12044
+
12033
12045
  get commonWrapperClasses() {
12034
12046
  return {
12035
12047
  'wrapper': true,
@@ -12111,10 +12123,10 @@ class AuroInput extends BaseInput {
12111
12123
  /**
12112
12124
  * Returns HTML for the HTML5 input element.
12113
12125
  * @private
12114
- * @param {boolean} [hideInputWhenBlurred=false] - If true, the input will be visually hidden when not focused and has no value.
12126
+ * @param {boolean} [useLegacyHiddenState=false] - If true, the input will be visually hidden when not focused and has no value.
12115
12127
  * @returns {html} - Returns HTML for the HTML5 input element.
12116
12128
  */
12117
- renderHtmlInput(hideInputWhenBlurred = false) {
12129
+ renderHtmlInput(useLegacyHiddenState = false) {
12118
12130
  const displayValueClasses = {
12119
12131
  'displayValue': true,
12120
12132
  'hasContent': this.hasDisplayValueContent,
@@ -12122,9 +12134,10 @@ class AuroInput extends BaseInput {
12122
12134
  'withValue': this.value && this.value.length > 0,
12123
12135
  };
12124
12136
 
12125
- const inputClasses = {
12126
- 'util_displayHiddenVisually': hideInputWhenBlurred && !this.hasFocus && !this.value
12127
- };
12137
+ // Remove this when the classic layout is sunset.
12138
+ const inputOverrideClasses = useLegacyHiddenState
12139
+ ? this.legacyInputClasses
12140
+ : this.commonInputClasses;
12128
12141
 
12129
12142
  return html`
12130
12143
  <label for=${this.id} class="${classMap(this.commonLabelClasses)}" part="label">
@@ -12146,7 +12159,7 @@ class AuroInput extends BaseInput {
12146
12159
  autocapitalize="${ifDefined(this.autocapitalize ? this.autocapitalize : undefined)}"
12147
12160
  autocomplete="${ifDefined(this.autocomplete ? this.autocomplete : undefined)}"
12148
12161
  autocorrect="${ifDefined(this.autocorrect ? this.autocorrect : undefined)}"
12149
- class="${classMap(inputClasses)}"
12162
+ class="${classMap(inputOverrideClasses)}"
12150
12163
  id="${this.inputId}"
12151
12164
  inputMode="${ifDefined(this.inputMode ? this.inputMode : undefined)}"
12152
12165
  lang="${ifDefined(this.lang)}"
@@ -13448,6 +13461,8 @@ class AuroCombobox extends AuroElement {
13448
13461
  constructor() {
13449
13462
  super();
13450
13463
 
13464
+ this.matchWidth = true;
13465
+
13451
13466
  this.privateDefaults();
13452
13467
  }
13453
13468
 
@@ -13581,6 +13596,14 @@ class AuroCombobox extends AuroElement {
13581
13596
  reflect: true
13582
13597
  },
13583
13598
 
13599
+ /**
13600
+ * If declared, the popover and trigger will be set to the same width.
13601
+ */
13602
+ matchWidth: {
13603
+ type: Boolean,
13604
+ reflect: true
13605
+ },
13606
+
13584
13607
  /**
13585
13608
  * If set, combobox will not filter menuoptions based in input.
13586
13609
  */
@@ -14468,7 +14491,7 @@ class AuroCombobox extends AuroElement {
14468
14491
  fluid
14469
14492
  for="dropdownMenu"
14470
14493
  layout="${this.layout}"
14471
- matchWidth
14494
+ matchWidth="${ifDefined(this.matchWidth)}"
14472
14495
  nocheckmark
14473
14496
  rounded
14474
14497
  shape="${this.shape}"
@@ -23772,7 +23772,7 @@ class AuroInput extends BaseInput {
23772
23772
  /**
23773
23773
  * Returns classmap configuration for html5 inputs in all layouts.
23774
23774
  * @private
23775
- * @returns {void}
23775
+ * @returns {object} - Returns classmap configuration for html5 inputs in all layouts.
23776
23776
  */
23777
23777
  get commonInputClasses() {
23778
23778
  return {
@@ -23780,6 +23780,18 @@ class AuroInput extends BaseInput {
23780
23780
  };
23781
23781
  }
23782
23782
 
23783
+ /**
23784
+ * Returns classmap configuration for html5 inputs in all layouts.
23785
+ * @private
23786
+ * @return {object} - Returns classmap configuration for "classic" html5 inputs.
23787
+ */
23788
+ get legacyInputClasses() {
23789
+ return {
23790
+ ...this.commonInputClasses,
23791
+ 'util_displayHiddenVisually': !this.hasFocus && !this.value
23792
+ };
23793
+ }
23794
+
23783
23795
  get commonWrapperClasses() {
23784
23796
  return {
23785
23797
  'wrapper': true,
@@ -23861,10 +23873,10 @@ class AuroInput extends BaseInput {
23861
23873
  /**
23862
23874
  * Returns HTML for the HTML5 input element.
23863
23875
  * @private
23864
- * @param {boolean} [hideInputWhenBlurred=false] - If true, the input will be visually hidden when not focused and has no value.
23876
+ * @param {boolean} [useLegacyHiddenState=false] - If true, the input will be visually hidden when not focused and has no value.
23865
23877
  * @returns {html} - Returns HTML for the HTML5 input element.
23866
23878
  */
23867
- renderHtmlInput(hideInputWhenBlurred = false) {
23879
+ renderHtmlInput(useLegacyHiddenState = false) {
23868
23880
  const displayValueClasses = {
23869
23881
  'displayValue': true,
23870
23882
  'hasContent': this.hasDisplayValueContent,
@@ -23872,9 +23884,10 @@ class AuroInput extends BaseInput {
23872
23884
  'withValue': this.value && this.value.length > 0,
23873
23885
  };
23874
23886
 
23875
- const inputClasses = {
23876
- 'util_displayHiddenVisually': hideInputWhenBlurred && !this.hasFocus && !this.value
23877
- };
23887
+ // Remove this when the classic layout is sunset.
23888
+ const inputOverrideClasses = useLegacyHiddenState
23889
+ ? this.legacyInputClasses
23890
+ : this.commonInputClasses;
23878
23891
 
23879
23892
  return u$2`
23880
23893
  <label for=${this.id} class="${e(this.commonLabelClasses)}" part="label">
@@ -23896,7 +23909,7 @@ class AuroInput extends BaseInput {
23896
23909
  autocapitalize="${o(this.autocapitalize ? this.autocapitalize : undefined)}"
23897
23910
  autocomplete="${o(this.autocomplete ? this.autocomplete : undefined)}"
23898
23911
  autocorrect="${o(this.autocorrect ? this.autocorrect : undefined)}"
23899
- class="${e(inputClasses)}"
23912
+ class="${e(inputOverrideClasses)}"
23900
23913
  id="${this.inputId}"
23901
23914
  inputMode="${o(this.inputMode ? this.inputMode : undefined)}"
23902
23915
  lang="${o(this.lang)}"
@@ -23513,7 +23513,7 @@ class AuroInput extends BaseInput {
23513
23513
  /**
23514
23514
  * Returns classmap configuration for html5 inputs in all layouts.
23515
23515
  * @private
23516
- * @returns {void}
23516
+ * @returns {object} - Returns classmap configuration for html5 inputs in all layouts.
23517
23517
  */
23518
23518
  get commonInputClasses() {
23519
23519
  return {
@@ -23521,6 +23521,18 @@ class AuroInput extends BaseInput {
23521
23521
  };
23522
23522
  }
23523
23523
 
23524
+ /**
23525
+ * Returns classmap configuration for html5 inputs in all layouts.
23526
+ * @private
23527
+ * @return {object} - Returns classmap configuration for "classic" html5 inputs.
23528
+ */
23529
+ get legacyInputClasses() {
23530
+ return {
23531
+ ...this.commonInputClasses,
23532
+ 'util_displayHiddenVisually': !this.hasFocus && !this.value
23533
+ };
23534
+ }
23535
+
23524
23536
  get commonWrapperClasses() {
23525
23537
  return {
23526
23538
  'wrapper': true,
@@ -23602,10 +23614,10 @@ class AuroInput extends BaseInput {
23602
23614
  /**
23603
23615
  * Returns HTML for the HTML5 input element.
23604
23616
  * @private
23605
- * @param {boolean} [hideInputWhenBlurred=false] - If true, the input will be visually hidden when not focused and has no value.
23617
+ * @param {boolean} [useLegacyHiddenState=false] - If true, the input will be visually hidden when not focused and has no value.
23606
23618
  * @returns {html} - Returns HTML for the HTML5 input element.
23607
23619
  */
23608
- renderHtmlInput(hideInputWhenBlurred = false) {
23620
+ renderHtmlInput(useLegacyHiddenState = false) {
23609
23621
  const displayValueClasses = {
23610
23622
  'displayValue': true,
23611
23623
  'hasContent': this.hasDisplayValueContent,
@@ -23613,9 +23625,10 @@ class AuroInput extends BaseInput {
23613
23625
  'withValue': this.value && this.value.length > 0,
23614
23626
  };
23615
23627
 
23616
- const inputClasses = {
23617
- 'util_displayHiddenVisually': hideInputWhenBlurred && !this.hasFocus && !this.value
23618
- };
23628
+ // Remove this when the classic layout is sunset.
23629
+ const inputOverrideClasses = useLegacyHiddenState
23630
+ ? this.legacyInputClasses
23631
+ : this.commonInputClasses;
23619
23632
 
23620
23633
  return u$2`
23621
23634
  <label for=${this.id} class="${e(this.commonLabelClasses)}" part="label">
@@ -23637,7 +23650,7 @@ class AuroInput extends BaseInput {
23637
23650
  autocapitalize="${o(this.autocapitalize ? this.autocapitalize : undefined)}"
23638
23651
  autocomplete="${o(this.autocomplete ? this.autocomplete : undefined)}"
23639
23652
  autocorrect="${o(this.autocorrect ? this.autocorrect : undefined)}"
23640
- class="${e(inputClasses)}"
23653
+ class="${e(inputOverrideClasses)}"
23641
23654
  id="${this.inputId}"
23642
23655
  inputMode="${o(this.inputMode ? this.inputMode : undefined)}"
23643
23656
  lang="${o(this.lang)}"
@@ -23449,7 +23449,7 @@ class AuroInput extends BaseInput {
23449
23449
  /**
23450
23450
  * Returns classmap configuration for html5 inputs in all layouts.
23451
23451
  * @private
23452
- * @returns {void}
23452
+ * @returns {object} - Returns classmap configuration for html5 inputs in all layouts.
23453
23453
  */
23454
23454
  get commonInputClasses() {
23455
23455
  return {
@@ -23457,6 +23457,18 @@ class AuroInput extends BaseInput {
23457
23457
  };
23458
23458
  }
23459
23459
 
23460
+ /**
23461
+ * Returns classmap configuration for html5 inputs in all layouts.
23462
+ * @private
23463
+ * @return {object} - Returns classmap configuration for "classic" html5 inputs.
23464
+ */
23465
+ get legacyInputClasses() {
23466
+ return {
23467
+ ...this.commonInputClasses,
23468
+ 'util_displayHiddenVisually': !this.hasFocus && !this.value
23469
+ };
23470
+ }
23471
+
23460
23472
  get commonWrapperClasses() {
23461
23473
  return {
23462
23474
  'wrapper': true,
@@ -23538,10 +23550,10 @@ class AuroInput extends BaseInput {
23538
23550
  /**
23539
23551
  * Returns HTML for the HTML5 input element.
23540
23552
  * @private
23541
- * @param {boolean} [hideInputWhenBlurred=false] - If true, the input will be visually hidden when not focused and has no value.
23553
+ * @param {boolean} [useLegacyHiddenState=false] - If true, the input will be visually hidden when not focused and has no value.
23542
23554
  * @returns {html} - Returns HTML for the HTML5 input element.
23543
23555
  */
23544
- renderHtmlInput(hideInputWhenBlurred = false) {
23556
+ renderHtmlInput(useLegacyHiddenState = false) {
23545
23557
  const displayValueClasses = {
23546
23558
  'displayValue': true,
23547
23559
  'hasContent': this.hasDisplayValueContent,
@@ -23549,9 +23561,10 @@ class AuroInput extends BaseInput {
23549
23561
  'withValue': this.value && this.value.length > 0,
23550
23562
  };
23551
23563
 
23552
- const inputClasses = {
23553
- 'util_displayHiddenVisually': hideInputWhenBlurred && !this.hasFocus && !this.value
23554
- };
23564
+ // Remove this when the classic layout is sunset.
23565
+ const inputOverrideClasses = useLegacyHiddenState
23566
+ ? this.legacyInputClasses
23567
+ : this.commonInputClasses;
23555
23568
 
23556
23569
  return html$1`
23557
23570
  <label for=${this.id} class="${classMap(this.commonLabelClasses)}" part="label">
@@ -23573,7 +23586,7 @@ class AuroInput extends BaseInput {
23573
23586
  autocapitalize="${ifDefined(this.autocapitalize ? this.autocapitalize : undefined)}"
23574
23587
  autocomplete="${ifDefined(this.autocomplete ? this.autocomplete : undefined)}"
23575
23588
  autocorrect="${ifDefined(this.autocorrect ? this.autocorrect : undefined)}"
23576
- class="${classMap(inputClasses)}"
23589
+ class="${classMap(inputOverrideClasses)}"
23577
23590
  id="${this.inputId}"
23578
23591
  inputMode="${ifDefined(this.inputMode ? this.inputMode : undefined)}"
23579
23592
  lang="${ifDefined(this.lang)}"
@@ -23449,7 +23449,7 @@ class AuroInput extends BaseInput {
23449
23449
  /**
23450
23450
  * Returns classmap configuration for html5 inputs in all layouts.
23451
23451
  * @private
23452
- * @returns {void}
23452
+ * @returns {object} - Returns classmap configuration for html5 inputs in all layouts.
23453
23453
  */
23454
23454
  get commonInputClasses() {
23455
23455
  return {
@@ -23457,6 +23457,18 @@ class AuroInput extends BaseInput {
23457
23457
  };
23458
23458
  }
23459
23459
 
23460
+ /**
23461
+ * Returns classmap configuration for html5 inputs in all layouts.
23462
+ * @private
23463
+ * @return {object} - Returns classmap configuration for "classic" html5 inputs.
23464
+ */
23465
+ get legacyInputClasses() {
23466
+ return {
23467
+ ...this.commonInputClasses,
23468
+ 'util_displayHiddenVisually': !this.hasFocus && !this.value
23469
+ };
23470
+ }
23471
+
23460
23472
  get commonWrapperClasses() {
23461
23473
  return {
23462
23474
  'wrapper': true,
@@ -23538,10 +23550,10 @@ class AuroInput extends BaseInput {
23538
23550
  /**
23539
23551
  * Returns HTML for the HTML5 input element.
23540
23552
  * @private
23541
- * @param {boolean} [hideInputWhenBlurred=false] - If true, the input will be visually hidden when not focused and has no value.
23553
+ * @param {boolean} [useLegacyHiddenState=false] - If true, the input will be visually hidden when not focused and has no value.
23542
23554
  * @returns {html} - Returns HTML for the HTML5 input element.
23543
23555
  */
23544
- renderHtmlInput(hideInputWhenBlurred = false) {
23556
+ renderHtmlInput(useLegacyHiddenState = false) {
23545
23557
  const displayValueClasses = {
23546
23558
  'displayValue': true,
23547
23559
  'hasContent': this.hasDisplayValueContent,
@@ -23549,9 +23561,10 @@ class AuroInput extends BaseInput {
23549
23561
  'withValue': this.value && this.value.length > 0,
23550
23562
  };
23551
23563
 
23552
- const inputClasses = {
23553
- 'util_displayHiddenVisually': hideInputWhenBlurred && !this.hasFocus && !this.value
23554
- };
23564
+ // Remove this when the classic layout is sunset.
23565
+ const inputOverrideClasses = useLegacyHiddenState
23566
+ ? this.legacyInputClasses
23567
+ : this.commonInputClasses;
23555
23568
 
23556
23569
  return html$1`
23557
23570
  <label for=${this.id} class="${classMap(this.commonLabelClasses)}" part="label">
@@ -23573,7 +23586,7 @@ class AuroInput extends BaseInput {
23573
23586
  autocapitalize="${ifDefined(this.autocapitalize ? this.autocapitalize : undefined)}"
23574
23587
  autocomplete="${ifDefined(this.autocomplete ? this.autocomplete : undefined)}"
23575
23588
  autocorrect="${ifDefined(this.autocorrect ? this.autocorrect : undefined)}"
23576
- class="${classMap(inputClasses)}"
23589
+ class="${classMap(inputOverrideClasses)}"
23577
23590
  id="${this.inputId}"
23578
23591
  inputMode="${ifDefined(this.inputMode ? this.inputMode : undefined)}"
23579
23592
  lang="${ifDefined(this.lang)}"
@@ -7268,7 +7268,7 @@ class AuroInput extends BaseInput {
7268
7268
  /**
7269
7269
  * Returns classmap configuration for html5 inputs in all layouts.
7270
7270
  * @private
7271
- * @returns {void}
7271
+ * @returns {object} - Returns classmap configuration for html5 inputs in all layouts.
7272
7272
  */
7273
7273
  get commonInputClasses() {
7274
7274
  return {
@@ -7276,6 +7276,18 @@ class AuroInput extends BaseInput {
7276
7276
  };
7277
7277
  }
7278
7278
 
7279
+ /**
7280
+ * Returns classmap configuration for html5 inputs in all layouts.
7281
+ * @private
7282
+ * @return {object} - Returns classmap configuration for "classic" html5 inputs.
7283
+ */
7284
+ get legacyInputClasses() {
7285
+ return {
7286
+ ...this.commonInputClasses,
7287
+ 'util_displayHiddenVisually': !this.hasFocus && !this.value
7288
+ };
7289
+ }
7290
+
7279
7291
  get commonWrapperClasses() {
7280
7292
  return {
7281
7293
  'wrapper': true,
@@ -7357,10 +7369,10 @@ class AuroInput extends BaseInput {
7357
7369
  /**
7358
7370
  * Returns HTML for the HTML5 input element.
7359
7371
  * @private
7360
- * @param {boolean} [hideInputWhenBlurred=false] - If true, the input will be visually hidden when not focused and has no value.
7372
+ * @param {boolean} [useLegacyHiddenState=false] - If true, the input will be visually hidden when not focused and has no value.
7361
7373
  * @returns {html} - Returns HTML for the HTML5 input element.
7362
7374
  */
7363
- renderHtmlInput(hideInputWhenBlurred = false) {
7375
+ renderHtmlInput(useLegacyHiddenState = false) {
7364
7376
  const displayValueClasses = {
7365
7377
  'displayValue': true,
7366
7378
  'hasContent': this.hasDisplayValueContent,
@@ -7368,9 +7380,10 @@ class AuroInput extends BaseInput {
7368
7380
  'withValue': this.value && this.value.length > 0,
7369
7381
  };
7370
7382
 
7371
- const inputClasses = {
7372
- 'util_displayHiddenVisually': hideInputWhenBlurred && !this.hasFocus && !this.value
7373
- };
7383
+ // Remove this when the classic layout is sunset.
7384
+ const inputOverrideClasses = useLegacyHiddenState
7385
+ ? this.legacyInputClasses
7386
+ : this.commonInputClasses;
7374
7387
 
7375
7388
  return u$2`
7376
7389
  <label for=${this.id} class="${e(this.commonLabelClasses)}" part="label">
@@ -7392,7 +7405,7 @@ class AuroInput extends BaseInput {
7392
7405
  autocapitalize="${o(this.autocapitalize ? this.autocapitalize : undefined)}"
7393
7406
  autocomplete="${o(this.autocomplete ? this.autocomplete : undefined)}"
7394
7407
  autocorrect="${o(this.autocorrect ? this.autocorrect : undefined)}"
7395
- class="${e(inputClasses)}"
7408
+ class="${e(inputOverrideClasses)}"
7396
7409
  id="${this.inputId}"
7397
7410
  inputMode="${o(this.inputMode ? this.inputMode : undefined)}"
7398
7411
  lang="${o(this.lang)}"
@@ -7193,7 +7193,7 @@ class AuroInput extends BaseInput {
7193
7193
  /**
7194
7194
  * Returns classmap configuration for html5 inputs in all layouts.
7195
7195
  * @private
7196
- * @returns {void}
7196
+ * @returns {object} - Returns classmap configuration for html5 inputs in all layouts.
7197
7197
  */
7198
7198
  get commonInputClasses() {
7199
7199
  return {
@@ -7201,6 +7201,18 @@ class AuroInput extends BaseInput {
7201
7201
  };
7202
7202
  }
7203
7203
 
7204
+ /**
7205
+ * Returns classmap configuration for html5 inputs in all layouts.
7206
+ * @private
7207
+ * @return {object} - Returns classmap configuration for "classic" html5 inputs.
7208
+ */
7209
+ get legacyInputClasses() {
7210
+ return {
7211
+ ...this.commonInputClasses,
7212
+ 'util_displayHiddenVisually': !this.hasFocus && !this.value
7213
+ };
7214
+ }
7215
+
7204
7216
  get commonWrapperClasses() {
7205
7217
  return {
7206
7218
  'wrapper': true,
@@ -7282,10 +7294,10 @@ class AuroInput extends BaseInput {
7282
7294
  /**
7283
7295
  * Returns HTML for the HTML5 input element.
7284
7296
  * @private
7285
- * @param {boolean} [hideInputWhenBlurred=false] - If true, the input will be visually hidden when not focused and has no value.
7297
+ * @param {boolean} [useLegacyHiddenState=false] - If true, the input will be visually hidden when not focused and has no value.
7286
7298
  * @returns {html} - Returns HTML for the HTML5 input element.
7287
7299
  */
7288
- renderHtmlInput(hideInputWhenBlurred = false) {
7300
+ renderHtmlInput(useLegacyHiddenState = false) {
7289
7301
  const displayValueClasses = {
7290
7302
  'displayValue': true,
7291
7303
  'hasContent': this.hasDisplayValueContent,
@@ -7293,9 +7305,10 @@ class AuroInput extends BaseInput {
7293
7305
  'withValue': this.value && this.value.length > 0,
7294
7306
  };
7295
7307
 
7296
- const inputClasses = {
7297
- 'util_displayHiddenVisually': hideInputWhenBlurred && !this.hasFocus && !this.value
7298
- };
7308
+ // Remove this when the classic layout is sunset.
7309
+ const inputOverrideClasses = useLegacyHiddenState
7310
+ ? this.legacyInputClasses
7311
+ : this.commonInputClasses;
7299
7312
 
7300
7313
  return u$2`
7301
7314
  <label for=${this.id} class="${e(this.commonLabelClasses)}" part="label">
@@ -7317,7 +7330,7 @@ class AuroInput extends BaseInput {
7317
7330
  autocapitalize="${o(this.autocapitalize ? this.autocapitalize : undefined)}"
7318
7331
  autocomplete="${o(this.autocomplete ? this.autocomplete : undefined)}"
7319
7332
  autocorrect="${o(this.autocorrect ? this.autocorrect : undefined)}"
7320
- class="${e(inputClasses)}"
7333
+ class="${e(inputOverrideClasses)}"
7321
7334
  id="${this.inputId}"
7322
7335
  inputMode="${o(this.inputMode ? this.inputMode : undefined)}"
7323
7336
  lang="${o(this.lang)}"
@@ -34,9 +34,15 @@ export class AuroInput extends BaseInput {
34
34
  /**
35
35
  * Returns classmap configuration for html5 inputs in all layouts.
36
36
  * @private
37
- * @returns {void}
37
+ * @returns {object} - Returns classmap configuration for html5 inputs in all layouts.
38
38
  */
39
39
  private get commonInputClasses();
40
+ /**
41
+ * Returns classmap configuration for html5 inputs in all layouts.
42
+ * @private
43
+ * @return {object} - Returns classmap configuration for "classic" html5 inputs.
44
+ */
45
+ private get legacyInputClasses();
40
46
  get commonWrapperClasses(): {
41
47
  wrapper: boolean;
42
48
  withValue: boolean;
@@ -68,7 +74,7 @@ export class AuroInput extends BaseInput {
68
74
  /**
69
75
  * Returns HTML for the HTML5 input element.
70
76
  * @private
71
- * @param {boolean} [hideInputWhenBlurred=false] - If true, the input will be visually hidden when not focused and has no value.
77
+ * @param {boolean} [useLegacyHiddenState=false] - If true, the input will be visually hidden when not focused and has no value.
72
78
  * @returns {html} - Returns HTML for the HTML5 input element.
73
79
  */
74
80
  private renderHtmlInput;
@@ -7117,7 +7117,7 @@ class AuroInput extends BaseInput {
7117
7117
  /**
7118
7118
  * Returns classmap configuration for html5 inputs in all layouts.
7119
7119
  * @private
7120
- * @returns {void}
7120
+ * @returns {object} - Returns classmap configuration for html5 inputs in all layouts.
7121
7121
  */
7122
7122
  get commonInputClasses() {
7123
7123
  return {
@@ -7125,6 +7125,18 @@ class AuroInput extends BaseInput {
7125
7125
  };
7126
7126
  }
7127
7127
 
7128
+ /**
7129
+ * Returns classmap configuration for html5 inputs in all layouts.
7130
+ * @private
7131
+ * @return {object} - Returns classmap configuration for "classic" html5 inputs.
7132
+ */
7133
+ get legacyInputClasses() {
7134
+ return {
7135
+ ...this.commonInputClasses,
7136
+ 'util_displayHiddenVisually': !this.hasFocus && !this.value
7137
+ };
7138
+ }
7139
+
7128
7140
  get commonWrapperClasses() {
7129
7141
  return {
7130
7142
  'wrapper': true,
@@ -7206,10 +7218,10 @@ class AuroInput extends BaseInput {
7206
7218
  /**
7207
7219
  * Returns HTML for the HTML5 input element.
7208
7220
  * @private
7209
- * @param {boolean} [hideInputWhenBlurred=false] - If true, the input will be visually hidden when not focused and has no value.
7221
+ * @param {boolean} [useLegacyHiddenState=false] - If true, the input will be visually hidden when not focused and has no value.
7210
7222
  * @returns {html} - Returns HTML for the HTML5 input element.
7211
7223
  */
7212
- renderHtmlInput(hideInputWhenBlurred = false) {
7224
+ renderHtmlInput(useLegacyHiddenState = false) {
7213
7225
  const displayValueClasses = {
7214
7226
  'displayValue': true,
7215
7227
  'hasContent': this.hasDisplayValueContent,
@@ -7217,9 +7229,10 @@ class AuroInput extends BaseInput {
7217
7229
  'withValue': this.value && this.value.length > 0,
7218
7230
  };
7219
7231
 
7220
- const inputClasses = {
7221
- 'util_displayHiddenVisually': hideInputWhenBlurred && !this.hasFocus && !this.value
7222
- };
7232
+ // Remove this when the classic layout is sunset.
7233
+ const inputOverrideClasses = useLegacyHiddenState
7234
+ ? this.legacyInputClasses
7235
+ : this.commonInputClasses;
7223
7236
 
7224
7237
  return html$1`
7225
7238
  <label for=${this.id} class="${classMap(this.commonLabelClasses)}" part="label">
@@ -7241,7 +7254,7 @@ class AuroInput extends BaseInput {
7241
7254
  autocapitalize="${ifDefined(this.autocapitalize ? this.autocapitalize : undefined)}"
7242
7255
  autocomplete="${ifDefined(this.autocomplete ? this.autocomplete : undefined)}"
7243
7256
  autocorrect="${ifDefined(this.autocorrect ? this.autocorrect : undefined)}"
7244
- class="${classMap(inputClasses)}"
7257
+ class="${classMap(inputOverrideClasses)}"
7245
7258
  id="${this.inputId}"
7246
7259
  inputMode="${ifDefined(this.inputMode ? this.inputMode : undefined)}"
7247
7260
  lang="${ifDefined(this.lang)}"
@@ -7117,7 +7117,7 @@ class AuroInput extends BaseInput {
7117
7117
  /**
7118
7118
  * Returns classmap configuration for html5 inputs in all layouts.
7119
7119
  * @private
7120
- * @returns {void}
7120
+ * @returns {object} - Returns classmap configuration for html5 inputs in all layouts.
7121
7121
  */
7122
7122
  get commonInputClasses() {
7123
7123
  return {
@@ -7125,6 +7125,18 @@ class AuroInput extends BaseInput {
7125
7125
  };
7126
7126
  }
7127
7127
 
7128
+ /**
7129
+ * Returns classmap configuration for html5 inputs in all layouts.
7130
+ * @private
7131
+ * @return {object} - Returns classmap configuration for "classic" html5 inputs.
7132
+ */
7133
+ get legacyInputClasses() {
7134
+ return {
7135
+ ...this.commonInputClasses,
7136
+ 'util_displayHiddenVisually': !this.hasFocus && !this.value
7137
+ };
7138
+ }
7139
+
7128
7140
  get commonWrapperClasses() {
7129
7141
  return {
7130
7142
  'wrapper': true,
@@ -7206,10 +7218,10 @@ class AuroInput extends BaseInput {
7206
7218
  /**
7207
7219
  * Returns HTML for the HTML5 input element.
7208
7220
  * @private
7209
- * @param {boolean} [hideInputWhenBlurred=false] - If true, the input will be visually hidden when not focused and has no value.
7221
+ * @param {boolean} [useLegacyHiddenState=false] - If true, the input will be visually hidden when not focused and has no value.
7210
7222
  * @returns {html} - Returns HTML for the HTML5 input element.
7211
7223
  */
7212
- renderHtmlInput(hideInputWhenBlurred = false) {
7224
+ renderHtmlInput(useLegacyHiddenState = false) {
7213
7225
  const displayValueClasses = {
7214
7226
  'displayValue': true,
7215
7227
  'hasContent': this.hasDisplayValueContent,
@@ -7217,9 +7229,10 @@ class AuroInput extends BaseInput {
7217
7229
  'withValue': this.value && this.value.length > 0,
7218
7230
  };
7219
7231
 
7220
- const inputClasses = {
7221
- 'util_displayHiddenVisually': hideInputWhenBlurred && !this.hasFocus && !this.value
7222
- };
7232
+ // Remove this when the classic layout is sunset.
7233
+ const inputOverrideClasses = useLegacyHiddenState
7234
+ ? this.legacyInputClasses
7235
+ : this.commonInputClasses;
7223
7236
 
7224
7237
  return html$1`
7225
7238
  <label for=${this.id} class="${classMap(this.commonLabelClasses)}" part="label">
@@ -7241,7 +7254,7 @@ class AuroInput extends BaseInput {
7241
7254
  autocapitalize="${ifDefined(this.autocapitalize ? this.autocapitalize : undefined)}"
7242
7255
  autocomplete="${ifDefined(this.autocomplete ? this.autocomplete : undefined)}"
7243
7256
  autocorrect="${ifDefined(this.autocorrect ? this.autocorrect : undefined)}"
7244
- class="${classMap(inputClasses)}"
7257
+ class="${classMap(inputOverrideClasses)}"
7245
7258
  id="${this.inputId}"
7246
7259
  inputMode="${ifDefined(this.inputMode ? this.inputMode : undefined)}"
7247
7260
  lang="${ifDefined(this.lang)}"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aurodesignsystem-dev/auro-formkit",
3
- "version": "0.0.0-pr624.2",
3
+ "version": "0.0.0-pr624.4",
4
4
  "description": "A collection of web components used to build forms.",
5
5
  "homepage": "https://github.com/AlaskaAirlines/auro-formkit#readme",
6
6
  "bugs": {