gd-bs 6.6.60 → 6.6.62
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/build/components/dropdown/formItem.js +1 -1
- package/build/components/dropdown/index.js +4 -4
- package/build/components/dropdown/item.js +1 -1
- package/build/components/jumbotron/index.js +0 -1
- package/dist/gd-bs-icons.js +1 -1
- package/dist/gd-bs-icons.min.js +1 -1
- package/dist/gd-bs.d.ts +1 -1
- package/dist/gd-bs.js +1 -1
- package/dist/gd-bs.min.js +1 -1
- package/package.json +1 -1
- package/src/components/dropdown/formItem.ts +1 -1
- package/src/components/dropdown/index.ts +4 -4
- package/src/components/dropdown/item.ts +1 -1
- package/src/components/dropdown/types.d.ts +1 -1
- package/src/components/jumbotron/index.ts +0 -1
|
@@ -51,7 +51,7 @@ var DropdownFormItem = /** @class */ (function () {
|
|
|
51
51
|
// Else, see if a value exists
|
|
52
52
|
else if (this._parent.value != undefined) {
|
|
53
53
|
// Ensure it's an array
|
|
54
|
-
var values = this._parent.value &&
|
|
54
|
+
var values = this._parent.value && typeof (this._parent.value) === "object" ? this._parent.value : [this._parent.value];
|
|
55
55
|
// Parse the values
|
|
56
56
|
for (var i = 0; i < values.length; i++) {
|
|
57
57
|
var value = this._props.value == undefined ? this._props.text : this._props.value;
|
|
@@ -434,7 +434,7 @@ var _Dropdown = /** @class */ (function (_super) {
|
|
|
434
434
|
return values;
|
|
435
435
|
}
|
|
436
436
|
// Ensure it's an array
|
|
437
|
-
if (typeof (currentValues)
|
|
437
|
+
if (typeof (currentValues) !== "object") {
|
|
438
438
|
// Make it an array
|
|
439
439
|
currentValues = [currentValues];
|
|
440
440
|
}
|
|
@@ -442,7 +442,7 @@ var _Dropdown = /** @class */ (function (_super) {
|
|
|
442
442
|
var currentValue = currentValues[i];
|
|
443
443
|
var currentItem = {};
|
|
444
444
|
// See if this is a string
|
|
445
|
-
if (typeof (currentValue)
|
|
445
|
+
if (typeof (currentValue) !== "object") {
|
|
446
446
|
// Set the text and value properties
|
|
447
447
|
currentItem.text = currentValue;
|
|
448
448
|
currentItem.value = currentValue;
|
|
@@ -553,7 +553,7 @@ var _Dropdown = /** @class */ (function (_super) {
|
|
|
553
553
|
if (this._cb) {
|
|
554
554
|
// Get the values
|
|
555
555
|
var items = this._cb.getValue();
|
|
556
|
-
items = typeof (items
|
|
556
|
+
items = typeof (items) === "object" ? items : [items];
|
|
557
557
|
// Parse the items
|
|
558
558
|
for (var i = 0; i < items.length; i++) {
|
|
559
559
|
// Add the value
|
|
@@ -677,7 +677,7 @@ var _Dropdown = /** @class */ (function (_super) {
|
|
|
677
677
|
// Sets the dropdown value
|
|
678
678
|
_Dropdown.prototype.setValue = function (value) {
|
|
679
679
|
// Ensure it's an array
|
|
680
|
-
var values = value == null ? [] : (typeof (value
|
|
680
|
+
var values = value == null ? [] : (typeof (value) === "object" ? value : [value]);
|
|
681
681
|
// See if this is a checkbox
|
|
682
682
|
if (this._cb) {
|
|
683
683
|
// Set the value
|
|
@@ -76,7 +76,7 @@ var DropdownItem = /** @class */ (function () {
|
|
|
76
76
|
// Else, see if a value exists
|
|
77
77
|
else if (this._parent.value != undefined) {
|
|
78
78
|
// Ensure it's an array
|
|
79
|
-
var values = this._parent.value &&
|
|
79
|
+
var values = this._parent.value && typeof (this._parent.value) === "object" ? this._parent.value : [this._parent.value];
|
|
80
80
|
// Parse the values
|
|
81
81
|
for (var j = 0; j < values.length; j++) {
|
|
82
82
|
var value = this._props.value == undefined ? this._props.text : this._props.value;
|