@getflip/swirl-components-react 0.2.0 → 0.3.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/{flip-action-list-item.entry.66f33805.js → flip-action-list-item.entry.bfe816d0.js} +2 -2
- package/dist/{flip-action-list-section.entry.2927ba41.js → flip-action-list-section.entry.8072859c.js} +1 -1
- package/dist/{flip-action-list.entry.66352b19.js → flip-action-list.entry.07c4e8cb.js} +1 -1
- package/dist/{flip-avatar-group.entry.be7886a3.js → flip-avatar-group.entry.f987aa8b.js} +18 -9
- package/dist/{flip-avatar.entry.f95286a1.js → flip-avatar.entry.7be29e5c.js} +19 -10
- package/dist/{flip-badge.entry.3f2d34e9.js → flip-badge.entry.bb0eb78d.js} +1 -1
- package/dist/{flip-banner.entry.32f2ef57.js → flip-banner.entry.50b72a3f.js} +1 -1
- package/dist/flip-button-group.entry.9261c585.js +20 -0
- package/dist/flip-button.entry.98440a9e.js +35 -0
- package/dist/{flip-checkbox.entry.9768035f.js → flip-checkbox.entry.56d1e132.js} +2 -2
- package/dist/{flip-chip.entry.5ebbf411.js → flip-chip.entry.e2be5143.js} +1 -1
- package/dist/{flip-date-input.entry.7bf9efc5.js → flip-date-input.entry.2d5088ea.js} +1 -1
- package/dist/{flip-date-picker_3.entry.54e0b84d.js → flip-date-picker_3.entry.d61d1842.js} +84 -77
- package/dist/{flip-description-list-item.entry.f4e6faf7.js → flip-description-list-item.entry.ebdd7136.js} +1 -1
- package/dist/{flip-description-list.entry.2b1d4579.js → flip-description-list.entry.48a4d48b.js} +1 -1
- package/dist/{flip-dialog.entry.2bbc3bff.js → flip-dialog.entry.bec58ff3.js} +2 -2
- package/dist/{flip-empty-state.entry.376592fa.js → flip-empty-state.entry.d125feea.js} +1 -1
- package/dist/{flip-file-uploader.entry.c0ddf5a7.js → flip-file-uploader.entry.d8919920.js} +2 -2
- package/dist/{flip-file-viewer-audio_6.entry.d60d1099.js → flip-file-viewer-audio_6.entry.6ac11dbe.js} +697 -697
- package/dist/{flip-file-viewer.entry.0c2922e5.js → flip-file-viewer.entry.66629b65.js} +3 -3
- package/dist/{flip-form-control.entry.71c275f5.js → flip-form-control.entry.c45d4428.js} +1 -1
- package/dist/{flip-form-group.entry.ad2385d5.js → flip-form-group.entry.52e6ee89.js} +4 -4
- package/dist/{flip-heading.entry.1245bdda.js → flip-heading.entry.b20bb368.js} +1 -1
- package/dist/{flip-icon-add-photo.entry.c3178433.js → flip-icon-add-photo.entry.897fe115.js} +1 -1
- package/dist/{flip-icon-add.entry.708a8c7c.js → flip-icon-add.entry.a04d115d.js} +1 -1
- package/dist/{flip-icon-admin-panel-settings.entry.88af777a.js → flip-icon-admin-panel-settings.entry.d1c445fd.js} +1 -1
- package/dist/{flip-icon-arrow-back.entry.abd86e13.js → flip-icon-arrow-back.entry.e054a0e8.js} +1 -1
- package/dist/{flip-icon-arrow-forward.entry.ef6e8b77.js → flip-icon-arrow-forward.entry.ceea49fe.js} +1 -1
- package/dist/flip-icon-arrow-left_3.entry.ec0b28c1.js +35 -0
- package/dist/{flip-icon-arrow-right-small.entry.d342c71f.js → flip-icon-arrow-right-small.entry.88470f4b.js} +1 -1
- package/dist/{flip-icon-attachment.entry.898243d2.js → flip-icon-attachment.entry.c141c860.js} +1 -1
- package/dist/{flip-icon-cancel.entry.fac41df2.js → flip-icon-cancel.entry.07a0efa7.js} +1 -1
- package/dist/{flip-icon-chat-bubble.entry.016c1f0d.js → flip-icon-chat-bubble.entry.13a6899b.js} +1 -1
- package/dist/{flip-icon-check-circle.entry.330f4038.js → flip-icon-check-circle.entry.4c134688.js} +1 -1
- package/dist/{flip-icon-check-small.entry.590b928f.js → flip-icon-check-small.entry.1da0f061.js} +1 -1
- package/dist/{flip-icon-check-strong.entry.8fb90e69.js → flip-icon-check-strong.entry.819065e2.js} +1 -1
- package/dist/{flip-icon-check.entry.bf4892a9.js → flip-icon-check.entry.e9e18ec0.js} +1 -1
- package/dist/{flip-icon-chevron-left.entry.8a5cd7ef.js → flip-icon-chevron-left.entry.8b4f8813.js} +1 -1
- package/dist/{flip-icon-chevron-right.entry.ba87bdc8.js → flip-icon-chevron-right.entry.d32eba9e.js} +1 -1
- package/dist/{flip-icon-close-small.entry.d3ca39fb.js → flip-icon-close-small.entry.e18fcac6.js} +1 -1
- package/dist/{flip-icon-close.entry.ebcf0fe6.js → flip-icon-close.entry.30a8abc3.js} +1 -1
- package/dist/{flip-icon-cloud-upload.entry.bf4e840b.js → flip-icon-cloud-upload.entry.6412d35e.js} +1 -1
- package/dist/{flip-icon-comment.entry.dd07b7a4.js → flip-icon-comment.entry.731b5907.js} +1 -1
- package/dist/{flip-icon-copy.entry.796dcb43.js → flip-icon-copy.entry.c29519f3.js} +1 -1
- package/dist/{flip-icon-date-range.entry.53c670dc.js → flip-icon-date-range.entry.d6dea969.js} +1 -1
- package/dist/{flip-icon-delete.entry.df480685.js → flip-icon-delete.entry.e99d814a.js} +1 -1
- package/dist/{flip-icon-description.entry.da40cecc.js → flip-icon-description.entry.8448b398.js} +1 -1
- package/dist/{flip-icon-edit.entry.0f50ba4c.js → flip-icon-edit.entry.3ae910b7.js} +1 -1
- package/dist/{flip-icon-emoji-mood.entry.4fa27f13.js → flip-icon-emoji-mood.entry.89308bc3.js} +1 -1
- package/dist/{flip-icon-emoji-satisfied.entry.9246c39b.js → flip-icon-emoji-satisfied.entry.5a9bca01.js} +1 -1
- package/dist/{flip-icon-error_3.entry.4e8dcd9e.js → flip-icon-error_3.entry.f44ffe60.js} +1 -1
- package/dist/{flip-icon-expand-less_3.entry.f191352f.js → flip-icon-expand-less_3.entry.6e9d656c.js} +1 -1
- package/dist/{flip-icon-expand-more.entry.5dbcc3e3.js → flip-icon-expand-more.entry.d0acac42.js} +1 -1
- package/dist/{flip-icon-file.entry.64c3e030.js → flip-icon-file.entry.24508e1d.js} +1 -1
- package/dist/{flip-icon-folder-shared.entry.87cd72cd.js → flip-icon-folder-shared.entry.c829f971.js} +1 -1
- package/dist/{flip-icon-fullscreen-exit.entry.b274fc5c.js → flip-icon-fullscreen-exit.entry.4f7369df.js} +1 -1
- package/dist/{flip-icon-fullscreen.entry.a0a70cc8.js → flip-icon-fullscreen.entry.fe6d6998.js} +1 -1
- package/dist/{flip-icon-group-assign.entry.17e70921.js → flip-icon-group-assign.entry.ba88a447.js} +1 -1
- package/dist/{flip-icon-groups-custom.entry.ed78b313.js → flip-icon-groups-custom.entry.eeaaa045.js} +1 -1
- package/dist/{flip-icon-groups.entry.ff8a5e63.js → flip-icon-groups.entry.fb62ee22.js} +1 -1
- package/dist/{flip-icon-image.entry.b010afb8.js → flip-icon-image.entry.75eebbb0.js} +1 -1
- package/dist/{flip-icon-info.entry.61351d50.js → flip-icon-info.entry.e30b9669.js} +1 -1
- package/dist/{flip-icon-inventory.entry.f0ffd90a.js → flip-icon-inventory.entry.39ebc534.js} +1 -1
- package/dist/{flip-icon-like.entry.6b0034de.js → flip-icon-like.entry.80e5f8b9.js} +1 -1
- package/dist/{flip-icon-link.entry.9229312e.js → flip-icon-link.entry.c99a2106.js} +1 -1
- package/dist/{flip-icon-lock.entry.03e5fa85.js → flip-icon-lock.entry.5957290a.js} +1 -1
- package/dist/{flip-icon-logout.entry.8b073a7d.js → flip-icon-logout.entry.c6240d44.js} +1 -1
- package/dist/{flip-icon-mail.entry.91482af2.js → flip-icon-mail.entry.65b32c8b.js} +1 -1
- package/dist/{flip-icon-manage-accounts.entry.5de8be6f.js → flip-icon-manage-accounts.entry.73cd3a27.js} +1 -1
- package/dist/{flip-icon-mention.entry.ef803509.js → flip-icon-mention.entry.088e8573.js} +1 -1
- package/dist/{flip-icon-message.entry.20ae73fb.js → flip-icon-message.entry.e7306c78.js} +1 -1
- package/dist/{flip-icon-more-horizontal.entry.9a2357f0.js → flip-icon-more-horizontal.entry.9b6c4ab4.js} +1 -1
- package/dist/{flip-icon-more-vertikal.entry.0447fdab.js → flip-icon-more-vertikal.entry.43a77373.js} +1 -1
- package/dist/{flip-icon-notifications-active.entry.3aa487b9.js → flip-icon-notifications-active.entry.b48ff150.js} +1 -1
- package/dist/{flip-icon-notifications-off.entry.285c2bb6.js → flip-icon-notifications-off.entry.b60ef6aa.js} +1 -1
- package/dist/{flip-icon-notifications.entry.e60fed91.js → flip-icon-notifications.entry.e2d0f244.js} +1 -1
- package/dist/{flip-icon-open-in-new.entry.9de4d7c0.js → flip-icon-open-in-new.entry.bdcb5f7e.js} +1 -1
- package/dist/{flip-icon-people-alt.entry.dd840fb1.js → flip-icon-people-alt.entry.4c0917f0.js} +1 -1
- package/dist/{flip-icon-person-off.entry.df6c63b6.js → flip-icon-person-off.entry.4dba1b98.js} +1 -1
- package/dist/{flip-icon-person.entry.37939889.js → flip-icon-person.entry.57042a58.js} +1 -1
- package/dist/{flip-icon-phone.entry.08245320.js → flip-icon-phone.entry.3ad46317.js} +1 -1
- package/dist/{flip-icon-poll.entry.e0ff1d9f.js → flip-icon-poll.entry.c14b718c.js} +1 -1
- package/dist/{flip-icon-print.entry.f5fbd804.js → flip-icon-print.entry.42bc6751.js} +1 -1
- package/dist/{flip-icon-recieved.entry.5b4e2a50.js → flip-icon-recieved.entry.35cc64fd.js} +1 -1
- package/dist/{flip-icon-remove.entry.98d516c6.js → flip-icon-remove.entry.7ce5335b.js} +1 -1
- package/dist/{flip-icon-search-strong.entry.afcf6af9.js → flip-icon-search-strong.entry.d6722aba.js} +1 -1
- package/dist/{flip-icon-search.entry.0f103075.js → flip-icon-search.entry.c2c88135.js} +1 -1
- package/dist/{flip-icon-send.entry.fd3001a2.js → flip-icon-send.entry.6d3ed0a4.js} +1 -1
- package/dist/{flip-icon-settings.entry.2b1e4bb0.js → flip-icon-settings.entry.3ab04c76.js} +1 -1
- package/dist/{flip-icon-time-filled.entry.7fa814d7.js → flip-icon-time-filled.entry.050c61d7.js} +1 -1
- package/dist/{flip-icon-time-outlined.entry.e3f601ce.js → flip-icon-time-outlined.entry.195df6e9.js} +1 -1
- package/dist/{flip-icon-user-assign.entry.4951e82f.js → flip-icon-user-assign.entry.60316828.js} +1 -1
- package/dist/{flip-icon-video-camera.entry.74f8a7b6.js → flip-icon-video-camera.entry.d376e2da.js} +1 -1
- package/dist/{flip-icon-warning.entry.76ebfb1e.js → flip-icon-warning.entry.7484d16e.js} +1 -1
- package/dist/flip-lightbox.entry.cdffd089.js +110 -0
- package/dist/{flip-link.entry.f67e488c.js → flip-link.entry.145e89bf.js} +1 -1
- package/dist/{flip-list.entry.5cc5b288.js → flip-list.entry.fcece197.js} +1 -1
- package/dist/flip-modal.entry.f20fd032.js +63 -0
- package/dist/{flip-option-list-item.entry.fd1d85dd.js → flip-option-list-item.entry.ed931c3c.js} +1 -1
- package/dist/{flip-option-list-section.entry.5509895e.js → flip-option-list-section.entry.c0084261.js} +1 -1
- package/dist/{flip-option-list.entry.efe97de9.js → flip-option-list.entry.a07fd2d3.js} +1 -1
- package/dist/{flip-pagination.entry.b109c35d.js → flip-pagination.entry.a8a4c1bf.js} +1 -1
- package/dist/{flip-progress-indicator.entry.b7cf2985.js → flip-progress-indicator.entry.8069914b.js} +1 -1
- package/dist/{flip-radio-group.entry.dfc6ef8e.js → flip-radio-group.entry.4046ee83.js} +2 -2
- package/dist/{flip-radio.entry.f153fc92.js → flip-radio.entry.941e407b.js} +2 -2
- package/dist/{flip-resource-list-file-item.entry.26beeeee.js → flip-resource-list-file-item.entry.678596e2.js} +1 -1
- package/dist/{flip-resource-list-item.entry.7cac7a7c.js → flip-resource-list-item.entry.3ba2f6c5.js} +1 -1
- package/dist/{flip-resource-list.entry.75d10224.js → flip-resource-list.entry.b5f4d108.js} +1 -1
- package/dist/{flip-search.entry.eccdd9b5.js → flip-search.entry.05617d72.js} +1 -1
- package/dist/{flip-stack.entry.2448bd6b.js → flip-stack.entry.60b7e7d8.js} +1 -1
- package/dist/{flip-switch.entry.71d04383.js → flip-switch.entry.51a1856d.js} +1 -1
- package/dist/{flip-tab.entry.184626dd.js → flip-tab.entry.fd12f894.js} +1 -1
- package/dist/flip-tabs.entry.9462dbaa.js +67 -0
- package/dist/{flip-tag.entry.5df8a6b4.js → flip-tag.entry.923d754e.js} +1 -1
- package/dist/{flip-text-input.entry.55decf50.js → flip-text-input.entry.09a6024a.js} +4 -4
- package/dist/{flip-text.entry.2b6e3f56.js → flip-text.entry.634f95b3.js} +1 -1
- package/dist/{flip-theme-provider.entry.1570cb6b.js → flip-theme-provider.entry.ab641668.js} +1 -1
- package/dist/{flip-thumbnail.entry.54ea67cf.js → flip-thumbnail.entry.9d00d2f8.js} +1 -1
- package/dist/{flip-toast-provider.entry.0ee21f8b.js → flip-toast-provider.entry.d0391c9a.js} +1 -1
- package/dist/{flip-toast.entry.29ea2ead.js → flip-toast.entry.fac8df58.js} +4 -4
- package/dist/{flip-tooltip.entry.e6a904e4.js → flip-tooltip.entry.f7d80b92.js} +1 -1
- package/dist/{flip-video-thumbnail.entry.f3cf1c28.js → flip-video-thumbnail.entry.f45c61bc.js} +1 -1
- package/dist/{flip-visually-hidden.entry.47d25a46.js → flip-visually-hidden.entry.1099adf3.js} +1 -1
- package/dist/{index.b6e7bb76.js → index.0ccdd659.js} +231 -230
- package/dist/stencil-generated/index.d.ts +1 -0
- package/dist/swirl-components-react.js +44 -43
- package/dist/swirl-components-react.umd.cjs +31 -29
- package/package.json +2 -2
- package/dist/flip-button-group.entry.ed86679b.js +0 -15
- package/dist/flip-button.entry.555b8fd4.js +0 -33
- package/dist/flip-icon-arrow-left.entry.70be0607.js +0 -15
- package/dist/flip-icon-arrow-right.entry.bd9eae8e.js +0 -15
- package/dist/flip-icon-download.entry.3926477e.js +0 -15
- package/dist/flip-modal.entry.4921d0b4.js +0 -61
- package/dist/flip-tabs.entry.9434fd96.js +0 -92
|
@@ -1,31 +1,31 @@
|
|
|
1
|
-
import { r as ie, c as _e, h as b, H as ue, F as te, g as Me } from "./index.
|
|
1
|
+
import { r as ie, c as _e, h as b, H as ue, F as te, g as Me } from "./index.0ccdd659.js";
|
|
2
2
|
import { c as me, a as $e, g as xe } from "./_commonjsHelpers-44457d8d.ba94af77.js";
|
|
3
|
-
import { c as
|
|
3
|
+
import { c as Te, s as Se, f as Ve, a as Fe } from "./floating-ui.dom.esm-1a4e8b8a.87557233.js";
|
|
4
4
|
import { e as de, d as He } from "./bodyScrollLock.esm-ce6356d8.2c600fb9.js";
|
|
5
5
|
import { c as Ee } from "./index-6d2e18c6.289636d4.js";
|
|
6
6
|
import { i as ce, q as pe } from "./utils-b46bcd4f.79126bb2.js";
|
|
7
7
|
import "react";
|
|
8
8
|
import "react-dom";
|
|
9
9
|
var Ae = me(function(m, v) {
|
|
10
|
-
(function(
|
|
11
|
-
m.exports =
|
|
10
|
+
(function(w, S) {
|
|
11
|
+
m.exports = S();
|
|
12
12
|
})($e, function() {
|
|
13
13
|
return function() {
|
|
14
|
-
var
|
|
14
|
+
var w = { d: function(r, e) {
|
|
15
15
|
for (var t in e)
|
|
16
|
-
|
|
16
|
+
w.o(e, t) && !w.o(r, t) && Object.defineProperty(r, t, { enumerable: !0, get: e[t] });
|
|
17
17
|
}, o: function(r, e) {
|
|
18
18
|
return Object.prototype.hasOwnProperty.call(r, e);
|
|
19
|
-
} },
|
|
20
|
-
|
|
19
|
+
} }, S = {};
|
|
20
|
+
w.d(S, { default: function() {
|
|
21
21
|
return E;
|
|
22
22
|
} });
|
|
23
23
|
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-" }, se = { 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 };
|
|
24
|
-
function
|
|
24
|
+
function k(r) {
|
|
25
25
|
let e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : document;
|
|
26
26
|
return typeof r == "string" ? e.querySelector(r) : r;
|
|
27
27
|
}
|
|
28
|
-
function
|
|
28
|
+
function M() {
|
|
29
29
|
let { tagName: r = "div", className: e = "", innerHtml: t = "", id: i = "", attrs: a = {} } = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, n = document.createElement(r);
|
|
30
30
|
return e && n.classList.add(...e.split(" ")), i && (n.id = i), t && (n.innerHTML = t), a && G(n, a), n;
|
|
31
31
|
}
|
|
@@ -81,7 +81,7 @@ var Ae = me(function(m, v) {
|
|
|
81
81
|
function ge(r) {
|
|
82
82
|
return r.setHours(0, 0, 0, 0), r;
|
|
83
83
|
}
|
|
84
|
-
function
|
|
84
|
+
function _(r, e, t) {
|
|
85
85
|
r.length ? r.forEach((i) => {
|
|
86
86
|
i.addEventListener(e, t);
|
|
87
87
|
}) : r.addEventListener(e, t);
|
|
@@ -148,7 +148,7 @@ var Ae = me(function(m, v) {
|
|
|
148
148
|
_createElement() {
|
|
149
149
|
var e;
|
|
150
150
|
let { year: t, month: i, date: a } = y(this.date), n = ((e = this.customData) === null || e === void 0 ? void 0 : e.attrs) || {};
|
|
151
|
-
this.$cell =
|
|
151
|
+
this.$cell = M({ className: this._getClassName(), attrs: { "data-year": t, "data-month": i, "data-date": a, ...n } });
|
|
152
152
|
}
|
|
153
153
|
_getClassName() {
|
|
154
154
|
var e, t;
|
|
@@ -208,7 +208,7 @@ var Ae = me(function(m, v) {
|
|
|
208
208
|
return this.dp.isOtherDecade(this.date);
|
|
209
209
|
}
|
|
210
210
|
}
|
|
211
|
-
function
|
|
211
|
+
function $(r, e, t) {
|
|
212
212
|
return e in r ? Object.defineProperty(r, e, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : r[e] = t, r;
|
|
213
213
|
}
|
|
214
214
|
let fe = { [l.days]: '<div class="air-datepicker-body--day-names"></div>' + '<div class="air-datepicker-body--cells -'.concat(l.days, '-"></div>'), [l.months]: '<div class="air-datepicker-body--cells -'.concat(l.months, '-"></div>'), [l.years]: '<div class="air-datepicker-body--cells -'.concat(l.years, '-"></div>') };
|
|
@@ -216,7 +216,7 @@ var Ae = me(function(m, v) {
|
|
|
216
216
|
class ne {
|
|
217
217
|
constructor(e) {
|
|
218
218
|
let { dp: t, type: i, opts: a } = e;
|
|
219
|
-
|
|
219
|
+
$(this, "handleClick", (n) => {
|
|
220
220
|
let s = n.target.closest(j).adpCell;
|
|
221
221
|
if (s.isDisabled)
|
|
222
222
|
return;
|
|
@@ -224,24 +224,24 @@ var Ae = me(function(m, v) {
|
|
|
224
224
|
return void this.dp.down();
|
|
225
225
|
let o = this.dp._checkIfDateIsSelected(s.date, s.type);
|
|
226
226
|
o ? this.dp._handleAlreadySelectedDates(o, s.date) : this.dp.selectDate(s.date);
|
|
227
|
-
}),
|
|
227
|
+
}), $(this, "handleDayNameClick", (n) => {
|
|
228
228
|
let s = n.target.getAttribute("data-day-index");
|
|
229
229
|
this.opts.onClickDayName({ dayIndex: Number(s), datepicker: this.dp });
|
|
230
|
-
}),
|
|
230
|
+
}), $(this, "onChangeCurrentView", (n) => {
|
|
231
231
|
n !== this.type ? this.hide() : (this.show(), this.render());
|
|
232
|
-
}),
|
|
232
|
+
}), $(this, "onMouseOverCell", (n) => {
|
|
233
233
|
let s = U(n.target, j);
|
|
234
234
|
this.dp.setFocusDate(!!s && s.adpCell.date);
|
|
235
|
-
}),
|
|
235
|
+
}), $(this, "onMouseOutCell", () => {
|
|
236
236
|
this.dp.setFocusDate(!1);
|
|
237
|
-
}),
|
|
237
|
+
}), $(this, "onClickBody", (n) => {
|
|
238
238
|
let { onClickDayName: s } = this.opts, o = n.target;
|
|
239
239
|
o.closest(j) && this.handleClick(n), s && o.closest(".air-datepicker-body--day-name") && this.handleDayNameClick(n);
|
|
240
|
-
}),
|
|
240
|
+
}), $(this, "onMouseDown", (n) => {
|
|
241
241
|
this.pressed = !0;
|
|
242
242
|
let s = U(n.target, j), o = s && s.adpCell;
|
|
243
243
|
D(o.date, this.dp.rangeDateFrom) && (this.rangeFromFocused = !0), D(o.date, this.dp.rangeDateTo) && (this.rangeToFocused = !0);
|
|
244
|
-
}),
|
|
244
|
+
}), $(this, "onMouseMove", (n) => {
|
|
245
245
|
if (!this.pressed || !this.dp.isMinViewReached)
|
|
246
246
|
return;
|
|
247
247
|
n.preventDefault();
|
|
@@ -259,9 +259,9 @@ var Ae = me(function(m, v) {
|
|
|
259
259
|
p.setHours(u), p.setMinutes(f), this.dp.rangeDateTo = p, this.dp.replaceDate(d, p);
|
|
260
260
|
}
|
|
261
261
|
}
|
|
262
|
-
}),
|
|
262
|
+
}), $(this, "onMouseUp", () => {
|
|
263
263
|
this.pressed = !1, this.rangeFromFocused = !1, this.rangeToFocused = !1;
|
|
264
|
-
}),
|
|
264
|
+
}), $(this, "onChangeViewDate", (n, s) => {
|
|
265
265
|
if (!this.isVisible)
|
|
266
266
|
return;
|
|
267
267
|
let o = A(n), h = A(s);
|
|
@@ -279,7 +279,7 @@ var Ae = me(function(m, v) {
|
|
|
279
279
|
return;
|
|
280
280
|
}
|
|
281
281
|
this.render();
|
|
282
|
-
}),
|
|
282
|
+
}), $(this, "render", () => {
|
|
283
283
|
this.destroyCells(), this._generateCells(), this.cells.forEach((n) => {
|
|
284
284
|
this.$cells.appendChild(n.render());
|
|
285
285
|
});
|
|
@@ -290,13 +290,13 @@ var Ae = me(function(m, v) {
|
|
|
290
290
|
}
|
|
291
291
|
_bindEvents() {
|
|
292
292
|
let { range: e, dynamicRange: t } = this.opts;
|
|
293
|
-
|
|
293
|
+
_(this.$el, "mouseover", this.onMouseOverCell), _(this.$el, "mouseout", this.onMouseOutCell), _(this.$el, "click", this.onClickBody), e && t && (_(this.$el, "mousedown", this.onMouseDown), _(this.$el, "mousemove", this.onMouseMove), _(window.document, "mouseup", this.onMouseUp));
|
|
294
294
|
}
|
|
295
295
|
_bindDatepickerEvents() {
|
|
296
296
|
this.dp.on(l.eventChangeViewDate, this.onChangeViewDate), this.dp.on(l.eventChangeCurrentView, this.onChangeCurrentView);
|
|
297
297
|
}
|
|
298
298
|
_buildBaseHtml() {
|
|
299
|
-
this.$el =
|
|
299
|
+
this.$el = M({ className: "air-datepicker-body -".concat(this.type, "-"), innerHtml: fe[this.type] }), this.$names = k(".air-datepicker-body--day-names", this.$el), this.$cells = k(".air-datepicker-body--cells", this.$el);
|
|
300
300
|
}
|
|
301
301
|
_getDayNamesHtml() {
|
|
302
302
|
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;
|
|
@@ -312,10 +312,10 @@ var Ae = me(function(m, v) {
|
|
|
312
312
|
let c = function(z, Y) {
|
|
313
313
|
let { year: W, month: K, date: q } = y(z);
|
|
314
314
|
return new Date(W, K, q - Y);
|
|
315
|
-
}(s, h), p = i + h + d, u = c.getDate(), { year: f, month:
|
|
316
|
-
for (;
|
|
317
|
-
let z = new Date(f,
|
|
318
|
-
this._generateCell(z),
|
|
315
|
+
}(s, h), p = i + h + d, u = c.getDate(), { year: f, month: C } = y(c), T = 0;
|
|
316
|
+
for (; T < p; ) {
|
|
317
|
+
let z = new Date(f, C, u + T);
|
|
318
|
+
this._generateCell(z), T++;
|
|
319
319
|
}
|
|
320
320
|
}
|
|
321
321
|
_generateCell(e) {
|
|
@@ -397,7 +397,7 @@ var Ae = me(function(m, v) {
|
|
|
397
397
|
this._createElement(), this._buildBaseHtml(), this._defineDOM(), this.render(), this.handleNavStatus(), this._bindEvents(), this._bindDatepickerEvents();
|
|
398
398
|
}
|
|
399
399
|
_defineDOM() {
|
|
400
|
-
this.$title =
|
|
400
|
+
this.$title = k(".air-datepicker-nav--title", this.$el), this.$prev = k('[data-action="prev"]', this.$el), this.$next = k('[data-action="next"]', this.$el);
|
|
401
401
|
}
|
|
402
402
|
_bindEvents() {
|
|
403
403
|
this.$el.addEventListener("click", this.onClickNav), this.$title.addEventListener("click", this.onClickNavTitle);
|
|
@@ -409,7 +409,7 @@ var Ae = me(function(m, v) {
|
|
|
409
409
|
this.dp.off(l.eventChangeViewDate, this.onChangeViewDate), this.dp.off(l.eventChangeCurrentView, this.onChangeCurrentView), this.isNavIsFunction && (this.dp.off(l.eventChangeSelectedDate, this.renderDelay), this.dp.opts.timepicker && this.dp.off(l.eventChangeTime, this.render));
|
|
410
410
|
}
|
|
411
411
|
_createElement() {
|
|
412
|
-
this.$el =
|
|
412
|
+
this.$el = M({ tagName: "nav", className: "air-datepicker-nav" });
|
|
413
413
|
}
|
|
414
414
|
_getTitle() {
|
|
415
415
|
let { dp: e, opts: t } = this, i = t.navTitles[e.currentView];
|
|
@@ -435,7 +435,7 @@ var Ae = me(function(m, v) {
|
|
|
435
435
|
}
|
|
436
436
|
}
|
|
437
437
|
_disableNav(e) {
|
|
438
|
-
|
|
438
|
+
k('[data-action="' + e + '"]', this.$el).classList.add("-disabled-");
|
|
439
439
|
}
|
|
440
440
|
_resetNavStatus() {
|
|
441
441
|
(function(e) {
|
|
@@ -465,7 +465,7 @@ var Ae = me(function(m, v) {
|
|
|
465
465
|
this.createElement(), this.render();
|
|
466
466
|
}
|
|
467
467
|
createElement() {
|
|
468
|
-
this.$el =
|
|
468
|
+
this.$el = M({ className: "air-datepicker-buttons" });
|
|
469
469
|
}
|
|
470
470
|
destroy() {
|
|
471
471
|
this.$el.parentNode.removeChild(this.$el);
|
|
@@ -489,7 +489,7 @@ var Ae = me(function(m, v) {
|
|
|
489
489
|
}
|
|
490
490
|
createButton(e) {
|
|
491
491
|
let { content: t, className: i, tagName: a = "button", attrs: n = {} } = e, s = typeof t == "function" ? t(this.dp) : t;
|
|
492
|
-
return
|
|
492
|
+
return M({ tagName: a, innerHtml: "<span tabindex='-1'>".concat(s, "</span>"), className: V("air-datepicker-button", i), attrs: n });
|
|
493
493
|
}
|
|
494
494
|
render() {
|
|
495
495
|
this.generateButtons();
|
|
@@ -530,10 +530,10 @@ var Ae = me(function(m, v) {
|
|
|
530
530
|
}
|
|
531
531
|
bindDOMEvents() {
|
|
532
532
|
let e = "input";
|
|
533
|
-
navigator.userAgent.match(/trident/gi) && (e = "change"),
|
|
533
|
+
navigator.userAgent.match(/trident/gi) && (e = "change"), _(this.$ranges, e, this.onChangeInputRange), _(this.$ranges, "mouseenter", this.onMouseEnterLeave), _(this.$ranges, "mouseleave", this.onMouseEnterLeave), _(this.$ranges, "focus", this.onFocus), _(this.$ranges, "mousedown", this.onFocus), _(this.$ranges, "blur", this.onBlur);
|
|
534
534
|
}
|
|
535
535
|
createElement() {
|
|
536
|
-
this.$el =
|
|
536
|
+
this.$el = M({ className: V("air-datepicker-time", { "-am-pm-": this.dp.ampm }) });
|
|
537
537
|
}
|
|
538
538
|
destroy() {
|
|
539
539
|
this.dp.off(l.eventChangeSelectedDate, this.onChangeSelectedDate), this.dp.off(l.eventChangeLastSelectedDate, this.onChangeLastSelectedDate), this.$el.parentNode.removeChild(this.$el);
|
|
@@ -543,7 +543,7 @@ var Ae = me(function(m, v) {
|
|
|
543
543
|
this.$el.innerHTML = '<div class="air-datepicker-time--current">' + ' <span class="air-datepicker-time--current-hours">'.concat(P(i), "</span>") + ' <span class="air-datepicker-time--current-colon">:</span>' + ' <span class="air-datepicker-time--current-minutes">'.concat(P(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(p, '"/>') + " </div></div>";
|
|
544
544
|
}
|
|
545
545
|
defineDOM() {
|
|
546
|
-
let e = (t) =>
|
|
546
|
+
let e = (t) => k(t, this.$el);
|
|
547
547
|
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");
|
|
548
548
|
}
|
|
549
549
|
setTime(e) {
|
|
@@ -757,17 +757,17 @@ var Ae = me(function(m, v) {
|
|
|
757
757
|
let o = arguments.length > 1 && arguments[1] !== void 0 && arguments[1];
|
|
758
758
|
if (typeof (s = s || i.opts.position) == "function")
|
|
759
759
|
return void (i.customHide = s({ $datepicker: i.$datepicker, $target: i.$el, $pointer: i.$pointer, isViewChange: o, done: i._finishHide }));
|
|
760
|
-
let h, d, { isMobile: c } = i.opts, p = i.$el.getBoundingClientRect(), u = i.$el.getBoundingClientRect(), f = i.$datepicker.offsetParent,
|
|
760
|
+
let h, d, { isMobile: c } = i.opts, p = i.$el.getBoundingClientRect(), u = i.$el.getBoundingClientRect(), f = i.$datepicker.offsetParent, C = i.$el.offsetParent, T = i.$datepicker.getBoundingClientRect(), z = s.split(" "), Y = window.scrollY, W = window.scrollX, K = i.opts.offset, q = z[0], Ce = z[1];
|
|
761
761
|
if (c)
|
|
762
762
|
i.$datepicker.style.cssText = "left: 50%; top: 50%";
|
|
763
763
|
else {
|
|
764
|
-
if (f ===
|
|
764
|
+
if (f === C && f !== document.body && (u = { top: i.$el.offsetTop, left: i.$el.offsetLeft, width: p.width, height: i.$el.offsetHeight }, Y = 0, W = 0), f !== C && f !== document.body) {
|
|
765
765
|
let le = f.getBoundingClientRect();
|
|
766
766
|
u = { top: p.top - le.top, left: p.left - le.left, width: p.width, height: p.height }, Y = 0, W = 0;
|
|
767
767
|
}
|
|
768
768
|
switch (q) {
|
|
769
769
|
case "top":
|
|
770
|
-
h = u.top -
|
|
770
|
+
h = u.top - T.height - K;
|
|
771
771
|
break;
|
|
772
772
|
case "right":
|
|
773
773
|
d = u.left + u.width + K;
|
|
@@ -776,23 +776,23 @@ var Ae = me(function(m, v) {
|
|
|
776
776
|
h = u.top + u.height + K;
|
|
777
777
|
break;
|
|
778
778
|
case "left":
|
|
779
|
-
d = u.left -
|
|
779
|
+
d = u.left - T.width - K;
|
|
780
780
|
}
|
|
781
781
|
switch (Ce) {
|
|
782
782
|
case "top":
|
|
783
783
|
h = u.top;
|
|
784
784
|
break;
|
|
785
785
|
case "right":
|
|
786
|
-
d = u.left + u.width -
|
|
786
|
+
d = u.left + u.width - T.width;
|
|
787
787
|
break;
|
|
788
788
|
case "bottom":
|
|
789
|
-
h = u.top + u.height -
|
|
789
|
+
h = u.top + u.height - T.height;
|
|
790
790
|
break;
|
|
791
791
|
case "left":
|
|
792
792
|
d = u.left;
|
|
793
793
|
break;
|
|
794
794
|
case "center":
|
|
795
|
-
/left|right/.test(q) ? h = u.top + u.height / 2 -
|
|
795
|
+
/left|right/.test(q) ? h = u.top + u.height / 2 - T.height / 2 : d = u.left + u.width / 2 - T.width / 2;
|
|
796
796
|
}
|
|
797
797
|
i.$datepicker.style.cssText = "left: ".concat(d + W, "px; top: ").concat(h + Y, "px");
|
|
798
798
|
}
|
|
@@ -872,8 +872,8 @@ var Ae = me(function(m, v) {
|
|
|
872
872
|
}), g(this, "_onChangeTime", (s) => {
|
|
873
873
|
let { hours: o, minutes: h } = s, d = new Date(), { lastSelectedDate: c, opts: { onSelect: p } } = this, u = c;
|
|
874
874
|
c || (u = d);
|
|
875
|
-
let f = this.getCell(u, this.currentViewSingular),
|
|
876
|
-
|
|
875
|
+
let f = this.getCell(u, this.currentViewSingular), C = f && f.adpCell;
|
|
876
|
+
C && C.isDisabled || (u.setHours(o), u.setMinutes(h), c ? (this._setInputValue(), p && this._triggerOnSelect()) : this.selectDate(u));
|
|
877
877
|
}), g(this, "_onFocus", (s) => {
|
|
878
878
|
this.visible || this.show();
|
|
879
879
|
}), g(this, "_onBlur", (s) => {
|
|
@@ -889,19 +889,19 @@ var Ae = me(function(m, v) {
|
|
|
889
889
|
}), g(this, "isWeekend", (s) => this.opts.weekends.includes(s)), g(this, "getClampedDate", (s) => {
|
|
890
890
|
let { minDate: o, maxDate: h } = this, d = s;
|
|
891
891
|
return h && F(s, h) ? d = h : o && B(s, o) && (d = o), d;
|
|
892
|
-
}), this.$el =
|
|
892
|
+
}), this.$el = k(e), !this.$el)
|
|
893
893
|
return;
|
|
894
|
-
this.$datepicker =
|
|
894
|
+
this.$datepicker = M({ className: "air-datepicker" }), this.opts = Z({}, se, t), this.$customContainer = !!this.opts.container && k(this.opts.container), this.$altField = k(this.opts.altField || !1), ee || (ee = k("body"));
|
|
895
895
|
let { view: a, startDate: n } = this.opts;
|
|
896
896
|
n || (this.opts.startDate = new Date()), this.$el.nodeName === "INPUT" && (this.elIsInput = !0), this.inited = !1, this.visible = !1, this.viewDate = x(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();
|
|
897
897
|
}
|
|
898
898
|
init() {
|
|
899
899
|
let { opts: e, treatAsInline: t, opts: { inline: i, isMobile: a, selectedDates: n, keyboardNav: s, onlyTimepicker: o } } = this;
|
|
900
900
|
var h;
|
|
901
|
-
oe || i || !this.elIsInput || (oe = !0, J =
|
|
901
|
+
oe || i || !this.elIsInput || (oe = !0, J = M({ className: h = E.defaultContainerId, id: h }), ee.appendChild(J)), !a || H || t || this._createMobileOverlay(), this._handleLocale(), this._bindSubEvents(), this._createMinMaxDates(), this._limitViewDateByMaxMinDates(), this.elIsInput && (i || this._bindEvents(), s && !o && (this.keyboardNav = new we({ dp: this, opts: e }))), n && this.selectDate(n, { silent: !0 }), this.opts.visible && !t && this.show(), a && !t && this.$el.setAttribute("readonly", !0), t && this._createComponents();
|
|
902
902
|
}
|
|
903
903
|
_createMobileOverlay() {
|
|
904
|
-
H =
|
|
904
|
+
H = M({ className: "air-datepicker-overlay" }), J.appendChild(H);
|
|
905
905
|
}
|
|
906
906
|
_createComponents() {
|
|
907
907
|
let { opts: e, treatAsInline: t, opts: { inline: i, buttons: a, timepicker: n, position: s, classes: o, onlyTimepicker: h, isMobile: d } } = this;
|
|
@@ -923,10 +923,10 @@ var Ae = me(function(m, v) {
|
|
|
923
923
|
this.minDate = !!e && x(e), this.maxDate = !!t && x(t);
|
|
924
924
|
}
|
|
925
925
|
_addTimepicker() {
|
|
926
|
-
this.$timepicker =
|
|
926
|
+
this.$timepicker = M({ className: "air-datepicker--time" }), this.$datepicker.appendChild(this.$timepicker), this.timepicker = new be({ dp: this, opts: this.opts }), this.$timepicker.appendChild(this.timepicker.$el);
|
|
927
927
|
}
|
|
928
928
|
_addButtons() {
|
|
929
|
-
this.$buttons =
|
|
929
|
+
this.$buttons = M({ className: "air-datepicker--buttons" }), this.$datepicker.appendChild(this.$buttons), this.buttons = new De({ dp: this, opts: this.opts }), this.$buttons.appendChild(this.buttons.$el);
|
|
930
930
|
}
|
|
931
931
|
_bindSubEvents() {
|
|
932
932
|
this.on(l.eventChangeSelectedDate, this._onChangeSelectedDate), this.on(l.eventChangeFocusDate, this._onChangeFocusedDate), this.on(l.eventChangeTime, this._onChangeTime);
|
|
@@ -934,7 +934,7 @@ var Ae = me(function(m, v) {
|
|
|
934
934
|
_buildBaseHtml() {
|
|
935
935
|
let { inline: e } = this.opts;
|
|
936
936
|
var t, i;
|
|
937
|
-
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 =
|
|
937
|
+
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 = k(".air-datepicker--content", this.$datepicker), this.$pointer = k(".air-datepicker--pointer", this.$datepicker), this.$nav = k(".air-datepicker--navigation", this.$datepicker);
|
|
938
938
|
}
|
|
939
939
|
_handleLocale() {
|
|
940
940
|
let { locale: e, dateFormat: t, firstDay: i, timepicker: a, onlyTimepicker: n, timeFormat: s, dateTimeSeparator: o } = this.opts;
|
|
@@ -980,10 +980,10 @@ var Ae = me(function(m, v) {
|
|
|
980
980
|
selectDate(e) {
|
|
981
981
|
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: p, autoClose: u } = this.opts, f = s.length;
|
|
982
982
|
if (Array.isArray(e))
|
|
983
|
-
return e.forEach((
|
|
984
|
-
this.selectDate(
|
|
985
|
-
}), new Promise((
|
|
986
|
-
setTimeout(
|
|
983
|
+
return e.forEach((C) => {
|
|
984
|
+
this.selectDate(C, i);
|
|
985
|
+
}), new Promise((C) => {
|
|
986
|
+
setTimeout(C);
|
|
987
987
|
});
|
|
988
988
|
if ((e = x(e)) instanceof Date) {
|
|
989
989
|
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 && !p) {
|
|
@@ -1003,8 +1003,8 @@ var Ae = me(function(m, v) {
|
|
|
1003
1003
|
}
|
|
1004
1004
|
else
|
|
1005
1005
|
this.selectedDates = [e];
|
|
1006
|
-
return this.trigger(l.eventChangeSelectedDate, { action: l.actionSelectDate, silent: i == null ? void 0 : i.silent, date: e, updateTime: o }), this._updateLastSelectedDate(e), u && !this.timepickerIsActive && this.visible && (c || p ? p && f === 1 && this.hide() : this.hide()), new Promise((
|
|
1007
|
-
setTimeout(
|
|
1006
|
+
return this.trigger(l.eventChangeSelectedDate, { action: l.actionSelectDate, silent: i == null ? void 0 : i.silent, date: e, updateTime: o }), this._updateLastSelectedDate(e), u && !this.timepickerIsActive && this.visible && (c || p ? p && f === 1 && this.hide() : this.hide()), new Promise((C) => {
|
|
1007
|
+
setTimeout(C);
|
|
1008
1008
|
});
|
|
1009
1009
|
}
|
|
1010
1010
|
}
|
|
@@ -1100,14 +1100,14 @@ var Ae = me(function(m, v) {
|
|
|
1100
1100
|
}
|
|
1101
1101
|
}
|
|
1102
1102
|
var he;
|
|
1103
|
-
return g(E, "defaults", se), g(E, "version", "3.3.0"), g(E, "defaultContainerId", "air-datepicker-global-container"), he = E.prototype, Object.assign(he, ke),
|
|
1103
|
+
return g(E, "defaults", se), g(E, "version", "3.3.0"), g(E, "defaultContainerId", "air-datepicker-global-container"), he = E.prototype, Object.assign(he, ke), S.default;
|
|
1104
1104
|
}();
|
|
1105
1105
|
});
|
|
1106
1106
|
}), Le = me(function(m, v) {
|
|
1107
1107
|
Object.defineProperty(v, "__esModule", {
|
|
1108
1108
|
value: !0
|
|
1109
1109
|
}), v.default = void 0;
|
|
1110
|
-
var
|
|
1110
|
+
var w = {
|
|
1111
1111
|
days: ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"],
|
|
1112
1112
|
daysShort: ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"],
|
|
1113
1113
|
daysMin: ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"],
|
|
@@ -1119,9 +1119,9 @@ var Ae = me(function(m, v) {
|
|
|
1119
1119
|
timeFormat: "hh:mm aa",
|
|
1120
1120
|
firstDay: 0
|
|
1121
1121
|
};
|
|
1122
|
-
v.default =
|
|
1122
|
+
v.default = w;
|
|
1123
1123
|
});
|
|
1124
|
-
const Oe = /* @__PURE__ */ xe(Le), Ne = ':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
|
|
1124
|
+
const Oe = /* @__PURE__ */ xe(Le), Ne = ':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}.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}', Ie = class {
|
|
1125
1125
|
constructor(m) {
|
|
1126
1126
|
ie(this, m), this.valueChange = _e(this, "valueChange", 3), this.locale = Oe, this.onClick = (v) => {
|
|
1127
1127
|
v.stopPropagation(), v.preventDefault();
|
|
@@ -1182,13 +1182,13 @@ const Pe = ":host{display:inline-flex}", Be = class {
|
|
|
1182
1182
|
}
|
|
1183
1183
|
};
|
|
1184
1184
|
Be.style = Pe;
|
|
1185
|
-
const Re = ":host{position:relative;z-index:var(--s-z-40);display:inline-flex}:host *{box-sizing:border-box}.popover--active:not(.popover--closing) .popover__backdrop{-webkit-animation:0.15s popover-fade-in;animation:0.15s popover-fade-in}@media (prefers-reduced-motion){.popover--active:not(.popover--closing) .popover__backdrop{-webkit-animation:none;animation:none}}.popover--active:not(.popover--closing) .popover__content{-webkit-animation:0.15s popover-slide-in;animation:0.15s popover-slide-in}@media (min-width: 768px){.popover--active:not(.popover--closing) .popover__content{transform-origin:top left;-webkit-animation:0.15s popover-fade-scale-in;animation:0.15s popover-fade-scale-in}}@media (prefers-reduced-motion){.popover--active:not(.popover--closing) .popover__content{-webkit-animation:none;animation:none}}.popover--closing .popover__backdrop{-webkit-animation:0.15s popover-fade-out;animation:0.15s popover-fade-out;-webkit-animation-fill-mode:forwards;animation-fill-mode:forwards}@media (prefers-reduced-motion){.popover--closing .popover__backdrop{-webkit-animation:none;animation:none}}.popover--closing .popover__content{-webkit-animation:0.15s popover-slide-out;animation:0.15s popover-slide-out;-webkit-animation-fill-mode:forwards;animation-fill-mode:forwards}@media (min-width: 768px){.popover--closing .popover__content{-webkit-animation:0.15s popover-fade-out;animation:0.15s popover-fade-out}}@media (prefers-reduced-motion){.popover--closing .popover__content{-webkit-animation:none;animation:none}}.popover--inactive .popover__content{display:none}.popover__backdrop{position:fixed;z-index:0;background-color:rgba(0, 0, 0, 0.2);-webkit-animation:0.15s popover-backdrop-fade-in;animation:0.15s popover-backdrop-fade-in;inset:0}@media (prefers-reduced-motion){.popover__backdrop{-webkit-animation:none;animation:none}}@media (min-width: 768px){.popover__backdrop{display:none}}.popover__content{position:fixed;z-index:2;right:0;bottom:0;left:0;overflow:hidden;border-top-left-radius:var(--s-border-radius-xl);border-top-right-radius:var(--s-border-radius-xl);background-color:var(--s-surface-overlay-default)}@media (min-width: 768px){.popover__content{right:unset;bottom:unset;left:unset;max-width:22.5rem;border-radius:var(--s-border-radius-
|
|
1185
|
+
const Re = ":host{position:relative;z-index:var(--s-z-40);display:inline-flex}:host *{box-sizing:border-box}.popover--active:not(.popover--closing) .popover__backdrop{-webkit-animation:0.15s popover-fade-in;animation:0.15s popover-fade-in}@media (prefers-reduced-motion){.popover--active:not(.popover--closing) .popover__backdrop{-webkit-animation:none;animation:none}}.popover--active:not(.popover--closing) .popover__content{-webkit-animation:0.15s popover-slide-in;animation:0.15s popover-slide-in}@media (min-width: 768px){.popover--active:not(.popover--closing) .popover__content{transform-origin:top left;-webkit-animation:0.15s popover-fade-scale-in;animation:0.15s popover-fade-scale-in}}@media (prefers-reduced-motion){.popover--active:not(.popover--closing) .popover__content{-webkit-animation:none;animation:none}}.popover--closing .popover__backdrop{-webkit-animation:0.15s popover-fade-out;animation:0.15s popover-fade-out;-webkit-animation-fill-mode:forwards;animation-fill-mode:forwards}@media (prefers-reduced-motion){.popover--closing .popover__backdrop{-webkit-animation:none;animation:none}}.popover--closing .popover__content{-webkit-animation:0.15s popover-slide-out;animation:0.15s popover-slide-out;-webkit-animation-fill-mode:forwards;animation-fill-mode:forwards}@media (min-width: 768px){.popover--closing .popover__content{-webkit-animation:0.15s popover-fade-out;animation:0.15s popover-fade-out}}@media (prefers-reduced-motion){.popover--closing .popover__content{-webkit-animation:none;animation:none}}.popover--inactive .popover__content{display:none}.popover__backdrop{position:fixed;z-index:0;background-color:rgba(0, 0, 0, 0.2);-webkit-animation:0.15s popover-backdrop-fade-in;animation:0.15s popover-backdrop-fade-in;inset:0}@media (prefers-reduced-motion){.popover__backdrop{-webkit-animation:none;animation:none}}@media (min-width: 768px){.popover__backdrop{display:none}}.popover__content{position:fixed;z-index:2;right:0;bottom:0;left:0;overflow:hidden;border-top-left-radius:var(--s-border-radius-xl);border-top-right-radius:var(--s-border-radius-xl);background-color:var(--s-surface-overlay-default)}@media (min-width: 768px){.popover__content{right:unset;bottom:unset;left:unset;max-width:22.5rem;border-radius:var(--s-border-radius-sm);-webkit-animation:none;animation:none;box-shadow:0.125rem 0.25rem 2.5rem rgba(0, 0, 0, 0.14)}}.popover__scroll-container{overflow-x:hidden;overflow-y:auto;width:100%;max-height:90vh;padding-top:var(--s-space-24);padding-bottom:var(--s-space-24);overscroll-behavior:contain}@media (min-width: 768px){.popover__scroll-container{max-height:22rem;padding-top:var(--s-space-8);padding-bottom:var(--s-space-8)}}.popover__handle{position:absolute;top:var(--s-space-8);left:50%;width:2.5rem;height:0.375rem;border-radius:0.1875rem;background-color:var(--s-border-default);transform:translatex(-50%)}@media (min-width: 768px){.popover__handle{display:none}}@-webkit-keyframes popover-slide-in{from{transform:translateY(100%)}to{transform:translateY(0)}}@keyframes popover-slide-in{from{transform:translateY(100%)}to{transform:translateY(0)}}@-webkit-keyframes popover-slide-out{from{transform:translateY(0)}to{transform:translateY(100%)}}@keyframes popover-slide-out{from{transform:translateY(0)}to{transform:translateY(100%)}}@-webkit-keyframes popover-fade-in{from{opacity:0}to{opacity:1}}@keyframes popover-fade-in{from{opacity:0}to{opacity:1}}@-webkit-keyframes popover-fade-out{from{opacity:1}to{opacity:0}}@keyframes popover-fade-out{from{opacity:1}to{opacity:0}}@-webkit-keyframes popover-fade-scale-in{from{transform:scale(0);opacity:0}to{transform:scale(1);opacity:1}}@keyframes popover-fade-scale-in{from{transform:scale(0);opacity:0}to{transform:scale(1);opacity:1}}", ze = class {
|
|
1186
1186
|
constructor(m) {
|
|
1187
1187
|
ie(this, m), this.placement = "bottom-start", this.active = !1, this.closing = !1, this.onFocusOut = (v) => {
|
|
1188
1188
|
if (!this.active)
|
|
1189
1189
|
return;
|
|
1190
|
-
const
|
|
1191
|
-
!this.el.contains(
|
|
1190
|
+
const w = v.relatedTarget || v.target;
|
|
1191
|
+
!this.el.contains(w) && this.close();
|
|
1192
1192
|
}, this.toggle = (v) => {
|
|
1193
1193
|
v.stopPropagation(), this.active ? this.close() : this.open();
|
|
1194
1194
|
}, this.onKeydown = (v) => {
|
|
@@ -1200,12 +1200,14 @@ const Re = ":host{position:relative;z-index:var(--s-z-40);display:inline-flex}:h
|
|
|
1200
1200
|
this.position = void 0;
|
|
1201
1201
|
return;
|
|
1202
1202
|
}
|
|
1203
|
-
this.position = await
|
|
1204
|
-
middleware: [
|
|
1203
|
+
this.position = await Te(this.triggerEl, this.contentContainer, {
|
|
1204
|
+
middleware: [Se(), Ve()],
|
|
1205
1205
|
placement: this.placement,
|
|
1206
1206
|
strategy: "fixed"
|
|
1207
1207
|
});
|
|
1208
1208
|
}
|
|
1209
|
+
}, this.onCloseButtonClick = () => {
|
|
1210
|
+
this.close();
|
|
1209
1211
|
};
|
|
1210
1212
|
}
|
|
1211
1213
|
componentDidLoad() {
|
|
@@ -1222,7 +1224,7 @@ const Re = ":host{position:relative;z-index:var(--s-z-40);display:inline-flex}:h
|
|
|
1222
1224
|
var m;
|
|
1223
1225
|
this.closing || (this.disableAutoUpdate && this.disableAutoUpdate(), this.closing = !0, setTimeout(() => {
|
|
1224
1226
|
this.active = !1, this.closing = !1, this.updateTriggerAttributes();
|
|
1225
|
-
}, 150), this.unlockBodyScroll(), (m = this.
|
|
1227
|
+
}, 150), this.unlockBodyScroll(), (m = this.getNativeTriggerElement()) === null || m === void 0 || m.focus());
|
|
1226
1228
|
}
|
|
1227
1229
|
async open() {
|
|
1228
1230
|
this.active = !0, this.updateChildMenuItems(), this.updateTriggerAttributes(), requestAnimationFrame(async () => {
|
|
@@ -1230,12 +1232,17 @@ const Re = ":host{position:relative;z-index:var(--s-z-40);display:inline-flex}:h
|
|
|
1230
1232
|
});
|
|
1231
1233
|
}
|
|
1232
1234
|
connectTrigger() {
|
|
1233
|
-
|
|
1234
|
-
|
|
1235
|
-
|
|
1235
|
+
this.triggerEl = pe(document.body, `#${this.trigger}`)[0], Boolean(this.triggerEl) && this.triggerEl.addEventListener("click", this.toggle);
|
|
1236
|
+
}
|
|
1237
|
+
getNativeTriggerElement() {
|
|
1238
|
+
var m, v, w;
|
|
1239
|
+
return this.triggerEl.tagName.startsWith("FLIP-") ? ((m = this.triggerEl) === null || m === void 0 ? void 0 : m.children[0]) || ((w = (v = this.triggerEl) === null || v === void 0 ? void 0 : v.shadowRoot) === null || w === void 0 ? void 0 : w.children[0]) || this.triggerEl : this.triggerEl;
|
|
1236
1240
|
}
|
|
1237
1241
|
updateTriggerAttributes() {
|
|
1238
|
-
!Boolean(this.triggerEl)
|
|
1242
|
+
if (!Boolean(this.triggerEl))
|
|
1243
|
+
return;
|
|
1244
|
+
const m = this.getNativeTriggerElement();
|
|
1245
|
+
m.setAttribute("aria-controls", this.popoverId), m.setAttribute("aria-expanded", String(this.active)), m.setAttribute("aria-haspopup", "dialog");
|
|
1239
1246
|
}
|
|
1240
1247
|
updateChildMenuItems() {
|
|
1241
1248
|
this.childMenuItems = pe(this.el, '[role="menuitem"]');
|
|
@@ -1248,15 +1255,15 @@ const Re = ":host{position:relative;z-index:var(--s-z-40);display:inline-flex}:h
|
|
|
1248
1255
|
}
|
|
1249
1256
|
render() {
|
|
1250
1257
|
var m, v;
|
|
1251
|
-
const
|
|
1258
|
+
const w = Ee("popover", {
|
|
1252
1259
|
"popover--closing": this.closing,
|
|
1253
1260
|
"popover--active": this.active,
|
|
1254
1261
|
"popover--inactive": !this.active
|
|
1255
1262
|
});
|
|
1256
|
-
return b(ue, { id: this.popoverId, onFocusout: this.onFocusOut }, b("div", { class:
|
|
1263
|
+
return b(ue, { id: this.popoverId, onFocusout: this.onFocusOut }, b("div", { class: w, onKeyDown: this.onKeydown }, b("div", { "aria-hidden": this.active ? "false" : "true", "aria-label": this.label, class: "popover__content", role: "dialog", tabindex: "-1", ref: (S) => this.contentContainer = S, style: {
|
|
1257
1264
|
top: Boolean(this.position) ? `${(m = this.position) === null || m === void 0 ? void 0 : m.y}px` : "",
|
|
1258
1265
|
left: Boolean(this.position) ? `${(v = this.position) === null || v === void 0 ? void 0 : v.x}px` : ""
|
|
1259
|
-
} }, b("span", { class: "popover__handle" }), b("div", { class: "popover__scroll-container", ref: (
|
|
1266
|
+
} }, b("span", { class: "popover__handle" }), b("div", { class: "popover__scroll-container", ref: (S) => this.scrollContainer = S }, b("slot", null))), this.active && b("div", { class: "popover__backdrop", onClick: this.onCloseButtonClick })));
|
|
1260
1267
|
}
|
|
1261
1268
|
get el() {
|
|
1262
1269
|
return Me(this);
|
package/dist/{flip-description-list.entry.2b1d4579.js → flip-description-list.entry.48a4d48b.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as i, h as t, H as o } from "./index.
|
|
1
|
+
import { r as i, h as t, H as o } from "./index.0ccdd659.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 {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { r as e, c as t, h as o, H as n } from "./index.
|
|
1
|
+
import { r as e, c as t, h as o, H as n } from "./index.0ccdd659.js";
|
|
2
2
|
import { A as s } from "./a11y-dialog.esm-d7a94c8c.bd6ae411.js";
|
|
3
3
|
import { c as l } from "./index-6d2e18c6.289636d4.js";
|
|
4
4
|
import "react";
|
|
5
5
|
import "react-dom";
|
|
6
6
|
import "./_commonjsHelpers-44457d8d.ba94af77.js";
|
|
7
|
-
const r = ':host{--flip-ghost-button-background-default:var(--s-surface-overlay-default);--flip-ghost-button-background-hovered:var(--s-surface-overlay-hovered);--flip-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-
|
|
7
|
+
const r = ':host{--flip-ghost-button-background-default:var(--s-surface-overlay-default);--flip-ghost-button-background-hovered:var(--s-surface-overlay-hovered);--flip-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:0.125rem 0.25rem 1rem rgba(0, 0, 0, 0.14)}.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)}.dialog__content{margin-bottom:var(--s-space-24);line-height:var(--s-line-height-base)}.dialog__content ::slotted(*){margin:0}@-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}}', d = class {
|
|
8
8
|
constructor(i) {
|
|
9
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
10
|
a.code === "Escape" && this.close();
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as e, h as t, H as i } from "./index.
|
|
1
|
+
import { r as e, h as t, H as i } from "./index.0ccdd659.js";
|
|
2
2
|
import "react";
|
|
3
3
|
import "react-dom";
|
|
4
4
|
const a = ":host{display:block}:host *{box-sizing:border-box}.empty-state{display:flex;max-width:28rem;align-items:center;flex-direction:column;gap:var(--s-space-16)}.empty-state__illustration{max-width:16rem}.empty-state__body{display:flex;align-items:center;flex-direction:column;gap:var(--s-space-8)}", l = class {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { r as s, c as r, h as e, H as d } from "./index.
|
|
1
|
+
import { r as s, c as r, h as e, H as d } from "./index.0ccdd659.js";
|
|
2
2
|
import { c as p } from "./index-6d2e18c6.289636d4.js";
|
|
3
3
|
import "react";
|
|
4
4
|
import "react-dom";
|
|
5
5
|
import "./_commonjsHelpers-44457d8d.ba94af77.js";
|
|
6
|
-
const t = ".sc-flip-file-uploader-h{display:block;width:100%}.sc-flip-file-uploader-h *.sc-flip-file-uploader{box-sizing:border-box}.file-uploader.sc-flip-file-uploader{width:100%}.file-uploader--show-dropzone.sc-flip-file-uploader .file-uploader__dropzone.sc-flip-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-flip-file-uploader .file-uploader__dropzone.sc-flip-file-uploader:focus-within{border-color:var(--s-focus-default)
|
|
6
|
+
const t = ".sc-flip-file-uploader-h{display:block;width:100%}.sc-flip-file-uploader-h *.sc-flip-file-uploader{box-sizing:border-box}.file-uploader.sc-flip-file-uploader{width:100%}.file-uploader--show-dropzone.sc-flip-file-uploader .file-uploader__dropzone.sc-flip-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-flip-file-uploader .file-uploader__dropzone.sc-flip-file-uploader:focus-within{border-width:0.125rem;border-color:var(--s-focus-default)}.file-uploader--show-dropzone.sc-flip-file-uploader .file-uploader__input.sc-flip-file-uploader{position:absolute;z-index:1;display:block;width:100%;cursor:pointer;opacity:0;inset:0}.file-uploader--disabled.sc-flip-file-uploader .file-uploader__input.sc-flip-file-uploader{cursor:default}.file-uploader--disabled.sc-flip-file-uploader .file-uploader__dropzone-cta.sc-flip-file-uploader,.file-uploader--disabled.sc-flip-file-uploader .file-uploader__drag-drop-label.sc-flip-file-uploader{color:var(--s-text-disabled)}.file-uploader--disabled.sc-flip-file-uploader .file-uploader__dropzone-icon.sc-flip-file-uploader{color:var(--s-text-disabled)}.file-uploader__label.sc-flip-file-uploader{display:block;font-weight:var(--s-font-weight-semibold);line-height:var(--s-line-height-base)}.file-uploader__description.sc-flip-file-uploader{display:block;margin-top:var(--s-space-4);font-size:var(--s-font-size-sm);line-height:var(--s-line-height-sm)}.file-uploader__dropzone-icon.sc-flip-file-uploader{color:var(--s-icon-highlight)}.file-uploader__dropzone-label.sc-flip-file-uploader{margin-top:var(--s-space-16);line-height:var(--s-line-height-base)}.file-uploader__dropzone-cta.sc-flip-file-uploader{color:var(--s-interactive-primary-default);font-weight:var(--s-font-weight-medium)}.file-uploader__upload-button.sc-flip-file-uploader{margin-top:var(--s-space-16)}.file-uploader__input.sc-flip-file-uploader{display:none}", n = class {
|
|
7
7
|
constructor(l) {
|
|
8
8
|
s(this, l), this.valueChange = r(this, "valueChange", 7), this.ctaLabel = "Click to upload", this.dragDropLabel = "or drag and drop.", this.showDropzone = !0, this.uploadButtonLabel = "Select file", this.onChange = (i) => {
|
|
9
9
|
const o = i.target.files;
|