phcthemes_web_theme_pack 1.7.0 → 1.7.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/assets/javascripts/common/bootstrap/bootstrap.bundle.js +864 -844
- data/app/assets/javascripts/common/bootstrap/bootstrap.js +4420 -0
- data/app/assets/javascripts/common/ckeditor/ckeditor.js +2 -2
- data/app/assets/javascripts/common/ckeditor/ckeditor.js.map +1 -1
- data/app/assets/javascripts/common/ckeditor/translations/af.js +1 -1
- data/app/assets/javascripts/common/ckeditor/translations/ar.js +1 -1
- data/app/assets/javascripts/common/ckeditor/translations/ast.js +1 -1
- data/app/assets/javascripts/common/ckeditor/translations/az.js +1 -1
- data/app/assets/javascripts/common/ckeditor/translations/bg.js +1 -1
- data/app/assets/javascripts/common/ckeditor/translations/ca.js +1 -1
- data/app/assets/javascripts/common/ckeditor/translations/cs.js +1 -1
- data/app/assets/javascripts/common/ckeditor/translations/da.js +1 -1
- data/app/assets/javascripts/common/ckeditor/translations/de-ch.js +1 -1
- data/app/assets/javascripts/common/ckeditor/translations/de.js +1 -1
- data/app/assets/javascripts/common/ckeditor/translations/el.js +1 -1
- data/app/assets/javascripts/common/ckeditor/translations/en-au.js +1 -1
- data/app/assets/javascripts/common/ckeditor/translations/en-gb.js +1 -1
- data/app/assets/javascripts/common/ckeditor/translations/eo.js +1 -1
- data/app/assets/javascripts/common/ckeditor/translations/es.js +1 -1
- data/app/assets/javascripts/common/ckeditor/translations/et.js +1 -1
- data/app/assets/javascripts/common/ckeditor/translations/eu.js +1 -1
- data/app/assets/javascripts/common/ckeditor/translations/fa.js +1 -1
- data/app/assets/javascripts/common/ckeditor/translations/fi.js +1 -1
- data/app/assets/javascripts/common/ckeditor/translations/fr.js +1 -1
- data/app/assets/javascripts/common/ckeditor/translations/gl.js +1 -1
- data/app/assets/javascripts/common/ckeditor/translations/gu.js +1 -1
- data/app/assets/javascripts/common/ckeditor/translations/he.js +1 -1
- data/app/assets/javascripts/common/ckeditor/translations/hr.js +1 -1
- data/app/assets/javascripts/common/ckeditor/translations/hu.js +1 -1
- data/app/assets/javascripts/common/ckeditor/translations/id.js +1 -1
- data/app/assets/javascripts/common/ckeditor/translations/it.js +1 -1
- data/app/assets/javascripts/common/ckeditor/translations/ja.js +1 -1
- data/app/assets/javascripts/common/ckeditor/translations/km.js +1 -1
- data/app/assets/javascripts/common/ckeditor/translations/kn.js +1 -1
- data/app/assets/javascripts/common/ckeditor/translations/ko.js +1 -1
- data/app/assets/javascripts/common/ckeditor/translations/ku.js +1 -1
- data/app/assets/javascripts/common/ckeditor/translations/lt.js +1 -1
- data/app/assets/javascripts/common/ckeditor/translations/lv.js +1 -1
- data/app/assets/javascripts/common/ckeditor/translations/ms.js +1 -0
- data/app/assets/javascripts/common/ckeditor/translations/nb.js +1 -1
- data/app/assets/javascripts/common/ckeditor/translations/ne.js +1 -1
- data/app/assets/javascripts/common/ckeditor/translations/nl.js +1 -1
- data/app/assets/javascripts/common/ckeditor/translations/no.js +1 -1
- data/app/assets/javascripts/common/ckeditor/translations/oc.js +1 -1
- data/app/assets/javascripts/common/ckeditor/translations/pl.js +1 -1
- data/app/assets/javascripts/common/ckeditor/translations/pt-br.js +1 -1
- data/app/assets/javascripts/common/ckeditor/translations/pt.js +1 -1
- data/app/assets/javascripts/common/ckeditor/translations/ro.js +1 -1
- data/app/assets/javascripts/common/ckeditor/translations/ru.js +1 -1
- data/app/assets/javascripts/common/ckeditor/translations/si.js +1 -1
- data/app/assets/javascripts/common/ckeditor/translations/sk.js +1 -1
- data/app/assets/javascripts/common/ckeditor/translations/sl.js +1 -1
- data/app/assets/javascripts/common/ckeditor/translations/sq.js +1 -1
- data/app/assets/javascripts/common/ckeditor/translations/sr-latn.js +1 -1
- data/app/assets/javascripts/common/ckeditor/translations/sr.js +1 -1
- data/app/assets/javascripts/common/ckeditor/translations/sv.js +1 -1
- data/app/assets/javascripts/common/ckeditor/translations/th.js +1 -0
- data/app/assets/javascripts/common/ckeditor/translations/tr.js +1 -1
- data/app/assets/javascripts/common/ckeditor/translations/tt.js +1 -1
- data/app/assets/javascripts/common/ckeditor/translations/ug.js +1 -1
- data/app/assets/javascripts/common/ckeditor/translations/uk.js +1 -1
- data/app/assets/javascripts/common/ckeditor/translations/vi.js +1 -1
- data/app/assets/javascripts/common/ckeditor/translations/zh-cn.js +1 -1
- data/app/assets/javascripts/common/ckeditor/translations/zh.js +1 -1
- data/app/assets/javascripts/common/coverid/covervid.min.js +1 -0
- data/app/assets/javascripts/common/nouislider/nouislider.js +2637 -0
- data/app/assets/javascripts/phcthemes_web_theme_pack_antlr.js +2 -0
- data/app/assets/javascripts/themes/antlr/theme/scripts.js +70 -3
- data/app/assets/javascripts/themes/appstrap/theme/script.js +50 -11
- data/app/assets/javascripts/themes/pitnik/theme/main.min.js +1 -1
- data/app/assets/javascripts/themes/pitnik/theme/script.js +268 -48
- data/app/assets/stylesheets/phcthemes_web_theme_pack_antlr.scss +7 -6
- data/app/assets/stylesheets/phcthemes_web_theme_pack_appstrap.scss +5 -5
- data/app/assets/stylesheets/phcthemes_web_theme_pack_bold.scss +1 -1
- data/app/assets/stylesheets/phcthemes_web_theme_pack_coloradmin.scss +2 -2
- data/app/assets/stylesheets/phcthemes_web_theme_pack_devine_villas.scss +2 -2
- data/app/assets/stylesheets/phcthemes_web_theme_pack_piknik.scss +5 -5
- data/app/assets/stylesheets/phcthemes_web_theme_pack_smarty.scss +1 -1
- data/app/assets/stylesheets/phcthemes_web_theme_pack_xero.scss +2 -2
- data/app/assets/stylesheets/phcthemes_web_theme_pack_zoner.scss +2 -2
- data/lib/phcthemes_web_theme_pack/version.rb +1 -1
- metadata +7 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4c7eef6e662fe354e29210d8984367c89597c6f510a33ec1c0571b763416de7a
|
4
|
+
data.tar.gz: 86c6ec8e9fb878d2c53af79667bee03b3a62e6dbd8cf0806c39bd66aa9fb62bc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ce924f96e1789b3f364471f3faca3ba1ac6234ea324e527c526cce97100ab451730ef93194a446c54bfc41593e92ca9d3003488ea7f7db8e9c532e9649625e64
|
7
|
+
data.tar.gz: f9de5044f84ae4e0d19c86f1d6dc1cfd2b960864a3eb4a2a021a0d8674b5058cc5d7da01700ee2502435283fab7290bc675d00d4a089bad1c4446002ec5a106e
|
@@ -1,15 +1,15 @@
|
|
1
1
|
/*!
|
2
|
-
* Bootstrap v4.
|
3
|
-
* Copyright 2011-
|
2
|
+
* Bootstrap v4.5.0 (https://getbootstrap.com/)
|
3
|
+
* Copyright 2011-2020 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
|
4
4
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
|
5
5
|
*/
|
6
6
|
(function (global, factory) {
|
7
7
|
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('jquery')) :
|
8
8
|
typeof define === 'function' && define.amd ? define(['exports', 'jquery'], factory) :
|
9
9
|
(global = global || self, factory(global.bootstrap = {}, global.jQuery));
|
10
|
-
}(this, function (exports, $) { 'use strict';
|
10
|
+
}(this, (function (exports, $) { 'use strict';
|
11
11
|
|
12
|
-
$ = $ &&
|
12
|
+
$ = $ && Object.prototype.hasOwnProperty.call($, 'default') ? $['default'] : $;
|
13
13
|
|
14
14
|
function _defineProperties(target, props) {
|
15
15
|
for (var i = 0; i < props.length; i++) {
|
@@ -42,20 +42,35 @@
|
|
42
42
|
return obj;
|
43
43
|
}
|
44
44
|
|
45
|
-
function
|
45
|
+
function ownKeys(object, enumerableOnly) {
|
46
|
+
var keys = Object.keys(object);
|
47
|
+
|
48
|
+
if (Object.getOwnPropertySymbols) {
|
49
|
+
var symbols = Object.getOwnPropertySymbols(object);
|
50
|
+
if (enumerableOnly) symbols = symbols.filter(function (sym) {
|
51
|
+
return Object.getOwnPropertyDescriptor(object, sym).enumerable;
|
52
|
+
});
|
53
|
+
keys.push.apply(keys, symbols);
|
54
|
+
}
|
55
|
+
|
56
|
+
return keys;
|
57
|
+
}
|
58
|
+
|
59
|
+
function _objectSpread2(target) {
|
46
60
|
for (var i = 1; i < arguments.length; i++) {
|
47
61
|
var source = arguments[i] != null ? arguments[i] : {};
|
48
|
-
var ownKeys = Object.keys(source);
|
49
62
|
|
50
|
-
if (
|
51
|
-
ownKeys
|
52
|
-
|
53
|
-
})
|
63
|
+
if (i % 2) {
|
64
|
+
ownKeys(Object(source), true).forEach(function (key) {
|
65
|
+
_defineProperty(target, key, source[key]);
|
66
|
+
});
|
67
|
+
} else if (Object.getOwnPropertyDescriptors) {
|
68
|
+
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
69
|
+
} else {
|
70
|
+
ownKeys(Object(source)).forEach(function (key) {
|
71
|
+
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
72
|
+
});
|
54
73
|
}
|
55
|
-
|
56
|
-
ownKeys.forEach(function (key) {
|
57
|
-
_defineProperty(target, key, source[key]);
|
58
|
-
});
|
59
74
|
}
|
60
75
|
|
61
76
|
return target;
|
@@ -69,7 +84,7 @@
|
|
69
84
|
|
70
85
|
/**
|
71
86
|
* --------------------------------------------------------------------------
|
72
|
-
* Bootstrap (v4.
|
87
|
+
* Bootstrap (v4.5.0): util.js
|
73
88
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
|
74
89
|
* --------------------------------------------------------------------------
|
75
90
|
*/
|
@@ -84,6 +99,10 @@
|
|
84
99
|
var MILLISECONDS_MULTIPLIER = 1000; // Shoutout AngusCroll (https://goo.gl/pxwQGp)
|
85
100
|
|
86
101
|
function toType(obj) {
|
102
|
+
if (obj === null || typeof obj === 'undefined') {
|
103
|
+
return "" + obj;
|
104
|
+
}
|
105
|
+
|
87
106
|
return {}.toString.call(obj).match(/\s([a-z]+)/i)[1].toLowerCase();
|
88
107
|
}
|
89
108
|
|
@@ -96,7 +115,7 @@
|
|
96
115
|
return event.handleObj.handler.apply(this, arguments); // eslint-disable-line prefer-rest-params
|
97
116
|
}
|
98
117
|
|
99
|
-
return undefined;
|
118
|
+
return undefined;
|
100
119
|
}
|
101
120
|
};
|
102
121
|
}
|
@@ -218,8 +237,25 @@
|
|
218
237
|
}
|
219
238
|
|
220
239
|
return Util.findShadowRoot(element.parentNode);
|
240
|
+
},
|
241
|
+
jQueryDetection: function jQueryDetection() {
|
242
|
+
if (typeof $ === 'undefined') {
|
243
|
+
throw new TypeError('Bootstrap\'s JavaScript requires jQuery. jQuery must be included before Bootstrap\'s JavaScript.');
|
244
|
+
}
|
245
|
+
|
246
|
+
var version = $.fn.jquery.split(' ')[0].split('.');
|
247
|
+
var minMajor = 1;
|
248
|
+
var ltMajor = 2;
|
249
|
+
var minMinor = 9;
|
250
|
+
var minPatch = 1;
|
251
|
+
var maxMajor = 4;
|
252
|
+
|
253
|
+
if (version[0] < ltMajor && version[1] < minMinor || version[0] === minMajor && version[1] === minMinor && version[2] < minPatch || version[0] >= maxMajor) {
|
254
|
+
throw new Error('Bootstrap\'s JavaScript requires at least jQuery v1.9.1 but less than v4.0.0');
|
255
|
+
}
|
221
256
|
}
|
222
257
|
};
|
258
|
+
Util.jQueryDetection();
|
223
259
|
setTransitionEndSupport();
|
224
260
|
|
225
261
|
/**
|
@@ -229,34 +265,25 @@
|
|
229
265
|
*/
|
230
266
|
|
231
267
|
var NAME = 'alert';
|
232
|
-
var VERSION = '4.
|
268
|
+
var VERSION = '4.5.0';
|
233
269
|
var DATA_KEY = 'bs.alert';
|
234
270
|
var EVENT_KEY = "." + DATA_KEY;
|
235
271
|
var DATA_API_KEY = '.data-api';
|
236
272
|
var JQUERY_NO_CONFLICT = $.fn[NAME];
|
237
|
-
var
|
238
|
-
|
239
|
-
|
240
|
-
var
|
241
|
-
|
242
|
-
|
243
|
-
|
244
|
-
|
245
|
-
|
246
|
-
|
247
|
-
|
248
|
-
|
249
|
-
/**
|
250
|
-
* ------------------------------------------------------------------------
|
251
|
-
* Class Definition
|
252
|
-
* ------------------------------------------------------------------------
|
253
|
-
*/
|
254
|
-
|
255
|
-
};
|
273
|
+
var SELECTOR_DISMISS = '[data-dismiss="alert"]';
|
274
|
+
var EVENT_CLOSE = "close" + EVENT_KEY;
|
275
|
+
var EVENT_CLOSED = "closed" + EVENT_KEY;
|
276
|
+
var EVENT_CLICK_DATA_API = "click" + EVENT_KEY + DATA_API_KEY;
|
277
|
+
var CLASS_NAME_ALERT = 'alert';
|
278
|
+
var CLASS_NAME_FADE = 'fade';
|
279
|
+
var CLASS_NAME_SHOW = 'show';
|
280
|
+
/**
|
281
|
+
* ------------------------------------------------------------------------
|
282
|
+
* Class Definition
|
283
|
+
* ------------------------------------------------------------------------
|
284
|
+
*/
|
256
285
|
|
257
|
-
var Alert =
|
258
|
-
/*#__PURE__*/
|
259
|
-
function () {
|
286
|
+
var Alert = /*#__PURE__*/function () {
|
260
287
|
function Alert(element) {
|
261
288
|
this._element = element;
|
262
289
|
} // Getters
|
@@ -296,14 +323,14 @@
|
|
296
323
|
}
|
297
324
|
|
298
325
|
if (!parent) {
|
299
|
-
parent = $(element).closest("." +
|
326
|
+
parent = $(element).closest("." + CLASS_NAME_ALERT)[0];
|
300
327
|
}
|
301
328
|
|
302
329
|
return parent;
|
303
330
|
};
|
304
331
|
|
305
332
|
_proto._triggerCloseEvent = function _triggerCloseEvent(element) {
|
306
|
-
var closeEvent = $.Event(
|
333
|
+
var closeEvent = $.Event(EVENT_CLOSE);
|
307
334
|
$(element).trigger(closeEvent);
|
308
335
|
return closeEvent;
|
309
336
|
};
|
@@ -311,9 +338,9 @@
|
|
311
338
|
_proto._removeElement = function _removeElement(element) {
|
312
339
|
var _this = this;
|
313
340
|
|
314
|
-
$(element).removeClass(
|
341
|
+
$(element).removeClass(CLASS_NAME_SHOW);
|
315
342
|
|
316
|
-
if (!$(element).hasClass(
|
343
|
+
if (!$(element).hasClass(CLASS_NAME_FADE)) {
|
317
344
|
this._destroyElement(element);
|
318
345
|
|
319
346
|
return;
|
@@ -326,7 +353,7 @@
|
|
326
353
|
};
|
327
354
|
|
328
355
|
_proto._destroyElement = function _destroyElement(element) {
|
329
|
-
$(element).detach().trigger(
|
356
|
+
$(element).detach().trigger(EVENT_CLOSED).remove();
|
330
357
|
} // Static
|
331
358
|
;
|
332
359
|
|
@@ -372,7 +399,7 @@
|
|
372
399
|
*/
|
373
400
|
|
374
401
|
|
375
|
-
$(document).on(
|
402
|
+
$(document).on(EVENT_CLICK_DATA_API, SELECTOR_DISMISS, Alert._handleDismiss(new Alert()));
|
376
403
|
/**
|
377
404
|
* ------------------------------------------------------------------------
|
378
405
|
* jQuery
|
@@ -394,37 +421,31 @@
|
|
394
421
|
*/
|
395
422
|
|
396
423
|
var NAME$1 = 'button';
|
397
|
-
var VERSION$1 = '4.
|
424
|
+
var VERSION$1 = '4.5.0';
|
398
425
|
var DATA_KEY$1 = 'bs.button';
|
399
426
|
var EVENT_KEY$1 = "." + DATA_KEY$1;
|
400
427
|
var DATA_API_KEY$1 = '.data-api';
|
401
428
|
var JQUERY_NO_CONFLICT$1 = $.fn[NAME$1];
|
402
|
-
var
|
403
|
-
|
404
|
-
|
405
|
-
|
406
|
-
|
407
|
-
var
|
408
|
-
|
409
|
-
|
410
|
-
|
411
|
-
|
412
|
-
|
413
|
-
|
414
|
-
var
|
415
|
-
|
416
|
-
|
417
|
-
|
418
|
-
|
419
|
-
|
420
|
-
* ------------------------------------------------------------------------
|
421
|
-
*/
|
422
|
-
|
423
|
-
};
|
429
|
+
var CLASS_NAME_ACTIVE = 'active';
|
430
|
+
var CLASS_NAME_BUTTON = 'btn';
|
431
|
+
var CLASS_NAME_FOCUS = 'focus';
|
432
|
+
var SELECTOR_DATA_TOGGLE_CARROT = '[data-toggle^="button"]';
|
433
|
+
var SELECTOR_DATA_TOGGLES = '[data-toggle="buttons"]';
|
434
|
+
var SELECTOR_DATA_TOGGLE = '[data-toggle="button"]';
|
435
|
+
var SELECTOR_DATA_TOGGLES_BUTTONS = '[data-toggle="buttons"] .btn';
|
436
|
+
var SELECTOR_INPUT = 'input:not([type="hidden"])';
|
437
|
+
var SELECTOR_ACTIVE = '.active';
|
438
|
+
var SELECTOR_BUTTON = '.btn';
|
439
|
+
var EVENT_CLICK_DATA_API$1 = "click" + EVENT_KEY$1 + DATA_API_KEY$1;
|
440
|
+
var EVENT_FOCUS_BLUR_DATA_API = "focus" + EVENT_KEY$1 + DATA_API_KEY$1 + " " + ("blur" + EVENT_KEY$1 + DATA_API_KEY$1);
|
441
|
+
var EVENT_LOAD_DATA_API = "load" + EVENT_KEY$1 + DATA_API_KEY$1;
|
442
|
+
/**
|
443
|
+
* ------------------------------------------------------------------------
|
444
|
+
* Class Definition
|
445
|
+
* ------------------------------------------------------------------------
|
446
|
+
*/
|
424
447
|
|
425
|
-
var Button =
|
426
|
-
/*#__PURE__*/
|
427
|
-
function () {
|
448
|
+
var Button = /*#__PURE__*/function () {
|
428
449
|
function Button(element) {
|
429
450
|
this._element = element;
|
430
451
|
} // Getters
|
@@ -436,30 +457,30 @@
|
|
436
457
|
_proto.toggle = function toggle() {
|
437
458
|
var triggerChangeEvent = true;
|
438
459
|
var addAriaPressed = true;
|
439
|
-
var rootElement = $(this._element).closest(
|
460
|
+
var rootElement = $(this._element).closest(SELECTOR_DATA_TOGGLES)[0];
|
440
461
|
|
441
462
|
if (rootElement) {
|
442
|
-
var input = this._element.querySelector(
|
463
|
+
var input = this._element.querySelector(SELECTOR_INPUT);
|
443
464
|
|
444
465
|
if (input) {
|
445
466
|
if (input.type === 'radio') {
|
446
|
-
if (input.checked && this._element.classList.contains(
|
467
|
+
if (input.checked && this._element.classList.contains(CLASS_NAME_ACTIVE)) {
|
447
468
|
triggerChangeEvent = false;
|
448
469
|
} else {
|
449
|
-
var activeElement = rootElement.querySelector(
|
470
|
+
var activeElement = rootElement.querySelector(SELECTOR_ACTIVE);
|
450
471
|
|
451
472
|
if (activeElement) {
|
452
|
-
$(activeElement).removeClass(
|
473
|
+
$(activeElement).removeClass(CLASS_NAME_ACTIVE);
|
453
474
|
}
|
454
475
|
}
|
455
476
|
}
|
456
477
|
|
457
478
|
if (triggerChangeEvent) {
|
458
|
-
if
|
459
|
-
|
479
|
+
// if it's not a radio button or checkbox don't add a pointless/invalid checked property to the input
|
480
|
+
if (input.type === 'checkbox' || input.type === 'radio') {
|
481
|
+
input.checked = !this._element.classList.contains(CLASS_NAME_ACTIVE);
|
460
482
|
}
|
461
483
|
|
462
|
-
input.checked = !this._element.classList.contains(ClassName$1.ACTIVE);
|
463
484
|
$(input).trigger('change');
|
464
485
|
}
|
465
486
|
|
@@ -468,12 +489,14 @@
|
|
468
489
|
}
|
469
490
|
}
|
470
491
|
|
471
|
-
if (
|
472
|
-
|
473
|
-
|
492
|
+
if (!(this._element.hasAttribute('disabled') || this._element.classList.contains('disabled'))) {
|
493
|
+
if (addAriaPressed) {
|
494
|
+
this._element.setAttribute('aria-pressed', !this._element.classList.contains(CLASS_NAME_ACTIVE));
|
495
|
+
}
|
474
496
|
|
475
|
-
|
476
|
-
|
497
|
+
if (triggerChangeEvent) {
|
498
|
+
$(this._element).toggleClass(CLASS_NAME_ACTIVE);
|
499
|
+
}
|
477
500
|
}
|
478
501
|
};
|
479
502
|
|
@@ -514,18 +537,63 @@
|
|
514
537
|
*/
|
515
538
|
|
516
539
|
|
517
|
-
$(document).on(
|
518
|
-
event.preventDefault();
|
540
|
+
$(document).on(EVENT_CLICK_DATA_API$1, SELECTOR_DATA_TOGGLE_CARROT, function (event) {
|
519
541
|
var button = event.target;
|
542
|
+
var initialButton = button;
|
520
543
|
|
521
|
-
if (!$(button).hasClass(
|
522
|
-
button = $(button).closest(
|
544
|
+
if (!$(button).hasClass(CLASS_NAME_BUTTON)) {
|
545
|
+
button = $(button).closest(SELECTOR_BUTTON)[0];
|
523
546
|
}
|
524
547
|
|
525
|
-
|
526
|
-
|
527
|
-
|
528
|
-
|
548
|
+
if (!button || button.hasAttribute('disabled') || button.classList.contains('disabled')) {
|
549
|
+
event.preventDefault(); // work around Firefox bug #1540995
|
550
|
+
} else {
|
551
|
+
var inputBtn = button.querySelector(SELECTOR_INPUT);
|
552
|
+
|
553
|
+
if (inputBtn && (inputBtn.hasAttribute('disabled') || inputBtn.classList.contains('disabled'))) {
|
554
|
+
event.preventDefault(); // work around Firefox bug #1540995
|
555
|
+
|
556
|
+
return;
|
557
|
+
}
|
558
|
+
|
559
|
+
if (initialButton.tagName === 'LABEL' && inputBtn && inputBtn.type === 'checkbox') {
|
560
|
+
event.preventDefault(); // work around event sent to label and input
|
561
|
+
}
|
562
|
+
|
563
|
+
Button._jQueryInterface.call($(button), 'toggle');
|
564
|
+
}
|
565
|
+
}).on(EVENT_FOCUS_BLUR_DATA_API, SELECTOR_DATA_TOGGLE_CARROT, function (event) {
|
566
|
+
var button = $(event.target).closest(SELECTOR_BUTTON)[0];
|
567
|
+
$(button).toggleClass(CLASS_NAME_FOCUS, /^focus(in)?$/.test(event.type));
|
568
|
+
});
|
569
|
+
$(window).on(EVENT_LOAD_DATA_API, function () {
|
570
|
+
// ensure correct active class is set to match the controls' actual values/states
|
571
|
+
// find all checkboxes/readio buttons inside data-toggle groups
|
572
|
+
var buttons = [].slice.call(document.querySelectorAll(SELECTOR_DATA_TOGGLES_BUTTONS));
|
573
|
+
|
574
|
+
for (var i = 0, len = buttons.length; i < len; i++) {
|
575
|
+
var button = buttons[i];
|
576
|
+
var input = button.querySelector(SELECTOR_INPUT);
|
577
|
+
|
578
|
+
if (input.checked || input.hasAttribute('checked')) {
|
579
|
+
button.classList.add(CLASS_NAME_ACTIVE);
|
580
|
+
} else {
|
581
|
+
button.classList.remove(CLASS_NAME_ACTIVE);
|
582
|
+
}
|
583
|
+
} // find all button toggles
|
584
|
+
|
585
|
+
|
586
|
+
buttons = [].slice.call(document.querySelectorAll(SELECTOR_DATA_TOGGLE));
|
587
|
+
|
588
|
+
for (var _i = 0, _len = buttons.length; _i < _len; _i++) {
|
589
|
+
var _button = buttons[_i];
|
590
|
+
|
591
|
+
if (_button.getAttribute('aria-pressed') === 'true') {
|
592
|
+
_button.classList.add(CLASS_NAME_ACTIVE);
|
593
|
+
} else {
|
594
|
+
_button.classList.remove(CLASS_NAME_ACTIVE);
|
595
|
+
}
|
596
|
+
}
|
529
597
|
});
|
530
598
|
/**
|
531
599
|
* ------------------------------------------------------------------------
|
@@ -548,7 +616,7 @@
|
|
548
616
|
*/
|
549
617
|
|
550
618
|
var NAME$2 = 'carousel';
|
551
|
-
var VERSION$2 = '4.
|
619
|
+
var VERSION$2 = '4.5.0';
|
552
620
|
var DATA_KEY$2 = 'bs.carousel';
|
553
621
|
var EVENT_KEY$2 = "." + DATA_KEY$2;
|
554
622
|
var DATA_API_KEY$2 = '.data-api';
|
@@ -576,62 +644,50 @@
|
|
576
644
|
wrap: 'boolean',
|
577
645
|
touch: 'boolean'
|
578
646
|
};
|
579
|
-
var
|
580
|
-
|
581
|
-
|
582
|
-
|
583
|
-
|
584
|
-
|
585
|
-
var
|
586
|
-
|
587
|
-
|
588
|
-
|
589
|
-
|
590
|
-
|
591
|
-
|
592
|
-
|
593
|
-
|
594
|
-
|
595
|
-
|
596
|
-
|
597
|
-
|
598
|
-
|
599
|
-
|
600
|
-
var
|
601
|
-
|
602
|
-
|
603
|
-
|
604
|
-
|
605
|
-
|
606
|
-
|
607
|
-
|
608
|
-
|
609
|
-
|
610
|
-
|
611
|
-
var
|
612
|
-
ACTIVE: '.active',
|
613
|
-
ACTIVE_ITEM: '.active.carousel-item',
|
614
|
-
ITEM: '.carousel-item',
|
615
|
-
ITEM_IMG: '.carousel-item img',
|
616
|
-
NEXT_PREV: '.carousel-item-next, .carousel-item-prev',
|
617
|
-
INDICATORS: '.carousel-indicators',
|
618
|
-
DATA_SLIDE: '[data-slide], [data-slide-to]',
|
619
|
-
DATA_RIDE: '[data-ride="carousel"]'
|
620
|
-
};
|
647
|
+
var DIRECTION_NEXT = 'next';
|
648
|
+
var DIRECTION_PREV = 'prev';
|
649
|
+
var DIRECTION_LEFT = 'left';
|
650
|
+
var DIRECTION_RIGHT = 'right';
|
651
|
+
var EVENT_SLIDE = "slide" + EVENT_KEY$2;
|
652
|
+
var EVENT_SLID = "slid" + EVENT_KEY$2;
|
653
|
+
var EVENT_KEYDOWN = "keydown" + EVENT_KEY$2;
|
654
|
+
var EVENT_MOUSEENTER = "mouseenter" + EVENT_KEY$2;
|
655
|
+
var EVENT_MOUSELEAVE = "mouseleave" + EVENT_KEY$2;
|
656
|
+
var EVENT_TOUCHSTART = "touchstart" + EVENT_KEY$2;
|
657
|
+
var EVENT_TOUCHMOVE = "touchmove" + EVENT_KEY$2;
|
658
|
+
var EVENT_TOUCHEND = "touchend" + EVENT_KEY$2;
|
659
|
+
var EVENT_POINTERDOWN = "pointerdown" + EVENT_KEY$2;
|
660
|
+
var EVENT_POINTERUP = "pointerup" + EVENT_KEY$2;
|
661
|
+
var EVENT_DRAG_START = "dragstart" + EVENT_KEY$2;
|
662
|
+
var EVENT_LOAD_DATA_API$1 = "load" + EVENT_KEY$2 + DATA_API_KEY$2;
|
663
|
+
var EVENT_CLICK_DATA_API$2 = "click" + EVENT_KEY$2 + DATA_API_KEY$2;
|
664
|
+
var CLASS_NAME_CAROUSEL = 'carousel';
|
665
|
+
var CLASS_NAME_ACTIVE$1 = 'active';
|
666
|
+
var CLASS_NAME_SLIDE = 'slide';
|
667
|
+
var CLASS_NAME_RIGHT = 'carousel-item-right';
|
668
|
+
var CLASS_NAME_LEFT = 'carousel-item-left';
|
669
|
+
var CLASS_NAME_NEXT = 'carousel-item-next';
|
670
|
+
var CLASS_NAME_PREV = 'carousel-item-prev';
|
671
|
+
var CLASS_NAME_POINTER_EVENT = 'pointer-event';
|
672
|
+
var SELECTOR_ACTIVE$1 = '.active';
|
673
|
+
var SELECTOR_ACTIVE_ITEM = '.active.carousel-item';
|
674
|
+
var SELECTOR_ITEM = '.carousel-item';
|
675
|
+
var SELECTOR_ITEM_IMG = '.carousel-item img';
|
676
|
+
var SELECTOR_NEXT_PREV = '.carousel-item-next, .carousel-item-prev';
|
677
|
+
var SELECTOR_INDICATORS = '.carousel-indicators';
|
678
|
+
var SELECTOR_DATA_SLIDE = '[data-slide], [data-slide-to]';
|
679
|
+
var SELECTOR_DATA_RIDE = '[data-ride="carousel"]';
|
621
680
|
var PointerType = {
|
622
681
|
TOUCH: 'touch',
|
623
682
|
PEN: 'pen'
|
624
|
-
/**
|
625
|
-
* ------------------------------------------------------------------------
|
626
|
-
* Class Definition
|
627
|
-
* ------------------------------------------------------------------------
|
628
|
-
*/
|
629
|
-
|
630
683
|
};
|
684
|
+
/**
|
685
|
+
* ------------------------------------------------------------------------
|
686
|
+
* Class Definition
|
687
|
+
* ------------------------------------------------------------------------
|
688
|
+
*/
|
631
689
|
|
632
|
-
var Carousel =
|
633
|
-
/*#__PURE__*/
|
634
|
-
function () {
|
690
|
+
var Carousel = /*#__PURE__*/function () {
|
635
691
|
function Carousel(element, config) {
|
636
692
|
this._items = null;
|
637
693
|
this._interval = null;
|
@@ -643,7 +699,7 @@
|
|
643
699
|
this.touchDeltaX = 0;
|
644
700
|
this._config = this._getConfig(config);
|
645
701
|
this._element = element;
|
646
|
-
this._indicatorsElement = this._element.querySelector(
|
702
|
+
this._indicatorsElement = this._element.querySelector(SELECTOR_INDICATORS);
|
647
703
|
this._touchSupported = 'ontouchstart' in document.documentElement || navigator.maxTouchPoints > 0;
|
648
704
|
this._pointerEvent = Boolean(window.PointerEvent || window.MSPointerEvent);
|
649
705
|
|
@@ -656,7 +712,7 @@
|
|
656
712
|
// Public
|
657
713
|
_proto.next = function next() {
|
658
714
|
if (!this._isSliding) {
|
659
|
-
this._slide(
|
715
|
+
this._slide(DIRECTION_NEXT);
|
660
716
|
}
|
661
717
|
};
|
662
718
|
|
@@ -670,7 +726,7 @@
|
|
670
726
|
|
671
727
|
_proto.prev = function prev() {
|
672
728
|
if (!this._isSliding) {
|
673
|
-
this._slide(
|
729
|
+
this._slide(DIRECTION_PREV);
|
674
730
|
}
|
675
731
|
};
|
676
732
|
|
@@ -679,7 +735,7 @@
|
|
679
735
|
this._isPaused = true;
|
680
736
|
}
|
681
737
|
|
682
|
-
if (this._element.querySelector(
|
738
|
+
if (this._element.querySelector(SELECTOR_NEXT_PREV)) {
|
683
739
|
Util.triggerTransitionEnd(this._element);
|
684
740
|
this.cycle(true);
|
685
741
|
}
|
@@ -706,7 +762,7 @@
|
|
706
762
|
_proto.to = function to(index) {
|
707
763
|
var _this = this;
|
708
764
|
|
709
|
-
this._activeElement = this._element.querySelector(
|
765
|
+
this._activeElement = this._element.querySelector(SELECTOR_ACTIVE_ITEM);
|
710
766
|
|
711
767
|
var activeIndex = this._getItemIndex(this._activeElement);
|
712
768
|
|
@@ -715,7 +771,7 @@
|
|
715
771
|
}
|
716
772
|
|
717
773
|
if (this._isSliding) {
|
718
|
-
$(this._element).one(
|
774
|
+
$(this._element).one(EVENT_SLID, function () {
|
719
775
|
return _this.to(index);
|
720
776
|
});
|
721
777
|
return;
|
@@ -727,7 +783,7 @@
|
|
727
783
|
return;
|
728
784
|
}
|
729
785
|
|
730
|
-
var direction = index > activeIndex ?
|
786
|
+
var direction = index > activeIndex ? DIRECTION_NEXT : DIRECTION_PREV;
|
731
787
|
|
732
788
|
this._slide(direction, this._items[index]);
|
733
789
|
};
|
@@ -747,7 +803,7 @@
|
|
747
803
|
;
|
748
804
|
|
749
805
|
_proto._getConfig = function _getConfig(config) {
|
750
|
-
config =
|
806
|
+
config = _objectSpread2(_objectSpread2({}, Default), config);
|
751
807
|
Util.typeCheckConfig(NAME$2, config, DefaultType);
|
752
808
|
return config;
|
753
809
|
};
|
@@ -759,7 +815,8 @@
|
|
759
815
|
return;
|
760
816
|
}
|
761
817
|
|
762
|
-
var direction = absDeltax / this.touchDeltaX;
|
818
|
+
var direction = absDeltax / this.touchDeltaX;
|
819
|
+
this.touchDeltaX = 0; // swipe left
|
763
820
|
|
764
821
|
if (direction > 0) {
|
765
822
|
this.prev();
|
@@ -775,15 +832,15 @@
|
|
775
832
|
var _this2 = this;
|
776
833
|
|
777
834
|
if (this._config.keyboard) {
|
778
|
-
$(this._element).on(
|
835
|
+
$(this._element).on(EVENT_KEYDOWN, function (event) {
|
779
836
|
return _this2._keydown(event);
|
780
837
|
});
|
781
838
|
}
|
782
839
|
|
783
840
|
if (this._config.pause === 'hover') {
|
784
|
-
$(this._element).on(
|
841
|
+
$(this._element).on(EVENT_MOUSEENTER, function (event) {
|
785
842
|
return _this2.pause(event);
|
786
|
-
}).on(
|
843
|
+
}).on(EVENT_MOUSELEAVE, function (event) {
|
787
844
|
return _this2.cycle(event);
|
788
845
|
});
|
789
846
|
}
|
@@ -844,27 +901,27 @@
|
|
844
901
|
}
|
845
902
|
};
|
846
903
|
|
847
|
-
$(this._element.querySelectorAll(
|
904
|
+
$(this._element.querySelectorAll(SELECTOR_ITEM_IMG)).on(EVENT_DRAG_START, function (e) {
|
848
905
|
return e.preventDefault();
|
849
906
|
});
|
850
907
|
|
851
908
|
if (this._pointerEvent) {
|
852
|
-
$(this._element).on(
|
909
|
+
$(this._element).on(EVENT_POINTERDOWN, function (event) {
|
853
910
|
return start(event);
|
854
911
|
});
|
855
|
-
$(this._element).on(
|
912
|
+
$(this._element).on(EVENT_POINTERUP, function (event) {
|
856
913
|
return end(event);
|
857
914
|
});
|
858
915
|
|
859
|
-
this._element.classList.add(
|
916
|
+
this._element.classList.add(CLASS_NAME_POINTER_EVENT);
|
860
917
|
} else {
|
861
|
-
$(this._element).on(
|
918
|
+
$(this._element).on(EVENT_TOUCHSTART, function (event) {
|
862
919
|
return start(event);
|
863
920
|
});
|
864
|
-
$(this._element).on(
|
921
|
+
$(this._element).on(EVENT_TOUCHMOVE, function (event) {
|
865
922
|
return move(event);
|
866
923
|
});
|
867
|
-
$(this._element).on(
|
924
|
+
$(this._element).on(EVENT_TOUCHEND, function (event) {
|
868
925
|
return end(event);
|
869
926
|
});
|
870
927
|
}
|
@@ -885,19 +942,17 @@
|
|
885
942
|
event.preventDefault();
|
886
943
|
this.next();
|
887
944
|
break;
|
888
|
-
|
889
|
-
default:
|
890
945
|
}
|
891
946
|
};
|
892
947
|
|
893
948
|
_proto._getItemIndex = function _getItemIndex(element) {
|
894
|
-
this._items = element && element.parentNode ? [].slice.call(element.parentNode.querySelectorAll(
|
949
|
+
this._items = element && element.parentNode ? [].slice.call(element.parentNode.querySelectorAll(SELECTOR_ITEM)) : [];
|
895
950
|
return this._items.indexOf(element);
|
896
951
|
};
|
897
952
|
|
898
953
|
_proto._getItemByDirection = function _getItemByDirection(direction, activeElement) {
|
899
|
-
var isNextDirection = direction ===
|
900
|
-
var isPrevDirection = direction ===
|
954
|
+
var isNextDirection = direction === DIRECTION_NEXT;
|
955
|
+
var isPrevDirection = direction === DIRECTION_PREV;
|
901
956
|
|
902
957
|
var activeIndex = this._getItemIndex(activeElement);
|
903
958
|
|
@@ -908,7 +963,7 @@
|
|
908
963
|
return activeElement;
|
909
964
|
}
|
910
965
|
|
911
|
-
var delta = direction ===
|
966
|
+
var delta = direction === DIRECTION_PREV ? -1 : 1;
|
912
967
|
var itemIndex = (activeIndex + delta) % this._items.length;
|
913
968
|
return itemIndex === -1 ? this._items[this._items.length - 1] : this._items[itemIndex];
|
914
969
|
};
|
@@ -916,9 +971,9 @@
|
|
916
971
|
_proto._triggerSlideEvent = function _triggerSlideEvent(relatedTarget, eventDirectionName) {
|
917
972
|
var targetIndex = this._getItemIndex(relatedTarget);
|
918
973
|
|
919
|
-
var fromIndex = this._getItemIndex(this._element.querySelector(
|
974
|
+
var fromIndex = this._getItemIndex(this._element.querySelector(SELECTOR_ACTIVE_ITEM));
|
920
975
|
|
921
|
-
var slideEvent = $.Event(
|
976
|
+
var slideEvent = $.Event(EVENT_SLIDE, {
|
922
977
|
relatedTarget: relatedTarget,
|
923
978
|
direction: eventDirectionName,
|
924
979
|
from: fromIndex,
|
@@ -930,13 +985,13 @@
|
|
930
985
|
|
931
986
|
_proto._setActiveIndicatorElement = function _setActiveIndicatorElement(element) {
|
932
987
|
if (this._indicatorsElement) {
|
933
|
-
var indicators = [].slice.call(this._indicatorsElement.querySelectorAll(
|
934
|
-
$(indicators).removeClass(
|
988
|
+
var indicators = [].slice.call(this._indicatorsElement.querySelectorAll(SELECTOR_ACTIVE$1));
|
989
|
+
$(indicators).removeClass(CLASS_NAME_ACTIVE$1);
|
935
990
|
|
936
991
|
var nextIndicator = this._indicatorsElement.children[this._getItemIndex(element)];
|
937
992
|
|
938
993
|
if (nextIndicator) {
|
939
|
-
$(nextIndicator).addClass(
|
994
|
+
$(nextIndicator).addClass(CLASS_NAME_ACTIVE$1);
|
940
995
|
}
|
941
996
|
}
|
942
997
|
};
|
@@ -944,7 +999,7 @@
|
|
944
999
|
_proto._slide = function _slide(direction, element) {
|
945
1000
|
var _this4 = this;
|
946
1001
|
|
947
|
-
var activeElement = this._element.querySelector(
|
1002
|
+
var activeElement = this._element.querySelector(SELECTOR_ACTIVE_ITEM);
|
948
1003
|
|
949
1004
|
var activeElementIndex = this._getItemIndex(activeElement);
|
950
1005
|
|
@@ -957,17 +1012,17 @@
|
|
957
1012
|
var orderClassName;
|
958
1013
|
var eventDirectionName;
|
959
1014
|
|
960
|
-
if (direction ===
|
961
|
-
directionalClassName =
|
962
|
-
orderClassName =
|
963
|
-
eventDirectionName =
|
1015
|
+
if (direction === DIRECTION_NEXT) {
|
1016
|
+
directionalClassName = CLASS_NAME_LEFT;
|
1017
|
+
orderClassName = CLASS_NAME_NEXT;
|
1018
|
+
eventDirectionName = DIRECTION_LEFT;
|
964
1019
|
} else {
|
965
|
-
directionalClassName =
|
966
|
-
orderClassName =
|
967
|
-
eventDirectionName =
|
1020
|
+
directionalClassName = CLASS_NAME_RIGHT;
|
1021
|
+
orderClassName = CLASS_NAME_PREV;
|
1022
|
+
eventDirectionName = DIRECTION_RIGHT;
|
968
1023
|
}
|
969
1024
|
|
970
|
-
if (nextElement && $(nextElement).hasClass(
|
1025
|
+
if (nextElement && $(nextElement).hasClass(CLASS_NAME_ACTIVE$1)) {
|
971
1026
|
this._isSliding = false;
|
972
1027
|
return;
|
973
1028
|
}
|
@@ -991,14 +1046,14 @@
|
|
991
1046
|
|
992
1047
|
this._setActiveIndicatorElement(nextElement);
|
993
1048
|
|
994
|
-
var slidEvent = $.Event(
|
1049
|
+
var slidEvent = $.Event(EVENT_SLID, {
|
995
1050
|
relatedTarget: nextElement,
|
996
1051
|
direction: eventDirectionName,
|
997
1052
|
from: activeElementIndex,
|
998
1053
|
to: nextElementIndex
|
999
1054
|
});
|
1000
1055
|
|
1001
|
-
if ($(this._element).hasClass(
|
1056
|
+
if ($(this._element).hasClass(CLASS_NAME_SLIDE)) {
|
1002
1057
|
$(nextElement).addClass(orderClassName);
|
1003
1058
|
Util.reflow(nextElement);
|
1004
1059
|
$(activeElement).addClass(directionalClassName);
|
@@ -1014,16 +1069,16 @@
|
|
1014
1069
|
|
1015
1070
|
var transitionDuration = Util.getTransitionDurationFromElement(activeElement);
|
1016
1071
|
$(activeElement).one(Util.TRANSITION_END, function () {
|
1017
|
-
$(nextElement).removeClass(directionalClassName + " " + orderClassName).addClass(
|
1018
|
-
$(activeElement).removeClass(
|
1072
|
+
$(nextElement).removeClass(directionalClassName + " " + orderClassName).addClass(CLASS_NAME_ACTIVE$1);
|
1073
|
+
$(activeElement).removeClass(CLASS_NAME_ACTIVE$1 + " " + orderClassName + " " + directionalClassName);
|
1019
1074
|
_this4._isSliding = false;
|
1020
1075
|
setTimeout(function () {
|
1021
1076
|
return $(_this4._element).trigger(slidEvent);
|
1022
1077
|
}, 0);
|
1023
1078
|
}).emulateTransitionEnd(transitionDuration);
|
1024
1079
|
} else {
|
1025
|
-
$(activeElement).removeClass(
|
1026
|
-
$(nextElement).addClass(
|
1080
|
+
$(activeElement).removeClass(CLASS_NAME_ACTIVE$1);
|
1081
|
+
$(nextElement).addClass(CLASS_NAME_ACTIVE$1);
|
1027
1082
|
this._isSliding = false;
|
1028
1083
|
$(this._element).trigger(slidEvent);
|
1029
1084
|
}
|
@@ -1038,10 +1093,10 @@
|
|
1038
1093
|
return this.each(function () {
|
1039
1094
|
var data = $(this).data(DATA_KEY$2);
|
1040
1095
|
|
1041
|
-
var _config =
|
1096
|
+
var _config = _objectSpread2(_objectSpread2({}, Default), $(this).data());
|
1042
1097
|
|
1043
1098
|
if (typeof config === 'object') {
|
1044
|
-
_config =
|
1099
|
+
_config = _objectSpread2(_objectSpread2({}, _config), config);
|
1045
1100
|
}
|
1046
1101
|
|
1047
1102
|
var action = typeof config === 'string' ? config : _config.slide;
|
@@ -1075,11 +1130,11 @@
|
|
1075
1130
|
|
1076
1131
|
var target = $(selector)[0];
|
1077
1132
|
|
1078
|
-
if (!target || !$(target).hasClass(
|
1133
|
+
if (!target || !$(target).hasClass(CLASS_NAME_CAROUSEL)) {
|
1079
1134
|
return;
|
1080
1135
|
}
|
1081
1136
|
|
1082
|
-
var config =
|
1137
|
+
var config = _objectSpread2(_objectSpread2({}, $(target).data()), $(this).data());
|
1083
1138
|
|
1084
1139
|
var slideIndex = this.getAttribute('data-slide-to');
|
1085
1140
|
|
@@ -1117,9 +1172,9 @@
|
|
1117
1172
|
*/
|
1118
1173
|
|
1119
1174
|
|
1120
|
-
$(document).on(
|
1121
|
-
$(window).on(
|
1122
|
-
var carousels = [].slice.call(document.querySelectorAll(
|
1175
|
+
$(document).on(EVENT_CLICK_DATA_API$2, SELECTOR_DATA_SLIDE, Carousel._dataApiClickHandler);
|
1176
|
+
$(window).on(EVENT_LOAD_DATA_API$1, function () {
|
1177
|
+
var carousels = [].slice.call(document.querySelectorAll(SELECTOR_DATA_RIDE));
|
1123
1178
|
|
1124
1179
|
for (var i = 0, len = carousels.length; i < len; i++) {
|
1125
1180
|
var $carousel = $(carousels[i]);
|
@@ -1148,7 +1203,7 @@
|
|
1148
1203
|
*/
|
1149
1204
|
|
1150
1205
|
var NAME$3 = 'collapse';
|
1151
|
-
var VERSION$3 = '4.
|
1206
|
+
var VERSION$3 = '4.5.0';
|
1152
1207
|
var DATA_KEY$3 = 'bs.collapse';
|
1153
1208
|
var EVENT_KEY$3 = "." + DATA_KEY$3;
|
1154
1209
|
var DATA_API_KEY$3 = '.data-api';
|
@@ -1161,43 +1216,32 @@
|
|
1161
1216
|
toggle: 'boolean',
|
1162
1217
|
parent: '(string|element)'
|
1163
1218
|
};
|
1164
|
-
var
|
1165
|
-
|
1166
|
-
|
1167
|
-
|
1168
|
-
|
1169
|
-
|
1170
|
-
|
1171
|
-
var
|
1172
|
-
|
1173
|
-
|
1174
|
-
|
1175
|
-
|
1176
|
-
|
1177
|
-
|
1178
|
-
|
1179
|
-
|
1180
|
-
|
1181
|
-
|
1182
|
-
ACTIVES: '.show, .collapsing',
|
1183
|
-
DATA_TOGGLE: '[data-toggle="collapse"]'
|
1184
|
-
/**
|
1185
|
-
* ------------------------------------------------------------------------
|
1186
|
-
* Class Definition
|
1187
|
-
* ------------------------------------------------------------------------
|
1188
|
-
*/
|
1189
|
-
|
1190
|
-
};
|
1219
|
+
var EVENT_SHOW = "show" + EVENT_KEY$3;
|
1220
|
+
var EVENT_SHOWN = "shown" + EVENT_KEY$3;
|
1221
|
+
var EVENT_HIDE = "hide" + EVENT_KEY$3;
|
1222
|
+
var EVENT_HIDDEN = "hidden" + EVENT_KEY$3;
|
1223
|
+
var EVENT_CLICK_DATA_API$3 = "click" + EVENT_KEY$3 + DATA_API_KEY$3;
|
1224
|
+
var CLASS_NAME_SHOW$1 = 'show';
|
1225
|
+
var CLASS_NAME_COLLAPSE = 'collapse';
|
1226
|
+
var CLASS_NAME_COLLAPSING = 'collapsing';
|
1227
|
+
var CLASS_NAME_COLLAPSED = 'collapsed';
|
1228
|
+
var DIMENSION_WIDTH = 'width';
|
1229
|
+
var DIMENSION_HEIGHT = 'height';
|
1230
|
+
var SELECTOR_ACTIVES = '.show, .collapsing';
|
1231
|
+
var SELECTOR_DATA_TOGGLE$1 = '[data-toggle="collapse"]';
|
1232
|
+
/**
|
1233
|
+
* ------------------------------------------------------------------------
|
1234
|
+
* Class Definition
|
1235
|
+
* ------------------------------------------------------------------------
|
1236
|
+
*/
|
1191
1237
|
|
1192
|
-
var Collapse =
|
1193
|
-
/*#__PURE__*/
|
1194
|
-
function () {
|
1238
|
+
var Collapse = /*#__PURE__*/function () {
|
1195
1239
|
function Collapse(element, config) {
|
1196
1240
|
this._isTransitioning = false;
|
1197
1241
|
this._element = element;
|
1198
1242
|
this._config = this._getConfig(config);
|
1199
1243
|
this._triggerArray = [].slice.call(document.querySelectorAll("[data-toggle=\"collapse\"][href=\"#" + element.id + "\"]," + ("[data-toggle=\"collapse\"][data-target=\"#" + element.id + "\"]")));
|
1200
|
-
var toggleList = [].slice.call(document.querySelectorAll(
|
1244
|
+
var toggleList = [].slice.call(document.querySelectorAll(SELECTOR_DATA_TOGGLE$1));
|
1201
1245
|
|
1202
1246
|
for (var i = 0, len = toggleList.length; i < len; i++) {
|
1203
1247
|
var elem = toggleList[i];
|
@@ -1229,7 +1273,7 @@
|
|
1229
1273
|
|
1230
1274
|
// Public
|
1231
1275
|
_proto.toggle = function toggle() {
|
1232
|
-
if ($(this._element).hasClass(
|
1276
|
+
if ($(this._element).hasClass(CLASS_NAME_SHOW$1)) {
|
1233
1277
|
this.hide();
|
1234
1278
|
} else {
|
1235
1279
|
this.show();
|
@@ -1239,7 +1283,7 @@
|
|
1239
1283
|
_proto.show = function show() {
|
1240
1284
|
var _this = this;
|
1241
1285
|
|
1242
|
-
if (this._isTransitioning || $(this._element).hasClass(
|
1286
|
+
if (this._isTransitioning || $(this._element).hasClass(CLASS_NAME_SHOW$1)) {
|
1243
1287
|
return;
|
1244
1288
|
}
|
1245
1289
|
|
@@ -1247,12 +1291,12 @@
|
|
1247
1291
|
var activesData;
|
1248
1292
|
|
1249
1293
|
if (this._parent) {
|
1250
|
-
actives = [].slice.call(this._parent.querySelectorAll(
|
1294
|
+
actives = [].slice.call(this._parent.querySelectorAll(SELECTOR_ACTIVES)).filter(function (elem) {
|
1251
1295
|
if (typeof _this._config.parent === 'string') {
|
1252
1296
|
return elem.getAttribute('data-parent') === _this._config.parent;
|
1253
1297
|
}
|
1254
1298
|
|
1255
|
-
return elem.classList.contains(
|
1299
|
+
return elem.classList.contains(CLASS_NAME_COLLAPSE);
|
1256
1300
|
});
|
1257
1301
|
|
1258
1302
|
if (actives.length === 0) {
|
@@ -1268,7 +1312,7 @@
|
|
1268
1312
|
}
|
1269
1313
|
}
|
1270
1314
|
|
1271
|
-
var startEvent = $.Event(
|
1315
|
+
var startEvent = $.Event(EVENT_SHOW);
|
1272
1316
|
$(this._element).trigger(startEvent);
|
1273
1317
|
|
1274
1318
|
if (startEvent.isDefaultPrevented()) {
|
@@ -1285,22 +1329,22 @@
|
|
1285
1329
|
|
1286
1330
|
var dimension = this._getDimension();
|
1287
1331
|
|
1288
|
-
$(this._element).removeClass(
|
1332
|
+
$(this._element).removeClass(CLASS_NAME_COLLAPSE).addClass(CLASS_NAME_COLLAPSING);
|
1289
1333
|
this._element.style[dimension] = 0;
|
1290
1334
|
|
1291
1335
|
if (this._triggerArray.length) {
|
1292
|
-
$(this._triggerArray).removeClass(
|
1336
|
+
$(this._triggerArray).removeClass(CLASS_NAME_COLLAPSED).attr('aria-expanded', true);
|
1293
1337
|
}
|
1294
1338
|
|
1295
1339
|
this.setTransitioning(true);
|
1296
1340
|
|
1297
1341
|
var complete = function complete() {
|
1298
|
-
$(_this._element).removeClass(
|
1342
|
+
$(_this._element).removeClass(CLASS_NAME_COLLAPSING).addClass(CLASS_NAME_COLLAPSE + " " + CLASS_NAME_SHOW$1);
|
1299
1343
|
_this._element.style[dimension] = '';
|
1300
1344
|
|
1301
1345
|
_this.setTransitioning(false);
|
1302
1346
|
|
1303
|
-
$(_this._element).trigger(
|
1347
|
+
$(_this._element).trigger(EVENT_SHOWN);
|
1304
1348
|
};
|
1305
1349
|
|
1306
1350
|
var capitalizedDimension = dimension[0].toUpperCase() + dimension.slice(1);
|
@@ -1313,11 +1357,11 @@
|
|
1313
1357
|
_proto.hide = function hide() {
|
1314
1358
|
var _this2 = this;
|
1315
1359
|
|
1316
|
-
if (this._isTransitioning || !$(this._element).hasClass(
|
1360
|
+
if (this._isTransitioning || !$(this._element).hasClass(CLASS_NAME_SHOW$1)) {
|
1317
1361
|
return;
|
1318
1362
|
}
|
1319
1363
|
|
1320
|
-
var startEvent = $.Event(
|
1364
|
+
var startEvent = $.Event(EVENT_HIDE);
|
1321
1365
|
$(this._element).trigger(startEvent);
|
1322
1366
|
|
1323
1367
|
if (startEvent.isDefaultPrevented()) {
|
@@ -1328,7 +1372,7 @@
|
|
1328
1372
|
|
1329
1373
|
this._element.style[dimension] = this._element.getBoundingClientRect()[dimension] + "px";
|
1330
1374
|
Util.reflow(this._element);
|
1331
|
-
$(this._element).addClass(
|
1375
|
+
$(this._element).addClass(CLASS_NAME_COLLAPSING).removeClass(CLASS_NAME_COLLAPSE + " " + CLASS_NAME_SHOW$1);
|
1332
1376
|
var triggerArrayLength = this._triggerArray.length;
|
1333
1377
|
|
1334
1378
|
if (triggerArrayLength > 0) {
|
@@ -1339,8 +1383,8 @@
|
|
1339
1383
|
if (selector !== null) {
|
1340
1384
|
var $elem = $([].slice.call(document.querySelectorAll(selector)));
|
1341
1385
|
|
1342
|
-
if (!$elem.hasClass(
|
1343
|
-
$(trigger).addClass(
|
1386
|
+
if (!$elem.hasClass(CLASS_NAME_SHOW$1)) {
|
1387
|
+
$(trigger).addClass(CLASS_NAME_COLLAPSED).attr('aria-expanded', false);
|
1344
1388
|
}
|
1345
1389
|
}
|
1346
1390
|
}
|
@@ -1351,7 +1395,7 @@
|
|
1351
1395
|
var complete = function complete() {
|
1352
1396
|
_this2.setTransitioning(false);
|
1353
1397
|
|
1354
|
-
$(_this2._element).removeClass(
|
1398
|
+
$(_this2._element).removeClass(CLASS_NAME_COLLAPSING).addClass(CLASS_NAME_COLLAPSE).trigger(EVENT_HIDDEN);
|
1355
1399
|
};
|
1356
1400
|
|
1357
1401
|
this._element.style[dimension] = '';
|
@@ -1374,7 +1418,7 @@
|
|
1374
1418
|
;
|
1375
1419
|
|
1376
1420
|
_proto._getConfig = function _getConfig(config) {
|
1377
|
-
config =
|
1421
|
+
config = _objectSpread2(_objectSpread2({}, Default$1), config);
|
1378
1422
|
config.toggle = Boolean(config.toggle); // Coerce string values
|
1379
1423
|
|
1380
1424
|
Util.typeCheckConfig(NAME$3, config, DefaultType$1);
|
@@ -1382,8 +1426,8 @@
|
|
1382
1426
|
};
|
1383
1427
|
|
1384
1428
|
_proto._getDimension = function _getDimension() {
|
1385
|
-
var hasWidth = $(this._element).hasClass(
|
1386
|
-
return hasWidth ?
|
1429
|
+
var hasWidth = $(this._element).hasClass(DIMENSION_WIDTH);
|
1430
|
+
return hasWidth ? DIMENSION_WIDTH : DIMENSION_HEIGHT;
|
1387
1431
|
};
|
1388
1432
|
|
1389
1433
|
_proto._getParent = function _getParent() {
|
@@ -1410,10 +1454,10 @@
|
|
1410
1454
|
};
|
1411
1455
|
|
1412
1456
|
_proto._addAriaAndCollapsedClass = function _addAriaAndCollapsedClass(element, triggerArray) {
|
1413
|
-
var isOpen = $(element).hasClass(
|
1457
|
+
var isOpen = $(element).hasClass(CLASS_NAME_SHOW$1);
|
1414
1458
|
|
1415
1459
|
if (triggerArray.length) {
|
1416
|
-
$(triggerArray).toggleClass(
|
1460
|
+
$(triggerArray).toggleClass(CLASS_NAME_COLLAPSED, !isOpen).attr('aria-expanded', isOpen);
|
1417
1461
|
}
|
1418
1462
|
} // Static
|
1419
1463
|
;
|
@@ -1428,9 +1472,9 @@
|
|
1428
1472
|
var $this = $(this);
|
1429
1473
|
var data = $this.data(DATA_KEY$3);
|
1430
1474
|
|
1431
|
-
var _config =
|
1475
|
+
var _config = _objectSpread2(_objectSpread2(_objectSpread2({}, Default$1), $this.data()), typeof config === 'object' && config ? config : {});
|
1432
1476
|
|
1433
|
-
if (!data && _config.toggle && /show|hide/.test(config)) {
|
1477
|
+
if (!data && _config.toggle && typeof config === 'string' && /show|hide/.test(config)) {
|
1434
1478
|
_config.toggle = false;
|
1435
1479
|
}
|
1436
1480
|
|
@@ -1470,7 +1514,7 @@
|
|
1470
1514
|
*/
|
1471
1515
|
|
1472
1516
|
|
1473
|
-
$(document).on(
|
1517
|
+
$(document).on(EVENT_CLICK_DATA_API$3, SELECTOR_DATA_TOGGLE$1, function (event) {
|
1474
1518
|
// preventDefault only for <a> elements (which change the URL) not inside the collapsible element
|
1475
1519
|
if (event.currentTarget.tagName === 'A') {
|
1476
1520
|
event.preventDefault();
|
@@ -1503,7 +1547,7 @@
|
|
1503
1547
|
|
1504
1548
|
/**!
|
1505
1549
|
* @fileOverview Kickass library to create and place poppers near their reference elements.
|
1506
|
-
* @version 1.
|
1550
|
+
* @version 1.16.0
|
1507
1551
|
* @license
|
1508
1552
|
* Copyright (c) 2016 Federico Zivolo and contributors
|
1509
1553
|
*
|
@@ -1525,16 +1569,17 @@
|
|
1525
1569
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
1526
1570
|
* SOFTWARE.
|
1527
1571
|
*/
|
1528
|
-
var isBrowser = typeof window !== 'undefined' && typeof document !== 'undefined';
|
1529
|
-
|
1530
|
-
var
|
1531
|
-
|
1532
|
-
|
1533
|
-
|
1534
|
-
|
1535
|
-
|
1572
|
+
var isBrowser = typeof window !== 'undefined' && typeof document !== 'undefined' && typeof navigator !== 'undefined';
|
1573
|
+
|
1574
|
+
var timeoutDuration = function () {
|
1575
|
+
var longerTimeoutBrowsers = ['Edge', 'Trident', 'Firefox'];
|
1576
|
+
for (var i = 0; i < longerTimeoutBrowsers.length; i += 1) {
|
1577
|
+
if (isBrowser && navigator.userAgent.indexOf(longerTimeoutBrowsers[i]) >= 0) {
|
1578
|
+
return 1;
|
1579
|
+
}
|
1536
1580
|
}
|
1537
|
-
|
1581
|
+
return 0;
|
1582
|
+
}();
|
1538
1583
|
|
1539
1584
|
function microtaskDebounce(fn) {
|
1540
1585
|
var called = false;
|
@@ -1654,6 +1699,17 @@
|
|
1654
1699
|
return getScrollParent(getParentNode(element));
|
1655
1700
|
}
|
1656
1701
|
|
1702
|
+
/**
|
1703
|
+
* Returns the reference node of the reference object, or the reference object itself.
|
1704
|
+
* @method
|
1705
|
+
* @memberof Popper.Utils
|
1706
|
+
* @param {Element|Object} reference - the reference element (the popper will be relative to this)
|
1707
|
+
* @returns {Element} parent
|
1708
|
+
*/
|
1709
|
+
function getReferenceNode(reference) {
|
1710
|
+
return reference && reference.referenceNode ? reference.referenceNode : reference;
|
1711
|
+
}
|
1712
|
+
|
1657
1713
|
var isIE11 = isBrowser && !!(window.MSInputMethodContext && document.documentMode);
|
1658
1714
|
var isIE10 = isBrowser && /MSIE 10/.test(navigator.userAgent);
|
1659
1715
|
|
@@ -1962,8 +2018,8 @@
|
|
1962
2018
|
|
1963
2019
|
// subtract scrollbar size from sizes
|
1964
2020
|
var sizes = element.nodeName === 'HTML' ? getWindowSizes(element.ownerDocument) : {};
|
1965
|
-
var width = sizes.width || element.clientWidth || result.
|
1966
|
-
var height = sizes.height || element.clientHeight || result.
|
2021
|
+
var width = sizes.width || element.clientWidth || result.width;
|
2022
|
+
var height = sizes.height || element.clientHeight || result.height;
|
1967
2023
|
|
1968
2024
|
var horizScrollbar = element.offsetWidth - width;
|
1969
2025
|
var vertScrollbar = element.offsetHeight - height;
|
@@ -2115,7 +2171,7 @@
|
|
2115
2171
|
// NOTE: 1 DOM access here
|
2116
2172
|
|
2117
2173
|
var boundaries = { top: 0, left: 0 };
|
2118
|
-
var offsetParent = fixedPosition ? getFixedPositionOffsetParent(popper) : findCommonOffsetParent(popper, reference);
|
2174
|
+
var offsetParent = fixedPosition ? getFixedPositionOffsetParent(popper) : findCommonOffsetParent(popper, getReferenceNode(reference));
|
2119
2175
|
|
2120
2176
|
// Handle viewport case
|
2121
2177
|
if (boundariesElement === 'viewport') {
|
@@ -2243,7 +2299,7 @@
|
|
2243
2299
|
function getReferenceOffsets(state, popper, reference) {
|
2244
2300
|
var fixedPosition = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : null;
|
2245
2301
|
|
2246
|
-
var commonOffsetParent = fixedPosition ? getFixedPositionOffsetParent(popper) : findCommonOffsetParent(popper, reference);
|
2302
|
+
var commonOffsetParent = fixedPosition ? getFixedPositionOffsetParent(popper) : findCommonOffsetParent(popper, getReferenceNode(reference));
|
2247
2303
|
return getOffsetRectRelativeToArbitraryNode(reference, commonOffsetParent, fixedPosition);
|
2248
2304
|
}
|
2249
2305
|
|
@@ -2505,7 +2561,7 @@
|
|
2505
2561
|
|
2506
2562
|
this.disableEventListeners();
|
2507
2563
|
|
2508
|
-
// remove the popper if user
|
2564
|
+
// remove the popper if user explicitly asked for the deletion on destroy
|
2509
2565
|
// do not use `remove` because IE11 doesn't support it
|
2510
2566
|
if (this.options.removeOnDestroy) {
|
2511
2567
|
this.popper.parentNode.removeChild(this.popper);
|
@@ -3107,7 +3163,14 @@
|
|
3107
3163
|
|
3108
3164
|
// flip the variation if required
|
3109
3165
|
var isVertical = ['top', 'bottom'].indexOf(placement) !== -1;
|
3110
|
-
|
3166
|
+
|
3167
|
+
// flips variation if reference element overflows boundaries
|
3168
|
+
var flippedVariationByRef = !!options.flipVariations && (isVertical && variation === 'start' && overflowsLeft || isVertical && variation === 'end' && overflowsRight || !isVertical && variation === 'start' && overflowsTop || !isVertical && variation === 'end' && overflowsBottom);
|
3169
|
+
|
3170
|
+
// flips variation if popper content overflows boundaries
|
3171
|
+
var flippedVariationByContent = !!options.flipVariationsByContent && (isVertical && variation === 'start' && overflowsRight || isVertical && variation === 'end' && overflowsLeft || !isVertical && variation === 'start' && overflowsBottom || !isVertical && variation === 'end' && overflowsTop);
|
3172
|
+
|
3173
|
+
var flippedVariation = flippedVariationByRef || flippedVariationByContent;
|
3111
3174
|
|
3112
3175
|
if (overlapsRef || overflowsBoundaries || flippedVariation) {
|
3113
3176
|
// this boolean to detect any flip loop
|
@@ -3714,7 +3777,23 @@
|
|
3714
3777
|
* The popper will never be placed outside of the defined boundaries
|
3715
3778
|
* (except if `keepTogether` is enabled)
|
3716
3779
|
*/
|
3717
|
-
boundariesElement: 'viewport'
|
3780
|
+
boundariesElement: 'viewport',
|
3781
|
+
/**
|
3782
|
+
* @prop {Boolean} flipVariations=false
|
3783
|
+
* The popper will switch placement variation between `-start` and `-end` when
|
3784
|
+
* the reference element overlaps its boundaries.
|
3785
|
+
*
|
3786
|
+
* The original placement should have a set variation.
|
3787
|
+
*/
|
3788
|
+
flipVariations: false,
|
3789
|
+
/**
|
3790
|
+
* @prop {Boolean} flipVariationsByContent=false
|
3791
|
+
* The popper will switch placement variation between `-start` and `-end` when
|
3792
|
+
* the popper element overlaps its reference boundaries.
|
3793
|
+
*
|
3794
|
+
* The original placement should have a set variation.
|
3795
|
+
*/
|
3796
|
+
flipVariationsByContent: false
|
3718
3797
|
},
|
3719
3798
|
|
3720
3799
|
/**
|
@@ -3931,8 +4010,8 @@
|
|
3931
4010
|
/**
|
3932
4011
|
* Creates a new Popper.js instance.
|
3933
4012
|
* @class Popper
|
3934
|
-
* @param {
|
3935
|
-
* @param {
|
4013
|
+
* @param {Element|referenceObject} reference - The reference element used to position the popper
|
4014
|
+
* @param {Element} popper - The HTML / XML element used as the popper
|
3936
4015
|
* @param {Object} options - Your custom options to override the ones defined in [Defaults](#defaults)
|
3937
4016
|
* @return {Object} instance - The generated Popper.js instance
|
3938
4017
|
*/
|
@@ -4087,7 +4166,7 @@
|
|
4087
4166
|
*/
|
4088
4167
|
|
4089
4168
|
var NAME$4 = 'dropdown';
|
4090
|
-
var VERSION$4 = '4.
|
4169
|
+
var VERSION$4 = '4.5.0';
|
4091
4170
|
var DATA_KEY$4 = 'bs.dropdown';
|
4092
4171
|
var EVENT_KEY$4 = "." + DATA_KEY$4;
|
4093
4172
|
var DATA_API_KEY$4 = '.data-api';
|
@@ -4105,67 +4184,55 @@
|
|
4105
4184
|
var RIGHT_MOUSE_BUTTON_WHICH = 3; // MouseEvent.which value for the right button (assuming a right-handed mouse)
|
4106
4185
|
|
4107
4186
|
var REGEXP_KEYDOWN = new RegExp(ARROW_UP_KEYCODE + "|" + ARROW_DOWN_KEYCODE + "|" + ESCAPE_KEYCODE);
|
4108
|
-
var
|
4109
|
-
|
4110
|
-
|
4111
|
-
|
4112
|
-
|
4113
|
-
|
4114
|
-
|
4115
|
-
|
4116
|
-
|
4117
|
-
|
4118
|
-
var
|
4119
|
-
|
4120
|
-
|
4121
|
-
|
4122
|
-
|
4123
|
-
|
4124
|
-
|
4125
|
-
|
4126
|
-
|
4127
|
-
|
4128
|
-
var
|
4129
|
-
|
4130
|
-
|
4131
|
-
|
4132
|
-
|
4133
|
-
|
4134
|
-
};
|
4135
|
-
var AttachmentMap = {
|
4136
|
-
TOP: 'top-start',
|
4137
|
-
TOPEND: 'top-end',
|
4138
|
-
BOTTOM: 'bottom-start',
|
4139
|
-
BOTTOMEND: 'bottom-end',
|
4140
|
-
RIGHT: 'right-start',
|
4141
|
-
RIGHTEND: 'right-end',
|
4142
|
-
LEFT: 'left-start',
|
4143
|
-
LEFTEND: 'left-end'
|
4144
|
-
};
|
4187
|
+
var EVENT_HIDE$1 = "hide" + EVENT_KEY$4;
|
4188
|
+
var EVENT_HIDDEN$1 = "hidden" + EVENT_KEY$4;
|
4189
|
+
var EVENT_SHOW$1 = "show" + EVENT_KEY$4;
|
4190
|
+
var EVENT_SHOWN$1 = "shown" + EVENT_KEY$4;
|
4191
|
+
var EVENT_CLICK = "click" + EVENT_KEY$4;
|
4192
|
+
var EVENT_CLICK_DATA_API$4 = "click" + EVENT_KEY$4 + DATA_API_KEY$4;
|
4193
|
+
var EVENT_KEYDOWN_DATA_API = "keydown" + EVENT_KEY$4 + DATA_API_KEY$4;
|
4194
|
+
var EVENT_KEYUP_DATA_API = "keyup" + EVENT_KEY$4 + DATA_API_KEY$4;
|
4195
|
+
var CLASS_NAME_DISABLED = 'disabled';
|
4196
|
+
var CLASS_NAME_SHOW$2 = 'show';
|
4197
|
+
var CLASS_NAME_DROPUP = 'dropup';
|
4198
|
+
var CLASS_NAME_DROPRIGHT = 'dropright';
|
4199
|
+
var CLASS_NAME_DROPLEFT = 'dropleft';
|
4200
|
+
var CLASS_NAME_MENURIGHT = 'dropdown-menu-right';
|
4201
|
+
var CLASS_NAME_POSITION_STATIC = 'position-static';
|
4202
|
+
var SELECTOR_DATA_TOGGLE$2 = '[data-toggle="dropdown"]';
|
4203
|
+
var SELECTOR_FORM_CHILD = '.dropdown form';
|
4204
|
+
var SELECTOR_MENU = '.dropdown-menu';
|
4205
|
+
var SELECTOR_NAVBAR_NAV = '.navbar-nav';
|
4206
|
+
var SELECTOR_VISIBLE_ITEMS = '.dropdown-menu .dropdown-item:not(.disabled):not(:disabled)';
|
4207
|
+
var PLACEMENT_TOP = 'top-start';
|
4208
|
+
var PLACEMENT_TOPEND = 'top-end';
|
4209
|
+
var PLACEMENT_BOTTOM = 'bottom-start';
|
4210
|
+
var PLACEMENT_BOTTOMEND = 'bottom-end';
|
4211
|
+
var PLACEMENT_RIGHT = 'right-start';
|
4212
|
+
var PLACEMENT_LEFT = 'left-start';
|
4145
4213
|
var Default$2 = {
|
4146
4214
|
offset: 0,
|
4147
4215
|
flip: true,
|
4148
4216
|
boundary: 'scrollParent',
|
4149
4217
|
reference: 'toggle',
|
4150
|
-
display: 'dynamic'
|
4218
|
+
display: 'dynamic',
|
4219
|
+
popperConfig: null
|
4151
4220
|
};
|
4152
4221
|
var DefaultType$2 = {
|
4153
4222
|
offset: '(number|string|function)',
|
4154
4223
|
flip: 'boolean',
|
4155
4224
|
boundary: '(string|element)',
|
4156
4225
|
reference: '(string|element)',
|
4157
|
-
display: 'string'
|
4158
|
-
|
4159
|
-
* ------------------------------------------------------------------------
|
4160
|
-
* Class Definition
|
4161
|
-
* ------------------------------------------------------------------------
|
4162
|
-
*/
|
4163
|
-
|
4226
|
+
display: 'string',
|
4227
|
+
popperConfig: '(null|object)'
|
4164
4228
|
};
|
4229
|
+
/**
|
4230
|
+
* ------------------------------------------------------------------------
|
4231
|
+
* Class Definition
|
4232
|
+
* ------------------------------------------------------------------------
|
4233
|
+
*/
|
4165
4234
|
|
4166
|
-
var Dropdown =
|
4167
|
-
/*#__PURE__*/
|
4168
|
-
function () {
|
4235
|
+
var Dropdown = /*#__PURE__*/function () {
|
4169
4236
|
function Dropdown(element, config) {
|
4170
4237
|
this._element = element;
|
4171
4238
|
this._popper = null;
|
@@ -4181,13 +4248,11 @@
|
|
4181
4248
|
|
4182
4249
|
// Public
|
4183
4250
|
_proto.toggle = function toggle() {
|
4184
|
-
if (this._element.disabled || $(this._element).hasClass(
|
4251
|
+
if (this._element.disabled || $(this._element).hasClass(CLASS_NAME_DISABLED)) {
|
4185
4252
|
return;
|
4186
4253
|
}
|
4187
4254
|
|
4188
|
-
var
|
4189
|
-
|
4190
|
-
var isActive = $(this._menu).hasClass(ClassName$4.SHOW);
|
4255
|
+
var isActive = $(this._menu).hasClass(CLASS_NAME_SHOW$2);
|
4191
4256
|
|
4192
4257
|
Dropdown._clearMenus();
|
4193
4258
|
|
@@ -4195,10 +4260,25 @@
|
|
4195
4260
|
return;
|
4196
4261
|
}
|
4197
4262
|
|
4263
|
+
this.show(true);
|
4264
|
+
};
|
4265
|
+
|
4266
|
+
_proto.show = function show(usePopper) {
|
4267
|
+
if (usePopper === void 0) {
|
4268
|
+
usePopper = false;
|
4269
|
+
}
|
4270
|
+
|
4271
|
+
if (this._element.disabled || $(this._element).hasClass(CLASS_NAME_DISABLED) || $(this._menu).hasClass(CLASS_NAME_SHOW$2)) {
|
4272
|
+
return;
|
4273
|
+
}
|
4274
|
+
|
4198
4275
|
var relatedTarget = {
|
4199
4276
|
relatedTarget: this._element
|
4200
4277
|
};
|
4201
|
-
var showEvent = $.Event(
|
4278
|
+
var showEvent = $.Event(EVENT_SHOW$1, relatedTarget);
|
4279
|
+
|
4280
|
+
var parent = Dropdown._getParentFromElement(this._element);
|
4281
|
+
|
4202
4282
|
$(parent).trigger(showEvent);
|
4203
4283
|
|
4204
4284
|
if (showEvent.isDefaultPrevented()) {
|
@@ -4206,7 +4286,7 @@
|
|
4206
4286
|
} // Disable totally Popper.js for Dropdown in Navbar
|
4207
4287
|
|
4208
4288
|
|
4209
|
-
if (!this._inNavbar) {
|
4289
|
+
if (!this._inNavbar && usePopper) {
|
4210
4290
|
/**
|
4211
4291
|
* Check for Popper dependency
|
4212
4292
|
* Popper - https://popper.js.org
|
@@ -4231,7 +4311,7 @@
|
|
4231
4311
|
|
4232
4312
|
|
4233
4313
|
if (this._config.boundary !== 'scrollParent') {
|
4234
|
-
$(parent).addClass(
|
4314
|
+
$(parent).addClass(CLASS_NAME_POSITION_STATIC);
|
4235
4315
|
}
|
4236
4316
|
|
4237
4317
|
this._popper = new Popper(referenceElement, this._menu, this._getPopperConfig());
|
@@ -4241,7 +4321,7 @@
|
|
4241
4321
|
// https://www.quirksmode.org/blog/archives/2014/02/mouse_event_bub.html
|
4242
4322
|
|
4243
4323
|
|
4244
|
-
if ('ontouchstart' in document.documentElement && $(parent).closest(
|
4324
|
+
if ('ontouchstart' in document.documentElement && $(parent).closest(SELECTOR_NAVBAR_NAV).length === 0) {
|
4245
4325
|
$(document.body).children().on('mouseover', null, $.noop);
|
4246
4326
|
}
|
4247
4327
|
|
@@ -4249,41 +4329,19 @@
|
|
4249
4329
|
|
4250
4330
|
this._element.setAttribute('aria-expanded', true);
|
4251
4331
|
|
4252
|
-
$(this._menu).toggleClass(
|
4253
|
-
$(parent).toggleClass(
|
4254
|
-
};
|
4255
|
-
|
4256
|
-
_proto.show = function show() {
|
4257
|
-
if (this._element.disabled || $(this._element).hasClass(ClassName$4.DISABLED) || $(this._menu).hasClass(ClassName$4.SHOW)) {
|
4258
|
-
return;
|
4259
|
-
}
|
4260
|
-
|
4261
|
-
var relatedTarget = {
|
4262
|
-
relatedTarget: this._element
|
4263
|
-
};
|
4264
|
-
var showEvent = $.Event(Event$4.SHOW, relatedTarget);
|
4265
|
-
|
4266
|
-
var parent = Dropdown._getParentFromElement(this._element);
|
4267
|
-
|
4268
|
-
$(parent).trigger(showEvent);
|
4269
|
-
|
4270
|
-
if (showEvent.isDefaultPrevented()) {
|
4271
|
-
return;
|
4272
|
-
}
|
4273
|
-
|
4274
|
-
$(this._menu).toggleClass(ClassName$4.SHOW);
|
4275
|
-
$(parent).toggleClass(ClassName$4.SHOW).trigger($.Event(Event$4.SHOWN, relatedTarget));
|
4332
|
+
$(this._menu).toggleClass(CLASS_NAME_SHOW$2);
|
4333
|
+
$(parent).toggleClass(CLASS_NAME_SHOW$2).trigger($.Event(EVENT_SHOWN$1, relatedTarget));
|
4276
4334
|
};
|
4277
4335
|
|
4278
4336
|
_proto.hide = function hide() {
|
4279
|
-
if (this._element.disabled || $(this._element).hasClass(
|
4337
|
+
if (this._element.disabled || $(this._element).hasClass(CLASS_NAME_DISABLED) || !$(this._menu).hasClass(CLASS_NAME_SHOW$2)) {
|
4280
4338
|
return;
|
4281
4339
|
}
|
4282
4340
|
|
4283
4341
|
var relatedTarget = {
|
4284
4342
|
relatedTarget: this._element
|
4285
4343
|
};
|
4286
|
-
var hideEvent = $.Event(
|
4344
|
+
var hideEvent = $.Event(EVENT_HIDE$1, relatedTarget);
|
4287
4345
|
|
4288
4346
|
var parent = Dropdown._getParentFromElement(this._element);
|
4289
4347
|
|
@@ -4293,8 +4351,12 @@
|
|
4293
4351
|
return;
|
4294
4352
|
}
|
4295
4353
|
|
4296
|
-
|
4297
|
-
|
4354
|
+
if (this._popper) {
|
4355
|
+
this._popper.destroy();
|
4356
|
+
}
|
4357
|
+
|
4358
|
+
$(this._menu).toggleClass(CLASS_NAME_SHOW$2);
|
4359
|
+
$(parent).toggleClass(CLASS_NAME_SHOW$2).trigger($.Event(EVENT_HIDDEN$1, relatedTarget));
|
4298
4360
|
};
|
4299
4361
|
|
4300
4362
|
_proto.dispose = function dispose() {
|
@@ -4322,7 +4384,7 @@
|
|
4322
4384
|
_proto._addEventListeners = function _addEventListeners() {
|
4323
4385
|
var _this = this;
|
4324
4386
|
|
4325
|
-
$(this._element).on(
|
4387
|
+
$(this._element).on(EVENT_CLICK, function (event) {
|
4326
4388
|
event.preventDefault();
|
4327
4389
|
event.stopPropagation();
|
4328
4390
|
|
@@ -4331,7 +4393,7 @@
|
|
4331
4393
|
};
|
4332
4394
|
|
4333
4395
|
_proto._getConfig = function _getConfig(config) {
|
4334
|
-
config =
|
4396
|
+
config = _objectSpread2(_objectSpread2(_objectSpread2({}, this.constructor.Default), $(this._element).data()), config);
|
4335
4397
|
Util.typeCheckConfig(NAME$4, config, this.constructor.DefaultType);
|
4336
4398
|
return config;
|
4337
4399
|
};
|
@@ -4341,7 +4403,7 @@
|
|
4341
4403
|
var parent = Dropdown._getParentFromElement(this._element);
|
4342
4404
|
|
4343
4405
|
if (parent) {
|
4344
|
-
this._menu = parent.querySelector(
|
4406
|
+
this._menu = parent.querySelector(SELECTOR_MENU);
|
4345
4407
|
}
|
4346
4408
|
}
|
4347
4409
|
|
@@ -4350,20 +4412,16 @@
|
|
4350
4412
|
|
4351
4413
|
_proto._getPlacement = function _getPlacement() {
|
4352
4414
|
var $parentDropdown = $(this._element.parentNode);
|
4353
|
-
var placement =
|
4354
|
-
|
4355
|
-
if ($parentDropdown.hasClass(ClassName$4.DROPUP)) {
|
4356
|
-
placement = AttachmentMap.TOP;
|
4415
|
+
var placement = PLACEMENT_BOTTOM; // Handle dropup
|
4357
4416
|
|
4358
|
-
|
4359
|
-
|
4360
|
-
|
4361
|
-
|
4362
|
-
|
4363
|
-
|
4364
|
-
|
4365
|
-
|
4366
|
-
placement = AttachmentMap.BOTTOMEND;
|
4417
|
+
if ($parentDropdown.hasClass(CLASS_NAME_DROPUP)) {
|
4418
|
+
placement = $(this._menu).hasClass(CLASS_NAME_MENURIGHT) ? PLACEMENT_TOPEND : PLACEMENT_TOP;
|
4419
|
+
} else if ($parentDropdown.hasClass(CLASS_NAME_DROPRIGHT)) {
|
4420
|
+
placement = PLACEMENT_RIGHT;
|
4421
|
+
} else if ($parentDropdown.hasClass(CLASS_NAME_DROPLEFT)) {
|
4422
|
+
placement = PLACEMENT_LEFT;
|
4423
|
+
} else if ($(this._menu).hasClass(CLASS_NAME_MENURIGHT)) {
|
4424
|
+
placement = PLACEMENT_BOTTOMEND;
|
4367
4425
|
}
|
4368
4426
|
|
4369
4427
|
return placement;
|
@@ -4380,7 +4438,7 @@
|
|
4380
4438
|
|
4381
4439
|
if (typeof this._config.offset === 'function') {
|
4382
4440
|
offset.fn = function (data) {
|
4383
|
-
data.offsets =
|
4441
|
+
data.offsets = _objectSpread2(_objectSpread2({}, data.offsets), _this2._config.offset(data.offsets, _this2._element) || {});
|
4384
4442
|
return data;
|
4385
4443
|
};
|
4386
4444
|
} else {
|
@@ -4401,9 +4459,8 @@
|
|
4401
4459
|
preventOverflow: {
|
4402
4460
|
boundariesElement: this._config.boundary
|
4403
4461
|
}
|
4404
|
-
}
|
4405
|
-
|
4406
|
-
};
|
4462
|
+
}
|
4463
|
+
}; // Disable Popper.js if we have a static display
|
4407
4464
|
|
4408
4465
|
if (this._config.display === 'static') {
|
4409
4466
|
popperConfig.modifiers.applyStyle = {
|
@@ -4411,7 +4468,7 @@
|
|
4411
4468
|
};
|
4412
4469
|
}
|
4413
4470
|
|
4414
|
-
return popperConfig;
|
4471
|
+
return _objectSpread2(_objectSpread2({}, popperConfig), this._config.popperConfig);
|
4415
4472
|
} // Static
|
4416
4473
|
;
|
4417
4474
|
|
@@ -4441,7 +4498,7 @@
|
|
4441
4498
|
return;
|
4442
4499
|
}
|
4443
4500
|
|
4444
|
-
var toggles = [].slice.call(document.querySelectorAll(
|
4501
|
+
var toggles = [].slice.call(document.querySelectorAll(SELECTOR_DATA_TOGGLE$2));
|
4445
4502
|
|
4446
4503
|
for (var i = 0, len = toggles.length; i < len; i++) {
|
4447
4504
|
var parent = Dropdown._getParentFromElement(toggles[i]);
|
@@ -4461,7 +4518,7 @@
|
|
4461
4518
|
|
4462
4519
|
var dropdownMenu = context._menu;
|
4463
4520
|
|
4464
|
-
if (!$(parent).hasClass(
|
4521
|
+
if (!$(parent).hasClass(CLASS_NAME_SHOW$2)) {
|
4465
4522
|
continue;
|
4466
4523
|
}
|
4467
4524
|
|
@@ -4469,7 +4526,7 @@
|
|
4469
4526
|
continue;
|
4470
4527
|
}
|
4471
4528
|
|
4472
|
-
var hideEvent = $.Event(
|
4529
|
+
var hideEvent = $.Event(EVENT_HIDE$1, relatedTarget);
|
4473
4530
|
$(parent).trigger(hideEvent);
|
4474
4531
|
|
4475
4532
|
if (hideEvent.isDefaultPrevented()) {
|
@@ -4483,8 +4540,13 @@
|
|
4483
4540
|
}
|
4484
4541
|
|
4485
4542
|
toggles[i].setAttribute('aria-expanded', 'false');
|
4486
|
-
|
4487
|
-
|
4543
|
+
|
4544
|
+
if (context._popper) {
|
4545
|
+
context._popper.destroy();
|
4546
|
+
}
|
4547
|
+
|
4548
|
+
$(dropdownMenu).removeClass(CLASS_NAME_SHOW$2);
|
4549
|
+
$(parent).removeClass(CLASS_NAME_SHOW$2).trigger($.Event(EVENT_HIDDEN$1, relatedTarget));
|
4488
4550
|
}
|
4489
4551
|
};
|
4490
4552
|
|
@@ -4508,32 +4570,37 @@
|
|
4508
4570
|
// - If key is other than escape
|
4509
4571
|
// - If key is not up or down => not a dropdown command
|
4510
4572
|
// - If trigger inside the menu => not a dropdown command
|
4511
|
-
if (/input|textarea/i.test(event.target.tagName) ? event.which === SPACE_KEYCODE || event.which !== ESCAPE_KEYCODE && (event.which !== ARROW_DOWN_KEYCODE && event.which !== ARROW_UP_KEYCODE || $(event.target).closest(
|
4573
|
+
if (/input|textarea/i.test(event.target.tagName) ? event.which === SPACE_KEYCODE || event.which !== ESCAPE_KEYCODE && (event.which !== ARROW_DOWN_KEYCODE && event.which !== ARROW_UP_KEYCODE || $(event.target).closest(SELECTOR_MENU).length) : !REGEXP_KEYDOWN.test(event.which)) {
|
4512
4574
|
return;
|
4513
4575
|
}
|
4514
4576
|
|
4515
|
-
|
4516
|
-
event.stopPropagation();
|
4517
|
-
|
4518
|
-
if (this.disabled || $(this).hasClass(ClassName$4.DISABLED)) {
|
4577
|
+
if (this.disabled || $(this).hasClass(CLASS_NAME_DISABLED)) {
|
4519
4578
|
return;
|
4520
4579
|
}
|
4521
4580
|
|
4522
4581
|
var parent = Dropdown._getParentFromElement(this);
|
4523
4582
|
|
4524
|
-
var isActive = $(parent).hasClass(
|
4583
|
+
var isActive = $(parent).hasClass(CLASS_NAME_SHOW$2);
|
4584
|
+
|
4585
|
+
if (!isActive && event.which === ESCAPE_KEYCODE) {
|
4586
|
+
return;
|
4587
|
+
}
|
4588
|
+
|
4589
|
+
event.preventDefault();
|
4590
|
+
event.stopPropagation();
|
4525
4591
|
|
4526
4592
|
if (!isActive || isActive && (event.which === ESCAPE_KEYCODE || event.which === SPACE_KEYCODE)) {
|
4527
4593
|
if (event.which === ESCAPE_KEYCODE) {
|
4528
|
-
|
4529
|
-
$(toggle).trigger('focus');
|
4594
|
+
$(parent.querySelector(SELECTOR_DATA_TOGGLE$2)).trigger('focus');
|
4530
4595
|
}
|
4531
4596
|
|
4532
4597
|
$(this).trigger('click');
|
4533
4598
|
return;
|
4534
4599
|
}
|
4535
4600
|
|
4536
|
-
var items = [].slice.call(parent.querySelectorAll(
|
4601
|
+
var items = [].slice.call(parent.querySelectorAll(SELECTOR_VISIBLE_ITEMS)).filter(function (item) {
|
4602
|
+
return $(item).is(':visible');
|
4603
|
+
});
|
4537
4604
|
|
4538
4605
|
if (items.length === 0) {
|
4539
4606
|
return;
|
@@ -4584,12 +4651,12 @@
|
|
4584
4651
|
*/
|
4585
4652
|
|
4586
4653
|
|
4587
|
-
$(document).on(
|
4654
|
+
$(document).on(EVENT_KEYDOWN_DATA_API, SELECTOR_DATA_TOGGLE$2, Dropdown._dataApiKeydownHandler).on(EVENT_KEYDOWN_DATA_API, SELECTOR_MENU, Dropdown._dataApiKeydownHandler).on(EVENT_CLICK_DATA_API$4 + " " + EVENT_KEYUP_DATA_API, Dropdown._clearMenus).on(EVENT_CLICK_DATA_API$4, SELECTOR_DATA_TOGGLE$2, function (event) {
|
4588
4655
|
event.preventDefault();
|
4589
4656
|
event.stopPropagation();
|
4590
4657
|
|
4591
4658
|
Dropdown._jQueryInterface.call($(this), 'toggle');
|
4592
|
-
}).on(
|
4659
|
+
}).on(EVENT_CLICK_DATA_API$4, SELECTOR_FORM_CHILD, function (e) {
|
4593
4660
|
e.stopPropagation();
|
4594
4661
|
});
|
4595
4662
|
/**
|
@@ -4613,7 +4680,7 @@
|
|
4613
4680
|
*/
|
4614
4681
|
|
4615
4682
|
var NAME$5 = 'modal';
|
4616
|
-
var VERSION$5 = '4.
|
4683
|
+
var VERSION$5 = '4.5.0';
|
4617
4684
|
var DATA_KEY$5 = 'bs.modal';
|
4618
4685
|
var EVENT_KEY$5 = "." + DATA_KEY$5;
|
4619
4686
|
var DATA_API_KEY$5 = '.data-api';
|
@@ -4632,49 +4699,42 @@
|
|
4632
4699
|
focus: 'boolean',
|
4633
4700
|
show: 'boolean'
|
4634
4701
|
};
|
4635
|
-
var
|
4636
|
-
|
4637
|
-
|
4638
|
-
|
4639
|
-
|
4640
|
-
|
4641
|
-
|
4642
|
-
|
4643
|
-
|
4644
|
-
|
4645
|
-
|
4646
|
-
|
4647
|
-
|
4648
|
-
var
|
4649
|
-
|
4650
|
-
|
4651
|
-
|
4652
|
-
|
4653
|
-
|
4654
|
-
|
4655
|
-
|
4656
|
-
var
|
4657
|
-
|
4658
|
-
|
4659
|
-
|
4660
|
-
|
4661
|
-
|
4662
|
-
|
4663
|
-
|
4664
|
-
|
4665
|
-
* Class Definition
|
4666
|
-
* ------------------------------------------------------------------------
|
4667
|
-
*/
|
4668
|
-
|
4669
|
-
};
|
4702
|
+
var EVENT_HIDE$2 = "hide" + EVENT_KEY$5;
|
4703
|
+
var EVENT_HIDE_PREVENTED = "hidePrevented" + EVENT_KEY$5;
|
4704
|
+
var EVENT_HIDDEN$2 = "hidden" + EVENT_KEY$5;
|
4705
|
+
var EVENT_SHOW$2 = "show" + EVENT_KEY$5;
|
4706
|
+
var EVENT_SHOWN$2 = "shown" + EVENT_KEY$5;
|
4707
|
+
var EVENT_FOCUSIN = "focusin" + EVENT_KEY$5;
|
4708
|
+
var EVENT_RESIZE = "resize" + EVENT_KEY$5;
|
4709
|
+
var EVENT_CLICK_DISMISS = "click.dismiss" + EVENT_KEY$5;
|
4710
|
+
var EVENT_KEYDOWN_DISMISS = "keydown.dismiss" + EVENT_KEY$5;
|
4711
|
+
var EVENT_MOUSEUP_DISMISS = "mouseup.dismiss" + EVENT_KEY$5;
|
4712
|
+
var EVENT_MOUSEDOWN_DISMISS = "mousedown.dismiss" + EVENT_KEY$5;
|
4713
|
+
var EVENT_CLICK_DATA_API$5 = "click" + EVENT_KEY$5 + DATA_API_KEY$5;
|
4714
|
+
var CLASS_NAME_SCROLLABLE = 'modal-dialog-scrollable';
|
4715
|
+
var CLASS_NAME_SCROLLBAR_MEASURER = 'modal-scrollbar-measure';
|
4716
|
+
var CLASS_NAME_BACKDROP = 'modal-backdrop';
|
4717
|
+
var CLASS_NAME_OPEN = 'modal-open';
|
4718
|
+
var CLASS_NAME_FADE$1 = 'fade';
|
4719
|
+
var CLASS_NAME_SHOW$3 = 'show';
|
4720
|
+
var CLASS_NAME_STATIC = 'modal-static';
|
4721
|
+
var SELECTOR_DIALOG = '.modal-dialog';
|
4722
|
+
var SELECTOR_MODAL_BODY = '.modal-body';
|
4723
|
+
var SELECTOR_DATA_TOGGLE$3 = '[data-toggle="modal"]';
|
4724
|
+
var SELECTOR_DATA_DISMISS = '[data-dismiss="modal"]';
|
4725
|
+
var SELECTOR_FIXED_CONTENT = '.fixed-top, .fixed-bottom, .is-fixed, .sticky-top';
|
4726
|
+
var SELECTOR_STICKY_CONTENT = '.sticky-top';
|
4727
|
+
/**
|
4728
|
+
* ------------------------------------------------------------------------
|
4729
|
+
* Class Definition
|
4730
|
+
* ------------------------------------------------------------------------
|
4731
|
+
*/
|
4670
4732
|
|
4671
|
-
var Modal =
|
4672
|
-
/*#__PURE__*/
|
4673
|
-
function () {
|
4733
|
+
var Modal = /*#__PURE__*/function () {
|
4674
4734
|
function Modal(element, config) {
|
4675
4735
|
this._config = this._getConfig(config);
|
4676
4736
|
this._element = element;
|
4677
|
-
this._dialog = element.querySelector(
|
4737
|
+
this._dialog = element.querySelector(SELECTOR_DIALOG);
|
4678
4738
|
this._backdrop = null;
|
4679
4739
|
this._isShown = false;
|
4680
4740
|
this._isBodyOverflowing = false;
|
@@ -4698,11 +4758,11 @@
|
|
4698
4758
|
return;
|
4699
4759
|
}
|
4700
4760
|
|
4701
|
-
if ($(this._element).hasClass(
|
4761
|
+
if ($(this._element).hasClass(CLASS_NAME_FADE$1)) {
|
4702
4762
|
this._isTransitioning = true;
|
4703
4763
|
}
|
4704
4764
|
|
4705
|
-
var showEvent = $.Event(
|
4765
|
+
var showEvent = $.Event(EVENT_SHOW$2, {
|
4706
4766
|
relatedTarget: relatedTarget
|
4707
4767
|
});
|
4708
4768
|
$(this._element).trigger(showEvent);
|
@@ -4723,11 +4783,11 @@
|
|
4723
4783
|
|
4724
4784
|
this._setResizeEvent();
|
4725
4785
|
|
4726
|
-
$(this._element).on(
|
4786
|
+
$(this._element).on(EVENT_CLICK_DISMISS, SELECTOR_DATA_DISMISS, function (event) {
|
4727
4787
|
return _this.hide(event);
|
4728
4788
|
});
|
4729
|
-
$(this._dialog).on(
|
4730
|
-
$(_this._element).one(
|
4789
|
+
$(this._dialog).on(EVENT_MOUSEDOWN_DISMISS, function () {
|
4790
|
+
$(_this._element).one(EVENT_MOUSEUP_DISMISS, function (event) {
|
4731
4791
|
if ($(event.target).is(_this._element)) {
|
4732
4792
|
_this._ignoreBackdropClick = true;
|
4733
4793
|
}
|
@@ -4750,7 +4810,7 @@
|
|
4750
4810
|
return;
|
4751
4811
|
}
|
4752
4812
|
|
4753
|
-
var hideEvent = $.Event(
|
4813
|
+
var hideEvent = $.Event(EVENT_HIDE$2);
|
4754
4814
|
$(this._element).trigger(hideEvent);
|
4755
4815
|
|
4756
4816
|
if (!this._isShown || hideEvent.isDefaultPrevented()) {
|
@@ -4758,7 +4818,7 @@
|
|
4758
4818
|
}
|
4759
4819
|
|
4760
4820
|
this._isShown = false;
|
4761
|
-
var transition = $(this._element).hasClass(
|
4821
|
+
var transition = $(this._element).hasClass(CLASS_NAME_FADE$1);
|
4762
4822
|
|
4763
4823
|
if (transition) {
|
4764
4824
|
this._isTransitioning = true;
|
@@ -4768,10 +4828,10 @@
|
|
4768
4828
|
|
4769
4829
|
this._setResizeEvent();
|
4770
4830
|
|
4771
|
-
$(document).off(
|
4772
|
-
$(this._element).removeClass(
|
4773
|
-
$(this._element).off(
|
4774
|
-
$(this._dialog).off(
|
4831
|
+
$(document).off(EVENT_FOCUSIN);
|
4832
|
+
$(this._element).removeClass(CLASS_NAME_SHOW$3);
|
4833
|
+
$(this._element).off(EVENT_CLICK_DISMISS);
|
4834
|
+
$(this._dialog).off(EVENT_MOUSEDOWN_DISMISS);
|
4775
4835
|
|
4776
4836
|
if (transition) {
|
4777
4837
|
var transitionDuration = Util.getTransitionDurationFromElement(this._element);
|
@@ -4788,12 +4848,12 @@
|
|
4788
4848
|
return $(htmlElement).off(EVENT_KEY$5);
|
4789
4849
|
});
|
4790
4850
|
/**
|
4791
|
-
* `document` has 2 events `
|
4851
|
+
* `document` has 2 events `EVENT_FOCUSIN` and `EVENT_CLICK_DATA_API`
|
4792
4852
|
* Do not move `document` in `htmlElements` array
|
4793
|
-
* It will remove `
|
4853
|
+
* It will remove `EVENT_CLICK_DATA_API` event that should remain
|
4794
4854
|
*/
|
4795
4855
|
|
4796
|
-
$(document).off(
|
4856
|
+
$(document).off(EVENT_FOCUSIN);
|
4797
4857
|
$.removeData(this._element, DATA_KEY$5);
|
4798
4858
|
this._config = null;
|
4799
4859
|
this._element = null;
|
@@ -4812,15 +4872,40 @@
|
|
4812
4872
|
;
|
4813
4873
|
|
4814
4874
|
_proto._getConfig = function _getConfig(config) {
|
4815
|
-
config =
|
4875
|
+
config = _objectSpread2(_objectSpread2({}, Default$3), config);
|
4816
4876
|
Util.typeCheckConfig(NAME$5, config, DefaultType$3);
|
4817
4877
|
return config;
|
4818
4878
|
};
|
4819
4879
|
|
4820
|
-
_proto.
|
4880
|
+
_proto._triggerBackdropTransition = function _triggerBackdropTransition() {
|
4821
4881
|
var _this3 = this;
|
4822
4882
|
|
4823
|
-
|
4883
|
+
if (this._config.backdrop === 'static') {
|
4884
|
+
var hideEventPrevented = $.Event(EVENT_HIDE_PREVENTED);
|
4885
|
+
$(this._element).trigger(hideEventPrevented);
|
4886
|
+
|
4887
|
+
if (hideEventPrevented.defaultPrevented) {
|
4888
|
+
return;
|
4889
|
+
}
|
4890
|
+
|
4891
|
+
this._element.classList.add(CLASS_NAME_STATIC);
|
4892
|
+
|
4893
|
+
var modalTransitionDuration = Util.getTransitionDurationFromElement(this._element);
|
4894
|
+
$(this._element).one(Util.TRANSITION_END, function () {
|
4895
|
+
_this3._element.classList.remove(CLASS_NAME_STATIC);
|
4896
|
+
}).emulateTransitionEnd(modalTransitionDuration);
|
4897
|
+
|
4898
|
+
this._element.focus();
|
4899
|
+
} else {
|
4900
|
+
this.hide();
|
4901
|
+
}
|
4902
|
+
};
|
4903
|
+
|
4904
|
+
_proto._showElement = function _showElement(relatedTarget) {
|
4905
|
+
var _this4 = this;
|
4906
|
+
|
4907
|
+
var transition = $(this._element).hasClass(CLASS_NAME_FADE$1);
|
4908
|
+
var modalBody = this._dialog ? this._dialog.querySelector(SELECTOR_MODAL_BODY) : null;
|
4824
4909
|
|
4825
4910
|
if (!this._element.parentNode || this._element.parentNode.nodeType !== Node.ELEMENT_NODE) {
|
4826
4911
|
// Don't move modal's DOM position
|
@@ -4833,8 +4918,8 @@
|
|
4833
4918
|
|
4834
4919
|
this._element.setAttribute('aria-modal', true);
|
4835
4920
|
|
4836
|
-
if ($(this._dialog).hasClass(
|
4837
|
-
|
4921
|
+
if ($(this._dialog).hasClass(CLASS_NAME_SCROLLABLE) && modalBody) {
|
4922
|
+
modalBody.scrollTop = 0;
|
4838
4923
|
} else {
|
4839
4924
|
this._element.scrollTop = 0;
|
4840
4925
|
}
|
@@ -4843,23 +4928,23 @@
|
|
4843
4928
|
Util.reflow(this._element);
|
4844
4929
|
}
|
4845
4930
|
|
4846
|
-
$(this._element).addClass(
|
4931
|
+
$(this._element).addClass(CLASS_NAME_SHOW$3);
|
4847
4932
|
|
4848
4933
|
if (this._config.focus) {
|
4849
4934
|
this._enforceFocus();
|
4850
4935
|
}
|
4851
4936
|
|
4852
|
-
var shownEvent = $.Event(
|
4937
|
+
var shownEvent = $.Event(EVENT_SHOWN$2, {
|
4853
4938
|
relatedTarget: relatedTarget
|
4854
4939
|
});
|
4855
4940
|
|
4856
4941
|
var transitionComplete = function transitionComplete() {
|
4857
|
-
if (
|
4858
|
-
|
4942
|
+
if (_this4._config.focus) {
|
4943
|
+
_this4._element.focus();
|
4859
4944
|
}
|
4860
4945
|
|
4861
|
-
|
4862
|
-
$(
|
4946
|
+
_this4._isTransitioning = false;
|
4947
|
+
$(_this4._element).trigger(shownEvent);
|
4863
4948
|
};
|
4864
4949
|
|
4865
4950
|
if (transition) {
|
@@ -4871,46 +4956,48 @@
|
|
4871
4956
|
};
|
4872
4957
|
|
4873
4958
|
_proto._enforceFocus = function _enforceFocus() {
|
4874
|
-
var
|
4959
|
+
var _this5 = this;
|
4875
4960
|
|
4876
|
-
$(document).off(
|
4877
|
-
.on(
|
4878
|
-
if (document !== event.target &&
|
4879
|
-
|
4961
|
+
$(document).off(EVENT_FOCUSIN) // Guard against infinite focus loop
|
4962
|
+
.on(EVENT_FOCUSIN, function (event) {
|
4963
|
+
if (document !== event.target && _this5._element !== event.target && $(_this5._element).has(event.target).length === 0) {
|
4964
|
+
_this5._element.focus();
|
4880
4965
|
}
|
4881
4966
|
});
|
4882
4967
|
};
|
4883
4968
|
|
4884
4969
|
_proto._setEscapeEvent = function _setEscapeEvent() {
|
4885
|
-
var
|
4970
|
+
var _this6 = this;
|
4886
4971
|
|
4887
|
-
if (this._isShown
|
4888
|
-
$(this._element).on(
|
4889
|
-
if (event.which === ESCAPE_KEYCODE$1) {
|
4972
|
+
if (this._isShown) {
|
4973
|
+
$(this._element).on(EVENT_KEYDOWN_DISMISS, function (event) {
|
4974
|
+
if (_this6._config.keyboard && event.which === ESCAPE_KEYCODE$1) {
|
4890
4975
|
event.preventDefault();
|
4891
4976
|
|
4892
|
-
|
4977
|
+
_this6.hide();
|
4978
|
+
} else if (!_this6._config.keyboard && event.which === ESCAPE_KEYCODE$1) {
|
4979
|
+
_this6._triggerBackdropTransition();
|
4893
4980
|
}
|
4894
4981
|
});
|
4895
4982
|
} else if (!this._isShown) {
|
4896
|
-
$(this._element).off(
|
4983
|
+
$(this._element).off(EVENT_KEYDOWN_DISMISS);
|
4897
4984
|
}
|
4898
4985
|
};
|
4899
4986
|
|
4900
4987
|
_proto._setResizeEvent = function _setResizeEvent() {
|
4901
|
-
var
|
4988
|
+
var _this7 = this;
|
4902
4989
|
|
4903
4990
|
if (this._isShown) {
|
4904
|
-
$(window).on(
|
4905
|
-
return
|
4991
|
+
$(window).on(EVENT_RESIZE, function (event) {
|
4992
|
+
return _this7.handleUpdate(event);
|
4906
4993
|
});
|
4907
4994
|
} else {
|
4908
|
-
$(window).off(
|
4995
|
+
$(window).off(EVENT_RESIZE);
|
4909
4996
|
}
|
4910
4997
|
};
|
4911
4998
|
|
4912
4999
|
_proto._hideModal = function _hideModal() {
|
4913
|
-
var
|
5000
|
+
var _this8 = this;
|
4914
5001
|
|
4915
5002
|
this._element.style.display = 'none';
|
4916
5003
|
|
@@ -4921,13 +5008,13 @@
|
|
4921
5008
|
this._isTransitioning = false;
|
4922
5009
|
|
4923
5010
|
this._showBackdrop(function () {
|
4924
|
-
$(document.body).removeClass(
|
5011
|
+
$(document.body).removeClass(CLASS_NAME_OPEN);
|
4925
5012
|
|
4926
|
-
|
5013
|
+
_this8._resetAdjustments();
|
4927
5014
|
|
4928
|
-
|
5015
|
+
_this8._resetScrollbar();
|
4929
5016
|
|
4930
|
-
$(
|
5017
|
+
$(_this8._element).trigger(EVENT_HIDDEN$2);
|
4931
5018
|
});
|
4932
5019
|
};
|
4933
5020
|
|
@@ -4939,22 +5026,22 @@
|
|
4939
5026
|
};
|
4940
5027
|
|
4941
5028
|
_proto._showBackdrop = function _showBackdrop(callback) {
|
4942
|
-
var
|
5029
|
+
var _this9 = this;
|
4943
5030
|
|
4944
|
-
var animate = $(this._element).hasClass(
|
5031
|
+
var animate = $(this._element).hasClass(CLASS_NAME_FADE$1) ? CLASS_NAME_FADE$1 : '';
|
4945
5032
|
|
4946
5033
|
if (this._isShown && this._config.backdrop) {
|
4947
5034
|
this._backdrop = document.createElement('div');
|
4948
|
-
this._backdrop.className =
|
5035
|
+
this._backdrop.className = CLASS_NAME_BACKDROP;
|
4949
5036
|
|
4950
5037
|
if (animate) {
|
4951
5038
|
this._backdrop.classList.add(animate);
|
4952
5039
|
}
|
4953
5040
|
|
4954
5041
|
$(this._backdrop).appendTo(document.body);
|
4955
|
-
$(this._element).on(
|
4956
|
-
if (
|
4957
|
-
|
5042
|
+
$(this._element).on(EVENT_CLICK_DISMISS, function (event) {
|
5043
|
+
if (_this9._ignoreBackdropClick) {
|
5044
|
+
_this9._ignoreBackdropClick = false;
|
4958
5045
|
return;
|
4959
5046
|
}
|
4960
5047
|
|
@@ -4962,18 +5049,14 @@
|
|
4962
5049
|
return;
|
4963
5050
|
}
|
4964
5051
|
|
4965
|
-
|
4966
|
-
_this8._element.focus();
|
4967
|
-
} else {
|
4968
|
-
_this8.hide();
|
4969
|
-
}
|
5052
|
+
_this9._triggerBackdropTransition();
|
4970
5053
|
});
|
4971
5054
|
|
4972
5055
|
if (animate) {
|
4973
5056
|
Util.reflow(this._backdrop);
|
4974
5057
|
}
|
4975
5058
|
|
4976
|
-
$(this._backdrop).addClass(
|
5059
|
+
$(this._backdrop).addClass(CLASS_NAME_SHOW$3);
|
4977
5060
|
|
4978
5061
|
if (!callback) {
|
4979
5062
|
return;
|
@@ -4987,17 +5070,17 @@
|
|
4987
5070
|
var backdropTransitionDuration = Util.getTransitionDurationFromElement(this._backdrop);
|
4988
5071
|
$(this._backdrop).one(Util.TRANSITION_END, callback).emulateTransitionEnd(backdropTransitionDuration);
|
4989
5072
|
} else if (!this._isShown && this._backdrop) {
|
4990
|
-
$(this._backdrop).removeClass(
|
5073
|
+
$(this._backdrop).removeClass(CLASS_NAME_SHOW$3);
|
4991
5074
|
|
4992
5075
|
var callbackRemove = function callbackRemove() {
|
4993
|
-
|
5076
|
+
_this9._removeBackdrop();
|
4994
5077
|
|
4995
5078
|
if (callback) {
|
4996
5079
|
callback();
|
4997
5080
|
}
|
4998
5081
|
};
|
4999
5082
|
|
5000
|
-
if ($(this._element).hasClass(
|
5083
|
+
if ($(this._element).hasClass(CLASS_NAME_FADE$1)) {
|
5001
5084
|
var _backdropTransitionDuration = Util.getTransitionDurationFromElement(this._backdrop);
|
5002
5085
|
|
5003
5086
|
$(this._backdrop).one(Util.TRANSITION_END, callbackRemove).emulateTransitionEnd(_backdropTransitionDuration);
|
@@ -5032,29 +5115,29 @@
|
|
5032
5115
|
|
5033
5116
|
_proto._checkScrollbar = function _checkScrollbar() {
|
5034
5117
|
var rect = document.body.getBoundingClientRect();
|
5035
|
-
this._isBodyOverflowing = rect.left + rect.right < window.innerWidth;
|
5118
|
+
this._isBodyOverflowing = Math.round(rect.left + rect.right) < window.innerWidth;
|
5036
5119
|
this._scrollbarWidth = this._getScrollbarWidth();
|
5037
5120
|
};
|
5038
5121
|
|
5039
5122
|
_proto._setScrollbar = function _setScrollbar() {
|
5040
|
-
var
|
5123
|
+
var _this10 = this;
|
5041
5124
|
|
5042
5125
|
if (this._isBodyOverflowing) {
|
5043
5126
|
// Note: DOMNode.style.paddingRight returns the actual value or '' if not set
|
5044
5127
|
// while $(DOMNode).css('padding-right') returns the calculated value or 0 if not set
|
5045
|
-
var fixedContent = [].slice.call(document.querySelectorAll(
|
5046
|
-
var stickyContent = [].slice.call(document.querySelectorAll(
|
5128
|
+
var fixedContent = [].slice.call(document.querySelectorAll(SELECTOR_FIXED_CONTENT));
|
5129
|
+
var stickyContent = [].slice.call(document.querySelectorAll(SELECTOR_STICKY_CONTENT)); // Adjust fixed content padding
|
5047
5130
|
|
5048
5131
|
$(fixedContent).each(function (index, element) {
|
5049
5132
|
var actualPadding = element.style.paddingRight;
|
5050
5133
|
var calculatedPadding = $(element).css('padding-right');
|
5051
|
-
$(element).data('padding-right', actualPadding).css('padding-right', parseFloat(calculatedPadding) +
|
5134
|
+
$(element).data('padding-right', actualPadding).css('padding-right', parseFloat(calculatedPadding) + _this10._scrollbarWidth + "px");
|
5052
5135
|
}); // Adjust sticky content margin
|
5053
5136
|
|
5054
5137
|
$(stickyContent).each(function (index, element) {
|
5055
5138
|
var actualMargin = element.style.marginRight;
|
5056
5139
|
var calculatedMargin = $(element).css('margin-right');
|
5057
|
-
$(element).data('margin-right', actualMargin).css('margin-right', parseFloat(calculatedMargin) -
|
5140
|
+
$(element).data('margin-right', actualMargin).css('margin-right', parseFloat(calculatedMargin) - _this10._scrollbarWidth + "px");
|
5058
5141
|
}); // Adjust body padding
|
5059
5142
|
|
5060
5143
|
var actualPadding = document.body.style.paddingRight;
|
@@ -5062,19 +5145,19 @@
|
|
5062
5145
|
$(document.body).data('padding-right', actualPadding).css('padding-right', parseFloat(calculatedPadding) + this._scrollbarWidth + "px");
|
5063
5146
|
}
|
5064
5147
|
|
5065
|
-
$(document.body).addClass(
|
5148
|
+
$(document.body).addClass(CLASS_NAME_OPEN);
|
5066
5149
|
};
|
5067
5150
|
|
5068
5151
|
_proto._resetScrollbar = function _resetScrollbar() {
|
5069
5152
|
// Restore fixed content padding
|
5070
|
-
var fixedContent = [].slice.call(document.querySelectorAll(
|
5153
|
+
var fixedContent = [].slice.call(document.querySelectorAll(SELECTOR_FIXED_CONTENT));
|
5071
5154
|
$(fixedContent).each(function (index, element) {
|
5072
5155
|
var padding = $(element).data('padding-right');
|
5073
5156
|
$(element).removeData('padding-right');
|
5074
5157
|
element.style.paddingRight = padding ? padding : '';
|
5075
5158
|
}); // Restore sticky content
|
5076
5159
|
|
5077
|
-
var elements = [].slice.call(document.querySelectorAll("" +
|
5160
|
+
var elements = [].slice.call(document.querySelectorAll("" + SELECTOR_STICKY_CONTENT));
|
5078
5161
|
$(elements).each(function (index, element) {
|
5079
5162
|
var margin = $(element).data('margin-right');
|
5080
5163
|
|
@@ -5091,7 +5174,7 @@
|
|
5091
5174
|
_proto._getScrollbarWidth = function _getScrollbarWidth() {
|
5092
5175
|
// thx d.walsh
|
5093
5176
|
var scrollDiv = document.createElement('div');
|
5094
|
-
scrollDiv.className =
|
5177
|
+
scrollDiv.className = CLASS_NAME_SCROLLBAR_MEASURER;
|
5095
5178
|
document.body.appendChild(scrollDiv);
|
5096
5179
|
var scrollbarWidth = scrollDiv.getBoundingClientRect().width - scrollDiv.clientWidth;
|
5097
5180
|
document.body.removeChild(scrollDiv);
|
@@ -5103,7 +5186,7 @@
|
|
5103
5186
|
return this.each(function () {
|
5104
5187
|
var data = $(this).data(DATA_KEY$5);
|
5105
5188
|
|
5106
|
-
var _config =
|
5189
|
+
var _config = _objectSpread2(_objectSpread2(_objectSpread2({}, Default$3), $(this).data()), typeof config === 'object' && config ? config : {});
|
5107
5190
|
|
5108
5191
|
if (!data) {
|
5109
5192
|
data = new Modal(this, _config);
|
@@ -5143,8 +5226,8 @@
|
|
5143
5226
|
*/
|
5144
5227
|
|
5145
5228
|
|
5146
|
-
$(document).on(
|
5147
|
-
var
|
5229
|
+
$(document).on(EVENT_CLICK_DATA_API$5, SELECTOR_DATA_TOGGLE$3, function (event) {
|
5230
|
+
var _this11 = this;
|
5148
5231
|
|
5149
5232
|
var target;
|
5150
5233
|
var selector = Util.getSelectorFromElement(this);
|
@@ -5153,21 +5236,21 @@
|
|
5153
5236
|
target = document.querySelector(selector);
|
5154
5237
|
}
|
5155
5238
|
|
5156
|
-
var config = $(target).data(DATA_KEY$5) ? 'toggle' :
|
5239
|
+
var config = $(target).data(DATA_KEY$5) ? 'toggle' : _objectSpread2(_objectSpread2({}, $(target).data()), $(this).data());
|
5157
5240
|
|
5158
5241
|
if (this.tagName === 'A' || this.tagName === 'AREA') {
|
5159
5242
|
event.preventDefault();
|
5160
5243
|
}
|
5161
5244
|
|
5162
|
-
var $target = $(target).one(
|
5245
|
+
var $target = $(target).one(EVENT_SHOW$2, function (showEvent) {
|
5163
5246
|
if (showEvent.isDefaultPrevented()) {
|
5164
5247
|
// Only register focus restorer if modal will actually get shown
|
5165
5248
|
return;
|
5166
5249
|
}
|
5167
5250
|
|
5168
|
-
$target.one(
|
5169
|
-
if ($(
|
5170
|
-
|
5251
|
+
$target.one(EVENT_HIDDEN$2, function () {
|
5252
|
+
if ($(_this11).is(':visible')) {
|
5253
|
+
_this11.focus();
|
5171
5254
|
}
|
5172
5255
|
});
|
5173
5256
|
});
|
@@ -5190,7 +5273,7 @@
|
|
5190
5273
|
|
5191
5274
|
/**
|
5192
5275
|
* --------------------------------------------------------------------------
|
5193
|
-
* Bootstrap (v4.
|
5276
|
+
* Bootstrap (v4.5.0): tools/sanitizer.js
|
5194
5277
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
|
5195
5278
|
* --------------------------------------------------------------------------
|
5196
5279
|
*/
|
@@ -5215,7 +5298,7 @@
|
|
5215
5298
|
h5: [],
|
5216
5299
|
h6: [],
|
5217
5300
|
i: [],
|
5218
|
-
img: ['src', 'alt', 'title', 'width', 'height'],
|
5301
|
+
img: ['src', 'srcset', 'alt', 'title', 'width', 'height'],
|
5219
5302
|
li: [],
|
5220
5303
|
ol: [],
|
5221
5304
|
p: [],
|
@@ -5228,21 +5311,21 @@
|
|
5228
5311
|
strong: [],
|
5229
5312
|
u: [],
|
5230
5313
|
ul: []
|
5231
|
-
/**
|
5232
|
-
* A pattern that recognizes a commonly useful subset of URLs that are safe.
|
5233
|
-
*
|
5234
|
-
* Shoutout to Angular 7 https://github.com/angular/angular/blob/7.2.4/packages/core/src/sanitization/url_sanitizer.ts
|
5235
|
-
*/
|
5236
|
-
|
5237
5314
|
};
|
5238
|
-
|
5315
|
+
/**
|
5316
|
+
* A pattern that recognizes a commonly useful subset of URLs that are safe.
|
5317
|
+
*
|
5318
|
+
* Shoutout to Angular 7 https://github.com/angular/angular/blob/7.2.4/packages/core/src/sanitization/url_sanitizer.ts
|
5319
|
+
*/
|
5320
|
+
|
5321
|
+
var SAFE_URL_PATTERN = /^(?:(?:https?|mailto|ftp|tel|file):|[^#&/:?]*(?:[#/?]|$))/gi;
|
5239
5322
|
/**
|
5240
5323
|
* A pattern that matches safe data URLs. Only matches image, video and audio types.
|
5241
5324
|
*
|
5242
5325
|
* Shoutout to Angular 7 https://github.com/angular/angular/blob/7.2.4/packages/core/src/sanitization/url_sanitizer.ts
|
5243
5326
|
*/
|
5244
5327
|
|
5245
|
-
var DATA_URL_PATTERN = /^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[a-
|
5328
|
+
var DATA_URL_PATTERN = /^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[\d+/a-z]+=*$/i;
|
5246
5329
|
|
5247
5330
|
function allowedAttribute(attr, allowedAttributeList) {
|
5248
5331
|
var attrName = attr.nodeName.toLowerCase();
|
@@ -5259,7 +5342,7 @@
|
|
5259
5342
|
return attrRegex instanceof RegExp;
|
5260
5343
|
}); // Check if a regular expression validates the attribute.
|
5261
5344
|
|
5262
|
-
for (var i = 0,
|
5345
|
+
for (var i = 0, len = regExp.length; i < len; i++) {
|
5263
5346
|
if (attrName.match(regExp[i])) {
|
5264
5347
|
return true;
|
5265
5348
|
}
|
@@ -5301,7 +5384,7 @@
|
|
5301
5384
|
};
|
5302
5385
|
|
5303
5386
|
for (var i = 0, len = elements.length; i < len; i++) {
|
5304
|
-
var _ret = _loop(i
|
5387
|
+
var _ret = _loop(i);
|
5305
5388
|
|
5306
5389
|
if (_ret === "continue") continue;
|
5307
5390
|
}
|
@@ -5316,7 +5399,7 @@
|
|
5316
5399
|
*/
|
5317
5400
|
|
5318
5401
|
var NAME$6 = 'tooltip';
|
5319
|
-
var VERSION$6 = '4.
|
5402
|
+
var VERSION$6 = '4.5.0';
|
5320
5403
|
var DATA_KEY$6 = 'bs.tooltip';
|
5321
5404
|
var EVENT_KEY$6 = "." + DATA_KEY$6;
|
5322
5405
|
var JQUERY_NO_CONFLICT$6 = $.fn[NAME$6];
|
@@ -5338,9 +5421,10 @@
|
|
5338
5421
|
boundary: '(string|element)',
|
5339
5422
|
sanitize: 'boolean',
|
5340
5423
|
sanitizeFn: '(null|function)',
|
5341
|
-
whiteList: 'object'
|
5424
|
+
whiteList: 'object',
|
5425
|
+
popperConfig: '(null|object)'
|
5342
5426
|
};
|
5343
|
-
var AttachmentMap
|
5427
|
+
var AttachmentMap = {
|
5344
5428
|
AUTO: 'auto',
|
5345
5429
|
TOP: 'top',
|
5346
5430
|
RIGHT: 'right',
|
@@ -5362,13 +5446,12 @@
|
|
5362
5446
|
boundary: 'scrollParent',
|
5363
5447
|
sanitize: true,
|
5364
5448
|
sanitizeFn: null,
|
5365
|
-
whiteList: DefaultWhitelist
|
5449
|
+
whiteList: DefaultWhitelist,
|
5450
|
+
popperConfig: null
|
5366
5451
|
};
|
5367
|
-
var
|
5368
|
-
|
5369
|
-
|
5370
|
-
};
|
5371
|
-
var Event$6 = {
|
5452
|
+
var HOVER_STATE_SHOW = 'show';
|
5453
|
+
var HOVER_STATE_OUT = 'out';
|
5454
|
+
var Event = {
|
5372
5455
|
HIDE: "hide" + EVENT_KEY$6,
|
5373
5456
|
HIDDEN: "hidden" + EVENT_KEY$6,
|
5374
5457
|
SHOW: "show" + EVENT_KEY$6,
|
@@ -5380,36 +5463,22 @@
|
|
5380
5463
|
MOUSEENTER: "mouseenter" + EVENT_KEY$6,
|
5381
5464
|
MOUSELEAVE: "mouseleave" + EVENT_KEY$6
|
5382
5465
|
};
|
5383
|
-
var
|
5384
|
-
|
5385
|
-
|
5386
|
-
|
5387
|
-
var
|
5388
|
-
|
5389
|
-
|
5390
|
-
|
5391
|
-
|
5392
|
-
|
5393
|
-
|
5394
|
-
|
5395
|
-
|
5396
|
-
MANUAL: 'manual'
|
5397
|
-
/**
|
5398
|
-
* ------------------------------------------------------------------------
|
5399
|
-
* Class Definition
|
5400
|
-
* ------------------------------------------------------------------------
|
5401
|
-
*/
|
5402
|
-
|
5403
|
-
};
|
5466
|
+
var CLASS_NAME_FADE$2 = 'fade';
|
5467
|
+
var CLASS_NAME_SHOW$4 = 'show';
|
5468
|
+
var SELECTOR_TOOLTIP_INNER = '.tooltip-inner';
|
5469
|
+
var SELECTOR_ARROW = '.arrow';
|
5470
|
+
var TRIGGER_HOVER = 'hover';
|
5471
|
+
var TRIGGER_FOCUS = 'focus';
|
5472
|
+
var TRIGGER_CLICK = 'click';
|
5473
|
+
var TRIGGER_MANUAL = 'manual';
|
5474
|
+
/**
|
5475
|
+
* ------------------------------------------------------------------------
|
5476
|
+
* Class Definition
|
5477
|
+
* ------------------------------------------------------------------------
|
5478
|
+
*/
|
5404
5479
|
|
5405
|
-
var Tooltip =
|
5406
|
-
/*#__PURE__*/
|
5407
|
-
function () {
|
5480
|
+
var Tooltip = /*#__PURE__*/function () {
|
5408
5481
|
function Tooltip(element, config) {
|
5409
|
-
/**
|
5410
|
-
* Check for Popper dependency
|
5411
|
-
* Popper - https://popper.js.org
|
5412
|
-
*/
|
5413
5482
|
if (typeof Popper === 'undefined') {
|
5414
5483
|
throw new TypeError('Bootstrap\'s tooltips require Popper.js (https://popper.js.org/)');
|
5415
5484
|
} // private
|
@@ -5466,7 +5535,7 @@
|
|
5466
5535
|
context._leave(null, context);
|
5467
5536
|
}
|
5468
5537
|
} else {
|
5469
|
-
if ($(this.getTipElement()).hasClass(
|
5538
|
+
if ($(this.getTipElement()).hasClass(CLASS_NAME_SHOW$4)) {
|
5470
5539
|
this._leave(null, this);
|
5471
5540
|
|
5472
5541
|
return;
|
@@ -5480,7 +5549,7 @@
|
|
5480
5549
|
clearTimeout(this._timeout);
|
5481
5550
|
$.removeData(this.element, this.constructor.DATA_KEY);
|
5482
5551
|
$(this.element).off(this.constructor.EVENT_KEY);
|
5483
|
-
$(this.element).closest('.modal').off('hide.bs.modal');
|
5552
|
+
$(this.element).closest('.modal').off('hide.bs.modal', this._hideModalHandler);
|
5484
5553
|
|
5485
5554
|
if (this.tip) {
|
5486
5555
|
$(this.tip).remove();
|
@@ -5491,7 +5560,7 @@
|
|
5491
5560
|
this._hoverState = null;
|
5492
5561
|
this._activeTrigger = null;
|
5493
5562
|
|
5494
|
-
if (this._popper
|
5563
|
+
if (this._popper) {
|
5495
5564
|
this._popper.destroy();
|
5496
5565
|
}
|
5497
5566
|
|
@@ -5526,7 +5595,7 @@
|
|
5526
5595
|
this.setContent();
|
5527
5596
|
|
5528
5597
|
if (this.config.animation) {
|
5529
|
-
$(tip).addClass(
|
5598
|
+
$(tip).addClass(CLASS_NAME_FADE$2);
|
5530
5599
|
}
|
5531
5600
|
|
5532
5601
|
var placement = typeof this.config.placement === 'function' ? this.config.placement.call(this, tip, this.element) : this.config.placement;
|
@@ -5544,30 +5613,8 @@
|
|
5544
5613
|
}
|
5545
5614
|
|
5546
5615
|
$(this.element).trigger(this.constructor.Event.INSERTED);
|
5547
|
-
this._popper = new Popper(this.element, tip,
|
5548
|
-
|
5549
|
-
modifiers: {
|
5550
|
-
offset: this._getOffset(),
|
5551
|
-
flip: {
|
5552
|
-
behavior: this.config.fallbackPlacement
|
5553
|
-
},
|
5554
|
-
arrow: {
|
5555
|
-
element: Selector$6.ARROW
|
5556
|
-
},
|
5557
|
-
preventOverflow: {
|
5558
|
-
boundariesElement: this.config.boundary
|
5559
|
-
}
|
5560
|
-
},
|
5561
|
-
onCreate: function onCreate(data) {
|
5562
|
-
if (data.originalPlacement !== data.placement) {
|
5563
|
-
_this._handlePopperPlacementChange(data);
|
5564
|
-
}
|
5565
|
-
},
|
5566
|
-
onUpdate: function onUpdate(data) {
|
5567
|
-
return _this._handlePopperPlacementChange(data);
|
5568
|
-
}
|
5569
|
-
});
|
5570
|
-
$(tip).addClass(ClassName$6.SHOW); // If this is a touch-enabled device we add extra
|
5616
|
+
this._popper = new Popper(this.element, tip, this._getPopperConfig(attachment));
|
5617
|
+
$(tip).addClass(CLASS_NAME_SHOW$4); // If this is a touch-enabled device we add extra
|
5571
5618
|
// empty mouseover listeners to the body's immediate children;
|
5572
5619
|
// only needed because of broken event delegation on iOS
|
5573
5620
|
// https://www.quirksmode.org/blog/archives/2014/02/mouse_event_bub.html
|
@@ -5585,12 +5632,12 @@
|
|
5585
5632
|
_this._hoverState = null;
|
5586
5633
|
$(_this.element).trigger(_this.constructor.Event.SHOWN);
|
5587
5634
|
|
5588
|
-
if (prevHoverState ===
|
5635
|
+
if (prevHoverState === HOVER_STATE_OUT) {
|
5589
5636
|
_this._leave(null, _this);
|
5590
5637
|
}
|
5591
5638
|
};
|
5592
5639
|
|
5593
|
-
if ($(this.tip).hasClass(
|
5640
|
+
if ($(this.tip).hasClass(CLASS_NAME_FADE$2)) {
|
5594
5641
|
var transitionDuration = Util.getTransitionDurationFromElement(this.tip);
|
5595
5642
|
$(this.tip).one(Util.TRANSITION_END, complete).emulateTransitionEnd(transitionDuration);
|
5596
5643
|
} else {
|
@@ -5606,7 +5653,7 @@
|
|
5606
5653
|
var hideEvent = $.Event(this.constructor.Event.HIDE);
|
5607
5654
|
|
5608
5655
|
var complete = function complete() {
|
5609
|
-
if (_this2._hoverState !==
|
5656
|
+
if (_this2._hoverState !== HOVER_STATE_SHOW && tip.parentNode) {
|
5610
5657
|
tip.parentNode.removeChild(tip);
|
5611
5658
|
}
|
5612
5659
|
|
@@ -5631,18 +5678,18 @@
|
|
5631
5678
|
return;
|
5632
5679
|
}
|
5633
5680
|
|
5634
|
-
$(tip).removeClass(
|
5681
|
+
$(tip).removeClass(CLASS_NAME_SHOW$4); // If this is a touch-enabled device we remove the extra
|
5635
5682
|
// empty mouseover listeners we added for iOS support
|
5636
5683
|
|
5637
5684
|
if ('ontouchstart' in document.documentElement) {
|
5638
5685
|
$(document.body).children().off('mouseover', null, $.noop);
|
5639
5686
|
}
|
5640
5687
|
|
5641
|
-
this._activeTrigger[
|
5642
|
-
this._activeTrigger[
|
5643
|
-
this._activeTrigger[
|
5688
|
+
this._activeTrigger[TRIGGER_CLICK] = false;
|
5689
|
+
this._activeTrigger[TRIGGER_FOCUS] = false;
|
5690
|
+
this._activeTrigger[TRIGGER_HOVER] = false;
|
5644
5691
|
|
5645
|
-
if ($(this.tip).hasClass(
|
5692
|
+
if ($(this.tip).hasClass(CLASS_NAME_FADE$2)) {
|
5646
5693
|
var transitionDuration = Util.getTransitionDurationFromElement(tip);
|
5647
5694
|
$(tip).one(Util.TRANSITION_END, complete).emulateTransitionEnd(transitionDuration);
|
5648
5695
|
} else {
|
@@ -5674,8 +5721,8 @@
|
|
5674
5721
|
|
5675
5722
|
_proto.setContent = function setContent() {
|
5676
5723
|
var tip = this.getTipElement();
|
5677
|
-
this.setElementContent($(tip.querySelectorAll(
|
5678
|
-
$(tip).removeClass(
|
5724
|
+
this.setElementContent($(tip.querySelectorAll(SELECTOR_TOOLTIP_INNER)), this.getTitle());
|
5725
|
+
$(tip).removeClass(CLASS_NAME_FADE$2 + " " + CLASS_NAME_SHOW$4);
|
5679
5726
|
};
|
5680
5727
|
|
5681
5728
|
_proto.setElementContent = function setElementContent($element, content) {
|
@@ -5714,14 +5761,43 @@
|
|
5714
5761
|
} // Private
|
5715
5762
|
;
|
5716
5763
|
|
5717
|
-
_proto.
|
5764
|
+
_proto._getPopperConfig = function _getPopperConfig(attachment) {
|
5718
5765
|
var _this3 = this;
|
5719
5766
|
|
5767
|
+
var defaultBsConfig = {
|
5768
|
+
placement: attachment,
|
5769
|
+
modifiers: {
|
5770
|
+
offset: this._getOffset(),
|
5771
|
+
flip: {
|
5772
|
+
behavior: this.config.fallbackPlacement
|
5773
|
+
},
|
5774
|
+
arrow: {
|
5775
|
+
element: SELECTOR_ARROW
|
5776
|
+
},
|
5777
|
+
preventOverflow: {
|
5778
|
+
boundariesElement: this.config.boundary
|
5779
|
+
}
|
5780
|
+
},
|
5781
|
+
onCreate: function onCreate(data) {
|
5782
|
+
if (data.originalPlacement !== data.placement) {
|
5783
|
+
_this3._handlePopperPlacementChange(data);
|
5784
|
+
}
|
5785
|
+
},
|
5786
|
+
onUpdate: function onUpdate(data) {
|
5787
|
+
return _this3._handlePopperPlacementChange(data);
|
5788
|
+
}
|
5789
|
+
};
|
5790
|
+
return _objectSpread2(_objectSpread2({}, defaultBsConfig), this.config.popperConfig);
|
5791
|
+
};
|
5792
|
+
|
5793
|
+
_proto._getOffset = function _getOffset() {
|
5794
|
+
var _this4 = this;
|
5795
|
+
|
5720
5796
|
var offset = {};
|
5721
5797
|
|
5722
5798
|
if (typeof this.config.offset === 'function') {
|
5723
5799
|
offset.fn = function (data) {
|
5724
|
-
data.offsets =
|
5800
|
+
data.offsets = _objectSpread2(_objectSpread2({}, data.offsets), _this4.config.offset(data.offsets, _this4.element) || {});
|
5725
5801
|
return data;
|
5726
5802
|
};
|
5727
5803
|
} else {
|
@@ -5744,36 +5820,39 @@
|
|
5744
5820
|
};
|
5745
5821
|
|
5746
5822
|
_proto._getAttachment = function _getAttachment(placement) {
|
5747
|
-
return AttachmentMap
|
5823
|
+
return AttachmentMap[placement.toUpperCase()];
|
5748
5824
|
};
|
5749
5825
|
|
5750
5826
|
_proto._setListeners = function _setListeners() {
|
5751
|
-
var
|
5827
|
+
var _this5 = this;
|
5752
5828
|
|
5753
5829
|
var triggers = this.config.trigger.split(' ');
|
5754
5830
|
triggers.forEach(function (trigger) {
|
5755
5831
|
if (trigger === 'click') {
|
5756
|
-
$(
|
5757
|
-
return
|
5832
|
+
$(_this5.element).on(_this5.constructor.Event.CLICK, _this5.config.selector, function (event) {
|
5833
|
+
return _this5.toggle(event);
|
5758
5834
|
});
|
5759
|
-
} else if (trigger !==
|
5760
|
-
var eventIn = trigger ===
|
5761
|
-
var eventOut = trigger ===
|
5762
|
-
$(
|
5763
|
-
return
|
5764
|
-
}).on(eventOut,
|
5765
|
-
return
|
5835
|
+
} else if (trigger !== TRIGGER_MANUAL) {
|
5836
|
+
var eventIn = trigger === TRIGGER_HOVER ? _this5.constructor.Event.MOUSEENTER : _this5.constructor.Event.FOCUSIN;
|
5837
|
+
var eventOut = trigger === TRIGGER_HOVER ? _this5.constructor.Event.MOUSELEAVE : _this5.constructor.Event.FOCUSOUT;
|
5838
|
+
$(_this5.element).on(eventIn, _this5.config.selector, function (event) {
|
5839
|
+
return _this5._enter(event);
|
5840
|
+
}).on(eventOut, _this5.config.selector, function (event) {
|
5841
|
+
return _this5._leave(event);
|
5766
5842
|
});
|
5767
5843
|
}
|
5768
5844
|
});
|
5769
|
-
|
5770
|
-
|
5771
|
-
|
5845
|
+
|
5846
|
+
this._hideModalHandler = function () {
|
5847
|
+
if (_this5.element) {
|
5848
|
+
_this5.hide();
|
5772
5849
|
}
|
5773
|
-
}
|
5850
|
+
};
|
5851
|
+
|
5852
|
+
$(this.element).closest('.modal').on('hide.bs.modal', this._hideModalHandler);
|
5774
5853
|
|
5775
5854
|
if (this.config.selector) {
|
5776
|
-
this.config =
|
5855
|
+
this.config = _objectSpread2(_objectSpread2({}, this.config), {}, {
|
5777
5856
|
trigger: 'manual',
|
5778
5857
|
selector: ''
|
5779
5858
|
});
|
@@ -5801,16 +5880,16 @@
|
|
5801
5880
|
}
|
5802
5881
|
|
5803
5882
|
if (event) {
|
5804
|
-
context._activeTrigger[event.type === 'focusin' ?
|
5883
|
+
context._activeTrigger[event.type === 'focusin' ? TRIGGER_FOCUS : TRIGGER_HOVER] = true;
|
5805
5884
|
}
|
5806
5885
|
|
5807
|
-
if ($(context.getTipElement()).hasClass(
|
5808
|
-
context._hoverState =
|
5886
|
+
if ($(context.getTipElement()).hasClass(CLASS_NAME_SHOW$4) || context._hoverState === HOVER_STATE_SHOW) {
|
5887
|
+
context._hoverState = HOVER_STATE_SHOW;
|
5809
5888
|
return;
|
5810
5889
|
}
|
5811
5890
|
|
5812
5891
|
clearTimeout(context._timeout);
|
5813
|
-
context._hoverState =
|
5892
|
+
context._hoverState = HOVER_STATE_SHOW;
|
5814
5893
|
|
5815
5894
|
if (!context.config.delay || !context.config.delay.show) {
|
5816
5895
|
context.show();
|
@@ -5818,7 +5897,7 @@
|
|
5818
5897
|
}
|
5819
5898
|
|
5820
5899
|
context._timeout = setTimeout(function () {
|
5821
|
-
if (context._hoverState ===
|
5900
|
+
if (context._hoverState === HOVER_STATE_SHOW) {
|
5822
5901
|
context.show();
|
5823
5902
|
}
|
5824
5903
|
}, context.config.delay.show);
|
@@ -5834,7 +5913,7 @@
|
|
5834
5913
|
}
|
5835
5914
|
|
5836
5915
|
if (event) {
|
5837
|
-
context._activeTrigger[event.type === 'focusout' ?
|
5916
|
+
context._activeTrigger[event.type === 'focusout' ? TRIGGER_FOCUS : TRIGGER_HOVER] = false;
|
5838
5917
|
}
|
5839
5918
|
|
5840
5919
|
if (context._isWithActiveTrigger()) {
|
@@ -5842,7 +5921,7 @@
|
|
5842
5921
|
}
|
5843
5922
|
|
5844
5923
|
clearTimeout(context._timeout);
|
5845
|
-
context._hoverState =
|
5924
|
+
context._hoverState = HOVER_STATE_OUT;
|
5846
5925
|
|
5847
5926
|
if (!context.config.delay || !context.config.delay.hide) {
|
5848
5927
|
context.hide();
|
@@ -5850,7 +5929,7 @@
|
|
5850
5929
|
}
|
5851
5930
|
|
5852
5931
|
context._timeout = setTimeout(function () {
|
5853
|
-
if (context._hoverState ===
|
5932
|
+
if (context._hoverState === HOVER_STATE_OUT) {
|
5854
5933
|
context.hide();
|
5855
5934
|
}
|
5856
5935
|
}, context.config.delay.hide);
|
@@ -5873,7 +5952,7 @@
|
|
5873
5952
|
delete dataAttributes[dataAttr];
|
5874
5953
|
}
|
5875
5954
|
});
|
5876
|
-
config =
|
5955
|
+
config = _objectSpread2(_objectSpread2(_objectSpread2({}, this.constructor.Default), dataAttributes), typeof config === 'object' && config ? config : {});
|
5877
5956
|
|
5878
5957
|
if (typeof config.delay === 'number') {
|
5879
5958
|
config.delay = {
|
@@ -5923,8 +6002,7 @@
|
|
5923
6002
|
};
|
5924
6003
|
|
5925
6004
|
_proto._handlePopperPlacementChange = function _handlePopperPlacementChange(popperData) {
|
5926
|
-
|
5927
|
-
this.tip = popperInstance.popper;
|
6005
|
+
this.tip = popperData.instance.popper;
|
5928
6006
|
|
5929
6007
|
this._cleanTipClass();
|
5930
6008
|
|
@@ -5939,7 +6017,7 @@
|
|
5939
6017
|
return;
|
5940
6018
|
}
|
5941
6019
|
|
5942
|
-
$(tip).removeClass(
|
6020
|
+
$(tip).removeClass(CLASS_NAME_FADE$2);
|
5943
6021
|
this.config.animation = false;
|
5944
6022
|
this.hide();
|
5945
6023
|
this.show();
|
@@ -5995,7 +6073,7 @@
|
|
5995
6073
|
}, {
|
5996
6074
|
key: "Event",
|
5997
6075
|
get: function get() {
|
5998
|
-
return Event
|
6076
|
+
return Event;
|
5999
6077
|
}
|
6000
6078
|
}, {
|
6001
6079
|
key: "EVENT_KEY",
|
@@ -6033,33 +6111,29 @@
|
|
6033
6111
|
*/
|
6034
6112
|
|
6035
6113
|
var NAME$7 = 'popover';
|
6036
|
-
var VERSION$7 = '4.
|
6114
|
+
var VERSION$7 = '4.5.0';
|
6037
6115
|
var DATA_KEY$7 = 'bs.popover';
|
6038
6116
|
var EVENT_KEY$7 = "." + DATA_KEY$7;
|
6039
6117
|
var JQUERY_NO_CONFLICT$7 = $.fn[NAME$7];
|
6040
6118
|
var CLASS_PREFIX$1 = 'bs-popover';
|
6041
6119
|
var BSCLS_PREFIX_REGEX$1 = new RegExp("(^|\\s)" + CLASS_PREFIX$1 + "\\S+", 'g');
|
6042
6120
|
|
6043
|
-
var Default$5 =
|
6121
|
+
var Default$5 = _objectSpread2(_objectSpread2({}, Tooltip.Default), {}, {
|
6044
6122
|
placement: 'right',
|
6045
6123
|
trigger: 'click',
|
6046
6124
|
content: '',
|
6047
6125
|
template: '<div class="popover" role="tooltip">' + '<div class="arrow"></div>' + '<h3 class="popover-header"></h3>' + '<div class="popover-body"></div></div>'
|
6048
6126
|
});
|
6049
6127
|
|
6050
|
-
var DefaultType$5 =
|
6128
|
+
var DefaultType$5 = _objectSpread2(_objectSpread2({}, Tooltip.DefaultType), {}, {
|
6051
6129
|
content: '(string|element|function)'
|
6052
6130
|
});
|
6053
6131
|
|
6054
|
-
var
|
6055
|
-
|
6056
|
-
|
6057
|
-
|
6058
|
-
var
|
6059
|
-
TITLE: '.popover-header',
|
6060
|
-
CONTENT: '.popover-body'
|
6061
|
-
};
|
6062
|
-
var Event$7 = {
|
6132
|
+
var CLASS_NAME_FADE$3 = 'fade';
|
6133
|
+
var CLASS_NAME_SHOW$5 = 'show';
|
6134
|
+
var SELECTOR_TITLE = '.popover-header';
|
6135
|
+
var SELECTOR_CONTENT = '.popover-body';
|
6136
|
+
var Event$1 = {
|
6063
6137
|
HIDE: "hide" + EVENT_KEY$7,
|
6064
6138
|
HIDDEN: "hidden" + EVENT_KEY$7,
|
6065
6139
|
SHOW: "show" + EVENT_KEY$7,
|
@@ -6070,17 +6144,14 @@
|
|
6070
6144
|
FOCUSOUT: "focusout" + EVENT_KEY$7,
|
6071
6145
|
MOUSEENTER: "mouseenter" + EVENT_KEY$7,
|
6072
6146
|
MOUSELEAVE: "mouseleave" + EVENT_KEY$7
|
6073
|
-
/**
|
6074
|
-
* ------------------------------------------------------------------------
|
6075
|
-
* Class Definition
|
6076
|
-
* ------------------------------------------------------------------------
|
6077
|
-
*/
|
6078
|
-
|
6079
6147
|
};
|
6148
|
+
/**
|
6149
|
+
* ------------------------------------------------------------------------
|
6150
|
+
* Class Definition
|
6151
|
+
* ------------------------------------------------------------------------
|
6152
|
+
*/
|
6080
6153
|
|
6081
|
-
var Popover =
|
6082
|
-
/*#__PURE__*/
|
6083
|
-
function (_Tooltip) {
|
6154
|
+
var Popover = /*#__PURE__*/function (_Tooltip) {
|
6084
6155
|
_inheritsLoose(Popover, _Tooltip);
|
6085
6156
|
|
6086
6157
|
function Popover() {
|
@@ -6106,7 +6177,7 @@
|
|
6106
6177
|
_proto.setContent = function setContent() {
|
6107
6178
|
var $tip = $(this.getTipElement()); // We use append for html objects to maintain js events
|
6108
6179
|
|
6109
|
-
this.setElementContent($tip.find(
|
6180
|
+
this.setElementContent($tip.find(SELECTOR_TITLE), this.getTitle());
|
6110
6181
|
|
6111
6182
|
var content = this._getContent();
|
6112
6183
|
|
@@ -6114,8 +6185,8 @@
|
|
6114
6185
|
content = content.call(this.element);
|
6115
6186
|
}
|
6116
6187
|
|
6117
|
-
this.setElementContent($tip.find(
|
6118
|
-
$tip.removeClass(
|
6188
|
+
this.setElementContent($tip.find(SELECTOR_CONTENT), content);
|
6189
|
+
$tip.removeClass(CLASS_NAME_FADE$3 + " " + CLASS_NAME_SHOW$5);
|
6119
6190
|
} // Private
|
6120
6191
|
;
|
6121
6192
|
|
@@ -6182,7 +6253,7 @@
|
|
6182
6253
|
}, {
|
6183
6254
|
key: "Event",
|
6184
6255
|
get: function get() {
|
6185
|
-
return Event$
|
6256
|
+
return Event$1;
|
6186
6257
|
}
|
6187
6258
|
}, {
|
6188
6259
|
key: "EVENT_KEY",
|
@@ -6220,7 +6291,7 @@
|
|
6220
6291
|
*/
|
6221
6292
|
|
6222
6293
|
var NAME$8 = 'scrollspy';
|
6223
|
-
var VERSION$8 = '4.
|
6294
|
+
var VERSION$8 = '4.5.0';
|
6224
6295
|
var DATA_KEY$8 = 'bs.scrollspy';
|
6225
6296
|
var EVENT_KEY$8 = "." + DATA_KEY$8;
|
6226
6297
|
var DATA_API_KEY$6 = '.data-api';
|
@@ -6235,53 +6306,40 @@
|
|
6235
6306
|
method: 'string',
|
6236
6307
|
target: '(string|element)'
|
6237
6308
|
};
|
6238
|
-
var
|
6239
|
-
|
6240
|
-
|
6241
|
-
|
6242
|
-
|
6243
|
-
var
|
6244
|
-
|
6245
|
-
|
6246
|
-
|
6247
|
-
|
6248
|
-
var
|
6249
|
-
|
6250
|
-
|
6251
|
-
|
6252
|
-
|
6253
|
-
|
6254
|
-
|
6255
|
-
|
6256
|
-
|
6257
|
-
|
6258
|
-
};
|
6259
|
-
var OffsetMethod = {
|
6260
|
-
OFFSET: 'offset',
|
6261
|
-
POSITION: 'position'
|
6262
|
-
/**
|
6263
|
-
* ------------------------------------------------------------------------
|
6264
|
-
* Class Definition
|
6265
|
-
* ------------------------------------------------------------------------
|
6266
|
-
*/
|
6267
|
-
|
6268
|
-
};
|
6309
|
+
var EVENT_ACTIVATE = "activate" + EVENT_KEY$8;
|
6310
|
+
var EVENT_SCROLL = "scroll" + EVENT_KEY$8;
|
6311
|
+
var EVENT_LOAD_DATA_API$2 = "load" + EVENT_KEY$8 + DATA_API_KEY$6;
|
6312
|
+
var CLASS_NAME_DROPDOWN_ITEM = 'dropdown-item';
|
6313
|
+
var CLASS_NAME_ACTIVE$2 = 'active';
|
6314
|
+
var SELECTOR_DATA_SPY = '[data-spy="scroll"]';
|
6315
|
+
var SELECTOR_NAV_LIST_GROUP = '.nav, .list-group';
|
6316
|
+
var SELECTOR_NAV_LINKS = '.nav-link';
|
6317
|
+
var SELECTOR_NAV_ITEMS = '.nav-item';
|
6318
|
+
var SELECTOR_LIST_ITEMS = '.list-group-item';
|
6319
|
+
var SELECTOR_DROPDOWN = '.dropdown';
|
6320
|
+
var SELECTOR_DROPDOWN_ITEMS = '.dropdown-item';
|
6321
|
+
var SELECTOR_DROPDOWN_TOGGLE = '.dropdown-toggle';
|
6322
|
+
var METHOD_OFFSET = 'offset';
|
6323
|
+
var METHOD_POSITION = 'position';
|
6324
|
+
/**
|
6325
|
+
* ------------------------------------------------------------------------
|
6326
|
+
* Class Definition
|
6327
|
+
* ------------------------------------------------------------------------
|
6328
|
+
*/
|
6269
6329
|
|
6270
|
-
var ScrollSpy =
|
6271
|
-
/*#__PURE__*/
|
6272
|
-
function () {
|
6330
|
+
var ScrollSpy = /*#__PURE__*/function () {
|
6273
6331
|
function ScrollSpy(element, config) {
|
6274
6332
|
var _this = this;
|
6275
6333
|
|
6276
6334
|
this._element = element;
|
6277
6335
|
this._scrollElement = element.tagName === 'BODY' ? window : element;
|
6278
6336
|
this._config = this._getConfig(config);
|
6279
|
-
this._selector = this._config.target + " " +
|
6337
|
+
this._selector = this._config.target + " " + SELECTOR_NAV_LINKS + "," + (this._config.target + " " + SELECTOR_LIST_ITEMS + ",") + (this._config.target + " " + SELECTOR_DROPDOWN_ITEMS);
|
6280
6338
|
this._offsets = [];
|
6281
6339
|
this._targets = [];
|
6282
6340
|
this._activeTarget = null;
|
6283
6341
|
this._scrollHeight = 0;
|
6284
|
-
$(this._scrollElement).on(
|
6342
|
+
$(this._scrollElement).on(EVENT_SCROLL, function (event) {
|
6285
6343
|
return _this._process(event);
|
6286
6344
|
});
|
6287
6345
|
this.refresh();
|
@@ -6296,9 +6354,9 @@
|
|
6296
6354
|
_proto.refresh = function refresh() {
|
6297
6355
|
var _this2 = this;
|
6298
6356
|
|
6299
|
-
var autoMethod = this._scrollElement === this._scrollElement.window ?
|
6357
|
+
var autoMethod = this._scrollElement === this._scrollElement.window ? METHOD_OFFSET : METHOD_POSITION;
|
6300
6358
|
var offsetMethod = this._config.method === 'auto' ? autoMethod : this._config.method;
|
6301
|
-
var offsetBase = offsetMethod ===
|
6359
|
+
var offsetBase = offsetMethod === METHOD_POSITION ? this._getScrollTop() : 0;
|
6302
6360
|
this._offsets = [];
|
6303
6361
|
this._targets = [];
|
6304
6362
|
this._scrollHeight = this._getScrollHeight();
|
@@ -6347,9 +6405,9 @@
|
|
6347
6405
|
;
|
6348
6406
|
|
6349
6407
|
_proto._getConfig = function _getConfig(config) {
|
6350
|
-
config =
|
6408
|
+
config = _objectSpread2(_objectSpread2({}, Default$6), typeof config === 'object' && config ? config : {});
|
6351
6409
|
|
6352
|
-
if (typeof config.target !== 'string') {
|
6410
|
+
if (typeof config.target !== 'string' && Util.isElement(config.target)) {
|
6353
6411
|
var id = $(config.target).attr('id');
|
6354
6412
|
|
6355
6413
|
if (!id) {
|
@@ -6405,9 +6463,7 @@
|
|
6405
6463
|
return;
|
6406
6464
|
}
|
6407
6465
|
|
6408
|
-
var
|
6409
|
-
|
6410
|
-
for (var i = offsetLength; i--;) {
|
6466
|
+
for (var i = this._offsets.length; i--;) {
|
6411
6467
|
var isActiveTarget = this._activeTarget !== this._targets[i] && scrollTop >= this._offsets[i] && (typeof this._offsets[i + 1] === 'undefined' || scrollTop < this._offsets[i + 1]);
|
6412
6468
|
|
6413
6469
|
if (isActiveTarget) {
|
@@ -6427,29 +6483,29 @@
|
|
6427
6483
|
|
6428
6484
|
var $link = $([].slice.call(document.querySelectorAll(queries.join(','))));
|
6429
6485
|
|
6430
|
-
if ($link.hasClass(
|
6431
|
-
$link.closest(
|
6432
|
-
$link.addClass(
|
6486
|
+
if ($link.hasClass(CLASS_NAME_DROPDOWN_ITEM)) {
|
6487
|
+
$link.closest(SELECTOR_DROPDOWN).find(SELECTOR_DROPDOWN_TOGGLE).addClass(CLASS_NAME_ACTIVE$2);
|
6488
|
+
$link.addClass(CLASS_NAME_ACTIVE$2);
|
6433
6489
|
} else {
|
6434
6490
|
// Set triggered link as active
|
6435
|
-
$link.addClass(
|
6491
|
+
$link.addClass(CLASS_NAME_ACTIVE$2); // Set triggered links parents as active
|
6436
6492
|
// With both <ul> and <nav> markup a parent is the previous sibling of any nav ancestor
|
6437
6493
|
|
6438
|
-
$link.parents(
|
6494
|
+
$link.parents(SELECTOR_NAV_LIST_GROUP).prev(SELECTOR_NAV_LINKS + ", " + SELECTOR_LIST_ITEMS).addClass(CLASS_NAME_ACTIVE$2); // Handle special case when .nav-link is inside .nav-item
|
6439
6495
|
|
6440
|
-
$link.parents(
|
6496
|
+
$link.parents(SELECTOR_NAV_LIST_GROUP).prev(SELECTOR_NAV_ITEMS).children(SELECTOR_NAV_LINKS).addClass(CLASS_NAME_ACTIVE$2);
|
6441
6497
|
}
|
6442
6498
|
|
6443
|
-
$(this._scrollElement).trigger(
|
6499
|
+
$(this._scrollElement).trigger(EVENT_ACTIVATE, {
|
6444
6500
|
relatedTarget: target
|
6445
6501
|
});
|
6446
6502
|
};
|
6447
6503
|
|
6448
6504
|
_proto._clear = function _clear() {
|
6449
6505
|
[].slice.call(document.querySelectorAll(this._selector)).filter(function (node) {
|
6450
|
-
return node.classList.contains(
|
6506
|
+
return node.classList.contains(CLASS_NAME_ACTIVE$2);
|
6451
6507
|
}).forEach(function (node) {
|
6452
|
-
return node.classList.remove(
|
6508
|
+
return node.classList.remove(CLASS_NAME_ACTIVE$2);
|
6453
6509
|
});
|
6454
6510
|
} // Static
|
6455
6511
|
;
|
@@ -6496,8 +6552,8 @@
|
|
6496
6552
|
*/
|
6497
6553
|
|
6498
6554
|
|
6499
|
-
$(window).on(
|
6500
|
-
var scrollSpys = [].slice.call(document.querySelectorAll(
|
6555
|
+
$(window).on(EVENT_LOAD_DATA_API$2, function () {
|
6556
|
+
var scrollSpys = [].slice.call(document.querySelectorAll(SELECTOR_DATA_SPY));
|
6501
6557
|
var scrollSpysLength = scrollSpys.length;
|
6502
6558
|
|
6503
6559
|
for (var i = scrollSpysLength; i--;) {
|
@@ -6527,44 +6583,35 @@
|
|
6527
6583
|
*/
|
6528
6584
|
|
6529
6585
|
var NAME$9 = 'tab';
|
6530
|
-
var VERSION$9 = '4.
|
6586
|
+
var VERSION$9 = '4.5.0';
|
6531
6587
|
var DATA_KEY$9 = 'bs.tab';
|
6532
6588
|
var EVENT_KEY$9 = "." + DATA_KEY$9;
|
6533
6589
|
var DATA_API_KEY$7 = '.data-api';
|
6534
6590
|
var JQUERY_NO_CONFLICT$9 = $.fn[NAME$9];
|
6535
|
-
var
|
6536
|
-
|
6537
|
-
|
6538
|
-
|
6539
|
-
|
6540
|
-
|
6541
|
-
|
6542
|
-
var
|
6543
|
-
|
6544
|
-
|
6545
|
-
|
6546
|
-
|
6547
|
-
|
6548
|
-
|
6549
|
-
var
|
6550
|
-
|
6551
|
-
|
6552
|
-
|
6553
|
-
|
6554
|
-
|
6555
|
-
|
6556
|
-
|
6557
|
-
/**
|
6558
|
-
* ------------------------------------------------------------------------
|
6559
|
-
* Class Definition
|
6560
|
-
* ------------------------------------------------------------------------
|
6561
|
-
*/
|
6562
|
-
|
6563
|
-
};
|
6591
|
+
var EVENT_HIDE$3 = "hide" + EVENT_KEY$9;
|
6592
|
+
var EVENT_HIDDEN$3 = "hidden" + EVENT_KEY$9;
|
6593
|
+
var EVENT_SHOW$3 = "show" + EVENT_KEY$9;
|
6594
|
+
var EVENT_SHOWN$3 = "shown" + EVENT_KEY$9;
|
6595
|
+
var EVENT_CLICK_DATA_API$6 = "click" + EVENT_KEY$9 + DATA_API_KEY$7;
|
6596
|
+
var CLASS_NAME_DROPDOWN_MENU = 'dropdown-menu';
|
6597
|
+
var CLASS_NAME_ACTIVE$3 = 'active';
|
6598
|
+
var CLASS_NAME_DISABLED$1 = 'disabled';
|
6599
|
+
var CLASS_NAME_FADE$4 = 'fade';
|
6600
|
+
var CLASS_NAME_SHOW$6 = 'show';
|
6601
|
+
var SELECTOR_DROPDOWN$1 = '.dropdown';
|
6602
|
+
var SELECTOR_NAV_LIST_GROUP$1 = '.nav, .list-group';
|
6603
|
+
var SELECTOR_ACTIVE$2 = '.active';
|
6604
|
+
var SELECTOR_ACTIVE_UL = '> li > .active';
|
6605
|
+
var SELECTOR_DATA_TOGGLE$4 = '[data-toggle="tab"], [data-toggle="pill"], [data-toggle="list"]';
|
6606
|
+
var SELECTOR_DROPDOWN_TOGGLE$1 = '.dropdown-toggle';
|
6607
|
+
var SELECTOR_DROPDOWN_ACTIVE_CHILD = '> .dropdown-menu .active';
|
6608
|
+
/**
|
6609
|
+
* ------------------------------------------------------------------------
|
6610
|
+
* Class Definition
|
6611
|
+
* ------------------------------------------------------------------------
|
6612
|
+
*/
|
6564
6613
|
|
6565
|
-
var Tab =
|
6566
|
-
/*#__PURE__*/
|
6567
|
-
function () {
|
6614
|
+
var Tab = /*#__PURE__*/function () {
|
6568
6615
|
function Tab(element) {
|
6569
6616
|
this._element = element;
|
6570
6617
|
} // Getters
|
@@ -6576,25 +6623,25 @@
|
|
6576
6623
|
_proto.show = function show() {
|
6577
6624
|
var _this = this;
|
6578
6625
|
|
6579
|
-
if (this._element.parentNode && this._element.parentNode.nodeType === Node.ELEMENT_NODE && $(this._element).hasClass(
|
6626
|
+
if (this._element.parentNode && this._element.parentNode.nodeType === Node.ELEMENT_NODE && $(this._element).hasClass(CLASS_NAME_ACTIVE$3) || $(this._element).hasClass(CLASS_NAME_DISABLED$1)) {
|
6580
6627
|
return;
|
6581
6628
|
}
|
6582
6629
|
|
6583
6630
|
var target;
|
6584
6631
|
var previous;
|
6585
|
-
var listElement = $(this._element).closest(
|
6632
|
+
var listElement = $(this._element).closest(SELECTOR_NAV_LIST_GROUP$1)[0];
|
6586
6633
|
var selector = Util.getSelectorFromElement(this._element);
|
6587
6634
|
|
6588
6635
|
if (listElement) {
|
6589
|
-
var itemSelector = listElement.nodeName === 'UL' || listElement.nodeName === 'OL' ?
|
6636
|
+
var itemSelector = listElement.nodeName === 'UL' || listElement.nodeName === 'OL' ? SELECTOR_ACTIVE_UL : SELECTOR_ACTIVE$2;
|
6590
6637
|
previous = $.makeArray($(listElement).find(itemSelector));
|
6591
6638
|
previous = previous[previous.length - 1];
|
6592
6639
|
}
|
6593
6640
|
|
6594
|
-
var hideEvent = $.Event(
|
6641
|
+
var hideEvent = $.Event(EVENT_HIDE$3, {
|
6595
6642
|
relatedTarget: this._element
|
6596
6643
|
});
|
6597
|
-
var showEvent = $.Event(
|
6644
|
+
var showEvent = $.Event(EVENT_SHOW$3, {
|
6598
6645
|
relatedTarget: previous
|
6599
6646
|
});
|
6600
6647
|
|
@@ -6615,10 +6662,10 @@
|
|
6615
6662
|
this._activate(this._element, listElement);
|
6616
6663
|
|
6617
6664
|
var complete = function complete() {
|
6618
|
-
var hiddenEvent = $.Event(
|
6665
|
+
var hiddenEvent = $.Event(EVENT_HIDDEN$3, {
|
6619
6666
|
relatedTarget: _this._element
|
6620
6667
|
});
|
6621
|
-
var shownEvent = $.Event(
|
6668
|
+
var shownEvent = $.Event(EVENT_SHOWN$3, {
|
6622
6669
|
relatedTarget: previous
|
6623
6670
|
});
|
6624
6671
|
$(previous).trigger(hiddenEvent);
|
@@ -6641,9 +6688,9 @@
|
|
6641
6688
|
_proto._activate = function _activate(element, container, callback) {
|
6642
6689
|
var _this2 = this;
|
6643
6690
|
|
6644
|
-
var activeElements = container && (container.nodeName === 'UL' || container.nodeName === 'OL') ? $(container).find(
|
6691
|
+
var activeElements = container && (container.nodeName === 'UL' || container.nodeName === 'OL') ? $(container).find(SELECTOR_ACTIVE_UL) : $(container).children(SELECTOR_ACTIVE$2);
|
6645
6692
|
var active = activeElements[0];
|
6646
|
-
var isTransitioning = callback && active && $(active).hasClass(
|
6693
|
+
var isTransitioning = callback && active && $(active).hasClass(CLASS_NAME_FADE$4);
|
6647
6694
|
|
6648
6695
|
var complete = function complete() {
|
6649
6696
|
return _this2._transitionComplete(element, active, callback);
|
@@ -6651,7 +6698,7 @@
|
|
6651
6698
|
|
6652
6699
|
if (active && isTransitioning) {
|
6653
6700
|
var transitionDuration = Util.getTransitionDurationFromElement(active);
|
6654
|
-
$(active).removeClass(
|
6701
|
+
$(active).removeClass(CLASS_NAME_SHOW$6).one(Util.TRANSITION_END, complete).emulateTransitionEnd(transitionDuration);
|
6655
6702
|
} else {
|
6656
6703
|
complete();
|
6657
6704
|
}
|
@@ -6659,11 +6706,11 @@
|
|
6659
6706
|
|
6660
6707
|
_proto._transitionComplete = function _transitionComplete(element, active, callback) {
|
6661
6708
|
if (active) {
|
6662
|
-
$(active).removeClass(
|
6663
|
-
var dropdownChild = $(active.parentNode).find(
|
6709
|
+
$(active).removeClass(CLASS_NAME_ACTIVE$3);
|
6710
|
+
var dropdownChild = $(active.parentNode).find(SELECTOR_DROPDOWN_ACTIVE_CHILD)[0];
|
6664
6711
|
|
6665
6712
|
if (dropdownChild) {
|
6666
|
-
$(dropdownChild).removeClass(
|
6713
|
+
$(dropdownChild).removeClass(CLASS_NAME_ACTIVE$3);
|
6667
6714
|
}
|
6668
6715
|
|
6669
6716
|
if (active.getAttribute('role') === 'tab') {
|
@@ -6671,7 +6718,7 @@
|
|
6671
6718
|
}
|
6672
6719
|
}
|
6673
6720
|
|
6674
|
-
$(element).addClass(
|
6721
|
+
$(element).addClass(CLASS_NAME_ACTIVE$3);
|
6675
6722
|
|
6676
6723
|
if (element.getAttribute('role') === 'tab') {
|
6677
6724
|
element.setAttribute('aria-selected', true);
|
@@ -6679,16 +6726,16 @@
|
|
6679
6726
|
|
6680
6727
|
Util.reflow(element);
|
6681
6728
|
|
6682
|
-
if (element.classList.contains(
|
6683
|
-
element.classList.add(
|
6729
|
+
if (element.classList.contains(CLASS_NAME_FADE$4)) {
|
6730
|
+
element.classList.add(CLASS_NAME_SHOW$6);
|
6684
6731
|
}
|
6685
6732
|
|
6686
|
-
if (element.parentNode && $(element.parentNode).hasClass(
|
6687
|
-
var dropdownElement = $(element).closest(
|
6733
|
+
if (element.parentNode && $(element.parentNode).hasClass(CLASS_NAME_DROPDOWN_MENU)) {
|
6734
|
+
var dropdownElement = $(element).closest(SELECTOR_DROPDOWN$1)[0];
|
6688
6735
|
|
6689
6736
|
if (dropdownElement) {
|
6690
|
-
var dropdownToggleList = [].slice.call(dropdownElement.querySelectorAll(
|
6691
|
-
$(dropdownToggleList).addClass(
|
6737
|
+
var dropdownToggleList = [].slice.call(dropdownElement.querySelectorAll(SELECTOR_DROPDOWN_TOGGLE$1));
|
6738
|
+
$(dropdownToggleList).addClass(CLASS_NAME_ACTIVE$3);
|
6692
6739
|
}
|
6693
6740
|
|
6694
6741
|
element.setAttribute('aria-expanded', true);
|
@@ -6736,7 +6783,7 @@
|
|
6736
6783
|
*/
|
6737
6784
|
|
6738
6785
|
|
6739
|
-
$(document).on(
|
6786
|
+
$(document).on(EVENT_CLICK_DATA_API$6, SELECTOR_DATA_TOGGLE$4, function (event) {
|
6740
6787
|
event.preventDefault();
|
6741
6788
|
|
6742
6789
|
Tab._jQueryInterface.call($(this), 'show');
|
@@ -6762,23 +6809,19 @@
|
|
6762
6809
|
*/
|
6763
6810
|
|
6764
6811
|
var NAME$a = 'toast';
|
6765
|
-
var VERSION$a = '4.
|
6812
|
+
var VERSION$a = '4.5.0';
|
6766
6813
|
var DATA_KEY$a = 'bs.toast';
|
6767
6814
|
var EVENT_KEY$a = "." + DATA_KEY$a;
|
6768
6815
|
var JQUERY_NO_CONFLICT$a = $.fn[NAME$a];
|
6769
|
-
var
|
6770
|
-
|
6771
|
-
|
6772
|
-
|
6773
|
-
|
6774
|
-
|
6775
|
-
|
6776
|
-
var
|
6777
|
-
|
6778
|
-
HIDE: 'hide',
|
6779
|
-
SHOW: 'show',
|
6780
|
-
SHOWING: 'showing'
|
6781
|
-
};
|
6816
|
+
var EVENT_CLICK_DISMISS$1 = "click.dismiss" + EVENT_KEY$a;
|
6817
|
+
var EVENT_HIDE$4 = "hide" + EVENT_KEY$a;
|
6818
|
+
var EVENT_HIDDEN$4 = "hidden" + EVENT_KEY$a;
|
6819
|
+
var EVENT_SHOW$4 = "show" + EVENT_KEY$a;
|
6820
|
+
var EVENT_SHOWN$4 = "shown" + EVENT_KEY$a;
|
6821
|
+
var CLASS_NAME_FADE$5 = 'fade';
|
6822
|
+
var CLASS_NAME_HIDE = 'hide';
|
6823
|
+
var CLASS_NAME_SHOW$7 = 'show';
|
6824
|
+
var CLASS_NAME_SHOWING = 'showing';
|
6782
6825
|
var DefaultType$7 = {
|
6783
6826
|
animation: 'boolean',
|
6784
6827
|
autohide: 'boolean',
|
@@ -6789,19 +6832,14 @@
|
|
6789
6832
|
autohide: true,
|
6790
6833
|
delay: 500
|
6791
6834
|
};
|
6792
|
-
var
|
6793
|
-
|
6794
|
-
|
6795
|
-
|
6796
|
-
|
6797
|
-
|
6798
|
-
*/
|
6799
|
-
|
6800
|
-
};
|
6835
|
+
var SELECTOR_DATA_DISMISS$1 = '[data-dismiss="toast"]';
|
6836
|
+
/**
|
6837
|
+
* ------------------------------------------------------------------------
|
6838
|
+
* Class Definition
|
6839
|
+
* ------------------------------------------------------------------------
|
6840
|
+
*/
|
6801
6841
|
|
6802
|
-
var Toast =
|
6803
|
-
/*#__PURE__*/
|
6804
|
-
function () {
|
6842
|
+
var Toast = /*#__PURE__*/function () {
|
6805
6843
|
function Toast(element, config) {
|
6806
6844
|
this._element = element;
|
6807
6845
|
this._config = this._getConfig(config);
|
@@ -6817,27 +6855,36 @@
|
|
6817
6855
|
_proto.show = function show() {
|
6818
6856
|
var _this = this;
|
6819
6857
|
|
6820
|
-
|
6858
|
+
var showEvent = $.Event(EVENT_SHOW$4);
|
6859
|
+
$(this._element).trigger(showEvent);
|
6860
|
+
|
6861
|
+
if (showEvent.isDefaultPrevented()) {
|
6862
|
+
return;
|
6863
|
+
}
|
6821
6864
|
|
6822
6865
|
if (this._config.animation) {
|
6823
|
-
this._element.classList.add(
|
6866
|
+
this._element.classList.add(CLASS_NAME_FADE$5);
|
6824
6867
|
}
|
6825
6868
|
|
6826
6869
|
var complete = function complete() {
|
6827
|
-
_this._element.classList.remove(
|
6870
|
+
_this._element.classList.remove(CLASS_NAME_SHOWING);
|
6828
6871
|
|
6829
|
-
_this._element.classList.add(
|
6872
|
+
_this._element.classList.add(CLASS_NAME_SHOW$7);
|
6830
6873
|
|
6831
|
-
$(_this._element).trigger(
|
6874
|
+
$(_this._element).trigger(EVENT_SHOWN$4);
|
6832
6875
|
|
6833
6876
|
if (_this._config.autohide) {
|
6834
|
-
_this.
|
6877
|
+
_this._timeout = setTimeout(function () {
|
6878
|
+
_this.hide();
|
6879
|
+
}, _this._config.delay);
|
6835
6880
|
}
|
6836
6881
|
};
|
6837
6882
|
|
6838
|
-
this._element.classList.remove(
|
6883
|
+
this._element.classList.remove(CLASS_NAME_HIDE);
|
6884
|
+
|
6885
|
+
Util.reflow(this._element);
|
6839
6886
|
|
6840
|
-
this._element.classList.add(
|
6887
|
+
this._element.classList.add(CLASS_NAME_SHOWING);
|
6841
6888
|
|
6842
6889
|
if (this._config.animation) {
|
6843
6890
|
var transitionDuration = Util.getTransitionDurationFromElement(this._element);
|
@@ -6847,33 +6894,30 @@
|
|
6847
6894
|
}
|
6848
6895
|
};
|
6849
6896
|
|
6850
|
-
_proto.hide = function hide(
|
6851
|
-
|
6852
|
-
|
6853
|
-
if (!this._element.classList.contains(ClassName$a.SHOW)) {
|
6897
|
+
_proto.hide = function hide() {
|
6898
|
+
if (!this._element.classList.contains(CLASS_NAME_SHOW$7)) {
|
6854
6899
|
return;
|
6855
6900
|
}
|
6856
6901
|
|
6857
|
-
|
6902
|
+
var hideEvent = $.Event(EVENT_HIDE$4);
|
6903
|
+
$(this._element).trigger(hideEvent);
|
6858
6904
|
|
6859
|
-
if (
|
6860
|
-
|
6861
|
-
} else {
|
6862
|
-
this._timeout = setTimeout(function () {
|
6863
|
-
_this2._close();
|
6864
|
-
}, this._config.delay);
|
6905
|
+
if (hideEvent.isDefaultPrevented()) {
|
6906
|
+
return;
|
6865
6907
|
}
|
6908
|
+
|
6909
|
+
this._close();
|
6866
6910
|
};
|
6867
6911
|
|
6868
6912
|
_proto.dispose = function dispose() {
|
6869
6913
|
clearTimeout(this._timeout);
|
6870
6914
|
this._timeout = null;
|
6871
6915
|
|
6872
|
-
if (this._element.classList.contains(
|
6873
|
-
this._element.classList.remove(
|
6916
|
+
if (this._element.classList.contains(CLASS_NAME_SHOW$7)) {
|
6917
|
+
this._element.classList.remove(CLASS_NAME_SHOW$7);
|
6874
6918
|
}
|
6875
6919
|
|
6876
|
-
$(this._element).off(
|
6920
|
+
$(this._element).off(EVENT_CLICK_DISMISS$1);
|
6877
6921
|
$.removeData(this._element, DATA_KEY$a);
|
6878
6922
|
this._element = null;
|
6879
6923
|
this._config = null;
|
@@ -6881,29 +6925,29 @@
|
|
6881
6925
|
;
|
6882
6926
|
|
6883
6927
|
_proto._getConfig = function _getConfig(config) {
|
6884
|
-
config =
|
6928
|
+
config = _objectSpread2(_objectSpread2(_objectSpread2({}, Default$7), $(this._element).data()), typeof config === 'object' && config ? config : {});
|
6885
6929
|
Util.typeCheckConfig(NAME$a, config, this.constructor.DefaultType);
|
6886
6930
|
return config;
|
6887
6931
|
};
|
6888
6932
|
|
6889
6933
|
_proto._setListeners = function _setListeners() {
|
6890
|
-
var
|
6934
|
+
var _this2 = this;
|
6891
6935
|
|
6892
|
-
$(this._element).on(
|
6893
|
-
return
|
6936
|
+
$(this._element).on(EVENT_CLICK_DISMISS$1, SELECTOR_DATA_DISMISS$1, function () {
|
6937
|
+
return _this2.hide();
|
6894
6938
|
});
|
6895
6939
|
};
|
6896
6940
|
|
6897
6941
|
_proto._close = function _close() {
|
6898
|
-
var
|
6942
|
+
var _this3 = this;
|
6899
6943
|
|
6900
6944
|
var complete = function complete() {
|
6901
|
-
|
6945
|
+
_this3._element.classList.add(CLASS_NAME_HIDE);
|
6902
6946
|
|
6903
|
-
$(
|
6947
|
+
$(_this3._element).trigger(EVENT_HIDDEN$4);
|
6904
6948
|
};
|
6905
6949
|
|
6906
|
-
this._element.classList.remove(
|
6950
|
+
this._element.classList.remove(CLASS_NAME_SHOW$7);
|
6907
6951
|
|
6908
6952
|
if (this._config.animation) {
|
6909
6953
|
var transitionDuration = Util.getTransitionDurationFromElement(this._element);
|
@@ -6970,31 +7014,6 @@
|
|
6970
7014
|
return Toast._jQueryInterface;
|
6971
7015
|
};
|
6972
7016
|
|
6973
|
-
/**
|
6974
|
-
* --------------------------------------------------------------------------
|
6975
|
-
* Bootstrap (v4.3.1): index.js
|
6976
|
-
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
|
6977
|
-
* --------------------------------------------------------------------------
|
6978
|
-
*/
|
6979
|
-
|
6980
|
-
(function () {
|
6981
|
-
if (typeof $ === 'undefined') {
|
6982
|
-
throw new TypeError('Bootstrap\'s JavaScript requires jQuery. jQuery must be included before Bootstrap\'s JavaScript.');
|
6983
|
-
}
|
6984
|
-
|
6985
|
-
var version = $.fn.jquery.split(' ')[0].split('.');
|
6986
|
-
var minMajor = 1;
|
6987
|
-
var ltMajor = 2;
|
6988
|
-
var minMinor = 9;
|
6989
|
-
var minPatch = 1;
|
6990
|
-
var maxMajor = 4;
|
6991
|
-
|
6992
|
-
if (version[0] < ltMajor && version[1] < minMinor || version[0] === minMajor && version[1] === minMinor && version[2] < minPatch || version[0] >= maxMajor) {
|
6993
|
-
throw new Error('Bootstrap\'s JavaScript requires at least jQuery v1.9.1 but less than v4.0.0');
|
6994
|
-
}
|
6995
|
-
})();
|
6996
|
-
|
6997
|
-
exports.Util = Util;
|
6998
7017
|
exports.Alert = Alert;
|
6999
7018
|
exports.Button = Button;
|
7000
7019
|
exports.Carousel = Carousel;
|
@@ -7006,8 +7025,9 @@
|
|
7006
7025
|
exports.Tab = Tab;
|
7007
7026
|
exports.Toast = Toast;
|
7008
7027
|
exports.Tooltip = Tooltip;
|
7028
|
+
exports.Util = Util;
|
7009
7029
|
|
7010
7030
|
Object.defineProperty(exports, '__esModule', { value: true });
|
7011
7031
|
|
7012
|
-
}));
|
7032
|
+
})));
|
7013
7033
|
//# sourceMappingURL=bootstrap.bundle.js.map
|