@aurodesignsystem-dev/auro-formkit 0.0.0-pr1048.0 → 0.0.0-pr1052.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.
@@ -17964,8 +17964,9 @@ class AuroMenu extends AuroElement$1 {
17964
17964
  /**
17965
17965
  * Handles slot change events.
17966
17966
  * @private
17967
+ * @param {Event} evt - slotchange Event.
17967
17968
  */
17968
- handleSlotChange() {
17969
+ handleSlotChange(evt) {
17969
17970
  if (this.parentElement && this.parentElement.closest('auro-menu, [auro-menu]')) {
17970
17971
  this.rootMenu = false;
17971
17972
  }
@@ -17980,6 +17981,13 @@ class AuroMenu extends AuroElement$1 {
17980
17981
  ]
17981
17982
  ]));
17982
17983
  }
17984
+
17985
+ const options = evt.target.assignedElements();
17986
+ options.forEach((opt) => {
17987
+ if (opt.value === this.value) {
17988
+ this.handleSelectState(opt);
17989
+ }
17990
+ });
17983
17991
  }
17984
17992
 
17985
17993
  /**
@@ -18613,7 +18621,8 @@ class AuroMenuOption extends AuroElement$1 {
18613
18621
  reflect: true
18614
18622
  },
18615
18623
  value: {
18616
- type: String
18624
+ type: String,
18625
+ reflect: true
18617
18626
  },
18618
18627
  tabIndex: {
18619
18628
  type: Number,
@@ -17822,8 +17822,9 @@ class AuroMenu extends AuroElement$1 {
17822
17822
  /**
17823
17823
  * Handles slot change events.
17824
17824
  * @private
17825
+ * @param {Event} evt - slotchange Event.
17825
17826
  */
17826
- handleSlotChange() {
17827
+ handleSlotChange(evt) {
17827
17828
  if (this.parentElement && this.parentElement.closest('auro-menu, [auro-menu]')) {
17828
17829
  this.rootMenu = false;
17829
17830
  }
@@ -17838,6 +17839,13 @@ class AuroMenu extends AuroElement$1 {
17838
17839
  ]
17839
17840
  ]));
17840
17841
  }
17842
+
17843
+ const options = evt.target.assignedElements();
17844
+ options.forEach((opt) => {
17845
+ if (opt.value === this.value) {
17846
+ this.handleSelectState(opt);
17847
+ }
17848
+ });
17841
17849
  }
17842
17850
 
17843
17851
  /**
@@ -18471,7 +18479,8 @@ class AuroMenuOption extends AuroElement$1 {
18471
18479
  reflect: true
18472
18480
  },
18473
18481
  value: {
18474
- type: String
18482
+ type: String,
18483
+ reflect: true
18475
18484
  },
18476
18485
  tabIndex: {
18477
18486
  type: Number,
@@ -937,8 +937,9 @@ class AuroMenu extends AuroElement$1 {
937
937
  /**
938
938
  * Handles slot change events.
939
939
  * @private
940
+ * @param {Event} evt - slotchange Event.
940
941
  */
941
- handleSlotChange() {
942
+ handleSlotChange(evt) {
942
943
  if (this.parentElement && this.parentElement.closest('auro-menu, [auro-menu]')) {
943
944
  this.rootMenu = false;
944
945
  }
@@ -953,6 +954,13 @@ class AuroMenu extends AuroElement$1 {
953
954
  ]
954
955
  ]));
955
956
  }
957
+
958
+ const options = evt.target.assignedElements();
959
+ options.forEach((opt) => {
960
+ if (opt.value === this.value) {
961
+ this.handleSelectState(opt);
962
+ }
963
+ });
956
964
  }
957
965
 
958
966
  /**
@@ -1639,7 +1647,8 @@ class AuroMenuOption extends AuroElement$1 {
1639
1647
  reflect: true
1640
1648
  },
1641
1649
  value: {
1642
- type: String
1650
+ type: String,
1651
+ reflect: true
1643
1652
  },
1644
1653
  tabIndex: {
1645
1654
  type: Number,
@@ -897,8 +897,9 @@ class AuroMenu extends AuroElement$1 {
897
897
  /**
898
898
  * Handles slot change events.
899
899
  * @private
900
+ * @param {Event} evt - slotchange Event.
900
901
  */
