q2-tecton-elements 1.18.0 → 1.19.0

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 (255) hide show
  1. package/dist/cjs/click-elsewhere.cjs.entry.js +1 -1
  2. package/dist/cjs/{icons-e2bc9ee9.js → icons-afbdf88a.js} +1 -1
  3. package/dist/cjs/{index-eccd5617.js → index-3518c78c.js} +1 -1
  4. package/dist/cjs/{index-0128397d.js → index-734296a7.js} +476 -271
  5. package/dist/cjs/loader.cjs.js +3 -3
  6. package/dist/cjs/q2-avatar.cjs.entry.js +9 -6
  7. package/dist/cjs/q2-badge_2.cjs.entry.js +46 -7
  8. package/dist/cjs/q2-btn_2.cjs.entry.js +30 -5
  9. package/dist/cjs/q2-calendar.cjs.entry.js +89 -62
  10. package/dist/cjs/q2-card.cjs.entry.js +17 -6
  11. package/dist/cjs/q2-carousel-pane.cjs.entry.js +7 -3
  12. package/dist/cjs/q2-carousel.cjs.entry.js +196 -285
  13. package/dist/cjs/q2-chart-donut.cjs.entry.js +583 -504
  14. package/dist/cjs/q2-checkbox-group.cjs.entry.js +9 -7
  15. package/dist/cjs/q2-checkbox.cjs.entry.js +17 -4
  16. package/dist/cjs/q2-dropdown-item.cjs.entry.js +9 -3
  17. package/dist/cjs/q2-dropdown.cjs.entry.js +16 -5
  18. package/dist/cjs/q2-editable-field.cjs.entry.js +16 -6
  19. package/dist/cjs/q2-icon.cjs.entry.js +6 -4
  20. package/dist/cjs/q2-loading-element.cjs.entry.js +6 -2
  21. package/dist/cjs/q2-loc.cjs.entry.js +5 -3
  22. package/dist/cjs/q2-message.cjs.entry.js +4 -3
  23. package/dist/cjs/q2-month-picker.cjs.entry.js +9 -7
  24. package/dist/cjs/q2-optgroup.cjs.entry.js +6 -5
  25. package/dist/cjs/q2-option-list_2.cjs.entry.js +21 -7
  26. package/dist/cjs/q2-option.cjs.entry.js +12 -2
  27. package/dist/cjs/q2-pagination.cjs.entry.js +11 -3
  28. package/dist/cjs/q2-pill.cjs.entry.js +25 -7
  29. package/dist/cjs/q2-radio-group.cjs.entry.js +13 -6
  30. package/dist/cjs/q2-radio.cjs.entry.js +13 -8
  31. package/dist/cjs/q2-section.cjs.entry.js +9 -4
  32. package/dist/cjs/q2-select.cjs.entry.js +26 -17
  33. package/dist/cjs/q2-stepper-pane.cjs.entry.js +8 -3
  34. package/dist/cjs/q2-stepper-vertical.cjs.entry.js +5 -4
  35. package/dist/cjs/q2-stepper.cjs.entry.js +9 -7
  36. package/dist/cjs/q2-tab-container.cjs.entry.js +14 -9
  37. package/dist/cjs/q2-tab-pane.cjs.entry.js +10 -2
  38. package/dist/cjs/q2-tag.cjs.entry.js +20 -7
  39. package/dist/cjs/q2-tecton-elements.cjs.js +3 -3
  40. package/dist/cjs/q2-textarea.cjs.entry.js +20 -4
  41. package/dist/cjs/q2-tooltip.cjs.entry.js +9 -3
  42. package/dist/cjs/{shapes-c1a60d46.js → shapes-aad2b98f.js} +1 -1
  43. package/dist/cjs/tecton-tab-pane.cjs.entry.js +17 -2
  44. package/dist/collection/collection-manifest.json +2 -2
  45. package/dist/collection/components/click-elsewhere/index.js +18 -17
  46. package/dist/collection/components/q2-avatar/index.js +100 -92
  47. package/dist/collection/components/q2-avatar/styles.css +1 -1
  48. package/dist/collection/components/q2-badge/index.js +119 -111
  49. package/dist/collection/components/q2-badge/styles.css +1 -1
  50. package/dist/collection/components/q2-btn/index.js +349 -322
  51. package/dist/collection/components/q2-btn/styles.css +7 -7
  52. package/dist/collection/components/q2-calendar/index.js +565 -551
  53. package/dist/collection/components/q2-calendar/q2-month-picker.css +1 -1
  54. package/dist/collection/components/q2-calendar/q2-month-picker.js +112 -116
  55. package/dist/collection/components/q2-calendar/styles.css +1 -1
  56. package/dist/collection/components/q2-card/index.js +262 -244
  57. package/dist/collection/components/q2-card/styles.css +9 -2
  58. package/dist/collection/components/q2-carousel/index.js +249 -253
  59. package/dist/collection/components/q2-carousel/styles.css +1 -1
  60. package/dist/collection/components/q2-carousel-pane/index.js +108 -96
  61. package/dist/collection/components/q2-carousel-pane/styles.css +5 -4
  62. package/dist/collection/components/q2-chart-donut/index.js +350 -334
  63. package/dist/collection/components/q2-chart-donut/styles.css +3 -3
  64. package/dist/collection/components/q2-checkbox/index.js +296 -287
  65. package/dist/collection/components/q2-checkbox/styles.css +2 -2
  66. package/dist/collection/components/q2-checkbox-group/index.js +156 -152
  67. package/dist/collection/components/q2-checkbox-group/styles.css +1 -1
  68. package/dist/collection/components/q2-dropdown/index.js +255 -240
  69. package/dist/collection/components/q2-dropdown/styles.css +1 -1
  70. package/dist/collection/components/q2-dropdown-item/index.js +134 -123
  71. package/dist/collection/components/q2-dropdown-item/styles.css +12 -10
  72. package/dist/collection/components/q2-editable-field/index.js +300 -293
  73. package/dist/collection/components/q2-editable-field/styles.css +1 -1
  74. package/dist/collection/components/q2-icon/icons.js +358 -2158
  75. package/dist/collection/components/q2-icon/index.js +59 -49
  76. package/dist/collection/components/q2-icon/styles.css +1 -1
  77. package/dist/collection/components/q2-input/index.js +729 -705
  78. package/dist/collection/components/q2-input/styles.css +2 -2
  79. package/dist/collection/components/q2-loading/index.js +143 -132
  80. package/dist/collection/components/q2-loading/skeleton/q2-loading-element/index.js +85 -74
  81. package/dist/collection/components/q2-loading/skeleton/shapes.js +23 -36
  82. package/dist/collection/components/q2-loading/styles.css +1 -1
  83. package/dist/collection/components/q2-loc/index.js +49 -39
  84. package/dist/collection/components/q2-loc/styles.css +1 -1
  85. package/dist/collection/components/q2-message/index.js +101 -92
  86. package/dist/collection/components/q2-message/styles.css +1 -1
  87. package/dist/collection/components/q2-optgroup/index.js +64 -56
  88. package/dist/collection/components/q2-optgroup/styles.css +1 -1
  89. package/dist/collection/components/q2-option/index.js +244 -229
  90. package/dist/collection/components/q2-option/styles.css +5 -1
  91. package/dist/collection/components/q2-option-list/index.js +291 -270
  92. package/dist/collection/components/q2-option-list/styles.css +1 -1
  93. package/dist/collection/components/q2-pagination/index.js +183 -179
  94. package/dist/collection/components/q2-pagination/styles.css +1 -1
  95. package/dist/collection/components/q2-pill/index.js +260 -208
  96. package/dist/collection/components/q2-pill/styles.css +1 -1
  97. package/dist/collection/components/q2-popover/index.js +169 -151
  98. package/dist/collection/components/q2-popover/styles.css +2 -2
  99. package/dist/collection/components/q2-radio/index.js +233 -224
  100. package/dist/collection/components/q2-radio/styles.css +3 -3
  101. package/dist/collection/components/q2-radio-group/index.js +252 -244
  102. package/dist/collection/components/q2-radio-group/styles.css +1 -1
  103. package/dist/collection/components/q2-section/index.js +134 -125
  104. package/dist/collection/components/q2-section/styles.css +12 -1
  105. package/dist/collection/components/q2-select/index.js +393 -381
  106. package/dist/collection/components/q2-select/styles.css +1 -1
  107. package/dist/collection/components/q2-stepper/index.js +124 -126
  108. package/dist/collection/components/q2-stepper/styles.css +2 -1
  109. package/dist/collection/components/q2-stepper-pane/index.js +165 -149
  110. package/dist/collection/components/q2-stepper-pane/styles.css +1 -1
  111. package/dist/collection/components/q2-stepper-vertical/index.js +86 -85
  112. package/dist/collection/components/q2-stepper-vertical/styles.css +1 -1
  113. package/dist/collection/components/q2-tab-container/index.js +189 -184
  114. package/dist/collection/components/q2-tab-container/styles.css +1 -1
  115. package/dist/collection/components/q2-tab-pane/index.js +185 -166
  116. package/dist/collection/components/q2-tab-pane/styles.css +1 -1
  117. package/dist/collection/components/q2-tag/index.js +168 -116
  118. package/dist/collection/components/q2-tag/styles.css +1 -1
  119. package/dist/collection/components/q2-textarea/index.js +344 -327
  120. package/dist/collection/components/q2-textarea/styles.css +2 -2
  121. package/dist/collection/components/q2-tooltip/index.js +147 -133
  122. package/dist/collection/components/q2-tooltip/styles.css +1 -1
  123. package/dist/collection/components/tecton-tab-pane/index.js +287 -266
  124. package/dist/collection/components/tecton-tab-pane/styles.css +1 -1
  125. package/dist/collection/utils/index.js +2 -6
  126. package/dist/esm/click-elsewhere.entry.js +1 -1
  127. package/dist/esm/{icons-ed54e307.js → icons-78da5dd2.js} +1 -1
  128. package/dist/esm/{index-eac6b89e.js → index-9c591682.js} +1 -1
  129. package/dist/esm/{index-6d5ed7cc.js → index-bb1c8c7f.js} +476 -271
  130. package/dist/esm/loader.js +3 -3
  131. package/dist/esm/polyfills/css-shim.js +1 -1
  132. package/dist/esm/q2-avatar.entry.js +9 -6
  133. package/dist/esm/q2-badge_2.entry.js +46 -7
  134. package/dist/esm/q2-btn_2.entry.js +30 -5
  135. package/dist/esm/q2-calendar.entry.js +89 -62
  136. package/dist/esm/q2-card.entry.js +17 -6
  137. package/dist/esm/q2-carousel-pane.entry.js +7 -3
  138. package/dist/esm/q2-carousel.entry.js +196 -285
  139. package/dist/esm/q2-chart-donut.entry.js +583 -504
  140. package/dist/esm/q2-checkbox-group.entry.js +9 -7
  141. package/dist/esm/q2-checkbox.entry.js +17 -4
  142. package/dist/esm/q2-dropdown-item.entry.js +9 -3
  143. package/dist/esm/q2-dropdown.entry.js +16 -5
  144. package/dist/esm/q2-editable-field.entry.js +16 -6
  145. package/dist/esm/q2-icon.entry.js +6 -4
  146. package/dist/esm/q2-loading-element.entry.js +6 -2
  147. package/dist/esm/q2-loc.entry.js +5 -3
  148. package/dist/esm/q2-message.entry.js +4 -3
  149. package/dist/esm/q2-month-picker.entry.js +9 -7
  150. package/dist/esm/q2-optgroup.entry.js +6 -5
  151. package/dist/esm/q2-option-list_2.entry.js +21 -7
  152. package/dist/esm/q2-option.entry.js +12 -2
  153. package/dist/esm/q2-pagination.entry.js +11 -3
  154. package/dist/esm/q2-pill.entry.js +25 -7
  155. package/dist/esm/q2-radio-group.entry.js +13 -6
  156. package/dist/esm/q2-radio.entry.js +13 -8
  157. package/dist/esm/q2-section.entry.js +9 -4
  158. package/dist/esm/q2-select.entry.js +26 -17
  159. package/dist/esm/q2-stepper-pane.entry.js +8 -3
  160. package/dist/esm/q2-stepper-vertical.entry.js +5 -4
  161. package/dist/esm/q2-stepper.entry.js +9 -7
  162. package/dist/esm/q2-tab-container.entry.js +14 -9
  163. package/dist/esm/q2-tab-pane.entry.js +10 -2
  164. package/dist/esm/q2-tag.entry.js +20 -7
  165. package/dist/esm/q2-tecton-elements.js +3 -3
  166. package/dist/esm/q2-textarea.entry.js +20 -4
  167. package/dist/esm/q2-tooltip.entry.js +9 -3
  168. package/dist/esm/{shapes-c32e3ba2.js → shapes-62b8a431.js} +1 -1
  169. package/dist/esm/tecton-tab-pane.entry.js +17 -2
  170. package/dist/loader/package.json +1 -0
  171. package/dist/q2-tecton-elements/p-0ba564b1.entry.js +1 -0
  172. package/dist/q2-tecton-elements/p-0fad9c5a.entry.js +1 -0
  173. package/dist/q2-tecton-elements/{p-73154834.js → p-13a639cf.js} +1 -1
  174. package/dist/q2-tecton-elements/p-16c11d74.entry.js +1 -0
  175. package/dist/q2-tecton-elements/p-17e0cbf1.entry.js +1 -0
  176. package/dist/q2-tecton-elements/p-18e095af.entry.js +1 -0
  177. package/dist/q2-tecton-elements/p-2c9b1308.entry.js +1 -0
  178. package/dist/q2-tecton-elements/p-2e832e42.entry.js +1 -0
  179. package/dist/q2-tecton-elements/p-315fdb74.entry.js +1 -0
  180. package/dist/q2-tecton-elements/{p-c608e3c9.entry.js → p-444415b5.entry.js} +1 -1
  181. package/dist/q2-tecton-elements/p-4d700630.entry.js +1 -0
  182. package/dist/q2-tecton-elements/p-4f0f45e7.entry.js +1 -0
  183. package/dist/q2-tecton-elements/p-54e792bd.entry.js +1 -0
  184. package/dist/q2-tecton-elements/{p-80014da0.js → p-5e374fbd.js} +1 -1
  185. package/dist/q2-tecton-elements/p-5f064e1e.entry.js +39 -0
  186. package/dist/q2-tecton-elements/p-692f2d09.entry.js +1 -0
  187. package/dist/q2-tecton-elements/p-6e6b5b80.entry.js +1 -0
  188. package/dist/q2-tecton-elements/p-7e8f43d1.entry.js +1 -0
  189. package/dist/q2-tecton-elements/p-8e380edf.entry.js +1 -0
  190. package/dist/q2-tecton-elements/p-926a3e80.js +2 -0
  191. package/dist/q2-tecton-elements/{p-93c00587.js → p-92e1faf8.js} +1 -1
  192. package/dist/q2-tecton-elements/p-9772b15f.entry.js +1 -0
  193. package/dist/q2-tecton-elements/p-97aa8423.entry.js +1 -0
  194. package/dist/q2-tecton-elements/{p-17cffd7d.entry.js → p-a987402e.entry.js} +1 -1
  195. package/dist/q2-tecton-elements/p-aaf42539.entry.js +1 -0
  196. package/dist/q2-tecton-elements/p-ac674c20.entry.js +1 -0
  197. package/dist/q2-tecton-elements/p-b8b00394.entry.js +1 -0
  198. package/dist/q2-tecton-elements/p-c444a60b.entry.js +1 -0
  199. package/dist/q2-tecton-elements/p-c6c489fe.entry.js +1 -0
  200. package/dist/q2-tecton-elements/p-ce015552.entry.js +1 -0
  201. package/dist/q2-tecton-elements/p-d464fccc.entry.js +1 -0
  202. package/dist/q2-tecton-elements/p-de164483.entry.js +1 -0
  203. package/dist/q2-tecton-elements/p-df91e954.entry.js +1 -0
  204. package/dist/q2-tecton-elements/p-e6d26f39.entry.js +1 -0
  205. package/dist/q2-tecton-elements/p-e8e113c2.entry.js +1 -0
  206. package/dist/q2-tecton-elements/p-f1d06917.entry.js +1 -0
  207. package/dist/q2-tecton-elements/p-f800fd1e.entry.js +1 -0
  208. package/dist/q2-tecton-elements/p-fb37e67e.entry.js +1 -0
  209. package/dist/q2-tecton-elements/p-fc134a5d.entry.js +1 -0
  210. package/dist/q2-tecton-elements/p-fe88e979.entry.js +1 -0
  211. package/dist/q2-tecton-elements/p-ffb48ccc.entry.js +1 -0
  212. package/dist/q2-tecton-elements/q2-tecton-elements.esm.js +1 -1
  213. package/dist/test/helpers.js +6 -0
  214. package/dist/types/components/q2-pill/index.d.ts +3 -0
  215. package/dist/types/components/q2-tag/index.d.ts +3 -0
  216. package/dist/types/components.d.ts +154 -38
  217. package/dist/types/stencil-public-runtime.d.ts +20 -4
  218. package/dist/types/workspace/workspace/Tecton_tecton-production_master/packages/q2-tecton-elements/.stencil/test/helpers.d.ts +2 -0
  219. package/package.json +6 -6
  220. package/dist/q2-tecton-elements/p-02c1b7fd.entry.js +0 -1
  221. package/dist/q2-tecton-elements/p-04c743f2.entry.js +0 -1
  222. package/dist/q2-tecton-elements/p-07dc509c.entry.js +0 -1
  223. package/dist/q2-tecton-elements/p-12caa479.entry.js +0 -1
  224. package/dist/q2-tecton-elements/p-160dd1c2.entry.js +0 -1
  225. package/dist/q2-tecton-elements/p-1a3de749.entry.js +0 -1
  226. package/dist/q2-tecton-elements/p-2061c3fd.entry.js +0 -1
  227. package/dist/q2-tecton-elements/p-2a217895.entry.js +0 -1
  228. package/dist/q2-tecton-elements/p-2b94ae62.entry.js +0 -1
  229. package/dist/q2-tecton-elements/p-2e54f9a0.entry.js +0 -1
  230. package/dist/q2-tecton-elements/p-375569ff.entry.js +0 -1
  231. package/dist/q2-tecton-elements/p-3766cc6c.entry.js +0 -1
  232. package/dist/q2-tecton-elements/p-3eda2714.entry.js +0 -1
  233. package/dist/q2-tecton-elements/p-421af42d.entry.js +0 -1
  234. package/dist/q2-tecton-elements/p-4c53713d.entry.js +0 -1
  235. package/dist/q2-tecton-elements/p-4fd405f5.entry.js +0 -1
  236. package/dist/q2-tecton-elements/p-509c8924.entry.js +0 -1
  237. package/dist/q2-tecton-elements/p-55dc3dc1.entry.js +0 -1
  238. package/dist/q2-tecton-elements/p-5fffb28a.entry.js +0 -1
  239. package/dist/q2-tecton-elements/p-612e9974.entry.js +0 -1
  240. package/dist/q2-tecton-elements/p-64ca8c59.entry.js +0 -1
  241. package/dist/q2-tecton-elements/p-796c2bb5.entry.js +0 -1
  242. package/dist/q2-tecton-elements/p-86887866.entry.js +0 -1
  243. package/dist/q2-tecton-elements/p-9204c34d.entry.js +0 -1
  244. package/dist/q2-tecton-elements/p-9725d55f.entry.js +0 -1
  245. package/dist/q2-tecton-elements/p-a0fa416d.entry.js +0 -39
  246. package/dist/q2-tecton-elements/p-bd83e8e2.entry.js +0 -1
  247. package/dist/q2-tecton-elements/p-be0f2539.entry.js +0 -1
  248. package/dist/q2-tecton-elements/p-c05b0b55.entry.js +0 -1
  249. package/dist/q2-tecton-elements/p-c5691700.js +0 -1
  250. package/dist/q2-tecton-elements/p-d826d7ad.entry.js +0 -1
  251. package/dist/q2-tecton-elements/p-d9e9340c.entry.js +0 -1
  252. package/dist/q2-tecton-elements/p-e5757895.entry.js +0 -1
  253. package/dist/q2-tecton-elements/p-e68c9ef0.entry.js +0 -1
  254. package/dist/q2-tecton-elements/p-eb33bda4.entry.js +0 -1
  255. package/dist/q2-tecton-elements/p-f319549d.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-0128397d.js');
