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
|
@@ -32,7 +32,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
32
32
|
ref: "button",
|
|
33
33
|
role: "button",
|
|
34
34
|
tabindex: "0",
|
|
35
|
-
class: normalizeClass(["w-ripple w-ripple-hover -px--inner-margin relative grid cursor-pointer select-none grid-cols-[1fr,auto] items-center gap-2 py-3 text-start",
|
|
35
|
+
class: normalizeClass(["w-ripple w-ripple-hover -px--inner-margin relative grid cursor-pointer select-none grid-cols-[1fr,auto] items-center gap-2 py-3 text-start", __props.toggleClass]),
|
|
36
36
|
onClick: toggle,
|
|
37
37
|
onKeydown: [
|
|
38
38
|
withKeys(toggle, ["enter"]),
|
|
@@ -41,15 +41,15 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
41
41
|
}, {
|
|
42
42
|
default: withCtx(() => [
|
|
43
43
|
createElementVNode("div", null, [
|
|
44
|
-
|
|
44
|
+
__props.icon ? (openBlock(), createBlock(resolveDynamicComponent(__props.icon), {
|
|
45
45
|
key: 0,
|
|
46
46
|
class: "square-[1.25em] -mt-1 inline"
|
|
47
47
|
})) : createCommentVNode("", true),
|
|
48
48
|
_cache[0] || (_cache[0] = createTextVNode()),
|
|
49
49
|
createElementVNode("span", {
|
|
50
|
-
class: normalizeClass(["relative pr-4 font-semibold", { "text-xs":
|
|
50
|
+
class: normalizeClass(["relative pr-4 font-semibold", { "text-xs": __props.minTitle }])
|
|
51
51
|
}, [
|
|
52
|
-
createTextVNode(toDisplayString(
|
|
52
|
+
createTextVNode(toDisplayString(__props.title) + " ", 1),
|
|
53
53
|
createVNode(Transition, {
|
|
54
54
|
"enter-active-class": "transition-opacity",
|
|
55
55
|
"leave-active-class": "transition-opacity",
|
|
@@ -57,7 +57,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
57
57
|
"leave-to-class": "opacity-0"
|
|
58
58
|
}, {
|
|
59
59
|
default: withCtx(() => [
|
|
60
|
-
|
|
60
|
+
__props.hasFlag ? (openBlock(), createElementBlock("div", _hoisted_1)) : createCommentVNode("", true)
|
|
61
61
|
]),
|
|
62
62
|
_: 1
|
|
63
63
|
})
|
|
@@ -65,14 +65,14 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
65
65
|
]),
|
|
66
66
|
createElementVNode("div", _hoisted_2, [
|
|
67
67
|
createVNode(unref(IconArrow), {
|
|
68
|
-
class: normalizeClass(["text-accent square-[1.25em] transition-transform", { "rotate-180":
|
|
68
|
+
class: normalizeClass(["text-accent square-[1.25em] transition-transform", { "rotate-180": __props.isOpen }])
|
|
69
69
|
}, null, 8, ["class"])
|
|
70
70
|
])
|
|
71
71
|
]),
|
|
72
72
|
_: 1
|
|
73
73
|
}, 40, ["class"])),
|
|
74
74
|
createVNode(_sfc_main$1, {
|
|
75
|
-
"is-open":
|
|
75
|
+
"is-open": __props.isOpen,
|
|
76
76
|
class: normalizeClass([_ctx.$attrs.class, "py-2"])
|
|
77
77
|
}, {
|
|
78
78
|
default: withCtx(() => [
|
|
@@ -100,26 +100,26 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
100
100
|
return (_ctx, _cache) => {
|
|
101
101
|
return openBlock(), createElementBlock("div", mergeProps({ class: "relative" }, { style: _ctx.$attrs.style }, {
|
|
102
102
|
class: [_ctx.$attrs.class, {
|
|
103
|
-
"mb-[1.125rem]": !
|
|
104
|
-
"col-span-full grid grid-cols-subgrid":
|
|
103
|
+
"mb-[1.125rem]": !__props.noMargin && !__props.subgrid,
|
|
104
|
+
"col-span-full grid grid-cols-subgrid": __props.subgrid
|
|
105
105
|
}],
|
|
106
106
|
onClick: _cache[0] || (_cache[0] = ($event) => _ctx.$emit("click", $event))
|
|
107
107
|
}), [
|
|
108
|
-
|
|
108
|
+
__props.title || _ctx.$slots.title ? (openBlock(), createElementBlock("label", {
|
|
109
109
|
key: 0,
|
|
110
110
|
for: unref(id),
|
|
111
111
|
class: normalizeClass(["text-accent relative block text-xs font-semibold leading-loose", {
|
|
112
112
|
"cursor-not-allowed opacity-50": unref(isDisabled) && !unref(isReadonly) && !unref(isSkeleton),
|
|
113
|
-
"col-start-1":
|
|
113
|
+
"col-start-1": __props.subgrid
|
|
114
114
|
}])
|
|
115
115
|
}, [
|
|
116
116
|
!unref(isSkeleton) ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
117
117
|
renderSlot(_ctx.$slots, "title", {}, () => [
|
|
118
|
-
|
|
119
|
-
(openBlock(), createBlock(resolveDynamicComponent(
|
|
120
|
-
_cache[1] || (_cache[1] = createTextVNode(" "))
|
|
118
|
+
__props.titleIcon ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
119
|
+
(openBlock(), createBlock(resolveDynamicComponent(__props.titleIcon), { class: "square-[1.25em] mt-[-0.25em] inline" })),
|
|
120
|
+
_cache[1] || (_cache[1] = createTextVNode(" ", -1))
|
|
121
121
|
], 64)) : createCommentVNode("", true),
|
|
122
|
-
createTextVNode(toDisplayString(
|
|
122
|
+
createTextVNode(toDisplayString(__props.title), 1)
|
|
123
123
|
]),
|
|
124
124
|
createVNode(Transition, {
|
|
125
125
|
"enter-active-class": "transition-opacity",
|
|
@@ -128,13 +128,13 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
128
128
|
"leave-to-class": "opacity-0"
|
|
129
129
|
}, {
|
|
130
130
|
default: withCtx(() => [
|
|
131
|
-
|
|
131
|
+
__props.required ? (openBlock(), createElementBlock("span", _hoisted_2, " * ")) : createCommentVNode("", true)
|
|
132
132
|
]),
|
|
133
133
|
_: 1
|
|
134
134
|
}),
|
|
135
|
-
|
|
135
|
+
__props.filterField && encodedQueryParam.value ? (openBlock(), createBlock(_sfc_main$1, {
|
|
136
136
|
key: 0,
|
|
137
|
-
"filter-field":
|
|
137
|
+
"filter-field": __props.filterField,
|
|
138
138
|
"encoded-query-param": encodedQueryParam.value,
|
|
139
139
|
class: "absolute top-0.5 ml-2"
|
|
140
140
|
}, null, 8, ["filter-field", "encoded-query-param"])) : createCommentVNode("", true)
|
|
@@ -144,32 +144,32 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
144
144
|
createElementVNode("div", {
|
|
145
145
|
ref: "field",
|
|
146
146
|
class: normalizeClass(["grid", {
|
|
147
|
-
"pr-9": !
|
|
148
|
-
"col-start-2 -col-end-1 row-start-1 -row-end-3 grid-cols-subgrid":
|
|
149
|
-
"grid-cols-[1fr,auto]": !
|
|
147
|
+
"pr-9": !__props.title && !_ctx.$slots.title && __props.filterField,
|
|
148
|
+
"col-start-2 -col-end-1 row-start-1 -row-end-3 grid-cols-subgrid": __props.subgrid,
|
|
149
|
+
"grid-cols-[1fr,auto]": !__props.subgrid
|
|
150
150
|
}])
|
|
151
151
|
}, [
|
|
152
152
|
!unref(isSkeleton) ? (openBlock(), createElementBlock("div", {
|
|
153
153
|
key: 0,
|
|
154
154
|
class: normalizeClass(["w-has-changes-color-info dark:w-has-changes-color-info-dark relative grid", {
|
|
155
|
-
"focus-within-not:w-has-changes-color-negative dark:focus-within-not:w-has-changes-color-negative-dark":
|
|
156
|
-
"col-span-full grid-cols-subgrid":
|
|
157
|
-
"grid-cols-1": !
|
|
155
|
+
"focus-within-not:w-has-changes-color-negative dark:focus-within-not:w-has-changes-color-negative-dark": __props.errorMessage,
|
|
156
|
+
"col-span-full grid-cols-subgrid": __props.subgrid,
|
|
157
|
+
"grid-cols-1": !__props.subgrid
|
|
158
158
|
}])
|
|
159
159
|
}, [
|
|
160
160
|
renderSlot(_ctx.$slots, "field", normalizeProps(guardReactiveProps({ id: unref(id), setFocused, focused: focused.value })), () => [
|
|
161
161
|
createElementVNode("div", {
|
|
162
162
|
class: normalizeClass(["flex min-h-[--w-input-height,2.75rem] items-center font-normal", {
|
|
163
|
-
"font-mono":
|
|
164
|
-
"border-t border-solid border-gray-300 dark:border-gray-700":
|
|
163
|
+
"font-mono": __props.mono,
|
|
164
|
+
"border-t border-solid border-gray-300 dark:border-gray-700": __props.title || _ctx.$slots.title
|
|
165
165
|
}])
|
|
166
166
|
}, [
|
|
167
167
|
renderSlot(_ctx.$slots, "default", normalizeProps(guardReactiveProps({ id: unref(id), setFocused, focused: focused.value })), () => [
|
|
168
|
-
createTextVNode(toDisplayString(typeof
|
|
168
|
+
createTextVNode(toDisplayString(typeof __props.modelValue === "number" ? unref(numberFormatter).format(__props.modelValue) : __props.modelValue === null ? __props.emptyValue ?? "N / A" : __props.modelValue || __props.emptyValue), 1)
|
|
169
169
|
]),
|
|
170
|
-
|
|
170
|
+
__props.allowCopy && __props.modelValue ? (openBlock(), createBlock(_sfc_main$3, {
|
|
171
171
|
key: 0,
|
|
172
|
-
value: `${
|
|
172
|
+
value: `${__props.modelValue}`,
|
|
173
173
|
class: "ml-2"
|
|
174
174
|
}, null, 8, ["value"])) : createCommentVNode("", true)
|
|
175
175
|
], 2)
|
|
@@ -181,7 +181,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
181
181
|
"leave-to-class": "opacity-0"
|
|
182
182
|
}, {
|
|
183
183
|
default: withCtx(() => [
|
|
184
|
-
|
|
184
|
+
__props.hasChanges ? (openBlock(), createElementBlock("span", _hoisted_3)) : createCommentVNode("", true)
|
|
185
185
|
]),
|
|
186
186
|
_: 1
|
|
187
187
|
}),
|
|
@@ -194,19 +194,19 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
194
194
|
default: withCtx(() => [
|
|
195
195
|
message.value ? withDirectives((openBlock(), createElementBlock("div", {
|
|
196
196
|
key: 0,
|
|
197
|
-
class: normalizeClass(["text-description absolute right-0 whitespace-nowrap py-0.5 text-xs font-normal",
|
|
197
|
+
class: normalizeClass(["text-description absolute right-0 whitespace-nowrap py-0.5 text-xs font-normal", __props.topText ? "bottom-full" : "top-full"])
|
|
198
198
|
}, toDisplayString(message.value), 3)), [
|
|
199
199
|
[vShow, isMessageShown.value]
|
|
200
|
-
]) :
|
|
200
|
+
]) : __props.errorMessage ? (openBlock(), createElementBlock("div", {
|
|
201
201
|
key: 1,
|
|
202
202
|
class: normalizeClass(["text-negative dark:text-negative-dark absolute pt-0.5 text-xs font-normal", [
|
|
203
|
-
!
|
|
204
|
-
|
|
203
|
+
!__props.leftError || __props.topText ? "right-0 text-end" : "left-0 text-start",
|
|
204
|
+
__props.topText ? "bottom-full" : "top-full"
|
|
205
205
|
]])
|
|
206
|
-
}, toDisplayString(
|
|
206
|
+
}, toDisplayString(__props.errorMessage), 3)) : __props.maxLength !== void 0 && focused.value ? (openBlock(), createElementBlock("div", {
|
|
207
207
|
key: 2,
|
|
208
|
-
class: normalizeClass(["text-description absolute right-0 whitespace-nowrap pt-0.5 text-xs font-normal",
|
|
209
|
-
}, toDisplayString(unref(numberFormatter).format(`${typeof
|
|
208
|
+
class: normalizeClass(["text-description absolute right-0 whitespace-nowrap pt-0.5 text-xs font-normal", __props.topText ? "bottom-full" : "top-full"])
|
|
209
|
+
}, toDisplayString(unref(numberFormatter).format(`${typeof __props.modelValue === "number" ? __props.modelValue : __props.modelValue || ""}`.length)) + " / " + toDisplayString(unref(numberFormatter).format(__props.maxLength)), 3)) : createCommentVNode("", true)
|
|
210
210
|
]),
|
|
211
211
|
_: 1
|
|
212
212
|
})
|
|
@@ -217,29 +217,29 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
217
217
|
_ctx.$slots.right ? (openBlock(), createElementBlock("div", _hoisted_4, [
|
|
218
218
|
renderSlot(_ctx.$slots, "right")
|
|
219
219
|
], 512)) : createCommentVNode("", true),
|
|
220
|
-
!
|
|
220
|
+
!__props.title && !_ctx.$slots.title && __props.filterField ? (openBlock(), createBlock(_sfc_main$1, {
|
|
221
221
|
key: 3,
|
|
222
|
-
"filter-field":
|
|
222
|
+
"filter-field": __props.filterField,
|
|
223
223
|
"encoded-query-param": encodedQueryParam.value,
|
|
224
224
|
skeleton: unref(isSkeleton),
|
|
225
225
|
class: "absolute right-0 self-center"
|
|
226
226
|
}, null, 8, ["filter-field", "encoded-query-param", "skeleton"])) : createCommentVNode("", true)
|
|
227
227
|
], 2),
|
|
228
228
|
renderSlot(_ctx.$slots, "bottom"),
|
|
229
|
-
|
|
229
|
+
__props.description ? (openBlock(), createElementBlock("div", {
|
|
230
230
|
key: 1,
|
|
231
231
|
class: normalizeClass(["text-description col-start-1 whitespace-pre-wrap text-pretty break-words text-xs font-normal", {
|
|
232
232
|
"opacity-50": unref(isDisabled) && !unref(isReadonly) && !unref(isSkeleton),
|
|
233
|
-
"pt-4": !
|
|
233
|
+
"pt-4": !__props.subgrid
|
|
234
234
|
}])
|
|
235
235
|
}, [
|
|
236
236
|
unref(isSkeleton) ? (openBlock(), createBlock(_sfc_main$2, { key: 0 })) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
237
|
-
createTextVNode(toDisplayString(
|
|
237
|
+
createTextVNode(toDisplayString(__props.description), 1)
|
|
238
238
|
], 64))
|
|
239
239
|
], 2)) : createCommentVNode("", true),
|
|
240
|
-
|
|
240
|
+
__props.tooltipText && !unref(isSkeleton) && !unref(isReadonly) ? (openBlock(), createBlock(_sfc_main$4, {
|
|
241
241
|
key: 2,
|
|
242
|
-
text:
|
|
242
|
+
text: __props.tooltipText
|
|
243
243
|
}, null, 8, ["text"])) : createCommentVNode("", true)
|
|
244
244
|
], 16);
|
|
245
245
|
};
|
|
@@ -15,15 +15,15 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
15
15
|
},
|
|
16
16
|
setup(__props) {
|
|
17
17
|
return (_ctx, _cache) => {
|
|
18
|
-
return
|
|
18
|
+
return __props.skeleton || !__props.encodedQueryParam ? (openBlock(), createElementBlock("div", _hoisted_1)) : (openBlock(), createElementBlock("button", {
|
|
19
19
|
key: 1,
|
|
20
20
|
class: normalizeClass(["w-ripple w-ripple-hover rounded p-[0.125em]", {
|
|
21
|
-
"text-description": _ctx.$route.query[
|
|
22
|
-
"bg-primary dark:bg-primary-dark text-default": _ctx.$route.query[
|
|
21
|
+
"text-description": _ctx.$route.query[__props.filterField] !== __props.encodedQueryParam,
|
|
22
|
+
"bg-primary dark:bg-primary-dark text-default": _ctx.$route.query[__props.filterField] === __props.encodedQueryParam
|
|
23
23
|
}]),
|
|
24
|
-
"aria-pressed": _ctx.$route.query[
|
|
24
|
+
"aria-pressed": _ctx.$route.query[__props.filterField] === __props.encodedQueryParam,
|
|
25
25
|
"aria-label": "Toggle filter",
|
|
26
|
-
onClick: _cache[0] || (_cache[0] = ($event) => _ctx.$router.replace({ query: { ..._ctx.$route.query, [
|
|
26
|
+
onClick: _cache[0] || (_cache[0] = ($event) => _ctx.$router.replace({ query: { ..._ctx.$route.query, [__props.filterField]: _ctx.$route.query[__props.filterField] === __props.encodedQueryParam ? void 0 : __props.encodedQueryParam } }))
|
|
27
27
|
}, [
|
|
28
28
|
createVNode(unref(IconFilter), { class: "square-[1.25em]" })
|
|
29
29
|
], 10, _hoisted_2));
|
|
@@ -40,9 +40,9 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}
|
|
|
40
40
|
skeleton: boolean;
|
|
41
41
|
readonly: boolean;
|
|
42
42
|
title: string;
|
|
43
|
+
placeholder: string;
|
|
43
44
|
disabled: boolean;
|
|
44
45
|
errorMessage: string;
|
|
45
|
-
placeholder: string;
|
|
46
46
|
accept: string;
|
|
47
47
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
48
48
|
container: HTMLLabelElement;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"WFilePicker.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/FilePicker/WFilePicker.vue"],"names":[],"mappings":"AA2IA;AA2QA,KAAK,WAAW,GAAG;IACf,UAAU,EAAE,IAAI,EAAE,CAAA;IAClB,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,QAAQ,CAAC,EAAE,OAAO,CAAA;CACnB,CAAC;AAkGJ,iBAAS,cAAc;WAgQT,OAAO,IAA6B;;uBAhBvB,GAAG;0BACC,GAAG;;;YAEH,GAAG;0BADH,GAAG;;;YAEH,GAAG;;;;;;;EAiBjC;AAyBD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;;;;cArYN,OAAO;cACP,OAAO;WAFV,MAAM;
|
|
1
|
+
{"version":3,"file":"WFilePicker.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/FilePicker/WFilePicker.vue"],"names":[],"mappings":"AA2IA;AA2QA,KAAK,WAAW,GAAG;IACf,UAAU,EAAE,IAAI,EAAE,CAAA;IAClB,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,QAAQ,CAAC,EAAE,OAAO,CAAA;CACnB,CAAC;AAkGJ,iBAAS,cAAc;WAgQT,OAAO,IAA6B;;uBAhBvB,GAAG;0BACC,GAAG;;;YAEH,GAAG;0BADH,GAAG;;;YAEH,GAAG;;;;;;;EAiBjC;AAyBD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;;;;cArYN,OAAO;cACP,OAAO;WAFV,MAAM;iBAJA,MAAM;cAOT,OAAO;kBAJH,MAAM;YADZ,MAAM;;;;kBAkZjB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAapG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
|
|
@@ -101,12 +101,12 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
101
101
|
});
|
|
102
102
|
return (_ctx, _cache) => {
|
|
103
103
|
return openBlock(), createElementBlock("div", _hoisted_1, [
|
|
104
|
-
|
|
104
|
+
__props.title || _ctx.$slots.title ? (openBlock(), createElementBlock("div", _hoisted_2, [
|
|
105
105
|
!unref(isSkeleton) ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
106
106
|
renderSlot(_ctx.$slots, "title", {}, () => [
|
|
107
|
-
createTextVNode(toDisplayString(
|
|
107
|
+
createTextVNode(toDisplayString(__props.title), 1)
|
|
108
108
|
]),
|
|
109
|
-
|
|
109
|
+
__props.required ? (openBlock(), createElementBlock("span", _hoisted_3, " * ")) : createCommentVNode("", true)
|
|
110
110
|
], 64)) : (openBlock(), createBlock(_sfc_main$1, {
|
|
111
111
|
key: 1,
|
|
112
112
|
class: "w-skeleton-h-4 w-skeleton-w-16"
|
|
@@ -126,8 +126,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
126
126
|
ref: "input",
|
|
127
127
|
type: "file",
|
|
128
128
|
class: "pointer-events-none hidden",
|
|
129
|
-
multiple:
|
|
130
|
-
accept:
|
|
129
|
+
multiple: __props.multiple,
|
|
130
|
+
accept: __props.accept,
|
|
131
131
|
onChange: updateModelValue
|
|
132
132
|
}, null, 40, _hoisted_4)) : createCommentVNode("", true),
|
|
133
133
|
containerWidth.value && containerHeight.value ? (openBlock(), createBlock(_sfc_main$2, {
|
|
@@ -135,13 +135,13 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
135
135
|
"svg-width": containerWidth.value,
|
|
136
136
|
"svg-height": containerHeight.value,
|
|
137
137
|
"is-active": isActive.value,
|
|
138
|
-
"has-error": !!
|
|
138
|
+
"has-error": !!__props.errorMessage,
|
|
139
139
|
class: "absolute left-0 top-0"
|
|
140
140
|
}, null, 8, ["svg-width", "svg-height", "is-active", "has-error"])) : createCommentVNode("", true),
|
|
141
|
-
|
|
141
|
+
__props.placeholder ? (openBlock(), createElementBlock("div", _hoisted_5, [
|
|
142
142
|
createVNode(_sfc_main$3, {
|
|
143
|
-
name:
|
|
144
|
-
"has-error": !!
|
|
143
|
+
name: __props.placeholder,
|
|
144
|
+
"has-error": !!__props.errorMessage,
|
|
145
145
|
"onClick:cancel": _cache[0] || (_cache[0] = ($event) => _ctx.$emit("clear:placeholder"))
|
|
146
146
|
}, {
|
|
147
147
|
positive: withCtx(() => [
|
|
@@ -152,27 +152,27 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
152
152
|
]),
|
|
153
153
|
_: 3
|
|
154
154
|
}, 8, ["name", "has-error"])
|
|
155
|
-
])) :
|
|
155
|
+
])) : __props.modelValue.length === 0 ? (openBlock(), createElementBlock("div", _hoisted_6, [
|
|
156
156
|
_cache[7] || (_cache[7] = createElementVNode("div", { class: "mt-16 font-semibold" }, " Drag and drop files here ", -1)),
|
|
157
157
|
_cache[8] || (_cache[8] = createElementVNode("div", { class: "mt-4 font-normal" }, " or ", -1)),
|
|
158
158
|
createVNode(_sfc_main$4, {
|
|
159
159
|
"semantic-type": unref(SemanticType).PRIMARY,
|
|
160
160
|
disabled: unref(isReadonly) || unref(isDisabled),
|
|
161
161
|
class: "mt-4",
|
|
162
|
-
onClick: _cache[1] || (_cache[1] = withModifiers(($event) =>
|
|
162
|
+
onClick: _cache[1] || (_cache[1] = withModifiers(($event) => inputRef.value?.click(), ["stop", "prevent"]))
|
|
163
163
|
}, {
|
|
164
|
-
default: withCtx(() => _cache[6] || (_cache[6] = [
|
|
165
|
-
createTextVNode(" Browse file ")
|
|
166
|
-
])),
|
|
164
|
+
default: withCtx(() => [..._cache[6] || (_cache[6] = [
|
|
165
|
+
createTextVNode(" Browse file ", -1)
|
|
166
|
+
])]),
|
|
167
167
|
_: 1
|
|
168
168
|
}, 8, ["semantic-type", "disabled"])
|
|
169
169
|
])) : (openBlock(), createElementBlock("div", _hoisted_7, [
|
|
170
170
|
createElementVNode("div", _hoisted_8, [
|
|
171
|
-
(openBlock(true), createElementBlock(Fragment, null, renderList(
|
|
171
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(__props.modelValue, (file, index) => {
|
|
172
172
|
return openBlock(), createBlock(_sfc_main$3, {
|
|
173
173
|
key: index,
|
|
174
174
|
name: file.name,
|
|
175
|
-
"has-error": !!
|
|
175
|
+
"has-error": !!__props.errorMessage,
|
|
176
176
|
"onClick:cancel": ($event) => unselectFile(index)
|
|
177
177
|
}, {
|
|
178
178
|
positive: withCtx(() => [
|
|
@@ -194,7 +194,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
194
194
|
"leave-to-class": "opacity-0"
|
|
195
195
|
}, {
|
|
196
196
|
default: withCtx(() => [
|
|
197
|
-
|
|
197
|
+
__props.errorMessage ? (openBlock(), createElementBlock("div", _hoisted_9, toDisplayString(__props.errorMessage), 1)) : createCommentVNode("", true)
|
|
198
198
|
]),
|
|
199
199
|
_: 1
|
|
200
200
|
})
|
|
@@ -17,7 +17,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
17
17
|
return (_ctx, _cache) => {
|
|
18
18
|
return openBlock(), createElementBlock("div", _hoisted_1, [
|
|
19
19
|
createElementVNode("div", _hoisted_2, [
|
|
20
|
-
!
|
|
20
|
+
!__props.hasError ? renderSlot(_ctx.$slots, "positive", { key: 0 }, () => [
|
|
21
21
|
createVNode(unref(IconCheckCircle), { class: "square-36 text-positive dark:text-positive-dark" })
|
|
22
22
|
]) : renderSlot(_ctx.$slots, "negative", { key: 1 }, () => [
|
|
23
23
|
createVNode(unref(IconCloseCircle), { class: "square-36 text-negative dark:text-negative-dark" })
|
|
@@ -30,7 +30,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
30
30
|
createVNode(unref(IconCancel), { class: "square-3 text-description" })
|
|
31
31
|
])
|
|
32
32
|
]),
|
|
33
|
-
createElementVNode("div", _hoisted_3, toDisplayString(
|
|
33
|
+
createElementVNode("div", _hoisted_3, toDisplayString(__props.name), 1)
|
|
34
34
|
]);
|
|
35
35
|
};
|
|
36
36
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FilePickerSvg.vue.d.ts","sourceRoot":"","sources":["../../../../../src/components/FilePicker/components/FilePickerSvg.vue"],"names":[],"mappings":"AAmCA;AAwFA,KAAK,WAAW,GAAG;IACjB,QAAQ,EAAE,MAAM,CAAA;IAChB,SAAS,EAAE,MAAM,CAAA;IACjB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,QAAQ,CAAC,EAAE,OAAO,CAAA;CACnB,CAAC;;;;
|
|
1
|
+
{"version":3,"file":"FilePickerSvg.vue.d.ts","sourceRoot":"","sources":["../../../../../src/components/FilePicker/components/FilePickerSvg.vue"],"names":[],"mappings":"AAmCA;AAwFA,KAAK,WAAW,GAAG;IACjB,QAAQ,EAAE,MAAM,CAAA;IAChB,SAAS,EAAE,MAAM,CAAA;IACjB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,QAAQ,CAAC,EAAE,OAAO,CAAA;CACnB,CAAC;;;;AAqHF,wBAQG"}
|
|
@@ -45,13 +45,13 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
45
45
|
return (_ctx, _cache) => {
|
|
46
46
|
return openBlock(), createElementBlock("svg", {
|
|
47
47
|
class: normalizeClass({
|
|
48
|
-
"opacity-50": !
|
|
49
|
-
"opacity-100":
|
|
50
|
-
"text-negative dark:text-negative-dark":
|
|
51
|
-
"text-primary dark:text-primary-dark": !
|
|
48
|
+
"opacity-50": !__props.isActive,
|
|
49
|
+
"opacity-100": __props.isActive,
|
|
50
|
+
"text-negative dark:text-negative-dark": __props.hasError,
|
|
51
|
+
"text-primary dark:text-primary-dark": !__props.hasError
|
|
52
52
|
}),
|
|
53
|
-
width:
|
|
54
|
-
height:
|
|
53
|
+
width: __props.svgWidth,
|
|
54
|
+
height: __props.svgHeight
|
|
55
55
|
}, [
|
|
56
56
|
createElementVNode("rect", {
|
|
57
57
|
ref: "rect",
|
|
@@ -68,7 +68,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
68
68
|
stroke: "currentColor",
|
|
69
69
|
fill: "none",
|
|
70
70
|
class: normalizeClass({
|
|
71
|
-
"animate-border-rotate":
|
|
71
|
+
"animate-border-rotate": __props.isActive
|
|
72
72
|
}),
|
|
73
73
|
style: normalizeStyle({
|
|
74
74
|
"--border-rotate-offset-from": dashoffset.value,
|
|
@@ -75,7 +75,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
75
75
|
}, {
|
|
76
76
|
default: withCtx(() => [
|
|
77
77
|
createVNode(unref(IconFilterRemove)),
|
|
78
|
-
_cache[0] || (_cache[0] = createTextVNode(" Reset Filters "))
|
|
78
|
+
_cache[0] || (_cache[0] = createTextVNode(" Reset Filters ", -1))
|
|
79
79
|
]),
|
|
80
80
|
_: 1
|
|
81
81
|
}, 8, ["semantic-type", "disabled"])
|
|
@@ -123,7 +123,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
123
123
|
errorMessageMap: errorMessageMap.map
|
|
124
124
|
});
|
|
125
125
|
return (_ctx, _cache) => {
|
|
126
|
-
return openBlock(), createBlock(resolveDynamicComponent(
|
|
126
|
+
return openBlock(), createBlock(resolveDynamicComponent(__props.noTag ? _sfc_main$1 : "div"), null, {
|
|
127
127
|
default: withCtx(() => [
|
|
128
128
|
renderSlot(_ctx.$slots, "default")
|
|
129
129
|
]),
|
|
@@ -199,7 +199,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
199
199
|
return openBlock(), createBlock(resolveDynamicComponent(componentSlot.value), {
|
|
200
200
|
ref: "component",
|
|
201
201
|
"error-message": isErrorShown.value ? errorMessage.value : void 0,
|
|
202
|
-
"has-changes":
|
|
202
|
+
"has-changes": __props.noChanges ? void 0 : hasChanges.value,
|
|
203
203
|
"onUpdate:modelValue": _validateOnUpdate,
|
|
204
204
|
onSelect: _validateOnSelect,
|
|
205
205
|
onUnselect: _validateOnUnselect,
|
|
@@ -58,11 +58,11 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
58
58
|
return openBlock(), createBlock(_sfc_main$1, mergeProps({
|
|
59
59
|
...props,
|
|
60
60
|
modelValue: unref(modelValue),
|
|
61
|
-
list:
|
|
62
|
-
optionComponent:
|
|
63
|
-
loading:
|
|
64
|
-
disabled:
|
|
65
|
-
skeleton:
|
|
61
|
+
list: __props.list,
|
|
62
|
+
optionComponent: __props.optionComponent,
|
|
63
|
+
loading: __props.loading || unref(submitting),
|
|
64
|
+
disabled: __props.disabled || unref(isLoadingError),
|
|
65
|
+
skeleton: __props.skeleton || !unref(data)
|
|
66
66
|
}, {
|
|
67
67
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => unref(showModal)($event))
|
|
68
68
|
}), createSlots({ _: 2 }, [
|
|
@@ -60,11 +60,11 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
60
60
|
return openBlock(), createBlock(_sfc_main$1, mergeProps({
|
|
61
61
|
...props,
|
|
62
62
|
modelValue: unref(modelValue),
|
|
63
|
-
list:
|
|
64
|
-
optionComponent:
|
|
65
|
-
loading:
|
|
66
|
-
disabled:
|
|
67
|
-
skeleton:
|
|
63
|
+
list: __props.list,
|
|
64
|
+
optionComponent: __props.optionComponent,
|
|
65
|
+
loading: __props.loading || unref(submitting),
|
|
66
|
+
disabled: __props.disabled || unref(isLoadingError),
|
|
67
|
+
skeleton: __props.skeleton || !unref(data)
|
|
68
68
|
}, {
|
|
69
69
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => unref(showModal)($event))
|
|
70
70
|
}), createSlots({ _: 2 }, [
|
|
@@ -10,10 +10,10 @@ declare const _default: <Model, FieldType extends string | number, QueryParams>(
|
|
|
10
10
|
subtitle?(_: {}): any;
|
|
11
11
|
right?(_: {}): any;
|
|
12
12
|
prefix?(_: {
|
|
13
|
-
modelValue: string | undefined;
|
|
13
|
+
modelValue: ((FieldType extends number ? "number" : "search" | "text" | "tel" | "password" | "email" | "url") extends infer T ? T extends (FieldType extends number ? "number" : "search" | "text" | "tel" | "password" | "email" | "url") ? T extends "number" ? number : string : never : never) | undefined;
|
|
14
14
|
}): any;
|
|
15
15
|
before?(_: {
|
|
16
|
-
modelValue: string | undefined;
|
|
16
|
+
modelValue: ((FieldType extends number ? "number" : "search" | "text" | "tel" | "password" | "email" | "url") extends infer T ? T extends (FieldType extends number ? "number" : "search" | "text" | "tel" | "password" | "email" | "url") ? T extends "number" ? number : string : never : never) | undefined;
|
|
17
17
|
}): any;
|
|
18
18
|
};
|
|
19
19
|
emit: (e: "success", value: Model) => void;
|
|
@@ -79,12 +79,12 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
79
79
|
return (_ctx, _cache) => {
|
|
80
80
|
return openBlock(), createBlock(_sfc_main$1, mergeProps({
|
|
81
81
|
...props,
|
|
82
|
-
modelValue:
|
|
83
|
-
skeleton:
|
|
84
|
-
disabled:
|
|
85
|
-
loading:
|
|
82
|
+
modelValue: __props.textSecure ? void 0 : unref(modelValue),
|
|
83
|
+
skeleton: __props.skeleton || !unref(data),
|
|
84
|
+
disabled: __props.disabled || unref(isLoadingError),
|
|
85
|
+
loading: __props.loading || unref(submitting),
|
|
86
86
|
validate: validateFn.value,
|
|
87
|
-
placeholderSecure:
|
|
87
|
+
placeholderSecure: __props.textSecure ? !!unref(modelValue) : void 0
|
|
88
88
|
}, {
|
|
89
89
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => unref(showModal)($event))
|
|
90
90
|
}), createSlots({ _: 2 }, [
|
|
@@ -101,9 +101,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
101
101
|
return openBlock(), createBlock(_sfc_main$1, mergeProps({
|
|
102
102
|
...props,
|
|
103
103
|
modelValue: unref(modelValue) ?? [],
|
|
104
|
-
skeleton:
|
|
105
|
-
disabled:
|
|
106
|
-
loading:
|
|
104
|
+
skeleton: __props.skeleton || !unref(data),
|
|
105
|
+
disabled: __props.disabled || unref(isLoadingError),
|
|
106
|
+
loading: __props.loading || unref(submitting)
|
|
107
107
|
}, {
|
|
108
108
|
onSelect: _cache[0] || (_cache[0] = ($event) => unref(showModal)(getNewValue($event))),
|
|
109
109
|
onUnselect: _cache[1] || (_cache[1] = ($event) => unref(showModal)(getNewValue($event)))
|
|
@@ -96,9 +96,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
96
96
|
return openBlock(), createBlock(_sfc_main$1, mergeProps({
|
|
97
97
|
...props,
|
|
98
98
|
modelValue: unref(modelValue),
|
|
99
|
-
skeleton:
|
|
100
|
-
disabled:
|
|
101
|
-
loading:
|
|
99
|
+
skeleton: __props.skeleton || !unref(data),
|
|
100
|
+
disabled: __props.disabled || unref(isLoadingError),
|
|
101
|
+
loading: __props.loading || unref(submitting)
|
|
102
102
|
}, {
|
|
103
103
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => unref(showModal)($event ?? null))
|
|
104
104
|
}), createSlots({ _: 2 }, [
|
|
@@ -95,9 +95,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
95
95
|
return openBlock(), createBlock(_sfc_main$1, mergeProps({
|
|
96
96
|
...props,
|
|
97
97
|
modelValue: unref(modelValue),
|
|
98
|
-
skeleton:
|
|
99
|
-
disabled:
|
|
100
|
-
loading:
|
|
98
|
+
skeleton: __props.skeleton || !unref(data),
|
|
99
|
+
disabled: __props.disabled || unref(isLoadingError),
|
|
100
|
+
loading: __props.loading || unref(submitting)
|
|
101
101
|
}, {
|
|
102
102
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => unref(showModal)($event ?? null))
|
|
103
103
|
}), createSlots({ _: 2 }, [
|
|
@@ -95,9 +95,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
95
95
|
return openBlock(), createBlock(_sfc_main$1, mergeProps({
|
|
96
96
|
...props,
|
|
97
97
|
modelValue: unref(modelValue),
|
|
98
|
-
skeleton:
|
|
99
|
-
disabled:
|
|
100
|
-
loading:
|
|
98
|
+
skeleton: __props.skeleton || !unref(data),
|
|
99
|
+
disabled: __props.disabled || unref(isLoadingError),
|
|
100
|
+
loading: __props.loading || unref(submitting)
|
|
101
101
|
}, {
|
|
102
102
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => unref(showModal)($event ?? null))
|
|
103
103
|
}), createSlots({ _: 2 }, [
|
|
@@ -37,8 +37,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
37
37
|
return openBlock(), createBlock(_sfc_main$1, mergeProps({
|
|
38
38
|
...props,
|
|
39
39
|
modelValue: unref(modelValue),
|
|
40
|
-
loading:
|
|
41
|
-
disabled: !unref(data) || unref(isLoadingError) ||
|
|
40
|
+
loading: __props.loading || !unref(data) || unref(submitting),
|
|
41
|
+
disabled: !unref(data) || unref(isLoadingError) || __props.disabled
|
|
42
42
|
}, { "onUpdate:modelValue": unref(showModal) }), createSlots({ _: 2 }, [
|
|
43
43
|
_ctx.$slots.title ? {
|
|
44
44
|
name: "title",
|
|
@@ -57,7 +57,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
57
57
|
}, [
|
|
58
58
|
createElementVNode("div", _hoisted_1, [
|
|
59
59
|
renderSlot(_ctx.$slots, "title", {}, () => [
|
|
60
|
-
createTextVNode(toDisplayString(
|
|
60
|
+
createTextVNode(toDisplayString(__props.title), 1)
|
|
61
61
|
])
|
|
62
62
|
]),
|
|
63
63
|
unref(search) ? (openBlock(), createElementBlock("button", {
|