@getflip/swirl-components-react 0.0.0-new-shell-20231128130728
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +4 -0
- package/dist/a11y-dialog.esm-d7a94c8c.bd6ae411.js +99 -0
- package/dist/bodyScrollLock.esm-ce6356d8.2c600fb9.js +93 -0
- package/dist/file-manager.entry.38457ac1.js +57 -0
- package/dist/floating-ui.dom.esm-ac7cc24e.79b318e4.js +780 -0
- package/dist/focus-trap.esm-37cd2d2b.724cca66.js +452 -0
- package/dist/index-d280dafb.186cdb0e.js +71 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.e5965a8a.js +2915 -0
- package/dist/maska-4866b970.5336f9cb.js +5420 -0
- package/dist/sortable.esm-8c3d5856.57c4f048.js +1229 -0
- package/dist/stencil-generated/index.d.ts +306 -0
- package/dist/stencil-generated/react-component-lib/createComponent.d.ts +10 -0
- package/dist/stencil-generated/react-component-lib/createOverlayComponent.d.ts +21 -0
- package/dist/stencil-generated/react-component-lib/index.d.ts +2 -0
- package/dist/stencil-generated/react-component-lib/interfaces.d.ts +29 -0
- package/dist/stencil-generated/react-component-lib/utils/attachProps.d.ts +12 -0
- package/dist/stencil-generated/react-component-lib/utils/case.d.ts +2 -0
- package/dist/stencil-generated/react-component-lib/utils/index.d.ts +10 -0
- package/dist/swirl-accordion-item.entry.741527ea.js +38 -0
- package/dist/swirl-accordion.entry.783de61a.js +36 -0
- package/dist/swirl-action-list-section.entry.7884f6d3.js +15 -0
- package/dist/swirl-action-list_3.entry.336ba911.js +83 -0
- package/dist/swirl-app-bar.entry.1a137585.js +45 -0
- package/dist/swirl-app-icon.entry.0f5a2f97.js +23 -0
- package/dist/swirl-app-layout_6.entry.1521cc72.js +327 -0
- package/dist/swirl-autocomplete.entry.ffefda4d.js +115 -0
- package/dist/swirl-avatar-group.entry.99938460.js +28 -0
- package/dist/swirl-avatar.entry.63c9bc2f.js +48 -0
- package/dist/swirl-badge.entry.f831e3ba.js +19 -0
- package/dist/swirl-banner.entry.62b1b388.js +47 -0
- package/dist/swirl-box.entry.cef3da26.js +42 -0
- package/dist/swirl-button-group.entry.d1365437.js +19 -0
- package/dist/swirl-button.entry.6693fe19.js +61 -0
- package/dist/swirl-card.entry.139358ac.js +43 -0
- package/dist/swirl-carousel-slide.entry.e5aa75c8.js +19 -0
- package/dist/swirl-carousel.entry.022eb63c.js +69 -0
- package/dist/swirl-checkbox.entry.ac8e5f0c.js +30 -0
- package/dist/swirl-chip.entry.58d154bc.js +41 -0
- package/dist/swirl-color-input.entry.03d4a7b0.js +269 -0
- package/dist/swirl-columns.entry.af9bb8c8.js +18 -0
- package/dist/swirl-components-react.js +310 -0
- package/dist/swirl-components-react.umd.cjs +383 -0
- package/dist/swirl-console-layout.entry.da154330.js +68 -0
- package/dist/swirl-date-input.entry.be6f26aa.js +80 -0
- package/dist/swirl-date-picker_2.entry.77533bb6.js +37 -0
- package/dist/swirl-description-list-item.entry.474237ca.js +23 -0
- package/dist/swirl-description-list.entry.87bfbd2c.js +15 -0
- package/dist/swirl-dialog.entry.3406a45d.js +44 -0
- package/dist/swirl-emoji-clap.entry.dc03619c.js +17 -0
- package/dist/swirl-emoji-happy.entry.4f231b56.js +17 -0
- package/dist/swirl-emoji-idea.entry.4ec13295.js +17 -0
- package/dist/swirl-emoji-love.entry.c391767e.js +17 -0
- package/dist/swirl-emoji-sad.entry.59771260.js +17 -0
- package/dist/swirl-emoji-thumbs-up.entry.92b3728b.js +17 -0
- package/dist/swirl-emoji.entry.dcfa7e9a.js +16 -0
- package/dist/swirl-file-uploader.entry.611709a7.js +31 -0
- package/dist/swirl-file-viewer_7.entry.4256e623.js +16427 -0
- package/dist/swirl-form-control.entry.a98574c9.js +86 -0
- package/dist/swirl-form-group.entry.c0c3fc26.js +17 -0
- package/dist/swirl-heading.entry.479591c1.js +26 -0
- package/dist/swirl-icon-add-photo.entry.b56fbf0a.js +17 -0
- package/dist/swirl-icon-add-reaction.entry.bb763e26.js +17 -0
- package/dist/swirl-icon-add_6.entry.e88710ef.js +72 -0
- package/dist/swirl-icon-admin-panel-settings.entry.38529404.js +17 -0
- package/dist/swirl-icon-ai.entry.3947d9fd.js +17 -0
- package/dist/swirl-icon-apps.entry.43da29af.js +17 -0
- package/dist/swirl-icon-arrow-back_3.entry.0ec779cb.js +39 -0
- package/dist/swirl-icon-arrow-downward_2.entry.5db48d10.js +28 -0
- package/dist/swirl-icon-arrow-left_4.entry.a745156f.js +52 -0
- package/dist/swirl-icon-arrow-right-small.entry.f71957dd.js +17 -0
- package/dist/swirl-icon-attachment.entry.7ce2a377.js +17 -0
- package/dist/swirl-icon-bar-chart.entry.b6732a1c.js +17 -0
- package/dist/swirl-icon-block.entry.58cf215a.js +17 -0
- package/dist/swirl-icon-bookmark.entry.54da117b.js +17 -0
- package/dist/swirl-icon-cancel_4.entry.e736ca50.js +50 -0
- package/dist/swirl-icon-chat-bubble.entry.11e43296.js +17 -0
- package/dist/swirl-icon-chats-filled.entry.4ab449f2.js +17 -0
- package/dist/swirl-icon-chats-outlined.entry.a566fe1f.js +17 -0
- package/dist/swirl-icon-check-circle_2.entry.0916adac.js +28 -0
- package/dist/swirl-icon-check-small_3.entry.b0b595f2.js +72 -0
- package/dist/swirl-icon-check-strong.entry.fc27f45d.js +17 -0
- package/dist/swirl-icon-check.entry.1b4002c9.js +17 -0
- package/dist/swirl-icon-chevron-left.entry.1fc94453.js +17 -0
- package/dist/swirl-icon-chevron-right.entry.24f12c52.js +17 -0
- package/dist/swirl-icon-close-small.entry.c1b29419.js +17 -0
- package/dist/swirl-icon-close.entry.75c72236.js +17 -0
- package/dist/swirl-icon-cloud-upload.entry.ab76558e.js +17 -0
- package/dist/swirl-icon-column.entry.d03b751b.js +17 -0
- package/dist/swirl-icon-comment.entry.32016143.js +17 -0
- package/dist/swirl-icon-copy.entry.f61fee12.js +17 -0
- package/dist/swirl-icon-date-range.entry.361b08f0.js +17 -0
- package/dist/swirl-icon-delete.entry.30c5c1ee.js +17 -0
- package/dist/swirl-icon-description.entry.6abae0e8.js +17 -0
- package/dist/swirl-icon-discover.entry.ba59a44e.js +17 -0
- package/dist/swirl-icon-double-arrow-left.entry.a5fa2721.js +17 -0
- package/dist/swirl-icon-double-arrow-right.entry.c88ba872.js +17 -0
- package/dist/swirl-icon-download.entry.42721c06.js +17 -0
- package/dist/swirl-icon-edit.entry.27e2a29a.js +17 -0
- package/dist/swirl-icon-emoji-mood.entry.de2168fe.js +17 -0
- package/dist/swirl-icon-emoji-satisfied.entry.32e0db6e.js +17 -0
- package/dist/swirl-icon-error_3.entry.23cd435a.js +56 -0
- package/dist/swirl-icon-expand-more.entry.b3b48b42.js +17 -0
- package/dist/swirl-icon-filter.entry.03d15319.js +17 -0
- package/dist/swirl-icon-folder.entry.c6401970.js +17 -0
- package/dist/swirl-icon-format-h-one.entry.8cadd550.js +17 -0
- package/dist/swirl-icon-gif.entry.d7d560b9.js +17 -0
- package/dist/swirl-icon-group-add.entry.42f3927e.js +17 -0
- package/dist/swirl-icon-group-assign.entry.cdfc2a9a.js +17 -0
- package/dist/swirl-icon-groups-custom.entry.94cd54d4.js +17 -0
- package/dist/swirl-icon-groups-filled.entry.d2b299a0.js +17 -0
- package/dist/swirl-icon-groups-outlined.entry.68110f5f.js +17 -0
- package/dist/swirl-icon-groups.entry.7b52773f.js +17 -0
- package/dist/swirl-icon-help.entry.d117d224.js +17 -0
- package/dist/swirl-icon-highlight.entry.45458438.js +17 -0
- package/dist/swirl-icon-home.entry.ffea2643.js +17 -0
- package/dist/swirl-icon-image.entry.ebb22d57.js +17 -0
- package/dist/swirl-icon-improve-text.entry.87a5e492.js +17 -0
- package/dist/swirl-icon-info.entry.52c62ada.js +17 -0
- package/dist/swirl-icon-insert-below.entry.de696181.js +17 -0
- package/dist/swirl-icon-insert-on-top.entry.0cf765d3.js +17 -0
- package/dist/swirl-icon-inventory.entry.e7195625.js +17 -0
- package/dist/swirl-icon-like.entry.2e14ba9b.js +17 -0
- package/dist/swirl-icon-link.entry.bb5085a2.js +17 -0
- package/dist/swirl-icon-lock-person.entry.b8433731.js +17 -0
- package/dist/swirl-icon-lock.entry.d7281a35.js +17 -0
- package/dist/swirl-icon-logout.entry.a69beb85.js +17 -0
- package/dist/swirl-icon-long-text.entry.086fe906.js +17 -0
- package/dist/swirl-icon-mail.entry.90a3ccc4.js +17 -0
- package/dist/swirl-icon-manage-accounts.entry.dee2113c.js +17 -0
- package/dist/swirl-icon-mark-chat-read.entry.9498efd3.js +17 -0
- package/dist/swirl-icon-mark-chat-unread.entry.4f09c26a.js +17 -0
- package/dist/swirl-icon-mention.entry.a9f67c22.js +17 -0
- package/dist/swirl-icon-menu-filled.entry.e59223c8.js +17 -0
- package/dist/swirl-icon-menu-outlined.entry.de79a0b2.js +17 -0
- package/dist/swirl-icon-menu.entry.fc7bf22d.js +17 -0
- package/dist/swirl-icon-message.entry.b820c5a1.js +17 -0
- package/dist/swirl-icon-mic.entry.5822c59c.js +17 -0
- package/dist/swirl-icon-more-horizontal.entry.7d3a8710.js +17 -0
- package/dist/swirl-icon-news-filled.entry.4a5bf3ab.js +17 -0
- package/dist/swirl-icon-news-outlined.entry.7ac5345b.js +17 -0
- package/dist/swirl-icon-notifications-active.entry.c5e7bf02.js +17 -0
- package/dist/swirl-icon-notifications-off.entry.39f48267.js +17 -0
- package/dist/swirl-icon-notifications.entry.d1db0a12.js +17 -0
- package/dist/swirl-icon-open-in-full.entry.88f52ffe.js +17 -0
- package/dist/swirl-icon-open-in-new.entry.3c1c0e70.js +17 -0
- package/dist/swirl-icon-pause-circle.entry.cd2e5f9e.js +17 -0
- package/dist/swirl-icon-pause.entry.687dd24e.js +17 -0
- package/dist/swirl-icon-people-alt.entry.b76529d4.js +17 -0
- package/dist/swirl-icon-person-off.entry.2775268a.js +17 -0
- package/dist/swirl-icon-person.entry.57275ca5.js +17 -0
- package/dist/swirl-icon-phone.entry.c5f47f81.js +17 -0
- package/dist/swirl-icon-play-arrow.entry.26280a6b.js +17 -0
- package/dist/swirl-icon-poll.entry.24788fe9.js +17 -0
- package/dist/swirl-icon-print.entry.cf8aa941.js +17 -0
- package/dist/swirl-icon-recieved.entry.16fc1aa0.js +17 -0
- package/dist/swirl-icon-reply.entry.09bffb40.js +17 -0
- package/dist/swirl-icon-report.entry.803f0403.js +17 -0
- package/dist/swirl-icon-roadmap.entry.3ffab30d.js +17 -0
- package/dist/swirl-icon-search-strong.entry.5d2b23cb.js +17 -0
- package/dist/swirl-icon-search.entry.d68b61f9.js +17 -0
- package/dist/swirl-icon-secure.entry.8d4d2b9c.js +17 -0
- package/dist/swirl-icon-send.entry.2b82872e.js +17 -0
- package/dist/swirl-icon-settings.entry.1e929864.js +17 -0
- package/dist/swirl-icon-short-text.entry.73801734.js +17 -0
- package/dist/swirl-icon-simplify.entry.413061f3.js +17 -0
- package/dist/swirl-icon-spellcheck.entry.a946c908.js +17 -0
- package/dist/swirl-icon-stop.entry.0c8b21b3.js +17 -0
- package/dist/swirl-icon-sync.entry.6f002cab.js +17 -0
- package/dist/swirl-icon-tasks-filled.entry.905208ce.js +17 -0
- package/dist/swirl-icon-tasks-outlined.entry.69893e5a.js +17 -0
- package/dist/swirl-icon-time-filled.entry.5118c56c.js +17 -0
- package/dist/swirl-icon-time-outlined.entry.2289a356.js +17 -0
- package/dist/swirl-icon-translate.entry.bdba5fac.js +17 -0
- package/dist/swirl-icon-tree-structure.entry.43cd78ef.js +17 -0
- package/dist/swirl-icon-undo.entry.d7e7ea40.js +17 -0
- package/dist/swirl-icon-unlock-person.entry.245d9be9.js +17 -0
- package/dist/swirl-icon-user-add.entry.0054b073.js +17 -0
- package/dist/swirl-icon-user-assign.entry.d4e5543f.js +17 -0
- package/dist/swirl-icon-video-camera.entry.797b8e28.js +17 -0
- package/dist/swirl-icon-video-library.entry.4d2f0731.js +17 -0
- package/dist/swirl-icon-voice.entry.ce8471dd.js +17 -0
- package/dist/swirl-icon.entry.176c73f4.js +16 -0
- package/dist/swirl-image-grid-item.entry.1c92d9a1.js +19 -0
- package/dist/swirl-image-grid.entry.f759570d.js +25 -0
- package/dist/swirl-inline-notification.entry.2160dcb6.js +17 -0
- package/dist/swirl-inline-status.entry.5397827b.js +36 -0
- package/dist/swirl-lightbox.entry.1258a9dc.js +131 -0
- package/dist/swirl-link.entry.562be9b0.js +17 -0
- package/dist/swirl-list.entry.3533e6c1.js +18 -0
- package/dist/swirl-menu-item.entry.c987b0f9.js +76 -0
- package/dist/swirl-menu.entry.bb36d68d.js +166 -0
- package/dist/swirl-modal.entry.8545ad1c.js +118 -0
- package/dist/swirl-option-list-section.entry.c3ade3d4.js +15 -0
- package/dist/swirl-option-list_2.entry.bd00e9dc.js +210 -0
- package/dist/swirl-pagination.entry.471f5873.js +38 -0
- package/dist/swirl-pdf-reader.entry.dbd37982.js +98 -0
- package/dist/swirl-popover_2.entry.e45966ae.js +177 -0
- package/dist/swirl-progress-indicator.entry.244caaf6.js +17 -0
- package/dist/swirl-radio-group.entry.0ae54e53.js +35 -0
- package/dist/swirl-radio.entry.cdfac28b.js +29 -0
- package/dist/swirl-resource-list-file-item.entry.4c50dd4a.js +35 -0
- package/dist/swirl-search.entry.002c73f2.js +50 -0
- package/dist/swirl-select.entry.6467db20.js +79 -0
- package/dist/swirl-shell-layout.entry.62ba60c3.js +85 -0
- package/dist/swirl-shell-navigation-item.entry.91b49950.js +136 -0
- package/dist/swirl-skeleton-box.entry.5c0428ca.js +31 -0
- package/dist/swirl-skeleton-text.entry.924203e6.js +38 -0
- package/dist/swirl-stack.entry.bef2eb97.js +17 -0
- package/dist/swirl-status-indicator.entry.5fe381d5.js +17 -0
- package/dist/swirl-switch.entry.57a8e80c.js +55 -0
- package/dist/swirl-symbol-account-circle.entry.33ff8e3a.js +17 -0
- package/dist/swirl-symbol-alternate-email.entry.7da7c845.js +17 -0
- package/dist/swirl-symbol-android.entry.bf4bbe6b.js +17 -0
- package/dist/swirl-symbol-announcement.entry.8993582b.js +17 -0
- package/dist/swirl-symbol-backup.entry.8d96216d.js +17 -0
- package/dist/swirl-symbol-beach-access.entry.56b385aa.js +17 -0
- package/dist/swirl-symbol-bookmark.entry.538be734.js +17 -0
- package/dist/swirl-symbol-cloud.entry.a2e031c5.js +17 -0
- package/dist/swirl-symbol-coronavirus.entry.7b565347.js +17 -0
- package/dist/swirl-symbol-desktop-windows.entry.3b148f81.js +17 -0
- package/dist/swirl-symbol-directions-car-filled.entry.317ab14a.js +17 -0
- package/dist/swirl-symbol-edit-calendar.entry.d2a64bb9.js +17 -0
- package/dist/swirl-symbol-email.entry.9cfaa4d2.js +17 -0
- package/dist/swirl-symbol-emoji-food-beverage.entry.3f9c9e01.js +17 -0
- package/dist/swirl-symbol-event-menu.entry.54a2bf4e.js +17 -0
- package/dist/swirl-symbol-facebook.entry.4553184a.js +17 -0
- package/dist/swirl-symbol-favorite.entry.2c9c7a78.js +17 -0
- package/dist/swirl-symbol-fitness-center.entry.26364c64.js +17 -0
- package/dist/swirl-symbol-flag.entry.95bff9f4.js +17 -0
- package/dist/swirl-symbol-folder.entry.87817dd9.js +17 -0
- package/dist/swirl-symbol-globe.entry.dacfeb5a.js +17 -0
- package/dist/swirl-symbol-groups.entry.399985e4.js +17 -0
- package/dist/swirl-symbol-help.entry.d884a11e.js +17 -0
- package/dist/swirl-symbol-image.entry.a6e56ccf.js +17 -0
- package/dist/swirl-symbol-info-menu.entry.f809ed59.js +17 -0
- package/dist/swirl-symbol-instagram.entry.1512e9b3.js +17 -0
- package/dist/swirl-symbol-ios.entry.56949a46.js +17 -0
- package/dist/swirl-symbol-language.entry.b47fb5c1.js +17 -0
- package/dist/swirl-symbol-leaderboard.entry.2f74c121.js +17 -0
- package/dist/swirl-symbol-lightbulb.entry.3bb1d749.js +17 -0
- package/dist/swirl-symbol-linkedin.entry.ae55477b.js +17 -0
- package/dist/swirl-symbol-location-on.entry.ed4ba5c5.js +17 -0
- package/dist/swirl-symbol-loyalty.entry.74ef2180.js +17 -0
- package/dist/swirl-symbol-maps-home-work.entry.93df095c.js +17 -0
- package/dist/swirl-symbol-notifications.entry.d4dc1955.js +17 -0
- package/dist/swirl-symbol-open-in-new.entry.288d063a.js +17 -0
- package/dist/swirl-symbol-pedal-bike.entry.91c0a151.js +17 -0
- package/dist/swirl-symbol-pinterest.entry.6b83e6df.js +17 -0
- package/dist/swirl-symbol-policy.entry.b54305f1.js +17 -0
- package/dist/swirl-symbol-push-pin.entry.51183455.js +17 -0
- package/dist/swirl-symbol-redeem.entry.4e4e4309.js +17 -0
- package/dist/swirl-symbol-report-problem.entry.99c33202.js +17 -0
- package/dist/swirl-symbol-restaurant.entry.082d53e9.js +17 -0
- package/dist/swirl-symbol-roadmap.entry.3704828e.js +17 -0
- package/dist/swirl-symbol-room.entry.c1818bfb.js +17 -0
- package/dist/swirl-symbol-savings.entry.e881d2ac.js +17 -0
- package/dist/swirl-symbol-settings-voice.entry.47c52d64.js +17 -0
- package/dist/swirl-symbol-shopping-cart.entry.352b3b43.js +17 -0
- package/dist/swirl-symbol-smartphone.entry.9adf156e.js +17 -0
- package/dist/swirl-symbol-star.entry.bc31986d.js +17 -0
- package/dist/swirl-symbol-supervisor-account.entry.822989a8.js +17 -0
- package/dist/swirl-symbol-thumbs-up-down.entry.991030ac.js +17 -0
- package/dist/swirl-symbol-twitter.entry.cc122704.js +17 -0
- package/dist/swirl-symbol-wb-sunny.entry.85d7ceb7.js +17 -0
- package/dist/swirl-symbol-wechat.entry.d36b55ff.js +17 -0
- package/dist/swirl-symbol-weibo.entry.5e44d3d2.js +17 -0
- package/dist/swirl-symbol-work.entry.ceb7e06f.js +17 -0
- package/dist/swirl-symbol-xing.entry.c525dbdd.js +17 -0
- package/dist/swirl-symbol-youtube.entry.8e29b40e.js +17 -0
- package/dist/swirl-symbol.entry.d2bb6d18.js +16 -0
- package/dist/swirl-tab-bar.entry.5b121baa.js +33 -0
- package/dist/swirl-tab.entry.ce9ecb2f.js +17 -0
- package/dist/swirl-table-cell.entry.0786f246.js +15 -0
- package/dist/swirl-table-column.entry.d1695dea.js +28 -0
- package/dist/swirl-table-row-group.entry.847b500b.js +19 -0
- package/dist/swirl-table-row.entry.7e3632b7.js +27 -0
- package/dist/swirl-table.entry.45de7a03.js +133 -0
- package/dist/swirl-tabs.entry.fddd66a4.js +62 -0
- package/dist/swirl-text-input.entry.f491a11d.js +85 -0
- package/dist/swirl-text.entry.5dafa051.js +292 -0
- package/dist/swirl-theme-provider.entry.9e7b2687.js +89 -0
- package/dist/swirl-time-input.entry.f73e1530.js +77 -0
- package/dist/swirl-toast-provider.entry.bdedbabb.js +38 -0
- package/dist/swirl-toast.entry.da5981d7.js +50 -0
- package/dist/swirl-toolbar.entry.d3b712e4.js +56 -0
- package/dist/swirl-tooltip.entry.302000cf.js +95 -0
- package/dist/swirl-tree-navigation-item.entry.ed1a5937.js +25 -0
- package/dist/swirl-video-thumbnail.entry.370b16e1.js +88 -0
- package/dist/swirl-visually-hidden.entry.d86c6ecd.js +15 -0
- package/dist/utils-9f141e25.a4ae3adc.js +61 -0
- package/dist/v4-fa4bb814.196482d9.js +33 -0
- package/dist/vite-env.d.ts +1 -0
- package/dist/wc-datepicker.entry.0537b021.js +274 -0
- package/package.json +33 -0
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { r as e, h as s, H as l } from "./index.e5965a8a.js";
|
|
2
|
+
import "react";
|
|
3
|
+
import "react-dom";
|
|
4
|
+
const t = ":host{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);word-break:break-word;-webkit-hyphens:auto;hyphens:auto;transition:box-shadow 0.15s}:host(.table-cell--has-shadow-right){box-shadow:var(--swirl-table-sticky-right-shadow)}:host(.table-cell--has-shadow-left){box-shadow:var(--swirl-table-sticky-left-shadow)}:host *{box-sizing:border-box}", o = class {
|
|
5
|
+
constructor(a) {
|
|
6
|
+
e(this, a);
|
|
7
|
+
}
|
|
8
|
+
render() {
|
|
9
|
+
return s(l, { class: "table-cell", role: "cell" }, s("slot", null));
|
|
10
|
+
}
|
|
11
|
+
};
|
|
12
|
+
o.style = t;
|
|
13
|
+
export {
|
|
14
|
+
o as swirl_table_cell
|
|
15
|
+
};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { r as e, h as t, H as i, g as r } from "./index.e5965a8a.js";
|
|
2
|
+
import { c as o } from "./utils-9f141e25.a4ae3adc.js";
|
|
3
|
+
import "react";
|
|
4
|
+
import "react-dom";
|
|
5
|
+
const a = ":host{display:flex;overflow:hidden;padding-top:var(--s-space-12);padding-right:var(--s-space-16);padding-bottom:var(--s-space-12);padding-left:var(--s-space-16);flex-basis:0;flex-grow:1;flex-shrink:1;align-items:center;border-bottom:var(--s-border-width-default) solid var(--s-border-default);color:var(--s-text-subdued);background-color:var(--s-surface-default);font-size:var(--s-font-size-sm);font-weight:var(--s-font-weight-medium);line-height:var(--s-line-height-sm);white-space:nowrap;letter-spacing:var(--s-letter-spacing-tighter);text-overflow:ellipsis;transition:box-shadow 0.15s;gap:var(--s-space-8)}:host(.table-column--has-shadow-right){box-shadow:var(--swirl-table-sticky-right-shadow)}:host(.table-column--has-shadow-left){box-shadow:var(--swirl-table-sticky-left-shadow)}:host *{box-sizing:border-box}.table-column__sort-indicator{display:inline-flex;width:1.25rem;height:1.25rem;flex-grow:0;flex-shrink:0}", n = class {
|
|
6
|
+
constructor(s) {
|
|
7
|
+
e(this, s), this.sort = void 0, this.sortable = void 0, this.maxWidth = void 0, this.minWidth = "fit-content", this.sticky = void 0, this.width = void 0;
|
|
8
|
+
}
|
|
9
|
+
componentDidRender() {
|
|
10
|
+
const s = o(this.el, "swirl-table");
|
|
11
|
+
s == null || s.rerender();
|
|
12
|
+
}
|
|
13
|
+
render() {
|
|
14
|
+
const s = {
|
|
15
|
+
flex: Boolean(this.width) ? `0 0 ${this.width}` : "",
|
|
16
|
+
maxWidth: this.maxWidth || "",
|
|
17
|
+
minWidth: this.minWidth || ""
|
|
18
|
+
};
|
|
19
|
+
return t(i, { "aria-sort": this.sort, class: "table-column", role: "columnheader", style: s }, t("span", null, t("slot", null)), this.sortable && t("span", { class: "table-column__sort-indicator" }, this.sort === "ascending" && t("swirl-icon-arrow-upward", { "aria-hidden": "true", size: 20 }), this.sort === "descending" && t("swirl-icon-arrow-downward", { "aria-hidden": "true", size: 20 }), !Boolean(this.sort) && " "));
|
|
20
|
+
}
|
|
21
|
+
get el() {
|
|
22
|
+
return r(this);
|
|
23
|
+
}
|
|
24
|
+
};
|
|
25
|
+
n.style = a;
|
|
26
|
+
export {
|
|
27
|
+
n as swirl_table_column
|
|
28
|
+
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { r as o, h as r, H as s, g as t } from "./index.e5965a8a.js";
|
|
2
|
+
import "react";
|
|
3
|
+
import "react-dom";
|
|
4
|
+
const a = ":host{position:relative;z-index:1;display:block}:host *{box-sizing:border-box}.table-row-group__header-row{padding:var(--s-space-12) var(--s-space-16);border-bottom:var(--s-border-width-default) solid var(--s-border-default);background-color:var(--s-surface-raised-default);font-size:var(--s-font-size-sm);font-weight:var(--s-font-weight-medium);line-height:var(--s-line-height-sm)}@media (min-width: 768px){.table-row-group__label{position:sticky;left:var(--s-space-16)}}", l = class {
|
|
5
|
+
constructor(e) {
|
|
6
|
+
o(this, e), this.label = void 0;
|
|
7
|
+
}
|
|
8
|
+
render() {
|
|
9
|
+
const e = this.el.querySelectorAll("swirl-table-row").length;
|
|
10
|
+
return r(s, { class: "table-row-group", role: "rowgroup" }, r("div", { class: "table-row-group__header-row", role: "row" }, r("span", { "aria-rowspan": e, class: "table-row-group__label", role: "rowheader" }, this.label)), r("slot", null));
|
|
11
|
+
}
|
|
12
|
+
get el() {
|
|
13
|
+
return t(this);
|
|
14
|
+
}
|
|
15
|
+
};
|
|
16
|
+
l.style = a;
|
|
17
|
+
export {
|
|
18
|
+
l as swirl_table_row_group
|
|
19
|
+
};
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { r as s, h as e, H as o, g as r } from "./index.e5965a8a.js";
|
|
2
|
+
import { c as l } from "./index-d280dafb.186cdb0e.js";
|
|
3
|
+
import { c as i } from "./utils-9f141e25.a4ae3adc.js";
|
|
4
|
+
import "react";
|
|
5
|
+
import "react-dom";
|
|
6
|
+
const a = ":host{display:flex}:host(.table-row--highlighted){--swirl-ghost-button-background-default:transparent}:host(.table-row--highlighted) ::slotted(.table-cell){background-color:rgba(240, 242, 255, 1);}:host ::slotted(.table-cell){border-bottom:var(--s-border-width-default) solid var(--s-border-default)}:host *{box-sizing:border-box}", d = class {
|
|
7
|
+
constructor(t) {
|
|
8
|
+
s(this, t), this.highlighted = void 0, this.index = void 0;
|
|
9
|
+
}
|
|
10
|
+
componentDidLoad() {
|
|
11
|
+
const t = i(this.el, "swirl-table");
|
|
12
|
+
t == null || t.rerender();
|
|
13
|
+
}
|
|
14
|
+
render() {
|
|
15
|
+
const t = l("table-row", {
|
|
16
|
+
"table-row--highlighted": this.highlighted
|
|
17
|
+
});
|
|
18
|
+
return e(o, { "aria-rowindex": this.index, class: t, role: "row" }, e("slot", null));
|
|
19
|
+
}
|
|
20
|
+
get el() {
|
|
21
|
+
return r(this);
|
|
22
|
+
}
|
|
23
|
+
};
|
|
24
|
+
d.style = a;
|
|
25
|
+
export {
|
|
26
|
+
d as swirl_table_row
|
|
27
|
+
};
|
|
@@ -0,0 +1,133 @@
|
|
|
1
|
+
import { r as g, h as r, H as _, g as v } from "./index.e5965a8a.js";
|
|
2
|
+
import { d as S, i as R } from "./utils-9f141e25.a4ae3adc.js";
|
|
3
|
+
import "react";
|
|
4
|
+
import "react-dom";
|
|
5
|
+
var x = function(t) {
|
|
6
|
+
var l = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 0, o = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, i = void 0, s = void 0, n = void 0, a = [];
|
|
7
|
+
return function() {
|
|
8
|
+
var m = C(l), p = new Date().getTime(), b = !i || p - i > m;
|
|
9
|
+
i = p;
|
|
10
|
+
for (var y = arguments.length, c = Array(y), d = 0; d < y; d++)
|
|
11
|
+
c[d] = arguments[d];
|
|
12
|
+
if (b && o.leading)
|
|
13
|
+
return o.accumulate ? Promise.resolve(t.call(this, [c])).then(function(u) {
|
|
14
|
+
return u[0];
|
|
15
|
+
}) : Promise.resolve(t.call.apply(t, [this].concat(c)));
|
|
16
|
+
if (s ? clearTimeout(n) : s = E(), a.push(c), n = setTimeout(w.bind(this), m), o.accumulate) {
|
|
17
|
+
var f = a.length - 1;
|
|
18
|
+
return s.promise.then(function(u) {
|
|
19
|
+
return u[f];
|
|
20
|
+
});
|
|
21
|
+
}
|
|
22
|
+
return s.promise;
|
|
23
|
+
};
|
|
24
|
+
function w() {
|
|
25
|
+
var h = s;
|
|
26
|
+
clearTimeout(n), Promise.resolve(o.accumulate ? t.call(this, a) : t.apply(this, a[a.length - 1])).then(h.resolve, h.reject), a = [], s = null;
|
|
27
|
+
}
|
|
28
|
+
};
|
|
29
|
+
function C(e) {
|
|
30
|
+
return typeof e == "function" ? e() : e;
|
|
31
|
+
}
|
|
32
|
+
function E() {
|
|
33
|
+
var e = {};
|
|
34
|
+
return e.promise = new Promise(function(t, l) {
|
|
35
|
+
e.resolve = t, e.reject = l;
|
|
36
|
+
}), e;
|
|
37
|
+
}
|
|
38
|
+
const L = `:host{position:relative;display:block}:host *{box-sizing:border-box}.table__container{position:relative;overflow:auto;width:100%}.table__container--scrolled{--swirl-table-sticky-right-shadow:0.0625rem 0 0 0 var(--s-border-default),
|
|
39
|
+
-0.0625rem 0 0 0 var(--s-border-default),
|
|
40
|
+
0 0.25rem 1rem rgba(25, 26, 28, 0.04),
|
|
41
|
+
0 0.0625rem 0.25rem rgba(25, 26, 28, 0.16)}.table__container--scrollable:not(.table__container--scrolled-to-end){--swirl-table-sticky-left-shadow:0.0625rem 0 0 0 var(--s-border-default),
|
|
42
|
+
-0.0625rem 0 0 0 var(--s-border-default),
|
|
43
|
+
0 0.25rem 1rem rgba(25, 26, 28, 0.04),
|
|
44
|
+
0 0.0625rem 0.25rem rgba(25, 26, 28, 0.16)}.table__table{width:-webkit-max-content;width:-moz-max-content;width:max-content;min-width:max(20rem, 100%)}.table__header ::slotted(*){display:flex}.table__empty-row{display:flex}.table__empty-row-cell{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>*{flex-grow:1}`, q = class {
|
|
45
|
+
constructor(e) {
|
|
46
|
+
g(this, e), this.triggerRerender = S(async () => {
|
|
47
|
+
await this.updateLayout(), this.updateScrolledState(), this.updateEmptyState();
|
|
48
|
+
}, 0, !0), this.updateLayout = x(async () => {
|
|
49
|
+
this.resetCellStyles(), this.resetColumnStyles(), this.resetEmptyRowStyles(), this.resetRowGroupStyles(), this.layoutEmptyRow(), this.layoutRowGroups(), this.layOutCells();
|
|
50
|
+
}, 16, { leading: !0 }), this.onScroll = () => {
|
|
51
|
+
this.updateScrolledState();
|
|
52
|
+
}, this.onSlotChange = async () => {
|
|
53
|
+
await this.updateLayout(), this.updateScrolledState(), this.updateEmptyState();
|
|
54
|
+
}, this.caption = void 0, this.emptyStateLabel = "No results found.", this.label = void 0, this.empty = void 0, this.scrollable = void 0, this.scrolled = void 0, this.scrolledToEnd = void 0;
|
|
55
|
+
}
|
|
56
|
+
async componentDidRender() {
|
|
57
|
+
await this.updateLayout(), this.updateScrolledState(), this.updateEmptyState();
|
|
58
|
+
}
|
|
59
|
+
async onWindowResize() {
|
|
60
|
+
await this.updateLayout(), this.updateScrolledState();
|
|
61
|
+
}
|
|
62
|
+
async rerender() {
|
|
63
|
+
this.triggerRerender();
|
|
64
|
+
}
|
|
65
|
+
resetEmptyRowStyles() {
|
|
66
|
+
const e = this.el.shadowRoot.querySelector(".table__empty-row");
|
|
67
|
+
!Boolean(e) || (e.style.width = "");
|
|
68
|
+
}
|
|
69
|
+
resetRowGroupStyles() {
|
|
70
|
+
Array.from(this.el.querySelectorAll("swirl-table-row-group")).forEach((t) => {
|
|
71
|
+
const l = t.shadowRoot.querySelector(".table-row-group__header-row");
|
|
72
|
+
!Boolean(l) || (t.shadowRoot.querySelector(".table-row-group__header-row").style.width = "");
|
|
73
|
+
});
|
|
74
|
+
}
|
|
75
|
+
resetColumnStyles() {
|
|
76
|
+
this.getColumns().forEach((t) => {
|
|
77
|
+
t.classList.remove("table-column--has-shadow"), t.style.right = "", t.style.left = "", t.style.position = "", t.style.zIndex = "";
|
|
78
|
+
});
|
|
79
|
+
}
|
|
80
|
+
resetCellStyles() {
|
|
81
|
+
this.getCells().forEach((t) => {
|
|
82
|
+
t.classList.remove("table-cell--has-shadow"), t.style.flex = "", t.style.left = "", t.style.right = "", t.style.position = "", t.style.zIndex = "";
|
|
83
|
+
});
|
|
84
|
+
}
|
|
85
|
+
updateScrolledState() {
|
|
86
|
+
const e = R(), t = this.container.scrollWidth > this.container.clientWidth, l = this.container.scrollLeft > 0, o = Math.ceil(this.container.clientWidth + this.container.scrollLeft) >= Math.floor(this.container.scrollWidth);
|
|
87
|
+
t !== this.scrollable && (t && !e ? this.container.classList.add("table__container--scrollable") : this.container.classList.remove("table__container--scrollable")), l !== this.scrolled && (l && !e ? this.container.classList.add("table__container--scrolled") : this.container.classList.remove("table__container--scrolled")), o !== this.scrolledToEnd && (o && !e ? this.container.classList.add("table__container--scrolled-to-end") : this.container.classList.remove("table__container--scrolled-to-end"));
|
|
88
|
+
}
|
|
89
|
+
getColumns() {
|
|
90
|
+
return Array.from(this.el.querySelectorAll("swirl-table-column"));
|
|
91
|
+
}
|
|
92
|
+
getCells() {
|
|
93
|
+
return Array.from(this.el.querySelectorAll("swirl-table-cell"));
|
|
94
|
+
}
|
|
95
|
+
layoutEmptyRow() {
|
|
96
|
+
const e = this.el.shadowRoot.querySelector(".table__empty-row");
|
|
97
|
+
if (!Boolean(e))
|
|
98
|
+
return;
|
|
99
|
+
const t = `${this.el.shadowRoot.querySelector(".table__container").scrollWidth}px`;
|
|
100
|
+
e.style.width = t;
|
|
101
|
+
}
|
|
102
|
+
layoutRowGroups() {
|
|
103
|
+
var l;
|
|
104
|
+
const e = Array.from(this.el.querySelectorAll("swirl-table-row-group")), t = `${(l = this.el.shadowRoot.querySelector(".table__container")) == null ? void 0 : l.scrollWidth}px`;
|
|
105
|
+
e.forEach((o) => {
|
|
106
|
+
const i = o.shadowRoot.querySelector(".table-row-group__header-row");
|
|
107
|
+
!Boolean(i) || (o.shadowRoot.querySelector(".table-row-group__header-row").style.width = t);
|
|
108
|
+
});
|
|
109
|
+
}
|
|
110
|
+
layOutCells() {
|
|
111
|
+
const e = this.getColumns(), t = this.getCells();
|
|
112
|
+
e.forEach((l, o) => {
|
|
113
|
+
const i = t.filter((n, a) => (o - a) % e.length === 0), s = l.width || `${l.getBoundingClientRect().width}px`;
|
|
114
|
+
i.forEach((n) => {
|
|
115
|
+
n.style.flex = Boolean(s) ? `0 0 ${s}` : "";
|
|
116
|
+
});
|
|
117
|
+
});
|
|
118
|
+
}
|
|
119
|
+
updateEmptyState() {
|
|
120
|
+
const e = this.el.querySelector('[slot="rows"]');
|
|
121
|
+
this.empty = !Boolean(e) || e.children.length === 0;
|
|
122
|
+
}
|
|
123
|
+
render() {
|
|
124
|
+
return r(_, null, r("div", { class: "table" }, r("div", { class: "table__container", onScroll: this.onScroll, ref: (e) => this.container = e }, r("div", { "aria-describedby": Boolean(this.caption) ? "caption" : void 0, "aria-label": this.label, role: "table", class: "table__table" }, this.caption && r("swirl-visually-hidden", null, r("div", { id: "caption" }, this.caption)), r("div", { role: "rowgroup" }, r("div", { class: "table__header", role: "row" }, r("slot", { name: "columns", onSlotchange: this.onSlotChange }))), r("div", { class: "table__body" }, r("slot", { name: "rows", onSlotchange: this.onSlotChange }), this.empty && r("div", { class: "table__empty-row", role: "row" }, r("div", { "aria-colspan": this.getColumns().length, class: "table__empty-row-cell", role: "cell" }, r("swirl-text", { align: "center", size: "sm" }, this.emptyStateLabel))))))));
|
|
125
|
+
}
|
|
126
|
+
get el() {
|
|
127
|
+
return v(this);
|
|
128
|
+
}
|
|
129
|
+
};
|
|
130
|
+
q.style = L;
|
|
131
|
+
export {
|
|
132
|
+
q as swirl_table
|
|
133
|
+
};
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import { r as e, c as b, h as s, H as c, g as n } from "./index.e5965a8a.js";
|
|
2
|
+
import "react";
|
|
3
|
+
import "react-dom";
|
|
4
|
+
const r = ".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%}", h = class {
|
|
5
|
+
constructor(t) {
|
|
6
|
+
e(this, t), this.tabActivated = b(this, "tabActivated", 7), this.tabs = [], this.onActivateNextTab = () => {
|
|
7
|
+
this.activateNextTab();
|
|
8
|
+
}, this.onActivatePreviousTab = () => {
|
|
9
|
+
this.activatePreviousTab();
|
|
10
|
+
}, this.onActivateTab = (i) => {
|
|
11
|
+
this.activateTab(i.detail);
|
|
12
|
+
}, this.initialTab = void 0, this.label = void 0, this.activeTab = void 0, this.tabBarTabs = [];
|
|
13
|
+
}
|
|
14
|
+
componentWillLoad() {
|
|
15
|
+
this.collectTabs(), this.updateTabBarTabs();
|
|
16
|
+
}
|
|
17
|
+
async activateTab(t) {
|
|
18
|
+
if (this.activeTab === t)
|
|
19
|
+
return;
|
|
20
|
+
this.activeTab = t, this.tabs.forEach((a) => a.active = !1);
|
|
21
|
+
const i = this.tabs.find((a) => a.tabId === t);
|
|
22
|
+
!Boolean(i) || (i.active = !0, this.tabActivated.emit(i), this.updateTabBarTabs());
|
|
23
|
+
}
|
|
24
|
+
activateNextTab() {
|
|
25
|
+
const t = this.tabs.findIndex((a) => a.tabId === this.activeTab), i = Math.min(this.tabs.length - 1, t + 1);
|
|
26
|
+
this.activateTab(this.tabs[i].tabId), requestAnimationFrame(() => {
|
|
27
|
+
var a;
|
|
28
|
+
(a = this.el.querySelector(".tabs__tab--active")) == null || a.focus();
|
|
29
|
+
});
|
|
30
|
+
}
|
|
31
|
+
activatePreviousTab() {
|
|
32
|
+
const t = this.tabs.findIndex((a) => a.tabId === this.activeTab), i = Math.max(0, t - 1);
|
|
33
|
+
this.activateTab(this.tabs[i].tabId), requestAnimationFrame(() => {
|
|
34
|
+
var a;
|
|
35
|
+
(a = this.el.querySelector(".tabs__tab--active")) == null || a.focus();
|
|
36
|
+
});
|
|
37
|
+
}
|
|
38
|
+
collectTabs() {
|
|
39
|
+
if (this.tabs = Array.from(this.el.querySelectorAll("swirl-tab")), this.tabs.length === 0)
|
|
40
|
+
return;
|
|
41
|
+
const t = this.tabs.find((i) => i.tabId === this.initialTab);
|
|
42
|
+
this.activateTab(Boolean(t) ? t.tabId : this.tabs[0].tabId);
|
|
43
|
+
}
|
|
44
|
+
updateTabBarTabs() {
|
|
45
|
+
this.tabBarTabs = this.tabs.map((t) => ({
|
|
46
|
+
icon: t.icon,
|
|
47
|
+
id: t.tabId,
|
|
48
|
+
label: t.label,
|
|
49
|
+
active: this.activeTab === t.tabId
|
|
50
|
+
}));
|
|
51
|
+
}
|
|
52
|
+
render() {
|
|
53
|
+
return s(c, null, s("div", { class: "tabs" }, s("swirl-tab-bar", { label: this.label, onActivateNextTab: this.onActivateNextTab, onActivatePreviousTab: this.onActivatePreviousTab, onActivateTab: this.onActivateTab, tabs: this.tabBarTabs })), s("slot", null));
|
|
54
|
+
}
|
|
55
|
+
get el() {
|
|
56
|
+
return n(this);
|
|
57
|
+
}
|
|
58
|
+
};
|
|
59
|
+
h.style = r;
|
|
60
|
+
export {
|
|
61
|
+
h as swirl_tabs
|
|
62
|
+
};
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
import { r as h, c as n, h as i, H as d } from "./index.e5965a8a.js";
|
|
2
|
+
import { c } from "./index-d280dafb.186cdb0e.js";
|
|
3
|
+
import { g as x } from "./utils-9f141e25.a4ae3adc.js";
|
|
4
|
+
import "react";
|
|
5
|
+
import "react-dom";
|
|
6
|
+
const w = '.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--show-password.sc-swirl-text-input .text-input__input.sc-swirl-text-input{width:100%}.text-input--disabled.sc-swirl-text-input .text-input__character-counter.sc-swirl-text-input{color:var(--s-text-disabled)}.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-disabled);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)}', f = class {
|
|
7
|
+
constructor(e) {
|
|
8
|
+
h(this, e), this.inputBlur = n(this, "inputBlur", 7), this.inputFocus = n(this, "inputFocus", 7), this.valueChange = n(this, "valueChange", 7), this.desktopMediaQuery = x(), this.desktopMediaQueryHandler = (t) => {
|
|
9
|
+
this.updateIconSize(t.matches);
|
|
10
|
+
}, this.clear = () => {
|
|
11
|
+
this.inputEl.value = "", this.value = "", this.valueChange.emit(""), this.inputEl.focus();
|
|
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
|
+
}, this.autoComplete = "on", this.autoFocus = void 0, this.autoGrow = void 0, this.autoSelect = void 0, this.clearable = void 0, this.clearButtonLabel = "Clear input", this.disabled = void 0, this.disableDynamicWidth = void 0, this.swirlAriaAutocomplete = void 0, this.swirlAriaControls = void 0, this.swirlAriaDescribedby = void 0, this.swirlAriaExpanded = void 0, this.swirlRole = void 0, this.inline = void 0, this.invalid = void 0, this.maxLength = void 0, this.max = void 0, this.min = void 0, this.mode = void 0, this.placeholder = void 0, this.prefixLabel = void 0, this.required = void 0, this.rows = 1, this.showCharacterCounter = void 0, this.spellCheck = void 0, this.suffixLabel = void 0, this.step = void 0, this.passwordToggleLabel = "Toggle password display", this.type = "text", this.value = void 0, this.iconSize = 24, this.showPassword = !1;
|
|
38
|
+
}
|
|
39
|
+
componentDidLoad() {
|
|
40
|
+
this.updateIconSize(this.desktopMediaQuery.matches), this.desktopMediaQuery.onchange = this.desktopMediaQueryHandler, this.autoFocus && setTimeout(() => {
|
|
41
|
+
this.inputEl.focus();
|
|
42
|
+
});
|
|
43
|
+
}
|
|
44
|
+
componentDidRender() {
|
|
45
|
+
this.adjustInputSize();
|
|
46
|
+
}
|
|
47
|
+
disconnectedCallback() {
|
|
48
|
+
var e, t;
|
|
49
|
+
(t = (e = this.desktopMediaQuery).removeEventListener) == null || t.call(e, "change", this.desktopMediaQueryHandler);
|
|
50
|
+
}
|
|
51
|
+
watchValue(e, t) {
|
|
52
|
+
e !== t && this.valueChange.emit(e);
|
|
53
|
+
}
|
|
54
|
+
updateIconSize(e) {
|
|
55
|
+
this.iconSize = e ? 20 : 24;
|
|
56
|
+
}
|
|
57
|
+
adjustInputSize() {
|
|
58
|
+
(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"));
|
|
59
|
+
}
|
|
60
|
+
handleAutoSelect(e) {
|
|
61
|
+
!this.autoSelect || e.target.select();
|
|
62
|
+
}
|
|
63
|
+
render() {
|
|
64
|
+
var u;
|
|
65
|
+
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, r = this.type === "password" && !this.disabled, a = this.clearable && !this.disabled && Boolean(this.value) && !r && !s && !this.showCharacterCounter, l = this.type === "password" && this.showPassword ? "text" : this.type, o = c("text-input", `text-input--type-${this.type}`, {
|
|
66
|
+
"text-input--auto-grow": this.autoGrow,
|
|
67
|
+
"text-input--clearable": this.clearable,
|
|
68
|
+
"text-input--disabled": this.disabled,
|
|
69
|
+
"text-input--disable-dynamic-width": this.disableDynamicWidth || Boolean(this.placeholder),
|
|
70
|
+
"text-input--has-suffix": Boolean(this.suffixLabel),
|
|
71
|
+
"text-input--inline": this.inline,
|
|
72
|
+
"text-input--show-password": this.type === "password" && this.showPassword
|
|
73
|
+
});
|
|
74
|
+
return i(d, null, i("div", { class: o }, this.prefixLabel && i("span", { class: "text-input__prefix" }, this.prefixLabel), i(e, { "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: (p) => this.inputEl = p, required: this.required, role: this.swirlRole, rows: this.rows > 1 ? this.rows : this.autoGrow ? 1 : void 0, spellcheck: this.spellCheck, step: this.type === "number" ? this.step : void 0, type: l, value: this.value }, this.rows > 1 && this.value), this.suffixLabel && i("span", { class: "text-input__suffix" }, this.suffixLabel), a && i("button", { "aria-label": this.clearButtonLabel, class: "text-input__clear-button", onClick: this.clear, part: "text-input__clear-button", type: "button" }, i("swirl-icon-cancel", { size: this.iconSize })), r && i("button", { "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", { class: "text-input__stepper" }, i("button", { "aria-hidden": "true", class: "text-input__step-button", onClick: this.increaseValue, tabIndex: -1, type: "button" }, i("swirl-icon-expand-less", { size: this.iconSize })), i("button", { "aria-hidden": "true", class: "text-input__step-button", onClick: this.decreaseValue, tabIndex: -1, type: "button" }, i("swirl-icon-expand-more", { size: this.iconSize }))), this.showCharacterCounter && i("span", { class: "text-input__character-counter" }, ((u = this.value) == null ? void 0 : u.length) || 0, " ", Boolean(this.maxLength) ? `/ ${this.maxLength}` : "")));
|
|
75
|
+
}
|
|
76
|
+
static get watchers() {
|
|
77
|
+
return {
|
|
78
|
+
value: ["watchValue"]
|
|
79
|
+
};
|
|
80
|
+
}
|
|
81
|
+
};
|
|
82
|
+
f.style = w;
|
|
83
|
+
export {
|
|
84
|
+
f as swirl_text_input
|
|
85
|
+
};
|