@aurodesignsystem-dev/auro-formkit 0.0.0-pr811.1 → 0.0.0-pr816.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.
@@ -10479,6 +10479,8 @@ class BaseInput extends AuroElement$2$1 {
10479
10479
  * @private
10480
10480
  */
10481
10481
  this.size = 'lg';
10482
+
10483
+ this.privateDefaults();
10482
10484
  }
10483
10485
 
10484
10486
  /**
@@ -10497,10 +10499,6 @@ class BaseInput extends AuroElement$2$1 {
10497
10499
  this.label = 'Input label is undefined';
10498
10500
  this.placeholderStr = '';
10499
10501
 
10500
- this.layout = 'classic';
10501
- this.shape = 'classic';
10502
- this.size = 'lg';
10503
-
10504
10502
  this.allowedInputTypes = [
10505
10503
  "text",
10506
10504
  "number",
@@ -10906,8 +10904,6 @@ class BaseInput extends AuroElement$2$1 {
10906
10904
  connectedCallback() {
10907
10905
  super.connectedCallback();
10908
10906
 
10909
- this.privateDefaults();
10910
-
10911
10907
  notifyOnLangChange(this);
10912
10908
  }
10913
10909
 
@@ -16604,6 +16600,7 @@ class AuroCombobox extends AuroElement$1 {
16604
16600
  // Listen for the dropdown to be shown or hidden
16605
16601
  this.dropdown.addEventListener("auroDropdown-toggled", (ev) => {
16606
16602
  this.dropdownOpen = ev.detail.expanded;
16603
+ this.updateMenuShapeSize();
16607
16604
 
16608
16605
  // wait a frame in case the bib gets hide immediately after showing because there is no value
16609
16606
  setTimeout(() => {
@@ -16630,7 +16627,11 @@ class AuroCombobox extends AuroElement$1 {
16630
16627
  this.setInputFocus = this.setInputFocus.bind(this);
16631
16628
  this.dropdown.addEventListener('auroDropdown-strategy-change', () => {
16632
16629
  // event when the strategy(bib mode) is changed between fullscreen and floating
16633
- setTimeout(this.setInputFocus, 0);
16630
+ this.updateMenuShapeSize();
16631
+
16632
+ setTimeout(() => {
16633
+ this.setInputFocus();
16634
+ }, 0);
16634
16635
  });
16635
16636
  }
16636
16637
 
@@ -16645,6 +16646,30 @@ class AuroCombobox extends AuroElement$1 {
16645
16646
  }
16646
16647
  }
16647
16648
 
16649
+ /**
16650
+ * Update menu to default for fullscreen bib, otherwise to this.size and this.shape.
16651
+ * @private
16652
+ */
16653
+ updateMenuShapeSize() {
16654
+ if (!this.menu) {
16655
+ return;
16656
+ }
16657
+
16658
+ if (this.dropdown && this.dropdown.isBibFullscreen) {
16659
+ this.menu.setAttribute('size', 'md');
16660
+ this.menu.setAttribute('shape', 'box');
16661
+ } else {
16662
+ // set menu's default size if there it's not specified.
16663
+ if (!this.menu.getAttribute('size')) {
16664
+ this.menu.setAttribute('size', this.layout !== 'emphasized' ? 'md' : this.size);
16665
+ }
16666
+
16667
+ if (!this.getAttribute('shape')) {
16668
+ this.menu.setAttribute('shape', this.layout === 'classic' ? 'box' : this.shape);
16669
+ }
16670
+ }
16671
+ }
16672
+
16648
16673
  /**
16649
16674
  * Binds all behavior needed to the menu after rendering.
16650
16675
  * @private
@@ -16653,14 +16678,7 @@ class AuroCombobox extends AuroElement$1 {
16653
16678
  configureMenu() {
16654
16679
  this.menu = this.querySelector('auro-menu, [auro-menu]');
16655
16680
 
16656
- // set menu's default size if there it's not specified.
16657
- if (!this.menu.getAttribute('size')) {
16658
- this.menu.setAttribute('size', this.layout !== 'emphasized' ? 'md' : this.size);
16659
- }
16660
-
16661
- if (!this.getAttribute('shape')) {
16662
- this.menu.setAttribute('shape', this.layout === 'classic' ? 'box' : this.shape);
16663
- }
16681
+ this.updateMenuShapeSize();
16664
16682
 
16665
16683
  // a racing condition on custom-combobox with custom-menu
16666
16684
  if (!this.menu || this.menuShadowRoot === null) {
@@ -18468,12 +18486,12 @@ class AuroMenuOption extends AuroElement$1 {
18468
18486
  /**
18469
18487
  * @private
18470
18488
  */
18471
- this.shape = "box";
18489
+ this.shape = undefined;
18472
18490
 
18473
18491
  /**
18474
18492
  * @private
18475
18493
  */
18476
- this.size = "sm";
18494
+ this.size = undefined;
18477
18495
 
18478
18496
  /**
18479
18497
  * Generate unique names for dependency components.
@@ -18546,6 +18564,13 @@ class AuroMenuOption extends AuroElement$1 {
18546
18564
  // Add the tag name as an attribute if it is different than the component name
18547
18565
  this.runtimeUtils.handleComponentTagRename(this, 'auro-menuoption');
18548
18566
 
18567
+ if (!this.hasAttribute('size')) {
18568
+ this.size = this.parentElement.getAttribute('size') || 'sm';
18569
+ }
18570
+ if (!this.hasAttribute('shape')) {
18571
+ this.shape = this.parentElement.getAttribute('shape') || 'box';
18572
+ }
18573
+
18549
18574
  this.setAttribute('role', 'option');
18550
18575
  this.setAttribute('aria-selected', 'false');
18551
18576
 
@@ -10337,6 +10337,8 @@ class BaseInput extends AuroElement$2$1 {
10337
10337
  * @private
10338
10338
  */
10339
10339
  this.size = 'lg';
10340
+
10341
+ this.privateDefaults();
10340
10342
  }
10341
10343
 
