phcthemes_admin_panel_pack 0.16.0 → 0.17.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/MIT-LICENSE +1 -1
- data/Rakefile +0 -5
- data/lib/phcthemes_admin_panel_pack/railtie.rb +4 -0
- data/lib/phcthemes_admin_panel_pack/version.rb +1 -1
- data/lib/phcthemes_admin_panel_pack.rb +1 -1
- metadata +10 -239
- data/app/assets/config/phcthemes_admin_panel_pack_manifest.js +0 -3
- data/app/assets/javascripts/common/backstretch/jquery.backstretch.js +0 -1602
- data/app/assets/javascripts/common/bootstrap/bootstrap.bundle.js +0 -7013
- data/app/assets/javascripts/common/bootstrap/bootstrap.three.js +0 -2377
- data/app/assets/javascripts/common/bootstrap-datepicker/bootstrap-datepicker.js +0 -2039
- data/app/assets/javascripts/common/bootstrap-markdown/bootstrap-markdown.js +0 -1390
- data/app/assets/javascripts/common/bootstrap-select/bootstrap-select.js +0 -3139
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-am_ET.js +0 -46
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-am_ET.js.map +0 -1
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-am_ET.min.js +0 -8
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-ar_AR.js +0 -51
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-ar_AR.js.map +0 -1
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-ar_AR.min.js +0 -8
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-bg_BG.js +0 -46
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-bg_BG.js.map +0 -1
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-bg_BG.min.js +0 -8
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-cs_CZ.js +0 -39
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-cs_CZ.js.map +0 -1
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-cs_CZ.min.js +0 -8
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-da_DK.js +0 -46
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-da_DK.js.map +0 -1
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-da_DK.min.js +0 -8
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-de_DE.js +0 -46
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-de_DE.js.map +0 -1
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-de_DE.min.js +0 -8
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-en_US.js +0 -46
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-en_US.js.map +0 -1
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-en_US.min.js +0 -8
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-es_CL.js +0 -39
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-es_CL.js.map +0 -1
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-es_CL.min.js +0 -8
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-es_ES.js +0 -39
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-es_ES.js.map +0 -1
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-es_ES.min.js +0 -8
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-et_EE.js +0 -46
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-et_EE.js.map +0 -1
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-et_EE.min.js +0 -8
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-eu.js +0 -39
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-eu.js.map +0 -1
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-eu.min.js +0 -8
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-fa_IR.js +0 -39
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-fa_IR.js.map +0 -1
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-fa_IR.min.js +0 -8
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-fi_FI.js +0 -46
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-fi_FI.js.map +0 -1
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-fi_FI.min.js +0 -8
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-fr_FR.js +0 -46
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-fr_FR.js.map +0 -1
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-fr_FR.min.js +0 -8
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-hr_HR.js +0 -46
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-hr_HR.js.map +0 -1
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-hr_HR.min.js +0 -8
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-hu_HU.js +0 -46
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-hu_HU.js.map +0 -1
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-hu_HU.min.js +0 -8
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-id_ID.js +0 -39
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-id_ID.js.map +0 -1
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-id_ID.min.js +0 -8
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-it_IT.js +0 -41
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-it_IT.js.map +0 -1
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-it_IT.min.js +0 -8
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-ja_JP.js +0 -39
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-ja_JP.js.map +0 -1
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-ja_JP.min.js +0 -8
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-kh_KM.js +0 -46
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-kh_KM.js.map +0 -1
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-kh_KM.min.js +0 -8
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-ko_KR.js +0 -46
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-ko_KR.js.map +0 -1
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-ko_KR.min.js +0 -8
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-lt_LT.js +0 -46
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-lt_LT.js.map +0 -1
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-lt_LT.min.js +0 -8
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-lv_LV.js +0 -46
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-lv_LV.js.map +0 -1
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-lv_LV.min.js +0 -8
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-nb_NO.js +0 -46
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-nb_NO.js.map +0 -1
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-nb_NO.min.js +0 -8
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-nl_NL.js +0 -39
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-nl_NL.js.map +0 -1
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-nl_NL.min.js +0 -8
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-pl_PL.js +0 -39
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-pl_PL.js.map +0 -1
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-pl_PL.min.js +0 -8
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-pt_BR.js +0 -39
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-pt_BR.js.map +0 -1
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-pt_BR.min.js +0 -8
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-pt_PT.js +0 -39
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-pt_PT.js.map +0 -1
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-pt_PT.min.js +0 -8
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-ro_RO.js +0 -40
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-ro_RO.js.map +0 -1
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-ro_RO.min.js +0 -8
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-ru_RU.js +0 -40
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-ru_RU.js.map +0 -1
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-ru_RU.min.js +0 -8
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-sk_SK.js +0 -39
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-sk_SK.js.map +0 -1
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-sk_SK.min.js +0 -8
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-sl_SI.js +0 -44
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-sl_SI.js.map +0 -1
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-sl_SI.min.js +0 -8
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-sv_SE.js +0 -46
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-sv_SE.js.map +0 -1
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-sv_SE.min.js +0 -8
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-tr_TR.js +0 -46
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-tr_TR.js.map +0 -1
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-tr_TR.min.js +0 -8
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-ua_UA.js +0 -39
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-ua_UA.js.map +0 -1
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-ua_UA.min.js +0 -8
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-vi_VN.js +0 -46
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-vi_VN.js.map +0 -1
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-vi_VN.min.js +0 -8
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-zh_CN.js +0 -39
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-zh_CN.js.map +0 -1
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-zh_CN.min.js +0 -8
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-zh_TW.js +0 -39
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-zh_TW.js.map +0 -1
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-zh_TW.min.js +0 -8
- data/app/assets/javascripts/common/chartjs/chart.js +0 -14680
- data/app/assets/javascripts/common/custom/custom.js +0 -0
- data/app/assets/javascripts/common/datatables/datatables.js +0 -15310
- data/app/assets/javascripts/common/daterangepicker/daterangepicker.js +0 -1565
- data/app/assets/javascripts/common/fastclick/fastclick.js +0 -841
- data/app/assets/javascripts/common/flexslider/jquery.flexslider.js +0 -1252
- data/app/assets/javascripts/common/greenstock/greensock.js +0 -36
- data/app/assets/javascripts/common/icheck/icheck.js +0 -509
- data/app/assets/javascripts/common/imagesloaded/imagesloaded.pkgd.js +0 -497
- data/app/assets/javascripts/common/isotope/isotope.pkgd.js +0 -3563
- data/app/assets/javascripts/common/jquery/jquery-3.4.1.js +0 -10598
- data/app/assets/javascripts/common/jquery-countdown/jquery.countdown.js +0 -246
- data/app/assets/javascripts/common/jquery-filterizer/jquery.filterizr.min.js +0 -1
- data/app/assets/javascripts/common/jquery-jvectormap/jquery-jvectormap.js +0 -44
- data/app/assets/javascripts/common/jquery-placeholder/jquery.placeholder.js +0 -281
- data/app/assets/javascripts/common/jquery-slimscroll/jquery.slimscroll.js +0 -474
- data/app/assets/javascripts/common/jquery-sparkline/jquery.sparkline.js +0 -3054
- data/app/assets/javascripts/common/jquery-ui/jquery-ui.js +0 -18706
- data/app/assets/javascripts/common/jquery-validation/jquery.validate.js +0 -1650
- data/app/assets/javascripts/common/jqvmap/jquery.vmap.js +0 -1281
- data/app/assets/javascripts/common/jqvmap/jquery.vmap.min.js +0 -10
- data/app/assets/javascripts/common/jqvmap/maps/continents/jquery.vmap.africa.js +0 -2
- data/app/assets/javascripts/common/jqvmap/maps/continents/jquery.vmap.asia.js +0 -2
- data/app/assets/javascripts/common/jqvmap/maps/continents/jquery.vmap.australia.js +0 -2
- data/app/assets/javascripts/common/jqvmap/maps/continents/jquery.vmap.europe.js +0 -2
- data/app/assets/javascripts/common/jqvmap/maps/continents/jquery.vmap.north-america.js +0 -2
- data/app/assets/javascripts/common/jqvmap/maps/continents/jquery.vmap.south-america.js +0 -2
- data/app/assets/javascripts/common/jqvmap/maps/jquery.vmap.algeria.js +0 -2
- data/app/assets/javascripts/common/jqvmap/maps/jquery.vmap.argentina.js +0 -1
- data/app/assets/javascripts/common/jqvmap/maps/jquery.vmap.brazil.js +0 -2
- data/app/assets/javascripts/common/jqvmap/maps/jquery.vmap.canada.js +0 -2
- data/app/assets/javascripts/common/jqvmap/maps/jquery.vmap.europe.js +0 -2
- data/app/assets/javascripts/common/jqvmap/maps/jquery.vmap.france.js +0 -1
- data/app/assets/javascripts/common/jqvmap/maps/jquery.vmap.germany.js +0 -2
- data/app/assets/javascripts/common/jqvmap/maps/jquery.vmap.greece.js +0 -1
- data/app/assets/javascripts/common/jqvmap/maps/jquery.vmap.iran.js +0 -6
- data/app/assets/javascripts/common/jqvmap/maps/jquery.vmap.iraq.js +0 -1
- data/app/assets/javascripts/common/jqvmap/maps/jquery.vmap.russia.js +0 -2
- data/app/assets/javascripts/common/jqvmap/maps/jquery.vmap.tunisia.js +0 -2
- data/app/assets/javascripts/common/jqvmap/maps/jquery.vmap.turkey.js +0 -11
- data/app/assets/javascripts/common/jqvmap/maps/jquery.vmap.usa.js +0 -2
- data/app/assets/javascripts/common/jqvmap/maps/jquery.vmap.world.js +0 -2
- data/app/assets/javascripts/common/js-cookie/js.cookie.js +0 -165
- data/app/assets/javascripts/common/layerslider/layerslider.kreaturamedia.jquery.js +0 -13
- data/app/assets/javascripts/common/layerslider/layerslider.origami.js +0 -13
- data/app/assets/javascripts/common/layerslider/layerslider.timeline.js +0 -13
- data/app/assets/javascripts/common/layerslider/layerslider.transitions.js +0 -13
- data/app/assets/javascripts/common/leaflet/leaflet.js +0 -5
- data/app/assets/javascripts/common/magnific-popup/jquery.magnific-popup.js +0 -1860
- data/app/assets/javascripts/common/mapbox/mapbox.js +0 -51
- data/app/assets/javascripts/common/metismenu/metisMenu.js +0 -340
- data/app/assets/javascripts/common/moderizer/modernizr.js +0 -11
- data/app/assets/javascripts/common/owl-carousel/owl.carousel.js +0 -3448
- data/app/assets/javascripts/common/pace/pace.js +0 -935
- data/app/assets/javascripts/common/paroller/jquery.paroller.js +0 -228
- data/app/assets/javascripts/common/particlejs/particles.js +0 -1541
- data/app/assets/javascripts/common/perfect-scrollbar/perfect-scrollbar.common.js +0 -1318
- data/app/assets/javascripts/common/perfect-scrollbar/perfect-scrollbar.esm.js +0 -1316
- data/app/assets/javascripts/common/perfect-scrollbar/perfect-scrollbar.js +0 -1324
- data/app/assets/javascripts/common/plyr/plyr.js +0 -9137
- data/app/assets/javascripts/common/rangeslider/rangeslider.js +0 -498
- data/app/assets/javascripts/common/retina/retina.js +0 -100
- data/app/assets/javascripts/common/rev-slider/extensions/revolution.extension.actions.js +0 -386
- data/app/assets/javascripts/common/rev-slider/extensions/revolution.extension.carousel.js +0 -365
- data/app/assets/javascripts/common/rev-slider/extensions/revolution.extension.kenburn.js +0 -199
- data/app/assets/javascripts/common/rev-slider/extensions/revolution.extension.layeranimation.js +0 -2524
- data/app/assets/javascripts/common/rev-slider/extensions/revolution.extension.migration.js +0 -260
- data/app/assets/javascripts/common/rev-slider/extensions/revolution.extension.navigation.js +0 -1156
- data/app/assets/javascripts/common/rev-slider/extensions/revolution.extension.parallax.js +0 -465
- data/app/assets/javascripts/common/rev-slider/extensions/revolution.extension.slideanims.js +0 -1447
- data/app/assets/javascripts/common/rev-slider/extensions/revolution.extension.video.js +0 -1464
- data/app/assets/javascripts/common/rev-slider/jquery.themepunch.revolution.js +0 -3286
- data/app/assets/javascripts/common/rev-slider/jquery.themepunch.tools.min.js +0 -8710
- data/app/assets/javascripts/common/scrollup/jquery.scrollUp.js +0 -168
- data/app/assets/javascripts/common/select2/select2.full.js +0 -6597
- data/app/assets/javascripts/common/selectbox/jquery.selectBox.js +0 -1092
- data/app/assets/javascripts/common/smooth-scroll/SmoothScroll.js +0 -788
- data/app/assets/javascripts/common/spectrum/spectrum.js +0 -2323
- data/app/assets/javascripts/common/stepper/jquery.fs.stepper.js +0 -339
- data/app/assets/javascripts/common/swiper/swiper.js +0 -8124
- data/app/assets/javascripts/common/toaster/toastr.js +0 -476
- data/app/assets/javascripts/common/typed/typed.js +0 -1045
- data/app/assets/javascripts/common/visable/jquery.visible.js +0 -68
- data/app/assets/javascripts/common/waypoints/jquery.waypoints.js +0 -662
- data/app/assets/javascripts/phcthemes_admin_panel_pack_adminlte.js +0 -12
- data/app/assets/javascripts/phcthemes_admin_panel_pack_basic.js +0 -5
- data/app/assets/javascripts/phcthemes_admin_panel_pack_boomerang.js +0 -0
- data/app/assets/javascripts/phcthemes_admin_panel_pack_coloradmin.js +0 -10
- data/app/assets/javascripts/phcthemes_admin_panel_pack_inspinia.js +0 -10
- data/app/assets/javascripts/phcthemes_admin_panel_pack_metronic.js +0 -4
- data/app/assets/javascripts/phcthemes_admin_panel_pack_quilpro.js +0 -5
- data/app/assets/javascripts/phcthemes_admin_panel_pack_starlight.js +0 -5
- data/app/assets/javascripts/themes/adminlte/custom/custom.js +0 -0
- data/app/assets/javascripts/themes/adminlte/theme/adminlte.js +0 -1141
- data/app/assets/javascripts/themes/boomerang/custom/custom.1.js +0 -0
- data/app/assets/javascripts/themes/boomerang/custom/custom.js +0 -0
- data/app/assets/javascripts/themes/coloradmin/theme/apps.js +0 -1650
- data/app/assets/javascripts/themes/coloradmin/theme/default.js +0 -152
- data/app/assets/javascripts/themes/inspinia/custom/custom.js +0 -0
- data/app/assets/javascripts/themes/inspinia/theme/inspinia.js +0 -279
- data/app/assets/javascripts/themes/metronic/theme/scripts.bundle.js +0 -9916
- data/app/assets/javascripts/themes/metronic/theme/vendors.bundle.js +0 -91352
- data/app/assets/stylesheets/common/custom/custom.scss +0 -0
- data/app/assets/stylesheets/phcthemes_admin_panel_pack_adminlte.scss +0 -13
- data/app/assets/stylesheets/phcthemes_admin_panel_pack_basic.scss +0 -6
- data/app/assets/stylesheets/phcthemes_admin_panel_pack_boomerang.scss +0 -24
- data/app/assets/stylesheets/phcthemes_admin_panel_pack_coloradmin.scss +0 -15
- data/app/assets/stylesheets/phcthemes_admin_panel_pack_inspinia.scss +0 -15
- data/app/assets/stylesheets/phcthemes_admin_panel_pack_metronic.scss +0 -7
- data/app/assets/stylesheets/phcthemes_admin_panel_pack_quilpro.scss +0 -16
- data/app/assets/stylesheets/phcthemes_admin_panel_pack_starlight.scss +0 -12
- data/app/assets/stylesheets/themes/adminlte/custom/custom.scss +0 -0
- data/app/assets/stylesheets/themes/boomerang/custom/custom.scss +0 -0
- data/app/assets/stylesheets/themes/coloradmin/custom/custom.scss +0 -0
- data/lib/phcthemes_admin_panel_pack/engine.rb +0 -19
@@ -1,476 +0,0 @@
|
|
1
|
-
/*
|
2
|
-
* Toastr
|
3
|
-
* Copyright 2012-2015
|
4
|
-
* Authors: John Papa, Hans Fjällemark, and Tim Ferrell.
|
5
|
-
* All Rights Reserved.
|
6
|
-
* Use, reproduction, distribution, and modification of this code is subject to the terms and
|
7
|
-
* conditions of the MIT license, available at http://www.opensource.org/licenses/mit-license.php
|
8
|
-
*
|
9
|
-
* ARIA Support: Greta Krafsig
|
10
|
-
*
|
11
|
-
* Project: https://github.com/CodeSeven/toastr
|
12
|
-
*/
|
13
|
-
/* global define */
|
14
|
-
(function (define) {
|
15
|
-
define(['jquery'], function ($) {
|
16
|
-
return (function () {
|
17
|
-
var $container;
|
18
|
-
var listener;
|
19
|
-
var toastId = 0;
|
20
|
-
var toastType = {
|
21
|
-
error: 'error',
|
22
|
-
info: 'info',
|
23
|
-
success: 'success',
|
24
|
-
warning: 'warning'
|
25
|
-
};
|
26
|
-
|
27
|
-
var toastr = {
|
28
|
-
clear: clear,
|
29
|
-
remove: remove,
|
30
|
-
error: error,
|
31
|
-
getContainer: getContainer,
|
32
|
-
info: info,
|
33
|
-
options: {},
|
34
|
-
subscribe: subscribe,
|
35
|
-
success: success,
|
36
|
-
version: '2.1.4',
|
37
|
-
warning: warning
|
38
|
-
};
|
39
|
-
|
40
|
-
var previousToast;
|
41
|
-
|
42
|
-
return toastr;
|
43
|
-
|
44
|
-
////////////////
|
45
|
-
|
46
|
-
function error(message, title, optionsOverride) {
|
47
|
-
return notify({
|
48
|
-
type: toastType.error,
|
49
|
-
iconClass: getOptions().iconClasses.error,
|
50
|
-
message: message,
|
51
|
-
optionsOverride: optionsOverride,
|
52
|
-
title: title
|
53
|
-
});
|
54
|
-
}
|
55
|
-
|
56
|
-
function getContainer(options, create) {
|
57
|
-
if (!options) { options = getOptions(); }
|
58
|
-
$container = $('#' + options.containerId);
|
59
|
-
if ($container.length) {
|
60
|
-
return $container;
|
61
|
-
}
|
62
|
-
if (create) {
|
63
|
-
$container = createContainer(options);
|
64
|
-
}
|
65
|
-
return $container;
|
66
|
-
}
|
67
|
-
|
68
|
-
function info(message, title, optionsOverride) {
|
69
|
-
return notify({
|
70
|
-
type: toastType.info,
|
71
|
-
iconClass: getOptions().iconClasses.info,
|
72
|
-
message: message,
|
73
|
-
optionsOverride: optionsOverride,
|
74
|
-
title: title
|
75
|
-
});
|
76
|
-
}
|
77
|
-
|
78
|
-
function subscribe(callback) {
|
79
|
-
listener = callback;
|
80
|
-
}
|
81
|
-
|
82
|
-
function success(message, title, optionsOverride) {
|
83
|
-
return notify({
|
84
|
-
type: toastType.success,
|
85
|
-
iconClass: getOptions().iconClasses.success,
|
86
|
-
message: message,
|
87
|
-
optionsOverride: optionsOverride,
|
88
|
-
title: title
|
89
|
-
});
|
90
|
-
}
|
91
|
-
|
92
|
-
function warning(message, title, optionsOverride) {
|
93
|
-
return notify({
|
94
|
-
type: toastType.warning,
|
95
|
-
iconClass: getOptions().iconClasses.warning,
|
96
|
-
message: message,
|
97
|
-
optionsOverride: optionsOverride,
|
98
|
-
title: title
|
99
|
-
});
|
100
|
-
}
|
101
|
-
|
102
|
-
function clear($toastElement, clearOptions) {
|
103
|
-
var options = getOptions();
|
104
|
-
if (!$container) { getContainer(options); }
|
105
|
-
if (!clearToast($toastElement, options, clearOptions)) {
|
106
|
-
clearContainer(options);
|
107
|
-
}
|
108
|
-
}
|
109
|
-
|
110
|
-
function remove($toastElement) {
|
111
|
-
var options = getOptions();
|
112
|
-
if (!$container) { getContainer(options); }
|
113
|
-
if ($toastElement && $(':focus', $toastElement).length === 0) {
|
114
|
-
removeToast($toastElement);
|
115
|
-
return;
|
116
|
-
}
|
117
|
-
if ($container.children().length) {
|
118
|
-
$container.remove();
|
119
|
-
}
|
120
|
-
}
|
121
|
-
|
122
|
-
// internal functions
|
123
|
-
|
124
|
-
function clearContainer (options) {
|
125
|
-
var toastsToClear = $container.children();
|
126
|
-
for (var i = toastsToClear.length - 1; i >= 0; i--) {
|
127
|
-
clearToast($(toastsToClear[i]), options);
|
128
|
-
}
|
129
|
-
}
|
130
|
-
|
131
|
-
function clearToast ($toastElement, options, clearOptions) {
|
132
|
-
var force = clearOptions && clearOptions.force ? clearOptions.force : false;
|
133
|
-
if ($toastElement && (force || $(':focus', $toastElement).length === 0)) {
|
134
|
-
$toastElement[options.hideMethod]({
|
135
|
-
duration: options.hideDuration,
|
136
|
-
easing: options.hideEasing,
|
137
|
-
complete: function () { removeToast($toastElement); }
|
138
|
-
});
|
139
|
-
return true;
|
140
|
-
}
|
141
|
-
return false;
|
142
|
-
}
|
143
|
-
|
144
|
-
function createContainer(options) {
|
145
|
-
$container = $('<div/>')
|
146
|
-
.attr('id', options.containerId)
|
147
|
-
.addClass(options.positionClass);
|
148
|
-
|
149
|
-
$container.appendTo($(options.target));
|
150
|
-
return $container;
|
151
|
-
}
|
152
|
-
|
153
|
-
function getDefaults() {
|
154
|
-
return {
|
155
|
-
tapToDismiss: true,
|
156
|
-
toastClass: 'toast',
|
157
|
-
containerId: 'toast-container',
|
158
|
-
debug: false,
|
159
|
-
|
160
|
-
showMethod: 'fadeIn', //fadeIn, slideDown, and show are built into jQuery
|
161
|
-
showDuration: 300,
|
162
|
-
showEasing: 'swing', //swing and linear are built into jQuery
|
163
|
-
onShown: undefined,
|
164
|
-
hideMethod: 'fadeOut',
|
165
|
-
hideDuration: 1000,
|
166
|
-
hideEasing: 'swing',
|
167
|
-
onHidden: undefined,
|
168
|
-
closeMethod: false,
|
169
|
-
closeDuration: false,
|
170
|
-
closeEasing: false,
|
171
|
-
closeOnHover: true,
|
172
|
-
|
173
|
-
extendedTimeOut: 1000,
|
174
|
-
iconClasses: {
|
175
|
-
error: 'toast-error',
|
176
|
-
info: 'toast-info',
|
177
|
-
success: 'toast-success',
|
178
|
-
warning: 'toast-warning'
|
179
|
-
},
|
180
|
-
iconClass: 'toast-info',
|
181
|
-
positionClass: 'toast-top-right',
|
182
|
-
timeOut: 5000, // Set timeOut and extendedTimeOut to 0 to make it sticky
|
183
|
-
titleClass: 'toast-title',
|
184
|
-
messageClass: 'toast-message',
|
185
|
-
escapeHtml: false,
|
186
|
-
target: 'body',
|
187
|
-
closeHtml: '<button type="button">×</button>',
|
188
|
-
closeClass: 'toast-close-button',
|
189
|
-
newestOnTop: true,
|
190
|
-
preventDuplicates: false,
|
191
|
-
progressBar: false,
|
192
|
-
progressClass: 'toast-progress',
|
193
|
-
rtl: false
|
194
|
-
};
|
195
|
-
}
|
196
|
-
|
197
|
-
function publish(args) {
|
198
|
-
if (!listener) { return; }
|
199
|
-
listener(args);
|
200
|
-
}
|
201
|
-
|
202
|
-
function notify(map) {
|
203
|
-
var options = getOptions();
|
204
|
-
var iconClass = map.iconClass || options.iconClass;
|
205
|
-
|
206
|
-
if (typeof (map.optionsOverride) !== 'undefined') {
|
207
|
-
options = $.extend(options, map.optionsOverride);
|
208
|
-
iconClass = map.optionsOverride.iconClass || iconClass;
|
209
|
-
}
|
210
|
-
|
211
|
-
if (shouldExit(options, map)) { return; }
|
212
|
-
|
213
|
-
toastId++;
|
214
|
-
|
215
|
-
$container = getContainer(options, true);
|
216
|
-
|
217
|
-
var intervalId = null;
|
218
|
-
var $toastElement = $('<div/>');
|
219
|
-
var $titleElement = $('<div/>');
|
220
|
-
var $messageElement = $('<div/>');
|
221
|
-
var $progressElement = $('<div/>');
|
222
|
-
var $closeElement = $(options.closeHtml);
|
223
|
-
var progressBar = {
|
224
|
-
intervalId: null,
|
225
|
-
hideEta: null,
|
226
|
-
maxHideTime: null
|
227
|
-
};
|
228
|
-
var response = {
|
229
|
-
toastId: toastId,
|
230
|
-
state: 'visible',
|
231
|
-
startTime: new Date(),
|
232
|
-
options: options,
|
233
|
-
map: map
|
234
|
-
};
|
235
|
-
|
236
|
-
personalizeToast();
|
237
|
-
|
238
|
-
displayToast();
|
239
|
-
|
240
|
-
handleEvents();
|
241
|
-
|
242
|
-
publish(response);
|
243
|
-
|
244
|
-
if (options.debug && console) {
|
245
|
-
console.log(response);
|
246
|
-
}
|
247
|
-
|
248
|
-
return $toastElement;
|
249
|
-
|
250
|
-
function escapeHtml(source) {
|
251
|
-
if (source == null) {
|
252
|
-
source = '';
|
253
|
-
}
|
254
|
-
|
255
|
-
return source
|
256
|
-
.replace(/&/g, '&')
|
257
|
-
.replace(/"/g, '"')
|
258
|
-
.replace(/'/g, ''')
|
259
|
-
.replace(/</g, '<')
|
260
|
-
.replace(/>/g, '>');
|
261
|
-
}
|
262
|
-
|
263
|
-
function personalizeToast() {
|
264
|
-
setIcon();
|
265
|
-
setTitle();
|
266
|
-
setMessage();
|
267
|
-
setCloseButton();
|
268
|
-
setProgressBar();
|
269
|
-
setRTL();
|
270
|
-
setSequence();
|
271
|
-
setAria();
|
272
|
-
}
|
273
|
-
|
274
|
-
function setAria() {
|
275
|
-
var ariaValue = '';
|
276
|
-
switch (map.iconClass) {
|
277
|
-
case 'toast-success':
|
278
|
-
case 'toast-info':
|
279
|
-
ariaValue = 'polite';
|
280
|
-
break;
|
281
|
-
default:
|
282
|
-
ariaValue = 'assertive';
|
283
|
-
}
|
284
|
-
$toastElement.attr('aria-live', ariaValue);
|
285
|
-
}
|
286
|
-
|
287
|
-
function handleEvents() {
|
288
|
-
if (options.closeOnHover) {
|
289
|
-
$toastElement.hover(stickAround, delayedHideToast);
|
290
|
-
}
|
291
|
-
|
292
|
-
if (!options.onclick && options.tapToDismiss) {
|
293
|
-
$toastElement.click(hideToast);
|
294
|
-
}
|
295
|
-
|
296
|
-
if (options.closeButton && $closeElement) {
|
297
|
-
$closeElement.click(function (event) {
|
298
|
-
if (event.stopPropagation) {
|
299
|
-
event.stopPropagation();
|
300
|
-
} else if (event.cancelBubble !== undefined && event.cancelBubble !== true) {
|
301
|
-
event.cancelBubble = true;
|
302
|
-
}
|
303
|
-
|
304
|
-
if (options.onCloseClick) {
|
305
|
-
options.onCloseClick(event);
|
306
|
-
}
|
307
|
-
|
308
|
-
hideToast(true);
|
309
|
-
});
|
310
|
-
}
|
311
|
-
|
312
|
-
if (options.onclick) {
|
313
|
-
$toastElement.click(function (event) {
|
314
|
-
options.onclick(event);
|
315
|
-
hideToast();
|
316
|
-
});
|
317
|
-
}
|
318
|
-
}
|
319
|
-
|
320
|
-
function displayToast() {
|
321
|
-
$toastElement.hide();
|
322
|
-
|
323
|
-
$toastElement[options.showMethod](
|
324
|
-
{duration: options.showDuration, easing: options.showEasing, complete: options.onShown}
|
325
|
-
);
|
326
|
-
|
327
|
-
if (options.timeOut > 0) {
|
328
|
-
intervalId = setTimeout(hideToast, options.timeOut);
|
329
|
-
progressBar.maxHideTime = parseFloat(options.timeOut);
|
330
|
-
progressBar.hideEta = new Date().getTime() + progressBar.maxHideTime;
|
331
|
-
if (options.progressBar) {
|
332
|
-
progressBar.intervalId = setInterval(updateProgress, 10);
|
333
|
-
}
|
334
|
-
}
|
335
|
-
}
|
336
|
-
|
337
|
-
function setIcon() {
|
338
|
-
if (map.iconClass) {
|
339
|
-
$toastElement.addClass(options.toastClass).addClass(iconClass);
|
340
|
-
}
|
341
|
-
}
|
342
|
-
|
343
|
-
function setSequence() {
|
344
|
-
if (options.newestOnTop) {
|
345
|
-
$container.prepend($toastElement);
|
346
|
-
} else {
|
347
|
-
$container.append($toastElement);
|
348
|
-
}
|
349
|
-
}
|
350
|
-
|
351
|
-
function setTitle() {
|
352
|
-
if (map.title) {
|
353
|
-
var suffix = map.title;
|
354
|
-
if (options.escapeHtml) {
|
355
|
-
suffix = escapeHtml(map.title);
|
356
|
-
}
|
357
|
-
$titleElement.append(suffix).addClass(options.titleClass);
|
358
|
-
$toastElement.append($titleElement);
|
359
|
-
}
|
360
|
-
}
|
361
|
-
|
362
|
-
function setMessage() {
|
363
|
-
if (map.message) {
|
364
|
-
var suffix = map.message;
|
365
|
-
if (options.escapeHtml) {
|
366
|
-
suffix = escapeHtml(map.message);
|
367
|
-
}
|
368
|
-
$messageElement.append(suffix).addClass(options.messageClass);
|
369
|
-
$toastElement.append($messageElement);
|
370
|
-
}
|
371
|
-
}
|
372
|
-
|
373
|
-
function setCloseButton() {
|
374
|
-
if (options.closeButton) {
|
375
|
-
$closeElement.addClass(options.closeClass).attr('role', 'button');
|
376
|
-
$toastElement.prepend($closeElement);
|
377
|
-
}
|
378
|
-
}
|
379
|
-
|
380
|
-
function setProgressBar() {
|
381
|
-
if (options.progressBar) {
|
382
|
-
$progressElement.addClass(options.progressClass);
|
383
|
-
$toastElement.prepend($progressElement);
|
384
|
-
}
|
385
|
-
}
|
386
|
-
|
387
|
-
function setRTL() {
|
388
|
-
if (options.rtl) {
|
389
|
-
$toastElement.addClass('rtl');
|
390
|
-
}
|
391
|
-
}
|
392
|
-
|
393
|
-
function shouldExit(options, map) {
|
394
|
-
if (options.preventDuplicates) {
|
395
|
-
if (map.message === previousToast) {
|
396
|
-
return true;
|
397
|
-
} else {
|
398
|
-
previousToast = map.message;
|
399
|
-
}
|
400
|
-
}
|
401
|
-
return false;
|
402
|
-
}
|
403
|
-
|
404
|
-
function hideToast(override) {
|
405
|
-
var method = override && options.closeMethod !== false ? options.closeMethod : options.hideMethod;
|
406
|
-
var duration = override && options.closeDuration !== false ?
|
407
|
-
options.closeDuration : options.hideDuration;
|
408
|
-
var easing = override && options.closeEasing !== false ? options.closeEasing : options.hideEasing;
|
409
|
-
if ($(':focus', $toastElement).length && !override) {
|
410
|
-
return;
|
411
|
-
}
|
412
|
-
clearTimeout(progressBar.intervalId);
|
413
|
-
return $toastElement[method]({
|
414
|
-
duration: duration,
|
415
|
-
easing: easing,
|
416
|
-
complete: function () {
|
417
|
-
removeToast($toastElement);
|
418
|
-
clearTimeout(intervalId);
|
419
|
-
if (options.onHidden && response.state !== 'hidden') {
|
420
|
-
options.onHidden();
|
421
|
-
}
|
422
|
-
response.state = 'hidden';
|
423
|
-
response.endTime = new Date();
|
424
|
-
publish(response);
|
425
|
-
}
|
426
|
-
});
|
427
|
-
}
|
428
|
-
|
429
|
-
function delayedHideToast() {
|
430
|
-
if (options.timeOut > 0 || options.extendedTimeOut > 0) {
|
431
|
-
intervalId = setTimeout(hideToast, options.extendedTimeOut);
|
432
|
-
progressBar.maxHideTime = parseFloat(options.extendedTimeOut);
|
433
|
-
progressBar.hideEta = new Date().getTime() + progressBar.maxHideTime;
|
434
|
-
}
|
435
|
-
}
|
436
|
-
|
437
|
-
function stickAround() {
|
438
|
-
clearTimeout(intervalId);
|
439
|
-
progressBar.hideEta = 0;
|
440
|
-
$toastElement.stop(true, true)[options.showMethod](
|
441
|
-
{duration: options.showDuration, easing: options.showEasing}
|
442
|
-
);
|
443
|
-
}
|
444
|
-
|
445
|
-
function updateProgress() {
|
446
|
-
var percentage = ((progressBar.hideEta - (new Date().getTime())) / progressBar.maxHideTime) * 100;
|
447
|
-
$progressElement.width(percentage + '%');
|
448
|
-
}
|
449
|
-
}
|
450
|
-
|
451
|
-
function getOptions() {
|
452
|
-
return $.extend({}, getDefaults(), toastr.options);
|
453
|
-
}
|
454
|
-
|
455
|
-
function removeToast($toastElement) {
|
456
|
-
if (!$container) { $container = getContainer(); }
|
457
|
-
if ($toastElement.is(':visible')) {
|
458
|
-
return;
|
459
|
-
}
|
460
|
-
$toastElement.remove();
|
461
|
-
$toastElement = null;
|
462
|
-
if ($container.children().length === 0) {
|
463
|
-
$container.remove();
|
464
|
-
previousToast = undefined;
|
465
|
-
}
|
466
|
-
}
|
467
|
-
|
468
|
-
})();
|
469
|
-
});
|
470
|
-
}(typeof define === 'function' && define.amd ? define : function (deps, factory) {
|
471
|
-
if (typeof module !== 'undefined' && module.exports) { //Node
|
472
|
-
module.exports = factory(require('jquery'));
|
473
|
-
} else {
|
474
|
-
window.toastr = factory(window.jQuery);
|
475
|
-
}
|
476
|
-
}));
|