gd-bs 6.6.39 → 6.6.41
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/bs.js +1 -1
- package/build/components/form/control.js +18 -4
- package/dist/gd-bs-icons.js +1 -1
- package/dist/gd-bs-icons.min.js +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/form/control.ts +16 -4
- package/src/styles/_tippy.scss +63 -11
|
@@ -625,8 +625,15 @@ var FormControl = /** @class */ (function () {
|
|
|
625
625
|
if (this._el) {
|
|
626
626
|
// See if this is a row
|
|
627
627
|
if (this._el.parentElement && this._el.parentElement.parentElement && this._el.parentElement.parentElement.classList.contains("row")) {
|
|
628
|
-
//
|
|
629
|
-
this._el.parentElement.parentElement.
|
|
628
|
+
// See if there are other controls in this row
|
|
629
|
+
if (this._el.parentElement.parentElement.querySelectorAll(".col").length > 1) {
|
|
630
|
+
// Hide the column element
|
|
631
|
+
this._el.parentElement.classList.add("d-none");
|
|
632
|
+
}
|
|
633
|
+
else {
|
|
634
|
+
// Hide the row element
|
|
635
|
+
this._el.parentElement.parentElement.classList.add("d-none");
|
|
636
|
+
}
|
|
630
637
|
}
|
|
631
638
|
// Else, ensure the parent element exists
|
|
632
639
|
else if (this._el.parentElement) {
|
|
@@ -727,8 +734,15 @@ var FormControl = /** @class */ (function () {
|
|
|
727
734
|
if (this._el) {
|
|
728
735
|
// See if this is a row
|
|
729
736
|
if (this._el.parentElement && this._el.parentElement.parentElement && this._el.parentElement.parentElement.classList.contains("row")) {
|
|
730
|
-
//
|
|
731
|
-
this._el.parentElement.parentElement.
|
|
737
|
+
// See if there are other controls in this row
|
|
738
|
+
if (this._el.parentElement.parentElement.querySelectorAll(".col").length > 1) {
|
|
739
|
+
// Show the column element
|
|
740
|
+
this._el.parentElement.classList.remove("d-none");
|
|
741
|
+
}
|
|
742
|
+
else {
|
|
743
|
+
// Show the row element
|
|
744
|
+
this._el.parentElement.parentElement.classList.remove("d-none");
|
|
745
|
+
}
|
|
732
746
|
}
|
|
733
747
|
// Else, ensure the parent element exists
|
|
734
748
|
else if (this._el.parentElement) {
|