10342
10344
  /**
@@ -10355,10 +10357,6 @@ class BaseInput extends AuroElement$2$1 {
10355
10357
  this.label = 'Input label is undefined';
10356
10358
  this.placeholderStr = '';
10357
10359
 
10358
- this.layout = 'classic';
10359
- this.shape = 'classic';
10360
- this.size = 'lg';
10361
-
10362
10360
  this.allowedInputTypes = [
10363
10361
  "text",
10364
10362
  "number",
@@ -10764,8 +10762,6 @@ class BaseInput extends AuroElement$2$1 {
10764
10762
  connectedCallback() {
10765
10763
  super.connectedCallback();
10766
10764
 
10767
- this.privateDefaults();
10768
-
10769
10765
  notifyOnLangChange(this);
10770
10766
  }
10771
10767
 
@@ -16462,6 +16458,7 @@ class AuroCombobox extends AuroElement$1 {
16462
16458
  // Listen for the dropdown to be shown or hidden
16463
16459
  this.dropdown.addEventListener("auroDropdown-toggled", (ev) => {
16464
16460
  this.dropdownOpen = ev.detail.expanded;
16461
+ this.updateMenuShapeSize();
16465
16462
 
16466
16463
  // wait a frame in case the bib gets hide immediately after showing because there is no value
16467
16464
  setTimeout(() => {
@@ -16488,7 +16485,11 @@ class AuroCombobox extends AuroElement$1 {
16488
16485
  this.setInputFocus = this.setInputFocus.bind(this);
16489
16486
  this.dropdown.addEventListener('auroDropdown-strategy-change', () => {
16490
16487
  // event when the strategy(bib mode) is changed between fullscreen and floating
16491
- setTimeout(this.setInputFocus, 0);
16488
+ this.updateMenuShapeSize();
16489
+
16490
+ setTimeout(() => {
16491
+ this.setInputFocus();
16492
+ }, 0);
16492
16493
  });
16493
16494
  }
16494
16495
 
@@ -16503,6 +16504,30 @@ class AuroCombobox extends AuroElement$1 {
16503
16504
  }
16504
16505
  }
16505
16506
 
16507
+ /**
16508
+ * Update menu to default for fullscreen bib, otherwise to this.size and this.shape.
16509
+ * @private
16510
+ */
16511
+ updateMenuShapeSize() {
16512
+ if (!this.menu) {
16513
+ return;
16514
+ }
16515
+
16516
+ if (this.dropdown && this.dropdown.isBibFullscreen) {
16517
+ this.menu.setAttribute('size', 'md');
16518
+ this.menu.setAttribute('shape', 'box');
16519
+ } else {
16520
+ // set menu's default size if there it's not specified.
16521
+ if (!this.menu.getAttribute('size')) {
16522
+ this.menu.setAttribute('size', this.layout !== 'emphasized' ? 'md' : this.size);
16523
+ }
16524
+
16525
+ if (!this.getAttribute('shape')) {
16526
+ this.menu.setAttribute('shape', this.layout === 'classic' ? 'box' : this.shape);
16527
+ }
16528
+ }
16529
+ }
16530
+
16506
16531
  /**
16507
16532
  * Binds all behavior needed to the menu after rendering.
16508
16533
  * @private
@@ -16511,14 +16536,7 @@ class AuroCombobox extends AuroElement$1 {
16511
16536
  configureMenu() {
16512
16537
  this.menu = this.querySelector('auro-menu, [auro-menu]');
16513
16538
 
16514
- // set menu's default size if there it's not specified.
16515
- if (!this.menu.getAttribute('size')) {
16516
- this.menu.setAttribute('size', this.layout !== 'emphasized' ? 'md' : this.size);
16517
- }
16518
-
16519
- if (!this.getAttribute('shape')) {
16520
- this.menu.setAttribute('shape', this.layout === 'classic' ? 'box' : this.shape);
16521
- }
16539
+ this.updateMenuShapeSize();
16522
16540
 
16523
16541
  // a racing condition on custom-combobox with custom-menu
16524
16542
  if (!this.menu || this.menuShadowRoot === null) {
@@ -18326,12 +18344,12 @@ class AuroMenuOption extends AuroElement$1 {
18326
18344
  /**
18327
18345
  * @private
18328
18346
  */
18329
- this.shape = "box";
18347
+ this.shape = undefined;
18330
18348
 
18331
18349
  /**
18332
18350
  * @private
18333
18351
  */
18334
- this.size = "sm";
18352
+ this.size = undefined;
18335
18353
 
18336
18354
  /**
18337
18355
  * Generate unique names for dependency components.
@@ -18404,6 +18422,13 @@ class AuroMenuOption extends AuroElement$1 {
18404
18422
  // Add the tag name as an attribute if it is different than the component name
18405
18423
  this.runtimeUtils.handleComponentTagRename(this, 'auro-menuoption');
18406
18424
 
18425
+ if (!this.hasAttribute('size')) {
18426
+ this.size = this.parentElement.getAttribute('size') || 'sm';
18427
+ }
18428
+ if (!this.hasAttribute('shape')) {
18429
+ this.shape = this.parentElement.getAttribute('shape') || 'box';
18430
+ }
18431
+
18407
18432
  this.setAttribute('role', 'option');
18408
18433
  this.setAttribute('aria-selected', 'false');
18409
18434
 
@@ -339,6 +339,11 @@ export class AuroCombobox extends AuroElement {
339
339
  * @private
340
340
  */
341
341
  private setInputFocus;
342
+ /**
343
+ * Update menu to default for fullscreen bib, otherwise to this.size and this.shape.
344
+ * @private
345
+ */
346
+ private updateMenuShapeSize;
342
347
  /**
343
348
  * Binds all behavior needed to the menu after rendering.
344
349
  * @private
@@ -10255,6 +10255,8 @@ class BaseInput extends AuroElement$2$1 {
10255
10255
  * @private
10256
10256
  */
10257
10257
  this.size = 'lg';
10258
+
10259
+ this.privateDefaults();
10258
10260
  }
10259
10261
 
