@getflip/swirl-components-react 0.455.0 → 0.456.1-beta-20260305113737

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 (463) hide show
  1. package/dist/index.d.ts +1 -1
  2. package/dist/stencil-generated/components.d.ts +1622 -0
  3. package/dist/swirl-components-react.js +38085 -476
  4. package/dist/swirl-components-react.umd.cjs +65 -94
  5. package/package.json +2 -6
  6. package/dist/FileSaver.min-DISpcNDq.9430eab9.js +0 -79
  7. package/dist/bodyScrollLock.esm-B0kNlhKL.c7a66a82.js +0 -93
  8. package/dist/floating-ui.dom-CLsTbQHn.fe95e3a6.js +0 -988
  9. package/dist/index-D3UoejeY.7db8c51e.js +0 -7494
  10. package/dist/index-orsBiyT_.fc4357c3.js +0 -47
  11. package/dist/index.0e476e54.js +0 -4650
  12. package/dist/index.esm-DBTxpXCn.fccbd562.js +0 -187
  13. package/dist/media-query.service-CCYT6DU8.f0931fdc.js +0 -17
  14. package/dist/sortable.esm-CMrz6687.dac971cd.js +0 -1240
  15. package/dist/stencil-generated/index.d.ts +0 -474
  16. package/dist/stencil-generated/react-component-lib/createComponent.d.ts +0 -10
  17. package/dist/stencil-generated/react-component-lib/createOverlayComponent.d.ts +0 -21
  18. package/dist/stencil-generated/react-component-lib/index.d.ts +0 -2
  19. package/dist/stencil-generated/react-component-lib/interfaces.d.ts +0 -29
  20. package/dist/stencil-generated/react-component-lib/utils/attachProps.d.ts +0 -16
  21. package/dist/stencil-generated/react-component-lib/utils/case.d.ts +0 -2
  22. package/dist/stencil-generated/react-component-lib/utils/index.d.ts +0 -10
  23. package/dist/swirl-accordion-item.entry.5294ec10.js +0 -38
  24. package/dist/swirl-accordion.entry.47c30825.js +0 -39
  25. package/dist/swirl-action-list-item.entry.fb87b949.js +0 -38
  26. package/dist/swirl-action-list-section.entry.74577720.js +0 -15
  27. package/dist/swirl-action-list_8.entry.c0d11c64.js +0 -171
  28. package/dist/swirl-app-bar.entry.87fa040b.js +0 -49
  29. package/dist/swirl-app-icon.entry.a0d9b1db.js +0 -30
  30. package/dist/swirl-app-layout.entry.93e98b11.js +0 -205
  31. package/dist/swirl-autocomplete.entry.e6155023.js +0 -117
  32. package/dist/swirl-avatar-group.entry.5f7b3b48.js +0 -37
  33. package/dist/swirl-avatar.entry.e3ce764f.js +0 -72
  34. package/dist/swirl-badge.entry.9d51fc44.js +0 -19
  35. package/dist/swirl-banner.entry.962a7215.js +0 -51
  36. package/dist/swirl-box.entry.21137732.js +0 -109
  37. package/dist/swirl-button-group.entry.309a1839.js +0 -19
  38. package/dist/swirl-button.entry.62d32407.js +0 -61
  39. package/dist/swirl-card.entry.20063ee9.js +0 -49
  40. package/dist/swirl-carousel-slide.entry.61dbe677.js +0 -23
  41. package/dist/swirl-carousel.entry.03be4fae.js +0 -91
  42. package/dist/swirl-checkbox.entry.2c4507d9.js +0 -28
  43. package/dist/swirl-chip.entry.3638b41e.js +0 -42
  44. package/dist/swirl-color-input.entry.9607d054.js +0 -272
  45. package/dist/swirl-columns.entry.0c549e8d.js +0 -18
  46. package/dist/swirl-console-layout.entry.ad1777cb.js +0 -93
  47. package/dist/swirl-data-cell-stack.entry.a3b92efa.js +0 -25
  48. package/dist/swirl-data-cell.entry.6c01b738.js +0 -34
  49. package/dist/swirl-date-input.entry.c382bdb6.js +0 -146
  50. package/dist/swirl-date-picker_2.entry.496df017.js +0 -47
  51. package/dist/swirl-description-list-item.entry.1b164b37.js +0 -24
  52. package/dist/swirl-description-list.entry.e233393e.js +0 -15
  53. package/dist/swirl-dialog.entry.07392ba1.js +0 -69
  54. package/dist/swirl-emoji-clap.entry.f838b761.js +0 -17
  55. package/dist/swirl-emoji-happy.entry.fcd3c8a5.js +0 -17
  56. package/dist/swirl-emoji-idea.entry.c2548d7d.js +0 -17
  57. package/dist/swirl-emoji-love.entry.807091fc.js +0 -17
  58. package/dist/swirl-emoji-sad.entry.30a8e8b1.js +0 -17
  59. package/dist/swirl-emoji-thumbs-up.entry.f08ef4d2.js +0 -17
  60. package/dist/swirl-emoji.entry.65c1179c.js +0 -16
  61. package/dist/swirl-empty-state.entry.d9c4b201.js +0 -23
  62. package/dist/swirl-file-chip.entry.dcdaab9a.js +0 -59
  63. package/dist/swirl-file-uploader.entry.a6376f6e.js +0 -31
  64. package/dist/swirl-file-viewer-audio_7.entry.bbc65449.js +0 -18783
  65. package/dist/swirl-form-control.entry.c1a70ce4.js +0 -121
  66. package/dist/swirl-form-group.entry.6c84e80b.js +0 -17
  67. package/dist/swirl-heading.entry.e7529c35.js +0 -26
  68. package/dist/swirl-icon-add-moderator.entry.a6eb66cf.js +0 -19
  69. package/dist/swirl-icon-add-photo.entry.33f3e8d8.js +0 -19
  70. package/dist/swirl-icon-add-reaction.entry.d3f40fd8.js +0 -19
  71. package/dist/swirl-icon-admin-panel-settings.entry.a50b4a76.js +0 -19
  72. package/dist/swirl-icon-ai-filled.entry.18a663f4.js +0 -19
  73. package/dist/swirl-icon-ai.entry.2a32f232.js +0 -19
  74. package/dist/swirl-icon-apps.entry.3351a933.js +0 -19
  75. package/dist/swirl-icon-arrow-back_5.entry.ef93212c.js +0 -71
  76. package/dist/swirl-icon-arrow-downward_2.entry.316dda8e.js +0 -32
  77. package/dist/swirl-icon-arrow-left_3.entry.68811e2c.js +0 -45
  78. package/dist/swirl-icon-arrow-right-small.entry.55d7df92.js +0 -19
  79. package/dist/swirl-icon-aspect-ratio.entry.b1ebc68f.js +0 -19
  80. package/dist/swirl-icon-attachment_6.entry.8539855f.js +0 -84
  81. package/dist/swirl-icon-autorenew.entry.a5a354e4.js +0 -19
  82. package/dist/swirl-icon-bar-chart.entry.5a0bc789.js +0 -19
  83. package/dist/swirl-icon-beach-access-filled.entry.bec907f4.js +0 -19
  84. package/dist/swirl-icon-beach-access.entry.8939d641.js +0 -19
  85. package/dist/swirl-icon-block.entry.8972d4d5.js +0 -19
  86. package/dist/swirl-icon-bookmark-filled.entry.a3cfb778.js +0 -19
  87. package/dist/swirl-icon-bookmark.entry.aa250b81.js +0 -19
  88. package/dist/swirl-icon-calendar-add-on-filled.entry.e960eb71.js +0 -19
  89. package/dist/swirl-icon-calendar-respond.entry.85a4bb24.js +0 -19
  90. package/dist/swirl-icon-calendar-today.entry.6b4a4506.js +0 -19
  91. package/dist/swirl-icon-call-end.entry.817adcc6.js +0 -19
  92. package/dist/swirl-icon-call.entry.bcd6e165.js +0 -19
  93. package/dist/swirl-icon-cancel-filled.entry.a9f3b10c.js +0 -19
  94. package/dist/swirl-icon-cancel-outline.entry.9cc1c496.js +0 -19
  95. package/dist/swirl-icon-cancel_4.entry.ce87c7a7.js +0 -58
  96. package/dist/swirl-icon-chat-bubble.entry.3754f362.js +0 -19
  97. package/dist/swirl-icon-chats-filled.entry.4723be8d.js +0 -19
  98. package/dist/swirl-icon-chats.entry.c59206b4.js +0 -19
  99. package/dist/swirl-icon-check-circle-filled.entry.0472d6e8.js +0 -19
  100. package/dist/swirl-icon-check-circle_2.entry.44733a9c.js +0 -32
  101. package/dist/swirl-icon-check-small_2.entry.fb9fdf9b.js +0 -66
  102. package/dist/swirl-icon-check-strong_2.entry.7bd65267.js +0 -32
  103. package/dist/swirl-icon-check.entry.d29bfff8.js +0 -19
  104. package/dist/swirl-icon-checkbox-filled.entry.4c9bdf21.js +0 -19
  105. package/dist/swirl-icon-chevron-left.entry.4eb1a080.js +0 -19
  106. package/dist/swirl-icon-chevron-right.entry.bef6e257.js +0 -19
  107. package/dist/swirl-icon-close-fullscreen.entry.424b0b11.js +0 -19
  108. package/dist/swirl-icon-close-small.entry.c5eafcd0.js +0 -19
  109. package/dist/swirl-icon-close.entry.7e97e55e.js +0 -19
  110. package/dist/swirl-icon-cloud-upload.entry.c4e3629f.js +0 -19
  111. package/dist/swirl-icon-column.entry.c0d502a3.js +0 -19
  112. package/dist/swirl-icon-comment.entry.9f1eedc8.js +0 -19
  113. package/dist/swirl-icon-contrast.entry.44c8cef1.js +0 -19
  114. package/dist/swirl-icon-copy.entry.bd1920a6.js +0 -19
  115. package/dist/swirl-icon-crop.entry.5cde943f.js +0 -19
  116. package/dist/swirl-icon-dark-mode.entry.db44f076.js +0 -19
  117. package/dist/swirl-icon-date-range.entry.af6a7aa7.js +0 -19
  118. package/dist/swirl-icon-delete.entry.596f4155.js +0 -19
  119. package/dist/swirl-icon-deployed-code.entry.c34ae231.js +0 -19
  120. package/dist/swirl-icon-description.entry.3c3fd04e.js +0 -19
  121. package/dist/swirl-icon-desktop.entry.a1d8fc60.js +0 -19
  122. package/dist/swirl-icon-directory-filled.entry.bc829eb3.js +0 -19
  123. package/dist/swirl-icon-directory.entry.16da61b1.js +0 -19
  124. package/dist/swirl-icon-discover.entry.fec9f1ca.js +0 -19
  125. package/dist/swirl-icon-dock-left.entry.6fe8d114.js +0 -19
  126. package/dist/swirl-icon-door-open.entry.cf7fbccb.js +0 -19
  127. package/dist/swirl-icon-dot.entry.29145055.js +0 -19
  128. package/dist/swirl-icon-double-arrow-right.entry.b815a94e.js +0 -19
  129. package/dist/swirl-icon-edit-note.entry.56e8dede.js +0 -19
  130. package/dist/swirl-icon-edit.entry.af16d49b.js +0 -19
  131. package/dist/swirl-icon-emoji-mood.entry.69180e36.js +0 -19
  132. package/dist/swirl-icon-emoji-satisfied.entry.766c5b66.js +0 -19
  133. package/dist/swirl-icon-emoji-symbols.entry.f614e8e9.js +0 -19
  134. package/dist/swirl-icon-error_3.entry.758289fb.js +0 -59
  135. package/dist/swirl-icon-expand-more.entry.154fc51a.js +0 -19
  136. package/dist/swirl-icon-experiment.entry.611e9595.js +0 -19
  137. package/dist/swirl-icon-file.entry.9d4bf48f.js +0 -19
  138. package/dist/swirl-icon-filter.entry.b67cbb25.js +0 -19
  139. package/dist/swirl-icon-folder-shared.entry.9407c286.js +0 -19
  140. package/dist/swirl-icon-format-h-one.entry.7302740f.js +0 -19
  141. package/dist/swirl-icon-format-list-bulleted.entry.55513e91.js +0 -19
  142. package/dist/swirl-icon-forward.entry.ded248ed.js +0 -19
  143. package/dist/swirl-icon-gif.entry.9b64fdbc.js +0 -19
  144. package/dist/swirl-icon-group-add.entry.7c6f3813.js +0 -19
  145. package/dist/swirl-icon-group-assign.entry.b17b4bc2.js +0 -19
  146. package/dist/swirl-icon-groups-filled.entry.3595cac3.js +0 -19
  147. package/dist/swirl-icon-groups.entry.e85a7a06.js +0 -19
  148. package/dist/swirl-icon-hamburger-menu.entry.4c326dcb.js +0 -19
  149. package/dist/swirl-icon-health-and-safety.entry.ce06d207.js +0 -19
  150. package/dist/swirl-icon-help-filled.entry.1de41152.js +0 -19
  151. package/dist/swirl-icon-help.entry.e78bf0c6.js +0 -19
  152. package/dist/swirl-icon-highlight.entry.cd0e292d.js +0 -19
  153. package/dist/swirl-icon-history.entry.2b4ad63b.js +0 -19
  154. package/dist/swirl-icon-home-filled.entry.5e2f6877.js +0 -19
  155. package/dist/swirl-icon-home.entry.ad10de0b.js +0 -19
  156. package/dist/swirl-icon-hr-resting.entry.e7735e58.js +0 -19
  157. package/dist/swirl-icon-improve-text.entry.e04ffeb9.js +0 -19
  158. package/dist/swirl-icon-info.entry.19a39662.js +0 -19
  159. package/dist/swirl-icon-insert-below.entry.c4cb0997.js +0 -19
  160. package/dist/swirl-icon-insert-chart.entry.0d696cd3.js +0 -19
  161. package/dist/swirl-icon-insert-on-top.entry.cd9d503f.js +0 -19
  162. package/dist/swirl-icon-inventory-off.entry.bcfc8043.js +0 -19
  163. package/dist/swirl-icon-inventory.entry.f5885a0c.js +0 -19
  164. package/dist/swirl-icon-iphone.entry.7c5ef281.js +0 -19
  165. package/dist/swirl-icon-key.entry.4482a2a7.js +0 -19
  166. package/dist/swirl-icon-keyboard-hide.entry.5c72f4d8.js +0 -19
  167. package/dist/swirl-icon-keyboard.entry.49a8a687.js +0 -19
  168. package/dist/swirl-icon-language.entry.4bdffbb5.js +0 -19
  169. package/dist/swirl-icon-light-mode.entry.cb097cee.js +0 -19
  170. package/dist/swirl-icon-like.entry.d0ab0715.js +0 -19
  171. package/dist/swirl-icon-link.entry.b8776d9b.js +0 -19
  172. package/dist/swirl-icon-live.entry.eb7d82ee.js +0 -19
  173. package/dist/swirl-icon-load.entry.5e6b7d42.js +0 -19
  174. package/dist/swirl-icon-location-on.entry.7df111ef.js +0 -19
  175. package/dist/swirl-icon-lock-open.entry.bd0446b7.js +0 -19
  176. package/dist/swirl-icon-lock-person.entry.c9cb98bc.js +0 -19
  177. package/dist/swirl-icon-lock.entry.f5d33ea8.js +0 -19
  178. package/dist/swirl-icon-login.entry.92a88721.js +0 -19
  179. package/dist/swirl-icon-logout.entry.17fa9c42.js +0 -19
  180. package/dist/swirl-icon-long-text.entry.2b009140.js +0 -19
  181. package/dist/swirl-icon-mail.entry.be2727f6.js +0 -19
  182. package/dist/swirl-icon-manage-accounts.entry.f5c4a64e.js +0 -19
  183. package/dist/swirl-icon-mark-chat-read.entry.63ca09f5.js +0 -19
  184. package/dist/swirl-icon-mark-chat-unread.entry.c397d062.js +0 -19
  185. package/dist/swirl-icon-mention.entry.f8ea0463.js +0 -19
  186. package/dist/swirl-icon-menu-book-filled.entry.c50384d3.js +0 -19
  187. package/dist/swirl-icon-menu-filled.entry.b4c5317c.js +0 -19
  188. package/dist/swirl-icon-menu.entry.4fed240a.js +0 -19
  189. package/dist/swirl-icon-message.entry.4a7df5a9.js +0 -19
  190. package/dist/swirl-icon-mic-off.entry.2698915b.js +0 -19
  191. package/dist/swirl-icon-mic.entry.1e0e0c18.js +0 -19
  192. package/dist/swirl-icon-more-horizontal.entry.8f60b2fe.js +0 -19
  193. package/dist/swirl-icon-more-vertikal.entry.ad00eb97.js +0 -19
  194. package/dist/swirl-icon-news-filled.entry.63390861.js +0 -19
  195. package/dist/swirl-icon-news-off.entry.d78a0922.js +0 -19
  196. package/dist/swirl-icon-news.entry.a76eeca0.js +0 -19
  197. package/dist/swirl-icon-next-plan.entry.b3e88585.js +0 -19
  198. package/dist/swirl-icon-note-stack-filled.entry.857233a4.js +0 -19
  199. package/dist/swirl-icon-note-stack.entry.5f2a0eb5.js +0 -19
  200. package/dist/swirl-icon-notifications-active.entry.bfd5a05d.js +0 -19
  201. package/dist/swirl-icon-notifications-off.entry.a7333607.js +0 -19
  202. package/dist/swirl-icon-notifications.entry.f2d1a91e.js +0 -19
  203. package/dist/swirl-icon-open-in-full.entry.5fbfea94.js +0 -19
  204. package/dist/swirl-icon-open-in-new.entry.83c9889c.js +0 -19
  205. package/dist/swirl-icon-patient-list.entry.195bf2c2.js +0 -19
  206. package/dist/swirl-icon-pause-circle.entry.3775a578.js +0 -19
  207. package/dist/swirl-icon-pause.entry.0d64236e.js +0 -19
  208. package/dist/swirl-icon-people-alt.entry.edbf06c5.js +0 -19
  209. package/dist/swirl-icon-person-check.entry.f21b2f75.js +0 -19
  210. package/dist/swirl-icon-person-off.entry.747e3831.js +0 -19
  211. package/dist/swirl-icon-person.entry.2d241312.js +0 -19
  212. package/dist/swirl-icon-phone.entry.69f19d1d.js +0 -19
  213. package/dist/swirl-icon-photo-camera.entry.9f43d86c.js +0 -19
  214. package/dist/swirl-icon-picture-in-picture.entry.a571048d.js +0 -19
  215. package/dist/swirl-icon-pin-off.entry.95940a3a.js +0 -19
  216. package/dist/swirl-icon-pin.entry.d9f2a744.js +0 -19
  217. package/dist/swirl-icon-place.entry.27872151.js +0 -19
  218. package/dist/swirl-icon-play-arrow.entry.9aa8a6ca.js +0 -19
  219. package/dist/swirl-icon-poll.entry.8d7f3f1f.js +0 -19
  220. package/dist/swirl-icon-post-approval.entry.062cad3a.js +0 -19
  221. package/dist/swirl-icon-present.entry.9127c31b.js +0 -19
  222. package/dist/swirl-icon-preview.entry.e36b1135.js +0 -19
  223. package/dist/swirl-icon-print.entry.a612b5db.js +0 -19
  224. package/dist/swirl-icon-public-off.entry.9096f6dd.js +0 -19
  225. package/dist/swirl-icon-public.entry.a96fcd7c.js +0 -19
  226. package/dist/swirl-icon-published-with-changes.entry.8d1322c1.js +0 -19
  227. package/dist/swirl-icon-ratio-four-to-three.entry.8e6c968d.js +0 -19
  228. package/dist/swirl-icon-ratio-freeform.entry.ec6bc1b2.js +0 -19
  229. package/dist/swirl-icon-ratio-sixteen-to-nine.entry.c971d434.js +0 -19
  230. package/dist/swirl-icon-ratio-square.entry.07727efc.js +0 -19
  231. package/dist/swirl-icon-ratio-three-to-four.entry.c4d2bc84.js +0 -19
  232. package/dist/swirl-icon-ratio-three-to-two.entry.d72a4af2.js +0 -19
  233. package/dist/swirl-icon-recieved.entry.9e2a992e.js +0 -19
  234. package/dist/swirl-icon-refresh.entry.3894e67e.js +0 -19
  235. package/dist/swirl-icon-remove-circle.entry.ff7d513a.js +0 -19
  236. package/dist/swirl-icon-remove-moderator.entry.9c54da6a.js +0 -19
  237. package/dist/swirl-icon-reply.entry.0bb8e50a.js +0 -19
  238. package/dist/swirl-icon-report.entry.d65c32fb.js +0 -19
  239. package/dist/swirl-icon-roadmap.entry.175d8873.js +0 -19
  240. package/dist/swirl-icon-rotate-left.entry.3d4cf93b.js +0 -19
  241. package/dist/swirl-icon-rotate-right.entry.a492e49b.js +0 -19
  242. package/dist/swirl-icon-screenshare-off.entry.f38cbce2.js +0 -19
  243. package/dist/swirl-icon-screenshare.entry.87aa7b2c.js +0 -19
  244. package/dist/swirl-icon-search-strong.entry.90f25ac2.js +0 -19
  245. package/dist/swirl-icon-search.entry.2a77d0ff.js +0 -19
  246. package/dist/swirl-icon-section.entry.9787ce40.js +0 -19
  247. package/dist/swirl-icon-secure.entry.1f74f830.js +0 -19
  248. package/dist/swirl-icon-sell.entry.cbb75022.js +0 -19
  249. package/dist/swirl-icon-send.entry.2d2f0d4c.js +0 -19
  250. package/dist/swirl-icon-settings.entry.24711d03.js +0 -19
  251. package/dist/swirl-icon-short-text.entry.4b69bace.js +0 -19
  252. package/dist/swirl-icon-simplify.entry.828ad046.js +0 -19
  253. package/dist/swirl-icon-spellcheck.entry.d26be768.js +0 -19
  254. package/dist/swirl-icon-stars.entry.c8c1a7c4.js +0 -19
  255. package/dist/swirl-icon-sticky-note.entry.0819898b.js +0 -19
  256. package/dist/swirl-icon-stop-circle.entry.51af07f2.js +0 -19
  257. package/dist/swirl-icon-stop.entry.97ddf8d6.js +0 -19
  258. package/dist/swirl-icon-sunny.entry.e2eb87b5.js +0 -19
  259. package/dist/swirl-icon-sync.entry.002b286b.js +0 -19
  260. package/dist/swirl-icon-tasks-filled.entry.00252ff0.js +0 -19
  261. package/dist/swirl-icon-tasks.entry.5aa8b016.js +0 -19
  262. package/dist/swirl-icon-terminal.entry.b238a607.js +0 -19
  263. package/dist/swirl-icon-time-filled.entry.dda53035.js +0 -19
  264. package/dist/swirl-icon-time.entry.48e8b8ed.js +0 -19
  265. package/dist/swirl-icon-today-filled.entry.b0afd102.js +0 -19
  266. package/dist/swirl-icon-translate.entry.34a98fb6.js +0 -19
  267. package/dist/swirl-icon-tree-structure.entry.23400f0d.js +0 -19
  268. package/dist/swirl-icon-undo.entry.5e0a8ee2.js +0 -19
  269. package/dist/swirl-icon-unlock-person.entry.f7787839.js +0 -19
  270. package/dist/swirl-icon-upload.entry.25e7b320.js +0 -19
  271. package/dist/swirl-icon-user-add.entry.a15f9066.js +0 -19
  272. package/dist/swirl-icon-user-assign.entry.376af42f.js +0 -19
  273. package/dist/swirl-icon-video-camera-off.entry.036e5df5.js +0 -19
  274. package/dist/swirl-icon-video-camera.entry.90d4bf7b.js +0 -19
  275. package/dist/swirl-icon-video-library.entry.c2f7aa19.js +0 -19
  276. package/dist/swirl-icon-view-agenda.entry.6c27f69e.js +0 -19
  277. package/dist/swirl-icon-voice.entry.5050a886.js +0 -19
  278. package/dist/swirl-icon-volume-up.entry.65a78ff4.js +0 -19
  279. package/dist/swirl-icon-web-asset-off.entry.0cb673d0.js +0 -19
  280. package/dist/swirl-icon-web-asset.entry.2a71a44c.js +0 -19
  281. package/dist/swirl-icon-work.entry.4a2083a8.js +0 -19
  282. package/dist/swirl-icon.entry.4d7af47f.js +0 -17
  283. package/dist/swirl-image-grid-item.entry.5ed62cbf.js +0 -93
  284. package/dist/swirl-image-grid.entry.27f29eca.js +0 -51
  285. package/dist/swirl-inline-notification.entry.c06299d7.js +0 -17
  286. package/dist/swirl-inline-status.entry.5cf0ff4b.js +0 -37
  287. package/dist/swirl-lightbox.entry.e5c29ea6.js +0 -152
  288. package/dist/swirl-link.entry.eb779f19.js +0 -17
  289. package/dist/swirl-list.entry.a378b5b6.js +0 -18
  290. package/dist/swirl-menu-item.entry.b6a45766.js +0 -86
  291. package/dist/swirl-menu.entry.4b858c00.js +0 -184
  292. package/dist/swirl-modal-shell.entry.ced927de.js +0 -45
  293. package/dist/swirl-modal.entry.964f2c0a.js +0 -177
  294. package/dist/swirl-option-list-section.entry.91145d26.js +0 -15
  295. package/dist/swirl-option-list_2.entry.29bd23e2.js +0 -293
  296. package/dist/swirl-pagination.entry.b43e8aae.js +0 -38
  297. package/dist/swirl-pdf-reader.entry.f4bf6ae6.js +0 -120
  298. package/dist/swirl-popover_2.entry.835664ad.js +0 -263
  299. package/dist/swirl-progress-indicator.entry.46e96df4.js +0 -17
  300. package/dist/swirl-radio-group.entry.be194877.js +0 -47
  301. package/dist/swirl-radio.entry.29ceebbb.js +0 -27
  302. package/dist/swirl-resource-list-file-item.entry.1821e790.js +0 -39
  303. package/dist/swirl-resource-list-item.entry.fad75ff5.js +0 -100
  304. package/dist/swirl-resource-list-section.entry.6992857e.js +0 -19
  305. package/dist/swirl-resource-list.entry.44618d0c.js +0 -158
  306. package/dist/swirl-search.entry.a4881f83.js +0 -51
  307. package/dist/swirl-select.entry.34e60f6f.js +0 -94
  308. package/dist/swirl-separator.entry.28612130.js +0 -29
  309. package/dist/swirl-shell-layout.entry.cd92e2de.js +0 -686
  310. package/dist/swirl-shell-navigation-item.entry.f4ee0081.js +0 -46
  311. package/dist/swirl-skeleton-box.entry.71f34516.js +0 -24
  312. package/dist/swirl-skeleton-text.entry.91dcab8a.js +0 -17
  313. package/dist/swirl-stack.entry.08dc85a8.js +0 -21
  314. package/dist/swirl-status-indicator.entry.d02c496a.js +0 -17
  315. package/dist/swirl-switch.entry.272c4ba2.js +0 -30
  316. package/dist/swirl-symbol-ac-unit.entry.86885c95.js +0 -17
  317. package/dist/swirl-symbol-account-circle.entry.eca73ba0.js +0 -17
  318. package/dist/swirl-symbol-alternate-email.entry.4c96c3df.js +0 -17
  319. package/dist/swirl-symbol-android.entry.3aabb332.js +0 -17
  320. package/dist/swirl-symbol-announcement.entry.53fbd841.js +0 -17
  321. package/dist/swirl-symbol-autorenew.entry.54fbabd2.js +0 -17
  322. package/dist/swirl-symbol-backup.entry.02adf0fe.js +0 -17
  323. package/dist/swirl-symbol-badge.entry.e7c9ecd9.js +0 -17
  324. package/dist/swirl-symbol-barcode-reader.entry.d53d8c07.js +0 -17
  325. package/dist/swirl-symbol-barcode-scanner.entry.5a6e9368.js +0 -17
  326. package/dist/swirl-symbol-battery-horiz.entry.6ce1afd7.js +0 -17
  327. package/dist/swirl-symbol-beach-access.entry.c87ddba7.js +0 -17
  328. package/dist/swirl-symbol-bolt.entry.0b417bc7.js +0 -17
  329. package/dist/swirl-symbol-bookmark.entry.c76e607d.js +0 -17
  330. package/dist/swirl-symbol-calendar.entry.566d6f9a.js +0 -17
  331. package/dist/swirl-symbol-campaign.entry.6af98f4f.js +0 -17
  332. package/dist/swirl-symbol-cards-star.entry.8aadfe8a.js +0 -17
  333. package/dist/swirl-symbol-cloud.entry.036cf708.js +0 -17
  334. package/dist/swirl-symbol-construction.entry.182c641e.js +0 -17
  335. package/dist/swirl-symbol-contacts.entry.584cf55d.js +0 -17
  336. package/dist/swirl-symbol-coronavirus.entry.f78cd123.js +0 -17
  337. package/dist/swirl-symbol-design-services.entry.2ca9436d.js +0 -17
  338. package/dist/swirl-symbol-desktop-windows.entry.ef6ca405.js +0 -17
  339. package/dist/swirl-symbol-directions-car-filled.entry.c933f535.js +0 -17
  340. package/dist/swirl-symbol-diversity.entry.7ebd590f.js +0 -17
  341. package/dist/swirl-symbol-draw.entry.5abb087e.js +0 -17
  342. package/dist/swirl-symbol-edit-calendar.entry.9f50df28.js +0 -17
  343. package/dist/swirl-symbol-email.entry.3b718c7a.js +0 -17
  344. package/dist/swirl-symbol-emergency.entry.c7143d75.js +0 -17
  345. package/dist/swirl-symbol-emoji-food-beverage.entry.e2d5fa89.js +0 -17
  346. package/dist/swirl-symbol-engineering.entry.12a4e5e0.js +0 -17
  347. package/dist/swirl-symbol-event-menu.entry.d828df39.js +0 -17
  348. package/dist/swirl-symbol-explore.entry.b549aa09.js +0 -17
  349. package/dist/swirl-symbol-extension.entry.01844a02.js +0 -17
  350. package/dist/swirl-symbol-facebook.entry.e075862f.js +0 -17
  351. package/dist/swirl-symbol-favorite.entry.7236e135.js +0 -17
  352. package/dist/swirl-symbol-fitness-center.entry.bb46abd9.js +0 -17
  353. package/dist/swirl-symbol-flag.entry.e158aeed.js +0 -17
  354. package/dist/swirl-symbol-flight.entry.40154cb1.js +0 -17
  355. package/dist/swirl-symbol-folder.entry.9566d75f.js +0 -17
  356. package/dist/swirl-symbol-globe.entry.4b67273f.js +0 -17
  357. package/dist/swirl-symbol-groups.entry.c335580b.js +0 -17
  358. package/dist/swirl-symbol-healing.entry.9f68504a.js +0 -17
  359. package/dist/swirl-symbol-health-and-safety.entry.9572624e.js +0 -17
  360. package/dist/swirl-symbol-help.entry.877353cb.js +0 -17
  361. package/dist/swirl-symbol-home-repair-service.entry.c65ccfb8.js +0 -17
  362. package/dist/swirl-symbol-home-storage.entry.27430dea.js +0 -17
  363. package/dist/swirl-symbol-id-card.entry.cb815b99.js +0 -17
  364. package/dist/swirl-symbol-image.entry.34620d05.js +0 -17
  365. package/dist/swirl-symbol-info-menu.entry.fc23e1cf.js +0 -17
  366. package/dist/swirl-symbol-instagram.entry.5452d0d7.js +0 -17
  367. package/dist/swirl-symbol-inventory-2.entry.171a2fb6.js +0 -17
  368. package/dist/swirl-symbol-inventory.entry.45407c7c.js +0 -17
  369. package/dist/swirl-symbol-ios.entry.ef2294e0.js +0 -17
  370. package/dist/swirl-symbol-key.entry.507c2c12.js +0 -17
  371. package/dist/swirl-symbol-language.entry.5d97cfab.js +0 -17
  372. package/dist/swirl-symbol-leaderboard.entry.8077c113.js +0 -17
  373. package/dist/swirl-symbol-lightbulb.entry.7827319e.js +0 -17
  374. package/dist/swirl-symbol-linkedin.entry.e0483e9e.js +0 -17
  375. package/dist/swirl-symbol-local-shipping.entry.37a81e80.js +0 -17
  376. package/dist/swirl-symbol-location-on.entry.c1c5f679.js +0 -17
  377. package/dist/swirl-symbol-loyalty.entry.69a23703.js +0 -17
  378. package/dist/swirl-symbol-map.entry.9f37e634.js +0 -17
  379. package/dist/swirl-symbol-maps-home-work.entry.ed2519d5.js +0 -17
  380. package/dist/swirl-symbol-menu-book.entry.cabbb0c0.js +0 -17
  381. package/dist/swirl-symbol-mop.entry.2fc183db.js +0 -17
  382. package/dist/swirl-symbol-nest-eco-leaf.entry.734466d4.js +0 -17
  383. package/dist/swirl-symbol-notifications.entry.a064cccc.js +0 -17
  384. package/dist/swirl-symbol-open-in-new.entry.b737b6f0.js +0 -17
  385. package/dist/swirl-symbol-orders.entry.b6c863e4.js +0 -17
  386. package/dist/swirl-symbol-package.entry.b7d05046.js +0 -17
  387. package/dist/swirl-symbol-palette.entry.e2187911.js +0 -17
  388. package/dist/swirl-symbol-partly-cloudy-day.entry.f8bab71a.js +0 -17
  389. package/dist/swirl-symbol-pedal-bike.entry.6eefc01f.js +0 -17
  390. package/dist/swirl-symbol-percent-discount.entry.66e324e0.js +0 -17
  391. package/dist/swirl-symbol-pets.entry.47bfce8e.js +0 -17
  392. package/dist/swirl-symbol-pinterest.entry.2b6a0588.js +0 -17
  393. package/dist/swirl-symbol-point-of-sale.entry.07f8df08.js +0 -17
  394. package/dist/swirl-symbol-policy.entry.9ef761f4.js +0 -17
  395. package/dist/swirl-symbol-precision-manufacturing.entry.8d254e62.js +0 -17
  396. package/dist/swirl-symbol-print.entry.b7b367c5.js +0 -17
  397. package/dist/swirl-symbol-push-pin.entry.d3aa7b84.js +0 -17
  398. package/dist/swirl-symbol-recycling.entry.7a6a0dc0.js +0 -17
  399. package/dist/swirl-symbol-redeem.entry.944bd5ac.js +0 -17
  400. package/dist/swirl-symbol-report-problem.entry.3d2933eb.js +0 -17
  401. package/dist/swirl-symbol-restaurant.entry.05fd0e88.js +0 -17
  402. package/dist/swirl-symbol-roadmap.entry.549abf68.js +0 -17
  403. package/dist/swirl-symbol-rocket-launch.entry.7941aa11.js +0 -17
  404. package/dist/swirl-symbol-room.entry.88a541a0.js +0 -17
  405. package/dist/swirl-symbol-savings.entry.a26509c9.js +0 -17
  406. package/dist/swirl-symbol-school.entry.3872b7c9.js +0 -17
  407. package/dist/swirl-symbol-sell.entry.113b39e8.js +0 -17
  408. package/dist/swirl-symbol-settings-voice.entry.155da2eb.js +0 -17
  409. package/dist/swirl-symbol-shopping-bag.entry.efb9d666.js +0 -17
  410. package/dist/swirl-symbol-shopping-cart.entry.ff0fe070.js +0 -17
  411. package/dist/swirl-symbol-smartphone.entry.4225fef2.js +0 -17
  412. package/dist/swirl-symbol-spa.entry.eab538cf.js +0 -17
  413. package/dist/swirl-symbol-sports-soccer.entry.a9d1c296.js +0 -17
  414. package/dist/swirl-symbol-star.entry.8c196964.js +0 -17
  415. package/dist/swirl-symbol-supervisor-account.entry.775d81b0.js +0 -17
  416. package/dist/swirl-symbol-task.entry.d8a61874.js +0 -17
  417. package/dist/swirl-symbol-tasks.entry.69ee247f.js +0 -17
  418. package/dist/swirl-symbol-thumbs-up-down.entry.6b6ef4ed.js +0 -17
  419. package/dist/swirl-symbol-timer.entry.43abd0c8.js +0 -17
  420. package/dist/swirl-symbol-tools-power-drill.entry.ca20534e.js +0 -17
  421. package/dist/swirl-symbol-train.entry.171d2856.js +0 -17
  422. package/dist/swirl-symbol-trophy.entry.4102de18.js +0 -17
  423. package/dist/swirl-symbol-twitter.entry.c3d5c43f.js +0 -17
  424. package/dist/swirl-symbol-video.entry.73f73784.js +0 -17
  425. package/dist/swirl-symbol-warehouse.entry.ed728eb9.js +0 -17
  426. package/dist/swirl-symbol-water-drop.entry.04d41843.js +0 -17
  427. package/dist/swirl-symbol-wb-sunny.entry.4b7f1f86.js +0 -17
  428. package/dist/swirl-symbol-wechat.entry.8ac429cf.js +0 -17
  429. package/dist/swirl-symbol-weibo.entry.740e17b8.js +0 -17
  430. package/dist/swirl-symbol-wifi.entry.5a0e5f59.js +0 -17
  431. package/dist/swirl-symbol-work.entry.83dca9b3.js +0 -17
  432. package/dist/swirl-symbol-xing.entry.b1702954.js +0 -17
  433. package/dist/swirl-symbol-youtube.entry.ee5279c9.js +0 -17
  434. package/dist/swirl-symbol.entry.7c26926c.js +0 -16
  435. package/dist/swirl-tab-bar.entry.0914bfe1.js +0 -65
  436. package/dist/swirl-tab.entry.4397d9e0.js +0 -17
  437. package/dist/swirl-table-cell.entry.13bca043.js +0 -15
  438. package/dist/swirl-table-column.entry.9290611f.js +0 -34
  439. package/dist/swirl-table-row-group.entry.b013be17.js +0 -35
  440. package/dist/swirl-table-row.entry.dad94401.js +0 -27
  441. package/dist/swirl-table.entry.fa1c44d2.js +0 -335
  442. package/dist/swirl-tabs.entry.491b0177.js +0 -63
  443. package/dist/swirl-text-input.entry.b6aea7d3.js +0 -93
  444. package/dist/swirl-text.entry.136adf15.js +0 -299
  445. package/dist/swirl-theme-provider.entry.0a843651.js +0 -96
  446. package/dist/swirl-thumbnail.entry.91acb04a.js +0 -20
  447. package/dist/swirl-time-input.entry.e6d3a3e6.js +0 -140
  448. package/dist/swirl-toast-provider.entry.7a0f91db.js +0 -81
  449. package/dist/swirl-toast.entry.f278b013.js +0 -55
  450. package/dist/swirl-toggle-button.entry.aada18b2.js +0 -21
  451. package/dist/swirl-toggle-group.entry.be636341.js +0 -62
  452. package/dist/swirl-toolbar.entry.4e5bed6a.js +0 -56
  453. package/dist/swirl-tooltip.entry.0a26b7d4.js +0 -114
  454. package/dist/swirl-tree-navigation-item.entry.dd705315.js +0 -73
  455. package/dist/swirl-tree-navigation.entry.1a95edea.js +0 -15
  456. package/dist/swirl-tree-view-item.entry.b143d3fd.js +0 -203
  457. package/dist/swirl-tree-view.config-BkSXzL50.94f4a648.js +0 -24
  458. package/dist/swirl-tree-view.entry.983ad325.js +0 -222
  459. package/dist/swirl-video-thumbnail.entry.b8216f3d.js +0 -15
  460. package/dist/swirl-visually-hidden.entry.d20b75ef.js +0 -15
  461. package/dist/utils-CCck-DTo.e4e43b6a.js +0 -119
  462. package/dist/v4-DD3477fe.2624487e.js +0 -27
  463. package/dist/wc-datepicker.entry.3cbe56b3.js +0 -380
