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
|
@@ -245,7 +245,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
245
245
|
return (_ctx, _cache) => {
|
|
246
246
|
return openBlock(), createElementBlock("div", {
|
|
247
247
|
ref: "element",
|
|
248
|
-
contenteditable:
|
|
248
|
+
contenteditable: __props.readonly || __props.disabled ? "false" : "plaintext-only",
|
|
249
249
|
role: "textbox",
|
|
250
250
|
"aria-multiline": "true",
|
|
251
251
|
spellcheck: "false",
|
|
@@ -34,42 +34,42 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
34
34
|
const props = __props;
|
|
35
35
|
const { doCopy, iconCopy } = useCopy(toRef(props, "modelValue"));
|
|
36
36
|
return (_ctx, _cache) => {
|
|
37
|
-
return
|
|
38
|
-
|
|
37
|
+
return __props.loading || _ctx.$slots.default || __props.textSecure || __props.allowCopy || (__props.allowPaste || __props.allowClear) && !__props.disabled && !__props.readonly ? (openBlock(), createElementBlock("div", _hoisted_1, [
|
|
38
|
+
__props.allowClear && !__props.disabled && !__props.readonly ? (openBlock(), createBlock(_sfc_main$1, {
|
|
39
39
|
key: 0,
|
|
40
40
|
icon: markRaw(unref(IconClose)),
|
|
41
41
|
"tooltip-text": "Clear",
|
|
42
42
|
top: "",
|
|
43
43
|
onClick: _cache[0] || (_cache[0] = ($event) => _ctx.$emit("click:clear"))
|
|
44
44
|
}, null, 8, ["icon"])) : createCommentVNode("", true),
|
|
45
|
-
|
|
45
|
+
__props.allowCopy && !__props.textSecure ? (openBlock(), createBlock(_sfc_main$1, {
|
|
46
46
|
key: 1,
|
|
47
47
|
icon: markRaw(unref(iconCopy)),
|
|
48
48
|
"tooltip-text": "Copy",
|
|
49
49
|
top: "",
|
|
50
50
|
onClick: unref(doCopy)
|
|
51
51
|
}, null, 8, ["icon", "onClick"])) : createCommentVNode("", true),
|
|
52
|
-
|
|
52
|
+
__props.allowPaste && !__props.disabled && !__props.readonly ? (openBlock(), createBlock(_sfc_main$1, {
|
|
53
53
|
key: 2,
|
|
54
54
|
icon: markRaw(unref(IconPaste)),
|
|
55
55
|
"tooltip-text": "Paste",
|
|
56
56
|
top: "",
|
|
57
57
|
onClick: _cache[1] || (_cache[1] = ($event) => _ctx.$emit("click:paste"))
|
|
58
58
|
}, null, 8, ["icon"])) : createCommentVNode("", true),
|
|
59
|
-
|
|
59
|
+
__props.textSecure ? (openBlock(), createBlock(_sfc_main$1, {
|
|
60
60
|
key: 3,
|
|
61
|
-
icon:
|
|
62
|
-
"tooltip-text":
|
|
63
|
-
disabled:
|
|
61
|
+
icon: __props.isSecureVisible ? markRaw(unref(IconEye)) : markRaw(unref(IconEyeSlash)),
|
|
62
|
+
"tooltip-text": __props.isSecureVisible ? "Hide" : "Show",
|
|
63
|
+
disabled: __props.disabled || __props.readonly,
|
|
64
64
|
top: "",
|
|
65
|
-
onClick: _cache[2] || (_cache[2] = ($event) =>
|
|
65
|
+
onClick: _cache[2] || (_cache[2] = ($event) => __props.isSecureVisible ? _ctx.$emit("hide:secure", $event) : _ctx.$emit("show:secure", $event))
|
|
66
66
|
}, null, 8, ["icon", "tooltip-text", "disabled"])) : createCommentVNode("", true),
|
|
67
|
-
|
|
67
|
+
__props.loading ? (openBlock(), createElementBlock("div", _hoisted_2, [
|
|
68
68
|
createVNode(WSpinner, { class: "w-spinner-size-[1.125em]" })
|
|
69
69
|
])) : createCommentVNode("", true),
|
|
70
70
|
renderSlot(_ctx.$slots, "default", {
|
|
71
|
-
loading:
|
|
72
|
-
disabled:
|
|
71
|
+
loading: __props.loading,
|
|
72
|
+
disabled: __props.disabled
|
|
73
73
|
})
|
|
74
74
|
])) : createCommentVNode("", true);
|
|
75
75
|
};
|
|
@@ -17,27 +17,27 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
17
17
|
setup(__props) {
|
|
18
18
|
return (_ctx, _cache) => {
|
|
19
19
|
return openBlock(), createElementBlock("button", {
|
|
20
|
-
disabled:
|
|
20
|
+
disabled: __props.disabled,
|
|
21
21
|
class: normalizeClass([{
|
|
22
|
-
"w-ripple w-ripple-hover cursor-pointer": !
|
|
23
|
-
"cursor-not-allowed":
|
|
24
|
-
"h-[calc(var(--w-input-height,2.75rem)-2px)]":
|
|
25
|
-
"h-full": !
|
|
22
|
+
"w-ripple w-ripple-hover cursor-pointer": !__props.disabled,
|
|
23
|
+
"cursor-not-allowed": __props.disabled,
|
|
24
|
+
"h-[calc(var(--w-input-height,2.75rem)-2px)]": __props.top,
|
|
25
|
+
"h-full": !__props.top
|
|
26
26
|
}, "text-description relative flex w-[calc(var(--w-input-height,2.75rem)-2px)] select-none items-center justify-center"]),
|
|
27
|
-
"aria-label":
|
|
28
|
-
"aria-disabled":
|
|
29
|
-
"aria-pressed":
|
|
30
|
-
"aria-expanded":
|
|
27
|
+
"aria-label": __props.label ?? __props.tooltipText,
|
|
28
|
+
"aria-disabled": __props.disabled,
|
|
29
|
+
"aria-pressed": __props.pressed,
|
|
30
|
+
"aria-expanded": __props.expanded,
|
|
31
31
|
onMousedown: _cache[0] || (_cache[0] = withModifiers(() => {
|
|
32
32
|
}, ["prevent", "stop"])),
|
|
33
33
|
onClick: _cache[1] || (_cache[1] = withModifiers(($event) => _ctx.$emit("click", $event), ["stop"]))
|
|
34
34
|
}, [
|
|
35
35
|
renderSlot(_ctx.$slots, "default", {}, () => [
|
|
36
|
-
(openBlock(), createBlock(resolveDynamicComponent(
|
|
36
|
+
(openBlock(), createBlock(resolveDynamicComponent(__props.icon), { class: "square-[1.125em]" }))
|
|
37
37
|
]),
|
|
38
|
-
|
|
38
|
+
__props.tooltipText && !__props.disabled ? (openBlock(), createBlock(_sfc_main$1, {
|
|
39
39
|
key: 0,
|
|
40
|
-
text:
|
|
40
|
+
text: __props.tooltipText,
|
|
41
41
|
"no-touch": ""
|
|
42
42
|
}, null, 8, ["text"])) : createCommentVNode("", true)
|
|
43
43
|
], 42, _hoisted_1);
|
|
@@ -27,33 +27,27 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
27
27
|
}, ["prevent"]))
|
|
28
28
|
}, [
|
|
29
29
|
renderSlot(_ctx.$slots, "default"),
|
|
30
|
-
(openBlock(true), createElementBlock(Fragment, null, renderList(
|
|
31
|
-
return openBlock(), createBlock(_sfc_main$1, mergeProps({
|
|
32
|
-
key: index,
|
|
33
|
-
ref_for: true
|
|
34
|
-
}, action, {
|
|
30
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(__props.list, (action, index) => {
|
|
31
|
+
return openBlock(), createBlock(_sfc_main$1, mergeProps({ key: index }, { ref_for: true }, action, {
|
|
35
32
|
onClick: ($event) => wrapSelection(action, $event)
|
|
36
33
|
}), null, 16, ["onClick"]);
|
|
37
34
|
}), 128)),
|
|
38
|
-
|
|
39
|
-
return openBlock(), createBlock(_sfc_main$1, mergeProps({
|
|
40
|
-
key: index,
|
|
41
|
-
ref_for: true
|
|
42
|
-
}, action, {
|
|
35
|
+
__props.rich ? (openBlock(true), createElementBlock(Fragment, { key: 0 }, renderList(unref(toolbarActionList), (action, index) => {
|
|
36
|
+
return openBlock(), createBlock(_sfc_main$1, mergeProps({ key: index }, { ref_for: true }, action, {
|
|
43
37
|
onClick: ($event) => wrapSelection(action, $event)
|
|
44
38
|
}), null, 16, ["onClick"]);
|
|
45
39
|
}), 128)) : createCommentVNode("", true),
|
|
46
|
-
!
|
|
40
|
+
!__props.textSecure ? (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
47
41
|
createVNode(_sfc_main$1, {
|
|
48
42
|
tooltip: "Undo",
|
|
49
43
|
icon: markRaw(unref(IconUndo)),
|
|
50
|
-
disabled: !
|
|
44
|
+
disabled: !__props.isUndo,
|
|
51
45
|
onClick: _cache[0] || (_cache[0] = ($event) => _ctx.$emit("undo"))
|
|
52
46
|
}, null, 8, ["icon", "disabled"]),
|
|
53
47
|
createVNode(_sfc_main$1, {
|
|
54
48
|
tooltip: "Redo",
|
|
55
49
|
icon: markRaw(unref(IconRedo)),
|
|
56
|
-
disabled: !
|
|
50
|
+
disabled: !__props.isRedo,
|
|
57
51
|
onClick: _cache[1] || (_cache[1] = ($event) => _ctx.$emit("redo"))
|
|
58
52
|
}, null, 8, ["icon", "disabled"])
|
|
59
53
|
], 64)) : createCommentVNode("", true)
|
|
@@ -18,22 +18,22 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
18
18
|
return (_ctx, _cache) => {
|
|
19
19
|
return openBlock(), createElementBlock("button", {
|
|
20
20
|
class: normalizeClass(["text-accent group/toolbar first-not:-ml-px relative pb-1 pt-2", {
|
|
21
|
-
"cursor-not-allowed opacity-50":
|
|
22
|
-
"w-ripple w-ripple-hover cursor-pointer": !
|
|
23
|
-
"before:opacity-10": !
|
|
21
|
+
"cursor-not-allowed opacity-50": __props.disabled,
|
|
22
|
+
"w-ripple w-ripple-hover cursor-pointer": !__props.disabled,
|
|
23
|
+
"before:opacity-10": !__props.disabled && __props.active
|
|
24
24
|
}]),
|
|
25
|
-
"aria-label":
|
|
26
|
-
onClick: _cache[0] || (_cache[0] = ($event) => !
|
|
27
|
-
onMouseenter: _cache[1] || (_cache[1] = ($event) => !
|
|
28
|
-
onMouseleave: _cache[2] || (_cache[2] = ($event) => !
|
|
25
|
+
"aria-label": __props.label ?? __props.tooltip ?? __props.title,
|
|
26
|
+
onClick: _cache[0] || (_cache[0] = ($event) => !__props.disabled && _ctx.$emit("click", $event)),
|
|
27
|
+
onMouseenter: _cache[1] || (_cache[1] = ($event) => !__props.disabled && _ctx.$emit("mouseenter", $event)),
|
|
28
|
+
onMouseleave: _cache[2] || (_cache[2] = ($event) => !__props.disabled && _ctx.$emit("mouseleave", $event))
|
|
29
29
|
}, [
|
|
30
30
|
createElementVNode("div", _hoisted_2, [
|
|
31
|
-
(openBlock(), createBlock(resolveDynamicComponent(
|
|
32
|
-
createTextVNode(" " + toDisplayString(
|
|
31
|
+
(openBlock(), createBlock(resolveDynamicComponent(__props.icon), { class: "square-[1.25em] -mt-[0.25em] inline" })),
|
|
32
|
+
createTextVNode(" " + toDisplayString(__props.title ?? ""), 1)
|
|
33
33
|
]),
|
|
34
|
-
|
|
34
|
+
__props.tooltip ? (openBlock(), createBlock(_sfc_main$1, {
|
|
35
35
|
key: 0,
|
|
36
|
-
text:
|
|
36
|
+
text: __props.tooltip,
|
|
37
37
|
top: ""
|
|
38
38
|
}, null, 8, ["text"])) : createCommentVNode("", true)
|
|
39
39
|
], 42, _hoisted_1);
|
|
@@ -17,15 +17,15 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
17
17
|
const semanticTypeChipMap = useSemanticTypeChipMap();
|
|
18
18
|
const semanticTypeTextMap = useSemanticTypeTextMap();
|
|
19
19
|
return (_ctx, _cache) => {
|
|
20
|
-
return openBlock(), createBlock(resolveDynamicComponent(
|
|
21
|
-
class: ["cursor-pointer overflow-hidden truncate whitespace-normal font-normal no-underline hover:underline", unref(semanticTypeTextMap)[
|
|
20
|
+
return openBlock(), createBlock(resolveDynamicComponent(__props.to ? _sfc_main$1 : "a"), mergeProps(!__props.to ? { target: __props.target, href: __props.href } : { to: __props.to }, {
|
|
21
|
+
class: ["cursor-pointer overflow-hidden truncate whitespace-normal font-normal no-underline hover:underline", unref(semanticTypeTextMap)[__props.semanticType]]
|
|
22
22
|
}), {
|
|
23
23
|
default: withCtx(() => [
|
|
24
|
-
(openBlock(), createBlock(resolveDynamicComponent(
|
|
25
|
-
class: normalizeClass(["square-[1.25em] mr-[0.25em] mt-[-0.25em] inline rounded-[0.5em] p-px", unref(semanticTypeChipMap)[
|
|
24
|
+
(openBlock(), createBlock(resolveDynamicComponent(__props.icon ?? unref(IconLink)), {
|
|
25
|
+
class: normalizeClass(["square-[1.25em] mr-[0.25em] mt-[-0.25em] inline rounded-[0.5em] p-px", unref(semanticTypeChipMap)[__props.semanticType]])
|
|
26
26
|
}, null, 8, ["class"])),
|
|
27
27
|
renderSlot(_ctx.$slots, "default", {}, () => [
|
|
28
|
-
createTextVNode(toDisplayString(
|
|
28
|
+
createTextVNode(toDisplayString(__props.text), 1)
|
|
29
29
|
])
|
|
30
30
|
]),
|
|
31
31
|
_: 3
|
|
@@ -11,12 +11,12 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
11
11
|
setup(__props) {
|
|
12
12
|
return (_ctx, _cache) => {
|
|
13
13
|
return openBlock(), createBlock(_sfc_main$1, {
|
|
14
|
-
to:
|
|
14
|
+
to: __props.to,
|
|
15
15
|
class: "text-description hover:text-primary dark:hover:text-primary-dark flex cursor-pointer select-none items-center gap-2 self-end py-2 font-normal no-underline"
|
|
16
16
|
}, {
|
|
17
17
|
default: withCtx(() => [
|
|
18
18
|
renderSlot(_ctx.$slots, "default", {}, () => [
|
|
19
|
-
createTextVNode(toDisplayString(
|
|
19
|
+
createTextVNode(toDisplayString(__props.text), 1)
|
|
20
20
|
]),
|
|
21
21
|
createVNode(unref(IconBack), { class: "square-[1.25em] rotate-180" })
|
|
22
22
|
]),
|
|
@@ -32,7 +32,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
32
32
|
props: {
|
|
33
33
|
count: { default: void 0 },
|
|
34
34
|
fields: {},
|
|
35
|
-
expansion: { default: void 0 },
|
|
35
|
+
expansion: { type: [Object, Function], default: void 0 },
|
|
36
36
|
useQueryFn: {},
|
|
37
37
|
queryParams: {},
|
|
38
38
|
queryOptions: { default: void 0 },
|
|
@@ -149,21 +149,21 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
149
149
|
class: normalizeClass({
|
|
150
150
|
"w-card": unref(isGrid),
|
|
151
151
|
"w-list": !unref(isGrid),
|
|
152
|
-
"[--w-list-right:calc(var(--w-list-padding,1rem)*2+1.25em)]":
|
|
153
|
-
"[--w-list-right:--w-list-header-rounded,1rem]": !
|
|
152
|
+
"[--w-list-right:calc(var(--w-list-padding,1rem)*2+1.25em)]": __props.menu,
|
|
153
|
+
"[--w-list-right:--w-list-header-rounded,1rem]": !__props.menu,
|
|
154
154
|
"[--w-list-left:calc(var(--w-list-padding,1rem)*2+1.25em+1px)]": allowSelect.value,
|
|
155
155
|
"[--w-list-left:--w-list-header-rounded,1rem]": !allowSelect.value
|
|
156
156
|
}),
|
|
157
157
|
style: normalizeStyle([stylesWidth.value, stylesFixed.value])
|
|
158
158
|
}, [
|
|
159
159
|
createVNode(_sfc_main$1, {
|
|
160
|
-
"use-query-fn":
|
|
161
|
-
"query-params":
|
|
162
|
-
"query-options":
|
|
163
|
-
"skeleton-length":
|
|
160
|
+
"use-query-fn": __props.useQueryFn,
|
|
161
|
+
"query-params": __props.queryParams,
|
|
162
|
+
"query-options": __props.queryOptions,
|
|
163
|
+
"skeleton-length": __props.count ?? listCount.value ?? unref(PAGE_LENGTH),
|
|
164
164
|
"hide-page-title": "",
|
|
165
165
|
"page-length": unref(PAGE_LENGTH),
|
|
166
|
-
count:
|
|
166
|
+
count: __props.count ?? listCount.value,
|
|
167
167
|
"page-class": unref(isGrid) ? "grid grid-cols-[repeat(auto-fill,minmax(var(--w-list-card-width,16rem),1fr))] gap-[--w-list-gap,0]" : "grid grid-cols-1 gap-[--w-list-gap,0]",
|
|
168
168
|
style: normalizeStyle(cardStyles.value),
|
|
169
169
|
class: normalizeClass(_ctx.$attrs.class),
|
|
@@ -173,8 +173,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
173
173
|
header: withCtx(({ updateHeader, isRefetchingAll, refetchAll }) => [
|
|
174
174
|
renderSlot(_ctx.$slots, "header", { count: listCount.value }),
|
|
175
175
|
createVNode(_sfc_main$4, {
|
|
176
|
-
title:
|
|
177
|
-
"disable-message":
|
|
176
|
+
title: __props.selectionTitle,
|
|
177
|
+
"disable-message": __props.bulkDisableMessage,
|
|
178
178
|
"selected-count": unref(selectionCount),
|
|
179
179
|
style: normalizeStyle({ zIndex: unref(BASE_ZINDEX_DROPDOWN) }),
|
|
180
180
|
"onClear:selection": unref(resetSelection)
|
|
@@ -194,13 +194,13 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
194
194
|
_cache[8] || (_cache[8] = createElementVNode("div", null, " Select range ", -1)),
|
|
195
195
|
createElementVNode("div", _hoisted_3, [
|
|
196
196
|
createVNode(unref(IconShift), { class: "square-4 -mt-[0.25em] inline" }),
|
|
197
|
-
_cache[7] || (_cache[7] = createTextVNode(" Shift "))
|
|
197
|
+
_cache[7] || (_cache[7] = createTextVNode(" Shift ", -1))
|
|
198
198
|
])
|
|
199
199
|
])
|
|
200
200
|
]),
|
|
201
201
|
_: 1
|
|
202
202
|
}, 8, ["icon", "active"])) : createCommentVNode("", true),
|
|
203
|
-
!
|
|
203
|
+
!__props.noRefetch ? (openBlock(), createBlock(_sfc_main$5, {
|
|
204
204
|
key: 1,
|
|
205
205
|
icon: markRaw(unref(IconRefresh)),
|
|
206
206
|
loading: isRefetchingAll,
|
|
@@ -209,15 +209,15 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
209
209
|
class: "last-not:border-r border-solid border-gray-300 dark:border-gray-700",
|
|
210
210
|
onClick: refetchAll
|
|
211
211
|
}, null, 8, ["icon", "loading", "active", "onClick"])) : createCommentVNode("", true),
|
|
212
|
-
!
|
|
212
|
+
!__props.noOrdering ? (openBlock(), createBlock(_sfc_main$6, {
|
|
213
213
|
key: 2,
|
|
214
214
|
ordering: ordering.value,
|
|
215
215
|
fields: fieldsFiltered.value,
|
|
216
|
-
"query-params":
|
|
216
|
+
"query-params": __props.queryParams,
|
|
217
217
|
class: "last-not:border-r border-solid border-gray-300 dark:border-gray-700",
|
|
218
218
|
"onUpdate:ordering": updateOrdering
|
|
219
219
|
}, null, 8, ["ordering", "fields", "query-params"])) : createCommentVNode("", true),
|
|
220
|
-
!
|
|
220
|
+
!__props.noHeaderSettings ? (openBlock(), createBlock(_sfc_main$7, {
|
|
221
221
|
key: 3,
|
|
222
222
|
"field-config-map": unref(fieldConfigMap),
|
|
223
223
|
"onUpdate:fieldConfigMap": [
|
|
@@ -229,7 +229,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
229
229
|
],
|
|
230
230
|
mode: unref(listConfig).mode,
|
|
231
231
|
fields: fieldsVisible.value,
|
|
232
|
-
"query-params":
|
|
232
|
+
"query-params": __props.queryParams,
|
|
233
233
|
"has-saved": unref(hasSaved),
|
|
234
234
|
mobile: unref(isMobile),
|
|
235
235
|
"onClick:reset": _cache[2] || (_cache[2] = ($event) => {
|
|
@@ -243,17 +243,17 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
243
243
|
]),
|
|
244
244
|
_: 2
|
|
245
245
|
}, [
|
|
246
|
-
|
|
246
|
+
__props.bulk || __props.action ? {
|
|
247
247
|
name: "default",
|
|
248
248
|
fn: withCtx(({ disableMessage, cssClass }) => [
|
|
249
|
-
unref(selectionCount) === 0 &&
|
|
249
|
+
unref(selectionCount) === 0 && __props.action ? (openBlock(true), createElementBlock(Fragment, { key: 0 }, renderList(__props.action, (item, index) => {
|
|
250
250
|
return openBlock(), createBlock(resolveDynamicComponent(item), {
|
|
251
251
|
key: index,
|
|
252
|
-
"query-params":
|
|
252
|
+
"query-params": __props.queryParams,
|
|
253
253
|
readonly: unref(isReadonly) ?? unref(isDisabled) ?? false,
|
|
254
254
|
class: normalizeClass(cssClass)
|
|
255
255
|
}, null, 8, ["query-params", "readonly", "class"]);
|
|
256
|
-
}), 128)) : (openBlock(true), createElementBlock(Fragment, { key: 1 }, renderList(
|
|
256
|
+
}), 128)) : (openBlock(true), createElementBlock(Fragment, { key: 1 }, renderList(__props.bulk, (item, index) => {
|
|
257
257
|
return openBlock(), createBlock(resolveDynamicComponent(item), {
|
|
258
258
|
key: index,
|
|
259
259
|
"selection-count": unref(selectionCount),
|
|
@@ -267,10 +267,10 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
267
267
|
]),
|
|
268
268
|
key: "0"
|
|
269
269
|
} : void 0,
|
|
270
|
-
|
|
270
|
+
__props.bulk && __props.bulkMore ? {
|
|
271
271
|
name: "more",
|
|
272
272
|
fn: withCtx((scope) => [
|
|
273
|
-
(openBlock(true), createElementBlock(Fragment, null, renderList(
|
|
273
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(__props.bulkMore, (item, index) => {
|
|
274
274
|
return openBlock(), createBlock(resolveDynamicComponent(item), {
|
|
275
275
|
key: index,
|
|
276
276
|
"selection-count": unref(selectionCount),
|
|
@@ -289,9 +289,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
289
289
|
key: 0,
|
|
290
290
|
class: "sm-not:hidden",
|
|
291
291
|
"allow-select": allowSelect.value,
|
|
292
|
-
"tooltip-text":
|
|
293
|
-
"hide-more": !
|
|
294
|
-
count:
|
|
292
|
+
"tooltip-text": __props.selectAllTextGetter(unref(selectAllValue) !== true, __props.count ?? listCount.value ?? 0),
|
|
293
|
+
"hide-more": !__props.menu,
|
|
294
|
+
count: __props.count ?? listCount.value,
|
|
295
295
|
selection: unref(selectAllValue),
|
|
296
296
|
style: normalizeStyle({
|
|
297
297
|
"--list-header-width": unref(getFieldWidthSumStyles)(unref(fieldConfigMap))
|
|
@@ -306,10 +306,10 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
306
306
|
}, {
|
|
307
307
|
default: withCtx(({ field }) => [
|
|
308
308
|
createVNode(_sfc_main$a, {
|
|
309
|
-
title: typeof field.meta.title === "string" ? field.meta.title : field.meta.title(
|
|
310
|
-
field: typeof field.meta.field === "string" ? field.meta.field : field.meta.field?.(
|
|
309
|
+
title: typeof field.meta.title === "string" ? field.meta.title : field.meta.title(__props.queryParams),
|
|
310
|
+
field: typeof field.meta.field === "string" ? field.meta.field : field.meta.field?.(__props.queryParams),
|
|
311
311
|
ordering: ordering.value,
|
|
312
|
-
disabled:
|
|
312
|
+
disabled: __props.noOrdering || !field.meta.field,
|
|
313
313
|
"allow-resize": field.meta.allowResize,
|
|
314
314
|
"item-class": field.meta.cssClassHeader,
|
|
315
315
|
"style-value": unref(isGrid) ? { gridArea: field.meta.label } : {
|
|
@@ -334,11 +334,11 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
334
334
|
_: 1
|
|
335
335
|
}, 8, ["fields", "field-config-map"])
|
|
336
336
|
]),
|
|
337
|
-
_:
|
|
338
|
-
},
|
|
337
|
+
_: 1
|
|
338
|
+
}, 8, ["allow-select", "tooltip-text", "hide-more", "count", "selection", "style", "onUpdate:header"])) : createCommentVNode("", true)
|
|
339
339
|
]),
|
|
340
340
|
default: withCtx(({ item, skeleton, setter, refetch, previous, index, position, value }) => [
|
|
341
|
-
|
|
341
|
+
__props.groupBy && (index === 0 || !skeleton && (!previous || !__props.groupBy(item, previous))) ? renderSlot(_ctx.$slots, "group", {
|
|
342
342
|
key: 0,
|
|
343
343
|
item,
|
|
344
344
|
previous,
|
|
@@ -346,17 +346,17 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
346
346
|
}) : createCommentVNode("", true),
|
|
347
347
|
createVNode(_sfc_main$2, {
|
|
348
348
|
disabled: skeleton,
|
|
349
|
-
"disable-more":
|
|
349
|
+
"disable-more": __props.disableMore,
|
|
350
350
|
mobile: unref(isMobile),
|
|
351
|
-
"card-class":
|
|
352
|
-
"card-wrapper-class":
|
|
353
|
-
"has-border":
|
|
351
|
+
"card-class": __props.cardClass,
|
|
352
|
+
"card-wrapper-class": __props.cardWrapperClass,
|
|
353
|
+
"has-border": __props.hasBorder,
|
|
354
354
|
"allow-open": allowOpen.value && !skeleton,
|
|
355
|
-
"align-top":
|
|
356
|
-
"form-name": skeleton ? void 0 :
|
|
355
|
+
"align-top": __props.alignTop,
|
|
356
|
+
"form-name": skeleton ? void 0 : __props.formNameGetter?.(item),
|
|
357
357
|
card: unref(isGrid),
|
|
358
|
-
to: skeleton ? void 0 :
|
|
359
|
-
"has-action":
|
|
358
|
+
to: skeleton ? void 0 : __props.cardTo?.(item),
|
|
359
|
+
"has-action": __props.hasAction,
|
|
360
360
|
skeleton,
|
|
361
361
|
selected: skeleton ? false : unref(getIsSelected)(value, position),
|
|
362
362
|
"allow-select": allowSelect.value,
|
|
@@ -372,19 +372,19 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
372
372
|
item,
|
|
373
373
|
skeleton,
|
|
374
374
|
card: unref(isGrid),
|
|
375
|
-
readonly: (unref(isReadonly) ?? unref(isDisabled)) || (
|
|
375
|
+
readonly: (unref(isReadonly) ?? unref(isDisabled)) || (__props.readonlyGetter?.(item) ?? false)
|
|
376
376
|
}, {
|
|
377
377
|
default: withCtx((defaultScope) => [
|
|
378
378
|
(openBlock(), createBlock(resolveDynamicComponent(defaultScope.field.default), {
|
|
379
379
|
item: defaultScope.item,
|
|
380
|
-
readonly: (unref(isReadonly) ?? unref(isDisabled)) || (
|
|
380
|
+
readonly: (unref(isReadonly) ?? unref(isDisabled)) || (__props.readonlyGetter?.(defaultScope.item) ?? false),
|
|
381
381
|
skeleton,
|
|
382
382
|
card: unref(isGrid),
|
|
383
383
|
config: unref(fieldConfigMap)[defaultScope.field.meta.label],
|
|
384
384
|
class: normalizeClass({
|
|
385
385
|
[defaultScope.field.meta.cssClass ?? ""]: true,
|
|
386
|
-
"items-center": !
|
|
387
|
-
"items-start":
|
|
386
|
+
"items-center": !__props.alignTop,
|
|
387
|
+
"items-start": __props.alignTop,
|
|
388
388
|
"bg-default dark:bg-default-dark sticky z-[1]": !unref(isGrid) && unref(fieldConfigMap)[defaultScope.field.meta.label]?.sticky,
|
|
389
389
|
...!unref(isGrid) && unref(fieldConfigMap)[defaultScope.field.meta.label]?.sticky ? beforeClass : {}
|
|
390
390
|
}),
|
|
@@ -407,12 +407,12 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
407
407
|
]),
|
|
408
408
|
_: 2
|
|
409
409
|
}, [
|
|
410
|
-
|
|
410
|
+
__props.expansion ? {
|
|
411
411
|
name: "expansion",
|
|
412
412
|
fn: withCtx(() => [
|
|
413
|
-
(openBlock(), createBlock(resolveDynamicComponent(
|
|
413
|
+
(openBlock(), createBlock(resolveDynamicComponent(__props.expansion), {
|
|
414
414
|
item,
|
|
415
|
-
readonly: (unref(isReadonly) ?? unref(isDisabled)) || (
|
|
415
|
+
readonly: (unref(isReadonly) ?? unref(isDisabled)) || (__props.readonlyGetter?.(item) ?? false),
|
|
416
416
|
skeleton,
|
|
417
417
|
card: unref(isGrid),
|
|
418
418
|
"onUpdate:item": setter,
|
|
@@ -424,16 +424,16 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
424
424
|
]),
|
|
425
425
|
key: "0"
|
|
426
426
|
} : void 0,
|
|
427
|
-
|
|
427
|
+
__props.menu ? {
|
|
428
428
|
name: "more",
|
|
429
429
|
fn: withCtx(() => [
|
|
430
|
-
(openBlock(true), createElementBlock(Fragment, null, renderList(
|
|
430
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(__props.menu, (menuItem, menuIndex) => {
|
|
431
431
|
return openBlock(), createBlock(resolveDynamicComponent(Array.isArray(menuItem) ? menuItem[0] : menuItem), mergeProps({
|
|
432
432
|
key: menuIndex,
|
|
433
433
|
ref_for: true
|
|
434
434
|
}, Array.isArray(menuItem) ? menuItem[1] : void 0, {
|
|
435
435
|
item,
|
|
436
|
-
readonly: (unref(isReadonly) ?? unref(isDisabled)) || (
|
|
436
|
+
readonly: (unref(isReadonly) ?? unref(isDisabled)) || (__props.readonlyGetter?.(item) ?? false),
|
|
437
437
|
"update-item": setter,
|
|
438
438
|
"delete-item": () => {
|
|
439
439
|
setter();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"WListCard.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/List/WListCard.vue"],"names":[],"mappings":"AAoMA;AAyRA,OAAO,KAAK,EAAC,SAAS,EAAC,MAAM,eAAe,CAAA;AAgB5C,KAAK,WAAW,GAAG;IACjB,QAAQ,EAAE,OAAO,GAAG,SAAS,CAAA;IAC7B,MAAM,EAAE,OAAO,GAAG,SAAS,CAAA;IAC3B,QAAQ,EAAE,OAAO,GAAG,SAAS,CAAA;IAC7B,SAAS,EAAE,OAAO,GAAG,SAAS,CAAA;IAC9B,SAAS,EAAE,MAAM,GAAG,SAAS,CAAA;IAC7B,gBAAgB,EAAE,MAAM,GAAG,SAAS,CAAA;IACpC,SAAS,EAAE,OAAO,GAAG,SAAS,CAAA;IAC9B,WAAW,EAAE,OAAO,GAAG,SAAS,CAAA;IAChC,QAAQ,EAAE,MAAM,GAAG,SAAS,CAAA;IAC5B,IAAI,EAAE,OAAO,CAAA;IACb,EAAE,EAAE,SAAS,CAAC,IAAI,CAAC,GAAG,SAAS,CAAA;IAC/B,SAAS,EAAE,OAAO,GAAG,SAAS,CAAA;IAC9B,QAAQ,EAAE,OAAO,CAAA;IAEjB,QAAQ,EAAE,OAAO,CAAA;IACjB,WAAW,EAAE,OAAO,CAAA;IACpB,gBAAgB,EAAE,OAAO,CAAA;CAC1B,CAAC;AAmDF,iBAAS,cAAc;WA0YT,OAAO,IAA6B;;;;;;;YAjBpB,GAAG;sBACN,GAAG;sBACH,GAAG;2BACE,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"WListCard.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/List/WListCard.vue"],"names":[],"mappings":"AAoMA;AAyRA,OAAO,KAAK,EAAC,SAAS,EAAC,MAAM,eAAe,CAAA;AAgB5C,KAAK,WAAW,GAAG;IACjB,QAAQ,EAAE,OAAO,GAAG,SAAS,CAAA;IAC7B,MAAM,EAAE,OAAO,GAAG,SAAS,CAAA;IAC3B,QAAQ,EAAE,OAAO,GAAG,SAAS,CAAA;IAC7B,SAAS,EAAE,OAAO,GAAG,SAAS,CAAA;IAC9B,SAAS,EAAE,MAAM,GAAG,SAAS,CAAA;IAC7B,gBAAgB,EAAE,MAAM,GAAG,SAAS,CAAA;IACpC,SAAS,EAAE,OAAO,GAAG,SAAS,CAAA;IAC9B,WAAW,EAAE,OAAO,GAAG,SAAS,CAAA;IAChC,QAAQ,EAAE,MAAM,GAAG,SAAS,CAAA;IAC5B,IAAI,EAAE,OAAO,CAAA;IACb,EAAE,EAAE,SAAS,CAAC,IAAI,CAAC,GAAG,SAAS,CAAA;IAC/B,SAAS,EAAE,OAAO,GAAG,SAAS,CAAA;IAC9B,QAAQ,EAAE,OAAO,CAAA;IAEjB,QAAQ,EAAE,OAAO,CAAA;IACjB,WAAW,EAAE,OAAO,CAAA;IACpB,gBAAgB,EAAE,OAAO,CAAA;CAC1B,CAAC;AAmDF,iBAAS,cAAc;WA0YT,OAAO,IAA6B;;;;;;;YAjBpB,GAAG;sBACN,GAAG;sBACH,GAAG;2BACE,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wCA5GnB,GAAG,8CAEM,GAAG,yBACZ,GAAG,6DACnB,GAAG;;;;;;;;;;;;;;;;;;EA2HF;AA6BD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oCA7JL,GAAG,8CAEM,GAAG,yBACZ,GAAG,6DACnB,GAAG;;;;;;;;;;;;;;;;OAiKD,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"}
|