10260
10262
  /**
@@ -10273,10 +10275,6 @@ class BaseInput extends AuroElement$2$1 {
10273
10275
  this.label = 'Input label is undefined';
10274
10276
  this.placeholderStr = '';
10275
10277
 
10276
- this.layout = 'classic';
10277
- this.shape = 'classic';
10278
- this.size = 'lg';
10279
-
10280
10278
  this.allowedInputTypes = [
10281
10279
  "text",
10282
10280
  "number",
@@ -10682,8 +10680,6 @@ class BaseInput extends AuroElement$2$1 {
10682
10680
  connectedCallback() {
10683
10681
  super.connectedCallback();
10684
10682
 
10685
- this.privateDefaults();
10686
-
10687
10683
  notifyOnLangChange(this);
10688
10684
  }
10689
10685
 
@@ -16380,6 +16376,7 @@ class AuroCombobox extends AuroElement {
16380
16376
  // Listen for the dropdown to be shown or hidden
16381
16377
  this.dropdown.addEventListener("auroDropdown-toggled", (ev) => {
16382
16378
  this.dropdownOpen = ev.detail.expanded;
16379
+ this.updateMenuShapeSize();
16383
16380
 
16384
16381
  // wait a frame in case the bib gets hide immediately after showing because there is no value
16385
16382
  setTimeout(() => {
@@ -16406,7 +16403,11 @@ class AuroCombobox extends AuroElement {
16406
16403
  this.setInputFocus = this.setInputFocus.bind(this);
16407
16404
  this.dropdown.addEventListener('auroDropdown-strategy-change', () => {
16408
16405
  // event when the strategy(bib mode) is changed between fullscreen and floating
16409
- setTimeout(this.setInputFocus, 0);
16406
+ this.updateMenuShapeSize();
16407
+
16408
+ setTimeout(() => {
16409
+ this.setInputFocus();
16410
+ }, 0);
16410
16411
  });
16411
16412
  }
16412
16413
 
@@ -16421,6 +16422,30 @@ class AuroCombobox extends AuroElement {
16421
16422
  }
16422
16423
  }
16423
16424
 
16425
+ /**
16426
+ * Update menu to default for fullscreen bib, otherwise to this.size and this.shape.
16427
+ * @private
16428
+ */
16429
+ updateMenuShapeSize() {
16430
+ if (!this.menu) {
16431
+ return;
16432
+ }
16433
+
16434
+ if (this.dropdown && this.dropdown.isBibFullscreen) {
16435
+ this.menu.setAttribute('size', 'md');
16436
+ this.menu.setAttribute('shape', 'box');
16437
+ } else {
16438
+ // set menu's default size if there it's not specified.
16439
+ if (!this.menu.getAttribute('size')) {
16440
+ this.menu.setAttribute('size', this.layout !== 'emphasized' ? 'md' : this.size);
16441
+ }
16442
+
16443
+ if (!this.getAttribute('shape')) {
16444
+ this.menu.setAttribute('shape', this.layout === 'classic' ? 'box' : this.shape);
16445
+ }
16446
+ }
16447
+ }
16448
+
16424
16449
  /**
16425
16450
  * Binds all behavior needed to the menu after rendering.
16426
16451
  * @private
@@ -16429,14 +16454,7 @@ class AuroCombobox extends AuroElement {
16429
16454
  configureMenu() {
16430
16455
  this.menu = this.querySelector('auro-menu, [auro-menu]');
16431
16456
 
16432
- // set menu's default size if there it's not specified.
16433
- if (!this.menu.getAttribute('size')) {
16434
- this.menu.setAttribute('size', this.layout !== 'emphasized' ? 'md' : this.size);
16435
- }
16436
-
16437
- if (!this.getAttribute('shape')) {
16438
- this.menu.setAttribute('shape', this.layout === 'classic' ? 'box' : this.shape);
16439
- }
16457
+ this.updateMenuShapeSize();
16440
16458
 
16441
16459
  // a racing condition on custom-combobox with custom-menu
16442
16460
  if (!this.menu || this.menuShadowRoot === null) {
@@ -10255,6 +10255,8 @@ class BaseInput extends AuroElement$2$1 {
10255
10255
  * @private
10256
10256
  */
10257
10257
  this.size = 'lg';
10258
+
10259
+ this.privateDefaults();
10258
10260
  }
10259
10261
 