901
- handleSlotChange() {
902
+ handleSlotChange(evt) {
902
903
  if (this.parentElement && this.parentElement.closest('auro-menu, [auro-menu]')) {
903
904
  this.rootMenu = false;
904
905
  }
@@ -913,6 +914,13 @@ class AuroMenu extends AuroElement$1 {
913
914
  ]
914
915
  ]));
915
916
  }
917
+
918
+ const options = evt.target.assignedElements();
919
+ options.forEach((opt) => {
920
+ if (opt.value === this.value) {
921
+ this.handleSelectState(opt);
922
+ }
923
+ });
916
924
  }
917
925
 
918
926
  /**
@@ -1599,7 +1607,8 @@ class AuroMenuOption extends AuroElement$1 {
1599
1607
  reflect: true
1600
1608
  },
1601
1609
  value: {
1602
- type: String
1610
+ type: String,
1611
+ reflect: true
1603
1612
  },
1604
1613
  tabIndex: {
1605
1614
  type: Number,
@@ -118,6 +118,7 @@ export class AuroMenu extends AuroElement {
118
118
  /**
119
119
  * Handles slot change events.
120
120
  * @private
121
+ * @param {Event} evt - slotchange Event.
121
122
  */
122
123
  private handleSlotChange;
123
124
  /**
@@ -24,6 +24,7 @@ export class AuroMenuOption extends AuroElement {
24
24
  };
25
25
  value: {
26
26
  type: StringConstructor;
27
+ reflect: boolean;
27
28
  };
28
29
  tabIndex: {
29
30
  type: NumberConstructor;
@@ -904,8 +904,9 @@ class AuroMenu extends AuroElement$1 {
904
904
  /**
905
905
  * Handles slot change events.
906
906
  * @private
907
+ * @param {Event} evt - slotchange Event.
907
908
  */
908
- handleSlotChange() {
909
+ handleSlotChange(evt) {
909
910
  if (this.parentElement && this.parentElement.closest('auro-menu, [auro-menu]')) {
910
911
  this.rootMenu = false;
911
912
  }
@@ -920,6 +921,13 @@ class AuroMenu extends AuroElement$1 {
920
921
  ]
921
922
  ]));
922
923
  }
924
+
925
+ const options = evt.target.assignedElements();
926
+ options.forEach((opt) => {
927
+ if (opt.value === this.value) {
928
+ this.handleSelectState(opt);
929
+ }
930
+ });
923
931
  }
924
932
 
925
933
  /**
@@ -1593,7 +1601,8 @@ class AuroMenuOption extends AuroElement$1 {
1593
1601
  reflect: true
1594
1602
  },
1595
1603
  value: {
1596
- type: String
1604
+ type: String,
1605
+ reflect: true
1597
1606
  },
1598
1607
  tabIndex: {
1599
1608
  type: Number,
@@ -863,8 +863,9 @@ class AuroMenu extends AuroElement$1 {
863
863
  /**
864
864
  * Handles slot change events.
865
865
  * @private
866
+ * @param {Event} evt - slotchange Event.
866
867
  */
867
- handleSlotChange() {
868
+ handleSlotChange(evt) {
868
869
  if (this.parentElement && this.parentElement.closest('auro-menu, [auro-menu]')) {
869
870
  this.rootMenu = false;
870
871
  }
@@ -879,6 +880,13 @@ class AuroMenu extends AuroElement$1 {
879
880
  ]
880
881
  ]));
881
882
  }
883
+
884
+ const options = evt.target.assignedElements();
885
+ options.forEach((opt) => {
886
+ if (opt.value === this.value) {
887
+ this.handleSelectState(opt);
888
+ }
889
+ });
882
890
  }
883
891
 
884
892
  /**
@@ -1552,7 +1560,8 @@ class AuroMenuOption extends AuroElement$1 {
1552
1560
  reflect: true
1553
1561
  },
1554
1562
  value: {
1555
- type: String
1563
+ type: String,
1564
+ reflect: true
1556
1565
  },
1557
1566
  tabIndex: {
1558
1567
  type: Number,
@@ -9751,8 +9751,9 @@ class AuroMenu extends AuroElement$4 {
9751
9751
  /**
9752
9752
  * Handles slot change events.
9753
9753
  * @private
9754
+ * @param {Event} evt - slotchange Event.
9754
9755
  */
