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
|
@@ -90,21 +90,21 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
90
90
|
width: svgWidth.value,
|
|
91
91
|
class: "min-w-0"
|
|
92
92
|
}, [
|
|
93
|
-
!
|
|
93
|
+
!__props.xHidden ? (openBlock(), createBlock(_sfc_main$2, {
|
|
94
94
|
key: 0,
|
|
95
95
|
orientation: "x",
|
|
96
96
|
scale: scaleX,
|
|
97
97
|
format: (value) => unref(dateFormat)(new Date(value)),
|
|
98
98
|
domain: xExtent.value,
|
|
99
|
-
transform: `translate(0, ${svgHeight.value -
|
|
99
|
+
transform: `translate(0, ${svgHeight.value - __props.bottom})`
|
|
100
100
|
}, null, 8, ["format", "domain", "transform"])) : createCommentVNode("", true),
|
|
101
|
-
!
|
|
101
|
+
!__props.yHidden ? (openBlock(), createBlock(_sfc_main$2, {
|
|
102
102
|
key: 1,
|
|
103
103
|
orientation: "y",
|
|
104
104
|
scale: scaleY,
|
|
105
105
|
domain: yDomainComputed.value,
|
|
106
|
-
format:
|
|
107
|
-
transform: `translate(${
|
|
106
|
+
format: __props.yFormat,
|
|
107
|
+
transform: `translate(${__props.left}, 0)`
|
|
108
108
|
}, null, 8, ["domain", "format", "transform"])) : createCommentVNode("", true),
|
|
109
109
|
!unref(isSkeleton) ? renderSlot(_ctx.$slots, "default", {
|
|
110
110
|
key: 2,
|
|
@@ -112,10 +112,10 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
112
112
|
scaleY,
|
|
113
113
|
svgWidth: svgWidth.value,
|
|
114
114
|
svgHeight: svgHeight.value,
|
|
115
|
-
top:
|
|
116
|
-
bottom:
|
|
117
|
-
left:
|
|
118
|
-
right:
|
|
115
|
+
top: __props.top,
|
|
116
|
+
bottom: __props.bottom,
|
|
117
|
+
left: __props.left,
|
|
118
|
+
right: __props.right,
|
|
119
119
|
xExtent: xExtent.value,
|
|
120
120
|
onUpdateDomain: handleDomainUpdate
|
|
121
121
|
}) : createCommentVNode("", true)
|
|
@@ -17,19 +17,19 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
17
17
|
return openBlock(), createElementBlock("g", {
|
|
18
18
|
class: "text-description font-medium",
|
|
19
19
|
"font-size": "8",
|
|
20
|
-
transform:
|
|
20
|
+
transform: __props.transform
|
|
21
21
|
}, [
|
|
22
|
-
(openBlock(true), createElementBlock(Fragment, null, renderList(
|
|
22
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(__props.domain, (item) => {
|
|
23
23
|
return openBlock(), createElementBlock("g", {
|
|
24
24
|
key: item,
|
|
25
|
-
transform: `translate(${
|
|
25
|
+
transform: `translate(${__props.orientation === "x" ? `${__props.scale(item)}, 0` : `0, ${__props.scale(item)}`})`
|
|
26
26
|
}, [
|
|
27
|
-
createElementVNode("line", mergeProps({ ref_for: true },
|
|
27
|
+
createElementVNode("line", mergeProps({ ref_for: true }, __props.orientation === "x" ? { y2: 6 } : { x2: -6 }, { stroke: "currentcolor" }), null, 16),
|
|
28
28
|
createElementVNode("text", mergeProps(
|
|
29
29
|
{ ref_for: true },
|
|
30
|
-
|
|
30
|
+
__props.orientation === "x" ? { y: 8, dy: "0.72em", "text-anchor": "middle" } : { x: -9, dy: "0.32em", "text-anchor": "end" },
|
|
31
31
|
{ fill: "currentcolor" }
|
|
32
|
-
), toDisplayString(
|
|
32
|
+
), toDisplayString(__props.format?.(item) ?? unref(numberCompactFormatter).format(item)), 17)
|
|
33
33
|
], 8, _hoisted_2);
|
|
34
34
|
}), 128))
|
|
35
35
|
], 8, _hoisted_1);
|
|
@@ -41,28 +41,28 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
41
41
|
return (_ctx, _cache) => {
|
|
42
42
|
return openBlock(), createElementBlock("button", mergeProps({ ref: "element" }, { class: _ctx.$attrs.class, style: _ctx.$attrs.style }, {
|
|
43
43
|
class: ["w-ripple-trigger w-hover-circle-trigger w-hover-circle-opacity-[0.08] flex select-none gap-2 outline-none", {
|
|
44
|
-
"cursor-progress":
|
|
44
|
+
"cursor-progress": __props.loading || unref(isSkeleton),
|
|
45
45
|
"cursor-not-allowed opacity-70": unref(isDisabled) || unref(isSkeleton),
|
|
46
|
-
"cursor-pointer": !unref(isDisabled) && !
|
|
46
|
+
"cursor-pointer": !unref(isDisabled) && !__props.loading && !unref(isReadonly) && !unref(isSkeleton),
|
|
47
47
|
"cursor-auto": unref(isReadonly),
|
|
48
|
-
"pb-4 pt-1":
|
|
49
|
-
"items-start":
|
|
50
|
-
"items-center": !
|
|
48
|
+
"pb-4 pt-1": __props.title && !__props.noMargin,
|
|
49
|
+
"items-start": __props.alignTop,
|
|
50
|
+
"items-center": !__props.alignTop
|
|
51
51
|
}],
|
|
52
|
-
role:
|
|
53
|
-
"aria-checked":
|
|
52
|
+
role: __props.radio ? "radio" : "checkbox",
|
|
53
|
+
"aria-checked": __props.modelValue === null ? "mixed" : __props.modelValue,
|
|
54
54
|
"aria-disabled": unref(isDisabled) || unref(isSkeleton),
|
|
55
55
|
"aria-readonly": unref(isReadonly),
|
|
56
56
|
onClick: toggle
|
|
57
57
|
}), [
|
|
58
58
|
createElementVNode("div", {
|
|
59
59
|
class: normalizeClass(["square-[1.5em] bg-default dark:bg-default-dark relative isolate flex items-center justify-center border border-solid [font-size:--w-checkbox-size]", {
|
|
60
|
-
"text-[--w-checkbox-color,#ffffff]":
|
|
61
|
-
"text-primary dark:text-primary-dark": !
|
|
62
|
-
"text-gray-300 dark:text-gray-700": !
|
|
60
|
+
"text-[--w-checkbox-color,#ffffff]": __props.modelValue && !unref(isDisabled) && !unref(isSkeleton),
|
|
61
|
+
"text-primary dark:text-primary-dark": !__props.modelValue && !unref(isDisabled) && !unref(isSkeleton),
|
|
62
|
+
"text-gray-300 dark:text-gray-700": !__props.modelValue && unref(isDisabled) && !unref(isSkeleton),
|
|
63
63
|
"w-ripple w-hover-circle before:text-accent after:text-accent": !unref(isDisabled) && !unref(isReadonly) && !unref(isSkeleton),
|
|
64
|
-
"rounded-full":
|
|
65
|
-
"rounded-md": !
|
|
64
|
+
"rounded-full": __props.radio,
|
|
65
|
+
"rounded-md": !__props.radio,
|
|
66
66
|
"border-gray-300 dark:border-gray-700": unref(isDisabled) || unref(isSkeleton),
|
|
67
67
|
"border-primary dark:border-primary-dark [.w-hover-checked:hover_&]:text-default": !unref(isDisabled) && !unref(isSkeleton)
|
|
68
68
|
}]),
|
|
@@ -71,52 +71,52 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
71
71
|
createVNode(Transition, {
|
|
72
72
|
"enter-active-class": "transition-[opacity,transform]",
|
|
73
73
|
"leave-active-class": "transition-[opacity,transform]",
|
|
74
|
-
"enter-from-class":
|
|
75
|
-
"leave-to-class":
|
|
76
|
-
css: !
|
|
74
|
+
"enter-from-class": __props.radio ? "opacity-0 scale-[0.25!important]" : "opacity-0 scale-[0.50!important]",
|
|
75
|
+
"leave-to-class": __props.radio ? "opacity-0 scale-[0.25!important]" : "opacity-0 scale-[0.50!important]",
|
|
76
|
+
css: !__props.lessTransitions
|
|
77
77
|
}, {
|
|
78
78
|
default: withCtx(() => [
|
|
79
79
|
withDirectives(createElementVNode("div", {
|
|
80
80
|
class: normalizeClass(["square-full absolute -z-10", {
|
|
81
|
-
"scale-[0.33] rounded-full":
|
|
82
|
-
"scale-[0.66] rounded": !
|
|
83
|
-
"scale-[0.66] rounded-full":
|
|
84
|
-
"rounded": !
|
|
81
|
+
"scale-[0.33] rounded-full": __props.radio && __props.intermediate && __props.modelValue === null,
|
|
82
|
+
"scale-[0.66] rounded": !__props.radio && __props.intermediate && __props.modelValue === null,
|
|
83
|
+
"scale-[0.66] rounded-full": __props.radio && !(__props.intermediate && __props.modelValue === null),
|
|
84
|
+
"rounded": !__props.radio && !(__props.intermediate && __props.modelValue === null),
|
|
85
85
|
"bg-primary dark:bg-primary-dark [.w-hover-checked:hover_&]:[display:block!important]": !unref(isDisabled) && !unref(isSkeleton),
|
|
86
86
|
"bg-gray-300 dark:bg-gray-700": unref(isDisabled) || unref(isSkeleton),
|
|
87
|
-
"transition-[opacity,transform]": !
|
|
87
|
+
"transition-[opacity,transform]": !__props.lessTransitions
|
|
88
88
|
}])
|
|
89
89
|
}, null, 2), [
|
|
90
|
-
[vShow,
|
|
90
|
+
[vShow, __props.modelValue !== false]
|
|
91
91
|
])
|
|
92
92
|
]),
|
|
93
93
|
_: 1
|
|
94
94
|
}, 8, ["enter-from-class", "leave-to-class", "css"]),
|
|
95
|
-
|
|
95
|
+
__props.loading ? (openBlock(), createBlock(WSpinner, {
|
|
96
96
|
key: 0,
|
|
97
97
|
class: "w-spinner-size-[1em]"
|
|
98
|
-
})) :
|
|
98
|
+
})) : __props.icon ? (openBlock(), createBlock(resolveDynamicComponent(__props.icon), {
|
|
99
99
|
key: 1,
|
|
100
100
|
class: "square-[1em]"
|
|
101
|
-
})) : !
|
|
101
|
+
})) : !__props.radio ? withDirectives((openBlock(), createBlock(unref(IconCheck), {
|
|
102
102
|
key: 2,
|
|
103
103
|
class: normalizeClass(["square-[1em]", {
|
|
104
104
|
"[.w-hover-checked:hover_&]:[display:block!important]": !unref(isDisabled) && !unref(isSkeleton)
|
|
105
105
|
}])
|
|
106
106
|
}, null, 8, ["class"])), [
|
|
107
|
-
[vShow,
|
|
107
|
+
[vShow, __props.modelValue]
|
|
108
108
|
]) : createCommentVNode("", true),
|
|
109
|
-
|
|
109
|
+
__props.tooltipText && !unref(isDisabled) && !unref(isSkeleton) ? (openBlock(), createBlock(_sfc_main$1, {
|
|
110
110
|
key: 3,
|
|
111
|
-
text:
|
|
112
|
-
trigger:
|
|
111
|
+
text: __props.tooltipText,
|
|
112
|
+
trigger: elementRef.value,
|
|
113
113
|
"no-touch": "",
|
|
114
114
|
class: "pointer-events-none"
|
|
115
115
|
}, null, 8, ["text", "trigger"])) : createCommentVNode("", true)
|
|
116
116
|
], 42, _hoisted_2),
|
|
117
|
-
_ctx.$slots.default ||
|
|
117
|
+
_ctx.$slots.default || __props.title ? (openBlock(), createElementBlock("div", _hoisted_3, [
|
|
118
118
|
renderSlot(_ctx.$slots, "default", {}, () => [
|
|
119
|
-
createTextVNode(toDisplayString(
|
|
119
|
+
createTextVNode(toDisplayString(__props.title), 1)
|
|
120
120
|
])
|
|
121
121
|
])) : createCommentVNode("", true)
|
|
122
122
|
], 16, _hoisted_1);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"WCheckboxGroup.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Checkbox/WCheckboxGroup.vue"],"names":[],"mappings":"AAwEA;AAgHA,OAAO,KAAK,EAAC,kBAAkB,EAAwB,MAAM,SAAS,CAAA;yBAQrD,KAAK,SAAS,MAAM,GAAG,MAAM,GAAG,IAAI,GAAG,OAAO,EAAE,MAAM,SAAS,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAAE,WAAW,SAAS;IAAC,EAAE,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,CAAA;CAAC,CAAC,IAAI,CAAC,GAAG,SAAS,GAAG,SAAS,EACpL,aAAa,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,CAAC,OAAO,CAAC,EAC9D,YAAY,mBAAmB,CAAC,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,EAAE,OAAO,GAAG,MAAM,GAAG,OAAO,CAAC,CAAC,EAC3G,eAAe,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,CAAC,QAAQ,CAAC,EACjE;
|
|
1
|
+
{"version":3,"file":"WCheckboxGroup.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Checkbox/WCheckboxGroup.vue"],"names":[],"mappings":"AAwEA;AAgHA,OAAO,KAAK,EAAC,kBAAkB,EAAwB,MAAM,SAAS,CAAA;yBAQrD,KAAK,SAAS,MAAM,GAAG,MAAM,GAAG,IAAI,GAAG,OAAO,EAAE,MAAM,SAAS,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAAE,WAAW,SAAS;IAAC,EAAE,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,CAAA;CAAC,CAAC,IAAI,CAAC,GAAG,SAAS,GAAG,SAAS,EACpL,aAAa,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,CAAC,OAAO,CAAC,EAC9D,YAAY,mBAAmB,CAAC,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,EAAE,OAAO,GAAG,MAAM,GAAG,OAAO,CAAC,CAAC,EAC3G,eAAe,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,CAAC,QAAQ,CAAC,EACjE;WAqMO,mBAAmB,CAAC;;2MAAkE,CAAC,4BAA2B;oBACzG,OAAO,KAAK,EAAE,gBAAgB,CAAC,EAAE,CAAC,GAAG,IAAI;WAClD,GAAG;;uBApCgB,GAAG;0BACA,GAAG;;;;YACJ,GAAG;uBACJ,GAAG;;cA/JzB,oBAAoB,SAAS,KAAK,KAAG,IAAI;EAoM3C,KACQ,OAAO,KAAK,EAAE,KAAK,GAAG;IAAE,KAAK,CAAC,EAAE,OAAO,CAAC,OAAO,WAAW,CAAC,CAAA;CAAE;AAhNzE,wBAgN4E;AAC5E,KAAK,mBAAmB,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG,EAAE,CAAC"}
|
|
@@ -8,7 +8,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
8
8
|
props: {
|
|
9
9
|
list: {},
|
|
10
10
|
valueGetter: { type: Function },
|
|
11
|
-
optionComponent: {},
|
|
11
|
+
optionComponent: { type: [Object, Function] },
|
|
12
12
|
modelValue: {},
|
|
13
13
|
wrap: { type: Boolean },
|
|
14
14
|
stretch: { type: Boolean },
|
|
@@ -73,38 +73,35 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
73
73
|
field: withCtx(() => [
|
|
74
74
|
createElementVNode("div", {
|
|
75
75
|
class: normalizeClass({
|
|
76
|
-
"flex flex-wrap items-center gap-x-4":
|
|
77
|
-
"flex items-center gap-x-4 [&>*]:flex-1":
|
|
78
|
-
"col-span-full grid grid-cols-subgrid":
|
|
76
|
+
"flex flex-wrap items-center gap-x-4": __props.wrap,
|
|
77
|
+
"flex items-center gap-x-4 [&>*]:flex-1": __props.stretch,
|
|
78
|
+
"col-span-full grid grid-cols-subgrid": __props.subgrid
|
|
79
79
|
})
|
|
80
80
|
}, [
|
|
81
|
-
(openBlock(true), createElementBlock(Fragment, null, renderList(
|
|
82
|
-
return openBlock(), createBlock(_sfc_main$2, mergeProps({
|
|
83
|
-
key: index,
|
|
84
|
-
ref_for: true
|
|
85
|
-
}, {
|
|
81
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(__props.list, (item, index) => {
|
|
82
|
+
return openBlock(), createBlock(_sfc_main$2, mergeProps({ key: index }, { ref_for: true }, {
|
|
86
83
|
...props,
|
|
87
|
-
modelValue: getValue(item) ===
|
|
88
|
-
title:
|
|
89
|
-
tooltipText:
|
|
90
|
-
icon:
|
|
91
|
-
loading:
|
|
92
|
-
disabled:
|
|
84
|
+
modelValue: getValue(item) === __props.modelValue,
|
|
85
|
+
title: __props.titleMap?.[getValue(item).toString()],
|
|
86
|
+
tooltipText: __props.tooltipTextMap?.[getValue(item).toString()],
|
|
87
|
+
icon: __props.iconMap?.[getValue(item).toString()],
|
|
88
|
+
loading: __props.loading && getValue(item) === loadingItem.value,
|
|
89
|
+
disabled: __props.disabled || __props.loading && getValue(item) !== loadingItem.value
|
|
93
90
|
}, {
|
|
94
|
-
class: [
|
|
91
|
+
class: [__props.classMap?.[getValue(item).toString()], __props.optionClass],
|
|
95
92
|
"onUpdate:modelValue": ($event) => updateModelValue(getValue(item))
|
|
96
93
|
}), createSlots({ _: 2 }, [
|
|
97
|
-
_ctx.$slots.option ||
|
|
94
|
+
_ctx.$slots.option || __props.optionComponent ? {
|
|
98
95
|
name: "default",
|
|
99
96
|
fn: withCtx(() => [
|
|
100
97
|
renderSlot(_ctx.$slots, "option", {
|
|
101
98
|
option: item,
|
|
102
|
-
selected: getValue(item) ===
|
|
99
|
+
selected: getValue(item) === __props.modelValue
|
|
103
100
|
}, () => [
|
|
104
|
-
|
|
101
|
+
__props.optionComponent ? (openBlock(), createBlock(resolveDynamicComponent(__props.optionComponent), {
|
|
105
102
|
key: 0,
|
|
106
103
|
option: item,
|
|
107
|
-
selected: getValue(item) ===
|
|
104
|
+
selected: getValue(item) === __props.modelValue
|
|
108
105
|
}, null, 8, ["option", "selected"])) : createCommentVNode("", true)
|
|
109
106
|
])
|
|
110
107
|
]),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"WCheckboxGroupMultiple.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Checkbox/WCheckboxGroupMultiple.vue"],"names":[],"mappings":"AAyEA;AA8GA,OAAO,KAAK,EAAC,0BAA0B,EAAwB,MAAM,SAAS,CAAA;yBAQ7D,KAAK,SAAS,MAAM,GAAG,MAAM,GAAG,IAAI,GAAG,OAAO,EAAE,MAAM,SAAS,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAAE,WAAW,SAAS;IAAC,EAAE,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,CAAA;CAAC,CAAC,IAAI,CAAC,GAAG,SAAS,GAAG,SAAS,EACpL,aAAa,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,CAAC,OAAO,CAAC,EAC9D,YAAY,mBAAmB,CAAC,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,EAAE,OAAO,GAAG,MAAM,GAAG,OAAO,CAAC,CAAC,EAC3G,eAAe,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,CAAC,QAAQ,CAAC,EACjE;
|
|
1
|
+
{"version":3,"file":"WCheckboxGroupMultiple.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Checkbox/WCheckboxGroupMultiple.vue"],"names":[],"mappings":"AAyEA;AA8GA,OAAO,KAAK,EAAC,0BAA0B,EAAwB,MAAM,SAAS,CAAA;yBAQ7D,KAAK,SAAS,MAAM,GAAG,MAAM,GAAG,IAAI,GAAG,OAAO,EAAE,MAAM,SAAS,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAAE,WAAW,SAAS;IAAC,EAAE,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,CAAA;CAAC,CAAC,IAAI,CAAC,GAAG,SAAS,GAAG,SAAS,EACpL,aAAa,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,CAAC,OAAO,CAAC,EAC9D,YAAY,mBAAmB,CAAC,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,EAAE,OAAO,GAAG,MAAM,GAAG,OAAO,CAAC,CAAC,EAC3G,eAAe,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,CAAC,QAAQ,CAAC,EACjE;WAuMO,mBAAmB,CAAC;;;sNAAkE,CAAC,4BAA2B;oBACzG,OAAO,KAAK,EAAE,gBAAgB,CAAC,EAAE,CAAC,GAAG,IAAI;WAClD,GAAG;;uBApCgB,GAAG;0BACA,GAAG;;;;YACJ,GAAG;uBACJ,GAAG;;;YAjKzB,QAAQ,SAAS,KAAK,GAAG,IAAI;YAC7B,UAAU,SAAS,KAAK,GAAG,IAAI;;EAqMjC,KACQ,OAAO,KAAK,EAAE,KAAK,GAAG;IAAE,KAAK,CAAC,EAAE,OAAO,CAAC,OAAO,WAAW,CAAC,CAAA;CAAE;AAlNzE,wBAkN4E;AAC5E,KAAK,mBAAmB,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG,EAAE,CAAC"}
|
|
@@ -8,7 +8,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
8
8
|
props: {
|
|
9
9
|
list: {},
|
|
10
10
|
valueGetter: { type: Function },
|
|
11
|
-
optionComponent: {},
|
|
11
|
+
optionComponent: { type: [Object, Function] },
|
|
12
12
|
modelValue: {},
|
|
13
13
|
wrap: { type: Boolean },
|
|
14
14
|
stretch: { type: Boolean },
|
|
@@ -72,37 +72,34 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
72
72
|
field: withCtx(() => [
|
|
73
73
|
createElementVNode("div", {
|
|
74
74
|
class: normalizeClass({
|
|
75
|
-
"flex flex-wrap gap-x-4":
|
|
76
|
-
"flex gap-x-4 [&>*]:flex-1":
|
|
75
|
+
"flex flex-wrap gap-x-4": __props.wrap,
|
|
76
|
+
"flex gap-x-4 [&>*]:flex-1": __props.stretch
|
|
77
77
|
})
|
|
78
78
|
}, [
|
|
79
|
-
(openBlock(true), createElementBlock(Fragment, null, renderList(
|
|
80
|
-
return openBlock(), createBlock(_sfc_main$2, mergeProps({
|
|
81
|
-
key: index,
|
|
82
|
-
ref_for: true
|
|
83
|
-
}, {
|
|
79
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(__props.list, (item, index) => {
|
|
80
|
+
return openBlock(), createBlock(_sfc_main$2, mergeProps({ key: index }, { ref_for: true }, {
|
|
84
81
|
...props,
|
|
85
|
-
modelValue:
|
|
86
|
-
title:
|
|
87
|
-
tooltipText:
|
|
88
|
-
icon:
|
|
89
|
-
loading:
|
|
90
|
-
disabled:
|
|
82
|
+
modelValue: __props.modelValue.includes(getValue(item)),
|
|
83
|
+
title: __props.titleMap?.[getValue(item).toString()],
|
|
84
|
+
tooltipText: __props.tooltipTextMap?.[getValue(item).toString()],
|
|
85
|
+
icon: __props.iconMap?.[getValue(item).toString()],
|
|
86
|
+
loading: __props.loading && getValue(item) === loadingItem.value,
|
|
87
|
+
disabled: __props.disabled || __props.loading && getValue(item) !== loadingItem.value
|
|
91
88
|
}, {
|
|
92
|
-
class: [
|
|
89
|
+
class: [__props.classMap?.[getValue(item).toString()], __props.optionClass],
|
|
93
90
|
"onUpdate:modelValue": ($event) => emitUpdateModelValue(getValue(item))
|
|
94
91
|
}), createSlots({ _: 2 }, [
|
|
95
|
-
_ctx.$slots.option ||
|
|
92
|
+
_ctx.$slots.option || __props.optionComponent ? {
|
|
96
93
|
name: "default",
|
|
97
94
|
fn: withCtx(() => [
|
|
98
95
|
renderSlot(_ctx.$slots, "option", {
|
|
99
96
|
option: item,
|
|
100
|
-
selected:
|
|
97
|
+
selected: __props.modelValue.includes(getValue(item))
|
|
101
98
|
}, () => [
|
|
102
|
-
|
|
99
|
+
__props.optionComponent ? (openBlock(), createBlock(resolveDynamicComponent(__props.optionComponent), {
|
|
103
100
|
key: 0,
|
|
104
101
|
option: item,
|
|
105
|
-
selected:
|
|
102
|
+
selected: __props.modelValue.includes(getValue(item))
|
|
106
103
|
}, null, 8, ["option", "selected"])) : createCommentVNode("", true)
|
|
107
104
|
])
|
|
108
105
|
]),
|
|
@@ -27,10 +27,10 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
27
27
|
class: "w-skeleton-h-5 max-w-28"
|
|
28
28
|
})) : (openBlock(), createElementBlock("div", {
|
|
29
29
|
key: 1,
|
|
30
|
-
class: normalizeClass(["w-min rounded-md bg-gray-100 px-2 py-0.5 text-xs font-semibold dark:bg-gray-800", classMap[
|
|
30
|
+
class: normalizeClass(["w-min rounded-md bg-gray-100 px-2 py-0.5 text-xs font-semibold dark:bg-gray-800", classMap[__props.semanticType]])
|
|
31
31
|
}, [
|
|
32
32
|
renderSlot(_ctx.$slots, "default", {}, () => [
|
|
33
|
-
createTextVNode(toDisplayString(
|
|
33
|
+
createTextVNode(toDisplayString(__props.text), 1)
|
|
34
34
|
])
|
|
35
35
|
], 2));
|
|
36
36
|
};
|
|
@@ -27,7 +27,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
27
27
|
class: normalizeClass(["bg-negative dark:bg-negative-dark text-default flex min-w-[1.25em] items-center justify-center rounded-full px-[0.375em] font-medium leading-tight", {
|
|
28
28
|
"animate-shake": isShake.value
|
|
29
29
|
}])
|
|
30
|
-
}, toDisplayString(unref(numberCompactFormatter).format(
|
|
30
|
+
}, toDisplayString(unref(numberCompactFormatter).format(__props.count)), 3);
|
|
31
31
|
};
|
|
32
32
|
}
|
|
33
33
|
});
|
|
@@ -122,8 +122,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
122
122
|
"start-of-month": currentDate.value,
|
|
123
123
|
"date-range": dateRange.value,
|
|
124
124
|
"is-hover-enabled": preselectedValue.value !== null,
|
|
125
|
-
"min-date":
|
|
126
|
-
"max-date":
|
|
125
|
+
"min-date": __props.minDate,
|
|
126
|
+
"max-date": __props.maxDate,
|
|
127
127
|
today: today.value && unref(isSameMonth)(today.value, currentDate.value) ? today.value : void 0,
|
|
128
128
|
readonly: unref(isReadonly) || unref(isDisabled) || unref(isSkeleton),
|
|
129
129
|
class: "px-3",
|
|
@@ -77,8 +77,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
77
77
|
"start-of-month": currentDate.value,
|
|
78
78
|
"date-range": dateRange.value,
|
|
79
79
|
"is-hover-enabled": preselectedValue.value !== null,
|
|
80
|
-
"min-date":
|
|
81
|
-
"max-date":
|
|
80
|
+
"min-date": __props.minDate,
|
|
81
|
+
"max-date": __props.maxDate,
|
|
82
82
|
today: today.value,
|
|
83
83
|
readonly: unref(isReadonly) || unref(isDisabled) || unref(isSkeleton),
|
|
84
84
|
class: "px-3",
|
|
@@ -64,16 +64,16 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
64
64
|
"text-description": !isSelected.value && isOutOfMonth.value,
|
|
65
65
|
"text-default dark:text-default-dark selected": isSelected.value,
|
|
66
66
|
"cursor-not-allowed": isDisabled.value,
|
|
67
|
-
"cursor-pointer": !isDisabled.value && !
|
|
68
|
-
"hover-enabled":
|
|
67
|
+
"cursor-pointer": !isDisabled.value && !__props.readonly,
|
|
68
|
+
"hover-enabled": __props.isHoverEnabled
|
|
69
69
|
}]),
|
|
70
|
-
onClick: _cache[0] || (_cache[0] = ($event) => !isDisabled.value && !
|
|
71
|
-
onMouseenter: _cache[1] || (_cache[1] = ($event) => !isDisabled.value && !
|
|
70
|
+
onClick: _cache[0] || (_cache[0] = ($event) => !isDisabled.value && !__props.readonly && _ctx.$emit("click:day", __props.startOfDay)),
|
|
71
|
+
onMouseenter: _cache[1] || (_cache[1] = ($event) => !isDisabled.value && !__props.readonly && __props.isHoverEnabled && _ctx.$emit("hover:day", __props.startOfDay))
|
|
72
72
|
}, [
|
|
73
73
|
withDirectives(createElementVNode("div", {
|
|
74
74
|
class: normalizeClass(["absolute h-9 opacity-50", {
|
|
75
|
-
"border-primary border-y border-solid":
|
|
76
|
-
"bg-primary dark:bg-primary-dark": !
|
|
75
|
+
"border-primary border-y border-solid": __props.isHoverEnabled && !isDisabled.value,
|
|
76
|
+
"bg-primary dark:bg-primary-dark": !__props.isHoverEnabled && !isDisabled.value,
|
|
77
77
|
"bg-gray-200 dark:bg-gray-700": isDisabled.value,
|
|
78
78
|
"w-full": isBetweenRange.value || isDisabled.value,
|
|
79
79
|
"left-1/2 w-1/2": isFrom.value && !isTo.value,
|
|
@@ -84,13 +84,13 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
84
84
|
]),
|
|
85
85
|
createElementVNode("div", {
|
|
86
86
|
class: normalizeClass(["square-9 relative flex items-center justify-center rounded-full", {
|
|
87
|
-
"w-ripple w-ripple-hover": !isDisabled.value && !
|
|
87
|
+
"w-ripple w-ripple-hover": !isDisabled.value && !__props.readonly,
|
|
88
88
|
"opacity-50": isDisabled.value,
|
|
89
89
|
"bg-primary dark:bg-primary-dark font-semibold text-[--w-date-picker-day,#ffffff]": isSelected.value,
|
|
90
|
-
"bg-negative dark:bg-negative-dark font-semibold text-[--w-date-picker-day,#ffffff]": !isSelected.value &&
|
|
90
|
+
"bg-negative dark:bg-negative-dark font-semibold text-[--w-date-picker-day,#ffffff]": !isSelected.value && __props.isToday
|
|
91
91
|
}])
|
|
92
92
|
}, [
|
|
93
|
-
createElementVNode("div", _hoisted_1, toDisplayString(
|
|
93
|
+
createElementVNode("div", _hoisted_1, toDisplayString(__props.startOfDay.getDate()), 1)
|
|
94
94
|
], 2)
|
|
95
95
|
], 34);
|
|
96
96
|
};
|
|
@@ -89,16 +89,16 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
89
89
|
(openBlock(true), createElementBlock(Fragment, null, renderList(weeks.value, (week, index) => {
|
|
90
90
|
return openBlock(), createBlock(_sfc_main$1, {
|
|
91
91
|
key: index,
|
|
92
|
-
"start-of-month":
|
|
92
|
+
"start-of-month": __props.startOfMonth,
|
|
93
93
|
"start-of-week": week,
|
|
94
|
-
"date-range": isEmpty.value || isBetweenRange.value ? void 0 :
|
|
94
|
+
"date-range": isEmpty.value || isBetweenRange.value ? void 0 : __props.dateRange,
|
|
95
95
|
"is-between": isBetweenRange.value,
|
|
96
|
-
"is-hover-enabled":
|
|
97
|
-
"min-date":
|
|
98
|
-
"max-date":
|
|
96
|
+
"is-hover-enabled": __props.isHoverEnabled,
|
|
97
|
+
"min-date": __props.minDate,
|
|
98
|
+
"max-date": __props.maxDate,
|
|
99
99
|
disabled: isDisabled.value,
|
|
100
|
-
readonly:
|
|
101
|
-
today:
|
|
100
|
+
readonly: __props.readonly,
|
|
101
|
+
today: __props.today && toWeek.value && unref(isSameDate)(toWeek.value, week) ? __props.today : void 0,
|
|
102
102
|
"onClick:day": _cache[0] || (_cache[0] = ($event) => _ctx.$emit("click:day", $event)),
|
|
103
103
|
"onHover:day": _cache[1] || (_cache[1] = ($event) => _ctx.$emit("hover:day", $event))
|
|
104
104
|
}, null, 8, ["start-of-month", "start-of-week", "date-range", "is-between", "is-hover-enabled", "min-date", "max-date", "disabled", "readonly", "today"]);
|
|
@@ -27,9 +27,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
27
27
|
}, {
|
|
28
28
|
default: withCtx(() => [
|
|
29
29
|
(openBlock(), createElementBlock("div", {
|
|
30
|
-
key:
|
|
30
|
+
key: __props.text,
|
|
31
31
|
class: "text-accent w-14 select-none text-center font-medium"
|
|
32
|
-
}, toDisplayString(
|
|
32
|
+
}, toDisplayString(__props.text), 1))
|
|
33
33
|
]),
|
|
34
34
|
_: 1
|
|
35
35
|
})
|
|
@@ -33,12 +33,12 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
33
33
|
}, unref(semanticTypeBackgroundMap)[unref(SemanticType).PRIMARY]]]),
|
|
34
34
|
onClick: updateCurrentDate
|
|
35
35
|
}, [
|
|
36
|
-
createElementVNode("div", _hoisted_1, toDisplayString(
|
|
36
|
+
createElementVNode("div", _hoisted_1, toDisplayString(__props.title), 1),
|
|
37
37
|
createElementVNode("div", {
|
|
38
38
|
class: normalizeClass(["font-semibold tracking-wide", {
|
|
39
|
-
"opacity-50": !
|
|
39
|
+
"opacity-50": !__props.value
|
|
40
40
|
}])
|
|
41
|
-
}, toDisplayString(
|
|
41
|
+
}, toDisplayString(__props.value ? unref(dateFormat)(__props.value) : "NONE"), 3)
|
|
42
42
|
], 2);
|
|
43
43
|
};
|
|
44
44
|
}
|
|
@@ -66,17 +66,17 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
66
66
|
(openBlock(true), createElementBlock(Fragment, null, renderList(days.value, (day, index) => {
|
|
67
67
|
return openBlock(), createBlock(_sfc_main$1, {
|
|
68
68
|
key: index,
|
|
69
|
-
"start-of-month":
|
|
69
|
+
"start-of-month": __props.startOfMonth,
|
|
70
70
|
"start-of-day": day,
|
|
71
|
-
"date-range": isEmpty.value || isBetweenRange.value ? void 0 :
|
|
71
|
+
"date-range": isEmpty.value || isBetweenRange.value ? void 0 : __props.dateRange,
|
|
72
72
|
"is-between": isBetweenRange.value,
|
|
73
73
|
"is-week-out-of-month": isWeekOutOfMonth.value,
|
|
74
|
-
"is-hover-enabled":
|
|
75
|
-
"min-date":
|
|
76
|
-
"max-date":
|
|
74
|
+
"is-hover-enabled": __props.isHoverEnabled,
|
|
75
|
+
"min-date": __props.minDate,
|
|
76
|
+
"max-date": __props.maxDate,
|
|
77
77
|
disabled: isDisabled.value,
|
|
78
|
-
readonly:
|
|
79
|
-
"is-today":
|
|
78
|
+
readonly: __props.readonly,
|
|
79
|
+
"is-today": __props.today ? unref(isSameDate)(__props.today, day) : false,
|
|
80
80
|
"onClick:day": _cache[0] || (_cache[0] = ($event) => _ctx.$emit("click:day", $event)),
|
|
81
81
|
"onHover:day": _cache[1] || (_cache[1] = ($event) => _ctx.$emit("hover:day", $event))
|
|
82
82
|
}, null, 8, ["start-of-month", "start-of-day", "date-range", "is-between", "is-week-out-of-month", "is-hover-enabled", "min-date", "max-date", "disabled", "readonly", "is-today"]);
|
|
@@ -59,7 +59,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
59
59
|
onAfterEnter: show
|
|
60
60
|
}, {
|
|
61
61
|
default: withCtx(() => [
|
|
62
|
-
|
|
62
|
+
__props.isOpen ? (openBlock(), createElementBlock("div", _hoisted_1, [
|
|
63
63
|
createElementVNode("button", {
|
|
64
64
|
class: "square-full snap-start",
|
|
65
65
|
"aria-label": "Close",
|
|
@@ -67,7 +67,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
67
67
|
}),
|
|
68
68
|
createElementVNode("div", {
|
|
69
69
|
ref: "content",
|
|
70
|
-
class: normalizeClass(["snap-end",
|
|
70
|
+
class: normalizeClass(["snap-end", __props.contentClass]),
|
|
71
71
|
onMousedown: _cache[0] || (_cache[0] = withModifiers(() => {
|
|
72
72
|
}, ["stop"])),
|
|
73
73
|
onClick: _cache[1] || (_cache[1] = withModifiers(() => {
|
|
@@ -39,10 +39,10 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
39
39
|
});
|
|
40
40
|
return (_ctx, _cache) => {
|
|
41
41
|
return openBlock(), createElementBlock("div", null, [
|
|
42
|
-
(openBlock(true), createElementBlock(Fragment, null, renderList(
|
|
42
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(__props.list, (item, index) => {
|
|
43
43
|
return openBlock(), createBlock(_sfc_main$1, {
|
|
44
44
|
key: index,
|
|
45
|
-
disabled:
|
|
45
|
+
disabled: __props.disabled || !unref(draggable),
|
|
46
46
|
order: value.value.indexOf(item),
|
|
47
47
|
"onDrag:start": ($event) => dragStart(item),
|
|
48
48
|
"onDrag:enter": dragEnter,
|
|
@@ -31,11 +31,11 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
31
31
|
return renderSlot(_ctx.$slots, "default", mergeProps({ initDrag }, {
|
|
32
32
|
container: {
|
|
33
33
|
draggable: draggable.value,
|
|
34
|
-
style: { order:
|
|
35
|
-
class: isDragging.value ? "opacity-[0.001]" :
|
|
36
|
-
onDragend: !
|
|
37
|
-
onDragenter: !draggable.value ? () => _ctx.$emit("drag:enter",
|
|
38
|
-
onDragstart: !
|
|
34
|
+
style: { order: __props.order + 1 },
|
|
35
|
+
class: isDragging.value ? "opacity-[0.001]" : __props.disabled ? "opacity-50" : void 0,
|
|
36
|
+
onDragend: !__props.disabled ? endDrag : void 0,
|
|
37
|
+
onDragenter: !draggable.value ? () => _ctx.$emit("drag:enter", __props.order) : void 0,
|
|
38
|
+
onDragstart: !__props.disabled ? startDrag : void 0,
|
|
39
39
|
onDragover
|
|
40
40
|
}
|
|
41
41
|
}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"WDropdownMenu.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/DropdownMenu/WDropdownMenu.vue"],"names":[],"mappings":"AAgCA;AAuEA,OAAO,KAAK,EAAC,iBAAiB,EAAC,MAAM,SAAS,CAAA;AAC9C,OAAO,KAAK,EAAC,wBAAwB,EAAC,MAAM,6BAA6B,CAAA;AAEzE,OAAO,EAAC,KAAK,KAAK,EAAmC,MAAM,KAAK,CAAA;AAyChE,iBAAS,cAAc;WA2FT,OAAO,IAA6B;;iBA5GvC,CAAC,KAAK,EAAE;YAAC,KAAK,EAAE,OAAO,CAAC;YAAC,WAAW,EAAE,SAAS,CAAA;SAAC,KAAK,KAAK,EAAE;kBAC3D,CAAC,KAAK,EAAE,wBAAwB,KAAK,KAAK,EAAE;;iBAD7C,CAAC,KAAK,EAAE;YAAC,KAAK,EAAE,OAAO,CAAC;YAAC,WAAW,EAAE,SAAS,CAAA;SAAC,KAAK,KAAK,EAAE;kBAC3D,CAAC,KAAK,EAAE,wBAAwB,KAAK,KAAK,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"WDropdownMenu.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/DropdownMenu/WDropdownMenu.vue"],"names":[],"mappings":"AAgCA;AAuEA,OAAO,KAAK,EAAC,iBAAiB,EAAC,MAAM,SAAS,CAAA;AAC9C,OAAO,KAAK,EAAC,wBAAwB,EAAC,MAAM,6BAA6B,CAAA;AAEzE,OAAO,EAAC,KAAK,KAAK,EAAmC,MAAM,KAAK,CAAA;AAyChE,iBAAS,cAAc;WA2FT,OAAO,IAA6B;;iBA5GvC,CAAC,KAAK,EAAE;YAAC,KAAK,EAAE,OAAO,CAAC;YAAC,WAAW,EAAE,SAAS,CAAA;SAAC,KAAK,KAAK,EAAE;kBAC3D,CAAC,KAAK,EAAE,wBAAwB,KAAK,KAAK,EAAE;;iBAD7C,CAAC,KAAK,EAAE;YAAC,KAAK,EAAE,OAAO,CAAC;YAAC,WAAW,EAAE,SAAS,CAAA;SAAC,KAAK,KAAK,EAAE;kBAC3D,CAAC,KAAK,EAAE,wBAAwB,KAAK,KAAK,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wCAwJ2uiB,GAAG,8CAA8C,GAAG,yBAAyB,GAAG,6DAAmC,GAAG;;;;;;;;;;;;;;EAxCx5iB;AAeD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oCAwB8wiB,GAAG,8CAA8C,GAAG,yBAAyB,GAAG,6DAAmC,GAAG;;;;;;;;;;;;OAfv5iB,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,18 +31,18 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
31
31
|
(openBlock(), createBlock(resolveDynamicComponent(unref(unwrapSlots)(_ctx.$slots.toggle?.({ isTop: isTop.value, unclickable: void 0 }) ?? [])[0]), mergeProps({ ref: "container" }, _ctx.$attrs), null, 16)),
|
|
32
32
|
(openBlock(), createBlock(Teleport, {
|
|
33
33
|
to: "body",
|
|
34
|
-
disabled: !
|
|
34
|
+
disabled: !__props.isOpen
|
|
35
35
|
}, [
|
|
36
|
-
(
|
|
36
|
+
(__props.parentElement || element.value) && __props.isOpen ? (openBlock(), createBlock(_sfc_main$1, {
|
|
37
37
|
key: 0,
|
|
38
38
|
ref: "dropdown",
|
|
39
|
-
"parent-element":
|
|
40
|
-
"horizontal-align":
|
|
41
|
-
"update-align":
|
|
42
|
-
"emit-update":
|
|
39
|
+
"parent-element": __props.parentElement ?? element.value,
|
|
40
|
+
"horizontal-align": __props.horizontalAlign,
|
|
41
|
+
"update-align": __props.updateAlign,
|
|
42
|
+
"emit-update": __props.emitUpdate,
|
|
43
43
|
style: normalizeStyle({ zIndex: unref(baseZIndex) + unref(BASE_ZINDEX_DROPDOWN) }),
|
|
44
|
-
top:
|
|
45
|
-
class: normalizeClass(
|
|
44
|
+
top: __props.top,
|
|
45
|
+
class: normalizeClass(__props.dropdownClass),
|
|
46
46
|
"onUpdate:rect": _cache[0] || (_cache[0] = ($event) => _ctx.$emit("update:rect"))
|
|
47
47
|
}, {
|
|
48
48
|
default: withCtx((defaultScope) => [
|
|
@@ -26,12 +26,12 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
26
26
|
}, {
|
|
27
27
|
default: withCtx(() => [
|
|
28
28
|
(openBlock(), createBlock(KeepAlive, null, [
|
|
29
|
-
|
|
29
|
+
__props.isOpen ? withDirectives((openBlock(), createElementBlock("div", _hoisted_1, [
|
|
30
30
|
createElementVNode("div", _hoisted_2, [
|
|
31
31
|
renderSlot(_ctx.$slots, "default")
|
|
32
32
|
])
|
|
33
33
|
], 512)), [
|
|
34
|
-
[vShow,
|
|
34
|
+
[vShow, __props.isShown]
|
|
35
35
|
]) : createCommentVNode("", true)
|
|
36
36
|
], 1024))
|
|
37
37
|
]),
|