eco-vue-js 0.11.57 → 0.11.59
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/WButtonCopy.vue.d.ts +1 -1
- package/dist/components/Button/WButtonCopy.vue.js +3 -3
- 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
|
@@ -97,8 +97,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
97
97
|
createElementVNode("div", {
|
|
98
98
|
tabindex: "0",
|
|
99
99
|
class: normalizeClass(["group/hover-circle relative select-none px-4 py-3.5", {
|
|
100
|
-
"cursor-not-allowed":
|
|
101
|
-
"cursor-grab": !
|
|
100
|
+
"cursor-not-allowed": __props.disabled,
|
|
101
|
+
"cursor-grab": !__props.disabled && !__props.readonly
|
|
102
102
|
}]),
|
|
103
103
|
onMousedown: withModifiers(startMove, ["prevent", "stop"]),
|
|
104
104
|
onTouchstart: withModifiers(startMove, ["prevent", "stop"])
|
|
@@ -106,10 +106,10 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
106
106
|
createElementVNode("div", _hoisted_2, [
|
|
107
107
|
createElementVNode("div", {
|
|
108
108
|
class: normalizeClass(["flex h-full items-center justify-end rounded-[inherit]", {
|
|
109
|
-
[!
|
|
110
|
-
"bg-gray-400 dark:bg-gray-500":
|
|
109
|
+
[!__props.errorMessage ? __props.semanticType : unref(SemanticType).NEGATIVE]: !__props.disabled,
|
|
110
|
+
"bg-gray-400 dark:bg-gray-500": __props.disabled
|
|
111
111
|
}]),
|
|
112
|
-
style: normalizeStyle({ width: unref(percentCompactFormatter).format(rangeScale(cursor.value ??
|
|
112
|
+
style: normalizeStyle({ width: unref(percentCompactFormatter).format(rangeScale(cursor.value ?? __props.modelValue)) })
|
|
113
113
|
}, [
|
|
114
114
|
createElementVNode("div", {
|
|
115
115
|
class: "square-4 tw-hover-circle tw-hover-circle-inherit relative -mr-2 rounded-full bg-[inherit]",
|
|
@@ -126,7 +126,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
126
126
|
"leave-to-class": "fade-leave-to"
|
|
127
127
|
}, {
|
|
128
128
|
default: withCtx(() => [
|
|
129
|
-
|
|
129
|
+
__props.errorMessage ? (openBlock(), createElementBlock("div", _hoisted_3, toDisplayString(__props.errorMessage), 1)) : createCommentVNode("", true)
|
|
130
130
|
]),
|
|
131
131
|
_: 1
|
|
132
132
|
})
|
|
@@ -116,8 +116,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
116
116
|
createElementVNode("div", {
|
|
117
117
|
tabindex: "0",
|
|
118
118
|
class: normalizeClass(["group/hover-circle relative select-none p-4 last:col-span-2", {
|
|
119
|
-
"cursor-not-allowed":
|
|
120
|
-
"cursor-grab": !
|
|
119
|
+
"cursor-not-allowed": __props.disabled,
|
|
120
|
+
"cursor-grab": !__props.disabled && !__props.readonly
|
|
121
121
|
}]),
|
|
122
122
|
onMousedown: withModifiers(startMove, ["prevent", "stop"]),
|
|
123
123
|
onTouchstart: withModifiers(startMove, ["prevent", "stop"])
|
|
@@ -125,7 +125,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
125
125
|
createElementVNode("div", _hoisted_2, [
|
|
126
126
|
createElementVNode("div", {
|
|
127
127
|
class: normalizeClass(["absolute flex h-full items-center rounded-[inherit] bg-gradient-to-r from-[var(--w-slider-from)_50%] to-[var(--w-slider-to)_50%]", {
|
|
128
|
-
"bg-gray-400 dark:bg-gray-500":
|
|
128
|
+
"bg-gray-400 dark:bg-gray-500": __props.disabled
|
|
129
129
|
}]),
|
|
130
130
|
style: normalizeStyle({
|
|
131
131
|
left: unref(percentCompactFormatter).format(rangeScale(cursorRange.value.from)),
|
|
@@ -135,13 +135,13 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
135
135
|
createElementVNode("div", {
|
|
136
136
|
class: normalizeClass(["square-4 absolute left-0 -ml-2 rounded-full bg-[var(--w-slider-from)] transition-transform", {
|
|
137
137
|
"scale-180": isCursorFrom.value === true,
|
|
138
|
-
"hover:scale-200": !
|
|
138
|
+
"hover:scale-200": !__props.readonly && isCursorFrom.value === null
|
|
139
139
|
}])
|
|
140
140
|
}, null, 2),
|
|
141
141
|
createElementVNode("div", {
|
|
142
142
|
class: normalizeClass(["square-4 absolute right-0 -mr-2 rounded-full bg-[var(--w-slider-to)] transition-transform", {
|
|
143
143
|
"scale-180": isCursorFrom.value === false,
|
|
144
|
-
"hover:scale-200": !
|
|
144
|
+
"hover:scale-200": !__props.readonly && isCursorFrom.value === null
|
|
145
145
|
}])
|
|
146
146
|
}, null, 2)
|
|
147
147
|
], 6)
|
|
@@ -153,7 +153,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
153
153
|
"leave-to-class": "fade-leave-to"
|
|
154
154
|
}, {
|
|
155
155
|
default: withCtx(() => [
|
|
156
|
-
|
|
156
|
+
__props.errorMessage ? (openBlock(), createElementBlock("div", _hoisted_3, toDisplayString(__props.errorMessage), 1)) : createCommentVNode("", true)
|
|
157
157
|
]),
|
|
158
158
|
_: 1
|
|
159
159
|
})
|
|
@@ -11,7 +11,7 @@ const _hoisted_1 = {
|
|
|
11
11
|
};
|
|
12
12
|
|
|
13
13
|
function _sfc_render(_ctx, _cache) {
|
|
14
|
-
return (openBlock(), createElementBlock("svg", _hoisted_1, _cache[0] || (_cache[0] = [
|
|
14
|
+
return (openBlock(), createElementBlock("svg", _hoisted_1, [...(_cache[0] || (_cache[0] = [
|
|
15
15
|
createElementVNode("circle", {
|
|
16
16
|
class: "animate-spinner-dash",
|
|
17
17
|
cx: "50",
|
|
@@ -24,7 +24,7 @@ function _sfc_render(_ctx, _cache) {
|
|
|
24
24
|
"stroke-dasharray": "1, 100",
|
|
25
25
|
"stroke-dashoffset": "0"
|
|
26
26
|
}, null, -1)
|
|
27
|
-
])))
|
|
27
|
+
]))]))
|
|
28
28
|
}
|
|
29
29
|
const WSpinner = /*#__PURE__*/_export_sfc(_sfc_main, [['render',_sfc_render]]);
|
|
30
30
|
|
|
@@ -11,10 +11,10 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
11
11
|
},
|
|
12
12
|
setup(__props) {
|
|
13
13
|
return (_ctx, _cache) => {
|
|
14
|
-
return
|
|
14
|
+
return __props.hasError ? (openBlock(), createBlock(unref(IconNegativeInfo), {
|
|
15
15
|
key: 0,
|
|
16
16
|
class: "text-negative dark:text-negative-dark"
|
|
17
|
-
})) :
|
|
17
|
+
})) : __props.hasValue ? (openBlock(), createBlock(unref(IconCheckCircle), {
|
|
18
18
|
key: 1,
|
|
19
19
|
class: "text-positive dark:text-positive-dark"
|
|
20
20
|
})) : (openBlock(), createBlock(unref(IconSlash), {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"WTabs.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Tabs/WTabs.vue"],"names":[],"mappings":"AAsIA;AAAA,OA4ZO,KAAK,EAAgB,SAAS,EAAC,MAAM,SAAS,CAAA;AAIrD,OAAO,KAAK,MAAM,6BAA6B,CAAA;AA6R/C,iBAAS,cAAc;WAqST,OAAO,IAA6B;;iBA1SvC,MAAM,IAAI;;iBAAV,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"WTabs.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Tabs/WTabs.vue"],"names":[],"mappings":"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"}
|
|
@@ -208,21 +208,21 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
208
208
|
return (_ctx, _cache) => {
|
|
209
209
|
return openBlock(), createBlock(_sfc_main$1, {
|
|
210
210
|
ref: "form",
|
|
211
|
-
name:
|
|
211
|
+
name: __props.name,
|
|
212
212
|
class: normalizeClass(["grid gap-4", {
|
|
213
|
-
"grid grid-cols-1": !
|
|
214
|
-
"sm-not:grid-cols-[repeat(2,100vw)] sm-not:snap-x sm-not:snap-mandatory sm-not:snap-always sm-not:overflow-x-auto sm-not:overscroll-x-contain grid grid-cols-[minmax(var(--w-tabs-side-width,auto),auto),1fr] items-start":
|
|
213
|
+
"grid grid-cols-1": !__props.side,
|
|
214
|
+
"sm-not:grid-cols-[repeat(2,100vw)] sm-not:snap-x sm-not:snap-mandatory sm-not:snap-always sm-not:overflow-x-auto sm-not:overscroll-x-contain grid grid-cols-[minmax(var(--w-tabs-side-width,auto),auto),1fr] items-start": __props.side
|
|
215
215
|
}])
|
|
216
216
|
}, {
|
|
217
217
|
default: withCtx(() => [
|
|
218
|
-
!
|
|
218
|
+
!__props.noHeader ? (openBlock(), createElementBlock("div", {
|
|
219
219
|
key: 0,
|
|
220
220
|
ref: "buttonContainer",
|
|
221
221
|
class: normalizeClass(["relative", {
|
|
222
|
-
"sm-not:snap-start grid grid-cols-[1fr,auto]":
|
|
223
|
-
"no-scrollbar sm-not:-pl--inner-margin sm-not:-mx---inner-margin flex snap-x snap-mandatory snap-always overflow-x-auto overscroll-x-contain": !
|
|
224
|
-
"flex-wrap": !
|
|
225
|
-
"pr-[50%]": !
|
|
222
|
+
"sm-not:snap-start grid grid-cols-[1fr,auto]": __props.side,
|
|
223
|
+
"no-scrollbar sm-not:-pl--inner-margin sm-not:-mx---inner-margin flex snap-x snap-mandatory snap-always overflow-x-auto overscroll-x-contain": !__props.side,
|
|
224
|
+
"flex-wrap": !__props.side && __props.wrap,
|
|
225
|
+
"pr-[50%]": !__props.side && !__props.wrap
|
|
226
226
|
}])
|
|
227
227
|
}, [
|
|
228
228
|
(openBlock(true), createElementBlock(Fragment, null, renderList(defaultSlotsAll.value, (slot, index) => {
|
|
@@ -237,18 +237,18 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
237
237
|
index,
|
|
238
238
|
title: slot.props.title,
|
|
239
239
|
icon: slot.props.icon,
|
|
240
|
-
"has-changes":
|
|
241
|
-
"has-error":
|
|
242
|
-
"has-value": slot.props.hasValue ?? slot.props["has-value"] ??
|
|
240
|
+
"has-changes": formRef.value?.hasChangesMap[slot.props.name] === true,
|
|
241
|
+
"has-error": formRef.value?.hasShownMap[slot.props.name] === true && typeof formRef.value?.errorMessageMap[slot.props.name] === "string",
|
|
242
|
+
"has-value": slot.props.hasValue ?? slot.props["has-value"] ?? formRef.value?.hasValueMap[slot.props.name] === true,
|
|
243
243
|
first: defaultSlots.value.indexOf(slot) === 0,
|
|
244
244
|
last: defaultSlots.value.indexOf(slot) === defaultSlots.value.length - 1,
|
|
245
|
-
disabled:
|
|
246
|
-
stepper:
|
|
247
|
-
"show-has-value":
|
|
248
|
-
side:
|
|
249
|
-
"status-icon":
|
|
245
|
+
disabled: __props.stepper ? defaultSlots.value.indexOf(slot) > hasNoValueFirst.value : false,
|
|
246
|
+
stepper: __props.stepper,
|
|
247
|
+
"show-has-value": __props.showHasValue,
|
|
248
|
+
side: __props.side,
|
|
249
|
+
"status-icon": __props.statusIcon,
|
|
250
250
|
class: normalizeClass({
|
|
251
|
-
"snap-center": !
|
|
251
|
+
"snap-center": !__props.side
|
|
252
252
|
}),
|
|
253
253
|
"onUpdate:scrollPosition": updateScrollPosition,
|
|
254
254
|
onClick: ($event) => unref(switchTab)(slot.props?.name)
|
|
@@ -291,15 +291,15 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
291
291
|
defaultSlots.value.some((slot) => slot.children?.default) ? (openBlock(), createElementBlock("div", {
|
|
292
292
|
key: 1,
|
|
293
293
|
class: normalizeClass(["relative h-full transition-[min-height] duration-300", {
|
|
294
|
-
"sm-not:snap-start":
|
|
294
|
+
"sm-not:snap-start": __props.side
|
|
295
295
|
}]),
|
|
296
296
|
style: normalizeStyle({ minHeight: minHeight.value ? minHeight.value + "px" : "auto", "--direction-factor": isDirect.value ? "1" : "-1" })
|
|
297
297
|
}, [
|
|
298
298
|
createVNode(TransitionGroup, {
|
|
299
299
|
"enter-active-class": "transition-[transform,opacity] duration-[250ms] w-full",
|
|
300
300
|
"leave-active-class": "transition-[transform,opacity] duration-[250ms] w-full absolute top-0",
|
|
301
|
-
"enter-from-class":
|
|
302
|
-
"leave-to-class":
|
|
301
|
+
"enter-from-class": __props.lessTransitions || __props.side || unref(hasScrollbar) ? "opacity-0" : "opacity-0 translate-x-[calc((100%+var(--inner-margin))*var(--direction-factor))]",
|
|
302
|
+
"leave-to-class": __props.lessTransitions || __props.side || unref(hasScrollbar) ? "opacity-0" : "opacity-0 translate-x-[calc((100%+var(--inner-margin))*var(--direction-factor)*-1)]"
|
|
303
303
|
}, {
|
|
304
304
|
default: withCtx(() => [
|
|
305
305
|
(openBlock(true), createElementBlock(Fragment, null, renderList(defaultSlots.value, (slot) => {
|
|
@@ -311,8 +311,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
311
311
|
title: slot.props.title,
|
|
312
312
|
active: slot.props.name === current.value,
|
|
313
313
|
removable: slot.props.removable ?? false,
|
|
314
|
-
"onTab:switch": _cache[0] || (_cache[0] = ($event) => !
|
|
315
|
-
"onUpdate:height": _cache[1] || (_cache[1] = ($event) => !
|
|
314
|
+
"onTab:switch": _cache[0] || (_cache[0] = ($event) => !__props.noSwitchOnInvalid && unref(switchOnInvalid)($event)),
|
|
315
|
+
"onUpdate:height": _cache[1] || (_cache[1] = ($event) => !__props.disableMinHeight && updateHeight($event)),
|
|
316
316
|
"onUpdate:active": ($event) => _ctx.$emit("update:current-title", slot.props?.title)
|
|
317
317
|
}, {
|
|
318
318
|
default: withCtx(() => [
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TabItem.vue.d.ts","sourceRoot":"","sources":["../../../../../src/components/Tabs/components/TabItem.vue"],"names":[],"mappings":"AAYA;AA2DA,OAAO,EAAC,QAAQ,EAA+B,MAAM,KAAK,CAAA;AAM1D,KAAK,WAAW,GAAG;IACjB,IAAI,EAAE,MAAM,CAAA;IACZ,KAAK,EAAE,MAAM,GAAG,SAAS,CAAA;IACzB,MAAM,EAAE,OAAO,CAAA;IACf,SAAS,EAAE,OAAO,CAAA;CACnB,CAAC;AAyCF,iBAAS,cAAc;WAoDT,OAAO,IAA6B;;yBAXrB,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"TabItem.vue.d.ts","sourceRoot":"","sources":["../../../../../src/components/Tabs/components/TabItem.vue"],"names":[],"mappings":"AAYA;AA2DA,OAAO,EAAC,QAAQ,EAA+B,MAAM,KAAK,CAAA;AAM1D,KAAK,WAAW,GAAG;IACjB,IAAI,EAAE,MAAM,CAAA;IACZ,KAAK,EAAE,MAAM,GAAG,SAAS,CAAA;IACzB,MAAM,EAAE,OAAO,CAAA;IACf,SAAS,EAAE,OAAO,CAAA;CACnB,CAAC;AAyCF,iBAAS,cAAc;WAoDT,OAAO,IAA6B;;yBAXrB,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wCAmDw0oB,GAAG,8CAA8C,GAAG,yBAAyB,GAAG,6DAAmC,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAnC79oB;AAUD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;sBA/FE,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oCAuH60oB,GAAG,8CAA8C,GAAG,yBAAyB,GAAG,6DAAmC,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAf59oB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAQpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
|
|
@@ -31,19 +31,19 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
31
31
|
name: toRef(props, "name")
|
|
32
32
|
});
|
|
33
33
|
return (_ctx, _cache) => {
|
|
34
|
-
return !
|
|
34
|
+
return !__props.removable || __props.active ? withDirectives((openBlock(), createBlock(_sfc_main$1, {
|
|
35
35
|
key: 0,
|
|
36
36
|
ref: "form",
|
|
37
|
-
name:
|
|
38
|
-
title:
|
|
39
|
-
"onUpdate:isValid": _cache[0] || (_cache[0] = ($event) => $event === false && _ctx.$emit("tab:switch",
|
|
37
|
+
name: __props.name,
|
|
38
|
+
title: __props.title,
|
|
39
|
+
"onUpdate:isValid": _cache[0] || (_cache[0] = ($event) => $event === false && _ctx.$emit("tab:switch", __props.name))
|
|
40
40
|
}, {
|
|
41
41
|
default: withCtx(() => [
|
|
42
42
|
renderSlot(_ctx.$slots, "default")
|
|
43
43
|
]),
|
|
44
44
|
_: 3
|
|
45
45
|
}, 8, ["name", "title"])), [
|
|
46
|
-
[vShow,
|
|
46
|
+
[vShow, __props.active]
|
|
47
47
|
]) : createCommentVNode("", true);
|
|
48
48
|
};
|
|
49
49
|
}
|
|
@@ -54,22 +54,22 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
54
54
|
return openBlock(), createElementBlock("div", {
|
|
55
55
|
ref: "container",
|
|
56
56
|
class: normalizeClass(["relative grid", {
|
|
57
|
-
"col-span-2 grid grid-cols-subgrid":
|
|
58
|
-
"grid-cols-[1fr,auto]": !
|
|
57
|
+
"col-span-2 grid grid-cols-subgrid": __props.side,
|
|
58
|
+
"grid-cols-[1fr,auto]": !__props.side
|
|
59
59
|
}])
|
|
60
60
|
}, [
|
|
61
61
|
createVNode(_sfc_main$1, {
|
|
62
|
-
active:
|
|
63
|
-
disabled:
|
|
64
|
-
"has-changes":
|
|
65
|
-
"has-error":
|
|
66
|
-
"has-value":
|
|
67
|
-
indicator:
|
|
68
|
-
side:
|
|
69
|
-
title:
|
|
70
|
-
icon:
|
|
71
|
-
"status-icon":
|
|
72
|
-
"show-has-value":
|
|
62
|
+
active: __props.active,
|
|
63
|
+
disabled: __props.disabled,
|
|
64
|
+
"has-changes": __props.hasChanges,
|
|
65
|
+
"has-error": __props.hasError,
|
|
66
|
+
"has-value": __props.hasValue,
|
|
67
|
+
indicator: __props.stepper,
|
|
68
|
+
side: __props.side,
|
|
69
|
+
title: __props.title,
|
|
70
|
+
icon: __props.icon,
|
|
71
|
+
"status-icon": __props.statusIcon,
|
|
72
|
+
"show-has-value": __props.showHasValue,
|
|
73
73
|
onClick: _cache[0] || (_cache[0] = ($event) => _ctx.$emit("click", $event))
|
|
74
74
|
}, {
|
|
75
75
|
default: withCtx(() => [
|
|
@@ -77,7 +77,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
77
77
|
]),
|
|
78
78
|
_: 3
|
|
79
79
|
}, 8, ["active", "disabled", "has-changes", "has-error", "has-value", "indicator", "side", "title", "icon", "status-icon", "show-has-value"]),
|
|
80
|
-
renderSlot(_ctx.$slots, "right", normalizeProps(guardReactiveProps({ hasChanges:
|
|
80
|
+
renderSlot(_ctx.$slots, "right", normalizeProps(guardReactiveProps({ hasChanges: __props.hasChanges, hasError: __props.hasError, hasValue: __props.hasValue })))
|
|
81
81
|
], 2);
|
|
82
82
|
};
|
|
83
83
|
}
|
|
@@ -68,7 +68,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
68
68
|
return (_ctx, _cache) => {
|
|
69
69
|
return openBlock(), createElementBlock("div", {
|
|
70
70
|
class: normalizeClass({
|
|
71
|
-
"mb-4 mt-1": !
|
|
71
|
+
"mb-4 mt-1": !__props.noMargin,
|
|
72
72
|
[typeof _ctx.$attrs.class === "string" ? _ctx.$attrs.class : ""]: true
|
|
73
73
|
})
|
|
74
74
|
}, [
|
|
@@ -76,14 +76,14 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
76
76
|
class: normalizeClass(["w-ripple-trigger isolate grid w-full items-center text-start focus:outline-none", {
|
|
77
77
|
"cursor-not-allowed": unref(isDisabled) && !unref(isSkeleton),
|
|
78
78
|
"opacity-50": unref(isDisabled) || unref(isSkeleton),
|
|
79
|
-
"cursor-progress":
|
|
80
|
-
"cursor-pointer": !unref(isReadonly) && !
|
|
79
|
+
"cursor-progress": __props.loading || unref(isSkeleton),
|
|
80
|
+
"cursor-pointer": !unref(isReadonly) && !__props.loading && !unref(isDisabled) && !unref(isSkeleton),
|
|
81
81
|
"cursor-auto select-text": unref(isReadonly),
|
|
82
82
|
"select-none": !unref(isReadonly),
|
|
83
|
-
"grid-cols-[1fr,auto]": (
|
|
84
|
-
"grid-cols-[auto,1fr]": (
|
|
85
|
-
"gap-4":
|
|
86
|
-
"justify-center":
|
|
83
|
+
"grid-cols-[1fr,auto]": (__props.title || _ctx.$slots.title) && !__props.rightLabel,
|
|
84
|
+
"grid-cols-[auto,1fr]": (__props.title || _ctx.$slots.title) && __props.rightLabel,
|
|
85
|
+
"gap-4": __props.title || _ctx.$slots.title,
|
|
86
|
+
"justify-center": __props.center
|
|
87
87
|
}]),
|
|
88
88
|
disabled: unref(isDisabled) || unref(isReadonly) || unref(isSkeleton),
|
|
89
89
|
role: "switch",
|
|
@@ -92,23 +92,23 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
92
92
|
"aria-readonly": unref(isReadonly),
|
|
93
93
|
onClick: updateModelValue
|
|
94
94
|
}, [
|
|
95
|
-
|
|
95
|
+
__props.title || _ctx.$slots.title ? (openBlock(), createElementBlock("div", {
|
|
96
96
|
key: 0,
|
|
97
97
|
class: normalizeClass(["text-accent font-semibold", {
|
|
98
|
-
"order-1":
|
|
99
|
-
"text-xs":
|
|
100
|
-
"text-base": !
|
|
98
|
+
"order-1": __props.rightLabel,
|
|
99
|
+
"text-xs": __props.small,
|
|
100
|
+
"text-base": !__props.small
|
|
101
101
|
}])
|
|
102
102
|
}, [
|
|
103
103
|
renderSlot(_ctx.$slots, "title", {}, () => [
|
|
104
|
-
createTextVNode(toDisplayString(
|
|
104
|
+
createTextVNode(toDisplayString(__props.title), 1)
|
|
105
105
|
])
|
|
106
106
|
], 2)) : createCommentVNode("", true),
|
|
107
107
|
createElementVNode("div", _hoisted_2, [
|
|
108
108
|
createElementVNode("div", {
|
|
109
109
|
class: normalizeClass(["width-[calc(var(--w-input-height)+0.5rem)] p-0.75 h-full rounded-full bg-[200%_auto] [background-position:right]", {
|
|
110
|
-
"bg-gray-300 dark:bg-gray-700": !value.value ||
|
|
111
|
-
[unref(semanticTypeBackgroundMap)[unref(SemanticType).PRIMARY]]: value.value && !
|
|
110
|
+
"bg-gray-300 dark:bg-gray-700": !value.value || __props.loading,
|
|
111
|
+
[unref(semanticTypeBackgroundMap)[unref(SemanticType).PRIMARY]]: value.value && !__props.loading
|
|
112
112
|
}])
|
|
113
113
|
}, [
|
|
114
114
|
createElementVNode("div", _hoisted_3, [
|
|
@@ -120,10 +120,10 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
120
120
|
"w-ripple w-ripple-hover": !unref(isDisabled) && !unref(isReadonly) && !unref(isSkeleton)
|
|
121
121
|
}])
|
|
122
122
|
}, [
|
|
123
|
-
|
|
123
|
+
__props.loading ? (openBlock(), createBlock(WSpinner, {
|
|
124
124
|
key: 0,
|
|
125
125
|
class: "text-description w-spinner-size-5"
|
|
126
|
-
})) :
|
|
126
|
+
})) : __props.icon ? (openBlock(), createBlock(resolveDynamicComponent(__props.icon), {
|
|
127
127
|
key: 1,
|
|
128
128
|
class: "square-4"
|
|
129
129
|
})) : createCommentVNode("", true)
|
|
@@ -132,7 +132,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
132
132
|
], 2)
|
|
133
133
|
])
|
|
134
134
|
], 10, _hoisted_1),
|
|
135
|
-
|
|
135
|
+
__props.description ? (openBlock(), createElementBlock("div", _hoisted_4, toDisplayString(__props.description), 1)) : createCommentVNode("", true)
|
|
136
136
|
], 2);
|
|
137
137
|
};
|
|
138
138
|
}
|
|
@@ -27,8 +27,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
27
27
|
return (_ctx, _cache) => {
|
|
28
28
|
return openBlock(), createBlock(_sfc_main$1, mergeProps({
|
|
29
29
|
...props,
|
|
30
|
-
modelValue:
|
|
31
|
-
icon:
|
|
30
|
+
modelValue: __props.modelValue === unref(Theme).LIGHT,
|
|
31
|
+
icon: __props.modelValue === unref(Theme).LIGHT ? markRaw(unref(IconSun)) : markRaw(unref(IconMoon))
|
|
32
32
|
}, {
|
|
33
33
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => _ctx.$emit("update:model-value", $event ? unref(Theme).LIGHT : unref(Theme).DARK))
|
|
34
34
|
}), null, 16);
|
|
@@ -75,7 +75,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
75
75
|
close
|
|
76
76
|
});
|
|
77
77
|
return (_ctx, _cache) => {
|
|
78
|
-
return !(
|
|
78
|
+
return !(__props.noTouch && unref(isTouchDevice)) ? (openBlock(), createElementBlock("span", _hoisted_1, null, 512)) : createCommentVNode("", true);
|
|
79
79
|
};
|
|
80
80
|
}
|
|
81
81
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"WTooltipContainer.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Tooltip/WTooltipContainer.vue"],"names":[],"mappings":"AA6CA;AAgFA,OAAO,EAAC,eAAe,EAAC,MAAM,yBAAyB,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"WTooltipContainer.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Tooltip/WTooltipContainer.vue"],"names":[],"mappings":"AA6CA;AAgFA,OAAO,EAAC,eAAe,EAAC,MAAM,yBAAyB,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oCAqL46gB,GAAG,8CAA8C,GAAG,yBAAyB,GAAG,6DAAmC,GAAG;;;;;;;;;;;;;AATzlhB,wBAOG"}
|
|
@@ -55,8 +55,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
55
55
|
key: unref(tooltipMeta).id
|
|
56
56
|
})) : unref(tooltipMeta).text ? (openBlock(), createElementBlock("div", _hoisted_1, toDisplayString(unref(tooltipMeta).text), 1)) : createCommentVNode("", true)
|
|
57
57
|
]),
|
|
58
|
-
_:
|
|
59
|
-
},
|
|
58
|
+
_: 1
|
|
59
|
+
}, 8, ["is-top", "is-left", "is-right"])
|
|
60
60
|
]),
|
|
61
61
|
_: 1
|
|
62
62
|
}, 8, ["parent-element", "horizontal-align", "top", "bottom", "onUpdate:rect"])) : createCommentVNode("", true)
|
|
@@ -14,25 +14,25 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
14
14
|
return (_ctx, _cache) => {
|
|
15
15
|
return openBlock(), createElementBlock("div", {
|
|
16
16
|
class: normalizeClass(["pointer-events-none flex items-center", {
|
|
17
|
-
"flex-col": !
|
|
18
|
-
"justify-end":
|
|
17
|
+
"flex-col": !__props.isLeft && !__props.isRight,
|
|
18
|
+
"justify-end": __props.isLeft
|
|
19
19
|
}])
|
|
20
20
|
}, [
|
|
21
21
|
(openBlock(), createElementBlock("svg", {
|
|
22
|
-
viewBox:
|
|
22
|
+
viewBox: __props.isLeft || __props.isRight ? "0 0 8 16" : "0 0 16 8",
|
|
23
23
|
class: normalizeClass(["pointer-events-auto z-10", {
|
|
24
|
-
"width-4 order-2 -mt-px mb-1":
|
|
25
|
-
"width-2 order-2 -ml-px mr-1":
|
|
26
|
-
"width-2 -mr-px ml-1":
|
|
27
|
-
"width-4 -mb-px mt-1": !
|
|
24
|
+
"width-4 order-2 -mt-px mb-1": __props.isTop,
|
|
25
|
+
"width-2 order-2 -ml-px mr-1": __props.isLeft,
|
|
26
|
+
"width-2 -mr-px ml-1": __props.isRight,
|
|
27
|
+
"width-4 -mb-px mt-1": !__props.isTop && !__props.isLeft && !__props.isRight
|
|
28
28
|
}]),
|
|
29
29
|
onMouseover: _cache[0] || (_cache[0] = ($event) => _ctx.$emit("over")),
|
|
30
30
|
onMouseleave: _cache[1] || (_cache[1] = ($event) => _ctx.$emit("leave"))
|
|
31
31
|
}, [
|
|
32
32
|
createElementVNode("g", {
|
|
33
|
-
transform:
|
|
33
|
+
transform: __props.isTop ? "rotate(0 0 0)" : __props.isLeft ? "rotate(-90 4 0)" : __props.isRight ? "rotate(90 0 -4)" : "rotate(180 0 0)",
|
|
34
34
|
"transform-origin": "center center"
|
|
35
|
-
}, _cache[4] || (_cache[4] = [
|
|
35
|
+
}, [..._cache[4] || (_cache[4] = [
|
|
36
36
|
createElementVNode("rect", {
|
|
37
37
|
width: "16",
|
|
38
38
|
height: "8",
|
|
@@ -50,11 +50,11 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
50
50
|
fill: "none",
|
|
51
51
|
class: "text-gray-400 dark:text-gray-600"
|
|
52
52
|
}, null, -1)
|
|
53
|
-
]), 8, _hoisted_2)
|
|
53
|
+
])], 8, _hoisted_2)
|
|
54
54
|
], 42, _hoisted_1)),
|
|
55
55
|
createElementVNode("div", {
|
|
56
56
|
ref: "container",
|
|
57
|
-
class: normalizeClass(["bg-black-default text-default pointer-events-auto max-w-[calc(100vw-1.5rem)] rounded-lg border border-solid border-gray-400 px-3 py-2 text-center text-xs font-medium shadow-md will-change-transform dark:border-gray-600 dark:bg-gray-800",
|
|
57
|
+
class: normalizeClass(["bg-black-default text-default pointer-events-auto max-w-[calc(100vw-1.5rem)] rounded-lg border border-solid border-gray-400 px-3 py-2 text-center text-xs font-medium shadow-md will-change-transform dark:border-gray-600 dark:bg-gray-800", __props.isLeft || __props.isRight ? void 0 : "w-tooltip-center-x"]),
|
|
58
58
|
onMouseover: _cache[2] || (_cache[2] = ($event) => _ctx.$emit("over")),
|
|
59
59
|
onMouseleave: _cache[3] || (_cache[3] = ($event) => _ctx.$emit("leave"))
|
|
60
60
|
}, [
|
|
@@ -211,9 +211,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
211
211
|
createElementVNode("div", _hoisted_11, " pagesOnScreen: " + toDisplayString(pagesOnScreen.value), 1),
|
|
212
212
|
createElementVNode("div", _hoisted_12, " virtualPageMap: " + toDisplayString(Array(virtualPageCount.value).fill(null).map((_, index) => virtualPageMap.value[index + 1])), 1)
|
|
213
213
|
]),
|
|
214
|
-
(openBlock(), createBlock(resolveDynamicComponent(
|
|
214
|
+
(openBlock(), createBlock(resolveDynamicComponent(__props.minHeight ? _sfc_main$1 : _sfc_main$2), {
|
|
215
215
|
"init-is-intersecting": visiblePage.value !== 1 ? false : void 0,
|
|
216
|
-
"no-header-update":
|
|
216
|
+
"no-header-update": __props.noHeaderUpdate
|
|
217
217
|
}, {
|
|
218
218
|
header: withCtx((headerScope) => [
|
|
219
219
|
renderSlot(_ctx.$slots, "header", normalizeProps(guardReactiveProps({ isFetching: unref(isFetching), isRefetchingAll: unref(isRefetchingAll), refetchAll: unref(refetchAll), ...headerScope })))
|
|
@@ -225,8 +225,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
225
225
|
"--infinite-list-header-height": defaultScope && "headerHeight" in defaultScope ? defaultScope.headerHeight + "px" : void 0
|
|
226
226
|
},
|
|
227
227
|
class: [{
|
|
228
|
-
"-min-h--height-inner list:pt-[--w-list-gap,1rem] pb-16": !
|
|
229
|
-
"min-h-full":
|
|
228
|
+
"-min-h--height-inner list:pt-[--w-list-gap,1rem] pb-16": !__props.minHeight,
|
|
229
|
+
"min-h-full": __props.minHeight
|
|
230
230
|
}, "relative"]
|
|
231
231
|
}), [
|
|
232
232
|
(openBlock(true), createElementBlock(Fragment, null, renderList(virtualPageCount.value, (index) => {
|
|
@@ -235,17 +235,17 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
235
235
|
ref_for: true,
|
|
236
236
|
ref: "page",
|
|
237
237
|
"virtual-index": index,
|
|
238
|
-
"use-query-fn":
|
|
239
|
-
"query-params":
|
|
240
|
-
"query-options":
|
|
238
|
+
"use-query-fn": __props.useQueryFn,
|
|
239
|
+
"query-params": __props.queryParams,
|
|
240
|
+
"query-options": __props.queryOptions,
|
|
241
241
|
page: virtualPageMap.value[index] ?? null,
|
|
242
242
|
"initial-page-height": averagePageHeight.value,
|
|
243
243
|
"skeleton-length": getSkeletonLength(virtualPageMap.value[index] ?? 0),
|
|
244
|
-
"empty-stub":
|
|
244
|
+
"empty-stub": __props.emptyStub,
|
|
245
245
|
style: normalizeStyle({
|
|
246
246
|
transform: `translateY(${!virtualPageMap.value[index] ? "-9999" : pagesTop.value[virtualPageMap.value[index] - 1]}px)`
|
|
247
247
|
}),
|
|
248
|
-
class: normalizeClass([
|
|
248
|
+
class: normalizeClass([__props.pageClass, "absolute left-0 top-0"]),
|
|
249
249
|
"onUpdate:pageCount": _cache[0] || (_cache[0] = ($event) => pageCount.value = $event),
|
|
250
250
|
"onUpdate:count": _cache[1] || (_cache[1] = ($event) => {
|
|
251
251
|
countValue.value = $event;
|
|
@@ -11,7 +11,7 @@ declare const _default: <Data extends {
|
|
|
11
11
|
}>) => any) | undefined;
|
|
12
12
|
readonly "onUpdate:page-count"?: ((value: number) => any) | undefined;
|
|
13
13
|
readonly "onUpdate:page-height"?: (() => any) | undefined;
|
|
14
|
-
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, never>, "onUpdate:count" | "
|
|
14
|
+
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, never>, "onUpdate:count" | "onRefetch" | "onUpdate:error" | "onUpdate:page-count" | "onUpdate:page-height"> & {
|
|
15
15
|
virtualIndex: number;
|
|
16
16
|
useQueryFn: UseQueryWithParams<PaginatedResponse<Data>, QueryParams>;
|
|
17
17
|
queryOptions?: Partial<QueryOptions<PaginatedResponse<Data>>>;
|
|
@@ -56,15 +56,15 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
56
56
|
});
|
|
57
57
|
return (_ctx, _cache) => {
|
|
58
58
|
return openBlock(), createElementBlock("div", _hoisted_1, [
|
|
59
|
-
createElementVNode("div", null, " virtualIndex: " + toDisplayString(
|
|
59
|
+
createElementVNode("div", null, " virtualIndex: " + toDisplayString(__props.virtualIndex), 1),
|
|
60
60
|
(openBlock(true), createElementBlock(Fragment, null, renderList(unref(data)?.results ?? skeletonItems.value, (item, index) => {
|
|
61
61
|
return renderSlot(_ctx.$slots, "default", mergeProps({
|
|
62
62
|
key: item.id,
|
|
63
63
|
ref_for: true
|
|
64
|
-
}, { item, updatePageHeight, index, page:
|
|
64
|
+
}, { item, updatePageHeight, index, page: __props.page, refetch: emitRefetch }));
|
|
65
65
|
}), 128)),
|
|
66
66
|
unref(data)?.results.length === 0 ? renderSlot(_ctx.$slots, "empty", { key: 0 }, () => [
|
|
67
|
-
createElementVNode("div", _hoisted_2, toDisplayString(
|
|
67
|
+
createElementVNode("div", _hoisted_2, toDisplayString(__props.emptyStub ?? "Nothing to show"), 1)
|
|
68
68
|
]) : createCommentVNode("", true)
|
|
69
69
|
], 512);
|
|
70
70
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useQueryUpdater.d.ts","sourceRoot":"","sources":["../../../src/utils/useQueryUpdater.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"useQueryUpdater.d.ts","sourceRoot":"","sources":["../../../src/utils/useQueryUpdater.ts"],"names":[],"mappings":"AAAA,OAAO,EAAc,KAAK,YAAY,EAAiB,MAAM,qBAAqB,CAAA;AAElF,eAAO,MAAM,wBAAwB,GAAI,IAAI,SAAS,WAAW,EAAE,SAAS,iBAAiB,CAAC,IAAI,CAAC,GAAG,SAAS,EAAE,WAAW,IAAI,EAAE,EAAE,UAAU,MAAM,EAAE,EAAE,0BAAwB,KAAG,iBAAiB,CAAC,IAAI,CAAC,GAAG,SAuB5M,CAAA;AAED,eAAO,MAAM,eAAe;aAGV,KAAK,SAAS,WAAW,QAAQ,KAAK,WAAW;QAAC,eAAe,CAAC,EAAE,YAAY,CAAC;QAAC,oBAAoB,CAAC,EAAE,YAAY,CAAA;KAAC;iBAwBlH,KAAK,SAAS,WAAW,QAAQ,KAAK,EAAE,UAAU,YAAY;aAM7D,KAAK,SAAS,WAAW,UAAU,YAAY,YAAY,MAAM,EAAE;CAYzF,CAAA"}
|
package/package.json
CHANGED
|
@@ -4,25 +4,25 @@
|
|
|
4
4
|
"type": "git",
|
|
5
5
|
"url": "https://github.com/rsmple/eco-vue-js.git"
|
|
6
6
|
},
|
|
7
|
-
"version": "0.11.
|
|
7
|
+
"version": "0.11.59",
|
|
8
8
|
"dependencies": {
|
|
9
|
-
"@stylistic/eslint-plugin": "5.
|
|
10
|
-
"@tanstack/eslint-plugin-query": "5.
|
|
9
|
+
"@stylistic/eslint-plugin": "5.6.1",
|
|
10
|
+
"@tanstack/eslint-plugin-query": "5.91.2",
|
|
11
11
|
"@vue/eslint-config-typescript": "14.6.0",
|
|
12
12
|
"eslint-import-resolver-typescript": "4.4.4",
|
|
13
13
|
"eslint-plugin-import": "2.32.0",
|
|
14
|
-
"eslint-plugin-jsonc": "2.
|
|
15
|
-
"eslint-plugin-svgo": "0.11.
|
|
14
|
+
"eslint-plugin-jsonc": "2.21.0",
|
|
15
|
+
"eslint-plugin-svgo": "0.11.3",
|
|
16
16
|
"eslint-plugin-tailwindcss": "3.18.2",
|
|
17
|
-
"eslint-plugin-unused-imports": "4.
|
|
18
|
-
"eslint-plugin-vue": "10.
|
|
17
|
+
"eslint-plugin-unused-imports": "4.3.0",
|
|
18
|
+
"eslint-plugin-vue": "10.6.2"
|
|
19
19
|
},
|
|
20
20
|
"peerDependencies": {
|
|
21
|
-
"@tanstack/vue-query": ">=5.
|
|
22
|
-
"vue": ">=3.5.
|
|
21
|
+
"@tanstack/vue-query": ">=5.92.1",
|
|
22
|
+
"vue": ">=3.5.25"
|
|
23
23
|
},
|
|
24
24
|
"peerDependenciesOptional": {
|
|
25
|
-
"vue-router": ">=4.4
|
|
25
|
+
"vue-router": ">=4.6.4"
|
|
26
26
|
},
|
|
27
27
|
"peerDependenciesMeta": {
|
|
28
28
|
"vue-router": {
|