bromcom-ui 2.4.11 → 2.4.12

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.
@@ -11018,14 +11018,19 @@ const BcmSelect = class {
11018
11018
  this.captionTypeCache = this.captionType;
11019
11019
  }
11020
11020
  handleChange(newValue, oldValue) {
11021
- if (oldValue != newValue) {
11021
+ const newVal = newValue ? newValue : null;
11022
+ const oldVal = oldValue ? oldValue : null;
11023
+ if (oldVal != newVal) {
11022
11024
  if (this.checkboxes == true) {
11023
- this.change.emit(newValue);
11025
+ this.change.emit(newVal);
11024
11026
  }
11025
11027
  else {
11026
- if (!oldValue || (newValue[this.objectMapping['id']] != oldValue[this.objectMapping['id']])) {
11028
+ if (!oldVal || (newVal && (newVal[this.objectMapping['id']] != oldVal[this.objectMapping['id']]))) {
11027
11029
  // await delay(10)
11028
- this.change.emit(newValue);
11030
+ this.change.emit(newVal);
11031
+ }
11032
+ if (!newVal) {
11033
+ this.change.emit(newVal);
11029
11034
  }
11030
11035
  }
11031
11036
  }
@@ -469,14 +469,19 @@ export class BcmSelect {
469
469
  this.captionTypeCache = this.captionType;
470
470
  }
471
471
  handleChange(newValue, oldValue) {
472
- if (oldValue != newValue) {
472
+ const newVal = newValue ? newValue : null;
473
+ const oldVal = oldValue ? oldValue : null;
474
+ if (oldVal != newVal) {
473
475
  if (this.checkboxes == true) {
474
- this.change.emit(newValue);
476
+ this.change.emit(newVal);
475
477
  }
476
478
  else {
477
- if (!oldValue || (newValue[this.objectMapping['id']] != oldValue[this.objectMapping['id']])) {
479
+ if (!oldVal || (newVal && (newVal[this.objectMapping['id']] != oldVal[this.objectMapping['id']]))) {
478
480
  // await delay(10)
479
- this.change.emit(newValue);
481
+ this.change.emit(newVal);
482
+ }
483
+ if (!newVal) {
484
+ this.change.emit(newVal);
480
485
  }
481
486
  }
482
487
  }
@@ -11014,14 +11014,19 @@ const BcmSelect = class {
11014
11014
  this.captionTypeCache = this.captionType;
11015
11015
  }
11016
11016
  handleChange(newValue, oldValue) {
11017
- if (oldValue != newValue) {
11017
+ const newVal = newValue ? newValue : null;
11018
+ const oldVal = oldValue ? oldValue : null;
11019
+ if (oldVal != newVal) {
11018
11020
  if (this.checkboxes == true) {
11019
- this.change.emit(newValue);
11021
+ this.change.emit(newVal);
11020
11022
  }
11021
11023
  else {
11022
- if (!oldValue || (newValue[this.objectMapping['id']] != oldValue[this.objectMapping['id']])) {
11024
+ if (!oldVal || (newVal && (newVal[this.objectMapping['id']] != oldVal[this.objectMapping['id']]))) {
11023
11025
  // await delay(10)
11024
- this.change.emit(newValue);
11026
+ this.change.emit(newVal);
11027
+ }
11028
+ if (!newVal) {
11029
+ this.change.emit(newVal);
11025
11030
  }
11026
11031
  }
11027
11032
  }
@@ -0,0 +1,34 @@
1
+ export declare namespace BcmAtomsState {
2
+ interface BaseAtoms {
3
+ id: string | number;
4
+ }
5
+ interface Button extends BaseAtoms {
6
+ type: any;
7
+ hidden: any;
8
+ size: any;
9
+ disabled: any;
10
+ outline: any;
11
+ icon: any;
12
+ href: any;
13
+ kind: any;
14
+ target: any;
15
+ value: string;
16
+ loading: boolean;
17
+ variant: any;
18
+ fullWidth: boolean;
19
+ iconPosition: any;
20
+ variantClass: string;
21
+ isIconOnly: boolean;
22
+ iconSize: any;
23
+ dataDismiss: () => void;
24
+ }
25
+ interface Badge extends BaseAtoms {
26
+ blink?: any;
27
+ value?: any;
28
+ _slot?: any;
29
+ color?: any;
30
+ size?: any;
31
+ status?: any;
32
+ }
33
+ }
34
+ export default BcmAtomsState;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bromcom-ui",
3
- "version": "2.4.11",
3
+ "version": "2.4.12",
4
4
  "description": "Stencil Component Starter",
5
5
  "main": "dist/index.cjs.js",
6
6
  "module": "dist/index.js",