@das-fed/ui 6.4.0-hot.7 → 6.4.0-hot.8

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 (73) hide show
  1. package/esm-map.json +7 -4
  2. package/package.json +5 -6
  3. package/packages/business-components/change-pwd/src/hooks/use-changePwd.d.ts +16 -1
  4. package/packages/business-components/device-panel/index.js +22265 -16373
  5. package/packages/business-components/device-panel/index.js.gz +0 -0
  6. package/packages/business-components/device-panel/src/components/drag-resize/index.vue.d.ts +129 -0
  7. package/packages/business-components/device-panel/src/components/drag-resize/type.d.ts +83 -0
  8. package/packages/business-components/device-panel/style.css +1 -1
  9. package/packages/business-components/device-panel/style.css.gz +0 -0
  10. package/packages/business-components/echarts/index.d.ts +199 -0
  11. package/packages/business-components/echarts/index.js +6959 -6863
  12. package/packages/business-components/echarts/index.js.gz +0 -0
  13. package/packages/business-components/echarts/src/Index.vue.d.ts +24 -0
  14. package/packages/business-components/echarts/src/type.d.ts +19 -0
  15. package/packages/business-components/echarts/style.css +1 -0
  16. package/packages/business-components/import-button/hooks/file.d.ts +1 -1
  17. package/packages/business-components/import-button/index.d.ts +3 -0
  18. package/packages/business-components/import-button/index.js +33 -32
  19. package/packages/business-components/import-button/index.js.gz +0 -0
  20. package/packages/business-components/import-button/src/App.vue.d.ts +1 -0
  21. package/packages/business-components/import-button/style.css +1 -1
  22. package/packages/business-components/model-table-dialog/index.js +156 -135
  23. package/packages/business-components/model-table-dialog/index.js.gz +0 -0
  24. package/packages/business-components/model-table-dialog/style.css +1 -1
  25. package/packages/business-components/model-table-dialog/style.css.gz +0 -0
  26. package/packages/business-components/process-form/App.vue.d.ts +6 -0
  27. package/packages/business-components/process-form/api-service/formPreView.d.ts +16 -0
  28. package/packages/business-components/process-form/apis.d.ts +4 -0
  29. package/packages/business-components/process-form/index.d.ts +12 -0
  30. package/packages/business-components/process-form/index.js +1414 -1000
  31. package/packages/business-components/process-form/index.js.gz +0 -0
  32. package/packages/business-components/process-form/src/hooks/useForm.d.ts +16 -1
  33. package/packages/business-components/process-form/src/hooks/useSelector.d.ts +3 -1
  34. package/packages/business-components/process-form/src/widgets/base/radio.vue.d.ts +6 -2
  35. package/packages/business-components/process-form/src/widgets/store.d.ts +2 -0
  36. package/packages/business-components/process-form/style.css +1 -1
  37. package/packages/business-components/process-form/type.d.ts +2 -0
  38. package/packages/business-components/urgent-panel/index.d.ts +2 -1
  39. package/packages/business-components/urgent-panel/index.js +1505 -1586
  40. package/packages/business-components/urgent-panel/index.js.gz +0 -0
  41. package/packages/business-components/urgent-panel/src/components/drag-resize/index.vue.d.ts +129 -0
  42. package/packages/business-components/urgent-panel/src/components/drag-resize/type.d.ts +83 -0
  43. package/packages/business-components/urgent-panel/style.css +1 -1
  44. package/packages/business-components/urgent-panel/style.css.gz +0 -0
  45. package/packages/components/calendar/index.js +219 -220
  46. package/packages/components/calendar/index.js.gz +0 -0
  47. package/packages/components/form/index.d.ts +35 -1
  48. package/packages/components/form/index.js +76 -40
  49. package/packages/components/form/index.js.gz +0 -0
  50. package/packages/components/form/src/Index.vue.d.ts +3 -0
  51. package/packages/components/form/src/type.d.ts +3 -0
  52. package/packages/components/form/src/utils/flat-form-item.d.ts +1 -0
  53. package/packages/components/form/style.css +1 -1
  54. package/packages/components/image-viewer/index.js +362 -329
  55. package/packages/components/image-viewer/index.js.gz +0 -0
  56. package/packages/components/image-viewer/src/hooks/use-handler-url-name.d.ts +3 -0
  57. package/packages/components/image-viewer/src/hooks/use-imageViewer.d.ts +4 -2
  58. package/packages/components/image-viewer/style.css +1 -1
  59. package/packages/components/image-viewer/style.css.gz +0 -0
  60. package/packages/components/menu-aside/index.d.ts +1 -0
  61. package/packages/components/menu-aside/index.js +55 -52
  62. package/packages/components/menu-aside/index.js.gz +0 -0
  63. package/packages/components/menu-aside/src/Index.vue.d.ts +1 -0
  64. package/packages/components/menu-aside/style.css +1 -1
  65. package/packages/components/menu-aside/style.css.gz +0 -0
  66. package/packages/components/table/index.d.ts +35 -1
  67. package/packages/components/table/index.js +575 -571
  68. package/packages/components/table/index.js.gz +0 -0
  69. package/packages/components/table/src/Table.vue.d.ts +3 -0
  70. package/packages/components/table/src/type.d.ts +3 -0
  71. package/packages/components/table/style.css +1 -1
  72. package/packages/components/table/style.css.gz +0 -0
  73. package/packages/components/table/theme/index.d.ts +2 -0
