eco-vue-js 0.10.49 → 0.10.50
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/Checkbox/WCheckbox.vue.d.ts.map +1 -1
- package/dist/components/Checkbox/WCheckbox.vue.js +15 -10
- package/dist/components/Checkbox/WCheckboxGroup.vue.js +2 -1
- package/dist/components/Checkbox/WCheckboxGroupMultiple.vue.js +2 -1
- package/dist/components/Checkbox/types.d.ts +1 -0
- package/dist/components/Checkbox/types.d.ts.map +1 -1
- package/dist/components/FormAsync/WFormAsyncCheckboxGroup.vue.js +1 -0
- package/dist/components/List/WListCard.vue.d.ts.map +1 -1
- package/dist/components/List/WListCard.vue.js +25 -27
- package/dist/components/List/components/HeaderSettings.vue.d.ts.map +1 -1
- package/dist/components/List/components/HeaderSettings.vue.js +3 -1
- package/dist/components/List/components/ListCardAction.vue.d.ts +1 -0
- package/dist/components/List/components/ListCardAction.vue.d.ts.map +1 -1
- package/dist/components/List/components/ListCardAction.vue.js +5 -3
- package/dist/utils/useSelected.d.ts.map +1 -1
- package/dist/utils/useSelected.js +8 -1
- package/package.json +1 -1
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"WCheckbox.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Checkbox/WCheckbox.vue"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"WCheckbox.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Checkbox/WCheckbox.vue"],"names":[],"mappings":"AA4FA;AAyHA,OAAO,KAAK,EAAC,aAAa,EAAC,MAAM,SAAS,CAAA;AA6B1C,iBAAS,cAAc;WAmJT,OAAO,IAA6B;;yBAXpB,GAAG;;;;;;EAgBhC;AAaD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;;;OAQnB,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"}
|
@@ -22,7 +22,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
22
22
|
intermediate: { type: Boolean },
|
23
23
|
tooltipText: {},
|
24
24
|
alignTop: { type: Boolean },
|
25
|
-
noMargin: { type: Boolean }
|
25
|
+
noMargin: { type: Boolean },
|
26
|
+
lessTransitions: { type: Boolean }
|
26
27
|
},
|
27
28
|
emits: ["update:modelValue"],
|
28
29
|
setup(__props, { emit: __emit }) {
|
@@ -48,14 +49,14 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
48
49
|
}), [
|
49
50
|
createElementVNode("div", {
|
50
51
|
class: normalizeClass(["square-[1.5em] bg-default dark:bg-default-dark relative isolate flex items-center justify-center border border-solid [font-size:--w-checkbox-size]", {
|
51
|
-
"text-default
|
52
|
+
"text-default": _ctx.modelValue && !_ctx.disabled,
|
52
53
|
"text-primary dark:text-primary-dark": !_ctx.modelValue && !_ctx.disabled,
|
53
54
|
"text-gray-300 dark:text-gray-700": !_ctx.modelValue && _ctx.disabled,
|
54
55
|
"w-ripple w-hover-circle before:text-accent after:text-accent": !_ctx.disabled && !_ctx.readonly,
|
55
56
|
"rounded-full": _ctx.radio,
|
56
57
|
"rounded-md": !_ctx.radio,
|
57
58
|
"border-gray-300 dark:border-gray-700": _ctx.disabled,
|
58
|
-
"border-primary dark:border-primary-dark": !_ctx.disabled
|
59
|
+
"border-primary dark:border-primary-dark [.w-hover-checked:hover_&]:text-default": !_ctx.disabled
|
59
60
|
}]),
|
60
61
|
onKeypress: withKeys(withModifiers(toggle, ["stop", "prevent"]), ["enter"])
|
61
62
|
}, [
|
@@ -63,24 +64,26 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
63
64
|
"enter-active-class": "transition-[opacity,transform]",
|
64
65
|
"leave-active-class": "transition-[opacity,transform]",
|
65
66
|
"enter-from-class": _ctx.radio ? "opacity-0 scale-[0.25!important]" : "opacity-0 scale-[0.50!important]",
|
66
|
-
"leave-to-class": _ctx.radio ? "opacity-0 scale-[0.25!important]" : "opacity-0 scale-[0.50!important]"
|
67
|
+
"leave-to-class": _ctx.radio ? "opacity-0 scale-[0.25!important]" : "opacity-0 scale-[0.50!important]",
|
68
|
+
css: !_ctx.lessTransitions
|
67
69
|
}, {
|
68
70
|
default: withCtx(() => [
|
69
71
|
withDirectives(createElementVNode("div", {
|
70
|
-
class: normalizeClass(["square-full absolute -z-10
|
72
|
+
class: normalizeClass(["square-full absolute -z-10", {
|
71
73
|
"scale-[0.33] rounded-full": _ctx.radio && _ctx.intermediate && _ctx.modelValue === null,
|
72
74
|
"scale-[0.66] rounded": !_ctx.radio && _ctx.intermediate && _ctx.modelValue === null,
|
73
75
|
"scale-[0.66] rounded-full": _ctx.radio && !(_ctx.intermediate && _ctx.modelValue === null),
|
74
76
|
"rounded": !_ctx.radio && !(_ctx.intermediate && _ctx.modelValue === null),
|
75
|
-
"bg-primary dark:bg-primary-dark": !_ctx.disabled,
|
76
|
-
"bg-gray-300 dark:bg-gray-700": _ctx.disabled
|
77
|
+
"bg-primary dark:bg-primary-dark [.w-hover-checked:hover_&]:[display:block!important]": !_ctx.disabled,
|
78
|
+
"bg-gray-300 dark:bg-gray-700": _ctx.disabled,
|
79
|
+
"transition-[opacity,transform]": !_ctx.lessTransitions
|
77
80
|
}])
|
78
81
|
}, null, 2), [
|
79
82
|
[vShow, _ctx.modelValue !== false]
|
80
83
|
])
|
81
84
|
]),
|
82
85
|
_: 1
|
83
|
-
}, 8, ["enter-from-class", "leave-to-class"]),
|
86
|
+
}, 8, ["enter-from-class", "leave-to-class", "css"]),
|
84
87
|
_ctx.loading ? (openBlock(), createBlock(WSpinner, {
|
85
88
|
key: 0,
|
86
89
|
class: "w-spinner-size-[1em]"
|
@@ -89,8 +92,10 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
89
92
|
class: "square-[1em]"
|
90
93
|
})) : !_ctx.radio ? withDirectives((openBlock(), createBlock(unref(IconCheck), {
|
91
94
|
key: 2,
|
92
|
-
class: "square-[1em]"
|
93
|
-
|
95
|
+
class: normalizeClass(["square-[1em]", {
|
96
|
+
"[.w-hover-checked:hover_&]:[display:block!important]": !_ctx.disabled
|
97
|
+
}])
|
98
|
+
}, null, 8, ["class"])), [
|
94
99
|
[vShow, _ctx.modelValue]
|
95
100
|
]) : createCommentVNode("", true),
|
96
101
|
_ctx.tooltipText && !_ctx.disabled ? (openBlock(), createBlock(_sfc_main$1, {
|
@@ -41,7 +41,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
41
41
|
seamless: { type: Boolean },
|
42
42
|
radio: { type: Boolean },
|
43
43
|
loading: { type: Boolean },
|
44
|
-
alignTop: { type: Boolean }
|
44
|
+
alignTop: { type: Boolean },
|
45
|
+
lessTransitions: { type: Boolean }
|
45
46
|
},
|
46
47
|
emits: ["update:model-value"],
|
47
48
|
setup(__props, { emit: __emit }) {
|
@@ -40,7 +40,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
40
40
|
seamless: { type: Boolean },
|
41
41
|
radio: { type: Boolean },
|
42
42
|
loading: { type: Boolean },
|
43
|
-
alignTop: { type: Boolean }
|
43
|
+
alignTop: { type: Boolean },
|
44
|
+
lessTransitions: { type: Boolean }
|
44
45
|
},
|
45
46
|
emits: ["select", "unselect"],
|
46
47
|
setup(__props, { emit: __emit }) {
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/components/Checkbox/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,iBAAiB,EAAC,MAAM,iCAAiC,CAAA;AACtE,OAAO,KAAK,EAAC,SAAS,EAAC,MAAM,KAAK,CAAA;AAElC;;GAEG;AAEH,MAAM,WAAW,a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AG,MAAM,GAAG,IAAI,GAAG,OAAO,EAAE,MAAM,SAAS,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAAE,WAAW,SAAS;IAAC,EAAE,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,CAAA;CAAC,CAAC,IAAI,CAAC,GAAG,SAAS,GAAG,SAAS,IAAI,mCAAmC,CAAC,KAAK,EAAE,MAAM,EAAE,WAAW,CAAC,GAAG,kCAAkC,CAAC,KAAK,EAAE,MAAM,EAAE,WAAW,CAAC,CAAA"}
|
@@ -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":"AAoMA;AA8QA,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;AAwCF,iBAAS,cAAc;WAsYT,OAAO,IAA6B;;;;;;YAjBpB,GAAG;sBACN,GAAG;sBACH,GAAG;2BACE,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wCA1FlC,GACD,8CAA8C,GAAG,yBAC9B,GAAG,6DAAmC,GAAG;;;;;;;;;;;;;;;;;;EA2G3D;AA2BD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oCAzIpB,GACD,8CAA8C,GAAG,yBAC9B,GAAG,6DAAmC,GAAG;;;;;;;;;;;;;;;;OA+I1D,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"}
|
@@ -13,18 +13,6 @@ const _hoisted_1 = {
|
|
13
13
|
key: 0,
|
14
14
|
class: "bg-primary 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/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/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/10 dark:bg-primary-dark/10 rounded-inherit pointer-events-none absolute inset-0"
|
27
|
-
};
|
28
16
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
29
17
|
__name: "WListCard",
|
30
18
|
props: {
|
@@ -75,7 +63,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
75
63
|
"w-ripple-trigger-has": isActionShown.value,
|
76
64
|
"sm-not:dark:even:bg-primary-darkest/25 sm-not:even:bg-gray-50 grid grid-cols-1": _ctx.card,
|
77
65
|
"flex": !_ctx.card,
|
78
|
-
"-mb-px": !_ctx.card && isOpen.value
|
66
|
+
"-mb-px": !_ctx.card && isOpen.value,
|
67
|
+
"w-hover-checked": _ctx.allowSelectHover
|
79
68
|
}],
|
80
69
|
onContextmenu: toggleMenu
|
81
70
|
}), [
|
@@ -92,7 +81,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
92
81
|
}),
|
93
82
|
!_ctx.card ? (openBlock(), createElementBlock("div", {
|
94
83
|
key: 0,
|
95
|
-
class: normalizeClass(["-left--left-inner bg-default dark:bg-default-dark @not-lg:hidden sticky z-[1]", {
|
84
|
+
class: normalizeClass(["-left--left-inner bg-default dark:bg-default-dark @not-lg:hidden w-ripple-opacity-[0.05] sticky z-[1]", {
|
96
85
|
"width-[--w-list-header-rounded,1rem]": !_ctx.allowSelect
|
97
86
|
}])
|
98
87
|
}, [
|
@@ -104,8 +93,10 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
104
93
|
"border-primary dark:border-primary-dark": _ctx.hasBorder && _ctx.selected,
|
105
94
|
"rounded-bl-[unset!important]": isOpen.value,
|
106
95
|
"border-b-transparent dark:border-b-transparent": _ctx.hasBorder && isOpen.value,
|
107
|
-
"w-ripple-has-only w-ripple-hover
|
108
|
-
"pl-px": !_ctx.hasBorder
|
96
|
+
"w-ripple-has-only w-ripple-hover": isActionShown.value,
|
97
|
+
"pl-px": !_ctx.hasBorder,
|
98
|
+
"before:text-primary dark:before:text-primary-dark w-ripple-opacity-15": _ctx.allowSelectHover || _ctx.selected || unref(moreRef)?.isOpen,
|
99
|
+
"before:opacity-10": _ctx.selected || unref(moreRef)?.isOpen
|
109
100
|
}])
|
110
101
|
}, [
|
111
102
|
_ctx.allowSelect ? (openBlock(), createBlock(_sfc_main$1, {
|
@@ -113,13 +104,13 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
113
104
|
"model-value": _ctx.selected,
|
114
105
|
disabled: _ctx.disabled,
|
115
106
|
"align-top": _ctx.alignTop,
|
107
|
+
"less-transitions": _ctx.allowSelectHover,
|
116
108
|
class: normalizeClass(["h-full px-[--w-list-padding,1rem]", {
|
117
109
|
"opacity-50": _ctx.allowSelectHover,
|
118
110
|
"pt-4.5": _ctx.alignTop
|
119
111
|
}]),
|
120
112
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => _ctx.$emit("toggle:selected"))
|
121
|
-
}, null, 8, ["model-value", "disabled", "align-top", "class"])) : createCommentVNode("", true)
|
122
|
-
_ctx.selected || unref(moreRef)?.isOpen ? (openBlock(), createElementBlock("div", _hoisted_2)) : createCommentVNode("", true)
|
113
|
+
}, null, 8, ["model-value", "disabled", "align-top", "less-transitions", "class"])) : createCommentVNode("", true)
|
123
114
|
], 2)
|
124
115
|
], 2)) : createCommentVNode("", true),
|
125
116
|
(openBlock(), createBlock(resolveDynamicComponent(_ctx.formName ? _sfc_main$2 : "div"), mergeProps({ ref: "form" }, _ctx.formName ? { name: _ctx.formName } : void 0, {
|
@@ -146,13 +137,19 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
146
137
|
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => _ctx.$emit("toggle:selected"))
|
147
138
|
}, null, 8, ["model-value", "disabled", "class", "style"])) : createCommentVNode("", true),
|
148
139
|
renderSlot(_ctx.$slots, "default", normalizeProps(guardReactiveProps({ toggle, isOpen: isOpen.value, validate }))),
|
149
|
-
isActionShown.value ? (openBlock(), createBlock(_sfc_main$3,
|
140
|
+
isActionShown.value ? (openBlock(), createBlock(_sfc_main$3, mergeProps(
|
150
141
|
{ key: 1 },
|
151
|
-
_ctx.allowSelectHover ? { tag: "button", card: _ctx.card, onClick: () => _ctx.$emit("toggle:selected") } : _ctx.hasAction ? { tag: "button", card: _ctx.card, class: "z-[-1]", onClick: () => _ctx.$emit("click:action") } : _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 }
|
152
|
-
|
153
|
-
|
142
|
+
_ctx.allowSelectHover ? { tag: "button", card: _ctx.card, onClick: () => _ctx.$emit("toggle:selected") } : _ctx.hasAction ? { tag: "button", card: _ctx.card, class: "z-[-1]", onClick: () => _ctx.$emit("click:action") } : _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 },
|
143
|
+
{
|
144
|
+
class: {
|
145
|
+
"before:text-primary dark:before:text-primary-dark": _ctx.allowSelectHover || _ctx.selected || unref(moreRef)?.isOpen,
|
146
|
+
"before:opacity-10": _ctx.selected || unref(moreRef)?.isOpen
|
147
|
+
},
|
148
|
+
"opacity-class": _ctx.allowSelectHover || _ctx.selected || unref(moreRef)?.isOpen ? "w-ripple-opacity-15" : void 0
|
149
|
+
}
|
150
|
+
), null, 16, ["class", "opacity-class"])) : createCommentVNode("", true),
|
154
151
|
_ctx.card && _ctx.$slots.more ? (openBlock(), createBlock(_sfc_main$4, {
|
155
|
-
key:
|
152
|
+
key: 2,
|
156
153
|
ref: "more",
|
157
154
|
class: "-p--inner-margin -my---inner-margin -mr---inner-margin flex items-center",
|
158
155
|
disabled: _ctx.disabled || _ctx.disableMore,
|
@@ -176,7 +173,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
176
173
|
}, 16, ["class"])),
|
177
174
|
!_ctx.card ? (openBlock(), createElementBlock("div", {
|
178
175
|
key: 1,
|
179
|
-
class: normalizeClass(["-right--right-inner bg-default dark:bg-default-dark sticky z-[1]", {
|
176
|
+
class: normalizeClass(["-right--right-inner bg-default dark:bg-default-dark w-ripple-opacity-[0.05] sticky z-[1]", {
|
180
177
|
"width-[calc(var(--w-list-padding,1rem)*2+1.25em)]": _ctx.$slots.more,
|
181
178
|
"width-[--w-list-header-rounded,1rem]": !_ctx.$slots.more
|
182
179
|
}])
|
@@ -189,7 +186,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
189
186
|
"border-primary dark:border-primary-dark": _ctx.hasBorder && _ctx.selected,
|
190
187
|
"rounded-br-[unset!important]": isOpen.value,
|
191
188
|
"border-b-transparent dark:border-b-transparent": _ctx.hasBorder && isOpen.value,
|
192
|
-
"w-ripple-has-only w-ripple-hover
|
189
|
+
"w-ripple-has-only w-ripple-hover": isActionShown.value,
|
190
|
+
"before:text-primary dark:before:text-primary-dark w-ripple-opacity-15": _ctx.allowSelectHover || _ctx.selected || unref(moreRef)?.isOpen,
|
191
|
+
"before:opacity-10": _ctx.selected || unref(moreRef)?.isOpen
|
193
192
|
}])
|
194
193
|
}, [
|
195
194
|
_ctx.$slots.more ? (openBlock(), createBlock(_sfc_main$4, {
|
@@ -207,8 +206,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
207
206
|
renderSlot(_ctx.$slots, "more")
|
208
207
|
]),
|
209
208
|
_: 3
|
210
|
-
}, 8, ["class", "disabled", "anchor"])) : createCommentVNode("", true)
|
211
|
-
_ctx.selected || unref(moreRef)?.isOpen ? (openBlock(), createElementBlock("div", _hoisted_4)) : createCommentVNode("", true)
|
209
|
+
}, 8, ["class", "disabled", "anchor"])) : createCommentVNode("", true)
|
212
210
|
], 2)
|
213
211
|
], 2)) : createCommentVNode("", true),
|
214
212
|
position.value ? (openBlock(), createElementBlock("div", {
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"HeaderSettings.vue.d.ts","sourceRoot":"","sources":["../../../../../src/components/List/components/HeaderSettings.vue"],"names":[],"mappings":"AAiFA;
|
1
|
+
{"version":3,"file":"HeaderSettings.vue.d.ts","sourceRoot":"","sources":["../../../../../src/components/List/components/HeaderSettings.vue"],"names":[],"mappings":"AAiFA;AA2LA,OAAO,KAAK,EAAC,WAAW,EAAa,UAAU,EAAC,MAAM,UAAU,CAAA;AAWhE,OAAO,EAA0B,KAAK,QAAQ,EAAc,MAAM,eAAe,CAAA;yBAQhE,IAAI,SAAS,WAAW,EAAE,WAAW,EACrD,aAAa,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,CAAC,OAAO,CAAC,EAC9D,YAAY,mBAAmB,CAAC,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,EAAE,OAAO,GAAG,MAAM,GAAG,OAAO,CAAC,CAAC,EAC3G,eAAe,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,CAAC,QAAQ,CAAC,EACjE;WAiVO,mBAAmB,CAAC;;;;;gBA/UlB,UAAU,CAAC,IAAI,EAAE,WAAW,CAAC;wBACrB,MAAM,CAAC,MAAM,EAAE,WAAW,CAAC;cACrC,QAAQ;qBACD,WAAW;kBACd,OAAO;gBACT,OAAO;mBACJ,OAAO;mBAyU0E,CAAC,4BAA2B;oBACzG,OAAO,KAAK,EAAE,gBAAgB,CAAC,EAAE,CAAC,GAAG,IAAI;WAClD,GAAG;;;YAtUL,yBAAyB,SAAS,MAAM,CAAC,MAAM,EAAE,WAAW,CAAC,GAAG,IAAI;YACpE,aAAa,SAAS,QAAQ,GAAG,IAAI;YACrC,aAAa,GAAG,IAAI;;EAwUtB,KACQ,OAAO,KAAK,EAAE,KAAK,GAAG;IAAE,KAAK,CAAC,EAAE,OAAO,CAAC,OAAO,WAAW,CAAC,CAAA;CAAE;AA5VzE,wBA4V4E;AAC5E,KAAK,mBAAmB,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG,EAAE,CAAC"}
|
@@ -1,9 +1,10 @@
|
|
1
|
-
import { defineComponent, ref, createBlock, openBlock, unref, withCtx, createVNode, createElementVNode, createElementBlock, createCommentVNode, Fragment, renderList, normalizeClass, markRaw } from 'vue';
|
1
|
+
import { defineComponent, provide, 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
6
|
import { HorizontalAlign } from '../../../utils/HorizontalAlign.js';
|
7
|
+
import { wBaseZIndex, BASE_ZINDEX_LIST_HEADER } from '../../../utils/utils.js';
|
7
8
|
import _sfc_main$4 from './HeaderFieldNested.vue.js';
|
8
9
|
import _sfc_main$5 from './HeaderSettingsItem.vue.js';
|
9
10
|
import _sfc_main$3 from './HeaderSettingsModeButton.vue.js';
|
@@ -37,6 +38,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
37
38
|
setup(__props, { emit: __emit }) {
|
38
39
|
const props = __props;
|
39
40
|
const emit = __emit;
|
41
|
+
provide(wBaseZIndex, BASE_ZINDEX_LIST_HEADER);
|
40
42
|
const isOpen = ref(false);
|
41
43
|
const dragItem = ref(null);
|
42
44
|
const dragItemNewOrder = ref(null);
|
@@ -6,6 +6,7 @@ declare const _default: <Props>(__VLS_props: NonNullable<Awaited<typeof __VLS_se
|
|
6
6
|
tag: Component | keyof HTMLElementTagNameMap;
|
7
7
|
props?: Props;
|
8
8
|
card: boolean;
|
9
|
+
opacityClass?: string;
|
9
10
|
} & Partial<{}>> & import('vue').PublicProps;
|
10
11
|
expose(exposed: import('vue').ShallowUnwrapRef<{}>): void;
|
11
12
|
attrs: any;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"ListCardAction.vue.d.ts","sourceRoot":"","sources":["../../../../../src/components/List/components/ListCardAction.vue"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"ListCardAction.vue.d.ts","sourceRoot":"","sources":["../../../../../src/components/List/components/ListCardAction.vue"],"names":[],"mappings":"AAYA;AA4BA,OAAO,KAAK,EAAC,SAAS,EAAC,MAAM,KAAK,CAAA;yBAEjB,KAAK,EACrB,aAAa,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,CAAC,OAAO,CAAC,EAC9D,YAAY,mBAAmB,CAAC,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,EAAE,OAAO,GAAG,MAAM,GAAG,OAAO,CAAC,CAAC,EAC3G,eAAe,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,CAAC,QAAQ,CAAC,EACjE;WAoFO,mBAAmB,CAAC;;;aAlFrB,SAAS,GAAG,MAAM,qBAAqB;gBACpC,KAAK;cACP,OAAO;uBACE,MAAM;mBA+EuE,CAAC,4BAA2B;oBACzG,OAAO,KAAK,EAAE,gBAAgB,CAAC,EAAE,CAAC,GAAG,IAAI;WAClD,GAAG;;cA5EL,OAAO,SAAS,UAAU,KAAG,IAAI;EAgFnC,KACQ,OAAO,KAAK,EAAE,KAAK,GAAG;IAAE,KAAK,CAAC,EAAE,OAAO,CAAC,OAAO,WAAW,CAAC,CAAA;CAAE;AA/FzE,wBA+F4E;AAC5E,KAAK,mBAAmB,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG,EAAE,CAAC"}
|
@@ -5,14 +5,16 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
5
5
|
props: {
|
6
6
|
tag: {},
|
7
7
|
props: {},
|
8
|
-
card: { type: Boolean }
|
8
|
+
card: { type: Boolean },
|
9
|
+
opacityClass: {}
|
9
10
|
},
|
10
11
|
emits: ["click"],
|
11
12
|
setup(__props) {
|
12
13
|
return (_ctx, _cache) => {
|
13
14
|
return openBlock(), createBlock(resolveDynamicComponent(_ctx.tag), mergeProps(_ctx.props, {
|
14
|
-
class: ["w-ripple w-ripple-hover w-ripple-has
|
15
|
-
"sm:w-ripple-rounded-[--w-list-rounded,unset] sm:rounded-[--w-list-rounded,unset]": _ctx.card
|
15
|
+
class: ["w-ripple w-ripple-hover w-ripple-has absolute inset-0 cursor-pointer select-none", {
|
16
|
+
"sm:w-ripple-rounded-[--w-list-rounded,unset] sm:rounded-[--w-list-rounded,unset]": _ctx.card,
|
17
|
+
[_ctx.opacityClass ?? "w-ripple-opacity-[0.05]"]: true
|
16
18
|
}],
|
17
19
|
onClick: _cache[0] || (_cache[0] = ($event) => _ctx.$emit("click", $event))
|
18
20
|
}), null, 16, ["class"]);
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"useSelected.d.ts","sourceRoot":"","sources":["../../../src/utils/useSelected.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,KAAK,QAAQ,EAAE,KAAK,GAAG,EAA+C,MAAM,KAAK,CAAA;AA4BzF,eAAO,MAAM,WAAW,GAAI,MAAM,MAAM,EAAE,OAAO,MAAM,EAAE,YAAY,MAAM,KAAG,MAE7E,CAAA;AAED,MAAM,MAAM,SAAS,CAAC,KAAK,IAAI;IAC7B,MAAM,CAAC,EAAE,KAAK,EAAE,CAAA;IAChB,UAAU,CAAC,EAAE,KAAK,EAAE,CAAA;IACpB,KAAK,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;CACzB,CAAA;AAED,MAAM,MAAM,oBAAoB,GAAG;IACjC,aAAa,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;IAChC,MAAM,CAAC,EAAE,MAAM,EAAE,CAAA;IACjB,UAAU,CAAC,EAAE,MAAM,EAAE,CAAA;CACtB,CAAA;AAID,eAAO,MAAM,WAAW,GAAI,KAAK,SAAS,MAAM,EAAE,OAAO,QAAQ,CAAC,MAAM,GAAG,SAAS,CAAC,EAAE,UAAU,GAAG,CAAC,OAAO,CAAC;;;;
|
1
|
+
{"version":3,"file":"useSelected.d.ts","sourceRoot":"","sources":["../../../src/utils/useSelected.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,KAAK,QAAQ,EAAE,KAAK,GAAG,EAA+C,MAAM,KAAK,CAAA;AA4BzF,eAAO,MAAM,WAAW,GAAI,MAAM,MAAM,EAAE,OAAO,MAAM,EAAE,YAAY,MAAM,KAAG,MAE7E,CAAA;AAED,MAAM,MAAM,SAAS,CAAC,KAAK,IAAI;IAC7B,MAAM,CAAC,EAAE,KAAK,EAAE,CAAA;IAChB,UAAU,CAAC,EAAE,KAAK,EAAE,CAAA;IACpB,KAAK,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;CACzB,CAAA;AAED,MAAM,MAAM,oBAAoB,GAAG;IACjC,aAAa,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;IAChC,MAAM,CAAC,EAAE,MAAM,EAAE,CAAA;IACjB,UAAU,CAAC,EAAE,MAAM,EAAE,CAAA;CACtB,CAAA;AAID,eAAO,MAAM,WAAW,GAAI,KAAK,SAAS,MAAM,EAAE,OAAO,QAAQ,CAAC,MAAM,GAAG,SAAS,CAAC,EAAE,UAAU,GAAG,CAAC,OAAO,CAAC;;;;wBAoFhF,KAAK,YAAY,MAAM,KAAG,OAAO;8BAoB3B,MAAM;yBAMX,KAAK,YAAY,MAAM,KAAG,IAAI;;0BAzF/B,IAAI;0BAiMJ,oBAAoB,GAAG,SAAS;CA0C5D,CAAA"}
|
@@ -35,6 +35,8 @@ const useSelected = (count, disabled) => {
|
|
35
35
|
return {};
|
36
36
|
});
|
37
37
|
const resetSelection = () => {
|
38
|
+
hoverValue.value = null;
|
39
|
+
preselectValue.value = null;
|
38
40
|
router.replace({ query: route.query, hash: "#" });
|
39
41
|
};
|
40
42
|
const updateSelection = (value) => {
|
@@ -97,7 +99,7 @@ const useSelected = (count, disabled) => {
|
|
97
99
|
return false;
|
98
100
|
};
|
99
101
|
const hoverSelected = (position) => {
|
100
|
-
if (unmounted.value || disabled.value) return;
|
102
|
+
if (unmounted.value || disabled.value || !preselectValue.value && !selection.value.range) return;
|
101
103
|
hoverValue.value = position;
|
102
104
|
};
|
103
105
|
const toggleSelected = (id, position) => {
|
@@ -121,6 +123,8 @@ const useSelected = (count, disabled) => {
|
|
121
123
|
}
|
122
124
|
if (range) {
|
123
125
|
updateSelection({ range });
|
126
|
+
hoverValue.value = null;
|
127
|
+
preselectValue.value = null;
|
124
128
|
return;
|
125
129
|
}
|
126
130
|
}
|
@@ -134,6 +138,9 @@ const useSelected = (count, disabled) => {
|
|
134
138
|
if (selection.value.id__in) {
|
135
139
|
if (index === -1) preselectValue.value = position;
|
136
140
|
else if (preselectValue.value === position) preselectValue.value = null;
|
141
|
+
} else if (selection.value.id__not_in) {
|
142
|
+
if (index !== -1) preselectValue.value = position;
|
143
|
+
else if (preselectValue.value === position) preselectValue.value = null;
|
137
144
|
}
|
138
145
|
};
|
139
146
|
const selectionCount = computed(() => {
|
package/package.json
CHANGED