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