@@ -48,6 +48,10 @@ declare const DasForm: import("@das-fed/utils").SFCWithInstall<{
48
48
  type: import("vue").PropType<"default" | "overlay">;
49
49
  default: string;
50
50
  };
51
+ autoMarginRight: {
52
+ type: import("vue").PropType<boolean>;
53
+ default: boolean;
54
+ };
51
55
  }>>, {
52
56
  validate: (callback: any) => Promise<void>;
53
57
  validateField: (prop: string, callback: any) => Promise<void>;
@@ -100,6 +104,10 @@ declare const DasForm: import("@das-fed/utils").SFCWithInstall<{
100
104
  type: import("vue").PropType<"default" | "overlay">;
101
105
  default: string;
102
106
  };
107
+ autoMarginRight: {
108
+ type: import("vue").PropType<boolean>;
109
+ default: boolean;
110
+ };
103
111
  }>>, {
104
112
  alignItems: string;
105
113
  marginBottom: string;
@@ -112,6 +120,7 @@ declare const DasForm: import("@das-fed/utils").SFCWithInstall<{
112
120
  labelMarginRight: string;
113
121
  isSearchForm: boolean;
114
122
  errorMode: "default" | "overlay";
123
+ autoMarginRight: boolean;
115
124
  }, true, {}, {}, {
116
125
  P: {};
117
126
  B: {};
@@ -167,6 +176,10 @@ declare const DasForm: import("@das-fed/utils").SFCWithInstall<{
167
176
  type: import("vue").PropType<"default" | "overlay">;
168
177
  default: string;
169
178
  };
179
+ autoMarginRight: {
180
+ type: import("vue").PropType<boolean>;
181
+ default: boolean;
182
+ };
170
183
  }>>, {
171
184
  validate: (callback: any) => Promise<void>;
172
185
  validateField: (prop: string, callback: any) => Promise<void>;
@@ -183,6 +196,7 @@ declare const DasForm: import("@das-fed/utils").SFCWithInstall<{
183
196
  labelMarginRight: string;
184
197
  isSearchForm: boolean;
185
198
  errorMode: "default" | "overlay";
199
+ autoMarginRight: boolean;
186
200
  }>;
187
201
  __isFragment?: never;
188
202
  __isTeleport?: never;
@@ -235,6 +249,10 @@ declare const DasForm: import("@das-fed/utils").SFCWithInstall<{
235
249
  type: import("vue").PropType<"default" | "overlay">;
236
250
  default: string;
237
251
  };
252
+ autoMarginRight: {
253
+ type: import("vue").PropType<boolean>;
254
+ default: boolean;
255
+ };
238
256
  }>>, {
239
257
  validate: (callback: any) => Promise<void>;
240
258
  validateField: (prop: string, callback: any) => Promise<void>;
@@ -251,6 +269,7 @@ declare const DasForm: import("@das-fed/utils").SFCWithInstall<{
251
269
  labelMarginRight: string;
252
270
  isSearchForm: boolean;
253
271
  errorMode: "default" | "overlay";
272
+ autoMarginRight: boolean;
254
273
  }, {}, string, {}> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
255
274
  $slots: {
256
275
  default?(_: {}): any;
@@ -271,6 +290,7 @@ declare const DasFormRef: () => import("vue").Ref<({
271
290
  labelMarginRight: string;
272
291
  isSearchForm: boolean;
273
292
  errorMode: "default" | "overlay";
293
+ autoMarginRight: boolean;
274
294
  }> & Omit<{
275
295
  readonly alignItems: string;
276
296
  readonly marginBottom: string;
@@ -283,6 +303,7 @@ declare const DasFormRef: () => import("vue").Ref<({
283
303
  readonly labelMarginRight: string;
284
304
  readonly isSearchForm: boolean;
285
305
  readonly errorMode: "default" | "overlay";
306
+ readonly autoMarginRight: boolean;
286
307
  readonly cols?: number;
287
308
  } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & Readonly<import("vue").ExtractPropTypes<{
288
309
  alignItems: {
@@ -332,7 +353,11 @@ declare const DasFormRef: () => import("vue").Ref<({
332
353
  type: import("vue").PropType<"default" | "overlay">;
333
354
  default: string;
334
355
  };
335
- }>>, "alignItems" | "marginBottom" | "marginRight" | "labelLength" | "contentWidth" | "labelPosition" | "alignType" | "rules" | "labelMarginRight" | "isSearchForm" | "errorMode">;
356
+ autoMarginRight: {
357
+ type: import("vue").PropType<boolean>;
358
+ default: boolean;
359
+ };
360
+ }>>, "alignItems" | "marginBottom" | "marginRight" | "labelLength" | "contentWidth" | "labelPosition" | "alignType" | "rules" | "labelMarginRight" | "isSearchForm" | "errorMode" | "autoMarginRight">;
336
361
  $attrs: {
337
362
  [x: string]: unknown;
338
363
  };
@@ -394,6 +419,10 @@ declare const DasFormRef: () => import("vue").Ref<({
394
419
  type: import("vue").PropType<"default" | "overlay">;
395
420
  default: string;
396
421
  };
422
+ autoMarginRight: {
423
+ type: import("vue").PropType<boolean>;
424
+ default: boolean;
425
+ };
397
426
  }>>, {
398
427
  validate: (callback: any) => Promise<void>;
399
428
  validateField: (prop: string, callback: any) => Promise<void>;
@@ -410,6 +439,7 @@ declare const DasFormRef: () => import("vue").Ref<({
410
439
  labelMarginRight: string;
411
440
  isSearchForm: boolean;
412
441
  errorMode: "default" | "overlay";
442
+ autoMarginRight: boolean;
413
443
  }, {}, string, {}> & {
414
444
  beforeCreate?: (() => void) | (() => void)[];
415
445
  created?: (() => void) | (() => void)[];
@@ -478,6 +508,10 @@ declare const DasFormRef: () => import("vue").Ref<({
478
508
  type: import("vue").PropType<"default" | "overlay">;
479
509
  default: string;
480
510
  };
511
+ autoMarginRight: {
512
+ type: import("vue").PropType<boolean>;
513
+ default: boolean;
514
+ };
481
515
  }>>, "validate" | "validateField" | "resetField"> & import("vue").ShallowUnwrapRef<{
482
516
  validate: (callback: any) => Promise<void>;
483
517
  validateField: (prop: string, callback: any) => Promise<void>;
@@ -1,8 +1,11 @@
1
1
  import '@das-fed/ui/packages/components/form/style.css';
2
- import { defineComponent as p, provide as u, reactive as v, openBlock as g, createElementBlock as h, normalizeClass as F, normalizeStyle as y, renderSlot as _, ref as x } from "vue";
3
- import { withInstall as I } from "@das-fed/utils/with-install/index";
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";
4
4
  import "@das-fed/ui/packages/global/theme";
5
- const S = /* @__PURE__ */ p({
5
+ const v = (l, n = "children") => Array.isArray(l) && l.length ? l.reduce((t, s) => {
6
+ let a = s[n], i = { ...s };
7
+ return delete i[n], a && a.length ? t.concat(v(a, n)) : typeof i.type == "object" && i.props ? t.concat(i) : t;
8
+ }, []) : [], P = /* @__PURE__ */ M({
6
9
  __name: "Index",
7
10
  props: {
8
11
  labelLength: { default: 4 },
@@ -16,51 +19,84 @@ const S = /* @__PURE__ */ p({
16
19
  rules: { default: {} },
17
20
  labelMarginRight: { default: "30px" },
18
21
  isSearchForm: { type: Boolean, default: !1 },
19
- errorMode: { default: "default" }
22
+ errorMode: { default: "default" },
23
+ autoMarginRight: { type: Boolean, default: !1 }
20
24
  },
21
- setup(l, { expose: r }) {
22
- const o = l;
23
- let a = [];
24
- u("DasForm", v({ props: o, addField: (e) => {
25
- a.push(e);
25
+ setup(l, { expose: n }) {
26
+ const t = l, s = y(), a = N(), i = () => {
27
+ const e = a.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);
42
+ });
43
+ };
44
+ k(
45
+ () => a.default(),
46
+ (e) => {
47
+ S(() => {
48
+ u();
49
+ });
50
+ },
51
+ {
52
+ deep: !0
53
+ }
54
+ );
55
+ let c = [];
56
+ b("DasForm", w({ props: t, addField: (e) => {
57
+ c.push(e);
26
58
  }, removeField: (e) => {
27
- a = a.filter((t) => t.timeStamp !== e.timeStamp);
59
+ c = c.filter((o) => o.timeStamp !== e.timeStamp);
28
60
  } }));
29
- const i = async (e) => {
30
- const t = await f();
31
- e(t);
32
- }, d = async (e, t) => {
33
- const m = await a.find((n) => n.propName === e && n.rules.length > 0).validate();
34
- t(m);
35
- }, f = async () => {
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 () => {
36
68
  let e = !0;
37
- for (const t of a)
38
- t.propName && t.rules.length > 0 && (await t.validate() || (e = !1));
69
+ for (const o of c)
70
+ o.propName && o.rules.length > 0 && (await o.validate() || (e = !1));
39
71
  return e;
72
+ }, _ = () => {
73
+ c.forEach((e) => {
74
+ e.resetError();
75
+ });
76
+ }, u = () => {
77
+ t.autoMarginRight && t.alignType === "horizontal" && i();
40
78
  };
41
- return r({
42
- validate: i,
43
- validateField: d,
44
- resetField: () => {
45
- a.forEach((e) => {
46
- e.resetError();
47
- });
48
- }
49
- }), (e, t) => (g(), h("div", {
50
- class: F(["das-ui-form", { horizontal: e.alignType === "horizontal" }]),
51
- style: y({ alignItems: e.alignItems })
79
+ return z(u), n({
80
+ validate: F,
81
+ validateField: R,
82
+ resetField: _
83
+ }), (e, o) => (B(), C("div", {
84
+ class: E(["das-ui-form", { horizontal: e.alignType === "horizontal" }]),
85
+ ref_key: "$formRef",
86
+ ref: s,
87
+ style: T({ alignItems: e.alignItems })
52
88
  }, [
53
- _(e.$slots, "default", {}, void 0, !0)
89
+ D(e.$slots, "default", {}, void 0, !0)
54
90
  ], 6));
55
91
  }
56
- }), b = (l, r) => {
57
- const o = l.__vccOpts || l;
58
- for (const [a, s] of r)
59
- o[a] = s;
60
- return o;
61
- }, w = /* @__PURE__ */ b(S, [["__scopeId", "data-v-7f30b002"]]), R = I(w), C = () => x(null);
92
+ }), j = (l, n) => {
93
+ const t = l.__vccOpts || l;
94
+ for (const [s, a] of n)
95
+ t[s] = a;
96
+ return t;
97
+ }, L = /* @__PURE__ */ j(P, [["__scopeId", "data-v-45483b0c"]]), K = $(L), Q = () => y(null);
62
98
  export {
63
- R as DasForm,
64
- C as DasFormRef,
65
- R as default
99
+ K as DasForm,
100
+ Q as DasFormRef,
101
+ K as default
66
102
  };
@@ -14,6 +14,7 @@ declare const __VLS_component: import("vue").DefineComponent<__VLS_WithDefaults<
14
14
  labelMarginRight: string;
15
15
  errorMode: string;
16
16
  isSearchForm: boolean;
17
+ autoMarginRight: boolean;
17
18
  }>, {
18
19
  validate: (callback: any) => Promise<void>;
19
20
  validateField: (prop: string, callback: any) => Promise<void>;
@@ -30,6 +31,7 @@ declare const __VLS_component: import("vue").DefineComponent<__VLS_WithDefaults<
30
31
  labelMarginRight: string;
31
32
  errorMode: string;
32
33
  isSearchForm: boolean;
34
+ autoMarginRight: boolean;
33
35
  }>>>, {
34
36
  alignItems: string;
35
37
  marginBottom: string;
@@ -42,6 +44,7 @@ declare const __VLS_component: import("vue").DefineComponent<__VLS_WithDefaults<
42
44
  labelMarginRight: string;
43
45
  isSearchForm: boolean;
44
46
  errorMode: "default" | "overlay";
47
+ autoMarginRight: boolean;
45
48
  }, {}>;
46
49
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
47
50
  export default _default;
@@ -34,4 +34,7 @@ export interface Props {
34
34
 
35
35
 
36
36
  errorMode?: 'default' | 'overlay'
37
+
38
+
39
+ autoMarginRight?: boolean
37
40
  }
@@ -0,0 +1 @@
1
+ export declare const flatFormItem: (list: any[], child?: string) => any[];
@@ -1 +1 @@
1
- .das-ui-form[data-v-7f30b002]{display:flex;flex-direction:column;align-content:flex-start}.das-ui-form.horizontal[data-v-7f30b002]{flex-direction:row;flex-wrap:wrap}
1
+ .das-ui-form[data-v-45483b0c]{display:flex;flex-direction:column;align-content:flex-start}.das-ui-form.horizontal[data-v-45483b0c]{flex-direction:row;flex-wrap:wrap}