infinity-forge 2.4.1 → 2.4.2

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 (325) hide show
  1. package/dist/sites/components/default-pages/blog/components/blog-item/index.d.ts +1 -1
  2. package/dist/sites/components/default-pages/blog/components/blog-item/index.js +3 -3
  3. package/dist/sites/components/default-pages/blog/components/blog-item/intefaces.d.ts +1 -1
  4. package/dist/sites/components/default-pages/blog/components/blog-item/share/index.js +2 -2
  5. package/dist/sites/components/default-pages/blog/components/featured-blog/featured-blog-item/index.d.ts +1 -1
  6. package/dist/sites/components/default-pages/blog/components/featured-blog/featured-blog-item/index.js +2 -2
  7. package/dist/sites/components/default-pages/blog/components/featured-blog/index.d.ts +1 -1
  8. package/dist/sites/components/default-pages/blog/components/featured-blog/index.js +2 -2
  9. package/dist/sites/components/default-pages/blog/components/featured-blog/interfaces.d.ts +2 -2
  10. package/dist/sites/components/default-pages/blog/components/side-box-categories/index.d.ts +2 -2
  11. package/dist/sites/components/default-pages/blog/components/side-box-categories/index.js +2 -2
  12. package/dist/sites/components/default-pages/blog/components/side-box-categories/interfaces.d.ts +1 -1
  13. package/dist/sites/components/default-pages/blog/components/side-box-newsletter/index.d.ts +1 -1
  14. package/dist/sites/components/default-pages/blog/components/side-box-newsletter/index.js +3 -3
  15. package/dist/sites/components/default-pages/blog/components/title-blog/index.js +2 -2
  16. package/dist/system/domain/protocols/http/errors/http-errors/index.d.ts +7 -7
  17. package/dist/system/domain/protocols/http/errors/http-errors/index.js +7 -7
  18. package/dist/system/domain/protocols/http/errors/system-errors-model/index.d.ts +1 -1
  19. package/dist/system/domain/protocols/http/errors/system-errors-model/index.js +1 -1
  20. package/dist/system/domain/use-cases/auth/admin/index.js +0 -18
  21. package/dist/system/presentation/components/data/avatar/index.js +0 -59
  22. package/dist/system/presentation/components/data/buttons/index.d.ts +0 -1
  23. package/dist/system/presentation/components/data/buttons/index.js +0 -18
  24. package/dist/system/presentation/components/data/buttons/sidebar-button/index.js +3 -3
  25. package/dist/system/presentation/components/data/chat/card-message/index.d.ts +1 -1
  26. package/dist/system/presentation/components/data/chat/card-message/index.js +3 -3
  27. package/dist/system/presentation/components/data/chat/index.d.ts +0 -2
  28. package/dist/system/presentation/components/data/chat/index.js +0 -38
  29. package/dist/system/presentation/components/data/chat/interfaces.d.ts +0 -8
  30. package/dist/system/presentation/components/data/chat/loader/index.js +1 -1
  31. package/dist/system/presentation/components/data/detail-card/component.d.ts +0 -2
  32. package/dist/system/presentation/components/data/detail-card/component.js +0 -42
  33. package/dist/system/presentation/components/data/detail-card/index.d.ts +0 -2
  34. package/dist/system/presentation/components/data/detail-card/index.js +0 -19
  35. package/dist/system/presentation/components/data/detail-card/interfaces.d.ts +0 -19
  36. package/dist/system/presentation/components/data/highlight-icon/index.d.ts +0 -2
  37. package/dist/system/presentation/components/data/highlight-icon/index.js +0 -40
  38. package/dist/system/presentation/components/data/highlight-icon/interfaces.d.ts +0 -8
  39. package/dist/system/presentation/components/data/highlight-text/index.d.ts +0 -2
  40. package/dist/system/presentation/components/data/highlight-text/index.js +0 -43
  41. package/dist/system/presentation/components/data/input-search/index.d.ts +0 -2
  42. package/dist/system/presentation/components/data/input-search/index.js +0 -39
  43. package/dist/system/presentation/components/data/logo/index.js +0 -34
  44. package/dist/system/presentation/components/data/menu/component.js +0 -17
  45. package/dist/system/presentation/components/data/menu/components/index.d.ts +1 -1
  46. package/dist/system/presentation/components/data/menu/components/index.js +1 -1
  47. package/dist/system/presentation/components/data/menu/components/menu-item/index.js +3 -3
  48. package/dist/system/presentation/components/data/menu/index.d.ts +0 -2
  49. package/dist/system/presentation/components/data/menu/index.js +0 -19
  50. package/dist/system/presentation/components/data/menu/modes/collapsed-menu/index.js +5 -5
  51. package/dist/system/presentation/components/data/menu/modes/collapsed-menu/styles.js +1 -1
  52. package/dist/system/presentation/components/data/menu/modes/index.d.ts +2 -2
  53. package/dist/system/presentation/components/data/menu/modes/index.js +2 -2
  54. package/dist/system/presentation/components/data/menu/modes/opened/index.js +3 -3
  55. package/dist/system/presentation/components/data/menu/modes/opened/styles.js +1 -1
  56. package/dist/system/presentation/components/data/notifications/card/index.d.ts +1 -1
  57. package/dist/system/presentation/components/data/notifications/card/index.js +2 -2
  58. package/dist/system/presentation/components/data/notifications/index.js +0 -155
  59. package/dist/system/presentation/components/data/page-wrapper/index.d.ts +0 -2
  60. package/dist/system/presentation/components/data/page-wrapper/index.js +0 -35
  61. package/dist/system/presentation/components/data/page-wrapper/interfaces.d.ts +0 -7
  62. package/dist/system/presentation/components/data/popover/index.d.ts +0 -2
  63. package/dist/system/presentation/components/data/profile-infos/index.d.ts +0 -2
  64. package/dist/system/presentation/components/data/profile-infos/index.js +0 -48
  65. package/dist/system/presentation/components/data/profile-infos/interfaces.d.ts +0 -6
  66. package/dist/system/presentation/components/data/profile-infos/profile/index.d.ts +1 -1
  67. package/dist/system/presentation/components/data/profile-infos/profile/index.js +3 -3
  68. package/dist/system/presentation/components/data/select-workspace/index.d.ts +0 -4
  69. package/dist/system/presentation/components/data/select-workspace/index.js +0 -69
  70. package/dist/system/presentation/components/data/tab/component.d.ts +0 -2
  71. package/dist/system/presentation/components/data/tab/component.js +0 -67
  72. package/dist/system/presentation/components/data/tab/index.d.ts +0 -2
  73. package/dist/system/presentation/components/data/tab/index.js +0 -19
  74. package/dist/system/presentation/components/data/tab/interfaces.d.ts +0 -29
  75. package/dist/system/presentation/components/data/tab/tab-item/index.d.ts +1 -1
  76. package/dist/system/presentation/components/data/tab/tab-item/index.js +2 -2
  77. package/dist/system/presentation/components/data/tab/tab-item/styles.d.ts +1 -1
  78. package/dist/system/presentation/components/layout/header/components/index.d.ts +2 -2
  79. package/dist/system/presentation/components/layout/header/components/index.js +2 -2
  80. package/dist/system/presentation/components/layout/header/components/menu-right/index.d.ts +1 -1
  81. package/dist/system/presentation/components/layout/header/components/menu-right/index.js +4 -4
  82. package/dist/system/presentation/components/layout/header/components/menu-right/messages/index.js +36 -0
  83. package/dist/system/presentation/components/layout/header/components/menu-right/profile/index.js +38 -0
  84. package/dist/system/presentation/components/layout/header/components/menu-right/settings/index.js +42 -0
  85. package/dist/system/presentation/components/layout/header/components/search-modal/index.js +4 -4
  86. package/dist/system/presentation/components/layout/header/index.d.ts +0 -2
  87. package/dist/system/presentation/components/layout/header/index.js +0 -25
  88. package/dist/system/presentation/components/layout/header/version-01/index.d.ts +1 -1
  89. package/dist/system/presentation/components/layout/header/version-01/index.js +4 -4
  90. package/dist/system/presentation/components/pages/menus/index.d.ts +0 -1
  91. package/dist/system/presentation/components/pages/menus/index.js +0 -18
  92. package/dist/system/presentation/components/pages/menus/page.js +0 -40
  93. package/dist/system/presentation/components/pages/menus/table/columns.d.ts +2 -2
  94. package/dist/system/presentation/components/pages/menus/table/columns.js +1 -1
  95. package/dist/system/presentation/components/pages/menus/table/create.d.ts +2 -2
  96. package/dist/system/presentation/components/pages/menus/table/create.js +2 -2
  97. package/dist/system/presentation/components/pages/menus/table/delete.js +2 -2
  98. package/dist/system/presentation/components/pages/menus/table/edit.d.ts +2 -2
  99. package/dist/system/presentation/components/pages/menus/table/edit.js +2 -2
  100. package/dist/system/presentation/components/pages/menus/table/icon/index.js +1 -1
  101. package/dist/system/presentation/components/pages/menus/table/index.d.ts +4 -4
  102. package/dist/system/presentation/components/pages/menus/table/index.js +4 -4
  103. package/dist/system/presentation/components/pages/users/index.d.ts +0 -1
  104. package/dist/system/presentation/components/pages/users/index.js +0 -18
  105. package/dist/system/presentation/components/pages/users/page.js +0 -40
  106. package/dist/system/presentation/components/pages/users/table/columns.d.ts +2 -2
  107. package/dist/system/presentation/components/pages/users/table/create.d.ts +2 -2
  108. package/dist/system/presentation/components/pages/users/table/create.js +2 -2
  109. package/dist/system/presentation/components/pages/users/table/delete.js +2 -2
  110. package/dist/system/presentation/components/pages/users/table/edit.d.ts +2 -2
  111. package/dist/system/presentation/components/pages/users/table/edit.js +2 -2
  112. package/dist/system/presentation/components/pages/users/table/index.d.ts +4 -4
  113. package/dist/system/presentation/components/pages/users/table/index.js +4 -4
  114. package/dist/system/presentation/context/auth/components/index.d.ts +0 -2
  115. package/dist/system/presentation/context/auth/components/index.js +0 -19
  116. package/dist/system/presentation/context/auth/components/login/form-login/index.js +2 -2
  117. package/dist/system/presentation/context/auth/components/login/index.js +4 -4
  118. package/dist/system/presentation/context/auth/components/private-page/index.d.ts +1 -1
  119. package/dist/system/presentation/context/auth/components/private-page/index.js +3 -3
  120. package/dist/system/presentation/hooks/notifications/use-load-all/index.d.ts +0 -1
  121. package/dist/system/presentation/hooks/notifications/use-load-all/index.js +0 -63
  122. package/dist/system/presentation/hooks/notifications/use-load-no-read/index.d.ts +0 -2
  123. package/dist/system/presentation/hooks/notifications/use-load-no-read/index.js +0 -60
  124. package/dist/system/presentation/hooks/ui/use-table/component.d.ts +0 -8
  125. package/dist/system/presentation/hooks/ui/use-table/component.js +0 -26
  126. package/dist/system/presentation/hooks/ui/use-table/components/index.d.ts +1 -1
  127. package/dist/system/presentation/hooks/ui/use-table/components/index.js +1 -1
  128. package/dist/system/presentation/hooks/ui/use-table/components/table/index.d.ts +1 -1
  129. package/dist/system/presentation/hooks/ui/use-table/components/table/index.js +10 -10
  130. package/dist/system/presentation/hooks/ui/use-table/components/table/interfaces.d.ts +2 -2
  131. package/dist/system/presentation/hooks/ui/use-table/index.d.ts +0 -4
  132. package/dist/system/presentation/hooks/ui/use-table/index.js +0 -21
  133. package/dist/system/presentation/hooks/ui/use-table/interfaces.d.ts +0 -92
  134. package/dist/system/presentation/hooks/ui/use-table/query/get-query-arguments-table.d.ts +1 -1
  135. package/dist/system/presentation/hooks/ui/use-table/query/hook.d.ts +1 -1
  136. package/dist/system/presentation/hooks/ui/use-table/query/hook.js +1 -1
  137. package/dist/system/presentation/hooks/ui/use-table/query/index.d.ts +2 -2
  138. package/dist/system/presentation/hooks/ui/use-table/query/index.js +2 -2
  139. package/dist/ui/components/carousel/carousel-lib/components-shared/get-changed-params.js +0 -51
  140. package/dist/ui/components/carousel/carousel-lib/components-shared/get-element-params.js +0 -148
  141. package/dist/ui/components/carousel/carousel-lib/components-shared/get-params.js +0 -61
  142. package/dist/ui/components/carousel/carousel-lib/components-shared/mount-swiper.js +0 -24
  143. package/dist/ui/components/carousel/carousel-lib/components-shared/update-swiper.js +0 -208
  144. package/dist/ui/components/carousel/carousel-lib/core/breakpoints/getBreakpoint.js +1 -1
  145. package/dist/ui/components/carousel/carousel-lib/core/breakpoints/index.d.ts +2 -2
  146. package/dist/ui/components/carousel/carousel-lib/core/breakpoints/index.js +2 -2
  147. package/dist/ui/components/carousel/carousel-lib/core/breakpoints/setBreakpoint.js +1 -1
  148. package/dist/ui/components/carousel/carousel-lib/core/classes/index.d.ts +2 -2
  149. package/dist/ui/components/carousel/carousel-lib/core/classes/index.js +2 -2
  150. package/dist/ui/components/carousel/carousel-lib/core/core.js +0 -654
  151. package/dist/ui/components/carousel/carousel-lib/core/events/index.js +9 -9
  152. package/dist/ui/components/carousel/carousel-lib/core/events/onLoad.js +1 -1
  153. package/dist/ui/components/carousel/carousel-lib/core/events/onTouchEnd.js +1 -1
  154. package/dist/ui/components/carousel/carousel-lib/core/events/onTouchMove.js +2 -2
  155. package/dist/ui/components/carousel/carousel-lib/core/events/onTouchStart.js +3 -3
  156. package/dist/ui/components/carousel/carousel-lib/core/grab-cursor/index.d.ts +2 -2
  157. package/dist/ui/components/carousel/carousel-lib/core/grab-cursor/index.js +2 -2
  158. package/dist/ui/components/carousel/carousel-lib/core/loop/index.d.ts +3 -3
  159. package/dist/ui/components/carousel/carousel-lib/core/loop/index.js +3 -3
  160. package/dist/ui/components/carousel/carousel-lib/core/loop/loopCreate.js +1 -1
  161. package/dist/ui/components/carousel/carousel-lib/core/loop/loopFix.js +1 -1
  162. package/dist/ui/components/carousel/carousel-lib/core/moduleExtendParams.js +0 -42
  163. package/dist/ui/components/carousel/carousel-lib/core/modules/observer/observer.js +2 -2
  164. package/dist/ui/components/carousel/carousel-lib/core/modules/resize/resize.js +1 -1
  165. package/dist/ui/components/carousel/carousel-lib/core/slide/index.d.ts +7 -7
  166. package/dist/ui/components/carousel/carousel-lib/core/slide/index.js +7 -7
  167. package/dist/ui/components/carousel/carousel-lib/core/slide/slideTo.js +1 -1
  168. package/dist/ui/components/carousel/carousel-lib/core/slide/slideToClickedSlide.js +1 -1
  169. package/dist/ui/components/carousel/carousel-lib/core/transition/index.d.ts +3 -3
  170. package/dist/ui/components/carousel/carousel-lib/core/transition/index.js +3 -3
  171. package/dist/ui/components/carousel/carousel-lib/core/transition/transitionEnd.js +1 -1
  172. package/dist/ui/components/carousel/carousel-lib/core/transition/transitionStart.js +1 -1
  173. package/dist/ui/components/carousel/carousel-lib/core/translate/getTranslate.js +1 -1
  174. package/dist/ui/components/carousel/carousel-lib/core/translate/index.d.ts +5 -5
  175. package/dist/ui/components/carousel/carousel-lib/core/translate/index.js +5 -5
  176. package/dist/ui/components/carousel/carousel-lib/core/translate/translateTo.js +1 -1
  177. package/dist/ui/components/carousel/carousel-lib/core/update/index.d.ts +9 -9
  178. package/dist/ui/components/carousel/carousel-lib/core/update/index.js +9 -9
  179. package/dist/ui/components/carousel/carousel-lib/core/update/updateActiveIndex.js +1 -1
  180. package/dist/ui/components/carousel/carousel-lib/core/update/updateSize.js +1 -1
  181. package/dist/ui/components/carousel/carousel-lib/core/update/updateSlides.js +1 -1
  182. package/dist/ui/components/carousel/carousel-lib/core/update/updateSlidesClasses.js +1 -1
  183. package/dist/ui/components/carousel/carousel-lib/modules/autoplay.js +0 -336
  184. package/dist/ui/components/carousel/carousel-lib/modules/effect-fade.js +0 -63
  185. package/dist/ui/components/carousel/carousel-lib/modules/free-mode.js +0 -247
  186. package/dist/ui/components/carousel/carousel-lib/modules/index.d.ts +0 -6
  187. package/dist/ui/components/carousel/carousel-lib/modules/index.js +0 -23
  188. package/dist/ui/components/carousel/carousel-lib/modules/navigation.js +0 -223
  189. package/dist/ui/components/carousel/carousel-lib/modules/pagination.js +0 -514
  190. package/dist/ui/components/carousel/carousel-lib/modules/virtual.js +0 -379
  191. package/dist/ui/components/carousel/carousel-lib/react/swiper-slide.js +0 -88
  192. package/dist/ui/components/carousel/carousel-lib/react/swiper.js +0 -210
  193. package/dist/ui/components/carousel/carousel-lib/shared/create-element-if-not-defined.js +0 -22
  194. package/dist/ui/components/carousel/carousel-lib/shared/create-shadow.js +0 -15
  195. package/dist/ui/components/carousel/carousel-lib/shared/effect-target.js +0 -13
  196. package/dist/ui/components/carousel/carousel-lib/shared/effect-virtual-transition-end.js +0 -47
  197. package/dist/ui/components/carousel/carousel-lib/shared/get-browser.js +0 -43
  198. package/dist/ui/components/carousel/carousel-lib/shared/get-device.js +0 -69
  199. package/dist/ui/components/carousel/carousel-lib/shared/get-support.js +0 -25
  200. package/dist/ui/components/carousel/carousel-lib/shared/utils.js +0 -372
  201. package/dist/ui/components/carousel/carousel-lib/ssr-window/document.js +0 -65
  202. package/dist/ui/components/carousel/carousel-lib/ssr-window/ssr-window.d.ts +0 -4
  203. package/dist/ui/components/carousel/carousel-lib/ssr-window/ssr-window.js +0 -15
  204. package/dist/ui/components/carousel/carousel-lib/ssr-window/window.js +0 -71
  205. package/dist/ui/components/carousel/carousel-lib/types/index.d.ts +0 -5
  206. package/dist/ui/components/carousel/carousel-lib/types/index.js +0 -27
  207. package/dist/ui/components/carousel/carousel-lib/types/swiper-events.d.ts +0 -162
  208. package/dist/ui/components/form/handler/custom-submit/index.d.ts +0 -17
  209. package/dist/ui/components/form/handler/custom-submit/index.js +0 -25
  210. package/dist/ui/components/form/handler/dynamic_form_handler/component.d.ts +0 -2
  211. package/dist/ui/components/form/handler/dynamic_form_handler/component.js +0 -117
  212. package/dist/ui/components/form/handler/dynamic_form_handler/index.d.ts +0 -2
  213. package/dist/ui/components/form/handler/dynamic_form_handler/index.js +0 -19
  214. package/dist/ui/components/form/handler/dynamic_form_handler/interfaces.d.ts +0 -28
  215. package/dist/ui/components/form/handler/form-handler/generate-schemas.js +0 -111
  216. package/dist/ui/components/form/handler/form-handler/index.d.ts +0 -2
  217. package/dist/ui/components/form/handler/form-handler/index.js +0 -241
  218. package/dist/ui/components/form/handler/form-handler/use-schemas.d.ts +0 -2
  219. package/dist/ui/components/form/handler/form-handler/use-schemas.js +0 -115
  220. package/dist/ui/components/form/handler/form-handler/use-send-file.d.ts +0 -5
  221. package/dist/ui/components/form/handler/form-handler/use-send-file.js +0 -209
  222. package/dist/ui/components/form/handler/i18n/capture-i18n-errors/index.d.ts +1 -1
  223. package/dist/ui/components/form/handler/i18n/index.d.ts +0 -2
  224. package/dist/ui/components/form/handler/i18n/index.js +4 -4
  225. package/dist/ui/components/form/input-cep/use-cep/hook.d.ts +2 -2
  226. package/dist/ui/components/form/input-cep/use-cep/hook.js +1 -1
  227. package/dist/ui/components/form/input-cep/use-cep/index.d.ts +2 -2
  228. package/dist/ui/components/form/input-cep/use-cep/index.js +2 -2
  229. package/dist/ui/components/form/input-cep/use-cep/providers/ibge/hook.d.ts +1 -1
  230. package/dist/ui/components/form/input-cep/use-cep/providers/ibge/hook.js +1 -1
  231. package/dist/ui/components/form/input-cep/use-cep/providers/ibge/index.d.ts +3 -3
  232. package/dist/ui/components/form/input-cep/use-cep/providers/ibge/index.js +3 -3
  233. package/dist/ui/components/form/input-cep/use-cep/providers/index.d.ts +1 -1
  234. package/dist/ui/components/form/input-cep/use-cep/providers/index.js +1 -1
  235. package/dist/ui/components/form/input-control/error/index.js +1 -1
  236. package/dist/ui/components/form/input-control/label/index.js +1 -1
  237. package/dist/ui/components/form/input-control/loader-input/index.js +2 -2
  238. package/dist/ui/components/form/input-currency/components/CurrencyInput.js +1 -1
  239. package/dist/ui/components/form/input-currency/components/index.d.ts +1 -1
  240. package/dist/ui/components/form/input-currency/components/index.js +1 -1
  241. package/dist/ui/components/form/input-currency/components/utils/cleanValue.d.ts +1 -1
  242. package/dist/ui/components/form/input-currency/components/utils/cleanValue.js +4 -4
  243. package/dist/ui/components/form/input-currency/components/utils/formatValue.d.ts +1 -1
  244. package/dist/ui/components/form/input-currency/components/utils/formatValue.js +2 -2
  245. package/dist/ui/components/form/input-currency/components/utils/getLocaleConfig.d.ts +1 -1
  246. package/dist/ui/components/form/input-currency/components/utils/getSuffix.js +1 -1
  247. package/dist/ui/components/form/input-currency/components/utils/index.d.ts +8 -8
  248. package/dist/ui/components/form/input-currency/components/utils/index.js +8 -8
  249. package/dist/ui/components/form/input-currency/components/utils/parseAbbrValue.js +1 -1
  250. package/dist/ui/components/form/input-currency/components/utils/removeInvalidChars.js +1 -1
  251. package/dist/ui/components/form/input-currency/components/utils/removeSeparators.js +1 -1
  252. package/dist/ui/components/form/input-date-picker/calendar/calendar-header/index.d.ts +1 -1
  253. package/dist/ui/components/form/input-date-picker/calendar/calendar-header/index.js +3 -3
  254. package/dist/ui/components/form/input-date-picker/calendar/days/index.d.ts +1 -1
  255. package/dist/ui/components/form/input-date-picker/calendar/days/index.js +2 -2
  256. package/dist/ui/components/form/input-date-picker/calendar/index.d.ts +1 -1
  257. package/dist/ui/components/form/input-date-picker/calendar/index.js +4 -4
  258. package/dist/ui/components/form/input-date-picker/calendar/interface.d.ts +2 -2
  259. package/dist/ui/components/form/input-date-picker/calendar/months/index.d.ts +1 -1
  260. package/dist/ui/components/form/input-date-picker/calendar/months/index.js +2 -2
  261. package/dist/ui/components/form/input-date-picker/calendar/styles.d.ts +1 -1
  262. package/dist/ui/components/form/input-date-picker/mock/index.d.ts +1 -1
  263. package/dist/ui/components/form/input-date-picker/mock/index.js +1 -1
  264. package/dist/ui/components/form/input-file/hooks/index.d.ts +4 -4
  265. package/dist/ui/components/form/input-file/hooks/index.js +4 -4
  266. package/dist/ui/components/form/input-file/hooks/use-components-file.d.ts +2 -2
  267. package/dist/ui/components/form/input-file/hooks/use-components-file.js +2 -2
  268. package/dist/ui/components/form/input-file/hooks/use-file-elements.d.ts +1 -1
  269. package/dist/ui/components/form/input-file/hooks/use-file-elements.js +2 -2
  270. package/dist/ui/components/form/input-file/hooks/use-file.d.ts +2 -2
  271. package/dist/ui/components/form/input-file/hooks/use-file.js +2 -2
  272. package/dist/ui/components/form/input-file/hooks/use-rendered-file.d.ts +1 -1
  273. package/dist/ui/components/form/input-file/hooks/use-rendered-file.js +1 -1
  274. package/dist/ui/components/form/input-file/render-files/component.d.ts +1 -1
  275. package/dist/ui/components/form/input-file/render-files/component.js +2 -2
  276. package/dist/ui/components/form/input-file/render-files/file-item/button-upload-image-mobile/index.d.ts +1 -1
  277. package/dist/ui/components/form/input-file/render-files/file-item/button-upload-image-mobile/index.js +1 -1
  278. package/dist/ui/components/form/input-file/render-files/file-item/index.d.ts +2 -2
  279. package/dist/ui/components/form/input-file/render-files/file-item/index.js +3 -3
  280. package/dist/ui/components/form/input-file/render-files/index.d.ts +3 -3
  281. package/dist/ui/components/form/input-file/render-files/index.js +3 -3
  282. package/dist/ui/components/form/input-file/render-files/interfaces.d.ts +2 -2
  283. package/dist/ui/components/form/input-mask/lib/core/errors/SyntheticChangeError.d.ts +1 -1
  284. package/dist/ui/components/form/input-mask/lib/core/hooks/useInput.d.ts +1 -1
  285. package/dist/ui/components/form/input-mask/lib/core/hooks/useInput.js +2 -2
  286. package/dist/ui/components/form/input-mask/lib/core/index.d.ts +5 -5
  287. package/dist/ui/components/form/input-mask/lib/core/index.js +4 -4
  288. package/dist/ui/components/form/input-mask/lib/core/utils/setInputAttributes.d.ts +1 -1
  289. package/dist/ui/components/form/input-mask/lib/mask/InputMask.d.ts +2 -2
  290. package/dist/ui/components/form/input-mask/lib/mask/InputMask.js +2 -2
  291. package/dist/ui/components/form/input-mask/lib/mask/index.d.ts +5 -5
  292. package/dist/ui/components/form/input-mask/lib/mask/index.js +3 -3
  293. package/dist/ui/components/form/input-mask/lib/mask/types.d.ts +1 -1
  294. package/dist/ui/components/form/input-mask/lib/mask/useMask.d.ts +1 -1
  295. package/dist/ui/components/form/input-mask/lib/mask/useMask.js +7 -7
  296. package/dist/ui/components/form/input-mask/lib/mask/utils/filter.d.ts +1 -1
  297. package/dist/ui/components/form/input-mask/lib/mask/utils/format.d.ts +1 -1
  298. package/dist/ui/components/form/input-mask/lib/mask/utils/formatToParts.d.ts +1 -1
  299. package/dist/ui/components/form/input-mask/lib/mask/utils/formatToReplacementObject.d.ts +1 -1
  300. package/dist/ui/components/form/input-mask/lib/mask/utils/resolveDetail.d.ts +1 -1
  301. package/dist/ui/components/form/input-mask/lib/mask/utils/resolveDetail.js +3 -3
  302. package/dist/ui/components/form/input-mask/lib/mask/utils/resolveSelection.d.ts +18 -0
  303. package/dist/ui/components/form/input-mask/lib/mask/utils/unformat.d.ts +1 -1
  304. package/dist/ui/components/form/input-mask/lib/mask/utils/validate.d.ts +13 -0
  305. package/dist/ui/components/form/input-mask/lib/mask/utils.d.ts +1 -1
  306. package/dist/ui/components/form/input-mask/lib/mask/utils.js +5 -5
  307. package/dist/ui/components/form/input-mask/lib/number-format/InputNumberFormat.d.ts +2 -2
  308. package/dist/ui/components/form/input-mask/lib/number-format/InputNumberFormat.js +2 -2
  309. package/dist/ui/components/form/input-mask/lib/number-format/index.d.ts +4 -4
  310. package/dist/ui/components/form/input-mask/lib/number-format/index.js +2 -2
  311. package/dist/ui/components/form/input-mask/lib/number-format/types.d.ts +1 -1
  312. package/dist/ui/components/form/input-mask/lib/number-format/useNumberFormat.d.ts +1 -1
  313. package/dist/ui/components/form/input-mask/lib/number-format/useNumberFormat.js +6 -6
  314. package/dist/ui/components/form/input-mask/lib/number-format/utils/localizeValues.d.ts +1 -1
  315. package/dist/ui/components/form/input-mask/lib/number-format/utils/resolveDetail.d.ts +2 -2
  316. package/dist/ui/components/form/input-mask/lib/number-format/utils/resolveDetail.js +1 -1
  317. package/dist/ui/components/form/input-mask/lib/number-format/utils/resolveMinimumFractionDigits.d.ts +1 -1
  318. package/dist/ui/components/form/input-mask/lib/number-format/utils/resolveOptions.d.ts +1 -1
  319. package/dist/ui/components/form/input-mask/lib/number-format/utils/resolveSelection.d.ts +24 -0
  320. package/dist/ui/components/form/input-seo/input-meta-image/index.d.ts +1 -1
  321. package/dist/ui/components/form/input-seo/input-meta-image/index.js +2 -2
  322. package/dist/ui/components/menu-mobile/components/nav-links/index.d.ts +1 -1
  323. package/dist/ui/components/menu-mobile/components/nav-links/index.js +3 -3
  324. package/dist/ui/components/menu-mobile/components/nav-links/interfaces.d.ts +1 -1
  325. package/package.json +1 -1
