@getflip/swirl-components-react 0.9.0 → 0.11.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/file-manager.entry.7f94c2d2.js +58 -0
- package/dist/{index-6d2e18c6.289636d4.js → index-c3028f7d.557956d2.js} +0 -0
- package/dist/index.9489626d.js +1393 -0
- package/dist/stencil-generated/index.d.ts +168 -147
- package/dist/swirl-action-list-item.entry.447b2688.js +34 -0
- package/dist/swirl-action-list-section.entry.e84808c9.js +15 -0
- package/dist/{flip-action-list.entry.6018f4b6.js → swirl-action-list.entry.2fb802dc.js} +3 -3
- package/dist/{flip-app-layout_5.entry.3d4528f7.js → swirl-app-layout_5.entry.875542b9.js} +27 -23
- package/dist/swirl-autocomplete.entry.7be53f33.js +70 -0
- package/dist/{flip-avatar-group.entry.80f797ba.js → swirl-avatar-group.entry.38bafbf0.js} +7 -7
- package/dist/{flip-avatar.entry.19eb0d66.js → swirl-avatar.entry.6107d926.js} +7 -7
- package/dist/swirl-badge.entry.1f4d89cf.js +20 -0
- package/dist/swirl-banner.entry.2d29edfc.js +49 -0
- package/dist/swirl-button-group.entry.8ce93c3c.js +20 -0
- package/dist/swirl-button.entry.42b57f80.js +52 -0
- package/dist/{flip-card.entry.3a6a8462.js → swirl-card.entry.a09d5cdf.js} +3 -3
- package/dist/swirl-checkbox.entry.58064458.js +30 -0
- package/dist/{flip-chip.entry.fcfecaac.js → swirl-chip.entry.b6b676d6.js} +22 -14
- package/dist/swirl-components-react.js +170 -149
- package/dist/swirl-components-react.umd.cjs +69 -46
- package/dist/{flip-console-layout.entry.1df3e6c4.js → swirl-console-layout.entry.88cca8db.js} +21 -21
- package/dist/{flip-date-input.entry.672a5f90.js → swirl-date-input.entry.1ff3f34d.js} +680 -673
- package/dist/{flip-date-picker_2.entry.e34761be.js → swirl-date-picker_2.entry.e9905308.js} +79 -77
- package/dist/{flip-description-list-item.entry.2038c81f.js → swirl-description-list-item.entry.e5e7327a.js} +18 -3
- package/dist/{flip-description-list.entry.1fd450a5.js → swirl-description-list.entry.b451e1b2.js} +5 -5
- package/dist/swirl-dialog.entry.27d08ab3.js +45 -0
- package/dist/swirl-file-uploader.entry.6c075751.js +32 -0
- package/dist/{flip-file-viewer_7.entry.64afff8f.js → swirl-file-viewer_7.entry.2d664fd5.js} +19 -19
- package/dist/swirl-form-control.entry.89293c5d.js +65 -0
- package/dist/swirl-form-group.entry.f58b5fda.js +18 -0
- package/dist/swirl-heading.entry.1761ccaf.js +18 -0
- package/dist/swirl-icon-add-photo.entry.2be32855.js +18 -0
- package/dist/swirl-icon-add_4.entry.54bb7e89.js +51 -0
- package/dist/swirl-icon-admin-panel-settings.entry.a43bcc7d.js +18 -0
- package/dist/swirl-icon-arrow-back.entry.ee4ddf1e.js +18 -0
- package/dist/swirl-icon-arrow-downward_2.entry.74231d7a.js +29 -0
- package/dist/swirl-icon-arrow-forward.entry.a895e898.js +18 -0
- package/dist/swirl-icon-arrow-left_3.entry.6ea8dad5.js +40 -0
- package/dist/swirl-icon-arrow-right-small.entry.daf39424.js +18 -0
- package/dist/swirl-icon-attachment.entry.2cb8c35f.js +18 -0
- package/dist/swirl-icon-block.entry.0d7f0e2b.js +18 -0
- package/dist/swirl-icon-cancel_4.entry.2943f0c0.js +51 -0
- package/dist/swirl-icon-chat-bubble.entry.66624624.js +18 -0
- package/dist/swirl-icon-chats-filled.entry.83e0eeb7.js +18 -0
- package/dist/swirl-icon-chats-outlined.entry.f768aca8.js +18 -0
- package/dist/swirl-icon-check-circle.entry.03a596c7.js +18 -0
- package/dist/swirl-icon-check-small_3.entry.b2362b00.js +153 -0
- package/dist/swirl-icon-check-strong.entry.88cfb7b3.js +18 -0
- package/dist/swirl-icon-check.entry.360c5b8c.js +18 -0
- package/dist/swirl-icon-chevron-left.entry.d6f5077d.js +18 -0
- package/dist/swirl-icon-chevron-right.entry.4cbdaed5.js +18 -0
- package/dist/swirl-icon-close-small.entry.d223e192.js +18 -0
- package/dist/swirl-icon-close.entry.eee59783.js +18 -0
- package/dist/swirl-icon-cloud-upload.entry.b50d30c3.js +18 -0
- package/dist/swirl-icon-column.entry.07e869e3.js +18 -0
- package/dist/swirl-icon-comment.entry.221fe61a.js +18 -0
- package/dist/swirl-icon-copy.entry.d113e5bb.js +18 -0
- package/dist/swirl-icon-date-range.entry.a1eb0554.js +18 -0
- package/dist/swirl-icon-delete.entry.ebcf7073.js +18 -0
- package/dist/swirl-icon-description.entry.fb0d88a1.js +18 -0
- package/dist/swirl-icon-edit.entry.c6cf867f.js +18 -0
- package/dist/swirl-icon-emoji-mood.entry.bf9ee6c2.js +18 -0
- package/dist/swirl-icon-emoji-satisfied.entry.df8c1d60.js +18 -0
- package/dist/swirl-icon-error_3.entry.c21fbb54.js +58 -0
- package/dist/swirl-icon-expand-more.entry.bbde4949.js +18 -0
- package/dist/swirl-icon-file.entry.7ab04321.js +18 -0
- package/dist/swirl-icon-filter.entry.95211f5f.js +18 -0
- package/dist/swirl-icon-folder-shared.entry.052229e9.js +18 -0
- package/dist/swirl-icon-group-assign.entry.bb3ba16d.js +18 -0
- package/dist/swirl-icon-groups-custom.entry.89cb31bf.js +18 -0
- package/dist/swirl-icon-groups-filled.entry.8e4dd776.js +18 -0
- package/dist/swirl-icon-groups-outlined.entry.d257fa35.js +18 -0
- package/dist/swirl-icon-groups.entry.eb164fa2.js +18 -0
- package/dist/swirl-icon-help.entry.95af80fe.js +18 -0
- package/dist/swirl-icon-image.entry.ac7fce8a.js +18 -0
- package/dist/swirl-icon-info.entry.7bea6932.js +18 -0
- package/dist/swirl-icon-inventory.entry.7bb8c552.js +18 -0
- package/dist/swirl-icon-like.entry.ec92b9fd.js +18 -0
- package/dist/swirl-icon-link.entry.f3d5937c.js +18 -0
- package/dist/swirl-icon-lock.entry.807d8a95.js +18 -0
- package/dist/swirl-icon-logout.entry.4f31d257.js +18 -0
- package/dist/swirl-icon-mail.entry.54c49af9.js +18 -0
- package/dist/swirl-icon-manage-accounts.entry.8bc3721c.js +18 -0
- package/dist/swirl-icon-mention.entry.5cf61986.js +18 -0
- package/dist/swirl-icon-menu-filled.entry.1597fcdc.js +18 -0
- package/dist/swirl-icon-menu-outlined.entry.05c230c7.js +18 -0
- package/dist/swirl-icon-menu.entry.eb38317a.js +18 -0
- package/dist/swirl-icon-message.entry.3f3b0ee6.js +18 -0
- package/dist/swirl-icon-more-horizontal.entry.746bde39.js +18 -0
- package/dist/swirl-icon-more-vertikal.entry.bf9342ef.js +18 -0
- package/dist/swirl-icon-news-filled.entry.1c1d78f8.js +18 -0
- package/dist/swirl-icon-news-outlined.entry.76c94ea9.js +18 -0
- package/dist/swirl-icon-notifications-active.entry.d8c49de6.js +18 -0
- package/dist/swirl-icon-notifications-off.entry.2c8866a8.js +18 -0
- package/dist/swirl-icon-notifications.entry.a5c7b275.js +18 -0
- package/dist/swirl-icon-open-in-new.entry.128350f5.js +18 -0
- package/dist/swirl-icon-people-alt.entry.7ac6d23a.js +18 -0
- package/dist/swirl-icon-person-off.entry.fda1c4d4.js +18 -0
- package/dist/swirl-icon-person.entry.19fc5367.js +18 -0
- package/dist/swirl-icon-phone.entry.73cfee35.js +18 -0
- package/dist/swirl-icon-poll.entry.4ab05380.js +18 -0
- package/dist/swirl-icon-print.entry.cd89ebc5.js +18 -0
- package/dist/swirl-icon-recieved.entry.56d93432.js +18 -0
- package/dist/swirl-icon-search-strong.entry.904a6694.js +18 -0
- package/dist/swirl-icon-search.entry.cf65f83f.js +18 -0
- package/dist/swirl-icon-send.entry.56297757.js +18 -0
- package/dist/swirl-icon-settings.entry.1c988cf1.js +18 -0
- package/dist/swirl-icon-sync.entry.b88dd7b8.js +18 -0
- package/dist/swirl-icon-tasks-filled.entry.b2bf1c6e.js +18 -0
- package/dist/swirl-icon-tasks-outlined.entry.09551261.js +18 -0
- package/dist/swirl-icon-time-filled.entry.4954d002.js +18 -0
- package/dist/swirl-icon-time-outlined.entry.697e9656.js +18 -0
- package/dist/swirl-icon-user-assign.entry.fe5b582b.js +18 -0
- package/dist/swirl-icon-video-camera.entry.d4707dde.js +18 -0
- package/dist/swirl-icon-warning.entry.69762f5b.js +18 -0
- package/dist/{flip-lightbox.entry.f625cb0b.js → swirl-lightbox.entry.bae60d38.js} +12 -12
- package/dist/swirl-link.entry.3d52e8ef.js +15 -0
- package/dist/swirl-list.entry.53688da6.js +18 -0
- package/dist/swirl-modal.entry.4bf5e6c3.js +63 -0
- package/dist/swirl-option-list-section.entry.898ea907.js +15 -0
- package/dist/swirl-pagination.entry.b892dbdb.js +27 -0
- package/dist/{flip-pdf-reader.entry.7b555d84.js → swirl-pdf-reader.entry.28aa5b27.js} +7 -7
- package/dist/{flip-popover.entry.8e6f4db6.js → swirl-popover.entry.3e96f1d7.js} +8 -8
- package/dist/{flip-progress-indicator.entry.854165f5.js → swirl-progress-indicator.entry.30f3d224.js} +3 -3
- package/dist/swirl-radio-group.entry.9cbdf732.js +35 -0
- package/dist/swirl-radio.entry.7a24ed80.js +29 -0
- package/dist/swirl-resource-list-file-item.entry.c7c3d567.js +37 -0
- package/dist/swirl-search.entry.19702179.js +48 -0
- package/dist/swirl-select.entry.3ff36072.js +48 -0
- package/dist/swirl-separator.entry.6dfbb1a4.js +15 -0
- package/dist/{flip-stack.entry.a2f43d7d.js → swirl-stack.entry.43f00bc0.js} +3 -3
- package/dist/swirl-switch.entry.eaba1cc3.js +56 -0
- package/dist/swirl-tab.entry.982c6bc3.js +18 -0
- package/dist/swirl-table-cell.entry.5cacafda.js +15 -0
- package/dist/swirl-table-column.entry.d66cfcf5.js +23 -0
- package/dist/swirl-table-row-group.entry.4273e651.js +19 -0
- package/dist/swirl-table-row.entry.1f98e36b.js +20 -0
- package/dist/swirl-table.entry.5a37f233.js +141 -0
- package/dist/{flip-tabs.entry.6c282205.js → swirl-tabs.entry.a932c6b9.js} +7 -7
- package/dist/swirl-tag.entry.2fd7c670.js +21 -0
- package/dist/swirl-text-input.entry.c1eb2d9c.js +74 -0
- package/dist/swirl-text.entry.ec8c8813.js +18 -0
- package/dist/{flip-theme-provider.entry.22f08b73.js → swirl-theme-provider.entry.5bf11693.js} +18 -18
- package/dist/swirl-thumbnail.entry.3b230d52.js +18 -0
- package/dist/{flip-toast-provider.entry.dd3a0d33.js → swirl-toast-provider.entry.da18eaab.js} +3 -3
- package/dist/swirl-toast.entry.d0f32449.js +52 -0
- package/dist/{flip-tooltip.entry.abe84c62.js → swirl-tooltip.entry.e444ef8c.js} +7 -7
- package/dist/{flip-tree-navigation-item.entry.a16661ed.js → swirl-tree-navigation-item.entry.49118257.js} +3 -3
- package/dist/{flip-video-thumbnail.entry.d79c4343.js → swirl-video-thumbnail.entry.786a3d11.js} +3 -3
- package/dist/{flip-visually-hidden.entry.08ca947f.js → swirl-visually-hidden.entry.1da622ab.js} +4 -4
- package/dist/utils-7efaa1c6.4a9c3721.js +42 -0
- package/package.json +2 -2
- package/dist/file-manager.entry.bede5c37.js +0 -58
- package/dist/flip-action-list-item.entry.41c8d63b.js +0 -18
- package/dist/flip-action-list-section.entry.6e34b5f7.js +0 -15
- package/dist/flip-autocomplete.entry.d20013f6.js +0 -70
- package/dist/flip-badge.entry.a59ca5a5.js +0 -20
- package/dist/flip-banner.entry.c3203c46.js +0 -33
- package/dist/flip-button-group.entry.3d29e0ac.js +0 -20
- package/dist/flip-button.entry.33e2201f.js +0 -41
- package/dist/flip-checkbox.entry.ddf308bf.js +0 -30
- package/dist/flip-dialog.entry.7f4c27e9.js +0 -45
- package/dist/flip-file-uploader.entry.e8da0073.js +0 -32
- package/dist/flip-form-control.entry.ff10d48c.js +0 -65
- package/dist/flip-form-group.entry.4c6ac05a.js +0 -18
- package/dist/flip-heading_2.entry.f760c2b5.js +0 -29
- package/dist/flip-icon-add-photo.entry.de2582b9.js +0 -15
- package/dist/flip-icon-add_4.entry.cce36b0c.js +0 -45
- package/dist/flip-icon-admin-panel-settings.entry.6bc9a42f.js +0 -15
- package/dist/flip-icon-arrow-back.entry.916b0e36.js +0 -15
- package/dist/flip-icon-arrow-forward.entry.39ab6142.js +0 -15
- package/dist/flip-icon-arrow-left_3.entry.310686ac.js +0 -35
- package/dist/flip-icon-arrow-right-small.entry.c4e9e875.js +0 -15
- package/dist/flip-icon-attachment.entry.3848b7a4.js +0 -15
- package/dist/flip-icon-block.entry.389473d7.js +0 -15
- package/dist/flip-icon-cancel_4.entry.a4bbda31.js +0 -45
- package/dist/flip-icon-chat-bubble.entry.0d4b3747.js +0 -15
- package/dist/flip-icon-check-circle.entry.3428bc41.js +0 -15
- package/dist/flip-icon-check-small_3.entry.eb576a3d.js +0 -143
- package/dist/flip-icon-check-strong.entry.97f4349e.js +0 -15
- package/dist/flip-icon-check.entry.1a597b0d.js +0 -15
- package/dist/flip-icon-chevron-left.entry.00896455.js +0 -15
- package/dist/flip-icon-chevron-right.entry.dcdcbee6.js +0 -15
- package/dist/flip-icon-close-small.entry.c2355ce0.js +0 -15
- package/dist/flip-icon-close.entry.d2aec443.js +0 -15
- package/dist/flip-icon-cloud-upload.entry.3272f7e8.js +0 -15
- package/dist/flip-icon-comment.entry.a28d8cc2.js +0 -15
- package/dist/flip-icon-copy.entry.c41f3167.js +0 -15
- package/dist/flip-icon-date-range.entry.4efa4fa3.js +0 -15
- package/dist/flip-icon-delete.entry.6fa067d1.js +0 -15
- package/dist/flip-icon-description.entry.a039a26d.js +0 -15
- package/dist/flip-icon-edit.entry.917df1fe.js +0 -15
- package/dist/flip-icon-emoji-mood.entry.65524fcf.js +0 -15
- package/dist/flip-icon-emoji-satisfied.entry.d9f472ec.js +0 -15
- package/dist/flip-icon-error_3.entry.215b6df6.js +0 -39
- package/dist/flip-icon-expand-more.entry.51dd745e.js +0 -15
- package/dist/flip-icon-file.entry.38f93b79.js +0 -15
- package/dist/flip-icon-folder-shared.entry.8e9ea6e2.js +0 -15
- package/dist/flip-icon-group-assign.entry.9d1eedd9.js +0 -15
- package/dist/flip-icon-groups-custom.entry.2d3148a4.js +0 -15
- package/dist/flip-icon-groups.entry.5c6b5c95.js +0 -15
- package/dist/flip-icon-help.entry.dcdc07dc.js +0 -15
- package/dist/flip-icon-image.entry.5b1fa36d.js +0 -15
- package/dist/flip-icon-info.entry.545e2af7.js +0 -15
- package/dist/flip-icon-inventory.entry.0e96ffdc.js +0 -15
- package/dist/flip-icon-like.entry.87e16892.js +0 -15
- package/dist/flip-icon-link.entry.7f3e7c44.js +0 -15
- package/dist/flip-icon-lock.entry.9e57f50a.js +0 -15
- package/dist/flip-icon-logout.entry.c397765a.js +0 -15
- package/dist/flip-icon-mail.entry.9bc58364.js +0 -15
- package/dist/flip-icon-manage-accounts.entry.301e10da.js +0 -15
- package/dist/flip-icon-mention.entry.19eb1429.js +0 -15
- package/dist/flip-icon-menu.entry.ff9a123c.js +0 -15
- package/dist/flip-icon-message.entry.c12b6d91.js +0 -15
- package/dist/flip-icon-more-horizontal.entry.fb3132c1.js +0 -15
- package/dist/flip-icon-more-vertikal.entry.b87650d8.js +0 -15
- package/dist/flip-icon-notifications-active.entry.1ab05b95.js +0 -15
- package/dist/flip-icon-notifications-off.entry.e981e732.js +0 -15
- package/dist/flip-icon-notifications.entry.f8debc87.js +0 -15
- package/dist/flip-icon-open-in-new.entry.38a8052c.js +0 -15
- package/dist/flip-icon-people-alt.entry.f1202425.js +0 -15
- package/dist/flip-icon-person-off.entry.e45593d5.js +0 -15
- package/dist/flip-icon-person.entry.44a57c3c.js +0 -15
- package/dist/flip-icon-phone.entry.ca432695.js +0 -15
- package/dist/flip-icon-poll.entry.610041fd.js +0 -15
- package/dist/flip-icon-print.entry.9581b90b.js +0 -15
- package/dist/flip-icon-recieved.entry.b9ca0680.js +0 -15
- package/dist/flip-icon-search-strong.entry.aef21ad5.js +0 -15
- package/dist/flip-icon-search.entry.e3a7afd0.js +0 -15
- package/dist/flip-icon-send.entry.6341b770.js +0 -15
- package/dist/flip-icon-settings.entry.0b198166.js +0 -15
- package/dist/flip-icon-time-filled.entry.7d79933a.js +0 -15
- package/dist/flip-icon-time-outlined.entry.bb5da3a9.js +0 -15
- package/dist/flip-icon-user-assign.entry.b680ffd6.js +0 -15
- package/dist/flip-icon-video-camera.entry.88264d49.js +0 -15
- package/dist/flip-icon-warning.entry.cb35b329.js +0 -15
- package/dist/flip-link.entry.1cd804c2.js +0 -15
- package/dist/flip-list.entry.914a8023.js +0 -18
- package/dist/flip-modal.entry.816373ed.js +0 -63
- package/dist/flip-option-list-section.entry.b40143ef.js +0 -15
- package/dist/flip-pagination.entry.0d081e12.js +0 -27
- package/dist/flip-radio-group.entry.0d83a19b.js +0 -35
- package/dist/flip-radio.entry.e10201cd.js +0 -29
- package/dist/flip-resource-list-file-item.entry.73fd8ba3.js +0 -20
- package/dist/flip-search.entry.365ec7f8.js +0 -31
- package/dist/flip-select.entry.0f48829d.js +0 -48
- package/dist/flip-switch.entry.3d9906ae.js +0 -56
- package/dist/flip-tab.entry.42e1241c.js +0 -18
- package/dist/flip-tag.entry.ae1b5da7.js +0 -21
- package/dist/flip-text-input.entry.50675c4c.js +0 -60
- package/dist/flip-thumbnail.entry.d4e5fe61.js +0 -18
- package/dist/flip-toast.entry.f193091c.js +0 -39
- package/dist/index.bf386a84.js +0 -1372
- package/dist/utils-39b2afe8.37b54ba4.js +0 -40
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import { r as le, c as we, h as x, H as be, F as te } from "./index.
|
|
1
|
+
import { r as le, c as we, h as x, H as be, F as te } from "./index.9489626d.js";
|
|
2
2
|
import { c as de, a as Ce, g as ke } from "./_commonjsHelpers-44457d8d.ba94af77.js";
|
|
3
|
+
import { c as _e } from "./index-c3028f7d.557956d2.js";
|
|
3
4
|
import "react";
|
|
4
5
|
import "react-dom";
|
|
5
|
-
var
|
|
6
|
+
var Me = de(function(y, f) {
|
|
6
7
|
(function(F, W) {
|
|
7
|
-
|
|
8
|
+
y.exports = W();
|
|
8
9
|
})(Ce, function() {
|
|
9
10
|
return function() {
|
|
10
11
|
var F = { d: function(r, e) {
|
|
@@ -17,7 +18,7 @@ var _e = de(function(D, b) {
|
|
|
17
18
|
return H;
|
|
18
19
|
} });
|
|
19
20
|
var l = { days: "days", months: "months", years: "years", day: "day", month: "month", year: "year", eventChangeViewDate: "changeViewDate", eventChangeCurrentView: "changeCurrentView", eventChangeFocusDate: "changeFocusDate", eventChangeSelectedDate: "changeSelectedDate", eventChangeTime: "changeTime", eventChangeLastSelectedDate: "changeLastSelectedDate", actionSelectDate: "selectDate", actionUnselectDate: "unselectDate", cssClassWeekend: "-weekend-" }, ie = { classes: "", inline: !1, locale: { days: ["\u0412\u043E\u0441\u043A\u0440\u0435\u0441\u0435\u043D\u044C\u0435", "\u041F\u043E\u043D\u0435\u0434\u0435\u043B\u044C\u043D\u0438\u043A", "\u0412\u0442\u043E\u0440\u043D\u0438\u043A", "\u0421\u0440\u0435\u0434\u0430", "\u0427\u0435\u0442\u0432\u0435\u0440\u0433", "\u041F\u044F\u0442\u043D\u0438\u0446\u0430", "\u0421\u0443\u0431\u0431\u043E\u0442\u0430"], daysShort: ["\u0412\u043E\u0441", "\u041F\u043E\u043D", "\u0412\u0442\u043E", "\u0421\u0440\u0435", "\u0427\u0435\u0442", "\u041F\u044F\u0442", "\u0421\u0443\u0431"], daysMin: ["\u0412\u0441", "\u041F\u043D", "\u0412\u0442", "\u0421\u0440", "\u0427\u0442", "\u041F\u0442", "\u0421\u0431"], months: ["\u042F\u043D\u0432\u0430\u0440\u044C", "\u0424\u0435\u0432\u0440\u0430\u043B\u044C", "\u041C\u0430\u0440\u0442", "\u0410\u043F\u0440\u0435\u043B\u044C", "\u041C\u0430\u0439", "\u0418\u044E\u043D\u044C", "\u0418\u044E\u043B\u044C", "\u0410\u0432\u0433\u0443\u0441\u0442", "\u0421\u0435\u043D\u0442\u044F\u0431\u0440\u044C", "\u041E\u043A\u0442\u044F\u0431\u0440\u044C", "\u041D\u043E\u044F\u0431\u0440\u044C", "\u0414\u0435\u043A\u0430\u0431\u0440\u044C"], monthsShort: ["\u042F\u043D\u0432", "\u0424\u0435\u0432", "\u041C\u0430\u0440", "\u0410\u043F\u0440", "\u041C\u0430\u0439", "\u0418\u044E\u043D", "\u0418\u044E\u043B", "\u0410\u0432\u0433", "\u0421\u0435\u043D", "\u041E\u043A\u0442", "\u041D\u043E\u044F", "\u0414\u0435\u043A"], today: "\u0421\u0435\u0433\u043E\u0434\u043D\u044F", clear: "\u041E\u0447\u0438\u0441\u0442\u0438\u0442\u044C", dateFormat: "dd.MM.yyyy", timeFormat: "HH:mm", firstDay: 1 }, startDate: new Date(), firstDay: "", weekends: [6, 0], dateFormat: "", altField: "", altFieldDateFormat: "T", toggleSelected: !0, keyboardNav: !0, selectedDates: !1, container: "", isMobile: !1, visible: !1, position: "bottom left", offset: 12, view: l.days, minView: l.days, showOtherMonths: !0, selectOtherMonths: !0, moveToOtherMonthsOnSelect: !0, showOtherYears: !0, selectOtherYears: !0, moveToOtherYearsOnSelect: !0, minDate: "", maxDate: "", disableNavWhenOutOfRange: !0, multipleDates: !1, multipleDatesSeparator: ", ", range: !1, dynamicRange: !0, buttons: !1, monthsField: "monthsShort", showEvent: "focus", autoClose: !1, prevHtml: '<svg><path d="M 17,12 l -5,5 l 5,5"></path></svg>', nextHtml: '<svg><path d="M 14,12 l 5,5 l -5,5"></path></svg>', navTitles: { days: "MMMM, <i>yyyy</i>", months: "yyyy", years: "yyyy1 - yyyy2" }, timepicker: !1, onlyTimepicker: !1, dateTimeSeparator: " ", timeFormat: "", minHours: 0, maxHours: 24, minMinutes: 0, maxMinutes: 59, hoursStep: 1, minutesStep: 1, onSelect: !1, onChangeViewDate: !1, onChangeView: !1, onRenderCell: !1, onShow: !1, onHide: !1, onClickDayName: !1 };
|
|
20
|
-
function
|
|
21
|
+
function w(r) {
|
|
21
22
|
let e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : document;
|
|
22
23
|
return typeof r == "string" ? e.querySelector(r) : r;
|
|
23
24
|
}
|
|
@@ -56,7 +57,7 @@ var _e = de(function(D, b) {
|
|
|
56
57
|
a && r.push(a);
|
|
57
58
|
}), r.join(" ");
|
|
58
59
|
}
|
|
59
|
-
function
|
|
60
|
+
function D(r, e) {
|
|
60
61
|
let t = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : l.days;
|
|
61
62
|
if (!r || !e)
|
|
62
63
|
return !1;
|
|
@@ -82,8 +83,8 @@ var _e = de(function(D, b) {
|
|
|
82
83
|
i.addEventListener(e, t);
|
|
83
84
|
}) : r.addEventListener(e, t);
|
|
84
85
|
}
|
|
85
|
-
function
|
|
86
|
-
return !(!r || r === document || r instanceof DocumentFragment) && (r.matches(e) ? r :
|
|
86
|
+
function j(r, e) {
|
|
87
|
+
return !(!r || r === document || r instanceof DocumentFragment) && (r.matches(e) ? r : j(r.parentNode, e));
|
|
87
88
|
}
|
|
88
89
|
function R(r, e, t) {
|
|
89
90
|
return r > t ? t : r < e ? e : r;
|
|
@@ -127,7 +128,7 @@ var _e = de(function(D, b) {
|
|
|
127
128
|
}), L(this, "onChangeFocusDate", (s) => {
|
|
128
129
|
if (!s)
|
|
129
130
|
return void (this.focused && this.removeFocus());
|
|
130
|
-
let o =
|
|
131
|
+
let o = D(s, this.date, this.type);
|
|
131
132
|
o ? this.focus() : !o && this.focused && this.removeFocus(), this.opts.range && this._handleRangeStatus();
|
|
132
133
|
}), L(this, "render", () => (this.$cell.innerHTML = this._getHtml(), this.$cell.adpCell = this, this.$cell)), this.type = e, this.singleType = this.type.slice(0, -1), this.date = t, this.dp = i, this.opts = a, this.body = n, this.customData = !1, this.init();
|
|
133
134
|
}
|
|
@@ -148,7 +149,7 @@ var _e = de(function(D, b) {
|
|
|
148
149
|
}
|
|
149
150
|
_getClassName() {
|
|
150
151
|
var e, t;
|
|
151
|
-
let i = new Date(), { selectOtherMonths: a, selectOtherYears: n } = this.opts, { minDate: s, maxDate: o } = this.dp, { day: h } = v(this.date), d = this._isOutOfMinMaxRange(), c = (e = this.customData) === null || e === void 0 ? void 0 : e.disabled, u = S("air-datepicker-cell", "-".concat(this.singleType, "-"), { "-current-":
|
|
152
|
+
let i = new Date(), { selectOtherMonths: a, selectOtherYears: n } = this.opts, { minDate: s, maxDate: o } = this.dp, { day: h } = v(this.date), d = this._isOutOfMinMaxRange(), c = (e = this.customData) === null || e === void 0 ? void 0 : e.disabled, u = S("air-datepicker-cell", "-".concat(this.singleType, "-"), { "-current-": D(i, this.date, this.type), "-min-date-": s && D(s, this.date, this.type), "-max-date-": o && D(o, this.date, this.type) }), p = "";
|
|
152
153
|
switch (this.type) {
|
|
153
154
|
case l.days:
|
|
154
155
|
p = S({ "-weekend-": this.dp.isWeekend(h), "-other-month-": this.isOtherMonth, "-disabled-": this.isOtherMonth && !a || d || c });
|
|
@@ -183,7 +184,7 @@ var _e = de(function(D, b) {
|
|
|
183
184
|
this.unbindDatepickerEvents();
|
|
184
185
|
}
|
|
185
186
|
_handleRangeStatus() {
|
|
186
|
-
let { rangeDateFrom: e, rangeDateTo: t } = this.dp, i = S({ "-in-range-": e && t && (a = this.date, n = e, s = t, T(a, n) && P(a, s)), "-range-from-": e &&
|
|
187
|
+
let { rangeDateFrom: e, rangeDateTo: t } = this.dp, i = S({ "-in-range-": e && t && (a = this.date, n = e, s = t, T(a, n) && P(a, s)), "-range-from-": e && D(this.date, e, this.type), "-range-to-": t && D(this.date, t, this.type) });
|
|
187
188
|
var a, n, s;
|
|
188
189
|
this.$cell.classList.remove("-range-from-", "-range-to-", "-in-range-"), i && this.$cell.classList.add(...i.split(" "));
|
|
189
190
|
}
|
|
@@ -192,7 +193,7 @@ var _e = de(function(D, b) {
|
|
|
192
193
|
e ? this.select() : !e && this.selected && this.removeSelect();
|
|
193
194
|
}
|
|
194
195
|
_handleInitialFocusStatus() {
|
|
195
|
-
|
|
196
|
+
D(this.dp.focusDate, this.date, this.type) && this.focus();
|
|
196
197
|
}
|
|
197
198
|
get isDisabled() {
|
|
198
199
|
return this.$cell.matches(".-disabled-");
|
|
@@ -226,7 +227,7 @@ var _e = de(function(D, b) {
|
|
|
226
227
|
}), _(this, "onChangeCurrentView", (n) => {
|
|
227
228
|
n !== this.type ? this.hide() : (this.show(), this.render());
|
|
228
229
|
}), _(this, "onMouseOverCell", (n) => {
|
|
229
|
-
let s =
|
|
230
|
+
let s = j(n.target, K);
|
|
230
231
|
this.dp.setFocusDate(!!s && s.adpCell.date);
|
|
231
232
|
}), _(this, "onMouseOutCell", () => {
|
|
232
233
|
this.dp.setFocusDate(!1);
|
|
@@ -235,13 +236,13 @@ var _e = de(function(D, b) {
|
|
|
235
236
|
o.closest(K) && this.handleClick(n), s && o.closest(".air-datepicker-body--day-name") && this.handleDayNameClick(n);
|
|
236
237
|
}), _(this, "onMouseDown", (n) => {
|
|
237
238
|
this.pressed = !0;
|
|
238
|
-
let s =
|
|
239
|
-
|
|
239
|
+
let s = j(n.target, K), o = s && s.adpCell;
|
|
240
|
+
D(o.date, this.dp.rangeDateFrom) && (this.rangeFromFocused = !0), D(o.date, this.dp.rangeDateTo) && (this.rangeToFocused = !0);
|
|
240
241
|
}), _(this, "onMouseMove", (n) => {
|
|
241
242
|
if (!this.pressed || !this.dp.isMinViewReached)
|
|
242
243
|
return;
|
|
243
244
|
n.preventDefault();
|
|
244
|
-
let s =
|
|
245
|
+
let s = j(n.target, K), o = s && s.adpCell, { selectedDates: h, rangeDateTo: d, rangeDateFrom: c } = this.dp;
|
|
245
246
|
if (!o || o.isDisabled)
|
|
246
247
|
return;
|
|
247
248
|
let { date: u } = o;
|
|
@@ -263,11 +264,11 @@ var _e = de(function(D, b) {
|
|
|
263
264
|
let o = O(n), h = O(s);
|
|
264
265
|
switch (this.dp.currentView) {
|
|
265
266
|
case l.days:
|
|
266
|
-
if (
|
|
267
|
+
if (D(n, s, l.months))
|
|
267
268
|
return;
|
|
268
269
|
break;
|
|
269
270
|
case l.months:
|
|
270
|
-
if (
|
|
271
|
+
if (D(n, s, l.years))
|
|
271
272
|
return;
|
|
272
273
|
break;
|
|
273
274
|
case l.years:
|
|
@@ -292,7 +293,7 @@ var _e = de(function(D, b) {
|
|
|
292
293
|
this.dp.on(l.eventChangeViewDate, this.onChangeViewDate), this.dp.on(l.eventChangeCurrentView, this.onChangeCurrentView);
|
|
293
294
|
}
|
|
294
295
|
_buildBaseHtml() {
|
|
295
|
-
this.$el = k({ className: "air-datepicker-body -".concat(this.type, "-"), innerHtml: pe[this.type] }), this.$names =
|
|
296
|
+
this.$el = k({ className: "air-datepicker-body -".concat(this.type, "-"), innerHtml: pe[this.type] }), this.$names = w(".air-datepicker-body--day-names", this.$el), this.$cells = w(".air-datepicker-body--cells", this.$el);
|
|
296
297
|
}
|
|
297
298
|
_getDayNamesHtml() {
|
|
298
299
|
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : this.dp.locale.firstDay, t = "", i = this.dp.isWeekend, { onClickDayName: a } = this.opts, n = e, s = 0;
|
|
@@ -305,13 +306,13 @@ var _e = de(function(D, b) {
|
|
|
305
306
|
_getDaysCells() {
|
|
306
307
|
let { viewDate: e, locale: { firstDay: t } } = this.dp, i = se(e), { year: a, month: n } = v(e), s = new Date(a, n, 1), o = new Date(a, n, i), h = s.getDay() - t, d = 6 - o.getDay() + t;
|
|
307
308
|
h = h < 0 ? h + 7 : h, d = d > 6 ? d - 7 : d;
|
|
308
|
-
let c = function(
|
|
309
|
-
let { year: Y, month:
|
|
310
|
-
return new Date(Y,
|
|
311
|
-
}(s, h), u = i + h + d, p = c.getDate(), { year: g, month:
|
|
309
|
+
let c = function(z, U) {
|
|
310
|
+
let { year: Y, month: B, date: q } = v(z);
|
|
311
|
+
return new Date(Y, B, q - U);
|
|
312
|
+
}(s, h), u = i + h + d, p = c.getDate(), { year: g, month: b } = v(c), $ = 0;
|
|
312
313
|
for (; $ < u; ) {
|
|
313
|
-
let
|
|
314
|
-
this._generateCell(
|
|
314
|
+
let z = new Date(g, b, p + $);
|
|
315
|
+
this._generateCell(z), $++;
|
|
315
316
|
}
|
|
316
317
|
}
|
|
317
318
|
_generateCell(e) {
|
|
@@ -366,7 +367,7 @@ var _e = de(function(D, b) {
|
|
|
366
367
|
constructor(e) {
|
|
367
368
|
let { dp: t, opts: i } = e;
|
|
368
369
|
E(this, "onClickNav", (a) => {
|
|
369
|
-
let n =
|
|
370
|
+
let n = j(a.target, ".air-datepicker-nav--action");
|
|
370
371
|
if (!n)
|
|
371
372
|
return;
|
|
372
373
|
let s = n.dataset.action;
|
|
@@ -393,7 +394,7 @@ var _e = de(function(D, b) {
|
|
|
393
394
|
this._createElement(), this._buildBaseHtml(), this._defineDOM(), this.render(), this.handleNavStatus(), this._bindEvents(), this._bindDatepickerEvents();
|
|
394
395
|
}
|
|
395
396
|
_defineDOM() {
|
|
396
|
-
this.$title =
|
|
397
|
+
this.$title = w(".air-datepicker-nav--title", this.$el), this.$prev = w('[data-action="prev"]', this.$el), this.$next = w('[data-action="next"]', this.$el);
|
|
397
398
|
}
|
|
398
399
|
_bindEvents() {
|
|
399
400
|
this.$el.addEventListener("click", this.onClickNav), this.$title.addEventListener("click", this.onClickNavTitle);
|
|
@@ -431,7 +432,7 @@ var _e = de(function(D, b) {
|
|
|
431
432
|
}
|
|
432
433
|
}
|
|
433
434
|
_disableNav(e) {
|
|
434
|
-
|
|
435
|
+
w('[data-action="' + e + '"]', this.$el).classList.add("-disabled-");
|
|
435
436
|
}
|
|
436
437
|
_resetNavStatus() {
|
|
437
438
|
(function(e) {
|
|
@@ -539,7 +540,7 @@ var _e = de(function(D, b) {
|
|
|
539
540
|
this.$el.innerHTML = '<div class="air-datepicker-time--current">' + ' <span class="air-datepicker-time--current-hours">'.concat(I(i), "</span>") + ' <span class="air-datepicker-time--current-colon">:</span>' + ' <span class="air-datepicker-time--current-minutes">'.concat(I(a), "</span>") + " ".concat(e ? "<span class='air-datepicker-time--current-ampm'>".concat(d, "</span>") : "") + '</div><div class="air-datepicker-time--sliders"> <div class="air-datepicker-time--row">' + ' <input type="range" name="hours" value="'.concat(t, '" min="').concat(n, '" max="').concat(o, '" step="').concat(c, '"/>') + ' </div> <div class="air-datepicker-time--row">' + ' <input type="range" name="minutes" value="'.concat(a, '" min="').concat(s, '" max="').concat(h, '" step="').concat(u, '"/>') + " </div></div>";
|
|
540
541
|
}
|
|
541
542
|
defineDOM() {
|
|
542
|
-
let e = (t) =>
|
|
543
|
+
let e = (t) => w(t, this.$el);
|
|
543
544
|
this.$ranges = this.$el.querySelectorAll('[type="range"]'), this.$hours = e('[name="hours"]'), this.$minutes = e('[name="minutes"]'), this.$hoursText = e(".air-datepicker-time--current-hours"), this.$minutesText = e(".air-datepicker-time--current-minutes"), this.$ampm = e(".air-datepicker-time--current-ampm");
|
|
544
545
|
}
|
|
545
546
|
setTime(e) {
|
|
@@ -551,7 +552,7 @@ var _e = de(function(D, b) {
|
|
|
551
552
|
setMinMaxTime(e) {
|
|
552
553
|
if (this.setMinMaxTimeFromOptions(), e) {
|
|
553
554
|
let { minDate: t, maxDate: i } = this.dp;
|
|
554
|
-
t &&
|
|
555
|
+
t && D(e, t) && this.setMinTimeFromMinDate(t), i && D(e, i) && this.setMaxTimeFromMaxDate(i);
|
|
555
556
|
}
|
|
556
557
|
}
|
|
557
558
|
setCurrentTime(e) {
|
|
@@ -753,26 +754,26 @@ var _e = de(function(D, b) {
|
|
|
753
754
|
let o = arguments.length > 1 && arguments[1] !== void 0 && arguments[1];
|
|
754
755
|
if (typeof (s = s || i.opts.position) == "function")
|
|
755
756
|
return void (i.customHide = s({ $datepicker: i.$datepicker, $target: i.$el, $pointer: i.$pointer, isViewChange: o, done: i._finishHide }));
|
|
756
|
-
let h, d, { isMobile: c } = i.opts, u = i.$el.getBoundingClientRect(), p = i.$el.getBoundingClientRect(), g = i.$datepicker.offsetParent,
|
|
757
|
+
let h, d, { isMobile: c } = i.opts, u = i.$el.getBoundingClientRect(), p = i.$el.getBoundingClientRect(), g = i.$datepicker.offsetParent, b = i.$el.offsetParent, $ = i.$datepicker.getBoundingClientRect(), z = s.split(" "), U = window.scrollY, Y = window.scrollX, B = i.opts.offset, q = z[0], fe = z[1];
|
|
757
758
|
if (c)
|
|
758
759
|
i.$datepicker.style.cssText = "left: 50%; top: 50%";
|
|
759
760
|
else {
|
|
760
|
-
if (g ===
|
|
761
|
+
if (g === b && g !== document.body && (p = { top: i.$el.offsetTop, left: i.$el.offsetLeft, width: u.width, height: i.$el.offsetHeight }, U = 0, Y = 0), g !== b && g !== document.body) {
|
|
761
762
|
let he = g.getBoundingClientRect();
|
|
762
763
|
p = { top: u.top - he.top, left: u.left - he.left, width: u.width, height: u.height }, U = 0, Y = 0;
|
|
763
764
|
}
|
|
764
765
|
switch (q) {
|
|
765
766
|
case "top":
|
|
766
|
-
h = p.top - $.height -
|
|
767
|
+
h = p.top - $.height - B;
|
|
767
768
|
break;
|
|
768
769
|
case "right":
|
|
769
|
-
d = p.left + p.width +
|
|
770
|
+
d = p.left + p.width + B;
|
|
770
771
|
break;
|
|
771
772
|
case "bottom":
|
|
772
|
-
h = p.top + p.height +
|
|
773
|
+
h = p.top + p.height + B;
|
|
773
774
|
break;
|
|
774
775
|
case "left":
|
|
775
|
-
d = p.left - $.width -
|
|
776
|
+
d = p.left - $.width - B;
|
|
776
777
|
}
|
|
777
778
|
switch (fe) {
|
|
778
779
|
case "top":
|
|
@@ -804,7 +805,7 @@ var _e = de(function(D, b) {
|
|
|
804
805
|
}), m(this, "_checkIfDateIsSelected", function(s) {
|
|
805
806
|
let o = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : l.days, h = !1;
|
|
806
807
|
return i.selectedDates.some((d) => {
|
|
807
|
-
let c =
|
|
808
|
+
let c = D(s, d, o);
|
|
808
809
|
return h = c && d, c;
|
|
809
810
|
}), h;
|
|
810
811
|
}), m(this, "_scheduleCallAfterTransition", (s) => {
|
|
@@ -814,7 +815,7 @@ var _e = de(function(D, b) {
|
|
|
814
815
|
}), m(this, "_cancelScheduledCall", () => {
|
|
815
816
|
this.$datepicker.removeEventListener("transitionend", this._onTransitionEnd);
|
|
816
817
|
}), m(this, "setViewDate", (s) => {
|
|
817
|
-
if (!((s = M(s)) instanceof Date) ||
|
|
818
|
+
if (!((s = M(s)) instanceof Date) || D(s, this.viewDate))
|
|
818
819
|
return;
|
|
819
820
|
let o = this.viewDate;
|
|
820
821
|
this.viewDate = s;
|
|
@@ -868,8 +869,8 @@ var _e = de(function(D, b) {
|
|
|
868
869
|
}), m(this, "_onChangeTime", (s) => {
|
|
869
870
|
let { hours: o, minutes: h } = s, d = new Date(), { lastSelectedDate: c, opts: { onSelect: u } } = this, p = c;
|
|
870
871
|
c || (p = d);
|
|
871
|
-
let g = this.getCell(p, this.currentViewSingular),
|
|
872
|
-
|
|
872
|
+
let g = this.getCell(p, this.currentViewSingular), b = g && g.adpCell;
|
|
873
|
+
b && b.isDisabled || (p.setHours(o), p.setMinutes(h), c ? (this._setInputValue(), u && this._triggerOnSelect()) : this.selectDate(p));
|
|
873
874
|
}), m(this, "_onFocus", (s) => {
|
|
874
875
|
this.visible || this.show();
|
|
875
876
|
}), m(this, "_onBlur", (s) => {
|
|
@@ -885,9 +886,9 @@ var _e = de(function(D, b) {
|
|
|
885
886
|
}), m(this, "isWeekend", (s) => this.opts.weekends.includes(s)), m(this, "getClampedDate", (s) => {
|
|
886
887
|
let { minDate: o, maxDate: h } = this, d = s;
|
|
887
888
|
return h && T(s, h) ? d = h : o && P(s, o) && (d = o), d;
|
|
888
|
-
}), this.$el =
|
|
889
|
+
}), this.$el = w(e), !this.$el)
|
|
889
890
|
return;
|
|
890
|
-
this.$datepicker = k({ className: "air-datepicker" }), this.opts = Z({}, ie, t), this.$customContainer = !!this.opts.container &&
|
|
891
|
+
this.$datepicker = k({ className: "air-datepicker" }), this.opts = Z({}, ie, t), this.$customContainer = !!this.opts.container && w(this.opts.container), this.$altField = w(this.opts.altField || !1), ee || (ee = w("body"));
|
|
891
892
|
let { view: a, startDate: n } = this.opts;
|
|
892
893
|
n || (this.opts.startDate = new Date()), this.$el.nodeName === "INPUT" && (this.elIsInput = !0), this.inited = !1, this.visible = !1, this.viewDate = M(this.opts.startDate), this.focusDate = !1, this.initialReadonly = this.$el.getAttribute("readonly"), this.customHide = !1, this.currentView = a, this.selectedDates = [], this.views = {}, this.keys = [], this.rangeDateFrom = "", this.rangeDateTo = "", this.timepickerIsActive = !1, this.treatAsInline = this.opts.inline || !this.elIsInput, this.init();
|
|
893
894
|
}
|
|
@@ -930,7 +931,7 @@ var _e = de(function(D, b) {
|
|
|
930
931
|
_buildBaseHtml() {
|
|
931
932
|
let { inline: e } = this.opts;
|
|
932
933
|
var t, i;
|
|
933
|
-
this.elIsInput ? e ? (t = this.$datepicker, (i = this.$el).parentNode.insertBefore(t, i.nextSibling)) : this.$container.appendChild(this.$datepicker) : this.$el.appendChild(this.$datepicker), this.$datepicker.innerHTML = '<i class="air-datepicker--pointer"></i><div class="air-datepicker--navigation"></div><div class="air-datepicker--content"></div>', this.$content =
|
|
934
|
+
this.elIsInput ? e ? (t = this.$datepicker, (i = this.$el).parentNode.insertBefore(t, i.nextSibling)) : this.$container.appendChild(this.$datepicker) : this.$el.appendChild(this.$datepicker), this.$datepicker.innerHTML = '<i class="air-datepicker--pointer"></i><div class="air-datepicker--navigation"></div><div class="air-datepicker--content"></div>', this.$content = w(".air-datepicker--content", this.$datepicker), this.$pointer = w(".air-datepicker--pointer", this.$datepicker), this.$nav = w(".air-datepicker--navigation", this.$datepicker);
|
|
934
935
|
}
|
|
935
936
|
_handleLocale() {
|
|
936
937
|
let { locale: e, dateFormat: t, firstDay: i, timepicker: a, onlyTimepicker: n, timeFormat: s, dateTimeSeparator: o } = this.opts;
|
|
@@ -976,10 +977,10 @@ var _e = de(function(D, b) {
|
|
|
976
977
|
selectDate(e) {
|
|
977
978
|
let t, i = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, { currentView: a, parsedViewDate: n, selectedDates: s } = this, { updateTime: o } = i, { moveToOtherMonthsOnSelect: h, moveToOtherYearsOnSelect: d, multipleDates: c, range: u, autoClose: p } = this.opts, g = s.length;
|
|
978
979
|
if (Array.isArray(e))
|
|
979
|
-
return e.forEach((
|
|
980
|
-
this.selectDate(
|
|
981
|
-
}), new Promise((
|
|
982
|
-
setTimeout(
|
|
980
|
+
return e.forEach((b) => {
|
|
981
|
+
this.selectDate(b, i);
|
|
982
|
+
}), new Promise((b) => {
|
|
983
|
+
setTimeout(b);
|
|
983
984
|
});
|
|
984
985
|
if ((e = M(e)) instanceof Date) {
|
|
985
986
|
if (a === l.days && e.getMonth() !== n.month && h && (t = new Date(e.getFullYear(), e.getMonth(), 1)), a === l.years && e.getFullYear() !== n.year && d && (t = new Date(e.getFullYear(), 0, 1)), t && this.setViewDate(t), c && !u) {
|
|
@@ -999,8 +1000,8 @@ var _e = de(function(D, b) {
|
|
|
999
1000
|
}
|
|
1000
1001
|
else
|
|
1001
1002
|
this.selectedDates = [e];
|
|
1002
|
-
return this.trigger(l.eventChangeSelectedDate, { action: l.actionSelectDate, silent: i == null ? void 0 : i.silent, date: e, updateTime: o }), this._updateLastSelectedDate(e), p && !this.timepickerIsActive && this.visible && (c || u ? u && g === 1 && this.hide() : this.hide()), new Promise((
|
|
1003
|
-
setTimeout(
|
|
1003
|
+
return this.trigger(l.eventChangeSelectedDate, { action: l.actionSelectDate, silent: i == null ? void 0 : i.silent, date: e, updateTime: o }), this._updateLastSelectedDate(e), p && !this.timepickerIsActive && this.visible && (c || u ? u && g === 1 && this.hide() : this.hide()), new Promise((b) => {
|
|
1004
|
+
setTimeout(b);
|
|
1004
1005
|
});
|
|
1005
1006
|
}
|
|
1006
1007
|
}
|
|
@@ -1008,13 +1009,13 @@ var _e = de(function(D, b) {
|
|
|
1008
1009
|
let t = this.selectedDates, i = this;
|
|
1009
1010
|
if ((e = M(e)) instanceof Date)
|
|
1010
1011
|
return t.some((a, n) => {
|
|
1011
|
-
if (
|
|
1012
|
+
if (D(a, e))
|
|
1012
1013
|
return t.splice(n, 1), i.selectedDates.length ? i._updateLastSelectedDate(i.selectedDates[i.selectedDates.length - 1]) : (i.rangeDateFrom = "", i.rangeDateTo = "", i._updateLastSelectedDate(!1)), this.trigger(l.eventChangeSelectedDate, { action: l.actionUnselectDate, date: e }), !0;
|
|
1013
1014
|
});
|
|
1014
1015
|
}
|
|
1015
1016
|
replaceDate(e, t) {
|
|
1016
|
-
let i = this.selectedDates.find((n) =>
|
|
1017
|
-
a < 0 ||
|
|
1017
|
+
let i = this.selectedDates.find((n) => D(n, e, this.currentView)), a = this.selectedDates.indexOf(i);
|
|
1018
|
+
a < 0 || D(this.selectedDates[a], t, this.currentView) || (this.selectedDates[a] = t, this.trigger(l.eventChangeSelectedDate, { action: l.actionSelectDate, date: t, updateTime: !0 }), this._updateLastSelectedDate(t));
|
|
1018
1019
|
}
|
|
1019
1020
|
clear() {
|
|
1020
1021
|
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
@@ -1099,10 +1100,10 @@ var _e = de(function(D, b) {
|
|
|
1099
1100
|
return m(H, "defaults", ie), m(H, "version", "3.3.0"), m(H, "defaultContainerId", "air-datepicker-global-container"), oe = H.prototype, Object.assign(oe, De), W.default;
|
|
1100
1101
|
}();
|
|
1101
1102
|
});
|
|
1102
|
-
}),
|
|
1103
|
-
Object.defineProperty(
|
|
1103
|
+
}), $e = de(function(y, f) {
|
|
1104
|
+
Object.defineProperty(f, "__esModule", {
|
|
1104
1105
|
value: !0
|
|
1105
|
-
}),
|
|
1106
|
+
}), f.default = void 0;
|
|
1106
1107
|
var F = {
|
|
1107
1108
|
days: ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"],
|
|
1108
1109
|
daysShort: ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"],
|
|
@@ -1115,12 +1116,12 @@ var _e = de(function(D, b) {
|
|
|
1115
1116
|
timeFormat: "hh:mm aa",
|
|
1116
1117
|
firstDay: 0
|
|
1117
1118
|
};
|
|
1118
|
-
|
|
1119
|
+
f.default = F;
|
|
1119
1120
|
});
|
|
1120
|
-
const
|
|
1121
|
-
constructor(
|
|
1122
|
-
le(this,
|
|
1123
|
-
|
|
1121
|
+
const Se = /* @__PURE__ */ ke($e), Te = ':host{display:block}:host *{box-sizing:border-box}.date-picker{padding:var(--s-space-8) var(--s-space-16);background-color:var(--s-surface-overlay-default);font-size:var(--s-font-size-sm);line-height:var(--s-line-height-sm);letter-spacing:var(--s-letter-spacing-tighter)}@media (min-width: 768px){.date-picker{max-width:17.5rem}}.air-datepicker--pointer{display:none}.air-datepicker-nav{display:flex;margin-bottom:var(--s-space-8);align-items:center}.air-datepicker-nav--action{position:relative;display:inline-flex;width:2.5rem;height:2.5rem;justify-content:center;align-items:center;border-radius:50%;color:var(--s-icon-highlight);cursor:pointer;order:2}.air-datepicker-nav--action:hover{background-color:var(--s-surface-overlay-hovered)}.air-datepicker-nav--title{padding:var(--s-space-8);flex-grow:1;border-radius:var(--s-border-radius-s);font-size:var(--s-font-size-base);font-weight:var(--s-font-weight-medium);line-height:var(--s-line-height-base);text-align:left;cursor:pointer;order:0}.air-datepicker-nav--title i{font-style:normal}@media (min-width: 992px) and (max-width: 1439px) and (hover: hover),(min-width: 1440px){.air-datepicker-nav--title{font-size:var(--s-font-size-sm);line-height:var(--s-line-height-sm)}}.air-datepicker-body--day-names{display:flex;margin-bottom:var(--s-space-8);justify-content:space-between;align-items:center}.air-datepicker-body--day-name{display:inline-flex;flex-basis:calc(100 / 7 * 1%);justify-content:center;align-items:center;color:var(--s-text-subdued);aspect-ratio:1}.air-datepicker-body--cells{position:relative;z-index:1;display:flex;flex-wrap:wrap;justify-content:space-between}.air-datepicker-body--cells.-months-{gap:var(--s-space-2)}.air-datepicker-cell{position:relative;display:inline-flex;flex-basis:calc(100 / 7 * 1%);justify-content:center;align-items:center;font-weight:var(--s-font-weight-medium);cursor:pointer;aspect-ratio:1}.air-datepicker-cell:not(.-month-):not(.-year-):not(.-in-range-):hover:before{position:absolute;z-index:-1;border-radius:50%;background-color:var(--s-surface-overlay-hovered);content:"";inset:0}.air-datepicker-cell.-month-,.air-datepicker-cell.-year-{height:2.5rem;flex-basis:calc(100 / 3 * 1% - var(--s-space-2) * 2);border-radius:var(--s-border-radius-s);aspect-ratio:auto}.air-datepicker-cell.-month-.-in-range-:before,.air-datepicker-cell.-year-.-in-range-:before{border-radius:var(--s-border-radius-s)}.air-datepicker-cell.-month-:hover:not(.-in-range-):not(.-selected-),.air-datepicker-cell.-year-:hover:not(.-in-range-):not(.-selected-){background-color:var(--s-surface-overlay-hovered)}.air-datepicker-cell.-other-month-{color:var(--s-text-subdued)}.air-datepicker-cell.-current-:not(.-month-):not(.-year-):after{position:absolute;z-index:-1;border:var(--s-border-width-default) solid var(--s-border-highlight);border-radius:50%;content:"";inset:0}.air-datepicker-cell.-selected-{color:var(--s-text-on-surface-highlight)}.air-datepicker-cell.-selected-.-year-,.air-datepicker-cell.-selected-.-month-{background-color:var(--s-surface-highlight-default)}.air-datepicker-cell.-selected-:not(.-month-):not(.-year-):not(.-in-range-):before{position:absolute;z-index:-1;border-radius:50%;background-color:var(--s-surface-highlight-default);content:"";inset:0}.air-datepicker-cell.-disabled-{color:var(--s-text-subdued);cursor:default}.air-datepicker-cell.-disabled-:hover{background-color:transparent}.air-datepicker-cell.-in-range-:before{position:absolute;z-index:-1;top:0.0625rem;right:0;bottom:0.0625rem;left:0;border-radius:0;background-color:var(--s-surface-highlight-default);content:"";opacity:0.2}.air-datepicker-cell.-range-from-:not(.-month-):not(.-year-):not(.-range-to-):hover{color:var(--s-text-on-surface-highlight)}.air-datepicker-cell.-range-from-:not(.-month-):not(.-year-):not(.-range-to-):before{position:absolute;z-index:-1;border-radius:50%;background-color:var(--s-surface-highlight-default);content:"";inset:0}.air-datepicker-cell.-range-from-:not(.-month-):not(.-year-):not(.-range-to-):after{position:absolute;z-index:-1;top:0.0625rem;right:0;bottom:0.0625rem;left:50%;border-radius:0;background-color:var(--s-surface-highlight-default);content:"";opacity:0.2}.air-datepicker-cell.-range-to-:not(.-month-):not(.-year-):not(.-range-from-):hover{color:var(--s-text-on-surface-highlight)}.air-datepicker-cell.-range-to-:not(.-month-):not(.-year-):not(.-range-from-):before{position:absolute;z-index:-1;border-radius:50%;background-color:var(--s-surface-highlight-default);content:"";inset:0}.air-datepicker-cell.-range-to-:not(.-month-):not(.-year-):not(.-range-from-):after{position:absolute;z-index:-1;top:0.0625rem;right:50%;bottom:0.0625rem;left:0;border-radius:0;background-color:var(--s-surface-highlight-default);content:"";opacity:0.2}.-hidden-{display:none}', Ve = class {
|
|
1122
|
+
constructor(y) {
|
|
1123
|
+
le(this, y), this.valueChange = we(this, "valueChange", 3), this.locale = Se, this.onClick = (f) => {
|
|
1124
|
+
f.stopPropagation(), f.preventDefault();
|
|
1124
1125
|
};
|
|
1125
1126
|
}
|
|
1126
1127
|
watchProps() {
|
|
@@ -1130,34 +1131,34 @@ const $e = /* @__PURE__ */ ke(Me), Se = ':host{display:block}:host *{box-sizing:
|
|
|
1130
1131
|
this.init();
|
|
1131
1132
|
}
|
|
1132
1133
|
disconnectedCallback() {
|
|
1133
|
-
var
|
|
1134
|
-
(
|
|
1134
|
+
var y;
|
|
1135
|
+
(y = this.picker) === null || y === void 0 || y.destroy();
|
|
1135
1136
|
}
|
|
1136
1137
|
init() {
|
|
1137
|
-
var
|
|
1138
|
-
(
|
|
1139
|
-
let
|
|
1140
|
-
this.value === void 0 ?
|
|
1138
|
+
var y;
|
|
1139
|
+
(y = this.picker) === null || y === void 0 || y.destroy();
|
|
1140
|
+
let f;
|
|
1141
|
+
this.value === void 0 ? f = void 0 : Array.isArray(this.value) ? f = this.value : f = [this.value], this.picker = new Me(this.containerEl, {
|
|
1141
1142
|
classes: "date-picker",
|
|
1142
1143
|
inline: !0,
|
|
1143
1144
|
locale: this.locale,
|
|
1144
1145
|
maxDate: this.maxDate,
|
|
1145
1146
|
minDate: this.minDate,
|
|
1146
1147
|
minView: "days",
|
|
1147
|
-
nextHtml: "<
|
|
1148
|
+
nextHtml: "<swirl-icon-chevron-right></swirl-icon-chevron-right>",
|
|
1148
1149
|
onSelect: ({ date: F }) => {
|
|
1149
1150
|
this.valueChange.emit(F);
|
|
1150
1151
|
},
|
|
1151
|
-
prevHtml: "<
|
|
1152
|
+
prevHtml: "<swirl-icon-chevron-left></swirl-icon-chevron-left>",
|
|
1152
1153
|
range: this.range,
|
|
1153
|
-
selectedDates:
|
|
1154
|
+
selectedDates: f,
|
|
1154
1155
|
startDate: this.startDate,
|
|
1155
1156
|
toggleSelected: !this.range,
|
|
1156
1157
|
view: "days"
|
|
1157
1158
|
});
|
|
1158
1159
|
}
|
|
1159
1160
|
render() {
|
|
1160
|
-
return x(be, { onClick: this.onClick }, x("div", { ref: (
|
|
1161
|
+
return x(be, { onClick: this.onClick }, x("div", { ref: (y) => this.containerEl = y }));
|
|
1161
1162
|
}
|
|
1162
1163
|
static get watchers() {
|
|
1163
1164
|
return {
|
|
@@ -1170,17 +1171,18 @@ const $e = /* @__PURE__ */ ke(Me), Se = ':host{display:block}:host *{box-sizing:
|
|
|
1170
1171
|
};
|
|
1171
1172
|
}
|
|
1172
1173
|
};
|
|
1173
|
-
|
|
1174
|
-
const
|
|
1175
|
-
constructor(
|
|
1176
|
-
le(this,
|
|
1174
|
+
Ve.style = Te;
|
|
1175
|
+
const xe = ":host{display:inline-flex}", Fe = class {
|
|
1176
|
+
constructor(y) {
|
|
1177
|
+
le(this, y), this.size = 24;
|
|
1177
1178
|
}
|
|
1178
1179
|
render() {
|
|
1179
|
-
|
|
1180
|
+
const y = this.size === 20 ? 24 : this.size, f = _e("swirl-icon", `swirl-icon--size-${this.size}`);
|
|
1181
|
+
return x("svg", { class: f, fill: "none", height: this.size, part: "icon", viewBox: `0 0 ${y} ${y}`, width: this.size, xmlns: "http://www.w3.org/2000/svg" }, this.size === 16 && x(te, null, x("path", { d: "M6 11C5.53333 11 5.13889 10.8389 4.81667 10.5167C4.49444 10.1945 4.33333 9.80004 4.33333 9.33337C4.33333 8.86671 4.49444 8.47226 4.81667 8.15004C5.13889 7.82782 5.53333 7.66671 6 7.66671C6.46667 7.66671 6.86111 7.82782 7.18333 8.15004C7.50556 8.47226 7.66667 8.86671 7.66667 9.33337C7.66667 9.80004 7.50556 10.1945 7.18333 10.5167C6.86111 10.8389 6.46667 11 6 11ZM3.33333 14.6667C2.96667 14.6667 2.65267 14.5363 2.39133 14.2754C2.13044 14.014 2 13.7 2 13.3334V4.00004C2 3.63337 2.13044 3.3196 2.39133 3.05871C2.65267 2.79737 2.96667 2.66671 3.33333 2.66671H4V2.00004C4 1.81115 4.06378 1.65271 4.19133 1.52471C4.31933 1.39715 4.47778 1.33337 4.66667 1.33337C4.85556 1.33337 5.014 1.39715 5.142 1.52471C5.26956 1.65271 5.33333 1.81115 5.33333 2.00004V2.66671H10.6667V2.00004C10.6667 1.81115 10.7307 1.65271 10.8587 1.52471C10.9862 1.39715 11.1444 1.33337 11.3333 1.33337C11.5222 1.33337 11.6804 1.39715 11.808 1.52471C11.936 1.65271 12 1.81115 12 2.00004V2.66671H12.6667C13.0333 2.66671 13.3473 2.79737 13.6087 3.05871C13.8696 3.3196 14 3.63337 14 4.00004V13.3334C14 13.7 13.8696 14.014 13.6087 14.2754C13.3473 14.5363 13.0333 14.6667 12.6667 14.6667H3.33333ZM3.33333 13.3334H12.6667V6.66671H3.33333V13.3334Z", fill: "currentColor" })), (this.size === 20 || this.size === 24) && x(te, null, x("path", { d: "M9 16.5C8.3 16.5 7.70833 16.2583 7.225 15.775C6.74167 15.2917 6.5 14.7 6.5 14C6.5 13.3 6.74167 12.7083 7.225 12.225C7.70833 11.7417 8.3 11.5 9 11.5C9.7 11.5 10.2917 11.7417 10.775 12.225C11.2583 12.7083 11.5 13.3 11.5 14C11.5 14.7 11.2583 15.2917 10.775 15.775C10.2917 16.2583 9.7 16.5 9 16.5ZM5 22C4.45 22 3.979 21.8043 3.587 21.413C3.19567 21.021 3 20.55 3 20V6C3 5.45 3.19567 4.97933 3.587 4.588C3.979 4.196 4.45 4 5 4H6V3C6 2.71667 6.09567 2.479 6.287 2.287C6.479 2.09567 6.71667 2 7 2C7.28333 2 7.521 2.09567 7.713 2.287C7.90433 2.479 8 2.71667 8 3V4H16V3C16 2.71667 16.096 2.479 16.288 2.287C16.4793 2.09567 16.7167 2 17 2C17.2833 2 17.5207 2.09567 17.712 2.287C17.904 2.479 18 2.71667 18 3V4H19C19.55 4 20.021 4.196 20.413 4.588C20.8043 4.97933 21 5.45 21 6V20C21 20.55 20.8043 21.021 20.413 21.413C20.021 21.8043 19.55 22 19 22H5ZM5 20H19V10H5V20Z", fill: "currentColor" })), this.size === 28 && x(te, null, x("path", { d: "M10.5 19.25C9.68333 19.25 8.99306 18.9681 8.42917 18.4042C7.86528 17.8403 7.58333 17.15 7.58333 16.3334C7.58333 15.5167 7.86528 14.8264 8.42917 14.2625C8.99306 13.6987 9.68333 13.4167 10.5 13.4167C11.3167 13.4167 12.0069 13.6987 12.5708 14.2625C13.1347 14.8264 13.4167 15.5167 13.4167 16.3334C13.4167 17.15 13.1347 17.8403 12.5708 18.4042C12.0069 18.9681 11.3167 19.25 10.5 19.25ZM5.83333 25.6667C5.19167 25.6667 4.64217 25.4384 4.18483 24.9819C3.72828 24.5245 3.5 23.975 3.5 23.3334V7.00004C3.5 6.35837 3.72828 5.80926 4.18483 5.35271C4.64217 4.89537 5.19167 4.66671 5.83333 4.66671H7V3.50004C7 3.16949 7.11161 2.89221 7.33483 2.66821C7.55883 2.44499 7.83611 2.33337 8.16667 2.33337C8.49722 2.33337 8.7745 2.44499 8.9985 2.66821C9.22172 2.89221 9.33333 3.16949 9.33333 3.50004V4.66671H18.6667V3.50004C18.6667 3.16949 18.7787 2.89221 19.0027 2.66821C19.2259 2.44499 19.5028 2.33337 19.8333 2.33337C20.1639 2.33337 20.4408 2.44499 20.664 2.66821C20.888 2.89221 21 3.16949 21 3.50004V4.66671H22.1667C22.8083 4.66671 23.3578 4.89537 23.8152 5.35271C24.2717 5.80926 24.5 6.35837 24.5 7.00004V23.3334C24.5 23.975 24.2717 24.5245 23.8152 24.9819C23.3578 25.4384 22.8083 25.6667 22.1667 25.6667H5.83333ZM5.83333 23.3334H22.1667V11.6667H5.83333V23.3334Z", fill: "currentColor" })));
|
|
1180
1182
|
}
|
|
1181
1183
|
};
|
|
1182
|
-
|
|
1184
|
+
Fe.style = xe;
|
|
1183
1185
|
export {
|
|
1184
|
-
|
|
1185
|
-
|
|
1186
|
+
Ve as swirl_date_picker,
|
|
1187
|
+
Fe as swirl_icon_today
|
|
1186
1188
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as t, h as i, H as s } from "./index.
|
|
1
|
+
import { r as t, h as i, H as s } from "./index.9489626d.js";
|
|
2
2
|
import "react";
|
|
3
3
|
import "react-dom";
|
|
4
4
|
const e = `:host {
|
|
@@ -16,12 +16,27 @@ const e = `:host {
|
|
|
16
16
|
line-height: var(--s-line-height-base);
|
|
17
17
|
}
|
|
18
18
|
|
|
19
|
+
@media (min-width: 992px) and (max-width: 1439px) and (hover: hover),(min-width: 1440px) {
|
|
20
|
+
|
|
21
|
+
.description-list-item {
|
|
22
|
+
font-size: var(--s-font-size-sm);
|
|
23
|
+
line-height: var(--s-line-height-sm)
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
|
|
19
27
|
.description-list-item__term {
|
|
20
28
|
display: block;
|
|
21
29
|
margin-bottom: var(--s-space-4);
|
|
22
30
|
font-weight: var(--s-font-weight-semibold);
|
|
23
31
|
}
|
|
24
32
|
|
|
33
|
+
@media (min-width: 992px) and (max-width: 1439px) and (hover: hover),(min-width: 1440px) {
|
|
34
|
+
|
|
35
|
+
.description-list-item__term {
|
|
36
|
+
margin-bottom: var(--s-space-2)
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
|
|
25
40
|
.description-list-item__description {
|
|
26
41
|
display: block;
|
|
27
42
|
max-width: 40rem;
|
|
@@ -71,10 +86,10 @@ const e = `:host {
|
|
|
71
86
|
t(this, n);
|
|
72
87
|
}
|
|
73
88
|
render() {
|
|
74
|
-
return i(s, null, i("div", { class: "description-list-item" }, i("dt", { class: "description-list-item__term" }, this.term), i("dd", { class: "description-list-item__description" }, i("slot", null))));
|
|
89
|
+
return i(s, null, i("div", { class: "description-list-item", part: "description-list-item" }, i("dt", { class: "description-list-item__term", part: "description-list-item__term" }, this.term), i("dd", { class: "description-list-item__description" }, i("slot", null))));
|
|
75
90
|
}
|
|
76
91
|
};
|
|
77
92
|
r.style = e;
|
|
78
93
|
export {
|
|
79
|
-
r as
|
|
94
|
+
r as swirl_description_list_item
|
|
80
95
|
};
|
package/dist/{flip-description-list.entry.1fd450a5.js → swirl-description-list.entry.b451e1b2.js}
RENAMED
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { r as i, h as
|
|
1
|
+
import { r as i, h as s, H as o } from "./index.9489626d.js";
|
|
2
2
|
import "react";
|
|
3
3
|
import "react-dom";
|
|
4
4
|
const r = ":host{display:block;container-type:inline-size;container-name:description-list}:host *{box-sizing:border-box}.description-list{display:block;max-width:100%;margin:0}.description-list ::slotted(*){padding-bottom:var(--s-space-16);border-bottom:var(--s-border-width-default) solid var(--s-border-default)}.description-list ::slotted(*:not(:last-child)){margin-bottom:var(--s-space-16)}", e = class {
|
|
5
|
-
constructor(
|
|
6
|
-
i(this,
|
|
5
|
+
constructor(t) {
|
|
6
|
+
i(this, t);
|
|
7
7
|
}
|
|
8
8
|
render() {
|
|
9
|
-
return
|
|
9
|
+
return s(o, null, s("dl", { class: "description-list" }, s("slot", null)));
|
|
10
10
|
}
|
|
11
11
|
};
|
|
12
12
|
e.style = r;
|
|
13
13
|
export {
|
|
14
|
-
e as
|
|
14
|
+
e as swirl_description_list
|
|
15
15
|
};
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { r as e, c as t, h as o, H as n } from "./index.9489626d.js";
|
|
2
|
+
import { A as s } from "./a11y-dialog.esm-d7a94c8c.bd6ae411.js";
|
|
3
|
+
import { c as r } from "./index-c3028f7d.557956d2.js";
|
|
4
|
+
import "react";
|
|
5
|
+
import "react-dom";
|
|
6
|
+
import "./_commonjsHelpers-44457d8d.ba94af77.js";
|
|
7
|
+
const d = ':host{--swirl-ghost-button-background-default:var(--s-surface-overlay-default);--swirl-ghost-button-background-hovered:var(--s-surface-overlay-hovered);--swirl-ghost-button-background-pressed:var(--s-surface-overlay-pressed);display:block}:host *{box-sizing:border-box}.dialog{position:fixed;z-index:var(--s-z-40);display:flex;justify-content:center;align-items:center;inset:0}.dialog[aria-hidden="true"]{display:none}.dialog:not(.dialog--closing) .dialog__backdrop{-webkit-animation:0.15s dialog-backdrop-fade-in;animation:0.15s dialog-backdrop-fade-in}@media (prefers-reduced-motion){.dialog:not(.dialog--closing) .dialog__backdrop{-webkit-animation:none;animation:none}}.dialog:not(.dialog--closing) .dialog__body{-webkit-animation:0.15s dialog-scale-in;animation:0.15s dialog-scale-in}@media (prefers-reduced-motion){.dialog:not(.dialog--closing) .dialog__body{-webkit-animation:none;animation:none}}.dialog--closing{-webkit-animation:0.15s dialog-fade-out;animation:0.15s dialog-fade-out;-webkit-animation-fill-mode:forwards;animation-fill-mode:forwards}@media (prefers-reduced-motion){.dialog--closing{-webkit-animation:none;animation:none}}.dialog__backdrop{position:fixed;background-color:rgba(0, 0, 0, 0.2);inset:0}.dialog__body{z-index:var(--s-z-40);overflow-x:hidden;overflow-y:auto;width:18.5rem;max-height:90vh;padding-top:var(--s-space-24);padding-right:var(--s-space-8);padding-bottom:var(--s-space-8);padding-left:var(--s-space-8);border-radius:var(--s-border-radius-l);background-color:var(--s-surface-overlay-default);text-align:center;box-shadow:var(--s-shadow-level-3)}@media (min-width: 992px) and (max-width: 1439px) and (hover: hover),(min-width: 1440px){.dialog__body{border-radius:var(--s-border-radius-base)}}.dialog__heading{margin:0;margin-bottom:var(--s-space-8);font-size:var(--s-font-size-lg);font-weight:var(--s-font-weight-semibold);line-height:var(--s-line-height-lg)}@media (min-width: 992px) and (max-width: 1439px) and (hover: hover),(min-width: 1440px){.dialog__heading{font-size:var(--s-font-size-base);line-height:var(--s-line-height-base)}}.dialog__content{margin-bottom:var(--s-space-24);line-height:var(--s-line-height-base)}.dialog__content ::slotted(*){margin:0}@media (min-width: 992px) and (max-width: 1439px) and (hover: hover),(min-width: 1440px){.dialog__content{font-size:var(--s-font-size-sm);line-height:var(--s-line-height-sm)}}@-webkit-keyframes dialog-scale-in{from{transform:scale(0)}to{transform:scale(1)}}@keyframes dialog-scale-in{from{transform:scale(0)}to{transform:scale(1)}}@-webkit-keyframes dialog-backdrop-fade-in{from{opacity:0}to{opacity:1}}@keyframes dialog-backdrop-fade-in{from{opacity:0}to{opacity:1}}@-webkit-keyframes dialog-fade-out{from{opacity:1}to{opacity:0}}@keyframes dialog-fade-out{from{opacity:1}to{opacity:0}}', l = class {
|
|
8
|
+
constructor(i) {
|
|
9
|
+
e(this, i), this.primaryAction = t(this, "primaryAction", 7), this.secondaryAction = t(this, "secondaryAction", 7), this.intent = "primary", this.closing = !1, this.onKeyDown = (a) => {
|
|
10
|
+
a.code === "Escape" && this.close();
|
|
11
|
+
}, this.onBackdropClick = () => {
|
|
12
|
+
this.close();
|
|
13
|
+
}, this.onPrimaryAction = (a) => {
|
|
14
|
+
this.primaryAction.emit(a), this.close();
|
|
15
|
+
}, this.onSecondaryAction = (a) => {
|
|
16
|
+
this.secondaryAction.emit(a), this.close();
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
componentDidLoad() {
|
|
20
|
+
this.dialog = new s(this.dialogEl), this.dialog.on("show", () => {
|
|
21
|
+
var i;
|
|
22
|
+
(i = this.controlsContainerEl.querySelector("swirl-button button")) === null || i === void 0 || i.focus();
|
|
23
|
+
});
|
|
24
|
+
}
|
|
25
|
+
disconnectedCallback() {
|
|
26
|
+
var i;
|
|
27
|
+
(i = this.dialog) === null || i === void 0 || i.destroy();
|
|
28
|
+
}
|
|
29
|
+
async open() {
|
|
30
|
+
this.dialog.show();
|
|
31
|
+
}
|
|
32
|
+
async close() {
|
|
33
|
+
this.closing || (this.closing = !0, setTimeout(() => {
|
|
34
|
+
this.dialog.hide(), this.closing = !1;
|
|
35
|
+
}, 150));
|
|
36
|
+
}
|
|
37
|
+
render() {
|
|
38
|
+
const i = r("dialog", { "dialog--closing": this.closing });
|
|
39
|
+
return o(n, null, o("div", { "aria-describedby": "content", "aria-hidden": "true", "aria-labelledby": this.hideLabel ? void 0 : "label", "aria-label": this.hideLabel ? this.label : void 0, "aria-modal": "true", class: i, onKeyDown: this.onKeyDown, ref: (a) => this.dialogEl = a, role: "alertdialog" }, o("div", { class: "dialog__backdrop", onClick: this.onBackdropClick }), o("div", { class: "dialog__body", part: "dialog__body", role: "document" }, !this.hideLabel && o("h2", { class: "dialog__heading", part: "dialog__heading", id: "label" }, this.label), o("div", { class: "dialog__content", part: "dialog__content", id: "content" }, o("slot", null)), o("swirl-button-group", { class: "dialog__controls", ref: (a) => this.controlsContainerEl = a, stretch: !0, wrap: !0 }, this.secondaryActionLabel && o("swirl-button", { label: this.secondaryActionLabel, onClick: this.onSecondaryAction }), this.primaryActionLabel && o("swirl-button", { intent: this.intent, label: this.primaryActionLabel, onClick: this.onPrimaryAction, variant: this.intent === "critical" ? "ghost" : "flat" })))));
|
|
40
|
+
}
|
|
41
|
+
};
|
|
42
|
+
l.style = d;
|
|
43
|
+
export {
|
|
44
|
+
l as swirl_dialog
|
|
45
|
+
};
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { r, c as o, h as e, H as d } from "./index.9489626d.js";
|
|
2
|
+
import { c as t } from "./index-c3028f7d.557956d2.js";
|
|
3
|
+
import "react";
|
|
4
|
+
import "react-dom";
|
|
5
|
+
import "./_commonjsHelpers-44457d8d.ba94af77.js";
|
|
6
|
+
const p = ".sc-swirl-file-uploader-h{display:block;width:100%}.sc-swirl-file-uploader-h *.sc-swirl-file-uploader{box-sizing:border-box}.file-uploader.sc-swirl-file-uploader{width:100%}.file-uploader--show-dropzone.sc-swirl-file-uploader .file-uploader__dropzone.sc-swirl-file-uploader{position:relative;display:flex;width:100%;height:10rem;margin-top:var(--s-space-16);justify-content:center;align-items:center;border:var(--s-border-width-default) dashed var(--s-border-strong);border-radius:var(--s-border-radius-s);flex-direction:column}.file-uploader--show-dropzone.sc-swirl-file-uploader .file-uploader__dropzone.sc-swirl-file-uploader:focus-within{border-width:0.125rem;border-color:var(--s-focus-default)}.file-uploader--show-dropzone.sc-swirl-file-uploader .file-uploader__input.sc-swirl-file-uploader{position:absolute;z-index:1;display:block;width:100%;cursor:pointer;opacity:0;inset:0}.file-uploader--disabled.sc-swirl-file-uploader .file-uploader__input.sc-swirl-file-uploader{cursor:default}.file-uploader--disabled.sc-swirl-file-uploader .file-uploader__dropzone-cta.sc-swirl-file-uploader,.file-uploader--disabled.sc-swirl-file-uploader .file-uploader__drag-drop-label.sc-swirl-file-uploader{color:var(--s-text-disabled)}.file-uploader--disabled.sc-swirl-file-uploader .file-uploader__dropzone-icon.sc-swirl-file-uploader{color:var(--s-text-disabled)}.file-uploader__label.sc-swirl-file-uploader{display:block;font-weight:var(--s-font-weight-semibold);line-height:var(--s-line-height-base)}@media (min-width: 992px) and (max-width: 1439px) and (hover: hover),(min-width: 1440px){.file-uploader__label.sc-swirl-file-uploader{font-size:var(--s-font-size-sm);line-height:var(--s-line-height-sm)}}.file-uploader__description.sc-swirl-file-uploader{display:block;margin-top:var(--s-space-4);font-size:var(--s-font-size-sm);line-height:var(--s-line-height-sm)}@media (min-width: 992px) and (max-width: 1439px) and (hover: hover),(min-width: 1440px){.file-uploader__description.sc-swirl-file-uploader{margin-top:var(--s-space-2)}}.file-uploader__dropzone-icon.sc-swirl-file-uploader{color:var(--s-icon-highlight)}.file-uploader__dropzone-label.sc-swirl-file-uploader{margin-top:var(--s-space-16);line-height:var(--s-line-height-base)}@media (min-width: 992px) and (max-width: 1439px) and (hover: hover),(min-width: 1440px){.file-uploader__dropzone-label.sc-swirl-file-uploader{margin-top:var(--s-space-8);font-size:var(--s-font-size-sm);line-height:var(--s-line-height-sm)}}.file-uploader__dropzone-cta.sc-swirl-file-uploader{color:var(--s-interactive-primary-default);font-weight:var(--s-font-weight-medium)}.file-uploader__upload-button.sc-swirl-file-uploader{margin-top:var(--s-space-16)}@media (min-width: 992px) and (max-width: 1439px) and (hover: hover),(min-width: 1440px){.file-uploader__upload-button.sc-swirl-file-uploader{margin-top:var(--s-space-12)}}.file-uploader__input.sc-swirl-file-uploader{display:none}", n = class {
|
|
7
|
+
constructor(i) {
|
|
8
|
+
r(this, i), this.valueChange = o(this, "valueChange", 7), this.ctaLabel = "Click to upload", this.dragDropLabel = "or drag and drop.", this.showDropzone = !0, this.uploadButtonLabel = "Select file", this.onChange = (l) => {
|
|
9
|
+
const a = l.target.files;
|
|
10
|
+
this.valueChange.emit(a);
|
|
11
|
+
}, this.onUploadButtonClick = () => {
|
|
12
|
+
this.inputEl.click();
|
|
13
|
+
};
|
|
14
|
+
}
|
|
15
|
+
async reset() {
|
|
16
|
+
this.inputEl.value = "";
|
|
17
|
+
}
|
|
18
|
+
render() {
|
|
19
|
+
const i = Boolean(this.description) ? `${this.inputId}-description ${this.inputId}-additional-label` : `${this.inputId}-additional-label`, l = this.showDropzone ? 0 : -1, a = t("file-uploader", {
|
|
20
|
+
"file-uploader--disabled": this.disabled,
|
|
21
|
+
"file-uploader--show-dropzone": this.showDropzone
|
|
22
|
+
});
|
|
23
|
+
return e(d, null, e("div", { class: a }, e("label", { class: "file-uploader__label", htmlFor: this.inputId, id: `${this.inputEl}-label` }, this.label), this.description && e("span", { class: "file-uploader__description", id: `${this.inputId}-description` }, this.description), e("div", { class: "file-uploader__dropzone" }, this.showDropzone ? [
|
|
24
|
+
e("swirl-icon-cloud-upload", { class: "file-uploader__dropzone-icon" }),
|
|
25
|
+
e("div", { class: "file-uploader__dropzone-label", id: `${this.inputId}-additional-label` }, e("span", { class: "file-uploader__dropzone-cta" }, this.ctaLabel), " ", e("span", { class: "file-uploader__drag-drop-label" }, this.dragDropLabel))
|
|
26
|
+
] : e("swirl-button", { class: "file-uploader__upload-button", disabled: this.disabled, swirlAriaDescribedby: i, intent: "primary", label: this.uploadButtonLabel, onClick: this.onUploadButtonClick, variant: "flat" }), e("input", { accept: this.accept, "aria-describedby": i, "aria-disabled": this.disabled, autoComplete: "off", class: "file-uploader__input", disabled: this.disabled, id: this.inputId, multiple: this.multiple, name: this.inputName, onChange: this.onChange, ref: (s) => this.inputEl = s, tabIndex: l, type: "file" }))));
|
|
27
|
+
}
|
|
28
|
+
};
|
|
29
|
+
n.style = p;
|
|
30
|
+
export {
|
|
31
|
+
n as swirl_file_uploader
|
|
32
|
+
};
|