gd-bs 5.8.2 → 5.8.5

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.
@@ -215,8 +215,24 @@ var _Modal = /** @class */ (function (_super) {
215
215
  */
216
216
  // Hides the modal
217
217
  _Modal.prototype.hide = function () {
218
- // Toggle the modal
219
- this.isVisible ? this.toggle() : null;
218
+ var _this = this;
219
+ // See if a transition is currently happening
220
+ if (this._tranisitioningFl) {
221
+ // Wait for the transition to complete
222
+ var id_1 = setInterval(function () {
223
+ // See if the transition is complete
224
+ if (!_this._tranisitioningFl) {
225
+ // Stop the loop
226
+ clearInterval(id_1);
227
+ // Toggle the modal
228
+ _this.isVisible ? _this.toggle() : null;
229
+ }
230
+ }, 250);
231
+ }
232
+ else {
233
+ // Toggle the modal
234
+ this.isVisible ? this.toggle() : null;
235
+ }
220
236
  };
221
237
  Object.defineProperty(_Modal.prototype, "isVisible", {
222
238
  // Returns true if the modal is visible
@@ -307,8 +323,24 @@ var _Modal = /** @class */ (function (_super) {
307
323
  };
308
324
  // Shows the modal
309
325
  _Modal.prototype.show = function () {
310
- // Toggle the modal
311
- this.isVisible ? null : this.toggle();
326
+ var _this = this;
327
+ // See if a transition is currently happening
328
+ if (this._tranisitioningFl) {
329
+ // Wait for the transition to complete
330
+ var id_2 = setInterval(function () {
331
+ // See if the transition is complete
332
+ if (!_this._tranisitioningFl) {
333
+ // Stop the loop
334
+ clearInterval(id_2);
335
+ // Toggle the modal
336
+ _this.isVisible ? null : _this.toggle();
337
+ }
338
+ }, 250);
339
+ }
340
+ else {
341
+ // Toggle the modal
342
+ this.isVisible ? null : this.toggle();
343
+ }
312
344
  };
313
345
  // Toggles the modal
314
346
  _Modal.prototype.toggle = function () {
@@ -215,8 +215,24 @@ var _Offcanvas = /** @class */ (function (_super) {
215
215
  */
216
216
  // Hides the modal
217
217
  _Offcanvas.prototype.hide = function () {
218
- // Toggle the modal
219
- this.isVisible ? this.toggle() : null;
218
+ var _this = this;
219
+ // See if a transition is currently happening
220
+ if (this._tranisitioningFl) {
221
+ // Wait for the transition to complete
222
+ var id_1 = setInterval(function () {
223
+ // See if the transition is complete
224
+ if (!_this._tranisitioningFl) {
225
+ // Stop the loop
226
+ clearInterval(id_1);
227
+ // Toggle the modal
228
+ _this.isVisible ? _this.toggle() : null;
229
+ }
230
+ }, 250);
231
+ }
232
+ else {
233
+ // Toggle the modal
234
+ this.isVisible ? this.toggle() : null;
235
+ }
220
236
  };
221
237
  Object.defineProperty(_Offcanvas.prototype, "isVisible", {
222
238
  // Returns true if the modal is visible
@@ -259,8 +275,24 @@ var _Offcanvas = /** @class */ (function (_super) {
259
275
  };
260
276
  // Shows the modal
261
277
  _Offcanvas.prototype.show = function () {
262
- // Toggle the modal
263
- this.isVisible ? null : this.toggle();
278
+ var _this = this;
279
+ // See if a transition is currently happening
280
+ if (this._tranisitioningFl) {
281
+ // Wait for the transition to complete
282
+ var id_2 = setInterval(function () {
283
+ // See if the transition is complete
284
+ if (!_this._tranisitioningFl) {
285
+ // Stop the loop
286
+ clearInterval(id_2);
287
+ // Toggle the modal
288
+ _this.isVisible ? null : _this.toggle();
289
+ }
290
+ }, 250);
291
+ }
292
+ else {
293
+ // Toggle the modal
294
+ this.isVisible ? null : this.toggle();
295
+ }
264
296
  };
265
297
  // Toggles the modal
266
298
  _Offcanvas.prototype.toggle = function () {
@@ -1,28 +1,20 @@
1
1
  "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
- };
16
2
  Object.defineProperty(exports, "__esModule", { value: true });
17
- exports.IconTypes = exports.Icons = void 0;
3
+ exports.IconTypes = exports.Icons = exports.tippy = exports.Components = void 0;
18
4
  // Bootstrap styles
19
5
  require("./bs");
20
- // Export the core
21
- __exportStar(require("./index-core"), exports);
6
+ // Import the IE fix
7
+ require("./ie");
8
+ // Bootstrap Components
9
+ var Components = require("./components");
10
+ exports.Components = Components;
11
+ // TippyJS library
12
+ var tippy_js_1 = require("tippy.js");
13
+ exports.tippy = tippy_js_1.default;
22
14
  // Icons
23
15
  var icons_1 = require("./icons");
24
16
  Object.defineProperty(exports, "Icons", { enumerable: true, get: function () { return icons_1.Icons; } });
25
17
  Object.defineProperty(exports, "IconTypes", { enumerable: true, get: function () { return icons_1.IconTypes; } });
26
- // Include the Icons in the Global library
27
- window["GD"].Icons = icons_1.Icons;
28
- window["GD"].IconTypes = icons_1.IconTypes;
18
+ // Bootstrap Global library
19
+ var BS = { Components: Components, Icons: icons_1.Icons, IconTypes: icons_1.IconTypes, tippy: tippy_js_1.default };
20
+ window["GD"] = window["GD"] || BS;
package/build/index.js CHANGED
@@ -1,20 +1,16 @@
1
1
  "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
- };
16
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.tippy = exports.Components = void 0;
17
4
  // Bootstrap styles
18
5
  require("./bs");
19
- // Export the core
20
- __exportStar(require("./index-core"), exports);
6
+ // Import the IE fix
7
+ require("./ie");
8
+ // Bootstrap Components
9
+ var Components = require("./components");
10
+ exports.Components = Components;
11
+ // TippyJS library
12
+ var tippy_js_1 = require("tippy.js");
13
+ exports.tippy = tippy_js_1.default;
14
+ // Bootstrap Global library
15
+ var BS = { Components: Components, tippy: tippy_js_1.default };
16
+ window["GD"] = window["GD"] || BS;