10260
10262
  /**
@@ -10273,10 +10275,6 @@ class BaseInput extends AuroElement$2$1 {
10273
10275
  this.label = 'Input label is undefined';
10274
10276
  this.placeholderStr = '';
10275
10277
 
10276
- this.layout = 'classic';
10277
- this.shape = 'classic';
10278
- this.size = 'lg';
10279
-
10280
10278
  this.allowedInputTypes = [
10281
10279
  "text",
10282
10280
  "number",
@@ -10682,8 +10680,6 @@ class BaseInput extends AuroElement$2$1 {
10682
10680
  connectedCallback() {
10683
10681
  super.connectedCallback();
10684
10682
 
10685
- this.privateDefaults();
10686
-
10687
10683
  notifyOnLangChange(this);
10688
10684
  }
10689
10685
 
@@ -16380,6 +16376,7 @@ class AuroCombobox extends AuroElement {
16380
16376
  // Listen for the dropdown to be shown or hidden
16381
16377
  this.dropdown.addEventListener("auroDropdown-toggled", (ev) => {
16382
16378
  this.dropdownOpen = ev.detail.expanded;
16379
+ this.updateMenuShapeSize();
16383
16380
 
16384
16381
  // wait a frame in case the bib gets hide immediately after showing because there is no value
16385
16382
  setTimeout(() => {
@@ -16406,7 +16403,11 @@ class AuroCombobox extends AuroElement {
16406
16403
  this.setInputFocus = this.setInputFocus.bind(this);
16407
16404
  this.dropdown.addEventListener('auroDropdown-strategy-change', () => {
16408
16405
  // event when the strategy(bib mode) is changed between fullscreen and floating
16409
- setTimeout(this.setInputFocus, 0);
16406
+ this.updateMenuShapeSize();
16407
+
16408
+ setTimeout(() => {
16409
+ this.setInputFocus();
16410
+ }, 0);
16410
16411
  });
16411
16412
  }
16412
16413
 
@@ -16421,6 +16422,30 @@ class AuroCombobox extends AuroElement {
16421
16422
  }
16422
16423
  }
16423
16424
 
16425
+ /**
16426
+ * Update menu to default for fullscreen bib, otherwise to this.size and this.shape.
16427
+ * @private
16428
+ */
16429
+ updateMenuShapeSize() {
16430
+ if (!this.menu) {
16431
+ return;
16432
+ }
16433
+
16434
+ if (this.dropdown && this.dropdown.isBibFullscreen) {
16435
+ this.menu.setAttribute('size', 'md');
16436
+ this.menu.setAttribute('shape', 'box');
16437
+ } else {
16438
+ // set menu's default size if there it's not specified.
16439
+ if (!this.menu.getAttribute('size')) {
16440
+ this.menu.setAttribute('size', this.layout !== 'emphasized' ? 'md' : this.size);
16441
+ }
16442
+
16443
+ if (!this.getAttribute('shape')) {
16444
+ this.menu.setAttribute('shape', this.layout === 'classic' ? 'box' : this.shape);
16445
+ }
16446
+ }
16447
+ }
16448
+
16424
16449
  /**
16425
16450
  * Binds all behavior needed to the menu after rendering.
16426
16451
  * @private
@@ -16429,14 +16454,7 @@ class AuroCombobox extends AuroElement {
16429
16454
  configureMenu() {
16430
16455
  this.menu = this.querySelector('auro-menu, [auro-menu]');
16431
16456
 
16432
- // set menu's default size if there it's not specified.
16433
- if (!this.menu.getAttribute('size')) {
16434
- this.menu.setAttribute('size', this.layout !== 'emphasized' ? 'md' : this.size);
16435
- }
16436
-
16437
- if (!this.getAttribute('shape')) {
16438
- this.menu.setAttribute('shape', this.layout === 'classic' ? 'box' : this.shape);
16439
- }
16457
+ this.updateMenuShapeSize();
16440
16458
 
16441
16459
  // a racing condition on custom-combobox with custom-menu
16442
16460
  if (!this.menu || this.menuShadowRoot === null) {
@@ -23911,6 +23911,8 @@ class BaseInput extends AuroElement$2 {
23911
23911
  * @private
23912
23912
  */
23913
23913
  this.size = 'lg';
23914
+
23915
+ this.privateDefaults();
23914
23916
  }
23915
23917
 
23916
23918
  /**
@@ -23929,10 +23931,6 @@ class BaseInput extends AuroElement$2 {
23929
23931
  this.label = 'Input label is undefined';
23930
23932
  this.placeholderStr = '';
23931
23933
 
23932
- this.layout = 'classic';
23933
- this.shape = 'classic';
23934
- this.size = 'lg';
23935
-
23936
23934
  this.allowedInputTypes = [
23937
23935
  "text",
23938
23936
  "number",
@@ -24338,8 +24336,6 @@ class BaseInput extends AuroElement$2 {
24338
24336
  connectedCallback() {
24339
24337
  super.connectedCallback();
24340
24338
 
24341
- this.privateDefaults();
24342
-
24343
24339
  notifyOnLangChange(this);
24344
24340
  }
24345
24341
 
@@ -23652,6 +23652,8 @@ class BaseInput extends AuroElement$2 {
23652
23652
  * @private
23653
23653
  */
23654
23654
  this.size = 'lg';
23655
+
23656
+ this.privateDefaults();
23655
23657
  }
23656
23658
 
23657
23659
  /**
@@ -23670,10 +23672,6 @@ class BaseInput extends AuroElement$2 {
23670
23672
  this.label = 'Input label is undefined';
23671
23673
  this.placeholderStr = '';
23672
23674
 
23673
- this.layout = 'classic';
23674
- this.shape = 'classic';
23675
- this.size = 'lg';
23676
-
23677
23675
  this.allowedInputTypes = [
23678
23676
  "text",
23679
23677
  "number",
@@ -24079,8 +24077,6 @@ class BaseInput extends AuroElement$2 {
24079
24077
  connectedCallback() {
24080
24078
  super.connectedCallback();
24081
24079
 
24082
- this.privateDefaults();
24083
-
24084
24080
  notifyOnLangChange(this);
24085
24081
  }
24086
24082
 
@@ -23588,6 +23588,8 @@ class BaseInput extends AuroElement$2 {
23588
23588
  * @private
23589
23589
  */
23590
23590
  this.size = 'lg';
23591
+
23592
+ this.privateDefaults();
23591
23593
  }
23592
23594
 
23593
23595
  /**
@@ -23606,10 +23608,6 @@ class BaseInput extends AuroElement$2 {
23606
23608
  this.label = 'Input label is undefined';
23607
23609
  this.placeholderStr = '';
23608
23610
 
23609
- this.layout = 'classic';
23610
- this.shape = 'classic';
23611
- this.size = 'lg';
23612
-
23613
23611
  this.allowedInputTypes = [
23614
23612
  "text",
23615
23613
  "number",
@@ -24015,8 +24013,6 @@ class BaseInput extends AuroElement$2 {
24015
24013
  connectedCallback() {
24016
24014
  super.connectedCallback();
24017
24015
 
24018
- this.privateDefaults();
24019
-
24020
24016
  notifyOnLangChange(this);
24021
24017
  }
24022
24018
 
@@ -23588,6 +23588,8 @@ class BaseInput extends AuroElement$2 {
23588
23588
  * @private
23589
23589
  */
23590
23590
  this.size = 'lg';
23591
+
23592
+ this.privateDefaults();
23591
23593
  }
23592
23594
 
23593
23595
  /**
@@ -23606,10 +23608,6 @@ class BaseInput extends AuroElement$2 {
23606
23608
  this.label = 'Input label is undefined';
23607
23609
  this.placeholderStr = '';
23608
23610
 
23609
- this.layout = 'classic';
23610
- this.shape = 'classic';
23611
- this.size = 'lg';
23612
-
23613
23611
  this.allowedInputTypes = [
23614
23612
  "text",
23615
23613
  "number",
@@ -24015,8 +24013,6 @@ class BaseInput extends AuroElement$2 {
24015
24013
  connectedCallback() {
24016
24014
  super.connectedCallback();
24017
24015
 
24018
- this.privateDefaults();
24019
-
24020
24016
  notifyOnLangChange(this);
24021
24017
  }
24022
24018
 
@@ -5153,6 +5153,8 @@ class BaseInput extends AuroElement$2 {
5153
5153
  * @private
5154
5154
  */
