@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.
- package/dist/index.d.ts +1 -1
- package/dist/stencil-generated/components.d.ts +1622 -0
- package/dist/swirl-components-react.js +38085 -476
- package/dist/swirl-components-react.umd.cjs +65 -94
- package/package.json +2 -6
- package/dist/FileSaver.min-DISpcNDq.9430eab9.js +0 -79
- package/dist/bodyScrollLock.esm-B0kNlhKL.c7a66a82.js +0 -93
- package/dist/floating-ui.dom-CLsTbQHn.fe95e3a6.js +0 -988
- package/dist/index-D3UoejeY.7db8c51e.js +0 -7494
- package/dist/index-orsBiyT_.fc4357c3.js +0 -47
- package/dist/index.0e476e54.js +0 -4650
- package/dist/index.esm-DBTxpXCn.fccbd562.js +0 -187
- package/dist/media-query.service-CCYT6DU8.f0931fdc.js +0 -17
- package/dist/sortable.esm-CMrz6687.dac971cd.js +0 -1240
- package/dist/stencil-generated/index.d.ts +0 -474
- package/dist/stencil-generated/react-component-lib/createComponent.d.ts +0 -10
- package/dist/stencil-generated/react-component-lib/createOverlayComponent.d.ts +0 -21
- package/dist/stencil-generated/react-component-lib/index.d.ts +0 -2
- package/dist/stencil-generated/react-component-lib/interfaces.d.ts +0 -29
- package/dist/stencil-generated/react-component-lib/utils/attachProps.d.ts +0 -16
- package/dist/stencil-generated/react-component-lib/utils/case.d.ts +0 -2
- package/dist/stencil-generated/react-component-lib/utils/index.d.ts +0 -10
- package/dist/swirl-accordion-item.entry.5294ec10.js +0 -38
- package/dist/swirl-accordion.entry.47c30825.js +0 -39
- package/dist/swirl-action-list-item.entry.fb87b949.js +0 -38
- package/dist/swirl-action-list-section.entry.74577720.js +0 -15
- package/dist/swirl-action-list_8.entry.c0d11c64.js +0 -171
- package/dist/swirl-app-bar.entry.87fa040b.js +0 -49
- package/dist/swirl-app-icon.entry.a0d9b1db.js +0 -30
- package/dist/swirl-app-layout.entry.93e98b11.js +0 -205
- package/dist/swirl-autocomplete.entry.e6155023.js +0 -117
- package/dist/swirl-avatar-group.entry.5f7b3b48.js +0 -37
- package/dist/swirl-avatar.entry.e3ce764f.js +0 -72
- package/dist/swirl-badge.entry.9d51fc44.js +0 -19
- package/dist/swirl-banner.entry.962a7215.js +0 -51
- package/dist/swirl-box.entry.21137732.js +0 -109
- package/dist/swirl-button-group.entry.309a1839.js +0 -19
- package/dist/swirl-button.entry.62d32407.js +0 -61
- package/dist/swirl-card.entry.20063ee9.js +0 -49
- package/dist/swirl-carousel-slide.entry.61dbe677.js +0 -23
- package/dist/swirl-carousel.entry.03be4fae.js +0 -91
- package/dist/swirl-checkbox.entry.2c4507d9.js +0 -28
- package/dist/swirl-chip.entry.3638b41e.js +0 -42
- package/dist/swirl-color-input.entry.9607d054.js +0 -272
- package/dist/swirl-columns.entry.0c549e8d.js +0 -18
- package/dist/swirl-console-layout.entry.ad1777cb.js +0 -93
- package/dist/swirl-data-cell-stack.entry.a3b92efa.js +0 -25
- package/dist/swirl-data-cell.entry.6c01b738.js +0 -34
- package/dist/swirl-date-input.entry.c382bdb6.js +0 -146
- package/dist/swirl-date-picker_2.entry.496df017.js +0 -47
- package/dist/swirl-description-list-item.entry.1b164b37.js +0 -24
- package/dist/swirl-description-list.entry.e233393e.js +0 -15
- package/dist/swirl-dialog.entry.07392ba1.js +0 -69
- package/dist/swirl-emoji-clap.entry.f838b761.js +0 -17
- package/dist/swirl-emoji-happy.entry.fcd3c8a5.js +0 -17
- package/dist/swirl-emoji-idea.entry.c2548d7d.js +0 -17
- package/dist/swirl-emoji-love.entry.807091fc.js +0 -17
- package/dist/swirl-emoji-sad.entry.30a8e8b1.js +0 -17
- package/dist/swirl-emoji-thumbs-up.entry.f08ef4d2.js +0 -17
- package/dist/swirl-emoji.entry.65c1179c.js +0 -16
- package/dist/swirl-empty-state.entry.d9c4b201.js +0 -23
- package/dist/swirl-file-chip.entry.dcdaab9a.js +0 -59
- package/dist/swirl-file-uploader.entry.a6376f6e.js +0 -31
- package/dist/swirl-file-viewer-audio_7.entry.bbc65449.js +0 -18783
- package/dist/swirl-form-control.entry.c1a70ce4.js +0 -121
- package/dist/swirl-form-group.entry.6c84e80b.js +0 -17
- package/dist/swirl-heading.entry.e7529c35.js +0 -26
- package/dist/swirl-icon-add-moderator.entry.a6eb66cf.js +0 -19
- package/dist/swirl-icon-add-photo.entry.33f3e8d8.js +0 -19
- package/dist/swirl-icon-add-reaction.entry.d3f40fd8.js +0 -19
- package/dist/swirl-icon-admin-panel-settings.entry.a50b4a76.js +0 -19
- package/dist/swirl-icon-ai-filled.entry.18a663f4.js +0 -19
- package/dist/swirl-icon-ai.entry.2a32f232.js +0 -19
- package/dist/swirl-icon-apps.entry.3351a933.js +0 -19
- package/dist/swirl-icon-arrow-back_5.entry.ef93212c.js +0 -71
- package/dist/swirl-icon-arrow-downward_2.entry.316dda8e.js +0 -32
- package/dist/swirl-icon-arrow-left_3.entry.68811e2c.js +0 -45
- package/dist/swirl-icon-arrow-right-small.entry.55d7df92.js +0 -19
- package/dist/swirl-icon-aspect-ratio.entry.b1ebc68f.js +0 -19
- package/dist/swirl-icon-attachment_6.entry.8539855f.js +0 -84
- package/dist/swirl-icon-autorenew.entry.a5a354e4.js +0 -19
- package/dist/swirl-icon-bar-chart.entry.5a0bc789.js +0 -19
- package/dist/swirl-icon-beach-access-filled.entry.bec907f4.js +0 -19
- package/dist/swirl-icon-beach-access.entry.8939d641.js +0 -19
- package/dist/swirl-icon-block.entry.8972d4d5.js +0 -19
- package/dist/swirl-icon-bookmark-filled.entry.a3cfb778.js +0 -19
- package/dist/swirl-icon-bookmark.entry.aa250b81.js +0 -19
- package/dist/swirl-icon-calendar-add-on-filled.entry.e960eb71.js +0 -19
- package/dist/swirl-icon-calendar-respond.entry.85a4bb24.js +0 -19
- package/dist/swirl-icon-calendar-today.entry.6b4a4506.js +0 -19
- package/dist/swirl-icon-call-end.entry.817adcc6.js +0 -19
- package/dist/swirl-icon-call.entry.bcd6e165.js +0 -19
- package/dist/swirl-icon-cancel-filled.entry.a9f3b10c.js +0 -19
- package/dist/swirl-icon-cancel-outline.entry.9cc1c496.js +0 -19
- package/dist/swirl-icon-cancel_4.entry.ce87c7a7.js +0 -58
- package/dist/swirl-icon-chat-bubble.entry.3754f362.js +0 -19
- package/dist/swirl-icon-chats-filled.entry.4723be8d.js +0 -19
- package/dist/swirl-icon-chats.entry.c59206b4.js +0 -19
- package/dist/swirl-icon-check-circle-filled.entry.0472d6e8.js +0 -19
- package/dist/swirl-icon-check-circle_2.entry.44733a9c.js +0 -32
- package/dist/swirl-icon-check-small_2.entry.fb9fdf9b.js +0 -66
- package/dist/swirl-icon-check-strong_2.entry.7bd65267.js +0 -32
- package/dist/swirl-icon-check.entry.d29bfff8.js +0 -19
- package/dist/swirl-icon-checkbox-filled.entry.4c9bdf21.js +0 -19
- package/dist/swirl-icon-chevron-left.entry.4eb1a080.js +0 -19
- package/dist/swirl-icon-chevron-right.entry.bef6e257.js +0 -19
- package/dist/swirl-icon-close-fullscreen.entry.424b0b11.js +0 -19
- package/dist/swirl-icon-close-small.entry.c5eafcd0.js +0 -19
- package/dist/swirl-icon-close.entry.7e97e55e.js +0 -19
- package/dist/swirl-icon-cloud-upload.entry.c4e3629f.js +0 -19
- package/dist/swirl-icon-column.entry.c0d502a3.js +0 -19
- package/dist/swirl-icon-comment.entry.9f1eedc8.js +0 -19
- package/dist/swirl-icon-contrast.entry.44c8cef1.js +0 -19
- package/dist/swirl-icon-copy.entry.bd1920a6.js +0 -19
- package/dist/swirl-icon-crop.entry.5cde943f.js +0 -19
- package/dist/swirl-icon-dark-mode.entry.db44f076.js +0 -19
- package/dist/swirl-icon-date-range.entry.af6a7aa7.js +0 -19
- package/dist/swirl-icon-delete.entry.596f4155.js +0 -19
- package/dist/swirl-icon-deployed-code.entry.c34ae231.js +0 -19
- package/dist/swirl-icon-description.entry.3c3fd04e.js +0 -19
- package/dist/swirl-icon-desktop.entry.a1d8fc60.js +0 -19
- package/dist/swirl-icon-directory-filled.entry.bc829eb3.js +0 -19
- package/dist/swirl-icon-directory.entry.16da61b1.js +0 -19
- package/dist/swirl-icon-discover.entry.fec9f1ca.js +0 -19
- package/dist/swirl-icon-dock-left.entry.6fe8d114.js +0 -19
- package/dist/swirl-icon-door-open.entry.cf7fbccb.js +0 -19
- package/dist/swirl-icon-dot.entry.29145055.js +0 -19
- package/dist/swirl-icon-double-arrow-right.entry.b815a94e.js +0 -19
- package/dist/swirl-icon-edit-note.entry.56e8dede.js +0 -19
- package/dist/swirl-icon-edit.entry.af16d49b.js +0 -19
- package/dist/swirl-icon-emoji-mood.entry.69180e36.js +0 -19
- package/dist/swirl-icon-emoji-satisfied.entry.766c5b66.js +0 -19
- package/dist/swirl-icon-emoji-symbols.entry.f614e8e9.js +0 -19
- package/dist/swirl-icon-error_3.entry.758289fb.js +0 -59
- package/dist/swirl-icon-expand-more.entry.154fc51a.js +0 -19
- package/dist/swirl-icon-experiment.entry.611e9595.js +0 -19
- package/dist/swirl-icon-file.entry.9d4bf48f.js +0 -19
- package/dist/swirl-icon-filter.entry.b67cbb25.js +0 -19
- package/dist/swirl-icon-folder-shared.entry.9407c286.js +0 -19
- package/dist/swirl-icon-format-h-one.entry.7302740f.js +0 -19
- package/dist/swirl-icon-format-list-bulleted.entry.55513e91.js +0 -19
- package/dist/swirl-icon-forward.entry.ded248ed.js +0 -19
- package/dist/swirl-icon-gif.entry.9b64fdbc.js +0 -19
- package/dist/swirl-icon-group-add.entry.7c6f3813.js +0 -19
- package/dist/swirl-icon-group-assign.entry.b17b4bc2.js +0 -19
- package/dist/swirl-icon-groups-filled.entry.3595cac3.js +0 -19
- package/dist/swirl-icon-groups.entry.e85a7a06.js +0 -19
- package/dist/swirl-icon-hamburger-menu.entry.4c326dcb.js +0 -19
- package/dist/swirl-icon-health-and-safety.entry.ce06d207.js +0 -19
- package/dist/swirl-icon-help-filled.entry.1de41152.js +0 -19
- package/dist/swirl-icon-help.entry.e78bf0c6.js +0 -19
- package/dist/swirl-icon-highlight.entry.cd0e292d.js +0 -19
- package/dist/swirl-icon-history.entry.2b4ad63b.js +0 -19
- package/dist/swirl-icon-home-filled.entry.5e2f6877.js +0 -19
- package/dist/swirl-icon-home.entry.ad10de0b.js +0 -19
- package/dist/swirl-icon-hr-resting.entry.e7735e58.js +0 -19
- package/dist/swirl-icon-improve-text.entry.e04ffeb9.js +0 -19
- package/dist/swirl-icon-info.entry.19a39662.js +0 -19
- package/dist/swirl-icon-insert-below.entry.c4cb0997.js +0 -19
- package/dist/swirl-icon-insert-chart.entry.0d696cd3.js +0 -19
- package/dist/swirl-icon-insert-on-top.entry.cd9d503f.js +0 -19
- package/dist/swirl-icon-inventory-off.entry.bcfc8043.js +0 -19
- package/dist/swirl-icon-inventory.entry.f5885a0c.js +0 -19
- package/dist/swirl-icon-iphone.entry.7c5ef281.js +0 -19
- package/dist/swirl-icon-key.entry.4482a2a7.js +0 -19
- package/dist/swirl-icon-keyboard-hide.entry.5c72f4d8.js +0 -19
- package/dist/swirl-icon-keyboard.entry.49a8a687.js +0 -19
- package/dist/swirl-icon-language.entry.4bdffbb5.js +0 -19
- package/dist/swirl-icon-light-mode.entry.cb097cee.js +0 -19
- package/dist/swirl-icon-like.entry.d0ab0715.js +0 -19
- package/dist/swirl-icon-link.entry.b8776d9b.js +0 -19
- package/dist/swirl-icon-live.entry.eb7d82ee.js +0 -19
- package/dist/swirl-icon-load.entry.5e6b7d42.js +0 -19
- package/dist/swirl-icon-location-on.entry.7df111ef.js +0 -19
- package/dist/swirl-icon-lock-open.entry.bd0446b7.js +0 -19
- package/dist/swirl-icon-lock-person.entry.c9cb98bc.js +0 -19
- package/dist/swirl-icon-lock.entry.f5d33ea8.js +0 -19
- package/dist/swirl-icon-login.entry.92a88721.js +0 -19
- package/dist/swirl-icon-logout.entry.17fa9c42.js +0 -19
- package/dist/swirl-icon-long-text.entry.2b009140.js +0 -19
- package/dist/swirl-icon-mail.entry.be2727f6.js +0 -19
- package/dist/swirl-icon-manage-accounts.entry.f5c4a64e.js +0 -19
- package/dist/swirl-icon-mark-chat-read.entry.63ca09f5.js +0 -19
- package/dist/swirl-icon-mark-chat-unread.entry.c397d062.js +0 -19
- package/dist/swirl-icon-mention.entry.f8ea0463.js +0 -19
- package/dist/swirl-icon-menu-book-filled.entry.c50384d3.js +0 -19
- package/dist/swirl-icon-menu-filled.entry.b4c5317c.js +0 -19
- package/dist/swirl-icon-menu.entry.4fed240a.js +0 -19
- package/dist/swirl-icon-message.entry.4a7df5a9.js +0 -19
- package/dist/swirl-icon-mic-off.entry.2698915b.js +0 -19
- package/dist/swirl-icon-mic.entry.1e0e0c18.js +0 -19
- package/dist/swirl-icon-more-horizontal.entry.8f60b2fe.js +0 -19
- package/dist/swirl-icon-more-vertikal.entry.ad00eb97.js +0 -19
- package/dist/swirl-icon-news-filled.entry.63390861.js +0 -19
- package/dist/swirl-icon-news-off.entry.d78a0922.js +0 -19
- package/dist/swirl-icon-news.entry.a76eeca0.js +0 -19
- package/dist/swirl-icon-next-plan.entry.b3e88585.js +0 -19
- package/dist/swirl-icon-note-stack-filled.entry.857233a4.js +0 -19
- package/dist/swirl-icon-note-stack.entry.5f2a0eb5.js +0 -19
- package/dist/swirl-icon-notifications-active.entry.bfd5a05d.js +0 -19
- package/dist/swirl-icon-notifications-off.entry.a7333607.js +0 -19
- package/dist/swirl-icon-notifications.entry.f2d1a91e.js +0 -19
- package/dist/swirl-icon-open-in-full.entry.5fbfea94.js +0 -19
- package/dist/swirl-icon-open-in-new.entry.83c9889c.js +0 -19
- package/dist/swirl-icon-patient-list.entry.195bf2c2.js +0 -19
- package/dist/swirl-icon-pause-circle.entry.3775a578.js +0 -19
- package/dist/swirl-icon-pause.entry.0d64236e.js +0 -19
- package/dist/swirl-icon-people-alt.entry.edbf06c5.js +0 -19
- package/dist/swirl-icon-person-check.entry.f21b2f75.js +0 -19
- package/dist/swirl-icon-person-off.entry.747e3831.js +0 -19
- package/dist/swirl-icon-person.entry.2d241312.js +0 -19
- package/dist/swirl-icon-phone.entry.69f19d1d.js +0 -19
- package/dist/swirl-icon-photo-camera.entry.9f43d86c.js +0 -19
- package/dist/swirl-icon-picture-in-picture.entry.a571048d.js +0 -19
- package/dist/swirl-icon-pin-off.entry.95940a3a.js +0 -19
- package/dist/swirl-icon-pin.entry.d9f2a744.js +0 -19
- package/dist/swirl-icon-place.entry.27872151.js +0 -19
- package/dist/swirl-icon-play-arrow.entry.9aa8a6ca.js +0 -19
- package/dist/swirl-icon-poll.entry.8d7f3f1f.js +0 -19
- package/dist/swirl-icon-post-approval.entry.062cad3a.js +0 -19
- package/dist/swirl-icon-present.entry.9127c31b.js +0 -19
- package/dist/swirl-icon-preview.entry.e36b1135.js +0 -19
- package/dist/swirl-icon-print.entry.a612b5db.js +0 -19
- package/dist/swirl-icon-public-off.entry.9096f6dd.js +0 -19
- package/dist/swirl-icon-public.entry.a96fcd7c.js +0 -19
- package/dist/swirl-icon-published-with-changes.entry.8d1322c1.js +0 -19
- package/dist/swirl-icon-ratio-four-to-three.entry.8e6c968d.js +0 -19
- package/dist/swirl-icon-ratio-freeform.entry.ec6bc1b2.js +0 -19
- package/dist/swirl-icon-ratio-sixteen-to-nine.entry.c971d434.js +0 -19
- package/dist/swirl-icon-ratio-square.entry.07727efc.js +0 -19
- package/dist/swirl-icon-ratio-three-to-four.entry.c4d2bc84.js +0 -19
- package/dist/swirl-icon-ratio-three-to-two.entry.d72a4af2.js +0 -19
- package/dist/swirl-icon-recieved.entry.9e2a992e.js +0 -19
- package/dist/swirl-icon-refresh.entry.3894e67e.js +0 -19
- package/dist/swirl-icon-remove-circle.entry.ff7d513a.js +0 -19
- package/dist/swirl-icon-remove-moderator.entry.9c54da6a.js +0 -19
- package/dist/swirl-icon-reply.entry.0bb8e50a.js +0 -19
- package/dist/swirl-icon-report.entry.d65c32fb.js +0 -19
- package/dist/swirl-icon-roadmap.entry.175d8873.js +0 -19
- package/dist/swirl-icon-rotate-left.entry.3d4cf93b.js +0 -19
- package/dist/swirl-icon-rotate-right.entry.a492e49b.js +0 -19
- package/dist/swirl-icon-screenshare-off.entry.f38cbce2.js +0 -19
- package/dist/swirl-icon-screenshare.entry.87aa7b2c.js +0 -19
- package/dist/swirl-icon-search-strong.entry.90f25ac2.js +0 -19
- package/dist/swirl-icon-search.entry.2a77d0ff.js +0 -19
- package/dist/swirl-icon-section.entry.9787ce40.js +0 -19
- package/dist/swirl-icon-secure.entry.1f74f830.js +0 -19
- package/dist/swirl-icon-sell.entry.cbb75022.js +0 -19
- package/dist/swirl-icon-send.entry.2d2f0d4c.js +0 -19
- package/dist/swirl-icon-settings.entry.24711d03.js +0 -19
- package/dist/swirl-icon-short-text.entry.4b69bace.js +0 -19
- package/dist/swirl-icon-simplify.entry.828ad046.js +0 -19
- package/dist/swirl-icon-spellcheck.entry.d26be768.js +0 -19
- package/dist/swirl-icon-stars.entry.c8c1a7c4.js +0 -19
- package/dist/swirl-icon-sticky-note.entry.0819898b.js +0 -19
- package/dist/swirl-icon-stop-circle.entry.51af07f2.js +0 -19
- package/dist/swirl-icon-stop.entry.97ddf8d6.js +0 -19
- package/dist/swirl-icon-sunny.entry.e2eb87b5.js +0 -19
- package/dist/swirl-icon-sync.entry.002b286b.js +0 -19
- package/dist/swirl-icon-tasks-filled.entry.00252ff0.js +0 -19
- package/dist/swirl-icon-tasks.entry.5aa8b016.js +0 -19
- package/dist/swirl-icon-terminal.entry.b238a607.js +0 -19
- package/dist/swirl-icon-time-filled.entry.dda53035.js +0 -19
- package/dist/swirl-icon-time.entry.48e8b8ed.js +0 -19
- package/dist/swirl-icon-today-filled.entry.b0afd102.js +0 -19
- package/dist/swirl-icon-translate.entry.34a98fb6.js +0 -19
- package/dist/swirl-icon-tree-structure.entry.23400f0d.js +0 -19
- package/dist/swirl-icon-undo.entry.5e0a8ee2.js +0 -19
- package/dist/swirl-icon-unlock-person.entry.f7787839.js +0 -19
- package/dist/swirl-icon-upload.entry.25e7b320.js +0 -19
- package/dist/swirl-icon-user-add.entry.a15f9066.js +0 -19
- package/dist/swirl-icon-user-assign.entry.376af42f.js +0 -19
- package/dist/swirl-icon-video-camera-off.entry.036e5df5.js +0 -19
- package/dist/swirl-icon-video-camera.entry.90d4bf7b.js +0 -19
- package/dist/swirl-icon-video-library.entry.c2f7aa19.js +0 -19
- package/dist/swirl-icon-view-agenda.entry.6c27f69e.js +0 -19
- package/dist/swirl-icon-voice.entry.5050a886.js +0 -19
- package/dist/swirl-icon-volume-up.entry.65a78ff4.js +0 -19
- package/dist/swirl-icon-web-asset-off.entry.0cb673d0.js +0 -19
- package/dist/swirl-icon-web-asset.entry.2a71a44c.js +0 -19
- package/dist/swirl-icon-work.entry.4a2083a8.js +0 -19
- package/dist/swirl-icon.entry.4d7af47f.js +0 -17
- package/dist/swirl-image-grid-item.entry.5ed62cbf.js +0 -93
- package/dist/swirl-image-grid.entry.27f29eca.js +0 -51
- package/dist/swirl-inline-notification.entry.c06299d7.js +0 -17
- package/dist/swirl-inline-status.entry.5cf0ff4b.js +0 -37
- package/dist/swirl-lightbox.entry.e5c29ea6.js +0 -152
- package/dist/swirl-link.entry.eb779f19.js +0 -17
- package/dist/swirl-list.entry.a378b5b6.js +0 -18
- package/dist/swirl-menu-item.entry.b6a45766.js +0 -86
- package/dist/swirl-menu.entry.4b858c00.js +0 -184
- package/dist/swirl-modal-shell.entry.ced927de.js +0 -45
- package/dist/swirl-modal.entry.964f2c0a.js +0 -177
- package/dist/swirl-option-list-section.entry.91145d26.js +0 -15
- package/dist/swirl-option-list_2.entry.29bd23e2.js +0 -293
- package/dist/swirl-pagination.entry.b43e8aae.js +0 -38
- package/dist/swirl-pdf-reader.entry.f4bf6ae6.js +0 -120
- package/dist/swirl-popover_2.entry.835664ad.js +0 -263
- package/dist/swirl-progress-indicator.entry.46e96df4.js +0 -17
- package/dist/swirl-radio-group.entry.be194877.js +0 -47
- package/dist/swirl-radio.entry.29ceebbb.js +0 -27
- package/dist/swirl-resource-list-file-item.entry.1821e790.js +0 -39
- package/dist/swirl-resource-list-item.entry.fad75ff5.js +0 -100
- package/dist/swirl-resource-list-section.entry.6992857e.js +0 -19
- package/dist/swirl-resource-list.entry.44618d0c.js +0 -158
- package/dist/swirl-search.entry.a4881f83.js +0 -51
- package/dist/swirl-select.entry.34e60f6f.js +0 -94
- package/dist/swirl-separator.entry.28612130.js +0 -29
- package/dist/swirl-shell-layout.entry.cd92e2de.js +0 -686
- package/dist/swirl-shell-navigation-item.entry.f4ee0081.js +0 -46
- package/dist/swirl-skeleton-box.entry.71f34516.js +0 -24
- package/dist/swirl-skeleton-text.entry.91dcab8a.js +0 -17
- package/dist/swirl-stack.entry.08dc85a8.js +0 -21
- package/dist/swirl-status-indicator.entry.d02c496a.js +0 -17
- package/dist/swirl-switch.entry.272c4ba2.js +0 -30
- package/dist/swirl-symbol-ac-unit.entry.86885c95.js +0 -17
- package/dist/swirl-symbol-account-circle.entry.eca73ba0.js +0 -17
- package/dist/swirl-symbol-alternate-email.entry.4c96c3df.js +0 -17
- package/dist/swirl-symbol-android.entry.3aabb332.js +0 -17
- package/dist/swirl-symbol-announcement.entry.53fbd841.js +0 -17
- package/dist/swirl-symbol-autorenew.entry.54fbabd2.js +0 -17
- package/dist/swirl-symbol-backup.entry.02adf0fe.js +0 -17
- package/dist/swirl-symbol-badge.entry.e7c9ecd9.js +0 -17
- package/dist/swirl-symbol-barcode-reader.entry.d53d8c07.js +0 -17
- package/dist/swirl-symbol-barcode-scanner.entry.5a6e9368.js +0 -17
- package/dist/swirl-symbol-battery-horiz.entry.6ce1afd7.js +0 -17
- package/dist/swirl-symbol-beach-access.entry.c87ddba7.js +0 -17
- package/dist/swirl-symbol-bolt.entry.0b417bc7.js +0 -17
- package/dist/swirl-symbol-bookmark.entry.c76e607d.js +0 -17
- package/dist/swirl-symbol-calendar.entry.566d6f9a.js +0 -17
- package/dist/swirl-symbol-campaign.entry.6af98f4f.js +0 -17
- package/dist/swirl-symbol-cards-star.entry.8aadfe8a.js +0 -17
- package/dist/swirl-symbol-cloud.entry.036cf708.js +0 -17
- package/dist/swirl-symbol-construction.entry.182c641e.js +0 -17
- package/dist/swirl-symbol-contacts.entry.584cf55d.js +0 -17
- package/dist/swirl-symbol-coronavirus.entry.f78cd123.js +0 -17
- package/dist/swirl-symbol-design-services.entry.2ca9436d.js +0 -17
- package/dist/swirl-symbol-desktop-windows.entry.ef6ca405.js +0 -17
- package/dist/swirl-symbol-directions-car-filled.entry.c933f535.js +0 -17
- package/dist/swirl-symbol-diversity.entry.7ebd590f.js +0 -17
- package/dist/swirl-symbol-draw.entry.5abb087e.js +0 -17
- package/dist/swirl-symbol-edit-calendar.entry.9f50df28.js +0 -17
- package/dist/swirl-symbol-email.entry.3b718c7a.js +0 -17
- package/dist/swirl-symbol-emergency.entry.c7143d75.js +0 -17
- package/dist/swirl-symbol-emoji-food-beverage.entry.e2d5fa89.js +0 -17
- package/dist/swirl-symbol-engineering.entry.12a4e5e0.js +0 -17
- package/dist/swirl-symbol-event-menu.entry.d828df39.js +0 -17
- package/dist/swirl-symbol-explore.entry.b549aa09.js +0 -17
- package/dist/swirl-symbol-extension.entry.01844a02.js +0 -17
- package/dist/swirl-symbol-facebook.entry.e075862f.js +0 -17
- package/dist/swirl-symbol-favorite.entry.7236e135.js +0 -17
- package/dist/swirl-symbol-fitness-center.entry.bb46abd9.js +0 -17
- package/dist/swirl-symbol-flag.entry.e158aeed.js +0 -17
- package/dist/swirl-symbol-flight.entry.40154cb1.js +0 -17
- package/dist/swirl-symbol-folder.entry.9566d75f.js +0 -17
- package/dist/swirl-symbol-globe.entry.4b67273f.js +0 -17
- package/dist/swirl-symbol-groups.entry.c335580b.js +0 -17
- package/dist/swirl-symbol-healing.entry.9f68504a.js +0 -17
- package/dist/swirl-symbol-health-and-safety.entry.9572624e.js +0 -17
- package/dist/swirl-symbol-help.entry.877353cb.js +0 -17
- package/dist/swirl-symbol-home-repair-service.entry.c65ccfb8.js +0 -17
- package/dist/swirl-symbol-home-storage.entry.27430dea.js +0 -17
- package/dist/swirl-symbol-id-card.entry.cb815b99.js +0 -17
- package/dist/swirl-symbol-image.entry.34620d05.js +0 -17
- package/dist/swirl-symbol-info-menu.entry.fc23e1cf.js +0 -17
- package/dist/swirl-symbol-instagram.entry.5452d0d7.js +0 -17
- package/dist/swirl-symbol-inventory-2.entry.171a2fb6.js +0 -17
- package/dist/swirl-symbol-inventory.entry.45407c7c.js +0 -17
- package/dist/swirl-symbol-ios.entry.ef2294e0.js +0 -17
- package/dist/swirl-symbol-key.entry.507c2c12.js +0 -17
- package/dist/swirl-symbol-language.entry.5d97cfab.js +0 -17
- package/dist/swirl-symbol-leaderboard.entry.8077c113.js +0 -17
- package/dist/swirl-symbol-lightbulb.entry.7827319e.js +0 -17
- package/dist/swirl-symbol-linkedin.entry.e0483e9e.js +0 -17
- package/dist/swirl-symbol-local-shipping.entry.37a81e80.js +0 -17
- package/dist/swirl-symbol-location-on.entry.c1c5f679.js +0 -17
- package/dist/swirl-symbol-loyalty.entry.69a23703.js +0 -17
- package/dist/swirl-symbol-map.entry.9f37e634.js +0 -17
- package/dist/swirl-symbol-maps-home-work.entry.ed2519d5.js +0 -17
- package/dist/swirl-symbol-menu-book.entry.cabbb0c0.js +0 -17
- package/dist/swirl-symbol-mop.entry.2fc183db.js +0 -17
- package/dist/swirl-symbol-nest-eco-leaf.entry.734466d4.js +0 -17
- package/dist/swirl-symbol-notifications.entry.a064cccc.js +0 -17
- package/dist/swirl-symbol-open-in-new.entry.b737b6f0.js +0 -17
- package/dist/swirl-symbol-orders.entry.b6c863e4.js +0 -17
- package/dist/swirl-symbol-package.entry.b7d05046.js +0 -17
- package/dist/swirl-symbol-palette.entry.e2187911.js +0 -17
- package/dist/swirl-symbol-partly-cloudy-day.entry.f8bab71a.js +0 -17
- package/dist/swirl-symbol-pedal-bike.entry.6eefc01f.js +0 -17
- package/dist/swirl-symbol-percent-discount.entry.66e324e0.js +0 -17
- package/dist/swirl-symbol-pets.entry.47bfce8e.js +0 -17
- package/dist/swirl-symbol-pinterest.entry.2b6a0588.js +0 -17
- package/dist/swirl-symbol-point-of-sale.entry.07f8df08.js +0 -17
- package/dist/swirl-symbol-policy.entry.9ef761f4.js +0 -17
- package/dist/swirl-symbol-precision-manufacturing.entry.8d254e62.js +0 -17
- package/dist/swirl-symbol-print.entry.b7b367c5.js +0 -17
- package/dist/swirl-symbol-push-pin.entry.d3aa7b84.js +0 -17
- package/dist/swirl-symbol-recycling.entry.7a6a0dc0.js +0 -17
- package/dist/swirl-symbol-redeem.entry.944bd5ac.js +0 -17
- package/dist/swirl-symbol-report-problem.entry.3d2933eb.js +0 -17
- package/dist/swirl-symbol-restaurant.entry.05fd0e88.js +0 -17
- package/dist/swirl-symbol-roadmap.entry.549abf68.js +0 -17
- package/dist/swirl-symbol-rocket-launch.entry.7941aa11.js +0 -17
- package/dist/swirl-symbol-room.entry.88a541a0.js +0 -17
- package/dist/swirl-symbol-savings.entry.a26509c9.js +0 -17
- package/dist/swirl-symbol-school.entry.3872b7c9.js +0 -17
- package/dist/swirl-symbol-sell.entry.113b39e8.js +0 -17
- package/dist/swirl-symbol-settings-voice.entry.155da2eb.js +0 -17
- package/dist/swirl-symbol-shopping-bag.entry.efb9d666.js +0 -17
- package/dist/swirl-symbol-shopping-cart.entry.ff0fe070.js +0 -17
- package/dist/swirl-symbol-smartphone.entry.4225fef2.js +0 -17
- package/dist/swirl-symbol-spa.entry.eab538cf.js +0 -17
- package/dist/swirl-symbol-sports-soccer.entry.a9d1c296.js +0 -17
- package/dist/swirl-symbol-star.entry.8c196964.js +0 -17
- package/dist/swirl-symbol-supervisor-account.entry.775d81b0.js +0 -17
- package/dist/swirl-symbol-task.entry.d8a61874.js +0 -17
- package/dist/swirl-symbol-tasks.entry.69ee247f.js +0 -17
- package/dist/swirl-symbol-thumbs-up-down.entry.6b6ef4ed.js +0 -17
- package/dist/swirl-symbol-timer.entry.43abd0c8.js +0 -17
- package/dist/swirl-symbol-tools-power-drill.entry.ca20534e.js +0 -17
- package/dist/swirl-symbol-train.entry.171d2856.js +0 -17
- package/dist/swirl-symbol-trophy.entry.4102de18.js +0 -17
- package/dist/swirl-symbol-twitter.entry.c3d5c43f.js +0 -17
- package/dist/swirl-symbol-video.entry.73f73784.js +0 -17
- package/dist/swirl-symbol-warehouse.entry.ed728eb9.js +0 -17
- package/dist/swirl-symbol-water-drop.entry.04d41843.js +0 -17
- package/dist/swirl-symbol-wb-sunny.entry.4b7f1f86.js +0 -17
- package/dist/swirl-symbol-wechat.entry.8ac429cf.js +0 -17
- package/dist/swirl-symbol-weibo.entry.740e17b8.js +0 -17
- package/dist/swirl-symbol-wifi.entry.5a0e5f59.js +0 -17
- package/dist/swirl-symbol-work.entry.83dca9b3.js +0 -17
- package/dist/swirl-symbol-xing.entry.b1702954.js +0 -17
- package/dist/swirl-symbol-youtube.entry.ee5279c9.js +0 -17
- package/dist/swirl-symbol.entry.7c26926c.js +0 -16
- package/dist/swirl-tab-bar.entry.0914bfe1.js +0 -65
- package/dist/swirl-tab.entry.4397d9e0.js +0 -17
- package/dist/swirl-table-cell.entry.13bca043.js +0 -15
- package/dist/swirl-table-column.entry.9290611f.js +0 -34
- package/dist/swirl-table-row-group.entry.b013be17.js +0 -35
- package/dist/swirl-table-row.entry.dad94401.js +0 -27
- package/dist/swirl-table.entry.fa1c44d2.js +0 -335
- package/dist/swirl-tabs.entry.491b0177.js +0 -63
- package/dist/swirl-text-input.entry.b6aea7d3.js +0 -93
- package/dist/swirl-text.entry.136adf15.js +0 -299
- package/dist/swirl-theme-provider.entry.0a843651.js +0 -96
- package/dist/swirl-thumbnail.entry.91acb04a.js +0 -20
- package/dist/swirl-time-input.entry.e6d3a3e6.js +0 -140
- package/dist/swirl-toast-provider.entry.7a0f91db.js +0 -81
- package/dist/swirl-toast.entry.f278b013.js +0 -55
- package/dist/swirl-toggle-button.entry.aada18b2.js +0 -21
- package/dist/swirl-toggle-group.entry.be636341.js +0 -62
- package/dist/swirl-toolbar.entry.4e5bed6a.js +0 -56
- package/dist/swirl-tooltip.entry.0a26b7d4.js +0 -114
- package/dist/swirl-tree-navigation-item.entry.dd705315.js +0 -73
- package/dist/swirl-tree-navigation.entry.1a95edea.js +0 -15
- package/dist/swirl-tree-view-item.entry.b143d3fd.js +0 -203
- package/dist/swirl-tree-view.config-BkSXzL50.94f4a648.js +0 -24
- package/dist/swirl-tree-view.entry.983ad325.js +0 -222
- package/dist/swirl-video-thumbnail.entry.b8216f3d.js +0 -15
- package/dist/swirl-visually-hidden.entry.d20b75ef.js +0 -15
- package/dist/utils-CCck-DTo.e4e43b6a.js +0 -119
- package/dist/v4-DD3477fe.2624487e.js +0 -27
- package/dist/wc-datepicker.entry.3cbe56b3.js +0 -380
|
@@ -1,380 +0,0 @@
|
|
|
1
|
-
import { r as H, c as N, h as n, H as V, g as E } from "./index.0e476e54.js";
|
|
2
|
-
import "react";
|
|
3
|
-
import "react-dom";
|
|
4
|
-
function w(e, t) {
|
|
5
|
-
const s = new Date(e);
|
|
6
|
-
return s.setDate(s.getDate() + t), s;
|
|
7
|
-
}
|
|
8
|
-
function K(e, t, s) {
|
|
9
|
-
const a = [], i = S(e), o = i.getDay() === 0 ? 7 : i.getDay(), r = M(e), l = r.getDay() === 0 ? 7 : r.getDay(), d = s === 1 ? 7 : s - 1, u = [], b = [];
|
|
10
|
-
{
|
|
11
|
-
let m = (7 - s + o) % 7, v = k(i);
|
|
12
|
-
for (; m > 0; )
|
|
13
|
-
u.push(v), v = k(v), m -= 1;
|
|
14
|
-
u.reverse();
|
|
15
|
-
let f = (7 - l + d) % 7, p = y(r);
|
|
16
|
-
for (; f > 0; )
|
|
17
|
-
b.push(p), p = y(p), f -= 1;
|
|
18
|
-
}
|
|
19
|
-
let h = i;
|
|
20
|
-
for (; h.getMonth() === e.getMonth(); )
|
|
21
|
-
a.push(h), h = y(h);
|
|
22
|
-
return [...u, ...a, ...b];
|
|
23
|
-
}
|
|
24
|
-
function S(e) {
|
|
25
|
-
return g(new Date(`${String(P(e)).padStart(4, "0")}-${String(W(e)).padStart(2, "0")}-01`));
|
|
26
|
-
}
|
|
27
|
-
function D(e) {
|
|
28
|
-
if (e instanceof Date)
|
|
29
|
-
return `${e.getFullYear()}-${String(e.getMonth() + 1).padStart(2, "0")}-${String(e.getDate()).padStart(2, "0")}`;
|
|
30
|
-
}
|
|
31
|
-
function M(e) {
|
|
32
|
-
const t = S(e);
|
|
33
|
-
return t.setMonth(t.getMonth() + 1), t.setDate(t.getDate() - 1), t;
|
|
34
|
-
}
|
|
35
|
-
function W(e) {
|
|
36
|
-
return e.getMonth() + 1;
|
|
37
|
-
}
|
|
38
|
-
function j(e) {
|
|
39
|
-
return new Array(12).fill(void 0).map((t, s) => {
|
|
40
|
-
const a = g(new Date(`2006-${String(s + 1).padStart(2, "0")}-01`));
|
|
41
|
-
return Intl.DateTimeFormat(e, {
|
|
42
|
-
month: "long"
|
|
43
|
-
}).format(a);
|
|
44
|
-
});
|
|
45
|
-
}
|
|
46
|
-
function y(e) {
|
|
47
|
-
return w(e, 1);
|
|
48
|
-
}
|
|
49
|
-
function B(e) {
|
|
50
|
-
const t = new Date(e);
|
|
51
|
-
return t.setDate(1), t.setMonth(t.getMonth() + 1), t;
|
|
52
|
-
}
|
|
53
|
-
function O(e) {
|
|
54
|
-
const t = new Date(e);
|
|
55
|
-
return t.setFullYear(t.getFullYear() + 1), t;
|
|
56
|
-
}
|
|
57
|
-
function k(e) {
|
|
58
|
-
return C(e, 1);
|
|
59
|
-
}
|
|
60
|
-
function T(e) {
|
|
61
|
-
const t = new Date(e);
|
|
62
|
-
return t.setDate(1), t.setMonth(t.getMonth() - 1), t;
|
|
63
|
-
}
|
|
64
|
-
function F(e) {
|
|
65
|
-
const t = new Date(e);
|
|
66
|
-
return t.setFullYear(t.getFullYear() - 1), t;
|
|
67
|
-
}
|
|
68
|
-
function U(e, t) {
|
|
69
|
-
return new Array(7).fill(void 0).map((s, a) => (e + a) % 7 + 1).map((s) => {
|
|
70
|
-
const a = g(new Date(`2006-01-0${s}`));
|
|
71
|
-
return [
|
|
72
|
-
Intl.DateTimeFormat(t, {
|
|
73
|
-
weekday: "short"
|
|
74
|
-
}).format(a).slice(0, 3),
|
|
75
|
-
Intl.DateTimeFormat(t, {
|
|
76
|
-
weekday: "long"
|
|
77
|
-
}).format(a)
|
|
78
|
-
];
|
|
79
|
-
});
|
|
80
|
-
}
|
|
81
|
-
function P(e) {
|
|
82
|
-
return e.getFullYear();
|
|
83
|
-
}
|
|
84
|
-
function A(e, t) {
|
|
85
|
-
if (!e || !t || !t.from || !t.to)
|
|
86
|
-
return !1;
|
|
87
|
-
const s = t.from < t.to ? t.from : t.to, a = t.from < t.to ? t.to : t.from;
|
|
88
|
-
return e >= s && e <= a;
|
|
89
|
-
}
|
|
90
|
-
function c(e, t) {
|
|
91
|
-
return !e || !t ? !1 : e.getFullYear() === t.getFullYear() && e.getMonth() === t.getMonth() && e.getDate() === t.getDate();
|
|
92
|
-
}
|
|
93
|
-
function g(e) {
|
|
94
|
-
const t = new Date(e);
|
|
95
|
-
return t.setMinutes(t.getMinutes() + t.getTimezoneOffset()), t;
|
|
96
|
-
}
|
|
97
|
-
function C(e, t) {
|
|
98
|
-
const s = new Date(e);
|
|
99
|
-
return s.setDate(s.getDate() - t), s;
|
|
100
|
-
}
|
|
101
|
-
const z = () => ".visually-hidden.sc-wc-datepicker{position:absolute;overflow:hidden;width:1px;height:1px;white-space:nowrap;clip:rect(0 0 0 0);clip-path:inset(50%)}", q = {
|
|
102
|
-
clearButton: "Clear value",
|
|
103
|
-
monthSelect: "Select month",
|
|
104
|
-
nextMonthButton: "Next month",
|
|
105
|
-
nextYearButton: "Next year",
|
|
106
|
-
picker: "Choose date",
|
|
107
|
-
previousMonthButton: "Previous month",
|
|
108
|
-
previousYearButton: "Previous year",
|
|
109
|
-
todayButton: "Show today",
|
|
110
|
-
yearSelect: "Select year"
|
|
111
|
-
}, G = class {
|
|
112
|
-
constructor(e) {
|
|
113
|
-
H(this, e), this.selectDate = N(this, "selectDate", 7), this.changeMonth = N(this, "changeMonth", 7), this.disabled = !1, this.disableDate = () => !1, this.elementClassName = "wc-datepicker", this.firstDayOfWeek = 0, this.labels = q, this.locale = (navigator == null ? void 0 : navigator.language) || "en-US", this.showClearButton = !1, this.showMonthStepper = !0, this.showTodayButton = !1, this.showYearStepper = !1, this.startDate = D(new Date()), this.maxSearchDays = 365, this.goToRangeStartOnSelect = !0, this.init = () => {
|
|
114
|
-
this.currentDate = this.startDate ? g(new Date(this.startDate)) : new Date(), this.updateWeekdays();
|
|
115
|
-
}, this.getAvailableDate = (t, s) => {
|
|
116
|
-
let a, i = !1;
|
|
117
|
-
switch (s) {
|
|
118
|
-
case "previousDay":
|
|
119
|
-
a = k(t);
|
|
120
|
-
break;
|
|
121
|
-
case "nextDay":
|
|
122
|
-
a = y(t);
|
|
123
|
-
break;
|
|
124
|
-
case "previousSameWeekDay":
|
|
125
|
-
a = C(t, 7);
|
|
126
|
-
break;
|
|
127
|
-
case "nextSameWeekDay":
|
|
128
|
-
a = w(t, 7);
|
|
129
|
-
break;
|
|
130
|
-
case "firstOfMonth":
|
|
131
|
-
a = S(t);
|
|
132
|
-
break;
|
|
133
|
-
case "lastOfMonth":
|
|
134
|
-
a = M(t);
|
|
135
|
-
break;
|
|
136
|
-
case "previousMonth":
|
|
137
|
-
a = T(t);
|
|
138
|
-
break;
|
|
139
|
-
case "nextMonth":
|
|
140
|
-
a = B(t);
|
|
141
|
-
break;
|
|
142
|
-
case "previousYear":
|
|
143
|
-
a = F(t);
|
|
144
|
-
break;
|
|
145
|
-
case "nextYear":
|
|
146
|
-
a = O(t);
|
|
147
|
-
break;
|
|
148
|
-
}
|
|
149
|
-
for (; this.disableDate(a) && !i; ) {
|
|
150
|
-
switch (s) {
|
|
151
|
-
case "previousDay":
|
|
152
|
-
case "lastOfMonth":
|
|
153
|
-
a = k(a);
|
|
154
|
-
break;
|
|
155
|
-
case "nextDay":
|
|
156
|
-
case "firstOfMonth":
|
|
157
|
-
case "previousMonth":
|
|
158
|
-
case "nextMonth":
|
|
159
|
-
case "previousYear":
|
|
160
|
-
case "nextYear":
|
|
161
|
-
a = y(a);
|
|
162
|
-
break;
|
|
163
|
-
case "previousSameWeekDay":
|
|
164
|
-
a = C(a, 7);
|
|
165
|
-
break;
|
|
166
|
-
case "nextSameWeekDay":
|
|
167
|
-
a = w(a, 7);
|
|
168
|
-
break;
|
|
169
|
-
}
|
|
170
|
-
switch (s) {
|
|
171
|
-
case "firstOfMonth":
|
|
172
|
-
case "lastOfMonth":
|
|
173
|
-
case "previousYear":
|
|
174
|
-
case "nextYear":
|
|
175
|
-
i = a.getMonth() !== t.getMonth();
|
|
176
|
-
break;
|
|
177
|
-
case "previousMonth":
|
|
178
|
-
i = a.getMonth() !== t.getMonth() - 1;
|
|
179
|
-
break;
|
|
180
|
-
case "nextMonth":
|
|
181
|
-
i = a.getMonth() !== t.getMonth() + 1;
|
|
182
|
-
break;
|
|
183
|
-
default:
|
|
184
|
-
i = !A(a, {
|
|
185
|
-
from: C(t, this.maxSearchDays),
|
|
186
|
-
to: w(t, this.maxSearchDays)
|
|
187
|
-
});
|
|
188
|
-
break;
|
|
189
|
-
}
|
|
190
|
-
}
|
|
191
|
-
return i ? t : a;
|
|
192
|
-
}, this.nextMonth = () => {
|
|
193
|
-
this.updateCurrentDate(B(this.currentDate));
|
|
194
|
-
}, this.nextYear = () => {
|
|
195
|
-
this.updateCurrentDate(O(this.currentDate));
|
|
196
|
-
}, this.previousMonth = () => {
|
|
197
|
-
this.updateCurrentDate(T(this.currentDate));
|
|
198
|
-
}, this.previousYear = () => {
|
|
199
|
-
this.updateCurrentDate(F(this.currentDate));
|
|
200
|
-
}, this.showToday = () => {
|
|
201
|
-
this.updateCurrentDate(new Date());
|
|
202
|
-
}, this.clear = () => {
|
|
203
|
-
this.value = void 0, this.selectDate.emit(void 0);
|
|
204
|
-
}, this.onClick = (t) => {
|
|
205
|
-
if (this.disabled)
|
|
206
|
-
return;
|
|
207
|
-
const s = t.target.closest("[data-date]");
|
|
208
|
-
if (!Boolean(s))
|
|
209
|
-
return;
|
|
210
|
-
const a = g(new Date(s.dataset.date));
|
|
211
|
-
this.updateCurrentDate(a), this.onSelectDate(a);
|
|
212
|
-
}, this.onMonthSelect = (t) => {
|
|
213
|
-
const s = +t.target.value - 1, a = this.currentDate.getDate(), i = new Date(this.currentDate.getFullYear(), s, 1), o = M(i).getDate(), r = Math.min(a, o), l = new Date(this.currentDate.getFullYear(), s, r);
|
|
214
|
-
this.updateCurrentDate(l);
|
|
215
|
-
}, this.onYearSelect = (t) => {
|
|
216
|
-
let s = +t.target.value;
|
|
217
|
-
const a = t.target;
|
|
218
|
-
isNaN(s) ? (s = new Date().getFullYear(), a.value = String(s)) : s < 0 ? (s = 0, a.value = String(s)) : s > 9999 && (s = 9999, a.value = String(s));
|
|
219
|
-
const i = this.currentDate.getDate(), o = this.currentDate.getMonth(), r = new Date();
|
|
220
|
-
r.setFullYear(s, o, 1);
|
|
221
|
-
const l = M(r).getDate(), d = Math.min(i, l), u = new Date();
|
|
222
|
-
u.setFullYear(s, o, d), this.updateCurrentDate(u);
|
|
223
|
-
}, this.onKeyDown = (t) => {
|
|
224
|
-
this.disabled || (t.code === "ArrowLeft" ? (t.preventDefault(), this.updateCurrentDate(this.getAvailableDate(this.currentDate, "previousDay"), !0)) : t.code === "ArrowRight" ? (t.preventDefault(), this.updateCurrentDate(this.getAvailableDate(this.currentDate, "nextDay"), !0)) : t.code === "ArrowUp" ? (t.preventDefault(), this.updateCurrentDate(this.getAvailableDate(this.currentDate, "previousSameWeekDay"), !0)) : t.code === "ArrowDown" ? (t.preventDefault(), this.updateCurrentDate(this.getAvailableDate(this.currentDate, "nextSameWeekDay"), !0)) : t.code === "PageUp" ? (t.preventDefault(), t.shiftKey ? this.updateCurrentDate(this.getAvailableDate(this.currentDate, "previousYear"), !0) : this.updateCurrentDate(this.getAvailableDate(this.currentDate, "previousMonth"), !0)) : t.code === "PageDown" ? (t.preventDefault(), t.shiftKey ? this.updateCurrentDate(this.getAvailableDate(this.currentDate, "nextYear"), !0) : this.updateCurrentDate(this.getAvailableDate(this.currentDate, "nextMonth"), !0)) : t.code === "Home" ? (t.preventDefault(), this.updateCurrentDate(this.getAvailableDate(this.currentDate, "firstOfMonth"), !0)) : t.code === "End" ? (t.preventDefault(), this.updateCurrentDate(this.getAvailableDate(this.currentDate, "lastOfMonth"), !0)) : (t.code === "Space" || t.code === "Enter") && (t.preventDefault(), this.onSelectDate(this.currentDate)));
|
|
225
|
-
}, this.onMouseEnter = (t) => {
|
|
226
|
-
if (this.disabled)
|
|
227
|
-
return;
|
|
228
|
-
const s = g(new Date(t.target.closest("td").dataset.date));
|
|
229
|
-
this.hoveredDate = s;
|
|
230
|
-
}, this.onMouseLeave = () => {
|
|
231
|
-
this.hoveredDate = void 0;
|
|
232
|
-
};
|
|
233
|
-
}
|
|
234
|
-
componentWillLoad() {
|
|
235
|
-
this.init();
|
|
236
|
-
}
|
|
237
|
-
watchFirstDayOfWeek() {
|
|
238
|
-
this.updateWeekdays();
|
|
239
|
-
}
|
|
240
|
-
watchLocale() {
|
|
241
|
-
Boolean(this.locale) || (this.locale = (navigator == null ? void 0 : navigator.language) || "en-US"), this.updateWeekdays();
|
|
242
|
-
}
|
|
243
|
-
watchRange() {
|
|
244
|
-
this.value = void 0, this.selectDate.emit(void 0);
|
|
245
|
-
}
|
|
246
|
-
watchStartDate() {
|
|
247
|
-
this.currentDate = this.startDate ? g(new Date(this.startDate)) : new Date();
|
|
248
|
-
}
|
|
249
|
-
watchValue() {
|
|
250
|
-
!Boolean(this.value) || (Array.isArray(this.value) ? this.currentDate = this.value.length > 1 && !this.goToRangeStartOnSelect ? this.value[1] : this.value[0] : this.value instanceof Date && (this.currentDate = this.value));
|
|
251
|
-
}
|
|
252
|
-
componentDidRender() {
|
|
253
|
-
this.moveFocusAfterMonthChanged && (this.focusDate(this.currentDate), this.moveFocusAfterMonthChanged = !1);
|
|
254
|
-
}
|
|
255
|
-
updateWeekdays() {
|
|
256
|
-
this.weekdays = U(this.firstDayOfWeek === 0 ? 7 : this.firstDayOfWeek, this.locale);
|
|
257
|
-
}
|
|
258
|
-
getClassName(e) {
|
|
259
|
-
return Boolean(e) ? `${this.elementClassName}__${e}` : this.elementClassName;
|
|
260
|
-
}
|
|
261
|
-
getCalendarRows() {
|
|
262
|
-
const e = K(this.currentDate, !0, this.firstDayOfWeek === 0 ? 7 : this.firstDayOfWeek), t = [];
|
|
263
|
-
for (let s = 0; s < e.length; s += 7) {
|
|
264
|
-
const a = e.slice(s, s + 7);
|
|
265
|
-
t.push(a);
|
|
266
|
-
}
|
|
267
|
-
return t;
|
|
268
|
-
}
|
|
269
|
-
getTitle() {
|
|
270
|
-
if (!!Boolean(this.value))
|
|
271
|
-
if (this.isRangeValue(this.value)) {
|
|
272
|
-
const e = Intl.DateTimeFormat(this.locale, {
|
|
273
|
-
day: "numeric",
|
|
274
|
-
month: "long",
|
|
275
|
-
year: "numeric"
|
|
276
|
-
}).format(this.value[0]), t = this.value[1] ? Intl.DateTimeFormat(this.locale, {
|
|
277
|
-
day: "numeric",
|
|
278
|
-
month: "long",
|
|
279
|
-
year: "numeric"
|
|
280
|
-
}).format(this.value[1]) : void 0;
|
|
281
|
-
return Boolean(t) ? `${e} - ${t}` : e;
|
|
282
|
-
} else
|
|
283
|
-
return Intl.DateTimeFormat(this.locale, {
|
|
284
|
-
day: "numeric",
|
|
285
|
-
month: "long",
|
|
286
|
-
year: "numeric"
|
|
287
|
-
}).format(this.value);
|
|
288
|
-
}
|
|
289
|
-
focusDate(e) {
|
|
290
|
-
var t;
|
|
291
|
-
(t = this.el.querySelector(`[data-date="${D(e)}"]`)) === null || t === void 0 || t.focus();
|
|
292
|
-
}
|
|
293
|
-
updateCurrentDate(e, t) {
|
|
294
|
-
const s = e.getMonth(), a = e.getFullYear();
|
|
295
|
-
if (a > 9999 || a < 0)
|
|
296
|
-
return;
|
|
297
|
-
(s !== this.currentDate.getMonth() || a !== this.currentDate.getFullYear()) && (this.changeMonth.emit({
|
|
298
|
-
month: W(e),
|
|
299
|
-
year: P(e),
|
|
300
|
-
day: e.getDate()
|
|
301
|
-
}), t && (this.moveFocusAfterMonthChanged = !0)), this.currentDate = e, t && this.focusDate(this.currentDate);
|
|
302
|
-
}
|
|
303
|
-
onSelectDate(e) {
|
|
304
|
-
var t, s;
|
|
305
|
-
if (!this.disableDate(e))
|
|
306
|
-
if (this.isRangeValue(this.value)) {
|
|
307
|
-
const a = ((t = this.value) === null || t === void 0 ? void 0 : t[0]) === void 0 || this.value.length === 2 ? [e] : [this.value[0], e];
|
|
308
|
-
a.length === 2 && a[0] > a[1] && a.reverse();
|
|
309
|
-
const i = a[1] === void 0 ? [D(a[0])] : [D(a[0]), D(a[1])];
|
|
310
|
-
this.value = a, this.selectDate.emit(i);
|
|
311
|
-
} else {
|
|
312
|
-
if (((s = this.value) === null || s === void 0 ? void 0 : s.getTime()) === e.getTime())
|
|
313
|
-
return;
|
|
314
|
-
this.value = e, this.selectDate.emit(D(e));
|
|
315
|
-
}
|
|
316
|
-
}
|
|
317
|
-
isRangeValue(e) {
|
|
318
|
-
return this.range;
|
|
319
|
-
}
|
|
320
|
-
render() {
|
|
321
|
-
const e = this.showTodayButton || this.showClearButton;
|
|
322
|
-
return n(V, null, n("div", { "aria-disabled": String(this.disabled), "aria-label": this.labels.picker, class: {
|
|
323
|
-
[this.getClassName()]: !0,
|
|
324
|
-
[`${this.getClassName()}--disabled`]: this.disabled
|
|
325
|
-
}, role: "group" }, n("div", { class: this.getClassName("header") }, n("span", { "aria-atomic": "true", "aria-live": "polite", class: "visually-hidden" }, this.getTitle()), this.showYearStepper && n("button", { "aria-label": this.labels.previousYearButton, class: this.getClassName("previous-year-button"), disabled: this.disabled, innerHTML: this.previousYearButtonContent || void 0, onClick: this.previousYear, type: "button" }, n("svg", { fill: "none", height: "24", "stroke-linecap": "round", "stroke-linejoin": "round", "stroke-width": "2", stroke: "currentColor", viewBox: "0 0 24 24", width: "24" }, n("polyline", { points: "11 17 6 12 11 7" }), n("polyline", { points: "18 17 13 12 18 7" }))), this.showMonthStepper && n("button", { "aria-label": this.labels.previousMonthButton, class: this.getClassName("previous-month-button"), disabled: this.disabled, innerHTML: this.previousMonthButtonContent || void 0, onClick: this.previousMonth, type: "button" }, n("svg", { fill: "none", height: "24", "stroke-linecap": "round", "stroke-linejoin": "round", "stroke-width": "2", stroke: "currentColor", viewBox: "0 0 24 24", width: "24" }, n("polyline", { points: "15 18 9 12 15 6" }))), n("span", { class: this.getClassName("current-month") }, n("select", { title: this.labels.monthSelect, "aria-label": this.labels.monthSelect, class: this.getClassName("month-select"), disabled: this.disabled, name: "month", onChange: this.onMonthSelect }, j(this.locale).map((t, s) => n("option", { key: t, selected: this.currentDate.getMonth() === s, value: s + 1 }, t))), n("input", { title: this.labels.yearSelect, "aria-label": this.labels.yearSelect, class: this.getClassName("year-select"), disabled: this.disabled, max: 9999, maxLength: 4, min: 1, name: "year", onChange: this.onYearSelect, type: "number", value: this.currentDate.getFullYear() })), this.showMonthStepper && n("button", { "aria-label": this.labels.nextMonthButton, class: this.getClassName("next-month-button"), disabled: this.disabled, innerHTML: this.nextMonthButtonContent || void 0, onClick: this.nextMonth, type: "button" }, n("svg", { fill: "none", height: "24", "stroke-linecap": "round", "stroke-linejoin": "round", "stroke-width": "2", stroke: "currentColor", viewBox: "0 0 24 24", width: "24" }, n("polyline", { points: "9 18 15 12 9 6" }))), this.showYearStepper && n("button", { "aria-label": this.labels.nextYearButton, class: this.getClassName("next-year-button"), disabled: this.disabled, innerHTML: this.nextYearButtonContent || void 0, onClick: this.nextYear, type: "button" }, n("svg", { fill: "none", height: "24", "stroke-linecap": "round", "stroke-linejoin": "round", "stroke-width": "2", stroke: "currentColor", viewBox: "0 0 24 24", width: "24" }, n("polyline", { points: "13 17 18 12 13 7" }), n("polyline", { points: "6 17 11 12 6 7" })))), n("div", { class: this.getClassName("body") }, n("table", { class: this.getClassName("calendar"), onKeyDown: this.onKeyDown, role: "grid" }, n("thead", { class: this.getClassName("calendar-header") }, n("tr", { class: this.getClassName("weekday-row") }, this.weekdays.map((t) => n("th", { "aria-label": t[1], abbr: t[1], class: this.getClassName("weekday"), key: t[0], scope: "col" }, n("span", null, t[0]))))), n("tbody", null, this.getCalendarRows().map((t) => {
|
|
326
|
-
const s = `row-${t[0].getMonth()}-${t[0].getDate()}`;
|
|
327
|
-
return n("tr", { class: this.getClassName("calendar-row"), key: s }, t.map((a) => {
|
|
328
|
-
var i, o, r, l, d;
|
|
329
|
-
const u = c(a, this.currentDate), b = a.getMonth() !== this.currentDate.getMonth(), h = Array.isArray(this.value) ? c(a, this.value[0]) || c(a, this.value[1]) : c(a, this.value), x = this.isRangeValue ? A(a, {
|
|
330
|
-
from: (i = this.value) === null || i === void 0 ? void 0 : i[0],
|
|
331
|
-
to: ((o = this.value) === null || o === void 0 ? void 0 : o[1]) || this.hoveredDate || this.currentDate
|
|
332
|
-
}) : !1, m = Boolean((r = this.value) === null || r === void 0 ? void 0 : r[0]) ? [
|
|
333
|
-
(l = this.value) === null || l === void 0 ? void 0 : l[0],
|
|
334
|
-
((d = this.value) === null || d === void 0 ? void 0 : d[1]) || this.hoveredDate
|
|
335
|
-
].sort((_, I) => _ - I) : [], v = this.range && c(m[0], a), Y = this.range && c(m[1], a), f = c(a, new Date()), p = this.disableDate(a), $ = `cell-${a.getMonth()}-${a.getDate()}`, L = {
|
|
336
|
-
[this.getClassName("date")]: !0,
|
|
337
|
-
[this.getClassName("date--current")]: u,
|
|
338
|
-
[this.getClassName("date--disabled")]: p,
|
|
339
|
-
[this.getClassName("date--overflowing")]: b,
|
|
340
|
-
[this.getClassName("date--today")]: f,
|
|
341
|
-
[this.getClassName("date--selected")]: h,
|
|
342
|
-
[this.getClassName("date--in-range")]: x,
|
|
343
|
-
[this.getClassName("date--start")]: v,
|
|
344
|
-
[this.getClassName("date--end")]: Y
|
|
345
|
-
}, R = h ? "strong" : f ? "em" : "span";
|
|
346
|
-
return n("td", { "aria-disabled": String(p), "aria-selected": h ? "true" : void 0, "aria-current": f ? "date" : h ? "true" : void 0, class: L, "data-date": D(a), key: $, onClick: this.onClick, onMouseEnter: this.onMouseEnter, onMouseLeave: this.onMouseLeave, role: "gridcell", tabIndex: c(a, this.currentDate) && !this.disabled ? 0 : -1 }, n(R, { "aria-hidden": "true" }, a.getDate()), n("span", { class: "visually-hidden" }, Intl.DateTimeFormat(this.locale, {
|
|
347
|
-
day: "numeric",
|
|
348
|
-
month: "long",
|
|
349
|
-
year: "numeric"
|
|
350
|
-
}).format(a)));
|
|
351
|
-
}));
|
|
352
|
-
})))), e && n("div", { class: this.getClassName("footer") }, this.showTodayButton && n("button", { class: this.getClassName("today-button"), disabled: this.disabled, innerHTML: this.todayButtonContent || void 0, onClick: this.showToday, type: "button" }, this.labels.todayButton), this.showClearButton && n("button", { class: this.getClassName("clear-button"), disabled: this.disabled, innerHTML: this.clearButtonContent || void 0, onClick: this.clear, type: "button" }, this.labels.clearButton))));
|
|
353
|
-
}
|
|
354
|
-
get el() {
|
|
355
|
-
return E(this);
|
|
356
|
-
}
|
|
357
|
-
static get watchers() {
|
|
358
|
-
return {
|
|
359
|
-
firstDayOfWeek: [{
|
|
360
|
-
watchFirstDayOfWeek: 0
|
|
361
|
-
}],
|
|
362
|
-
locale: [{
|
|
363
|
-
watchLocale: 0
|
|
364
|
-
}],
|
|
365
|
-
range: [{
|
|
366
|
-
watchRange: 0
|
|
367
|
-
}],
|
|
368
|
-
startDate: [{
|
|
369
|
-
watchStartDate: 0
|
|
370
|
-
}],
|
|
371
|
-
value: [{
|
|
372
|
-
watchValue: 0
|
|
373
|
-
}]
|
|
374
|
-
};
|
|
375
|
-
}
|
|
376
|
-
};
|
|
377
|
-
G.style = z();
|
|
378
|
-
export {
|
|
379
|
-
G as wc_datepicker
|
|
380
|
-
};
|