@aurodesignsystem-dev/auro-formkit 0.0.0-pr1215.0 → 0.0.0-pr1218.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -21132,7 +21132,6 @@ class BaseInput extends AuroElement$1 {
21132
21132
  this.validationCCLength = undefined;
21133
21133
  this.hasValue = false;
21134
21134
  this.label = 'Input label is undefined';
21135
- this.placeholderStr = '';
21136
21135
 
21137
21136
  this.allowedInputTypes = [
21138
21137
  "text",
@@ -21289,6 +21288,26 @@ class BaseInput extends AuroElement$1 {
21289
21288
  reflect: true
21290
21289
  },
21291
21290
 
21291
+ /**
21292
+ * @private
21293
+ * Flag to indicate if the input currently has value.
21294
+ */
21295
+ hasValue: {
21296
+ type: Boolean,
21297
+ reflect: false,
21298
+ attribute: false
21299
+ },
21300
+
21301
+ /**
21302
+ * @private
21303
+ * Flag to indicate if the input currently has focus.
21304
+ */
21305
+ hasFocus: {
21306
+ type: Boolean,
21307
+ reflect: false,
21308
+ attribute: false
21309
+ },
21310
+
21292
21311
  /**
21293
21312
  * 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.
21294
21313
  */
@@ -21591,7 +21610,6 @@ class BaseInput extends AuroElement$1 {
21591
21610
  this.ValidityMessageOverride = this.setCustomValidity;
21592
21611
  }
21593
21612
 
21594
- this.getPlaceholder();
21595
21613
  this.setCustomHelpTextMessage();
21596
21614
  this.configureAutoFormatting();
21597
21615
  }
@@ -21676,10 +21694,6 @@ class BaseInput extends AuroElement$1 {
21676
21694
  updated(changedProperties) {
21677
21695
  super.updated(changedProperties);
21678
21696
 
21679
- if (changedProperties.has('placeholder')) {
21680
- this.getPlaceholder();
21681
- }
21682
-
21683
21697
  if (changedProperties.has('format')) {
21684
21698
  this.configureAutoFormatting();
21685
21699
  }
@@ -21713,10 +21727,8 @@ class BaseInput extends AuroElement$1 {
21713
21727
  if (changedProperties.has('value')) {
21714
21728
  if (this.value && this.value.length > 0) {
21715
21729
  this.hasValue = true;
21716
- this.requestUpdate();
21717
21730
  } else {
21718
21731
  this.hasValue = false;
21719
- this.requestUpdate();
21720
21732
  }
21721
21733
 
21722
21734
  if (this.value !== this.inputElement.value) {
@@ -21902,8 +21914,6 @@ class BaseInput extends AuroElement$1 {
21902
21914
  handleFocusin() {
21903
21915
  this.hasFocus = true;
21904
21916
 
21905
- this.getPlaceholder();
21906
-
21907
21917
  this.touched = true;
21908
21918
  }
21909
21919
 
@@ -21914,7 +21924,6 @@ class BaseInput extends AuroElement$1 {
21914
21924
  */
21915
21925
  handleFocusout() {
21916
21926
  this.hasFocus = false;
21917
- this.getPlaceholder();
21918
21927
  }
21919
21928
 
21920
21929
  /**
@@ -22051,16 +22060,11 @@ class BaseInput extends AuroElement$1 {
22051
22060
  * @private
22052
22061
  * @returns {void}
22053
22062
  */
22054
- getPlaceholder() {
22055
- if (this.placeholder) {
22056
- this.placeholderStr = this.placeholder;
22057
- } else if (this.type === 'date') {
22058
- this.placeholderStr = this.format ? this.format.toUpperCase() : 'MM/DD/YYYY';
22063
+ get placeholderStr() {
22064
+ if (!this.placeholder && this.type === 'date') {
22065
+ return this.format ? this.format.toUpperCase() : 'MM/DD/YYYY';
22059
22066
  }
22060
-
22061
- this.requestUpdate();
22062
-
22063
- return this.placeholderStr;
22067
+ return this.placeholder || "";
22064
22068
  }
22065
22069
 
22066
22070
  /**
@@ -22642,7 +22646,7 @@ class AuroInput extends BaseInput {
22642
22646
  (
22643
22647
  (!this.value || this.value.length === 0) &&
22644
22648
  !this.hasFocus &&
22645
- (!this.placeholder || this.placeholder === '')
22649
+ (!this.placeholderStr || this.placeholderStr === '')
22646
22650
  );
22647
22651
  }
22648
22652
 
@@ -22687,11 +22691,11 @@ class AuroInput extends BaseInput {
22687
22691
  }
22688
22692
 
22689
22693
  if (this.layout === 'snowflake') {
22690
- return this.hasValue || this.hasFocus || this.placeholder ? 'body-xs' : 'body-lg';
22694
+ return this.hasValue || this.hasFocus || this.placeholderStr ? 'body-xs' : 'body-lg';
22691
22695
  }
22692
22696
 
22693
22697
  // classic layout (default)
22694
- return ((!this.value || this.value.length === 0) && !this.placeholder && !this.hasFocus) ? 'body-default' : 'body-xs';
22698
+ return ((!this.value || this.value.length === 0) && !this.placeholderStr && !this.hasFocus) ? 'body-default' : 'body-xs';
22695
22699
  }
22696
22700
 
22697
22701
  /**
@@ -21057,7 +21057,6 @@ class BaseInput extends AuroElement$1 {
21057
21057
  this.validationCCLength = undefined;
21058
21058
  this.hasValue = false;
21059
21059
  this.label = 'Input label is undefined';
21060
- this.placeholderStr = '';
21061
21060
 
21062
21061
  this.allowedInputTypes = [
21063
21062
  "text",
@@ -21214,6 +21213,26 @@ class BaseInput extends AuroElement$1 {
21214
21213
  reflect: true
21215
21214
  },
21216
21215
 
21216
+ /**
21217
+ * @private
21218
+ * Flag to indicate if the input currently has value.
21219
+ */
21220
+ hasValue: {
21221
+ type: Boolean,
21222
+ reflect: false,
21223
+ attribute: false
21224
+ },
21225
+
21226
+ /**
21227
+ * @private
21228
+ * Flag to indicate if the input currently has focus.
21229
+ */
21230
+ hasFocus: {
21231
+ type: Boolean,
21232
+ reflect: false,
21233
+ attribute: false
21234
+ },
21235
+
21217
21236
  /**
21218
21237
  * 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.
21219
21238
  */
@@ -21516,7 +21535,6 @@ class BaseInput extends AuroElement$1 {
21516
21535
  this.ValidityMessageOverride = this.setCustomValidity;
21517
21536
  }
21518
21537
 
21519
- this.getPlaceholder();
21520
21538
  this.setCustomHelpTextMessage();
21521
21539
  this.configureAutoFormatting();
21522
21540
  }
@@ -21601,10 +21619,6 @@ class BaseInput extends AuroElement$1 {
21601
21619
  updated(changedProperties) {
21602
21620
  super.updated(changedProperties);
21603
21621
 
21604
- if (changedProperties.has('placeholder')) {
21605
- this.getPlaceholder();
21606
- }
21607
-
21608
21622
  if (changedProperties.has('format')) {
21609
21623
  this.configureAutoFormatting();
21610
21624
  }
@@ -21638,10 +21652,8 @@ class BaseInput extends AuroElement$1 {
21638
21652
  if (changedProperties.has('value')) {
21639
21653
  if (this.value && this.value.length > 0) {
21640
21654
  this.hasValue = true;
21641
- this.requestUpdate();
21642
21655
  } else {
21643
21656
  this.hasValue = false;
21644
- this.requestUpdate();
21645
21657
  }
21646
21658
 
21647
21659
  if (this.value !== this.inputElement.value) {
@@ -21827,8 +21839,6 @@ class BaseInput extends AuroElement$1 {
21827
21839
  handleFocusin() {
21828
21840
  this.hasFocus = true;
21829
21841
 
21830
- this.getPlaceholder();
21831
-
21832
21842
  this.touched = true;
21833
21843
  }
21834
21844
 
@@ -21839,7 +21849,6 @@ class BaseInput extends AuroElement$1 {
21839
21849
  */
21840
21850
  handleFocusout() {
21841
21851
  this.hasFocus = false;
21842
- this.getPlaceholder();
21843
21852
  }
21844
21853
 
21845
21854
  /**
@@ -21976,16 +21985,11 @@ class BaseInput extends AuroElement$1 {
21976
21985
  * @private
21977
21986
  * @returns {void}
21978
21987
  */
21979
- getPlaceholder() {
21980
- if (this.placeholder) {
21981
- this.placeholderStr = this.placeholder;
21982
- } else if (this.type === 'date') {
21983
- this.placeholderStr = this.format ? this.format.toUpperCase() : 'MM/DD/YYYY';
21988
+ get placeholderStr() {
21989
+ if (!this.placeholder && this.type === 'date') {
21990
+ return this.format ? this.format.toUpperCase() : 'MM/DD/YYYY';
21984
21991
  }
21985
-
21986
- this.requestUpdate();
21987
-
21988
- return this.placeholderStr;
21992
+ return this.placeholder || "";
21989
21993
  }
21990
21994
 
21991
21995
  /**
@@ -22567,7 +22571,7 @@ class AuroInput extends BaseInput {
22567
22571
  (
22568
22572
  (!this.value || this.value.length === 0) &&
22569
22573
  !this.hasFocus &&
22570
- (!this.placeholder || this.placeholder === '')
22574
+ (!this.placeholderStr || this.placeholderStr === '')
22571
22575
  );
22572
22576
  }
22573
22577
 
@@ -22612,11 +22616,11 @@ class AuroInput extends BaseInput {
22612
22616
  }
22613
22617
 
22614
22618
  if (this.layout === 'snowflake') {
22615
- return this.hasValue || this.hasFocus || this.placeholder ? 'body-xs' : 'body-lg';
22619
+ return this.hasValue || this.hasFocus || this.placeholderStr ? 'body-xs' : 'body-lg';
22616
22620
  }
22617
22621
 
22618
22622
  // classic layout (default)
22619
- return ((!this.value || this.value.length === 0) && !this.placeholder && !this.hasFocus) ? 'body-default' : 'body-xs';
22623
+ return ((!this.value || this.value.length === 0) && !this.placeholderStr && !this.hasFocus) ? 'body-default' : 'body-xs';
22620
22624
  }
22621
22625
 
22622
22626
  /**
@@ -21057,7 +21057,6 @@ class BaseInput extends AuroElement$1 {
21057
21057
  this.validationCCLength = undefined;
21058
21058
  this.hasValue = false;
21059
21059
  this.label = 'Input label is undefined';
21060
- this.placeholderStr = '';
21061
21060
 
21062
21061
  this.allowedInputTypes = [
21063
21062
  "text",
@@ -21214,6 +21213,26 @@ class BaseInput extends AuroElement$1 {
21214
21213
  reflect: true
21215
21214
  },
21216
21215
 
21216
+ /**
21217
+ * @private
21218
+ * Flag to indicate if the input currently has value.
21219
+ */
21220
+ hasValue: {
21221
+ type: Boolean,
21222
+ reflect: false,
21223
+ attribute: false
21224
+ },
21225
+
21226
+ /**
21227
+ * @private
21228
+ * Flag to indicate if the input currently has focus.
21229
+ */
21230
+ hasFocus: {
21231
+ type: Boolean,
21232
+ reflect: false,
21233
+ attribute: false
21234
+ },
21235
+
21217
21236
  /**
21218
21237
  * 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.
21219
21238
  */
@@ -21516,7 +21535,6 @@ class BaseInput extends AuroElement$1 {
21516
21535
  this.ValidityMessageOverride = this.setCustomValidity;
21517
21536
  }
21518
21537
 
21519
- this.getPlaceholder();
21520
21538
  this.setCustomHelpTextMessage();
21521
21539
  this.configureAutoFormatting();
21522
21540
  }
@@ -21601,10 +21619,6 @@ class BaseInput extends AuroElement$1 {
21601
21619
  updated(changedProperties) {
21602
21620
  super.updated(changedProperties);
21603
21621
 
21604
- if (changedProperties.has('placeholder')) {
21605
- this.getPlaceholder();
21606
- }
21607
-
21608
21622
  if (changedProperties.has('format')) {
21609
21623
  this.configureAutoFormatting();
21610
21624
  }
@@ -21638,10 +21652,8 @@ class BaseInput extends AuroElement$1 {
21638
21652
  if (changedProperties.has('value')) {
21639
21653
  if (this.value && this.value.length > 0) {
21640
21654
  this.hasValue = true;
21641
- this.requestUpdate();
21642
21655
  } else {
21643
21656
  this.hasValue = false;
21644
- this.requestUpdate();
21645
21657
  }
21646
21658
 
21647
21659
  if (this.value !== this.inputElement.value) {
@@ -21827,8 +21839,6 @@ class BaseInput extends AuroElement$1 {
21827
21839
  handleFocusin() {
21828
21840
  this.hasFocus = true;
21829
21841
 
21830
- this.getPlaceholder();
21831
-
21832
21842
  this.touched = true;
21833
21843
  }
21834
21844
 
@@ -21839,7 +21849,6 @@ class BaseInput extends AuroElement$1 {
21839
21849
  */
21840
21850
  handleFocusout() {
21841
21851
  this.hasFocus = false;
21842
- this.getPlaceholder();
21843
21852
  }
21844
21853
 
21845
21854
  /**
@@ -21976,16 +21985,11 @@ class BaseInput extends AuroElement$1 {
21976
21985
  * @private
21977
21986
  * @returns {void}
21978
21987
  */
21979
- getPlaceholder() {
21980
- if (this.placeholder) {
21981
- this.placeholderStr = this.placeholder;
21982
- } else if (this.type === 'date') {
21983
- this.placeholderStr = this.format ? this.format.toUpperCase() : 'MM/DD/YYYY';
21988
+ get placeholderStr() {
21989
+ if (!this.placeholder && this.type === 'date') {
21990
+ return this.format ? this.format.toUpperCase() : 'MM/DD/YYYY';
21984
21991
  }
21985
-
21986
- this.requestUpdate();
21987
-
21988
- return this.placeholderStr;
21992
+ return this.placeholder || "";
21989
21993
  }
21990
21994
 
21991
21995
  /**
@@ -22567,7 +22571,7 @@ class AuroInput extends BaseInput {
22567
22571
  (
22568
22572
  (!this.value || this.value.length === 0) &&
22569
22573
  !this.hasFocus &&
22570
- (!this.placeholder || this.placeholder === '')
22574
+ (!this.placeholderStr || this.placeholderStr === '')
22571
22575
  );
22572
22576
  }
22573
22577
 
@@ -22612,11 +22616,11 @@ class AuroInput extends BaseInput {
22612
22616
  }
22613
22617
 
22614
22618
  if (this.layout === 'snowflake') {
22615
- return this.hasValue || this.hasFocus || this.placeholder ? 'body-xs' : 'body-lg';
22619
+ return this.hasValue || this.hasFocus || this.placeholderStr ? 'body-xs' : 'body-lg';
22616
22620
  }
22617
22621
 
22618
22622
  // classic layout (default)
22619
- return ((!this.value || this.value.length === 0) && !this.placeholder && !this.hasFocus) ? 'body-default' : 'body-xs';
22623
+ return ((!this.value || this.value.length === 0) && !this.placeholderStr && !this.hasFocus) ? 'body-default' : 'body-xs';
22620
22624
  }
22621
22625
 
22622
22626
  /**
@@ -5281,7 +5281,6 @@ class BaseInput extends AuroElement {
5281
5281
  this.validationCCLength = undefined;
5282
5282
  this.hasValue = false;
5283
5283
  this.label = 'Input label is undefined';
5284
- this.placeholderStr = '';
5285
5284
 
5286
5285
  this.allowedInputTypes = [
5287
5286
  "text",
@@ -5438,6 +5437,26 @@ class BaseInput extends AuroElement {
5438
5437
  reflect: true
5439
5438
  },
5440
5439
 
5440
+ /**
5441
+ * @private
5442
+ * Flag to indicate if the input currently has value.
5443
+ */
5444
+ hasValue: {
5445
+ type: Boolean,
5446
+ reflect: false,
5447
+ attribute: false
5448
+ },
5449
+
5450
+ /**
5451
+ * @private
5452
+ * Flag to indicate if the input currently has focus.
5453
+ */
5454
+ hasFocus: {
5455
+ type: Boolean,
5456
+ reflect: false,
5457
+ attribute: false
5458
+ },
5459
+
5441
5460
  /**
5442
5461
  * 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.
5443
5462
  */
@@ -5740,7 +5759,6 @@ class BaseInput extends AuroElement {
5740
5759
  this.ValidityMessageOverride = this.setCustomValidity;
5741
5760
  }
5742
5761
 
5743
- this.getPlaceholder();
5744
5762
  this.setCustomHelpTextMessage();
5745
5763
  this.configureAutoFormatting();
5746
5764
  }
@@ -5825,10 +5843,6 @@ class BaseInput extends AuroElement {
5825
5843
  updated(changedProperties) {
5826
5844
  super.updated(changedProperties);
5827
5845
 
5828
- if (changedProperties.has('placeholder')) {
5829
- this.getPlaceholder();
5830
- }
5831
-
5832
5846
  if (changedProperties.has('format')) {
5833
5847
  this.configureAutoFormatting();
5834
5848
  }
@@ -5862,10 +5876,8 @@ class BaseInput extends AuroElement {
5862
5876
  if (changedProperties.has('value')) {
5863
5877
  if (this.value && this.value.length > 0) {
5864
5878
  this.hasValue = true;
5865
- this.requestUpdate();
5866
5879
  } else {
5867
5880
  this.hasValue = false;
5868
- this.requestUpdate();
5869
5881
  }
5870
5882
 
5871
5883
  if (this.value !== this.inputElement.value) {
@@ -6051,8 +6063,6 @@ class BaseInput extends AuroElement {
6051
6063
  handleFocusin() {
6052
6064
  this.hasFocus = true;
6053
6065
 
6054
- this.getPlaceholder();
6055
-
6056
6066
  this.touched = true;
6057
6067
  }
6058
6068
 
@@ -6063,7 +6073,6 @@ class BaseInput extends AuroElement {
6063
6073
  */
6064
6074
  handleFocusout() {
6065
6075
  this.hasFocus = false;
6066
- this.getPlaceholder();
6067
6076
  }
6068
6077
 
6069
6078
  /**
@@ -6200,16 +6209,11 @@ class BaseInput extends AuroElement {
6200
6209
  * @private
6201
6210
  * @returns {void}
6202
6211
  */
6203
- getPlaceholder() {
6204
- if (this.placeholder) {
6205
- this.placeholderStr = this.placeholder;
6206
- } else if (this.type === 'date') {
6207
- this.placeholderStr = this.format ? this.format.toUpperCase() : 'MM/DD/YYYY';
6212
+ get placeholderStr() {
6213
+ if (!this.placeholder && this.type === 'date') {
6214
+ return this.format ? this.format.toUpperCase() : 'MM/DD/YYYY';
6208
6215
  }
6209
-
6210
- this.requestUpdate();
6211
-
6212
- return this.placeholderStr;
6216
+ return this.placeholder || "";
6213
6217
  }
6214
6218
 
6215
6219
  /**
@@ -6791,7 +6795,7 @@ class AuroInput extends BaseInput {
6791
6795
  (
6792
6796
  (!this.value || this.value.length === 0) &&
6793
6797
  !this.hasFocus &&
6794
- (!this.placeholder || this.placeholder === '')
6798
+ (!this.placeholderStr || this.placeholderStr === '')
6795
6799
  );
6796
6800
  }
6797
6801
 
@@ -6836,11 +6840,11 @@ class AuroInput extends BaseInput {
6836
6840
  }
6837
6841
 
6838
6842
  if (this.layout === 'snowflake') {
6839
- return this.hasValue || this.hasFocus || this.placeholder ? 'body-xs' : 'body-lg';
6843
+ return this.hasValue || this.hasFocus || this.placeholderStr ? 'body-xs' : 'body-lg';
6840
6844
  }
6841
6845
 
6842
6846
  // classic layout (default)
6843
- return ((!this.value || this.value.length === 0) && !this.placeholder && !this.hasFocus) ? 'body-default' : 'body-xs';
6847
+ return ((!this.value || this.value.length === 0) && !this.placeholderStr && !this.hasFocus) ? 'body-default' : 'body-xs';
6844
6848
  }
6845
6849
 
6846
6850
  /**
@@ -5206,7 +5206,6 @@ class BaseInput extends AuroElement {
5206
5206
  this.validationCCLength = undefined;
5207
5207
  this.hasValue = false;
5208
5208
  this.label = 'Input label is undefined';
5209
- this.placeholderStr = '';
5210
5209
 
5211
5210
  this.allowedInputTypes = [
5212
5211
  "text",
@@ -5363,6 +5362,26 @@ class BaseInput extends AuroElement {
5363
5362
  reflect: true
5364
5363
  },
5365
5364
 
5365
+ /**
5366
+ * @private
5367
+ * Flag to indicate if the input currently has value.
5368
+ */
5369
+ hasValue: {
5370
+ type: Boolean,
5371
+ reflect: false,
5372
+ attribute: false
5373
+ },
5374
+
5375
+ /**
5376
+ * @private
5377
+ * Flag to indicate if the input currently has focus.
5378
+ */
5379
+ hasFocus: {
5380
+ type: Boolean,
5381
+ reflect: false,
5382
+ attribute: false
5383
+ },
5384
+
5366
5385
  /**
5367
5386
  * 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.
5368
5387
  */
@@ -5665,7 +5684,6 @@ class BaseInput extends AuroElement {
5665
5684
  this.ValidityMessageOverride = this.setCustomValidity;
5666
5685
  }
5667
5686
 
5668
- this.getPlaceholder();
5669
5687
  this.setCustomHelpTextMessage();
5670
5688
  this.configureAutoFormatting();
5671
5689
  }
@@ -5750,10 +5768,6 @@ class BaseInput extends AuroElement {
5750
5768
  updated(changedProperties) {
5751
5769
  super.updated(changedProperties);
5752
5770
 
5753
- if (changedProperties.has('placeholder')) {
5754
- this.getPlaceholder();
5755
- }
5756
-
5757
5771
  if (changedProperties.has('format')) {
5758
5772
  this.configureAutoFormatting();
5759
5773
  }
@@ -5787,10 +5801,8 @@ class BaseInput extends AuroElement {
5787
5801
  if (changedProperties.has('value')) {
5788
5802
  if (this.value && this.value.length > 0) {
5789
5803
  this.hasValue = true;
5790
- this.requestUpdate();
5791
5804
  } else {
5792
5805
  this.hasValue = false;
5793
- this.requestUpdate();
5794
5806
  }
5795
5807
 
5796
5808
  if (this.value !== this.inputElement.value) {
@@ -5976,8 +5988,6 @@ class BaseInput extends AuroElement {
5976
5988
  handleFocusin() {
5977
5989
  this.hasFocus = true;
5978
5990
 
5979
- this.getPlaceholder();
5980
-
5981
5991
  this.touched = true;
5982
5992
  }
5983
5993
 
@@ -5988,7 +5998,6 @@ class BaseInput extends AuroElement {
5988
5998
  */
5989
5999
  handleFocusout() {
5990
6000
  this.hasFocus = false;
5991
- this.getPlaceholder();
5992
6001
  }
5993
6002
 
5994
6003
  /**
@@ -6125,16 +6134,11 @@ class BaseInput extends AuroElement {
6125
6134
  * @private
6126
6135
  * @returns {void}
6127
6136
  */
6128
- getPlaceholder() {
6129
- if (this.placeholder) {
6130
- this.placeholderStr = this.placeholder;
6131
- } else if (this.type === 'date') {
6132
- this.placeholderStr = this.format ? this.format.toUpperCase() : 'MM/DD/YYYY';
6137
+ get placeholderStr() {
6138
+ if (!this.placeholder && this.type === 'date') {
6139
+ return this.format ? this.format.toUpperCase() : 'MM/DD/YYYY';
6133
6140
  }
6134
-
6135
- this.requestUpdate();
6136
-
6137
- return this.placeholderStr;
6141
+ return this.placeholder || "";
6138
6142
  }
6139
6143
 
6140
6144
  /**
@@ -6716,7 +6720,7 @@ class AuroInput extends BaseInput {
6716
6720
  (
6717
6721
  (!this.value || this.value.length === 0) &&
6718
6722
  !this.hasFocus &&
6719
- (!this.placeholder || this.placeholder === '')
6723
+ (!this.placeholderStr || this.placeholderStr === '')
6720
6724
  );
6721
6725
  }
6722
6726
 
@@ -6761,11 +6765,11 @@ class AuroInput extends BaseInput {
6761
6765
  }
6762
6766
 
6763
6767
  if (this.layout === 'snowflake') {
6764
- return this.hasValue || this.hasFocus || this.placeholder ? 'body-xs' : 'body-lg';
6768
+ return this.hasValue || this.hasFocus || this.placeholderStr ? 'body-xs' : 'body-lg';
6765
6769
  }
6766
6770
 
6767
6771
  // classic layout (default)
6768
- return ((!this.value || this.value.length === 0) && !this.placeholder && !this.hasFocus) ? 'body-default' : 'body-xs';
6772
+ return ((!this.value || this.value.length === 0) && !this.placeholderStr && !this.hasFocus) ? 'body-default' : 'body-xs';
6769
6773
  }
6770
6774
 
6771
6775
  /**
@@ -117,6 +117,24 @@ export default class BaseInput extends AuroElement {
117
117
  type: StringConstructor;
118
118
  reflect: boolean;
119
119
  };
120
+ /**
121
+ * @private
122
+ * Flag to indicate if the input currently has value.
123
+ */
124
+ hasValue: {
125
+ type: BooleanConstructor;
126
+ reflect: boolean;
127
+ attribute: boolean;
128
+ };
129
+ /**
130
+ * @private
131
+ * Flag to indicate if the input currently has focus.
132
+ */
133
+ hasFocus: {
134
+ type: BooleanConstructor;
135
+ reflect: boolean;
136
+ attribute: boolean;
137
+ };
120
138
  /**
121
139
  * 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.
122
140
  */
@@ -382,7 +400,6 @@ export default class BaseInput extends AuroElement {
382
400
  validationCCLength: number;
383
401
  hasValue: boolean;
384
402
  label: string;
385
- placeholderStr: any;
386
403
  allowedInputTypes: string[];
387
404
  /**
388
405
  * Credit Card is not included as this caused cursor placement issues.
@@ -562,7 +579,7 @@ export default class BaseInput extends AuroElement {
562
579
  * @private
563
580
  * @returns {void}
564
581
  */
565
- private getPlaceholder;
582
+ private get placeholderStr();
566
583
  /**
567
584
  * Defines placement of input icon based on type, used with classMap.
568
585
  * @private