eco-vue-js 0.10.32 → 0.10.34
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/sax/IconAddSquare.svg.js +2 -2
- package/dist/assets/icons/sax/{IconOutlineEdit.svg.js → IconEditSquare.svg.js} +6 -6
- package/dist/assets/icons/sax/IconFilter.svg.js +2 -2
- package/dist/assets/icons/sax/{IconOutlineFolderAdd.svg.js → IconFolderAdd.svg.js} +5 -5
- package/dist/assets/icons/sax/{IconOutlineCloseCircle.svg.js → IconMoon.svg.js} +4 -4
- package/dist/assets/icons/sax/IconSettings.svg.js +3 -3
- package/dist/assets/icons/sax/{IconOutlineCheckCircle.svg.js → IconSun.svg.js} +6 -6
- package/dist/components/ActionsBar/WActionsBar.vue.d.ts +2 -0
- package/dist/components/ActionsBar/WActionsBar.vue.d.ts.map +1 -1
- package/dist/components/ActionsBar/WActionsBar.vue.js +37 -16
- package/dist/components/BottomSheet/WBottomSheet.vue.js +1 -1
- package/dist/components/Button/WButton.vue.d.ts +0 -1
- package/dist/components/Button/WButton.vue.d.ts.map +1 -1
- package/dist/components/Button/WButton.vue.js +9 -7
- package/dist/components/Button/WButtonAction.vue.d.ts +1 -1
- package/dist/components/Button/WButtonAction.vue.d.ts.map +1 -1
- package/dist/components/Button/WButtonAction.vue.js +38 -51
- package/dist/components/Button/WButtonCopy.vue.js +1 -1
- package/dist/components/Button/WButtonDropdown.vue.js +1 -0
- package/dist/components/Button/WButtonGroup.vue.js +0 -1
- package/dist/components/Button/WButtonMore.vue.d.ts +11 -4
- package/dist/components/Button/WButtonMore.vue.d.ts.map +1 -1
- package/dist/components/Button/WButtonMore.vue.js +36 -16
- package/dist/components/Button/WButtonMoreItem.vue.d.ts +5 -6
- package/dist/components/Button/WButtonMoreItem.vue.d.ts.map +1 -1
- package/dist/components/Button/WButtonMoreItem.vue.js +11 -6
- package/dist/components/Button/WButtonSelection.vue.js +1 -1
- package/dist/components/Button/WButtonSelectionAction.vue.js +2 -2
- package/dist/components/Button/types.d.ts +0 -1
- package/dist/components/Button/types.d.ts.map +1 -1
- package/dist/components/Checkbox/WCheckbox.vue.js +3 -3
- package/dist/components/Chip/WChip.vue.js +1 -1
- package/dist/components/ClickOutside/WClickOutside.vue.d.ts +6 -3
- package/dist/components/ClickOutside/WClickOutside.vue.d.ts.map +1 -1
- package/dist/components/ClickOutside/WClickOutside.vue.js +9 -1
- package/dist/components/DatePicker/components/CalendarDay.vue.js +3 -3
- package/dist/components/DatePicker/components/CalendarToggle.vue.js +2 -2
- package/dist/components/DatePicker/components/CalendarValue.vue.js +1 -1
- package/dist/components/Dropdown/WDropdown.vue.d.ts +2 -0
- package/dist/components/Dropdown/WDropdown.vue.d.ts.map +1 -1
- package/dist/components/Dropdown/WDropdown.vue.js +15 -5
- package/dist/components/Dropdown/utils/DropdownStyle.d.ts +69 -0
- package/dist/components/Dropdown/utils/DropdownStyle.d.ts.map +1 -1
- package/dist/components/Dropdown/utils/DropdownStyle.js +23 -1
- package/dist/components/DropdownMenu/WDropdownMenu.vue.d.ts +6 -0
- package/dist/components/DropdownMenu/WDropdownMenu.vue.d.ts.map +1 -1
- package/dist/components/DropdownMenu/WDropdownMenu.vue.js +20 -29
- package/dist/components/DropdownMenu/types.d.ts +1 -0
- package/dist/components/DropdownMenu/types.d.ts.map +1 -1
- package/dist/components/FieldWrapper/WFieldWrapper.vue.js +1 -1
- package/dist/components/FieldWrapper/components/FilterButton.vue.js +1 -1
- package/dist/components/FilePicker/components/FilePickerSvg.vue.js +1 -1
- package/dist/components/FormAsync/WFormAsyncButtonGroup.vue.js +0 -1
- package/dist/components/FormAsync/WFormAsyncSelect.vue.js +1 -0
- package/dist/components/FormAsync/WFormAsyncSelectInfiniteSingle.vue.js +1 -0
- package/dist/components/FormAsync/WFormAsyncSelectSingle.vue.js +1 -0
- package/dist/components/FormAsync/WFormAsyncSelectStringified.vue.js +1 -0
- package/dist/components/FormAsync/WFormAsyncToggle.vue.js +2 -0
- package/dist/components/InfoCard/WInfoCardNegative.vue.js +1 -1
- package/dist/components/InfoCard/models/utils.js +2 -2
- package/dist/components/Input/WInput.vue.js +2 -2
- package/dist/components/Input/WInputAsync.vue.js +2 -2
- package/dist/components/Input/WInputDate.vue.js +1 -0
- package/dist/components/Input/WInputOptions.vue.js +1 -0
- package/dist/components/Input/WInputSuggest.vue.js +1 -0
- package/dist/components/Link/WLink.vue.d.ts.map +1 -1
- package/dist/components/Link/WLink.vue.js +5 -4
- package/dist/components/Link/WLinkArrow.vue.js +1 -1
- package/dist/components/List/WList.vue.d.ts +9 -4
- package/dist/components/List/WList.vue.d.ts.map +1 -1
- package/dist/components/List/WList.vue.js +7 -4
- package/dist/components/List/WListCard.vue.d.ts +143 -0
- package/dist/components/List/WListCard.vue.d.ts.map +1 -1
- package/dist/components/List/WListCard.vue.js +49 -23
- package/dist/components/List/components/HeaderSettingsModeButton.vue.js +1 -1
- package/dist/components/List/types.d.ts +8 -0
- package/dist/components/List/types.d.ts.map +1 -1
- package/dist/components/MenuItem/WMenuItem.vue.d.ts +5 -5
- package/dist/components/MenuItem/WMenuItem.vue.d.ts.map +1 -1
- package/dist/components/MenuItem/WMenuItem.vue.js +16 -8
- package/dist/components/Modal/WModal.vue.d.ts.map +1 -1
- package/dist/components/Modal/WModal.vue.js +6 -5
- package/dist/components/Modal/WModalExport.vue.js +1 -1
- package/dist/components/Modal/WModalImport.vue.js +1 -1
- package/dist/components/Modal/use/useIsBackdrop.d.ts +2 -0
- package/dist/components/Modal/use/useIsBackdrop.d.ts.map +1 -0
- package/dist/components/Modal/use/useIsBackdrop.js +8 -0
- package/dist/components/Nav/WNavBar.vue.js +1 -1
- package/dist/components/Nav/WNavItem.vue.js +2 -2
- package/dist/components/Progress/WProgress.vue.js +1 -1
- package/dist/components/Select/WSelect.vue.js +1 -0
- package/dist/components/Select/WSelectAsync.vue.js +1 -0
- package/dist/components/Select/WSelectAsyncSingle.vue.js +1 -0
- package/dist/components/Select/WSelectSingle.vue.js +1 -0
- package/dist/components/Select/WSelectStringified.vue.js +1 -0
- package/dist/components/Select/components/SelectOption.vue.js +1 -1
- package/dist/components/Shine/WShine.vue.d.ts +5 -0
- package/dist/components/Shine/WShine.vue.d.ts.map +1 -0
- package/dist/components/Shine/WShine.vue.js +28 -0
- package/dist/components/Shine/WShine.vue2.js +5 -0
- package/dist/components/Shine/WShineEffect.vue.d.ts +3 -0
- package/dist/components/Shine/WShineEffect.vue.d.ts.map +1 -0
- package/dist/components/Shine/WShineEffect.vue.js +42 -0
- package/dist/components/Shine/WShineEffect.vue2.js +5 -0
- package/dist/components/Shine/use/useShine.d.ts +4 -0
- package/dist/components/Shine/use/useShine.d.ts.map +1 -0
- package/dist/components/Shine/use/useShine.js +8 -0
- package/dist/components/Tabs/WTabs.vue.d.ts +16 -8
- package/dist/components/Tabs/WTabs.vue.d.ts.map +1 -1
- package/dist/components/Tabs/WTabs.vue.js +1 -1
- package/dist/components/Tabs/components/TabTitleButton.vue.js +1 -1
- package/dist/components/Toggle/WToggle.vue.d.ts.map +1 -1
- package/dist/components/Toggle/WToggle.vue.js +38 -25
- package/dist/components/Toggle/WToggleTheme.vue.d.ts +9 -0
- package/dist/components/Toggle/WToggleTheme.vue.d.ts.map +1 -0
- package/dist/components/Toggle/WToggleTheme.vue.js +37 -0
- package/dist/components/Toggle/WToggleTheme.vue2.js +5 -0
- package/dist/components/Toggle/types.d.ts +6 -0
- package/dist/components/Toggle/types.d.ts.map +1 -1
- package/dist/components/Tooltip/WTooltipContainer.vue.js +3 -3
- package/dist/components/Tooltip/components/TooltipContainer.vue.js +1 -1
- package/dist/imports/componentsPlugin.d.ts +4 -1
- package/dist/imports/componentsPlugin.d.ts.map +1 -1
- package/dist/imports/iconsSax.d.ts +4 -6
- package/dist/imports/iconsSax.d.ts.map +1 -1
- package/dist/imports/iconsSax.js +4 -6
- package/dist/main.js +5 -2
- package/dist/utils/HorizontalAlign.d.ts +2 -0
- package/dist/utils/HorizontalAlign.d.ts.map +1 -1
- package/dist/utils/HorizontalAlign.js +2 -0
- package/dist/utils/SemanticType.d.ts +36 -0
- package/dist/utils/SemanticType.d.ts.map +1 -1
- package/dist/utils/SemanticType.js +55 -1
- package/dist/utils/useDefaultQuery.d.ts.map +1 -1
- package/dist/utils/useDefaultQuery.js +0 -1
- package/dist/utils/utils.d.ts +4 -0
- package/dist/utils/utils.d.ts.map +1 -1
- package/dist/utils/utils.js +6 -1
- package/package.json +10 -1
- package/tailwind-base/index.ts +4 -10
- package/tailwind-base/plugins/default.ts +15 -0
- package/tailwind-base/theme/animations.ts +9 -0
- package/tailwind-base/theme/sizes.ts +1 -0
- package/dist/assets/icons/sax/IconOutlineRefresh.svg.js +0 -24
- package/dist/assets/icons/sax/IconOutlineStar.svg.js +0 -24
- package/dist/components/Button/models/semanticTypeStylesMap.d.ts +0 -6
- package/dist/components/Button/models/semanticTypeStylesMap.d.ts.map +0 -1
- package/dist/components/Button/models/semanticTypeStylesMap.js +0 -32
@@ -1,4 +1,4 @@
|
|
1
|
-
import { defineComponent, useTemplateRef, ref, computed, createElementBlock, openBlock, Fragment, createElementVNode, createCommentVNode, mergeProps, createVNode, createBlock, Transition, withCtx, normalizeClass, resolveDynamicComponent, renderSlot, normalizeStyle,
|
1
|
+
import { defineComponent, useTemplateRef, ref, computed, createElementBlock, openBlock, Fragment, createElementVNode, createCommentVNode, mergeProps, createVNode, createBlock, Transition, withCtx, normalizeClass, unref, resolveDynamicComponent, renderSlot, normalizeStyle, normalizeProps, guardReactiveProps, markRaw } from 'vue';
|
2
2
|
import { RouterLink } from 'vue-router';
|
3
3
|
import _sfc_main$4 from '../Button/WButtonMore.vue.js';
|
4
4
|
import _sfc_main$5 from '../Button/WButtonMoreItem.vue.js';
|
@@ -11,19 +11,19 @@ import { AREA_SELECT, AREA_MORE } from './types.js';
|
|
11
11
|
|
12
12
|
const _hoisted_1 = {
|
13
13
|
key: 0,
|
14
|
-
class: "bg-primary
|
14
|
+
class: "bg-primary dark:bg-primary-dark @sm:hidden absolute left-0 top-0 h-full w-2"
|
15
15
|
};
|
16
16
|
const _hoisted_2 = {
|
17
17
|
key: 1,
|
18
|
-
class: "bg-primary
|
18
|
+
class: "bg-primary/10 dark:bg-primary-dark/10 rounded-inherit pointer-events-none absolute inset-0"
|
19
19
|
};
|
20
20
|
const _hoisted_3 = {
|
21
21
|
key: 2,
|
22
|
-
class: "bg-primary
|
22
|
+
class: "bg-primary/10 dark:bg-primary-dark/10 rounded-inherit pointer-events-none absolute inset-0"
|
23
23
|
};
|
24
24
|
const _hoisted_4 = {
|
25
25
|
key: 1,
|
26
|
-
class: "bg-primary
|
26
|
+
class: "bg-primary/10 dark:bg-primary-dark/10 rounded-inherit pointer-events-none absolute inset-0"
|
27
27
|
};
|
28
28
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
29
29
|
__name: "WListCard",
|
@@ -39,31 +39,45 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
39
39
|
formName: {},
|
40
40
|
card: { type: Boolean },
|
41
41
|
to: {},
|
42
|
+
hasAction: { type: Boolean },
|
42
43
|
skeleton: { type: Boolean },
|
43
44
|
selected: { type: Boolean },
|
44
45
|
allowSelect: { type: Boolean },
|
45
46
|
allowSelectHover: { type: Boolean }
|
46
47
|
},
|
47
|
-
emits: ["toggle:selected", "hover:selected"],
|
48
|
+
emits: ["toggle:selected", "hover:selected", "click:action"],
|
48
49
|
setup(__props) {
|
49
50
|
const props = __props;
|
51
|
+
const containerRef = useTemplateRef("container");
|
52
|
+
const moreRef = useTemplateRef("more");
|
50
53
|
const formRef = useTemplateRef("form");
|
51
54
|
const isOpen = ref(false);
|
55
|
+
const position = ref(null);
|
56
|
+
const anchorRef = useTemplateRef("anchor");
|
52
57
|
const toggle = () => {
|
53
58
|
isOpen.value = !isOpen.value;
|
54
59
|
};
|
55
60
|
const validate = (...args) => formRef.value?.validate(...args);
|
56
|
-
const isActionShown = computed(() => !props.skeleton && (props.allowOpen || props.to !== void 0 || props.allowSelectHover));
|
61
|
+
const isActionShown = computed(() => !props.skeleton && (props.allowOpen || props.to !== void 0 || props.allowSelectHover || props.hasAction));
|
62
|
+
const toggleMenu = (event) => {
|
63
|
+
if (props.disabled || props.disableMore || !containerRef.value || !moreRef.value) return;
|
64
|
+
const containerRect = containerRef.value.getBoundingClientRect();
|
65
|
+
position.value = { left: event.screenX - containerRect.x + "px", top: event.clientY - containerRect.y + "px" };
|
66
|
+
moreRef.value.open();
|
67
|
+
event.preventDefault();
|
68
|
+
};
|
57
69
|
return (_ctx, _cache) => {
|
58
70
|
return openBlock(), createElementBlock(Fragment, null, [
|
59
71
|
createElementVNode("div", mergeProps(_ctx.allowSelect ? { "onMouseover": () => _ctx.$emit("hover:selected") } : void 0, {
|
72
|
+
ref: "container",
|
60
73
|
class: ["relative isolate", {
|
61
74
|
[_ctx.cardWrapperClass ?? ""]: true,
|
62
75
|
"w-ripple-trigger-has": isActionShown.value,
|
63
76
|
"sm-not:dark:even:bg-primary-darkest/25 sm-not:even:bg-gray-50 grid grid-cols-1": _ctx.card,
|
64
77
|
"flex": !_ctx.card,
|
65
78
|
"-mb-px": !_ctx.card && isOpen.value
|
66
|
-
}]
|
79
|
+
}],
|
80
|
+
onContextmenu: toggleMenu
|
67
81
|
}), [
|
68
82
|
createVNode(Transition, {
|
69
83
|
"enter-active-class": "transition-transform duration-200",
|
@@ -82,12 +96,12 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
82
96
|
"width-[--w-list-header-rounded,1rem]": !_ctx.allowSelect
|
83
97
|
}])
|
84
98
|
}, [
|
85
|
-
_cache[
|
99
|
+
_cache[5] || (_cache[5] = 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)),
|
86
100
|
createElementVNode("div", {
|
87
101
|
class: normalizeClass(["h-full rounded-l-[--w-list-rounded,unset]", {
|
88
102
|
"border border-r-0": _ctx.hasBorder,
|
89
103
|
"border-gray-300 dark:border-gray-700": _ctx.hasBorder && !_ctx.selected,
|
90
|
-
"border-primary
|
104
|
+
"border-primary dark:border-primary-dark": _ctx.hasBorder && _ctx.selected,
|
91
105
|
"rounded-bl-[unset!important]": isOpen.value,
|
92
106
|
"border-b-transparent dark:border-b-transparent": _ctx.hasBorder && isOpen.value,
|
93
107
|
"w-ripple-has-only w-ripple-hover w-ripple-opacity-[0.04]": isActionShown.value,
|
@@ -105,7 +119,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
105
119
|
}]),
|
106
120
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => _ctx.$emit("toggle:selected"))
|
107
121
|
}, null, 8, ["model-value", "disabled", "align-top", "class"])) : createCommentVNode("", true),
|
108
|
-
_ctx.selected ? (openBlock(), createElementBlock("div", _hoisted_2)) : createCommentVNode("", true)
|
122
|
+
_ctx.selected || unref(moreRef)?.isOpen ? (openBlock(), createElementBlock("div", _hoisted_2)) : createCommentVNode("", true)
|
109
123
|
], 2)
|
110
124
|
], 2)) : createCommentVNode("", true),
|
111
125
|
(openBlock(), createBlock(resolveDynamicComponent(_ctx.formName ? _sfc_main$2 : "div"), mergeProps({ ref: "form" }, _ctx.formName ? { name: _ctx.formName } : void 0, {
|
@@ -115,7 +129,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
115
129
|
"grid grid-cols-[--w-list-grid-cols] [grid-template-areas:--w-list-grid-areas] sm:rounded-[--w-list-rounded,unset]": _ctx.card,
|
116
130
|
"sm:border-y": _ctx.hasBorder,
|
117
131
|
"border-gray-300 dark:border-gray-700": _ctx.hasBorder && !_ctx.selected,
|
118
|
-
"border-primary
|
132
|
+
"border-primary dark:border-primary-dark": _ctx.hasBorder && _ctx.selected,
|
119
133
|
"sm:border": _ctx.card && _ctx.hasBorder,
|
120
134
|
"border-b-transparent dark:border-b-transparent": !_ctx.card && _ctx.hasBorder && isOpen.value
|
121
135
|
}]
|
@@ -134,14 +148,17 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
134
148
|
renderSlot(_ctx.$slots, "default", normalizeProps(guardReactiveProps({ toggle, isOpen: isOpen.value, validate }))),
|
135
149
|
isActionShown.value ? (openBlock(), createBlock(_sfc_main$3, normalizeProps(mergeProps(
|
136
150
|
{ key: 1 },
|
137
|
-
_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 }
|
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 }
|
138
152
|
)), null, 16)) : createCommentVNode("", true),
|
139
|
-
_ctx.selected ? (openBlock(), createElementBlock("div", _hoisted_3)) : createCommentVNode("", true),
|
153
|
+
_ctx.selected || unref(moreRef)?.isOpen ? (openBlock(), createElementBlock("div", _hoisted_3)) : createCommentVNode("", true),
|
140
154
|
_ctx.card && _ctx.$slots.more ? (openBlock(), createBlock(_sfc_main$4, {
|
141
155
|
key: 3,
|
156
|
+
ref: "more",
|
142
157
|
class: "-p--inner-margin -my---inner-margin -mr---inner-margin flex items-center",
|
143
158
|
disabled: _ctx.disabled || _ctx.disableMore,
|
144
|
-
style: normalizeStyle({ gridArea: unref(AREA_MORE) })
|
159
|
+
style: normalizeStyle({ gridArea: unref(AREA_MORE) }),
|
160
|
+
anchor: unref(anchorRef) ?? void 0,
|
161
|
+
onClose: _cache[3] || (_cache[3] = ($event) => position.value = null)
|
145
162
|
}, {
|
146
163
|
default: withCtx(() => [
|
147
164
|
_ctx.allowSelect ? (openBlock(), createBlock(_sfc_main$5, {
|
@@ -153,7 +170,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
153
170
|
renderSlot(_ctx.$slots, "more")
|
154
171
|
]),
|
155
172
|
_: 3
|
156
|
-
}, 8, ["disabled", "style"])) : createCommentVNode("", true)
|
173
|
+
}, 8, ["disabled", "style", "anchor"])) : createCommentVNode("", true)
|
157
174
|
]),
|
158
175
|
_: 3
|
159
176
|
}, 16, ["class"])),
|
@@ -164,12 +181,12 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
164
181
|
"width-[--w-list-header-rounded,1rem]": !_ctx.$slots.more
|
165
182
|
}])
|
166
183
|
}, [
|
167
|
-
_cache[
|
184
|
+
_cache[6] || (_cache[6] = 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)),
|
168
185
|
createElementVNode("div", {
|
169
186
|
class: normalizeClass(["h-full rounded-r-[--w-list-rounded,unset]", {
|
170
187
|
"rounded-tr-[--w-list-rounded,unset] border border-l-0": _ctx.hasBorder,
|
171
188
|
"border-gray-300 dark:border-gray-700": _ctx.hasBorder && !_ctx.selected,
|
172
|
-
"border-primary
|
189
|
+
"border-primary dark:border-primary-dark": _ctx.hasBorder && _ctx.selected,
|
173
190
|
"rounded-br-[unset!important]": isOpen.value,
|
174
191
|
"border-b-transparent dark:border-b-transparent": _ctx.hasBorder && isOpen.value,
|
175
192
|
"w-ripple-has-only w-ripple-hover w-ripple-opacity-[0.04]": isActionShown.value
|
@@ -177,27 +194,36 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
177
194
|
}, [
|
178
195
|
_ctx.$slots.more ? (openBlock(), createBlock(_sfc_main$4, {
|
179
196
|
key: 0,
|
197
|
+
ref: "more",
|
180
198
|
class: normalizeClass(["flex h-full px-[--w-list-padding,1rem]", {
|
181
199
|
"pt-4.5 items-start": _ctx.alignTop,
|
182
200
|
"items-center": !_ctx.alignTop
|
183
201
|
}]),
|
184
|
-
disabled: _ctx.disabled || _ctx.disableMore
|
202
|
+
disabled: _ctx.disabled || _ctx.disableMore,
|
203
|
+
anchor: unref(anchorRef) ?? void 0,
|
204
|
+
onClose: _cache[4] || (_cache[4] = ($event) => position.value = null)
|
185
205
|
}, {
|
186
206
|
default: withCtx(() => [
|
187
207
|
renderSlot(_ctx.$slots, "more")
|
188
208
|
]),
|
189
209
|
_: 3
|
190
|
-
}, 8, ["class", "disabled"])) : createCommentVNode("", true),
|
191
|
-
_ctx.selected ? (openBlock(), createElementBlock("div", _hoisted_4)) : createCommentVNode("", true)
|
210
|
+
}, 8, ["class", "disabled", "anchor"])) : createCommentVNode("", true),
|
211
|
+
_ctx.selected || unref(moreRef)?.isOpen ? (openBlock(), createElementBlock("div", _hoisted_4)) : createCommentVNode("", true)
|
192
212
|
], 2)
|
193
|
-
], 2)) : createCommentVNode("", true)
|
213
|
+
], 2)) : createCommentVNode("", true),
|
214
|
+
position.value ? (openBlock(), createElementBlock("div", {
|
215
|
+
key: 2,
|
216
|
+
ref: "anchor",
|
217
|
+
class: "absolute",
|
218
|
+
style: normalizeStyle(position.value)
|
219
|
+
}, null, 4)) : createCommentVNode("", true)
|
194
220
|
], 16),
|
195
221
|
_ctx.$slots.expansion ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
196
222
|
isOpen.value ? (openBlock(), createElementBlock("div", {
|
197
223
|
key: 0,
|
198
224
|
class: normalizeClass(["sm:w-inner sm:left-inner col-span-full sm:sticky", {
|
199
225
|
"border-gray-300 dark:border-gray-700": _ctx.hasBorder && !_ctx.selected,
|
200
|
-
"border-primary
|
226
|
+
"border-primary dark:border-primary-dark": _ctx.hasBorder && _ctx.selected,
|
201
227
|
"mt-[calc(var(--w-list-gap,1rem)*-1)] border border-t-0 px-5": !_ctx.card && _ctx.hasBorder,
|
202
228
|
"rounded-b-[--w-list-rounded,unset]": !_ctx.card
|
203
229
|
}])
|
@@ -10,7 +10,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
10
10
|
return (_ctx, _cache) => {
|
11
11
|
return openBlock(), createElementBlock("button", {
|
12
12
|
class: normalizeClass(["w-ripple w-ripple-hover relative flex justify-center rounded-2xl p-4", {
|
13
|
-
"text-primary
|
13
|
+
"text-primary dark:text-primary-dark bg-primary/10 dark:bg-primary-dark/10": _ctx.active,
|
14
14
|
"text-description": !_ctx.active
|
15
15
|
}])
|
16
16
|
}, [
|
@@ -76,6 +76,10 @@ export type MenuProps<Data> = {
|
|
76
76
|
updateItem: (newItem?: Data | undefined) => void;
|
77
77
|
deleteItem: () => void;
|
78
78
|
};
|
79
|
+
export type MenuEmits<Data> = {
|
80
|
+
(e: 'update:item', value: Data): void;
|
81
|
+
(e: 'delete:item'): void;
|
82
|
+
};
|
79
83
|
export type MenuComponent<Data> = Component<MenuProps<Data>>;
|
80
84
|
export type BulkProps<QueryParams> = {
|
81
85
|
queryParamsGetter: () => QueryParams;
|
@@ -107,5 +111,9 @@ export type ListConfig<Fields extends ListFields<any, any>> = {
|
|
107
111
|
fields: FieldConfigMap<Fields>;
|
108
112
|
mode: ListMode;
|
109
113
|
};
|
114
|
+
export type CardActionParams<Data> = {
|
115
|
+
item: Data;
|
116
|
+
setter: (value: Data) => void;
|
117
|
+
};
|
110
118
|
export {};
|
111
119
|
//# sourceMappingURL=types.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/components/List/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,QAAQ,EAAC,MAAM,eAAe,CAAA;AAC3C,OAAO,KAAK,EAAC,SAAS,EAAE,GAAG,EAAC,MAAM,KAAK,CAAA;AAEvC,MAAM,MAAM,UAAU,CAAC,IAAI,IAAI;IAC7B,IAAI,EAAE,IAAI,CAAA;IACV,QAAQ,EAAE,OAAO,CAAA;IACjB,QAAQ,EAAE,OA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EAAE,GAAG,CAAC,EAAE,MAAM,SAAS,MAAM,IAAI,CAAC,SAAS,CAAC,cAAc,CAAC,MAAM,CAAC,GAAG,OAAO,WAAW,GAAG,OAAO,SAAS,GAAG,GAAG,CAAC,EAAE,GAAG;IAAE,MAAM,EAAE,MAAM,CAAA;CAAE,CAAC,EAAE,CAAA;AAE9L,KAAK,YAAY,GAAG,MAAM,GAAG,KAAK,GAAG,GAAI,MAAO,KAAK,CAAA;AACrD,MAAM,MAAM,OAAO,GAAG,YAAY,GAAG,UAAW,YAAa,KAAM,YAAa,GAAG,CAAA;AAGnF,MAAM,MAAM,UAAU,CAAC,MAAM,SAAS,UAAU,CAAC,GAAG,EAAE,GAAG,CAAC,IAAI;IAC5D,MAAM,EAAE,cAAc,CAAC,MAAM,CAAC,CAAA;IAC9B,IAAI,EAAE,QAAQ,CAAA;CACf,CAAA;AAED,MAAM,MAAM,gBAAgB,CAAC,IAAI,IAAI;IACnC,IAAI,EAAE,IAAI,CAAA;IACV,MAAM,EAAE,CAAC,KAAK,EAAE,IAAI,KAAK,IAAI,CAAA;CAC9B,CAAA"}
|
@@ -13,11 +13,11 @@ declare function __VLS_template(): {
|
|
13
13
|
rootEl: any;
|
14
14
|
};
|
15
15
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
16
|
-
declare const __VLS_component: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
16
|
+
declare const __VLS_component: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
17
|
+
click: (value: MouseEvent) => any;
|
18
|
+
}, string, import('vue').PublicProps, Readonly<Props> & Readonly<{
|
19
|
+
onClick?: ((value: MouseEvent) => any) | undefined;
|
20
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
21
21
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
22
22
|
export default _default;
|
23
23
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"WMenuItem.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/MenuItem/WMenuItem.vue"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"WMenuItem.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/MenuItem/WMenuItem.vue"],"names":[],"mappings":"AAqBA;AAwCA,OAAO,KAAK,EAAC,SAAS,EAAC,MAAM,eAAe,CAAA;AAI5C,UAAU,KAAM,SAAQ,OAAO,CAAC,SAAS,CAAC;IACxC,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,QAAQ,CAAC,EAAE,MAAM,CAAA;CAClB;AAYD,iBAAS,cAAc;WA0DT,OAAO,IAA6B;;yBAVrB,GAAG;;;;EAe/B;AAUD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;kFAQnB,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"}
|
@@ -1,25 +1,33 @@
|
|
1
|
-
import { defineComponent, createBlock, openBlock, resolveDynamicComponent, unref, mergeProps, withCtx, renderSlot } from 'vue';
|
1
|
+
import { defineComponent, createBlock, openBlock, resolveDynamicComponent, unref, mergeProps, withCtx, createElementVNode, normalizeClass, renderSlot } from 'vue';
|
2
2
|
import { RouterLink } from 'vue-router';
|
3
3
|
|
4
4
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
5
5
|
__name: "WMenuItem",
|
6
6
|
props: {
|
7
7
|
disabled: { type: Boolean },
|
8
|
-
href: {
|
9
|
-
download: {
|
10
|
-
to: {
|
8
|
+
href: {},
|
9
|
+
download: {},
|
10
|
+
to: {}
|
11
11
|
},
|
12
|
+
emits: ["click"],
|
12
13
|
setup(__props) {
|
13
14
|
return (_ctx, _cache) => {
|
14
15
|
return openBlock(), createBlock(resolveDynamicComponent(_ctx.to && !_ctx.disabled ? unref(RouterLink) : _ctx.href ? "a" : "button"), mergeProps(_ctx.to && !_ctx.disabled ? { to: _ctx.to } : _ctx.href ? { href: _ctx.href, download: _ctx.download } : void 0, {
|
15
|
-
class: ["text-description
|
16
|
-
"
|
16
|
+
class: ["text-description w-ripple-trigger block w-full min-w-36 select-none items-center justify-start px-2 text-start outline-none first:pt-2 last:pb-2", {
|
17
|
+
"hover:text-primary dark:hover:text-primary-dark cursor-pointer": !_ctx.disabled,
|
17
18
|
"cursor-not-allowed opacity-50": _ctx.disabled
|
18
19
|
}],
|
19
|
-
disabled: _ctx.disabled
|
20
|
+
disabled: _ctx.disabled,
|
21
|
+
onClick: _cache[0] || (_cache[0] = ($event) => !_ctx.disabled && _ctx.$emit("click", $event))
|
20
22
|
}), {
|
21
23
|
default: withCtx(() => [
|
22
|
-
|
24
|
+
createElementVNode("div", {
|
25
|
+
class: normalizeClass({
|
26
|
+
"w-ripple w-ripple-hover relative flex w-full gap-4 rounded-lg px-2 py-1": !_ctx.disabled
|
27
|
+
})
|
28
|
+
}, [
|
29
|
+
renderSlot(_ctx.$slots, "default")
|
30
|
+
], 2)
|
23
31
|
]),
|
24
32
|
_: 3
|
25
33
|
}, 16, ["class", "disabled"]);
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"WModal.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Modal/WModal.vue"],"names":[],"mappings":"AAyCA;;
|
1
|
+
{"version":3,"file":"WModal.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Modal/WModal.vue"],"names":[],"mappings":"AAyCA;;AA8XA,wBAMG"}
|
@@ -1,7 +1,8 @@
|
|
1
|
-
import { defineComponent, ref, reactive, watch, onBeforeMount, onBeforeUnmount, createElementBlock, openBlock, createVNode, Transition, withCtx, createCommentVNode, normalizeStyle, TransitionGroup, Fragment, renderList, createElementVNode, createBlock, withModifiers, resolveDynamicComponent, mergeProps } from 'vue';
|
1
|
+
import { defineComponent, ref, reactive, watch, onBeforeMount, onBeforeUnmount, createElementBlock, openBlock, createVNode, Transition, withCtx, createCommentVNode, unref, normalizeStyle, TransitionGroup, Fragment, renderList, createElementVNode, createBlock, withModifiers, resolveDynamicComponent, mergeProps } from 'vue';
|
2
2
|
import { Modal, initModal } from '../../utils/Modal.js';
|
3
3
|
import { SemanticType } from '../../utils/SemanticType.js';
|
4
4
|
import _sfc_main$1 from './components/ModalCloseButton.vue.js';
|
5
|
+
import { useIsBackdrop } from './use/useIsBackdrop.js';
|
5
6
|
|
6
7
|
const _hoisted_1 = { class: "z-[1000]" };
|
7
8
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
@@ -9,7 +10,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
9
10
|
setup(__props) {
|
10
11
|
const key = ref(0);
|
11
12
|
const modalMetaList = ref([]);
|
12
|
-
const
|
13
|
+
const isBackdrop = useIsBackdrop();
|
13
14
|
const hasChangesMap = reactive({});
|
14
15
|
const addModal = (component, props, cb, autoclose = false) => {
|
15
16
|
const modalMeta = {
|
@@ -55,11 +56,11 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
55
56
|
watch(modalMetaList, (value) => {
|
56
57
|
if (timeout) clearTimeout(timeout);
|
57
58
|
if (value.length) {
|
58
|
-
|
59
|
+
isBackdrop.value = true;
|
59
60
|
} else {
|
60
61
|
timeout = setTimeout(() => {
|
61
62
|
timeout = void 0;
|
62
|
-
|
63
|
+
isBackdrop.value = false;
|
63
64
|
}, 100);
|
64
65
|
}
|
65
66
|
});
|
@@ -78,7 +79,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
78
79
|
"leave-to-class": "opacity-0"
|
79
80
|
}, {
|
80
81
|
default: withCtx(() => [
|
81
|
-
|
82
|
+
unref(isBackdrop) ? (openBlock(), createElementBlock("div", {
|
82
83
|
key: 0,
|
83
84
|
style: normalizeStyle({ zIndex: 100 + modalMetaList.value.length + modalMetaList.value.length - 1 }),
|
84
85
|
class: "bg-primary-light dark:bg-primary-darkest fixed left-0 top-0 size-full bg-opacity-40 backdrop-blur dark:bg-opacity-40"
|
@@ -104,7 +104,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
104
104
|
createElementVNode("div", _hoisted_1, [
|
105
105
|
createVNode(_sfc_main$2, {
|
106
106
|
"model-value": progress.value * 100,
|
107
|
-
class: "bg-primary
|
107
|
+
class: "bg-primary dark:bg-primary-dark"
|
108
108
|
}, null, 8, ["model-value"]),
|
109
109
|
createElementVNode("div", _hoisted_2, toDisplayString(page.value) + " / " + toDisplayString(pagesCount.value), 1)
|
110
110
|
])
|
@@ -83,7 +83,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
83
83
|
createElementVNode("div", _hoisted_1, [
|
84
84
|
createVNode(_sfc_main$2, {
|
85
85
|
"model-value": progress.value,
|
86
|
-
class: "bg-primary
|
86
|
+
class: "bg-primary dark:bg-primary-dark"
|
87
87
|
}, null, 8, ["model-value"]),
|
88
88
|
createElementVNode("div", _hoisted_2, toDisplayString(itemIndex.value) + " / " + toDisplayString(_ctx.items.length), 1)
|
89
89
|
])
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"useIsBackdrop.d.ts","sourceRoot":"","sources":["../../../../../src/components/Modal/use/useIsBackdrop.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,aAAa,2CAEzB,CAAA"}
|
@@ -52,7 +52,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
52
52
|
])
|
53
53
|
], 2),
|
54
54
|
createElementVNode("div", {
|
55
|
-
class: normalizeClass(["-square--header-height w-ripple fixed left-0 top-0 z-30 flex cursor-pointer items-center justify-center xl:hidden print:hidden", { "text-primary
|
55
|
+
class: normalizeClass(["-square--header-height w-ripple fixed left-0 top-0 z-30 flex cursor-pointer items-center justify-center xl:hidden print:hidden", { "text-primary": isOpen.value }]),
|
56
56
|
onClick: withModifiers(toggle, ["stop"])
|
57
57
|
}, [
|
58
58
|
createVNode(unref(IconMenu))
|
@@ -6,7 +6,7 @@ import { isEqualObj, numberCompactFormatter } from '../../utils/utils.js';
|
|
6
6
|
|
7
7
|
const _hoisted_1 = {
|
8
8
|
key: 0,
|
9
|
-
class: "bg-primary
|
9
|
+
class: "bg-primary dark:bg-primary-dark absolute left-0 top-0 h-full w-1"
|
10
10
|
};
|
11
11
|
const _hoisted_2 = {
|
12
12
|
key: 0,
|
@@ -56,7 +56,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
56
56
|
return openBlock(), createBlock(unref(RouterLink), {
|
57
57
|
to: _ctx.to,
|
58
58
|
class: normalizeClass(["w-ripple w-ripple-hover relative block no-underline", {
|
59
|
-
"text-primary
|
59
|
+
"text-primary dark:text-primary-dark": isTextColor.value,
|
60
60
|
"text-accent": !isTextColor.value,
|
61
61
|
"pl-2": _ctx.indent
|
62
62
|
}])
|
@@ -10,7 +10,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
10
10
|
return (_ctx, _cache) => {
|
11
11
|
return openBlock(), createElementBlock("div", _hoisted_1, [
|
12
12
|
createElementVNode("div", {
|
13
|
-
class: "bg-primary
|
13
|
+
class: "bg-primary dark:bg-primary-dark h-full transition-[width]",
|
14
14
|
style: normalizeStyle({
|
15
15
|
width: _ctx.modelValue + "%"
|
16
16
|
})
|
@@ -4,7 +4,7 @@ import IconCheck from '../../../assets/icons/default/IconCheck.svg.js';
|
|
4
4
|
|
5
5
|
const _hoisted_1 = {
|
6
6
|
key: 0,
|
7
|
-
class: "text-primary
|
7
|
+
class: "text-primary dark:text-primary-dark w-spinner-size-[1.25em] col-start-3 flex items-center justify-self-end"
|
8
8
|
};
|
9
9
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
10
10
|
__name: "SelectOption",
|
@@ -0,0 +1,5 @@
|
|
1
|
+
declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {
|
2
|
+
element: HTMLDivElement;
|
3
|
+
}, HTMLDivElement>;
|
4
|
+
export default _default;
|
5
|
+
//# sourceMappingURL=WShine.vue.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"WShine.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Shine/WShine.vue"],"names":[],"mappings":"AAeA;;;;AAmFA,wBAOG"}
|
@@ -0,0 +1,28 @@
|
|
1
|
+
import { defineComponent, useTemplateRef, createElementBlock, openBlock, createElementVNode, normalizeStyle, unref } from 'vue';
|
2
|
+
import { useShine } from './use/useShine.js';
|
3
|
+
|
4
|
+
const _hoisted_1 = {
|
5
|
+
ref: "element",
|
6
|
+
class: "rounded-inherit pointer-events-none absolute inset-0 overflow-hidden"
|
7
|
+
};
|
8
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
9
|
+
__name: "WShine",
|
10
|
+
setup(__props) {
|
11
|
+
const { id } = useShine();
|
12
|
+
const elementRef = useTemplateRef("element");
|
13
|
+
return (_ctx, _cache) => {
|
14
|
+
return openBlock(), createElementBlock("div", _hoisted_1, [
|
15
|
+
createElementVNode("div", {
|
16
|
+
class: "bg-default/80 dark:bg-default/50 pointer-events-none absolute h-full w-screen bg-clip-border",
|
17
|
+
style: normalizeStyle({
|
18
|
+
"mask": `url(#${unref(id)})`,
|
19
|
+
"-webkit-mask": `url(#${unref(id)})`,
|
20
|
+
"left": `-${unref(elementRef)?.getBoundingClientRect().left ?? 0}px`
|
21
|
+
})
|
22
|
+
}, null, 4)
|
23
|
+
], 512);
|
24
|
+
};
|
25
|
+
}
|
26
|
+
});
|
27
|
+
|
28
|
+
export { _sfc_main as default };
|
@@ -0,0 +1,3 @@
|
|
1
|
+
declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, SVGSVGElement>;
|
2
|
+
export default _default;
|
3
|
+
//# sourceMappingURL=WShineEffect.vue.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"WShineEffect.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Shine/WShineEffect.vue"],"names":[],"mappings":"AAkEA;;AA0KA,wBAMG"}
|
@@ -0,0 +1,42 @@
|
|
1
|
+
import { defineComponent, createElementBlock, openBlock, createElementVNode, createStaticVNode, unref } from 'vue';
|
2
|
+
import { useShine } from './use/useShine.js';
|
3
|
+
|
4
|
+
const _hoisted_1 = {
|
5
|
+
width: "100%",
|
6
|
+
height: "100%",
|
7
|
+
class: "pointer-events-none absolute top-0 -translate-x-full"
|
8
|
+
};
|
9
|
+
const _hoisted_2 = ["id"];
|
10
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
11
|
+
__name: "WShineEffect",
|
12
|
+
setup(__props) {
|
13
|
+
const { id } = useShine();
|
14
|
+
return (_ctx, _cache) => {
|
15
|
+
return openBlock(), createElementBlock("svg", _hoisted_1, [
|
16
|
+
createElementVNode("defs", null, [
|
17
|
+
_cache[1] || (_cache[1] = createStaticVNode('<linearGradient id="w-shine-gradient" x1="0%" y1="0%" x2="100%" y2="0%" gradientTransform="rotate(10)"><stop offset="0%" stop-color="rgba(255, 255, 255, 0)"></stop><stop offset="45%" stop-color="rgba(255, 255, 255, 0)"></stop><stop offset="49%" stop-color="rgba(255, 255, 255, 0.4)"></stop><stop offset="50%" stop-color="rgba(255, 255, 255, 1)"></stop><stop offset="51%" stop-color="rgba(255, 255, 255, 0.4)"></stop><stop offset="55%" stop-color="rgba(255, 255, 255, 0)"></stop><stop offset="100%" stop-color="rgba(255, 255, 255, 0)"></stop></linearGradient>', 1)),
|
18
|
+
createElementVNode("mask", {
|
19
|
+
id: unref(id),
|
20
|
+
maskUnits: "userSpaceOnUse"
|
21
|
+
}, _cache[0] || (_cache[0] = [
|
22
|
+
createElementVNode("rect", {
|
23
|
+
width: "100%",
|
24
|
+
height: "100%",
|
25
|
+
fill: "url(#w-shine-gradient)"
|
26
|
+
}, [
|
27
|
+
createElementVNode("animate", {
|
28
|
+
attributeName: "x",
|
29
|
+
values: "-100%;-100%;100%;100%",
|
30
|
+
keyTimes: "0;0.35;0.65;1",
|
31
|
+
dur: "10s",
|
32
|
+
repeatCount: "indefinite"
|
33
|
+
})
|
34
|
+
], -1)
|
35
|
+
]), 8, _hoisted_2)
|
36
|
+
])
|
37
|
+
]);
|
38
|
+
};
|
39
|
+
}
|
40
|
+
});
|
41
|
+
|
42
|
+
export { _sfc_main as default };
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"useShine.d.ts","sourceRoot":"","sources":["../../../../../src/components/Shine/use/useShine.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,QAAQ;;CAIpB,CAAA"}
|