@@ -1,22 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- var utils_1 = require("./utils.js");
4
- function createElementIfNotDefined(swiper, originalParams, params, checkProps) {
5
- if (swiper.params.createElements) {
6
- Object.keys(checkProps).forEach(function (key) {
7
- if (!params[key] && params.auto === true) {
8
- var element = (0, utils_1.elementChildren)(swiper.el, ".".concat(checkProps[key]))[0];
9
- if (!element) {
10
- element = (0, utils_1.createElement)('div', checkProps[key]);
11
- element.className = checkProps[key];
12
- swiper.el.append(element);
13
- }
14
- params[key] = element;
15
- originalParams[key] = element;
16
- }
17
- });
18
- }
19
- return params;
20
- }
21
- exports.default = createElementIfNotDefined;
22
- //# sourceMappingURL=create-element-if-not-defined.js.map
@@ -1,15 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- var utils_1 = require("./utils.js");
4
- function createShadow(suffix, slideEl, side) {
5
- var shadowClass = "swiper-slide-shadow".concat(side ? "-".concat(side) : '').concat(suffix ? " swiper-slide-shadow-".concat(suffix) : '');
6
- var shadowContainer = (0, utils_1.getSlideTransformEl)(slideEl);
7
- var shadowEl = shadowContainer.querySelector(".".concat(shadowClass.split(' ').join('.')));
8
- if (!shadowEl) {
9
- shadowEl = (0, utils_1.createElement)('div', shadowClass.split(' '));
10
- shadowContainer.append(shadowEl);
11
- }
12
- return shadowEl;
13
- }
14
- exports.default = createShadow;
15
- //# sourceMappingURL=create-shadow.js.map
@@ -1,13 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- var utils_1 = require("./utils.js");
4
- function effectTarget(effectParams, slideEl) {
5
- var transformEl = (0, utils_1.getSlideTransformEl)(slideEl);
6
- if (transformEl !== slideEl) {
7
- transformEl.style.backfaceVisibility = 'hidden';
8
- transformEl.style['-webkit-backface-visibility'] = 'hidden';
9
- }
10
- return transformEl;
11
- }
12
- exports.default = effectTarget;
13
- //# sourceMappingURL=effect-target.js.map
@@ -1,47 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- var utils_1 = require("./utils.js");
4
- function effectVirtualTransitionEnd(_a) {
5
- var swiper = _a.swiper, duration = _a.duration, transformElements = _a.transformElements, allSlides = _a.allSlides;
6
- var activeIndex = swiper.activeIndex;
7
- var getSlide = function (el) {
8
- if (!el.parentElement) {
9
- // assume shadow root
10
- var slide = swiper.slides.filter(function (slideEl) { return slideEl.shadowRoot && slideEl.shadowRoot === el.parentNode; })[0];
11
- return slide;
12
- }
13
- return el.parentElement;
14
- };
15
- if (swiper.params.virtualTranslate && duration !== 0) {
16
- var eventTriggered_1 = false;
17
- var transitionEndTarget = void 0;
18
- if (allSlides) {
19
- transitionEndTarget = transformElements;
20
- }
21
- else {
22
- transitionEndTarget = transformElements.filter(function (transformEl) {
23
- var el = transformEl.classList.contains('swiper-slide-transform')
24
- ? getSlide(transformEl)
25
- : transformEl;
26
- return swiper.getSlideIndex(el) === activeIndex;
27
- });
28
- }
29
- transitionEndTarget.forEach(function (el) {
30
- (0, utils_1.elementTransitionEnd)(el, function () {
31
- if (eventTriggered_1)
32
- return;
33
- if (!swiper || swiper.destroyed)
34
- return;
35
- eventTriggered_1 = true;
36
- swiper.animating = false;
37
- var evt = new window.CustomEvent('transitionend', {
38
- bubbles: true,
39
- cancelable: true,
40
- });
41
- swiper.wrapperEl.dispatchEvent(evt);
42
- });
43
- });
44
- }
45
- }
46
- exports.default = effectVirtualTransitionEnd;
47
- //# sourceMappingURL=effect-virtual-transition-end.js.map
@@ -1,43 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.getBrowser = void 0;
4
- var window_1 = require("../ssr-window/window.js");
5
- var get_device_1 = require("./get-device.js");
6
- var browser;
7
- function calcBrowser() {
8
- var window = (0, window_1.getWindow)();
9
- var device = (0, get_device_1.getDevice)();
10
- var needPerspectiveFix = false;
11
- function isSafari() {
12
- var ua = window.navigator.userAgent.toLowerCase();
13
- return ua.indexOf('safari') >= 0 && ua.indexOf('chrome') < 0 && ua.indexOf('android') < 0;
14
- }
15
- if (isSafari()) {
16
- var ua = String(window.navigator.userAgent);
17
- if (ua.includes('Version/')) {
18
- var _a = ua
19
- .split('Version/')[1]
20
- .split(' ')[0]
21
- .split('.')
22
- .map(function (num) { return Number(num); }), major = _a[0], minor = _a[1];
23
- needPerspectiveFix = major < 16 || (major === 16 && minor < 2);
24
- }
25
- }
26
- var isWebView = /(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(window.navigator.userAgent);
27
- var isSafariBrowser = isSafari();
28
- var need3dFix = isSafariBrowser || (isWebView && device.ios);
29
- return {
30
- isSafari: needPerspectiveFix || isSafariBrowser,
31
- needPerspectiveFix: needPerspectiveFix,
32
- need3dFix: need3dFix,
33
- isWebView: isWebView,
34
- };
35
- }
36
- function getBrowser() {
37
- if (!browser) {
38
- browser = calcBrowser();
39
- }
40
- return browser;
41
- }
42
- exports.getBrowser = getBrowser;
43
- //# sourceMappingURL=get-browser.js.map
@@ -1,69 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.getDevice = void 0;
4
- var window_1 = require("../ssr-window/window.js");
5
- var get_support_1 = require("./get-support.js");
6
- var deviceCached;
7
- function calcDevice(_a) {
8
- var _b = _a === void 0 ? {} : _a, userAgent = _b.userAgent;
9
- var support = (0, get_support_1.getSupport)();
10
- var window = (0, window_1.getWindow)();
11
- var platform = window.navigator.platform;
12
- var ua = userAgent || window.navigator.userAgent;
13
- var device = {
14
- ios: false,
15
- android: false,
16
- };
17
- var screenWidth = window.screen.width;
18
- var screenHeight = window.screen.height;
19
- var android = ua.match(/(Android);?[\s\/]+([\d.]+)?/); // eslint-disable-line
20
- var ipad = ua.match(/(iPad).*OS\s([\d_]+)/);
21
- var ipod = ua.match(/(iPod)(.*OS\s([\d_]+))?/);
22
- var iphone = !ipad && ua.match(/(iPhone\sOS|iOS)\s([\d_]+)/);
23
- var windows = platform === 'Win32';
24
- var macos = platform === 'MacIntel';
25
- // iPadOs 13 fix
26
- var iPadScreens = [
27
- '1024x1366',
28
- '1366x1024',
29
- '834x1194',
30
- '1194x834',
31
- '834x1112',
32
- '1112x834',
33
- '768x1024',
34
- '1024x768',
35
- '820x1180',
36
- '1180x820',
37
- '810x1080',
38
- '1080x810',
39
- ];
40
- if (!ipad &&
41
- macos &&
42
- support.touch &&
43
- iPadScreens.indexOf("".concat(screenWidth, "x").concat(screenHeight)) >= 0) {
44
- ipad = ua.match(/(Version)\/([\d.]+)/);
45
- if (!ipad)
46
- ipad = [0, 1, '13_0_0'];
47
- macos = false;
48
- }
49
- // Android
50
- if (android && !windows) {
51
- device.os = 'android';
52
- device.android = true;
53
- }
54
- if (ipad || iphone || ipod) {
55
- device.os = 'ios';
56
- device.ios = true;
57
- }
58
- // Export object
59
- return device;
60
- }
61
- function getDevice(overrides) {
62
- if (overrides === void 0) { overrides = {}; }
63
- if (!deviceCached) {
64
- deviceCached = calcDevice(overrides);
65
- }
66
- return deviceCached;
67
- }
68
- exports.getDevice = getDevice;
69
- //# sourceMappingURL=get-device.js.map
@@ -1,25 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.getSupport = void 0;
4
- var document_1 = require("../ssr-window/document.js");
5
- var window_1 = require("../ssr-window/window.js");
6
- var support;
7
- function calcSupport() {
8
- var window = (0, window_1.getWindow)();
9
- var document = (0, document_1.getDocument)();
10
- return {
11
- smoothScroll: document.documentElement &&
12
- document.documentElement.style &&
13
- 'scrollBehavior' in document.documentElement.style,
14
- touch: !!('ontouchstart' in window ||
15
- (window.DocumentTouch && document instanceof window.DocumentTouch)),
16
- };
17
- }
18
- function getSupport() {
19
- if (!support) {
20
- support = calcSupport();
21
- }
22
- return support;
23
- }
24
- exports.getSupport = getSupport;
25
- //# sourceMappingURL=get-support.js.map
@@ -1,372 +0,0 @@
1
- "use strict";
2
- var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
3
- if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
4
- if (ar || !(i in from)) {
5
- if (!ar) ar = Array.prototype.slice.call(from, 0, i);
6
- ar[i] = from[i];
7
- }
8
- }
9
- return to.concat(ar || Array.prototype.slice.call(from));
10
- };
11
- var __importDefault = (this && this.__importDefault) || function (mod) {
12
- return (mod && mod.__esModule) ? mod : { "default": mod };
13
- };
14
- Object.defineProperty(exports, "__esModule", { value: true });
15
- exports.makeElementsArray = exports.elementOuterSize = exports.elementTransitionEnd = exports.elementParents = exports.elementIndex = exports.elementStyle = exports.elementNextAll = exports.elementPrevAll = exports.elementOffset = exports.elementChildren = exports.createElement = exports.findElementsInElements = exports.showWarning = exports.getSlideTransformEl = exports.setCSSProperty = exports.getComputedStyle = exports.extend = exports.isObject = exports.getTranslate = exports.now = exports.nextTick = exports.deleteProps = exports.animateCSSModeScroll = void 0;
16
- //@ts-nocheck
17
- var classes_to_tokens_1 = __importDefault(require("./classes-to-tokens.js"));
18
- var document_1 = require("../ssr-window/document.js");
19
- var window_1 = require("../ssr-window/window.js");
20
- function deleteProps(obj) {
21
- var object = obj;
22
- Object.keys(object).forEach(function (key) {
23
- try {
24
- object[key] = null;
25
- }
26
- catch (e) {
27
- // no getter for object
28
- }
29
- try {
30
- delete object[key];
31
- }
32
- catch (e) {
33
- // something got wrong
34
- }
35
- });
36
- }
37
- exports.deleteProps = deleteProps;
38
- function nextTick(callback, delay) {
39
- if (delay === void 0) { delay = 0; }
40
- return setTimeout(callback, delay);
41
- }
42
- exports.nextTick = nextTick;
43
- function now() {
44
- return Date.now();
45
- }
46
- exports.now = now;
47
- function getComputedStyle(el) {
48
- var window = (0, window_1.getWindow)();
49
- var style;
50
- if (window.getComputedStyle) {
51
- style = window.getComputedStyle(el, null);
52
- }
53
- if (!style && el.currentStyle) {
54
- style = el.currentStyle;
55
- }
56
- if (!style) {
57
- style = el.style;
58
- }
59
- return style;
60
- }
61
- exports.getComputedStyle = getComputedStyle;
62
- function getTranslate(el, axis) {
63
- if (axis === void 0) { axis = 'x'; }
64
- var window = (0, window_1.getWindow)();
65
- var matrix;
66
- var curTransform;
67
- var transformMatrix;
68
- var curStyle = getComputedStyle(el, null);
69
- if (window.WebKitCSSMatrix) {
70
- curTransform = curStyle.transform || curStyle.webkitTransform;
71
- if (curTransform.split(',').length > 6) {
72
- curTransform = curTransform
73
- .split(', ')
74
- .map(function (a) { return a.replace(',', '.'); })
75
- .join(', ');
76
- }
77
- // Some old versions of Webkit choke when 'none' is passed; pass
78
- // empty string instead in this case
79
- transformMatrix = new window.WebKitCSSMatrix(curTransform === 'none' ? '' : curTransform);
80
- }
81
- else {
82
- transformMatrix =
83
- curStyle.MozTransform ||
84
- curStyle.OTransform ||
85
- curStyle.MsTransform ||
86
- curStyle.msTransform ||
87
- curStyle.transform ||
88
- curStyle.getPropertyValue('transform').replace('translate(', 'matrix(1, 0, 0, 1,');
89
- matrix = transformMatrix.toString().split(',');
90
- }
91
- if (axis === 'x') {
92
- // Latest Chrome and webkits Fix
93
- if (window.WebKitCSSMatrix)
94
- curTransform = transformMatrix.m41;
95
- // Crazy IE10 Matrix
96
- else if (matrix.length === 16)
97
- curTransform = parseFloat(matrix[12]);
98
- // Normal Browsers
99
- else
100
- curTransform = parseFloat(matrix[4]);
101
- }
102
- if (axis === 'y') {
103
- // Latest Chrome and webkits Fix
104
- if (window.WebKitCSSMatrix)
105
- curTransform = transformMatrix.m42;
106
- // Crazy IE10 Matrix
107
- else if (matrix.length === 16)
108
- curTransform = parseFloat(matrix[13]);
109
- // Normal Browsers
110
- else
111
- curTransform = parseFloat(matrix[5]);
112
- }
113
- return curTransform || 0;
114
- }
115
- exports.getTranslate = getTranslate;
116
- function isObject(o) {
117
- return (typeof o === 'object' &&
118
- o !== null &&
119
- o.constructor &&
120
- Object.prototype.toString.call(o).slice(8, -1) === 'Object');
121
- }
122
- exports.isObject = isObject;
123
- function isNode(node) {
124
- // eslint-disable-next-line
125
- if (typeof window !== 'undefined' && typeof window.HTMLElement !== 'undefined') {
126
- return node instanceof HTMLElement;
127
- }
128
- return node && (node.nodeType === 1 || node.nodeType === 11);
129
- }
130
- function extend() {
131
- var args = [];
132
- for (var _i = 0; _i < arguments.length; _i++) {
133
- args[_i] = arguments[_i];
134
- }
135
- var to = Object(args[0]);
136
- var noExtend = ['__proto__', 'constructor', 'prototype'];
137
- for (var i = 1; i < args.length; i += 1) {
138
- var nextSource = args[i];
139
- if (nextSource !== undefined && nextSource !== null && !isNode(nextSource)) {
140
- var keysArray = Object.keys(Object(nextSource)).filter(function (key) { return noExtend.indexOf(key) < 0; });
141
- for (var nextIndex = 0, len = keysArray.length; nextIndex < len; nextIndex += 1) {
142
- var nextKey = keysArray[nextIndex];
143
- var desc = Object.getOwnPropertyDescriptor(nextSource, nextKey);
144
- if (desc !== undefined && desc.enumerable) {
145
- if (isObject(to[nextKey]) && isObject(nextSource[nextKey])) {
146
- if (nextSource[nextKey].__swiper__) {
147
- to[nextKey] = nextSource[nextKey];
148
- }
149
- else {
150
- extend(to[nextKey], nextSource[nextKey]);
151
- }
152
- }
153
- else if (!isObject(to[nextKey]) && isObject(nextSource[nextKey])) {
154
- to[nextKey] = {};
155
- if (nextSource[nextKey].__swiper__) {
156
- to[nextKey] = nextSource[nextKey];
157
- }
158
- else {
159
- extend(to[nextKey], nextSource[nextKey]);
160
- }
161
- }
162
- else {
163
- to[nextKey] = nextSource[nextKey];
164
- }
165
- }
166
- }
167
- }
168
- }
169
- return to;
170
- }
171
- exports.extend = extend;
172
- function setCSSProperty(el, varName, varValue) {
173
- el.style.setProperty(varName, varValue);
174
- }
175
- exports.setCSSProperty = setCSSProperty;
176
- function animateCSSModeScroll(_a) {
177
- var swiper = _a.swiper, targetPosition = _a.targetPosition, side = _a.side;
178
- var window = (0, window_1.getWindow)();
179
- var startPosition = -swiper.translate;
180
- var startTime = null;
181
- var time;
182
- var duration = swiper.params.speed;
183
- swiper.wrapperEl.style.scrollSnapType = 'none';
184
- window.cancelAnimationFrame(swiper.cssModeFrameID);
185
- var dir = targetPosition > startPosition ? 'next' : 'prev';
186
- var isOutOfBound = function (current, target) {
187
- return (dir === 'next' && current >= target) || (dir === 'prev' && current <= target);
188
- };
189
- var animate = function () {
190
- var _a;
191
- time = new Date().getTime();
192
- if (startTime === null) {
193
- startTime = time;
194
- }
195
- var progress = Math.max(Math.min((time - startTime) / duration, 1), 0);
196
- var easeProgress = 0.5 - Math.cos(progress * Math.PI) / 2;
197
- var currentPosition = startPosition + easeProgress * (targetPosition - startPosition);
198
- if (isOutOfBound(currentPosition, targetPosition)) {
199
- currentPosition = targetPosition;
200
- }
201
- swiper.wrapperEl.scrollTo((_a = {},
202
- _a[side] = currentPosition,
203
- _a));
204
- if (isOutOfBound(currentPosition, targetPosition)) {
205
- swiper.wrapperEl.style.overflow = 'hidden';
206
- swiper.wrapperEl.style.scrollSnapType = '';
207
- setTimeout(function () {
208
- var _a;
209
- swiper.wrapperEl.style.overflow = '';
210
- swiper.wrapperEl.scrollTo((_a = {},
211
- _a[side] = currentPosition,
212
- _a));
213
- });
214
- window.cancelAnimationFrame(swiper.cssModeFrameID);
215
- return;
216
- }
217
- swiper.cssModeFrameID = window.requestAnimationFrame(animate);
218
- };
219
- animate();
220
- }
221
- exports.animateCSSModeScroll = animateCSSModeScroll;
222
- function getSlideTransformEl(slideEl) {
223
- return (slideEl.querySelector('.swiper-slide-transform') ||
224
- (slideEl.shadowRoot && slideEl.shadowRoot.querySelector('.swiper-slide-transform')) ||
225
- slideEl);
226
- }
227
- exports.getSlideTransformEl = getSlideTransformEl;
228
- function findElementsInElements(elements, selector) {
229
- if (elements === void 0) { elements = []; }
230
- if (selector === void 0) { selector = ''; }
231
- var found = [];
232
- elements.forEach(function (el) {
233
- found.push.apply(found, el.querySelectorAll(selector));
234
- });
235
- return found;
236
- }
237
- exports.findElementsInElements = findElementsInElements;
238
- function elementChildren(element, selector) {
239
- if (selector === void 0) { selector = ''; }
240
- return __spreadArray([], element.children, true).filter(function (el) { return el.matches(selector); });
241
- }
242
- exports.elementChildren = elementChildren;
243
- function showWarning(text) {
244
- try {
245
- console.warn(text);
246
- return;
247
- }
248
- catch (err) {
249
- // err
250
- }
251
- }
252
- exports.showWarning = showWarning;
253
- function createElement(tag, classes) {
254
- var _a;
255
- if (classes === void 0) { classes = []; }
256
- var el = document.createElement(tag);
257
- (_a = el.classList).add.apply(_a, (Array.isArray(classes) ? classes : (0, classes_to_tokens_1.default)(classes)));
258
- return el;
259
- }
260
- exports.createElement = createElement;
261
- function elementOffset(el) {
262
- var window = (0, window_1.getWindow)();
263
- var document = (0, document_1.getDocument)();
264
- var box = el.getBoundingClientRect();
265
- var body = document.body;
266
- var clientTop = el.clientTop || body.clientTop || 0;
267
- var clientLeft = el.clientLeft || body.clientLeft || 0;
268
- var scrollTop = el === window ? window.scrollY : el.scrollTop;
269
- var scrollLeft = el === window ? window.scrollX : el.scrollLeft;
270
- return {
271
- top: box.top + scrollTop - clientTop,
272
- left: box.left + scrollLeft - clientLeft,
273
- };
274
- }
275
- exports.elementOffset = elementOffset;
276
- function elementPrevAll(el, selector) {
277
- var prevEls = [];
278
- while (el.previousElementSibling) {
279
- var prev = el.previousElementSibling; // eslint-disable-line
280
- if (selector) {
281
- if (prev.matches(selector))
282
- prevEls.push(prev);
283
- }
284
- else
285
- prevEls.push(prev);
286
- el = prev;
287
- }
288
- return prevEls;
289
- }
290
- exports.elementPrevAll = elementPrevAll;
291
- function elementNextAll(el, selector) {
292
- var nextEls = [];
293
- while (el.nextElementSibling) {
294
- var next = el.nextElementSibling; // eslint-disable-line
295
- if (selector) {
296
- if (next.matches(selector))
297
- nextEls.push(next);
298
- }
299
- else
300
- nextEls.push(next);
301
- el = next;
302
- }
303
- return nextEls;
304
- }
305
- exports.elementNextAll = elementNextAll;
306
- function elementStyle(el, prop) {
307
- var window = (0, window_1.getWindow)();
308
- return window.getComputedStyle(el, null).getPropertyValue(prop);
309
- }
310
- exports.elementStyle = elementStyle;
311
- function elementIndex(el) {
312
- var child = el;
313
- var i;
314
- if (child) {
315
- i = 0;
316
- // eslint-disable-next-line
317
- while ((child = child.previousSibling) !== null) {
318
- if (child.nodeType === 1)
319
- i += 1;
320
- }
321
- return i;
322
- }
323
- return undefined;
324
- }
325
- exports.elementIndex = elementIndex;
326
- function elementParents(el, selector) {
327
- var parents = []; // eslint-disable-line
328
- var parent = el.parentElement; // eslint-disable-line
329
- while (parent) {
330
- if (selector) {
331
- if (parent.matches(selector))
332
- parents.push(parent);
333
- }
334
- else {
335
- parents.push(parent);
336
- }
337
- parent = parent.parentElement;
338
- }
339
- return parents;
340
- }
341
- exports.elementParents = elementParents;
342
- function elementTransitionEnd(el, callback) {
343
- function fireCallBack(e) {
344
- if (e.target !== el)
345
- return;
346
- callback.call(el, e);
347
- el.removeEventListener('transitionend', fireCallBack);
348
- }
349
- if (callback) {
350
- el.addEventListener('transitionend', fireCallBack);
351
- }
352
- }
353
- exports.elementTransitionEnd = elementTransitionEnd;
354
- function elementOuterSize(el, size, includeMargins) {
355
- var window = (0, window_1.getWindow)();
356
- if (includeMargins) {
357
- return (el[size === 'width' ? 'offsetWidth' : 'offsetHeight'] +
358
- parseFloat(window
359
- .getComputedStyle(el, null)
360
- .getPropertyValue(size === 'width' ? 'margin-right' : 'margin-top')) +
361
- parseFloat(window
362
- .getComputedStyle(el, null)
363
- .getPropertyValue(size === 'width' ? 'margin-left' : 'margin-bottom')));
364
- }
365
- return el.offsetWidth;
366
- }
367
- exports.elementOuterSize = elementOuterSize;
368
- function makeElementsArray(el) {
369
- return (Array.isArray(el) ? el : [el]).filter(function (e) { return !!e; });
370
- }
371
- exports.makeElementsArray = makeElementsArray;
372
- //# sourceMappingURL=utils.js.map
@@ -1,65 +0,0 @@
1
- "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.ssrDocument = exports.getDocument = void 0;
7
- var extend_1 = __importDefault(require("./extend.js"));
8
- var ssrDocument = {
9
- body: {},
10
- addEventListener: function () { },
11
- removeEventListener: function () { },
12
- activeElement: {
13
- blur: function () { },
14
- nodeName: '',
15
- },
16
- querySelector: function () {
17
- return null;
18
- },
19
- querySelectorAll: function () {
20
- return [];
21
- },
22
- getElementById: function () {
23
- return null;
24
- },
25
- createEvent: function () {
26
- return {
27
- initEvent: function () { },
28
- };
29
- },
30
- createElement: function () {
31
- return {
32
- children: [],
33
- childNodes: [],
34
- style: {},
35
- setAttribute: function () { },
36
- getElementsByTagName: function () {
37
- return [];
38
- },
39
- };
40
- },
41
- createElementNS: function () {
42
- return {};
43
- },
44
- importNode: function () {
45
- return null;
46
- },
47
- location: {
48
- hash: '',
49
- host: '',
50
- hostname: '',
51
- href: '',
52
- origin: '',
53
- pathname: '',
54
- protocol: '',
55
- search: '',
56
- },
57
- };
58
- exports.ssrDocument = ssrDocument;
59
- function getDocument() {
60
- var doc = typeof document !== 'undefined' ? document : {};
61
- (0, extend_1.default)(doc, ssrDocument);
62
- return doc;
63
- }
64
- exports.getDocument = getDocument;
65
- //# sourceMappingURL=document.js.map
@@ -1,4 +0,0 @@
1
- import { getDocument, ssrDocument } from './document.js';
2
- import { getWindow, ssrWindow } from './window.js';
3
- import extend from './extend.js';
4
- export { getDocument, ssrDocument, getWindow, ssrWindow, extend };