sweetalert2 10.16.8 → 10.16.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (51) hide show
  1. package/CHANGELOG.md +0 -8
  2. package/README.md +9 -4
  3. package/dist/sweetalert2.all.js +351 -122
  4. package/dist/sweetalert2.all.min.js +2 -2
  5. package/dist/sweetalert2.css +166 -158
  6. package/dist/sweetalert2.js +350 -121
  7. package/dist/sweetalert2.min.css +1 -1
  8. package/dist/sweetalert2.min.js +1 -1
  9. package/package.json +9 -9
  10. package/src/SweetAlert.js +17 -1
  11. package/src/globalState.js +3 -3
  12. package/src/instanceMethods/_destroy.js +9 -2
  13. package/src/instanceMethods/_main.js +12 -3
  14. package/src/instanceMethods/close.js +23 -7
  15. package/src/instanceMethods/getInput.js +1 -1
  16. package/src/instanceMethods/hideLoading.js +5 -15
  17. package/src/instanceMethods/keydown-handler.js +8 -1
  18. package/src/scss/_core.scss +140 -123
  19. package/src/scss/_mixins.scss +6 -0
  20. package/src/scss/_polyfills.scss +26 -0
  21. package/src/scss/_toasts-body.scss +0 -3
  22. package/src/scss/_toasts.scss +33 -35
  23. package/src/staticMethods/bindClickHandler.js +2 -1
  24. package/src/staticMethods/dom.js +2 -0
  25. package/src/staticMethods/queue.js +63 -0
  26. package/src/staticMethods/showLoading.js +6 -15
  27. package/src/staticMethods.js +1 -0
  28. package/src/sweetalert2.scss +1 -0
  29. package/src/utils/aria.js +2 -1
  30. package/src/utils/classes.js +2 -1
  31. package/src/utils/dom/domUtils.js +17 -11
  32. package/src/utils/dom/getters.js +4 -0
  33. package/src/utils/dom/init.js +42 -36
  34. package/src/utils/dom/inputUtils.js +6 -6
  35. package/src/utils/dom/renderers/render.js +7 -13
  36. package/src/utils/dom/renderers/renderActions.js +0 -3
  37. package/src/utils/dom/renderers/renderContainer.js +7 -0
  38. package/src/utils/dom/renderers/renderContent.js +3 -0
  39. package/src/utils/dom/renderers/renderHeader.js +28 -0
  40. package/src/utils/dom/renderers/renderInput.js +15 -9
  41. package/src/utils/dom/renderers/renderPopup.js +0 -1
  42. package/src/utils/dom/renderers/renderProgressSteps.js +4 -2
  43. package/src/utils/getTemplateParams.js +5 -2
  44. package/src/utils/ieFix.js +29 -0
  45. package/src/utils/iosFix.js +2 -2
  46. package/src/utils/openPopup.js +17 -4
  47. package/src/utils/params.js +19 -1
  48. package/src/utils/setParameters.js +7 -1
  49. package/src/utils/utils.js +6 -2
  50. package/src/variables.scss +51 -57
  51. package/sweetalert2.d.ts +93 -0
package/CHANGELOG.md CHANGED
@@ -1,11 +1,3 @@
1
- ## [10.16.8](https://github.com/sweetalert2/sweetalert2/compare/v10.16.7...v10.16.8) (2021-05-14)
2
-
3
-
4
- ### Bug Fixes
5
-
6
- * container layout for mobile devices ([#2244](https://github.com/sweetalert2/sweetalert2/issues/2244)) ([acfa2d9](https://github.com/sweetalert2/sweetalert2/commit/acfa2d9d9c4c7ca44bff604fe696d8a6ad3183e8))
7
- * popup centering in Safari ([#2242](https://github.com/sweetalert2/sweetalert2/issues/2242)) ([f9535b7](https://github.com/sweetalert2/sweetalert2/commit/f9535b71506c622fa1dd0636ba85e2afb4086f99))
8
-
9
1
  ## [10.16.7](https://github.com/sweetalert2/sweetalert2/compare/v10.16.6...v10.16.7) (2021-05-02)
10
2
 
11
3
 
package/README.md CHANGED
@@ -62,6 +62,9 @@ Usage
62
62
 
63
63
  ```html
64
64
  <script src="sweetalert2/dist/sweetalert2.all.min.js"></script>
65
+
66
+ <!-- Include a polyfill for ES6 Promises (optional) for IE11 -->
67
+ <script src="https://cdn.jsdelivr.net/npm/promise-polyfill@8/dist/polyfill.js"></script>
65
68
  ```
66
69
 
67
70
  You can also include the stylesheet separately if desired:
@@ -152,11 +155,13 @@ Swal.fire({
152
155
  Browser compatibility
153
156
  ---------------------
154
157
 
155
- Chrome | Firefox | Safari | Edge
156
- -------|---------|--------|-----
157
- :heavy_check_mark: | :heavy_check_mark: | :heavy_check_mark: | :heavy_check_mark: | :heavy_check_mark:
158
+ IE11* | Edge | Chrome | Firefox | Safari | Opera | UC Browser
159
+ -------|------|--------|---------|--------|-------|------------
160
+ :heavy_check_mark: | :heavy_check_mark: | :heavy_check_mark: | :heavy_check_mark: | :heavy_check_mark: | :heavy_check_mark: | :heavy_check_mark: |
161
+
162
+ \* ES6 Promise polyfill should be included, see [usage example](#usage).
158
163
 
159
- IF you need IE11 and old Edge support, please use [the previous major version](https://github.com/sweetalert2/sweetalert2/releases/tag/v10.16.7).
164
+ Note that SweetAlert2 **does not** and **will not** provide support or functionality of any kind on IE10 and lower.
160
165
 
161
166
 
162
167