@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,9 @@
|
|
|
1
|
-
import { defineComponent as z, useTemplateRef as S, computed as i, openBlock as a, createBlock as N, Teleport as I, unref as o, withDirectives as O, createElementBlock as
|
|
2
|
-
import { useOverlay as
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
const
|
|
1
|
+
import { defineComponent as z, useTemplateRef as S, computed as i, openBlock as a, createBlock as N, Teleport as I, unref as o, withDirectives as O, createElementBlock as p, createVNode as n, createElementVNode as $, normalizeStyle as D, Fragment as E, withCtx as V, renderSlot as v, vShow as A, createCommentVNode as M } from "vue";
|
|
2
|
+
import { useOverlay as R } from "../composables/useOverlay.js";
|
|
3
|
+
import G from "./CuiBackdrop.vue.js";
|
|
4
|
+
import H from "./CuiModalHeader.vue.js";
|
|
5
|
+
import K from "./CuiModalBody.vue.js";
|
|
6
|
+
const T = ["aria-labelledby"], j = /* @__PURE__ */ z({
|
|
7
7
|
__name: "CuiSlideover",
|
|
8
8
|
props: {
|
|
9
9
|
visible: { type: Boolean, default: !1 },
|
|
@@ -18,19 +18,20 @@ const X = ["aria-labelledby"], j = /* @__PURE__ */ z({
|
|
|
18
18
|
backdropColor: { default: "black" },
|
|
19
19
|
backdropImage: {},
|
|
20
20
|
backdropGradient: {},
|
|
21
|
-
hidden: { type: Boolean, default: !1 }
|
|
21
|
+
hidden: { type: Boolean, default: !1 },
|
|
22
|
+
titleAs: {}
|
|
22
23
|
},
|
|
23
24
|
emits: ["update:visible", "close"],
|
|
24
25
|
setup(l, { emit: b }) {
|
|
25
|
-
const t = l, s = b,
|
|
26
|
+
const t = l, s = b, h = S("panelEl"), { isVisible: y, isAnimating: r, closeOverlay: g, onBackdropClick: k, onKeydown: d } = R({
|
|
26
27
|
open: () => t.visible,
|
|
27
|
-
dialogRef:
|
|
28
|
+
dialogRef: h,
|
|
28
29
|
persistent: () => t.persistent,
|
|
29
30
|
allowNested: () => t.allowNested,
|
|
30
31
|
animationDuration: 250,
|
|
31
32
|
onUpdateOpen: (e) => s("update:visible", e),
|
|
32
33
|
onClose: () => s("close")
|
|
33
|
-
}), c = i(() => t.side === "left" || t.side === "right"),
|
|
34
|
+
}), c = i(() => t.side === "left" || t.side === "right"), w = {
|
|
34
35
|
sm: "20rem",
|
|
35
36
|
// 320px
|
|
36
37
|
md: "28rem",
|
|
@@ -40,13 +41,13 @@ const X = ["aria-labelledby"], j = /* @__PURE__ */ z({
|
|
|
40
41
|
xl: "48rem",
|
|
41
42
|
// 768px
|
|
42
43
|
full: "100vw"
|
|
43
|
-
},
|
|
44
|
+
}, C = {
|
|
44
45
|
sm: "25vh",
|
|
45
46
|
md: "40vh",
|
|
46
47
|
lg: "60vh",
|
|
47
48
|
xl: "80vh",
|
|
48
49
|
full: "100vh"
|
|
49
|
-
}, f = i(() => (c.value ?
|
|
50
|
+
}, f = i(() => (c.value ? w : C)[t.size] ?? t.size), x = i(() => {
|
|
50
51
|
const e = {
|
|
51
52
|
position: "absolute",
|
|
52
53
|
zIndex: "2",
|
|
@@ -59,48 +60,51 @@ const X = ["aria-labelledby"], j = /* @__PURE__ */ z({
|
|
|
59
60
|
transition: "transform 0.25s ease"
|
|
60
61
|
};
|
|
61
62
|
return c.value ? (e.width = f.value, e.maxWidth = t.size === "full" ? "100vw" : "calc(100vw - 2rem)", e.top = "0", e.height = "100%") : (e.height = f.value, e.maxHeight = t.size === "full" ? "100vh" : "calc(100vh - 2rem)", e.left = "0", e.width = "100%"), t.side === "right" ? e.right = "0" : t.side === "left" ? e.left = "0" : t.side === "top" ? e.top = "0" : t.side === "bottom" && (e.bottom = "0"), r.value ? e.transform = "translate(0)" : t.side === "right" ? e.transform = "translateX(100%)" : t.side === "left" ? e.transform = "translateX(-100%)" : t.side === "top" ? e.transform = "translateY(-100%)" : t.side === "bottom" && (e.transform = "translateY(100%)"), e;
|
|
62
|
-
}),
|
|
63
|
-
return (e,
|
|
64
|
-
o(
|
|
63
|
+
}), m = `cui-slideover-title-${Math.random().toString(36).slice(2, 8)}`;
|
|
64
|
+
return (e, u) => (a(), N(I, { to: "body" }, [
|
|
65
|
+
o(y) ? O((a(), p("div", {
|
|
65
66
|
key: 0,
|
|
67
|
+
class: "cui-slideover-overlay",
|
|
66
68
|
style: { position: "fixed", inset: "0", zIndex: "9990" },
|
|
67
|
-
onKeydown:
|
|
69
|
+
onKeydown: u[0] || (u[0] = //@ts-ignore
|
|
68
70
|
(...B) => o(d) && o(d)(...B))
|
|
69
71
|
}, [
|
|
70
|
-
n(
|
|
72
|
+
n(G, {
|
|
71
73
|
visible: o(r),
|
|
72
74
|
opacity: l.backdropOpacity,
|
|
73
75
|
blur: l.backdropBlur,
|
|
74
76
|
color: l.backdropColor,
|
|
75
77
|
image: l.backdropImage,
|
|
76
78
|
gradient: l.backdropGradient,
|
|
77
|
-
onClick: o(
|
|
79
|
+
onClick: o(k)
|
|
78
80
|
}, null, 8, ["visible", "opacity", "blur", "color", "image", "gradient", "onClick"]),
|
|
79
81
|
$("div", {
|
|
80
82
|
ref: "panelEl",
|
|
81
|
-
style: D(
|
|
83
|
+
style: D(x.value),
|
|
82
84
|
role: "dialog",
|
|
83
85
|
"aria-modal": "true",
|
|
84
|
-
"aria-labelledby": l.title ?
|
|
86
|
+
"aria-labelledby": l.title ? m : void 0,
|
|
85
87
|
tabindex: "-1"
|
|
86
88
|
}, [
|
|
87
|
-
l.title ? (a(),
|
|
88
|
-
n(
|
|
89
|
+
l.title ? (a(), p(E, { key: 0 }, [
|
|
90
|
+
n(H, {
|
|
89
91
|
title: l.title,
|
|
92
|
+
"title-as": l.titleAs,
|
|
93
|
+
"title-id": m,
|
|
90
94
|
"no-close-button": l.noCloseButton,
|
|
91
|
-
onClose: o(
|
|
92
|
-
}, null, 8, ["title", "no-close-button", "onClose"]),
|
|
93
|
-
n(
|
|
95
|
+
onClose: o(g)
|
|
96
|
+
}, null, 8, ["title", "title-as", "no-close-button", "onClose"]),
|
|
97
|
+
n(K, null, {
|
|
94
98
|
default: V(() => [
|
|
95
|
-
|
|
99
|
+
v(e.$slots, "default")
|
|
96
100
|
]),
|
|
97
101
|
_: 3
|
|
98
102
|
})
|
|
99
|
-
], 64)) :
|
|
100
|
-
], 12,
|
|
103
|
+
], 64)) : v(e.$slots, "default", {}, void 0, void 0, 1)
|
|
104
|
+
], 12, T)
|
|
101
105
|
], 544)), [
|
|
102
|
-
[
|
|
103
|
-
]) :
|
|
106
|
+
[A, !l.hidden]
|
|
107
|
+
]) : M("", !0)
|
|
104
108
|
]));
|
|
105
109
|
}
|
|
106
110
|
});
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { CuiColor, CuiSize, HideableProps, ColorableProps, SizeableProps, DisableableProps } from "../types/common";
|
|
2
|
-
export interface CuiSliderProps extends HideableProps, ColorableProps, SizeableProps, DisableableProps {
|
|
1
|
+
import type { CuiColor, CuiSize, HideableProps, ColorableProps, SizeableProps, DisableableProps, NativeControlProps } from "../types/common";
|
|
2
|
+
export interface CuiSliderProps extends NativeControlProps, HideableProps, ColorableProps, SizeableProps, DisableableProps {
|
|
3
3
|
/** Current value */
|
|
4
4
|
modelValue?: number;
|
|
5
5
|
/** Minimum value */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CuiSlider.vue.d.ts","sourceRoot":"","sources":["../../src/components/CuiSlider.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"CuiSlider.vue.d.ts","sourceRoot":"","sources":["../../src/components/CuiSlider.vue"],"names":[],"mappings":"AAsMA,OAAO,KAAK,EAAE,QAAQ,EAAE,OAAO,EAAE,aAAa,EAAE,cAAc,EAAE,aAAa,EAAE,gBAAgB,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AAI7I,MAAM,WAAW,cAAe,SAAQ,kBAAkB,EAAE,aAAa,EAAE,cAAc,EAAE,aAAa,EAAE,gBAAgB;IACxH,oBAAoB;IACpB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,oBAAoB;IACpB,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,oBAAoB;IACpB,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,qBAAqB;IACrB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,iBAAiB;IACjB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,6BAA6B;IAC7B,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,0CAA0C;IAC1C,WAAW,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,MAAM,CAAC;IACxC,0CAA0C;IAC1C,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,4DAA4D;IAC5D,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAkDD,iBAAS,KAAK,CAAC,IAAI,CAAC,EAAE,YAAY,QAEjC;AAED,iBAAS,IAAI,SAEZ;AA+JD,QAAA,IAAI,OAAO,IAAW,CAAE;AACxB,KAAK,WAAW,GAAG,EAAE,GACnB;IAAE,KAAK,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,OAAO,KAAK,GAAG,CAAA;CAAE,CAAC;AA8B7C,QAAA,MAAM,eAAe;;;;;;;;;;;;;gBAxQN,MAAM;SAIb,MAAM;UAEL,MAAM;SAJP,MAAM;eAQA,OAAO;eAIP,OAAO;6EAmQnB,CAAC;wBACkB,eAAe,CAAC,OAAO,eAAe,EAAE,WAAW,CAAC;AAAzE,wBAA0E;AAa1E,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { defineComponent as F, computed as s, ref as
|
|
2
|
-
import { clampSize as
|
|
3
|
-
import
|
|
4
|
-
const
|
|
1
|
+
import { defineComponent as F, computed as s, ref as R, useTemplateRef as $, withDirectives as B, openBlock as r, createElementBlock as d, normalizeStyle as i, toDisplayString as c, createCommentVNode as m, createElementVNode as u, renderSlot as C, createBlock as E, vShow as D } from "vue";
|
|
2
|
+
import { clampSize as H } from "../utils/sizing.js";
|
|
3
|
+
import q from "./CuiIcon.vue.js";
|
|
4
|
+
const T = {
|
|
5
5
|
key: 0,
|
|
6
6
|
style: { display: "flex", "justify-content": "space-between", "align-items": "baseline", "margin-bottom": "calc(0.375rem * var(--cui-density-scale, 1))" }
|
|
7
|
-
},
|
|
7
|
+
}, j = ["id", "name", "autocomplete", "aria-describedby", "aria-required", "aria-labelledby", "value", "min", "max", "step", "disabled"], N = {
|
|
8
8
|
key: 1,
|
|
9
9
|
style: { display: "flex", "justify-content": "space-between", "margin-top": "calc(0.25rem * var(--cui-density-scale, 1))" }
|
|
10
|
-
},
|
|
10
|
+
}, W = /* @__PURE__ */ F({
|
|
11
11
|
__name: "CuiSlider",
|
|
12
12
|
props: {
|
|
13
13
|
modelValue: { default: 0 },
|
|
@@ -19,53 +19,60 @@ const D = {
|
|
|
19
19
|
formatValue: {},
|
|
20
20
|
showRange: { type: Boolean, default: !1 },
|
|
21
21
|
thumbIcon: {},
|
|
22
|
+
name: {},
|
|
23
|
+
autocomplete: {},
|
|
24
|
+
id: {},
|
|
25
|
+
ariaDescribedby: {},
|
|
26
|
+
ariaLabelledby: {},
|
|
27
|
+
ariaRequired: { type: Boolean },
|
|
22
28
|
hidden: { type: Boolean, default: !1 },
|
|
23
29
|
color: { default: "primary" },
|
|
24
30
|
size: { default: "md" },
|
|
25
31
|
disabled: { type: Boolean, default: !1 }
|
|
26
32
|
},
|
|
27
33
|
emits: ["update:modelValue"],
|
|
28
|
-
setup(e, { expose:
|
|
29
|
-
const t = e, g =
|
|
34
|
+
setup(e, { expose: y, emit: h }) {
|
|
35
|
+
const t = e, g = h, v = s(
|
|
30
36
|
() => (t.modelValue - t.min) / (t.max - t.min) * 100
|
|
31
37
|
), x = s(
|
|
32
38
|
() => t.formatValue ? t.formatValue(t.modelValue) : String(t.modelValue)
|
|
33
|
-
),
|
|
34
|
-
function
|
|
35
|
-
const a = parseFloat(
|
|
39
|
+
), o = R(!1);
|
|
40
|
+
function S(n) {
|
|
41
|
+
const a = parseFloat(n.target.value);
|
|
36
42
|
g("update:modelValue", a);
|
|
37
43
|
}
|
|
38
|
-
const
|
|
44
|
+
const V = ["sm", "md", "lg"], z = {
|
|
39
45
|
sm: { trackHeight: "4px", thumbSize: "16px", thumbIcon: "0.5rem", labelFont: "0.8125rem", valueFont: "0.75rem" },
|
|
40
46
|
md: { trackHeight: "6px", thumbSize: "20px", thumbIcon: "0.625rem", labelFont: "0.875rem", valueFont: "0.8125rem" },
|
|
41
47
|
lg: { trackHeight: "8px", thumbSize: "26px", thumbIcon: "0.75rem", labelFont: "1rem", valueFont: "0.875rem" }
|
|
42
|
-
}, l = s(() =>
|
|
43
|
-
function
|
|
48
|
+
}, l = s(() => z[H(t.size, V)]), w = s(() => t.disabled ? "var(--cui-text-tertiary)" : `var(--cui-${t.color})`), k = s(() => t.disabled ? "var(--cui-text-tertiary)" : `var(--cui-${t.color})`), b = $("inputEl");
|
|
49
|
+
function p(n) {
|
|
44
50
|
var a;
|
|
45
|
-
(a =
|
|
51
|
+
(a = b.value) == null || a.focus(n);
|
|
46
52
|
}
|
|
47
53
|
function I() {
|
|
48
|
-
var
|
|
49
|
-
(
|
|
54
|
+
var n;
|
|
55
|
+
(n = b.value) == null || n.blur();
|
|
50
56
|
}
|
|
51
|
-
return
|
|
52
|
-
|
|
57
|
+
return y({ el: b, focus: p, blur: I }), (n, a) => B((r(), d("div", {
|
|
58
|
+
class: "cui-slider",
|
|
59
|
+
style: i({ opacity: e.disabled ? 0.5 : 1 })
|
|
53
60
|
}, [
|
|
54
|
-
e.label || e.showValue ? (r(),
|
|
55
|
-
e.label ? (r(),
|
|
61
|
+
e.label || e.showValue ? (r(), d("div", T, [
|
|
62
|
+
e.label ? (r(), d("label", {
|
|
56
63
|
key: 0,
|
|
57
|
-
style:
|
|
58
|
-
}, c(e.label), 5)) :
|
|
59
|
-
e.showValue ? (r(),
|
|
64
|
+
style: i({ fontSize: l.value.labelFont, fontWeight: "500", color: "var(--cui-text-secondary)" })
|
|
65
|
+
}, c(e.label), 5)) : m("", !0),
|
|
66
|
+
e.showValue ? (r(), d("span", {
|
|
60
67
|
key: 1,
|
|
61
|
-
style:
|
|
62
|
-
}, c(x.value), 5)) :
|
|
63
|
-
])) :
|
|
68
|
+
style: i({ fontSize: l.value.valueFont, fontWeight: "600", color: "var(--cui-text-body)", fontVariantNumeric: "tabular-nums" })
|
|
69
|
+
}, c(x.value), 5)) : m("", !0)
|
|
70
|
+
])) : m("", !0),
|
|
64
71
|
u("div", {
|
|
65
|
-
style:
|
|
72
|
+
style: i({ position: "relative", height: l.value.thumbSize, display: "flex", alignItems: "center" })
|
|
66
73
|
}, [
|
|
67
74
|
u("div", {
|
|
68
|
-
style:
|
|
75
|
+
style: i({
|
|
69
76
|
position: "absolute",
|
|
70
77
|
left: "0",
|
|
71
78
|
right: "0",
|
|
@@ -75,53 +82,59 @@ const D = {
|
|
|
75
82
|
})
|
|
76
83
|
}, null, 4),
|
|
77
84
|
u("div", {
|
|
78
|
-
style:
|
|
85
|
+
style: i({
|
|
79
86
|
position: "absolute",
|
|
80
87
|
left: "0",
|
|
81
88
|
height: l.value.trackHeight,
|
|
82
|
-
width: `${
|
|
89
|
+
width: `${v.value}%`,
|
|
83
90
|
borderRadius: "9999px",
|
|
84
|
-
background:
|
|
85
|
-
transition:
|
|
91
|
+
background: k.value,
|
|
92
|
+
transition: o.value ? "none" : "width 0.1s ease"
|
|
86
93
|
})
|
|
87
94
|
}, null, 4),
|
|
88
95
|
u("div", {
|
|
89
|
-
style:
|
|
96
|
+
style: i({
|
|
90
97
|
position: "absolute",
|
|
91
|
-
left: `${
|
|
98
|
+
left: `${v.value}%`,
|
|
92
99
|
transform: "translateX(-50%)",
|
|
93
100
|
width: l.value.thumbSize,
|
|
94
101
|
height: l.value.thumbSize,
|
|
95
102
|
borderRadius: "50%",
|
|
96
|
-
background:
|
|
103
|
+
background: w.value,
|
|
97
104
|
border: "2px solid var(--cui-surface-base, white)",
|
|
98
|
-
boxShadow:
|
|
105
|
+
boxShadow: o.value ? "0 2px 8px rgba(0,0,0,0.25)" : "0 1px 3px rgba(0,0,0,0.15)",
|
|
99
106
|
display: "flex",
|
|
100
107
|
alignItems: "center",
|
|
101
108
|
justifyContent: "center",
|
|
102
109
|
color: "var(--cui-surface-base, white)",
|
|
103
|
-
transition:
|
|
110
|
+
transition: o.value ? "none" : "left 0.1s ease, box-shadow 0.15s ease, transform 0.15s ease",
|
|
104
111
|
pointerEvents: "none",
|
|
105
112
|
zIndex: 2
|
|
106
113
|
})
|
|
107
114
|
}, [
|
|
108
|
-
|
|
109
|
-
e.thumbIcon ? (r(), E(
|
|
115
|
+
C(n.$slots, "thumb", {}, () => [
|
|
116
|
+
e.thumbIcon ? (r(), E(q, {
|
|
110
117
|
key: 0,
|
|
111
118
|
name: e.thumbIcon,
|
|
112
119
|
size: l.value.thumbIcon
|
|
113
|
-
}, null, 8, ["name", "size"])) :
|
|
120
|
+
}, null, 8, ["name", "size"])) : m("", !0)
|
|
114
121
|
])
|
|
115
122
|
], 4),
|
|
116
123
|
u("input", {
|
|
117
124
|
ref: "inputEl",
|
|
125
|
+
id: e.id,
|
|
126
|
+
name: e.name,
|
|
127
|
+
autocomplete: e.autocomplete,
|
|
128
|
+
"aria-describedby": e.ariaDescribedby,
|
|
129
|
+
"aria-required": e.ariaRequired || void 0,
|
|
130
|
+
"aria-labelledby": e.ariaLabelledby,
|
|
118
131
|
type: "range",
|
|
119
132
|
value: e.modelValue,
|
|
120
133
|
min: e.min,
|
|
121
134
|
max: e.max,
|
|
122
135
|
step: e.step,
|
|
123
136
|
disabled: e.disabled,
|
|
124
|
-
style:
|
|
137
|
+
style: i({
|
|
125
138
|
position: "absolute",
|
|
126
139
|
left: "0",
|
|
127
140
|
width: "100%",
|
|
@@ -131,26 +144,26 @@ const D = {
|
|
|
131
144
|
cursor: e.disabled ? "default" : "pointer",
|
|
132
145
|
zIndex: 3
|
|
133
146
|
}),
|
|
134
|
-
onInput:
|
|
135
|
-
onMousedown: a[0] || (a[0] = (
|
|
136
|
-
onMouseup: a[1] || (a[1] = (
|
|
137
|
-
onTouchstart: a[2] || (a[2] = (
|
|
138
|
-
onTouchend: a[3] || (a[3] = (
|
|
139
|
-
}, null, 44,
|
|
147
|
+
onInput: S,
|
|
148
|
+
onMousedown: a[0] || (a[0] = (f) => o.value = !0),
|
|
149
|
+
onMouseup: a[1] || (a[1] = (f) => o.value = !1),
|
|
150
|
+
onTouchstart: a[2] || (a[2] = (f) => o.value = !0),
|
|
151
|
+
onTouchend: a[3] || (a[3] = (f) => o.value = !1)
|
|
152
|
+
}, null, 44, j)
|
|
140
153
|
], 4),
|
|
141
|
-
e.showRange ? (r(),
|
|
154
|
+
e.showRange ? (r(), d("div", N, [
|
|
142
155
|
u("span", {
|
|
143
|
-
style:
|
|
156
|
+
style: i({ fontSize: l.value.valueFont, color: "var(--cui-text-tertiary)" })
|
|
144
157
|
}, c(e.formatValue ? e.formatValue(e.min) : e.min), 5),
|
|
145
158
|
u("span", {
|
|
146
|
-
style:
|
|
159
|
+
style: i({ fontSize: l.value.valueFont, color: "var(--cui-text-tertiary)" })
|
|
147
160
|
}, c(e.formatValue ? e.formatValue(e.max) : e.max), 5)
|
|
148
|
-
])) :
|
|
161
|
+
])) : m("", !0)
|
|
149
162
|
], 4)), [
|
|
150
|
-
[
|
|
163
|
+
[D, !e.hidden]
|
|
151
164
|
]);
|
|
152
165
|
}
|
|
153
166
|
});
|
|
154
167
|
export {
|
|
155
|
-
|
|
168
|
+
W as default
|
|
156
169
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CuiSpinner.vue.d.ts","sourceRoot":"","sources":["../../src/components/CuiSpinner.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"CuiSpinner.vue.d.ts","sourceRoot":"","sources":["../../src/components/CuiSpinner.vue"],"names":[],"mappings":"AA8IA,OAAO,KAAK,EAAE,OAAO,EAAE,aAAa,EAAE,cAAc,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAG7F,MAAM,MAAM,cAAc,GAAG,MAAM,GAAG,MAAM,GAAG,MAAM,CAAC;AAEtD,MAAM,WAAW,eAAgB,SAAQ,aAAa,EAAE,cAAc,EAAE,aAAa;IACnF,qBAAqB;IACrB,OAAO,CAAC,EAAE,cAAc,CAAC;IACzB,uBAAuB;IACvB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,wCAAwC;IACxC,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB;;WAHS,MAAM;;;;aAFJ,cAAc;eAIZ,OAAO;;AAqJrB,wBAOG"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as v, computed as
|
|
1
|
+
import { defineComponent as v, computed as u, withDirectives as p, openBlock as a, createElementBlock as i, normalizeStyle as r, Fragment as m, renderList as b, createElementVNode as c, createCommentVNode as s, toDisplayString as h, vShow as x } from "vue";
|
|
2
2
|
import { scaleDensity as o } from "../utils/sizing.js";
|
|
3
3
|
const f = ["aria-label"], y = {
|
|
4
4
|
key: 4,
|
|
@@ -20,8 +20,9 @@ const f = ["aria-label"], y = {
|
|
|
20
20
|
md: { box: "1.75rem", stroke: "3px", dotSize: "0.375rem", barWidth: "0.25rem", barHeight: "0.875rem", labelFont: "0.8125rem", gap: o("0.5rem") },
|
|
21
21
|
lg: { box: "2.5rem", stroke: "3px", dotSize: "0.5rem", barWidth: "0.25rem", barHeight: "1.125rem", labelFont: "0.875rem", gap: o("0.5rem") },
|
|
22
22
|
xl: { box: "3.5rem", stroke: "4px", dotSize: "0.625rem", barWidth: "0.3125rem", barHeight: "1.5rem", labelFont: "1rem", gap: o("0.625rem") }
|
|
23
|
-
}, e =
|
|
23
|
+
}, e = u(() => g[d.size]), n = u(() => `var(--cui-${d.color})`);
|
|
24
24
|
return (k, z) => p((a(), i("div", {
|
|
25
|
+
class: "cui-spinner",
|
|
25
26
|
role: "status",
|
|
26
27
|
"aria-label": t.label,
|
|
27
28
|
style: r({
|
|
@@ -50,7 +51,7 @@ const f = ["aria-label"], y = {
|
|
|
50
51
|
height: e.value.box
|
|
51
52
|
})
|
|
52
53
|
}, [
|
|
53
|
-
(a(), i(
|
|
54
|
+
(a(), i(m, null, b(3, (l) => c("div", {
|
|
54
55
|
key: l,
|
|
55
56
|
style: r({
|
|
56
57
|
width: e.value.dotSize,
|
|
@@ -69,7 +70,7 @@ const f = ["aria-label"], y = {
|
|
|
69
70
|
height: e.value.box
|
|
70
71
|
})
|
|
71
72
|
}, [
|
|
72
|
-
(a(), i(
|
|
73
|
+
(a(), i(m, null, b(4, (l) => c("div", {
|
|
73
74
|
key: l,
|
|
74
75
|
style: r({
|
|
75
76
|
width: e.value.barWidth,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CuiTable.vue.d.ts","sourceRoot":"","sources":["../../src/components/CuiTable.vue"],"names":[],"mappings":"AAmTA,OAAO,KAAK,EAAE,aAAa,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAMpE,MAAM,WAAW,aAAc,SAAQ,aAAa,EAAE,aAAa;IACjE,kCAAkC;IAClC,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,0BAA0B;IAC1B,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,gCAAgC;IAChC,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,mBAAmB;IACnB,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,uDAAuD;IACvD,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,8DAA8D;IAC9D,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,sFAAsF;IACtF,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;;;OAIG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB;AAiED,iBAAS,OAAO,SAiBf;
|
|
1
|
+
{"version":3,"file":"CuiTable.vue.d.ts","sourceRoot":"","sources":["../../src/components/CuiTable.vue"],"names":[],"mappings":"AAmTA,OAAO,KAAK,EAAE,aAAa,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAMpE,MAAM,WAAW,aAAc,SAAQ,aAAa,EAAE,aAAa;IACjE,kCAAkC;IAClC,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,0BAA0B;IAC1B,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,gCAAgC;IAChC,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,mBAAmB;IACnB,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,uDAAuD;IACvD,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,8DAA8D;IAC9D,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,sFAAsF;IACtF,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;;;OAIG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB;AAiED,iBAAS,OAAO,SAiBf;AAmFD,QAAA,IAAI,OAAO,IAAW,CAAE;AACxB,KAAK,WAAW,GAAG,EAAE,GACnB;IAAE,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,OAAO,KAAK,GAAG,CAAA;CAAE,CAAC;AAiC/C,QAAA,MAAM,eAAe;;;;;;aA3NT,OAAO;eAEL,OAAO;cAER,OAAO;kBAEH,OAAO;iBAER,OAAO;6EA2NrB,CAAC;wBACkB,eAAe,CAAC,OAAO,eAAe,EAAE,WAAW,CAAC;AAAzE,wBAA0E;AAa1E,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
|
|
@@ -4,7 +4,10 @@ import { clampSize as U } from "../utils/sizing.js";
|
|
|
4
4
|
import { useScrollShadows as V, scrollShadowRightStyle as X, scrollShadowBottomStyle as $ } from "../composables/useScrollShadows.js";
|
|
5
5
|
import { useMessages as A } from "../composables/useMessages.js";
|
|
6
6
|
import { warnOnce as F } from "../utils/devWarn.js";
|
|
7
|
-
const I = {
|
|
7
|
+
const I = {
|
|
8
|
+
class: "cui-table-container",
|
|
9
|
+
style: { position: "relative" }
|
|
10
|
+
}, K = ["role", "tabindex", "aria-label"], Z = ["aria-rowcount"], te = /* @__PURE__ */ _({
|
|
8
11
|
__name: "CuiTable",
|
|
9
12
|
props: {
|
|
10
13
|
striped: { type: Boolean, default: !1 },
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CuiTableBody.vue.d.ts","sourceRoot":"","sources":["../../src/components/CuiTableBody.vue"],"names":[],"mappings":"AAuBA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAErD,MAAM,WAAW,iBAAkB,SAAQ,aAAa;CAAG;
|
|
1
|
+
{"version":3,"file":"CuiTableBody.vue.d.ts","sourceRoot":"","sources":["../../src/components/CuiTableBody.vue"],"names":[],"mappings":"AAuBA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAErD,MAAM,WAAW,iBAAkB,SAAQ,aAAa;CAAG;AA4B3D,QAAA,IAAI,OAAO,IAAW,CAAE;AACxB,KAAK,WAAW,GAAG,EAAE,GACnB;IAAE,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,OAAO,KAAK,GAAG,CAAA;CAAE,CAAC;AAoB/C,QAAA,MAAM,eAAe;;6EAOnB,CAAC;wBACkB,eAAe,CAAC,OAAO,eAAe,EAAE,WAAW,CAAC;AAAzE,wBAA0E;AAa1E,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { defineComponent as t, provide as n, withDirectives as
|
|
1
|
+
import { defineComponent as t, provide as n, withDirectives as a, openBlock as d, createElementBlock as i, renderSlot as l, vShow as r } from "vue";
|
|
2
2
|
import { TableSectionContextKey as s } from "./table-context.js";
|
|
3
|
-
const
|
|
3
|
+
const c = { class: "cui-table-body" }, u = /* @__PURE__ */ t({
|
|
4
4
|
__name: "CuiTableBody",
|
|
5
5
|
props: {
|
|
6
6
|
hidden: { type: Boolean, default: !1 }
|
|
7
7
|
},
|
|
8
8
|
setup(e) {
|
|
9
|
-
return n(s, { isHead: !1 }), (o, p) =>
|
|
10
|
-
|
|
9
|
+
return n(s, { isHead: !1 }), (o, p) => a((d(), i("tbody", c, [
|
|
10
|
+
l(o.$slots, "default")
|
|
11
11
|
], 512)), [
|
|
12
|
-
[
|
|
12
|
+
[r, !e.hidden]
|
|
13
13
|
]);
|
|
14
14
|
}
|
|
15
15
|
});
|
|
16
16
|
export {
|
|
17
|
-
|
|
17
|
+
u as default
|
|
18
18
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CuiTableCell.vue.d.ts","sourceRoot":"","sources":["../../src/components/CuiTableCell.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"CuiTableCell.vue.d.ts","sourceRoot":"","sources":["../../src/components/CuiTableCell.vue"],"names":[],"mappings":"AAmEA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAErD,MAAM,MAAM,cAAc,GAAG,MAAM,GAAG,QAAQ,GAAG,OAAO,CAAC;AAEzD,MAAM,WAAW,iBAAkB,SAAQ,aAAa;IACtD,4CAA4C;IAC5C,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,qBAAqB;IACrB,KAAK,CAAC,EAAE,cAAc,CAAC;IACvB,gBAAgB;IAChB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,mBAAmB;IACnB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,mBAAmB;IACnB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,4BAA4B;IAC5B,MAAM,CAAC,EAAE,OAAO,CAAC;CAClB;AAuED,QAAA,IAAI,OAAO,IAAW,CAAE;AACxB,KAAK,WAAW,GAAG,EAAE,GACnB;IAAE,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,OAAO,KAAK,GAAG,CAAA;CAAE,CAAC;AAuB/C,QAAA,MAAM,eAAe;YA3GV,OAAO;;YAUP,OAAO;WARR,cAAc;6EAgHtB,CAAC;wBACkB,eAAe,CAAC,OAAO,eAAe,EAAE,WAAW,CAAC;AAAzE,wBAA0E;AAa1E,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as r, inject as c, computed as l, withDirectives as d, openBlock as p, createBlock as f, resolveDynamicComponent as u, normalizeStyle as h, withCtx as w, renderSlot as m, vShow as v } from "vue";
|
|
2
2
|
import { TableSectionContextKey as y } from "./table-context.js";
|
|
3
|
-
const B = /* @__PURE__ */
|
|
3
|
+
const B = /* @__PURE__ */ r({
|
|
4
4
|
__name: "CuiTableCell",
|
|
5
5
|
props: {
|
|
6
6
|
header: { type: Boolean, default: void 0 },
|
|
@@ -11,23 +11,24 @@ const B = /* @__PURE__ */ s({
|
|
|
11
11
|
nowrap: { type: Boolean, default: !1 },
|
|
12
12
|
hidden: { type: Boolean, default: !1 }
|
|
13
13
|
},
|
|
14
|
-
setup(
|
|
15
|
-
const e =
|
|
14
|
+
setup(a) {
|
|
15
|
+
const e = a, o = c(y, void 0), n = l(() => e.header !== void 0 ? e.header : (o == null ? void 0 : o.isHead) ?? !1), i = l(() => n.value ? "th" : "td"), s = l(() => {
|
|
16
16
|
const t = {};
|
|
17
17
|
return e.align !== "left" && (t.textAlign = e.align), e.width && (t.width = e.width), e.nowrap && (t.whiteSpace = "nowrap"), t;
|
|
18
18
|
});
|
|
19
|
-
return (t, C) =>
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
19
|
+
return (t, C) => d((p(), f(u(i.value), {
|
|
20
|
+
class: "cui-table-cell",
|
|
21
|
+
style: h(s.value),
|
|
22
|
+
colspan: a.colspan,
|
|
23
|
+
rowspan: a.rowspan,
|
|
24
|
+
scope: n.value ? "col" : void 0
|
|
24
25
|
}, {
|
|
25
26
|
default: w(() => [
|
|
26
27
|
m(t.$slots, "default")
|
|
27
28
|
]),
|
|
28
29
|
_: 3
|
|
29
30
|
}, 8, ["style", "colspan", "rowspan", "scope"])), [
|
|
30
|
-
[v, !
|
|
31
|
+
[v, !a.hidden]
|
|
31
32
|
]);
|
|
32
33
|
}
|
|
33
34
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CuiTableFoot.vue.d.ts","sourceRoot":"","sources":["../../src/components/CuiTableFoot.vue"],"names":[],"mappings":"AAwBA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAErD,MAAM,WAAW,iBAAkB,SAAQ,aAAa;CACvD;
|
|
1
|
+
{"version":3,"file":"CuiTableFoot.vue.d.ts","sourceRoot":"","sources":["../../src/components/CuiTableFoot.vue"],"names":[],"mappings":"AAwBA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAErD,MAAM,WAAW,iBAAkB,SAAQ,aAAa;CACvD;AA4BD,QAAA,IAAI,OAAO,IAAW,CAAE;AACxB,KAAK,WAAW,GAAG,EAAE,GACnB;IAAE,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,OAAO,KAAK,GAAG,CAAA;CAAE,CAAC;AAoB/C,QAAA,MAAM,eAAe;;6EAOnB,CAAC;wBACkB,eAAe,CAAC,OAAO,eAAe,EAAE,WAAW,CAAC;AAAzE,wBAA0E;AAa1E,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { defineComponent as t, provide as n, withDirectives as
|
|
2
|
-
import { TableSectionContextKey as
|
|
3
|
-
const
|
|
1
|
+
import { defineComponent as t, provide as n, withDirectives as a, openBlock as i, createElementBlock as l, renderSlot as r, vShow as s } from "vue";
|
|
2
|
+
import { TableSectionContextKey as c } from "./table-context.js";
|
|
3
|
+
const d = { class: "cui-table-foot" }, u = /* @__PURE__ */ t({
|
|
4
4
|
__name: "CuiTableFoot",
|
|
5
5
|
props: {
|
|
6
6
|
hidden: { type: Boolean, default: !1 }
|
|
7
7
|
},
|
|
8
8
|
setup(e) {
|
|
9
|
-
return n(
|
|
10
|
-
|
|
9
|
+
return n(c, { isHead: !1 }), (o, f) => a((i(), l("tfoot", d, [
|
|
10
|
+
r(o.$slots, "default")
|
|
11
11
|
], 512)), [
|
|
12
|
-
[
|
|
12
|
+
[s, !e.hidden]
|
|
13
13
|
]);
|
|
14
14
|
}
|
|
15
15
|
});
|
|
16
16
|
export {
|
|
17
|
-
|
|
17
|
+
u as default
|
|
18
18
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CuiTableHead.vue.d.ts","sourceRoot":"","sources":["../../src/components/CuiTableHead.vue"],"names":[],"mappings":"AA8BA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAErD,MAAM,WAAW,iBAAkB,SAAQ,aAAa;CACvD;
|
|
1
|
+
{"version":3,"file":"CuiTableHead.vue.d.ts","sourceRoot":"","sources":["../../src/components/CuiTableHead.vue"],"names":[],"mappings":"AA8BA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAErD,MAAM,WAAW,iBAAkB,SAAQ,aAAa;CACvD;AAkCD,QAAA,IAAI,OAAO,IAAW,CAAE;AACxB,KAAK,WAAW,GAAG,EAAE,GACnB;IAAE,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,OAAO,KAAK,GAAG,CAAA;CAAE,CAAC;AAoB/C,QAAA,MAAM,eAAe;;6EAOnB,CAAC;wBACkB,eAAe,CAAC,OAAO,eAAe,EAAE,WAAW,CAAC;AAAzE,wBAA0E;AAa1E,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { defineComponent as o, provide as
|
|
2
|
-
import { TableSectionContextKey as
|
|
3
|
-
const
|
|
1
|
+
import { defineComponent as o, provide as a, withDirectives as n, openBlock as r, createElementBlock as d, renderSlot as i, vShow as l } from "vue";
|
|
2
|
+
import { TableSectionContextKey as s } from "./table-context.js";
|
|
3
|
+
const c = { class: "cui-table-head" }, h = /* @__PURE__ */ o({
|
|
4
4
|
__name: "CuiTableHead",
|
|
5
5
|
props: {
|
|
6
6
|
hidden: { type: Boolean, default: !1 }
|
|
7
7
|
},
|
|
8
8
|
setup(e) {
|
|
9
|
-
return
|
|
10
|
-
|
|
9
|
+
return a(s, { isHead: !0 }), (t, p) => n((r(), d("thead", c, [
|
|
10
|
+
i(t.$slots, "default")
|
|
11
11
|
], 512)), [
|
|
12
|
-
[
|
|
12
|
+
[l, !e.hidden]
|
|
13
13
|
]);
|
|
14
14
|
}
|
|
15
15
|
});
|
|
16
16
|
export {
|
|
17
|
-
|
|
17
|
+
h as default
|
|
18
18
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CuiTabs.vue.d.ts","sourceRoot":"","sources":["../../src/components/CuiTabs.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"CuiTabs.vue.d.ts","sourceRoot":"","sources":["../../src/components/CuiTabs.vue"],"names":[],"mappings":"AA4fA,OAAO,EAGL,KAAK,UAAU,EACf,KAAK,cAAc,EACnB,KAAK,aAAa,EACnB,MAAM,gBAAgB,CAAC;AACxB,OAAO,KAAK,EAAE,aAAa,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AAGrE,MAAM,WAAW,YAAa,SAAQ,aAAa,EAAE,cAAc;IACjE,uBAAuB;IACvB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,oBAAoB;IACpB,OAAO,CAAC,EAAE,UAAU,CAAC;IACrB,yBAAyB;IACzB,WAAW,CAAC,EAAE,cAAc,CAAC;IAC7B,sCAAsC;IACtC,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,iCAAiC;IACjC,UAAU,CAAC,EAAE,aAAa,CAAC;CAC5B;AA4WD,QAAA,IAAI,OAAO,IAAW,CAAE;AACxB,KAAK,WAAW,GAAG,EAAE,GACnB;IAAE,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,OAAO,KAAK,GAAG,CAAA;CAAE,CAAC;AAgC/C,QAAA,MAAM,eAAe;;;;;;;;;aArZT,UAAU;iBAEN,cAAc;gBAIf,aAAa;eAFd,OAAO;6EAyZnB,CAAC;wBACkB,eAAe,CAAC,OAAO,eAAe,EAAE,WAAW,CAAC;AAAzE,wBAA0E;AAa1E,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./CuiTabs.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import t from "../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-
|
|
4
|
+
const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-1bdb751f"]]);
|
|
5
5
|
export {
|
|
6
6
|
m as default
|
|
7
7
|
};
|
|
@@ -112,6 +112,7 @@ const oe = { class: "cui-tabs__bar-outer" }, le = ["aria-orientation", "data-ove
|
|
|
112
112
|
}, [
|
|
113
113
|
(v(!0), h($, null, U(l.value, (t) => (v(), h("button", {
|
|
114
114
|
key: t.value,
|
|
115
|
+
type: "button",
|
|
115
116
|
"data-cui-tab-value": t.value,
|
|
116
117
|
class: T(["cui-tabs__tab", {
|
|
117
118
|
"cui-tabs__tab--active": o.value === t.value,
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import type { CuiColor, CuiSize, HideableProps, ColorableProps, SizeableProps, DisableableProps, CuiRounded } from "../types/common";
|
|
1
|
+
import type { CuiColor, CuiSize, HideableProps, ColorableProps, SizeableProps, DisableableProps, CuiRounded, NativeControlProps } from "../types/common";
|
|
2
2
|
export interface TagOption {
|
|
3
3
|
value: string;
|
|
4
4
|
label?: string;
|
|
5
5
|
color?: CuiColor;
|
|
6
6
|
[key: string]: unknown;
|
|
7
7
|
}
|
|
8
|
-
export interface CuiTagInputProps extends HideableProps, ColorableProps, SizeableProps, DisableableProps {
|
|
8
|
+
export interface CuiTagInputProps extends NativeControlProps, HideableProps, ColorableProps, SizeableProps, DisableableProps {
|
|
9
9
|
/** Selected tags */
|
|
10
10
|
modelValue?: string[];
|
|
11
11
|
/** Predefined tag suggestions */
|