5155
5155
  this.size = 'lg';
5156
+
5157
+ this.privateDefaults();
5156
5158
  }
5157
5159
 
5158
5160
  /**
@@ -5171,10 +5173,6 @@ class BaseInput extends AuroElement$2 {
5171
5173
  this.label = 'Input label is undefined';
5172
5174
  this.placeholderStr = '';
5173
5175
 
5174
- this.layout = 'classic';
5175
- this.shape = 'classic';
5176
- this.size = 'lg';
5177
-
5178
5176
  this.allowedInputTypes = [
5179
5177
  "text",
5180
5178
  "number",
@@ -5580,8 +5578,6 @@ class BaseInput extends AuroElement$2 {
5580
5578
  connectedCallback() {
5581
5579
  super.connectedCallback();
5582
5580
 
5583
- this.privateDefaults();
5584
-
5585
5581
  notifyOnLangChange(this);
5586
5582
  }
5587
5583
 
@@ -5078,6 +5078,8 @@ class BaseInput extends AuroElement$2 {
5078
5078
  * @private
5079
5079
  */
5080
5080
  this.size = 'lg';
5081
+
5082
+ this.privateDefaults();
5081
5083
  }
5082
5084
 
5083
5085
  /**
@@ -5096,10 +5098,6 @@ class BaseInput extends AuroElement$2 {
5096
5098
  this.label = 'Input label is undefined';
5097
5099
  this.placeholderStr = '';
5098
5100
 
5099
- this.layout = 'classic';
5100
- this.shape = 'classic';
5101
- this.size = 'lg';
5102
-
5103
5101
  this.allowedInputTypes = [
5104
5102
  "text",
5105
5103
  "number",
@@ -5505,8 +5503,6 @@ class BaseInput extends AuroElement$2 {
5505
5503
  connectedCallback() {
5506
5504
  super.connectedCallback();
5507
5505
 
5508
- this.privateDefaults();
5509
-
5510
5506
  notifyOnLangChange(this);
5511
5507
  }
5512
5508
 
@@ -5002,6 +5002,8 @@ class BaseInput extends AuroElement$2 {
5002
5002
  * @private
5003
5003
  */
5004
5004
  this.size = 'lg';
5005
+
5006
+ this.privateDefaults();
5005
5007
  }
5006
5008
 
5007
5009
  /**
@@ -5020,10 +5022,6 @@ class BaseInput extends AuroElement$2 {
5020
5022
  this.label = 'Input label is undefined';
5021
5023
  this.placeholderStr = '';
5022
5024
 
5023
- this.layout = 'classic';
5024
- this.shape = 'classic';
5025
- this.size = 'lg';
5026
-
5027
5025
  this.allowedInputTypes = [
5028
5026
  "text",
5029
5027
  "number",
@@ -5429,8 +5427,6 @@ class BaseInput extends AuroElement$2 {
5429
5427
  connectedCallback() {
5430
5428
  super.connectedCallback();
5431
5429
 
5432
- this.privateDefaults();
5433
-
5434
5430
  notifyOnLangChange(this);
5435
5431
  }
5436
5432
 
@@ -5002,6 +5002,8 @@ class BaseInput extends AuroElement$2 {
5002
5002
  * @private
5003
5003
  */
5004
5004
  this.size = 'lg';
5005
+
5006
+ this.privateDefaults();
5005
5007
  }
5006
5008
 
5007
5009
  /**
@@ -5020,10 +5022,6 @@ class BaseInput extends AuroElement$2 {
5020
5022
  this.label = 'Input label is undefined';
5021
5023
  this.placeholderStr = '';
5022
5024
 
5023
- this.layout = 'classic';
5024
- this.shape = 'classic';
5025
- this.size = 'lg';
5026
-
5027
5025
  this.allowedInputTypes = [
5028
5026
  "text",
5029
5027
  "number",
@@ -5429,8 +5427,6 @@ class BaseInput extends AuroElement$2 {
5429
5427
  connectedCallback() {
5430
5428
  super.connectedCallback();
5431
5429
 
5432
- this.privateDefaults();
5433
-
5434
5430
  notifyOnLangChange(this);
5435
5431
  }
5436
5432
 
@@ -1583,12 +1583,12 @@ class AuroMenuOption extends AuroElement$1 {
1583
1583
  /**
1584
1584
  * @private
1585
1585
  */
1586
- this.shape = "box";
1586
+ this.shape = undefined;
1587
1587
 
1588
1588
  /**
1589
1589
  * @private
1590
1590
  */
1591
- this.size = "sm";
1591
+ this.size = undefined;
1592
1592
 
1593
1593
  /**
1594
1594
  * Generate unique names for dependency components.
@@ -1661,6 +1661,13 @@ class AuroMenuOption extends AuroElement$1 {
1661
1661
  // Add the tag name as an attribute if it is different than the component name
1662
1662
  this.runtimeUtils.handleComponentTagRename(this, 'auro-menuoption');
1663
1663
 
1664
+ if (!this.hasAttribute('size')) {
1665
+ this.size = this.parentElement.getAttribute('size') || 'sm';
1666
+ }
1667
+ if (!this.hasAttribute('shape')) {
1668
+ this.shape = this.parentElement.getAttribute('shape') || 'box';
1669
+ }
1670
+
1664
1671
  this.setAttribute('role', 'option');
1665
1672
  this.setAttribute('aria-selected', 'false');
1666
1673
 
@@ -1543,12 +1543,12 @@ class AuroMenuOption extends AuroElement$1 {
1543
1543
  /**
1544
1544
  * @private
1545
1545
  */
1546
- this.shape = "box";
1546
+ this.shape = undefined;
1547
1547
 
1548
1548
  /**
1549
1549
  * @private
1550
1550
  */
1551
- this.size = "sm";
1551
+ this.size = undefined;
1552
1552
 
