eco-vue-js 0.9.5 → 0.9.7
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/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.map +1 -1
- package/dist/components/Form/WFormValidator.vue.js +4 -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/Input/WInput.vue.js +4 -2
- package/dist/components/Input/WInputAsync.vue.js +3 -1
- package/dist/components/Input/WInputDate.vue.js +2 -0
- 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 +4 -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.js +2 -0
- package/dist/components/Select/WSelectSingle.vue.js +2 -0
- package/dist/components/Select/WSelectStringified.vue.js +2 -0
- package/dist/components/Tabs/WTabs.vue.d.ts.map +1 -1
- package/dist/components/Tabs/WTabs.vue.js +2 -1
- package/dist/components/Tabs/WTabsItem.vue.d.ts +2 -0
- package/dist/components/Tabs/WTabsItem.vue.d.ts.map +1 -1
- package/dist/components/Tabs/WTabsItem.vue.js +2 -1
- package/dist/components/Tabs/WTabsStepper.vue.js +1 -0
- package/dist/components/Tabs/types.d.ts +2 -1
- package/dist/components/Tabs/types.d.ts.map +1 -1
- package/package.json +1 -1
@@ -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 }) {
|
@@ -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) {
|
@@ -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: {},
|
@@ -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 }) {
|
@@ -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),
|
@@ -10,7 +10,8 @@ declare function __VLS_template(): {
|
|
10
10
|
$props: {
|
11
11
|
readonly customSlots?: import('vue').VNode[] | undefined;
|
12
12
|
readonly lessTransitions?: boolean | undefined;
|
13
|
-
readonly initTab?:
|
13
|
+
readonly initTab?: string | undefined;
|
14
|
+
readonly initTabIndex?: number | undefined;
|
14
15
|
readonly disableMinHeight?: boolean | undefined;
|
15
16
|
readonly "onUpdate:has-changes"?: ((value: boolean) => any) | undefined;
|
16
17
|
readonly "onUpdate:first"?: ((value: boolean) => any) | undefined;
|
@@ -434,7 +435,8 @@ declare const __VLS_component: import('vue').DefineComponent<{
|
|
434
435
|
$props: {
|
435
436
|
readonly customSlots?: import('vue').VNode[] | undefined;
|
436
437
|
readonly lessTransitions?: boolean | undefined;
|
437
|
-
readonly initTab?:
|
438
|
+
readonly initTab?: string | undefined;
|
439
|
+
readonly initTabIndex?: number | undefined;
|
438
440
|
readonly disableMinHeight?: boolean | undefined;
|
439
441
|
readonly "onUpdate:has-changes"?: ((value: boolean) => any) | undefined;
|
440
442
|
readonly "onUpdate:first"?: ((value: boolean) => any) | undefined;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"WModalStepper.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Modal/WModalStepper.vue"],"names":[],"mappings":"AAyKA,iBAAS,cAAc;;uBA4PI,GAAG;yBACA,GAAG
|
1
|
+
{"version":3,"file":"WModalStepper.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Modal/WModalStepper.vue"],"names":[],"mappings":"AAyKA,iBAAS,cAAc;;uBA4PI,GAAG;yBACA,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oDAkEqxS,GAAG,8CAA8C,GAAG,yBAAyB,GAAG,6DAAmC,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oDAAtH,GAAG,8CAA8C,GAAG,yBAAyB,GAAG,6DAAmC,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oDAAtH,GAAG,8CAA8C,GAAG,yBAAyB,GAAG,6DAAmC,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wCAAtH,GAAG,8CAA8C,GAAG,yBAAyB,GAAG,6DAAmC,GAAG;;;;;;;;;;;;;;;;;;WAxD95S,OAAO,IAA6B;EAEjD;AAsBD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;cA7UT,OAAO;eACN,OAAO;mBACH,OAAO;;gBAqBP,IAAI;oBAJA,IAAI;;;;;;cAnBb,OAAO;eACN,OAAO;mBACH,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gDA0W8xS,GAAG,8CAA8C,GAAG,yBAAyB,GAAG,6DAAmC,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gDAAtH,GAAG,8CAA8C,GAAG,yBAAyB,GAAG,6DAAmC,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gDAAtH,GAAG,8CAA8C,GAAG,yBAAyB,GAAG,6DAAmC,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oCAAtH,GAAG,8CAA8C,GAAG,yBAAyB,GAAG,6DAAmC,GAAG;;;;;;;;;;;;;;;;;OAlB16S,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,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: {},
|
@@ -53,8 +53,10 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
53
53
|
skeleton: { type: Boolean },
|
54
54
|
disabled: { type: Boolean },
|
55
55
|
required: { type: Boolean },
|
56
|
+
mandatory: { type: Boolean },
|
56
57
|
noMargin: { type: Boolean },
|
57
58
|
allowCopy: { type: Boolean },
|
59
|
+
emptyValue: {},
|
58
60
|
teleport: { type: Boolean },
|
59
61
|
noZIndex: { type: Boolean },
|
60
62
|
maxHeight: {},
|
@@ -51,8 +51,10 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
51
51
|
skeleton: { type: Boolean },
|
52
52
|
disabled: { type: Boolean },
|
53
53
|
required: { type: Boolean },
|
54
|
+
mandatory: { type: Boolean },
|
54
55
|
noMargin: { type: Boolean },
|
55
56
|
allowCopy: { type: Boolean },
|
57
|
+
emptyValue: {},
|
56
58
|
teleport: { type: Boolean },
|
57
59
|
noZIndex: { type: Boolean },
|
58
60
|
maxHeight: {},
|
@@ -47,8 +47,10 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
47
47
|
skeleton: { type: Boolean },
|
48
48
|
disabled: { type: Boolean },
|
49
49
|
required: { type: Boolean },
|
50
|
+
mandatory: { type: Boolean },
|
50
51
|
noMargin: { type: Boolean },
|
51
52
|
allowCopy: { type: Boolean },
|
53
|
+
emptyValue: {},
|
52
54
|
teleport: { type: Boolean },
|
53
55
|
noZIndex: { type: Boolean },
|
54
56
|
maxHeight: {},
|
@@ -47,8 +47,10 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
47
47
|
skeleton: { type: Boolean },
|
48
48
|
disabled: { type: Boolean },
|
49
49
|
required: { type: Boolean },
|
50
|
+
mandatory: { type: Boolean },
|
50
51
|
noMargin: { type: Boolean },
|
51
52
|
allowCopy: { type: Boolean },
|
53
|
+
emptyValue: {},
|
52
54
|
teleport: { type: Boolean },
|
53
55
|
noZIndex: { type: Boolean },
|
54
56
|
maxHeight: {},
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"WTabs.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Tabs/WTabs.vue"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"WTabs.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Tabs/WTabs.vue"],"names":[],"mappings":"AAkUA,OAAO,KAAK,EAAC,SAAS,EAAC,MAAM,SAAS,CAAA;AAEtC,OAAO,EAAC,KAAK,aAAa,EAA6G,MAAM,KAAK,CAAA;AAElJ,OAAO,KAAK,MAAM,6BAA6B,CAAA;;2BAyEjB,MAAM;yBAMR,MAAM;gBAcjB,IAAI;oBAIA,IAAI;sBAUA,MAAM,6GAAqE,UAAU,CAAC,iBAAiB,CAAC,OAAO,KAAK,CAAC,CAAC,UAAU,CAAC,CAAC;wBAIhI,MAAM;;UAAuE,UAAU,CAAC,iBAAiB,CAAC,OAAO,KAAK,CAAC,CAAC,YAAY,CAAC,CAAC;uBAIvI,MAAM,KAAsE,UAAU,CAAC,iBAAiB,CAAC,OAAO,KAAK,CAAC,CAAC,WAAW,CAAC,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oCAiPlF,GAAG,8CAC7D,GAAG,yBACE,GAAG,6DACE,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oCAH6C,GAAG,8CAC7D,GAAG,yBACE,GAAG,6DACE,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oCAH6C,GAAG,8CAC7D,GAAG,yBACE,GAAG,6DACE,GAAG;;;;;;;;;;;;;;;;;;;;;;;;AAgM/B,wBAeG"}
|
@@ -11,6 +11,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
11
11
|
customSlots: {},
|
12
12
|
lessTransitions: { type: Boolean },
|
13
13
|
initTab: {},
|
14
|
+
initTabIndex: {},
|
14
15
|
side: { type: Boolean },
|
15
16
|
disableMinHeight: { type: Boolean },
|
16
17
|
noHeader: { type: Boolean },
|
@@ -40,7 +41,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
40
41
|
return defaultSlotsAll.value.filter(isTabItem);
|
41
42
|
});
|
42
43
|
const defaultSlotsKeys = computed(() => defaultSlots.value.map((item) => item.props?.name));
|
43
|
-
const current = ref(defaultSlotsKeys.value[props.
|
44
|
+
const current = ref(props.initTab ?? (props.initTabIndex !== void 0 ? defaultSlotsKeys.value[props.initTabIndex] : defaultSlots.value.find((slot) => !!slot.props?.init)?.props?.name ?? defaultSlotsKeys.value[0]));
|
44
45
|
const currentIndex = computed(() => defaultSlotsKeys.value.indexOf(current.value));
|
45
46
|
const isDirect = ref(true);
|
46
47
|
const buttonRef = useTemplateRef("button");
|
@@ -22,6 +22,7 @@ declare const __VLS_component: import('vue').DefineComponent<{
|
|
22
22
|
disabled?: boolean;
|
23
23
|
removable?: boolean;
|
24
24
|
divided?: boolean;
|
25
|
+
init?: boolean;
|
25
26
|
}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{
|
26
27
|
title: string;
|
27
28
|
name: string;
|
@@ -29,6 +30,7 @@ declare const __VLS_component: import('vue').DefineComponent<{
|
|
29
30
|
disabled?: boolean;
|
30
31
|
removable?: boolean;
|
31
32
|
divided?: boolean;
|
33
|
+
init?: boolean;
|
32
34
|
}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
33
35
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
34
36
|
export default _default;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"WTabsItem.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Tabs/WTabsItem.vue"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"WTabsItem.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Tabs/WTabsItem.vue"],"names":[],"mappings":"AAyBA,OAAO,KAAK,EAAC,mBAAmB,EAAC,MAAM,SAAS,CAAA;AA0BhD,iBAAS,cAAc;;kBAVX,MAAM,IAAI;gBACZ,CAAC,KAAK,EAAE,mBAAmB,KAAK,IAAI;iBACnC,CAAC,KAAK,EAAE,mBAAmB,KAAK,IAAI;gBACrC,CAAC,KAAK,EAAE,mBAAmB,KAAK,IAAI;;kBAHlC,MAAM,IAAI;gBACZ,CAAC,KAAK,EAAE,mBAAmB,KAAK,IAAI;iBACnC,CAAC,KAAK,EAAE,mBAAmB,KAAK,IAAI;gBACrC,CAAC,KAAK,EAAE,mBAAmB,KAAK,IAAI;;;WAsChC,OAAO,IAA6B;EAEjD;AAQD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;WA/DZ,MAAM;UACP,MAAM;WACL,YAAY;eACR,OAAO;gBACN,OAAO;cACT,OAAO;WACV,OAAO;;WANP,MAAM;UACP,MAAM;WACL,YAAY;eACR,OAAO;gBACN,OAAO;cACT,OAAO;WACV,OAAO;iGA+Dd,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"}
|
@@ -8,7 +8,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
8
8
|
icon: {},
|
9
9
|
disabled: { type: Boolean },
|
10
10
|
removable: { type: Boolean },
|
11
|
-
divided: { type: Boolean }
|
11
|
+
divided: { type: Boolean },
|
12
|
+
init: { type: Boolean }
|
12
13
|
},
|
13
14
|
setup(__props) {
|
14
15
|
return (_ctx, _cache) => {
|
@@ -8,6 +8,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
8
8
|
customSlots: {},
|
9
9
|
lessTransitions: { type: Boolean },
|
10
10
|
initTab: {},
|
11
|
+
initTabIndex: {},
|
11
12
|
disableMinHeight: { type: Boolean }
|
12
13
|
},
|
13
14
|
emits: ["update:current", "update:current-index", "update:first", "update:last", "update:progress", "update:has-changes", "update:current-title"],
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/Tabs/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,KAAK,EAAC,MAAM,KAAK,CAAA;AAE9B,MAAM,WAAW,SAAS;IACxB,WAAW,CAAC,EAAE,KAAK,EAAE,CAAA;IACrB,eAAe,CAAC,EAAE,OAAO,CAAA;IACzB,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,IAAI,CAAC,EAAE,OAAO,CAAA;IACd,gBAAgB,CAAC,EAAE,OAAO,CAAA;IAC1B,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,WAAW,CAAC,EAAE,OAAO,CAAA;CACtB;AAED,MAAM,MAAM,gBAAgB,GAAG,IAAI,CAAC,SAAS,EAAE,aAAa,GAAG,UAAU,GAAG,MAAM,CAAC,CAAA;AAEnF,MAAM,MAAM,mBAAmB,GAAG;IAChC,QAAQ,EAAE,OAAO,CAAA;IACjB,UAAU,EAAE,OAAO,CAAA;IACnB,QAAQ,EAAE,OAAO,CAAA;CAClB,CAAA"}
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/Tabs/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,KAAK,EAAC,MAAM,KAAK,CAAA;AAE9B,MAAM,WAAW,SAAS;IACxB,WAAW,CAAC,EAAE,KAAK,EAAE,CAAA;IACrB,eAAe,CAAC,EAAE,OAAO,CAAA;IACzB,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,IAAI,CAAC,EAAE,OAAO,CAAA;IACd,gBAAgB,CAAC,EAAE,OAAO,CAAA;IAC1B,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,WAAW,CAAC,EAAE,OAAO,CAAA;CACtB;AAED,MAAM,MAAM,gBAAgB,GAAG,IAAI,CAAC,SAAS,EAAE,aAAa,GAAG,UAAU,GAAG,MAAM,CAAC,CAAA;AAEnF,MAAM,MAAM,mBAAmB,GAAG;IAChC,QAAQ,EAAE,OAAO,CAAA;IACjB,UAAU,EAAE,OAAO,CAAA;IACnB,QAAQ,EAAE,OAAO,CAAA;CAClB,CAAA"}
|