q2-tecton-elements 1.12.1 → 1.13.1

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 (219) hide show
  1. package/dist/cjs/click-elsewhere.cjs.entry.js +5 -7
  2. package/dist/cjs/{icons-9bd0febe.js → icons-08ffe5c9.js} +386 -386
  3. package/dist/cjs/{index-c2e53804.js → index-7febb200.js} +112 -65
  4. package/dist/cjs/{index-773c3eec.js → index-dd823ee6.js} +2 -2
  5. package/dist/cjs/loader.cjs.js +3 -3
  6. package/dist/cjs/q2-avatar.cjs.entry.js +2 -2
  7. package/dist/cjs/q2-badge.cjs.entry.js +43 -0
  8. package/dist/cjs/q2-btn_2.cjs.entry.js +13 -13
  9. package/dist/cjs/q2-calendar.cjs.entry.js +42 -59
  10. package/dist/cjs/q2-card.cjs.entry.js +43 -5
  11. package/dist/cjs/q2-carousel-pane.cjs.entry.js +5 -5
  12. package/dist/cjs/q2-carousel.cjs.entry.js +318 -106
  13. package/dist/cjs/q2-checkbox-group.cjs.entry.js +3 -3
  14. package/dist/cjs/q2-checkbox.cjs.entry.js +8 -11
  15. package/dist/cjs/q2-dropdown-item.cjs.entry.js +7 -7
  16. package/dist/cjs/q2-dropdown.cjs.entry.js +9 -18
  17. package/dist/cjs/q2-editable-field.cjs.entry.js +5 -8
  18. package/dist/cjs/q2-icon.cjs.entry.js +3 -3
  19. package/dist/cjs/q2-input.cjs.entry.js +431 -434
  20. package/dist/cjs/q2-loading-element.cjs.entry.js +3 -3
  21. package/dist/cjs/q2-loc.cjs.entry.js +2 -2
  22. package/dist/cjs/q2-message.cjs.entry.js +5 -5
  23. package/dist/cjs/q2-optgroup.cjs.entry.js +3 -3
  24. package/dist/cjs/q2-option-list.cjs.entry.js +5 -3
  25. package/dist/cjs/q2-option.cjs.entry.js +1 -1
  26. package/dist/cjs/q2-pagination.cjs.entry.js +6 -8
  27. package/dist/cjs/q2-pill.cjs.entry.js +9 -9
  28. package/dist/cjs/q2-radio-group.cjs.entry.js +4 -7
  29. package/dist/cjs/q2-radio.cjs.entry.js +2 -2
  30. package/dist/cjs/q2-section.cjs.entry.js +5 -7
  31. package/dist/cjs/q2-select.cjs.entry.js +17 -29
  32. package/dist/cjs/q2-stepper-pane.cjs.entry.js +42 -4
  33. package/dist/cjs/q2-stepper-vertical.cjs.entry.js +278 -0
  34. package/dist/cjs/q2-stepper.cjs.entry.js +10 -12
  35. package/dist/cjs/q2-tab-container.cjs.entry.js +8 -8
  36. package/dist/cjs/q2-tab-pane.cjs.entry.js +1 -1
  37. package/dist/cjs/q2-tag.cjs.entry.js +4 -4
  38. package/dist/cjs/q2-tecton-elements.cjs.js +3 -3
  39. package/dist/cjs/q2-textarea.cjs.entry.js +8 -8
  40. package/dist/cjs/{shapes-086c0365.js → shapes-305746b5.js} +9 -16
  41. package/dist/cjs/tecton-tab-pane.cjs.entry.js +2 -5
  42. package/dist/collection/collection-manifest.json +5 -3
  43. package/dist/collection/components/click-elsewhere/index.js +4 -6
  44. package/dist/collection/components/q2-badge/index.js +148 -0
  45. package/dist/collection/components/q2-badge/styles.css +134 -0
  46. package/dist/collection/components/q2-btn/index.js +14 -14
  47. package/dist/collection/components/q2-calendar/helpers.js +16 -20
  48. package/dist/collection/components/q2-calendar/index.js +21 -36
  49. package/dist/collection/components/q2-calendar/styles.css +1 -1
  50. package/dist/collection/components/q2-calendar/validation.js +4 -2
  51. package/dist/collection/components/q2-card/index.js +59 -2
  52. package/dist/collection/components/q2-card/styles.css +17 -1
  53. package/dist/collection/components/q2-carousel/index.js +11 -16
  54. package/dist/collection/components/q2-carousel/styles.css +3 -3
  55. package/dist/collection/components/q2-carousel-pane/index.js +2 -2
  56. package/dist/collection/components/q2-carousel-pane/styles.css +8 -3
  57. package/dist/collection/components/q2-checkbox/index.js +8 -11
  58. package/dist/collection/components/q2-checkbox/styles.css +1 -1
  59. package/dist/collection/components/q2-checkbox-group/index.js +1 -1
  60. package/dist/collection/components/q2-dropdown/index.js +6 -15
  61. package/dist/collection/components/q2-dropdown/styles.css +3 -3
  62. package/dist/collection/components/q2-dropdown-item/index.js +5 -5
  63. package/dist/collection/components/q2-editable-field/index.js +3 -6
  64. package/dist/collection/components/q2-icon/icons.js +385 -385
  65. package/dist/collection/components/q2-input/formatting/credit-card.js +15 -13
  66. package/dist/collection/components/q2-input/formatting/currency.js +162 -162
  67. package/dist/collection/components/q2-input/formatting/date.js +1 -1
  68. package/dist/collection/components/q2-input/formatting/generic.js +7 -8
  69. package/dist/collection/components/q2-input/formatting/number.js +6 -9
  70. package/dist/collection/components/q2-input/formatting/numeric.js +5 -5
  71. package/dist/collection/components/q2-input/formatting/phone.js +215 -215
  72. package/dist/collection/components/q2-input/formatting/postal.js +1 -1
  73. package/dist/collection/components/q2-input/index.js +20 -21
  74. package/dist/collection/components/q2-input/styles.css +19 -6
  75. package/dist/collection/components/q2-loading/index.js +4 -4
  76. package/dist/collection/components/q2-loading/skeleton/q2-loading-element/index.js +1 -1
  77. package/dist/collection/components/q2-loading/skeleton/shapes.js +8 -15
  78. package/dist/collection/components/q2-loading/styles.css +1 -1
  79. package/dist/collection/components/q2-message/index.js +3 -3
  80. package/dist/collection/components/q2-optgroup/index.js +1 -1
  81. package/dist/collection/components/q2-option-list/index.js +4 -2
  82. package/dist/collection/components/q2-pagination/index.js +4 -6
  83. package/dist/collection/components/q2-pill/index.js +8 -8
  84. package/dist/collection/components/q2-pill/styles.css +3 -1
  85. package/dist/collection/components/q2-radio-group/index.js +3 -6
  86. package/dist/collection/components/q2-section/index.js +5 -7
  87. package/dist/collection/components/q2-select/index.js +15 -27
  88. package/dist/collection/components/q2-select/styles.css +4 -4
  89. package/dist/collection/components/q2-stepper/index.js +8 -10
  90. package/dist/collection/components/q2-stepper/styles.css +3 -3
  91. package/dist/collection/components/q2-stepper-pane/index.js +133 -5
  92. package/dist/collection/components/q2-stepper-vertical/index.js +346 -0
  93. package/dist/collection/components/q2-stepper-vertical/styles.css +273 -0
  94. package/dist/collection/components/q2-tab-container/index.js +7 -7
  95. package/dist/collection/components/q2-tag/index.js +3 -3
  96. package/dist/collection/components/q2-textarea/index.js +6 -6
  97. package/dist/collection/components/tecton-tab-pane/index.js +3 -10
  98. package/dist/collection/utils/index.js +1 -1
  99. package/dist/esm/click-elsewhere.entry.js +5 -7
  100. package/dist/esm/{icons-6a143c2f.js → icons-b1e11526.js} +386 -386
  101. package/dist/esm/{index-fa32f694.js → index-0ff8de52.js} +2 -2
  102. package/dist/esm/{index-be8376c0.js → index-dbfb3ecc.js} +112 -65
  103. package/dist/esm/loader.js +3 -3
  104. package/dist/esm/polyfills/css-shim.js +1 -1
  105. package/dist/esm/q2-avatar.entry.js +2 -2
  106. package/dist/esm/q2-badge.entry.js +39 -0
  107. package/dist/esm/q2-btn_2.entry.js +13 -13
  108. package/dist/esm/q2-calendar.entry.js +42 -59
  109. package/dist/esm/q2-card.entry.js +43 -5
  110. package/dist/esm/q2-carousel-pane.entry.js +5 -5
  111. package/dist/esm/q2-carousel.entry.js +318 -106
  112. package/dist/esm/q2-checkbox-group.entry.js +3 -3
  113. package/dist/esm/q2-checkbox.entry.js +8 -11
  114. package/dist/esm/q2-dropdown-item.entry.js +7 -7
  115. package/dist/esm/q2-dropdown.entry.js +9 -18
  116. package/dist/esm/q2-editable-field.entry.js +5 -8
  117. package/dist/esm/q2-icon.entry.js +3 -3
  118. package/dist/esm/q2-input.entry.js +431 -434
  119. package/dist/esm/q2-loading-element.entry.js +3 -3
  120. package/dist/esm/q2-loc.entry.js +2 -2
  121. package/dist/esm/q2-message.entry.js +5 -5
  122. package/dist/esm/q2-optgroup.entry.js +3 -3
  123. package/dist/esm/q2-option-list.entry.js +5 -3
  124. package/dist/esm/q2-option.entry.js +1 -1
  125. package/dist/esm/q2-pagination.entry.js +6 -8
  126. package/dist/esm/q2-pill.entry.js +9 -9
  127. package/dist/esm/q2-radio-group.entry.js +4 -7
  128. package/dist/esm/q2-radio.entry.js +2 -2
  129. package/dist/esm/q2-section.entry.js +5 -7
  130. package/dist/esm/q2-select.entry.js +17 -29
  131. package/dist/esm/q2-stepper-pane.entry.js +42 -4
  132. package/dist/esm/q2-stepper-vertical.entry.js +274 -0
  133. package/dist/esm/q2-stepper.entry.js +10 -12
  134. package/dist/esm/q2-tab-container.entry.js +8 -8
  135. package/dist/esm/q2-tab-pane.entry.js +1 -1
  136. package/dist/esm/q2-tag.entry.js +4 -4
  137. package/dist/esm/q2-tecton-elements.js +3 -3
  138. package/dist/esm/q2-textarea.entry.js +8 -8
  139. package/dist/esm/{shapes-81c11dfe.js → shapes-cff4e1f0.js} +9 -16
  140. package/dist/esm/tecton-tab-pane.entry.js +2 -5
  141. package/dist/loader/index.d.ts +0 -1
  142. package/dist/q2-tecton-elements/{p-a0248299.entry.js → p-00e8f782.entry.js} +1 -1
  143. package/dist/q2-tecton-elements/p-0900bec1.entry.js +1 -0
  144. package/dist/q2-tecton-elements/{p-f98dc161.entry.js → p-10264ecb.entry.js} +1 -1
  145. package/dist/q2-tecton-elements/{p-0a7cff38.entry.js → p-1305ec5f.entry.js} +1 -1
  146. package/dist/q2-tecton-elements/p-148391d6.entry.js +1 -0
  147. package/dist/q2-tecton-elements/p-1dfaee64.entry.js +1 -0
  148. package/dist/q2-tecton-elements/{p-32ad664c.entry.js → p-221abbf6.entry.js} +1 -1
  149. package/dist/q2-tecton-elements/{p-c90a6016.js → p-255b2b4c.js} +1 -1
  150. package/dist/q2-tecton-elements/p-27736b6b.entry.js +1 -0
  151. package/dist/q2-tecton-elements/p-2846ab94.entry.js +1 -0
  152. package/dist/q2-tecton-elements/{p-167a19fd.entry.js → p-2bc1de01.entry.js} +1 -1
  153. package/dist/q2-tecton-elements/{p-8ea2c4f7.entry.js → p-2c15414c.entry.js} +1 -1
  154. package/dist/q2-tecton-elements/p-2caa89fd.js +1 -0
  155. package/dist/q2-tecton-elements/p-327cca41.entry.js +1 -0
  156. package/dist/q2-tecton-elements/{p-54f0d64e.entry.js → p-3a420dbf.entry.js} +1 -1
  157. package/dist/q2-tecton-elements/{p-c460e5ed.entry.js → p-3a64e5ce.entry.js} +1 -1
  158. package/dist/q2-tecton-elements/{p-aca8302b.entry.js → p-3abcb09d.entry.js} +1 -1
  159. package/dist/q2-tecton-elements/{p-08668234.entry.js → p-3fe98e3e.entry.js} +1 -1
  160. package/dist/q2-tecton-elements/{p-c5199147.entry.js → p-430a979b.entry.js} +1 -1
  161. package/dist/q2-tecton-elements/{p-fa9e3825.entry.js → p-45eb7739.entry.js} +1 -1
  162. package/dist/q2-tecton-elements/{p-750bcd33.entry.js → p-49b2abc4.entry.js} +1 -1
  163. package/dist/q2-tecton-elements/{p-d9bc6494.entry.js → p-4ab30466.entry.js} +1 -1
  164. package/dist/q2-tecton-elements/p-5bbf2bfe.entry.js +1 -0
  165. package/dist/q2-tecton-elements/p-6fec9235.entry.js +1 -0
  166. package/dist/q2-tecton-elements/{p-3c6f73cb.js → p-824aebd9.js} +1 -1
  167. package/dist/q2-tecton-elements/{p-91dba21f.entry.js → p-a4ae89cc.entry.js} +1 -1
  168. package/dist/q2-tecton-elements/{p-d3058002.entry.js → p-a5562aaa.entry.js} +1 -1
  169. package/dist/q2-tecton-elements/{p-5effd81a.entry.js → p-ae130f70.entry.js} +1 -1
  170. package/dist/q2-tecton-elements/p-b2302cd3.entry.js +1 -0
  171. package/dist/q2-tecton-elements/p-c20cbb2d.entry.js +1 -0
  172. package/dist/q2-tecton-elements/p-ca7a3380.entry.js +1 -0
  173. package/dist/q2-tecton-elements/{p-9a3c37ab.entry.js → p-d33e152c.entry.js} +1 -1
  174. package/dist/q2-tecton-elements/{p-9024859f.entry.js → p-d5218cd6.entry.js} +1 -1
  175. package/dist/q2-tecton-elements/{p-54300d2f.entry.js → p-d52b435e.entry.js} +1 -1
  176. package/dist/q2-tecton-elements/{p-c3d68d5c.js → p-dd02cf8d.js} +1 -1
  177. package/dist/q2-tecton-elements/{p-30bf5f44.entry.js → p-e0e7ae8b.entry.js} +1 -1
  178. package/dist/q2-tecton-elements/p-ede12fc1.entry.js +1 -0
  179. package/dist/q2-tecton-elements/{p-af202624.entry.js → p-fdfbe75b.entry.js} +1 -1
  180. package/dist/q2-tecton-elements/p-ffbded54.entry.js +1 -0
  181. package/dist/q2-tecton-elements/q2-tecton-elements.esm.js +1 -1
  182. package/dist/test/elements/q2-tag-test.js +6 -6
  183. package/dist/test/helpers.js +7 -7
  184. package/dist/types/components/q2-badge/index.d.ts +13 -0
  185. package/dist/types/components/q2-btn/index.d.ts +3 -3
  186. package/dist/types/components/q2-calendar/index.d.ts +1 -1
  187. package/dist/types/components/q2-calendar/validation.d.ts +1 -1
  188. package/dist/types/components/q2-card/index.d.ts +4 -0
  189. package/dist/types/components/q2-dropdown/index.d.ts +1 -1
  190. package/dist/types/components/q2-editable-field/index.d.ts +1 -1
  191. package/dist/types/components/q2-input/formatting/credit-card.d.ts +1 -3
  192. package/dist/types/components/q2-input/index.d.ts +2 -2
  193. package/dist/types/components/q2-option-list/index.d.ts +1 -1
  194. package/dist/types/components/q2-pill/index.d.ts +1 -1
  195. package/dist/types/components/q2-select/index.d.ts +1 -1
  196. package/dist/types/components/q2-stepper/index.d.ts +1 -1
  197. package/dist/types/components/q2-stepper-pane/index.d.ts +16 -1
  198. package/dist/types/components/q2-stepper-vertical/index.d.ts +52 -0
  199. package/dist/types/components/q2-tab-container/index.d.ts +1 -1
  200. package/dist/types/components/tecton-tab-pane/index.d.ts +2 -2
  201. package/dist/types/components.d.ts +63 -13
  202. package/dist/types/global.d.ts +1 -0
  203. package/dist/types/stencil-public-runtime.d.ts +6 -4
  204. package/dist/types/util.d.ts +2 -10
  205. package/dist/types/workspace/workspace/{tecton-production_release_1.12.x → tecton-production_release_1.13.x}/packages/q2-tecton-elements/.stencil/test/elements/q2-tag-test.d.ts +0 -0
  206. package/dist/types/workspace/workspace/{tecton-production_release_1.12.x → tecton-production_release_1.13.x}/packages/q2-tecton-elements/.stencil/test/helpers.d.ts +2 -2
  207. package/package.json +13 -13
  208. package/dist/q2-tecton-elements/p-080839ed.js +0 -1
  209. package/dist/q2-tecton-elements/p-2afdc922.entry.js +0 -1
  210. package/dist/q2-tecton-elements/p-34415315.entry.js +0 -1
  211. package/dist/q2-tecton-elements/p-5b906cf1.entry.js +0 -1
  212. package/dist/q2-tecton-elements/p-7ce98c1a.entry.js +0 -1
  213. package/dist/q2-tecton-elements/p-b9c2c1d3.entry.js +0 -1
  214. package/dist/q2-tecton-elements/p-c5e6f7fa.entry.js +0 -1
  215. package/dist/q2-tecton-elements/p-d65aaed2.entry.js +0 -1
  216. package/dist/q2-tecton-elements/p-df86f160.entry.js +0 -1
  217. package/dist/q2-tecton-elements/p-e38080d2.entry.js +0 -1
  218. package/dist/q2-tecton-elements/p-e9d69ba8.entry.js +0 -1
  219. package/dist/q2-tecton-elements/p-fe6407a4.entry.js +0 -1