1553
1553
  /**
1554
1554
  * Generate unique names for dependency components.
@@ -1621,6 +1621,13 @@ class AuroMenuOption extends AuroElement$1 {
1621
1621
  // Add the tag name as an attribute if it is different than the component name
1622
1622
  this.runtimeUtils.handleComponentTagRename(this, 'auro-menuoption');
1623
1623
 
1624
+ if (!this.hasAttribute('size')) {
1625
+ this.size = this.parentElement.getAttribute('size') || 'sm';
1626
+ }
1627
+ if (!this.hasAttribute('shape')) {
1628
+ this.shape = this.parentElement.getAttribute('shape') || 'box';
1629
+ }
1630
+
1624
1631
  this.setAttribute('role', 'option');
1625
1632
  this.setAttribute('aria-selected', 'false');
1626
1633
 
@@ -1537,12 +1537,12 @@ class AuroMenuOption extends AuroElement$1 {
1537
1537
  /**
1538
1538
  * @private
1539
1539
  */
1540
- this.shape = "box";
1540
+ this.shape = undefined;
1541
1541
 
1542
1542
  /**
1543
1543
  * @private
1544
1544
  */
1545
- this.size = "sm";
1545
+ this.size = undefined;
1546
1546
 
1547
1547
  /**
1548
1548
  * Generate unique names for dependency components.
@@ -1615,6 +1615,13 @@ class AuroMenuOption extends AuroElement$1 {
1615
1615
  // Add the tag name as an attribute if it is different than the component name
1616
1616
  this.runtimeUtils.handleComponentTagRename(this, 'auro-menuoption');
1617
1617
 
1618
+ if (!this.hasAttribute('size')) {
1619
+ this.size = this.parentElement.getAttribute('size') || 'sm';
1620
+ }
1621
+ if (!this.hasAttribute('shape')) {
1622
+ this.shape = this.parentElement.getAttribute('shape') || 'box';
1623
+ }
1624
+
1618
1625
  this.setAttribute('role', 'option');
1619
1626
  this.setAttribute('aria-selected', 'false');
1620
1627
 
@@ -1496,12 +1496,12 @@ class AuroMenuOption extends AuroElement$1 {
1496
1496
  /**
1497
1497
  * @private
1498
1498
  */
1499
- this.shape = "box";
1499
+ this.shape = undefined;
1500
1500
 
1501
1501
  /**
1502
1502
  * @private
1503
1503
  */
1504
- this.size = "sm";
1504
+ this.size = undefined;
1505
1505
 
1506
1506
  /**
1507
1507
  * Generate unique names for dependency components.
@@ -1574,6 +1574,13 @@ class AuroMenuOption extends AuroElement$1 {
1574
1574
  // Add the tag name as an attribute if it is different than the component name
1575
1575
  this.runtimeUtils.handleComponentTagRename(this, 'auro-menuoption');
1576
1576
 
1577
+ if (!this.hasAttribute('size')) {
1578
+ this.size = this.parentElement.getAttribute('size') || 'sm';
1579
+ }
1580
+ if (!this.hasAttribute('shape')) {
1581
+ this.shape = this.parentElement.getAttribute('shape') || 'box';
1582
+ }
1583
+
1577
1584
  this.setAttribute('role', 'option');
1578
1585
  this.setAttribute('aria-selected', 'false');
1579
1586
 
@@ -8108,6 +8108,7 @@ class AuroSelect extends AuroElement$4 {
8108
8108
  this.isPopoverVisible = this.dropdown.isPopoverVisible;
8109
8109
 
8110
8110
  if (this.dropdown.isPopoverVisible) {
8111
+ this.updateMenuShapeSize();
8111
8112
  // wait til the bib gets fully rendered
8112
8113
  setTimeout(() => {
8113
8114
  if (this.dropdown.isBibFullscreen) {
@@ -8123,6 +8124,10 @@ class AuroSelect extends AuroElement$4 {
8123
8124
  }
8124
8125
  });
8125
8126
 
8127
+ this.dropdown.addEventListener('auroDropdown-strategy-change', () => {
8128
+ this.updateMenuShapeSize();
8129
+ });
8130
+
8126
8131
  // setting up bibtemplate
8127
8132
  this.bibtemplate = this.dropdown.querySelector(this.bibtemplateTag._$litStatic$);
8128
8133
 
@@ -8187,6 +8192,30 @@ class AuroSelect extends AuroElement$4 {
8187
8192
  this.dropdown.requestUpdate();
8188
8193
  }
8189
8194
 
8195
+ /**
8196
+ * Update menu to default for fullscreen bib, otherwise to this.size and this.shape.
8197
+ * @private
8198
+ */
8199
+ updateMenuShapeSize() {
8200
+ if (!this.menu) {
8201
+ return;
8202
+ }
8203
+
8204
+ if (this.dropdown && this.dropdown.isBibFullscreen) {
8205
+ this.menu.setAttribute('size', 'md');
8206
+ this.menu.setAttribute('shape', 'box');
8207
+ } else {
8208
+ // set menu's default size if there it's not specified.
8209
+ if (!this.menu.getAttribute('size')) {
8210
+ this.menu.setAttribute('size', this.layout !== 'emphasized' ? 'md' : this.size);
8211
+ }
8212
+
8213
+ if (!this.getAttribute('shape')) {
8214
+ this.menu.setAttribute('shape', this.layout === 'classic' ? 'box' : this.shape);
8215
+ }
8216
+ }
8217
+ }
8218
+
8190
8219
  /**
8191
8220
  * Binds all behavior needed to the menu after rendering.
8192
8221
  * @private
@@ -8203,14 +8232,7 @@ class AuroSelect extends AuroElement$4 {
8203
8232
  return;
8204
8233
  }
8205
8234
 
8206
- // set menu's default size if there it's not specified.
8207
- if (!this.menu.getAttribute('size')) {
8208
- this.menu.setAttribute('size', this.layout !== 'emphasized' ? 'md' : this.size);
8209
- }
8210
-
8211
- if (!this.getAttribute('shape')) {
8212
- this.menu.setAttribute('shape', this.layout === 'classic' ? 'box' : this.shape);
8213
- }
8235
+ this.updateMenuShapeSize();
8214
8236
 
8215
8237
  if (this.multiSelect) {
8216
8238
  this.menu.multiSelect = this.multiSelect;
@@ -10288,12 +10310,12 @@ class AuroMenuOption extends AuroElement$4 {
10288
10310
  /**
10289
10311
  * @private
10290
10312
  */
