1
|
;(function(window, document, undefined) {
|
2
|
"use strict";
|
3
|
|
4
|
(function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s})({1:[function(require,module,exports){
|
5
|
'use strict';
|
6
|
|
7
|
var _interopRequireWildcard = function (obj) { return obj && obj.__esModule ? obj : { 'default': obj }; };
|
8
|
|
9
|
Object.defineProperty(exports, '__esModule', {
|
10
|
value: true
|
11
|
});
|
12
|
// SweetAlert
|
13
|
// 2014-2015 (c) - Tristan Edwards
|
14
|
// github.com/t4t5/sweetalert
|
15
|
|
16
|
/*
|
17
|
* jQuery-like functions for manipulating the DOM
|
18
|
*/
|
19
|
|
20
|
var _hasClass$addClass$removeClass$escapeHtml$_show$show$_hide$hide$isDescendant$getTopMargin$fadeIn$fadeOut$fireClick$stopEventPropagation = require('./modules/handle-dom');
|
21
|
|
22
|
/*
|
23
|
* Handy utilities
|
24
|
*/
|
25
|
|
26
|
var _extend$hexToRgb$isIE8$logStr$colorLuminance = require('./modules/utils');
|
27
|
|
28
|
/*
|
29
|
* Handle sweetAlert's DOM elements
|
30
|
*/
|
31
|
|
32
|
var _sweetAlertInitialize$getModal$getOverlay$getInput$setFocusStyle$openModal$resetInput$fixVerticalPosition = require('./modules/handle-swal-dom');
|
33
|
|
34
|
// Handle button events and keyboard events
|
35
|
|
36
|
var _handleButton$handleConfirm$handleCancel = require('./modules/handle-click');
|
37
|
|
38
|
var _handleKeyDown = require('./modules/handle-key');
|
39
|
|
40
|
var _handleKeyDown2 = _interopRequireWildcard(_handleKeyDown);
|
41
|
|
42
|
// Default values
|
43
|
|
44
|
var _defaultParams = require('./modules/default-params');
|
45
|
|
46
|
var _defaultParams2 = _interopRequireWildcard(_defaultParams);
|
47
|
|
48
|
var _setParameters = require('./modules/set-params');
|
49
|
|
50
|
var _setParameters2 = _interopRequireWildcard(_setParameters);
|
51
|
|
52
|
/*
|
53
|
* Remember state in cases where opening and handling a modal will fiddle with it.
|
54
|
* (We also use window.previousActiveElement as a global variable)
|
55
|
*/
|
56
|
var previousWindowKeyDown;
|
57
|
var lastFocusedButton;
|
58
|
|
59
|
/*
|
60
|
* Global sweetAlert function
|
61
|
* (this is what the user calls)
|
62
|
*/
|
63
|
var sweetAlert, swal;
|
64
|
|
65
|
exports['default'] = sweetAlert = swal = function () {
|
66
|
var customizations = arguments[0];
|
67
|
|
68
|
_hasClass$addClass$removeClass$escapeHtml$_show$show$_hide$hide$isDescendant$getTopMargin$fadeIn$fadeOut$fireClick$stopEventPropagation.addClass(document.body, 'stop-scrolling');
|
69
|
_sweetAlertInitialize$getModal$getOverlay$getInput$setFocusStyle$openModal$resetInput$fixVerticalPosition.resetInput();
|
70
|
|
71
|
/*
|
72
|
* Use argument if defined or default value from params object otherwise.
|
73
|
* Supports the case where a default value is boolean true and should be
|
74
|
* overridden by a corresponding explicit argument which is boolean false.
|
75
|
*/
|
76
|
function argumentOrDefault(key) {
|
77
|
var args = customizations;
|
78
|
return args[key] === undefined ? _defaultParams2['default'][key] : args[key];
|
79
|
}
|
80
|
|
81
|
if (customizations === undefined) {
|
82
|
_extend$hexToRgb$isIE8$logStr$colorLuminance.logStr('SweetAlert expects at least 1 attribute!');
|
83
|
return false;
|
84
|
}
|
85
|
|
86
|
var params = _extend$hexToRgb$isIE8$logStr$colorLuminance.extend({}, _defaultParams2['default']);
|
87
|
|
88
|
switch (typeof customizations) {
|
89
|
|
90
|
// Ex: swal("Hello", "Just testing", "info");
|
91
|
case 'string':
|
92
|
params.title = customizations;
|
93
|
params.text = arguments[1] || '';
|
94
|
params.type = arguments[2] || '';
|
95
|
break;
|
96
|
|
97
|
// Ex: swal({ title:"Hello", text: "Just testing", type: "info" });
|
98
|
case 'object':
|
99
|
if (customizations.title === undefined) {
|
100
|
_extend$hexToRgb$isIE8$logStr$colorLuminance.logStr('Missing "title" argument!');
|
101
|
return false;
|
102
|
}
|
103
|
|
104
|
params.title = customizations.title;
|
105
|
|
106
|
for (var customName in _defaultParams2['default']) {
|
107
|
params[customName] = argumentOrDefault(customName);
|
108
|
}
|
109
|
|
110
|
// Show "Confirm" instead of "OK" if cancel button is visible
|
111
|
params.confirmButtonText = params.showCancelButton ? 'Confirm' : _defaultParams2['default'].confirmButtonText;
|
112
|
params.confirmButtonText = argumentOrDefault('confirmButtonText');
|
113
|
|
114
|
// Callback function when clicking on "OK"/"Cancel"
|
115
|
params.doneFunction = arguments[1] || null;
|
116
|
|
117
|
break;
|
118
|
|
119
|
default:
|
120
|
_extend$hexToRgb$isIE8$logStr$colorLuminance.logStr('Unexpected type of argument! Expected "string" or "object", got ' + typeof customizations);
|
121
|
return false;
|
122
|
|
123
|
}
|
124
|
|
125
|
_setParameters2['default'](params);
|
126
|
_sweetAlertInitialize$getModal$getOverlay$getInput$setFocusStyle$openModal$resetInput$fixVerticalPosition.fixVerticalPosition();
|
127
|
_sweetAlertInitialize$getModal$getOverlay$getInput$setFocusStyle$openModal$resetInput$fixVerticalPosition.openModal(arguments[1]);
|
128
|
|
129
|
// Modal interactions
|
130
|
var modal = _sweetAlertInitialize$getModal$getOverlay$getInput$setFocusStyle$openModal$resetInput$fixVerticalPosition.getModal();
|
131
|
|
132
|
/*
|
133
|
* Make sure all modal buttons respond to all events
|
134
|
*/
|
135
|
var $buttons = modal.querySelectorAll('button');
|
136
|
var buttonEvents = ['onclick', 'onmouseover', 'onmouseout', 'onmousedown', 'onmouseup', 'onfocus'];
|
137
|
var onButtonEvent = function onButtonEvent(e) {
|
138
|
return _handleButton$handleConfirm$handleCancel.handleButton(e, params, modal);
|
139
|
};
|
140
|
|
141
|
for (var btnIndex = 0; btnIndex < $buttons.length; btnIndex++) {
|
142
|
for (var evtIndex = 0; evtIndex < buttonEvents.length; evtIndex++) {
|
143
|
var btnEvt = buttonEvents[evtIndex];
|
144
|
$buttons[btnIndex][btnEvt] = onButtonEvent;
|
145
|
}
|
146
|
}
|
147
|
|
148
|
// Clicking outside the modal dismisses it (if allowed by user)
|
149
|
_sweetAlertInitialize$getModal$getOverlay$getInput$setFocusStyle$openModal$resetInput$fixVerticalPosition.getOverlay().onclick = onButtonEvent;
|
150
|
|
151
|
previousWindowKeyDown = window.onkeydown;
|
152
|
|
153
|
var onKeyEvent = function onKeyEvent(e) {
|
154
|
return _handleKeyDown2['default'](e, params, modal);
|
155
|
};
|
156
|
window.onkeydown = onKeyEvent;
|
157
|
|
158
|
window.onfocus = function () {
|
159
|
// When the user has focused away and focused back from the whole window.
|
160
|
setTimeout(function () {
|
161
|
// Put in a timeout to jump out of the event sequence.
|
162
|
// Calling focus() in the event sequence confuses things.
|
163
|
if (lastFocusedButton !== undefined) {
|
164
|
lastFocusedButton.focus();
|
165
|
lastFocusedButton = undefined;
|
166
|
}
|
167
|
}, 0);
|
168
|
};
|
169
|
|
170
|
// Show alert with enabled buttons always
|
171
|
swal.enableButtons();
|
172
|
};
|
173
|
|
174
|
/*
|
175
|
* Set default params for each popup
|
176
|
* @param {Object} userParams
|
177
|
*/
|
178
|
sweetAlert.setDefaults = swal.setDefaults = function (userParams) {
|
179
|
if (!userParams) {
|
180
|
throw new Error('userParams is required');
|
181
|
}
|
182
|
if (typeof userParams !== 'object') {
|
183
|
throw new Error('userParams has to be a object');
|
184
|
}
|
185
|
|
186
|
_extend$hexToRgb$isIE8$logStr$colorLuminance.extend(_defaultParams2['default'], userParams);
|
187
|
};
|
188
|
|
189
|
/*
|
190
|
* Animation when closing modal
|
191
|
*/
|
192
|
sweetAlert.close = swal.close = function () {
|
193
|
var modal = _sweetAlertInitialize$getModal$getOverlay$getInput$setFocusStyle$openModal$resetInput$fixVerticalPosition.getModal();
|
194
|
|
195
|
_hasClass$addClass$removeClass$escapeHtml$_show$show$_hide$hide$isDescendant$getTopMargin$fadeIn$fadeOut$fireClick$stopEventPropagation.fadeOut(_sweetAlertInitialize$getModal$getOverlay$getInput$setFocusStyle$openModal$resetInput$fixVerticalPosition.getOverlay(), 5);
|
196
|
_hasClass$addClass$removeClass$escapeHtml$_show$show$_hide$hide$isDescendant$getTopMargin$fadeIn$fadeOut$fireClick$stopEventPropagation.fadeOut(modal, 5);
|
197
|
_hasClass$addClass$removeClass$escapeHtml$_show$show$_hide$hide$isDescendant$getTopMargin$fadeIn$fadeOut$fireClick$stopEventPropagation.removeClass(modal, 'showSweetAlert');
|
198
|
_hasClass$addClass$removeClass$escapeHtml$_show$show$_hide$hide$isDescendant$getTopMargin$fadeIn$fadeOut$fireClick$stopEventPropagation.addClass(modal, 'hideSweetAlert');
|
199
|
_hasClass$addClass$removeClass$escapeHtml$_show$show$_hide$hide$isDescendant$getTopMargin$fadeIn$fadeOut$fireClick$stopEventPropagation.removeClass(modal, 'visible');
|
200
|
|
201
|
/*
|
202
|
* Reset icon animations
|
203
|
*/
|
204
|
var $successIcon = modal.querySelector('.sa-icon.sa-success');
|
205
|
_hasClass$addClass$removeClass$escapeHtml$_show$show$_hide$hide$isDescendant$getTopMargin$fadeIn$fadeOut$fireClick$stopEventPropagation.removeClass($successIcon, 'animate');
|
206
|
_hasClass$addClass$removeClass$escapeHtml$_show$show$_hide$hide$isDescendant$getTopMargin$fadeIn$fadeOut$fireClick$stopEventPropagation.removeClass($successIcon.querySelector('.sa-tip'), 'animateSuccessTip');
|
207
|
_hasClass$addClass$removeClass$escapeHtml$_show$show$_hide$hide$isDescendant$getTopMargin$fadeIn$fadeOut$fireClick$stopEventPropagation.removeClass($successIcon.querySelector('.sa-long'), 'animateSuccessLong');
|
208
|
|
209
|
var $errorIcon = modal.querySelector('.sa-icon.sa-error');
|
210
|
_hasClass$addClass$removeClass$escapeHtml$_show$show$_hide$hide$isDescendant$getTopMargin$fadeIn$fadeOut$fireClick$stopEventPropagation.removeClass($errorIcon, 'animateErrorIcon');
|
211
|
_hasClass$addClass$removeClass$escapeHtml$_show$show$_hide$hide$isDescendant$getTopMargin$fadeIn$fadeOut$fireClick$stopEventPropagation.removeClass($errorIcon.querySelector('.sa-x-mark'), 'animateXMark');
|
212
|
|
213
|
var $warningIcon = modal.querySelector('.sa-icon.sa-warning');
|
214
|
_hasClass$addClass$removeClass$escapeHtml$_show$show$_hide$hide$isDescendant$getTopMargin$fadeIn$fadeOut$fireClick$stopEventPropagation.removeClass($warningIcon, 'pulseWarning');
|
215
|
_hasClass$addClass$removeClass$escapeHtml$_show$show$_hide$hide$isDescendant$getTopMargin$fadeIn$fadeOut$fireClick$stopEventPropagation.removeClass($warningIcon.querySelector('.sa-body'), 'pulseWarningIns');
|
216
|
_hasClass$addClass$removeClass$escapeHtml$_show$show$_hide$hide$isDescendant$getTopMargin$fadeIn$fadeOut$fireClick$stopEventPropagation.removeClass($warningIcon.querySelector('.sa-dot'), 'pulseWarningIns');
|
217
|
|
218
|
// Reset custom class (delay so that UI changes aren't visible)
|
219
|
setTimeout(function () {
|
220
|
var customClass = modal.getAttribute('data-custom-class');
|
221
|
_hasClass$addClass$removeClass$escapeHtml$_show$show$_hide$hide$isDescendant$getTopMargin$fadeIn$fadeOut$fireClick$stopEventPropagation.removeClass(modal, customClass);
|
222
|
}, 300);
|
223
|
|
224
|
// Make page scrollable again
|
225
|
_hasClass$addClass$removeClass$escapeHtml$_show$show$_hide$hide$isDescendant$getTopMargin$fadeIn$fadeOut$fireClick$stopEventPropagation.removeClass(document.body, 'stop-scrolling');
|
226
|
|
227
|
// Reset the page to its previous state
|
228
|
window.onkeydown = previousWindowKeyDown;
|
229
|
if (window.previousActiveElement) {
|
230
|
window.previousActiveElement.focus();
|
231
|
}
|
232
|
lastFocusedButton = undefined;
|
233
|
clearTimeout(modal.timeout);
|
234
|
|
235
|
return true;
|
236
|
};
|
237
|
|
238
|
/*
|
239
|
* Validation of the input field is done by user
|
240
|
* If something is wrong => call showInputError with errorMessage
|
241
|
*/
|
242
|
sweetAlert.showInputError = swal.showInputError = function (errorMessage) {
|
243
|
var modal = _sweetAlertInitialize$getModal$getOverlay$getInput$setFocusStyle$openModal$resetInput$fixVerticalPosition.getModal();
|
244
|
|
245
|
var $errorIcon = modal.querySelector('.sa-input-error');
|
246
|
_hasClass$addClass$removeClass$escapeHtml$_show$show$_hide$hide$isDescendant$getTopMargin$fadeIn$fadeOut$fireClick$stopEventPropagation.addClass($errorIcon, 'show');
|
247
|
|
248
|
var $errorContainer = modal.querySelector('.sa-error-container');
|
249
|
_hasClass$addClass$removeClass$escapeHtml$_show$show$_hide$hide$isDescendant$getTopMargin$fadeIn$fadeOut$fireClick$stopEventPropagation.addClass($errorContainer, 'show');
|
250
|
|
251
|
$errorContainer.querySelector('p').innerHTML = errorMessage;
|
252
|
|
253
|
setTimeout(function () {
|
254
|
sweetAlert.enableButtons();
|
255
|
}, 1);
|
256
|
|
257
|
modal.querySelector('input').focus();
|
258
|
};
|
259
|
|
260
|
/*
|
261
|
* Reset input error DOM elements
|
262
|
*/
|
263
|
sweetAlert.resetInputError = swal.resetInputError = function (event) {
|
264
|
// If press enter => ignore
|
265
|
if (event && event.keyCode === 13) {
|
266
|
return false;
|
267
|
}
|
268
|
|
269
|
var $modal = _sweetAlertInitialize$getModal$getOverlay$getInput$setFocusStyle$openModal$resetInput$fixVerticalPosition.getModal();
|
270
|
|
271
|
var $errorIcon = $modal.querySelector('.sa-input-error');
|
272
|
_hasClass$addClass$removeClass$escapeHtml$_show$show$_hide$hide$isDescendant$getTopMargin$fadeIn$fadeOut$fireClick$stopEventPropagation.removeClass($errorIcon, 'show');
|
273
|
|
274
|
var $errorContainer = $modal.querySelector('.sa-error-container');
|
275
|
_hasClass$addClass$removeClass$escapeHtml$_show$show$_hide$hide$isDescendant$getTopMargin$fadeIn$fadeOut$fireClick$stopEventPropagation.removeClass($errorContainer, 'show');
|
276
|
};
|
277
|
|
278
|
/*
|
279
|
* Disable confirm and cancel buttons
|
280
|
*/
|
281
|
sweetAlert.disableButtons = swal.disableButtons = function (event) {
|
282
|
var modal = _sweetAlertInitialize$getModal$getOverlay$getInput$setFocusStyle$openModal$resetInput$fixVerticalPosition.getModal();
|
283
|
var $confirmButton = modal.querySelector('button.confirm');
|
284
|
var $cancelButton = modal.querySelector('button.cancel');
|
285
|
$confirmButton.disabled = true;
|
286
|
$cancelButton.disabled = true;
|
287
|
};
|
288
|
|
289
|
/*
|
290
|
* Enable confirm and cancel buttons
|
291
|
*/
|
292
|
sweetAlert.enableButtons = swal.enableButtons = function (event) {
|
293
|
var modal = _sweetAlertInitialize$getModal$getOverlay$getInput$setFocusStyle$openModal$resetInput$fixVerticalPosition.getModal();
|
294
|
var $confirmButton = modal.querySelector('button.confirm');
|
295
|
var $cancelButton = modal.querySelector('button.cancel');
|
296
|
$confirmButton.disabled = false;
|
297
|
$cancelButton.disabled = false;
|
298
|
};
|
299
|
|
300
|
if (typeof window !== 'undefined') {
|
301
|
// The 'handle-click' module requires
|
302
|
// that 'sweetAlert' was set as global.
|
303
|
window.sweetAlert = window.swal = sweetAlert;
|
304
|
} else {
|
305
|
_extend$hexToRgb$isIE8$logStr$colorLuminance.logStr('SweetAlert is a frontend module!');
|
306
|
}
|
307
|
module.exports = exports['default'];
|
308
|
|
309
|
},{"./modules/default-params":2,"./modules/handle-click":3,"./modules/handle-dom":4,"./modules/handle-key":5,"./modules/handle-swal-dom":6,"./modules/set-params":8,"./modules/utils":9}],2:[function(require,module,exports){
|
310
|
'use strict';
|
311
|
|
312
|
Object.defineProperty(exports, '__esModule', {
|
313
|
value: true
|
314
|
});
|
315
|
var defaultParams = {
|
316
|
title: '',
|
317
|
text: '',
|
318
|
type: null,
|
319
|
allowOutsideClick: false,
|
320
|
showConfirmButton: true,
|
321
|
showCancelButton: false,
|
322
|
closeOnConfirm: true,
|
323
|
closeOnCancel: true,
|
324
|
confirmButtonText: 'OK',
|
325
|
confirmButtonColor: '#8CD4F5',
|
326
|
cancelButtonText: 'Cancel',
|
327
|
imageUrl: null,
|
328
|
imageSize: null,
|
329
|
timer: null,
|
330
|
customClass: '',
|
331
|
html: false,
|
332
|
animation: true,
|
333
|
allowEscapeKey: true,
|
334
|
inputType: 'text',
|
335
|
inputPlaceholder: '',
|
336
|
inputValue: '',
|
337
|
showLoaderOnConfirm: false
|
338
|
};
|
339
|
|
340
|
exports['default'] = defaultParams;
|
341
|
module.exports = exports['default'];
|
342
|
|
343
|
},{}],3:[function(require,module,exports){
|
344
|
'use strict';
|
345
|
|
346
|
Object.defineProperty(exports, '__esModule', {
|
347
|
value: true
|
348
|
});
|
349
|
|
350
|
var _colorLuminance = require('./utils');
|
351
|
|
352
|
var _getModal = require('./handle-swal-dom');
|
353
|
|
354
|
var _hasClass$isDescendant = require('./handle-dom');
|
355
|
|
356
|
/*
|
357
|
* User clicked on "Confirm"/"OK" or "Cancel"
|
358
|
*/
|
359
|
var handleButton = function handleButton(event, params, modal) {
|
360
|
var e = event || window.event;
|
361
|
var target = e.target || e.srcElement;
|
362
|
|
363
|
var targetedConfirm = target.className.indexOf('confirm') !== -1;
|
364
|
var targetedOverlay = target.className.indexOf('sweet-overlay') !== -1;
|
365
|
var modalIsVisible = _hasClass$isDescendant.hasClass(modal, 'visible');
|
366
|
var doneFunctionExists = params.doneFunction && modal.getAttribute('data-has-done-function') === 'true';
|
367
|
|
368
|
// Since the user can change the background-color of the confirm button programmatically,
|
369
|
// we must calculate what the color should be on hover/active
|
370
|
var normalColor, hoverColor, activeColor;
|
371
|
if (targetedConfirm && params.confirmButtonColor) {
|
372
|
normalColor = params.confirmButtonColor;
|
373
|
hoverColor = _colorLuminance.colorLuminance(normalColor, -0.04);
|
374
|
activeColor = _colorLuminance.colorLuminance(normalColor, -0.14);
|
375
|
}
|
376
|
|
377
|
function shouldSetConfirmButtonColor(color) {
|
378
|
if (targetedConfirm && params.confirmButtonColor) {
|
379
|
target.style.backgroundColor = color;
|
380
|
}
|
381
|
}
|
382
|
|
383
|
switch (e.type) {
|
384
|
case 'mouseover':
|
385
|
shouldSetConfirmButtonColor(hoverColor);
|
386
|
break;
|
387
|
|
388
|
case 'mouseout':
|
389
|
shouldSetConfirmButtonColor(normalColor);
|
390
|
break;
|
391
|
|
392
|
case 'mousedown':
|
393
|
shouldSetConfirmButtonColor(activeColor);
|
394
|
break;
|
395
|
|
396
|
case 'mouseup':
|
397
|
shouldSetConfirmButtonColor(hoverColor);
|
398
|
break;
|
399
|
|
400
|
case 'focus':
|
401
|
var $confirmButton = modal.querySelector('button.confirm');
|
402
|
var $cancelButton = modal.querySelector('button.cancel');
|
403
|
|
404
|
if (targetedConfirm) {
|
405
|
$cancelButton.style.boxShadow = 'none';
|
406
|
} else {
|
407
|
$confirmButton.style.boxShadow = 'none';
|
408
|
}
|
409
|
break;
|
410
|
|
411
|
case 'click':
|
412
|
var clickedOnModal = modal === target;
|
413
|
var clickedOnModalChild = _hasClass$isDescendant.isDescendant(modal, target);
|
414
|
|
415
|
// Ignore click outside if allowOutsideClick is false
|
416
|
if (!clickedOnModal && !clickedOnModalChild && modalIsVisible && !params.allowOutsideClick) {
|
417
|
break;
|
418
|
}
|
419
|
|
420
|
if (targetedConfirm && doneFunctionExists && modalIsVisible) {
|
421
|
handleConfirm(modal, params);
|
422
|
} else if (doneFunctionExists && modalIsVisible || targetedOverlay) {
|
423
|
handleCancel(modal, params);
|
424
|
} else if (_hasClass$isDescendant.isDescendant(modal, target) && target.tagName === 'BUTTON') {
|
425
|
sweetAlert.close();
|
426
|
}
|
427
|
break;
|
428
|
}
|
429
|
};
|
430
|
|
431
|
/*
|
432
|
* User clicked on "Confirm"/"OK"
|
433
|
*/
|
434
|
var handleConfirm = function handleConfirm(modal, params) {
|
435
|
var callbackValue = true;
|
436
|
|
437
|
if (_hasClass$isDescendant.hasClass(modal, 'show-input')) {
|
438
|
callbackValue = modal.querySelector('input').value;
|
439
|
|
440
|
if (!callbackValue) {
|
441
|
callbackValue = '';
|
442
|
}
|
443
|
}
|
444
|
|
445
|
params.doneFunction(callbackValue);
|
446
|
|
447
|
if (params.closeOnConfirm) {
|
448
|
sweetAlert.close();
|
449
|
}
|
450
|
// Disable cancel and confirm button if the parameter is true
|
451
|
if (params.showLoaderOnConfirm) {
|
452
|
sweetAlert.disableButtons();
|
453
|
}
|
454
|
};
|
455
|
|
456
|
/*
|
457
|
* User clicked on "Cancel"
|
458
|
*/
|
459
|
var handleCancel = function handleCancel(modal, params) {
|
460
|
// Check if callback function expects a parameter (to track cancel actions)
|
461
|
var functionAsStr = String(params.doneFunction).replace(/\s/g, '');
|
462
|
var functionHandlesCancel = functionAsStr.substring(0, 9) === 'function(' && functionAsStr.substring(9, 10) !== ')';
|
463
|
|
464
|
if (functionHandlesCancel) {
|
465
|
params.doneFunction(false);
|
466
|
}
|
467
|
|
468
|
if (params.closeOnCancel) {
|
469
|
sweetAlert.close();
|
470
|
}
|
471
|
};
|
472
|
|
473
|
exports['default'] = {
|
474
|
handleButton: handleButton,
|
475
|
handleConfirm: handleConfirm,
|
476
|
handleCancel: handleCancel
|
477
|
};
|
478
|
module.exports = exports['default'];
|
479
|
|
480
|
},{"./handle-dom":4,"./handle-swal-dom":6,"./utils":9}],4:[function(require,module,exports){
|
481
|
'use strict';
|
482
|
|
483
|
Object.defineProperty(exports, '__esModule', {
|
484
|
value: true
|
485
|
});
|
486
|
var hasClass = function hasClass(elem, className) {
|
487
|
return new RegExp(' ' + className + ' ').test(' ' + elem.className + ' ');
|
488
|
};
|
489
|
|
490
|
var addClass = function addClass(elem, className) {
|
491
|
if (!hasClass(elem, className)) {
|
492
|
elem.className += ' ' + className;
|
493
|
}
|
494
|
};
|
495
|
|
496
|
var removeClass = function removeClass(elem, className) {
|
497
|
var newClass = ' ' + elem.className.replace(/[\t\r\n]/g, ' ') + ' ';
|
498
|
if (hasClass(elem, className)) {
|
499
|
while (newClass.indexOf(' ' + className + ' ') >= 0) {
|
500
|
newClass = newClass.replace(' ' + className + ' ', ' ');
|
501
|
}
|
502
|
elem.className = newClass.replace(/^\s+|\s+$/g, '');
|
503
|
}
|
504
|
};
|
505
|
|
506
|
var escapeHtml = function escapeHtml(str) {
|
507
|
var div = document.createElement('div');
|
508
|
div.appendChild(document.createTextNode(str));
|
509
|
return div.innerHTML;
|
510
|
};
|
511
|
|
512
|
var _show = function _show(elem) {
|
513
|
elem.style.opacity = '';
|
514
|
elem.style.display = 'block';
|
515
|
};
|
516
|
|
517
|
var show = function show(elems) {
|
518
|
if (elems && !elems.length) {
|
519
|
return _show(elems);
|
520
|
}
|
521
|
for (var i = 0; i < elems.length; ++i) {
|
522
|
_show(elems[i]);
|
523
|
}
|
524
|
};
|
525
|
|
526
|
var _hide = function _hide(elem) {
|
527
|
elem.style.opacity = '';
|
528
|
elem.style.display = 'none';
|
529
|
};
|
530
|
|
531
|
var hide = function hide(elems) {
|
532
|
if (elems && !elems.length) {
|
533
|
return _hide(elems);
|
534
|
}
|
535
|
for (var i = 0; i < elems.length; ++i) {
|
536
|
_hide(elems[i]);
|
537
|
}
|
538
|
};
|
539
|
|
540
|
var isDescendant = function isDescendant(parent, child) {
|
541
|
var node = child.parentNode;
|
542
|
while (node !== null) {
|
543
|
if (node === parent) {
|
544
|
return true;
|
545
|
}
|
546
|
node = node.parentNode;
|
547
|
}
|
548
|
return false;
|
549
|
};
|
550
|
|
551
|
var getTopMargin = function getTopMargin(elem) {
|
552
|
elem.style.left = '-9999px';
|
553
|
elem.style.display = 'block';
|
554
|
|
555
|
var height = elem.clientHeight,
|
556
|
padding;
|
557
|
if (typeof getComputedStyle !== 'undefined') {
|
558
|
// IE 8
|
559
|
padding = parseInt(getComputedStyle(elem).getPropertyValue('padding-top'), 10);
|
560
|
} else {
|
561
|
padding = parseInt(elem.currentStyle.padding);
|
562
|
}
|
563
|
|
564
|
elem.style.left = '';
|
565
|
elem.style.display = 'none';
|
566
|
return '-' + parseInt((height + padding) / 2) + 'px';
|
567
|
};
|
568
|
|
569
|
var fadeIn = function fadeIn(elem, interval) {
|
570
|
if (+elem.style.opacity < 1) {
|
571
|
interval = interval || 16;
|
572
|
elem.style.opacity = 0;
|
573
|
elem.style.display = 'block';
|
574
|
var last = +new Date();
|
575
|
var tick = (function (_tick) {
|
576
|
function tick() {
|
577
|
return _tick.apply(this, arguments);
|
578
|
}
|
579
|
|
580
|
tick.toString = function () {
|
581
|
return _tick.toString();
|
582
|
};
|
583
|
|
584
|
return tick;
|
585
|
})(function () {
|
586
|
elem.style.opacity = +elem.style.opacity + (new Date() - last) / 100;
|
587
|
last = +new Date();
|
588
|
|
589
|
if (+elem.style.opacity < 1) {
|
590
|
setTimeout(tick, interval);
|
591
|
}
|
592
|
});
|
593
|
tick();
|
594
|
}
|
595
|
elem.style.display = 'block'; //fallback IE8
|
596
|
};
|
597
|
|
598
|
var fadeOut = function fadeOut(elem, interval) {
|
599
|
interval = interval || 16;
|
600
|
elem.style.opacity = 1;
|
601
|
var last = +new Date();
|
602
|
var tick = (function (_tick2) {
|
603
|
function tick() {
|
604
|
return _tick2.apply(this, arguments);
|
605
|
}
|
606
|
|
607
|
tick.toString = function () {
|
608
|
return _tick2.toString();
|
609
|
};
|
610
|
|
611
|
return tick;
|
612
|
})(function () {
|
613
|
elem.style.opacity = +elem.style.opacity - (new Date() - last) / 100;
|
614
|
last = +new Date();
|
615
|
|
616
|
if (+elem.style.opacity > 0) {
|
617
|
setTimeout(tick, interval);
|
618
|
} else {
|
619
|
elem.style.display = 'none';
|
620
|
}
|
621
|
});
|
622
|
tick();
|
623
|
};
|
624
|
|
625
|
var fireClick = function fireClick(node) {
|
626
|
// Taken from http://www.nonobtrusive.com/2011/11/29/programatically-fire-crossbrowser-click-event-with-javascript/
|
627
|
// Then fixed for today's Chrome browser.
|
628
|
if (typeof MouseEvent === 'function') {
|
629
|
// Up-to-date approach
|
630
|
var mevt = new MouseEvent('click', {
|
631
|
view: window,
|
632
|
bubbles: false,
|
633
|
cancelable: true
|
634
|
});
|
635
|
node.dispatchEvent(mevt);
|
636
|
} else if (document.createEvent) {
|
637
|
// Fallback
|
638
|
var evt = document.createEvent('MouseEvents');
|
639
|
evt.initEvent('click', false, false);
|
640
|
node.dispatchEvent(evt);
|
641
|
} else if (document.createEventObject) {
|
642
|
node.fireEvent('onclick');
|
643
|
} else if (typeof node.onclick === 'function') {
|
644
|
node.onclick();
|
645
|
}
|
646
|
};
|
647
|
|
648
|
var stopEventPropagation = function stopEventPropagation(e) {
|
649
|
// In particular, make sure the space bar doesn't scroll the main window.
|
650
|
if (typeof e.stopPropagation === 'function') {
|
651
|
e.stopPropagation();
|
652
|
e.preventDefault();
|
653
|
} else if (window.event && window.event.hasOwnProperty('cancelBubble')) {
|
654
|
window.event.cancelBubble = true;
|
655
|
}
|
656
|
};
|
657
|
|
658
|
exports.hasClass = hasClass;
|
659
|
exports.addClass = addClass;
|
660
|
exports.removeClass = removeClass;
|
661
|
exports.escapeHtml = escapeHtml;
|
662
|
exports._show = _show;
|
663
|
exports.show = show;
|
664
|
exports._hide = _hide;
|
665
|
exports.hide = hide;
|
666
|
exports.isDescendant = isDescendant;
|
667
|
exports.getTopMargin = getTopMargin;
|
668
|
exports.fadeIn = fadeIn;
|
669
|
exports.fadeOut = fadeOut;
|
670
|
exports.fireClick = fireClick;
|
671
|
exports.stopEventPropagation = stopEventPropagation;
|
672
|
|
673
|
},{}],5:[function(require,module,exports){
|
674
|
'use strict';
|
675
|
|
676
|
Object.defineProperty(exports, '__esModule', {
|
677
|
value: true
|
678
|
});
|
679
|
|
680
|
var _stopEventPropagation$fireClick = require('./handle-dom');
|
681
|
|
682
|
var _setFocusStyle = require('./handle-swal-dom');
|
683
|
|
684
|
var handleKeyDown = function handleKeyDown(event, params, modal) {
|
685
|
var e = event || window.event;
|
686
|
var keyCode = e.keyCode || e.which;
|
687
|
|
688
|
var $okButton = modal.querySelector('button.confirm');
|
689
|
var $cancelButton = modal.querySelector('button.cancel');
|
690
|
var $modalButtons = modal.querySelectorAll('button[tabindex]');
|
691
|
|
692
|
if ([9, 13, 32, 27].indexOf(keyCode) === -1) {
|
693
|
// Don't do work on keys we don't care about.
|
694
|
return;
|
695
|
}
|
696
|
|
697
|
var $targetElement = e.target || e.srcElement;
|
698
|
|
699
|
var btnIndex = -1; // Find the button - note, this is a nodelist, not an array.
|
700
|
for (var i = 0; i < $modalButtons.length; i++) {
|
701
|
if ($targetElement === $modalButtons[i]) {
|
702
|
btnIndex = i;
|
703
|
break;
|
704
|
}
|
705
|
}
|
706
|
|
707
|
if (keyCode === 9) {
|
708
|
// TAB
|
709
|
if (btnIndex === -1) {
|
710
|
// No button focused. Jump to the confirm button.
|
711
|
$targetElement = $okButton;
|
712
|
} else {
|
713
|
// Cycle to the next button
|
714
|
if (btnIndex === $modalButtons.length - 1) {
|
715
|
$targetElement = $modalButtons[0];
|
716
|
} else {
|
717
|
$targetElement = $modalButtons[btnIndex + 1];
|
718
|
}
|
719
|
}
|
720
|
|
721
|
_stopEventPropagation$fireClick.stopEventPropagation(e);
|
722
|
$targetElement.focus();
|
723
|
|
724
|
if (params.confirmButtonColor) {
|
725
|
_setFocusStyle.setFocusStyle($targetElement, params.confirmButtonColor);
|
726
|
}
|
727
|
} else {
|
728
|
if (keyCode === 13) {
|
729
|
if ($targetElement.tagName === 'INPUT') {
|
730
|
$targetElement = $okButton;
|
731
|
$okButton.focus();
|
732
|
}
|
733
|
|
734
|
if (btnIndex === -1) {
|
735
|
// ENTER/SPACE clicked outside of a button.
|
736
|
$targetElement = $okButton;
|
737
|
} else {
|
738
|
// Do nothing - let the browser handle it.
|
739
|
$targetElement = undefined;
|
740
|
}
|
741
|
} else if (keyCode === 27 && params.allowEscapeKey === true) {
|
742
|
$targetElement = $cancelButton;
|
743
|
_stopEventPropagation$fireClick.fireClick($targetElement, e);
|
744
|
} else {
|
745
|
// Fallback - let the browser handle it.
|
746
|
$targetElement = undefined;
|
747
|
}
|
748
|
}
|
749
|
};
|
750
|
|
751
|
exports['default'] = handleKeyDown;
|
752
|
module.exports = exports['default'];
|
753
|
|
754
|
},{"./handle-dom":4,"./handle-swal-dom":6}],6:[function(require,module,exports){
|
755
|
'use strict';
|
756
|
|
757
|
var _interopRequireWildcard = function (obj) { return obj && obj.__esModule ? obj : { 'default': obj }; };
|
758
|
|
759
|
Object.defineProperty(exports, '__esModule', {
|
760
|
value: true
|
761
|
});
|
762
|
|
763
|
var _hexToRgb = require('./utils');
|
764
|
|
765
|
var _removeClass$getTopMargin$fadeIn$show$addClass = require('./handle-dom');
|
766
|
|
767
|
var _defaultParams = require('./default-params');
|
768
|
|
769
|
var _defaultParams2 = _interopRequireWildcard(_defaultParams);
|
770
|
|
771
|
/*
|
772
|
* Add modal + overlay to DOM
|
773
|
*/
|
774
|
|
775
|
var _injectedHTML = require('./injected-html');
|
776
|
|
777
|
var _injectedHTML2 = _interopRequireWildcard(_injectedHTML);
|
778
|
|
779
|
var modalClass = '.sweet-alert';
|
780
|
var overlayClass = '.sweet-overlay';
|
781
|
|
782
|
var sweetAlertInitialize = function sweetAlertInitialize() {
|
783
|
var sweetWrap = document.createElement('div');
|
784
|
sweetWrap.innerHTML = _injectedHTML2['default'];
|
785
|
|
786
|
// Append elements to body
|
787
|
while (sweetWrap.firstChild) {
|
788
|
document.body.appendChild(sweetWrap.firstChild);
|
789
|
}
|
790
|
};
|
791
|
|
792
|
/*
|
793
|
* Get DOM element of modal
|
794
|
*/
|
795
|
var getModal = (function (_getModal) {
|
796
|
function getModal() {
|
797
|
return _getModal.apply(this, arguments);
|
798
|
}
|
799
|
|
800
|
getModal.toString = function () {
|
801
|
return _getModal.toString();
|
802
|
};
|
803
|
|
804
|
return getModal;
|
805
|
})(function () {
|
806
|
var $modal = document.querySelector(modalClass);
|
807
|
|
808
|
if (!$modal) {
|
809
|
sweetAlertInitialize();
|
810
|
$modal = getModal();
|
811
|
}
|
812
|
|
813
|
return $modal;
|
814
|
});
|
815
|
|
816
|
/*
|
817
|
* Get DOM element of input (in modal)
|
818
|
*/
|
819
|
var getInput = function getInput() {
|
820
|
var $modal = getModal();
|
821
|
if ($modal) {
|
822
|
return $modal.querySelector('input');
|
823
|
}
|
824
|
};
|
825
|
|
826
|
/*
|
827
|
* Get DOM element of overlay
|
828
|
*/
|
829
|
var getOverlay = function getOverlay() {
|
830
|
return document.querySelector(overlayClass);
|
831
|
};
|
832
|
|
833
|
/*
|
834
|
* Add box-shadow style to button (depending on its chosen bg-color)
|
835
|
*/
|
836
|
var setFocusStyle = function setFocusStyle($button, bgColor) {
|
837
|
var rgbColor = _hexToRgb.hexToRgb(bgColor);
|
838
|
$button.style.boxShadow = '0 0 2px rgba(' + rgbColor + ', 0.8), inset 0 0 0 1px rgba(0, 0, 0, 0.05)';
|
839
|
};
|
840
|
|
841
|
/*
|
842
|
* Animation when opening modal
|
843
|
*/
|
844
|
var openModal = function openModal(callback) {
|
845
|
var $modal = getModal();
|
846
|
_removeClass$getTopMargin$fadeIn$show$addClass.fadeIn(getOverlay(), 10);
|
847
|
_removeClass$getTopMargin$fadeIn$show$addClass.show($modal);
|
848
|
_removeClass$getTopMargin$fadeIn$show$addClass.addClass($modal, 'showSweetAlert');
|
849
|
_removeClass$getTopMargin$fadeIn$show$addClass.removeClass($modal, 'hideSweetAlert');
|
850
|
|
851
|
window.previousActiveElement = document.activeElement;
|
852
|
var $okButton = $modal.querySelector('button.confirm');
|
853
|
$okButton.focus();
|
854
|
|
855
|
setTimeout(function () {
|
856
|
_removeClass$getTopMargin$fadeIn$show$addClass.addClass($modal, 'visible');
|
857
|
}, 500);
|
858
|
|
859
|
var timer = $modal.getAttribute('data-timer');
|
860
|
|
861
|
if (timer !== 'null' && timer !== '') {
|
862
|
var timerCallback = callback;
|
863
|
$modal.timeout = setTimeout(function () {
|
864
|
var doneFunctionExists = (timerCallback || null) && $modal.getAttribute('data-has-done-function') === 'true';
|
865
|
if (doneFunctionExists) {
|
866
|
timerCallback(null);
|
867
|
} else {
|
868
|
sweetAlert.close();
|
869
|
}
|
870
|
}, timer);
|
871
|
}
|
872
|
};
|
873
|
|
874
|
/*
|
875
|
* Reset the styling of the input
|
876
|
* (for example if errors have been shown)
|
877
|
*/
|
878
|
var resetInput = function resetInput() {
|
879
|
var $modal = getModal();
|
880
|
var $input = getInput();
|
881
|
|
882
|
_removeClass$getTopMargin$fadeIn$show$addClass.removeClass($modal, 'show-input');
|
883
|
$input.value = _defaultParams2['default'].inputValue;
|
884
|
$input.setAttribute('type', _defaultParams2['default'].inputType);
|
885
|
$input.setAttribute('placeholder', _defaultParams2['default'].inputPlaceholder);
|
886
|
|
887
|
resetInputError();
|
888
|
};
|
889
|
|
890
|
var resetInputError = function resetInputError(event) {
|
891
|
// If press enter => ignore
|
892
|
if (event && event.keyCode === 13) {
|
893
|
return false;
|
894
|
}
|
895
|
|
896
|
var $modal = getModal();
|
897
|
|
898
|
var $errorIcon = $modal.querySelector('.sa-input-error');
|
899
|
_removeClass$getTopMargin$fadeIn$show$addClass.removeClass($errorIcon, 'show');
|
900
|
|
901
|
var $errorContainer = $modal.querySelector('.sa-error-container');
|
902
|
_removeClass$getTopMargin$fadeIn$show$addClass.removeClass($errorContainer, 'show');
|
903
|
};
|
904
|
|
905
|
/*
|
906
|
* Set "margin-top"-property on modal based on its computed height
|
907
|
*/
|
908
|
var fixVerticalPosition = function fixVerticalPosition() {
|
909
|
var $modal = getModal();
|
910
|
$modal.style.marginTop = _removeClass$getTopMargin$fadeIn$show$addClass.getTopMargin(getModal());
|
911
|
};
|
912
|
|
913
|
exports.sweetAlertInitialize = sweetAlertInitialize;
|
914
|
exports.getModal = getModal;
|
915
|
exports.getOverlay = getOverlay;
|
916
|
exports.getInput = getInput;
|
917
|
exports.setFocusStyle = setFocusStyle;
|
918
|
exports.openModal = openModal;
|
919
|
exports.resetInput = resetInput;
|
920
|
exports.resetInputError = resetInputError;
|
921
|
exports.fixVerticalPosition = fixVerticalPosition;
|
922
|
|
923
|
},{"./default-params":2,"./handle-dom":4,"./injected-html":7,"./utils":9}],7:[function(require,module,exports){
|
924
|
"use strict";
|
925
|
|
926
|
Object.defineProperty(exports, "__esModule", {
|
927
|
value: true
|
928
|
});
|
929
|
var injectedHTML =
|
930
|
|
931
|
// Dark overlay
|
932
|
"<div class=\"sweet-overlay\" tabIndex=\"-1\"></div>" +
|
933
|
|
934
|
// Modal
|
935
|
"<div class=\"sweet-alert\">" +
|
936
|
|
937
|
// Error icon
|
938
|
"<div class=\"sa-icon sa-error\">\n <span class=\"sa-x-mark\">\n <span class=\"sa-line sa-left\"></span>\n <span class=\"sa-line sa-right\"></span>\n </span>\n </div>" +
|
939
|
|
940
|
// Warning icon
|
941
|
"<div class=\"sa-icon sa-warning\">\n <span class=\"sa-body\"></span>\n <span class=\"sa-dot\"></span>\n </div>" +
|
942
|
|
943
|
// Info icon
|
944
|
"<div class=\"sa-icon sa-info\"></div>" +
|
945
|
|
946
|
// Success icon
|
947
|
"<div class=\"sa-icon sa-success\">\n <span class=\"sa-line sa-tip\"></span>\n <span class=\"sa-line sa-long\"></span>\n\n <div class=\"sa-placeholder\"></div>\n <div class=\"sa-fix\"></div>\n </div>" + "<div class=\"sa-icon sa-custom\"></div>" +
|
948
|
|
949
|
// Title, text and input
|
950
|
"<h2>Title</h2>\n <p>Text</p>\n <fieldset>\n <input type=\"text\" tabIndex=\"3\" />\n <div class=\"sa-input-error\"></div>\n </fieldset>" +
|
951
|
|
952
|
// Input errors
|
953
|
"<div class=\"sa-error-container\">\n <div class=\"icon\">!</div>\n <p>Not valid!</p>\n </div>" +
|
954
|
|
955
|
// Cancel and confirm buttons
|
956
|
"<div class=\"sa-button-container\">\n <button class=\"cancel\" tabIndex=\"2\">Cancel</button>\n <div class=\"sa-confirm-button-container\">\n <button class=\"confirm\" tabIndex=\"1\">OK</button>" +
|
957
|
|
958
|
// Loading animation
|
959
|
"<div class=\"la-ball-fall\">\n <div></div>\n <div></div>\n <div></div>\n </div>\n </div>\n </div>" +
|
960
|
|
961
|
// End of modal
|
962
|
"</div>";
|
963
|
|
964
|
exports["default"] = injectedHTML;
|
965
|
module.exports = exports["default"];
|
966
|
|
967
|
},{}],8:[function(require,module,exports){
|
968
|
'use strict';
|
969
|
|
970
|
Object.defineProperty(exports, '__esModule', {
|
971
|
value: true
|
972
|
});
|
973
|
|
974
|
var _isIE8 = require('./utils');
|
975
|
|
976
|
var _getModal$getInput$setFocusStyle = require('./handle-swal-dom');
|
977
|
|
978
|
var _hasClass$addClass$removeClass$escapeHtml$_show$show$_hide$hide = require('./handle-dom');
|
979
|
|
980
|
var alertTypes = ['error', 'warning', 'info', 'success', 'input', 'prompt'];
|
981
|
|
982
|
/*
|
983
|
* Set type, text and actions on modal
|
984
|
*/
|
985
|
var setParameters = function setParameters(params) {
|
986
|
var modal = _getModal$getInput$setFocusStyle.getModal();
|
987
|
|
988
|
var $title = modal.querySelector('h2');
|
989
|
var $text = modal.querySelector('p');
|
990
|
var $cancelBtn = modal.querySelector('button.cancel');
|
991
|
var $confirmBtn = modal.querySelector('button.confirm');
|
992
|
|
993
|
/*
|
994
|
* Title
|
995
|
*/
|
996
|
$title.innerHTML = params.html ? params.title : _hasClass$addClass$removeClass$escapeHtml$_show$show$_hide$hide.escapeHtml(params.title).split('\n').join('<br>');
|
997
|
|
998
|
/*
|
999
|
* Text
|
1000
|
*/
|
1001
|
$text.innerHTML = params.html ? params.text : _hasClass$addClass$removeClass$escapeHtml$_show$show$_hide$hide.escapeHtml(params.text || '').split('\n').join('<br>');
|
1002
|
if (params.text) _hasClass$addClass$removeClass$escapeHtml$_show$show$_hide$hide.show($text);
|
1003
|
|
1004
|
/*
|
1005
|
* Custom class
|
1006
|
*/
|
1007
|
if (params.customClass) {
|
1008
|
_hasClass$addClass$removeClass$escapeHtml$_show$show$_hide$hide.addClass(modal, params.customClass);
|
1009
|
modal.setAttribute('data-custom-class', params.customClass);
|
1010
|
} else {
|
1011
|
// Find previously set classes and remove them
|
1012
|
var customClass = modal.getAttribute('data-custom-class');
|
1013
|
_hasClass$addClass$removeClass$escapeHtml$_show$show$_hide$hide.removeClass(modal, customClass);
|
1014
|
modal.setAttribute('data-custom-class', '');
|
1015
|
}
|
1016
|
|
1017
|
/*
|
1018
|
* Icon
|
1019
|
*/
|
1020
|
_hasClass$addClass$removeClass$escapeHtml$_show$show$_hide$hide.hide(modal.querySelectorAll('.sa-icon'));
|
1021
|
|
1022
|
if (params.type && !_isIE8.isIE8()) {
|
1023
|
var _ret = (function () {
|
1024
|
|
1025
|
var validType = false;
|
1026
|
|
1027
|
for (var i = 0; i < alertTypes.length; i++) {
|
1028
|
if (params.type === alertTypes[i]) {
|
1029
|
validType = true;
|
1030
|
break;
|
1031
|
}
|
1032
|
}
|
1033
|
|
1034
|
if (!validType) {
|
1035
|
logStr('Unknown alert type: ' + params.type);
|
1036
|
return {
|
1037
|
v: false
|
1038
|
};
|
1039
|
}
|
1040
|
|
1041
|
var typesWithIcons = ['success', 'error', 'warning', 'info'];
|
1042
|
var $icon = undefined;
|
1043
|
|
1044
|
if (typesWithIcons.indexOf(params.type) !== -1) {
|
1045
|
$icon = modal.querySelector('.sa-icon.' + 'sa-' + params.type);
|
1046
|
_hasClass$addClass$removeClass$escapeHtml$_show$show$_hide$hide.show($icon);
|
1047
|
}
|
1048
|
|
1049
|
var $input = _getModal$getInput$setFocusStyle.getInput();
|
1050
|
|
1051
|
// Animate icon
|
1052
|
switch (params.type) {
|
1053
|
|
1054
|
case 'success':
|
1055
|
_hasClass$addClass$removeClass$escapeHtml$_show$show$_hide$hide.addClass($icon, 'animate');
|
1056
|
_hasClass$addClass$removeClass$escapeHtml$_show$show$_hide$hide.addClass($icon.querySelector('.sa-tip'), 'animateSuccessTip');
|
1057
|
_hasClass$addClass$removeClass$escapeHtml$_show$show$_hide$hide.addClass($icon.querySelector('.sa-long'), 'animateSuccessLong');
|
1058
|
break;
|
1059
|
|
1060
|
case 'error':
|
1061
|
_hasClass$addClass$removeClass$escapeHtml$_show$show$_hide$hide.addClass($icon, 'animateErrorIcon');
|
1062
|
_hasClass$addClass$removeClass$escapeHtml$_show$show$_hide$hide.addClass($icon.querySelector('.sa-x-mark'), 'animateXMark');
|
1063
|
break;
|
1064
|
|
1065
|
case 'warning':
|
1066
|
_hasClass$addClass$removeClass$escapeHtml$_show$show$_hide$hide.addClass($icon, 'pulseWarning');
|
1067
|
_hasClass$addClass$removeClass$escapeHtml$_show$show$_hide$hide.addClass($icon.querySelector('.sa-body'), 'pulseWarningIns');
|
1068
|
_hasClass$addClass$removeClass$escapeHtml$_show$show$_hide$hide.addClass($icon.querySelector('.sa-dot'), 'pulseWarningIns');
|
1069
|
break;
|
1070
|
|
1071
|
case 'input':
|
1072
|
case 'prompt':
|
1073
|
$input.setAttribute('type', params.inputType);
|
1074
|
$input.value = params.inputValue;
|
1075
|
$input.setAttribute('placeholder', params.inputPlaceholder);
|
1076
|
_hasClass$addClass$removeClass$escapeHtml$_show$show$_hide$hide.addClass(modal, 'show-input');
|
1077
|
setTimeout(function () {
|
1078
|
$input.focus();
|
1079
|
$input.addEventListener('keyup', swal.resetInputError);
|
1080
|
}, 400);
|
1081
|
break;
|
1082
|
}
|
1083
|
})();
|
1084
|
|
1085
|
if (typeof _ret === 'object') {
|
1086
|
return _ret.v;
|
1087
|
}
|
1088
|
}
|
1089
|
|
1090
|
/*
|
1091
|
* Custom image
|
1092
|
*/
|
1093
|
if (params.imageUrl) {
|
1094
|
var $customIcon = modal.querySelector('.sa-icon.sa-custom');
|
1095
|
|
1096
|
$customIcon.style.backgroundImage = 'url(' + params.imageUrl + ')';
|
1097
|
_hasClass$addClass$removeClass$escapeHtml$_show$show$_hide$hide.show($customIcon);
|
1098
|
|
1099
|
var _imgWidth = 80;
|
1100
|
var _imgHeight = 80;
|
1101
|
|
1102
|
if (params.imageSize) {
|
1103
|
var dimensions = params.imageSize.toString().split('x');
|
1104
|
var imgWidth = dimensions[0];
|
1105
|
var imgHeight = dimensions[1];
|
1106
|
|
1107
|
if (!imgWidth || !imgHeight) {
|
1108
|
logStr('Parameter imageSize expects value with format WIDTHxHEIGHT, got ' + params.imageSize);
|
1109
|
} else {
|
1110
|
_imgWidth = imgWidth;
|
1111
|
_imgHeight = imgHeight;
|
1112
|
}
|
1113
|
}
|
1114
|
|
1115
|
$customIcon.setAttribute('style', $customIcon.getAttribute('style') + 'width:' + _imgWidth + 'px; height:' + _imgHeight + 'px');
|
1116
|
}
|
1117
|
|
1118
|
/*
|
1119
|
* Show cancel button?
|
1120
|
*/
|
1121
|
modal.setAttribute('data-has-cancel-button', params.showCancelButton);
|
1122
|
if (params.showCancelButton) {
|
1123
|
$cancelBtn.style.display = 'inline-block';
|
1124
|
} else {
|
1125
|
_hasClass$addClass$removeClass$escapeHtml$_show$show$_hide$hide.hide($cancelBtn);
|
1126
|
}
|
1127
|
|
1128
|
/*
|
1129
|
* Show confirm button?
|
1130
|
*/
|
1131
|
modal.setAttribute('data-has-confirm-button', params.showConfirmButton);
|
1132
|
if (params.showConfirmButton) {
|
1133
|
$confirmBtn.style.display = 'inline-block';
|
1134
|
} else {
|
1135
|
_hasClass$addClass$removeClass$escapeHtml$_show$show$_hide$hide.hide($confirmBtn);
|
1136
|
}
|
1137
|
|
1138
|
/*
|
1139
|
* Custom text on cancel/confirm buttons
|
1140
|
*/
|
1141
|
if (params.cancelButtonText) {
|
1142
|
$cancelBtn.innerHTML = _hasClass$addClass$removeClass$escapeHtml$_show$show$_hide$hide.escapeHtml(params.cancelButtonText);
|
1143
|
}
|
1144
|
if (params.confirmButtonText) {
|
1145
|
$confirmBtn.innerHTML = _hasClass$addClass$removeClass$escapeHtml$_show$show$_hide$hide.escapeHtml(params.confirmButtonText);
|
1146
|
}
|
1147
|
|
1148
|
/*
|
1149
|
* Custom color on confirm button
|
1150
|
*/
|
1151
|
if (params.confirmButtonColor) {
|
1152
|
// Set confirm button to selected background color
|
1153
|
$confirmBtn.style.backgroundColor = params.confirmButtonColor;
|
1154
|
|
1155
|
// Set the confirm button color to the loading ring
|
1156
|
$confirmBtn.style.borderLeftColor = params.confirmLoadingButtonColor;
|
1157
|
$confirmBtn.style.borderRightColor = params.confirmLoadingButtonColor;
|
1158
|
|
1159
|
// Set box-shadow to default focused button
|
1160
|
_getModal$getInput$setFocusStyle.setFocusStyle($confirmBtn, params.confirmButtonColor);
|
1161
|
}
|
1162
|
|
1163
|
/*
|
1164
|
* Allow outside click
|
1165
|
*/
|
1166
|
modal.setAttribute('data-allow-outside-click', params.allowOutsideClick);
|
1167
|
|
1168
|
/*
|
1169
|
* Callback function
|
1170
|
*/
|
1171
|
var hasDoneFunction = params.doneFunction ? true : false;
|
1172
|
modal.setAttribute('data-has-done-function', hasDoneFunction);
|
1173
|
|
1174
|
/*
|
1175
|
* Animation
|
1176
|
*/
|
1177
|
if (!params.animation) {
|
1178
|
modal.setAttribute('data-animation', 'none');
|
1179
|
} else if (typeof params.animation === 'string') {
|
1180
|
modal.setAttribute('data-animation', params.animation); // Custom animation
|
1181
|
} else {
|
1182
|
modal.setAttribute('data-animation', 'pop');
|
1183
|
}
|
1184
|
|
1185
|
/*
|
1186
|
* Timer
|
1187
|
*/
|
1188
|
modal.setAttribute('data-timer', params.timer);
|
1189
|
};
|
1190
|
|
1191
|
exports['default'] = setParameters;
|
1192
|
module.exports = exports['default'];
|
1193
|
|
1194
|
},{"./handle-dom":4,"./handle-swal-dom":6,"./utils":9}],9:[function(require,module,exports){
|
1195
|
'use strict';
|
1196
|
|
1197
|
Object.defineProperty(exports, '__esModule', {
|
1198
|
value: true
|
1199
|
});
|
1200
|
/*
|
1201
|
* Allow user to pass their own params
|
1202
|
*/
|
1203
|
var extend = function extend(a, b) {
|
1204
|
for (var key in b) {
|
1205
|
if (b.hasOwnProperty(key)) {
|
1206
|
a[key] = b[key];
|
1207
|
}
|
1208
|
}
|
1209
|
return a;
|
1210
|
};
|
1211
|
|
1212
|
/*
|
1213
|
* Convert HEX codes to RGB values (#000000 -> rgb(0,0,0))
|
1214
|
*/
|
1215
|
var hexToRgb = function hexToRgb(hex) {
|
1216
|
var result = /^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(hex);
|
1217
|
return result ? parseInt(result[1], 16) + ', ' + parseInt(result[2], 16) + ', ' + parseInt(result[3], 16) : null;
|
1218
|
};
|
1219
|
|
1220
|
/*
|
1221
|
* Check if the user is using Internet Explorer 8 (for fallbacks)
|
1222
|
*/
|
1223
|
var isIE8 = function isIE8() {
|
1224
|
return window.attachEvent && !window.addEventListener;
|
1225
|
};
|
1226
|
|
1227
|
/*
|
1228
|
* IE compatible logging for developers
|
1229
|
*/
|
1230
|
var logStr = function logStr(string) {
|
1231
|
if (window.console) {
|
1232
|
// IE...
|
1233
|
window.console.log('SweetAlert: ' + string);
|
1234
|
}
|
1235
|
};
|
1236
|
|
1237
|
/*
|
1238
|
* Set hover, active and focus-states for buttons
|
1239
|
* (source: http://www.sitepoint.com/javascript-generate-lighter-darker-color)
|
1240
|
*/
|
1241
|
var colorLuminance = function colorLuminance(hex, lum) {
|
1242
|
// Validate hex string
|
1243
|
hex = String(hex).replace(/[^0-9a-f]/gi, '');
|
1244
|
if (hex.length < 6) {
|
1245
|
hex = hex[0] + hex[0] + hex[1] + hex[1] + hex[2] + hex[2];
|
1246
|
}
|
1247
|
lum = lum || 0;
|
1248
|
|
1249
|
// Convert to decimal and change luminosity
|
1250
|
var rgb = '#';
|
1251
|
var c;
|
1252
|
var i;
|
1253
|
|
1254
|
for (i = 0; i < 3; i++) {
|
1255
|
c = parseInt(hex.substr(i * 2, 2), 16);
|
1256
|
c = Math.round(Math.min(Math.max(0, c + c * lum), 255)).toString(16);
|
1257
|
rgb += ('00' + c).substr(c.length);
|
1258
|
}
|
1259
|
|
1260
|
return rgb;
|
1261
|
};
|
1262
|
|
1263
|
exports.extend = extend;
|
1264
|
exports.hexToRgb = hexToRgb;
|
1265
|
exports.isIE8 = isIE8;
|
1266
|
exports.logStr = logStr;
|
1267
|
exports.colorLuminance = colorLuminance;
|
1268
|
|
1269
|
},{}]},{},[1])
|
1270
|
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIj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ICs9ICgnMDAnICsgYykuc3Vic3RyKGMubGVuZ3RoKTtcbiAgfVxuXG4gIHJldHVybiByZ2I7XG59O1xuXG5cbmV4cG9ydCB7XG4gIGV4dGVuZCxcbiAgaGV4VG9SZ2IsXG4gIGlzSUU4LFxuICBsb2dTdHIsXG4gIGNvbG9yTHVtaW5hbmNlXG59O1xuIl19
|
1271
|
|
1272
|
|
1273
|
/*
|
1274
|
* Use SweetAlert with RequireJS
|
1275
|
*/
|
1276
|
|
1277
|
if (typeof define === 'function' && define.amd) {
|
1278
|
define(function () {
|
1279
|
return sweetAlert;
|
1280
|
});
|
1281
|
} else if (typeof module !== 'undefined' && module.exports) {
|
1282
|
module.exports = sweetAlert;
|
1283
|
}
|
1284
|
|
1285
|
})(window, document);
|