6
- const index$2 = require('./index-eccd5617.js');
5
+ const index$1 = require('./index-734296a7.js');
6
+ const index$2 = require('./index-3518c78c.js');
7
7
 
8
8
  /**
9
9
  * SSR Window 4.0.2
@@ -992,11 +992,7 @@ function deleteProps(obj) {
992
992
  });
993
993
  }
994
994
 
995
- function nextTick(callback, delay) {
996
- if (delay === void 0) {
997
- delay = 0;
998
- }
999
-
995
+ function nextTick(callback, delay = 0) {
1000
996
  return setTimeout(callback, delay);
1001
997
  }
1002
998
 
@@ -1023,11 +1019,7 @@ function getComputedStyle$1(el) {
1023
1019
  return style;
1024
1020
  }
1025
1021
 
1026
- function getTranslate(el, axis) {
1027
- if (axis === void 0) {
1028
- axis = 'x';
1029
- }
1030
-
1022
+ function getTranslate(el, axis = 'x') {
1031
1023
  const window = getWindow();
1032
1024
  let matrix;
1033
1025
  let curTransform;
@@ -1079,12 +1071,12 @@ function isNode(node) {
1079
1071
  return node && (node.nodeType === 1 || node.nodeType === 11);
1080
1072
  }
1081
1073
 
1082
- function extend() {
1083
- const to = Object(arguments.length <= 0 ? undefined : arguments[0]);
1074
+ function extend(...args) {
1075
+ const to = Object(args[0]);
1084
1076
  const noExtend = ['__proto__', 'constructor', 'prototype'];
1085
1077
 
1086
- for (let i = 1; i < arguments.length; i += 1) {
1087
- const nextSource = i < 0 || arguments.length <= i ? undefined : arguments[i];
1078
+ for (let i = 1; i < args.length; i += 1) {
1079
+ const nextSource = args[i];
1088
1080
 
1089
1081
  if (nextSource !== undefined && nextSource !== null && !isNode(nextSource)) {
1090
1082
  const keysArray = Object.keys(Object(nextSource)).filter(key => noExtend.indexOf(key) < 0);
@@ -1123,12 +1115,11 @@ function setCSSProperty(el, varName, varValue) {
1123
1115
  el.style.setProperty(varName, varValue);
1124
1116
  }
1125
1117
 
1126
- function animateCSSModeScroll(_ref) {
1127
- let {
1128
- swiper,
1129
- targetPosition,
1130
- side
1131
- } = _ref;
1118
+ function animateCSSModeScroll({
1119
+ swiper,
1120
+ targetPosition,
1121
+ side
1122
+ }) {
1132
1123
  const window = getWindow();
1133
1124
  const startPosition = -swiper.translate;
1134
1125
  let startTime = null;
@@ -1221,10 +1212,9 @@ function getSupport() {
1221
1212
 
1222
1213
  let deviceCached;
1223
1214
 
1224
- function calcDevice(_temp) {
1225
- let {
1226
- userAgent
1227
- } = _temp === void 0 ? {} : _temp;
1215
+ function calcDevice({
1216
+ userAgent
1217
+ } = {}) {
1228
1218
  const support = getSupport();
1229
1219
  const window = getWindow();
1230
1220
  const platform = window.navigator.platform;
@@ -1266,11 +1256,7 @@ function calcDevice(_temp) {
1266
1256
  return device;
1267
1257
  }
1268
1258
 
1269
- function getDevice(overrides) {
1270
- if (overrides === void 0) {
1271
- overrides = {};
1272
- }
1273
-
1259
+ function getDevice(overrides = {}) {
1274
1260
  if (!deviceCached) {
1275
1261
  deviceCached = calcDevice(overrides);
1276
1262
  }
@@ -1302,12 +1288,11 @@ function getBrowser() {
1302
1288
  return browser;
1303
1289
  }
1304
1290
 
1305
- function Resize(_ref) {
1306
- let {
1307
- swiper,
1308
- on,
1309
- emit
1310
- } = _ref;
1291
+ function Resize({
1292
+ swiper,
1293
+ on,
1294
+ emit
1295
+ }) {
1311
1296
  const window = getWindow();
1312
1297
  let observer = null;
1313
1298
  let animationFrame = null;
@@ -1328,12 +1313,11 @@ function Resize(_ref) {
1328
1313
  } = swiper;
1329
1314
  let newWidth = width;
1330
1315
  let newHeight = height;
1331
- entries.forEach(_ref2 => {
1332
- let {
1333
- contentBoxSize,
1334
- contentRect,
1335
- target
1336
- } = _ref2;
1316
+ entries.forEach(({
1317
+ contentBoxSize,
1318
+ contentRect,
1319
+ target
1320
+ }) => {
1337
1321
  if (target && target !== swiper.el) return;
1338
1322
  newWidth = contentRect ? contentRect.width : (contentBoxSize[0] || contentBoxSize).inlineSize;
1339
1323
  newHeight = contentRect ? contentRect.height : (contentBoxSize[0] || contentBoxSize).blockSize;
@@ -1379,21 +1363,16 @@ function Resize(_ref) {
1379
1363
  });
1380
1364
  }
1381
1365
 
1382
- function Observer(_ref) {
1383
- let {
1384
- swiper,
1385
- extendParams,
1386
- on,
1387
- emit
1388
- } = _ref;
1366
+ function Observer({
1367
+ swiper,
1368
+ extendParams,
1369
+ on,
1370
+ emit
1371
+ }) {
1389
1372
  const observers = [];
1390
1373
  const window = getWindow();
1391
1374
 
1392
- const attach = function (target, options) {
1393
- if (options === void 0) {
1394
- options = {};
1395
- }
1396
-
1375
+ const attach = (target, options = {}) => {
1397
1376
  const ObserverFunc = window.MutationObserver || window.WebkitMutationObserver;
1398
1377
  const observer = new ObserverFunc(mutations => {
1399
1378
  // The observerUpdate event should only be triggered
@@ -1478,17 +1457,13 @@ const eventsEmitter = {
1478
1457
  if (!self.eventsListeners || self.destroyed) return self;
1479
1458
  if (typeof handler !== 'function') return self;
1480
1459
 
1481
- function onceHandler() {
1460
+ function onceHandler(...args) {
1482
1461
  self.off(events, onceHandler);
1483
1462
 
1484
1463
  if (onceHandler.__emitterProxy) {
1485
1464
  delete onceHandler.__emitterProxy;
1486
1465
  }
1487
1466
 
1488
- for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
1489
- args[_key] = arguments[_key];
1490
- }
1491
-
1492
1467
  handler.apply(self, args);
1493
1468
  }
1494
1469
 
@@ -1540,7 +1515,7 @@ const eventsEmitter = {
1540
1515
  return self;
1541
1516
  },
1542
1517
 
1543
- emit() {
1518
+ emit(...args) {
1544
1519
  const self = this;
1545
1520
  if (!self.eventsListeners || self.destroyed) return self;
1546
1521
  if (!self.eventsListeners) return self;
@@ -1548,10 +1523,6 @@ const eventsEmitter = {
1548
1523
  let data;
1549
1524
  let context;
1550
1525
 
1551
- for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
1552
- args[_key2] = arguments[_key2];
1553
- }
1554
-
1555
1526
  if (typeof args[0] === 'string' || Array.isArray(args[0])) {
1556
1527
  events = args[0];
1557
1528
  data = args.slice(1, args.length);
@@ -1960,7 +1931,7 @@ function updateAutoHeight(speed) {
1960
1931
 
1961
1932
  if (swiper.params.slidesPerView !== 'auto' && swiper.params.slidesPerView > 1) {
1962
1933
  if (swiper.params.centeredSlides) {
1963
- swiper.visibleSlides.each(slide => {
1934
+ (swiper.visibleSlides || $([])).each(slide => {
1964
1935
  activeSlides.push(slide);
1965
1936
  });
1966
1937
  } else {
@@ -1995,11 +1966,7 @@ function updateSlidesOffset() {
1995
1966
  }
1996
1967
  }
1997
1968
 
1998
- function updateSlidesProgress(translate) {
1999
- if (translate === void 0) {
2000
- translate = this && this.translate || 0;
2001
- }
2002
-
1969
+ function updateSlidesProgress(translate = this && this.translate || 0) {
2003
1970
  const swiper = this;
2004
1971
  const params = swiper.params;
2005
1972
  const {
@@ -2278,11 +2245,7 @@ const update = {
2278
2245
  updateClickedSlide
2279
2246
  };
2280
2247
 
2281
- function getSwiperTranslate(axis) {
2282
- if (axis === void 0) {
2283
- axis = this.isHorizontal() ? 'x' : 'y';
2284
- }
2285
-
2248
+ function getSwiperTranslate(axis = this.isHorizontal() ? 'x' : 'y') {
2286
2249
  const swiper = this;
2287
2250
  const {
2288
2251
  params,
@@ -2361,23 +2324,7 @@ function maxTranslate() {
2361
2324
  return -this.snapGrid[this.snapGrid.length - 1];
2362
2325
  }
2363
2326
 
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
-
2327
+ function translateTo(translate = 0, speed = this.params.speed, runCallbacks = true, translateBounds = true, internal) {
2381
2328
  const swiper = this;
2382
2329
  const {
2383
2330
  params,
@@ -2480,13 +2427,12 @@ function setTransition(duration, byController) {
2480
2427
  swiper.emit('setTransition', duration, byController);
2481
2428
  }
2482
2429
 
2483
- function transitionEmit(_ref) {
2484
- let {
2485
- swiper,
2486
- runCallbacks,
2487
- direction,
2488
- step
2489
- } = _ref;
2430
+ function transitionEmit({
2431
+ swiper,
2432
+ runCallbacks,
2433
+ direction,
2434
+ step
2435
+ }) {
2490
2436
  const {
2491
2437
  activeIndex,
2492
2438
  previousIndex
@@ -2515,11 +2461,7 @@ function transitionEmit(_ref) {
2515
2461
  }
2516
2462
  }
2517
2463
 
2518
- function transitionStart(runCallbacks, direction) {
2519
- if (runCallbacks === void 0) {
2520
- runCallbacks = true;
2521
- }
2522
-
2464
+ function transitionStart(runCallbacks = true, direction) {
2523
2465
  const swiper = this;
2524
2466
  const {
2525
2467
  params
@@ -2538,11 +2480,7 @@ function transitionStart(runCallbacks, direction) {
2538
2480
  });
2539
2481
  }
2540
2482
 
2541
- function transitionEnd(runCallbacks, direction) {
2542
- if (runCallbacks === void 0) {
2543
- runCallbacks = true;
2544
- }
2545
-
2483
+ function transitionEnd(runCallbacks = true, direction) {
2546
2484
  const swiper = this;
2547
2485
  const {
2548
2486
  params
@@ -2564,19 +2502,7 @@ const transition = {
2564
2502
  transitionEnd
2565
2503
  };
2566
2504
 
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
-
2505
+ function slideTo(index = 0, speed = this.params.speed, runCallbacks = true, internal, initial) {
2580
2506
  if (typeof index !== 'number' && typeof index !== 'string') {
2581
2507
  throw new Error(`The 'index' argument cannot have type other than 'number' or 'string'. [${typeof index}] given.`);
2582
2508
  }
@@ -2625,14 +2551,7 @@ function slideTo(index, speed, runCallbacks, internal, initial) {
2625
2551
  const skip = Math.min(swiper.params.slidesPerGroupSkip, slideIndex);
2626
2552
  let snapIndex = skip + Math.floor((slideIndex - skip) / swiper.params.slidesPerGroup);
2627
2553
  if (snapIndex >= snapGrid.length) snapIndex = snapGrid.length - 1;
2628
-
2629
- if ((activeIndex || params.initialSlide || 0) === (previousIndex || 0) && runCallbacks) {
2630
- swiper.emit('beforeSlideChangeStart');
2631
- }
2632
-
2633
- const translate = -snapGrid[snapIndex]; // Update progress
2634
-
2635
- swiper.updateProgress(translate); // Normalize slideIndex
2554
+ const translate = -snapGrid[snapIndex]; // Normalize slideIndex
2636
2555
 
2637
2556
  if (params.normalizeSlideIndex) {
2638
2557
  for (let i = 0; i < slidesGrid.length; i += 1) {
@@ -2663,6 +2582,12 @@ function slideTo(index, speed, runCallbacks, internal, initial) {
2663
2582
  }
2664
2583
  }
2665
2584
 
2585
+ if (slideIndex !== (previousIndex || 0) && runCallbacks) {
2586
+ swiper.emit('beforeSlideChangeStart');
2587
+ } // Update progress
2588
+
2589
+
2590
+ swiper.updateProgress(translate);
2666
2591
  let direction;
2667
2592
  if (slideIndex > activeIndex) direction = 'next';else if (slideIndex < activeIndex) direction = 'prev';else direction = 'reset'; // Update Index
2668
2593
 
@@ -2757,17 +2682,28 @@ function slideTo(index, speed, runCallbacks, internal, initial) {
2757
2682
  return true;
2758
2683
  }
2759
2684
 
2760
- function slideToLoop(index, speed, runCallbacks, internal) {
2761
- if (index === void 0) {
2762
- index = 0;
2763
- }
2685
+ function slideToLoop(index = 0, speed = this.params.speed, runCallbacks = true, internal) {
2686
+ if (typeof index === 'string') {
2687
+ /**
2688
+ * The `index` argument converted from `string` to `number`.
2689
+ * @type {number}
2690
+ */
2691
+ const indexAsNumber = parseInt(index, 10);
2692
+ /**
2693
+ * Determines whether the `index` argument is a valid `number`
2694
+ * after being converted from the `string` type.
2695
+ * @type {boolean}
2696
+ */
2764
2697
 