10291
- this.shape = "box";
10313
+ this.shape = undefined;
10292
10314
 
10293
10315
  /**
10294
10316
  * @private
10295
10317
  */
10296
- this.size = "sm";
10318
+ this.size = undefined;
10297
10319
 
10298
10320
  /**
10299
10321
  * Generate unique names for dependency components.
@@ -10366,6 +10388,13 @@ class AuroMenuOption extends AuroElement$4 {
10366
10388
  // Add the tag name as an attribute if it is different than the component name
10367
10389
  this.runtimeUtils.handleComponentTagRename(this, 'auro-menuoption');
10368
10390
 
10391
+ if (!this.hasAttribute('size')) {
10392
+ this.size = this.parentElement.getAttribute('size') || 'sm';
10393
+ }
10394
+ if (!this.hasAttribute('shape')) {
10395
+ this.shape = this.parentElement.getAttribute('shape') || 'box';
10396
+ }
10397
+
10369
10398
  this.setAttribute('role', 'option');
10370
10399
  this.setAttribute('aria-selected', 'false');
10371
10400
 
@@ -8016,6 +8016,7 @@ class AuroSelect extends AuroElement$4 {
8016
8016
  this.isPopoverVisible = this.dropdown.isPopoverVisible;
8017
8017
 
8018
8018
  if (this.dropdown.isPopoverVisible) {
8019
+ this.updateMenuShapeSize();
8019
8020
  // wait til the bib gets fully rendered
8020
8021
  setTimeout(() => {
8021
8022
  if (this.dropdown.isBibFullscreen) {
@@ -8031,6 +8032,10 @@ class AuroSelect extends AuroElement$4 {
8031
8032
  }
8032
8033
  });
8033
8034
 
8035
+ this.dropdown.addEventListener('auroDropdown-strategy-change', () => {
8036
+ this.updateMenuShapeSize();
8037
+ });
8038
+
8034
8039
  // setting up bibtemplate
8035
8040
  this.bibtemplate = this.dropdown.querySelector(this.bibtemplateTag._$litStatic$);
8036
8041
 
@@ -8095,6 +8100,30 @@ class AuroSelect extends AuroElement$4 {
8095
8100
  this.dropdown.requestUpdate();
8096
8101
  }
8097
8102
 
8103
+ /**
8104
+ * Update menu to default for fullscreen bib, otherwise to this.size and this.shape.
8105
+ * @private
8106
+ */
8107
+ updateMenuShapeSize() {
8108
+ if (!this.menu) {
8109
+ return;
8110
+ }
8111
+
8112
+ if (this.dropdown && this.dropdown.isBibFullscreen) {
8113
+ this.menu.setAttribute('size', 'md');
8114
+ this.menu.setAttribute('shape', 'box');
8115
+ } else {
8116
+ // set menu's default size if there it's not specified.
8117
+ if (!this.menu.getAttribute('size')) {
8118
+ this.menu.setAttribute('size', this.layout !== 'emphasized' ? 'md' : this.size);
8119
+ }
8120
+
8121
+ if (!this.getAttribute('shape')) {
8122
+ this.menu.setAttribute('shape', this.layout === 'classic' ? 'box' : this.shape);
8123
+ }
8124
+ }
8125
+ }
8126
+
8098
8127
  /**
8099
8128
  * Binds all behavior needed to the menu after rendering.
8100
8129
  * @private
@@ -8111,14 +8140,7 @@ class AuroSelect extends AuroElement$4 {
8111
8140
  return;
8112
8141
  }
8113
8142
 
8114
- // set menu's default size if there it's not specified.
8115
- if (!this.menu.getAttribute('size')) {
8116
- this.menu.setAttribute('size', this.layout !== 'emphasized' ? 'md' : this.size);
8117
- }
8118
-
8119
- if (!this.getAttribute('shape')) {
8120
- this.menu.setAttribute('shape', this.layout === 'classic' ? 'box' : this.shape);
8121
- }
8143
+ this.updateMenuShapeSize();
8122
8144
 
8123
8145
  if (this.multiSelect) {
8124
8146
  this.menu.multiSelect = this.multiSelect;
@@ -10196,12 +10218,12 @@ class AuroMenuOption extends AuroElement$4 {
10196
10218
  /**
10197
10219
  * @private
10198
10220
  */
10199
- this.shape = "box";
10221
+ this.shape = undefined;
10200
10222
 
10201
10223
  /**
10202
10224
  * @private
10203
10225
  */
10204
- this.size = "sm";
10226
+ this.size = undefined;
10205
10227
 
10206
10228
  /**
10207
10229
  * Generate unique names for dependency components.
@@ -10274,6 +10296,13 @@ class AuroMenuOption extends AuroElement$4 {
10274
10296
  // Add the tag name as an attribute if it is different than the component name
10275
10297
  this.runtimeUtils.handleComponentTagRename(this, 'auro-menuoption');
10276
10298
 
10299
+ if (!this.hasAttribute('size')) {
10300
+ this.size = this.parentElement.getAttribute('size') || 'sm';
10301
+ }
10302
+ if (!this.hasAttribute('shape')) {
10303
+ this.shape = this.parentElement.getAttribute('shape') || 'box';
10304
+ }
10305
+
10277
10306
  this.setAttribute('role', 'option');
10278
10307
  this.setAttribute('aria-selected', 'false');
10279
10308
 
@@ -344,6 +344,11 @@ export class AuroSelect extends AuroElement {
344
344
  * @returns {void}
345
345
  */
346
346
  private updateDisplayedValue;
