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.
- package/dist/bromcom-ui/bromcom-ui.esm.js +1 -1
- package/dist/bromcom-ui/{p-4348f58f.entry.js → p-59c0459d.entry.js} +1 -1
- package/dist/cjs/bcm-avatar_33.cjs.entry.js +9 -4
- package/dist/collection/components/molecules/select/select.js +9 -4
- package/dist/esm/bcm-avatar_33.entry.js +9 -4
- package/dist/types/models/states/atoms/bcm-atoms-state.d.ts +34 -0
- package/package.json +1 -1
|
@@ -11018,14 +11018,19 @@ const BcmSelect = class {
|
|
|
11018
11018
|
this.captionTypeCache = this.captionType;
|
|
11019
11019
|
}
|
|
11020
11020
|
handleChange(newValue, oldValue) {
|
|
11021
|
-
|
|
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(
|
|
11025
|
+
this.change.emit(newVal);
|
|
11024
11026
|
}
|
|
11025
11027
|
else {
|
|
11026
|
-
if (!
|
|
11028
|
+
if (!oldVal || (newVal && (newVal[this.objectMapping['id']] != oldVal[this.objectMapping['id']]))) {
|
|
11027
11029
|
// await delay(10)
|
|
11028
|
-
this.change.emit(
|
|
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
|
-
|
|
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(
|
|
476
|
+
this.change.emit(newVal);
|
|
475
477
|
}
|
|
476
478
|
else {
|
|
477
|
-
if (!
|
|
479
|
+
if (!oldVal || (newVal && (newVal[this.objectMapping['id']] != oldVal[this.objectMapping['id']]))) {
|
|
478
480
|
// await delay(10)
|
|
479
|
-
this.change.emit(
|
|
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
|
-
|
|
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(
|
|
11021
|
+
this.change.emit(newVal);
|
|
11020
11022
|
}
|
|
11021
11023
|
else {
|
|
11022
|
-
if (!
|
|
11024
|
+
if (!oldVal || (newVal && (newVal[this.objectMapping['id']] != oldVal[this.objectMapping['id']]))) {
|
|
11023
11025
|
// await delay(10)
|
|
11024
|
-
this.change.emit(
|
|
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;
|