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.
- package/CHANGELOG.md +0 -8
- package/README.md +9 -4
- package/dist/sweetalert2.all.js +351 -122
- package/dist/sweetalert2.all.min.js +2 -2
- package/dist/sweetalert2.css +166 -158
- package/dist/sweetalert2.js +350 -121
- package/dist/sweetalert2.min.css +1 -1
- package/dist/sweetalert2.min.js +1 -1
- package/package.json +9 -9
- package/src/SweetAlert.js +17 -1
- package/src/globalState.js +3 -3
- package/src/instanceMethods/_destroy.js +9 -2
- package/src/instanceMethods/_main.js +12 -3
- package/src/instanceMethods/close.js +23 -7
- package/src/instanceMethods/getInput.js +1 -1
- package/src/instanceMethods/hideLoading.js +5 -15
- package/src/instanceMethods/keydown-handler.js +8 -1
- package/src/scss/_core.scss +140 -123
- package/src/scss/_mixins.scss +6 -0
- package/src/scss/_polyfills.scss +26 -0
- package/src/scss/_toasts-body.scss +0 -3
- package/src/scss/_toasts.scss +33 -35
- package/src/staticMethods/bindClickHandler.js +2 -1
- package/src/staticMethods/dom.js +2 -0
- package/src/staticMethods/queue.js +63 -0
- package/src/staticMethods/showLoading.js +6 -15
- package/src/staticMethods.js +1 -0
- package/src/sweetalert2.scss +1 -0
- package/src/utils/aria.js +2 -1
- package/src/utils/classes.js +2 -1
- package/src/utils/dom/domUtils.js +17 -11
- package/src/utils/dom/getters.js +4 -0
- package/src/utils/dom/init.js +42 -36
- package/src/utils/dom/inputUtils.js +6 -6
- package/src/utils/dom/renderers/render.js +7 -13
- package/src/utils/dom/renderers/renderActions.js +0 -3
- package/src/utils/dom/renderers/renderContainer.js +7 -0
- package/src/utils/dom/renderers/renderContent.js +3 -0
- package/src/utils/dom/renderers/renderHeader.js +28 -0
- package/src/utils/dom/renderers/renderInput.js +15 -9
- package/src/utils/dom/renderers/renderPopup.js +0 -1
- package/src/utils/dom/renderers/renderProgressSteps.js +4 -2
- package/src/utils/getTemplateParams.js +5 -2
- package/src/utils/ieFix.js +29 -0
- package/src/utils/iosFix.js +2 -2
- package/src/utils/openPopup.js +17 -4
- package/src/utils/params.js +19 -1
- package/src/utils/setParameters.js +7 -1
- package/src/utils/utils.js +6 -2
- package/src/variables.scss +51 -57
- 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 |
|
|
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
|
-
|
|
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
|
|