@@ -1,335 +0,0 @@
1
- import { r as x, c as R, h as a, H as _, g as k } from "./index.0e476e54.js";
2
- import { c as O, g as L } from "./index-orsBiyT_.fc4357c3.js";
3
- import { S as M } from "./sortable.esm-CMrz6687.dac971cd.js";
4
- import { d as A, i as f, q as T } from "./utils-CCck-DTo.e4e43b6a.js";
5
- import "react";
6
- import "react-dom";
7
- var g, v;
8
- function E() {
9
- if (v)
10
- return g;
11
- v = 1, g = function(s) {
12
- var o = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 0, i = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, l = void 0, n = void 0, u = void 0, d = [];
13
- return function() {
14
- var y = e(o), w = new Date().getTime(), D = !l || w - l > y;
15
- l = w;
16
- for (var m = arguments.length, c = Array(m), h = 0; h < m; h++)
17
- c[h] = arguments[h];
18
- if (D && i.leading)
19
- return i.accumulate ? Promise.resolve(s.call(this, [c])).then(function(p) {
20
- return p[0];
21
- }) : Promise.resolve(s.call.apply(s, [this].concat(c)));
22
- if (n ? clearTimeout(u) : n = t(), d.push(c), u = setTimeout(C.bind(this), y), i.accumulate) {
23
- var S = d.length - 1;
24
- return n.promise.then(function(p) {
25
- return p[S];
26
- });
27
- }
28
- return n.promise;
29
- };
30
- function C() {
31
- var b = n;
32
- clearTimeout(u), Promise.resolve(i.accumulate ? s.call(this, d) : s.apply(this, d[d.length - 1])).then(b.resolve, b.reject), d = [], n = null;
33
- }
34
- };
35
- function e(r) {
36
- return typeof r == "function" ? r() : r;
37
- }
38
- function t() {
39
- var r = {};
40
- return r.promise = new Promise(function(s, o) {
41
- r.resolve = s, r.reject = o;
42
- }), r;
43
- }
44
- return g;
45
- }
46
- var q = E(), I = /* @__PURE__ */ L(q);
47
- const K = () => ".sc-swirl-table-h{--swirl-table-shadow-rgba:rgba(23, 23, 23, 0.2);position:relative;display:block}.sc-swirl-table-h *.sc-swirl-table{box-sizing:border-box}html.theme-dark.sc-swirl-table-h,html.theme-dark .sc-swirl-table-h{--swirl-table-shadow-rgba:rgba(0, 0, 0, 0.2)}.table--keyboard-move.sc-swirl-table:focus-within{--swirl-table-moving-row-border:var(--s-border-width-default) solid var(--s-border-highlight)}.table--show-empty-state.sc-swirl-table .table__empty-row.sc-swirl-table{display:flex}.table__container.sc-swirl-table{position:relative;overflow:auto;width:100%}.table__container--scrolled.sc-swirl-table{--swirl-table-sticky-right-shadow:4px 0 16px -4px var(--swirl-table-shadow-rgba), 2px 0 4px -2px var(--swirl-table-shadow-rgba)}.table__container--scrollable.sc-swirl-table:not(.table__container--scrolled-to-end){--swirl-table-sticky-left-shadow:0px 4px 16px 0px var(--swirl-table-shadow-rgba), 0px 1px 4px 0px var(--swirl-table-shadow-rgba)}.table__table.sc-swirl-table{width:-webkit-max-content;width:-moz-max-content;width:max-content;min-width:max(20rem, 100%)}.table__header.sc-swirl-table-s>*,.table__header .sc-swirl-table-s>*{display:flex}.table__empty-row.sc-swirl-table{display:none}.table__empty-row-cell.sc-swirl-table{display:flex;overflow:auto;padding-top:var(--s-space-8);padding-right:var(--s-space-16);padding-bottom:var(--s-space-8);padding-left:var(--s-space-16);flex-basis:0;flex-grow:1;flex-shrink:1;align-items:center;background-color:var(--s-surface-default)}.table__empty-row-cell.sc-swirl-table>*.sc-swirl-table{flex-grow:1}", B = {
48
- end: "Dropped. Final position in table: {position} of {rowCount}.",
49
- initial: "Press space to move the row.",
50
- moved: "Current position in table: {position} of {rowCount}.",
51
- start: "Row grabbed. Current position in table: {position} of {rowCount}. Press up and down arrow keys to change position, Space to drop."
52
- }, W = class {
53
- constructor(e) {
54
- x(this, e), this.dropRow = R(this, "dropRow", 7), this.dragDropInstructions = B, this.emptyStateLabel = "No results found.", this.liveRegionText = "", this.triggerRerender = A(async () => {
55
- await this.updateLayout(), this.updateEmptyState();
56
- }, 0, !0), this.updateLayout = I(async () => {
57
- this.resetCellStyles(), this.resetColumnStyles(), this.resetEmptyRowStyles(), this.resetRowGroupStyles(), this.layoutEmptyRow(), this.layoutRowGroups(), this.layOutCellsAndColumns(), this.updateScrolledState();
58
- }, 16, { leading: !0 }), this.onScroll = () => {
59
- this.updateScrolledState();
60
- }, this.onFocus = (t) => {
61
- var s;
62
- if (this.movingViaKeyboard) {
63
- const o = this.el.querySelector(".table-row--moving");
64
- o && this.focusDragHandleOfRow(o);
65
- }
66
- const r = !!((s = t.target) != null && s.closest(this.dragDropHandle));
67
- this.liveRegionText === "" && r && this.updateLiveRegionText("initial");
68
- }, this.onBlur = (t) => {
69
- const r = t.relatedTarget, s = !!(r != null && r.closest(this.dragDropHandle));
70
- this.el.contains(r) && s || this.liveRegionText !== "" && this.updateLiveRegionText();
71
- }, this.onKeyDown = (t) => {
72
- var o, i;
73
- if (!this.enableDragDrop)
74
- return;
75
- const r = (o = t.target) == null ? void 0 : o.closest("swirl-table-row");
76
- !((i = t.target) != null && i.closest(this.dragDropHandle)) || (t.code === "Space" ? (t.preventDefault(), t.stopPropagation(), this.toggleKeyboardMove(r)) : t.code === "ArrowUp" ? (t.preventDefault(), t.stopPropagation(), this.moveRow(r, "up")) : t.code === "ArrowDown" ? (t.preventDefault(), t.stopPropagation(), this.moveRow(r, "down")) : t.code === "Escape" && (t.preventDefault(), t.stopPropagation(), this.cancelKeyboardMove()));
77
- };
78
- }
79
- async componentDidLoad() {
80
- this.setupIntersectionObserver(), this.setupMutationObservers(), queueMicrotask(() => {
81
- this.setupDragDrop();
82
- });
83
- }
84
- disconnectedCallback() {
85
- var e, t, r, s;
86
- (e = this.intersectionObserver) == null || e.disconnect(), (t = this.columnMutationObserver) == null || t.disconnect(), (r = this.rowMutationObserver) == null || r.disconnect(), (s = this.sortable) == null || s.destroy();
87
- }
88
- handleEnableDragDropChange() {
89
- queueMicrotask(() => {
90
- this.setupDragDrop();
91
- });
92
- }
93
- setupIntersectionObserver() {
94
- this.intersectionObserver = new IntersectionObserver(this.onVisibilityChange.bind(this), {
95
- threshold: 0
96
- }), this.intersectionObserver.observe(this.container);
97
- }
98
- setupMutationObservers() {
99
- this.columnMutationObserver = new MutationObserver((e) => {
100
- e.some((r) => r.addedNodes.length || r.removedNodes.length) && this.updateLayout();
101
- }), this.columnMutationObserver.observe(this.headerEl, {
102
- childList: !0,
103
- subtree: !0
104
- }), this.rowMutationObserver = new MutationObserver((e) => {
105
- e.some((r) => r.addedNodes.length || r.removedNodes.length) && (this.updateEmptyState(), this.setupDragDrop());
106
- }), this.startRowMutationObserver();
107
- }
108
- startRowMutationObserver() {
109
- var e;
110
- (e = this.rowMutationObserver) == null || e.observe(this.bodyEl, {
111
- childList: !0,
112
- subtree: !0
113
- });
114
- }
115
- stopRowMutationObserver() {
116
- var e;
117
- (e = this.rowMutationObserver) == null || e.disconnect();
118
- }
119
- setupDragDrop() {
120
- if (this.sortable && (this.sortable.destroy(), this.sortable = void 0), this.enableDragDrop) {
121
- if (!!this.el.querySelector("swirl-table-row-group")) {
122
- console.warn('[Swirl] Drag & drop is not yet supported for swirl-tables using the "swirl-table-row-group" component.');
123
- return;
124
- }
125
- if (!this.dragDropHandle) {
126
- console.warn('[Swirl] swirl-table required the "dragDropHandle" prop to be set when drag & drop is enabled.');
127
- return;
128
- }
129
- const t = this.el.querySelector('[slot="rows"]');
130
- this.dragDropContainer = (t == null ? void 0 : t.tagName) !== "SWIRL-TABLE-ROW" ? t != null ? t : this.bodyEl : this.bodyEl, this.sortable = new M(this.dragDropContainer, {
131
- animation: 100,
132
- direction: "vertical",
133
- handle: this.dragDropHandle,
134
- fallbackOnBody: !0,
135
- group: `swirl-table-${Math.random().toString().substring(2)}`,
136
- onStart: () => {
137
- this.stopRowMutationObserver();
138
- },
139
- onEnd: (r) => {
140
- var n;
141
- r.stopPropagation();
142
- const { to: s, newIndex: o, oldIndex: i, item: l } = r;
143
- this.dropRow.emit({
144
- newIndex: o,
145
- oldIndex: i,
146
- item: l,
147
- itemId: (n = l.id) != null ? n : l.querySelector(":scope > swirl-table-row").id,
148
- newNextSiblingItemId: o < s.children.length - 1 ? s.children[o + 1].id : void 0,
149
- newPrevSiblingItemId: o > 0 ? s.children[o - 1].id : void 0
150
- }), this.startRowMutationObserver();
151
- }
152
- });
153
- }
154
- }
155
- async onVisibilityChange(e) {
156
- e.some((r) => r.isIntersecting) && setTimeout(async () => {
157
- await this.updateLayout();
158
- }, 100);
159
- }
160
- async componentDidRender() {
161
- await this.updateLayout(), this.updateEmptyState();
162
- }
163
- async onWindowResize() {
164
- await this.updateLayout();
165
- }
166
- async rerender() {
167
- this.triggerRerender();
168
- }
169
- resetEmptyRowStyles() {
170
- const e = this.el.querySelector(".table__empty-row");
171
- !Boolean(e) || (e.style.width = "");
172
- }
173
- resetRowGroupStyles() {
174
- Array.from(this.el.querySelectorAll("swirl-table-row-group")).forEach((t) => {
175
- const r = t.shadowRoot.querySelector(".table-row-group__header-row");
176
- !Boolean(r) || (t.shadowRoot.querySelector(".table-row-group__header-row").style.width = "");
177
- });
178
- }
179
- resetColumnStyles() {
180
- this.getColumns().forEach((t) => {
181
- t.classList.remove("table-column--has-shadow", "table-column--is-sticky", "table-column--is-sticky-right"), t.style.right = "", t.style.left = "", t.style.position = "", t.style.zIndex = "";
182
- });
183
- }
184
- resetCellStyles() {
185
- this.getCells().forEach((t) => {
186
- t.classList.remove("table-cell--has-shadow", "table-cell--is-sticky", "table-cell--is-sticky-right"), t.style.flex = "", t.style.left = "", t.style.right = "", t.style.position = "", t.style.zIndex = "";
187
- });
188
- }
189
- updateScrolledState() {
190
- const e = f();
191
- if (this.container === void 0)
192
- return;
193
- const t = this.container.scrollWidth > this.container.clientWidth, r = this.container.scrollLeft > 0, s = Math.ceil(this.container.clientWidth + this.container.scrollLeft) >= Math.floor(this.container.scrollWidth);
194
- t !== this.scrollable && (t && !e ? this.container.classList.add("table__container--scrollable") : this.container.classList.remove("table__container--scrollable")), r !== this.scrolled && (r && !e ? this.container.classList.add("table__container--scrolled") : this.container.classList.remove("table__container--scrolled")), s !== this.scrolledToEnd && (s && !e ? this.container.classList.add("table__container--scrolled-to-end") : this.container.classList.remove("table__container--scrolled-to-end"));
195
- }
196
- getColumns() {
197
- return Array.from(this.el.querySelectorAll("swirl-table-column"));
198
- }
199
- getCells() {
200
- return Array.from(this.el.querySelectorAll("swirl-table-cell"));
201
- }
202
- layoutEmptyRow() {
203
- const e = this.el.querySelector(".table__empty-row");
204
- if (!Boolean(e))
205
- return;
206
- const t = `${this.el.querySelector(".table__container").scrollWidth}px`;
207
- e.style.width = t;
208
- }
209
- layoutRowGroups() {
210
- var r;
211
- const e = Array.from(this.el.querySelectorAll("swirl-table-row-group")), t = `${(r = this.el.querySelector(".table__container")) == null ? void 0 : r.scrollWidth}px`;
212
- e.forEach((s) => {
213
- const o = s.shadowRoot.querySelector(".table-row-group__header-row");
214
- !Boolean(o) || (s.shadowRoot.querySelector(".table-row-group__header-row").style.width = t);
215
- });
216
- }
217
- layOutCellsAndColumns() {
218
- const e = this.getColumns(), t = this.getCells();
219
- e.forEach((r, s) => {
220
- const o = this.getCellsForColumn(t, e, s), i = this.calculateColumnProperties(r, e, s);
221
- o.forEach((l) => this.applyCellStyles(l, r, i)), this.applyColumnStyles(r, i);
222
- });
223
- }
224
- getCellsForColumn(e, t, r) {
225
- return e.filter((s, o) => (r - o) % t.length === 0);
226
- }
227
- calculateColumnProperties(e, t, r) {
228
- const s = e.sticky ? this.getLeftOffsetForStickyColumn(t, r) : 0, o = `${e.getBoundingClientRect().width}px`, i = e.sticky && t.length === r + 1, l = e.sticky && !this.hasStickyColumnsToRight(t, r);
229
- return {
230
- leftOffsetForStickyColumn: s,
231
- columnWidth: o,
232
- isLastColumnSticky: i,
233
- hasShadowRight: l
234
- };
235
- }
236
- applyCellStyles(e, t, r) {
237
- const { leftOffsetForStickyColumn: s, columnWidth: o, isLastColumnSticky: i, hasShadowRight: l } = r;
238
- e.style.flex = Boolean(o) ? `0 0 ${o}` : "", !f() && (t.sticky && !i && (e.classList.add("table-cell--is-sticky"), e.style.left = s + "px", l && e.classList.add("table-cell--has-shadow-right")), i && e.classList.add("table-cell--is-sticky-right", "table-cell--has-shadow-left"));
239
- }
240
- applyColumnStyles(e, t) {
241
- if (f())
242
- return;
243
- const { leftOffsetForStickyColumn: r, isLastColumnSticky: s, hasShadowRight: o } = t;
244
- e.sticky && !s && (e.classList.add("table-column--is-sticky"), e.style.left = r + "px", o && e.classList.add("table-column--has-shadow-right")), s && e.classList.add("table-column--is-sticky-right", "table-column--has-shadow-left");
245
- }
246
- getLeftOffsetForStickyColumn(e, t) {
247
- return e.slice(0, t).reduce((r, s) => {
248
- if (s.sticky)
249
- return r += s.getBoundingClientRect().width, r;
250
- }, 0);
251
- }
252
- hasStickyColumnsToRight(e, t) {
253
- return e.slice(t + 1, e.length - 1).some((r) => r.sticky);
254
- }
255
- updateEmptyState() {
256
- const e = this.el.querySelector('[slot="rows"]');
257
- this.empty = !Boolean(e) || e.children.length === 0;
258
- }
259
- updateLiveRegionText(e, t = {}) {
260
- let r = e ? this.dragDropInstructions[e] : "";
261
- for (const [s, o] of Object.entries(t != null ? t : {}))
262
- r = r.replaceAll(`{${s}}`, String(o));
263
- r !== this.liveRegionText && (this.liveRegionText = r);
264
- }
265
- toggleKeyboardMove(e) {
266
- this.movingViaKeyboard ? this.endKeyboardMove(e) : this.startKeyboardMove(e);
267
- }
268
- startKeyboardMove(e) {
269
- this.movingViaKeyboard = !0, this.positionBeforeKeyboardMove = Array.from(this.dragDropContainer.children).indexOf(e), e.classList.add("table-row--moving"), this.updateLiveRegionText("start", {
270
- position: Array.from(this.dragDropContainer.children).indexOf(e) + 1,
271
- rowCount: this.dragDropContainer.children.length
272
- });
273
- }
274
- endKeyboardMove(e) {
275
- this.movingViaKeyboard = !1, e.classList.remove("table-row--moving"), this.updateLiveRegionText("end", {
276
- position: Array.from(this.dragDropContainer.children).indexOf(e) + 1,
277
- rowCount: this.dragDropContainer.children.length
278
- }), this.dropRow.emit({
279
- item: e,
280
- newIndex: Array.from(this.dragDropContainer.children).indexOf(e),
281
- oldIndex: this.positionBeforeKeyboardMove,
282
- itemId: e.id,
283
- newNextSiblingItemId: Array.from(this.dragDropContainer.children).indexOf(e) < this.dragDropContainer.children.length - 1 ? this.dragDropContainer.children[Array.from(this.dragDropContainer.children).indexOf(e) + 1].id : void 0,
284
- newPrevSiblingItemId: Array.from(this.dragDropContainer.children).indexOf(e) > 0 ? this.dragDropContainer.children[Array.from(this.dragDropContainer.children).indexOf(e) - 1].id : void 0
285
- }), this.positionBeforeKeyboardMove = void 0;
286
- }
287
- cancelKeyboardMove() {
288
- if (!this.movingViaKeyboard)
289
- return;
290
- const e = this.el.querySelector(".table-row--moving");
291
- !e || (e.classList.remove("table-row--moving"), this.movingViaKeyboard = !1, this.positionBeforeKeyboardMove !== void 0 && this.dragDropContainer.insertBefore(e, this.dragDropContainer.children[this.positionBeforeKeyboardMove]));
292
- }
293
- moveRow(e, t) {
294
- if (!this.movingViaKeyboard)
295
- return;
296
- let r;
297
- if (t === "up") {
298
- const s = Array.from(this.dragDropContainer.children).indexOf(e);
299
- r = Math.max(0, s - 1), this.dragDropContainer.insertBefore(e, this.dragDropContainer.children[r]);
300
- } else {
301
- const s = Array.from(this.dragDropContainer.children).indexOf(e);
302
- r = Math.min(this.dragDropContainer.children.length - 1, s + 1), this.dragDropContainer.insertBefore(e, this.dragDropContainer.children[r + 1]);
303
- }
304
- this.updateLiveRegionText("moved", {
305
- position: r + 1,
306
- rowCount: this.dragDropContainer.children.length
307
- }), this.focusDragHandleOfRow(e);
308
- }
309
- focusDragHandleOfRow(e) {
310
- var r, s;
311
- const t = (r = T(e, this.dragDropHandle)) == null ? void 0 : r[0];
312
- t.tagName === "BUTTON" ? t.focus() : (s = t.querySelector("button")) == null || s.focus();
313
- }
314
- render() {
315
- const e = Boolean(this.el.querySelector('[slot="empty"]')), t = O("table", {
316
- "table--show-empty-state": this.empty && !this.loading,
317
- "table--keyboard-move": this.movingViaKeyboard
318
- });
319
- return a(_, { key: "6713563d8bcfaecd014d5ccc783fd97c66008012" }, a("div", { key: "b168785741aa3560982d535839fa4e6657bfaacc", class: t }, this.enableDragDrop && a("swirl-visually-hidden", { key: "01d848a7a555f0cd59de1379d9144dd77f7978ff" }, a("span", { key: "fad5c4258a72b5f4773665d1e49cf0c9cf2425fd", "aria-live": "assertive" }, this.liveRegionText)), a("div", { key: "cea73b692b544d64c4e1ab794b22cd3c520beecd", class: "table__container", onFocusin: this.onFocus, onFocusout: this.onBlur, onKeyDown: this.onKeyDown, onScroll: this.onScroll, ref: (r) => this.container = r, tabIndex: -1 }, a("div", { key: "9de016213d0eab8abcfebbe4d8c22ff1c5f30c55", "aria-describedby": Boolean(this.caption) ? "caption" : void 0, "aria-label": this.label, role: "table", class: "table__table" }, this.caption && a("swirl-visually-hidden", { key: "37511e129309ffca404a84c85370c8e4269c5d04" }, a("div", { key: "8c18e6ab4bc3fc90d2a558039102a2f9af9b206e", id: "caption" }, this.caption)), a("div", { key: "a4b7ac36016b3d8823849aa9c1119e623e5d2800", role: "rowgroup" }, a("div", { key: "f730d694cbb541c8179101e6f32b6c55f2a2a7bd", class: "table__header", ref: (r) => this.headerEl = r, role: "row" }, a("slot", { key: "2ba3a5ff89e0285ce5d3525c98013e291459a209", name: "columns" }))), a("div", { key: "ecc5ef81fa7ce92c101de93ec3dcf47db034d0ec", class: "table__body", ref: (r) => this.bodyEl = r }, a("slot", { key: "13b4e833f51182647ad24e8ac2504a5d0b5ba9fb", name: "rows" }), a("div", { key: "de71a4fe643d1d0f1e79f78a7c829ca74d3715fe", class: "table__empty-row", role: "row" }, a("div", { key: "e5c155f50575d93a238e9d628e3500f3eea33b95", "aria-colspan": this.getColumns().length, class: "table__empty-row-cell", role: "cell" }, a("slot", { key: "168cba4089c52914457c95d2dd6210b1db8a2122", name: "empty" }), !e && a("swirl-text", { key: "a108652dd9ce24ad2517def4df4c157078a4f01a", align: "center", size: "sm" }, this.emptyStateLabel))))))));
320
- }
321
- get el() {
322
- return k(this);
323
- }
324
- static get watchers() {
325
- return {
326
- enableDragDrop: [{
327
- handleEnableDragDropChange: 0
328
- }]
329
- };
330
- }
331
- };
332
- W.style = K();
333
- export {
334
- W as swirl_table
335
- };
@@ -1,63 +0,0 @@
1
- import { r as b, c as r, h as s, H as n, g as c } from "./index.0e476e54.js";
2
- import { n as e } from "./utils-CCck-DTo.e4e43b6a.js";
3
- import "react";
4
- import "react-dom";
5
- const h = () => ".sc-swirl-tabs-h{display:block;width:100%}.sc-swirl-tabs-h *.sc-swirl-tabs{box-sizing:border-box}.tabs.sc-swirl-tabs{width:100%}", d = class {
6
- constructor(t) {
7
- b(this, t), this.tabActivated = r(this, "tabActivated", 7), this.tabBarVariant = "default", this.tabBarTabs = [], this.tabs = [], this.onActivateNextTab = () => {
8
- this.activateNextTab();
9
- }, this.onActivatePreviousTab = () => {
10
- this.activatePreviousTab();
11
- }, this.onActivateTab = (i) => {
12
- this.activateTab(i.detail);
13
- };
14
- }
15
- componentWillLoad() {
16
- this.collectTabs(), this.updateTabBarTabs();
17
- }
18
- async activateTab(t) {
19
- if (this.activeTab === t)
20
- return;
21
- this.activeTab = t, this.tabs.forEach((a) => a.active = !1);
22
- const i = this.tabs.find((a) => a.tabId === t);
23
- !Boolean(i) || (i.active = !0, this.tabActivated.emit(i), this.updateTabBarTabs());
24
- }
25
- activateNextTab() {
26
- const t = this.tabs.findIndex((a) => a.tabId === this.activeTab), i = e(t + 1, this.tabs.length);
27
- this.activateTab(this.tabs[i].tabId), requestAnimationFrame(() => {
28
- var a;
29
- (a = this.el.querySelector(".tabs__tab--active")) == null || a.focus();
30
- });
31
- }
32
- activatePreviousTab() {
33
- const t = this.tabs.findIndex((a) => a.tabId === this.activeTab), i = e(t - 1, this.tabs.length);
34
- this.activateTab(this.tabs[i].tabId), requestAnimationFrame(() => {
35
- var a;
36
- (a = this.el.querySelector(".tabs__tab--active")) == null || a.focus();
37
- });
38
- }
39
- collectTabs() {
40
- if (this.tabs = Array.from(this.el.querySelectorAll("swirl-tab")), this.tabs.length === 0)
41
- return;
42
- const t = this.tabs.find((i) => i.tabId === this.initialTab);
43
- this.activateTab(Boolean(t) ? t.tabId : this.tabs[0].tabId);
44
- }
45
- updateTabBarTabs() {
46
- this.tabBarTabs = this.tabs.map((t) => ({
47
- icon: t.icon,
48
- id: t.tabId,
49
- label: t.label,
50
- active: this.activeTab === t.tabId
51
- }));
52
- }
53
- render() {
54
- return s(n, { key: "3c69bacc381913038ae39788bd65279ae3b05f99" }, s("div", { key: "8b55e1b9b78f29b93d1ce75b734dd1548dc12d06", class: "tabs" }, s("swirl-tab-bar", { key: "440a595970ac38aae0982224c3fe9f43cb75a323", label: this.label, onActivateNextTab: this.onActivateNextTab, onActivatePreviousTab: this.onActivatePreviousTab, onActivateTab: this.onActivateTab, tabs: this.tabBarTabs, justify: this.justifyTabBar, paddingBlockEnd: this.tabBarPaddingBlockEnd, paddingBlockStart: this.tabBarPaddingBlockStart, paddingInlineEnd: this.tabBarPaddingInlineEnd, paddingInlineStart: this.tabBarPaddingInlineStart, variant: this.tabBarVariant })), s("slot", { key: "0877159e63c802bad45f93016ff7247878578100" }));
55
- }
56
- get el() {
57
- return c(this);
58
- }
59
- };
60
- d.style = h();
61
- export {
62
- d as swirl_tabs
63
- };
@@ -1,93 +0,0 @@
1
- import { r as x, c as n, h as i, H as w } from "./index.0e476e54.js";
2
- import { c as b } from "./index-orsBiyT_.fc4357c3.js";
3
- import { D as f } from "./media-query.service-CCYT6DU8.f0931fdc.js";
4
- import "react";
5
- import "react-dom";
6
- import "./utils-CCck-DTo.e4e43b6a.js";
7
- const m = () => '.sc-swirl-text-input-h{display:block;width:100%}.sc-swirl-text-input-h *.sc-swirl-text-input{box-sizing:border-box}.text-input.sc-swirl-text-input{position:relative;display:flex;width:100%;align-items:center;color:var(--s-text-default);font:inherit;line-height:var(--s-line-height-sm);cursor:text}.text-input--auto-grow.sc-swirl-text-input .text-input__input.sc-swirl-text-input{max-height:none}.text-input--clearable.sc-swirl-text-input,.text-input--type-number.sc-swirl-text-input,.text-input--type-password.sc-swirl-text-input{padding-right:calc(1.5rem + var(--s-space-8))}.text-input--clearable.sc-swirl-text-input .text-input__character-counter.sc-swirl-text-input,.text-input--type-number.sc-swirl-text-input .text-input__character-counter.sc-swirl-text-input,.text-input--type-password.sc-swirl-text-input .text-input__character-counter.sc-swirl-text-input{padding-right:calc(1.5rem + var(--s-space-8))}.text-input--show-password.sc-swirl-text-input .text-input__input.sc-swirl-text-input{width:100%}.text-input--font-size-sm.sc-swirl-text-input{font-size:var(--s-font-size-sm);line-height:var(--s-line-height-sm)}@media (min-width: 992px) and (max-width: 1439px) and (hover: hover),(min-width: 1440px){.text-input--font-size-sm.sc-swirl-text-input .text-input__input.sc-swirl-text-input{font-size:var(--s-font-size-sm);line-height:var(--s-line-height-sm)}}.text-input--font-size-base.sc-swirl-text-input{--swirl-text-input-placeholder-size:var(--s-font-size-base);font-size:var(--s-font-size-base);line-height:var(--s-line-height-base)}@media (min-width: 992px) and (max-width: 1439px) and (hover: hover),(min-width: 1440px){.text-input--font-size-base.sc-swirl-text-input .text-input__input.sc-swirl-text-input{font-size:var(--s-font-size-base);line-height:var(--s-line-height-base)}}.text-input--has-suffix.sc-swirl-text-input input.text-input__input.sc-swirl-text-input:not([type="password"]){width:0.25rem;min-width:0.25rem}.text-input--inline.sc-swirl-text-input .text-input__stepper.sc-swirl-text-input{top:calc(-1 * var(--s-space-8));right:calc(-1 * var(--s-space-12))}@media (min-width: 992px) and (max-width: 1439px) and (hover: hover),(min-width: 1440px){.text-input--inline.sc-swirl-text-input .text-input__stepper.sc-swirl-text-input{top:calc(-1 * var(--s-space-8));right:calc(-1 * var(--s-space-12))}}.text-input--inline.sc-swirl-text-input .text-input__step-button.sc-swirl-text-input{width:2rem;height:1.125rem;justify-content:center;background-color:var(--s-surface-raised-default)}.text-input--inline.sc-swirl-text-input .text-input__step-button.sc-swirl-text-input:first-of-type{border-top-right-radius:var(--s-border-radius-sm)}.text-input--inline.sc-swirl-text-input .text-input__step-button.sc-swirl-text-input:last-of-type{border-bottom-right-radius:var(--s-border-radius-sm)}.text-input--inline.sc-swirl-text-input .text-input__step-button.sc-swirl-text-input:hover{background-color:var(--s-surface-raised-hovered)}.text-input--inline.sc-swirl-text-input .text-input__step-button.sc-swirl-text-input swirl-icon-expand-less.sc-swirl-text-input,.text-input--inline.sc-swirl-text-input .text-input__step-button.sc-swirl-text-input swirl-icon-expand-more.sc-swirl-text-input{width:1rem}.text-input--inline.sc-swirl-text-input .text-input__clear-button.sc-swirl-text-input,.text-input--inline.sc-swirl-text-input .text-input__password-toggle.sc-swirl-text-input{top:-0.0625rem}@media (min-width: 992px) and (max-width: 1439px) and (hover: hover),(min-width: 1440px){.text-input--inline.sc-swirl-text-input .text-input__clear-button.sc-swirl-text-input,.text-input--inline.sc-swirl-text-input .text-input__password-toggle.sc-swirl-text-input{top:0}}.text-input--inline.sc-swirl-text-input .text-input__character-counter.sc-swirl-text-input{top:calc(100% + var(--s-space-12) + var(--s-border-width-default));right:calc(-1 * var(--s-space-12));max-width:6rem}.text-input__input.sc-swirl-text-input{display:inline-flex;width:100%;max-height:13.75rem;margin:0;padding:0;border:none;color:var(--s-text-default);background-color:transparent;font:inherit;font-size:var(--s-font-size-base);line-height:var(--s-line-height-base);resize:none;caret-color:var(--s-border-highlight)}.text-input__input.sc-swirl-text-input:focus{outline:none}.text-input__input.sc-swirl-text-input:disabled{color:var(--s-text-subdued);background-color:transparent}.text-input__input.sc-swirl-text-input::-webkit-outer-spin-button,.text-input__input.sc-swirl-text-input::-webkit-inner-spin-button{margin:0;-webkit-appearance:none}.text-input__input[type="number"].sc-swirl-text-input{-moz-appearance:textfield}.text-input__input.sc-swirl-text-input::-moz-placeholder{font-size:var(--swirl-text-input-placeholder-size)}.text-input__input.sc-swirl-text-input::placeholder{font-size:var(--swirl-text-input-placeholder-size)}@media (min-width: 992px) and (max-width: 1439px) and (hover: hover),(min-width: 1440px){.text-input__input.sc-swirl-text-input{font-size:var(--s-font-size-sm);line-height:var(--s-line-height-sm)}}.text-input--disable-dynamic-width.sc-swirl-text-input input.text-input__input.sc-swirl-text-input:not([type="password"]){width:100%;min-width:0}.text-input__clear-button.sc-swirl-text-input,.text-input__password-toggle.sc-swirl-text-input{position:absolute;top:calc(-1 * var(--s-space-12));right:0;display:inline-flex;margin:0;padding:0;border:none;color:var(--s-icon-default);background-color:transparent;cursor:pointer}.text-input__clear-button.sc-swirl-text-input:focus:not(:focus-visible),.text-input__password-toggle.sc-swirl-text-input:focus:not(:focus-visible){outline:none}.text-input__clear-button.sc-swirl-text-input:focus-visible,.text-input__password-toggle.sc-swirl-text-input:focus-visible{outline-color:var(--s-focus-default)}@media (min-width: 992px) and (max-width: 1439px) and (hover: hover),(min-width: 1440px){.text-input__clear-button.sc-swirl-text-input,.text-input__password-toggle.sc-swirl-text-input{top:-0.625rem}}.text-input__stepper.sc-swirl-text-input{position:absolute;top:-1.4375rem;right:0;display:flex;flex-direction:column}@media (min-width: 992px) and (max-width: 1439px) and (hover: hover),(min-width: 1440px){.text-input__stepper.sc-swirl-text-input{top:-1.25rem}}.text-input__step-button.sc-swirl-text-input{display:inline-flex;margin:0;padding:0;border:none;color:var(--s-icon-default);background-color:transparent;cursor:pointer}.text-input__step-button.sc-swirl-text-input:focus:not(:focus-visible){outline:none}.text-input__step-button.sc-swirl-text-input:focus-visible{outline-color:var(--s-focus-default)}.text-input__character-counter.sc-swirl-text-input{position:absolute;top:-1.375rem;right:0;display:flex;color:var(--s-text-subdued);line-height:var(--s-line-height-sm);flex-direction:column}@media (min-width: 992px) and (max-width: 1439px) and (hover: hover),(min-width: 1440px){.text-input__character-counter.sc-swirl-text-input{font-size:var(--s-font-size-sm);line-height:var(--s-line-height-sm)}}.text-input__prefix.sc-swirl-text-input{padding-right:var(--s-space-4);color:var(--s-text-subdued);font-size:var(--s-font-size-base)}.text-input__suffix.sc-swirl-text-input{padding-left:var(--s-space-4);color:var(--s-text-subdued);font-size:var(--s-font-size-base)}', _ = class {
8
- constructor(e) {
9
- x(this, e), this.clear = n(this, "clear", 7), this.inputBlur = n(this, "inputBlur", 7), this.inputFocus = n(this, "inputFocus", 7), this.valueChange = n(this, "valueChange", 7), this.autoComplete = "on", this.characterCounterLabel = "Used characters", this.clearButtonLabel = "Clear input", this.fontSize = "default", this.passwordToggleLabel = "Toggle password display", this.rows = 1, this.type = "text", this.iconSize = 24, this.showPassword = !1, this.mediaQueryUnsubscribe = () => {
10
- }, this.handleClearClick = () => {
11
- this.inputEl.value = "", this.value = "", this.valueChange.emit(""), this.inputEl.focus(), this.clear.emit();
12
- }, this.onChange = (t) => {
13
- const s = t.target;
14
- this.value = s.value;
15
- }, this.onBlur = (t) => {
16
- this.inputBlur.emit(t);
17
- }, this.onFocus = (t) => {
18
- this.inputFocus.emit(t), this.handleAutoSelect(t);
19
- }, this.onInput = (t) => {
20
- this.onChange(t);
21
- }, this.onKeyPress = (t) => {
22
- this.type === "number" && ["+", "-", "e"].includes(t.key) && t.preventDefault();
23
- }, this.decreaseValue = () => {
24
- if (this.type !== "number")
25
- return;
26
- const t = this.step || 1;
27
- let s = this.inputEl.valueAsNumber;
28
- isNaN(this.inputEl.valueAsNumber) && (s = this.min !== void 0 ? this.min + 1 : 1), this.value = String(Math.max(this.min || -1 / 0, s - t)), this.valueChange.emit(this.value);
29
- }, this.increaseValue = () => {
30
- if (this.type !== "number")
31
- return;
32
- const t = this.step || 1;
33
- let s = this.inputEl.valueAsNumber;
34
- isNaN(this.inputEl.valueAsNumber) && (s = this.min !== void 0 ? this.min - 1 : -1), this.value = String(Math.min(this.max || 1 / 0, s + t)), this.valueChange.emit(this.value);
35
- }, this.togglePassword = () => {
36
- this.type === "password" && (this.showPassword = !this.showPassword);
37
- };
38
- }
39
- componentDidLoad() {
40
- this.mediaQueryUnsubscribe = f.subscribe((e) => {
41
- this.updateIconSize(e);
42
- }), this.autoFocus && setTimeout(() => {
43
- this.inputEl.focus();
44
- });
45
- }
46
- componentDidRender() {
47
- this.adjustInputSize();
48
- }
49
- disconnectedCallback() {
50
- this.mediaQueryUnsubscribe();
51
- }
52
- async blurInput() {
53
- this.inputEl.blur();
54
- }
55
- async focusInput() {
56
- this.inputEl.focus();
57
- }
58
- watchValue(e, t) {
59
- e !== t && this.valueChange.emit(e);
60
- }
61
- updateIconSize(e) {
62
- this.iconSize = e ? 20 : 24;
63
- }
64
- adjustInputSize() {
65
- (this.rows > 1 || this.autoGrow) && (this.inputEl.style.width = "", this.inputEl.style.height = "", this.inputEl.style.height = Boolean(this.inputEl.scrollHeight) ? this.inputEl.scrollHeight / 16 + "rem" : ""), this.rows === 1 && !this.autoGrow && (this.inputEl.style.height = "", this.inputEl.style.width = "", this.suffixLabel && this.type !== "password" && !this.disableDynamicWidth && !Boolean(this.placeholder) && (this.inputEl.style.width = this.inputEl.scrollWidth / 16 + "rem"));
66
- }
67
- handleAutoSelect(e) {
68
- !(this.autoSelect || this.readonly) || e.target.select();
69
- }
70
- render() {
71
- var l, o;
72
- const e = this.rows === 1 && !this.autoGrow ? "input" : "textarea", t = this.invalid === !0 || this.invalid === !1 ? String(this.invalid) : void 0, s = this.type === "number" && !this.disabled && !this.readonly, r = this.type === "password" && !this.disabled, a = this.clearable && !this.disabled && !this.readonly && Boolean(this.value) && !r && !s, u = (o = (l = this.value) == null ? void 0 : l.length) != null ? o : 0, p = this.showCharacterCounter && (!this.showCharacterCounterNearLimit || u >= this.maxLength * 0.8), h = this.type === "password" && this.showPassword ? "text" : this.type, c = b("text-input", `text-input--font-size-${this.fontSize}`, `text-input--type-${this.type}`, {
73
- "text-input--auto-grow": this.autoGrow,
74
- "text-input--clearable": a,
75
- "text-input--disable-dynamic-width": this.disableDynamicWidth || Boolean(this.placeholder),
76
- "text-input--has-suffix": Boolean(this.suffixLabel),
77
- "text-input--inline": this.inline,
78
- "text-input--show-password": this.type === "password" && this.showPassword
79
- });
80
- return i(w, { key: "b983374514faff49d73464d45b492c0bef4bb1bf" }, i("div", { key: "3a717a0f3500e1e54dfc8d15e681a3947cbf98b7", class: c }, this.prefixLabel && i("span", { key: "2f783b20877d4adb17d433c976f2efbd237822ba", class: "text-input__prefix" }, this.prefixLabel), i(e, { key: "8b3a0e2eae7a70467dbfb44a6b7ad524ef9358fe", "aria-autocomplete": this.swirlAriaAutocomplete, "aria-controls": this.swirlAriaControls, "aria-describedby": this.swirlAriaDescribedby, "aria-disabled": this.disabled ? "true" : void 0, "aria-expanded": this.swirlAriaExpanded, "aria-invalid": t, autoComplete: this.autoComplete, autoFocus: this.autoFocus, class: "text-input__input", disabled: this.disabled, inputMode: this.mode, maxLength: this.maxLength, max: this.type === "number" ? this.max : void 0, min: this.type === "number" ? this.min : void 0, onBlur: this.onBlur, onFocus: this.onFocus, onInput: this.onInput, onKeyPress: this.onKeyPress, placeholder: Boolean(this.suffixLabel) ? void 0 : this.placeholder, ref: (d) => this.inputEl = d, required: this.required, role: this.swirlRole, name: this.inputName, rows: this.rows > 1 ? this.rows : this.autoGrow ? 1 : void 0, spellcheck: this.spellCheck, step: this.type === "number" ? this.step : void 0, type: h, value: this.value, readonly: this.readonly }, this.rows > 1 && this.value), this.suffixLabel && i("span", { key: "28790cdad673a9b53833f5e8ca08d006b9292084", class: "text-input__suffix" }, this.suffixLabel), a && i("button", { key: "0a8c28137dc9b8921cdd49889a4573c7640a260f", "aria-label": this.clearButtonLabel, class: "text-input__clear-button", onClick: this.handleClearClick, part: "text-input__clear-button", type: "button" }, i("swirl-icon-cancel", { key: "39b0f79da29cda182c6e7e0d09603934d736931b", size: this.iconSize })), r && i("button", { key: "5df0de39b1cce107ffd630e8d638d75acd063411", "aria-label": this.passwordToggleLabel, class: "text-input__password-toggle", onClick: this.togglePassword, type: "button" }, this.showPassword ? i("swirl-icon-visibility-off", { size: this.iconSize }) : i("swirl-icon-visibility", { size: this.iconSize })), s && i("span", { key: "ea322db1998b53677d80111d31d229c127dec3eb", class: "text-input__stepper" }, i("button", { key: "84086fd4778b7ecad6544fbf01e167c3bba530bc", "aria-hidden": "true", class: "text-input__step-button", onClick: this.increaseValue, tabIndex: -1, type: "button" }, i("swirl-icon-expand-less", { key: "0572fcbbd41943dec1cc3d005aedb71a123c5186", size: this.iconSize })), i("button", { key: "07d8c5edf31cecef0ba0f8bf816dc892f33f98ab", "aria-hidden": "true", class: "text-input__step-button", onClick: this.decreaseValue, tabIndex: -1, type: "button" }, i("swirl-icon-expand-more", { key: "911ce89cbc0b32b42843c01465cd90a272a81581", size: this.iconSize }))), p && i("span", { key: "bcdb1c0f333aa0a077fce0eb853bb681a9e41776", class: "text-input__character-counter", "aria-live": "polite" }, i("swirl-visually-hidden", { key: "6b0d36fa4c8ed1188a2664e55c06f0e19d134d5b" }, this.characterCounterLabel), u, " ", Boolean(this.maxLength) ? `/ ${this.maxLength}` : "")));
81
- }
82
- static get watchers() {
83
- return {
84
- value: [{
85
- watchValue: 0
86
- }]
87
- };
88
- }
89
- };
90
- _.style = m();
91
- export {
92
- _ as swirl_text_input
93
- };