2765
- if (speed === void 0) {
2766
- speed = this.params.speed;
2767
- }
2698
+ const isValidNumber = isFinite(indexAsNumber);
2699
+
2700
+ if (!isValidNumber) {
2701
+ throw new Error(`The passed-in 'index' (string) couldn't be converted to 'number'. [${index}] given.`);
2702
+ } // Knowing that the converted `index` is a valid number,
2703
+ // we can update the original argument's value.
2768
2704
 
2769
- if (runCallbacks === void 0) {
2770
- runCallbacks = true;
2705
+
2706
+ index = indexAsNumber;
2771
2707
  }
2772
2708
 
2773
2709
  const swiper = this;
@@ -2781,15 +2717,7 @@ function slideToLoop(index, speed, runCallbacks, internal) {
2781
2717
  }
2782
2718
 
2783
2719
  /* eslint no-unused-vars: "off" */
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
-
2720
+ function slideNext(speed = this.params.speed, runCallbacks = true, internal) {
2793
2721
  const swiper = this;
2794
2722
  const {
2795
2723
  animating,
@@ -2820,15 +2748,7 @@ function slideNext(speed, runCallbacks, internal) {
2820
2748
  }
2821
2749
 
2822
2750
  /* eslint no-unused-vars: "off" */
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
-
2751
+ function slidePrev(speed = this.params.speed, runCallbacks = true, internal) {
2832
2752
  const swiper = this;
2833
2753
  const {
2834
2754
  params,
@@ -2893,33 +2813,13 @@ function slidePrev(speed, runCallbacks, internal) {
2893
2813
  }
2894
2814
 
2895
2815
  /* eslint no-unused-vars: "off" */
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
-
2816
+ function slideReset(speed = this.params.speed, runCallbacks = true, internal) {
2905
2817
  const swiper = this;
2906
2818
  return swiper.slideTo(swiper.activeIndex, speed, runCallbacks, internal);
2907
2819
  }
2908
2820
 
2909
2821
  /* eslint no-unused-vars: "off" */
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
-
2822
+ function slideToClosest(speed = this.params.speed, runCallbacks = true, internal, threshold = 0.5) {
2923
2823
  const swiper = this;
2924
2824
  let index = swiper.activeIndex;
2925
2825
  const skip = Math.min(swiper.params.slidesPerGroupSkip, index);
@@ -3028,7 +2928,7 @@ function loopCreate() {
3028
2928
  swiper.loopedSlides = Math.ceil(parseFloat(params.loopedSlides || params.slidesPerView, 10));
3029
2929
  swiper.loopedSlides += params.loopAdditionalSlides;
3030
2930
 
3031
- if (swiper.loopedSlides > slides.length) {
2931
+ if (swiper.loopedSlides > slides.length && swiper.params.loopedSlidesLimit) {
3032
2932
  swiper.loopedSlides = slides.length;
3033
2933
  }
3034
2934
 
@@ -3036,18 +2936,15 @@ function loopCreate() {
3036
2936
  const appendSlides = [];
3037
2937
  slides.each((el, index) => {
3038
2938
  const slide = $(el);
3039
-
3040
- if (index < swiper.loopedSlides) {
3041
- appendSlides.push(el);
3042
- }
3043
-
3044
- if (index < slides.length && index >= slides.length - swiper.loopedSlides) {
3045
- prependSlides.push(el);
3046
- }
3047
-
3048
2939
  slide.attr('data-swiper-slide-index', index);
3049
2940
  });
3050
2941
 
2942
+ for (let i = 0; i < swiper.loopedSlides; i += 1) {
2943
+ const index = i - Math.floor(i / slides.length) * slides.length;
2944
+ appendSlides.push(slides.eq(index)[0]);
2945
+ prependSlides.unshift(slides.eq(slides.length - index - 1)[0]);
2946
+ }
2947
+
3051
2948
  for (let i = 0; i < appendSlides.length; i += 1) {
3052
2949
  $selector.append($(appendSlides[i].cloneNode(true)).addClass(params.slideDuplicateClass));
3053
2950
  }
@@ -3139,15 +3036,16 @@ const grabCursor = {
3139
3036
  unsetGrabCursor
3140
3037
  };
3141
3038
 
3142
- function closestElement(selector, base) {
3143
- if (base === void 0) {
3144
- base = this;
3145
- }
3146
-
3039
+ function closestElement(selector, base = this) {
3147
3040
  function __closestFrom(el) {
3148
3041
  if (!el || el === getDocument() || el === getWindow()) return null;
3149
3042
  if (el.assignedSlot) el = el.assignedSlot;
3150
3043
  const found = el.closest(selector);
3044
+
3045
+ if (!found && !el.getRootNode) {
3046
+ return null;
3047
+ }
3048
+
3151
3049
  return found || __closestFrom(el.getRootNode().host);
3152
3050
  }
3153
3051
 
@@ -3187,16 +3085,18 @@ function onTouchStart(event) {
3187
3085
  if (!data.isTouchEvent && 'button' in e && e.button > 0) return;
3188
3086
  if (data.isTouched && data.isMoved) return; // change target el for shadow root component
3189
3087
 
3190
- const swipingClassHasValue = !!params.noSwipingClass && params.noSwipingClass !== '';
3088
+ const swipingClassHasValue = !!params.noSwipingClass && params.noSwipingClass !== ''; // eslint-disable-next-line
3191
3089
 
3192
- if (swipingClassHasValue && e.target && e.target.shadowRoot && event.path && event.path[0]) {
3193
- $targetEl = $(event.path[0]);
3090
+ const eventPath = event.composedPath ? event.composedPath() : event.path;
3091
+
3092
+ if (swipingClassHasValue && e.target && e.target.shadowRoot && eventPath) {
3093
+ $targetEl = $(eventPath[0]);
3194
3094
  }
3195
3095
 
3196
3096
  const noSwipingSelector = params.noSwipingSelector ? params.noSwipingSelector : `.${params.noSwipingClass}`;
3197
3097
  const isTargetShadow = !!(e.target && e.target.shadowRoot); // use closestElement for shadow root element to get the actual closest for nested shadow root element
3198
3098
 
3199
- if (params.noSwiping && (isTargetShadow ? closestElement(noSwipingSelector, e.target) : $targetEl.closest(noSwipingSelector)[0])) {
3099
+ if (params.noSwiping && (isTargetShadow ? closestElement(noSwipingSelector, $targetEl[0]) : $targetEl.closest(noSwipingSelector)[0])) {
3200
3100
  swiper.allowClick = true;
3201
3101
  return;
3202
3102
  }
@@ -3867,8 +3767,21 @@ function setBreakpoint() {
3867
3767
  }
3868
3768
 
3869
3769
  swiper.emitContainerClasses();
3870
- }
3770
+ } // Toggle navigation, pagination, scrollbar
3771
+
3772
+
3773
+ ['navigation', 'pagination', 'scrollbar'].forEach(prop => {
3774
+ const wasModuleEnabled = params[prop] && params[prop].enabled;
3775
+ const isModuleEnabled = breakpointParams[prop] && breakpointParams[prop].enabled;
3776
+
3777
+ if (wasModuleEnabled && !isModuleEnabled) {
3778
+ swiper[prop].disable();
3779
+ }
3871
3780
 
3781
+ if (!wasModuleEnabled && isModuleEnabled) {
3782
+ swiper[prop].enable();
3783
+ }
3784
+ });
3872
3785
  const directionChanged = breakpointParams.direction && breakpointParams.direction !== params.direction;
3873
3786
  const needsReLoop = params.loop && (breakpointParams.slidesPerView !== params.slidesPerView || directionChanged);
3874
3787
 
@@ -3903,11 +3816,7 @@ function setBreakpoint() {
3903
3816
  swiper.emit('breakpoint', breakpointParams);
3904
3817
  }
3905
3818
 
3906
- function getBreakpoint(breakpoints, base, containerEl) {
3907
- if (base === void 0) {
3908
- base = 'window';
3909
- }
3910
-
3819
+ function getBreakpoint(breakpoints, base = 'window', containerEl) {
3911
3820
  if (!breakpoints || base === 'container' && !containerEl) return undefined;
3912
3821
  let breakpoint = false;
3913
3822
  const window = getWindow();
@@ -4211,6 +4120,7 @@ const defaults = {
4211
4120
  loop: false,
4212
4121
  loopAdditionalSlides: 0,
4213
4122
  loopedSlides: null,
4123
+ loopedSlidesLimit: true,
4214
4124
  loopFillGroupWithBlank: false,
4215
4125
  loopPreventsSlide: true,
4216
4126
  // rewind
@@ -4247,11 +4157,7 @@ const defaults = {
4247
4157
  };
4248
4158
 
4249
4159
  function moduleExtendParams(params, allModulesParams) {
4250
- return function extendParams(obj) {
4251
- if (obj === void 0) {
4252
- obj = {};
4253
- }
4254
-
4160
+ return function extendParams(obj = {}) {
4255
4161
  const moduleParamName = Object.keys(obj)[0];
4256
4162
  const moduleParams = obj[moduleParamName];
4257
4163
 
@@ -4306,14 +4212,10 @@ const prototypes = {
4306
4212
  const extendedDefaults = {};
4307
4213
 
4308
4214
  class Swiper {
4309
- constructor() {
4215
+ constructor(...args) {
4310
4216
  let el;
4311
4217
  let params;
4312
4218
 
4313
- for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
4314
- args[_key] = arguments[_key];
4315
- }
4316
-
4317
4219
  if (args.length === 1 && args[0].constructor && Object.prototype.toString.call(args[0]).slice(8, -1) === 'Object') {
4318
4220
  params = args[0];
4319
4221
  } else {
@@ -4331,7 +4233,8 @@ class Swiper {
4331
4233
  el: containerEl
4332
4234
  });
4333
4235
  swipers.push(new Swiper(newParams));
4334
- });
4236
+ }); // eslint-disable-next-line no-constructor-return
4237
+
4335
4238
  return swipers;
4336
4239
  } // Swiper Instance
4337
4240
 
@@ -4474,6 +4377,7 @@ class Swiper {
4474
4377
  if (swiper.params.init) {
4475
4378
  swiper.init();
4476
4379
  } // Return app instance
4380
+ // eslint-disable-next-line no-constructor-return
4477
4381
 
4478
4382
 
4479
4383
  return swiper;
@@ -4546,15 +4450,7 @@ class Swiper {
4546
4450
  swiper.emit('_slideClasses', updates);
4547
4451
  }
4548
4452
 
4549
- slidesPerViewDynamic(view, exact) {
4550
- if (view === void 0) {
4551
- view = 'current';
4552
- }
4553
-
4554
- if (exact === void 0) {
4555
- exact = false;
4556
- }
4557
-
4453
+ slidesPerViewDynamic(view = 'current', exact = false) {
4558
4454
  const swiper = this;
4559
4455
  const {
4560
4456
  params,
@@ -4662,11 +4558,7 @@ class Swiper {
4662
4558
  swiper.emit('update');
4663
4559
  }
4664
4560
 
4665
- changeDirection(newDirection, needUpdate) {
4666
- if (needUpdate === void 0) {
4667
- needUpdate = true;
4668
- }
4669
-
4561
+ changeDirection(newDirection, needUpdate = true) {
4670
4562
  const swiper = this;
4671
4563
  const currentDirection = swiper.params.direction;
4672
4564
 
@@ -4694,6 +4586,23 @@ class Swiper {
4694
4586
  return swiper;
4695
4587
  }
4696
4588
 
4589
+ changeLanguageDirection(direction) {
4590
+ const swiper = this;
4591
+ if (swiper.rtl && direction === 'rtl' || !swiper.rtl && direction === 'ltr') return;
4592
+ swiper.rtl = direction === 'rtl';
4593
+ swiper.rtlTranslate = swiper.params.direction === 'horizontal' && swiper.rtl;
4594
+
4595
+ if (swiper.rtl) {
4596
+ swiper.$el.addClass(`${swiper.params.containerModifierClass}rtl`);
4597
+ swiper.el.dir = 'rtl';
4598
+ } else {
4599
+ swiper.$el.removeClass(`${swiper.params.containerModifierClass}rtl`);
4600
+ swiper.el.dir = 'ltr';
4601
+ }
4602
+
4603
+ swiper.update();
4604
+ }
4605
+
4697
4606
  mount(el) {
4698
4607
  const swiper = this;
4699
4608
  if (swiper.mounted) return true; // Find el
@@ -4720,6 +4629,10 @@ class Swiper {
4720
4629
  return res;
4721
4630
  }
4722
4631
 
4632
+ if (!$el.children) {
4633
+ return $($el).children(getWrapperSelector());
4634
+ }
4635
+
4723
4636
  return $el.children(getWrapperSelector());
4724
4637
  }; // Find Wrapper
4725
4638
 
@@ -4804,15 +4717,7 @@ class Swiper {
4804
4717
  return swiper;
4805
4718
  }
4806
4719
 
4807
- destroy(deleteInstance, cleanStyles) {
4808
- if (deleteInstance === void 0) {
4809
- deleteInstance = true;
4810
- }
4811
-
4812
- if (cleanStyles === void 0) {
4813
- cleanStyles = true;
4814
- }
4815
-
4720
+ destroy(deleteInstance = true, cleanStyles = true) {
4816
4721
  const swiper = this;
4817
4722
  const {
4818
4723
  params,
@@ -4902,13 +4807,12 @@ Object.keys(prototypes).forEach(prototypeGroup => {
4902
4807
  Swiper.use([Resize, Observer]);
4903
4808
 
4904
4809
  /* eslint no-underscore-dangle: "off" */
4905
- function Autoplay(_ref) {
4906
- let {
4907
- swiper,
4908
- extendParams,
4909
- on,
4910
- emit
4911
- } = _ref;
4810
+ function Autoplay({
4811
+ swiper,
4812
+ extendParams,
4813
+ on,
4814
+ emit
4815
+ }) {
4912
4816
  let timeout;
4913
4817
  swiper.autoplay = {
4914
4818
  running: false,
@@ -4927,6 +4831,12 @@ function Autoplay(_ref) {
4927
4831
  });
4928
4832
 
4929
4833
  function run() {
4834
+ if (!swiper.size) {
4835
+ swiper.autoplay.running = false;
4836
+ swiper.autoplay.paused = false;
4837
+ return;
4838
+ }
4839
+
4930
4840
  const $activeSlideEl = swiper.slides.eq(swiper.activeIndex);
4931
4841
  let delay = swiper.params.autoplay.delay;
4932
4842
 
@@ -5123,7 +5033,7 @@ function Autoplay(_ref) {
5123
5033
  });
5124
5034
  }
5125
5035
 
5126
- const stylesCss = "*{box-sizing:border-box}*:active{outline:none}*:focus{outline:none;box-shadow:var(--const-global-focus, 0 0 0 2px #33b4ff)}:host{box-shadow:none !important}::-moz-focus-inner{border:none}input,textarea,button{font-family:inherit;font-size:inherit;font-stretch: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)))}";
5036
+ const stylesCss = "*{box-sizing:border-box}*:active{outline:none}*:focus{outline:none;box-shadow:var(--const-double-focus-ring, 0 0 0 2px #ffffff, 0 0 0 4px #33b4ff #06C)}:host{box-shadow:none !important}::-moz-focus-inner{border:none}input,textarea,button{font-family:inherit;font-size:inherit;font-stretch: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)))}";
5127
5037
 
5128
5038
  const carouselBreakpoint = 500; /* width in px of this host element where the layout starts to get unruly */
5129
5039
  const Q2Carousel = class {
@@ -5131,44 +5041,6 @@ const Q2Carousel = class {
5131
5041
  index$1.registerInstance(this, hostRef);
5132
5042
  this.change = index$1.createEvent(this, "change", 7);
5133
5043
  this.swiper = null;
5134
- this.autoPlay = false;
5135
- this.fullWidthPanes = false;
5136
- this.hidePagination = false;
5137
- this.showNavigationArrows = false;
5138
- this.label = 'tecton.element.carousel.ariaLabel';
5139
- this.index = 1;
5140
- this.universalCarouselOptions = {
5141
- centeredSlides: true,
5142
- focusableElements: 'q2-btn, a, input, select, textarea, button, video, label, option',
5143
- autoplay: this.autoPlay,
5144
- modules: [Autoplay],
5145
- on: {
5146
- slideChange: () => {
5147
- var _a, _b;
5148
- this.handleSlideChange((_b = (_a = this.swiper) === null || _a === void 0 ? void 0 : _a.activeIndex) !== null && _b !== void 0 ? _b : 0); // lazy-load causing this.swiper is null only on ios safari
5149
- },
5150
- activeIndexChange: swiper => {
5151
- this.activePaneIndex = swiper.activeIndex;
5152
- this.organizePanes();
5153
- const isPaginationFocused = document.activeElement.closest(`#q2-carousel-${this.guid} .q2-carousel-page-indicator`);
5154
- const isCarouselFocused = document.activeElement.closest(`#q2-carousel-${this.guid} q2-carousel-pane`);
5155
- if (isPaginationFocused) {
5156
- this.paginationBtns[swiper.activeIndex].focus({ preventScroll: true });
5157
- }
5158
- else if (isCarouselFocused)
5159
- swiper.slides[swiper.activeIndex].focus({
5160
- preventScroll: true,
5161
- });
5162
- },
5163
- },
5164
- };
5165
- this.fullWidthDisplayOptions = Object.assign({ slidesPerView: 1, spaceBetween: 100 }, this.universalCarouselOptions);
5166
- this.activePaneIndex = this.realIndex;
5167
- this.applyFocus = false;
5168
- this.applyPaginationFocus = false;
5169
- this.autoPlayInProgress = false;
5170
- this.compactMode = false;
5171
- this.carouselWrapperWidth = 0;
5172
5044
  // COMPUTED //
5173
5045
  this.guid = index$2.createGuid();
5174
5046
  // METHODS //
@@ -5314,6 +5186,45 @@ const Q2Carousel = class {
5314
5186
  insufficientPanesContainerClasses = [...insufficientPanesContainerClasses, 'compact'];
5315
5187
  return (index$1.h("div", { class: insufficientPanesContainerClasses.join(' ') }, index$1.h("div", { class: "insufficient-panes-icon-wrapper" }, index$1.h("q2-icon", { type: "warning" })), index$1.h("p", { class: "insufficient-panes-header" }, index$1.h("strong", null, index$2.loc('tecton.element.carousel.insufficientPanesMessageHeader'))), index$1.h("p", { class: "insufficient-panes-body" }, index$2.loc('tecton.element.carousel.insufficientPanesMessageBody'))));
5316
5188
  };
5189
+ this.autoPlay = false;
5190
+ this.fullWidthPanes = false;
5191
+ this.hidePagination = false;
5192
+ this.showNavigationArrows = false;
5193
+ this.ariaLabel = undefined;
5194
+ this.label = 'tecton.element.carousel.ariaLabel';
5195
+ this.index = 1;
5196
+ this.universalCarouselOptions = {
5197
+ centeredSlides: true,
5198
+ focusableElements: 'q2-btn, a, input, select, textarea, button, video, label, option',
5199
+ autoplay: this.autoPlay,
5200
+ modules: [Autoplay],
5201
+ on: {
5202
+ slideChange: () => {
5203
+ var _a, _b;
5204
+ this.handleSlideChange((_b = (_a = this.swiper) === null || _a === void 0 ? void 0 : _a.activeIndex) !== null && _b !== void 0 ? _b : 0); // lazy-load causing this.swiper is null only on ios safari
5205
+ },
5206
+ activeIndexChange: swiper => {
5207
+ this.activePaneIndex = swiper.activeIndex;
5208
+ this.organizePanes();
5209
+ const isPaginationFocused = document.activeElement.closest(`#q2-carousel-${this.guid} .q2-carousel-page-indicator`);
5210
+ const isCarouselFocused = document.activeElement.closest(`#q2-carousel-${this.guid} q2-carousel-pane`);
5211
+ if (isPaginationFocused) {
5212
+ this.paginationBtns[swiper.activeIndex].focus({ preventScroll: true });
5213
+ }
5214
+ else if (isCarouselFocused)
5215
+ swiper.slides[swiper.activeIndex].focus({
5216
+ preventScroll: true,
5217
+ });
5218
+ },
5219
+ },
5220
+ };
5221
+ this.fullWidthDisplayOptions = Object.assign({ slidesPerView: 1, spaceBetween: 100 }, this.universalCarouselOptions);
5222
+ this.activePaneIndex = this.realIndex;
5223
+ this.applyFocus = false;
5224
+ this.applyPaginationFocus = false;
5225
+ this.autoPlayInProgress = false;
5226
+ this.compactMode = false;
5227
+ this.carouselWrapperWidth = 0;
5317
5228
  }
5318
5229
  ariaLabelObserver() {
5319
5230
  index$2.handleAriaLabel(this);