eco-vue-js 0.10.18 → 0.10.20
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/DatePicker/components/CalendarDay.vue.js +1 -1
- package/dist/components/DatePicker/components/CalendarToggle.vue.js +3 -3
- package/dist/components/DatePicker/components/CalendarValue.vue.js +2 -2
- package/dist/components/InfiniteList/components/InfiniteListPage.vue.js +1 -1
- package/dist/components/InfiniteList/components/InfiniteListPageTitle.vue.js +1 -1
- package/dist/components/Link/WLink.vue.d.ts +2 -0
- package/dist/components/Link/WLink.vue.d.ts.map +1 -1
- package/dist/components/Link/WLink.vue.js +4 -3
- package/dist/components/Link/WLinkArrow.vue.js +2 -2
- package/dist/components/List/WListCard.vue.d.ts.map +1 -1
- package/dist/components/List/WListCard.vue.js +6 -5
- package/dist/components/List/components/HeaderSortItem.vue.js +2 -2
- package/dist/components/Notify/components/NotifyCard.vue.js +2 -2
- package/dist/components/Page/WPage.vue.d.ts +1 -0
- package/dist/components/Page/WPage.vue.d.ts.map +1 -1
- package/dist/components/Page/WPage.vue.js +34 -23
- package/dist/components/Select/WSelect.vue.d.ts.map +1 -1
- package/dist/components/Select/WSelect.vue.js +5 -4
- package/dist/components/Select/WSelectAsync.vue.d.ts.map +1 -1
- package/dist/components/Select/WSelectAsync.vue.js +1 -1
- package/package.json +1 -1
- package/tailwind-base/theme/sizes.ts +2 -0
@@ -1,7 +1,7 @@
|
|
1
1
|
import { defineComponent, computed, createElementBlock, openBlock, normalizeClass, withDirectives, createElementVNode, vShow, toDisplayString } from 'vue';
|
2
2
|
import { isSameDate } from '../../../utils/dateTime.js';
|
3
3
|
|
4
|
-
const _hoisted_1 = { class: "
|
4
|
+
const _hoisted_1 = { class: "font-normal" };
|
5
5
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
6
6
|
__name: "CalendarDay",
|
7
7
|
props: {
|
@@ -13,7 +13,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
13
13
|
return (_ctx, _cache) => {
|
14
14
|
return openBlock(), createElementBlock("div", _hoisted_1, [
|
15
15
|
createElementVNode("div", {
|
16
|
-
class: "square-8 w-ripple hover:bg-primary-default hover:dark:bg-primary-dark hover:text-default text-description relative mr-auto flex cursor-pointer select-none items-center justify-center rounded-xl",
|
16
|
+
class: "square-8 w-ripple hover:bg-primary-default hover:dark:bg-primary-dark hover:text-default dark:hover:text-default text-description relative mr-auto flex cursor-pointer select-none items-center justify-center rounded-xl",
|
17
17
|
onClick: _cache[0] || (_cache[0] = ($event) => _ctx.$emit("click:previous"))
|
18
18
|
}, [
|
19
19
|
createVNode(unref(IconArrow), { class: "-ml-1 rotate-90" })
|
@@ -28,14 +28,14 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
28
28
|
default: withCtx(() => [
|
29
29
|
(openBlock(), createElementBlock("div", {
|
30
30
|
key: _ctx.text,
|
31
|
-
class: "text-accent w-14 select-none text-center
|
31
|
+
class: "text-accent w-14 select-none text-center font-medium"
|
32
32
|
}, toDisplayString(_ctx.text), 1))
|
33
33
|
]),
|
34
34
|
_: 1
|
35
35
|
})
|
36
36
|
]),
|
37
37
|
createElementVNode("div", {
|
38
|
-
class: "square-8 w-ripple hover:bg-primary-default hover:dark:bg-primary-dark hover:text-default text-description relative ml-auto flex cursor-pointer select-none items-center justify-center rounded-xl",
|
38
|
+
class: "square-8 w-ripple hover:bg-primary-default hover:dark:bg-primary-dark hover:text-default dark:hover:text-default text-description relative ml-auto flex cursor-pointer select-none items-center justify-center rounded-xl",
|
39
39
|
onClick: _cache[1] || (_cache[1] = ($event) => _ctx.$emit("click:next"))
|
40
40
|
}, [
|
41
41
|
createVNode(unref(IconArrow), { class: "-mr-1 -rotate-90" })
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import { defineComponent, computed, onBeforeMount, createElementBlock, openBlock, normalizeClass, createElementVNode, toDisplayString, unref } from 'vue';
|
2
2
|
import { isSameMonth, dateFormat, getStartOfMonth } from '../../../utils/dateTime.js';
|
3
3
|
|
4
|
-
const _hoisted_1 = { class: "mb-0.5
|
4
|
+
const _hoisted_1 = { class: "mb-0.5 font-normal tracking-wide" };
|
5
5
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
6
6
|
__name: "CalendarValue",
|
7
7
|
props: {
|
@@ -33,7 +33,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
33
33
|
}, [
|
34
34
|
createElementVNode("div", _hoisted_1, toDisplayString(_ctx.title), 1),
|
35
35
|
createElementVNode("div", {
|
36
|
-
class: normalizeClass(["
|
36
|
+
class: normalizeClass(["font-semibold tracking-wide", {
|
37
37
|
"opacity-50": !_ctx.value
|
38
38
|
}])
|
39
39
|
}, toDisplayString(_ctx.value ? unref(dateFormat)(_ctx.value) : "NONE"), 3)
|
@@ -8,7 +8,7 @@ const _hoisted_1 = {
|
|
8
8
|
class: "relative"
|
9
9
|
};
|
10
10
|
const _hoisted_2 = { class: "mt-[--w-list-gap,0] flex" };
|
11
|
-
const _hoisted_3 = { class: "text-accent sm:left-inner sm:max-w-inner flex justify-center px-8 py-16 text-center
|
11
|
+
const _hoisted_3 = { class: "text-accent sm:left-inner sm:max-w-inner flex justify-center px-8 py-16 text-center font-normal sm:sticky" };
|
12
12
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
13
13
|
__name: "InfiniteListPage",
|
14
14
|
props: {
|
@@ -18,7 +18,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
18
18
|
return (_ctx, _cache) => {
|
19
19
|
const _component_RouterLink = resolveComponent("RouterLink");
|
20
20
|
return openBlock(), createBlock(_component_RouterLink, {
|
21
|
-
class: "text-description sm-not:first:-mx--inner-margin block
|
21
|
+
class: "text-description sm-not:first:-mx--inner-margin block font-normal no-underline hover:underline",
|
22
22
|
to: { query: _ctx.queryParams, hash: _ctx.$route.hash },
|
23
23
|
replace: "",
|
24
24
|
onClick: copyRoute
|
@@ -5,6 +5,7 @@ interface Props extends Partial<LinkProps> {
|
|
5
5
|
target?: '_self' | '_blank' | '_parent' | '_top';
|
6
6
|
text?: string;
|
7
7
|
semanticType?: SemanticType;
|
8
|
+
icon?: SVGComponent;
|
8
9
|
}
|
9
10
|
declare function __VLS_template(): {
|
10
11
|
attrs: Partial<{}>;
|
@@ -18,6 +19,7 @@ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
18
19
|
declare const __VLS_component: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<Props> & Readonly<{}>, {
|
19
20
|
text: string;
|
20
21
|
to: import('vue-router').RouterLinkProps["to"];
|
22
|
+
icon: SVGComponent;
|
21
23
|
semanticType: SemanticType;
|
22
24
|
target: "_self" | "_blank" | "_parent" | "_top";
|
23
25
|
href: string;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"WLink.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Link/WLink.vue"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"WLink.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Link/WLink.vue"],"names":[],"mappings":"AAcA;AA+CA,OAAO,KAAK,EAAC,SAAS,EAAC,MAAM,eAAe,CAAA;AAO5C,OAAO,EAAC,YAAY,EAAC,MAAM,sBAAsB,CAAA;AAEjD,UAAU,KAAM,SAAQ,OAAO,CAAC,SAAS,CAAC;IACxC,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,MAAM,CAAC,EAAE,OAAO,GAAG,QAAQ,GAAG,SAAS,GAAG,MAAM,CAAA;IAChD,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,YAAY,CAAC,EAAE,YAAY,CAAA;IAC3B,IAAI,CAAC,EAAE,YAAY,CAAA;CACpB;AAyBD,iBAAS,cAAc;WAgDT,OAAO,IAA6B;;yBAVpB,GAAG;;;;EAehC;AAaD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;UA/FZ,MAAM;;UAEN,YAAY;kBADJ,YAAY;YAFlB,OAAO,GAAG,QAAQ,GAAG,SAAS,GAAG,MAAM;UADzC,MAAM;6EAyGb,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAapG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { defineComponent, createBlock, openBlock, resolveDynamicComponent, unref, mergeProps, withCtx,
|
1
|
+
import { defineComponent, createBlock, openBlock, resolveDynamicComponent, unref, mergeProps, withCtx, renderSlot, normalizeClass, createTextVNode, toDisplayString } from 'vue';
|
2
2
|
import { RouterLink } from 'vue-router';
|
3
3
|
import IconLink from '../../assets/icons/sax/IconLink.svg.js';
|
4
4
|
import { semanticTypeTextStylesMap, semanticTypeChipsStylesMap } from '../Button/models/semanticTypeStylesMap.js';
|
@@ -11,6 +11,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
11
11
|
target: { default: void 0 },
|
12
12
|
text: { default: void 0 },
|
13
13
|
semanticType: { default: SemanticType.PRIMARY },
|
14
|
+
icon: { default: void 0 },
|
14
15
|
to: { default: void 0 }
|
15
16
|
},
|
16
17
|
setup(__props) {
|
@@ -19,9 +20,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
19
20
|
class: ["cursor-pointer overflow-hidden truncate whitespace-normal font-normal no-underline hover:underline", unref(semanticTypeTextStylesMap)[_ctx.semanticType]]
|
20
21
|
}), {
|
21
22
|
default: withCtx(() => [
|
22
|
-
|
23
|
+
(openBlock(), createBlock(resolveDynamicComponent(_ctx.icon ?? unref(IconLink)), {
|
23
24
|
class: normalizeClass(["square-[1.25em] mr-[0.25em] mt-[-0.25em] inline rounded-[0.5em] p-px", unref(semanticTypeChipsStylesMap)[_ctx.semanticType]])
|
24
|
-
}, null, 8, ["class"]),
|
25
|
+
}, null, 8, ["class"])),
|
25
26
|
renderSlot(_ctx.$slots, "default", {}, () => [
|
26
27
|
createTextVNode(toDisplayString(_ctx.text), 1)
|
27
28
|
])
|
@@ -12,13 +12,13 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
12
12
|
return (_ctx, _cache) => {
|
13
13
|
return openBlock(), createBlock(unref(RouterLink), {
|
14
14
|
to: _ctx.to,
|
15
|
-
class: "text-description hover:text-primary-default dark:hover:text-primary-dark flex cursor-pointer select-none items-center gap-2 self-end py-2
|
15
|
+
class: "text-description hover:text-primary-default dark:hover:text-primary-dark flex cursor-pointer select-none items-center gap-2 self-end py-2 font-normal no-underline"
|
16
16
|
}, {
|
17
17
|
default: withCtx(() => [
|
18
18
|
renderSlot(_ctx.$slots, "default", {}, () => [
|
19
19
|
createTextVNode(toDisplayString(_ctx.text), 1)
|
20
20
|
]),
|
21
|
-
createVNode(unref(IconBack), { class: "rotate-180" })
|
21
|
+
createVNode(unref(IconBack), { class: "square-[1.25em] rotate-180" })
|
22
22
|
]),
|
23
23
|
_: 3
|
24
24
|
}, 8, ["to"]);
|
@@ -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":"AAuLA;AA+OA,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,QAAQ,EAAE,OAAO,CAAA;IAEjB,QAAQ,EAAE,OAAO,CAAA;IACjB,WAAW,EAAE,OAAO,CAAA;IACpB,gBAAgB,EAAE,OAAO,CAAA;CAC1B,CAAC;AAuBF,iBAAS,cAAc;WA6UT,OAAO,IAA6B;;;;;;YAdpB,GAAG;sBACN,GAAG;sBACH,GAAG;2BACE,GAAG;;;;;;EAgBlC;AAwBD,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"}
|
@@ -90,7 +90,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
90
90
|
"border-primary-default dark:border-primary-dark": _ctx.hasBorder && _ctx.selected,
|
91
91
|
"rounded-bl-[unset!important]": isOpen.value,
|
92
92
|
"border-b-transparent dark:border-b-transparent": _ctx.hasBorder && isOpen.value,
|
93
|
-
"w-ripple-has-only w-ripple-hover w-ripple-opacity-[0.04]": isActionShown.value
|
93
|
+
"w-ripple-has-only w-ripple-hover w-ripple-opacity-[0.04]": isActionShown.value,
|
94
|
+
"pl-px": !_ctx.hasBorder
|
94
95
|
}])
|
95
96
|
}, [
|
96
97
|
_ctx.allowSelect ? (openBlock(), createBlock(_sfc_main$1, {
|
@@ -100,7 +101,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
100
101
|
"align-top": _ctx.alignTop,
|
101
102
|
class: normalizeClass(["h-full px-[--w-list-padding,1rem]", {
|
102
103
|
"opacity-50": _ctx.allowSelectHover,
|
103
|
-
"pt-
|
104
|
+
"pt-4.5": _ctx.alignTop
|
104
105
|
}]),
|
105
106
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => _ctx.$emit("toggle:selected"))
|
106
107
|
}, null, 8, ["model-value", "disabled", "align-top", "class"])) : createCommentVNode("", true),
|
@@ -124,7 +125,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
124
125
|
key: 0,
|
125
126
|
"model-value": _ctx.selected,
|
126
127
|
disabled: _ctx.disabled,
|
127
|
-
class: normalizeClass(["justify-end self-start", {
|
128
|
+
class: normalizeClass(["-p--inner-margin -my---inner-margin -mr---inner-margin justify-end self-start", {
|
128
129
|
"opacity-50": _ctx.allowSelectHover
|
129
130
|
}]),
|
130
131
|
style: normalizeStyle({ gridArea: unref(AREA_SELECT) }),
|
@@ -138,7 +139,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
138
139
|
_ctx.selected ? (openBlock(), createElementBlock("div", _hoisted_3)) : createCommentVNode("", true),
|
139
140
|
_ctx.card && _ctx.$slots.more ? (openBlock(), createBlock(_sfc_main$4, {
|
140
141
|
key: 3,
|
141
|
-
class: "-mr-
|
142
|
+
class: "-p--inner-margin -my---inner-margin -mr---inner-margin flex items-center",
|
142
143
|
disabled: _ctx.disabled || _ctx.disableMore,
|
143
144
|
style: normalizeStyle({ gridArea: unref(AREA_MORE) })
|
144
145
|
}, {
|
@@ -177,7 +178,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
177
178
|
_ctx.$slots.more ? (openBlock(), createBlock(_sfc_main$4, {
|
178
179
|
key: 0,
|
179
180
|
class: normalizeClass(["flex h-full px-[--w-list-padding,1rem]", {
|
180
|
-
"items-start
|
181
|
+
"pt-4.5 items-start": _ctx.alignTop,
|
181
182
|
"items-center": !_ctx.alignTop
|
182
183
|
}]),
|
183
184
|
disabled: _ctx.disabled || _ctx.disableMore
|
@@ -3,11 +3,11 @@ import _sfc_main$1 from '../../MenuItem/WMenuItem.vue.js';
|
|
3
3
|
import IconBack from '../../../assets/icons/default/IconBack.svg.js';
|
4
4
|
import { useOrdering } from '../use/useOrdering.js';
|
5
5
|
|
6
|
-
const _hoisted_1 = { class: "flex-1 truncate
|
6
|
+
const _hoisted_1 = { class: "flex-1 truncate font-normal" };
|
7
7
|
const _hoisted_2 = { class: "ml-auto flex w-8 items-center justify-between" };
|
8
8
|
const _hoisted_3 = {
|
9
9
|
key: 0,
|
10
|
-
class: "
|
10
|
+
class: "font-semibold"
|
11
11
|
};
|
12
12
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
13
13
|
__name: "HeaderSortItem",
|
@@ -13,10 +13,10 @@ import { NotifyType } from '../models/NotifyType.js';
|
|
13
13
|
const _hoisted_1 = { class: "bg-black-default relative my-2 ml-auto mr-4 flex min-h-[4.5rem] max-w-[calc(100vw-2rem)] select-none rounded-xl shadow-md sm:max-w-lg dark:bg-gray-800" };
|
14
14
|
const _hoisted_2 = { class: "m-7" };
|
15
15
|
const _hoisted_3 = { class: "grid flex-1 items-center py-4" };
|
16
|
-
const _hoisted_4 = { class: "text-default
|
16
|
+
const _hoisted_4 = { class: "text-default font-semibold" };
|
17
17
|
const _hoisted_5 = {
|
18
18
|
key: 0,
|
19
|
-
class: "text-default whitespace-pre-wrap break-words
|
19
|
+
class: "text-default whitespace-pre-wrap break-words font-normal"
|
20
20
|
};
|
21
21
|
const _hoisted_6 = { class: "break-all" };
|
22
22
|
const _hoisted_7 = { class: "square-8 w-ripple relative flex items-center justify-center rounded-full" };
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"WPage.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Page/WPage.vue"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"WPage.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Page/WPage.vue"],"names":[],"mappings":"AA6FA;AA6RA,OAAO,EAAC,KAAK,SAAS,EAAmE,MAAM,KAAK,CAAA;AAUpG,KAAK,WAAW,GAAG;IACjB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,KAAK,CAAC,EAAE,OAAO,CAAA;IACf,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,aAAa,CAAC,EAAE,SAAS,CAAA;IACzB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,IAAI,CAAC,EAAE,IAAI,CAAA;IACX,WAAW,CAAC,EAAE,WAAW,EAAE,CAAA;IAC3B,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,SAAS,EAAE,MAAM,GAAG,SAAS,CAAA;CAC9B,CAAC;AA4KF,iBAAS,cAAc;WAkJT,OAAO,IAA6B;;wBAhBtB,GAAG;wBAGF,GAAG;;kCA3RL,IAAI;;YAyRF,GAAG;sBACN,GAAG;sBAEF,GAAG;;;;;;;EAiB7B;AAaD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;OAOnB,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"}
|
@@ -12,19 +12,20 @@ const _hoisted_2 = {
|
|
12
12
|
ref: "container",
|
13
13
|
class: "row-start-2 overflow-hidden"
|
14
14
|
};
|
15
|
-
const _hoisted_3 = {
|
16
|
-
key: 2,
|
17
|
-
class: "absolute inset-x-[1cm] bottom-[1cm] text-center text-xs"
|
18
|
-
};
|
15
|
+
const _hoisted_3 = { class: "absolute inset-x-[1cm] bottom-[1cm] grid grid-cols-[1fr,auto,1fr] gap-4" };
|
19
16
|
const _hoisted_4 = {
|
20
|
-
key:
|
21
|
-
class: "
|
17
|
+
key: 1,
|
18
|
+
class: "col-start-2 text-center text-xs"
|
22
19
|
};
|
23
20
|
const _hoisted_5 = {
|
24
|
-
key:
|
25
|
-
class: "
|
21
|
+
key: 1,
|
22
|
+
class: "absolute inset-x-[1cm] top-[1cm] text-xs font-semibold before:text-gray-400 before:[content:counters(section,'.',decimal-leading-zero)]"
|
26
23
|
};
|
27
|
-
const _hoisted_6 = {
|
24
|
+
const _hoisted_6 = {
|
25
|
+
key: 2,
|
26
|
+
class: "pointer-events-none absolute inset-0 z-10 flex select-none items-center justify-center overflow-hidden"
|
27
|
+
};
|
28
|
+
const _hoisted_7 = { class: "rotate-[-60deg] text-center text-[10rem] font-semibold leading-none text-gray-400/10" };
|
28
29
|
const INNER_CLASS = "w-page-inner";
|
29
30
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
30
31
|
__name: "WPage",
|
@@ -165,20 +166,23 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
165
166
|
renderSlot(_ctx.$slots, "header"),
|
166
167
|
renderSlot(_ctx.$slots, "default", normalizeProps(guardReactiveProps({ updateOverflow, INNER_CLASS })))
|
167
168
|
], 512),
|
168
|
-
|
169
|
-
|
170
|
-
|
171
|
-
"
|
172
|
-
|
173
|
-
|
174
|
-
|
175
|
-
|
176
|
-
|
177
|
-
|
178
|
-
|
179
|
-
|
180
|
-
|
181
|
-
|
169
|
+
createElementVNode("div", _hoisted_3, [
|
170
|
+
_ctx.logoComponent || _ctx.$slots.logo ? (openBlock(), createElementBlock("div", {
|
171
|
+
key: 0,
|
172
|
+
class: normalizeClass(["grid grid-cols-[auto,auto] items-center gap-3", {
|
173
|
+
"col-start-2": _ctx.centerLogo,
|
174
|
+
"col-start-1": !_ctx.centerLogo
|
175
|
+
}])
|
176
|
+
}, [
|
177
|
+
renderSlot(_ctx.$slots, "logo", {}, () => [
|
178
|
+
(openBlock(), createBlock(resolveDynamicComponent(_ctx.logoComponent)))
|
179
|
+
])
|
180
|
+
], 2)) : createCommentVNode("", true),
|
181
|
+
!_ctx.centerLogo && _ctx.date ? (openBlock(), createElementBlock("div", _hoisted_4, toDisplayString(unref(dateFormat)(_ctx.date)), 1)) : createCommentVNode("", true)
|
182
|
+
]),
|
183
|
+
_ctx.title && _ctx.topTitle ? (openBlock(), createElementBlock("span", _hoisted_5, " " + toDisplayString(_ctx.title), 1)) : createCommentVNode("", true),
|
184
|
+
_ctx.watermark ? (openBlock(), createElementBlock("div", _hoisted_6, [
|
185
|
+
createElementVNode("div", _hoisted_7, toDisplayString(_ctx.watermark), 1)
|
182
186
|
])) : createCommentVNode("", true)
|
183
187
|
], 2),
|
184
188
|
overflow.value.length !== 0 ? (openBlock(), createBlock(_component_WPage, {
|
@@ -198,6 +202,13 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
198
202
|
renderSlot(_ctx.$slots, "header")
|
199
203
|
]),
|
200
204
|
key: "0"
|
205
|
+
} : void 0,
|
206
|
+
_ctx.$slots.logo ? {
|
207
|
+
name: "logo",
|
208
|
+
fn: withCtx(() => [
|
209
|
+
renderSlot(_ctx.$slots, "logo")
|
210
|
+
]),
|
211
|
+
key: "1"
|
201
212
|
} : void 0
|
202
213
|
]), 1032, ["prerendered", "title", "center-logo", "logo-component", "date", "empty", "watermark"])) : createCommentVNode("", true)
|
203
214
|
], 64);
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"WSelect.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Select/WSelect.vue"],"names":[],"mappings":"AAkKA;
|
1
|
+
{"version":3,"file":"WSelect.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Select/WSelect.vue"],"names":[],"mappings":"AAkKA;A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B,UAAU,QAAQ,KAAK,GAAG,IAAI;YAC9B,OAAO,SAAS,UAAU,GAAG,IAAI;YACjC,MAAM,SAAS,UAAU,GAAG,IAAI;YAChC,4BAA4B,SAAS,MAAM,GAAG,SAAS,GAAG,IAAI;YAC9D,YAAY,GAAG,IAAI;;;;;YAgpBmB,OAAO,CAAC,OAAO,WAAW,CAAC;;AAhqBvE,wBAgqB4E;AAC5E,KAAK,mBAAmB,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG,EAAE,CAAC"}
|
@@ -123,15 +123,15 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
123
123
|
const loadingOptionIndex = ref(null);
|
124
124
|
const loadingCreate = ref(false);
|
125
125
|
const isDisabled = computed(() => props.loading || props.readonly || props.disabled);
|
126
|
-
const hasCreateOption = computed(() => props.createOption && !optionsFiltered.value.some((option) => props.valueGetter(option) === search.value));
|
126
|
+
const hasCreateOption = computed(() => props.createOption && (!optionsFiltered.value.some((option) => props.valueGetter(option) === search.value) || isModelValueSearch.value));
|
127
127
|
const close = () => {
|
128
|
-
|
129
|
-
focused.value = false;
|
130
|
-
if (props.selectOnClose && search.value && !isModelValueSearch.value) {
|
128
|
+
if (props.selectOnClose && focused.value && !isModelValueSearch.value) {
|
131
129
|
const optionExact = optionsFiltered.value.find((option) => props.valueGetter(option) === search.value);
|
132
130
|
if (optionExact) select(props.valueGetter(optionExact));
|
133
131
|
else create(search.value);
|
134
132
|
}
|
133
|
+
isOpen.value = false;
|
134
|
+
focused.value = false;
|
135
135
|
search.value = "";
|
136
136
|
};
|
137
137
|
const setLoadingOptionIndex = (value) => {
|
@@ -214,6 +214,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
214
214
|
inputRef.value?.focus();
|
215
215
|
};
|
216
216
|
const blur = () => {
|
217
|
+
focused.value = false;
|
217
218
|
inputRef.value?.blur();
|
218
219
|
};
|
219
220
|
const setSearch = (value) => {
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"WSelectAsync.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Select/WSelectAsync.vue"],"names":[],"mappings":"AAyHA;AAsSA,OAAO,KAAK,EAAC,gBAAgB,EAAE,qBAAqB,EAA6B,MAAM,SAAS,CAAA;yBAW/E,KAAK,SAAS,MAAM,GAAG,MAAM,EAAE,IAAI,SAAS,WAAW,EAAE,WAAW,EAAE,eAAe,SAAS,qBAAqB,CAAC,IAAI,CAAC,eAC5H,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":"WSelectAsync.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Select/WSelectAsync.vue"],"names":[],"mappings":"AAyHA;AAsSA,OAAO,KAAK,EAAC,gBAAgB,EAAE,qBAAqB,EAA6B,MAAM,SAAS,CAAA;yBAW/E,KAAK,SAAS,MAAM,GAAG,MAAM,EAAE,IAAI,SAAS,WAAW,EAAE,WAAW,EAAE,eAAe,SAAS,qBAAqB,CAAC,IAAI,CAAC,eAC5H,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;WA0f1D,mBAAmB,CAAC;;;;;;;2RAAkE,CAAC,4B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C"}
|
@@ -241,7 +241,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
241
241
|
loading: _ctx.loading || isFetchingPrefix.value,
|
242
242
|
disabled: isDisabled.value,
|
243
243
|
"empty-stub": !search.value && _ctx.emptyStub ? _ctx.emptyStub : void 0,
|
244
|
-
"allow-create": _ctx.createOption && !hasSearchOption.value,
|
244
|
+
"allow-create": _ctx.createOption && (!hasSearchOption.value || isModelValueSearch.value),
|
245
245
|
"hide-option-icon": _ctx.hideOptionIcon,
|
246
246
|
"value-getter": _ctx.valueGetter,
|
247
247
|
"loading-create": loadingCreate.value,
|
package/package.json
CHANGED
@@ -19,12 +19,14 @@ const newValues = {
|
|
19
19
|
|
20
20
|
const extend = {
|
21
21
|
1.25: '0.3125rem',
|
22
|
+
4.5: '1.125rem',
|
22
23
|
6: '1.5rem',
|
23
24
|
8.5: '2.125rem',
|
24
25
|
10: '2.5rem',
|
25
26
|
11: '2.75rem',
|
26
27
|
15: '3.75rem',
|
27
28
|
18: '4.5rem',
|
29
|
+
22: '5.5rem',
|
28
30
|
28: '7rem',
|
29
31
|
30: '7.5rem',
|
30
32
|
34: '8.5rem',
|