eco-vue-js 0.10.5 → 0.10.7
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/components/Button/WButtonDropdown.vue.d.ts +1 -1
- package/dist/components/Button/WButtonDropdown.vue.d.ts.map +1 -1
- package/dist/components/Button/WButtonDropdown.vue.js +1 -12
- package/dist/components/Button/WButtonSelection.vue.d.ts +6 -5
- package/dist/components/Button/WButtonSelection.vue.d.ts.map +1 -1
- package/dist/components/Button/WButtonSelection.vue.js +10 -24
- package/dist/components/Checkbox/WCheckbox.vue.d.ts +0 -2
- package/dist/components/Checkbox/WCheckbox.vue.d.ts.map +1 -1
- package/dist/components/Checkbox/WCheckbox.vue.js +2 -8
- package/dist/components/FieldWrapper/WFieldWrapper.vue.js +1 -14
- package/dist/components/Form/WForm.vue.d.ts +2 -2
- package/dist/components/Form/WFormValidator.vue.d.ts +2 -2
- package/dist/components/Form/WFormValidator.vue.js +1 -14
- package/dist/components/Form/models/utils.js +0 -14
- package/dist/components/FormAsync/use/useFormAsync.d.ts.map +1 -1
- package/dist/components/FormAsync/use/useFormAsync.js +2 -14
- package/dist/components/HeaderBar/WHeaderBar.vue.js +2 -2
- package/dist/components/InfiniteList/WInfiniteList.vue.d.ts +3 -18
- package/dist/components/InfiniteList/WInfiniteList.vue.d.ts.map +1 -1
- package/dist/components/InfiniteList/WInfiniteList.vue.js +25 -83
- package/dist/components/InfiniteList/WInfiniteListWrapper.vue.js +1 -1
- package/dist/components/InfiniteList/components/InfiniteListPage.vue.d.ts +0 -5
- package/dist/components/InfiniteList/components/InfiniteListPage.vue.d.ts.map +1 -1
- package/dist/components/InfiniteList/components/InfiniteListPage.vue.js +8 -27
- package/dist/components/InfiniteList/components/InfiniteListPages.vue.d.ts +1 -8
- package/dist/components/InfiniteList/components/InfiniteListPages.vue.d.ts.map +1 -1
- package/dist/components/InfiniteList/components/InfiniteListPages.vue.js +10 -21
- package/dist/components/InfiniteList/use/useInfiniteListHeader.js +0 -13
- package/dist/components/Input/WInputSuggest.vue.js +3 -3
- package/dist/components/List/WList.vue.d.ts +3 -2
- package/dist/components/List/WList.vue.d.ts.map +1 -1
- package/dist/components/List/WList.vue.js +99 -112
- package/dist/components/List/WListCard.vue.d.ts +13 -11
- package/dist/components/List/WListCard.vue.d.ts.map +1 -1
- package/dist/components/List/WListCard.vue.js +79 -87
- package/dist/components/List/WListHeaderItem.vue.d.ts.map +1 -1
- package/dist/components/List/WListHeaderItem.vue.js +1 -1
- package/dist/components/List/components/HeaderSettings.vue.d.ts +3 -2
- package/dist/components/List/components/HeaderSettings.vue.d.ts.map +1 -1
- package/dist/components/List/components/HeaderSettings.vue.js +20 -24
- package/dist/components/List/components/HeaderSort.vue.d.ts +1 -1
- package/dist/components/List/components/HeaderSort.vue.d.ts.map +1 -1
- package/dist/components/List/components/HeaderSort.vue.js +0 -13
- package/dist/components/List/components/ListCardAction.vue.d.ts +23 -0
- package/dist/components/List/components/ListCardAction.vue.d.ts.map +1 -0
- package/dist/components/List/components/ListCardAction.vue.js +23 -0
- package/dist/components/List/components/ListCardAction.vue2.js +5 -0
- package/dist/components/List/types.d.ts +5 -0
- package/dist/components/List/types.d.ts.map +1 -1
- package/dist/components/List/use/useListConfig.d.ts +3 -10
- package/dist/components/List/use/useListConfig.d.ts.map +1 -1
- package/dist/components/List/use/useListConfig.js +20 -16
- package/dist/components/Modal/WModalStepper.vue.d.ts +26 -26
- package/dist/components/Nav/WNavItemExpand.vue.js +0 -13
- package/dist/components/Select/WSelect.vue.d.ts.map +1 -1
- package/dist/components/Select/WSelect.vue.js +2 -2
- package/dist/components/Select/WSelectAsync.vue.d.ts.map +1 -1
- package/dist/components/Select/WSelectAsync.vue.js +2 -2
- package/dist/components/Select/WSelectAsyncList.vue.d.ts +1 -1
- package/dist/components/Select/WSelectAsyncList.vue.d.ts.map +1 -1
- package/dist/components/Select/WSelectAsyncList.vue.js +0 -1
- package/dist/components/Select/components/SelectAsyncList.vue.d.ts.map +1 -1
- package/dist/components/Select/components/SelectAsyncList.vue.js +15 -11
- package/dist/components/Tabs/WTabs.vue.d.ts +24 -24
- package/dist/components/Tabs/WTabs.vue.d.ts.map +1 -1
- package/dist/components/Tabs/WTabs.vue.js +4 -17
- package/dist/components/Tabs/WTabsColumns.vue.js +2 -2
- package/dist/components/Tabs/components/TabItem.vue.d.ts +12 -12
- package/dist/main.js +2 -2
- package/dist/types/global.d.ts +0 -11
- package/dist/utils/mobile.d.ts +3 -0
- package/dist/utils/mobile.d.ts.map +1 -1
- package/dist/utils/mobile.js +15 -2
- package/dist/utils/useSelected.d.ts +22 -10
- package/dist/utils/useSelected.d.ts.map +1 -1
- package/dist/utils/useSelected.js +177 -45
- package/dist/utils/utils.d.ts +5 -0
- package/dist/utils/utils.d.ts.map +1 -1
- package/dist/utils/utils.js +9 -1
- package/eslint/plugin.js +4 -0
- package/package.json +1 -1
- package/tailwind-base/plugins/default.ts +1 -0
- package/dist/components/InfiniteList/components/InfiniteListPageSelectItem.vue.d.ts +0 -31
- package/dist/components/InfiniteList/components/InfiniteListPageSelectItem.vue.d.ts.map +0 -1
- package/dist/components/InfiniteList/components/InfiniteListPageSelectItem.vue.js +0 -30
- package/dist/components/InfiniteList/components/InfiniteListPageSelectItem.vue2.js +0 -5
- package/dist/components/InfiniteList/components/InfiniteListPageSelection.vue.d.ts +0 -27
- package/dist/components/InfiniteList/components/InfiniteListPageSelection.vue.d.ts.map +0 -1
- package/dist/components/InfiniteList/components/InfiniteListPageSelection.vue.js +0 -66
- package/dist/components/InfiniteList/components/InfiniteListPageSelection.vue2.js +0 -5
- package/dist/components/InfiniteList/models/injection.d.ts +0 -16
- package/dist/components/InfiniteList/models/injection.d.ts.map +0 -1
- package/dist/components/InfiniteList/models/injection.js +0 -4
- package/dist/components/InfiniteList/use/useSelected.d.ts +0 -14
- package/dist/components/InfiniteList/use/useSelected.d.ts.map +0 -1
- package/dist/components/InfiniteList/use/useSelected.js +0 -151
@@ -18,7 +18,6 @@ declare function __VLS_template(): {
|
|
18
18
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
19
19
|
declare const __VLS_component: import('vue').DefineComponent<{
|
20
20
|
disabled: boolean | undefined;
|
21
|
-
hideMore: boolean | undefined;
|
22
21
|
mobile: boolean | undefined;
|
23
22
|
alignTop: boolean | undefined;
|
24
23
|
hasBorder: boolean | undefined;
|
@@ -27,16 +26,16 @@ declare const __VLS_component: import('vue').DefineComponent<{
|
|
27
26
|
allowOpen: boolean | undefined;
|
28
27
|
disableMore: boolean | undefined;
|
29
28
|
formName: string | undefined;
|
30
|
-
card: boolean
|
29
|
+
card: boolean;
|
31
30
|
to: LinkProps["to"] | undefined;
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
"
|
31
|
+
selected: boolean;
|
32
|
+
allowSelect: boolean;
|
33
|
+
allowSelectHover: boolean;
|
34
|
+
}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
35
|
+
"toggle:selected": () => any;
|
36
|
+
"hover:selected": () => any;
|
37
37
|
}, string, import('vue').PublicProps, Readonly<{
|
38
38
|
disabled: boolean | undefined;
|
39
|
-
hideMore: boolean | undefined;
|
40
39
|
mobile: boolean | undefined;
|
41
40
|
alignTop: boolean | undefined;
|
42
41
|
hasBorder: boolean | undefined;
|
@@ -45,11 +44,14 @@ declare const __VLS_component: import('vue').DefineComponent<{
|
|
45
44
|
allowOpen: boolean | undefined;
|
46
45
|
disableMore: boolean | undefined;
|
47
46
|
formName: string | undefined;
|
48
|
-
card: boolean
|
47
|
+
card: boolean;
|
49
48
|
to: LinkProps["to"] | undefined;
|
49
|
+
selected: boolean;
|
50
|
+
allowSelect: boolean;
|
51
|
+
allowSelectHover: boolean;
|
50
52
|
}> & Readonly<{
|
51
|
-
"
|
52
|
-
"
|
53
|
+
"onToggle:selected"?: (() => any) | undefined;
|
54
|
+
"onHover:selected"?: (() => any) | undefined;
|
53
55
|
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
54
56
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
55
57
|
export default _default;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"WListCard.vue.d.ts","sourceRoot":"","sources":["../../../src/components/List/WListCard.vue"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"WListCard.vue.d.ts","sourceRoot":"","sources":["../../../src/components/List/WListCard.vue"],"names":[],"mappings":"AA8OA,OAAO,KAAK,EAAC,SAAS,EAAC,MAAM,eAAe,CAAA;AA8D5C,iBAAS,cAAc;;;;;;YAwZO,GAAG;sBACN,GAAG;sBACH,GAAG;2BACE,GAAG;;;;;WAUrB,OAAO,IAA6B;EAEjD;AA2BD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;cA9eT,OAAO,GAAG,SAAS;YACrB,OAAO,GAAG,SAAS;cACjB,OAAO,GAAG,SAAS;eAClB,OAAO,GAAG,SAAS;eACnB,MAAM,GAAG,SAAS;sBACX,MAAM,GAAG,SAAS;eACzB,OAAO,GAAG,SAAS;iBACjB,OAAO,GAAG,SAAS;cACtB,MAAM,GAAG,SAAS;UACtB,OAAO;QACT,SAAS,CAAC,IAAI,CAAC,GAAG,SAAS;cAErB,OAAO;iBACJ,OAAO;sBACF,OAAO;;;;;cAdf,OAAO,GAAG,SAAS;YACrB,OAAO,GAAG,SAAS;cACjB,OAAO,GAAG,SAAS;eAClB,OAAO,GAAG,SAAS;eACnB,MAAM,GAAG,SAAS;sBACX,MAAM,GAAG,SAAS;eACzB,OAAO,GAAG,SAAS;iBACjB,OAAO,GAAG,SAAS;cACtB,MAAM,GAAG,SAAS;UACtB,OAAO;QACT,SAAS,CAAC,IAAI,CAAC,GAAG,SAAS;cAErB,OAAO;iBACJ,OAAO;sBACF,OAAO;;;;kFA0ezB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAWpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
|
@@ -1,23 +1,34 @@
|
|
1
|
-
import { defineComponent, useTemplateRef, ref,
|
1
|
+
import { defineComponent, useTemplateRef, ref, computed, createElementBlock, openBlock, Fragment, createElementVNode, createCommentVNode, mergeProps, createVNode, createBlock, Transition, withCtx, normalizeClass, resolveDynamicComponent, renderSlot, normalizeStyle, unref, normalizeProps, guardReactiveProps, markRaw } from 'vue';
|
2
2
|
import { RouterLink } from 'vue-router';
|
3
|
-
import _sfc_main$
|
4
|
-
import _sfc_main$
|
3
|
+
import _sfc_main$4 from '../Button/WButtonMore.vue.js';
|
4
|
+
import _sfc_main$5 from '../Button/WButtonMoreItem.vue.js';
|
5
5
|
import _sfc_main$1 from '../Checkbox/WCheckbox.vue.js';
|
6
6
|
import _sfc_main$2 from '../Form/WForm.vue.js';
|
7
7
|
import IconAddCircle from '../../assets/icons/sax/IconAddCircle.svg.js';
|
8
8
|
import IconMinusCircle from '../../assets/icons/sax/IconMinusCircle.svg.js';
|
9
|
-
import
|
9
|
+
import _sfc_main$3 from './components/ListCardAction.vue.js';
|
10
10
|
import { AREA_SELECT, AREA_MORE } from './types.js';
|
11
11
|
|
12
12
|
const _hoisted_1 = {
|
13
13
|
key: 0,
|
14
14
|
class: "bg-primary-default dark:bg-primary-dark @sm:hidden absolute left-0 top-0 h-full w-2"
|
15
15
|
};
|
16
|
+
const _hoisted_2 = {
|
17
|
+
key: 1,
|
18
|
+
class: "bg-primary-default/10 dark:bg-primary-dark/10 rounded-inherit pointer-events-none absolute inset-0"
|
19
|
+
};
|
20
|
+
const _hoisted_3 = {
|
21
|
+
key: 2,
|
22
|
+
class: "bg-primary-default/10 dark:bg-primary-dark/10 rounded-inherit pointer-events-none absolute inset-0"
|
23
|
+
};
|
24
|
+
const _hoisted_4 = {
|
25
|
+
key: 1,
|
26
|
+
class: "bg-primary-default/10 dark:bg-primary-dark/10 rounded-inherit pointer-events-none absolute inset-0"
|
27
|
+
};
|
16
28
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
17
29
|
__name: "WListCard",
|
18
30
|
props: {
|
19
31
|
disabled: { type: Boolean },
|
20
|
-
hideMore: { type: Boolean },
|
21
32
|
mobile: { type: Boolean },
|
22
33
|
alignTop: { type: Boolean },
|
23
34
|
hasBorder: { type: Boolean },
|
@@ -27,53 +38,32 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
27
38
|
disableMore: { type: Boolean },
|
28
39
|
formName: {},
|
29
40
|
card: { type: Boolean },
|
30
|
-
to: {}
|
41
|
+
to: {},
|
42
|
+
selected: { type: Boolean },
|
43
|
+
allowSelect: { type: Boolean },
|
44
|
+
allowSelectHover: { type: Boolean }
|
31
45
|
},
|
32
|
-
emits: ["
|
33
|
-
setup(__props
|
34
|
-
const
|
46
|
+
emits: ["toggle:selected", "hover:selected"],
|
47
|
+
setup(__props) {
|
48
|
+
const props = __props;
|
35
49
|
const formRef = useTemplateRef("form");
|
36
50
|
const isOpen = ref(false);
|
37
51
|
const toggle = () => {
|
38
52
|
isOpen.value = !isOpen.value;
|
39
53
|
};
|
40
54
|
const validate = (...args) => formRef.value?.validate(...args);
|
41
|
-
const
|
42
|
-
allowSelect,
|
43
|
-
allowSelectRange,
|
44
|
-
allowSelectHover
|
45
|
-
} = inject(wInfiniteListSelection, {});
|
46
|
-
const {
|
47
|
-
selected,
|
48
|
-
selectedBetween,
|
49
|
-
updateSelected,
|
50
|
-
updateSelectedRange,
|
51
|
-
updateSelectedRangeHover
|
52
|
-
} = inject(wInfiniteListSelectionItem, {});
|
53
|
-
if (selected) {
|
54
|
-
watch(selected, (value) => {
|
55
|
-
emit("update:selected", value);
|
56
|
-
}, { immediate: true });
|
57
|
-
}
|
58
|
-
if (allowSelectHover) {
|
59
|
-
watch(allowSelectHover, (value) => {
|
60
|
-
emit("update:selected-hover", value);
|
61
|
-
}, { immediate: true });
|
62
|
-
}
|
63
|
-
__expose({
|
64
|
-
updateSelected
|
65
|
-
});
|
55
|
+
const isActionShown = computed(() => props.allowOpen || props.to !== void 0 || props.allowSelectHover);
|
66
56
|
return (_ctx, _cache) => {
|
67
57
|
return openBlock(), createElementBlock(Fragment, null, [
|
68
|
-
createElementVNode("div", {
|
69
|
-
class:
|
58
|
+
createElementVNode("div", mergeProps(_ctx.allowSelect ? { "onMouseover": () => _ctx.$emit("hover:selected") } : void 0, {
|
59
|
+
class: ["relative isolate", {
|
70
60
|
[_ctx.cardWrapperClass ?? ""]: true,
|
71
|
-
"w-ripple-trigger-has":
|
72
|
-
"dark:
|
61
|
+
"w-ripple-trigger-has": isActionShown.value,
|
62
|
+
"sm-not:dark:even:bg-primary-darkest/25 sm-not:even:bg-gray-50 grid grid-cols-1": _ctx.card,
|
73
63
|
"flex": !_ctx.card,
|
74
64
|
"-mb-px": !_ctx.card && isOpen.value
|
75
|
-
}]
|
76
|
-
}, [
|
65
|
+
}]
|
66
|
+
}), [
|
77
67
|
createVNode(Transition, {
|
78
68
|
"enter-active-class": "transition-transform duration-200",
|
79
69
|
"leave-active-class": "transition-transform duration-200",
|
@@ -81,85 +71,83 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
81
71
|
"leave-to-class": "-translate-x-2"
|
82
72
|
}, {
|
83
73
|
default: withCtx(() => [
|
84
|
-
_ctx.mobile &&
|
74
|
+
_ctx.mobile && _ctx.selected ? (openBlock(), createElementBlock("div", _hoisted_1)) : createCommentVNode("", true)
|
85
75
|
]),
|
86
76
|
_: 1
|
87
77
|
}),
|
88
78
|
!_ctx.card ? (openBlock(), createElementBlock("div", {
|
89
79
|
key: 0,
|
90
80
|
class: normalizeClass(["left-inner bg-default dark:bg-default-dark @not-lg:hidden sticky z-[1]", {
|
91
|
-
"width-16":
|
92
|
-
"width-4": !
|
81
|
+
"width-16": _ctx.allowSelect,
|
82
|
+
"width-4": !_ctx.allowSelect
|
93
83
|
}])
|
94
84
|
}, [
|
95
|
-
_cache[
|
85
|
+
_cache[3] || (_cache[3] = createElementVNode("div", { class: "bg-default dark:bg-default-dark absolute right-full top-0 z-[-1] h-full w-[calc(var(--nav-bar-width)+var(--inner-margin))]" }, null, -1)),
|
96
86
|
createElementVNode("div", {
|
97
87
|
class: normalizeClass(["h-full rounded-l-[--w-list-rounded,unset]", {
|
98
|
-
"border border-r-0
|
88
|
+
"border border-r-0": _ctx.hasBorder,
|
89
|
+
"border-gray-300 dark:border-gray-700": _ctx.hasBorder && !_ctx.selected,
|
90
|
+
"border-primary-default dark:border-primary-dark": _ctx.hasBorder && _ctx.selected,
|
99
91
|
"rounded-bl-[unset!important]": isOpen.value,
|
100
92
|
"border-b-transparent dark:border-b-transparent": _ctx.hasBorder && isOpen.value,
|
101
|
-
"w-ripple-has-only w-ripple-hover w-ripple-opacity-[0.04]":
|
93
|
+
"w-ripple-has-only w-ripple-hover w-ripple-opacity-[0.04]": isActionShown.value
|
102
94
|
}])
|
103
95
|
}, [
|
104
|
-
|
96
|
+
_ctx.allowSelect ? (openBlock(), createBlock(_sfc_main$1, {
|
105
97
|
key: 0,
|
106
|
-
"model-value":
|
98
|
+
"model-value": _ctx.selected,
|
107
99
|
disabled: _ctx.disabled,
|
108
|
-
"allow-shift": unref(allowSelectRange),
|
109
100
|
"align-top": _ctx.alignTop,
|
110
101
|
class: normalizeClass(["h-full px-4", {
|
111
|
-
"opacity-50":
|
102
|
+
"opacity-50": _ctx.allowSelectHover,
|
112
103
|
"pt-3": _ctx.alignTop
|
113
104
|
}]),
|
114
|
-
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) =>
|
115
|
-
|
116
|
-
|
117
|
-
}, null, 8, ["model-value", "disabled", "allow-shift", "align-top", "class"])) : createCommentVNode("", true)
|
105
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => _ctx.$emit("toggle:selected"))
|
106
|
+
}, null, 8, ["model-value", "disabled", "align-top", "class"])) : createCommentVNode("", true),
|
107
|
+
_ctx.selected ? (openBlock(), createElementBlock("div", _hoisted_2)) : createCommentVNode("", true)
|
118
108
|
], 2)
|
119
109
|
], 2)) : createCommentVNode("", true),
|
120
110
|
(openBlock(), createBlock(resolveDynamicComponent(_ctx.formName ? _sfc_main$2 : "div"), mergeProps({ ref: "form" }, _ctx.formName ? { name: _ctx.formName } : void 0, {
|
121
111
|
class: ["sm-not:-px--inner-margin isolate", {
|
122
112
|
[_ctx.cardClass ?? ""]: true,
|
123
113
|
"flex flex-1": !_ctx.card,
|
124
|
-
"grid grid-cols-[--w-list-grid-cols]
|
125
|
-
"
|
126
|
-
"border": _ctx.
|
114
|
+
"grid grid-cols-[--w-list-grid-cols] [grid-template-areas:--w-list-grid-areas] sm:rounded-[--w-list-rounded,unset]": _ctx.card,
|
115
|
+
"sm:border-y": _ctx.hasBorder,
|
116
|
+
"border-gray-300 dark:border-gray-700": _ctx.hasBorder && !_ctx.selected,
|
117
|
+
"border-primary-default dark:border-primary-dark": _ctx.hasBorder && _ctx.selected,
|
118
|
+
"sm:border": _ctx.card && _ctx.hasBorder,
|
127
119
|
"border-b-transparent dark:border-b-transparent": !_ctx.card && _ctx.hasBorder && isOpen.value
|
128
120
|
}]
|
129
121
|
}), {
|
130
122
|
default: withCtx(() => [
|
131
|
-
|
123
|
+
_ctx.allowSelect && _ctx.card ? (openBlock(), createBlock(_sfc_main$1, {
|
132
124
|
key: 0,
|
133
|
-
"model-value":
|
125
|
+
"model-value": _ctx.selected,
|
134
126
|
disabled: _ctx.disabled,
|
135
|
-
"allow-shift": unref(allowSelectRange),
|
136
127
|
class: normalizeClass(["justify-end self-start", {
|
137
|
-
"opacity-50":
|
128
|
+
"opacity-50": _ctx.allowSelectHover
|
138
129
|
}]),
|
139
130
|
style: normalizeStyle({ gridArea: unref(AREA_SELECT) }),
|
140
|
-
"onUpdate:modelValue": _cache[
|
141
|
-
|
142
|
-
onMouseover: _cache[5] || (_cache[5] = ($event) => unref(allowSelectHover) ? unref(updateSelectedRangeHover)?.() : void 0)
|
143
|
-
}, null, 8, ["model-value", "disabled", "allow-shift", "class", "style"])) : createCommentVNode("", true),
|
131
|
+
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => _ctx.$emit("toggle:selected"))
|
132
|
+
}, null, 8, ["model-value", "disabled", "class", "style"])) : createCommentVNode("", true),
|
144
133
|
renderSlot(_ctx.$slots, "default", normalizeProps(guardReactiveProps({ toggle, isOpen: isOpen.value, validate }))),
|
145
|
-
|
146
|
-
|
147
|
-
|
148
|
-
|
149
|
-
|
150
|
-
|
151
|
-
|
152
|
-
key: 2,
|
134
|
+
isActionShown.value ? (openBlock(), createBlock(_sfc_main$3, normalizeProps(mergeProps(
|
135
|
+
{ key: 1 },
|
136
|
+
_ctx.allowSelectHover ? { tag: "button", card: _ctx.card, onClick: () => _ctx.$emit("toggle:selected") } : _ctx.to ? { tag: markRaw(unref(RouterLink)), card: _ctx.card, class: "z-[-1]", props: { to: _ctx.to } } : { tag: "button", card: _ctx.card, class: "z-[-1]", onClick: toggle }
|
137
|
+
)), null, 16)) : createCommentVNode("", true),
|
138
|
+
_ctx.selected ? (openBlock(), createElementBlock("div", _hoisted_3)) : createCommentVNode("", true),
|
139
|
+
_ctx.card && _ctx.$slots.more ? (openBlock(), createBlock(_sfc_main$4, {
|
140
|
+
key: 3,
|
153
141
|
class: "-mr-4 flex items-center px-4",
|
154
142
|
disabled: _ctx.disabled || _ctx.disableMore,
|
155
143
|
style: normalizeStyle({ gridArea: unref(AREA_MORE) })
|
156
144
|
}, {
|
157
145
|
default: withCtx(() => [
|
158
|
-
|
146
|
+
_ctx.allowSelect ? (openBlock(), createBlock(_sfc_main$5, {
|
159
147
|
key: 0,
|
160
|
-
text:
|
161
|
-
icon:
|
162
|
-
onClick: _cache[
|
148
|
+
text: _ctx.selected ? "Unselect" : "Select",
|
149
|
+
icon: _ctx.selected ? markRaw(unref(IconMinusCircle)) : markRaw(unref(IconAddCircle)),
|
150
|
+
onClick: _cache[2] || (_cache[2] = ($event) => _ctx.$emit("toggle:selected"))
|
163
151
|
}, null, 8, ["text", "icon"])) : createCommentVNode("", true),
|
164
152
|
renderSlot(_ctx.$slots, "more")
|
165
153
|
]),
|
@@ -171,20 +159,22 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
171
159
|
!_ctx.card ? (openBlock(), createElementBlock("div", {
|
172
160
|
key: 1,
|
173
161
|
class: normalizeClass(["right-inner bg-default dark:bg-default-dark sticky z-[1]", {
|
174
|
-
"width-14":
|
175
|
-
"width-4": _ctx.
|
162
|
+
"width-14": _ctx.$slots.more,
|
163
|
+
"width-4": !_ctx.$slots.more
|
176
164
|
}])
|
177
165
|
}, [
|
178
|
-
_cache[
|
166
|
+
_cache[4] || (_cache[4] = createElementVNode("div", { class: "bg-default dark:bg-default-dark absolute left-full top-0 z-[-1] h-full w-[calc(var(--actions-bar-width)+var(--inner-margin))]" }, null, -1)),
|
179
167
|
createElementVNode("div", {
|
180
168
|
class: normalizeClass(["h-full rounded-r-[--w-list-rounded,unset]", {
|
181
|
-
"rounded-tr-[--w-list-rounded,unset] border border-l-0
|
169
|
+
"rounded-tr-[--w-list-rounded,unset] border border-l-0": _ctx.hasBorder,
|
170
|
+
"border-gray-300 dark:border-gray-700": _ctx.hasBorder && !_ctx.selected,
|
171
|
+
"border-primary-default dark:border-primary-dark": _ctx.hasBorder && _ctx.selected,
|
182
172
|
"rounded-br-[unset!important]": isOpen.value,
|
183
173
|
"border-b-transparent dark:border-b-transparent": _ctx.hasBorder && isOpen.value,
|
184
|
-
"w-ripple-has-only w-ripple-hover w-ripple-opacity-[0.04]":
|
174
|
+
"w-ripple-has-only w-ripple-hover w-ripple-opacity-[0.04]": isActionShown.value
|
185
175
|
}])
|
186
176
|
}, [
|
187
|
-
|
177
|
+
_ctx.$slots.more ? (openBlock(), createBlock(_sfc_main$4, {
|
188
178
|
key: 0,
|
189
179
|
class: normalizeClass(["flex h-full px-4", {
|
190
180
|
"items-start pt-3": _ctx.alignTop,
|
@@ -196,15 +186,17 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
196
186
|
renderSlot(_ctx.$slots, "more")
|
197
187
|
]),
|
198
188
|
_: 3
|
199
|
-
}, 8, ["class", "disabled"])) : createCommentVNode("", true)
|
189
|
+
}, 8, ["class", "disabled"])) : createCommentVNode("", true),
|
190
|
+
_ctx.selected ? (openBlock(), createElementBlock("div", _hoisted_4)) : createCommentVNode("", true)
|
200
191
|
], 2)
|
201
192
|
], 2)) : createCommentVNode("", true)
|
202
|
-
],
|
193
|
+
], 16),
|
203
194
|
_ctx.$slots.expansion ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
204
195
|
isOpen.value ? (openBlock(), createElementBlock("div", {
|
205
196
|
key: 0,
|
206
|
-
class: normalizeClass(["w-inner left-inner
|
207
|
-
"border-gray-300 dark:border-gray-700": _ctx.hasBorder,
|
197
|
+
class: normalizeClass(["sm:w-inner sm:left-inner col-span-full sm:sticky", {
|
198
|
+
"border-gray-300 dark:border-gray-700": _ctx.hasBorder && !_ctx.selected,
|
199
|
+
"border-primary-default dark:border-primary-dark": _ctx.hasBorder && _ctx.selected,
|
208
200
|
"mt-[calc(var(--w-list-gap,1rem)*-1)] border border-t-0 px-5": !_ctx.card && _ctx.hasBorder,
|
209
201
|
"rounded-b-[--w-list-rounded,unset]": !_ctx.card
|
210
202
|
}])
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"WListHeaderItem.vue.d.ts","sourceRoot":"","sources":["../../../src/components/List/WListHeaderItem.vue"],"names":[],"mappings":"AAiGA,OAAO,EAAC,KAAK,UAAU,EAAwC,MAAM,KAAK,CAAA;AAI1E,OAAO,EAAC,KAAK,SAAS,EAAC,MAAM,eAAe,CAAA;yBAM3B,KAAK,eACR,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,CAAC,OAAO,CAAC,cAClD,mBAAmB,CAAC,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,EAAE,OAAO,GAAG,MAAM,GAAG,OAAO,CAAC,CAAC,iBAC5F,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,CAAC,QAAQ,CAAC;
|
1
|
+
{"version":3,"file":"WListHeaderItem.vue.d.ts","sourceRoot":"","sources":["../../../src/components/List/WListHeaderItem.vue"],"names":[],"mappings":"AAiGA,OAAO,EAAC,KAAK,UAAU,EAAwC,MAAM,KAAK,CAAA;AAI1E,OAAO,EAAC,KAAK,SAAS,EAAC,MAAM,eAAe,CAAA;yBAM3B,KAAK,eACR,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,CAAC,OAAO,CAAC,cAClD,mBAAmB,CAAC,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,EAAE,OAAO,GAAG,MAAM,GAAG,OAAO,CAAC,CAAC,iBAC5F,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,CAAC,QAAQ,CAAC;WA6MxD,mBAAmB,CAAC;;;gBAzMpB,MAAM;eACP,KAAK;kBACF,SAAS,CAAC,KAAK,CAAC,EAAE;mBACjB,OAAO;sBACJ,OAAO;oBACT,MAAM;oBACN,UAAU,GAAG,SAAS;KAmMmD,CAAC,4BAA2B;oBAChG,OAAO,KAAK,EAAE,gBAAgB,CAAC,EAAE,CAAC,GAAG,IAAI;WAClD,GAAG;;yBAhCiB,GAAG;;cAhK3B,cAAc,SAAS,MAAM,KAAG,IAAI;;;;YAqME,OAAO,CAAC,OAAO,WAAW,CAAC;;AAvNvE,wBAuN4E;AAC5E,KAAK,mBAAmB,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG,EAAE,CAAC"}
|
@@ -40,7 +40,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
40
40
|
}), {
|
41
41
|
default: withCtx(() => [
|
42
42
|
(openBlock(), createBlock(resolveDynamicComponent(_ctx.disabled ? "div" : "button"), {
|
43
|
-
class: normalizeClass(["group flex size-full gap-2", {
|
43
|
+
class: normalizeClass(["group flex size-full gap-2 overflow-clip", {
|
44
44
|
"cursor-pointer": !_ctx.disabled,
|
45
45
|
[_ctx.itemClass ?? ""]: true,
|
46
46
|
"items-center whitespace-nowrap font-semibold": !_ctx.itemClass
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { FieldConfig, ListFields } from '../types';
|
2
|
-
import { ListMode } from '
|
2
|
+
import { ListMode } from '../../../utils/utils';
|
3
3
|
declare const _default: <Data extends DefaultData, QueryParams>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
4
4
|
props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
|
5
5
|
readonly "onUpdate:field-config-map"?: ((value: Record<string, FieldConfig>) => any) | undefined;
|
@@ -10,7 +10,8 @@ declare const _default: <Data extends DefaultData, QueryParams>(__VLS_props: Non
|
|
10
10
|
fieldConfigMap: Record<string, FieldConfig>;
|
11
11
|
mode: ListMode;
|
12
12
|
queryParams: QueryParams;
|
13
|
-
hasSaved
|
13
|
+
hasSaved: boolean;
|
14
|
+
mobile: boolean;
|
14
15
|
disabled?: boolean;
|
15
16
|
}> & import('vue').PublicProps;
|
16
17
|
expose(exposed: import('vue').ShallowUnwrapRef<{}>): void;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"HeaderSettings.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/List/components/HeaderSettings.vue"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"HeaderSettings.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/List/components/HeaderSettings.vue"],"names":[],"mappings":"AAyLA,OAAO,KAAK,EAAC,WAAW,EAAa,UAAU,EAAC,MAAM,UAAU,CAAA;AAChE,OAAO,KAAK,EAAC,QAAQ,EAAC,MAAM,eAAe,CAAA;yBAmB1B,IAAI,SAAS,WAAW,EAAE,WAAW,eACxC,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,CAAC,OAAO,CAAC,cAClD,mBAAmB,CAAC,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,EAAE,OAAO,GAAG,MAAM,GAAG,OAAO,CAAC,CAAC,iBAC5F,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,CAAC,QAAQ,CAAC;WAgYxD,mBAAmB,CAAC;;;;;gBA5XpB,UAAU,CAAC,IAAI,EAAE,WAAW,CAAC;wBACrB,MAAM,CAAC,MAAM,EAAE,WAAW,CAAC;cACrC,QAAQ;qBACD,WAAW;kBACd,OAAO;gBACT,OAAO;mBACJ,OAAO;KAsXmE,CAAC,4BAA2B;oBAChG,OAAO,KAAK,EAAE,gBAAgB,CAAC,EAAE,CAAC,GAAG,IAAI;WAClD,GAAG;;;YAnXP,yBAAyB,SAAS,MAAM,CAAC,MAAM,EAAE,WAAW,CAAC,GAAG,IAAI;YACpE,aAAa,SAAS,QAAQ,GAAG,IAAI;YACrC,aAAa,GAAG,IAAI;;;;;YAsXkB,OAAO,CAAC,OAAO,WAAW,CAAC;;AA1YvE,wBA0Y4E;AAC5E,KAAK,mBAAmB,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG,EAAE,CAAC"}
|
@@ -1,21 +1,9 @@
|
|
1
|
-
import { defineComponent, ref, createBlock, openBlock, unref, withCtx, createVNode, createElementVNode, createElementBlock, Fragment, renderList, normalizeClass, markRaw } from 'vue';
|
1
|
+
import { defineComponent, ref, createBlock, openBlock, unref, withCtx, createVNode, createElementVNode, createElementBlock, createCommentVNode, Fragment, renderList, normalizeClass, markRaw } from 'vue';
|
2
2
|
import _sfc_main$6 from '../../Button/WButtonSelectionAction.vue.js';
|
3
3
|
import _sfc_main$2 from '../../ClickOutside/WClickOutside.vue.js';
|
4
4
|
import _sfc_main$1 from '../../DropdownMenu/WDropdownMenu.vue.js';
|
5
5
|
import IconTableSettings from '../../../assets/icons/sax/IconTableSettings.svg.js';
|
6
|
-
import '../../Button/WButtonAction.vue.js';
|
7
|
-
import '../../Button/WButton.vue.js';
|
8
|
-
import '../../Button/WButtonDropdown.vue.js';
|
9
6
|
import { HorizontalAlign } from '../../../utils/HorizontalAlign.js';
|
10
|
-
import 'vue-router';
|
11
|
-
import '../../../utils/supportsPassive.js';
|
12
|
-
import '../../Dropdown/utils/DropdownStyle.js';
|
13
|
-
import '../../../utils/Modal.js';
|
14
|
-
import '../../Input/WInputSuggest.vue.js';
|
15
|
-
import '../../HeaderBar/use/useHeaderPadding.js';
|
16
|
-
import '../../Input/WInputDate.vue.js';
|
17
|
-
import '../../Link/WLink.vue.js';
|
18
|
-
import '@tanstack/vue-query';
|
19
7
|
import _sfc_main$4 from './HeaderFieldNested.vue.js';
|
20
8
|
import _sfc_main$5 from './HeaderSettingsItem.vue.js';
|
21
9
|
import _sfc_main$3 from './HeaderSettingsModeButton.vue.js';
|
@@ -23,10 +11,17 @@ import { listModeList, listModeIconMap } from '../use/useListConfig.js';
|
|
23
11
|
|
24
12
|
const _hoisted_1 = { class: "p-4" };
|
25
13
|
const _hoisted_2 = { class: "grid grid-cols-[auto,auto,auto] items-start" };
|
26
|
-
const _hoisted_3 = {
|
27
|
-
|
28
|
-
|
29
|
-
|
14
|
+
const _hoisted_3 = {
|
15
|
+
key: 0,
|
16
|
+
class: "flex flex-col gap-4"
|
17
|
+
};
|
18
|
+
const _hoisted_4 = {
|
19
|
+
key: 1,
|
20
|
+
class: "mx-4 h-full border-r border-solid border-gray-200 dark:border-gray-700"
|
21
|
+
};
|
22
|
+
const _hoisted_5 = { class: "grid grid-cols-1" };
|
23
|
+
const _hoisted_6 = { class: "flex justify-end" };
|
24
|
+
const _hoisted_7 = ["disabled"];
|
30
25
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
31
26
|
__name: "HeaderSettings",
|
32
27
|
props: {
|
@@ -35,6 +30,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
35
30
|
mode: {},
|
36
31
|
queryParams: {},
|
37
32
|
hasSaved: { type: Boolean },
|
33
|
+
mobile: { type: Boolean },
|
38
34
|
disabled: { type: Boolean }
|
39
35
|
},
|
40
36
|
emits: ["update:field-config-map", "update:mode", "click:reset"],
|
@@ -108,7 +104,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
108
104
|
default: withCtx(() => [
|
109
105
|
createElementVNode("div", _hoisted_1, [
|
110
106
|
createElementVNode("div", _hoisted_2, [
|
111
|
-
|
107
|
+
!_ctx.mobile ? (openBlock(), createElementBlock("div", _hoisted_3, [
|
112
108
|
(openBlock(true), createElementBlock(Fragment, null, renderList(unref(listModeList), (item) => {
|
113
109
|
return openBlock(), createBlock(_sfc_main$3, {
|
114
110
|
key: item,
|
@@ -117,9 +113,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
117
113
|
onClick: ($event) => _ctx.$emit("update:mode", item)
|
118
114
|
}, null, 8, ["icon", "active", "onClick"]);
|
119
115
|
}), 128))
|
120
|
-
]),
|
121
|
-
|
122
|
-
createElementVNode("div",
|
116
|
+
])) : createCommentVNode("", true),
|
117
|
+
!_ctx.mobile ? (openBlock(), createElementBlock("div", _hoisted_4)) : createCommentVNode("", true),
|
118
|
+
createElementVNode("div", _hoisted_5, [
|
123
119
|
createVNode(_sfc_main$4, { fields: _ctx.fields }, {
|
124
120
|
default: withCtx(({ field, nested, first, last }) => [
|
125
121
|
createVNode(_sfc_main$5, {
|
@@ -139,8 +135,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
139
135
|
}, 8, ["fields"])
|
140
136
|
])
|
141
137
|
]),
|
142
|
-
_cache[
|
143
|
-
createElementVNode("div",
|
138
|
+
_cache[4] || (_cache[4] = createElementVNode("div", { class: "my-4 border-b border-solid border-gray-200 dark:border-gray-700" }, null, -1)),
|
139
|
+
createElementVNode("div", _hoisted_6, [
|
144
140
|
createElementVNode("button", {
|
145
141
|
class: normalizeClass(["relative rounded-lg bg-gray-100 px-2 py-1 dark:bg-gray-800", {
|
146
142
|
"w-ripple w-ripple-hover": _ctx.hasSaved,
|
@@ -148,7 +144,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
148
144
|
}]),
|
149
145
|
disabled: !_ctx.hasSaved,
|
150
146
|
onClick: _cache[2] || (_cache[2] = ($event) => _ctx.hasSaved && _ctx.$emit("click:reset"))
|
151
|
-
}, " Reset ", 10,
|
147
|
+
}, " Reset ", 10, _hoisted_7)
|
152
148
|
])
|
153
149
|
])
|
154
150
|
]),
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import { FieldConfig, ListFields } from '../types';
|
2
2
|
import { OrderItem } from '../../../utils/order';
|
3
|
-
import { ListMode } from '
|
3
|
+
import { ListMode } from '../../../utils/utils';
|
4
4
|
declare const _default: <Data extends DefaultData, QueryParams>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
5
5
|
props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
|
6
6
|
readonly "onUpdate:field-config-map"?: ((value: Record<string, FieldConfig>) => any) | undefined;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"HeaderSort.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/List/components/HeaderSort.vue"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"HeaderSort.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/List/components/HeaderSort.vue"],"names":[],"mappings":"AAmFA,OAAO,KAAK,EAAC,WAAW,EAAa,UAAU,EAAC,MAAM,UAAU,CAAA;AAChE,OAAO,KAAK,EAAC,SAAS,EAAC,MAAM,eAAe,CAAA;AAC5C,OAAO,KAAK,EAAC,QAAQ,EAAC,MAAM,eAAe,CAAA;yBAe1B,IAAI,SAAS,WAAW,EAAE,WAAW,eACxC,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,CAAC,OAAO,CAAC,cAClD,mBAAmB,CAAC,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,EAAE,OAAO,GAAG,MAAM,GAAG,OAAO,CAAC,CAAC,iBAC5F,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,CAAC,QAAQ,CAAC;WAyLxD,mBAAmB,CAAC;;;;;kBAnLlB,SAAS,CAAC,MAAM,IAAI,CAAC,EAAE;gBACzB,UAAU,CAAC,IAAI,EAAE,WAAW,CAAC;qBACxB,WAAW;mBACb,OAAO;KAgLmE,CAAC,4BAA2B;oBAChG,OAAO,KAAK,EAAE,gBAAgB,CAAC,EAAE,CAAC,GAAG,IAAI;WAClD,GAAG;;;YA7KP,yBAAyB,SAAS,MAAM,CAAC,MAAM,EAAE,WAAW,CAAC,GAAG,IAAI;YACpE,aAAa,SAAS,QAAQ,GAAG,IAAI;YACrC,aAAa,GAAG,IAAI;;;;;YAgLkB,OAAO,CAAC,OAAO,WAAW,CAAC;;AAnMvE,wBAmM4E;AAC5E,KAAK,mBAAmB,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG,EAAE,CAAC"}
|
@@ -3,20 +3,7 @@ import _sfc_main$4 from '../../Button/WButtonSelectionAction.vue.js';
|
|
3
3
|
import _sfc_main$2 from '../../ClickOutside/WClickOutside.vue.js';
|
4
4
|
import _sfc_main$1 from '../../DropdownMenu/WDropdownMenu.vue.js';
|
5
5
|
import IconSort from '../../../assets/icons/default/IconSort.svg.js';
|
6
|
-
import '../../Button/WButtonAction.vue.js';
|
7
|
-
import '../../Button/WButton.vue.js';
|
8
|
-
import '../../Button/WButtonDropdown.vue.js';
|
9
6
|
import { HorizontalAlign } from '../../../utils/HorizontalAlign.js';
|
10
|
-
import 'vue-router';
|
11
|
-
import '../../../utils/supportsPassive.js';
|
12
|
-
import '../../Dropdown/utils/DropdownStyle.js';
|
13
|
-
import '../../../utils/Modal.js';
|
14
|
-
import '../../Input/WInputSuggest.vue.js';
|
15
|
-
import '../../HeaderBar/use/useHeaderPadding.js';
|
16
|
-
import '../../Input/WInputDate.vue.js';
|
17
|
-
import '../../Link/WLink.vue.js';
|
18
|
-
import '@tanstack/vue-query';
|
19
|
-
import '../use/useListConfig.js';
|
20
7
|
import _sfc_main$3 from './HeaderSortItem.vue.js';
|
21
8
|
|
22
9
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
@@ -0,0 +1,23 @@
|
|
1
|
+
import { Component } from 'vue';
|
2
|
+
declare const _default: <Props>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
3
|
+
props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
|
4
|
+
readonly onClick?: ((value: MouseEvent) => any) | undefined;
|
5
|
+
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, never>, "onClick"> & {
|
6
|
+
tag: Component | keyof HTMLElementTagNameMap;
|
7
|
+
props?: Props;
|
8
|
+
card: boolean;
|
9
|
+
}> & import('vue').PublicProps;
|
10
|
+
expose(exposed: import('vue').ShallowUnwrapRef<{}>): void;
|
11
|
+
attrs: any;
|
12
|
+
slots: {};
|
13
|
+
emit: (e: "click", value: MouseEvent) => void;
|
14
|
+
}>) => import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
|
15
|
+
[key: string]: any;
|
16
|
+
}> & {
|
17
|
+
__ctx?: Awaited<typeof __VLS_setup>;
|
18
|
+
};
|
19
|
+
export default _default;
|
20
|
+
type __VLS_PrettifyLocal<T> = {
|
21
|
+
[K in keyof T]: T[K];
|
22
|
+
} & {};
|
23
|
+
//# sourceMappingURL=ListCardAction.vue.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"ListCardAction.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/List/components/ListCardAction.vue"],"names":[],"mappings":"AA0BA,OAAO,KAAK,EAAC,SAAS,EAAC,MAAM,KAAK,CAAA;yBAGjB,KAAK,eACR,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,CAAC,OAAO,CAAC,cAClD,mBAAmB,CAAC,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,EAAE,OAAO,GAAG,MAAM,GAAG,OAAO,CAAC,CAAC,iBAC5F,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,CAAC,QAAQ,CAAC;WAqGxD,mBAAmB,CAAC;;;aAjGvB,SAAS,GAAG,MAAM,qBAAqB;gBACpC,KAAK;cACP,OAAO;KA+FwE,CAAC,4BAA2B;oBAChG,OAAO,KAAK,EAAE,gBAAgB,CAAC,EAAE,CAAC,GAAG,IAAI;WAClD,GAAG;;cA5FP,OAAO,SAAS,UAAU,KAAG,IAAI;;;;YAiGK,OAAO,CAAC,OAAO,WAAW,CAAC;;AA/GvE,wBA+G4E;AAC5E,KAAK,mBAAmB,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG,EAAE,CAAC"}
|
@@ -0,0 +1,23 @@
|
|
1
|
+
import { defineComponent, createBlock, openBlock, resolveDynamicComponent, mergeProps } from 'vue';
|
2
|
+
|
3
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
4
|
+
__name: "ListCardAction",
|
5
|
+
props: {
|
6
|
+
tag: {},
|
7
|
+
props: {},
|
8
|
+
card: { type: Boolean }
|
9
|
+
},
|
10
|
+
emits: ["click"],
|
11
|
+
setup(__props) {
|
12
|
+
return (_ctx, _cache) => {
|
13
|
+
return openBlock(), createBlock(resolveDynamicComponent(_ctx.tag), mergeProps(_ctx.props, {
|
14
|
+
class: ["w-ripple w-ripple-hover w-ripple-has w-ripple-opacity-[0.04] absolute inset-0 cursor-pointer", {
|
15
|
+
"w-ripple-rounded-[--w-list-rounded,unset] rounded-[--w-list-rounded,unset]": _ctx.card
|
16
|
+
}],
|
17
|
+
onClick: _cache[0] || (_cache[0] = ($event) => _ctx.$emit("click", $event))
|
18
|
+
}), null, 16, ["class"]);
|
19
|
+
};
|
20
|
+
}
|
21
|
+
});
|
22
|
+
|
23
|
+
export { _sfc_main as default };
|
@@ -1,3 +1,4 @@
|
|
1
|
+
import { ListMode } from '../../utils/utils';
|
1
2
|
import { Component, Raw } from 'vue';
|
2
3
|
export type FieldComponent<Data> = Component<{
|
3
4
|
item: Data;
|
@@ -98,5 +99,9 @@ export type CardAreas<Fields extends ListFields<any, any>, Length extends number
|
|
98
99
|
})[];
|
99
100
|
type GridColValue = 'auto' | '1fr' | `${number}rem`;
|
100
101
|
export type GridCol = GridColValue | `minmax(${GridColValue}, ${GridColValue})`;
|
102
|
+
export type ListConfig<Fields extends ListFields<any, any>> = {
|
103
|
+
fields: FieldConfigMap<Fields>;
|
104
|
+
mode: ListMode;
|
105
|
+
};
|
101
106
|
export {};
|
102
107
|
//# sourceMappingURL=types.d.ts.map
|