eco-vue-js 0.10.93 → 0.10.95
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/BottomSheet/WBottomSheet.vue.d.ts +1 -0
- package/dist/components/BottomSheet/WBottomSheet.vue.d.ts.map +1 -1
- package/dist/components/BottomSheet/WBottomSheet.vue.js +2 -2
- package/dist/components/Button/WButton.vue.d.ts +2 -0
- package/dist/components/Button/WButton.vue.d.ts.map +1 -1
- package/dist/components/Button/WButton.vue.js +10 -4
- package/dist/components/Button/WButtonGroup.vue.js +3 -0
- package/dist/components/Button/WButtonInput.vue.d.ts.map +1 -1
- package/dist/components/Button/types.d.ts +1 -0
- package/dist/components/Button/types.d.ts.map +1 -1
- package/dist/components/Checkbox/WCheckboxGroup.vue.js +2 -0
- package/dist/components/Checkbox/WCheckboxGroupMultiple.vue.js +2 -0
- package/dist/components/DropdownMenu/WDropdownMenu.vue.d.ts +2 -153
- package/dist/components/DropdownMenu/WDropdownMenu.vue.d.ts.map +1 -1
- package/dist/components/DropdownMenu/WDropdownMenu.vue.js +2 -1
- package/dist/components/FieldWrapper/WFieldWrapper.vue.d.ts +1 -0
- package/dist/components/FieldWrapper/WFieldWrapper.vue.d.ts.map +1 -1
- package/dist/components/FieldWrapper/WFieldWrapper.vue.js +20 -13
- package/dist/components/FieldWrapper/types.d.ts +2 -0
- package/dist/components/FieldWrapper/types.d.ts.map +1 -1
- package/dist/components/FieldWrapper/use/useFieldSaved.d.ts +6 -0
- package/dist/components/FieldWrapper/use/useFieldSaved.d.ts.map +1 -0
- package/dist/components/FieldWrapper/use/useFieldSaved.js +29 -0
- package/dist/components/FormAsync/WFormAsyncButtonGroup.vue.js +3 -0
- package/dist/components/FormAsync/WFormAsyncCheckboxGroup.vue.js +2 -0
- package/dist/components/FormAsync/WFormAsyncInput.vue.d.ts +6 -0
- package/dist/components/FormAsync/WFormAsyncInput.vue.d.ts.map +1 -1
- package/dist/components/FormAsync/WFormAsyncInput.vue.js +19 -2
- package/dist/components/FormAsync/WFormAsyncSelect.vue.js +3 -0
- package/dist/components/FormAsync/WFormAsyncSelectInfiniteSingle.vue.js +3 -0
- package/dist/components/FormAsync/WFormAsyncSelectSingle.vue.js +3 -0
- package/dist/components/FormAsync/WFormAsyncSelectStringified.vue.js +3 -0
- package/dist/components/FormAsync/use/useFormAsync.d.ts.map +1 -1
- package/dist/components/FormAsync/use/useFormAsync.js +3 -2
- package/dist/components/Input/WInput.vue.d.ts +7 -2
- package/dist/components/Input/WInput.vue.d.ts.map +1 -1
- package/dist/components/Input/WInput.vue.js +81 -65
- package/dist/components/Input/WInputAsync.vue.d.ts +6 -0
- package/dist/components/Input/WInputAsync.vue.d.ts.map +1 -1
- package/dist/components/Input/WInputAsync.vue.js +76 -42
- package/dist/components/Input/WInputDate.vue.js +3 -0
- package/dist/components/Input/WInputOptions.vue.js +3 -0
- package/dist/components/Input/WInputSuggest.vue.d.ts.map +1 -1
- package/dist/components/Input/WInputSuggest.vue.js +5 -1
- package/dist/components/Input/components/ContentEditable.vue.d.ts +24 -0
- package/dist/components/Input/components/ContentEditable.vue.d.ts.map +1 -0
- package/dist/components/Input/components/ContentEditable.vue.js +123 -0
- package/dist/components/Input/components/ContentEditable.vue2.js +5 -0
- package/dist/components/Input/types.d.ts +2 -1
- package/dist/components/Input/types.d.ts.map +1 -1
- package/dist/components/List/WListCard.vue.js +1 -1
- package/dist/components/Select/WSelect.vue.js +3 -0
- package/dist/components/Select/WSelectAsync.vue.js +3 -0
- package/dist/components/Select/WSelectAsyncSingle.vue.js +3 -0
- package/dist/components/Select/WSelectSingle.vue.js +3 -0
- package/dist/components/Select/WSelectStringified.vue.js +3 -0
- package/dist/components/Toggle/WToggle.vue.js +3 -3
- package/dist/utils/SemanticType.js +6 -6
- package/package.json +1 -1
- package/tailwind-base/plugins/default.ts +10 -1
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"WBottomSheet.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/BottomSheet/WBottomSheet.vue"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"WBottomSheet.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/BottomSheet/WBottomSheet.vue"],"names":[],"mappings":"AAoCA;AA8DA,KAAK,WAAW,GAAG;IACjB,MAAM,EAAE,OAAO,CAAA;CAChB,CAAC;AAYF,iBAAS,cAAc;WAoFT,OAAO,IAA6B;;;;YAZtB,GAAG;;;;YACF,GAAG;yBACF,GAAG;;;;EAehC;AAYD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;kFAOnB,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,4 +1,4 @@
|
|
1
|
-
import { defineComponent, inject, createElementBlock, openBlock, Fragment, renderSlot, createBlock, Teleport, createVNode, normalizeStyle, unref, withCtx, createElementVNode } from 'vue';
|
1
|
+
import { defineComponent, inject, createElementBlock, openBlock, Fragment, renderSlot, createBlock, Teleport, createVNode, normalizeStyle, unref, withCtx, createElementVNode, mergeProps } from 'vue';
|
2
2
|
import _sfc_main$1 from '../Dismissable/WDismissable.vue.js';
|
3
3
|
import { wBaseZIndex, BASE_ZINDEX_BOTTOM_SHEET } from '../../utils/utils.js';
|
4
4
|
|
@@ -29,7 +29,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
29
29
|
createElementVNode("div", { class: "h-1 w-12 rounded-sm bg-gray-300" })
|
30
30
|
], -1)),
|
31
31
|
createElementVNode("div", null, [
|
32
|
-
renderSlot(_ctx.$slots, "toggle", { unclickable: false })
|
32
|
+
renderSlot(_ctx.$slots, "toggle", mergeProps({ unclickable: false }, { isTop: false }))
|
33
33
|
])
|
34
34
|
]),
|
35
35
|
createElementVNode("div", _hoisted_2, [
|
@@ -14,8 +14,10 @@ declare function __VLS_template(): {
|
|
14
14
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
15
15
|
declare const __VLS_component: import('vue').DefineComponent<ButtonProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
16
16
|
click: (event: MouseEvent | KeyboardEvent) => any;
|
17
|
+
mousedown: (event: MouseEvent | KeyboardEvent) => any;
|
17
18
|
}, string, import('vue').PublicProps, Readonly<ButtonProps> & Readonly<{
|
18
19
|
onClick?: ((event: MouseEvent | KeyboardEvent) => any) | undefined;
|
20
|
+
onMousedown?: ((event: MouseEvent | KeyboardEvent) => any) | undefined;
|
19
21
|
}>, {
|
20
22
|
skeleton: boolean;
|
21
23
|
type: string;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"WButton.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Button/WButton.vue"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"WButton.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Button/WButton.vue"],"names":[],"mappings":"AA2EA;AAAA,OA+KO,KAAK,EAAC,WAAW,EAAC,MAAM,SAAS,CAAA;AASxC,OAAO,EAAC,YAAY,EAAyD,MAAM,sBAAsB,CAAA;AAsGzG,iBAAS,cAAc;WA2KT,OAAO,IAA6B;;yBAZrB,GAAG;yBACF,GAAG;;;;;;EAgBhC;AAqBD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;;;;;;;;;;;;;;OASnB,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"}
|
@@ -26,9 +26,10 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
26
26
|
download: {},
|
27
27
|
skeleton: { type: Boolean, default: void 0 },
|
28
28
|
autofocus: { type: Boolean },
|
29
|
+
outline: { type: Boolean },
|
29
30
|
to: { default: void 0 }
|
30
31
|
},
|
31
|
-
emits: ["click"],
|
32
|
+
emits: ["click", "mousedown"],
|
32
33
|
setup(__props, { emit: __emit }) {
|
33
34
|
const props = __props;
|
34
35
|
const containerRef = useTemplateRef("container");
|
@@ -40,6 +41,10 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
40
41
|
if (isDisabled.value || props.loading) return;
|
41
42
|
emit("click", event);
|
42
43
|
};
|
44
|
+
const mousedown = (event) => {
|
45
|
+
if (isDisabled.value || props.loading) return;
|
46
|
+
emit("mousedown", event);
|
47
|
+
};
|
43
48
|
const isNotEnabled = computed(() => isDisabled.value || isSkeleton.value);
|
44
49
|
const focus = () => {
|
45
50
|
if (isNotEnabled.value) return;
|
@@ -84,8 +89,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
84
89
|
...unref(isDisabled) ? {} : _ctx.tag === "a" ? { href: _ctx.href, target: _ctx.target } : _ctx.to !== void 0 ? { to: _ctx.to, replace: _ctx.replace } : {}
|
85
90
|
}, {
|
86
91
|
ref: "container",
|
87
|
-
class: ["w-ripple-rounded-[calc(var(--w-button-rounded,1rem)-1px)] -min-h--button-height relative isolate flex select-none items-center justify-center whitespace-nowrap rounded-[--w-button-rounded,1rem] px-[--w-button-rounded,1rem] font-medium outline-none", {
|
88
|
-
[unref(semanticTypeBackgroundMap)[_ctx.semanticType]]:
|
92
|
+
class: ["w-ripple-rounded-[calc(var(--w-button-rounded,1rem)-var(--w-button-border,1px))] -min-h--button-height relative isolate flex select-none items-center justify-center whitespace-nowrap rounded-[--w-button-rounded,1rem] px-[--w-button-rounded,1rem] font-medium outline-none [border-width:--w-button-border,1px]", {
|
93
|
+
[unref(semanticTypeBackgroundMap)[_ctx.semanticType]]: !_ctx.outline,
|
89
94
|
[unref(semanticTypeBorderMap)[_ctx.semanticType]]: true,
|
90
95
|
"w-ripple w-ripple-hover before:text-black-default w-ripple-opacity-20 dark:w-ripple-opacity-30 cursor-pointer": !_ctx.loading && !unref(isDisabled),
|
91
96
|
"cursor-progress": _ctx.loading,
|
@@ -96,7 +101,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
96
101
|
download: _ctx.download,
|
97
102
|
type: _ctx.type,
|
98
103
|
onClick: click,
|
99
|
-
onKeypress: withKeys(withModifiers(click, ["stop", "prevent"]), ["enter"])
|
104
|
+
onKeypress: withKeys(withModifiers(click, ["stop", "prevent"]), ["enter"]),
|
105
|
+
onMousedown: mousedown
|
100
106
|
}), {
|
101
107
|
default: withCtx(() => [
|
102
108
|
createElementVNode("div", {
|
@@ -39,9 +39,12 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
39
39
|
filterValue: {},
|
40
40
|
subgrid: { type: Boolean },
|
41
41
|
seamless: { type: Boolean },
|
42
|
+
savedText: {},
|
43
|
+
topText: { type: Boolean },
|
42
44
|
loading: { type: Boolean },
|
43
45
|
download: {},
|
44
46
|
autofocus: { type: Boolean },
|
47
|
+
outline: { type: Boolean },
|
45
48
|
to: {}
|
46
49
|
},
|
47
50
|
emits: ["update:model-value"],
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"WButtonInput.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Button/WButtonInput.vue"],"names":[],"mappings":"AAyCA;
|
1
|
+
{"version":3,"file":"WButtonInput.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Button/WButtonInput.vue"],"names":[],"mappings":"AAyCA;AAiEA,OAAO,KAAK,EAAC,SAAS,EAAC,MAAM,eAAe,CAAA;AAQ5C,KAAK,WAAW,GAAG;IACjB,IAAI,EAAE,YAAY,CAAA;IAClB,EAAE,CAAC,EAAE,SAAS,CAAC,IAAI,CAAC,CAAA;IACpB,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,QAAQ,CAAC,EAAE,OAAO,CAAA;CACnB,CAAC;;;;;;AAoIF,wBAOG"}
|
@@ -18,6 +18,7 @@ export interface ButtonProps extends Partial<LinkProps> {
|
|
18
18
|
download?: string;
|
19
19
|
skeleton?: boolean;
|
20
20
|
autofocus?: boolean;
|
21
|
+
outline?: boolean;
|
21
22
|
}
|
22
23
|
export type ButtonGroupOptionComponent<Option> = Component<SelectOptionProps<Option>>;
|
23
24
|
interface ButtonGroupPropsBase<Model extends number | string | null | boolean> extends Omit<FieldWrapperProps, 'modelValue'>, Omit<ButtonProps, 'tag' | 'type' | 'replace' | 'href' | 'target' | 'join'> {
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/components/Button/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,iBAAiB,EAAC,MAAM,iBAAiB,CAAA;AACtD,OAAO,KAAK,EAAC,iBAAiB,EAAC,MAAM,iCAAiC,CAAA;AACtE,OAAO,KAAK,EAAC,iBAAiB,EAAC,MAAM,iCAAiC,CAAA;AACtE,OAAO,KAAK,EAAC,SAAS,EAAC,MAAM,eAAe,CAAA;AAC5C,OAAO,KAAK,EAAC,YAAY,EAAC,MAAM,sBAAsB,CAAA;AACtD,OAAO,KAAK,EAAC,SAAS,EAAC,MAAM,KAAK,CAAA;AAElC,MAAM,WAAW,WAAY,SAAQ,OAAO,CAAC,SAAS,CAAC;IACrD,YAAY,CAAC,EAAE,YAAY,CAAA;IAC3B,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,GAAG,CAAC,EAAE,GAAG,GAAG,QAAQ,CAAA;I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ue: {},
|
40
40
|
subgrid: { type: Boolean },
|
41
41
|
seamless: { type: Boolean },
|
42
|
+
savedText: {},
|
43
|
+
topText: { type: Boolean },
|
42
44
|
radio: { type: Boolean },
|
43
45
|
loading: { type: Boolean },
|
44
46
|
alignTop: { type: Boolean },
|
@@ -38,6 +38,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
38
38
|
filterValue: {},
|
39
39
|
subgrid: { type: Boolean },
|
40
40
|
seamless: { type: Boolean },
|
41
|
+
savedText: {},
|
42
|
+
topText: { type: Boolean },
|
41
43
|
radio: { type: Boolean },
|
42
44
|
loading: { type: Boolean },
|
43
45
|
alignTop: { type: Boolean },
|
@@ -1,87 +1,5 @@
|
|
1
1
|
import { DropdownMenuProps } from './types';
|
2
|
-
|
3
|
-
import { VNode } from 'vue';
|
4
|
-
declare function __VLS_template(): {
|
5
|
-
attrs: Partial<{}>;
|
6
|
-
slots: Readonly<{
|
7
|
-
toggle?: () => VNode[];
|
8
|
-
content?: (props: DropdownDefaultSlotScope) => VNode[];
|
9
|
-
}> & {
|
10
|
-
toggle?: () => VNode[];
|
11
|
-
content?: (props: DropdownDefaultSlotScope) => VNode[];
|
12
|
-
};
|
13
|
-
refs: {
|
14
|
-
container: unknown;
|
15
|
-
dropdown: ({
|
16
|
-
$: import('vue').ComponentInternalInstance;
|
17
|
-
$data: {};
|
18
|
-
$props: {
|
19
|
-
readonly maxHeight: number;
|
20
|
-
readonly maxWidth: number;
|
21
|
-
readonly horizontalAlign: import('../../main').HorizontalAlign;
|
22
|
-
readonly top?: boolean | undefined;
|
23
|
-
readonly bottom?: boolean | undefined;
|
24
|
-
readonly parentElement: Pick<Element, "getBoundingClientRect">;
|
25
|
-
readonly updateAlign?: boolean | undefined;
|
26
|
-
readonly emitUpdate?: boolean | undefined;
|
27
|
-
readonly "onUpdate:rect"?: (() => any) | undefined;
|
28
|
-
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
|
29
|
-
$attrs: {
|
30
|
-
[x: string]: unknown;
|
31
|
-
};
|
32
|
-
$refs: {
|
33
|
-
[x: string]: unknown;
|
34
|
-
} & {
|
35
|
-
dropdown: HTMLDivElement;
|
36
|
-
};
|
37
|
-
$slots: Readonly<{
|
38
|
-
[name: string]: import('vue').Slot<any> | undefined;
|
39
|
-
}>;
|
40
|
-
$root: import('vue').ComponentPublicInstance | null;
|
41
|
-
$parent: import('vue').ComponentPublicInstance | null;
|
42
|
-
$host: Element | null;
|
43
|
-
$emit: (event: "update:rect") => void;
|
44
|
-
$el: HTMLDivElement;
|
45
|
-
$options: import('vue').ComponentOptionsBase<Readonly<import('../Dropdown/types').DropdownProps> & Readonly<{
|
46
|
-
"onUpdate:rect"?: (() => any) | undefined;
|
47
|
-
}>, {
|
48
|
-
update: () => void;
|
49
|
-
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
50
|
-
"update:rect": () => any;
|
51
|
-
}, string, {}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
|
52
|
-
beforeCreate?: (() => void) | (() => void)[];
|
53
|
-
created?: (() => void) | (() => void)[];
|
54
|
-
beforeMount?: (() => void) | (() => void)[];
|
55
|
-
mounted?: (() => void) | (() => void)[];
|
56
|
-
beforeUpdate?: (() => void) | (() => void)[];
|
57
|
-
updated?: (() => void) | (() => void)[];
|
58
|
-
activated?: (() => void) | (() => void)[];
|
59
|
-
deactivated?: (() => void) | (() => void)[];
|
60
|
-
beforeDestroy?: (() => void) | (() => void)[];
|
61
|
-
beforeUnmount?: (() => void) | (() => void)[];
|
62
|
-
destroyed?: (() => void) | (() => void)[];
|
63
|
-
unmounted?: (() => void) | (() => void)[];
|
64
|
-
renderTracked?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
|
65
|
-
renderTriggered?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
|
66
|
-
errorCaptured?: ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void)[];
|
67
|
-
};
|
68
|
-
$forceUpdate: () => void;
|
69
|
-
$nextTick: typeof import('vue').nextTick;
|
70
|
-
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, import('@vue/reactivity').OnCleanup]) => any : (...args: [any, any, import('@vue/reactivity').OnCleanup]) => any, options?: import('vue').WatchOptions): import('vue').WatchStopHandle;
|
71
|
-
} & Readonly<{}> & Omit<Readonly<import('../Dropdown/types').DropdownProps> & Readonly<{
|
72
|
-
"onUpdate:rect"?: (() => any) | undefined;
|
73
|
-
}>, "update"> & import('vue').ShallowUnwrapRef<{
|
74
|
-
update: () => void;
|
75
|
-
}> & {} & import('vue').ComponentCustomProperties & {} & {
|
76
|
-
$slots: Readonly<{
|
77
|
-
default: (props: DropdownDefaultSlotScope) => VNode[];
|
78
|
-
}> & {
|
79
|
-
default: (props: DropdownDefaultSlotScope) => VNode[];
|
80
|
-
};
|
81
|
-
}) | null;
|
82
|
-
};
|
83
|
-
rootEl: any;
|
84
|
-
};
|
2
|
+
declare function __VLS_template(): any;
|
85
3
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
86
4
|
declare const __VLS_component: import('vue').DefineComponent<DropdownMenuProps, {
|
87
5
|
updateDropdown: () => void;
|
@@ -89,76 +7,7 @@ declare const __VLS_component: import('vue').DefineComponent<DropdownMenuProps,
|
|
89
7
|
"update:rect": () => any;
|
90
8
|
}, string, import('vue').PublicProps, Readonly<DropdownMenuProps> & Readonly<{
|
91
9
|
"onUpdate:rect"?: (() => any) | undefined;
|
92
|
-
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false,
|
93
|
-
container: unknown;
|
94
|
-
dropdown: ({
|
95
|
-
$: import('vue').ComponentInternalInstance;
|
96
|
-
$data: {};
|
97
|
-
$props: {
|
98
|
-
readonly maxHeight: number;
|
99
|
-
readonly maxWidth: number;
|
100
|
-
readonly horizontalAlign: import('../../main').HorizontalAlign;
|
101
|
-
readonly top?: boolean | undefined;
|
102
|
-
readonly bottom?: boolean | undefined;
|
103
|
-
readonly parentElement: Pick<Element, "getBoundingClientRect">;
|
104
|
-
readonly updateAlign?: boolean | undefined;
|
105
|
-
readonly emitUpdate?: boolean | undefined;
|
106
|
-
readonly "onUpdate:rect"?: (() => any) | undefined;
|
107
|
-
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
|
108
|
-
$attrs: {
|
109
|
-
[x: string]: unknown;
|
110
|
-
};
|
111
|
-
$refs: {
|
112
|
-
[x: string]: unknown;
|
113
|
-
} & {
|
114
|
-
dropdown: HTMLDivElement;
|
115
|
-
};
|
116
|
-
$slots: Readonly<{
|
117
|
-
[name: string]: import('vue').Slot<any> | undefined;
|
118
|
-
}>;
|
119
|
-
$root: import('vue').ComponentPublicInstance | null;
|
120
|
-
$parent: import('vue').ComponentPublicInstance | null;
|
121
|
-
$host: Element | null;
|
122
|
-
$emit: (event: "update:rect") => void;
|
123
|
-
$el: HTMLDivElement;
|
124
|
-
$options: import('vue').ComponentOptionsBase<Readonly<import('../Dropdown/types').DropdownProps> & Readonly<{
|
125
|
-
"onUpdate:rect"?: (() => any) | undefined;
|
126
|
-
}>, {
|
127
|
-
update: () => void;
|
128
|
-
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
129
|
-
"update:rect": () => any;
|
130
|
-
}, string, {}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
|
131
|
-
beforeCreate?: (() => void) | (() => void)[];
|
132
|
-
created?: (() => void) | (() => void)[];
|
133
|
-
beforeMount?: (() => void) | (() => void)[];
|
134
|
-
mounted?: (() => void) | (() => void)[];
|
135
|
-
beforeUpdate?: (() => void) | (() => void)[];
|
136
|
-
updated?: (() => void) | (() => void)[];
|
137
|
-
activated?: (() => void) | (() => void)[];
|
138
|
-
deactivated?: (() => void) | (() => void)[];
|
139
|
-
beforeDestroy?: (() => void) | (() => void)[];
|
140
|
-
beforeUnmount?: (() => void) | (() => void)[];
|
141
|
-
destroyed?: (() => void) | (() => void)[];
|
142
|
-
unmounted?: (() => void) | (() => void)[];
|
143
|
-
renderTracked?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
|
144
|
-
renderTriggered?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
|
145
|
-
errorCaptured?: ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void)[];
|
146
|
-
};
|
147
|
-
$forceUpdate: () => void;
|
148
|
-
$nextTick: typeof import('vue').nextTick;
|
149
|
-
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, import('@vue/reactivity').OnCleanup]) => any : (...args: [any, any, import('@vue/reactivity').OnCleanup]) => any, options?: import('vue').WatchOptions): import('vue').WatchStopHandle;
|
150
|
-
} & Readonly<{}> & Omit<Readonly<import('../Dropdown/types').DropdownProps> & Readonly<{
|
151
|
-
"onUpdate:rect"?: (() => any) | undefined;
|
152
|
-
}>, "update"> & import('vue').ShallowUnwrapRef<{
|
153
|
-
update: () => void;
|
154
|
-
}> & {} & import('vue').ComponentCustomProperties & {} & {
|
155
|
-
$slots: Readonly<{
|
156
|
-
default: (props: DropdownDefaultSlotScope) => VNode[];
|
157
|
-
}> & {
|
158
|
-
default: (props: DropdownDefaultSlotScope) => VNode[];
|
159
|
-
};
|
160
|
-
}) | null;
|
161
|
-
}, any>;
|
10
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, any, any>;
|
162
11
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
163
12
|
export default _default;
|
164
13
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"WDropdownMenu.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/DropdownMenu/WDropdownMenu.vue"],"names":[],"mappings":"AAiCA;
|
1
|
+
{"version":3,"file":"WDropdownMenu.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/DropdownMenu/WDropdownMenu.vue"],"names":[],"mappings":"AAiCA;AAAA,OAwEO,KAAK,EAAC,iBAAiB,EAAC,MAAM,SAAS,CAAA;AA4C9C,iBAAS,cAAc,QAkGtB;AAeD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;;;mFASnB,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"}
|
@@ -21,6 +21,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
21
21
|
const containerRef = useTemplateRef("container");
|
22
22
|
const dropdownRef = useTemplateRef("dropdown");
|
23
23
|
const element = computed(() => isClientSide ? containerRef.value instanceof HTMLElement ? containerRef.value : containerRef.value?.$el : void 0);
|
24
|
+
const isTop = computed(() => dropdownRef.value?.top ?? false);
|
24
25
|
__expose({
|
25
26
|
updateDropdown: () => {
|
26
27
|
dropdownRef.value?.update();
|
@@ -28,7 +29,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
28
29
|
});
|
29
30
|
return (_ctx, _cache) => {
|
30
31
|
return openBlock(), createElementBlock(Fragment, null, [
|
31
|
-
(openBlock(), createBlock(resolveDynamicComponent(unref(unwrapSlots)(_ctx.$slots.toggle?.() ?? [])[0]), mergeProps({ ref: "container" }, _ctx.$attrs), null, 16)),
|
32
|
+
(openBlock(), createBlock(resolveDynamicComponent(unref(unwrapSlots)(_ctx.$slots.toggle?.({ isTop: isTop.value }) ?? [])[0]), mergeProps({ ref: "container" }, _ctx.$attrs), null, 16)),
|
32
33
|
(openBlock(), createBlock(Teleport, {
|
33
34
|
to: "body",
|
34
35
|
disabled: !_ctx.isOpen
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"WFieldWrapper.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/FieldWrapper/WFieldWrapper.vue"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"WFieldWrapper.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/FieldWrapper/WFieldWrapper.vue"],"names":[],"mappings":"AA4LA;AAsPA,OAAO,KAAK,EAAC,iBAAiB,EAAC,MAAM,SAAS,CAAA;AAkE9C,iBAAS,cAAc;WAsST,OAAO,IAA6B;;uBAjBvB,GAAG;0BACC,GAAG;;;gCAxSP,OAAO,KAAG,IAAI;;YAySb,GAAG;;;gCAzSJ,OAAO,KAAG,IAAI;;YA0SX,GAAG;uBACL,GAAG;wBACF,GAAG;;;;;;;EAiB/B;AAuBD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;;;;;;;;;;OAUnB,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, useId, useTemplateRef, ref, computed, createElementBlock, openBlock, mergeProps, createCommentVNode, renderSlot, createElementVNode, createBlock, normalizeClass, unref, Fragment, createVNode, createTextVNode, resolveDynamicComponent, toDisplayString, Transition, withCtx, normalizeProps, guardReactiveProps } from 'vue';
|
1
|
+
import { defineComponent, useId, useTemplateRef, ref, inject, computed, createElementBlock, openBlock, mergeProps, createCommentVNode, renderSlot, createElementVNode, createBlock, normalizeClass, unref, Fragment, createVNode, createTextVNode, resolveDynamicComponent, toDisplayString, Transition, withCtx, normalizeProps, guardReactiveProps } from 'vue';
|
2
2
|
import _sfc_main$2 from '../Button/WButtonCopy.vue.js';
|
3
3
|
import WSkeleton from '../Skeleton/WSkeleton.vue.js';
|
4
4
|
import _sfc_main$3 from '../Tooltip/WTooltip.vue.js';
|
@@ -6,6 +6,7 @@ import { encodeQueryParam } from '../../utils/api.js';
|
|
6
6
|
import { useComponentStates } from '../../utils/useComponentStates.js';
|
7
7
|
import { numberFormatter } from '../../utils/utils.js';
|
8
8
|
import _sfc_main$1 from './components/FilterButton.vue.js';
|
9
|
+
import { wFieldSaved } from './use/useFieldSaved.js';
|
9
10
|
|
10
11
|
const _hoisted_1 = ["for"];
|
11
12
|
const _hoisted_2 = {
|
@@ -17,10 +18,6 @@ const _hoisted_3 = {
|
|
17
18
|
class: "square-2 absolute right-0 top-0 rounded-full bg-[var(--has-changes-bg)] transition-colors"
|
18
19
|
};
|
19
20
|
const _hoisted_4 = {
|
20
|
-
key: 1,
|
21
|
-
class: "text-description absolute right-0 top-full whitespace-nowrap pt-0.5 text-xs font-normal"
|
22
|
-
};
|
23
|
-
const _hoisted_5 = {
|
24
21
|
key: 2,
|
25
22
|
ref: "rightContainer",
|
26
23
|
class: "sm-not:flex-col flex gap-4 pl-4"
|
@@ -50,7 +47,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
50
47
|
filterField: {},
|
51
48
|
filterValue: {},
|
52
49
|
subgrid: { type: Boolean },
|
53
|
-
seamless: { type: Boolean }
|
50
|
+
seamless: { type: Boolean },
|
51
|
+
savedText: {},
|
52
|
+
topText: { type: Boolean }
|
54
53
|
},
|
55
54
|
emits: ["click"],
|
56
55
|
setup(__props, { expose: __expose }) {
|
@@ -59,6 +58,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
59
58
|
const id = useId();
|
60
59
|
const fieldRef = useTemplateRef("field");
|
61
60
|
const focused = ref(false);
|
61
|
+
const saved = inject(wFieldSaved, ref(false));
|
62
62
|
const encodedQueryParam = computed(() => {
|
63
63
|
if (props.filterField === void 0) return void 0;
|
64
64
|
return encodeQueryParam(props.filterValue === void 0 ? props.modelValue : props.filterValue);
|
@@ -164,13 +164,19 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
164
164
|
"leave-to-class": "opacity-0"
|
165
165
|
}, {
|
166
166
|
default: withCtx(() => [
|
167
|
-
|
167
|
+
unref(saved) ? (openBlock(), createElementBlock("div", {
|
168
168
|
key: 0,
|
169
|
-
class: normalizeClass(["text-
|
170
|
-
|
171
|
-
|
172
|
-
|
173
|
-
|
169
|
+
class: normalizeClass(["text-description absolute right-0 whitespace-nowrap py-0.5 text-xs font-normal", _ctx.topText ? "bottom-full" : "top-full"])
|
170
|
+
}, toDisplayString(_ctx.savedText ?? "Saved"), 3)) : _ctx.errorMessage ? (openBlock(), createElementBlock("div", {
|
171
|
+
key: 1,
|
172
|
+
class: normalizeClass(["text-negative dark:text-negative-dark absolute pt-0.5 text-xs font-normal", [
|
173
|
+
!_ctx.leftError || _ctx.topText ? "right-0 text-end" : "left-0 text-start",
|
174
|
+
_ctx.topText ? "bottom-full" : "top-full"
|
175
|
+
]])
|
176
|
+
}, toDisplayString(_ctx.errorMessage), 3)) : _ctx.maxLength !== void 0 && focused.value ? (openBlock(), createElementBlock("div", {
|
177
|
+
key: 2,
|
178
|
+
class: normalizeClass(["text-description absolute right-0 whitespace-nowrap pt-0.5 text-xs font-normal", _ctx.topText ? "bottom-full" : "top-full"])
|
179
|
+
}, toDisplayString(unref(numberFormatter).format(`${typeof _ctx.modelValue === "number" ? _ctx.modelValue : _ctx.modelValue || ""}`.length)) + " / " + toDisplayString(unref(numberFormatter).format(_ctx.maxLength)), 3)) : createCommentVNode("", true)
|
174
180
|
]),
|
175
181
|
_: 1
|
176
182
|
})
|
@@ -178,7 +184,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
178
184
|
key: 1,
|
179
185
|
class: "w-skeleton-w-full w-skeleton-rounded-[--w-input-rounded,0.75rem] w-skeleton-h-[--w-input-height,2.75rem]"
|
180
186
|
})),
|
181
|
-
_ctx.$slots.right ? (openBlock(), createElementBlock("div",
|
187
|
+
_ctx.$slots.right ? (openBlock(), createElementBlock("div", _hoisted_4, [
|
182
188
|
renderSlot(_ctx.$slots, "right")
|
183
189
|
], 512)) : createCommentVNode("", true),
|
184
190
|
!_ctx.title && !_ctx.$slots.title && _ctx.filterField ? (openBlock(), createBlock(_sfc_main$1, {
|
@@ -189,6 +195,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
189
195
|
class: "absolute right-0 self-center"
|
190
196
|
}, null, 8, ["filter-field", "encoded-query-param", "skeleton"])) : createCommentVNode("", true)
|
191
197
|
], 2),
|
198
|
+
renderSlot(_ctx.$slots, "bottom"),
|
192
199
|
_ctx.description ? (openBlock(), createElementBlock("div", {
|
193
200
|
key: 1,
|
194
201
|
class: normalizeClass(["text-description col-start-1 whitespace-pre-wrap text-pretty break-words text-xs font-normal", {
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/components/FieldWrapper/types.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,iBAAiB;IAChC,UAAU,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,IAAI,CAAA;IAC7C,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,SAAS,CAAC,EAAE,YAAY,CAAA;IACxB,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,SAAS,C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B,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,OAAO,CAAC,EAAE,OAAO,CAAA;CAClB"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"useFieldSaved.d.ts","sourceRoot":"","sources":["../../../../../src/components/FieldWrapper/use/useFieldSaved.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,KAAK,YAAY,EAAE,KAAK,GAAG,EAAgC,MAAM,KAAK,CAAA;AAE9E,eAAO,MAAM,WAAW,EAA4B,YAAY,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC,CAAA;AAE9E,eAAO,MAAM,aAAa;;CAiCzB,CAAA"}
|
@@ -0,0 +1,29 @@
|
|
1
|
+
import { ref, provide, onBeforeUnmount } from 'vue';
|
2
|
+
|
3
|
+
const wFieldSaved = Symbol("wFieldSaved");
|
4
|
+
const useFieldSaved = () => {
|
5
|
+
const saved = ref(false);
|
6
|
+
provide(wFieldSaved, saved);
|
7
|
+
let timeout = null;
|
8
|
+
const resetSaved = () => {
|
9
|
+
saved.value = false;
|
10
|
+
if (timeout) {
|
11
|
+
clearTimeout(timeout);
|
12
|
+
timeout = null;
|
13
|
+
}
|
14
|
+
};
|
15
|
+
const showSaved = () => {
|
16
|
+
if (timeout) clearTimeout(timeout);
|
17
|
+
if (saved.value) {
|
18
|
+
saved.value = false;
|
19
|
+
timeout = setTimeout(showSaved, 100);
|
20
|
+
} else {
|
21
|
+
saved.value = true;
|
22
|
+
timeout = setTimeout(resetSaved, 2e3);
|
23
|
+
}
|
24
|
+
};
|
25
|
+
onBeforeUnmount(resetSaved);
|
26
|
+
return { showSaved };
|
27
|
+
};
|
28
|
+
|
29
|
+
export { useFieldSaved, wFieldSaved };
|
@@ -34,9 +34,12 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
34
34
|
filterValue: {},
|
35
35
|
subgrid: { type: Boolean },
|
36
36
|
seamless: { type: Boolean },
|
37
|
+
savedText: {},
|
38
|
+
topText: { type: Boolean },
|
37
39
|
loading: { type: Boolean },
|
38
40
|
download: {},
|
39
41
|
autofocus: { type: Boolean },
|
42
|
+
outline: { type: Boolean },
|
40
43
|
to: {},
|
41
44
|
useQueryFn: {},
|
42
45
|
noParams: { type: Boolean },
|
@@ -37,6 +37,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
37
37
|
filterValue: {},
|
38
38
|
subgrid: { type: Boolean },
|
39
39
|
seamless: { type: Boolean },
|
40
|
+
savedText: {},
|
41
|
+
topText: { type: Boolean },
|
40
42
|
radio: { type: Boolean },
|
41
43
|
loading: { type: Boolean },
|
42
44
|
alignTop: { type: Boolean },
|
@@ -9,6 +9,12 @@ declare const _default: <Model, FieldType extends string | number, QueryParams>(
|
|
9
9
|
title?(_: {}): any;
|
10
10
|
subtitle?(_: {}): any;
|
11
11
|
right?(_: {}): any;
|
12
|
+
prefix?(_: {
|
13
|
+
modelValue: string | undefined;
|
14
|
+
}): any;
|
15
|
+
before?(_: {
|
16
|
+
modelValue: string | undefined;
|
17
|
+
}): any;
|
12
18
|
};
|
13
19
|
emit: (e: "success", value: Model) => void;
|
14
20
|
}>) => import('vue').VNode & {
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"WFormAsyncInput.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/FormAsync/WFormAsyncInput.vue"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"WFormAsyncInput.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/FormAsync/WFormAsyncInput.vue"],"names":[],"mappings":"AAuDA;AAiGA,OAAO,KAAK,EAAC,mBAAmB,EAAC,MAAM,SAAS,CAAA;yBAU/B,KAAK,EAAE,SAAS,SAAS,MAAM,GAAG,MAAM,EAAE,WAAW,EACrE,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;WA+KO,mBAAmB,CAAC;;oMAAkE,CAAC,4BAA2B;oBACzG,OAAO,KAAK,EAAE,gBAAgB,CAAC,EAAE,CAAC,GAAG,IAAI;WAClD,GAAG;;uBAxCgB,GAAG;0BACA,GAAG;uBACL,GAAG;;;YACF,GAAG;;;YACH,GAAG;;cAhI1B,SAAS,SAAS,KAAK,KAAG,IAAI;EAwKhC,KACQ,OAAO,KAAK,EAAE,KAAK,GAAG;IAAE,KAAK,CAAC,EAAE,OAAO,CAAC,OAAO,WAAW,CAAC,CAAA;CAAE;AA1LzE,wBA0L4E;AAC5E,KAAK,mBAAmB,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG,EAAE,CAAC"}
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { defineComponent, computed, createBlock, openBlock, mergeProps, unref, createSlots, withCtx, renderSlot } from 'vue';
|
1
|
+
import { defineComponent, computed, createBlock, openBlock, mergeProps, unref, createSlots, withCtx, renderSlot, normalizeProps, guardReactiveProps } from 'vue';
|
2
2
|
import _sfc_main$1 from '../Input/WInputAsync.vue.js';
|
3
3
|
import { validateRequired } from '../../utils/validate.js';
|
4
4
|
import { useFormAsync } from './use/useFormAsync.js';
|
@@ -8,7 +8,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
8
8
|
props: {
|
9
9
|
validate: {},
|
10
10
|
debounce: {},
|
11
|
-
|
11
|
+
instant: { type: Boolean },
|
12
12
|
type: {},
|
13
13
|
textarea: { type: Boolean },
|
14
14
|
resize: { type: Boolean },
|
@@ -33,6 +33,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
33
33
|
allowPaste: { type: Boolean },
|
34
34
|
hideInput: { type: Boolean },
|
35
35
|
noWrap: { type: Boolean },
|
36
|
+
textTransparent: { type: Boolean },
|
36
37
|
title: {},
|
37
38
|
titleIcon: {},
|
38
39
|
description: {},
|
@@ -52,6 +53,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
52
53
|
filterValue: {},
|
53
54
|
subgrid: { type: Boolean },
|
54
55
|
seamless: { type: Boolean },
|
56
|
+
savedText: {},
|
57
|
+
topText: { type: Boolean },
|
55
58
|
useQueryFn: {},
|
56
59
|
noParams: { type: Boolean },
|
57
60
|
queryParams: {},
|
@@ -102,6 +105,20 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
102
105
|
renderSlot(_ctx.$slots, "right")
|
103
106
|
]),
|
104
107
|
key: "2"
|
108
|
+
} : void 0,
|
109
|
+
_ctx.$slots.prefix ? {
|
110
|
+
name: "prefix",
|
111
|
+
fn: withCtx((scope) => [
|
112
|
+
renderSlot(_ctx.$slots, "prefix", normalizeProps(guardReactiveProps(scope)))
|
113
|
+
]),
|
114
|
+
key: "3"
|
115
|
+
} : void 0,
|
116
|
+
_ctx.$slots.before ? {
|
117
|
+
name: "before",
|
118
|
+
fn: withCtx((scope) => [
|
119
|
+
renderSlot(_ctx.$slots, "before", normalizeProps(guardReactiveProps(scope)))
|
120
|
+
]),
|
121
|
+
key: "4"
|
105
122
|
} : void 0
|
106
123
|
]), 1040);
|
107
124
|
};
|
@@ -42,6 +42,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
42
42
|
placeholderSecure: { type: Boolean },
|
43
43
|
allowPaste: { type: Boolean },
|
44
44
|
noWrap: { type: Boolean },
|
45
|
+
textTransparent: { type: Boolean },
|
45
46
|
title: {},
|
46
47
|
titleIcon: {},
|
47
48
|
description: {},
|
@@ -60,6 +61,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
60
61
|
filterValue: {},
|
61
62
|
subgrid: { type: Boolean },
|
62
63
|
seamless: { type: Boolean },
|
64
|
+
savedText: {},
|
65
|
+
topText: { type: Boolean },
|
63
66
|
parentElement: {},
|
64
67
|
maxHeight: {},
|
65
68
|
maxWidth: {},
|