347
+ /**
348
+ * Update menu to default for fullscreen bib, otherwise to this.size and this.shape.
349
+ * @private
350
+ */
351
+ private updateMenuShapeSize;
347
352
  /**
348
353
  * Binds all behavior needed to the menu after rendering.
349
354
  * @private
@@ -7970,6 +7970,7 @@ class AuroSelect extends AuroElement$3 {
7970
7970
  this.isPopoverVisible = this.dropdown.isPopoverVisible;
7971
7971
 
7972
7972
  if (this.dropdown.isPopoverVisible) {
7973
+ this.updateMenuShapeSize();
7973
7974
  // wait til the bib gets fully rendered
7974
7975
  setTimeout(() => {
7975
7976
  if (this.dropdown.isBibFullscreen) {
@@ -7985,6 +7986,10 @@ class AuroSelect extends AuroElement$3 {
7985
7986
  }
7986
7987
  });
7987
7988
 
7989
+ this.dropdown.addEventListener('auroDropdown-strategy-change', () => {
7990
+ this.updateMenuShapeSize();
7991
+ });
7992
+
7988
7993
  // setting up bibtemplate
7989
7994
  this.bibtemplate = this.dropdown.querySelector(this.bibtemplateTag._$litStatic$);
7990
7995
 
@@ -8049,6 +8054,30 @@ class AuroSelect extends AuroElement$3 {
8049
8054
  this.dropdown.requestUpdate();
8050
8055
  }
8051
8056
 
8057
+ /**
8058
+ * Update menu to default for fullscreen bib, otherwise to this.size and this.shape.
8059
+ * @private
8060
+ */
8061
+ updateMenuShapeSize() {
8062
+ if (!this.menu) {
8063
+ return;
8064
+ }
8065
+
8066
+ if (this.dropdown && this.dropdown.isBibFullscreen) {
8067
+ this.menu.setAttribute('size', 'md');
8068
+ this.menu.setAttribute('shape', 'box');
8069
+ } else {
8070
+ // set menu's default size if there it's not specified.
8071
+ if (!this.menu.getAttribute('size')) {
8072
+ this.menu.setAttribute('size', this.layout !== 'emphasized' ? 'md' : this.size);
8073
+ }
8074
+
8075
+ if (!this.getAttribute('shape')) {
8076
+ this.menu.setAttribute('shape', this.layout === 'classic' ? 'box' : this.shape);
8077
+ }
8078
+ }
8079
+ }
8080
+
8052
8081
  /**
8053
8082
  * Binds all behavior needed to the menu after rendering.
8054
8083
  * @private
@@ -8065,14 +8094,7 @@ class AuroSelect extends AuroElement$3 {
8065
8094
  return;
8066
8095
  }
8067
8096
 
8068
- // set menu's default size if there it's not specified.
8069
- if (!this.menu.getAttribute('size')) {
8070
- this.menu.setAttribute('size', this.layout !== 'emphasized' ? 'md' : this.size);
8071
- }
8072
-
8073
- if (!this.getAttribute('shape')) {
8074
- this.menu.setAttribute('shape', this.layout === 'classic' ? 'box' : this.shape);
8075
- }
8097
+ this.updateMenuShapeSize();
8076
8098
 
8077
8099
  if (this.multiSelect) {
8078
8100
  this.menu.multiSelect = this.multiSelect;
@@ -7970,6 +7970,7 @@ class AuroSelect extends AuroElement$3 {
7970
7970
  this.isPopoverVisible = this.dropdown.isPopoverVisible;
7971
7971
 
7972
7972
  if (this.dropdown.isPopoverVisible) {
7973
+ this.updateMenuShapeSize();
7973
7974
  // wait til the bib gets fully rendered
7974
7975
  setTimeout(() => {
7975
7976
  if (this.dropdown.isBibFullscreen) {
@@ -7985,6 +7986,10 @@ class AuroSelect extends AuroElement$3 {
7985
7986
  }
7986
7987
  });
7987
7988
 
7989
+ this.dropdown.addEventListener('auroDropdown-strategy-change', () => {
7990
+ this.updateMenuShapeSize();
7991
+ });
7992
+
7988
7993
  // setting up bibtemplate
7989
7994
  this.bibtemplate = this.dropdown.querySelector(this.bibtemplateTag._$litStatic$);
7990
7995
 
@@ -8049,6 +8054,30 @@ class AuroSelect extends AuroElement$3 {
8049
8054
  this.dropdown.requestUpdate();
8050
8055
  }
8051
8056
 
8057
+ /**
8058
+ * Update menu to default for fullscreen bib, otherwise to this.size and this.shape.
8059
+ * @private
8060
+ */
8061
+ updateMenuShapeSize() {
8062
+ if (!this.menu) {
8063
+ return;
8064
+ }
8065
+
8066
+ if (this.dropdown && this.dropdown.isBibFullscreen) {
8067
+ this.menu.setAttribute('size', 'md');
8068
+ this.menu.setAttribute('shape', 'box');
8069
+ } else {
8070
+ // set menu's default size if there it's not specified.
8071
+ if (!this.menu.getAttribute('size')) {
8072
+ this.menu.setAttribute('size', this.layout !== 'emphasized' ? 'md' : this.size);
8073
+ }
8074
+
8075
+ if (!this.getAttribute('shape')) {
8076
+ this.menu.setAttribute('shape', this.layout === 'classic' ? 'box' : this.shape);
8077
+ }
8078
+ }
8079
+ }
8080
+
8052
8081
  /**
8053
8082
  * Binds all behavior needed to the menu after rendering.
8054
8083
  * @private
@@ -8065,14 +8094,7 @@ class AuroSelect extends AuroElement$3 {
8065
8094
  return;
8066
8095
  }
8067
8096
 
8068
- // set menu's default size if there it's not specified.
8069
- if (!this.menu.getAttribute('size')) {
8070
- this.menu.setAttribute('size', this.layout !== 'emphasized' ? 'md' : this.size);
8071
- }
8072
-
8073
- if (!this.getAttribute('shape')) {
8074
- this.menu.setAttribute('shape', this.layout === 'classic' ? 'box' : this.shape);
8075
- }
8097
+ this.updateMenuShapeSize();
8076
8098
 
8077
8099
  if (this.multiSelect) {
8078
8100
  this.menu.multiSelect = this.multiSelect;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aurodesignsystem-dev/auro-formkit",
3
- "version": "0.0.0-pr811.1",
3
+ "version": "0.0.0-pr816.0",
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": {