@itguy614/clean-ui 1.2.2 → 1.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/README.md +12 -0
- package/dist/clean-ui.css +1 -1
- package/dist/components/CuiAccordion.vue.js +2 -2
- package/dist/components/CuiAlert.vue.d.ts +3 -5
- package/dist/components/CuiAlert.vue.d.ts.map +1 -1
- package/dist/components/CuiAlert.vue.js +1 -1
- package/dist/components/CuiAlert.vue2.js +54 -50
- package/dist/components/CuiBadge.vue.js +3 -3
- package/dist/components/CuiBadge.vue2.js +23 -23
- package/dist/components/CuiBanner.vue.d.ts +15 -10
- package/dist/components/CuiBanner.vue.d.ts.map +1 -1
- package/dist/components/CuiBanner.vue.js +5 -80
- package/dist/components/CuiBanner.vue2.js +90 -2
- package/dist/components/CuiButton.vue.d.ts +9 -0
- package/dist/components/CuiButton.vue.d.ts.map +1 -1
- package/dist/components/CuiButton.vue.js +1 -1
- package/dist/components/CuiButton.vue2.js +77 -83
- package/dist/components/CuiButtonGroup.vue.d.ts +4 -2
- package/dist/components/CuiButtonGroup.vue.d.ts.map +1 -1
- package/dist/components/CuiButtonGroup.vue.js +1 -1
- package/dist/components/CuiButtonGroup.vue2.js +18 -9
- package/dist/components/CuiCard.vue.d.ts.map +1 -1
- package/dist/components/CuiCard.vue.js +5 -33
- package/dist/components/CuiCard.vue2.js +32 -2
- package/dist/components/CuiCardBody.vue.d.ts.map +1 -1
- package/dist/components/CuiCardBody.vue.js +5 -18
- package/dist/components/CuiCardBody.vue2.js +18 -2
- package/dist/components/CuiCardFooter.vue.d.ts.map +1 -1
- package/dist/components/CuiCardFooter.vue.js +5 -30
- package/dist/components/CuiCardFooter.vue2.js +25 -2
- package/dist/components/CuiCardHeader.vue.d.ts +5 -4
- package/dist/components/CuiCardHeader.vue.d.ts.map +1 -1
- package/dist/components/CuiCardHeader.vue.js +5 -49
- package/dist/components/CuiCardHeader.vue2.js +40 -2
- package/dist/components/CuiCardMedia.vue.d.ts.map +1 -1
- package/dist/components/CuiCardMedia.vue.js +3 -3
- package/dist/components/CuiCardMedia.vue2.js +6 -6
- package/dist/components/CuiCheckbox.vue.d.ts +2 -2
- package/dist/components/CuiCheckbox.vue.d.ts.map +1 -1
- package/dist/components/CuiCheckbox.vue.js +1 -1
- package/dist/components/CuiCheckbox.vue2.js +46 -34
- package/dist/components/CuiCheckboxGroup.vue.d.ts +2 -2
- package/dist/components/CuiCheckboxGroup.vue.d.ts.map +1 -1
- package/dist/components/CuiCheckboxGroup.vue.js +2 -2
- package/dist/components/CuiCheckboxGroup.vue2.js +45 -35
- package/dist/components/CuiCodeBlock.vue.d.ts.map +1 -1
- package/dist/components/CuiCodeBlock.vue.js +14 -11
- package/dist/components/CuiColorPicker.vue.d.ts +2 -2
- package/dist/components/CuiColorPicker.vue.d.ts.map +1 -1
- package/dist/components/CuiColorPicker.vue.js +117 -104
- package/dist/components/CuiCombobox.vue.d.ts +2 -2
- package/dist/components/CuiCombobox.vue.d.ts.map +1 -1
- package/dist/components/CuiCombobox.vue.js +5 -330
- package/dist/components/CuiCombobox.vue2.js +331 -2
- package/dist/components/CuiConfirmDialog.vue.d.ts +5 -4
- package/dist/components/CuiConfirmDialog.vue.d.ts.map +1 -1
- package/dist/components/CuiConfirmDialog.vue.js +84 -73
- package/dist/components/CuiContextMenu.vue.d.ts +40 -1
- package/dist/components/CuiContextMenu.vue.d.ts.map +1 -1
- package/dist/components/CuiContextMenu.vue.js +1 -1
- package/dist/components/CuiContextMenu.vue2.js +149 -91
- package/dist/components/CuiCopyButton.vue.d.ts.map +1 -1
- package/dist/components/CuiCopyButton.vue.js +5 -61
- package/dist/components/CuiCopyButton.vue2.js +68 -2
- package/dist/components/CuiDataGridCardView.vue.d.ts.map +1 -1
- package/dist/components/CuiDataGridCardView.vue.js +10 -9
- package/dist/components/CuiDataGridColumnManager.vue.d.ts.map +1 -1
- package/dist/components/CuiDataGridColumnManager.vue.js +12 -11
- package/dist/components/CuiDataGridPagination.vue.d.ts.map +1 -1
- package/dist/components/CuiDataGridPagination.vue.js +9 -8
- package/dist/components/CuiDataGridSearch.vue.d.ts.map +1 -1
- package/dist/components/CuiDataGridSearch.vue.js +12 -9
- package/dist/components/CuiDataGridTable.vue.d.ts.map +1 -1
- package/dist/components/CuiDataGridTable.vue.js +1 -0
- package/dist/components/CuiDataGridViewManager.vue.d.ts.map +1 -1
- package/dist/components/CuiDataGridViewManager.vue.js +17 -17
- package/dist/components/CuiDatePicker.vue.d.ts +2 -2
- package/dist/components/CuiDatePicker.vue.d.ts.map +1 -1
- package/dist/components/CuiDatePicker.vue.js +257 -173
- package/dist/components/CuiDateRangePicker.vue.d.ts +2 -2
- package/dist/components/CuiDateRangePicker.vue.d.ts.map +1 -1
- package/dist/components/CuiDateRangePicker.vue.js +262 -179
- package/dist/components/CuiDivider.vue.d.ts.map +1 -1
- package/dist/components/CuiDivider.vue.js +17 -13
- package/dist/components/CuiDropdownMenu.vue.js +2 -2
- package/dist/components/CuiDropdownRadioGroup.vue.d.ts +4 -1
- package/dist/components/CuiDropdownRadioGroup.vue.d.ts.map +1 -1
- package/dist/components/CuiDropdownRadioGroup.vue.js +27 -14
- package/dist/components/CuiDropdownSub.vue.js +2 -2
- package/dist/components/CuiEmptyState.vue.d.ts +5 -4
- package/dist/components/CuiEmptyState.vue.d.ts.map +1 -1
- package/dist/components/CuiEmptyState.vue.js +1 -1
- package/dist/components/CuiEmptyState.vue2.js +30 -24
- package/dist/components/CuiFieldset.vue.d.ts.map +1 -1
- package/dist/components/CuiFieldset.vue.js +1 -1
- package/dist/components/CuiFieldset.vue2.js +21 -21
- package/dist/components/CuiFileUpload.vue.d.ts +2 -2
- package/dist/components/CuiFileUpload.vue.d.ts.map +1 -1
- package/dist/components/CuiFileUpload.vue.js +70 -57
- package/dist/components/CuiFormField.vue.d.ts.map +1 -1
- package/dist/components/CuiFormField.vue.js +2 -2
- package/dist/components/CuiFormField.vue2.js +48 -42
- package/dist/components/CuiInput.vue.d.ts +2 -2
- package/dist/components/CuiInput.vue.d.ts.map +1 -1
- package/dist/components/CuiInput.vue.js +1 -1
- package/dist/components/CuiInput.vue2.js +97 -85
- package/dist/components/CuiInputStepper.vue.d.ts +2 -2
- package/dist/components/CuiInputStepper.vue.d.ts.map +1 -1
- package/dist/components/CuiInputStepper.vue.js +5 -187
- package/dist/components/CuiInputStepper.vue2.js +237 -2
- package/dist/components/CuiKbd.vue.d.ts.map +1 -1
- package/dist/components/CuiKbd.vue.js +6 -5
- package/dist/components/CuiMaskedInput.vue.d.ts +9 -3
- package/dist/components/CuiMaskedInput.vue.d.ts.map +1 -1
- package/dist/components/CuiMaskedInput.vue.js +132 -117
- package/dist/components/CuiModal.vue.d.ts +10 -2
- package/dist/components/CuiModal.vue.d.ts.map +1 -1
- package/dist/components/CuiModal.vue.js +2 -2
- package/dist/components/CuiModal.vue2.js +48 -44
- package/dist/components/CuiModalBody.vue.d.ts.map +1 -1
- package/dist/components/CuiModalBody.vue.js +16 -13
- package/dist/components/CuiModalFooter.vue.d.ts.map +1 -1
- package/dist/components/CuiModalFooter.vue.js +3 -2
- package/dist/components/CuiModalHeader.vue.d.ts +13 -4
- package/dist/components/CuiModalHeader.vue.d.ts.map +1 -1
- package/dist/components/CuiModalHeader.vue.js +54 -42
- package/dist/components/CuiPagination.vue.js +2 -2
- package/dist/components/CuiPopover.vue.d.ts.map +1 -1
- package/dist/components/CuiPopover.vue.js +70 -65
- package/dist/components/CuiRadio.vue.d.ts +2 -4
- package/dist/components/CuiRadio.vue.d.ts.map +1 -1
- package/dist/components/CuiRadio.vue.js +2 -2
- package/dist/components/CuiRadio.vue2.js +88 -74
- package/dist/components/CuiRadioGroup.vue.d.ts +2 -2
- package/dist/components/CuiRadioGroup.vue.d.ts.map +1 -1
- package/dist/components/CuiRadioGroup.vue.js +3 -3
- package/dist/components/CuiRadioGroup.vue2.js +47 -37
- package/dist/components/CuiRating.vue.d.ts.map +1 -1
- package/dist/components/CuiRating.vue.js +15 -14
- package/dist/components/CuiResizablePanels.vue.d.ts.map +1 -1
- package/dist/components/CuiResizablePanels.vue.js +10 -9
- package/dist/components/CuiSelect.vue.d.ts +2 -2
- package/dist/components/CuiSelect.vue.d.ts.map +1 -1
- package/dist/components/CuiSelect.vue.js +2 -2
- package/dist/components/CuiSelect.vue2.js +161 -151
- package/dist/components/CuiSkeleton.vue.js +2 -2
- package/dist/components/CuiSkeleton.vue2.js +10 -10
- package/dist/components/CuiSlideover.vue.d.ts +2 -2
- package/dist/components/CuiSlideover.vue.d.ts.map +1 -1
- package/dist/components/CuiSlideover.vue.js +34 -30
- package/dist/components/CuiSlider.vue.d.ts +2 -2
- package/dist/components/CuiSlider.vue.d.ts.map +1 -1
- package/dist/components/CuiSlider.vue.js +67 -54
- package/dist/components/CuiSpinner.vue.d.ts.map +1 -1
- package/dist/components/CuiSpinner.vue.js +5 -4
- package/dist/components/CuiTable.vue.d.ts.map +1 -1
- package/dist/components/CuiTable.vue.js +4 -1
- package/dist/components/CuiTableBody.vue.d.ts.map +1 -1
- package/dist/components/CuiTableBody.vue.js +6 -6
- package/dist/components/CuiTableCell.vue.d.ts.map +1 -1
- package/dist/components/CuiTableCell.vue.js +11 -10
- package/dist/components/CuiTableFoot.vue.d.ts.map +1 -1
- package/dist/components/CuiTableFoot.vue.js +7 -7
- package/dist/components/CuiTableHead.vue.d.ts.map +1 -1
- package/dist/components/CuiTableHead.vue.js +7 -7
- package/dist/components/CuiTabs.vue.d.ts.map +1 -1
- package/dist/components/CuiTabs.vue.js +1 -1
- package/dist/components/CuiTabs.vue2.js +1 -0
- package/dist/components/CuiTagInput.vue.d.ts +2 -2
- package/dist/components/CuiTagInput.vue.d.ts.map +1 -1
- package/dist/components/CuiTagInput.vue.js +5 -294
- package/dist/components/CuiTagInput.vue2.js +277 -2
- package/dist/components/CuiTextarea.vue.d.ts +2 -2
- package/dist/components/CuiTextarea.vue.d.ts.map +1 -1
- package/dist/components/CuiTextarea.vue.js +4 -4
- package/dist/components/CuiTextarea.vue2.js +73 -59
- package/dist/components/CuiTimePicker.vue.d.ts +2 -2
- package/dist/components/CuiTimePicker.vue.d.ts.map +1 -1
- package/dist/components/CuiTimePicker.vue.js +172 -97
- package/dist/components/CuiTimeline.vue.d.ts.map +1 -1
- package/dist/components/CuiTimeline.vue.js +6 -5
- package/dist/components/CuiTimelineItem.vue.d.ts.map +1 -1
- package/dist/components/CuiTimelineItem.vue.js +11 -10
- package/dist/components/CuiToast.vue.d.ts +8 -10
- package/dist/components/CuiToast.vue.d.ts.map +1 -1
- package/dist/components/CuiToast.vue.js +2 -2
- package/dist/components/CuiToast.vue2.js +69 -67
- package/dist/components/CuiToggle.vue.d.ts +2 -2
- package/dist/components/CuiToggle.vue.d.ts.map +1 -1
- package/dist/components/CuiToggle.vue.js +2 -2
- package/dist/components/CuiToggle.vue2.js +71 -59
- package/dist/components/CuiToggleGroup.vue.d.ts +2 -2
- package/dist/components/CuiToggleGroup.vue.d.ts.map +1 -1
- package/dist/components/CuiToggleGroup.vue.js +2 -2
- package/dist/components/CuiToggleGroup.vue2.js +45 -35
- package/dist/components/CuiTooltip.vue.d.ts.map +1 -1
- package/dist/components/CuiTooltip.vue.js +2 -2
- package/dist/components/CuiTooltip.vue2.js +47 -44
- package/dist/components/CuiTransferList.vue.d.ts.map +1 -1
- package/dist/components/CuiTransferList.vue.js +31 -30
- package/dist/components/CuiTreeNode.vue.d.ts +9 -2
- package/dist/components/CuiTreeNode.vue.d.ts.map +1 -1
- package/dist/components/CuiTreeNode.vue.js +5 -179
- package/dist/components/CuiTreeNode.vue2.js +198 -2
- package/dist/components/CuiTreeView.vue.d.ts +33 -5
- package/dist/components/CuiTreeView.vue.d.ts.map +1 -1
- package/dist/components/CuiTreeView.vue.js +187 -44
- package/dist/composables/useCalendarKeyboard.d.ts +48 -0
- package/dist/composables/useCalendarKeyboard.d.ts.map +1 -0
- package/dist/composables/useCalendarKeyboard.js +91 -0
- package/dist/composables/useFieldDescribedBy.d.ts +30 -0
- package/dist/composables/useFieldDescribedBy.d.ts.map +1 -0
- package/dist/composables/useFieldDescribedBy.js +11 -0
- package/dist/composables/useMessages.d.ts.map +1 -1
- package/dist/composables/useMessages.js +6 -6
- package/dist/composables/usePopover.d.ts.map +1 -1
- package/dist/composables/usePopover.js +10 -0
- package/dist/composables/useScrollShadows.d.ts +3 -0
- package/dist/composables/useScrollShadows.d.ts.map +1 -1
- package/dist/composables/useScrollShadows.js +15 -12
- package/dist/icons/builtin.d.ts.map +1 -1
- package/dist/icons/builtin.js +38 -37
- package/dist/index.d.ts +3 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +185 -182
- package/dist/messages.d.ts +39 -4
- package/dist/messages.d.ts.map +1 -1
- package/dist/messages.js +8 -7
- package/dist/types/common.d.ts +90 -0
- package/dist/types/common.d.ts.map +1 -1
- package/dist/utils/colorIconMap.d.ts +47 -3
- package/dist/utils/colorIconMap.d.ts.map +1 -1
- package/dist/utils/colorIconMap.js +20 -5
- package/dist/utils/date.d.ts +13 -0
- package/dist/utils/date.d.ts.map +1 -1
- package/dist/utils/date.js +46 -40
- package/dist/utils/sizing.d.ts +26 -1
- package/dist/utils/sizing.d.ts.map +1 -1
- package/dist/utils/sizing.js +22 -21
- package/dist/version.js +1 -1
- package/package.json +1 -1
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import {
|
|
6
|
-
|
|
1
|
+
import { defineComponent as Ce, ref as C, useTemplateRef as Se, watch as E, onMounted as ze, computed as x, withDirectives as Me, openBlock as v, createElementBlock as m, toDisplayString as f, createCommentVNode as G, createVNode as u, withCtx as b, createElementVNode as c, normalizeStyle as $, unref as s, Fragment as z, createTextVNode as F, renderList as W, vShow as Re } from "vue";
|
|
2
|
+
import Te from "./CuiPopover.vue.js";
|
|
3
|
+
import w from "./CuiButton.vue.js";
|
|
4
|
+
import M from "./CuiIcon.vue.js";
|
|
5
|
+
import { calendarCellKey as R, useCalendarKeyboard as Be } from "../composables/useCalendarKeyboard.js";
|
|
6
|
+
import { formatToMask as $e, formatToRaw as U, formatDate as _, isoToDate as K, daysInMonth as J, firstDayOfMonth as Ie, MONTH_NAMES_SHORT as Q, DAY_NAMES_SHORT as Ve, MONTH_NAMES as X, isDateDisabled as Ye, isToday as We, isSameDay as Z, dateToIso as _e } from "../utils/date.js";
|
|
7
|
+
const Ae = { class: "cui-date-range-picker" }, Ne = {
|
|
7
8
|
key: 0,
|
|
8
9
|
style: {
|
|
9
10
|
display: "block",
|
|
@@ -12,13 +13,13 @@ const Se = {
|
|
|
12
13
|
fontWeight: "500",
|
|
13
14
|
color: "var(--cui-text-secondary)"
|
|
14
15
|
}
|
|
15
|
-
},
|
|
16
|
+
}, Ee = ["id", "name", "autocomplete", "aria-describedby", "aria-required", "aria-labelledby", "value", "placeholder"], Fe = { style: { color: "var(--cui-text-tertiary)", fontSize: "0.75rem", flexShrink: "0" } }, Ke = ["value", "placeholder"], Oe = { style: { padding: "calc(0.25rem * var(--cui-density-scale, 1))", minWidth: "260px" } }, je = { style: {
|
|
16
17
|
fontSize: "0.75rem",
|
|
17
18
|
color: "var(--cui-text-secondary)",
|
|
18
19
|
textAlign: "center",
|
|
19
20
|
marginBottom: "calc(0.375rem * var(--cui-density-scale, 1))",
|
|
20
21
|
fontWeight: "500"
|
|
21
|
-
} },
|
|
22
|
+
} }, Pe = { style: { display: "flex", alignItems: "center", justifyContent: "space-between", marginBottom: "calc(0.5rem * var(--cui-density-scale, 1))" } }, He = { style: { display: "flex", gap: "calc(0.25rem * var(--cui-density-scale, 1))" } }, Le = { style: { display: "grid", gridTemplateColumns: "repeat(7, 1fr)", gap: "0", marginBottom: "calc(0.25rem * var(--cui-density-scale, 1))" } }, qe = ["aria-label"], Ge = ["data-cui-cell", "tabindex", "aria-disabled", "aria-label", "onClick", "onMouseenter"], Ue = { style: { display: "flex", alignItems: "center", justifyContent: "space-between", marginBottom: "calc(0.5rem * var(--cui-density-scale, 1))" } }, Je = ["aria-label"], Qe = ["data-cui-cell", "tabindex", "aria-label", "onClick"], Xe = { style: { display: "flex", alignItems: "center", justifyContent: "space-between", marginBottom: "calc(0.5rem * var(--cui-density-scale, 1))" } }, Ze = { style: { fontSize: "0.8125rem", fontWeight: "600", color: "var(--cui-text-body)" } }, et = ["aria-label"], tt = ["data-cui-cell", "tabindex", "aria-label", "onClick"], st = /* @__PURE__ */ Ce({
|
|
22
23
|
__name: "CuiDateRangePicker",
|
|
23
24
|
props: {
|
|
24
25
|
modelValue: {},
|
|
@@ -35,102 +36,138 @@ const Se = {
|
|
|
35
36
|
endPlaceholder: {},
|
|
36
37
|
size: { default: "md" },
|
|
37
38
|
label: {},
|
|
39
|
+
name: {},
|
|
40
|
+
autocomplete: {},
|
|
41
|
+
id: {},
|
|
42
|
+
ariaDescribedby: {},
|
|
43
|
+
ariaLabelledby: {},
|
|
44
|
+
ariaRequired: { type: Boolean },
|
|
38
45
|
hidden: { type: Boolean, default: !1 },
|
|
39
46
|
disabled: { type: Boolean, default: !1 }
|
|
40
47
|
},
|
|
41
48
|
emits: ["update:modelValue"],
|
|
42
|
-
setup(
|
|
43
|
-
const
|
|
44
|
-
function
|
|
45
|
-
return
|
|
49
|
+
setup(d, { emit: ee }) {
|
|
50
|
+
const n = d, te = ee, l = C((/* @__PURE__ */ new Date()).getFullYear()), i = C((/* @__PURE__ */ new Date()).getMonth()), T = C(!1), D = C("start"), ae = Se("startInput"), r = C(null), p = C(null), S = C(null);
|
|
51
|
+
function O(a) {
|
|
52
|
+
return a ? a instanceof Date ? a : K(a) : null;
|
|
46
53
|
}
|
|
47
|
-
function
|
|
48
|
-
|
|
54
|
+
function j() {
|
|
55
|
+
n.modelValue && (r.value = O(n.modelValue.start), p.value = O(n.modelValue.end), r.value && (l.value = r.value.getFullYear(), i.value = r.value.getMonth()));
|
|
49
56
|
}
|
|
50
|
-
|
|
51
|
-
const
|
|
52
|
-
function
|
|
53
|
-
return
|
|
54
|
-
minDate:
|
|
55
|
-
maxDate:
|
|
56
|
-
disabledDate:
|
|
57
|
-
disabledDates:
|
|
57
|
+
E(() => n.modelValue, j, { deep: !0 }), ze(j), x(() => $e(n.format)), x(() => r.value ? U(_(r.value, n.format)) : ""), x(() => p.value ? U(_(p.value, n.format)) : "");
|
|
58
|
+
const le = x(() => r.value ? _(r.value, n.format) : ""), re = x(() => p.value ? _(p.value, n.format) : ""), ne = x(() => n.minDate ? K(n.minDate) : null), ie = x(() => n.maxDate ? K(n.maxDate) : null);
|
|
59
|
+
function I(a) {
|
|
60
|
+
return Ye(a, {
|
|
61
|
+
minDate: ne.value,
|
|
62
|
+
maxDate: ie.value,
|
|
63
|
+
disabledDate: n.disabledDate,
|
|
64
|
+
disabledDates: n.disabledDates
|
|
58
65
|
});
|
|
59
66
|
}
|
|
60
|
-
function
|
|
61
|
-
if (!
|
|
62
|
-
const
|
|
63
|
-
for (;
|
|
64
|
-
if (
|
|
65
|
-
|
|
67
|
+
function oe(a, e) {
|
|
68
|
+
if (!n.blockSpanningBlackout) return !1;
|
|
69
|
+
const t = new Date(a);
|
|
70
|
+
for (; t <= e; ) {
|
|
71
|
+
if (I(t)) return !0;
|
|
72
|
+
t.setDate(t.getDate() + 1);
|
|
66
73
|
}
|
|
67
74
|
return !1;
|
|
68
75
|
}
|
|
69
|
-
function
|
|
70
|
-
const
|
|
71
|
-
|
|
76
|
+
function se() {
|
|
77
|
+
const a = (e) => e ? n.valueType === "date" ? e : _e(e) : null;
|
|
78
|
+
te("update:modelValue", { start: a(r.value), end: a(p.value) });
|
|
72
79
|
}
|
|
73
|
-
const
|
|
74
|
-
const
|
|
75
|
-
for (let
|
|
76
|
-
const
|
|
77
|
-
|
|
80
|
+
const ue = x(() => {
|
|
81
|
+
const a = [], e = J(l.value, i.value), t = Ie(l.value, i.value), o = i.value === 0 ? 11 : i.value - 1, k = i.value === 0 ? l.value - 1 : l.value, N = J(k, o);
|
|
82
|
+
for (let y = t - 1; y >= 0; y--) {
|
|
83
|
+
const g = new Date(k, o, N - y);
|
|
84
|
+
a.push({ date: g, inMonth: !1, disabled: I(g), key: R("days", g) });
|
|
78
85
|
}
|
|
79
|
-
for (let
|
|
80
|
-
const
|
|
81
|
-
|
|
86
|
+
for (let y = 1; y <= e; y++) {
|
|
87
|
+
const g = new Date(l.value, i.value, y);
|
|
88
|
+
a.push({ date: g, inMonth: !0, disabled: I(g), key: R("days", g) });
|
|
82
89
|
}
|
|
83
|
-
const
|
|
84
|
-
for (let
|
|
85
|
-
const
|
|
86
|
-
|
|
90
|
+
const De = 42 - a.length, ke = i.value === 11 ? 0 : i.value + 1, we = i.value === 11 ? l.value + 1 : l.value;
|
|
91
|
+
for (let y = 1; y <= De; y++) {
|
|
92
|
+
const g = new Date(we, ke, y);
|
|
93
|
+
a.push({ date: g, inMonth: !1, disabled: I(g), key: R("days", g) });
|
|
87
94
|
}
|
|
88
|
-
return
|
|
95
|
+
return a;
|
|
89
96
|
});
|
|
90
|
-
function
|
|
91
|
-
if (!
|
|
97
|
+
function P(a) {
|
|
98
|
+
if (!a.disabled)
|
|
92
99
|
if (D.value === "start")
|
|
93
|
-
|
|
100
|
+
r.value = a.date, p.value = null, D.value = "end";
|
|
94
101
|
else {
|
|
95
|
-
let e =
|
|
96
|
-
if (
|
|
97
|
-
|
|
102
|
+
let e = r.value, t = a.date;
|
|
103
|
+
if (t < e && ([e, t] = [t, e]), oe(e, t)) return;
|
|
104
|
+
r.value = e, p.value = t, D.value = "start", se(), T.value = !1;
|
|
98
105
|
}
|
|
99
106
|
}
|
|
100
|
-
function
|
|
101
|
-
D.value === "end" && (
|
|
107
|
+
function de(a) {
|
|
108
|
+
D.value === "end" && (S.value = a);
|
|
102
109
|
}
|
|
103
|
-
function
|
|
104
|
-
if (!
|
|
105
|
-
const e = D.value === "end" &&
|
|
110
|
+
function ce(a) {
|
|
111
|
+
if (!r.value) return !1;
|
|
112
|
+
const e = D.value === "end" && S.value ? S.value : p.value;
|
|
106
113
|
if (!e) return !1;
|
|
107
|
-
const
|
|
108
|
-
return
|
|
114
|
+
const t = r.value < e ? r.value : e, o = r.value < e ? e : r.value;
|
|
115
|
+
return a >= t && a <= o;
|
|
109
116
|
}
|
|
110
|
-
function
|
|
111
|
-
return !!
|
|
117
|
+
function ve(a) {
|
|
118
|
+
return !!r.value && Z(a, r.value);
|
|
112
119
|
}
|
|
113
|
-
function
|
|
114
|
-
const e = D.value === "end" &&
|
|
115
|
-
return !!e &&
|
|
120
|
+
function me(a) {
|
|
121
|
+
const e = D.value === "end" && S.value ? S.value : p.value;
|
|
122
|
+
return !!e && Z(a, e);
|
|
116
123
|
}
|
|
117
|
-
function
|
|
118
|
-
i.value === 0 ? (i.value = 11,
|
|
124
|
+
function fe() {
|
|
125
|
+
i.value === 0 ? (i.value = 11, l.value--) : i.value--;
|
|
119
126
|
}
|
|
120
|
-
function
|
|
121
|
-
i.value === 11 ? (i.value = 0,
|
|
127
|
+
function ye() {
|
|
128
|
+
i.value === 11 ? (i.value = 0, l.value++) : i.value++;
|
|
122
129
|
}
|
|
123
|
-
const h = C("days"),
|
|
124
|
-
function
|
|
125
|
-
i.value =
|
|
130
|
+
const h = C("days"), V = x(() => Math.floor(l.value / 12) * 12), ge = x(() => Array.from({ length: 12 }, (a, e) => V.value + e));
|
|
131
|
+
function H(a) {
|
|
132
|
+
i.value = a, h.value = "days";
|
|
126
133
|
}
|
|
127
|
-
function
|
|
128
|
-
|
|
134
|
+
function L(a) {
|
|
135
|
+
l.value = a, h.value = "months";
|
|
129
136
|
}
|
|
130
|
-
|
|
131
|
-
|
|
137
|
+
const {
|
|
138
|
+
gridRef: Y,
|
|
139
|
+
focusedDate: be,
|
|
140
|
+
cellTabIndex: A,
|
|
141
|
+
onGridKeydown: B,
|
|
142
|
+
onFieldKeydown: q,
|
|
143
|
+
resetFocus: pe
|
|
144
|
+
} = Be({
|
|
145
|
+
viewMode: h,
|
|
146
|
+
viewYear: l,
|
|
147
|
+
viewMonth: i,
|
|
148
|
+
selectDay: (a) => P({ date: a, disabled: I(a) }),
|
|
149
|
+
selectMonth: H,
|
|
150
|
+
selectYear: L,
|
|
151
|
+
open: () => {
|
|
152
|
+
T.value = !0;
|
|
153
|
+
},
|
|
154
|
+
isDisabled: () => n.disabled,
|
|
155
|
+
close: () => {
|
|
156
|
+
T.value = !1;
|
|
157
|
+
}
|
|
158
|
+
});
|
|
159
|
+
E(be, (a) => {
|
|
160
|
+
D.value === "end" && (S.value = a);
|
|
161
|
+
});
|
|
162
|
+
function he() {
|
|
163
|
+
var t, o;
|
|
164
|
+
const a = document.activeElement;
|
|
165
|
+
(a === document.body || a && ((t = Y.value) != null && t.contains(a))) && ((o = ae.value) == null || o.focus({ preventScroll: !0 }));
|
|
166
|
+
}
|
|
167
|
+
E(T, (a) => {
|
|
168
|
+
a ? (h.value = "days", D.value = "start", S.value = null, r.value && (l.value = r.value.getFullYear(), i.value = r.value.getMonth()), pe(r.value ? new Date(r.value) : /* @__PURE__ */ new Date())) : he();
|
|
132
169
|
});
|
|
133
|
-
function
|
|
170
|
+
function xe(a) {
|
|
134
171
|
const e = {
|
|
135
172
|
width: "2rem",
|
|
136
173
|
height: "2rem",
|
|
@@ -138,72 +175,72 @@ const Se = {
|
|
|
138
175
|
alignItems: "center",
|
|
139
176
|
justifyContent: "center",
|
|
140
177
|
fontSize: "0.8125rem",
|
|
141
|
-
cursor:
|
|
178
|
+
cursor: a.disabled ? "default" : "pointer",
|
|
142
179
|
transition: "background 0.1s ease, color 0.1s ease",
|
|
143
180
|
position: "relative"
|
|
144
|
-
},
|
|
145
|
-
return
|
|
181
|
+
}, t = ce(a.date), o = ve(a.date), k = me(a.date), N = n.highlightToday && We(a.date);
|
|
182
|
+
return a.disabled ? (e.color = "var(--cui-text-tertiary)", e.opacity = "0.35") : o || k ? (e.background = "var(--cui-primary)", e.color = "var(--cui-primary-text, white)", e.fontWeight = "600", e.borderRadius = o && !k ? "0.375rem 0 0 0.375rem" : !o && k ? "0 0.375rem 0.375rem 0" : "0.375rem") : t ? (e.background = "var(--cui-primary-bg)", e.color = "var(--cui-primary)", e.borderRadius = "0") : N ? (e.background = "var(--cui-primary-bg)", e.color = "var(--cui-primary)", e.fontWeight = "600", e.borderRadius = "0.375rem") : a.inMonth ? (e.color = "var(--cui-text-body)", e.borderRadius = "0.375rem") : (e.color = "var(--cui-text-tertiary)", e.borderRadius = "0.375rem"), e;
|
|
146
183
|
}
|
|
147
|
-
return (
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
visible:
|
|
151
|
-
"onUpdate:visible": e[
|
|
184
|
+
return (a, e) => Me((v(), m("div", Ae, [
|
|
185
|
+
d.label ? (v(), m("label", Ne, f(d.label), 1)) : G("", !0),
|
|
186
|
+
u(Te, {
|
|
187
|
+
visible: T.value,
|
|
188
|
+
"onUpdate:visible": e[11] || (e[11] = (t) => T.value = t),
|
|
152
189
|
placement: "bottom",
|
|
153
190
|
closable: !1,
|
|
154
191
|
"no-arrow": "",
|
|
155
192
|
width: "auto",
|
|
156
|
-
disabled:
|
|
193
|
+
disabled: d.disabled
|
|
157
194
|
}, {
|
|
158
|
-
content:
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
h.value === "days" ? (
|
|
162
|
-
|
|
163
|
-
|
|
195
|
+
content: b(() => [
|
|
196
|
+
c("div", Oe, [
|
|
197
|
+
c("div", je, f(D.value === "start" ? "Select start date" : "Select end date"), 1),
|
|
198
|
+
h.value === "days" ? (v(), m(z, { key: 0 }, [
|
|
199
|
+
c("div", Pe, [
|
|
200
|
+
u(w, {
|
|
164
201
|
variant: "ghost",
|
|
165
202
|
size: "xs",
|
|
166
|
-
onClick:
|
|
203
|
+
onClick: fe
|
|
167
204
|
}, {
|
|
168
|
-
default:
|
|
169
|
-
|
|
205
|
+
default: b(() => [
|
|
206
|
+
u(M, {
|
|
170
207
|
name: "caret-left",
|
|
171
208
|
size: "0.875rem"
|
|
172
209
|
})
|
|
173
210
|
]),
|
|
174
211
|
_: 1
|
|
175
212
|
}),
|
|
176
|
-
|
|
177
|
-
|
|
213
|
+
c("div", He, [
|
|
214
|
+
u(w, {
|
|
178
215
|
variant: "ghost",
|
|
179
216
|
size: "xs",
|
|
180
217
|
style: { fontWeight: "600" },
|
|
181
|
-
onClick: e[
|
|
218
|
+
onClick: e[1] || (e[1] = (t) => h.value = "months")
|
|
182
219
|
}, {
|
|
183
|
-
default:
|
|
184
|
-
|
|
220
|
+
default: b(() => [
|
|
221
|
+
F(f(s(Q)[i.value]), 1)
|
|
185
222
|
]),
|
|
186
223
|
_: 1
|
|
187
224
|
}),
|
|
188
|
-
|
|
225
|
+
u(w, {
|
|
189
226
|
variant: "ghost",
|
|
190
227
|
size: "xs",
|
|
191
228
|
style: { fontWeight: "600" },
|
|
192
|
-
onClick: e[
|
|
229
|
+
onClick: e[2] || (e[2] = (t) => h.value = "years")
|
|
193
230
|
}, {
|
|
194
|
-
default:
|
|
195
|
-
|
|
231
|
+
default: b(() => [
|
|
232
|
+
F(f(l.value), 1)
|
|
196
233
|
]),
|
|
197
234
|
_: 1
|
|
198
235
|
})
|
|
199
236
|
]),
|
|
200
|
-
|
|
237
|
+
u(w, {
|
|
201
238
|
variant: "ghost",
|
|
202
239
|
size: "xs",
|
|
203
|
-
onClick:
|
|
240
|
+
onClick: ye
|
|
204
241
|
}, {
|
|
205
|
-
default:
|
|
206
|
-
|
|
242
|
+
default: b(() => [
|
|
243
|
+
u(M, {
|
|
207
244
|
name: "caret-right",
|
|
208
245
|
size: "0.875rem"
|
|
209
246
|
})
|
|
@@ -211,53 +248,66 @@ const Se = {
|
|
|
211
248
|
_: 1
|
|
212
249
|
})
|
|
213
250
|
]),
|
|
214
|
-
|
|
215
|
-
(
|
|
216
|
-
key:
|
|
251
|
+
c("div", Le, [
|
|
252
|
+
(v(!0), m(z, null, W(s(Ve), (t) => (v(), m("div", {
|
|
253
|
+
key: t,
|
|
217
254
|
style: { textAlign: "center", fontSize: "0.6875rem", fontWeight: "600", color: "var(--cui-text-tertiary)", padding: "calc(0.25rem * var(--cui-density-scale, 1)) 0", textTransform: "uppercase" }
|
|
218
|
-
},
|
|
255
|
+
}, f(t), 1))), 128))
|
|
219
256
|
]),
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
257
|
+
c("div", {
|
|
258
|
+
ref_key: "gridRef",
|
|
259
|
+
ref: Y,
|
|
260
|
+
role: "grid",
|
|
261
|
+
"aria-label": s(X)[i.value] + " " + l.value,
|
|
262
|
+
style: { display: "grid", gridTemplateColumns: "repeat(7, 1fr)", gap: "calc(1px * var(--cui-density-scale, 1))" },
|
|
263
|
+
onKeydown: e[3] || (e[3] = //@ts-ignore
|
|
264
|
+
(...t) => s(B) && s(B)(...t))
|
|
265
|
+
}, [
|
|
266
|
+
(v(!0), m(z, null, W(ue.value, (t, o) => (v(), m("div", {
|
|
267
|
+
key: o,
|
|
268
|
+
role: "gridcell",
|
|
269
|
+
"data-cui-cell": t.key,
|
|
270
|
+
tabindex: s(A)(t.key),
|
|
271
|
+
"aria-disabled": t.disabled || void 0,
|
|
272
|
+
"aria-label": t.date.toDateString(),
|
|
273
|
+
style: $(xe(t)),
|
|
274
|
+
onClick: (k) => P(t),
|
|
275
|
+
onMouseenter: (k) => de(t.date)
|
|
276
|
+
}, f(t.date.getDate()), 45, Ge))), 128))
|
|
277
|
+
], 40, qe)
|
|
278
|
+
], 64)) : h.value === "months" ? (v(), m(z, { key: 1 }, [
|
|
279
|
+
c("div", Ue, [
|
|
280
|
+
u(w, {
|
|
231
281
|
variant: "ghost",
|
|
232
282
|
size: "xs",
|
|
233
|
-
onClick: e[
|
|
283
|
+
onClick: e[4] || (e[4] = (t) => l.value--)
|
|
234
284
|
}, {
|
|
235
|
-
default:
|
|
236
|
-
|
|
285
|
+
default: b(() => [
|
|
286
|
+
u(M, {
|
|
237
287
|
name: "caret-left",
|
|
238
288
|
size: "0.875rem"
|
|
239
289
|
})
|
|
240
290
|
]),
|
|
241
291
|
_: 1
|
|
242
292
|
}),
|
|
243
|
-
|
|
293
|
+
u(w, {
|
|
244
294
|
variant: "ghost",
|
|
245
295
|
size: "xs",
|
|
246
296
|
style: { fontWeight: "600" },
|
|
247
|
-
onClick: e[
|
|
297
|
+
onClick: e[5] || (e[5] = (t) => h.value = "years")
|
|
248
298
|
}, {
|
|
249
|
-
default:
|
|
250
|
-
|
|
299
|
+
default: b(() => [
|
|
300
|
+
F(f(l.value), 1)
|
|
251
301
|
]),
|
|
252
302
|
_: 1
|
|
253
303
|
}),
|
|
254
|
-
|
|
304
|
+
u(w, {
|
|
255
305
|
variant: "ghost",
|
|
256
306
|
size: "xs",
|
|
257
|
-
onClick: e[
|
|
307
|
+
onClick: e[6] || (e[6] = (t) => l.value++)
|
|
258
308
|
}, {
|
|
259
|
-
default:
|
|
260
|
-
|
|
309
|
+
default: b(() => [
|
|
310
|
+
u(M, {
|
|
261
311
|
name: "caret-right",
|
|
262
312
|
size: "0.875rem"
|
|
263
313
|
})
|
|
@@ -265,36 +315,48 @@ const Se = {
|
|
|
265
315
|
_: 1
|
|
266
316
|
})
|
|
267
317
|
]),
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
o(
|
|
318
|
+
c("div", {
|
|
319
|
+
ref_key: "gridRef",
|
|
320
|
+
ref: Y,
|
|
321
|
+
role: "grid",
|
|
322
|
+
"aria-label": String(l.value),
|
|
323
|
+
style: { display: "grid", gridTemplateColumns: "repeat(3, 1fr)", gap: "calc(4px * var(--cui-density-scale, 1))" },
|
|
324
|
+
onKeydown: e[7] || (e[7] = //@ts-ignore
|
|
325
|
+
(...t) => s(B) && s(B)(...t))
|
|
326
|
+
}, [
|
|
327
|
+
(v(!0), m(z, null, W(s(Q), (t, o) => (v(), m("div", {
|
|
328
|
+
key: o,
|
|
329
|
+
role: "gridcell",
|
|
330
|
+
"data-cui-cell": s(R)("months", o),
|
|
331
|
+
tabindex: s(A)(s(R)("months", o)),
|
|
332
|
+
"aria-label": s(X)[o] + " " + l.value,
|
|
333
|
+
style: $({ padding: "calc(0.5rem * var(--cui-density-scale, 1))", textAlign: "center", borderRadius: "0.375rem", cursor: "pointer", fontSize: "0.8125rem", color: i.value === o ? "var(--cui-primary)" : "var(--cui-text-body)" }),
|
|
334
|
+
onClick: (k) => H(o)
|
|
335
|
+
}, f(t), 13, Qe))), 128))
|
|
336
|
+
], 40, Je)
|
|
337
|
+
], 64)) : h.value === "years" ? (v(), m(z, { key: 2 }, [
|
|
338
|
+
c("div", Xe, [
|
|
339
|
+
u(w, {
|
|
278
340
|
variant: "ghost",
|
|
279
341
|
size: "xs",
|
|
280
|
-
onClick: e[
|
|
342
|
+
onClick: e[8] || (e[8] = (t) => l.value -= 12)
|
|
281
343
|
}, {
|
|
282
|
-
default:
|
|
283
|
-
|
|
344
|
+
default: b(() => [
|
|
345
|
+
u(M, {
|
|
284
346
|
name: "caret-left",
|
|
285
347
|
size: "0.875rem"
|
|
286
348
|
})
|
|
287
349
|
]),
|
|
288
350
|
_: 1
|
|
289
351
|
}),
|
|
290
|
-
|
|
291
|
-
|
|
352
|
+
c("span", Ze, f(V.value) + " – " + f(V.value + 11), 1),
|
|
353
|
+
u(w, {
|
|
292
354
|
variant: "ghost",
|
|
293
355
|
size: "xs",
|
|
294
|
-
onClick: e[
|
|
356
|
+
onClick: e[9] || (e[9] = (t) => l.value += 12)
|
|
295
357
|
}, {
|
|
296
|
-
default:
|
|
297
|
-
|
|
358
|
+
default: b(() => [
|
|
359
|
+
u(M, {
|
|
298
360
|
name: "caret-right",
|
|
299
361
|
size: "0.875rem"
|
|
300
362
|
})
|
|
@@ -302,75 +364,96 @@ const Se = {
|
|
|
302
364
|
_: 1
|
|
303
365
|
})
|
|
304
366
|
]),
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
367
|
+
c("div", {
|
|
368
|
+
ref_key: "gridRef",
|
|
369
|
+
ref: Y,
|
|
370
|
+
role: "grid",
|
|
371
|
+
"aria-label": V.value + " to " + (V.value + 11),
|
|
372
|
+
style: { display: "grid", gridTemplateColumns: "repeat(3, 1fr)", gap: "calc(4px * var(--cui-density-scale, 1))" },
|
|
373
|
+
onKeydown: e[10] || (e[10] = //@ts-ignore
|
|
374
|
+
(...t) => s(B) && s(B)(...t))
|
|
375
|
+
}, [
|
|
376
|
+
(v(!0), m(z, null, W(ge.value, (t) => (v(), m("div", {
|
|
377
|
+
key: t,
|
|
378
|
+
role: "gridcell",
|
|
379
|
+
"data-cui-cell": s(R)("years", t),
|
|
380
|
+
tabindex: s(A)(s(R)("years", t)),
|
|
381
|
+
"aria-label": String(t),
|
|
382
|
+
style: $({ padding: "calc(0.5rem * var(--cui-density-scale, 1))", textAlign: "center", borderRadius: "0.375rem", cursor: "pointer", fontSize: "0.8125rem", fontWeight: l.value === t ? "600" : "400", color: l.value === t ? "var(--cui-primary)" : "var(--cui-text-body)" }),
|
|
383
|
+
onClick: (o) => L(t)
|
|
384
|
+
}, f(t), 13, tt))), 128))
|
|
385
|
+
], 40, et)
|
|
386
|
+
], 64)) : G("", !0)
|
|
313
387
|
])
|
|
314
388
|
]),
|
|
315
|
-
default:
|
|
316
|
-
|
|
317
|
-
style:
|
|
389
|
+
default: b(() => [
|
|
390
|
+
c("div", {
|
|
391
|
+
style: $({
|
|
318
392
|
display: "flex",
|
|
319
393
|
alignItems: "center",
|
|
320
394
|
gap: "calc(0.375rem * var(--cui-density-scale, 1))",
|
|
321
395
|
border: "1px solid var(--cui-border-strong, var(--cui-border))",
|
|
322
|
-
borderRadius: "var(--cui-button-radius, 0.375rem)",
|
|
396
|
+
borderRadius: "var(--cui-button-radius, var(--cui-radius-md, 0.375rem))",
|
|
323
397
|
padding: "0 calc(0.5rem * var(--cui-density-scale, 1))",
|
|
324
398
|
background: "var(--cui-surface-base, white)",
|
|
325
|
-
opacity:
|
|
326
|
-
cursor:
|
|
399
|
+
opacity: d.disabled ? "0.5" : "1",
|
|
400
|
+
cursor: d.disabled ? "default" : "pointer"
|
|
327
401
|
})
|
|
328
402
|
}, [
|
|
329
|
-
|
|
403
|
+
u(M, {
|
|
330
404
|
name: "calendar-blank",
|
|
331
405
|
size: "0.875rem",
|
|
332
406
|
style: { color: "var(--cui-text-tertiary)", "flex-shrink": "0" }
|
|
333
407
|
}),
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
408
|
+
c("input", {
|
|
409
|
+
ref: "startInput",
|
|
410
|
+
onKeydown: e[0] || (e[0] = //@ts-ignore
|
|
411
|
+
(...t) => s(q) && s(q)(...t)),
|
|
412
|
+
id: d.id,
|
|
413
|
+
name: d.name,
|
|
414
|
+
autocomplete: d.autocomplete,
|
|
415
|
+
"aria-describedby": d.ariaDescribedby,
|
|
416
|
+
"aria-required": d.ariaRequired || void 0,
|
|
417
|
+
"aria-labelledby": d.ariaLabelledby,
|
|
418
|
+
value: le.value,
|
|
419
|
+
placeholder: d.startPlaceholder || n.format.toLowerCase(),
|
|
337
420
|
readonly: "",
|
|
338
|
-
style:
|
|
421
|
+
style: $({
|
|
339
422
|
border: "none",
|
|
340
423
|
background: "transparent",
|
|
341
424
|
outline: "none",
|
|
342
425
|
fontSize: "0.875rem",
|
|
343
426
|
color: "var(--cui-text-body)",
|
|
344
427
|
padding: "calc(0.5rem * var(--cui-density-scale, 1)) 0",
|
|
345
|
-
width: `${
|
|
428
|
+
width: `${n.format.length + 1}ch`,
|
|
346
429
|
cursor: "pointer"
|
|
347
430
|
})
|
|
348
|
-
}, null,
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
value:
|
|
352
|
-
placeholder:
|
|
431
|
+
}, null, 44, Ee),
|
|
432
|
+
c("span", Fe, f(d.separator), 1),
|
|
433
|
+
c("input", {
|
|
434
|
+
value: re.value,
|
|
435
|
+
placeholder: d.endPlaceholder || n.format.toLowerCase(),
|
|
353
436
|
readonly: "",
|
|
354
|
-
style:
|
|
437
|
+
style: $({
|
|
355
438
|
border: "none",
|
|
356
439
|
background: "transparent",
|
|
357
440
|
outline: "none",
|
|
358
441
|
fontSize: "0.875rem",
|
|
359
442
|
color: "var(--cui-text-body)",
|
|
360
443
|
padding: "calc(0.5rem * var(--cui-density-scale, 1)) 0",
|
|
361
|
-
width: `${
|
|
444
|
+
width: `${n.format.length + 1}ch`,
|
|
362
445
|
cursor: "pointer"
|
|
363
446
|
})
|
|
364
|
-
}, null, 12,
|
|
447
|
+
}, null, 12, Ke)
|
|
365
448
|
], 4)
|
|
366
449
|
]),
|
|
367
450
|
_: 1
|
|
368
451
|
}, 8, ["visible", "disabled"])
|
|
369
452
|
], 512)), [
|
|
370
|
-
[
|
|
453
|
+
[Re, !d.hidden]
|
|
371
454
|
]);
|
|
372
455
|
}
|
|
373
456
|
});
|
|
374
457
|
export {
|
|
375
|
-
|
|
458
|
+
st as default
|
|
376
459
|
};
|