eco-vue-js 0.11.57 → 0.11.58
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/assets/icons/IconAdd.svg.js +2 -2
- package/dist/assets/icons/IconAddCircle.svg.js +2 -2
- package/dist/assets/icons/IconAddSquare.svg.js +2 -2
- package/dist/assets/icons/IconAlarm.svg.js +2 -2
- package/dist/assets/icons/IconArchiveBook.svg.js +2 -2
- package/dist/assets/icons/IconArrow.svg.js +2 -2
- package/dist/assets/icons/IconBack.svg.js +2 -2
- package/dist/assets/icons/IconBold.svg.js +2 -2
- package/dist/assets/icons/IconCancel.svg.js +2 -2
- package/dist/assets/icons/IconCandle.svg.js +2 -2
- package/dist/assets/icons/IconCelery.svg.js +2 -2
- package/dist/assets/icons/IconChart.svg.js +2 -2
- package/dist/assets/icons/IconCheck.svg.js +2 -2
- package/dist/assets/icons/IconCheckCircle.svg.js +2 -2
- package/dist/assets/icons/IconClose.svg.js +2 -2
- package/dist/assets/icons/IconCloseCircle.svg.js +2 -2
- package/dist/assets/icons/IconCodeBlock.svg.js +2 -2
- package/dist/assets/icons/IconCodeInline.svg.js +2 -2
- package/dist/assets/icons/IconCopy.svg.js +2 -2
- package/dist/assets/icons/IconCopySuccess.svg.js +2 -2
- package/dist/assets/icons/IconCopyright.svg.js +2 -2
- package/dist/assets/icons/IconDanger.svg.js +2 -2
- package/dist/assets/icons/IconDojo.svg.js +2 -2
- package/dist/assets/icons/IconDrag.svg.js +2 -2
- package/dist/assets/icons/IconEdit.svg.js +2 -2
- package/dist/assets/icons/IconEditCircle.svg.js +2 -2
- package/dist/assets/icons/IconEditSquare.svg.js +2 -2
- package/dist/assets/icons/IconElement.svg.js +2 -2
- package/dist/assets/icons/IconExport.svg.js +2 -2
- package/dist/assets/icons/IconEye.svg.js +2 -2
- package/dist/assets/icons/IconEyeSlash.svg.js +2 -2
- package/dist/assets/icons/IconFilter.svg.js +2 -2
- package/dist/assets/icons/IconFilterRemove.svg.js +2 -2
- package/dist/assets/icons/IconFinding.svg.js +2 -2
- package/dist/assets/icons/IconFolder.svg.js +2 -2
- package/dist/assets/icons/IconFolderAdd.svg.js +2 -2
- package/dist/assets/icons/IconFolderCross.svg.js +2 -2
- package/dist/assets/icons/IconGrid.svg.js +2 -2
- package/dist/assets/icons/IconHeading.svg.js +2 -2
- package/dist/assets/icons/IconItalic.svg.js +2 -2
- package/dist/assets/icons/IconJira.svg.js +2 -2
- package/dist/assets/icons/IconKey.svg.js +2 -2
- package/dist/assets/icons/IconKeySquare.svg.js +2 -2
- package/dist/assets/icons/IconLayer.svg.js +2 -2
- package/dist/assets/icons/IconLink.svg.js +2 -2
- package/dist/assets/icons/IconLinkBold.svg.js +2 -2
- package/dist/assets/icons/IconLinkOutline.svg.js +2 -2
- package/dist/assets/icons/IconLinkedIn.svg.js +2 -2
- package/dist/assets/icons/IconList.svg.js +2 -2
- package/dist/assets/icons/IconListBullet.svg.js +2 -2
- package/dist/assets/icons/IconListCheckbox.svg.js +2 -2
- package/dist/assets/icons/IconListDecrease.svg.js +2 -2
- package/dist/assets/icons/IconListIncrease.svg.js +2 -2
- package/dist/assets/icons/IconListNumbered.svg.js +2 -2
- package/dist/assets/icons/IconListSettings.svg.js +2 -2
- package/dist/assets/icons/IconLock.svg.js +2 -2
- package/dist/assets/icons/IconLockOff.svg.js +2 -2
- package/dist/assets/icons/IconLogout.svg.js +2 -2
- package/dist/assets/icons/IconMenu.svg.js +2 -2
- package/dist/assets/icons/IconMinusCircle.svg.js +2 -2
- package/dist/assets/icons/IconMoon.svg.js +2 -2
- package/dist/assets/icons/IconMore.svg.js +2 -2
- package/dist/assets/icons/IconNegate.svg.js +2 -2
- package/dist/assets/icons/IconNegativeInfo.svg.js +2 -2
- package/dist/assets/icons/IconNote.svg.js +2 -2
- package/dist/assets/icons/IconPaste.svg.js +2 -2
- package/dist/assets/icons/IconProfile.svg.js +2 -2
- package/dist/assets/icons/IconQuote.svg.js +2 -2
- package/dist/assets/icons/IconRadar.svg.js +2 -2
- package/dist/assets/icons/IconRange.svg.js +2 -2
- package/dist/assets/icons/IconRedo.svg.js +2 -2
- package/dist/assets/icons/IconRefresh.svg.js +2 -2
- package/dist/assets/icons/IconSearch.svg.js +2 -2
- package/dist/assets/icons/IconSettings.svg.js +2 -2
- package/dist/assets/icons/IconShift.svg.js +2 -2
- package/dist/assets/icons/IconSlash.svg.js +2 -2
- package/dist/assets/icons/IconSort.svg.js +2 -2
- package/dist/assets/icons/IconStar.svg.js +2 -2
- package/dist/assets/icons/IconStrikethrough.svg.js +2 -2
- package/dist/assets/icons/IconSuccess.svg.js +2 -2
- package/dist/assets/icons/IconSummary.svg.js +2 -2
- package/dist/assets/icons/IconSun.svg.js +2 -2
- package/dist/assets/icons/IconTable.svg.js +2 -2
- package/dist/assets/icons/IconTableCollapsed.svg.js +2 -2
- package/dist/assets/icons/IconTag.svg.js +2 -2
- package/dist/assets/icons/IconTask.svg.js +2 -2
- package/dist/assets/icons/IconTime.svg.js +2 -2
- package/dist/assets/icons/IconTrash.svg.js +2 -2
- package/dist/assets/icons/IconUnderline.svg.js +2 -2
- package/dist/assets/icons/IconUndo.svg.js +2 -2
- package/dist/assets/icons/IconUser.svg.js +2 -2
- package/dist/assets/icons/IconVersionControl.svg.js +2 -2
- package/dist/assets/icons/IconWarn.svg.js +2 -2
- package/dist/assets/icons/IconWeight.svg.js +2 -2
- package/dist/components/ActionsBar/WActionsBar.vue.js +3 -3
- package/dist/components/BottomSheet/WBottomSheet.vue.js +1 -1
- package/dist/components/Button/WButton.vue.js +15 -15
- package/dist/components/Button/WButtonAction.vue.js +21 -21
- package/dist/components/Button/WButtonDropdown.vue.js +9 -9
- package/dist/components/Button/WButtonGroup.vue.js +16 -19
- package/dist/components/Button/WButtonInput.vue.js +11 -11
- package/dist/components/Button/WButtonMore.vue.js +17 -17
- package/dist/components/Button/WButtonMoreItem.vue.js +6 -6
- package/dist/components/Button/WButtonSelection.vue.js +3 -3
- package/dist/components/Button/WButtonSelectionAction.vue.js +14 -14
- package/dist/components/Button/WButtonTab.vue.js +38 -38
- package/dist/components/Button/WButtonUnselect.vue.js +7 -7
- package/dist/components/Chart/WChartLine.vue.js +18 -18
- package/dist/components/Chart/WChartLinear.vue.js +9 -9
- package/dist/components/Chart/components/ChartAxis.vue.js +6 -6
- package/dist/components/Checkbox/WCheckbox.vue.js +30 -30
- package/dist/components/Checkbox/WCheckboxGroup.vue.d.ts.map +1 -1
- package/dist/components/Checkbox/WCheckboxGroup.vue.js +17 -20
- package/dist/components/Checkbox/WCheckboxGroupMultiple.vue.d.ts.map +1 -1
- package/dist/components/Checkbox/WCheckboxGroupMultiple.vue.js +16 -19
- package/dist/components/Chip/WChip.vue.js +2 -2
- package/dist/components/Counter/WCounter.vue.js +1 -1
- package/dist/components/DatePicker/WDatePicker.vue.js +2 -2
- package/dist/components/DatePicker/WDatePickerSingle.vue.js +2 -2
- package/dist/components/DatePicker/components/CalendarDay.vue.js +9 -9
- package/dist/components/DatePicker/components/CalendarMonth.vue.js +7 -7
- package/dist/components/DatePicker/components/CalendarToggle.vue.js +2 -2
- package/dist/components/DatePicker/components/CalendarValue.vue.js +3 -3
- package/dist/components/DatePicker/components/CalendarWeek.vue.js +7 -7
- package/dist/components/Dismissable/WDismissable.vue.js +2 -2
- package/dist/components/DragContainer/WDragContainer.vue.js +2 -2
- package/dist/components/DragContainer/components/DragItem.vue.js +5 -5
- package/dist/components/DropdownMenu/WDropdownMenu.vue.d.ts.map +1 -1
- package/dist/components/DropdownMenu/WDropdownMenu.vue.js +8 -8
- package/dist/components/Expansion/WExpansion.vue.js +2 -2
- package/dist/components/Expansion/WExpansionItem.vue.js +7 -7
- package/dist/components/FieldWrapper/WFieldWrapper.vue.js +37 -37
- package/dist/components/FieldWrapper/components/FilterButton.vue.js +5 -5
- package/dist/components/FilePicker/WFilePicker.vue.d.ts +1 -1
- package/dist/components/FilePicker/WFilePicker.vue.d.ts.map +1 -1
- package/dist/components/FilePicker/WFilePicker.vue.js +17 -17
- package/dist/components/FilePicker/components/FilePickerItem.vue.js +2 -2
- package/dist/components/FilePicker/components/FilePickerSvg.vue.d.ts.map +1 -1
- package/dist/components/FilePicker/components/FilePickerSvg.vue.js +7 -7
- package/dist/components/FilterWrapper/WFilterWrapper.vue.js +1 -1
- package/dist/components/Form/WForm.vue.js +1 -1
- package/dist/components/Form/WFormValidator.vue.js +1 -1
- package/dist/components/FormAsync/WFormAsyncButtonGroup.vue.js +5 -5
- package/dist/components/FormAsync/WFormAsyncCheckboxGroup.vue.js +5 -5
- package/dist/components/FormAsync/WFormAsyncInput.vue.d.ts +2 -2
- package/dist/components/FormAsync/WFormAsyncInput.vue.js +5 -5
- package/dist/components/FormAsync/WFormAsyncSelect.vue.js +3 -3
- package/dist/components/FormAsync/WFormAsyncSelectInfiniteSingle.vue.js +3 -3
- package/dist/components/FormAsync/WFormAsyncSelectSingle.vue.js +3 -3
- package/dist/components/FormAsync/WFormAsyncSelectStringified.vue.js +3 -3
- package/dist/components/FormAsync/WFormAsyncToggle.vue.js +2 -2
- package/dist/components/HeaderBar/WHeaderBar.vue.js +1 -1
- package/dist/components/ImageViewer/WImageViewer.vue.js +6 -6
- package/dist/components/ImageViewer/components/ImageModal.vue2.js +1 -1
- package/dist/components/InfiniteList/WInfiniteList.vue.d.ts.map +1 -1
- package/dist/components/InfiniteList/WInfiniteList.vue.js +20 -20
- package/dist/components/InfiniteList/WInfiniteListWrapper.vue.js +3 -3
- package/dist/components/InfiniteList/components/InfiniteListButton.vue.js +3 -3
- package/dist/components/InfiniteList/components/InfiniteListPage.vue.d.ts +16 -1
- package/dist/components/InfiniteList/components/InfiniteListPage.vue.d.ts.map +1 -1
- package/dist/components/InfiniteList/components/InfiniteListPage.vue.js +15 -15
- package/dist/components/InfiniteList/components/InfiniteListPageTitle.vue.js +2 -2
- package/dist/components/InfiniteList/components/InfiniteListPages.vue.d.ts.map +1 -1
- package/dist/components/InfiniteList/components/InfiniteListPages.vue.js +23 -23
- package/dist/components/InfoCard/WInfoCard.vue.js +5 -5
- package/dist/components/InfoCard/WInfoCardNegative.vue.js +2 -2
- package/dist/components/Input/WInput.vue.d.ts +15 -1
- package/dist/components/Input/WInput.vue.d.ts.map +1 -1
- package/dist/components/Input/WInput.vue.js +70 -80
- package/dist/components/Input/WInputAsync.vue.d.ts +2 -2
- package/dist/components/Input/WInputAsync.vue.js +16 -16
- package/dist/components/Input/WInputDate.vue.js +7 -7
- package/dist/components/Input/WInputOptions.vue.js +6 -6
- package/dist/components/Input/WInputSuggest.vue.d.ts +12 -1
- package/dist/components/Input/WInputSuggest.vue.d.ts.map +1 -1
- package/dist/components/Input/WInputSuggest.vue.js +18 -18
- package/dist/components/Input/WInputToolbarButton.vue.js +14 -14
- package/dist/components/Input/components/ContentEditable.vue2.js +1 -1
- package/dist/components/Input/components/InputActions.vue.js +12 -12
- package/dist/components/Input/components/InputActionsButton.vue.js +12 -12
- package/dist/components/Input/components/InputToolbar.vue2.js +7 -13
- package/dist/components/Input/components/InputToolbarButton.vue.js +11 -11
- package/dist/components/Link/WLink.vue.js +5 -5
- package/dist/components/Link/WLinkArrow.vue.js +2 -2
- package/dist/components/List/WList.vue.js +49 -49
- package/dist/components/List/WListCard.vue.d.ts.map +1 -1
- package/dist/components/List/WListCard.vue.js +57 -57
- package/dist/components/List/WListCardField.vue.js +3 -3
- package/dist/components/List/WListFilter.vue.js +8 -8
- package/dist/components/List/WListHeader.vue.js +7 -7
- package/dist/components/List/WListHeaderItem.vue.js +14 -14
- package/dist/components/List/components/HeaderFieldNested.vue.js +6 -6
- package/dist/components/List/components/HeaderSettings.vue.js +13 -13
- package/dist/components/List/components/HeaderSettingsList.vue.js +16 -16
- package/dist/components/List/components/HeaderSettingsModeButton.vue.js +5 -5
- package/dist/components/List/components/HeaderSort.vue.js +5 -5
- package/dist/components/List/components/HeaderSortItem.vue.js +5 -5
- package/dist/components/List/components/ListCardAction.vue.js +3 -3
- package/dist/components/List/components/ListCardFieldNested.vue.js +20 -20
- package/dist/components/List/components/ListCardFieldNestedItem.vue.js +2 -2
- package/dist/components/List/components/ListFilterGlobal.vue2.js +13 -13
- package/dist/components/List/components/ListFilterGlobalItem.vue.js +14 -14
- package/dist/components/List/components/ListFilterLocal.vue2.js +13 -14
- package/dist/components/List/components/ListFilterSearch.vue.js +2 -2
- package/dist/components/List/components/ListFilterSelect.vue.js +4 -4
- package/dist/components/MenuItem/WMenuItem.vue.js +12 -12
- package/dist/components/Modal/WModal.vue.js +1 -1
- package/dist/components/Modal/WModalExport.vue.js +4 -4
- package/dist/components/Modal/WModalExportSimple.vue.js +4 -4
- package/dist/components/Modal/WModalImport.vue.js +3 -3
- package/dist/components/Modal/WModalStepper.vue.d.ts.map +1 -1
- package/dist/components/Modal/WModalStepper.vue.js +20 -20
- package/dist/components/Modal/WModalWrapper.vue.d.ts.map +1 -1
- package/dist/components/Modal/WModalWrapper.vue.js +10 -10
- package/dist/components/Modal/modals/Confirm/ConfirmModal.vue2.js +22 -22
- package/dist/components/Nav/WNavBar.vue.js +2 -2
- package/dist/components/Nav/WNavItem.vue.js +14 -14
- package/dist/components/Nav/WNavItemExpand.vue.d.ts.map +1 -1
- package/dist/components/Nav/WNavItemExpand.vue.js +15 -15
- package/dist/components/Notify/components/NotifyCard.vue.js +11 -11
- package/dist/components/NumberFormatter/WNumberFormatter.vue.js +4 -4
- package/dist/components/Page/WPage.vue.js +17 -17
- package/dist/components/Page/WPageTitle.vue.js +3 -3
- package/dist/components/Progress/WProgress.vue.js +1 -1
- package/dist/components/Progress/WProgressStriped.vue.js +9 -9
- package/dist/components/RouterLink/WRouterLink.vue.js +1 -1
- package/dist/components/Select/WSelect.vue.js +25 -25
- package/dist/components/Select/WSelectAsync.vue.js +27 -27
- package/dist/components/Select/WSelectAsyncList.vue.js +12 -12
- package/dist/components/Select/WSelectAsyncSingle.vue.js +7 -7
- package/dist/components/Select/WSelectSingle.vue.js +6 -6
- package/dist/components/Select/WSelectStringified.vue.js +2 -2
- package/dist/components/Select/components/SelectAsyncList.vue.js +33 -33
- package/dist/components/Select/components/SelectAsyncPrefix.vue.js +17 -17
- package/dist/components/Select/components/SelectAsyncPrefixPage.vue.d.ts.map +1 -1
- package/dist/components/Select/components/SelectAsyncPrefixPage.vue.js +10 -10
- package/dist/components/Select/components/SelectOption.vue.d.ts +15 -1
- package/dist/components/Select/components/SelectOption.vue.d.ts.map +1 -1
- package/dist/components/Select/components/SelectOption.vue.js +10 -10
- package/dist/components/Select/components/SelectOptionPrefix.vue.js +14 -14
- package/dist/components/Shine/WShine.vue.js +1 -1
- package/dist/components/Shine/WShineEffect.vue.js +2 -2
- package/dist/components/Slider/WSlider.vue.js +6 -6
- package/dist/components/Slider/WSliderRange.vue.js +6 -6
- package/dist/components/Spinner/WSpinner.vue.js +2 -2
- package/dist/components/Status/WStatusIcon.vue.js +2 -2
- package/dist/components/Tabs/WTabs.vue.d.ts.map +1 -1
- package/dist/components/Tabs/WTabs.vue.js +22 -22
- package/dist/components/Tabs/components/TabItem.vue.d.ts.map +1 -1
- package/dist/components/Tabs/components/TabItem.vue.js +5 -5
- package/dist/components/Tabs/components/TabTitleButton.vue.js +14 -14
- package/dist/components/Toggle/WToggle.vue.js +17 -17
- package/dist/components/Toggle/WToggleTheme.vue.js +2 -2
- package/dist/components/Tooltip/WTooltip.vue.js +1 -1
- package/dist/components/Tooltip/WTooltipContainer.vue.d.ts.map +1 -1
- package/dist/components/Tooltip/WTooltipContainer.vue.js +2 -2
- package/dist/components/Tooltip/components/TooltipContainer.vue.js +11 -11
- package/dist/components/VirtualScroll/WVirtualScroll.vue.js +9 -9
- package/dist/components/VirtualScroll/components/VirtualScrollPage.vue.d.ts +1 -1
- package/dist/components/VirtualScroll/components/VirtualScrollPage.vue.js +3 -3
- package/dist/utils/useQueryUpdater.d.ts.map +1 -1
- package/package.json +10 -10
|
@@ -28,16 +28,16 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
28
28
|
return (_ctx, _cache) => {
|
|
29
29
|
return openBlock(), createBlock(_sfc_main$1, {
|
|
30
30
|
"is-open": isOpen.value,
|
|
31
|
-
"horizontal-align":
|
|
31
|
+
"horizontal-align": __props.horizontalAlign,
|
|
32
32
|
"update-align": ""
|
|
33
33
|
}, {
|
|
34
34
|
toggle: withCtx(() => [
|
|
35
35
|
createElementVNode("div", null, [
|
|
36
36
|
createElementVNode("div", _hoisted_1, [
|
|
37
|
-
|
|
37
|
+
__props.leftToggle ? (openBlock(), createBlock(_sfc_main$3, {
|
|
38
38
|
key: 0,
|
|
39
|
-
"semantic-type":
|
|
40
|
-
disabled:
|
|
39
|
+
"semantic-type": __props.semanticType,
|
|
40
|
+
disabled: __props.disabled,
|
|
41
41
|
join: "",
|
|
42
42
|
onClick: _cache[0] || (_cache[0] = ($event) => isOpen.value = !isOpen.value)
|
|
43
43
|
}, {
|
|
@@ -55,10 +55,10 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
55
55
|
class: "flex-1"
|
|
56
56
|
});
|
|
57
57
|
}), 128)),
|
|
58
|
-
!
|
|
58
|
+
!__props.leftToggle ? (openBlock(), createBlock(_sfc_main$3, {
|
|
59
59
|
key: 1,
|
|
60
|
-
"semantic-type":
|
|
61
|
-
disabled:
|
|
60
|
+
"semantic-type": __props.semanticType,
|
|
61
|
+
disabled: __props.disabled,
|
|
62
62
|
join: "",
|
|
63
63
|
onClick: _cache[1] || (_cache[1] = ($event) => isOpen.value = !isOpen.value)
|
|
64
64
|
}, {
|
|
@@ -70,9 +70,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
70
70
|
_: 1
|
|
71
71
|
}, 8, ["semantic-type", "disabled"])) : createCommentVNode("", true)
|
|
72
72
|
]),
|
|
73
|
-
|
|
73
|
+
__props.tooltipText ? (openBlock(), createBlock(_sfc_main$4, {
|
|
74
74
|
key: 0,
|
|
75
|
-
text:
|
|
75
|
+
text: __props.tooltipText
|
|
76
76
|
}, null, 8, ["text"])) : createCommentVNode("", true)
|
|
77
77
|
])
|
|
78
78
|
]),
|
|
@@ -87,7 +87,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
87
87
|
]),
|
|
88
88
|
key: "1"
|
|
89
89
|
} : void 0,
|
|
90
|
-
|
|
90
|
+
__props.readonly ? {
|
|
91
91
|
name: "default",
|
|
92
92
|
fn: withCtx(() => [
|
|
93
93
|
createElementVNode("div", _hoisted_1, [
|
|
@@ -96,13 +96,13 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
96
96
|
option: modelValueItem.value,
|
|
97
97
|
selected: true
|
|
98
98
|
}, () => [
|
|
99
|
-
|
|
99
|
+
__props.optionComponent ? (openBlock(), createBlock(resolveDynamicComponent(__props.optionComponent), {
|
|
100
100
|
key: 0,
|
|
101
101
|
option: modelValueItem.value,
|
|
102
102
|
selected: true
|
|
103
103
|
}, null, 8, ["option"])) : createCommentVNode("", true)
|
|
104
104
|
]) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
105
|
-
createTextVNode(toDisplayString(
|
|
105
|
+
createTextVNode(toDisplayString(__props.emptyValue), 1)
|
|
106
106
|
], 64))
|
|
107
107
|
])
|
|
108
108
|
]),
|
|
@@ -112,37 +112,34 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
112
112
|
fn: withCtx(() => [
|
|
113
113
|
createElementVNode("div", {
|
|
114
114
|
class: normalizeClass(["flex", {
|
|
115
|
-
"flex-wrap gap-2":
|
|
116
|
-
"flex-col gap-2":
|
|
117
|
-
"items-start":
|
|
115
|
+
"flex-wrap gap-2": __props.wrap,
|
|
116
|
+
"flex-col gap-2": __props.col,
|
|
117
|
+
"items-start": __props.col && !__props.stretch
|
|
118
118
|
}])
|
|
119
119
|
}, [
|
|
120
|
-
(openBlock(true), createElementBlock(Fragment, null, renderList(
|
|
121
|
-
return openBlock(), createBlock(_sfc_main$2, mergeProps({
|
|
122
|
-
key: index,
|
|
123
|
-
ref_for: true
|
|
124
|
-
}, {
|
|
120
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(__props.list, (item, index) => {
|
|
121
|
+
return openBlock(), createBlock(_sfc_main$2, mergeProps({ key: index }, { ref_for: true }, {
|
|
125
122
|
...props,
|
|
126
|
-
semanticType: getValue(item) ===
|
|
127
|
-
loading:
|
|
128
|
-
disabled: unref(isDisabled) || unref(isReadonly) ||
|
|
129
|
-
join: !
|
|
123
|
+
semanticType: getValue(item) === __props.modelValue ? __props.semanticType ?? unref(SemanticType).PRIMARY : unref(SemanticType).SECONDARY,
|
|
124
|
+
loading: __props.loading && getValue(item) === loadingItem.value,
|
|
125
|
+
disabled: unref(isDisabled) || unref(isReadonly) || __props.loading && getValue(item) !== loadingItem.value,
|
|
126
|
+
join: !__props.wrap && !__props.col,
|
|
130
127
|
tooltipText: void 0
|
|
131
128
|
}, {
|
|
132
129
|
class: {
|
|
133
|
-
"flex-1":
|
|
130
|
+
"flex-1": __props.stretch
|
|
134
131
|
},
|
|
135
132
|
onClick: ($event) => updateModelValue(getValue(item))
|
|
136
133
|
}), {
|
|
137
134
|
default: withCtx(() => [
|
|
138
135
|
renderSlot(_ctx.$slots, "option", {
|
|
139
136
|
option: item,
|
|
140
|
-
selected: getValue(item) ===
|
|
137
|
+
selected: getValue(item) === __props.modelValue
|
|
141
138
|
}, () => [
|
|
142
|
-
|
|
139
|
+
__props.optionComponent ? (openBlock(), createBlock(resolveDynamicComponent(__props.optionComponent), {
|
|
143
140
|
key: 0,
|
|
144
141
|
option: item,
|
|
145
|
-
selected: getValue(item) ===
|
|
142
|
+
selected: getValue(item) === __props.modelValue
|
|
146
143
|
}, null, 8, ["option", "selected"])) : createCommentVNode("", true)
|
|
147
144
|
])
|
|
148
145
|
]),
|
|
@@ -17,31 +17,31 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
17
17
|
emits: ["click"],
|
|
18
18
|
setup(__props) {
|
|
19
19
|
return (_ctx, _cache) => {
|
|
20
|
-
return
|
|
20
|
+
return __props.skeleton ? (openBlock(), createBlock(_sfc_main$1, {
|
|
21
21
|
key: 0,
|
|
22
22
|
class: "-square--w-input-height w-skeleton-rounded-[--w-input-rounded,0.75rem]"
|
|
23
|
-
})) : (openBlock(), createBlock(resolveDynamicComponent(
|
|
23
|
+
})) : (openBlock(), createBlock(resolveDynamicComponent(__props.to ? _sfc_main$2 : "button"), mergeProps({ key: 1 }, __props.to ? { to: __props.to } : void 0, {
|
|
24
24
|
class: ["-square--w-input-height bg-default dark:bg-default-dark relative flex select-none items-center justify-center rounded-[--w-input-rounded,0.75rem] border border-solid border-gray-200 dark:border-gray-800", {
|
|
25
|
-
"cursor-not-allowed opacity-50":
|
|
26
|
-
"w-ripple w-ripple-hover cursor-pointer": !
|
|
27
|
-
"cursor-progress":
|
|
25
|
+
"cursor-not-allowed opacity-50": __props.disabled,
|
|
26
|
+
"w-ripple w-ripple-hover cursor-pointer": !__props.disabled,
|
|
27
|
+
"cursor-progress": __props.loading
|
|
28
28
|
}],
|
|
29
|
-
disabled:
|
|
30
|
-
onClick: _cache[0] || (_cache[0] = withModifiers(($event) => !
|
|
29
|
+
disabled: __props.disabled,
|
|
30
|
+
onClick: _cache[0] || (_cache[0] = withModifiers(($event) => !__props.disabled && !__props.loading && _ctx.$emit("click", $event), ["stop", "prevent"])),
|
|
31
31
|
onMousedown: _cache[1] || (_cache[1] = withModifiers(() => {
|
|
32
32
|
}, ["stop", "prevent"]))
|
|
33
33
|
}), {
|
|
34
34
|
default: withCtx(() => [
|
|
35
|
-
|
|
35
|
+
__props.loading ? (openBlock(), createBlock(WSpinner, {
|
|
36
36
|
key: 0,
|
|
37
37
|
class: "w-spinner-size-[1.125em]"
|
|
38
|
-
})) : (openBlock(), createBlock(resolveDynamicComponent(
|
|
38
|
+
})) : (openBlock(), createBlock(resolveDynamicComponent(__props.icon), {
|
|
39
39
|
key: 1,
|
|
40
40
|
class: "square-[1.125em]"
|
|
41
41
|
})),
|
|
42
|
-
|
|
42
|
+
__props.tooltipText ? (openBlock(), createBlock(_sfc_main$3, {
|
|
43
43
|
key: 2,
|
|
44
|
-
text:
|
|
44
|
+
text: __props.tooltipText,
|
|
45
45
|
"no-touch": ""
|
|
46
46
|
}, null, 8, ["text"])) : createCommentVNode("", true)
|
|
47
47
|
]),
|
|
@@ -35,50 +35,50 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
35
35
|
});
|
|
36
36
|
return (_ctx, _cache) => {
|
|
37
37
|
return openBlock(), createElementBlock("button", mergeProps(_ctx.$attrs, {
|
|
38
|
-
disabled:
|
|
38
|
+
disabled: __props.disabled,
|
|
39
39
|
class: [{
|
|
40
|
-
"w-hover-circle-trigger cursor-pointer": !
|
|
41
|
-
"cursor-not-allowed opacity-50":
|
|
40
|
+
"w-hover-circle-trigger cursor-pointer": !__props.disabled,
|
|
41
|
+
"cursor-not-allowed opacity-50": __props.disabled
|
|
42
42
|
}, "flex justify-center outline-none"],
|
|
43
43
|
"aria-expanded": isOpen.value,
|
|
44
|
-
"aria-disabled":
|
|
44
|
+
"aria-disabled": __props.disabled,
|
|
45
45
|
"aria-label": "More options",
|
|
46
46
|
onClick: toggle
|
|
47
47
|
}), [
|
|
48
48
|
createVNode(_sfc_main$1, {
|
|
49
49
|
"is-open": isOpen.value,
|
|
50
|
-
"horizontal-align":
|
|
50
|
+
"horizontal-align": __props.anchor ? unref(HorizontalAlign).RIGHT_INNER : unref(HorizontalAlign).LEFT_INNER,
|
|
51
51
|
"update-align": false,
|
|
52
|
-
"parent-element":
|
|
52
|
+
"parent-element": __props.anchor
|
|
53
53
|
}, {
|
|
54
54
|
toggle: withCtx(() => [
|
|
55
55
|
createElementVNode("div", {
|
|
56
56
|
class: normalizeClass(["relative", {
|
|
57
|
-
"w-hover-circle": !
|
|
58
|
-
"text-description": !isOpen.value ||
|
|
59
|
-
"text-primary dark:text-primary-dark": isOpen.value && !
|
|
57
|
+
"w-hover-circle": !__props.disabled,
|
|
58
|
+
"text-description": !isOpen.value || __props.anchor,
|
|
59
|
+
"text-primary dark:text-primary-dark": isOpen.value && !__props.anchor
|
|
60
60
|
}])
|
|
61
61
|
}, [
|
|
62
|
-
(openBlock(), createBlock(resolveDynamicComponent(
|
|
62
|
+
(openBlock(), createBlock(resolveDynamicComponent(__props.icon ?? unref(IconMore)), { class: "square-[1.25em]" }))
|
|
63
63
|
], 2)
|
|
64
64
|
]),
|
|
65
65
|
content: withCtx(({ isTop, isRight, isLeft }) => [
|
|
66
66
|
createVNode(_sfc_main$2, {
|
|
67
67
|
"no-filter": "",
|
|
68
68
|
class: normalizeClass(["bg-default dark:bg-default-dark overflow-hidden rounded-xl text-start font-normal shadow-md dark:border dark:border-solid dark:border-gray-800", {
|
|
69
|
-
"sm-not:-mr-4 my-4 -mr-5": !
|
|
70
|
-
"rounded-bl-none":
|
|
71
|
-
"rounded-tl-none":
|
|
72
|
-
"rounded-br-none":
|
|
73
|
-
"rounded-tr-none":
|
|
69
|
+
"sm-not:-mr-4 my-4 -mr-5": !__props.anchor,
|
|
70
|
+
"rounded-bl-none": __props.anchor && isRight && isTop,
|
|
71
|
+
"rounded-tl-none": __props.anchor && isRight && !isTop,
|
|
72
|
+
"rounded-br-none": __props.anchor && isLeft && isTop,
|
|
73
|
+
"rounded-tr-none": __props.anchor && isLeft && !isTop
|
|
74
74
|
}]),
|
|
75
75
|
onClick: close
|
|
76
76
|
}, {
|
|
77
77
|
default: withCtx(() => [
|
|
78
78
|
renderSlot(_ctx.$slots, "default")
|
|
79
79
|
]),
|
|
80
|
-
_:
|
|
81
|
-
},
|
|
80
|
+
_: 3
|
|
81
|
+
}, 8, ["class"])
|
|
82
82
|
]),
|
|
83
83
|
_: 3
|
|
84
84
|
}, 8, ["is-open", "horizontal-align", "parent-element"])
|
|
@@ -16,16 +16,16 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
16
16
|
setup(__props) {
|
|
17
17
|
return (_ctx, _cache) => {
|
|
18
18
|
return openBlock(), createBlock(_sfc_main$1, {
|
|
19
|
-
to:
|
|
20
|
-
href:
|
|
21
|
-
download:
|
|
22
|
-
disabled:
|
|
19
|
+
to: __props.to,
|
|
20
|
+
href: __props.href,
|
|
21
|
+
download: __props.download,
|
|
22
|
+
disabled: __props.disabled,
|
|
23
23
|
onClick: _cache[0] || (_cache[0] = ($event) => _ctx.$emit("click", $event))
|
|
24
24
|
}, {
|
|
25
25
|
default: withCtx(() => [
|
|
26
|
-
createElementVNode("div", _hoisted_1, toDisplayString(
|
|
26
|
+
createElementVNode("div", _hoisted_1, toDisplayString(__props.text), 1),
|
|
27
27
|
renderSlot(_ctx.$slots, "icon", {}, () => [
|
|
28
|
-
|
|
28
|
+
__props.icon ? (openBlock(), createBlock(resolveDynamicComponent(__props.icon), {
|
|
29
29
|
key: 0,
|
|
30
30
|
class: "square-[1.25em]"
|
|
31
31
|
})) : createCommentVNode("", true)
|
|
@@ -62,14 +62,14 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
62
62
|
_: 3
|
|
63
63
|
}, 8, ["is-open", "horizontal-align"])) : createCommentVNode("", true)
|
|
64
64
|
]),
|
|
65
|
-
|
|
65
|
+
__props.selectedCount ? (openBlock(), createBlock(_sfc_main$4, {
|
|
66
66
|
key: 0,
|
|
67
67
|
onClick: _cache[2] || (_cache[2] = ($event) => _ctx.$emit("clear:selection"))
|
|
68
68
|
}, {
|
|
69
69
|
default: withCtx(() => [
|
|
70
70
|
_cache[3] || (_cache[3] = createElementVNode("span", { class: "sm-not:hidden" }, "Selected ", -1)),
|
|
71
|
-
createElementVNode("span", _hoisted_3, toDisplayString(unref(numberFormatter).format(
|
|
72
|
-
createElementVNode("span", _hoisted_4, " " + toDisplayString(
|
|
71
|
+
createElementVNode("span", _hoisted_3, toDisplayString(unref(numberFormatter).format(__props.selectedCount)), 1),
|
|
72
|
+
createElementVNode("span", _hoisted_4, " " + toDisplayString(__props.title) + toDisplayString(__props.selectedCount === 1 ? "" : "s"), 1)
|
|
73
73
|
]),
|
|
74
74
|
_: 1
|
|
75
75
|
})) : renderSlot(_ctx.$slots, "settings", { key: 1 })
|
|
@@ -23,31 +23,31 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
23
23
|
setup(__props) {
|
|
24
24
|
return (_ctx, _cache) => {
|
|
25
25
|
return openBlock(), createElementBlock("button", {
|
|
26
|
-
disabled:
|
|
26
|
+
disabled: __props.disabled || __props.disableMessage !== void 0,
|
|
27
27
|
class: normalizeClass(["disabled:text-description relative isolate flex select-none items-center justify-center bg-none no-underline outline-none disabled:cursor-not-allowed", {
|
|
28
|
-
"w-ripple w-ripple-hover before:text-primary dark:before:text-primary-dark hover:text-primary dark:hover:text-primary-dark cursor-pointer": !
|
|
29
|
-
"text-primary dark:text-primary-dark w-ripple-active":
|
|
30
|
-
"text-accent": !
|
|
31
|
-
"cursor-not-allowed":
|
|
32
|
-
"cursor-progress":
|
|
28
|
+
"w-ripple w-ripple-hover before:text-primary dark:before:text-primary-dark hover:text-primary dark:hover:text-primary-dark cursor-pointer": !__props.disabled && !__props.disableMessage && !__props.loading,
|
|
29
|
+
"text-primary dark:text-primary-dark w-ripple-active": __props.active,
|
|
30
|
+
"text-accent": !__props.active,
|
|
31
|
+
"cursor-not-allowed": __props.disabled || __props.disableMessage,
|
|
32
|
+
"cursor-progress": __props.loading
|
|
33
33
|
}]),
|
|
34
|
-
onClick: _cache[0] || (_cache[0] = ($event) => !
|
|
34
|
+
onClick: _cache[0] || (_cache[0] = ($event) => !__props.disabled && !__props.disableMessage && !__props.loading && _ctx.$emit("click", $event))
|
|
35
35
|
}, [
|
|
36
36
|
createElementVNode("div", {
|
|
37
37
|
class: normalizeClass(["-h--w-input-height sm-not:-px--inner-margin z-10 flex items-center gap-2 px-[--w-list-padding,1rem]", {
|
|
38
|
-
"opacity-0":
|
|
38
|
+
"opacity-0": __props.loading
|
|
39
39
|
}])
|
|
40
40
|
}, [
|
|
41
|
-
(openBlock(), createBlock(resolveDynamicComponent(
|
|
42
|
-
|
|
41
|
+
(openBlock(), createBlock(resolveDynamicComponent(__props.icon), { class: "square-[1.25em]" })),
|
|
42
|
+
__props.title ? (openBlock(), createElementBlock("div", _hoisted_2, toDisplayString(__props.title), 1)) : createCommentVNode("", true)
|
|
43
43
|
], 2),
|
|
44
|
-
|
|
44
|
+
__props.loading ? (openBlock(), createBlock(WSpinner, {
|
|
45
45
|
key: 0,
|
|
46
46
|
class: "w-spinner-size-5 text-description absolute z-10"
|
|
47
47
|
})) : createCommentVNode("", true),
|
|
48
|
-
|
|
48
|
+
__props.disableMessage || __props.tooltipText ? (openBlock(), createBlock(_sfc_main$1, {
|
|
49
49
|
key: 1,
|
|
50
|
-
text:
|
|
50
|
+
text: __props.disableMessage ?? __props.tooltipText
|
|
51
51
|
}, createSlots({ _: 2 }, [
|
|
52
52
|
_ctx.$slots.tooltip ? {
|
|
53
53
|
name: "default",
|
|
@@ -57,7 +57,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
57
57
|
key: "0"
|
|
58
58
|
} : void 0
|
|
59
59
|
]), 1032, ["text"])) : createCommentVNode("", true),
|
|
60
|
-
!
|
|
60
|
+
!__props.disabled && !__props.disableMessage && !__props.loading ? (openBlock(), createBlock(_sfc_main$2, { key: 2 })) : createCommentVNode("", true)
|
|
61
61
|
], 10, _hoisted_1);
|
|
62
62
|
};
|
|
63
63
|
}
|
|
@@ -28,30 +28,30 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
28
28
|
setup(__props) {
|
|
29
29
|
return (_ctx, _cache) => {
|
|
30
30
|
return openBlock(), createElementBlock("button", {
|
|
31
|
-
disabled:
|
|
31
|
+
disabled: __props.disabled,
|
|
32
32
|
class: normalizeClass(["w-ripple-trigger grid select-none grid-cols-[auto,1fr] font-semibold outline-none transition-colors duration-500", {
|
|
33
|
-
"text-primary dark:text-primary-dark": !
|
|
34
|
-
"text-negative dark:text-negative-dark":
|
|
35
|
-
"text-positive dark:text-positive-dark": !
|
|
36
|
-
"text-description": !
|
|
37
|
-
"cursor-not-allowed opacity-50":
|
|
38
|
-
"cursor-pointer": !
|
|
33
|
+
"text-primary dark:text-primary-dark": !__props.hasError && __props.active,
|
|
34
|
+
"text-negative dark:text-negative-dark": __props.hasError,
|
|
35
|
+
"text-positive dark:text-positive-dark": !__props.active && !__props.hasError && __props.hasValue && __props.showHasValue,
|
|
36
|
+
"text-description": !__props.active && !__props.hasError && (!__props.showHasValue || !__props.hasValue),
|
|
37
|
+
"cursor-not-allowed opacity-50": __props.disabled,
|
|
38
|
+
"cursor-pointer": !__props.disabled
|
|
39
39
|
}]),
|
|
40
|
-
onClick: _cache[0] || (_cache[0] = ($event) => !
|
|
40
|
+
onClick: _cache[0] || (_cache[0] = ($event) => !__props.disabled && _ctx.$emit("click", $event))
|
|
41
41
|
}, [
|
|
42
|
-
|
|
42
|
+
__props.indicator ? (openBlock(), createElementBlock("div", _hoisted_2, [
|
|
43
43
|
createElementVNode("div", {
|
|
44
44
|
class: normalizeClass(["text-default dark:text-default-dark rounded-full bg-[inherit] bg-opacity-100 p-1 outline transition-[outline-width] duration-500", {
|
|
45
|
-
"bg-negative dark:bg-negative-dark outline-negative/10 dark:outline-negative-dark/10":
|
|
46
|
-
"bg-positive dark:bg-positive-dark outline-positive/10 dark:outline-positive-dark/10": !
|
|
47
|
-
"bg-gray-400 outline-gray-400/10 dark:bg-gray-600 dark:outline-gray-600/10": !
|
|
48
|
-
"outline-[1.5rem]":
|
|
45
|
+
"bg-negative dark:bg-negative-dark outline-negative/10 dark:outline-negative-dark/10": __props.hasError,
|
|
46
|
+
"bg-positive dark:bg-positive-dark outline-positive/10 dark:outline-positive-dark/10": !__props.hasError && __props.hasValue && __props.showHasValue,
|
|
47
|
+
"bg-gray-400 outline-gray-400/10 dark:bg-gray-600 dark:outline-gray-600/10": !__props.hasError && (!__props.showHasValue || !__props.hasValue),
|
|
48
|
+
"outline-[1.5rem]": __props.active
|
|
49
49
|
}])
|
|
50
50
|
}, [
|
|
51
|
-
|
|
51
|
+
__props.hasError ? (openBlock(), createBlock(unref(IconNegativeInfo), {
|
|
52
52
|
key: 0,
|
|
53
53
|
class: "size-8"
|
|
54
|
-
})) :
|
|
54
|
+
})) : __props.hasValue ? (openBlock(), createBlock(unref(IconCheckCircle), {
|
|
55
55
|
key: 1,
|
|
56
56
|
class: "size-8"
|
|
57
57
|
})) : (openBlock(), createBlock(unref(IconClose), {
|
|
@@ -62,42 +62,42 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
62
62
|
])) : createCommentVNode("", true),
|
|
63
63
|
createElementVNode("div", {
|
|
64
64
|
class: normalizeClass(["relative col-start-2 self-start", {
|
|
65
|
-
"mt-3.5":
|
|
66
|
-
"w-ripple w-ripple-hover": !
|
|
65
|
+
"mt-3.5": __props.indicator,
|
|
66
|
+
"w-ripple w-ripple-hover": !__props.disabled
|
|
67
67
|
}])
|
|
68
68
|
}, [
|
|
69
|
-
_ctx.$slots.title ? renderSlot(_ctx.$slots, "title", normalizeProps(mergeProps({ key: 0 }, { hasChanges:
|
|
69
|
+
_ctx.$slots.title ? renderSlot(_ctx.$slots, "title", normalizeProps(mergeProps({ key: 0 }, { hasChanges: __props.hasChanges, hasError: __props.hasError, hasValue: __props.hasValue }))) : (openBlock(), createElementBlock("div", {
|
|
70
70
|
key: 1,
|
|
71
71
|
class: normalizeClass(["flex items-center py-2", {
|
|
72
|
-
"justify-center text-center": !
|
|
73
|
-
"text-start":
|
|
72
|
+
"justify-center text-center": !__props.side,
|
|
73
|
+
"text-start": __props.side
|
|
74
74
|
}])
|
|
75
75
|
}, [
|
|
76
76
|
createElementVNode("div", {
|
|
77
77
|
class: normalizeClass(["whitespace-nowrap px-3", {
|
|
78
|
-
"sm-not:-pl--inner-margin":
|
|
78
|
+
"sm-not:-pl--inner-margin": __props.side
|
|
79
79
|
}])
|
|
80
80
|
}, [
|
|
81
|
-
|
|
82
|
-
fallback: withCtx(() => _cache[1] || (_cache[1] = [
|
|
81
|
+
__props.icon !== void 0 ? (openBlock(), createBlock(Suspense, { key: 0 }, {
|
|
82
|
+
fallback: withCtx(() => [..._cache[1] || (_cache[1] = [
|
|
83
83
|
createElementVNode("svg", { class: "square-[1.25em] -mt-1 inline" }, [
|
|
84
84
|
createElementVNode("g")
|
|
85
85
|
], -1)
|
|
86
|
-
])),
|
|
86
|
+
])]),
|
|
87
87
|
default: withCtx(() => [
|
|
88
|
-
(openBlock(), createBlock(resolveDynamicComponent(
|
|
88
|
+
(openBlock(), createBlock(resolveDynamicComponent(__props.icon), { class: "square-[1.25em] -mt-1 inline" }))
|
|
89
89
|
]),
|
|
90
90
|
_: 1
|
|
91
91
|
})) : createCommentVNode("", true),
|
|
92
|
-
createTextVNode(" " + toDisplayString(
|
|
92
|
+
createTextVNode(" " + toDisplayString(__props.title), 1)
|
|
93
93
|
], 2),
|
|
94
|
-
|
|
94
|
+
__props.statusIcon ? (openBlock(), createBlock(_sfc_main$1, {
|
|
95
95
|
key: 0,
|
|
96
|
-
"has-value":
|
|
97
|
-
"has-error":
|
|
96
|
+
"has-value": __props.hasValue,
|
|
97
|
+
"has-error": __props.hasError,
|
|
98
98
|
class: "sm-not:-mr--inner-margin square-4 ml-auto mr-4"
|
|
99
99
|
}, null, 8, ["has-value", "has-error"])) : createCommentVNode("", true),
|
|
100
|
-
renderSlot(_ctx.$slots, "suffix", normalizeProps(guardReactiveProps({ hasChanges:
|
|
100
|
+
renderSlot(_ctx.$slots, "suffix", normalizeProps(guardReactiveProps({ hasChanges: __props.hasChanges, hasError: __props.hasError, hasValue: __props.hasValue })))
|
|
101
101
|
], 2)),
|
|
102
102
|
createVNode(Transition, {
|
|
103
103
|
"enter-active-class": "transition-opacity",
|
|
@@ -106,11 +106,11 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
106
106
|
"leave-to-class": "opacity-0"
|
|
107
107
|
}, {
|
|
108
108
|
default: withCtx(() => [
|
|
109
|
-
|
|
109
|
+
__props.hasChanges ? (openBlock(), createElementBlock("div", {
|
|
110
110
|
key: 0,
|
|
111
111
|
class: normalizeClass(["square-2 absolute right-1 top-1 rounded-full transition-colors duration-200", {
|
|
112
|
-
"bg-info dark:bg-info-dark": !
|
|
113
|
-
"bg-negative dark:bg-negative-dark":
|
|
112
|
+
"bg-info dark:bg-info-dark": !__props.hasError,
|
|
113
|
+
"bg-negative dark:bg-negative-dark": __props.hasError
|
|
114
114
|
}])
|
|
115
115
|
}, null, 2)) : createCommentVNode("", true)
|
|
116
116
|
]),
|
|
@@ -121,15 +121,15 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
121
121
|
"leave-active-class": "transition-[transform,opacity] origin-center duration-300",
|
|
122
122
|
"enter-from-class": "scale-x-0 opacity-0",
|
|
123
123
|
"leave-to-class": "scale-x-0 opacity-0",
|
|
124
|
-
css: !
|
|
124
|
+
css: !__props.indicator
|
|
125
125
|
}, {
|
|
126
126
|
default: withCtx(() => [
|
|
127
|
-
|
|
127
|
+
__props.active || __props.indicator ? (openBlock(), createElementBlock("div", {
|
|
128
128
|
key: 0,
|
|
129
129
|
class: normalizeClass(["absolute inset-x-0 bottom-0 h-0.5 rounded-sm", {
|
|
130
|
-
"bg-current":
|
|
131
|
-
"bg-primary dark:bg-primary-dark": !
|
|
132
|
-
"sm-not:-left--inner-margin":
|
|
130
|
+
"bg-current": __props.indicator,
|
|
131
|
+
"bg-primary dark:bg-primary-dark": !__props.indicator,
|
|
132
|
+
"sm-not:-left--inner-margin": __props.side
|
|
133
133
|
}])
|
|
134
134
|
}, null, 2)) : createCommentVNode("", true)
|
|
135
135
|
]),
|
|
@@ -13,15 +13,15 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
13
13
|
return (_ctx, _cache) => {
|
|
14
14
|
return openBlock(), createElementBlock("button", {
|
|
15
15
|
class: normalizeClass(["square-[1.25em] relative flex items-center justify-center rounded-full outline-none", {
|
|
16
|
-
"cursor-not-allowed":
|
|
17
|
-
"cursor-progress":
|
|
18
|
-
"w-ripple w-ripple-hover cursor-pointer ": !
|
|
16
|
+
"cursor-not-allowed": __props.disabled,
|
|
17
|
+
"cursor-progress": __props.loading,
|
|
18
|
+
"w-ripple w-ripple-hover cursor-pointer ": !__props.loading && !__props.disabled
|
|
19
19
|
}]),
|
|
20
|
-
disabled:
|
|
21
|
-
"aria-disabled":
|
|
20
|
+
disabled: __props.disabled,
|
|
21
|
+
"aria-disabled": __props.disabled || __props.loading,
|
|
22
22
|
"aria-label": "Clear selection",
|
|
23
|
-
onClick: _cache[0] || (_cache[0] = ($event) => !
|
|
24
|
-
onMousedown: _cache[1] || (_cache[1] = ($event) => !
|
|
23
|
+
onClick: _cache[0] || (_cache[0] = ($event) => !__props.loading && !__props.disabled && _ctx.$emit("click", $event)),
|
|
24
|
+
onMousedown: _cache[1] || (_cache[1] = ($event) => !__props.loading && !__props.disabled && _ctx.$emit("mousedown", $event))
|
|
25
25
|
}, [
|
|
26
26
|
createVNode(unref(IconCancel), { class: "square-[0.75em]" })
|
|
27
27
|
], 42, _hoisted_1);
|
|
@@ -208,17 +208,17 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
208
208
|
gradientTransform: "rotate(90)"
|
|
209
209
|
}, [
|
|
210
210
|
renderSlot(_ctx.$slots, "gradient", normalizeProps(guardReactiveProps({
|
|
211
|
-
scaleY:
|
|
211
|
+
scaleY: __props.scaleY,
|
|
212
212
|
scaleYPercent,
|
|
213
|
-
topPercent:
|
|
214
|
-
bottomPercent: 1 -
|
|
213
|
+
topPercent: __props.top / __props.svgHeight,
|
|
214
|
+
bottomPercent: 1 - __props.bottom / __props.svgHeight
|
|
215
215
|
})))
|
|
216
216
|
], 8, _hoisted_2)) : createCommentVNode("", true),
|
|
217
|
-
|
|
217
|
+
__props.hasArea && !__props.yKeyMin && !__props.yKeyMax ? (openBlock(), createElementBlock("linearGradient", {
|
|
218
218
|
key: 1,
|
|
219
219
|
id: unref(gradientAreaId),
|
|
220
220
|
gradientTransform: "rotate(90)"
|
|
221
|
-
}, _cache[0] || (_cache[0] = [
|
|
221
|
+
}, [..._cache[0] || (_cache[0] = [
|
|
222
222
|
createElementVNode("stop", {
|
|
223
223
|
offset: "0%",
|
|
224
224
|
"stop-color": "#222222"
|
|
@@ -231,9 +231,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
231
231
|
offset: "100%",
|
|
232
232
|
"stop-color": "#000000"
|
|
233
233
|
}, null, -1)
|
|
234
|
-
]), 8, _hoisted_3)) : createCommentVNode("", true),
|
|
234
|
+
])], 8, _hoisted_3)) : createCommentVNode("", true),
|
|
235
235
|
createElementVNode("mask", { id: unref(maskId) }, [
|
|
236
|
-
|
|
236
|
+
__props.yKeyMin && __props.yKeyMax ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
237
237
|
minMaxAreaPath.value ? (openBlock(), createElementBlock("path", {
|
|
238
238
|
key: 0,
|
|
239
239
|
d: minMaxAreaPath.value,
|
|
@@ -241,7 +241,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
241
241
|
"fill-opacity": "0.2",
|
|
242
242
|
class: "transition-[d]"
|
|
243
243
|
}, null, 8, _hoisted_5)) : createCommentVNode("", true)
|
|
244
|
-
], 64)) :
|
|
244
|
+
], 64)) : __props.hasArea && areaPath.value ? (openBlock(), createElementBlock("path", {
|
|
245
245
|
key: 1,
|
|
246
246
|
d: areaPath.value,
|
|
247
247
|
fill: `url(#${unref(gradientAreaId)})`,
|
|
@@ -251,18 +251,18 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
251
251
|
key: 2,
|
|
252
252
|
d: linePath.value,
|
|
253
253
|
fill: "none",
|
|
254
|
-
"stroke-width":
|
|
254
|
+
"stroke-width": __props.strokeWidth ?? 2,
|
|
255
255
|
"stroke-dasharray": strokeDashArray.value,
|
|
256
256
|
stroke: "white",
|
|
257
257
|
"stroke-linejoin": "round",
|
|
258
258
|
"stroke-linecap": "round",
|
|
259
259
|
class: "transition-[d]"
|
|
260
260
|
}, null, 8, _hoisted_7)) : createCommentVNode("", true),
|
|
261
|
-
_ctx.$slots.tooltip && hoveredData.value &&
|
|
261
|
+
_ctx.$slots.tooltip && hoveredData.value && tooltipRef.value?.isOpen ? (openBlock(), createElementBlock("g", _hoisted_8, [
|
|
262
262
|
createElementVNode("circle", {
|
|
263
263
|
cx: hoveredData.value.x,
|
|
264
264
|
cy: hoveredData.value.y,
|
|
265
|
-
r:
|
|
265
|
+
r: __props.pointRadius ?? 3,
|
|
266
266
|
fill: "white"
|
|
267
267
|
}, null, 8, _hoisted_9)
|
|
268
268
|
])) : createCommentVNode("", true)
|
|
@@ -282,18 +282,18 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
282
282
|
createElementVNode("g", {
|
|
283
283
|
transform: `translate(${hoveredData.value?.x ?? 0} 0)`
|
|
284
284
|
}, [
|
|
285
|
-
hoveredData.value &&
|
|
285
|
+
hoveredData.value && tooltipRef.value?.isOpen ? (openBlock(), createElementBlock("line", {
|
|
286
286
|
key: 0,
|
|
287
287
|
x: hoveredData.value.x,
|
|
288
|
-
y1:
|
|
289
|
-
y2:
|
|
288
|
+
y1: __props.top,
|
|
289
|
+
y2: __props.svgHeight - __props.bottom,
|
|
290
290
|
stroke: "currentColor",
|
|
291
291
|
"stroke-width": "1",
|
|
292
292
|
class: "pointer-events-none text-gray-400 dark:text-gray-600"
|
|
293
293
|
}, null, 8, _hoisted_12)) : createCommentVNode("", true),
|
|
294
294
|
(openBlock(), createElementBlock("foreignObject", {
|
|
295
|
-
height:
|
|
296
|
-
y:
|
|
295
|
+
height: __props.svgHeight - __props.bottom - 9,
|
|
296
|
+
y: __props.top + 4.5
|
|
297
297
|
}, [
|
|
298
298
|
createVNode(_sfc_main$1, {
|
|
299
299
|
ref: "tooltip",
|
|
@@ -323,13 +323,13 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
323
323
|
])) : (openBlock(), createElementBlock("foreignObject", {
|
|
324
324
|
key: 1,
|
|
325
325
|
y: "0",
|
|
326
|
-
x:
|
|
326
|
+
x: __props.left,
|
|
327
327
|
width: "100%",
|
|
328
328
|
height: "100%"
|
|
329
329
|
}, [
|
|
330
330
|
createElementVNode("div", _hoisted_16, [
|
|
331
331
|
renderSlot(_ctx.$slots, "empty", {}, () => [
|
|
332
|
-
createElementVNode("div", null, toDisplayString(
|
|
332
|
+
createElementVNode("div", null, toDisplayString(__props.emptyStub ?? "No data"), 1)
|
|
333
333
|
])
|
|
334
334
|
])
|
|
335
335
|
], 8, _hoisted_15));
|