9755
- handleSlotChange() {
9756
+ handleSlotChange(evt) {
9756
9757
  if (this.parentElement && this.parentElement.closest('auro-menu, [auro-menu]')) {
9757
9758
  this.rootMenu = false;
9758
9759
  }
@@ -9767,6 +9768,13 @@ class AuroMenu extends AuroElement$4 {
9767
9768
  ]
9768
9769
  ]));
9769
9770
  }
9771
+
9772
+ const options = evt.target.assignedElements();
9773
+ options.forEach((opt) => {
9774
+ if (opt.value === this.value) {
9775
+ this.handleSelectState(opt);
9776
+ }
9777
+ });
9770
9778
  }
9771
9779
 
9772
9780
  /**
@@ -10400,7 +10408,8 @@ class AuroMenuOption extends AuroElement$4 {
10400
10408
  reflect: true
10401
10409
  },
10402
10410
  value: {
10403
- type: String
10411
+ type: String,
10412
+ reflect: true
10404
10413
  },
10405
10414
  tabIndex: {
10406
10415
  type: Number,
@@ -389,10 +389,10 @@ The custom display value content is inserted using `slot="displayValue"` on each
389
389
 
390
390
  The following example demonstrates menu options with an icon and text. When selected, the auro-select renders an icon with no text.
391
391
 
392
- <div class="exampleWrapper--ondark">
392
+ <div class="exampleWrapper">
393
393
  <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/emphasized/constantDisplayValue.html) -->
394
394
  <!-- The below content is automatically added from ./../apiExamples/emphasized/constantDisplayValue.html -->
395
- <auro-select layout="emphasized" shape="pill" size="xl" value="flights" ondark forceDisplayValue style="display:inline-block;">
395
+ <auro-select layout="emphasized" shape="pill" size="xl" value="flights" forceDisplayValue style="display:inline-block;">
396
396
  <span slot="label">Select Example</span>
397
397
  <auro-menu nocheckmark>
398
398
  <auro-menuoption value="flights">
@@ -425,7 +425,7 @@ The following example demonstrates menu options with an icon and text. When sele
425
425
  <!-- The below code snippet is automatically added from ./../apiExamples/emphasized/constantDisplayValue.html -->
426
426
 
427
427
  ```html
428
- <auro-select layout="emphasized" shape="pill" size="xl" value="flights" ondark forceDisplayValue style="display:inline-block;">
428
+ <auro-select layout="emphasized" shape="pill" size="xl" value="flights" forceDisplayValue style="display:inline-block;">
429
429
  <span slot="label">Select Example</span>
430
430
  <auro-menu nocheckmark>
431
431
  <auro-menuoption value="flights">
@@ -9659,8 +9659,9 @@ class AuroMenu extends AuroElement$4 {
9659
9659
  /**
9660
9660
  * Handles slot change events.
9661
9661
  * @private
9662
+ * @param {Event} evt - slotchange Event.
9662
9663
  */
9663
- handleSlotChange() {
9664
+ handleSlotChange(evt) {
9664
9665
  if (this.parentElement && this.parentElement.closest('auro-menu, [auro-menu]')) {
9665
9666
  this.rootMenu = false;
9666
9667
  }
@@ -9675,6 +9676,13 @@ class AuroMenu extends AuroElement$4 {
9675
9676
  ]
9676
9677
  ]));
9677
9678
  }
9679
+
9680
+ const options = evt.target.assignedElements();
9681
+ options.forEach((opt) => {
9682
+ if (opt.value === this.value) {
9683
+ this.handleSelectState(opt);
9684
+ }
9685
+ });
9678
9686
  }
9679
9687
 
9680
9688
  /**
@@ -10308,7 +10316,8 @@ class AuroMenuOption extends AuroElement$4 {
10308
10316
  reflect: true
10309
10317
  },
10310
10318
  value: {
10311
- type: String
10319
+ type: String,
10320
+ reflect: true
10312
10321
  },
10313
10322
  tabIndex: {
10314
10323
  type: Number,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aurodesignsystem-dev/auro-formkit",
3
- "version": "0.0.0-pr1048.0",
3
+ "version": "0.0.0-pr1052.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": {