@@ -2,8 +2,8 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index$1 = require('./index-c2e53804.js');
6
- const index$2 = require('./index-773c3eec.js');
5
+ const index$1 = require('./index-7febb200.js');
6
+ const index$2 = require('./index-dd823ee6.js');
7
7
 
8
8
  /**
9
9
  * SSR Window 4.0.2
@@ -992,7 +992,11 @@ function deleteProps(obj) {
992
992
  });
993
993
  }
994
994
 
995
- function nextTick(callback, delay = 0) {
995
+ function nextTick(callback, delay) {
996
+ if (delay === void 0) {
997
+ delay = 0;
998
+ }
999
+
996
1000
  return setTimeout(callback, delay);
997
1001
  }
998
1002
 
@@ -1019,7 +1023,11 @@ function getComputedStyle$1(el) {
1019
1023
  return style;
1020
1024
  }
1021
1025
 
1022
- function getTranslate(el, axis = 'x') {
1026
+ function getTranslate(el, axis) {
1027
+ if (axis === void 0) {
1028
+ axis = 'x';
1029
+ }
1030
+
1023
1031
  const window = getWindow();
1024
1032
  let matrix;
1025
1033
  let curTransform;
@@ -1071,12 +1079,12 @@ function isNode(node) {
1071
1079
  return node && (node.nodeType === 1 || node.nodeType === 11);
1072
1080
  }
1073
1081
 
1074
- function extend(...args) {
1075
- const to = Object(args[0]);
1082
+ function extend() {
1083
+ const to = Object(arguments.length <= 0 ? undefined : arguments[0]);
1076
1084
  const noExtend = ['__proto__', 'constructor', 'prototype'];
1077
1085
 
1078
- for (let i = 1; i < args.length; i += 1) {
1079
- const nextSource = args[i];
1086
+ for (let i = 1; i < arguments.length; i += 1) {
1087
+ const nextSource = i < 0 || arguments.length <= i ? undefined : arguments[i];
1080
1088
 
1081
1089
  if (nextSource !== undefined && nextSource !== null && !isNode(nextSource)) {
1082
1090
  const keysArray = Object.keys(Object(nextSource)).filter(key => noExtend.indexOf(key) < 0);
@@ -1115,11 +1123,12 @@ function setCSSProperty(el, varName, varValue) {
1115
1123
  el.style.setProperty(varName, varValue);
1116
1124
  }
1117
1125
 
1118
- function animateCSSModeScroll({
1119
- swiper,
1120
- targetPosition,
1121
- side
1122
- }) {
1126
+ function animateCSSModeScroll(_ref) {
1127
+ let {
1128
+ swiper,
1129
+ targetPosition,
1130
+ side
1131
+ } = _ref;
1123
1132
  const window = getWindow();
1124
1133
  const startPosition = -swiper.translate;
1125
1134
  let startTime = null;
@@ -1212,9 +1221,10 @@ function getSupport() {
1212
1221
 
1213
1222
  let deviceCached;
1214
1223
 
1215
- function calcDevice({
1216
- userAgent
1217
- } = {}) {
1224
+ function calcDevice(_temp) {
1225
+ let {
1226
+ userAgent
1227
+ } = _temp === void 0 ? {} : _temp;
1218
1228
  const support = getSupport();
1219
1229
  const window = getWindow();
1220
1230
  const platform = window.navigator.platform;
@@ -1256,7 +1266,11 @@ function calcDevice({
1256
1266
  return device;
1257
1267
  }
1258
1268
 
1259
- function getDevice(overrides = {}) {
1269
+ function getDevice(overrides) {
1270
+ if (overrides === void 0) {
1271
+ overrides = {};
1272
+ }
1273
+
1260
1274
  if (!deviceCached) {
1261
1275
  deviceCached = calcDevice(overrides);
1262
1276
  }
@@ -1288,13 +1302,15 @@ function getBrowser() {
1288
1302
  return browser;
1289
1303
  }
1290
1304
 
1291
- function Resize({
1292
- swiper,
1293
- on,
1294
- emit
1295
- }) {
1305
+ function Resize(_ref) {
1306
+ let {
1307
+ swiper,
1308
+ on,
1309
+ emit
1310
+ } = _ref;
1296
1311
  const window = getWindow();
1297
1312
  let observer = null;
1313
+ let animationFrame = null;
1298
1314
 
1299
1315
  const resizeHandler = () => {
1300
1316
  if (!swiper || swiper.destroyed || !swiper.initialized) return;
@@ -1305,30 +1321,37 @@ function Resize({
1305
1321
  const createObserver = () => {
1306
1322
  if (!swiper || swiper.destroyed || !swiper.initialized) return;
1307
1323
  observer = new ResizeObserver(entries => {
1308
- const {
1309
- width,
1310
- height
1311
- } = swiper;
1312
- let newWidth = width;
1313
- let newHeight = height;
1314
- entries.forEach(({
1315
- contentBoxSize,
1316
- contentRect,
1317
- target
1318
- }) => {
1319
- if (target && target !== swiper.el) return;
1320
- newWidth = contentRect ? contentRect.width : (contentBoxSize[0] || contentBoxSize).inlineSize;
1321
- newHeight = contentRect ? contentRect.height : (contentBoxSize[0] || contentBoxSize).blockSize;
1322
- });
1324
+ animationFrame = window.requestAnimationFrame(() => {
1325
+ const {
1326
+ width,
1327
+ height
1328
+ } = swiper;
1329
+ let newWidth = width;
1330
+ let newHeight = height;
1331
+ entries.forEach(_ref2 => {
1332
+ let {
1333
+ contentBoxSize,
1334
+ contentRect,
1335
+ target
1336
+ } = _ref2;
1337
+ if (target && target !== swiper.el) return;
1338
+ newWidth = contentRect ? contentRect.width : (contentBoxSize[0] || contentBoxSize).inlineSize;
1339
+ newHeight = contentRect ? contentRect.height : (contentBoxSize[0] || contentBoxSize).blockSize;
1340
+ });
1323
1341
 
1324
- if (newWidth !== width || newHeight !== height) {
1325
- resizeHandler();
1326
- }
1342
+ if (newWidth !== width || newHeight !== height) {
1343
+ resizeHandler();
1344
+ }
1345
+ });
1327
1346
  });
1328
1347
  observer.observe(swiper.el);
1329
1348
  };
1330
1349
 
1331
1350
  const removeObserver = () => {
1351
+ if (animationFrame) {
1352
+ window.cancelAnimationFrame(animationFrame);
1353
+ }
1354
+
1332
1355
  if (observer && observer.unobserve && swiper.el) {
1333
1356
  observer.unobserve(swiper.el);
1334
1357
  observer = null;
@@ -1356,16 +1379,21 @@ function Resize({
1356
1379
  });
1357
1380
  }
1358
1381
 
1359
- function Observer({
1360
- swiper,
1361
- extendParams,
1362
- on,
1363
- emit
1364
- }) {
1382
+ function Observer(_ref) {
1383
+ let {
1384
+ swiper,
1385
+ extendParams,
1386
+ on,
1387
+ emit
1388
+ } = _ref;
1365
1389
  const observers = [];
1366
1390
  const window = getWindow();
1367
1391
 
1368
- const attach = (target, options = {}) => {
1392
+ const attach = function (target, options) {
1393
+ if (options === void 0) {
1394
+ options = {};
1395
+ }
1396
+
1369
1397
  const ObserverFunc = window.MutationObserver || window.WebkitMutationObserver;
1370
1398
  const observer = new ObserverFunc(mutations => {
1371
1399
  // The observerUpdate event should only be triggered
@@ -1435,6 +1463,7 @@ function Observer({
1435
1463
  const eventsEmitter = {
1436
1464
  on(events, handler, priority) {
1437
1465
  const self = this;
1466
+ if (!self.eventsListeners || self.destroyed) return self;
1438
1467
  if (typeof handler !== 'function') return self;
1439
1468
  const method = priority ? 'unshift' : 'push';
1440
1469
  events.split(' ').forEach(event => {
@@ -1446,15 +1475,20 @@ const eventsEmitter = {
1446
1475
 
1447
1476
  once(events, handler, priority) {
1448
1477
  const self = this;
1478
+ if (!self.eventsListeners || self.destroyed) return self;
1449
1479
  if (typeof handler !== 'function') return self;
1450
1480
 
1451
- function onceHandler(...args) {
1481
+ function onceHandler() {
1452
1482
  self.off(events, onceHandler);
1453
1483
 
1454
1484
  if (onceHandler.__emitterProxy) {
1455
1485
  delete onceHandler.__emitterProxy;
1456
1486
  }
1457
1487
 
1488
+ for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
1489
+ args[_key] = arguments[_key];
1490
+ }
1491
+
1458
1492
  handler.apply(self, args);
1459
1493
  }
1460
1494
 
@@ -1464,6 +1498,7 @@ const eventsEmitter = {
1464
1498
 
1465
1499
  onAny(handler, priority) {
1466
1500
  const self = this;
1501
+ if (!self.eventsListeners || self.destroyed) return self;
1467
1502
  if (typeof handler !== 'function') return self;
1468
1503
  const method = priority ? 'unshift' : 'push';
1469
1504
 
@@ -1476,6 +1511,7 @@ const eventsEmitter = {
1476
1511
 
1477
1512
  offAny(handler) {
1478
1513
  const self = this;
1514
+ if (!self.eventsListeners || self.destroyed) return self;
1479
1515
  if (!self.eventsAnyListeners) return self;
1480
1516
  const index = self.eventsAnyListeners.indexOf(handler);
1481
1517
 
@@ -1488,6 +1524,7 @@ const eventsEmitter = {
1488
1524
 
1489
1525
  off(events, handler) {
1490
1526
  const self = this;
1527
+ if (!self.eventsListeners || self.destroyed) return self;
1491
1528
  if (!self.eventsListeners) return self;
1492
1529
  events.split(' ').forEach(event => {
1493
1530
  if (typeof handler === 'undefined') {
@@ -1503,13 +1540,18 @@ const eventsEmitter = {
1503
1540
  return self;
1504
1541
  },
1505
1542
 
1506
- emit(...args) {
1543
+ emit() {
1507
1544
  const self = this;
1545
+ if (!self.eventsListeners || self.destroyed) return self;
1508
1546
  if (!self.eventsListeners) return self;
1509
1547
  let events;
1510
1548
  let data;
1511
1549
  let context;
1512
1550
 
1551
+ for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
1552
+ args[_key2] = arguments[_key2];
1553
+ }
1554
+
1513
1555
  if (typeof args[0] === 'string' || Array.isArray(args[0])) {
1514
1556
  events = args[0];
1515
1557
  data = args.slice(1, args.length);
@@ -1881,6 +1923,17 @@ function updateSlides() {
1881
1923
  if (params.watchSlidesProgress) {
1882
1924
  swiper.updateSlidesOffset();
1883
1925
  }
1926
+
1927
+ if (!isVirtual && !params.cssMode && (params.effect === 'slide' || params.effect === 'fade')) {
1928
+ const backFaceHiddenClass = `${params.containerModifierClass}backface-hidden`;
1929
+ const hasClassBackfaceClassAdded = swiper.$el.hasClass(backFaceHiddenClass);
1930
+
1931
+ if (slidesLength <= params.maxBackfaceHiddenSlides) {
1932
+ if (!hasClassBackfaceClassAdded) swiper.$el.addClass(backFaceHiddenClass);
1933
+ } else if (hasClassBackfaceClassAdded) {
1934
+ swiper.$el.removeClass(backFaceHiddenClass);
1935
+ }
1936
+ }
1884
1937
  }
1885
1938
 
1886
1939
  function updateAutoHeight(speed) {
@@ -1942,7 +1995,11 @@ function updateSlidesOffset() {
1942
1995
  }
1943
1996
  }
1944
1997
 
1945
- function updateSlidesProgress(translate = this && this.translate || 0) {
1998
+ function updateSlidesProgress(translate) {
1999
+ if (translate === void 0) {
2000
+ translate = this && this.translate || 0;
2001
+ }
2002
+
1946
2003
  const swiper = this;
1947
2004
  const params = swiper.params;
1948
2005
  const {
@@ -2221,7 +2278,11 @@ const update = {
2221
2278
  updateClickedSlide
2222
2279
  };
2223
2280
 
2224
- function getSwiperTranslate(axis = this.isHorizontal() ? 'x' : 'y') {
2281
+ function getSwiperTranslate(axis) {
2282
+ if (axis === void 0) {
2283
+ axis = this.isHorizontal() ? 'x' : 'y';
2284
+ }
2285
+
2225
2286
  const swiper = this;
2226
2287
  const {
2227
2288
  params,
@@ -2300,7 +2361,23 @@ function maxTranslate() {
2300
2361
  return -this.snapGrid[this.snapGrid.length - 1];
2301
2362
  }
2302
2363
 
2303
- function translateTo(translate = 0, speed = this.params.speed, runCallbacks = true, translateBounds = true, internal) {
2364
+ function translateTo(translate, speed, runCallbacks, translateBounds, internal) {
2365
+ if (translate === void 0) {
2366
+ translate = 0;
2367
+ }
2368
+
2369
+ if (speed === void 0) {
2370
+ speed = this.params.speed;
2371
+ }
2372
+
2373
+ if (runCallbacks === void 0) {
2374
+ runCallbacks = true;
2375
+ }
2376
+
2377
+ if (translateBounds === void 0) {
2378
+ translateBounds = true;
2379
+ }
2380
+
2304
2381
  const swiper = this;
2305
2382
  const {
2306
2383
  params,
@@ -2403,12 +2480,13 @@ function setTransition(duration, byController) {
2403
2480
  swiper.emit('setTransition', duration, byController);
2404
2481
  }
2405
2482
 
2406
- function transitionEmit({
2407
- swiper,
2408
- runCallbacks,
2409
- direction,
2410
- step
2411
- }) {
2483
+ function transitionEmit(_ref) {
2484
+ let {
2485
+ swiper,
2486
+ runCallbacks,
2487
+ direction,
2488
+ step
2489
+ } = _ref;
2412
2490
  const {
2413
2491
  activeIndex,
2414
2492
  previousIndex
@@ -2437,7 +2515,11 @@ function transitionEmit({
2437
2515
  }
2438
2516
  }
2439
2517
 
2440
- function transitionStart(runCallbacks = true, direction) {
2518
+ function transitionStart(runCallbacks, direction) {
2519
+ if (runCallbacks === void 0) {
2520
+ runCallbacks = true;
2521
+ }
2522
+
2441
2523
  const swiper = this;
2442
2524
  const {
2443
2525
  params
@@ -2456,7 +2538,11 @@ function transitionStart(runCallbacks = true, direction) {
2456
2538
  });
2457
2539
  }
2458
2540
 
2459
- function transitionEnd(runCallbacks = true, direction) {
2541
+ function transitionEnd(runCallbacks, direction) {
2542
+ if (runCallbacks === void 0) {
2543
+ runCallbacks = true;
2544
+ }
2545
+
2460
2546
  const swiper = this;
2461
2547
  const {
2462
2548
  params
@@ -2478,7 +2564,19 @@ const transition = {
2478
2564
  transitionEnd
2479
2565
  };
2480
2566
 
2481
- function slideTo(index = 0, speed = this.params.speed, runCallbacks = true, internal, initial) {
2567
+ function slideTo(index, speed, runCallbacks, internal, initial) {
2568
+ if (index === void 0) {
2569
+ index = 0;
2570
+ }
2571
+
2572
+ if (speed === void 0) {
2573
+ speed = this.params.speed;
2574
+ }
2575
+
2576
+ if (runCallbacks === void 0) {
2577
+ runCallbacks = true;
2578
+ }
2579
+
2482
2580
  if (typeof index !== 'number' && typeof index !== 'string') {
2483
2581
  throw new Error(`The 'index' argument cannot have type other than 'number' or 'string'. [${typeof index}] given.`);
2484
2582
  }
@@ -2659,7 +2757,19 @@ function slideTo(index = 0, speed = this.params.speed, runCallbacks = true, inte
2659
2757
  return true;
2660
2758
  }
2661
2759
 
2662
- function slideToLoop(index = 0, speed = this.params.speed, runCallbacks = true, internal) {
2760
+ function slideToLoop(index, speed, runCallbacks, internal) {
2761
+ if (index === void 0) {
2762
+ index = 0;
2763
+ }
2764
+
2765
+ if (speed === void 0) {
2766
+ speed = this.params.speed;
2767
+ }
2768
+
2769
+ if (runCallbacks === void 0) {
2770
+ runCallbacks = true;
2771
+ }
2772
+
2663
2773
  const swiper = this;
2664
2774
  let newIndex = index;
2665
2775
 
@@ -2671,7 +2781,15 @@ function slideToLoop(index = 0, speed = this.params.speed, runCallbacks = true,
2671
2781
  }
2672
2782
 
2673
2783
  /* eslint no-unused-vars: "off" */
