mirror of https://github.com/ColorlibHQ/AdminLTE
update plugin files
parent
0c3f82bc58
commit
78a6403f2b
|
@ -12,16 +12,16 @@
|
||||||
//! moment.js locale configuration
|
//! moment.js locale configuration
|
||||||
|
|
||||||
var symbolMap = {
|
var symbolMap = {
|
||||||
'1': '1',
|
1: '1',
|
||||||
'2': '2',
|
2: '2',
|
||||||
'3': '3',
|
3: '3',
|
||||||
'4': '4',
|
4: '4',
|
||||||
'5': '5',
|
5: '5',
|
||||||
'6': '6',
|
6: '6',
|
||||||
'7': '7',
|
7: '7',
|
||||||
'8': '8',
|
8: '8',
|
||||||
'9': '9',
|
9: '9',
|
||||||
'0': '0',
|
0: '0',
|
||||||
},
|
},
|
||||||
pluralForm = function (n) {
|
pluralForm = function (n) {
|
||||||
return n === 0
|
return n === 0
|
||||||
|
|
|
@ -56,8 +56,8 @@
|
||||||
yy: '%d سنوات',
|
yy: '%d سنوات',
|
||||||
},
|
},
|
||||||
week: {
|
week: {
|
||||||
dow: 6, // Saturday is the first day of the week.
|
dow: 1, // Monday is the first day of the week.
|
||||||
doy: 12, // The week that contains Jan 12th is the first week of the year.
|
doy: 4, // The week that contains Jan 4th is the first week of the year.
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
@ -12,16 +12,16 @@
|
||||||
//! moment.js locale configuration
|
//! moment.js locale configuration
|
||||||
|
|
||||||
var symbolMap = {
|
var symbolMap = {
|
||||||
'1': '١',
|
1: '١',
|
||||||
'2': '٢',
|
2: '٢',
|
||||||
'3': '٣',
|
3: '٣',
|
||||||
'4': '٤',
|
4: '٤',
|
||||||
'5': '٥',
|
5: '٥',
|
||||||
'6': '٦',
|
6: '٦',
|
||||||
'7': '٧',
|
7: '٧',
|
||||||
'8': '٨',
|
8: '٨',
|
||||||
'9': '٩',
|
9: '٩',
|
||||||
'0': '٠',
|
0: '٠',
|
||||||
},
|
},
|
||||||
numberMap = {
|
numberMap = {
|
||||||
'١': '1',
|
'١': '1',
|
||||||
|
|
|
@ -14,16 +14,16 @@
|
||||||
//! moment.js locale configuration
|
//! moment.js locale configuration
|
||||||
|
|
||||||
var symbolMap = {
|
var symbolMap = {
|
||||||
'1': '١',
|
1: '١',
|
||||||
'2': '٢',
|
2: '٢',
|
||||||
'3': '٣',
|
3: '٣',
|
||||||
'4': '٤',
|
4: '٤',
|
||||||
'5': '٥',
|
5: '٥',
|
||||||
'6': '٦',
|
6: '٦',
|
||||||
'7': '٧',
|
7: '٧',
|
||||||
'8': '٨',
|
8: '٨',
|
||||||
'9': '٩',
|
9: '٩',
|
||||||
'0': '٠',
|
0: '٠',
|
||||||
},
|
},
|
||||||
numberMap = {
|
numberMap = {
|
||||||
'١': '1',
|
'١': '1',
|
||||||
|
|
|
@ -60,6 +60,8 @@
|
||||||
hh: '%d часа',
|
hh: '%d часа',
|
||||||
d: 'ден',
|
d: 'ден',
|
||||||
dd: '%d дена',
|
dd: '%d дена',
|
||||||
|
w: 'седмица',
|
||||||
|
ww: '%d седмици',
|
||||||
M: 'месец',
|
M: 'месец',
|
||||||
MM: '%d месеца',
|
MM: '%d месеца',
|
||||||
y: 'година',
|
y: 'година',
|
||||||
|
|
|
@ -0,0 +1,139 @@
|
||||||
|
//! moment.js locale configuration
|
||||||
|
//! locale : Bengali (Bangladesh) [bn-bd]
|
||||||
|
//! author : Asraf Hossain Patoary : https://github.com/ashwoolford
|
||||||
|
|
||||||
|
;(function (global, factory) {
|
||||||
|
typeof exports === 'object' && typeof module !== 'undefined'
|
||||||
|
&& typeof require === 'function' ? factory(require('../moment')) :
|
||||||
|
typeof define === 'function' && define.amd ? define(['../moment'], factory) :
|
||||||
|
factory(global.moment)
|
||||||
|
}(this, (function (moment) { 'use strict';
|
||||||
|
|
||||||
|
//! moment.js locale configuration
|
||||||
|
|
||||||
|
var symbolMap = {
|
||||||
|
1: '১',
|
||||||
|
2: '২',
|
||||||
|
3: '৩',
|
||||||
|
4: '৪',
|
||||||
|
5: '৫',
|
||||||
|
6: '৬',
|
||||||
|
7: '৭',
|
||||||
|
8: '৮',
|
||||||
|
9: '৯',
|
||||||
|
0: '০',
|
||||||
|
},
|
||||||
|
numberMap = {
|
||||||
|
'১': '1',
|
||||||
|
'২': '2',
|
||||||
|
'৩': '3',
|
||||||
|
'৪': '4',
|
||||||
|
'৫': '5',
|
||||||
|
'৬': '6',
|
||||||
|
'৭': '7',
|
||||||
|
'৮': '8',
|
||||||
|
'৯': '9',
|
||||||
|
'০': '0',
|
||||||
|
};
|
||||||
|
|
||||||
|
var bnBd = moment.defineLocale('bn-bd', {
|
||||||
|
months: 'জানুয়ারি_ফেব্রুয়ারি_মার্চ_এপ্রিল_মে_জুন_জুলাই_আগস্ট_সেপ্টেম্বর_অক্টোবর_নভেম্বর_ডিসেম্বর'.split(
|
||||||
|
'_'
|
||||||
|
),
|
||||||
|
monthsShort: 'জানু_ফেব্রু_মার্চ_এপ্রিল_মে_জুন_জুলাই_আগস্ট_সেপ্ট_অক্টো_নভে_ডিসে'.split(
|
||||||
|
'_'
|
||||||
|
),
|
||||||
|
weekdays: 'রবিবার_সোমবার_মঙ্গলবার_বুধবার_বৃহস্পতিবার_শুক্রবার_শনিবার'.split(
|
||||||
|
'_'
|
||||||
|
),
|
||||||
|
weekdaysShort: 'রবি_সোম_মঙ্গল_বুধ_বৃহস্পতি_শুক্র_শনি'.split('_'),
|
||||||
|
weekdaysMin: 'রবি_সোম_মঙ্গল_বুধ_বৃহ_শুক্র_শনি'.split('_'),
|
||||||
|
longDateFormat: {
|
||||||
|
LT: 'A h:mm সময়',
|
||||||
|
LTS: 'A h:mm:ss সময়',
|
||||||
|
L: 'DD/MM/YYYY',
|
||||||
|
LL: 'D MMMM YYYY',
|
||||||
|
LLL: 'D MMMM YYYY, A h:mm সময়',
|
||||||
|
LLLL: 'dddd, D MMMM YYYY, A h:mm সময়',
|
||||||
|
},
|
||||||
|
calendar: {
|
||||||
|
sameDay: '[আজ] LT',
|
||||||
|
nextDay: '[আগামীকাল] LT',
|
||||||
|
nextWeek: 'dddd, LT',
|
||||||
|
lastDay: '[গতকাল] LT',
|
||||||
|
lastWeek: '[গত] dddd, LT',
|
||||||
|
sameElse: 'L',
|
||||||
|
},
|
||||||
|
relativeTime: {
|
||||||
|
future: '%s পরে',
|
||||||
|
past: '%s আগে',
|
||||||
|
s: 'কয়েক সেকেন্ড',
|
||||||
|
ss: '%d সেকেন্ড',
|
||||||
|
m: 'এক মিনিট',
|
||||||
|
mm: '%d মিনিট',
|
||||||
|
h: 'এক ঘন্টা',
|
||||||
|
hh: '%d ঘন্টা',
|
||||||
|
d: 'এক দিন',
|
||||||
|
dd: '%d দিন',
|
||||||
|
M: 'এক মাস',
|
||||||
|
MM: '%d মাস',
|
||||||
|
y: 'এক বছর',
|
||||||
|
yy: '%d বছর',
|
||||||
|
},
|
||||||
|
preparse: function (string) {
|
||||||
|
return string.replace(/[১২৩৪৫৬৭৮৯০]/g, function (match) {
|
||||||
|
return numberMap[match];
|
||||||
|
});
|
||||||
|
},
|
||||||
|
postformat: function (string) {
|
||||||
|
return string.replace(/\d/g, function (match) {
|
||||||
|
return symbolMap[match];
|
||||||
|
});
|
||||||
|
},
|
||||||
|
|
||||||
|
meridiemParse: /রাত|ভোর|সকাল|দুপুর|বিকাল|সন্ধ্যা|রাত/,
|
||||||
|
meridiemHour: function (hour, meridiem) {
|
||||||
|
if (hour === 12) {
|
||||||
|
hour = 0;
|
||||||
|
}
|
||||||
|
if (meridiem === 'রাত') {
|
||||||
|
return hour < 4 ? hour : hour + 12;
|
||||||
|
} else if (meridiem === 'ভোর') {
|
||||||
|
return hour;
|
||||||
|
} else if (meridiem === 'সকাল') {
|
||||||
|
return hour;
|
||||||
|
} else if (meridiem === 'দুপুর') {
|
||||||
|
return hour >= 3 ? hour : hour + 12;
|
||||||
|
} else if (meridiem === 'বিকাল') {
|
||||||
|
return hour + 12;
|
||||||
|
} else if (meridiem === 'সন্ধ্যা') {
|
||||||
|
return hour + 12;
|
||||||
|
}
|
||||||
|
},
|
||||||
|
|
||||||
|
meridiem: function (hour, minute, isLower) {
|
||||||
|
if (hour < 4) {
|
||||||
|
return 'রাত';
|
||||||
|
} else if (hour < 6) {
|
||||||
|
return 'ভোর';
|
||||||
|
} else if (hour < 12) {
|
||||||
|
return 'সকাল';
|
||||||
|
} else if (hour < 15) {
|
||||||
|
return 'দুপুর';
|
||||||
|
} else if (hour < 18) {
|
||||||
|
return 'বিকাল';
|
||||||
|
} else if (hour < 20) {
|
||||||
|
return 'সন্ধ্যা';
|
||||||
|
} else {
|
||||||
|
return 'রাত';
|
||||||
|
}
|
||||||
|
},
|
||||||
|
week: {
|
||||||
|
dow: 0, // Sunday is the first day of the week.
|
||||||
|
doy: 6, // The week that contains Jan 6th is the first week of the year.
|
||||||
|
},
|
||||||
|
});
|
||||||
|
|
||||||
|
return bnBd;
|
||||||
|
|
||||||
|
})));
|
|
@ -12,16 +12,16 @@
|
||||||
//! moment.js locale configuration
|
//! moment.js locale configuration
|
||||||
|
|
||||||
var symbolMap = {
|
var symbolMap = {
|
||||||
'1': '১',
|
1: '১',
|
||||||
'2': '২',
|
2: '২',
|
||||||
'3': '৩',
|
3: '৩',
|
||||||
'4': '৪',
|
4: '৪',
|
||||||
'5': '৫',
|
5: '৫',
|
||||||
'6': '৬',
|
6: '৬',
|
||||||
'7': '৭',
|
7: '৭',
|
||||||
'8': '৮',
|
8: '৮',
|
||||||
'9': '৯',
|
9: '৯',
|
||||||
'0': '০',
|
0: '০',
|
||||||
},
|
},
|
||||||
numberMap = {
|
numberMap = {
|
||||||
'১': '1',
|
'১': '1',
|
||||||
|
|
|
@ -12,16 +12,16 @@
|
||||||
//! moment.js locale configuration
|
//! moment.js locale configuration
|
||||||
|
|
||||||
var symbolMap = {
|
var symbolMap = {
|
||||||
'1': '༡',
|
1: '༡',
|
||||||
'2': '༢',
|
2: '༢',
|
||||||
'3': '༣',
|
3: '༣',
|
||||||
'4': '༤',
|
4: '༤',
|
||||||
'5': '༥',
|
5: '༥',
|
||||||
'6': '༦',
|
6: '༦',
|
||||||
'7': '༧',
|
7: '༧',
|
||||||
'8': '༨',
|
8: '༨',
|
||||||
'9': '༩',
|
9: '༩',
|
||||||
'0': '༠',
|
0: '༠',
|
||||||
},
|
},
|
||||||
numberMap = {
|
numberMap = {
|
||||||
'༡': '1',
|
'༡': '1',
|
||||||
|
|
|
@ -95,6 +95,8 @@
|
||||||
hh: '%d horas',
|
hh: '%d horas',
|
||||||
d: 'un día',
|
d: 'un día',
|
||||||
dd: '%d días',
|
dd: '%d días',
|
||||||
|
w: 'una semana',
|
||||||
|
ww: '%d semanas',
|
||||||
M: 'un mes',
|
M: 'un mes',
|
||||||
MM: '%d meses',
|
MM: '%d meses',
|
||||||
y: 'un año',
|
y: 'un año',
|
||||||
|
|
|
@ -0,0 +1,117 @@
|
||||||
|
//! moment.js locale configuration
|
||||||
|
//! locale : Spanish (Mexico) [es-mx]
|
||||||
|
//! author : JC Franco : https://github.com/jcfranco
|
||||||
|
|
||||||
|
;(function (global, factory) {
|
||||||
|
typeof exports === 'object' && typeof module !== 'undefined'
|
||||||
|
&& typeof require === 'function' ? factory(require('../moment')) :
|
||||||
|
typeof define === 'function' && define.amd ? define(['../moment'], factory) :
|
||||||
|
factory(global.moment)
|
||||||
|
}(this, (function (moment) { 'use strict';
|
||||||
|
|
||||||
|
//! moment.js locale configuration
|
||||||
|
|
||||||
|
var monthsShortDot = 'ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.'.split(
|
||||||
|
'_'
|
||||||
|
),
|
||||||
|
monthsShort = 'ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic'.split('_'),
|
||||||
|
monthsParse = [
|
||||||
|
/^ene/i,
|
||||||
|
/^feb/i,
|
||||||
|
/^mar/i,
|
||||||
|
/^abr/i,
|
||||||
|
/^may/i,
|
||||||
|
/^jun/i,
|
||||||
|
/^jul/i,
|
||||||
|
/^ago/i,
|
||||||
|
/^sep/i,
|
||||||
|
/^oct/i,
|
||||||
|
/^nov/i,
|
||||||
|
/^dic/i,
|
||||||
|
],
|
||||||
|
monthsRegex = /^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;
|
||||||
|
|
||||||
|
var esMx = moment.defineLocale('es-mx', {
|
||||||
|
months: 'enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre'.split(
|
||||||
|
'_'
|
||||||
|
),
|
||||||
|
monthsShort: function (m, format) {
|
||||||
|
if (!m) {
|
||||||
|
return monthsShortDot;
|
||||||
|
} else if (/-MMM-/.test(format)) {
|
||||||
|
return monthsShort[m.month()];
|
||||||
|
} else {
|
||||||
|
return monthsShortDot[m.month()];
|
||||||
|
}
|
||||||
|
},
|
||||||
|
monthsRegex: monthsRegex,
|
||||||
|
monthsShortRegex: monthsRegex,
|
||||||
|
monthsStrictRegex: /^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,
|
||||||
|
monthsShortStrictRegex: /^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,
|
||||||
|
monthsParse: monthsParse,
|
||||||
|
longMonthsParse: monthsParse,
|
||||||
|
shortMonthsParse: monthsParse,
|
||||||
|
weekdays: 'domingo_lunes_martes_miércoles_jueves_viernes_sábado'.split('_'),
|
||||||
|
weekdaysShort: 'dom._lun._mar._mié._jue._vie._sáb.'.split('_'),
|
||||||
|
weekdaysMin: 'do_lu_ma_mi_ju_vi_sá'.split('_'),
|
||||||
|
weekdaysParseExact: true,
|
||||||
|
longDateFormat: {
|
||||||
|
LT: 'H:mm',
|
||||||
|
LTS: 'H:mm:ss',
|
||||||
|
L: 'DD/MM/YYYY',
|
||||||
|
LL: 'D [de] MMMM [de] YYYY',
|
||||||
|
LLL: 'D [de] MMMM [de] YYYY H:mm',
|
||||||
|
LLLL: 'dddd, D [de] MMMM [de] YYYY H:mm',
|
||||||
|
},
|
||||||
|
calendar: {
|
||||||
|
sameDay: function () {
|
||||||
|
return '[hoy a la' + (this.hours() !== 1 ? 's' : '') + '] LT';
|
||||||
|
},
|
||||||
|
nextDay: function () {
|
||||||
|
return '[mañana a la' + (this.hours() !== 1 ? 's' : '') + '] LT';
|
||||||
|
},
|
||||||
|
nextWeek: function () {
|
||||||
|
return 'dddd [a la' + (this.hours() !== 1 ? 's' : '') + '] LT';
|
||||||
|
},
|
||||||
|
lastDay: function () {
|
||||||
|
return '[ayer a la' + (this.hours() !== 1 ? 's' : '') + '] LT';
|
||||||
|
},
|
||||||
|
lastWeek: function () {
|
||||||
|
return (
|
||||||
|
'[el] dddd [pasado a la' +
|
||||||
|
(this.hours() !== 1 ? 's' : '') +
|
||||||
|
'] LT'
|
||||||
|
);
|
||||||
|
},
|
||||||
|
sameElse: 'L',
|
||||||
|
},
|
||||||
|
relativeTime: {
|
||||||
|
future: 'en %s',
|
||||||
|
past: 'hace %s',
|
||||||
|
s: 'unos segundos',
|
||||||
|
ss: '%d segundos',
|
||||||
|
m: 'un minuto',
|
||||||
|
mm: '%d minutos',
|
||||||
|
h: 'una hora',
|
||||||
|
hh: '%d horas',
|
||||||
|
d: 'un día',
|
||||||
|
dd: '%d días',
|
||||||
|
w: 'una semana',
|
||||||
|
ww: '%d semanas',
|
||||||
|
M: 'un mes',
|
||||||
|
MM: '%d meses',
|
||||||
|
y: 'un año',
|
||||||
|
yy: '%d años',
|
||||||
|
},
|
||||||
|
dayOfMonthOrdinalParse: /\d{1,2}º/,
|
||||||
|
ordinal: '%dº',
|
||||||
|
week: {
|
||||||
|
dow: 0, // Sunday is the first day of the week.
|
||||||
|
doy: 4, // The week that contains Jan 4th is the first week of the year.
|
||||||
|
},
|
||||||
|
invalidDate: 'Fecha inválida',
|
||||||
|
});
|
||||||
|
|
||||||
|
return esMx;
|
||||||
|
|
||||||
|
})));
|
|
@ -97,6 +97,8 @@
|
||||||
hh: '%d horas',
|
hh: '%d horas',
|
||||||
d: 'un día',
|
d: 'un día',
|
||||||
dd: '%d días',
|
dd: '%d días',
|
||||||
|
w: 'una semana',
|
||||||
|
ww: '%d semanas',
|
||||||
M: 'un mes',
|
M: 'un mes',
|
||||||
MM: '%d meses',
|
MM: '%d meses',
|
||||||
y: 'un año',
|
y: 'un año',
|
||||||
|
|
|
@ -96,6 +96,8 @@
|
||||||
hh: '%d horas',
|
hh: '%d horas',
|
||||||
d: 'un día',
|
d: 'un día',
|
||||||
dd: '%d días',
|
dd: '%d días',
|
||||||
|
w: 'una semana',
|
||||||
|
ww: '%d semanas',
|
||||||
M: 'un mes',
|
M: 'un mes',
|
||||||
MM: '%d meses',
|
MM: '%d meses',
|
||||||
y: 'un año',
|
y: 'un año',
|
||||||
|
|
|
@ -12,16 +12,16 @@
|
||||||
//! moment.js locale configuration
|
//! moment.js locale configuration
|
||||||
|
|
||||||
var symbolMap = {
|
var symbolMap = {
|
||||||
'1': '۱',
|
1: '۱',
|
||||||
'2': '۲',
|
2: '۲',
|
||||||
'3': '۳',
|
3: '۳',
|
||||||
'4': '۴',
|
4: '۴',
|
||||||
'5': '۵',
|
5: '۵',
|
||||||
'6': '۶',
|
6: '۶',
|
||||||
'7': '۷',
|
7: '۷',
|
||||||
'8': '۸',
|
8: '۸',
|
||||||
'9': '۹',
|
9: '۹',
|
||||||
'0': '۰',
|
0: '۰',
|
||||||
},
|
},
|
||||||
numberMap = {
|
numberMap = {
|
||||||
'۱': '1',
|
'۱': '1',
|
||||||
|
|
|
@ -74,6 +74,8 @@
|
||||||
hh: '%d heures',
|
hh: '%d heures',
|
||||||
d: 'un jour',
|
d: 'un jour',
|
||||||
dd: '%d jours',
|
dd: '%d jours',
|
||||||
|
w: 'une semaine',
|
||||||
|
ww: '%d semaines',
|
||||||
M: 'un mois',
|
M: 'un mois',
|
||||||
MM: '%d mois',
|
MM: '%d mois',
|
||||||
y: 'un an',
|
y: 'un an',
|
||||||
|
|
|
@ -12,16 +12,16 @@
|
||||||
//! moment.js locale configuration
|
//! moment.js locale configuration
|
||||||
|
|
||||||
var symbolMap = {
|
var symbolMap = {
|
||||||
'1': '૧',
|
1: '૧',
|
||||||
'2': '૨',
|
2: '૨',
|
||||||
'3': '૩',
|
3: '૩',
|
||||||
'4': '૪',
|
4: '૪',
|
||||||
'5': '૫',
|
5: '૫',
|
||||||
'6': '૬',
|
6: '૬',
|
||||||
'7': '૭',
|
7: '૭',
|
||||||
'8': '૮',
|
8: '૮',
|
||||||
'9': '૯',
|
9: '૯',
|
||||||
'0': '૦',
|
0: '૦',
|
||||||
},
|
},
|
||||||
numberMap = {
|
numberMap = {
|
||||||
'૧': '1',
|
'૧': '1',
|
||||||
|
|
|
@ -12,16 +12,16 @@
|
||||||
//! moment.js locale configuration
|
//! moment.js locale configuration
|
||||||
|
|
||||||
var symbolMap = {
|
var symbolMap = {
|
||||||
'1': '१',
|
1: '१',
|
||||||
'2': '२',
|
2: '२',
|
||||||
'3': '३',
|
3: '३',
|
||||||
'4': '४',
|
4: '४',
|
||||||
'5': '५',
|
5: '५',
|
||||||
'6': '६',
|
6: '६',
|
||||||
'7': '७',
|
7: '७',
|
||||||
'8': '८',
|
8: '८',
|
||||||
'9': '९',
|
9: '९',
|
||||||
'0': '०',
|
0: '०',
|
||||||
},
|
},
|
||||||
numberMap = {
|
numberMap = {
|
||||||
'१': '1',
|
'१': '1',
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
//! moment.js locale configuration
|
//! moment.js locale configuration
|
||||||
//! locale : Hungarian [hu]
|
//! locale : Hungarian [hu]
|
||||||
//! author : Adam Brunner : https://github.com/adambrunner
|
//! author : Adam Brunner : https://github.com/adambrunner
|
||||||
|
//! author : Peter Viszt : https://github.com/passatgt
|
||||||
|
|
||||||
;(function (global, factory) {
|
;(function (global, factory) {
|
||||||
typeof exports === 'object' && typeof module !== 'undefined'
|
typeof exports === 'object' && typeof module !== 'undefined'
|
||||||
|
@ -61,9 +62,10 @@
|
||||||
months: 'január_február_március_április_május_június_július_augusztus_szeptember_október_november_december'.split(
|
months: 'január_február_március_április_május_június_július_augusztus_szeptember_október_november_december'.split(
|
||||||
'_'
|
'_'
|
||||||
),
|
),
|
||||||
monthsShort: 'jan_feb_márc_ápr_máj_jún_júl_aug_szept_okt_nov_dec'.split(
|
monthsShort: 'jan._feb._márc._ápr._máj._jún._júl._aug._szept._okt._nov._dec.'.split(
|
||||||
'_'
|
'_'
|
||||||
),
|
),
|
||||||
|
monthsParseExact: true,
|
||||||
weekdays: 'vasárnap_hétfő_kedd_szerda_csütörtök_péntek_szombat'.split('_'),
|
weekdays: 'vasárnap_hétfő_kedd_szerda_csütörtök_péntek_szombat'.split('_'),
|
||||||
weekdaysShort: 'vas_hét_kedd_sze_csüt_pén_szo'.split('_'),
|
weekdaysShort: 'vas_hét_kedd_sze_csüt_pén_szo'.split('_'),
|
||||||
weekdaysMin: 'v_h_k_sze_cs_p_szo'.split('_'),
|
weekdaysMin: 'v_h_k_sze_cs_p_szo'.split('_'),
|
||||||
|
|
|
@ -97,6 +97,8 @@
|
||||||
hh: '%d ore',
|
hh: '%d ore',
|
||||||
d: 'un giorno',
|
d: 'un giorno',
|
||||||
dd: '%d giorni',
|
dd: '%d giorni',
|
||||||
|
w: 'una settimana',
|
||||||
|
ww: '%d settimane',
|
||||||
M: 'un mese',
|
M: 'un mese',
|
||||||
MM: '%d mesi',
|
MM: '%d mesi',
|
||||||
y: 'un anno',
|
y: 'un anno',
|
||||||
|
|
|
@ -12,16 +12,16 @@
|
||||||
//! moment.js locale configuration
|
//! moment.js locale configuration
|
||||||
|
|
||||||
var symbolMap = {
|
var symbolMap = {
|
||||||
'1': '១',
|
1: '១',
|
||||||
'2': '២',
|
2: '២',
|
||||||
'3': '៣',
|
3: '៣',
|
||||||
'4': '៤',
|
4: '៤',
|
||||||
'5': '៥',
|
5: '៥',
|
||||||
'6': '៦',
|
6: '៦',
|
||||||
'7': '៧',
|
7: '៧',
|
||||||
'8': '៨',
|
8: '៨',
|
||||||
'9': '៩',
|
9: '៩',
|
||||||
'0': '០',
|
0: '០',
|
||||||
},
|
},
|
||||||
numberMap = {
|
numberMap = {
|
||||||
'១': '1',
|
'១': '1',
|
||||||
|
|
|
@ -12,16 +12,16 @@
|
||||||
//! moment.js locale configuration
|
//! moment.js locale configuration
|
||||||
|
|
||||||
var symbolMap = {
|
var symbolMap = {
|
||||||
'1': '೧',
|
1: '೧',
|
||||||
'2': '೨',
|
2: '೨',
|
||||||
'3': '೩',
|
3: '೩',
|
||||||
'4': '೪',
|
4: '೪',
|
||||||
'5': '೫',
|
5: '೫',
|
||||||
'6': '೬',
|
6: '೬',
|
||||||
'7': '೭',
|
7: '೭',
|
||||||
'8': '೮',
|
8: '೮',
|
||||||
'9': '೯',
|
9: '೯',
|
||||||
'0': '೦',
|
0: '೦',
|
||||||
},
|
},
|
||||||
numberMap = {
|
numberMap = {
|
||||||
'೧': '1',
|
'೧': '1',
|
||||||
|
|
|
@ -12,16 +12,16 @@
|
||||||
//! moment.js locale configuration
|
//! moment.js locale configuration
|
||||||
|
|
||||||
var symbolMap = {
|
var symbolMap = {
|
||||||
'1': '١',
|
1: '١',
|
||||||
'2': '٢',
|
2: '٢',
|
||||||
'3': '٣',
|
3: '٣',
|
||||||
'4': '٤',
|
4: '٤',
|
||||||
'5': '٥',
|
5: '٥',
|
||||||
'6': '٦',
|
6: '٦',
|
||||||
'7': '٧',
|
7: '٧',
|
||||||
'8': '٨',
|
8: '٨',
|
||||||
'9': '٩',
|
9: '٩',
|
||||||
'0': '٠',
|
0: '٠',
|
||||||
},
|
},
|
||||||
numberMap = {
|
numberMap = {
|
||||||
'١': '1',
|
'١': '1',
|
||||||
|
|
|
@ -13,16 +13,16 @@
|
||||||
//! moment.js locale configuration
|
//! moment.js locale configuration
|
||||||
|
|
||||||
var symbolMap = {
|
var symbolMap = {
|
||||||
'1': '१',
|
1: '१',
|
||||||
'2': '२',
|
2: '२',
|
||||||
'3': '३',
|
3: '३',
|
||||||
'4': '४',
|
4: '४',
|
||||||
'5': '५',
|
5: '५',
|
||||||
'6': '६',
|
6: '६',
|
||||||
'7': '७',
|
7: '७',
|
||||||
'8': '८',
|
8: '८',
|
||||||
'9': '९',
|
9: '९',
|
||||||
'0': '०',
|
0: '०',
|
||||||
},
|
},
|
||||||
numberMap = {
|
numberMap = {
|
||||||
'१': '1',
|
'१': '1',
|
||||||
|
|
|
@ -14,16 +14,16 @@
|
||||||
//! moment.js locale configuration
|
//! moment.js locale configuration
|
||||||
|
|
||||||
var symbolMap = {
|
var symbolMap = {
|
||||||
'1': '၁',
|
1: '၁',
|
||||||
'2': '၂',
|
2: '၂',
|
||||||
'3': '၃',
|
3: '၃',
|
||||||
'4': '၄',
|
4: '၄',
|
||||||
'5': '၅',
|
5: '၅',
|
||||||
'6': '၆',
|
6: '၆',
|
||||||
'7': '၇',
|
7: '၇',
|
||||||
'8': '၈',
|
8: '၈',
|
||||||
'9': '၉',
|
9: '၉',
|
||||||
'0': '၀',
|
0: '၀',
|
||||||
},
|
},
|
||||||
numberMap = {
|
numberMap = {
|
||||||
'၁': '1',
|
'၁': '1',
|
||||||
|
|
|
@ -52,6 +52,8 @@
|
||||||
hh: '%d timer',
|
hh: '%d timer',
|
||||||
d: 'en dag',
|
d: 'en dag',
|
||||||
dd: '%d dager',
|
dd: '%d dager',
|
||||||
|
w: 'en uke',
|
||||||
|
ww: '%d uker',
|
||||||
M: 'en måned',
|
M: 'en måned',
|
||||||
MM: '%d måneder',
|
MM: '%d måneder',
|
||||||
y: 'ett år',
|
y: 'ett år',
|
||||||
|
|
|
@ -12,16 +12,16 @@
|
||||||
//! moment.js locale configuration
|
//! moment.js locale configuration
|
||||||
|
|
||||||
var symbolMap = {
|
var symbolMap = {
|
||||||
'1': '१',
|
1: '१',
|
||||||
'2': '२',
|
2: '२',
|
||||||
'3': '३',
|
3: '३',
|
||||||
'4': '४',
|
4: '४',
|
||||||
'5': '५',
|
5: '५',
|
||||||
'6': '६',
|
6: '६',
|
||||||
'7': '७',
|
7: '७',
|
||||||
'8': '८',
|
8: '८',
|
||||||
'9': '९',
|
9: '९',
|
||||||
'0': '०',
|
0: '०',
|
||||||
},
|
},
|
||||||
numberMap = {
|
numberMap = {
|
||||||
'१': '1',
|
'१': '1',
|
||||||
|
|
|
@ -90,6 +90,8 @@
|
||||||
hh: '%d uur',
|
hh: '%d uur',
|
||||||
d: 'één dag',
|
d: 'één dag',
|
||||||
dd: '%d dagen',
|
dd: '%d dagen',
|
||||||
|
w: 'één week',
|
||||||
|
ww: '%d weken',
|
||||||
M: 'één maand',
|
M: 'één maand',
|
||||||
MM: '%d maanden',
|
MM: '%d maanden',
|
||||||
y: 'één jaar',
|
y: 'één jaar',
|
||||||
|
|
|
@ -51,6 +51,8 @@
|
||||||
hh: '%d timar',
|
hh: '%d timar',
|
||||||
d: 'ein dag',
|
d: 'ein dag',
|
||||||
dd: '%d dagar',
|
dd: '%d dagar',
|
||||||
|
w: 'ei veke',
|
||||||
|
ww: '%d veker',
|
||||||
M: 'ein månad',
|
M: 'ein månad',
|
||||||
MM: '%d månader',
|
MM: '%d månader',
|
||||||
y: 'eit år',
|
y: 'eit år',
|
||||||
|
|
|
@ -12,16 +12,16 @@
|
||||||
//! moment.js locale configuration
|
//! moment.js locale configuration
|
||||||
|
|
||||||
var symbolMap = {
|
var symbolMap = {
|
||||||
'1': '੧',
|
1: '੧',
|
||||||
'2': '੨',
|
2: '੨',
|
||||||
'3': '੩',
|
3: '੩',
|
||||||
'4': '੪',
|
4: '੪',
|
||||||
'5': '੫',
|
5: '੫',
|
||||||
'6': '੬',
|
6: '੬',
|
||||||
'7': '੭',
|
7: '੭',
|
||||||
'8': '੮',
|
8: '੮',
|
||||||
'9': '੯',
|
9: '੯',
|
||||||
'0': '੦',
|
0: '੦',
|
||||||
},
|
},
|
||||||
numberMap = {
|
numberMap = {
|
||||||
'੧': '1',
|
'੧': '1',
|
||||||
|
|
|
@ -16,7 +16,21 @@
|
||||||
),
|
),
|
||||||
monthsSubjective = 'stycznia_lutego_marca_kwietnia_maja_czerwca_lipca_sierpnia_września_października_listopada_grudnia'.split(
|
monthsSubjective = 'stycznia_lutego_marca_kwietnia_maja_czerwca_lipca_sierpnia_września_października_listopada_grudnia'.split(
|
||||||
'_'
|
'_'
|
||||||
);
|
),
|
||||||
|
monthsParse = [
|
||||||
|
/^sty/i,
|
||||||
|
/^lut/i,
|
||||||
|
/^mar/i,
|
||||||
|
/^kwi/i,
|
||||||
|
/^maj/i,
|
||||||
|
/^cze/i,
|
||||||
|
/^lip/i,
|
||||||
|
/^sie/i,
|
||||||
|
/^wrz/i,
|
||||||
|
/^paź/i,
|
||||||
|
/^lis/i,
|
||||||
|
/^gru/i,
|
||||||
|
];
|
||||||
function plural(n) {
|
function plural(n) {
|
||||||
return n % 10 < 5 && n % 10 > 1 && ~~(n / 10) % 10 !== 1;
|
return n % 10 < 5 && n % 10 > 1 && ~~(n / 10) % 10 !== 1;
|
||||||
}
|
}
|
||||||
|
@ -33,6 +47,8 @@
|
||||||
return withoutSuffix ? 'godzina' : 'godzinę';
|
return withoutSuffix ? 'godzina' : 'godzinę';
|
||||||
case 'hh':
|
case 'hh':
|
||||||
return result + (plural(number) ? 'godziny' : 'godzin');
|
return result + (plural(number) ? 'godziny' : 'godzin');
|
||||||
|
case 'ww':
|
||||||
|
return result + (plural(number) ? 'tygodnie' : 'tygodni');
|
||||||
case 'MM':
|
case 'MM':
|
||||||
return result + (plural(number) ? 'miesiące' : 'miesięcy');
|
return result + (plural(number) ? 'miesiące' : 'miesięcy');
|
||||||
case 'yy':
|
case 'yy':
|
||||||
|
@ -44,17 +60,6 @@
|
||||||
months: function (momentToFormat, format) {
|
months: function (momentToFormat, format) {
|
||||||
if (!momentToFormat) {
|
if (!momentToFormat) {
|
||||||
return monthsNominative;
|
return monthsNominative;
|
||||||
} else if (format === '') {
|
|
||||||
// Hack: if format empty we know this is used to generate
|
|
||||||
// RegExp by moment. Give then back both valid forms of months
|
|
||||||
// in RegExp ready format.
|
|
||||||
return (
|
|
||||||
'(' +
|
|
||||||
monthsSubjective[momentToFormat.month()] +
|
|
||||||
'|' +
|
|
||||||
monthsNominative[momentToFormat.month()] +
|
|
||||||
')'
|
|
||||||
);
|
|
||||||
} else if (/D MMMM/.test(format)) {
|
} else if (/D MMMM/.test(format)) {
|
||||||
return monthsSubjective[momentToFormat.month()];
|
return monthsSubjective[momentToFormat.month()];
|
||||||
} else {
|
} else {
|
||||||
|
@ -62,6 +67,9 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
monthsShort: 'sty_lut_mar_kwi_maj_cze_lip_sie_wrz_paź_lis_gru'.split('_'),
|
monthsShort: 'sty_lut_mar_kwi_maj_cze_lip_sie_wrz_paź_lis_gru'.split('_'),
|
||||||
|
monthsParse: monthsParse,
|
||||||
|
longMonthsParse: monthsParse,
|
||||||
|
shortMonthsParse: monthsParse,
|
||||||
weekdays: 'niedziela_poniedziałek_wtorek_środa_czwartek_piątek_sobota'.split(
|
weekdays: 'niedziela_poniedziałek_wtorek_środa_czwartek_piątek_sobota'.split(
|
||||||
'_'
|
'_'
|
||||||
),
|
),
|
||||||
|
@ -122,6 +130,8 @@
|
||||||
hh: translate,
|
hh: translate,
|
||||||
d: '1 dzień',
|
d: '1 dzień',
|
||||||
dd: '%d dni',
|
dd: '%d dni',
|
||||||
|
w: 'tydzień',
|
||||||
|
ww: translate,
|
||||||
M: 'miesiąc',
|
M: 'miesiąc',
|
||||||
MM: translate,
|
MM: translate,
|
||||||
y: 'rok',
|
y: 'rok',
|
||||||
|
|
|
@ -60,6 +60,7 @@
|
||||||
},
|
},
|
||||||
dayOfMonthOrdinalParse: /\d{1,2}º/,
|
dayOfMonthOrdinalParse: /\d{1,2}º/,
|
||||||
ordinal: '%dº',
|
ordinal: '%dº',
|
||||||
|
invalidDate: 'Data inválida',
|
||||||
});
|
});
|
||||||
|
|
||||||
return ptBr;
|
return ptBr;
|
||||||
|
|
|
@ -53,6 +53,8 @@
|
||||||
hh: '%d horas',
|
hh: '%d horas',
|
||||||
d: 'um dia',
|
d: 'um dia',
|
||||||
dd: '%d dias',
|
dd: '%d dias',
|
||||||
|
w: 'uma semana',
|
||||||
|
ww: '%d semanas',
|
||||||
M: 'um mês',
|
M: 'um mês',
|
||||||
MM: '%d meses',
|
MM: '%d meses',
|
||||||
y: 'um ano',
|
y: 'um ano',
|
||||||
|
|
|
@ -19,6 +19,7 @@
|
||||||
mm: 'minute',
|
mm: 'minute',
|
||||||
hh: 'ore',
|
hh: 'ore',
|
||||||
dd: 'zile',
|
dd: 'zile',
|
||||||
|
ww: 'săptămâni',
|
||||||
MM: 'luni',
|
MM: 'luni',
|
||||||
yy: 'ani',
|
yy: 'ani',
|
||||||
},
|
},
|
||||||
|
@ -67,6 +68,8 @@
|
||||||
hh: relativeTimeWithPlural,
|
hh: relativeTimeWithPlural,
|
||||||
d: 'o zi',
|
d: 'o zi',
|
||||||
dd: relativeTimeWithPlural,
|
dd: relativeTimeWithPlural,
|
||||||
|
w: 'o săptămână',
|
||||||
|
ww: relativeTimeWithPlural,
|
||||||
M: 'o lună',
|
M: 'o lună',
|
||||||
MM: relativeTimeWithPlural,
|
MM: relativeTimeWithPlural,
|
||||||
y: 'un an',
|
y: 'un an',
|
||||||
|
|
|
@ -27,6 +27,7 @@
|
||||||
mm: withoutSuffix ? 'минута_минуты_минут' : 'минуту_минуты_минут',
|
mm: withoutSuffix ? 'минута_минуты_минут' : 'минуту_минуты_минут',
|
||||||
hh: 'час_часа_часов',
|
hh: 'час_часа_часов',
|
||||||
dd: 'день_дня_дней',
|
dd: 'день_дня_дней',
|
||||||
|
ww: 'неделя_недели_недель',
|
||||||
MM: 'месяц_месяца_месяцев',
|
MM: 'месяц_месяца_месяцев',
|
||||||
yy: 'год_года_лет',
|
yy: 'год_года_лет',
|
||||||
};
|
};
|
||||||
|
@ -167,6 +168,8 @@
|
||||||
hh: relativeTimeWithPlural,
|
hh: relativeTimeWithPlural,
|
||||||
d: 'день',
|
d: 'день',
|
||||||
dd: relativeTimeWithPlural,
|
dd: relativeTimeWithPlural,
|
||||||
|
w: 'неделя',
|
||||||
|
ww: relativeTimeWithPlural,
|
||||||
M: 'месяц',
|
M: 'месяц',
|
||||||
MM: relativeTimeWithPlural,
|
MM: relativeTimeWithPlural,
|
||||||
y: 'год',
|
y: 'год',
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
//! moment.js locale configuration
|
//! moment.js locale configuration
|
||||||
//! locale : Serbian Cyrillic [sr-cyrl]
|
//! locale : Serbian Cyrillic [sr-cyrl]
|
||||||
//! author : Milan Janačković<milanjanackovic@gmail.com> : https://github.com/milan-j
|
//! author : Milan Janačković<milanjanackovic@gmail.com> : https://github.com/milan-j
|
||||||
|
//! author : Stefan Crnjaković <stefan@hotmail.rs> : https://github.com/crnjakovic
|
||||||
|
|
||||||
;(function (global, factory) {
|
;(function (global, factory) {
|
||||||
typeof exports === 'object' && typeof module !== 'undefined'
|
typeof exports === 'object' && typeof module !== 'undefined'
|
||||||
|
@ -59,10 +60,10 @@
|
||||||
longDateFormat: {
|
longDateFormat: {
|
||||||
LT: 'H:mm',
|
LT: 'H:mm',
|
||||||
LTS: 'H:mm:ss',
|
LTS: 'H:mm:ss',
|
||||||
L: 'DD.MM.YYYY',
|
L: 'D. M. YYYY.',
|
||||||
LL: 'D. MMMM YYYY',
|
LL: 'D. MMMM YYYY.',
|
||||||
LLL: 'D. MMMM YYYY H:mm',
|
LLL: 'D. MMMM YYYY. H:mm',
|
||||||
LLLL: 'dddd, D. MMMM YYYY H:mm',
|
LLLL: 'dddd, D. MMMM YYYY. H:mm',
|
||||||
},
|
},
|
||||||
calendar: {
|
calendar: {
|
||||||
sameDay: '[данас у] LT',
|
sameDay: '[данас у] LT',
|
||||||
|
@ -117,7 +118,7 @@
|
||||||
ordinal: '%d.',
|
ordinal: '%d.',
|
||||||
week: {
|
week: {
|
||||||
dow: 1, // Monday is the first day of the week.
|
dow: 1, // Monday is the first day of the week.
|
||||||
doy: 7, // The week that contains Jan 7th is the first week of the year.
|
doy: 7, // The week that contains Jan 1st is the first week of the year.
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
//! moment.js locale configuration
|
//! moment.js locale configuration
|
||||||
//! locale : Serbian [sr]
|
//! locale : Serbian [sr]
|
||||||
//! author : Milan Janačković<milanjanackovic@gmail.com> : https://github.com/milan-j
|
//! author : Milan Janačković<milanjanackovic@gmail.com> : https://github.com/milan-j
|
||||||
|
//! author : Stefan Crnjaković <stefan@hotmail.rs> : https://github.com/crnjakovic
|
||||||
|
|
||||||
;(function (global, factory) {
|
;(function (global, factory) {
|
||||||
typeof exports === 'object' && typeof module !== 'undefined'
|
typeof exports === 'object' && typeof module !== 'undefined'
|
||||||
|
@ -61,10 +62,10 @@
|
||||||
longDateFormat: {
|
longDateFormat: {
|
||||||
LT: 'H:mm',
|
LT: 'H:mm',
|
||||||
LTS: 'H:mm:ss',
|
LTS: 'H:mm:ss',
|
||||||
L: 'DD.MM.YYYY',
|
L: 'D. M. YYYY.',
|
||||||
LL: 'D. MMMM YYYY',
|
LL: 'D. MMMM YYYY.',
|
||||||
LLL: 'D. MMMM YYYY H:mm',
|
LLL: 'D. MMMM YYYY. H:mm',
|
||||||
LLLL: 'dddd, D. MMMM YYYY H:mm',
|
LLLL: 'dddd, D. MMMM YYYY. H:mm',
|
||||||
},
|
},
|
||||||
calendar: {
|
calendar: {
|
||||||
sameDay: '[danas u] LT',
|
sameDay: '[danas u] LT',
|
||||||
|
|
|
@ -12,16 +12,16 @@
|
||||||
//! moment.js locale configuration
|
//! moment.js locale configuration
|
||||||
|
|
||||||
var symbolMap = {
|
var symbolMap = {
|
||||||
'1': '௧',
|
1: '௧',
|
||||||
'2': '௨',
|
2: '௨',
|
||||||
'3': '௩',
|
3: '௩',
|
||||||
'4': '௪',
|
4: '௪',
|
||||||
'5': '௫',
|
5: '௫',
|
||||||
'6': '௬',
|
6: '௬',
|
||||||
'7': '௭',
|
7: '௭',
|
||||||
'8': '௮',
|
8: '௮',
|
||||||
'9': '௯',
|
9: '௯',
|
||||||
'0': '௦',
|
0: '௦',
|
||||||
},
|
},
|
||||||
numberMap = {
|
numberMap = {
|
||||||
'௧': '1',
|
'௧': '1',
|
||||||
|
|
|
@ -37,9 +37,14 @@
|
||||||
};
|
};
|
||||||
|
|
||||||
var tg = moment.defineLocale('tg', {
|
var tg = moment.defineLocale('tg', {
|
||||||
months: 'январ_феврал_март_апрел_май_июн_июл_август_сентябр_октябр_ноябр_декабр'.split(
|
months: {
|
||||||
'_'
|
format: 'январи_феврали_марти_апрели_майи_июни_июли_августи_сентябри_октябри_ноябри_декабри'.split(
|
||||||
),
|
'_'
|
||||||
|
),
|
||||||
|
standalone: 'январ_феврал_март_апрел_май_июн_июл_август_сентябр_октябр_ноябр_декабр'.split(
|
||||||
|
'_'
|
||||||
|
),
|
||||||
|
},
|
||||||
monthsShort: 'янв_фев_мар_апр_май_июн_июл_авг_сен_окт_ноя_дек'.split('_'),
|
monthsShort: 'янв_фев_мар_апр_май_июн_июл_авг_сен_окт_ноя_дек'.split('_'),
|
||||||
weekdays: 'якшанбе_душанбе_сешанбе_чоршанбе_панҷшанбе_ҷумъа_шанбе'.split(
|
weekdays: 'якшанбе_душанбе_сешанбе_чоршанбе_панҷшанбе_ҷумъа_шанбе'.split(
|
||||||
'_'
|
'_'
|
||||||
|
@ -49,14 +54,14 @@
|
||||||
longDateFormat: {
|
longDateFormat: {
|
||||||
LT: 'HH:mm',
|
LT: 'HH:mm',
|
||||||
LTS: 'HH:mm:ss',
|
LTS: 'HH:mm:ss',
|
||||||
L: 'DD/MM/YYYY',
|
L: 'DD.MM.YYYY',
|
||||||
LL: 'D MMMM YYYY',
|
LL: 'D MMMM YYYY',
|
||||||
LLL: 'D MMMM YYYY HH:mm',
|
LLL: 'D MMMM YYYY HH:mm',
|
||||||
LLLL: 'dddd, D MMMM YYYY HH:mm',
|
LLLL: 'dddd, D MMMM YYYY HH:mm',
|
||||||
},
|
},
|
||||||
calendar: {
|
calendar: {
|
||||||
sameDay: '[Имрӯз соати] LT',
|
sameDay: '[Имрӯз соати] LT',
|
||||||
nextDay: '[Пагоҳ соати] LT',
|
nextDay: '[Фардо соати] LT',
|
||||||
lastDay: '[Дирӯз соати] LT',
|
lastDay: '[Дирӯз соати] LT',
|
||||||
nextWeek: 'dddd[и] [ҳафтаи оянда соати] LT',
|
nextWeek: 'dddd[и] [ҳафтаи оянда соати] LT',
|
||||||
lastWeek: 'dddd[и] [ҳафтаи гузашта соати] LT',
|
lastWeek: 'dddd[и] [ҳафтаи гузашта соати] LT',
|
||||||
|
|
|
@ -61,6 +61,8 @@
|
||||||
hh: '%d ชั่วโมง',
|
hh: '%d ชั่วโมง',
|
||||||
d: '1 วัน',
|
d: '1 วัน',
|
||||||
dd: '%d วัน',
|
dd: '%d วัน',
|
||||||
|
w: '1 สัปดาห์',
|
||||||
|
ww: '%d สัปดาห์',
|
||||||
M: '1 เดือน',
|
M: '1 เดือน',
|
||||||
MM: '%d เดือน',
|
MM: '%d เดือน',
|
||||||
y: '1 ปี',
|
y: '1 ปี',
|
||||||
|
|
|
@ -81,6 +81,8 @@
|
||||||
hh: '%d saat',
|
hh: '%d saat',
|
||||||
d: 'bir gün',
|
d: 'bir gün',
|
||||||
dd: '%d gün',
|
dd: '%d gün',
|
||||||
|
w: 'bir hafta',
|
||||||
|
ww: '%d hafta',
|
||||||
M: 'bir ay',
|
M: 'bir ay',
|
||||||
MM: '%d ay',
|
MM: '%d ay',
|
||||||
y: 'bir yıl',
|
y: 'bir yıl',
|
||||||
|
|
|
@ -68,6 +68,8 @@
|
||||||
hh: '%d giờ',
|
hh: '%d giờ',
|
||||||
d: 'một ngày',
|
d: 'một ngày',
|
||||||
dd: '%d ngày',
|
dd: '%d ngày',
|
||||||
|
w: 'một tuần',
|
||||||
|
ww: '%d tuần',
|
||||||
M: 'một tháng',
|
M: 'một tháng',
|
||||||
MM: '%d tháng',
|
MM: '%d tháng',
|
||||||
y: 'một năm',
|
y: 'một năm',
|
||||||
|
|
|
@ -112,6 +112,8 @@
|
||||||
hh: '%d 小时',
|
hh: '%d 小时',
|
||||||
d: '1 天',
|
d: '1 天',
|
||||||
dd: '%d 天',
|
dd: '%d 天',
|
||||||
|
w: '1 周',
|
||||||
|
ww: '%d 周',
|
||||||
M: '1 个月',
|
M: '1 个月',
|
||||||
MM: '%d 个月',
|
MM: '%d 个月',
|
||||||
y: '1 年',
|
y: '1 年',
|
||||||
|
|
File diff suppressed because it is too large
Load Diff
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because it is too large
Load Diff
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* @sweetalert2/themes v3.2.0
|
* @sweetalert2/themes v4.0.0
|
||||||
* Released under the MIT License.
|
* Released under the MIT License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
@ -42,7 +42,8 @@
|
||||||
background: #fff;
|
background: #fff;
|
||||||
box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.1); }
|
box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.1); }
|
||||||
.swal2-popup.swal2-toast .swal2-header {
|
.swal2-popup.swal2-toast .swal2-header {
|
||||||
flex-direction: row; }
|
flex-direction: row;
|
||||||
|
padding: 0; }
|
||||||
.swal2-popup.swal2-toast .swal2-title {
|
.swal2-popup.swal2-toast .swal2-title {
|
||||||
flex-grow: 1;
|
flex-grow: 1;
|
||||||
justify-content: flex-start;
|
justify-content: flex-start;
|
||||||
|
@ -59,6 +60,7 @@
|
||||||
line-height: 0.8; }
|
line-height: 0.8; }
|
||||||
.swal2-popup.swal2-toast .swal2-content {
|
.swal2-popup.swal2-toast .swal2-content {
|
||||||
justify-content: flex-start;
|
justify-content: flex-start;
|
||||||
|
padding: 0;
|
||||||
font-size: 0.875rem; }
|
font-size: 0.875rem; }
|
||||||
.swal2-popup.swal2-toast .swal2-icon {
|
.swal2-popup.swal2-toast .swal2-icon {
|
||||||
width: 2em;
|
width: 2em;
|
||||||
|
@ -247,7 +249,8 @@
|
||||||
.swal2-header {
|
.swal2-header {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
align-items: center; }
|
align-items: center;
|
||||||
|
padding: 0 1.8em; }
|
||||||
|
|
||||||
.swal2-title {
|
.swal2-title {
|
||||||
position: relative;
|
position: relative;
|
||||||
|
@ -264,50 +267,33 @@
|
||||||
.swal2-actions {
|
.swal2-actions {
|
||||||
display: flex;
|
display: flex;
|
||||||
z-index: 1;
|
z-index: 1;
|
||||||
|
box-sizing: border-box;
|
||||||
flex-wrap: wrap;
|
flex-wrap: wrap;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
margin: 1.25em auto 0; }
|
margin: 1.25em auto 0;
|
||||||
|
padding: 0 1.6em; }
|
||||||
.swal2-actions:not(.swal2-loading) .swal2-styled[disabled] {
|
.swal2-actions:not(.swal2-loading) .swal2-styled[disabled] {
|
||||||
opacity: .4; }
|
opacity: .4; }
|
||||||
.swal2-actions:not(.swal2-loading) .swal2-styled:hover {
|
.swal2-actions:not(.swal2-loading) .swal2-styled:hover {
|
||||||
background-image: linear-gradient(rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.1)); }
|
background-image: linear-gradient(rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.1)); }
|
||||||
.swal2-actions:not(.swal2-loading) .swal2-styled:active {
|
.swal2-actions:not(.swal2-loading) .swal2-styled:active {
|
||||||
background-image: linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2)); }
|
background-image: linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2)); }
|
||||||
.swal2-actions.swal2-loading .swal2-styled.swal2-confirm {
|
|
||||||
box-sizing: border-box;
|
.swal2-loader {
|
||||||
width: 2.5em;
|
display: none;
|
||||||
height: 2.5em;
|
align-items: center;
|
||||||
margin: .46875em;
|
justify-content: center;
|
||||||
padding: 0;
|
width: 2.2em;
|
||||||
-webkit-animation: swal2-rotate-loading 1.5s linear 0s infinite normal;
|
height: 2.2em;
|
||||||
animation: swal2-rotate-loading 1.5s linear 0s infinite normal;
|
margin: 0 1.875em;
|
||||||
border: .25em solid transparent;
|
-webkit-animation: swal2-rotate-loading 1.5s linear 0s infinite normal;
|
||||||
border-radius: 100%;
|
animation: swal2-rotate-loading 1.5s linear 0s infinite normal;
|
||||||
border-color: transparent;
|
border-width: 0.25em;
|
||||||
background-color: transparent !important;
|
border-style: solid;
|
||||||
color: transparent !important;
|
border-radius: 100%;
|
||||||
cursor: default;
|
border-color: #3085d6 transparent #3085d6 transparent; }
|
||||||
-webkit-user-select: none;
|
|
||||||
-moz-user-select: none;
|
|
||||||
-ms-user-select: none;
|
|
||||||
user-select: none; }
|
|
||||||
.swal2-actions.swal2-loading .swal2-styled.swal2-cancel {
|
|
||||||
margin-right: 30px;
|
|
||||||
margin-left: 30px; }
|
|
||||||
.swal2-actions.swal2-loading :not(.swal2-styled).swal2-confirm::after {
|
|
||||||
content: '';
|
|
||||||
display: inline-block;
|
|
||||||
width: 15px;
|
|
||||||
height: 15px;
|
|
||||||
margin-left: 5px;
|
|
||||||
-webkit-animation: swal2-rotate-loading 1.5s linear 0s infinite normal;
|
|
||||||
animation: swal2-rotate-loading 1.5s linear 0s infinite normal;
|
|
||||||
border: 3px solid #999999;
|
|
||||||
border-radius: 50%;
|
|
||||||
border-right-color: transparent;
|
|
||||||
box-shadow: 1px 1px 1px #fff; }
|
|
||||||
|
|
||||||
.swal2-styled {
|
.swal2-styled {
|
||||||
margin: .3125em;
|
margin: .3125em;
|
||||||
|
@ -323,6 +309,13 @@
|
||||||
background-color: #007bff;
|
background-color: #007bff;
|
||||||
color: #fff;
|
color: #fff;
|
||||||
font-size: 1.0625em; }
|
font-size: 1.0625em; }
|
||||||
|
.swal2-styled.swal2-deny {
|
||||||
|
border: 0;
|
||||||
|
border-radius: 0.25em;
|
||||||
|
background: initial;
|
||||||
|
background-color: #dd6b55;
|
||||||
|
color: #fff;
|
||||||
|
font-size: 1.0625em; }
|
||||||
.swal2-styled.swal2-cancel {
|
.swal2-styled.swal2-cancel {
|
||||||
border: 0;
|
border: 0;
|
||||||
border-radius: 0.25em;
|
border-radius: 0.25em;
|
||||||
|
@ -394,7 +387,7 @@
|
||||||
z-index: 1;
|
z-index: 1;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
padding: 0;
|
padding: 0 1.6em;
|
||||||
color: #545454;
|
color: #545454;
|
||||||
font-size: 1.125em;
|
font-size: 1.125em;
|
||||||
font-weight: normal;
|
font-weight: normal;
|
||||||
|
@ -433,14 +426,10 @@
|
||||||
border: 1px solid #b4dbed;
|
border: 1px solid #b4dbed;
|
||||||
outline: none;
|
outline: none;
|
||||||
box-shadow: 0 0 3px #c4e6f5; }
|
box-shadow: 0 0 3px #c4e6f5; }
|
||||||
.swal2-input::-webkit-input-placeholder, .swal2-file::-webkit-input-placeholder, .swal2-textarea::-webkit-input-placeholder {
|
|
||||||
color: #cccccc; }
|
|
||||||
.swal2-input::-moz-placeholder, .swal2-file::-moz-placeholder, .swal2-textarea::-moz-placeholder {
|
.swal2-input::-moz-placeholder, .swal2-file::-moz-placeholder, .swal2-textarea::-moz-placeholder {
|
||||||
color: #cccccc; }
|
color: #cccccc; }
|
||||||
.swal2-input:-ms-input-placeholder, .swal2-file:-ms-input-placeholder, .swal2-textarea:-ms-input-placeholder {
|
.swal2-input:-ms-input-placeholder, .swal2-file:-ms-input-placeholder, .swal2-textarea:-ms-input-placeholder {
|
||||||
color: #cccccc; }
|
color: #cccccc; }
|
||||||
.swal2-input::-ms-input-placeholder, .swal2-file::-ms-input-placeholder, .swal2-textarea::-ms-input-placeholder {
|
|
||||||
color: #cccccc; }
|
|
||||||
.swal2-input::placeholder,
|
.swal2-input::placeholder,
|
||||||
.swal2-file::placeholder,
|
.swal2-file::placeholder,
|
||||||
.swal2-textarea::placeholder {
|
.swal2-textarea::placeholder {
|
||||||
|
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -69,6 +69,7 @@
|
||||||
width: auto;
|
width: auto;
|
||||||
height: auto;
|
height: auto;
|
||||||
margin: 0 0.3125em;
|
margin: 0 0.3125em;
|
||||||
|
padding: 0;
|
||||||
}
|
}
|
||||||
.swal2-popup.swal2-toast .swal2-styled {
|
.swal2-popup.swal2-toast .swal2-styled {
|
||||||
margin: 0 0.3125em;
|
margin: 0 0.3125em;
|
||||||
|
@ -287,11 +288,13 @@
|
||||||
.swal2-actions {
|
.swal2-actions {
|
||||||
display: flex;
|
display: flex;
|
||||||
z-index: 1;
|
z-index: 1;
|
||||||
|
box-sizing: border-box;
|
||||||
flex-wrap: wrap;
|
flex-wrap: wrap;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
margin: 1.25em auto 0;
|
margin: 1.25em auto 0;
|
||||||
|
padding: 0 1.6em;
|
||||||
}
|
}
|
||||||
.swal2-actions:not(.swal2-loading) .swal2-styled[disabled] {
|
.swal2-actions:not(.swal2-loading) .swal2-styled[disabled] {
|
||||||
opacity: 0.4;
|
opacity: 0.4;
|
||||||
|
@ -302,41 +305,20 @@
|
||||||
.swal2-actions:not(.swal2-loading) .swal2-styled:active {
|
.swal2-actions:not(.swal2-loading) .swal2-styled:active {
|
||||||
background-image: linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2));
|
background-image: linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2));
|
||||||
}
|
}
|
||||||
.swal2-actions.swal2-loading .swal2-styled.swal2-confirm {
|
|
||||||
box-sizing: border-box;
|
.swal2-loader {
|
||||||
width: 2.5em;
|
display: none;
|
||||||
height: 2.5em;
|
align-items: center;
|
||||||
margin: 0.46875em;
|
justify-content: center;
|
||||||
padding: 0;
|
width: 2.2em;
|
||||||
|
height: 2.2em;
|
||||||
|
margin: 0 1.875em;
|
||||||
-webkit-animation: swal2-rotate-loading 1.5s linear 0s infinite normal;
|
-webkit-animation: swal2-rotate-loading 1.5s linear 0s infinite normal;
|
||||||
animation: swal2-rotate-loading 1.5s linear 0s infinite normal;
|
animation: swal2-rotate-loading 1.5s linear 0s infinite normal;
|
||||||
border: 0.25em solid transparent;
|
border-width: 0.25em;
|
||||||
|
border-style: solid;
|
||||||
border-radius: 100%;
|
border-radius: 100%;
|
||||||
border-color: transparent;
|
border-color: #3085d6 transparent #3085d6 transparent;
|
||||||
background-color: transparent !important;
|
|
||||||
color: transparent !important;
|
|
||||||
cursor: default;
|
|
||||||
-webkit-user-select: none;
|
|
||||||
-moz-user-select: none;
|
|
||||||
-ms-user-select: none;
|
|
||||||
user-select: none;
|
|
||||||
}
|
|
||||||
.swal2-actions.swal2-loading .swal2-styled.swal2-cancel {
|
|
||||||
margin-right: 30px;
|
|
||||||
margin-left: 30px;
|
|
||||||
}
|
|
||||||
.swal2-actions.swal2-loading :not(.swal2-styled).swal2-confirm::after {
|
|
||||||
content: "";
|
|
||||||
display: inline-block;
|
|
||||||
width: 15px;
|
|
||||||
height: 15px;
|
|
||||||
margin-left: 5px;
|
|
||||||
-webkit-animation: swal2-rotate-loading 1.5s linear 0s infinite normal;
|
|
||||||
animation: swal2-rotate-loading 1.5s linear 0s infinite normal;
|
|
||||||
border: 3px solid #999999;
|
|
||||||
border-radius: 50%;
|
|
||||||
border-right-color: transparent;
|
|
||||||
box-shadow: 1px 1px 1px #fff;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.swal2-styled {
|
.swal2-styled {
|
||||||
|
@ -356,6 +338,14 @@
|
||||||
color: #fff;
|
color: #fff;
|
||||||
font-size: 1.0625em;
|
font-size: 1.0625em;
|
||||||
}
|
}
|
||||||
|
.swal2-styled.swal2-deny {
|
||||||
|
border: 0;
|
||||||
|
border-radius: 0.25em;
|
||||||
|
background: initial;
|
||||||
|
background-color: #dd6b55;
|
||||||
|
color: #fff;
|
||||||
|
font-size: 1.0625em;
|
||||||
|
}
|
||||||
.swal2-styled.swal2-cancel {
|
.swal2-styled.swal2-cancel {
|
||||||
border: 0;
|
border: 0;
|
||||||
border-radius: 0.25em;
|
border-radius: 0.25em;
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/*!
|
/*!
|
||||||
* sweetalert2 v9.17.2
|
* sweetalert2 v10.3.5
|
||||||
* Released under the MIT License.
|
* Released under the MIT License.
|
||||||
*/
|
*/
|
||||||
(function (global, factory) {
|
(function (global, factory) {
|
||||||
|
@ -271,7 +271,7 @@
|
||||||
* Show a one-time console warning about deprecated params/methods
|
* Show a one-time console warning about deprecated params/methods
|
||||||
*/
|
*/
|
||||||
|
|
||||||
var warnAboutDepreation = function warnAboutDepreation(deprecatedParam, useInstead) {
|
var warnAboutDeprecation = function warnAboutDeprecation(deprecatedParam, useInstead) {
|
||||||
warnOnce("\"".concat(deprecatedParam, "\" is deprecated and will be removed in the next major release. Please use \"").concat(useInstead, "\" instead."));
|
warnOnce("\"".concat(deprecatedParam, "\" is deprecated and will be removed in the next major release. Please use \"").concat(useInstead, "\" instead."));
|
||||||
};
|
};
|
||||||
/**
|
/**
|
||||||
|
@ -339,7 +339,7 @@
|
||||||
|
|
||||||
return result;
|
return result;
|
||||||
};
|
};
|
||||||
var swalClasses = prefix(['container', 'shown', 'height-auto', 'iosfix', 'popup', 'modal', 'no-backdrop', 'no-transition', 'toast', 'toast-shown', 'toast-column', 'show', 'hide', 'close', 'title', 'header', 'content', 'html-container', 'actions', 'confirm', 'cancel', 'footer', 'icon', 'icon-content', 'image', 'input', 'file', 'range', 'select', 'radio', 'checkbox', 'label', 'textarea', 'inputerror', 'validation-message', 'progress-steps', 'active-progress-step', 'progress-step', 'progress-step-line', 'loading', 'styled', 'top', 'top-start', 'top-end', 'top-left', 'top-right', 'center', 'center-start', 'center-end', 'center-left', 'center-right', 'bottom', 'bottom-start', 'bottom-end', 'bottom-left', 'bottom-right', 'grow-row', 'grow-column', 'grow-fullscreen', 'rtl', 'timer-progress-bar', 'timer-progress-bar-container', 'scrollbar-measure', 'icon-success', 'icon-warning', 'icon-info', 'icon-question', 'icon-error']);
|
var swalClasses = prefix(['container', 'shown', 'height-auto', 'iosfix', 'popup', 'modal', 'no-backdrop', 'no-transition', 'toast', 'toast-shown', 'toast-column', 'show', 'hide', 'close', 'title', 'header', 'content', 'html-container', 'actions', 'confirm', 'deny', 'cancel', 'footer', 'icon', 'icon-content', 'image', 'input', 'file', 'range', 'select', 'radio', 'checkbox', 'label', 'textarea', 'inputerror', 'validation-message', 'progress-steps', 'active-progress-step', 'progress-step', 'progress-step-line', 'loader', 'loading', 'styled', 'top', 'top-start', 'top-end', 'top-left', 'top-right', 'center', 'center-start', 'center-end', 'center-left', 'center-right', 'bottom', 'bottom-start', 'bottom-end', 'bottom-left', 'bottom-right', 'grow-row', 'grow-column', 'grow-fullscreen', 'rtl', 'timer-progress-bar', 'timer-progress-bar-container', 'scrollbar-measure', 'icon-success', 'icon-warning', 'icon-info', 'icon-question', 'icon-error']);
|
||||||
var iconTypes = prefix(['success', 'warning', 'info', 'question', 'error']);
|
var iconTypes = prefix(['success', 'warning', 'info', 'question', 'error']);
|
||||||
|
|
||||||
var getContainer = function getContainer() {
|
var getContainer = function getContainer() {
|
||||||
|
@ -388,6 +388,12 @@
|
||||||
var getConfirmButton = function getConfirmButton() {
|
var getConfirmButton = function getConfirmButton() {
|
||||||
return elementBySelector(".".concat(swalClasses.actions, " .").concat(swalClasses.confirm));
|
return elementBySelector(".".concat(swalClasses.actions, " .").concat(swalClasses.confirm));
|
||||||
};
|
};
|
||||||
|
var getDenyButton = function getDenyButton() {
|
||||||
|
return elementBySelector(".".concat(swalClasses.actions, " .").concat(swalClasses.deny));
|
||||||
|
};
|
||||||
|
var getLoader = function getLoader() {
|
||||||
|
return elementBySelector(".".concat(swalClasses.loader));
|
||||||
|
};
|
||||||
var getCancelButton = function getCancelButton() {
|
var getCancelButton = function getCancelButton() {
|
||||||
return elementBySelector(".".concat(swalClasses.actions, " .").concat(swalClasses.cancel));
|
return elementBySelector(".".concat(swalClasses.actions, " .").concat(swalClasses.cancel));
|
||||||
};
|
};
|
||||||
|
@ -567,13 +573,18 @@
|
||||||
};
|
};
|
||||||
var show = function show(elem) {
|
var show = function show(elem) {
|
||||||
var display = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'flex';
|
var display = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'flex';
|
||||||
elem.style.opacity = '';
|
|
||||||
elem.style.display = display;
|
elem.style.display = display;
|
||||||
};
|
};
|
||||||
var hide = function hide(elem) {
|
var hide = function hide(elem) {
|
||||||
elem.style.opacity = '';
|
|
||||||
elem.style.display = 'none';
|
elem.style.display = 'none';
|
||||||
};
|
};
|
||||||
|
var setStyle = function setStyle(parent, selector, property, value) {
|
||||||
|
var el = parent.querySelector(selector);
|
||||||
|
|
||||||
|
if (el) {
|
||||||
|
el.style[property] = value;
|
||||||
|
}
|
||||||
|
};
|
||||||
var toggle = function toggle(elem, condition, display) {
|
var toggle = function toggle(elem, condition, display) {
|
||||||
condition ? show(elem, display) : hide(elem);
|
condition ? show(elem, display) : hide(elem);
|
||||||
}; // borrowed from jquery $(elem).is(':visible') implementation
|
}; // borrowed from jquery $(elem).is(':visible') implementation
|
||||||
|
@ -630,7 +641,7 @@
|
||||||
return typeof window === 'undefined' || typeof document === 'undefined';
|
return typeof window === 'undefined' || typeof document === 'undefined';
|
||||||
};
|
};
|
||||||
|
|
||||||
var sweetHTML = "\n <div aria-labelledby=\"".concat(swalClasses.title, "\" aria-describedby=\"").concat(swalClasses.content, "\" class=\"").concat(swalClasses.popup, "\" tabindex=\"-1\">\n <div class=\"").concat(swalClasses.header, "\">\n <ul class=\"").concat(swalClasses['progress-steps'], "\"></ul>\n <div class=\"").concat(swalClasses.icon, " ").concat(iconTypes.error, "\"></div>\n <div class=\"").concat(swalClasses.icon, " ").concat(iconTypes.question, "\"></div>\n <div class=\"").concat(swalClasses.icon, " ").concat(iconTypes.warning, "\"></div>\n <div class=\"").concat(swalClasses.icon, " ").concat(iconTypes.info, "\"></div>\n <div class=\"").concat(swalClasses.icon, " ").concat(iconTypes.success, "\"></div>\n <img class=\"").concat(swalClasses.image, "\" />\n <h2 class=\"").concat(swalClasses.title, "\" id=\"").concat(swalClasses.title, "\"></h2>\n <button type=\"button\" class=\"").concat(swalClasses.close, "\"></button>\n </div>\n <div class=\"").concat(swalClasses.content, "\">\n <div id=\"").concat(swalClasses.content, "\" class=\"").concat(swalClasses['html-container'], "\"></div>\n <input class=\"").concat(swalClasses.input, "\" />\n <input type=\"file\" class=\"").concat(swalClasses.file, "\" />\n <div class=\"").concat(swalClasses.range, "\">\n <input type=\"range\" />\n <output></output>\n </div>\n <select class=\"").concat(swalClasses.select, "\"></select>\n <div class=\"").concat(swalClasses.radio, "\"></div>\n <label for=\"").concat(swalClasses.checkbox, "\" class=\"").concat(swalClasses.checkbox, "\">\n <input type=\"checkbox\" />\n <span class=\"").concat(swalClasses.label, "\"></span>\n </label>\n <textarea class=\"").concat(swalClasses.textarea, "\"></textarea>\n <div class=\"").concat(swalClasses['validation-message'], "\" id=\"").concat(swalClasses['validation-message'], "\"></div>\n </div>\n <div class=\"").concat(swalClasses.actions, "\">\n <button type=\"button\" class=\"").concat(swalClasses.confirm, "\">OK</button>\n <button type=\"button\" class=\"").concat(swalClasses.cancel, "\">Cancel</button>\n </div>\n <div class=\"").concat(swalClasses.footer, "\"></div>\n <div class=\"").concat(swalClasses['timer-progress-bar-container'], "\">\n <div class=\"").concat(swalClasses['timer-progress-bar'], "\"></div>\n </div>\n </div>\n").replace(/(^|\n)\s*/g, '');
|
var sweetHTML = "\n <div aria-labelledby=\"".concat(swalClasses.title, "\" aria-describedby=\"").concat(swalClasses.content, "\" class=\"").concat(swalClasses.popup, "\" tabindex=\"-1\">\n <div class=\"").concat(swalClasses.header, "\">\n <ul class=\"").concat(swalClasses['progress-steps'], "\"></ul>\n <div class=\"").concat(swalClasses.icon, " ").concat(iconTypes.error, "\"></div>\n <div class=\"").concat(swalClasses.icon, " ").concat(iconTypes.question, "\"></div>\n <div class=\"").concat(swalClasses.icon, " ").concat(iconTypes.warning, "\"></div>\n <div class=\"").concat(swalClasses.icon, " ").concat(iconTypes.info, "\"></div>\n <div class=\"").concat(swalClasses.icon, " ").concat(iconTypes.success, "\"></div>\n <img class=\"").concat(swalClasses.image, "\" />\n <h2 class=\"").concat(swalClasses.title, "\" id=\"").concat(swalClasses.title, "\"></h2>\n <button type=\"button\" class=\"").concat(swalClasses.close, "\"></button>\n </div>\n <div class=\"").concat(swalClasses.content, "\">\n <div id=\"").concat(swalClasses.content, "\" class=\"").concat(swalClasses['html-container'], "\"></div>\n <input class=\"").concat(swalClasses.input, "\" />\n <input type=\"file\" class=\"").concat(swalClasses.file, "\" />\n <div class=\"").concat(swalClasses.range, "\">\n <input type=\"range\" />\n <output></output>\n </div>\n <select class=\"").concat(swalClasses.select, "\"></select>\n <div class=\"").concat(swalClasses.radio, "\"></div>\n <label for=\"").concat(swalClasses.checkbox, "\" class=\"").concat(swalClasses.checkbox, "\">\n <input type=\"checkbox\" />\n <span class=\"").concat(swalClasses.label, "\"></span>\n </label>\n <textarea class=\"").concat(swalClasses.textarea, "\"></textarea>\n <div class=\"").concat(swalClasses['validation-message'], "\" id=\"").concat(swalClasses['validation-message'], "\"></div>\n </div>\n <div class=\"").concat(swalClasses.actions, "\">\n <div class=\"").concat(swalClasses.loader, "\"></div>\n <button type=\"button\" class=\"").concat(swalClasses.confirm, "\"></button>\n <button type=\"button\" class=\"").concat(swalClasses.deny, "\"></button>\n <button type=\"button\" class=\"").concat(swalClasses.cancel, "\"></button>\n </div>\n <div class=\"").concat(swalClasses.footer, "\"></div>\n <div class=\"").concat(swalClasses['timer-progress-bar-container'], "\">\n <div class=\"").concat(swalClasses['timer-progress-bar'], "\"></div>\n </div>\n </div>\n").replace(/(^|\n)\s*/g, '');
|
||||||
|
|
||||||
var resetOldContainer = function resetOldContainer() {
|
var resetOldContainer = function resetOldContainer() {
|
||||||
var oldContainer = getContainer();
|
var oldContainer = getContainer();
|
||||||
|
@ -798,40 +809,48 @@
|
||||||
|
|
||||||
var renderActions = function renderActions(instance, params) {
|
var renderActions = function renderActions(instance, params) {
|
||||||
var actions = getActions();
|
var actions = getActions();
|
||||||
|
var loader = getLoader();
|
||||||
var confirmButton = getConfirmButton();
|
var confirmButton = getConfirmButton();
|
||||||
|
var denyButton = getDenyButton();
|
||||||
var cancelButton = getCancelButton(); // Actions (buttons) wrapper
|
var cancelButton = getCancelButton(); // Actions (buttons) wrapper
|
||||||
|
|
||||||
if (!params.showConfirmButton && !params.showCancelButton) {
|
if (!params.showConfirmButton && !params.showDenyButton && !params.showCancelButton) {
|
||||||
hide(actions);
|
hide(actions);
|
||||||
} // Custom class
|
} // Custom class
|
||||||
|
|
||||||
|
|
||||||
applyCustomClass(actions, params, 'actions'); // Render confirm button
|
applyCustomClass(actions, params, 'actions'); // Render buttons
|
||||||
|
|
||||||
renderButton(confirmButton, 'confirm', params); // render Cancel Button
|
renderButton(confirmButton, 'confirm', params);
|
||||||
|
renderButton(denyButton, 'deny', params);
|
||||||
|
renderButton(cancelButton, 'cancel', params); // Loader
|
||||||
|
|
||||||
renderButton(cancelButton, 'cancel', params);
|
loader.innerHTML = params.loaderHtml;
|
||||||
|
|
||||||
if (params.buttonsStyling) {
|
if (params.buttonsStyling) {
|
||||||
handleButtonsStyling(confirmButton, cancelButton, params);
|
handleButtonsStyling(confirmButton, denyButton, cancelButton, params);
|
||||||
} else {
|
} else {
|
||||||
removeClass([confirmButton, cancelButton], swalClasses.styled);
|
removeClass([confirmButton, denyButton, cancelButton], swalClasses.styled);
|
||||||
confirmButton.style.backgroundColor = confirmButton.style.borderLeftColor = confirmButton.style.borderRightColor = '';
|
|
||||||
cancelButton.style.backgroundColor = cancelButton.style.borderLeftColor = cancelButton.style.borderRightColor = '';
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (params.reverseButtons) {
|
if (params.reverseButtons) {
|
||||||
confirmButton.parentNode.insertBefore(cancelButton, confirmButton);
|
actions.insertBefore(cancelButton, loader);
|
||||||
|
actions.insertBefore(denyButton, loader);
|
||||||
|
actions.insertBefore(confirmButton, loader);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
function handleButtonsStyling(confirmButton, cancelButton, params) {
|
function handleButtonsStyling(confirmButton, denyButton, cancelButton, params) {
|
||||||
addClass([confirmButton, cancelButton], swalClasses.styled); // Buttons background colors
|
addClass([confirmButton, denyButton, cancelButton], swalClasses.styled); // Buttons background colors
|
||||||
|
|
||||||
if (params.confirmButtonColor) {
|
if (params.confirmButtonColor) {
|
||||||
confirmButton.style.backgroundColor = params.confirmButtonColor;
|
confirmButton.style.backgroundColor = params.confirmButtonColor;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (params.denyButtonColor) {
|
||||||
|
denyButton.style.backgroundColor = params.denyButtonColor;
|
||||||
|
}
|
||||||
|
|
||||||
if (params.cancelButtonColor) {
|
if (params.cancelButtonColor) {
|
||||||
cancelButton.style.backgroundColor = params.cancelButtonColor;
|
cancelButton.style.backgroundColor = params.cancelButtonColor;
|
||||||
} // Loading state
|
} // Loading state
|
||||||
|
@ -1141,10 +1160,10 @@
|
||||||
};
|
};
|
||||||
|
|
||||||
var renderIcon = function renderIcon(instance, params) {
|
var renderIcon = function renderIcon(instance, params) {
|
||||||
var innerParams = privateProps.innerParams.get(instance); // if the give icon already rendered, apply the custom class without re-rendering the icon
|
var innerParams = privateProps.innerParams.get(instance); // if the given icon already rendered, apply the styling without re-rendering the icon
|
||||||
|
|
||||||
if (innerParams && params.icon === innerParams.icon && getIcon()) {
|
if (innerParams && params.icon === innerParams.icon && getIcon()) {
|
||||||
applyCustomClass(getIcon(), params, 'icon');
|
applyStyles(getIcon(), params);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1159,9 +1178,7 @@
|
||||||
show(icon); // Custom or default content
|
show(icon); // Custom or default content
|
||||||
|
|
||||||
setContent(icon, params);
|
setContent(icon, params);
|
||||||
adjustSuccessIconBackgoundColor(); // Custom class
|
applyStyles(icon, params); // Animate icon
|
||||||
|
|
||||||
applyCustomClass(icon, params, 'icon'); // Animate icon
|
|
||||||
|
|
||||||
addClass(icon, params.showClass.icon);
|
addClass(icon, params.showClass.icon);
|
||||||
} else {
|
} else {
|
||||||
|
@ -1175,6 +1192,15 @@
|
||||||
for (var i = 0; i < icons.length; i++) {
|
for (var i = 0; i < icons.length; i++) {
|
||||||
hide(icons[i]);
|
hide(icons[i]);
|
||||||
}
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
var applyStyles = function applyStyles(icon, params) {
|
||||||
|
// Icon color
|
||||||
|
setColor(icon, params); // Success icon background color
|
||||||
|
|
||||||
|
adjustSuccessIconBackgoundColor(); // Custom class
|
||||||
|
|
||||||
|
applyCustomClass(icon, params, 'icon');
|
||||||
}; // Adjust success icon background color to match the popup background color
|
}; // Adjust success icon background color to match the popup background color
|
||||||
|
|
||||||
|
|
||||||
|
@ -1207,6 +1233,22 @@
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
var setColor = function setColor(icon, params) {
|
||||||
|
if (!params.iconColor) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
icon.style.color = params.iconColor;
|
||||||
|
icon.style.borderColor = params.iconColor;
|
||||||
|
|
||||||
|
for (var _i = 0, _arr = ['.swal2-success-line-tip', '.swal2-success-line-long', '.swal2-x-mark-line-left', '.swal2-x-mark-line-right']; _i < _arr.length; _i++) {
|
||||||
|
var sel = _arr[_i];
|
||||||
|
setStyle(icon, sel, 'backgroundColor', params.iconColor);
|
||||||
|
}
|
||||||
|
|
||||||
|
setStyle(icon, '.swal2-success-ring', 'borderColor', params.iconColor);
|
||||||
|
};
|
||||||
|
|
||||||
var iconContent = function iconContent(content) {
|
var iconContent = function iconContent(content) {
|
||||||
return "<div class=\"".concat(swalClasses['icon-content'], "\">").concat(content, "</div>");
|
return "<div class=\"".concat(swalClasses['icon-content'], "\">").concat(content, "</div>");
|
||||||
};
|
};
|
||||||
|
@ -1422,8 +1464,10 @@
|
||||||
renderActions(instance, params);
|
renderActions(instance, params);
|
||||||
renderFooter(instance, params);
|
renderFooter(instance, params);
|
||||||
|
|
||||||
if (typeof params.onRender === 'function') {
|
if (typeof params.didRender === 'function') {
|
||||||
params.onRender(getPopup());
|
params.didRender(getPopup());
|
||||||
|
} else if (typeof params.onRender === 'function') {
|
||||||
|
params.onRender(getPopup()); // @deprecated
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -1441,6 +1485,13 @@
|
||||||
var clickConfirm = function clickConfirm() {
|
var clickConfirm = function clickConfirm() {
|
||||||
return getConfirmButton() && getConfirmButton().click();
|
return getConfirmButton() && getConfirmButton().click();
|
||||||
};
|
};
|
||||||
|
/*
|
||||||
|
* Global function to click 'Deny' button
|
||||||
|
*/
|
||||||
|
|
||||||
|
var clickDeny = function clickDeny() {
|
||||||
|
return getDenyButton() && getDenyButton().click();
|
||||||
|
};
|
||||||
/*
|
/*
|
||||||
* Global function to click 'Cancel' button
|
* Global function to click 'Cancel' button
|
||||||
*/
|
*/
|
||||||
|
@ -1516,10 +1567,11 @@
|
||||||
popup = getPopup();
|
popup = getPopup();
|
||||||
var actions = getActions();
|
var actions = getActions();
|
||||||
var confirmButton = getConfirmButton();
|
var confirmButton = getConfirmButton();
|
||||||
|
var loader = getLoader();
|
||||||
show(actions);
|
show(actions);
|
||||||
show(confirmButton, 'inline-block');
|
hide(confirmButton);
|
||||||
addClass([popup, actions], swalClasses.loading);
|
addClass([popup, actions], swalClasses.loading);
|
||||||
confirmButton.disabled = true;
|
show(loader);
|
||||||
popup.setAttribute('data-loading', true);
|
popup.setAttribute('data-loading', true);
|
||||||
popup.setAttribute('aria-busy', true);
|
popup.setAttribute('aria-busy', true);
|
||||||
popup.focus();
|
popup.focus();
|
||||||
|
@ -1626,6 +1678,7 @@
|
||||||
html: '',
|
html: '',
|
||||||
footer: '',
|
footer: '',
|
||||||
icon: undefined,
|
icon: undefined,
|
||||||
|
iconColor: undefined,
|
||||||
iconHtml: undefined,
|
iconHtml: undefined,
|
||||||
toast: false,
|
toast: false,
|
||||||
animation: true,
|
animation: true,
|
||||||
|
@ -1649,21 +1702,27 @@
|
||||||
stopKeydownPropagation: true,
|
stopKeydownPropagation: true,
|
||||||
keydownListenerCapture: false,
|
keydownListenerCapture: false,
|
||||||
showConfirmButton: true,
|
showConfirmButton: true,
|
||||||
|
showDenyButton: false,
|
||||||
showCancelButton: false,
|
showCancelButton: false,
|
||||||
preConfirm: undefined,
|
preConfirm: undefined,
|
||||||
confirmButtonText: 'OK',
|
confirmButtonText: 'OK',
|
||||||
confirmButtonAriaLabel: '',
|
confirmButtonAriaLabel: '',
|
||||||
confirmButtonColor: undefined,
|
confirmButtonColor: undefined,
|
||||||
|
denyButtonText: 'No',
|
||||||
|
denyButtonAriaLabel: '',
|
||||||
|
denyButtonColor: undefined,
|
||||||
cancelButtonText: 'Cancel',
|
cancelButtonText: 'Cancel',
|
||||||
cancelButtonAriaLabel: '',
|
cancelButtonAriaLabel: '',
|
||||||
cancelButtonColor: undefined,
|
cancelButtonColor: undefined,
|
||||||
buttonsStyling: true,
|
buttonsStyling: true,
|
||||||
reverseButtons: false,
|
reverseButtons: false,
|
||||||
focusConfirm: true,
|
focusConfirm: true,
|
||||||
|
focusDeny: false,
|
||||||
focusCancel: false,
|
focusCancel: false,
|
||||||
showCloseButton: false,
|
showCloseButton: false,
|
||||||
closeButtonHtml: '×',
|
closeButtonHtml: '×',
|
||||||
closeButtonAriaLabel: 'Close this dialog',
|
closeButtonAriaLabel: 'Close this dialog',
|
||||||
|
loaderHtml: '',
|
||||||
showLoaderOnConfirm: false,
|
showLoaderOnConfirm: false,
|
||||||
imageUrl: undefined,
|
imageUrl: undefined,
|
||||||
imageWidth: undefined,
|
imageWidth: undefined,
|
||||||
|
@ -1689,17 +1748,29 @@
|
||||||
progressStepsDistance: undefined,
|
progressStepsDistance: undefined,
|
||||||
onBeforeOpen: undefined,
|
onBeforeOpen: undefined,
|
||||||
onOpen: undefined,
|
onOpen: undefined,
|
||||||
|
willOpen: undefined,
|
||||||
|
didOpen: undefined,
|
||||||
onRender: undefined,
|
onRender: undefined,
|
||||||
|
didRender: undefined,
|
||||||
onClose: undefined,
|
onClose: undefined,
|
||||||
onAfterClose: undefined,
|
onAfterClose: undefined,
|
||||||
|
willClose: undefined,
|
||||||
|
didClose: undefined,
|
||||||
onDestroy: undefined,
|
onDestroy: undefined,
|
||||||
|
didDestroy: undefined,
|
||||||
scrollbarPadding: true
|
scrollbarPadding: true
|
||||||
};
|
};
|
||||||
var updatableParams = ['allowEscapeKey', 'allowOutsideClick', 'buttonsStyling', 'cancelButtonAriaLabel', 'cancelButtonColor', 'cancelButtonText', 'closeButtonAriaLabel', 'closeButtonHtml', 'confirmButtonAriaLabel', 'confirmButtonColor', 'confirmButtonText', 'currentProgressStep', 'customClass', 'footer', 'hideClass', 'html', 'icon', 'imageAlt', 'imageHeight', 'imageUrl', 'imageWidth', 'onAfterClose', 'onClose', 'onDestroy', 'progressSteps', 'reverseButtons', 'showCancelButton', 'showCloseButton', 'showConfirmButton', 'text', 'title', 'titleText'];
|
var updatableParams = ['allowEscapeKey', 'allowOutsideClick', 'background', 'buttonsStyling', 'cancelButtonAriaLabel', 'cancelButtonColor', 'cancelButtonText', 'closeButtonAriaLabel', 'closeButtonHtml', 'confirmButtonAriaLabel', 'confirmButtonColor', 'confirmButtonText', 'currentProgressStep', 'customClass', 'denyButtonAriaLabel', 'denyButtonColor', 'denyButtonText', 'didClose', 'didDestroy', 'footer', 'hideClass', 'html', 'icon', 'iconColor', 'imageAlt', 'imageHeight', 'imageUrl', 'imageWidth', 'onAfterClose', 'onClose', 'onDestroy', 'progressSteps', 'reverseButtons', 'showCancelButton', 'showCloseButton', 'showConfirmButton', 'showDenyButton', 'text', 'title', 'titleText', 'willClose'];
|
||||||
var deprecatedParams = {
|
var deprecatedParams = {
|
||||||
animation: 'showClass" and "hideClass'
|
animation: 'showClass" and "hideClass',
|
||||||
|
onBeforeOpen: 'willOpen',
|
||||||
|
onOpen: 'didOpen',
|
||||||
|
onRender: 'didRender',
|
||||||
|
onClose: 'willClose',
|
||||||
|
onAfterClose: 'didClose',
|
||||||
|
onDestroy: 'didDestroy'
|
||||||
};
|
};
|
||||||
var toastIncompatibleParams = ['allowOutsideClick', 'allowEnterKey', 'backdrop', 'focusConfirm', 'focusCancel', 'heightAuto', 'keydownListenerCapture'];
|
var toastIncompatibleParams = ['allowOutsideClick', 'allowEnterKey', 'backdrop', 'focusConfirm', 'focusDeny', 'focusCancel', 'heightAuto', 'keydownListenerCapture'];
|
||||||
/**
|
/**
|
||||||
* Is valid parameter
|
* Is valid parameter
|
||||||
* @param {String} paramName
|
* @param {String} paramName
|
||||||
|
@ -1739,7 +1810,7 @@
|
||||||
|
|
||||||
var checkIfParamIsDeprecated = function checkIfParamIsDeprecated(param) {
|
var checkIfParamIsDeprecated = function checkIfParamIsDeprecated(param) {
|
||||||
if (isDeprecatedParameter(param)) {
|
if (isDeprecatedParameter(param)) {
|
||||||
warnAboutDepreation(param, isDeprecatedParameter(param));
|
warnAboutDeprecation(param, isDeprecatedParameter(param));
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
/**
|
/**
|
||||||
|
@ -1770,6 +1841,7 @@
|
||||||
argsToParams: argsToParams,
|
argsToParams: argsToParams,
|
||||||
isVisible: isVisible$1,
|
isVisible: isVisible$1,
|
||||||
clickConfirm: clickConfirm,
|
clickConfirm: clickConfirm,
|
||||||
|
clickDeny: clickDeny,
|
||||||
clickCancel: clickCancel,
|
clickCancel: clickCancel,
|
||||||
getContainer: getContainer,
|
getContainer: getContainer,
|
||||||
getPopup: getPopup,
|
getPopup: getPopup,
|
||||||
|
@ -1782,6 +1854,7 @@
|
||||||
getCloseButton: getCloseButton,
|
getCloseButton: getCloseButton,
|
||||||
getActions: getActions,
|
getActions: getActions,
|
||||||
getConfirmButton: getConfirmButton,
|
getConfirmButton: getConfirmButton,
|
||||||
|
getDenyButton: getDenyButton,
|
||||||
getCancelButton: getCancelButton,
|
getCancelButton: getCancelButton,
|
||||||
getHeader: getHeader,
|
getHeader: getHeader,
|
||||||
getFooter: getFooter,
|
getFooter: getFooter,
|
||||||
|
@ -1818,19 +1891,19 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
var domCache = privateProps.domCache.get(this);
|
var domCache = privateProps.domCache.get(this);
|
||||||
|
hide(domCache.loader);
|
||||||
|
|
||||||
if (!innerParams.showConfirmButton) {
|
if (innerParams.showConfirmButton) {
|
||||||
hide(domCache.confirmButton);
|
show(domCache.confirmButton);
|
||||||
|
} else if (!innerParams.showConfirmButton && !innerParams.showCancelButton) {
|
||||||
if (!innerParams.showCancelButton) {
|
hide(domCache.actions);
|
||||||
hide(domCache.actions);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
removeClass([domCache.popup, domCache.actions], swalClasses.loading);
|
removeClass([domCache.popup, domCache.actions], swalClasses.loading);
|
||||||
domCache.popup.removeAttribute('aria-busy');
|
domCache.popup.removeAttribute('aria-busy');
|
||||||
domCache.popup.removeAttribute('data-loading');
|
domCache.popup.removeAttribute('data-loading');
|
||||||
domCache.confirmButton.disabled = false;
|
domCache.confirmButton.disabled = false;
|
||||||
|
domCache.denyButton.disabled = false;
|
||||||
domCache.cancelButton.disabled = false;
|
domCache.cancelButton.disabled = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -2009,12 +2082,12 @@
|
||||||
* Instance method to close sweetAlert
|
* Instance method to close sweetAlert
|
||||||
*/
|
*/
|
||||||
|
|
||||||
function removePopupAndResetState(instance, container, isToast$$1, onAfterClose) {
|
function removePopupAndResetState(instance, container, isToast$$1, didClose) {
|
||||||
if (isToast$$1) {
|
if (isToast$$1) {
|
||||||
triggerOnAfterCloseAndDispose(instance, onAfterClose);
|
triggerDidCloseAndDispose(instance, didClose);
|
||||||
} else {
|
} else {
|
||||||
restoreActiveElement().then(function () {
|
restoreActiveElement().then(function () {
|
||||||
return triggerOnAfterCloseAndDispose(instance, onAfterClose);
|
return triggerDidCloseAndDispose(instance, didClose);
|
||||||
});
|
});
|
||||||
globalState.keydownTarget.removeEventListener('keydown', globalState.keydownHandler, {
|
globalState.keydownTarget.removeEventListener('keydown', globalState.keydownHandler, {
|
||||||
capture: globalState.keydownListenerCapture
|
capture: globalState.keydownListenerCapture
|
||||||
|
@ -2047,6 +2120,7 @@
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
resolveValue = prepareResolveValue(resolveValue);
|
||||||
var innerParams = privateProps.innerParams.get(this);
|
var innerParams = privateProps.innerParams.get(this);
|
||||||
|
|
||||||
if (!innerParams || hasClass(popup, innerParams.hideClass.popup)) {
|
if (!innerParams || hasClass(popup, innerParams.hideClass.popup)) {
|
||||||
|
@ -2059,43 +2133,56 @@
|
||||||
var backdrop = getContainer();
|
var backdrop = getContainer();
|
||||||
removeClass(backdrop, innerParams.showClass.backdrop);
|
removeClass(backdrop, innerParams.showClass.backdrop);
|
||||||
addClass(backdrop, innerParams.hideClass.backdrop);
|
addClass(backdrop, innerParams.hideClass.backdrop);
|
||||||
handlePopupAnimation(this, popup, innerParams);
|
handlePopupAnimation(this, popup, innerParams); // Resolve Swal promise
|
||||||
|
|
||||||
if (typeof resolveValue !== 'undefined') {
|
swalPromiseResolve(resolveValue);
|
||||||
resolveValue.isDismissed = typeof resolveValue.dismiss !== 'undefined';
|
|
||||||
resolveValue.isConfirmed = typeof resolveValue.dismiss === 'undefined';
|
|
||||||
} else {
|
|
||||||
resolveValue = {
|
|
||||||
isDismissed: true,
|
|
||||||
isConfirmed: false
|
|
||||||
};
|
|
||||||
} // Resolve Swal promise
|
|
||||||
|
|
||||||
|
|
||||||
swalPromiseResolve(resolveValue || {});
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
var prepareResolveValue = function prepareResolveValue(resolveValue) {
|
||||||
|
// When user calls Swal.close()
|
||||||
|
if (typeof resolveValue === 'undefined') {
|
||||||
|
return {
|
||||||
|
isConfirmed: false,
|
||||||
|
isDenied: false,
|
||||||
|
isDismissed: true
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
|
return _extends({
|
||||||
|
isConfirmed: false,
|
||||||
|
isDenied: false,
|
||||||
|
isDismissed: false
|
||||||
|
}, resolveValue);
|
||||||
|
};
|
||||||
|
|
||||||
var handlePopupAnimation = function handlePopupAnimation(instance, popup, innerParams) {
|
var handlePopupAnimation = function handlePopupAnimation(instance, popup, innerParams) {
|
||||||
var container = getContainer(); // If animation is supported, animate
|
var container = getContainer(); // If animation is supported, animate
|
||||||
|
|
||||||
var animationIsSupported = animationEndEvent && hasCssAnimation(popup);
|
var animationIsSupported = animationEndEvent && hasCssAnimation(popup);
|
||||||
var onClose = innerParams.onClose,
|
var onClose = innerParams.onClose,
|
||||||
onAfterClose = innerParams.onAfterClose;
|
onAfterClose = innerParams.onAfterClose,
|
||||||
|
willClose = innerParams.willClose,
|
||||||
if (onClose !== null && typeof onClose === 'function') {
|
didClose = innerParams.didClose;
|
||||||
onClose(popup);
|
runDidClose(popup, willClose, onClose);
|
||||||
}
|
|
||||||
|
|
||||||
if (animationIsSupported) {
|
if (animationIsSupported) {
|
||||||
animatePopup(instance, popup, container, onAfterClose);
|
animatePopup(instance, popup, container, didClose || onAfterClose);
|
||||||
} else {
|
} else {
|
||||||
// Otherwise, remove immediately
|
// Otherwise, remove immediately
|
||||||
removePopupAndResetState(instance, container, isToast(), onAfterClose);
|
removePopupAndResetState(instance, container, isToast(), didClose || onAfterClose);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
var animatePopup = function animatePopup(instance, popup, container, onAfterClose) {
|
var runDidClose = function runDidClose(popup, willClose, onClose) {
|
||||||
globalState.swalCloseEventFinishedCallback = removePopupAndResetState.bind(null, instance, container, isToast(), onAfterClose);
|
if (willClose !== null && typeof willClose === 'function') {
|
||||||
|
willClose(popup);
|
||||||
|
} else if (onClose !== null && typeof onClose === 'function') {
|
||||||
|
onClose(popup); // @deprecated
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
var animatePopup = function animatePopup(instance, popup, container, didClose) {
|
||||||
|
globalState.swalCloseEventFinishedCallback = removePopupAndResetState.bind(null, instance, container, isToast(), didClose);
|
||||||
popup.addEventListener(animationEndEvent, function (e) {
|
popup.addEventListener(animationEndEvent, function (e) {
|
||||||
if (e.target === popup) {
|
if (e.target === popup) {
|
||||||
globalState.swalCloseEventFinishedCallback();
|
globalState.swalCloseEventFinishedCallback();
|
||||||
|
@ -2104,10 +2191,10 @@
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
var triggerOnAfterCloseAndDispose = function triggerOnAfterCloseAndDispose(instance, onAfterClose) {
|
var triggerDidCloseAndDispose = function triggerDidCloseAndDispose(instance, didClose) {
|
||||||
setTimeout(function () {
|
setTimeout(function () {
|
||||||
if (typeof onAfterClose === 'function') {
|
if (typeof didClose === 'function') {
|
||||||
onAfterClose();
|
didClose();
|
||||||
}
|
}
|
||||||
|
|
||||||
instance._destroy();
|
instance._destroy();
|
||||||
|
@ -2139,10 +2226,10 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
function enableButtons() {
|
function enableButtons() {
|
||||||
setButtonsDisabled(this, ['confirmButton', 'cancelButton'], false);
|
setButtonsDisabled(this, ['confirmButton', 'denyButton', 'cancelButton'], false);
|
||||||
}
|
}
|
||||||
function disableButtons() {
|
function disableButtons() {
|
||||||
setButtonsDisabled(this, ['confirmButton', 'cancelButton'], true);
|
setButtonsDisabled(this, ['confirmButton', 'denyButton', 'cancelButton'], true);
|
||||||
}
|
}
|
||||||
function enableInput() {
|
function enableInput() {
|
||||||
return setInputDisabled(this.getInput(), false);
|
return setInputDisabled(this.getInput(), false);
|
||||||
|
@ -2315,25 +2402,30 @@
|
||||||
init(params);
|
init(params);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
var SHOW_CLASS_TIMEOUT = 10;
|
||||||
/**
|
/**
|
||||||
* Open popup, add necessary classes and styles, fix scrollbar
|
* Open popup, add necessary classes and styles, fix scrollbar
|
||||||
*
|
*
|
||||||
* @param {Array} params
|
* @param params
|
||||||
*/
|
*/
|
||||||
|
|
||||||
var openPopup = function openPopup(params) {
|
var openPopup = function openPopup(params) {
|
||||||
var container = getContainer();
|
var container = getContainer();
|
||||||
var popup = getPopup();
|
var popup = getPopup();
|
||||||
|
|
||||||
if (typeof params.onBeforeOpen === 'function') {
|
if (typeof params.willOpen === 'function') {
|
||||||
params.onBeforeOpen(popup);
|
params.willOpen(popup);
|
||||||
|
} else if (typeof params.onBeforeOpen === 'function') {
|
||||||
|
params.onBeforeOpen(popup); // @deprecated
|
||||||
}
|
}
|
||||||
|
|
||||||
var bodyStyles = window.getComputedStyle(document.body);
|
var bodyStyles = window.getComputedStyle(document.body);
|
||||||
var initialBodyOverflow = bodyStyles.overflowY;
|
var initialBodyOverflow = bodyStyles.overflowY;
|
||||||
addClasses$1(container, popup, params); // scrolling is 'hidden' until animation is done, after that 'auto'
|
addClasses$1(container, popup, params); // scrolling is 'hidden' until animation is done, after that 'auto'
|
||||||
|
|
||||||
setScrollingVisibility(container, popup);
|
setTimeout(function () {
|
||||||
|
setScrollingVisibility(container, popup);
|
||||||
|
}, SHOW_CLASS_TIMEOUT);
|
||||||
|
|
||||||
if (isModal()) {
|
if (isModal()) {
|
||||||
fixScrollContainer(container, params.scrollbarPadding, initialBodyOverflow);
|
fixScrollContainer(container, params.scrollbarPadding, initialBodyOverflow);
|
||||||
|
@ -2344,16 +2436,23 @@
|
||||||
globalState.previousActiveElement = document.activeElement;
|
globalState.previousActiveElement = document.activeElement;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (typeof params.onOpen === 'function') {
|
runDidOpen(popup, params);
|
||||||
setTimeout(function () {
|
|
||||||
return params.onOpen(popup);
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
removeClass(container, swalClasses['no-transition']);
|
removeClass(container, swalClasses['no-transition']);
|
||||||
};
|
};
|
||||||
|
|
||||||
function swalOpenAnimationFinished(event) {
|
var runDidOpen = function runDidOpen(popup, params) {
|
||||||
|
if (typeof params.didOpen === 'function') {
|
||||||
|
setTimeout(function () {
|
||||||
|
return params.didOpen(popup);
|
||||||
|
});
|
||||||
|
} else if (typeof params.onOpen === 'function') {
|
||||||
|
setTimeout(function () {
|
||||||
|
return params.onOpen(popup);
|
||||||
|
}); // @deprecated
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
var swalOpenAnimationFinished = function swalOpenAnimationFinished(event) {
|
||||||
var popup = getPopup();
|
var popup = getPopup();
|
||||||
|
|
||||||
if (event.target !== popup) {
|
if (event.target !== popup) {
|
||||||
|
@ -2363,7 +2462,7 @@
|
||||||
var container = getContainer();
|
var container = getContainer();
|
||||||
popup.removeEventListener(animationEndEvent, swalOpenAnimationFinished);
|
popup.removeEventListener(animationEndEvent, swalOpenAnimationFinished);
|
||||||
container.style.overflowY = 'auto';
|
container.style.overflowY = 'auto';
|
||||||
}
|
};
|
||||||
|
|
||||||
var setScrollingVisibility = function setScrollingVisibility(container, popup) {
|
var setScrollingVisibility = function setScrollingVisibility(container, popup) {
|
||||||
if (animationEndEvent && hasCssAnimation(popup)) {
|
if (animationEndEvent && hasCssAnimation(popup)) {
|
||||||
|
@ -2389,10 +2488,17 @@
|
||||||
};
|
};
|
||||||
|
|
||||||
var addClasses$1 = function addClasses(container, popup, params) {
|
var addClasses$1 = function addClasses(container, popup, params) {
|
||||||
addClass(container, params.showClass.backdrop);
|
addClass(container, params.showClass.backdrop); // the workaround with setting/unsetting opacity is needed for #2019 and 2059
|
||||||
show(popup); // Animate popup right after showing it
|
|
||||||
|
popup.style.setProperty('opacity', '0', 'important');
|
||||||
|
show(popup);
|
||||||
|
setTimeout(function () {
|
||||||
|
// Animate popup right after showing it
|
||||||
|
addClass(popup, params.showClass.popup); // and remove the opacity workaround
|
||||||
|
|
||||||
|
popup.style.removeProperty('opacity');
|
||||||
|
}, SHOW_CLASS_TIMEOUT); // 10ms in order to fix #2062
|
||||||
|
|
||||||
addClass(popup, params.showClass.popup);
|
|
||||||
addClass([document.documentElement, document.body], swalClasses.shown);
|
addClass([document.documentElement, document.body], swalClasses.shown);
|
||||||
|
|
||||||
if (params.heightAuto && params.backdrop && !params.toast) {
|
if (params.heightAuto && params.backdrop && !params.toast) {
|
||||||
|
@ -2591,6 +2697,11 @@
|
||||||
confirm(instance, innerParams, true);
|
confirm(instance, innerParams, true);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
var handleDenyButtonClick = function handleDenyButtonClick(instance) {
|
||||||
|
instance.disableButtons(); // here we could add preDeny in future, if needed
|
||||||
|
|
||||||
|
deny(instance);
|
||||||
|
};
|
||||||
var handleCancelButtonClick = function handleCancelButtonClick(instance, dismissWith) {
|
var handleCancelButtonClick = function handleCancelButtonClick(instance, dismissWith) {
|
||||||
instance.disableButtons();
|
instance.disableButtons();
|
||||||
dismissWith(DismissReason.cancel);
|
dismissWith(DismissReason.cancel);
|
||||||
|
@ -2622,8 +2733,16 @@
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
var deny = function deny(instance) {
|
||||||
|
instance.closePopup({
|
||||||
|
isDenied: true,
|
||||||
|
value: false
|
||||||
|
});
|
||||||
|
};
|
||||||
|
|
||||||
var succeedWith = function succeedWith(instance, value) {
|
var succeedWith = function succeedWith(instance, value) {
|
||||||
instance.closePopup({
|
instance.closePopup({
|
||||||
|
isConfirmed: true,
|
||||||
value: value
|
value: value
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
@ -2690,7 +2809,9 @@
|
||||||
|
|
||||||
getPopup().focus();
|
getPopup().focus();
|
||||||
};
|
};
|
||||||
var arrowKeys = ['ArrowLeft', 'ArrowRight', 'ArrowUp', 'ArrowDown', 'Left', 'Right', 'Up', 'Down' // IE11
|
var arrowKeysNextButton = ['ArrowRight', 'ArrowDown', 'Right', 'Down' // IE11
|
||||||
|
];
|
||||||
|
var arrowKeysPreviousButton = ['ArrowLeft', 'ArrowUp', 'Left', 'Up' // IE11
|
||||||
];
|
];
|
||||||
var escKeys = ['Escape', 'Esc' // IE11
|
var escKeys = ['Escape', 'Esc' // IE11
|
||||||
];
|
];
|
||||||
|
@ -2707,8 +2828,8 @@
|
||||||
handleEnter(instance, e, innerParams); // TAB
|
handleEnter(instance, e, innerParams); // TAB
|
||||||
} else if (e.key === 'Tab') {
|
} else if (e.key === 'Tab') {
|
||||||
handleTab(e, innerParams); // ARROWS - switch focus between buttons
|
handleTab(e, innerParams); // ARROWS - switch focus between buttons
|
||||||
} else if (arrowKeys.indexOf(e.key) !== -1) {
|
} else if ([].concat(arrowKeysNextButton, arrowKeysPreviousButton).indexOf(e.key) !== -1) {
|
||||||
handleArrows(); // ESC
|
handleArrows(e.key); // ESC
|
||||||
} else if (escKeys.indexOf(e.key) !== -1) {
|
} else if (escKeys.indexOf(e.key) !== -1) {
|
||||||
handleEsc(e, innerParams, dismissWith);
|
handleEsc(e, innerParams, dismissWith);
|
||||||
}
|
}
|
||||||
|
@ -2754,14 +2875,20 @@
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
};
|
};
|
||||||
|
|
||||||
var handleArrows = function handleArrows() {
|
var handleArrows = function handleArrows(key) {
|
||||||
var confirmButton = getConfirmButton();
|
var confirmButton = getConfirmButton();
|
||||||
var cancelButton = getCancelButton(); // focus Cancel button if Confirm button is currently focused
|
var denyButton = getDenyButton();
|
||||||
|
var cancelButton = getCancelButton();
|
||||||
|
|
||||||
if (document.activeElement === confirmButton && isVisible(cancelButton)) {
|
if (!([confirmButton, denyButton, cancelButton].indexOf(document.activeElement) !== -1)) {
|
||||||
cancelButton.focus(); // and vice versa
|
return;
|
||||||
} else if (document.activeElement === cancelButton && isVisible(confirmButton)) {
|
}
|
||||||
confirmButton.focus();
|
|
||||||
|
var sibling = arrowKeysNextButton.indexOf(key) !== -1 ? 'nextElementSibling' : 'previousElementSibling';
|
||||||
|
var buttonToFocus = document.activeElement[sibling];
|
||||||
|
|
||||||
|
if (buttonToFocus) {
|
||||||
|
buttonToFocus.focus();
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -2792,7 +2919,7 @@
|
||||||
domCache.popup.onclick = function () {
|
domCache.popup.onclick = function () {
|
||||||
var innerParams = privateProps.innerParams.get(instance);
|
var innerParams = privateProps.innerParams.get(instance);
|
||||||
|
|
||||||
if (innerParams.showConfirmButton || innerParams.showCancelButton || innerParams.showCloseButton || innerParams.input) {
|
if (innerParams.showConfirmButton || innerParams.showDenyButton || innerParams.showCancelButton || innerParams.showCloseButton || innerParams.input) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -2893,6 +3020,7 @@
|
||||||
// functions to handle all closings/dismissals
|
// functions to handle all closings/dismissals
|
||||||
var dismissWith = function dismissWith(dismiss) {
|
var dismissWith = function dismissWith(dismiss) {
|
||||||
instance.closePopup({
|
instance.closePopup({
|
||||||
|
isDismissed: true,
|
||||||
dismiss: dismiss
|
dismiss: dismiss
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
@ -2903,6 +3031,10 @@
|
||||||
return handleConfirmButtonClick(instance, innerParams);
|
return handleConfirmButtonClick(instance, innerParams);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
domCache.denyButton.onclick = function () {
|
||||||
|
return handleDenyButtonClick(instance);
|
||||||
|
};
|
||||||
|
|
||||||
domCache.cancelButton.onclick = function () {
|
domCache.cancelButton.onclick = function () {
|
||||||
return handleCancelButtonClick(instance, dismissWith);
|
return handleCancelButtonClick(instance, dismissWith);
|
||||||
};
|
};
|
||||||
|
@ -2938,7 +3070,9 @@
|
||||||
content: getContent(),
|
content: getContent(),
|
||||||
actions: getActions(),
|
actions: getActions(),
|
||||||
confirmButton: getConfirmButton(),
|
confirmButton: getConfirmButton(),
|
||||||
|
denyButton: getDenyButton(),
|
||||||
cancelButton: getCancelButton(),
|
cancelButton: getCancelButton(),
|
||||||
|
loader: getLoader(),
|
||||||
closeButton: getCloseButton(),
|
closeButton: getCloseButton(),
|
||||||
validationMessage: getValidationMessage(),
|
validationMessage: getValidationMessage(),
|
||||||
progressSteps: getProgressSteps()
|
progressSteps: getProgressSteps()
|
||||||
|
@ -2978,15 +3112,28 @@
|
||||||
return blurActiveElement();
|
return blurActiveElement();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!focusButton(domCache, innerParams)) {
|
||||||
|
setFocus(innerParams, -1, 1);
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
var focusButton = function focusButton(domCache, innerParams) {
|
||||||
|
if (innerParams.focusDeny && isVisible(domCache.denyButton)) {
|
||||||
|
domCache.denyButton.focus();
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
if (innerParams.focusCancel && isVisible(domCache.cancelButton)) {
|
if (innerParams.focusCancel && isVisible(domCache.cancelButton)) {
|
||||||
return domCache.cancelButton.focus();
|
domCache.cancelButton.focus();
|
||||||
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (innerParams.focusConfirm && isVisible(domCache.confirmButton)) {
|
if (innerParams.focusConfirm && isVisible(domCache.confirmButton)) {
|
||||||
return domCache.confirmButton.focus();
|
domCache.confirmButton.focus();
|
||||||
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
setFocus(innerParams, -1, 1);
|
return false;
|
||||||
};
|
};
|
||||||
|
|
||||||
var blurActiveElement = function blurActiveElement() {
|
var blurActiveElement = function blurActiveElement() {
|
||||||
|
@ -3013,7 +3160,7 @@
|
||||||
if (Swal.isUpdatableParameter(param)) {
|
if (Swal.isUpdatableParameter(param)) {
|
||||||
validUpdatableParams[param] = params[param];
|
validUpdatableParams[param] = params[param];
|
||||||
} else {
|
} else {
|
||||||
warn("Invalid parameter to update: \"".concat(param, "\". Updatable params are listed here: https://github.com/sweetalert2/sweetalert2/blob/master/src/utils/params.js"));
|
warn("Invalid parameter to update: \"".concat(param, "\". Updatable params are listed here: https://github.com/sweetalert2/sweetalert2/blob/master/src/utils/params.js\n\nIf you think this parameter should be updatable, request it here: https://github.com/sweetalert2/sweetalert2/issues/new?template=02_feature_request.md"));
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -3050,13 +3197,18 @@
|
||||||
delete globalState.deferDisposalTimer;
|
delete globalState.deferDisposalTimer;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (typeof innerParams.onDestroy === 'function') {
|
runDidDestroy(innerParams);
|
||||||
innerParams.onDestroy();
|
|
||||||
}
|
|
||||||
|
|
||||||
disposeSwal(this);
|
disposeSwal(this);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
var runDidDestroy = function runDidDestroy(innerParams) {
|
||||||
|
if (typeof innerParams.didDestroy === 'function') {
|
||||||
|
innerParams.didDestroy();
|
||||||
|
} else if (typeof innerParams.onDestroy === 'function') {
|
||||||
|
innerParams.onDestroy(); // @deprecated
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
var disposeSwal = function disposeSwal(instance) {
|
var disposeSwal = function disposeSwal(instance) {
|
||||||
// Unset this.params so GC will dispose it (#1569)
|
// Unset this.params so GC will dispose it (#1569)
|
||||||
delete instance.params; // Unset globalState props so GC will dispose globalState (#1569)
|
delete instance.params; // Unset globalState props so GC will dispose globalState (#1569)
|
||||||
|
@ -3168,7 +3320,7 @@
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
SweetAlert.DismissReason = DismissReason;
|
SweetAlert.DismissReason = DismissReason;
|
||||||
SweetAlert.version = '9.17.2';
|
SweetAlert.version = '10.3.5';
|
||||||
|
|
||||||
var Swal = SweetAlert;
|
var Swal = SweetAlert;
|
||||||
Swal["default"] = Swal;
|
Swal["default"] = Swal;
|
||||||
|
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue