@das-fed/ui 6.4.0-dev.21 → 6.4.0-dev.22
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/package.json +5 -5
- package/packages/business-components/import-button/index.js +62 -62
- package/packages/business-components/import-button/index.js.gz +0 -0
- package/packages/business-components/process-form/index.js +1161 -1021
- package/packages/business-components/process-form/index.js.gz +0 -0
- package/packages/business-components/process-form/src/hooks/useForm.d.ts +1 -1
- package/packages/business-components/process-form/src/utils/encryption/index.d.ts +7 -0
- package/packages/business-components/process-form/src/widgets/base/attachment.vue.d.ts +0 -1
- package/packages/business-components/process-form/src/widgets/base/autocomplete.vue.d.ts +0 -1
- package/packages/business-components/process-form/src/widgets/base/checkbox.vue.d.ts +0 -1
- package/packages/business-components/process-form/src/widgets/base/date.vue.d.ts +0 -1
- package/packages/business-components/process-form/src/widgets/base/dropdown.vue.d.ts +0 -1
- package/packages/business-components/process-form/src/widgets/base/imageViewer.vue.d.ts +0 -1
- package/packages/business-components/process-form/src/widgets/base/input.vue.d.ts +0 -1
- package/packages/business-components/process-form/src/widgets/base/number.vue.d.ts +0 -1
- package/packages/business-components/process-form/src/widgets/base/radio.vue.d.ts +0 -1
- package/packages/business-components/process-form/src/widgets/base/select.vue.d.ts +0 -1
- package/packages/business-components/process-form/src/widgets/base/selector.vue.d.ts +0 -1
- package/packages/business-components/process-form/src/widgets/base/soundRecording.vue.d.ts +0 -1
- package/packages/business-components/process-form/src/widgets/base/switch.vue.d.ts +0 -1
- package/packages/business-components/process-form/src/widgets/base/text.vue.d.ts +0 -1
- package/packages/business-components/process-form/src/widgets/base/textarea.vue.d.ts +0 -1
- package/packages/business-components/process-form/src/widgets/base/time.vue.d.ts +0 -1
- package/packages/business-components/process-form/style.css +1 -1
- package/packages/business-components/process-table/index.js +90 -89
- package/packages/business-components/process-table/index.js.gz +0 -0
- package/packages/components/autocomplete/src/index.vue.d.ts +4 -1
- package/packages/components/form/index.js +51 -60
- package/packages/components/form/index.js.gz +0 -0
- package/packages/components/form/style.css +1 -1
- package/packages/components/form-item/index.js +463 -468
- package/packages/components/form-item/index.js.gz +0 -0
- package/packages/components/form-item/style.css +1 -1
- package/packages/components/form-item/style.css.gz +0 -0
- package/packages/components/input/index.d.ts +3 -0
- package/packages/components/input/index.js +44 -43
- package/packages/components/input/index.js.gz +0 -0
- package/packages/components/input/src/index.vue.d.ts +1 -0
- package/packages/components/input/src/type.d.ts +2 -0
- package/packages/components/input/style.css +1 -1
- package/packages/components/input/style.css.gz +0 -0
- package/packages/components/search-form/index.js +676 -670
- package/packages/components/search-form/index.js.gz +0 -0
- package/packages/components/search-form/style.css +1 -1
- package/packages/components/search-form/style.css.gz +0 -0
- package/packages/components/select-input/index.js +11 -10
- package/packages/components/select-input/index.js.gz +0 -0
- package/packages/components/select-input/style.css +1 -1
- package/packages/components/select-input/style.css.gz +0 -0
- package/packages/components/form/src/utils/flat-form-item.d.ts +0 -1
|
@@ -1,11 +1,8 @@
|
|
|
1
1
|
import '@das-fed/ui/packages/components/form/style.css';
|
|
2
|
-
import { defineComponent as
|
|
3
|
-
import { withInstall as
|
|
2
|
+
import { defineComponent as x, ref as p, useSlots as _, watch as N, nextTick as I, provide as M, reactive as k, onMounted as S, openBlock as b, createElementBlock as w, normalizeClass as z, normalizeStyle as B, renderSlot as C } from "vue";
|
|
3
|
+
import { withInstall as E } from "@das-fed/utils/with-install/index";
|
|
4
4
|
import "@das-fed/ui/packages/global/theme";
|
|
5
|
-
const
|
|
6
|
-
let l = s[n], i = { ...s };
|
|
7
|
-
return delete i[n], l && l.length ? t.concat(v(l, n)) : typeof i.type == "object" && i.props ? t.concat(i) : t;
|
|
8
|
-
}, []) : [], P = /* @__PURE__ */ M({
|
|
5
|
+
const T = /* @__PURE__ */ x({
|
|
9
6
|
__name: "Index",
|
|
10
7
|
props: {
|
|
11
8
|
labelLength: { default: 4 },
|
|
@@ -22,29 +19,23 @@ const v = (a, n = "children") => Array.isArray(a) && a.length ? a.reduce((t, s)
|
|
|
22
19
|
errorMode: { default: "default" },
|
|
23
20
|
autoMarginRight: { type: Boolean, default: !1 }
|
|
24
21
|
},
|
|
25
|
-
setup(
|
|
26
|
-
const
|
|
27
|
-
const e =
|
|
28
|
-
(
|
|
29
|
-
),
|
|
30
|
-
let
|
|
31
|
-
|
|
32
|
-
const
|
|
33
|
-
|
|
34
|
-
const
|
|
35
|
-
|
|
36
|
-
h.style.marginRight = "0px";
|
|
37
|
-
else {
|
|
38
|
-
const A = p.marginRight;
|
|
39
|
-
h.style.marginRight = A || t.marginRight;
|
|
40
|
-
}
|
|
41
|
-
r === f ? r = 0 : r > f && (r = g);
|
|
22
|
+
setup(n, { expose: d }) {
|
|
23
|
+
const a = n, i = p(), c = _(), g = () => {
|
|
24
|
+
const e = ["#comment", "#text"], t = Array.from(i.value.childNodes).filter(
|
|
25
|
+
(s) => !e.includes(s.nodeName)
|
|
26
|
+
), l = a.cols || 4;
|
|
27
|
+
let o = 0;
|
|
28
|
+
t.forEach((s, F) => {
|
|
29
|
+
const f = Number(s.dataset.col ?? 1);
|
|
30
|
+
o += f;
|
|
31
|
+
const m = t[F];
|
|
32
|
+
o === l || o > l && f === l ? m.style.marginRight = "0px" : m.style.marginRight = a.marginRight, o === l ? o = 0 : o > l && (o = f);
|
|
42
33
|
});
|
|
43
34
|
};
|
|
44
|
-
|
|
45
|
-
() =>
|
|
35
|
+
N(
|
|
36
|
+
() => c.default(),
|
|
46
37
|
(e) => {
|
|
47
|
-
|
|
38
|
+
I(() => {
|
|
48
39
|
u();
|
|
49
40
|
});
|
|
50
41
|
},
|
|
@@ -52,57 +43,57 @@ const v = (a, n = "children") => Array.isArray(a) && a.length ? a.reduce((t, s)
|
|
|
52
43
|
deep: !0
|
|
53
44
|
}
|
|
54
45
|
);
|
|
55
|
-
let
|
|
56
|
-
|
|
57
|
-
|
|
46
|
+
let r = [];
|
|
47
|
+
M("DasForm", k({ props: a, addField: (e) => {
|
|
48
|
+
r.push(e);
|
|
58
49
|
}, removeField: (e) => {
|
|
59
|
-
|
|
50
|
+
r = r.filter((t) => t.timeStamp !== e.timeStamp);
|
|
60
51
|
} }));
|
|
61
|
-
const
|
|
62
|
-
const
|
|
63
|
-
e(
|
|
64
|
-
},
|
|
65
|
-
const
|
|
66
|
-
o
|
|
67
|
-
},
|
|
52
|
+
const h = async (e) => {
|
|
53
|
+
const t = await y();
|
|
54
|
+
e(t);
|
|
55
|
+
}, v = async (e, t) => {
|
|
56
|
+
const o = await r.find((s) => s.propName === e && s.rules.length > 0).validate();
|
|
57
|
+
t(o);
|
|
58
|
+
}, y = async () => {
|
|
68
59
|
let e = !0;
|
|
69
|
-
for (const
|
|
70
|
-
|
|
60
|
+
for (const t of r)
|
|
61
|
+
t.propName && t.rules.length > 0 && (await t.validate() || (e = !1));
|
|
71
62
|
return e;
|
|
72
|
-
},
|
|
73
|
-
|
|
63
|
+
}, R = () => {
|
|
64
|
+
r.forEach((e) => {
|
|
74
65
|
e.resetError();
|
|
75
66
|
});
|
|
76
67
|
}, u = () => {
|
|
77
|
-
|
|
68
|
+
a.autoMarginRight && a.alignType === "horizontal" && g();
|
|
78
69
|
};
|
|
79
|
-
return
|
|
80
|
-
validate:
|
|
81
|
-
validateField:
|
|
82
|
-
resetField:
|
|
83
|
-
}), (e,
|
|
70
|
+
return S(u), d({
|
|
71
|
+
validate: h,
|
|
72
|
+
validateField: v,
|
|
73
|
+
resetField: R
|
|
74
|
+
}), (e, t) => (b(), w(
|
|
84
75
|
"div",
|
|
85
76
|
{
|
|
86
|
-
class:
|
|
77
|
+
class: z(["das-ui-form", { horizontal: e.alignType === "horizontal" }]),
|
|
87
78
|
ref_key: "$formRef",
|
|
88
|
-
ref:
|
|
89
|
-
style:
|
|
79
|
+
ref: i,
|
|
80
|
+
style: B({ alignItems: e.alignItems })
|
|
90
81
|
},
|
|
91
82
|
[
|
|
92
|
-
|
|
83
|
+
C(e.$slots, "default", {}, void 0, !0)
|
|
93
84
|
],
|
|
94
85
|
6
|
|
95
86
|
/* CLASS, STYLE */
|
|
96
87
|
));
|
|
97
88
|
}
|
|
98
|
-
}),
|
|
99
|
-
const
|
|
100
|
-
for (const [
|
|
101
|
-
|
|
102
|
-
return
|
|
103
|
-
},
|
|
89
|
+
}), A = (n, d) => {
|
|
90
|
+
const a = n.__vccOpts || n;
|
|
91
|
+
for (const [i, c] of d)
|
|
92
|
+
a[i] = c;
|
|
93
|
+
return a;
|
|
94
|
+
}, D = /* @__PURE__ */ A(T, [["__scopeId", "data-v-e961128b"]]), j = E(D), q = () => p(null);
|
|
104
95
|
export {
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
96
|
+
j as DasForm,
|
|
97
|
+
q as DasFormRef,
|
|
98
|
+
j as default
|
|
108
99
|
};
|
|
Binary file
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.das-ui-form[data-v-
|
|
1
|
+
.das-ui-form[data-v-e961128b]{display:flex;flex-direction:column;align-content:flex-start}.das-ui-form.horizontal[data-v-e961128b]{flex-direction:row;flex-wrap:wrap}
|