2674
- function slideNext(speed = this.params.speed, runCallbacks = true, internal) {
2784
+ function slideNext(speed, runCallbacks, internal) {
2785
+ if (speed === void 0) {
2786
+ speed = this.params.speed;
2787
+ }
2788
+
2789
+ if (runCallbacks === void 0) {
2790
+ runCallbacks = true;
2791
+ }
2792
+
2675
2793
  const swiper = this;
2676
2794
  const {
2677
2795
  animating,
@@ -2702,7 +2820,15 @@ function slideNext(speed = this.params.speed, runCallbacks = true, internal) {
2702
2820
  }
2703
2821
 
2704
2822
  /* eslint no-unused-vars: "off" */
2705
- function slidePrev(speed = this.params.speed, runCallbacks = true, internal) {
2823
+ function slidePrev(speed, runCallbacks, internal) {
2824
+ if (speed === void 0) {
2825
+ speed = this.params.speed;
2826
+ }
2827
+
2828
+ if (runCallbacks === void 0) {
2829
+ runCallbacks = true;
2830
+ }
2831
+
2706
2832
  const swiper = this;
2707
2833
  const {
2708
2834
  params,
@@ -2759,20 +2885,41 @@ function slidePrev(speed = this.params.speed, runCallbacks = true, internal) {
2759
2885
  }
2760
2886
 
2761
2887
  if (params.rewind && swiper.isBeginning) {
2762
- return swiper.slideTo(swiper.slides.length - 1, speed, runCallbacks, internal);
2888
+ const lastIndex = swiper.params.virtual && swiper.params.virtual.enabled && swiper.virtual ? swiper.virtual.slides.length - 1 : swiper.slides.length - 1;
2889
+ return swiper.slideTo(lastIndex, speed, runCallbacks, internal);
2763
2890
  }
2764
2891
 
2765
2892
  return swiper.slideTo(prevIndex, speed, runCallbacks, internal);
2766
2893
  }
2767
2894
 
2768
2895
  /* eslint no-unused-vars: "off" */
2769
- function slideReset(speed = this.params.speed, runCallbacks = true, internal) {
2896
+ function slideReset(speed, runCallbacks, internal) {
2897
+ if (speed === void 0) {
2898
+ speed = this.params.speed;
2899
+ }
2900
+
2901
+ if (runCallbacks === void 0) {
2902
+ runCallbacks = true;
2903
+ }
2904
+
2770
2905
  const swiper = this;
2771
2906
  return swiper.slideTo(swiper.activeIndex, speed, runCallbacks, internal);
2772
2907
  }
2773
2908
 
2774
2909
  /* eslint no-unused-vars: "off" */
2775
- function slideToClosest(speed = this.params.speed, runCallbacks = true, internal, threshold = 0.5) {
2910
+ function slideToClosest(speed, runCallbacks, internal, threshold) {
2911
+ if (speed === void 0) {
2912
+ speed = this.params.speed;
2913
+ }
2914
+
2915
+ if (runCallbacks === void 0) {
2916
+ runCallbacks = true;
2917
+ }
2918
+
2919
+ if (threshold === void 0) {
2920
+ threshold = 0.5;
2921
+ }
2922
+
2776
2923
  const swiper = this;
2777
2924
  let index = swiper.activeIndex;
2778
2925
  const skip = Math.min(swiper.params.slidesPerGroupSkip, index);
@@ -2974,8 +3121,6 @@ function setGrabCursor(moving) {
2974
3121
  if (swiper.support.touch || !swiper.params.simulateTouch || swiper.params.watchOverflow && swiper.isLocked || swiper.params.cssMode) return;
2975
3122
  const el = swiper.params.touchEventsTarget === 'container' ? swiper.el : swiper.wrapperEl;
2976
3123
  el.style.cursor = 'move';
2977
- el.style.cursor = moving ? '-webkit-grabbing' : '-webkit-grab';
2978
- el.style.cursor = moving ? '-moz-grabbin' : '-moz-grab';
2979
3124
  el.style.cursor = moving ? 'grabbing' : 'grab';
2980
3125
  }
2981
3126
 
@@ -2994,7 +3139,11 @@ const grabCursor = {
2994
3139
  unsetGrabCursor
2995
3140
  };
2996
3141
 
2997
- function closestElement(selector, base = this) {
3142
+ function closestElement(selector, base) {
3143
+ if (base === void 0) {
3144
+ base = this;
3145
+ }
3146
+
2998
3147
  function __closestFrom(el) {
2999
3148
  if (!el || el === getDocument() || el === getWindow()) return null;
3000
3149
  if (el.assignedSlot) el = el.assignedSlot;
@@ -3089,7 +3238,14 @@ function onTouchStart(event) {
3089
3238
 
3090
3239
  if (e.type !== 'touchstart') {
3091
3240
  let preventDefault = true;
3092
- if ($targetEl.is(data.focusableElements)) preventDefault = false;
3241
+
3242
+ if ($targetEl.is(data.focusableElements)) {
3243
+ preventDefault = false;
3244
+
3245
+ if ($targetEl[0].nodeName === 'SELECT') {
3246
+ data.isTouched = false;
3247
+ }
3248
+ }
3093
3249
 
3094
3250
  if (document.activeElement && $(document.activeElement).is(data.focusableElements) && document.activeElement !== $targetEl[0]) {
3095
3251
  document.activeElement.blur();
@@ -3102,6 +3258,10 @@ function onTouchStart(event) {
3102
3258
  }
3103
3259
  }
3104
3260
 
3261
+ if (swiper.params.freeMode && swiper.params.freeMode.enabled && swiper.freeMode && swiper.animating && !params.cssMode) {
3262
+ swiper.freeMode.onTouchStart();
3263
+ }
3264
+
3105
3265
  swiper.emit('touchStart', e);
3106
3266
  }
3107
3267
 
@@ -3139,8 +3299,9 @@ function onTouchMove(event) {
3139
3299
  }
3140
3300
 
3141
3301
  if (!swiper.allowTouchMove) {
3142
- // isMoved = true;
3143
- swiper.allowClick = false;
3302
+ if (!$(e.target).is(data.focusableElements)) {
3303
+ swiper.allowClick = false;
3304
+ }
3144
3305
 
3145
3306
  if (data.isTouched) {
3146
3307
  Object.assign(touches, {
@@ -3424,6 +3585,17 @@ function onTouchEnd(event) {
3424
3585
  stopIndex = i;
3425
3586
  groupSize = slidesGrid[slidesGrid.length - 1] - slidesGrid[slidesGrid.length - 2];
3426
3587
  }
3588
+ }
3589
+
3590
+ let rewindFirstIndex = null;
3591
+ let rewindLastIndex = null;
3592
+
3593
+ if (params.rewind) {
3594
+ if (swiper.isBeginning) {
3595
+ rewindLastIndex = swiper.params.virtual && swiper.params.virtual.enabled && swiper.virtual ? swiper.virtual.slides.length - 1 : swiper.slides.length - 1;
3596
+ } else if (swiper.isEnd) {
3597
+ rewindFirstIndex = 0;
3598
+ }
3427
3599
  } // Find current slide size
3428
3600
 
3429
3601
 
@@ -3438,11 +3610,17 @@ function onTouchEnd(event) {
3438
3610
  }
3439
3611
 
3440
3612
  if (swiper.swipeDirection === 'next') {
3441
- if (ratio >= params.longSwipesRatio) swiper.slideTo(stopIndex + increment);else swiper.slideTo(stopIndex);
3613
+ if (ratio >= params.longSwipesRatio) swiper.slideTo(params.rewind && swiper.isEnd ? rewindFirstIndex : stopIndex + increment);else swiper.slideTo(stopIndex);
3442
3614
  }
3443
3615
 
3444
3616
  if (swiper.swipeDirection === 'prev') {
3445
- if (ratio > 1 - params.longSwipesRatio) swiper.slideTo(stopIndex + increment);else swiper.slideTo(stopIndex);
3617
+ if (ratio > 1 - params.longSwipesRatio) {
3618
+ swiper.slideTo(stopIndex + increment);
3619
+ } else if (rewindLastIndex !== null && ratio < 0 && Math.abs(ratio) > params.longSwipesRatio) {
3620
+ swiper.slideTo(rewindLastIndex);
3621
+ } else {
3622
+ swiper.slideTo(stopIndex);
3623
+ }
3446
3624
  }
3447
3625
  } else {
3448
3626
  // Short swipes
@@ -3455,11 +3633,11 @@ function onTouchEnd(event) {
3455
3633
 
3456
3634
  if (!isNavButtonTarget) {
3457
3635
  if (swiper.swipeDirection === 'next') {
3458
- swiper.slideTo(stopIndex + increment);
3636
+ swiper.slideTo(rewindFirstIndex !== null ? rewindFirstIndex : stopIndex + increment);
3459
3637
  }
3460
3638
 
3461
3639
  if (swiper.swipeDirection === 'prev') {
3462
- swiper.slideTo(stopIndex);
3640
+ swiper.slideTo(rewindLastIndex !== null ? rewindLastIndex : stopIndex);
3463
3641
  }
3464
3642
  } else if (e.target === swiper.navigation.nextEl) {
3465
3643
  swiper.slideTo(stopIndex + increment);
@@ -3544,7 +3722,7 @@ function onScroll() {
3544
3722
  } // eslint-disable-next-line
3545
3723
 
3546
3724
 
3547
- if (swiper.translate === -0) swiper.translate = 0;
3725
+ if (swiper.translate === 0) swiper.translate = 0;
3548
3726
  swiper.updateActiveIndex();
3549
3727
  swiper.updateSlidesClasses();
3550
3728
  let newProgress;
@@ -3725,7 +3903,11 @@ function setBreakpoint() {
3725
3903
  swiper.emit('breakpoint', breakpointParams);
3726
3904
  }
3727
3905
 
3728
- function getBreakpoint(breakpoints, base = 'window', containerEl) {
3906
+ function getBreakpoint(breakpoints, base, containerEl) {
3907
+ if (base === void 0) {
3908
+ base = 'window';
3909
+ }
3910
+
3729
3911
  if (!breakpoints || base === 'container' && !containerEl) return undefined;
3730
3912
  let breakpoint = false;
3731
3913
  const window = getWindow();
@@ -3817,6 +3999,8 @@ function addClasses() {
3817
3999
  'css-mode': params.cssMode
3818
4000
  }, {
3819
4001
  'centered': params.cssMode && params.centeredSlides
4002
+ }, {
4003
+ 'watch-progress': params.watchSlidesProgress
3820
4004
  }], params.containerModifierClass);
3821
4005
  classNames.push(...suffixes);
3822
4006
  $el.addClass([...classNames].join(' '));
@@ -4041,6 +4225,7 @@ const defaults = {
4041
4225
  noSwipingSelector: null,
4042
4226
  // Passive Listeners
4043
4227
  passiveListeners: true,
4228
+ maxBackfaceHiddenSlides: 10,
4044
4229
  // NS
4045
4230
  containerModifierClass: 'swiper-',
4046
4231
  // NEW
@@ -4062,7 +4247,11 @@ const defaults = {
4062
4247
  };
4063
4248
 
4064
4249
  function moduleExtendParams(params, allModulesParams) {
4065
- return function extendParams(obj = {}) {
4250
+ return function extendParams(obj) {
4251
+ if (obj === void 0) {
4252
+ obj = {};
4253
+ }
4254
+
4066
4255
  const moduleParamName = Object.keys(obj)[0];
4067
4256
  const moduleParams = obj[moduleParamName];
4068
4257
 
@@ -4117,10 +4306,14 @@ const prototypes = {
4117
4306
  const extendedDefaults = {};
4118
4307
 
4119
4308
  class Swiper {
4120
- constructor(...args) {
4309
+ constructor() {
4121
4310
  let el;
4122
4311
  let params;
4123
4312
 
4313
+ for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
4314
+ args[_key] = arguments[_key];
4315
+ }
4316
+
4124
4317
  if (args.length === 1 && args[0].constructor && Object.prototype.toString.call(args[0]).slice(8, -1) === 'Object') {
4125
4318
  params = args[0];
4126
4319
  } else {
@@ -4332,6 +4525,7 @@ class Swiper {
4332
4525
 
4333
4526
  getSlideClasses(slideEl) {
4334
4527
  const swiper = this;
4528
+ if (swiper.destroyed) return '';
4335
4529
  return slideEl.className.split(' ').filter(className => {
4336
4530
  return className.indexOf('swiper-slide') === 0 || className.indexOf(swiper.params.slideClass) === 0;
4337
4531
  }).join(' ');
@@ -4352,7 +4546,15 @@ class Swiper {
4352
4546
  swiper.emit('_slideClasses', updates);
4353
4547
  }
4354
4548
 
4355
- slidesPerViewDynamic(view = 'current', exact = false) {
4549
+ slidesPerViewDynamic(view, exact) {
4550
+ if (view === void 0) {
4551
+ view = 'current';
4552
+ }
4553
+
4554
+ if (exact === void 0) {
4555
+ exact = false;
4556
+ }
4557
+
4356
4558
  const swiper = this;
4357
4559
  const {
4358
4560
  params,
@@ -4460,7 +4662,11 @@ class Swiper {
4460
4662
  swiper.emit('update');
4461
4663
  }
4462
4664
 
4463
- changeDirection(newDirection, needUpdate = true) {
4665
+ changeDirection(newDirection, needUpdate) {
4666
+ if (needUpdate === void 0) {
4667
+ needUpdate = true;
4668
+ }
4669
+
4464
4670
  const swiper = this;
4465
4671
  const currentDirection = swiper.params.direction;
4466
4672
 
@@ -4598,7 +4804,15 @@ class Swiper {
4598
4804
  return swiper;
4599
4805
  }
4600
4806
 
4601
- destroy(deleteInstance = true, cleanStyles = true) {
4807
+ destroy(deleteInstance, cleanStyles) {
4808
+ if (deleteInstance === void 0) {
4809
+ deleteInstance = true;
4810
+ }
4811
+
4812
+ if (cleanStyles === void 0) {
4813
+ cleanStyles = true;
4814
+ }
4815
+
4602
4816
  const swiper = this;
4603
4817
  const {
4604
4818
  params,
@@ -4688,12 +4902,13 @@ Object.keys(prototypes).forEach(prototypeGroup => {
4688
4902
  Swiper.use([Resize, Observer]);
4689
4903
 
4690
4904
  /* eslint no-underscore-dangle: "off" */
4691
- function Autoplay({
4692
- swiper,
4693
- extendParams,
4694
- on,
4695
- emit
4696
- }) {
4905
+ function Autoplay(_ref) {
4906
+ let {
4907
+ swiper,
4908
+ extendParams,
4909
+ on,
4910
+ emit
4911
+ } = _ref;
4697
4912
  let timeout;
4698
4913
  swiper.autoplay = {
4699
4914
  running: false,
@@ -4828,6 +5043,7 @@ function Autoplay({
4828
5043
  if (swiper.params.autoplay.disableOnInteraction) {
4829
5044
  stop();
4830
5045
  } else {
5046
+ emit('autoplayPause');
4831
5047
  pause();
4832
5048
  }
4833
5049
 
@@ -4842,6 +5058,7 @@ function Autoplay({
4842
5058
  }
4843
5059
 
4844
5060
  swiper.autoplay.paused = false;
5061
+ emit('autoplayResume');
4845
5062
  run();
4846
5063
  }
4847
5064
 
@@ -4906,7 +5123,7 @@ function Autoplay({
4906
5123
  });
4907
5124
  }
4908
5125
 
4909
- const stylesCss = "*{box-sizing:border-box}*:active{outline:none}*:focus{outline:none;box-shadow:var(--const-global-focus)}:host{box-shadow:none !important}::-moz-focus-inner{border:none}input,textarea,button{font-family:inherit;font-size:inherit}:host(.sr),:host(.sr) button{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;white-space:nowrap}.sr,.sr button{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;white-space:nowrap}.hidden{display:none}:host([hidden]){display:none}.invisible{visibility:hidden}button{border:0;background:transparent;transition:all 0.2s;opacity:0.3;cursor:pointer}button:hover{opacity:0.7}q2-carousel{display:flex;flex-direction:column-reverse}.swiper-container{--comp-container-padding:var(--app-scale-1x, 5px) 0 var(--app-scale-2x, 10px);display:block;width:100%;margin-left:auto;margin-right:auto;position:relative;overflow:hidden;padding:var(--tct-carousel-container-padding, var(--t-carousel-container-padding, var(--comp-container-padding, 5px 0 10px)))}.insufficient-pane-feedback{text-align:center;box-shadow:0px 2px 8px 0px rgba(0, 0, 0, 0.25);background-color:var(--tct-carousel-background-color, var(--t-carousel-background-color, var(--tct-white, var(--app-white, #ffffff))));border:var(--tct-carousel-pane-border-width, var(--t-carousel-pane-border-width, 1px)) solid var(--tct-carousel-pane-border-color, var(--t-carousel-pane-border-color, var(--tct-gray-11, var(--t-gray-11, var(--tct-gray-l1, var(--app-gray-l1, #cccccc))))));border-radius:var(--tct-carousel-pane-border-radius, var(--t-carousel-pane-border-radius, 8px));padding:var(--tct-carousel-pane-padding, var(--t-carousel-pane-padding, 0.5rem 0.5rem 0.5rem 0.5rem));min-height:10em}.insufficient-pane-feedback.content-peek-display{max-width:395px;margin:0 auto}.insufficient-pane-feedback .insufficient-panes-header,.insufficient-pane-feedback .insufficient-panes-body{text-align:center}.insufficient-pane-feedback .insufficient-panes-header strong{font-weight:600}.insufficient-pane-feedback .insufficient-panes-body{margin:0 auto 2rem auto;max-width:75%}.insufficient-pane-feedback .insufficient-panes-icon-wrapper{display:flex;justify-content:center;margin:1rem 0 2rem 0}.insufficient-pane-feedback .insufficient-panes-icon-wrapper q2-icon{width:38px}.q2-carousel-pagination-navigation-wrapper{display:flex;justify-content:center;align-items:center}.q2-carousel-pagination-navigation-wrapper.evenly-space{justify-content:space-between}.q2-carousel-control-center-tray{display:flex;align-items:center}.q2-carousel-swiper-wrapper.compact{overflow:visible}.q2-carousel-swiper-wrapper.compact q2-btn{margin-top:4px}.q2-carousel-pagination{height:12px;display:flex;align-content:center;justify-content:center;gap:0.5rem}.q2-carousel-pagination .q2-carousel-page-indicator{display:inline-block;height:12px;width:12px;border-radius:50%;background-color:var(--tct-carousel-pagination-inactive-color, var(--t-carousel-pagination-inactive-color, var(--tct-gray-11, var(--t-gray-11, var(--tct-gray-l1, var(--app-gray-l1, #cccccc))))));padding:0;border:0;transition:all 0.5s;opacity:0.7}.q2-carousel-pagination .q2-carousel-page-indicator:hover{background-color:var(--tct-carousel-pagination-active-color, var(--t-carousel-pagination-active-color, var(--tct-primary, var(--t-primary, #006eb2))));opacity:1}.q2-carousel-pagination .q2-carousel-page-indicator.active-page{display:inline-block;background-color:var(--tct-carousel-pagination-active-color, var(--t-carousel-pagination-active-color, var(--tct-primary, var(--t-primary, #006eb2))))}.q2-carousel-pagination.dynamic .q2-carousel-page-indicator{display:none}.q2-carousel-pagination.dynamic .q2-carousel-page-indicator.active-adjacent{display:inline-block;height:10px;width:10px}.q2-carousel-pagination.dynamic .q2-carousel-page-indicator.active-adjacent-adjacent{display:inline-block;height:8px;width:8px}.q2-carousel-swiper-container{}.q2-carousel-swiper-container .swiper-wrapper{position:relative;width:100%;min-height:12em;z-index:1;display:flex;transition-property:transform;box-sizing:content-box}.q2-carousel-swiper-container.content-peek-display .q2-carousel-pane:not(.swiper-slide-active){transform:scale(0.9)}.q2-carousel-swiper-container.full-width-display{--comp-container-padding:var(--app-scale-1x, 5px) var(--app-scale-2x, 10px) var(--app-scale-2x, 10px);padding:var(--tct-carousel-full-width-container-padding, var(--t-carousel-full-width-container-padding, var(--comp-container-padding, 5px 10px 10px)))}";
5126
+ const stylesCss = "*{box-sizing:border-box}*:active{outline:none}*:focus{outline:none;box-shadow:var(--const-global-focus)}:host{box-shadow:none !important}::-moz-focus-inner{border:none}input,textarea,button{font-family:inherit;font-size:inherit}:host(.sr),:host(.sr) button{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;white-space:nowrap}.sr,.sr button{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;white-space:nowrap}.hidden{display:none}:host([hidden]){display:none}.invisible{visibility:hidden}button{border:0;background:transparent;transition:all 0.2s;opacity:0.3;cursor:pointer}button:hover{opacity:0.7}q2-carousel{display:flex;flex-direction:column-reverse}.swiper-container{--comp-container-padding:var(--app-scale-1x, 5px) 0 var(--app-scale-2x, 10px);display:block;width:100%;margin-left:auto;margin-right:auto;position:relative;overflow:hidden;padding:var(--tct-carousel-container-padding, var(--t-carousel-container-padding, var(--comp-container-padding, 5px 0 10px)))}.insufficient-pane-feedback{text-align:center;box-shadow:var(--app-shadow-2, 0px 2px 8px 0px rgba(0, 0, 0, 0.25));background-color:var(--tct-carousel-background-color, var(--t-carousel-background-color, var(--tct-white, var(--app-white, #ffffff))));border:var(--tct-carousel-pane-border-width, var(--t-carousel-pane-border-width, 1px)) solid var(--tct-carousel-pane-border-color, var(--t-carousel-pane-border-color, var(--tct-gray-11, var(--t-gray-11, var(--tct-gray-l1, var(--app-gray-l1, #cccccc))))));border-radius:var(--tct-carousel-pane-border-radius, var(--t-carousel-pane-border-radius, 8px));padding:var(--tct-carousel-pane-padding, var(--t-carousel-pane-padding, 0.5rem 0.5rem 0.5rem 0.5rem))}.insufficient-pane-feedback.content-peek-display{max-width:395px;margin:0 auto}.insufficient-pane-feedback .insufficient-panes-header,.insufficient-pane-feedback .insufficient-panes-body{text-align:center}.insufficient-pane-feedback .insufficient-panes-header strong{font-weight:600}.insufficient-pane-feedback .insufficient-panes-body{margin:0 auto 2rem auto;max-width:75%}.insufficient-pane-feedback .insufficient-panes-icon-wrapper{display:flex;justify-content:center;margin:1rem 0 2rem 0}.insufficient-pane-feedback .insufficient-panes-icon-wrapper q2-icon{width:38px}.q2-carousel-pagination-navigation-wrapper{display:flex;justify-content:center;align-items:center;margin-top:var(--app-scale-2x, 10px);min-height:44px}.q2-carousel-pagination-navigation-wrapper.evenly-space{justify-content:space-between}.q2-carousel-control-center-tray{display:flex;align-items:center}.q2-carousel-swiper-wrapper.compact{overflow:visible}.q2-carousel-swiper-wrapper.compact q2-btn{margin-top:4px}.q2-carousel-pagination{height:12px;display:flex;align-content:center;justify-content:center;gap:0.5rem}.q2-carousel-pagination .q2-carousel-page-indicator{display:inline-block;height:12px;width:12px;border-radius:50%;background-color:var(--tct-carousel-pagination-inactive-color, var(--t-carousel-pagination-inactive-color, var(--tct-gray-11, var(--t-gray-11, var(--tct-gray-l1, var(--app-gray-l1, #cccccc))))));padding:0;border:0;transition:all 0.5s;opacity:0.7}.q2-carousel-pagination .q2-carousel-page-indicator:hover{background-color:var(--tct-carousel-pagination-active-color, var(--t-carousel-pagination-active-color, var(--tct-primary, var(--t-primary, #006eb2))));opacity:1}.q2-carousel-pagination .q2-carousel-page-indicator.active-page{display:inline-block;background-color:var(--tct-carousel-pagination-active-color, var(--t-carousel-pagination-active-color, var(--tct-primary, var(--t-primary, #006eb2))))}.q2-carousel-pagination.dynamic .q2-carousel-page-indicator{display:none}.q2-carousel-pagination.dynamic .q2-carousel-page-indicator.active-adjacent{display:inline-block;height:10px;width:10px}.q2-carousel-pagination.dynamic .q2-carousel-page-indicator.active-adjacent-adjacent{display:inline-block;height:8px;width:8px}.q2-carousel-swiper-container{}.q2-carousel-swiper-container .swiper-wrapper{position:relative;width:100%;z-index:1;display:flex;transition-property:transform;box-sizing:content-box}.q2-carousel-swiper-container.content-peek-display .q2-carousel-pane:not(.swiper-slide-active){transform:scale(0.9)}.q2-carousel-swiper-container.full-width-display{--comp-container-padding:var(--app-scale-1x, 5px) var(--app-scale-2x, 10px) var(--app-scale-2x, 10px);padding:var(--tct-carousel-full-width-container-padding, var(--t-carousel-full-width-container-padding, var(--comp-container-padding, 5px 10px 10px)))}";
4910
5127
 
4911
5128
  const carouselBreakpoint = 500; /* width in px of this host element where the layout starts to get unruly */
4912
5129
  const Q2Carousel = class {
@@ -4940,10 +5157,10 @@ const Q2Carousel = class {
4940
5157
  }
4941
5158
  else if (isCarouselFocused)
4942
5159
  swiper.slides[swiper.activeIndex].focus({
4943
- preventScroll: true
5160
+ preventScroll: true,
4944
5161
  });
4945
- }
4946
- }
5162
+ },
5163
+ },
4947
5164
  };
4948
5165
  this.fullWidthDisplayOptions = Object.assign({ slidesPerView: 1, spaceBetween: 100 }, this.universalCarouselOptions);
4949
5166
  this.activePaneIndex = this.realIndex;
@@ -4984,7 +5201,7 @@ const Q2Carousel = class {
4984
5201
  });
4985
5202
  };
4986
5203
  this.handleAutoPlayPause = () => {
4987
- const { swiper: { autoplay } } = this;
5204
+ const { swiper: { autoplay }, } = this;
4988
5205
  if (!autoplay)
4989
5206
  return;
4990
5207
  if (autoplay === null || autoplay === void 0 ? void 0 : autoplay.running)
@@ -5058,25 +5275,20 @@ const Q2Carousel = class {
5058
5275
  if (this.dynamicPaginationDots)
5059
5276
  paginationContainerClasses = [...paginationContainerClasses, 'dynamic'];
5060
5277
  return (index$1.h("div", { class: paginationContainerClasses.join(' '), role: "tablist", "aria-label": index$2.loc('tecton.element.carousel.tabWrapperLabel') }, this.paneArray.map(pane => {
5061
- let btnClasses = [
5062
- 'q2-carousel-page-indicator',
5063
- `q2-carousel-page-indicator-${pane.index}`
5064
- ];
5278
+ let btnClasses = ['q2-carousel-page-indicator', `q2-carousel-page-indicator-${pane.index}`];
5065
5279
  if (pane.isActivePane)
5066
5280
  btnClasses = [...btnClasses, 'active-page'];
5067
5281
  if (this.dynamicPaginationDots)
5068
5282
  btnClasses = [...btnClasses, 'dynamic'];
5069
- let withinOneOfActive = pane.index === this.activePaneIndex + 1 ||
5070
- pane.index === this.activePaneIndex - 1;
5283
+ const withinOneOfActive = pane.index === this.activePaneIndex + 1 || pane.index === this.activePaneIndex - 1;
5071
5284
  if (withinOneOfActive)
5072
5285
  btnClasses = [...btnClasses, 'active-adjacent'];
5073
- let withinTwoOfActive = pane.index === this.activePaneIndex + 2 ||
5074
- pane.index === this.activePaneIndex - 2;
5286
+ const withinTwoOfActive = pane.index === this.activePaneIndex + 2 || pane.index === this.activePaneIndex - 2;
5075
5287
  if (withinTwoOfActive)
5076
5288
  btnClasses = [...btnClasses, 'active-adjacent-adjacent'];
5077
5289
  return (index$1.h("button", { type: "button", role: "tab", tabIndex: pane.isActivePane ? undefined : -1, "aria-selected": pane.isActivePane ? 'true' : 'false', class: btnClasses.join(' '), onClick: () => this.handleCarouselNavigationSelection(pane.index, true), onKeyDown: event => this.onPaginationKeyDown(event), "aria-label": index$2.loc('tecton.element.carousel.itemDescription', [
5078
5290
  (pane.index + 1).toString(),
5079
- this.paneCount.toString()
5291
+ this.paneCount.toString(),
5080
5292
  ]) }));
5081
5293
  })));
5082
5294
  };
@@ -5096,7 +5308,7 @@ const Q2Carousel = class {
5096
5308
  this.insufficientPanesDisplay = () => {
5097
5309
  let insufficientPanesContainerClasses = [
5098
5310
  'insufficient-pane-feedback',
5099
- this.fullWidthPanes ? 'full-width-display' : 'content-peek-display'
5311
+ this.fullWidthPanes ? 'full-width-display' : 'content-peek-display',
5100
5312
  ];
5101
5313
  if (this.compactMode)
5102
5314
  insufficientPanesContainerClasses = [...insufficientPanesContainerClasses, 'compact'];
@@ -5184,7 +5396,7 @@ const Q2Carousel = class {
5184
5396
  let carouselContainerClasses = [
5185
5397
  'q2-carousel-swiper-container',
5186
5398
  'swiper-container',
5187
- this.fullWidthPanes ? 'full-width-display' : 'content-peek-display'
5399
+ this.fullWidthPanes ? 'full-width-display' : 'content-peek-display',
5188
5400
  ];
5189
5401
  if (this.compactMode)
5190
5402
  carouselContainerClasses = [...carouselContainerClasses, 'compact'];