gd-bs 6.6.96 → 6.6.98
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/floating-ui/index.js +1 -1
- package/build/components/popover/index.js +2 -2
- package/build/components/tooltip/index.js +2 -2
- 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/index.html +1 -0
- package/package.json +1 -1
- package/src/components/floating-ui/index.ts +1 -1
- package/src/components/popover/index.ts +2 -2
- package/src/components/tooltip/index.ts +2 -2
- package/src/styles/_floating-ui.scss +7 -2
|
@@ -114,7 +114,7 @@ var _FloatingUI = /** @class */ (function () {
|
|
|
114
114
|
}, 10);
|
|
115
115
|
});
|
|
116
116
|
// Create the scroll event
|
|
117
|
-
|
|
117
|
+
window.addEventListener("scroll", function (ev) {
|
|
118
118
|
// Wait for the other events to run
|
|
119
119
|
setTimeout(function () {
|
|
120
120
|
// Parse the events
|
|
@@ -99,8 +99,8 @@ var _Popover = /** @class */ (function (_super) {
|
|
|
99
99
|
this._floatingUI = (0, floating_ui_1.FloatingUI)({
|
|
100
100
|
elContent: this._elContent,
|
|
101
101
|
elTarget: this.el,
|
|
102
|
-
options: __assign({ arrow: true, flip: true, shift: { padding: 5 }, trigger: "
|
|
103
|
-
placement: this.props.placement,
|
|
102
|
+
options: __assign({ arrow: true, flip: true, shift: { padding: 5 }, trigger: "mouse" }, this.props.options),
|
|
103
|
+
placement: this.props.placement || floating_ui_1.FloatingUIPlacements.Top,
|
|
104
104
|
show: this.props.show,
|
|
105
105
|
theme: this.props.type
|
|
106
106
|
});
|
|
@@ -243,9 +243,9 @@ var _Tooltip = /** @class */ (function (_super) {
|
|
|
243
243
|
className: "floating-tooltip",
|
|
244
244
|
elContent: this._elContent,
|
|
245
245
|
elTarget: this.el,
|
|
246
|
-
options: __assign({ arrow: true, flip: true, shift: { padding: 5 }, trigger: "
|
|
246
|
+
options: __assign({ arrow: true, flip: true, shift: { padding: 5 }, trigger: "mouse" }, this.props.options),
|
|
247
247
|
show: this.props.show,
|
|
248
|
-
placement: this.props.placement,
|
|
248
|
+
placement: this.props.placement || floating_ui_1.FloatingUIPlacements.Top,
|
|
249
249
|
theme: this.props.type
|
|
250
250
|
});
|
|
251
251
|
};
|