eco-vue-js 0.9.4 → 0.9.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/Button/WButtonGroup.vue.js +3 -1
- package/dist/components/DropdownMenu/WDropdownMenu.vue.d.ts +139 -3
- package/dist/components/DropdownMenu/WDropdownMenu.vue.d.ts.map +1 -1
- package/dist/components/FieldWrapper/WFieldWrapper.vue.d.ts.map +1 -1
- package/dist/components/FieldWrapper/WFieldWrapper.vue.js +7 -4
- package/dist/components/FieldWrapper/types.d.ts +2 -0
- package/dist/components/FieldWrapper/types.d.ts.map +1 -1
- package/dist/components/Form/WFormValidator.vue.d.ts +1 -1
- package/dist/components/Form/WFormValidator.vue.d.ts.map +1 -1
- package/dist/components/Form/WFormValidator.vue.js +4 -2
- package/dist/components/FormAsync/WFormAsyncButtonGroup.vue.d.ts +2 -2
- package/dist/components/FormAsync/WFormAsyncButtonGroup.vue.js +3 -1
- package/dist/components/FormAsync/WFormAsyncInput.vue.js +3 -1
- package/dist/components/FormAsync/WFormAsyncSelect.vue.js +2 -0
- package/dist/components/FormAsync/WFormAsyncSelectInfiniteSingle.vue.js +2 -0
- package/dist/components/FormAsync/WFormAsyncSelectSingle.vue.js +2 -0
- package/dist/components/FormAsync/WFormAsyncSelectStringified.vue.js +2 -0
- package/dist/components/HeaderBar/WHeaderBar.vue.d.ts +4 -1
- package/dist/components/HeaderBar/WHeaderBar.vue.d.ts.map +1 -1
- package/dist/components/Input/WInput.vue.js +4 -2
- package/dist/components/Input/WInputAsync.vue.js +3 -1
- package/dist/components/Input/WInputDate.vue.d.ts +12 -2
- package/dist/components/Input/WInputDate.vue.d.ts.map +1 -1
- package/dist/components/Input/WInputDate.vue.js +2 -0
- package/dist/components/Input/WInputOptions.vue.d.ts +1 -1
- package/dist/components/Input/WInputOptions.vue.js +2 -0
- package/dist/components/Input/WInputSuggest.vue.js +2 -0
- package/dist/components/List/WList.vue.d.ts +1 -0
- package/dist/components/List/WList.vue.d.ts.map +1 -1
- package/dist/components/List/WList.vue.js +3 -2
- package/dist/components/Modal/WModalStepper.vue.d.ts +800 -2
- package/dist/components/Modal/WModalStepper.vue.d.ts.map +1 -1
- package/dist/components/Select/WSelect.vue.js +2 -0
- package/dist/components/Select/WSelectAsync.vue.js +2 -0
- package/dist/components/Select/WSelectAsyncSingle.vue.d.ts +4 -4
- package/dist/components/Select/WSelectAsyncSingle.vue.js +2 -0
- package/dist/components/Select/WSelectSingle.vue.d.ts +4 -4
- package/dist/components/Select/WSelectSingle.vue.js +2 -0
- package/dist/components/Select/WSelectStringified.vue.d.ts +4 -4
- package/dist/components/Select/WSelectStringified.vue.js +2 -0
- package/dist/components/Tabs/WTabs.vue.d.ts +267 -3
- package/dist/components/Tabs/WTabs.vue.d.ts.map +1 -1
- package/dist/components/Tabs/WTabsStepper.vue.d.ts +628 -2
- package/dist/components/Tabs/WTabsStepper.vue.d.ts.map +1 -1
- package/package.json +11 -11
@@ -28,8 +28,10 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
28
28
|
skeleton: { type: Boolean },
|
29
29
|
disabled: { type: Boolean },
|
30
30
|
required: { type: Boolean },
|
31
|
+
mandatory: { type: Boolean },
|
31
32
|
noMargin: { type: Boolean },
|
32
|
-
allowCopy: { type: Boolean }
|
33
|
+
allowCopy: { type: Boolean },
|
34
|
+
emptyValue: {}
|
33
35
|
},
|
34
36
|
emits: ["update:model-value"],
|
35
37
|
setup(__props, { emit: __emit }) {
|
@@ -4,11 +4,81 @@ declare function __VLS_template(): {
|
|
4
4
|
toggle?(_: {
|
5
5
|
unclickable: boolean;
|
6
6
|
}): any;
|
7
|
-
content?(_:
|
7
|
+
content?(_: {
|
8
|
+
left: string;
|
9
|
+
right: string;
|
10
|
+
istop: boolean;
|
11
|
+
}): any;
|
8
12
|
};
|
9
13
|
refs: {
|
10
14
|
container: HTMLDivElement;
|
11
|
-
dropdown:
|
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 parentElement: Element;
|
23
|
+
readonly updateAlign?: boolean | undefined;
|
24
|
+
readonly emitUpdate?: boolean | undefined;
|
25
|
+
readonly "onUpdate:rect"?: (() => any) | undefined;
|
26
|
+
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
|
27
|
+
$attrs: {
|
28
|
+
[x: string]: unknown;
|
29
|
+
};
|
30
|
+
$refs: {
|
31
|
+
[x: string]: unknown;
|
32
|
+
} & {
|
33
|
+
dropdown: HTMLDivElement;
|
34
|
+
};
|
35
|
+
$slots: Readonly<{
|
36
|
+
[name: string]: import('vue').Slot<any> | undefined;
|
37
|
+
}>;
|
38
|
+
$root: import('vue').ComponentPublicInstance | null;
|
39
|
+
$parent: import('vue').ComponentPublicInstance | null;
|
40
|
+
$host: Element | null;
|
41
|
+
$emit: (event: "update:rect") => void;
|
42
|
+
$el: any;
|
43
|
+
$options: import('vue').ComponentOptionsBase<Readonly<import('../Dropdown/types').DropdownProps> & Readonly<{
|
44
|
+
"onUpdate:rect"?: (() => any) | undefined;
|
45
|
+
}>, {
|
46
|
+
update: () => void;
|
47
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
48
|
+
"update:rect": () => any;
|
49
|
+
}, string, {}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
|
50
|
+
beforeCreate?: (() => void) | (() => void)[];
|
51
|
+
created?: (() => void) | (() => void)[];
|
52
|
+
beforeMount?: (() => void) | (() => void)[];
|
53
|
+
mounted?: (() => void) | (() => void)[];
|
54
|
+
beforeUpdate?: (() => void) | (() => void)[];
|
55
|
+
updated?: (() => void) | (() => void)[];
|
56
|
+
activated?: (() => void) | (() => void)[];
|
57
|
+
deactivated?: (() => void) | (() => void)[];
|
58
|
+
beforeDestroy?: (() => void) | (() => void)[];
|
59
|
+
beforeUnmount?: (() => void) | (() => void)[];
|
60
|
+
destroyed?: (() => void) | (() => void)[];
|
61
|
+
unmounted?: (() => void) | (() => void)[];
|
62
|
+
renderTracked?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
|
63
|
+
renderTriggered?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
|
64
|
+
errorCaptured?: ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void)[];
|
65
|
+
};
|
66
|
+
$forceUpdate: () => void;
|
67
|
+
$nextTick: typeof import('vue').nextTick;
|
68
|
+
$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;
|
69
|
+
} & Readonly<{}> & Omit<Readonly<import('../Dropdown/types').DropdownProps> & Readonly<{
|
70
|
+
"onUpdate:rect"?: (() => any) | undefined;
|
71
|
+
}>, "update"> & import('vue').ShallowUnwrapRef<{
|
72
|
+
update: () => void;
|
73
|
+
}> & {} & import('vue').ComponentCustomProperties & {} & {
|
74
|
+
$slots: {
|
75
|
+
default?(_: {
|
76
|
+
left: string;
|
77
|
+
right: string;
|
78
|
+
istop: boolean;
|
79
|
+
}): any;
|
80
|
+
};
|
81
|
+
}) | null;
|
12
82
|
};
|
13
83
|
attrs: Partial<{}>;
|
14
84
|
};
|
@@ -21,7 +91,73 @@ declare const __VLS_component: import('vue').DefineComponent<DropdownMenuProps,
|
|
21
91
|
"onUpdate:rect"?: (() => any) | undefined;
|
22
92
|
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
23
93
|
container: HTMLDivElement;
|
24
|
-
dropdown:
|
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 parentElement: Element;
|
102
|
+
readonly updateAlign?: boolean | undefined;
|
103
|
+
readonly emitUpdate?: boolean | undefined;
|
104
|
+
readonly "onUpdate:rect"?: (() => any) | undefined;
|
105
|
+
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
|
106
|
+
$attrs: {
|
107
|
+
[x: string]: unknown;
|
108
|
+
};
|
109
|
+
$refs: {
|
110
|
+
[x: string]: unknown;
|
111
|
+
} & {
|
112
|
+
dropdown: HTMLDivElement;
|
113
|
+
};
|
114
|
+
$slots: Readonly<{
|
115
|
+
[name: string]: import('vue').Slot<any> | undefined;
|
116
|
+
}>;
|
117
|
+
$root: import('vue').ComponentPublicInstance | null;
|
118
|
+
$parent: import('vue').ComponentPublicInstance | null;
|
119
|
+
$host: Element | null;
|
120
|
+
$emit: (event: "update:rect") => void;
|
121
|
+
$el: any;
|
122
|
+
$options: import('vue').ComponentOptionsBase<Readonly<import('../Dropdown/types').DropdownProps> & Readonly<{
|
123
|
+
"onUpdate:rect"?: (() => any) | undefined;
|
124
|
+
}>, {
|
125
|
+
update: () => void;
|
126
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
127
|
+
"update:rect": () => any;
|
128
|
+
}, string, {}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
|
129
|
+
beforeCreate?: (() => void) | (() => void)[];
|
130
|
+
created?: (() => void) | (() => void)[];
|
131
|
+
beforeMount?: (() => void) | (() => void)[];
|
132
|
+
mounted?: (() => void) | (() => void)[];
|
133
|
+
beforeUpdate?: (() => void) | (() => void)[];
|
134
|
+
updated?: (() => void) | (() => void)[];
|
135
|
+
activated?: (() => void) | (() => void)[];
|
136
|
+
deactivated?: (() => void) | (() => void)[];
|
137
|
+
beforeDestroy?: (() => void) | (() => void)[];
|
138
|
+
beforeUnmount?: (() => void) | (() => void)[];
|
139
|
+
destroyed?: (() => void) | (() => void)[];
|
140
|
+
unmounted?: (() => void) | (() => void)[];
|
141
|
+
renderTracked?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
|
142
|
+
renderTriggered?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
|
143
|
+
errorCaptured?: ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void)[];
|
144
|
+
};
|
145
|
+
$forceUpdate: () => void;
|
146
|
+
$nextTick: typeof import('vue').nextTick;
|
147
|
+
$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;
|
148
|
+
} & Readonly<{}> & Omit<Readonly<import('../Dropdown/types').DropdownProps> & Readonly<{
|
149
|
+
"onUpdate:rect"?: (() => any) | undefined;
|
150
|
+
}>, "update"> & import('vue').ShallowUnwrapRef<{
|
151
|
+
update: () => void;
|
152
|
+
}> & {} & import('vue').ComponentCustomProperties & {} & {
|
153
|
+
$slots: {
|
154
|
+
default?(_: {
|
155
|
+
left: string;
|
156
|
+
right: string;
|
157
|
+
istop: boolean;
|
158
|
+
}): any;
|
159
|
+
};
|
160
|
+
}) | null;
|
25
161
|
}, any>;
|
26
162
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
27
163
|
export default _default;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"WDropdownMenu.vue.d.ts","sourceRoot":"","sources":["../../../src/components/DropdownMenu/WDropdownMenu.vue"],"names":[],"mappings":"AAqEA,OAAO,KAAK,EAAC,iBAAiB,EAAC,MAAM,SAAS,CAAA;AAoC9C,iBAAS,cAAc;;;;YAyFK,GAAG
|
1
|
+
{"version":3,"file":"WDropdownMenu.vue.d.ts","sourceRoot":"","sources":["../../../src/components/DropdownMenu/WDropdownMenu.vue"],"names":[],"mappings":"AAqEA,OAAO,KAAK,EAAC,iBAAiB,EAAC,MAAM,SAAS,CAAA;AAoC9C,iBAAS,cAAc;;;;YAyFK,GAAG;;;;;YACD,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wCAuDsthB,GAAG,8CAA8C,GAAG,yBAAyB,GAAG,6DAAmC,GAAG;;;;;;;;;;;;;;;WA5C/1hB,OAAO,IAA6B;EAEjD;AAYD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oCA6BkuhB,GAAG,8CAA8C,GAAG,yBAAyB,GAAG,6DAAmC,GAAG;;;;;;;;;;;;;;OAlB32hB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAWpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
|
@@ -1 +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":"AAoLA,OAAO,KAAK,EAAC,iBAAiB,EAAC,MAAM,SAAS,CAAA;AAoC9C,iBAAS,cAAc;;uBA8NI,GAAG;0BACC,GAAG;;;gCA1OP,OAAO,KAAG,IAAI;;YA2Ob,GAAG;;;gCA3OJ,OAAO,KAAG,IAAI;;YA4OX,GAAG;uBACL,GAAG;;;;;WAUjB,OAAO,IAA6B;EAEjD;AAkBD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;kFASnB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAWpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
|
@@ -42,8 +42,10 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
42
42
|
skeleton: { type: Boolean },
|
43
43
|
disabled: { type: Boolean },
|
44
44
|
required: { type: Boolean },
|
45
|
+
mandatory: { type: Boolean },
|
45
46
|
noMargin: { type: Boolean },
|
46
|
-
allowCopy: { type: Boolean }
|
47
|
+
allowCopy: { type: Boolean },
|
48
|
+
emptyValue: {}
|
47
49
|
},
|
48
50
|
emits: ["click"],
|
49
51
|
setup(__props) {
|
@@ -102,12 +104,13 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
102
104
|
}, [
|
103
105
|
renderSlot(_ctx.$slots, "field", normalizeProps(guardReactiveProps({ id: unref(id), setFocused, focused: focused.value })), () => [
|
104
106
|
createElementVNode("div", {
|
105
|
-
class: normalizeClass(["flex min-h-11 items-center
|
106
|
-
"font-mono": _ctx.mono
|
107
|
+
class: normalizeClass(["flex min-h-11 items-center text-base font-normal", {
|
108
|
+
"font-mono": _ctx.mono,
|
109
|
+
"border-t border-solid border-gray-300 dark:border-gray-700": _ctx.title || _ctx.$slots.title
|
107
110
|
}])
|
108
111
|
}, [
|
109
112
|
renderSlot(_ctx.$slots, "default", normalizeProps(guardReactiveProps({ id: unref(id), setFocused, focused: focused.value })), () => [
|
110
|
-
createTextVNode(toDisplayString(typeof _ctx.modelValue === "number" ? unref(numberFormatter).format(_ctx.modelValue) : _ctx.modelValue === null ? "N / A" : _ctx.modelValue), 1)
|
113
|
+
createTextVNode(toDisplayString(typeof _ctx.modelValue === "number" ? unref(numberFormatter).format(_ctx.modelValue) : _ctx.modelValue === null ? _ctx.emptyValue ?? "N / A" : _ctx.modelValue || _ctx.emptyValue), 1)
|
111
114
|
]),
|
112
115
|
_ctx.allowCopy && _ctx.modelValue ? (openBlock(), createBlock(_sfc_main$1, {
|
113
116
|
key: 0,
|
@@ -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,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,IAAI,CAAC,EAAE,OAAO,CAAA;IACd,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,SAAS,CAAC,EAAE,OAAO,CAAA;CACpB"}
|
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,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,IAAI,CAAC,EAAE,OAAO,CAAA;IACd,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,UAAU,CAAC,EAAE,MAAM,CAAA;CACpB"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"WFormValidator.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Form/WFormValidator.vue"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"WFormValidator.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Form/WFormValidator.vue"],"names":[],"mappings":"AAimBA,iBAAS,cAAc;;iBAZZ,MAAM,IAAI;;iBAAV,MAAM,IAAI;;;;;WA2GP,OAAO,IAA6B;EAEjD;AAoBD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;WA1ZZ,MAAM;YACL,MAAM;eACH,UAAU,GAAG,UAAU,EAAE;sBAClB,MAAM;sBACN,MAAM;gBACZ,OAAO;;;wBAmQC,MAAM;qBAzEN,IAAI;;;;;;WA/LjB,MAAM;YACL,MAAM;eACH,UAAU,GAAG,UAAU,EAAE;sBAClB,MAAM;sBACN,MAAM;gBACZ,OAAO;;;;;kFAianB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAWpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
|
@@ -56,15 +56,17 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
56
56
|
});
|
57
57
|
const initModelValue = ref();
|
58
58
|
const required = computed(() => componentSlot.value?.props?.required !== void 0 ? componentSlot.value?.props?.required !== false : void 0);
|
59
|
+
const mandatory = computed(() => componentSlot.value?.props?.mandatory !== void 0 ? componentSlot.value?.props?.mandatory !== false : void 0);
|
59
60
|
const title = computed(() => props.title ?? componentSlot.value?.props?.title);
|
60
61
|
const errorMessage = ref(null);
|
61
62
|
const hasChanges = ref(false);
|
62
63
|
const hasBeenValidated = ref(false);
|
63
|
-
const
|
64
|
-
if (!required.value) return null;
|
64
|
+
const hasValueExact = computed(() => {
|
65
|
+
if (!required.value && !mandatory.value) return null;
|
65
66
|
if (Array.isArray(modelValue.value)) return modelValue.value.length !== 0;
|
66
67
|
return modelValue.value !== void 0 && modelValue.value !== null && modelValue.value !== "";
|
67
68
|
});
|
69
|
+
const hasValue = computed(() => mandatory.value && hasValueExact.value === false ? null : hasValueExact.value);
|
68
70
|
const requiredSymbols = computed(() => props.requiredSymbols?.split("") ?? []);
|
69
71
|
const _updateHasChanges = (value) => {
|
70
72
|
if (initModelValue.value === void 0) {
|
@@ -7,8 +7,8 @@ declare const _default: <Model, FieldType extends string | number | boolean | nu
|
|
7
7
|
attrs: any;
|
8
8
|
slots: {
|
9
9
|
option?(_: {
|
10
|
-
option:
|
11
|
-
selected:
|
10
|
+
option: FieldType | Entity | (ValueGetter extends undefined ? FieldType : Entity);
|
11
|
+
selected: boolean;
|
12
12
|
}): any;
|
13
13
|
};
|
14
14
|
emit: {};
|
@@ -34,8 +34,10 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
34
34
|
skeleton: { type: Boolean },
|
35
35
|
disabled: { type: Boolean },
|
36
36
|
required: { type: Boolean },
|
37
|
+
mandatory: { type: Boolean },
|
37
38
|
noMargin: { type: Boolean },
|
38
|
-
allowCopy: { type: Boolean }
|
39
|
+
allowCopy: { type: Boolean },
|
40
|
+
emptyValue: {}
|
39
41
|
},
|
40
42
|
setup(__props) {
|
41
43
|
const props = __props;
|
@@ -46,8 +46,10 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
46
46
|
skeleton: { type: Boolean },
|
47
47
|
disabled: { type: Boolean },
|
48
48
|
required: { type: Boolean },
|
49
|
+
mandatory: { type: Boolean },
|
49
50
|
noMargin: { type: Boolean },
|
50
|
-
allowCopy: { type: Boolean }
|
51
|
+
allowCopy: { type: Boolean },
|
52
|
+
emptyValue: {}
|
51
53
|
},
|
52
54
|
emits: ["success"],
|
53
55
|
setup(__props, { emit: __emit }) {
|
@@ -55,8 +55,10 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
55
55
|
skeleton: { type: Boolean },
|
56
56
|
disabled: { type: Boolean },
|
57
57
|
required: { type: Boolean },
|
58
|
+
mandatory: { type: Boolean },
|
58
59
|
noMargin: { type: Boolean },
|
59
60
|
allowCopy: { type: Boolean },
|
61
|
+
emptyValue: {},
|
60
62
|
teleport: { type: Boolean },
|
61
63
|
noZIndex: { type: Boolean },
|
62
64
|
maxHeight: {},
|
@@ -60,8 +60,10 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
60
60
|
skeleton: { type: Boolean },
|
61
61
|
disabled: { type: Boolean },
|
62
62
|
required: { type: Boolean },
|
63
|
+
mandatory: { type: Boolean },
|
63
64
|
noMargin: { type: Boolean },
|
64
65
|
allowCopy: { type: Boolean },
|
66
|
+
emptyValue: {},
|
65
67
|
teleport: { type: Boolean },
|
66
68
|
noZIndex: { type: Boolean },
|
67
69
|
maxHeight: {},
|
@@ -56,8 +56,10 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
56
56
|
skeleton: { type: Boolean },
|
57
57
|
disabled: { type: Boolean },
|
58
58
|
required: { type: Boolean },
|
59
|
+
mandatory: { type: Boolean },
|
59
60
|
noMargin: { type: Boolean },
|
60
61
|
allowCopy: { type: Boolean },
|
62
|
+
emptyValue: {},
|
61
63
|
teleport: { type: Boolean },
|
62
64
|
noZIndex: { type: Boolean },
|
63
65
|
maxHeight: {},
|
@@ -56,8 +56,10 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
56
56
|
skeleton: { type: Boolean },
|
57
57
|
disabled: { type: Boolean },
|
58
58
|
required: { type: Boolean },
|
59
|
+
mandatory: { type: Boolean },
|
59
60
|
noMargin: { type: Boolean },
|
60
61
|
allowCopy: { type: Boolean },
|
62
|
+
emptyValue: {},
|
61
63
|
teleport: { type: Boolean },
|
62
64
|
noZIndex: { type: Boolean },
|
63
65
|
maxHeight: {},
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"WHeaderBar.vue.d.ts","sourceRoot":"","sources":["../../../src/components/HeaderBar/WHeaderBar.vue"],"names":[],"mappings":"AA0OA,iBAAS,cAAc;;uBA2OI,GAAG;wBACD,GAAG;wBACH,GAAG
|
1
|
+
{"version":3,"file":"WHeaderBar.vue.d.ts","sourceRoot":"","sources":["../../../src/components/HeaderBar/WHeaderBar.vue"],"names":[],"mappings":"AA0OA,iBAAS,cAAc;;uBA2OI,GAAG;wBACD,GAAG;wBACH,GAAG;;;;;;;;WAUlB,OAAO,IAA6B;EAEjD;AAsBD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;YArVT,MAAM;aACL,MAAM;oBACC,OAAO;oBACP,MAAM;;;;YAHd,MAAM;aACL,MAAM;oBACC,OAAO;oBACP,MAAM;;;;WAHd,MAAM;YACL,MAAM;mBAEC,MAAM;6EA4VxB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAgBpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
|
@@ -45,8 +45,10 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
45
45
|
skeleton: { type: Boolean },
|
46
46
|
disabled: { type: Boolean },
|
47
47
|
required: { type: Boolean },
|
48
|
+
mandatory: { type: Boolean },
|
48
49
|
noMargin: { type: Boolean },
|
49
|
-
allowCopy: { type: Boolean }
|
50
|
+
allowCopy: { type: Boolean },
|
51
|
+
emptyValue: {}
|
50
52
|
},
|
51
53
|
emits: ["update:modelValue", "keypress:enter", "keypress:up", "keypress:down", "keypress:delete", "keypress:backspace", "click:clear", "focus", "blur", "click", "mousedown", "click:suffix", "select:input", "paste"],
|
52
54
|
setup(__props, { expose: __expose, emit: __emit }) {
|
@@ -200,7 +202,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
200
202
|
"font-mono": _ctx.mono,
|
201
203
|
"text-secure": _ctx.textSecure && !isSecureVisible.value
|
202
204
|
})
|
203
|
-
}, toDisplayString(_ctx.modelValue), 3)) : createCommentVNode("", true)
|
205
|
+
}, toDisplayString(_ctx.modelValue || _ctx.emptyValue), 3)) : createCommentVNode("", true)
|
204
206
|
])
|
205
207
|
]),
|
206
208
|
key: "2"
|
@@ -45,8 +45,10 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
45
45
|
skeleton: { type: Boolean },
|
46
46
|
disabled: { type: Boolean },
|
47
47
|
required: { type: Boolean },
|
48
|
+
mandatory: { type: Boolean },
|
48
49
|
noMargin: { type: Boolean },
|
49
|
-
allowCopy: { type: Boolean }
|
50
|
+
allowCopy: { type: Boolean },
|
51
|
+
emptyValue: {}
|
50
52
|
},
|
51
53
|
emits: ["update:modelValue"],
|
52
54
|
setup(__props, { emit: __emit }) {
|
@@ -7,7 +7,12 @@ declare function __VLS_template(): {
|
|
7
7
|
right?(_: {}): any;
|
8
8
|
};
|
9
9
|
refs: {
|
10
|
-
inputComponent:
|
10
|
+
inputComponent: import('vue').ShallowUnwrapRef<{
|
11
|
+
focus: () => void;
|
12
|
+
blur: () => void;
|
13
|
+
close: () => void;
|
14
|
+
updateDropdown: () => void;
|
15
|
+
}> | null;
|
11
16
|
};
|
12
17
|
attrs: Partial<{}>;
|
13
18
|
};
|
@@ -24,7 +29,12 @@ declare const __VLS_component: import('vue').DefineComponent<InputDateProps, {},
|
|
24
29
|
minDate: Date;
|
25
30
|
maxDate: Date;
|
26
31
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
27
|
-
inputComponent:
|
32
|
+
inputComponent: import('vue').ShallowUnwrapRef<{
|
33
|
+
focus: () => void;
|
34
|
+
blur: () => void;
|
35
|
+
close: () => void;
|
36
|
+
updateDropdown: () => void;
|
37
|
+
}> | null;
|
28
38
|
}, any>;
|
29
39
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
30
40
|
export default _default;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"WInputDate.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Input/WInputDate.vue"],"names":[],"mappings":"AAgHA,OAAO,KAAK,EAAC,cAAc,EAAC,MAAM,SAAS,CAAA;AAO3C,OAAO,EAAC,eAAe,EAAC,MAAM,yBAAyB,CAAA;AAuEvD,iBAAS,cAAc;;uBAiJK,GAAG;0BACA,GAAG;uBACN,GAAG
|
1
|
+
{"version":3,"file":"WInputDate.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Input/WInputDate.vue"],"names":[],"mappings":"AAgHA,OAAO,KAAK,EAAC,cAAc,EAAC,MAAM,SAAS,CAAA;AAO3C,OAAO,EAAC,eAAe,EAAC,MAAM,yBAAyB,CAAA;AAuEvD,iBAAS,cAAc;;uBAiJK,GAAG;0BACA,GAAG;uBACN,GAAG;;;;;;;;;;WAUjB,OAAO,IAA6B;EAEjD;AAiBD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;;;;;;;;;;;;;;;OAWnB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAgBpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
|
@@ -43,8 +43,10 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
43
43
|
skeleton: { type: Boolean },
|
44
44
|
disabled: { type: Boolean },
|
45
45
|
required: { type: Boolean },
|
46
|
+
mandatory: { type: Boolean },
|
46
47
|
noMargin: { type: Boolean },
|
47
48
|
allowCopy: { type: Boolean },
|
49
|
+
emptyValue: {},
|
48
50
|
teleport: { type: Boolean },
|
49
51
|
noZIndex: { type: Boolean },
|
50
52
|
maxHeight: { default: 440 },
|
@@ -48,8 +48,10 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
48
48
|
skeleton: { type: Boolean },
|
49
49
|
disabled: { type: Boolean },
|
50
50
|
required: { type: Boolean },
|
51
|
+
mandatory: { type: Boolean },
|
51
52
|
noMargin: { type: Boolean },
|
52
53
|
allowCopy: { type: Boolean },
|
54
|
+
emptyValue: {},
|
53
55
|
teleport: { type: Boolean },
|
54
56
|
noZIndex: { type: Boolean },
|
55
57
|
maxHeight: {},
|
@@ -44,8 +44,10 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
44
44
|
skeleton: { type: Boolean },
|
45
45
|
disabled: { type: Boolean },
|
46
46
|
required: { type: Boolean },
|
47
|
+
mandatory: { type: Boolean },
|
47
48
|
noMargin: { type: Boolean },
|
48
49
|
allowCopy: { type: Boolean },
|
50
|
+
emptyValue: {},
|
49
51
|
teleport: { type: Boolean },
|
50
52
|
noZIndex: { type: Boolean },
|
51
53
|
maxHeight: { default: 320 },
|
@@ -25,6 +25,7 @@ declare const _default: <Data extends DefaultData, QueryParams, Fields extends L
|
|
25
25
|
alignTop?: boolean;
|
26
26
|
disableMore?: boolean;
|
27
27
|
readonly?: boolean;
|
28
|
+
noOrdering?: boolean;
|
28
29
|
}> & import('vue').PublicProps;
|
29
30
|
expose(exposed: import('vue').ShallowUnwrapRef<{}>): void;
|
30
31
|
attrs: any;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"WList.vue.d.ts","sourceRoot":"","sources":["../../../src/components/List/WList.vue"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"WList.vue.d.ts","sourceRoot":"","sources":["../../../src/components/List/WList.vue"],"names":[],"mappings":"AA+TA,OAAO,KAAK,EAAC,aAAa,EAAE,cAAc,EAAE,cAAc,EAAE,UAAU,EAAE,aAAa,EAAC,MAAM,SAAS,CAAA;yBAqBpF,IAAI,SAAS,WAAW,EAAE,WAAW,EAAE,MAAM,SAAS,UAAU,CAAC,IAAI,EAAE,WAAW,CAAC,eACtF,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;WAynBxD,mBAAmB,CAAC;;;gBAnnBpB,MAAM;gBACN,MAAM;oBACF,cAAc,CAAC,IAAI,CAAC;oBACpB,iBAAiB,CAAC,IAAI,EAAE,WAAW,CAAC;qBACnC,WAAW;uBACT,OAAO,CAAC,YAAY,CAAC,iBAAiB,CAAC,IAAI,CAAC,CAAC,CAAC;6BACxC,MAAM;wBACX,MAAM;eACf,aAAa,CAAC,WAAW,CAAC,EAAE;mBACxB,aAAa,CAAC,WAAW,CAAC,EAAE;cACjC,aAAa,CAAC,IAAI,CAAC,EAAE;yBACV,CAAC,IAAI,EAAE,IAAI,KAAK,OAAO;oBAC5B,MAAM;2BACC,MAAM;6BACJ,CAAC,UAAU,EAAE,OAAO,EAAE,KAAK,EAAE,MAAM,KAAK,MAAM;oBACvD,OAAO;qBACN,OAAO;mBACT,MAAM;0BACC,cAAc,CAAC,MAAM,CAAC;mBAC7B,OAAO;sBACJ,OAAO;mBACV,OAAO;qBACL,OAAO;KA6lBiE,CAAC,4BAA2B;oBAChG,OAAO,KAAK,EAAE,gBAAgB,CAAC,EAAE,CAAC,GAAG,IAAI;WAClD,GAAG;;;;YAtDgB,GAAG;;cApiB1B,uBAAuB,SAAS,MAAM,KAAG,IAAI;;;;YA+lBP,OAAO,CAAC,OAAO,WAAW,CAAC;;AAnoBvE,wBAmoB4E;AAC5E,KAAK,mBAAmB,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG,EAAE,CAAC"}
|
@@ -37,7 +37,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
37
37
|
defaultConfigMap: {},
|
38
38
|
alignTop: { type: Boolean },
|
39
39
|
disableMore: { type: Boolean },
|
40
|
-
readonly: { type: Boolean }
|
40
|
+
readonly: { type: Boolean },
|
41
|
+
noOrdering: { type: Boolean }
|
41
42
|
},
|
42
43
|
emits: ["update:header-padding"],
|
43
44
|
setup(__props) {
|
@@ -179,7 +180,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
179
180
|
field: typeof field.field === "string" ? field.field : field.field?.(_ctx.queryParams),
|
180
181
|
class: normalizeClass(field.cssClass),
|
181
182
|
ordering: ordering.value,
|
182
|
-
disabled: !field.field,
|
183
|
+
disabled: _ctx.noOrdering || !field.field,
|
183
184
|
"allow-resize": field.allowResize,
|
184
185
|
"item-class": field.cssClassHeader,
|
185
186
|
"width-style": getFieldStyles(field.label),
|