@aurodesignsystem-dev/auro-formkit 0.0.0-pr649.1 → 0.0.0-pr649.3

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.
@@ -13338,7 +13338,7 @@ class AuroCombobox extends i$2 {
13338
13338
  let hasChange = false;
13339
13339
 
13340
13340
  if (!this.value || this.value !== this.input.value) {
13341
- this.menu.value = this.input.value ? this.input.value : undefined;
13341
+ this.menu.value = this.input.value;
13342
13342
  this.value = this.menu.value;
13343
13343
  hasChange = true;
13344
13344
  this.dispatchEvent(new CustomEvent('auroCombobox-valueSet', {
@@ -13869,6 +13869,11 @@ class AuroMenu extends i$2 {
13869
13869
  }
13870
13870
 
13871
13871
  updated(changedProperties) {
13872
+ if (changedProperties.has('multiSelect')) {
13873
+ // Reset selection if multiSelect mode changes
13874
+ this.clearSelection();
13875
+ }
13876
+
13872
13877
  if (changedProperties.has('value')) {
13873
13878
  // Handle null/undefined case
13874
13879
  if (this.value === undefined || this.value === null) {
@@ -46,6 +46,7 @@
46
46
  <!-- If additional elements are needed for the demo, add them here. -->
47
47
  <script src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-accordion@latest/dist/auro-accordion__bundled.js" type="module"></script>
48
48
  <script src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-button@latest/dist/auro-button__bundled.js" type="module"></script>
49
+ <script src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-icon@latest/dist/auro-icon__bundled.js" type="module"></script>
49
50
 
50
51
  <script type="module" data-demo-script="true">
51
52
  import { initExamples } from "./index.min.js"
@@ -13196,7 +13196,7 @@ class AuroCombobox extends i$2 {
13196
13196
  let hasChange = false;
13197
13197
 
13198
13198
  if (!this.value || this.value !== this.input.value) {
13199
- this.menu.value = this.input.value ? this.input.value : undefined;
13199
+ this.menu.value = this.input.value;
13200
13200
  this.value = this.menu.value;
13201
13201
  hasChange = true;
13202
13202
  this.dispatchEvent(new CustomEvent('auroCombobox-valueSet', {
@@ -13727,6 +13727,11 @@ class AuroMenu extends i$2 {
13727
13727
  }
13728
13728
 
13729
13729
  updated(changedProperties) {
13730
+ if (changedProperties.has('multiSelect')) {
13731
+ // Reset selection if multiSelect mode changes
13732
+ this.clearSelection();
13733
+ }
13734
+
13730
13735
  if (changedProperties.has('value')) {
13731
13736
  // Handle null/undefined case
13732
13737
  if (this.value === undefined || this.value === null) {
@@ -13114,7 +13114,7 @@ class AuroCombobox extends LitElement {
13114
13114
  let hasChange = false;
13115
13115
 
13116
13116
  if (!this.value || this.value !== this.input.value) {
13117
- this.menu.value = this.input.value ? this.input.value : undefined;
13117
+ this.menu.value = this.input.value;
13118
13118
  this.value = this.menu.value;
13119
13119
  hasChange = true;
13120
13120
  this.dispatchEvent(new CustomEvent('auroCombobox-valueSet', {
@@ -13114,7 +13114,7 @@ class AuroCombobox extends LitElement {
13114
13114
  let hasChange = false;
13115
13115
 
13116
13116
  if (!this.value || this.value !== this.input.value) {
13117
- this.menu.value = this.input.value ? this.input.value : undefined;
13117
+ this.menu.value = this.input.value;
13118
13118
  this.value = this.menu.value;
13119
13119
  hasChange = true;
13120
13120
  this.dispatchEvent(new CustomEvent('auroCombobox-valueSet', {
@@ -355,6 +355,11 @@ class AuroMenu extends i$2 {
355
355
  }
356
356
 
357
357
  updated(changedProperties) {
358
+ if (changedProperties.has('multiSelect')) {
359
+ // Reset selection if multiSelect mode changes
360
+ this.clearSelection();
361
+ }
362
+
358
363
  if (changedProperties.has('value')) {
359
364
  // Handle null/undefined case
360
365
  if (this.value === undefined || this.value === null) {
@@ -315,6 +315,11 @@ class AuroMenu extends i$2 {
315
315
  }
316
316
 
317
317
  updated(changedProperties) {
318
+ if (changedProperties.has('multiSelect')) {
319
+ // Reset selection if multiSelect mode changes
320
+ this.clearSelection();
321
+ }
322
+
318
323
  if (changedProperties.has('value')) {
319
324
  // Handle null/undefined case
320
325
  if (this.value === undefined || this.value === null) {
@@ -335,6 +335,11 @@ class AuroMenu extends LitElement {
335
335
  }
336
336
 
337
337
  updated(changedProperties) {
338
+ if (changedProperties.has('multiSelect')) {
339
+ // Reset selection if multiSelect mode changes
340
+ this.clearSelection();
341
+ }
342
+
338
343
  if (changedProperties.has('value')) {
339
344
  // Handle null/undefined case
340
345
  if (this.value === undefined || this.value === null) {
@@ -294,6 +294,11 @@ class AuroMenu extends LitElement {
294
294
  }
295
295
 
296
296
  updated(changedProperties) {
297
+ if (changedProperties.has('multiSelect')) {
298
+ // Reset selection if multiSelect mode changes
299
+ this.clearSelection();
300
+ }
301
+
297
302
  if (changedProperties.has('value')) {
298
303
  // Handle null/undefined case
299
304
  if (this.value === undefined || this.value === null) {
@@ -6612,6 +6612,11 @@ class AuroMenu extends i$2 {
6612
6612
  }
6613
6613
 
6614
6614
  updated(changedProperties) {
6615
+ if (changedProperties.has('multiSelect')) {
6616
+ // Reset selection if multiSelect mode changes
6617
+ this.clearSelection();
6618
+ }
6619
+
6615
6620
  if (changedProperties.has('value')) {
6616
6621
  // Handle null/undefined case
6617
6622
  if (this.value === undefined || this.value === null) {
@@ -6520,6 +6520,11 @@ class AuroMenu extends i$2 {
6520
6520
  }
6521
6521
 
6522
6522
  updated(changedProperties) {
6523
+ if (changedProperties.has('multiSelect')) {
6524
+ // Reset selection if multiSelect mode changes
6525
+ this.clearSelection();
6526
+ }
6527
+
6523
6528
  if (changedProperties.has('value')) {
6524
6529
  // Handle null/undefined case
6525
6530
  if (this.value === undefined || this.value === null) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aurodesignsystem-dev/auro-formkit",
3
- "version": "0.0.0-pr649.1",
3
+ "version": "0.0.0-pr649.3",
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": {