@itguy614/clean-ui 1.2.2 → 1.3.1
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 +330 -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 +213 -190
- package/dist/components/CuiDataGridViewManager.vue.d.ts.map +1 -1
- package/dist/components/CuiDataGridViewManager.vue.js +21 -20
- 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 +1 -3
- package/dist/components/CuiDivider.vue.d.ts.map +1 -1
- package/dist/components/CuiDivider.vue.js +47 -59
- 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.d.ts.map +1 -1
- package/dist/components/CuiPagination.vue.js +1 -1
- package/dist/components/CuiPagination.vue2.js +28 -25
- package/dist/components/CuiPopover.vue.d.ts.map +1 -1
- package/dist/components/CuiPopover.vue.js +80 -72
- 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 +5 -154
- package/dist/components/CuiSlider.vue2.js +171 -2
- 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 +2 -2
- package/dist/components/CuiTabs.vue2.js +81 -76
- 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 +276 -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 +49 -45
- 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,4 +1,278 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { defineComponent as de, ref as c, computed as p, onMounted as ce, onUnmounted as ve, watch as fe, nextTick as B, withDirectives as me, openBlock as r, createElementBlock as v, normalizeStyle as M, toDisplayString as b, createCommentVNode as h, createElementVNode as $, normalizeClass as E, Fragment as U, renderList as K, createBlock as W, withCtx as ge, createTextVNode as pe, unref as Y, Teleport as be, createVNode as Z, withModifiers as j, renderSlot as he, vShow as ye } from "vue";
|
|
2
|
+
import { INPUT_SIZE_SCALE as we, nestedSize as xe, scaleDensity as ke } from "../utils/sizing.js";
|
|
3
|
+
import { useFieldDescribedBy as Ce } from "../composables/useFieldDescribedBy.js";
|
|
4
|
+
import Se from "./CuiIcon.vue.js";
|
|
5
|
+
import Te from "./CuiBadge.vue.js";
|
|
6
|
+
import Ve from "./CuiSpinner.vue.js";
|
|
7
|
+
/* empty css */
|
|
8
|
+
const ze = {
|
|
9
|
+
key: 0,
|
|
10
|
+
class: "cui-tag-input__label"
|
|
11
|
+
}, Le = ["id", "name", "autocomplete", "aria-describedby", "aria-required", "aria-labelledby", "value", "placeholder", "disabled"], Re = ["id"], Be = {
|
|
12
|
+
key: 0,
|
|
13
|
+
style: { padding: "calc(0.75rem * var(--cui-density-scale, 1))", textAlign: "center" }
|
|
14
|
+
}, Me = ["data-index", "onClick", "onMouseenter"], Ne = /* @__PURE__ */ de({
|
|
15
|
+
__name: "CuiTagInput",
|
|
16
|
+
props: {
|
|
17
|
+
modelValue: { default: () => [] },
|
|
18
|
+
suggestions: { default: () => [] },
|
|
19
|
+
fetchSuggestions: {},
|
|
20
|
+
allowCreate: { type: Boolean, default: !0 },
|
|
21
|
+
debounce: { default: 300 },
|
|
22
|
+
minChars: { default: 0 },
|
|
23
|
+
maxTags: { default: 0 },
|
|
24
|
+
placeholder: { default: "Add tag..." },
|
|
25
|
+
label: {},
|
|
26
|
+
error: { type: Boolean, default: !1 },
|
|
27
|
+
errorMessage: {},
|
|
28
|
+
noSuggestionsText: { default: "No suggestions" },
|
|
29
|
+
createText: { default: "Create" },
|
|
30
|
+
hidden: { type: Boolean, default: !1 },
|
|
31
|
+
rounded: { default: "md" },
|
|
32
|
+
name: {},
|
|
33
|
+
autocomplete: {},
|
|
34
|
+
id: {},
|
|
35
|
+
ariaDescribedby: {},
|
|
36
|
+
ariaLabelledby: {},
|
|
37
|
+
ariaRequired: { type: Boolean },
|
|
38
|
+
color: { default: "primary" },
|
|
39
|
+
size: { default: "md" },
|
|
40
|
+
disabled: { type: Boolean, default: !1 }
|
|
41
|
+
},
|
|
42
|
+
emits: ["update:modelValue"],
|
|
43
|
+
setup(u, { expose: G, emit: J }) {
|
|
44
|
+
const l = u, { errorId: Q, describedBy: X } = Ce(l), ee = {
|
|
45
|
+
none: "0",
|
|
46
|
+
sm: "var(--cui-radius-sm, 0.25rem)",
|
|
47
|
+
md: "var(--cui-button-radius, var(--cui-radius-md, 0.375rem))",
|
|
48
|
+
lg: "var(--cui-radius-lg, 0.5rem)",
|
|
49
|
+
full: "9999px"
|
|
50
|
+
}, D = J, o = c(""), s = c(!1), i = c(-1), z = c(!1), m = c([]), f = c(null), _ = c(null), y = c(null), I = c(null), q = c({});
|
|
51
|
+
let w = null;
|
|
52
|
+
const k = p(() => new Set(l.modelValue)), C = p(() => l.maxTags > 0 && l.modelValue.length >= l.maxTags);
|
|
53
|
+
function te(e) {
|
|
54
|
+
const t = [...l.suggestions, ...m.value].find((a) => a.value === e);
|
|
55
|
+
return (t == null ? void 0 : t.label) ?? e;
|
|
56
|
+
}
|
|
57
|
+
function ae(e) {
|
|
58
|
+
const t = [...l.suggestions, ...m.value].find((a) => a.value === e);
|
|
59
|
+
return (t == null ? void 0 : t.color) ?? l.color;
|
|
60
|
+
}
|
|
61
|
+
const d = p(() => {
|
|
62
|
+
const t = (l.fetchSuggestions ? m.value : l.suggestions).filter((n) => !k.value.has(n.value));
|
|
63
|
+
if (!o.value || l.fetchSuggestions) return t;
|
|
64
|
+
const a = o.value.toLowerCase();
|
|
65
|
+
return t.filter(
|
|
66
|
+
(n) => n.value.toLowerCase().includes(a) || n.label && n.label.toLowerCase().includes(a)
|
|
67
|
+
);
|
|
68
|
+
}), g = p(() => {
|
|
69
|
+
if (!l.allowCreate || !o.value.trim() || C.value) return !1;
|
|
70
|
+
const e = o.value.trim().toLowerCase();
|
|
71
|
+
return k.value.has(e) || k.value.has(o.value.trim()) ? !1 : ![...l.suggestions, ...m.value].map((a) => a.value.toLowerCase()).includes(e);
|
|
72
|
+
}), A = p(() => z.value), le = ke("0.25rem"), L = p(() => {
|
|
73
|
+
const e = we[l.size];
|
|
74
|
+
return {
|
|
75
|
+
tagSize: xe(l.size),
|
|
76
|
+
style: {
|
|
77
|
+
"--_tag-input-font-size": e.fontSize,
|
|
78
|
+
"--_tag-input-padding": `${le} ${e.px}`,
|
|
79
|
+
"--_tag-input-min-height": e.height
|
|
80
|
+
}
|
|
81
|
+
};
|
|
82
|
+
});
|
|
83
|
+
function x() {
|
|
84
|
+
const e = I.value ?? y.value;
|
|
85
|
+
if (!e) return;
|
|
86
|
+
const t = e.getBoundingClientRect(), a = window.innerHeight, n = a - t.bottom, V = t.top, F = n < 200 && V > n, se = Math.max(0, Math.min(240, (F ? V : n) - 16)), R = {
|
|
87
|
+
// The panel is teleported to <body>, so it inherits nothing from the component — it
|
|
88
|
+
// has to carry the size-derived properties itself (#123).
|
|
89
|
+
...L.value.style,
|
|
90
|
+
position: "fixed",
|
|
91
|
+
zIndex: "9990",
|
|
92
|
+
left: `${t.left}px`,
|
|
93
|
+
width: `${t.width}px`,
|
|
94
|
+
maxHeight: `${se}px`
|
|
95
|
+
// Only the geometry the positioner computes stays inline; the panel's paint lives in
|
|
96
|
+
// the stylesheet so it can be themed (#123).
|
|
97
|
+
};
|
|
98
|
+
F ? R.bottom = `${a - t.top + 4}px` : R.top = `${t.bottom + 4}px`, q.value = R;
|
|
99
|
+
}
|
|
100
|
+
function ue(e) {
|
|
101
|
+
if (o.value = e.target.value, i.value = -1, s.value || (s.value = !0, x()), l.fetchSuggestions) {
|
|
102
|
+
if (o.value.length < l.minChars) {
|
|
103
|
+
m.value = [];
|
|
104
|
+
return;
|
|
105
|
+
}
|
|
106
|
+
w && clearTimeout(w), w = setTimeout(async () => {
|
|
107
|
+
z.value = !0;
|
|
108
|
+
try {
|
|
109
|
+
m.value = await l.fetchSuggestions(o.value);
|
|
110
|
+
} finally {
|
|
111
|
+
z.value = !1;
|
|
112
|
+
}
|
|
113
|
+
}, l.debounce);
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
function N(e) {
|
|
117
|
+
if (l.disabled || C.value) return;
|
|
118
|
+
const t = e.trim();
|
|
119
|
+
!t || k.value.has(t) || (D("update:modelValue", [...l.modelValue, t]), o.value = "", i.value = -1, B(() => {
|
|
120
|
+
var a;
|
|
121
|
+
return (a = f.value) == null ? void 0 : a.focus();
|
|
122
|
+
}));
|
|
123
|
+
}
|
|
124
|
+
function H(e) {
|
|
125
|
+
N(e.value);
|
|
126
|
+
}
|
|
127
|
+
function S() {
|
|
128
|
+
g.value && N(o.value.trim());
|
|
129
|
+
}
|
|
130
|
+
function O(e) {
|
|
131
|
+
l.disabled || (D("update:modelValue", l.modelValue.filter((t) => t !== e)), B(() => {
|
|
132
|
+
var t;
|
|
133
|
+
return (t = f.value) == null ? void 0 : t.focus();
|
|
134
|
+
}));
|
|
135
|
+
}
|
|
136
|
+
function ne(e) {
|
|
137
|
+
const t = d.value.length + (g.value ? 1 : 0);
|
|
138
|
+
if (e.key === "ArrowDown") {
|
|
139
|
+
if (e.preventDefault(), !s.value) {
|
|
140
|
+
s.value = !0, x();
|
|
141
|
+
return;
|
|
142
|
+
}
|
|
143
|
+
i.value = Math.min(i.value + 1, t - 1);
|
|
144
|
+
} else e.key === "ArrowUp" ? (e.preventDefault(), i.value = Math.max(i.value - 1, 0)) : e.key === "Enter" ? (e.preventDefault(), i.value >= 0 && i.value < d.value.length ? H(d.value[i.value]) : (g.value && (i.value === d.value.length || i.value === -1) || g.value && o.value.trim()) && S()) : e.key === "," || e.key === "Tab" ? o.value.trim() && l.allowCreate && (e.preventDefault(), S()) : e.key === "Escape" ? s.value = !1 : e.key === "Backspace" && !o.value && l.modelValue.length > 0 && O(l.modelValue[l.modelValue.length - 1]);
|
|
145
|
+
}
|
|
146
|
+
function P(e) {
|
|
147
|
+
var a, n;
|
|
148
|
+
const t = e.target;
|
|
149
|
+
(a = y.value) != null && a.contains(t) || (n = _.value) != null && n.contains(t) || (s.value = !1);
|
|
150
|
+
}
|
|
151
|
+
function oe() {
|
|
152
|
+
!l.disabled && !C.value && (s.value = !0, x());
|
|
153
|
+
}
|
|
154
|
+
function T() {
|
|
155
|
+
s.value && x();
|
|
156
|
+
}
|
|
157
|
+
ce(() => {
|
|
158
|
+
document.addEventListener("mousedown", P), window.addEventListener("scroll", T, !0), window.addEventListener("resize", T);
|
|
159
|
+
}), ve(() => {
|
|
160
|
+
document.removeEventListener("mousedown", P), window.removeEventListener("scroll", T, !0), window.removeEventListener("resize", T), w && clearTimeout(w);
|
|
161
|
+
}), fe(s, (e) => {
|
|
162
|
+
e || (o.value = ""), e && B(x);
|
|
163
|
+
});
|
|
164
|
+
function ie(e) {
|
|
165
|
+
var t;
|
|
166
|
+
f.value ? f.value.focus(e) : (t = y.value) == null || t.focus(e);
|
|
167
|
+
}
|
|
168
|
+
function re() {
|
|
169
|
+
var e;
|
|
170
|
+
(e = f.value) == null || e.blur();
|
|
171
|
+
}
|
|
172
|
+
return G({ el: y, focus: ie, blur: re }), (e, t) => me((r(), v("div", {
|
|
173
|
+
class: "cui-tag-input",
|
|
174
|
+
ref_key: "wrapperRef",
|
|
175
|
+
ref: y,
|
|
176
|
+
style: M(L.value.style)
|
|
177
|
+
}, [
|
|
178
|
+
u.label ? (r(), v("label", ze, b(u.label), 1)) : h("", !0),
|
|
179
|
+
$("div", {
|
|
180
|
+
ref_key: "controlRef",
|
|
181
|
+
ref: I,
|
|
182
|
+
class: E(["cui-tag-input__control", { "cui-tag-input__control--disabled": u.disabled }]),
|
|
183
|
+
style: M({
|
|
184
|
+
"--_tag-input-radius": ee[u.rounded],
|
|
185
|
+
"--_tag-input-border": u.error ? "var(--cui-error)" : "var(--cui-border-strong, var(--cui-border))"
|
|
186
|
+
}),
|
|
187
|
+
onClick: t[0] || (t[0] = (a) => {
|
|
188
|
+
var n;
|
|
189
|
+
return (n = f.value) == null ? void 0 : n.focus();
|
|
190
|
+
})
|
|
191
|
+
}, [
|
|
192
|
+
(r(!0), v(U, null, K(u.modelValue, (a) => (r(), W(Te, {
|
|
193
|
+
key: a,
|
|
194
|
+
color: ae(a),
|
|
195
|
+
size: L.value.tagSize,
|
|
196
|
+
removable: "",
|
|
197
|
+
onRemove: (n) => O(a)
|
|
198
|
+
}, {
|
|
199
|
+
default: ge(() => [
|
|
200
|
+
pe(b(te(a)), 1)
|
|
201
|
+
]),
|
|
202
|
+
_: 2
|
|
203
|
+
}, 1032, ["color", "size", "onRemove"]))), 128)),
|
|
204
|
+
C.value ? h("", !0) : (r(), v("input", {
|
|
205
|
+
key: 0,
|
|
206
|
+
id: u.id,
|
|
207
|
+
name: u.name,
|
|
208
|
+
autocomplete: u.autocomplete,
|
|
209
|
+
"aria-describedby": Y(X),
|
|
210
|
+
"aria-required": u.ariaRequired || void 0,
|
|
211
|
+
"aria-labelledby": u.ariaLabelledby,
|
|
212
|
+
ref_key: "inputRef",
|
|
213
|
+
ref: f,
|
|
214
|
+
value: o.value,
|
|
215
|
+
placeholder: u.modelValue.length > 0 ? "" : u.placeholder,
|
|
216
|
+
disabled: u.disabled,
|
|
217
|
+
class: "cui-tag-input__input",
|
|
218
|
+
onInput: ue,
|
|
219
|
+
onFocus: oe,
|
|
220
|
+
onKeydown: ne
|
|
221
|
+
}, null, 40, Le))
|
|
222
|
+
], 6),
|
|
223
|
+
u.error && u.errorMessage ? (r(), v("div", {
|
|
224
|
+
key: 1,
|
|
225
|
+
id: Y(Q),
|
|
226
|
+
class: "cui-tag-input__error"
|
|
227
|
+
}, b(u.errorMessage), 9, Re)) : h("", !0),
|
|
228
|
+
(r(), W(be, { to: "body" }, [
|
|
229
|
+
s.value && (d.value.length > 0 || g.value || A.value) ? (r(), v("div", {
|
|
230
|
+
key: 0,
|
|
231
|
+
ref_key: "dropdownRef",
|
|
232
|
+
ref: _,
|
|
233
|
+
class: "cui-tag-input__dropdown",
|
|
234
|
+
style: M(q.value)
|
|
235
|
+
}, [
|
|
236
|
+
A.value && d.value.length === 0 ? (r(), v("div", Be, [
|
|
237
|
+
Z(Ve, {
|
|
238
|
+
size: "xs",
|
|
239
|
+
"show-label": "",
|
|
240
|
+
label: "Searching..."
|
|
241
|
+
})
|
|
242
|
+
])) : h("", !0),
|
|
243
|
+
(r(!0), v(U, null, K(d.value, (a, n) => (r(), v("div", {
|
|
244
|
+
key: a.value,
|
|
245
|
+
"data-index": n,
|
|
246
|
+
class: E(["cui-tag-input__suggestion", { "cui-tag-input__suggestion--focused": i.value === n }]),
|
|
247
|
+
onClick: j((V) => H(a), ["stop"]),
|
|
248
|
+
onMouseenter: (V) => i.value = n
|
|
249
|
+
}, [
|
|
250
|
+
he(e.$slots, "suggestion", { suggestion: a }, () => [
|
|
251
|
+
$("span", null, b(a.label || a.value), 1)
|
|
252
|
+
], !0)
|
|
253
|
+
], 42, Me))), 128)),
|
|
254
|
+
g.value ? (r(), v("div", {
|
|
255
|
+
key: 1,
|
|
256
|
+
class: E(["cui-tag-input__create", {
|
|
257
|
+
"cui-tag-input__suggestion--focused": i.value === d.value.length,
|
|
258
|
+
"cui-tag-input__create--divided": d.value.length > 0
|
|
259
|
+
}]),
|
|
260
|
+
onClick: j(S, ["stop"]),
|
|
261
|
+
onMouseenter: t[1] || (t[1] = (a) => i.value = d.value.length)
|
|
262
|
+
}, [
|
|
263
|
+
Z(Se, {
|
|
264
|
+
name: "plus",
|
|
265
|
+
size: "0.75rem"
|
|
266
|
+
}),
|
|
267
|
+
$("span", null, b(u.createText) + " “" + b(o.value.trim()) + "”", 1)
|
|
268
|
+
], 34)) : h("", !0)
|
|
269
|
+
], 4)) : h("", !0)
|
|
270
|
+
]))
|
|
271
|
+
], 4)), [
|
|
272
|
+
[ye, !u.hidden]
|
|
273
|
+
]);
|
|
274
|
+
}
|
|
275
|
+
});
|
|
2
276
|
export {
|
|
3
|
-
|
|
277
|
+
Ne as default
|
|
4
278
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { HideableProps, ColorableProps, SizeableProps, DisableableProps, CuiRounded } from "../types/common";
|
|
2
|
-
export interface CuiTextareaProps extends HideableProps, ColorableProps, SizeableProps, DisableableProps {
|
|
1
|
+
import type { HideableProps, ColorableProps, SizeableProps, DisableableProps, CuiRounded, NativeControlProps } from "../types/common";
|
|
2
|
+
export interface CuiTextareaProps extends NativeControlProps, HideableProps, ColorableProps, SizeableProps, DisableableProps {
|
|
3
3
|
/** v-model binding */
|
|
4
4
|
modelValue?: string;
|
|
5
5
|
/** Placeholder text */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CuiTextarea.vue.d.ts","sourceRoot":"","sources":["../../src/components/CuiTextarea.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"CuiTextarea.vue.d.ts","sourceRoot":"","sources":["../../src/components/CuiTextarea.vue"],"names":[],"mappings":"AA0RA,OAAO,KAAK,EAAE,aAAa,EAAE,cAAc,EAAE,aAAa,EAAE,gBAAgB,EAAE,UAAU,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AAYtI,MAAM,WAAW,gBAAiB,SAAQ,kBAAkB,EAAE,aAAa,EAAE,cAAc,EAAE,aAAa,EAAE,gBAAgB;IAC1H,sBAAsB;IACtB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,uBAAuB;IACvB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,6CAA6C;IAC7C,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,iCAAiC;IACjC,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,sCAAsC;IACtC,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,wDAAwD;IACxD,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,uBAAuB;IACvB,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,mCAAmC;IACnC,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,eAAe;IACf,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,oBAAoB;IACpB,OAAO,CAAC,EAAE,UAAU,CAAC;CACtB;AAwFD,iBAAS,KAAK,CAAC,IAAI,CAAC,EAAE,YAAY,QAEjC;AAED,iBAAS,IAAI,SAEZ;;;;;;;;;;WArGS,OAAO;cAIJ,OAAO;;;;aAER,UAAU;;UAdb,MAAM;gBAJA,MAAM;gBAMN,OAAO;;AA4PtB,wBASG"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import
|
|
1
|
+
import o from "./CuiTextarea.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
|
-
import
|
|
4
|
-
const
|
|
3
|
+
import t from "../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
+
const e = /* @__PURE__ */ t(o, [["__scopeId", "data-v-c82ce8bc"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
e as default
|
|
7
7
|
};
|
|
@@ -1,15 +1,13 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { TEXTAREA_SIZE_SCALE as
|
|
3
|
-
|
|
1
|
+
import { defineComponent as q, useTemplateRef as D, computed as m, onMounted as I, nextTick as v, watch as $, withDirectives as A, openBlock as i, createElementBlock as l, createElementVNode as w, normalizeStyle as N, normalizeClass as B, unref as L, toDisplayString as f, createCommentVNode as R, vShow as W } from "vue";
|
|
2
|
+
import { TEXTAREA_SIZE_SCALE as O } from "../utils/sizing.js";
|
|
3
|
+
import { useFieldDescribedBy as X } from "../composables/useFieldDescribedBy.js";
|
|
4
|
+
const Y = { class: "cui-textarea-wrapper" }, Z = ["id", "name", "autocomplete", "aria-describedby", "aria-required", "aria-labelledby", "value", "placeholder", "disabled", "readonly", "rows", "aria-invalid"], j = {
|
|
4
5
|
key: 0,
|
|
5
6
|
class: "cui-textarea__footer"
|
|
6
|
-
},
|
|
7
|
-
key: 0,
|
|
8
|
-
class: "cui-textarea__error"
|
|
9
|
-
}, Z = {
|
|
7
|
+
}, G = ["id"], J = {
|
|
10
8
|
key: 1,
|
|
11
9
|
class: "cui-textarea__spacer"
|
|
12
|
-
},
|
|
10
|
+
}, U = /* @__PURE__ */ q({
|
|
13
11
|
__name: "CuiTextarea",
|
|
14
12
|
props: {
|
|
15
13
|
modelValue: { default: "" },
|
|
@@ -22,69 +20,81 @@ const W = { class: "cui-textarea-wrapper" }, O = ["value", "placeholder", "disab
|
|
|
22
20
|
errorMessage: {},
|
|
23
21
|
readonly: { type: Boolean, default: !1 },
|
|
24
22
|
rounded: { default: "md" },
|
|
23
|
+
name: {},
|
|
24
|
+
autocomplete: {},
|
|
25
|
+
id: {},
|
|
26
|
+
ariaDescribedby: {},
|
|
27
|
+
ariaLabelledby: {},
|
|
28
|
+
ariaRequired: { type: Boolean },
|
|
25
29
|
hidden: { type: Boolean, default: !1 },
|
|
26
30
|
color: { default: "primary" },
|
|
27
31
|
size: { default: "md" },
|
|
28
32
|
disabled: { type: Boolean, default: !1 }
|
|
29
33
|
},
|
|
30
34
|
emits: ["update:modelValue"],
|
|
31
|
-
setup(e, { expose:
|
|
32
|
-
const
|
|
35
|
+
setup(e, { expose: z, emit: C }) {
|
|
36
|
+
const S = {
|
|
33
37
|
none: "0",
|
|
34
|
-
sm: "0.25rem",
|
|
35
|
-
md: "var(--cui-button-radius, 0.375rem)",
|
|
36
|
-
lg: "0.5rem",
|
|
38
|
+
sm: "var(--cui-radius-sm, 0.25rem)",
|
|
39
|
+
md: "var(--cui-button-radius, var(--cui-radius-md, 0.375rem))",
|
|
40
|
+
lg: "var(--cui-radius-lg, 0.5rem)",
|
|
37
41
|
full: "9999px"
|
|
38
|
-
},
|
|
39
|
-
function
|
|
40
|
-
const
|
|
41
|
-
let
|
|
42
|
-
|
|
42
|
+
}, t = e, { errorId: T, describedBy: E } = X(t), M = C, d = D("textareaEl"), h = m(() => t.modelValue.length), u = m(() => t.maxLength !== void 0 && h.value > t.maxLength);
|
|
43
|
+
function V(a) {
|
|
44
|
+
const r = a.target;
|
|
45
|
+
let o = r.value;
|
|
46
|
+
t.maxLength !== void 0 && o.length > t.maxLength && (o = o.slice(0, t.maxLength), r.value = o), M("update:modelValue", o), t.autoResize && v(n);
|
|
43
47
|
}
|
|
44
|
-
function
|
|
45
|
-
const
|
|
46
|
-
if (!
|
|
47
|
-
|
|
48
|
-
const
|
|
49
|
-
let
|
|
50
|
-
|
|
51
|
-
const b =
|
|
52
|
-
|
|
48
|
+
function n() {
|
|
49
|
+
const a = d.value;
|
|
50
|
+
if (!a) return;
|
|
51
|
+
a.style.height = "auto";
|
|
52
|
+
const r = parseFloat(getComputedStyle(a).lineHeight) || 20, o = parseFloat(getComputedStyle(a).paddingTop) || 0, g = parseFloat(getComputedStyle(a).paddingBottom) || 0, y = parseFloat(getComputedStyle(a).borderTopWidth) || 0, x = parseFloat(getComputedStyle(a).borderBottomWidth) || 0, F = r * t.rows + o + g + y + x;
|
|
53
|
+
let s = 1 / 0;
|
|
54
|
+
t.maxRows && (s = r * t.maxRows + o + g + y + x);
|
|
55
|
+
const b = a.scrollHeight, p = Math.min(Math.max(b, F), s);
|
|
56
|
+
a.style.height = `${p}px`, a.style.overflowY = b > s ? "auto" : "hidden";
|
|
53
57
|
}
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
}), $(() =>
|
|
57
|
-
|
|
58
|
+
I(() => {
|
|
59
|
+
t.autoResize && v(n);
|
|
60
|
+
}), $(() => t.modelValue, () => {
|
|
61
|
+
t.autoResize && v(n);
|
|
58
62
|
});
|
|
59
|
-
function
|
|
60
|
-
var
|
|
61
|
-
(
|
|
63
|
+
function k(a) {
|
|
64
|
+
var r;
|
|
65
|
+
(r = d.value) == null || r.focus(a);
|
|
62
66
|
}
|
|
63
|
-
function
|
|
64
|
-
var
|
|
65
|
-
(
|
|
67
|
+
function H() {
|
|
68
|
+
var a;
|
|
69
|
+
(a = d.value) == null || a.blur();
|
|
66
70
|
}
|
|
67
|
-
|
|
68
|
-
const
|
|
69
|
-
return (
|
|
71
|
+
z({ el: d, focus: k, blur: H });
|
|
72
|
+
const c = m(() => O[t.size]);
|
|
73
|
+
return (a, r) => A((i(), l("div", Y, [
|
|
70
74
|
w("div", {
|
|
71
|
-
class:
|
|
72
|
-
"cui-textarea--error": e.error ||
|
|
75
|
+
class: B(["cui-textarea", {
|
|
76
|
+
"cui-textarea--error": e.error || u.value,
|
|
73
77
|
"cui-textarea--disabled": e.disabled
|
|
74
78
|
}]),
|
|
75
|
-
style:
|
|
76
|
-
borderRadius:
|
|
77
|
-
"--_ta-px":
|
|
78
|
-
"--_ta-py":
|
|
79
|
-
"--_ta-font-size":
|
|
79
|
+
style: N({
|
|
80
|
+
borderRadius: S[e.rounded],
|
|
81
|
+
"--_ta-px": c.value.px,
|
|
82
|
+
"--_ta-py": c.value.py,
|
|
83
|
+
"--_ta-font-size": c.value.fontSize,
|
|
80
84
|
"--_ta-color": `var(--cui-${e.color})`,
|
|
81
85
|
"--_ta-focus-ring": `var(--cui-${e.color}-focus-ring)`,
|
|
82
|
-
"--_ta-border": e.error ||
|
|
83
|
-
"--_ta-focus-border": e.error ||
|
|
86
|
+
"--_ta-border": e.error || u.value ? "var(--cui-error)" : "var(--cui-border-strong)",
|
|
87
|
+
"--_ta-focus-border": e.error || u.value ? "var(--cui-error)" : `var(--cui-${e.color})`
|
|
84
88
|
})
|
|
85
89
|
}, [
|
|
86
90
|
w("textarea", {
|
|
87
91
|
ref: "textareaEl",
|
|
92
|
+
id: e.id,
|
|
93
|
+
name: e.name,
|
|
94
|
+
autocomplete: e.autocomplete,
|
|
95
|
+
"aria-describedby": L(E),
|
|
96
|
+
"aria-required": e.ariaRequired || void 0,
|
|
97
|
+
"aria-labelledby": e.ariaLabelledby,
|
|
88
98
|
value: e.modelValue,
|
|
89
99
|
placeholder: e.placeholder,
|
|
90
100
|
disabled: e.disabled,
|
|
@@ -92,21 +102,25 @@ const W = { class: "cui-textarea-wrapper" }, O = ["value", "placeholder", "disab
|
|
|
92
102
|
rows: e.rows,
|
|
93
103
|
"aria-invalid": e.error || void 0,
|
|
94
104
|
class: "cui-textarea__native",
|
|
95
|
-
onInput:
|
|
96
|
-
}, null, 40,
|
|
105
|
+
onInput: V
|
|
106
|
+
}, null, 40, Z)
|
|
97
107
|
], 6),
|
|
98
|
-
e.error && e.errorMessage || e.maxLength !== void 0 ? (
|
|
99
|
-
e.error && e.errorMessage ? (
|
|
100
|
-
|
|
108
|
+
e.error && e.errorMessage || e.maxLength !== void 0 ? (i(), l("div", j, [
|
|
109
|
+
e.error && e.errorMessage ? (i(), l("div", {
|
|
110
|
+
key: 0,
|
|
111
|
+
id: L(T),
|
|
112
|
+
class: "cui-textarea__error"
|
|
113
|
+
}, f(e.errorMessage), 9, G)) : (i(), l("div", J)),
|
|
114
|
+
e.maxLength !== void 0 ? (i(), l("div", {
|
|
101
115
|
key: 2,
|
|
102
|
-
class:
|
|
103
|
-
}, h
|
|
104
|
-
])) :
|
|
116
|
+
class: B(["cui-textarea__counter", { "cui-textarea__counter--over": u.value }])
|
|
117
|
+
}, f(h.value) + "/" + f(e.maxLength), 3)) : R("", !0)
|
|
118
|
+
])) : R("", !0)
|
|
105
119
|
], 512)), [
|
|
106
|
-
[
|
|
120
|
+
[W, !e.hidden]
|
|
107
121
|
]);
|
|
108
122
|
}
|
|
109
123
|
});
|
|
110
124
|
export {
|
|
111
|
-
|
|
125
|
+
U as default
|
|
112
126
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { HideableProps, DisableableProps } from "../types/common";
|
|
1
|
+
import type { HideableProps, DisableableProps, NativeControlProps } from "../types/common";
|
|
2
2
|
export type TimePickerFormat = "12" | "24";
|
|
3
|
-
export interface CuiTimePickerProps extends HideableProps, DisableableProps {
|
|
3
|
+
export interface CuiTimePickerProps extends NativeControlProps, HideableProps, DisableableProps {
|
|
4
4
|
/** Time value as "HH:mm" (24h) or "hh:mm AM/PM" (12h) */
|
|
5
5
|
modelValue?: string;
|
|
6
6
|
/** Clock format */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CuiTimePicker.vue.d.ts","sourceRoot":"","sources":["../../src/components/CuiTimePicker.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"CuiTimePicker.vue.d.ts","sourceRoot":"","sources":["../../src/components/CuiTimePicker.vue"],"names":[],"mappings":"AAsaA,OAAO,KAAK,EAAE,aAAa,EAAE,gBAAgB,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AAE3F,MAAM,MAAM,gBAAgB,GAAG,IAAI,GAAG,IAAI,CAAC;AAE3C,MAAM,WAAW,kBAAmB,SAAQ,kBAAkB,EAAE,aAAa,EAAE,gBAAgB;IAC7F,yDAAyD;IACzD,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,mBAAmB;IACnB,MAAM,CAAC,EAAE,gBAAgB,CAAC;IAC1B,4BAA4B;IAC5B,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,2BAA2B;IAC3B,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,2BAA2B;IAC3B,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,kBAAkB;IAClB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,WAAW;IACX,IAAI,CAAC,EAAE,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;IAC1B,YAAY;IACZ,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAuPD,iBAAS,KAAK,CAAC,IAAI,CAAC,EAAE,YAAY,QAGjC;AAED,iBAAS,IAAI,SAEZ;;;;;;;;;;;UAjQQ,IAAI,GAAG,IAAI,GAAG,IAAI;;gBAZZ,MAAM;YAEV,gBAAgB;gBAEZ,MAAM;;AAgkBrB,wBASG"}
|