@dazhicheng/ui 1.6.47 → 1.6.49

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 (53) hide show
  1. package/dist/components/tt-custom-export-modal/index.d.ts +8 -0
  2. package/dist/components/tt-custom-export-modal/index.js +21 -0
  3. package/dist/components/tt-custom-export-modal/src/TtCustomExportModal.vue.d.ts +37 -0
  4. package/dist/components/tt-custom-export-modal/src/TtCustomExportModal.vue.js +322 -0
  5. package/dist/components/tt-custom-export-modal/src/TtCustomExportModal.vue2.js +4 -0
  6. package/dist/components/tt-custom-export-modal/src/api.d.ts +57 -0
  7. package/dist/components/tt-custom-export-modal/src/api.js +38 -0
  8. package/dist/components/tt-custom-export-modal/src/assets/search.svg.js +8 -0
  9. package/dist/components/tt-custom-export-modal/src/assets/star.svg.js +7 -0
  10. package/dist/components/tt-custom-export-modal/src/assets/trash.svg.js +11 -0
  11. package/dist/components/tt-custom-export-modal/src/components/FieldGridSection.vue.d.ts +275 -0
  12. package/dist/components/tt-custom-export-modal/src/components/FieldGridSection.vue.js +7 -0
  13. package/dist/components/tt-custom-export-modal/src/components/FieldGridSection.vue2.js +321 -0
  14. package/dist/components/tt-custom-export-modal/src/components/FieldToolbarSection.vue.d.ts +28 -0
  15. package/dist/components/tt-custom-export-modal/src/components/FieldToolbarSection.vue.js +65 -0
  16. package/dist/components/tt-custom-export-modal/src/components/FieldToolbarSection.vue2.js +4 -0
  17. package/dist/components/tt-custom-export-modal/src/components/TemplateManagerSection.vue.d.ts +31 -0
  18. package/dist/components/tt-custom-export-modal/src/components/TemplateManagerSection.vue.js +152 -0
  19. package/dist/components/tt-custom-export-modal/src/components/TemplateManagerSection.vue2.js +4 -0
  20. package/dist/components/tt-custom-export-modal/src/types/index.d.ts +74 -0
  21. package/dist/components/tt-custom-export-modal/src/types/report.d.ts +118 -0
  22. package/dist/components/tt-drawer/index.d.ts +3 -3
  23. package/dist/components/tt-drawer/src/RenderDrawer.vue.d.ts +1 -1
  24. package/dist/components/tt-form/src/form-render/array-register/FormArrayRegister.d.ts +2 -2
  25. package/dist/components/tt-modal/index.d.ts +32 -32
  26. package/dist/components/tt-modal/src/RenderModal.vue.d.ts +22 -22
  27. package/dist/components/tt-modal/src/components/ModalWrapper.vue.d.ts +2 -2
  28. package/dist/components/tt-modal/src/hooks/useModalRender.d.ts +5 -5
  29. package/dist/components/tt-panel-select/src/components/PanelMiddle.vue.d.ts +1 -1
  30. package/dist/components/tt-panel-select/src/components/PanelRight.vue.d.ts +1 -1
  31. package/dist/components/tt-panel-select/src/index.vue.d.ts +1 -1
  32. package/dist/components/tt-table/index.d.ts +17 -8
  33. package/dist/components/tt-table/index.js +5 -4
  34. package/dist/components/tt-table/src/Table.vue.d.ts +12 -6
  35. package/dist/components/tt-table/src/TableForm.vue.d.ts +146 -3
  36. package/dist/components/tt-table/src/TableForm.vue.js +241 -216
  37. package/dist/components/tt-table/src/components/TableToolbarTools.vue.d.ts +11 -0
  38. package/dist/components/tt-table/src/components/TableToolbarTools.vue.js +33 -25
  39. package/dist/components/tt-table/src/hooks/useSideSlot.d.ts +4 -4
  40. package/dist/components/tt-table/src/hooks/useTableForm.js +13 -12
  41. package/dist/components/tt-table/src/props.d.ts +8 -0
  42. package/dist/components/tt-table/src/props.js +4 -0
  43. package/dist/components/tt-table/src/toolProps.d.ts +5 -0
  44. package/dist/components/tt-table/src/toolProps.js +5 -0
  45. package/dist/components/tt-table/src/types/table.d.ts +8 -0
  46. package/dist/components/tt-table/src/types/tableTools.d.ts +2 -0
  47. package/dist/components/tt-upload/index.d.ts +11 -11
  48. package/dist/components/tt-upload/src/TtUpload.vue.d.ts +4 -4
  49. package/dist/index.d.ts +1 -0
  50. package/dist/index.js +102 -99
  51. package/dist/packages/utils/src/calc.js +26 -8
  52. package/dist/style.css +1 -1
  53. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { TtButton as p } from "./components/tt-button/index.js";
2
- import { TtAddButton as so } from "./components/tt-button/index.js";
2
+ import { TtAddButton as lo } from "./components/tt-button/index.js";
3
3
  import { TtCheckbox as a } from "./components/tt-checkbox/index.js";
4
4
  import { TtEmpty as f } from "./components/tt-empty/index.js";
5
5
  import { addComponent as s, setConfig as i } from "./components/tt-form/index.js";
@@ -8,7 +8,7 @@ import { TtIcon as d, TtAddIcon as u, TtSubIcon as x } from "./components/tt-ico
8
8
  import { TtImage as T } from "./components/tt-image/index.js";
9
9
  import { RenderDrawer as n } from "./components/tt-drawer/index.js";
10
10
  import { RenderModal as c } from "./components/tt-modal/index.js";
11
- import { TtModal as lo } from "./components/tt-modal/index.js";
11
+ import { TtModal as xo } from "./components/tt-modal/index.js";
12
12
  import { TtSelect as g } from "./components/tt-select/index.js";
13
13
  import { TtText as M } from "./components/tt-text/index.js";
14
14
  import { TtUpload as b } from "./components/tt-upload/index.js";
@@ -20,49 +20,51 @@ import { TtLog as R } from "./components/tt-log/index.js";
20
20
  import { TtPanelSelect as S } from "./components/tt-panel-select/index.js";
21
21
  import { TtRadioGroup as h } from "./components/tt-radio-group/index.js";
22
22
  import { TtInputTextarea as A } from "./components/tt-input-textarea/index.js";
23
- import { setXHR as xo } from "./utils/xhr.js";
23
+ import { setXHR as no } from "./utils/xhr.js";
24
+ import { TtCustomExportModal as F } from "./components/tt-custom-export-modal/index.js";
24
25
  /* empty css */
25
26
  /* empty css */
26
27
  /* empty css */
27
28
  /* empty css */
28
29
  /* empty css */
29
- import { default as no } from "./components/tt-area/TtArea.vue.js";
30
- import { useModalForm as go } from "./components/tt-modal-form/useModalForm.js";
31
- import { TtLoading as bo } from "./components/tt-loading/index.js";
32
- import { TtTable as Oo, TtTableAction as Po, TtTableButton as Ro } from "./components/tt-table/index.js";
33
- import { getFileUrlOss as ho, getPostSignatureForObsUploadHuaweiOss as Ao, getPostSignatureForOssUploadOss as Fo } from "./api/oss.js";
34
- import { TtKeepAlive as Co } from "./components/tt-keep-alive/index.js";
35
- import { useFormSchemasLink as Uo } from "./hooks/useFormSchemasLink.js";
36
- import { useDataPermissionOptions as Eo } from "./hooks/useDataPermissionOptions.js";
37
- import { useBasicDataOptions as Bo } from "./hooks/useBasicDataOptions.js";
38
- import { usePanelSelectSchemas as No } from "./hooks/usePanelSelectSchemas.js";
39
- import { CODES as ko, GROUP_BY as Ho } from "./hooks/basicDataCodes.js";
40
- import { useFormat as _o } from "./hooks/useFormat.js";
41
- import { useLoading as jo } from "./hooks/useLoading.js";
42
- import { useScreenshotOss as Ko } from "./hooks/useScreenshotOss.js";
43
- import { createUppercaseInputProps as Yo, toUppercaseInputValue as Zo, uppercaseInputProps as qo } from "./utils/uppercaseInput.js";
44
- import { setupDrawer as F } from "./components/tt-drawer/src/index.js";
45
- import { useShowDrawer as Qo } from "./components/tt-drawer/src/index.js";
30
+ import { default as go } from "./components/tt-area/TtArea.vue.js";
31
+ import { useModalForm as bo } from "./components/tt-modal-form/useModalForm.js";
32
+ import { TtLoading as Oo } from "./components/tt-loading/index.js";
33
+ import { TtTable as Ro, TtTableAction as So, TtTableButton as ho } from "./components/tt-table/index.js";
34
+ import { getFileUrlOss as Fo, getPostSignatureForObsUploadHuaweiOss as Co, getPostSignatureForOssUploadOss as Io } from "./api/oss.js";
35
+ import { TtKeepAlive as Uo } from "./components/tt-keep-alive/index.js";
36
+ import { useFormSchemasLink as Lo } from "./hooks/useFormSchemasLink.js";
37
+ import { useDataPermissionOptions as Bo } from "./hooks/useDataPermissionOptions.js";
38
+ import { useBasicDataOptions as No } from "./hooks/useBasicDataOptions.js";
39
+ import { usePanelSelectSchemas as ko } from "./hooks/usePanelSelectSchemas.js";
40
+ import { CODES as Vo, GROUP_BY as _o } from "./hooks/basicDataCodes.js";
41
+ import { useFormat as jo } from "./hooks/useFormat.js";
42
+ import { useLoading as Ko } from "./hooks/useLoading.js";
43
+ import { useScreenshotOss as Yo } from "./hooks/useScreenshotOss.js";
44
+ import { createUppercaseInputProps as qo, toUppercaseInputValue as Jo, uppercaseInputProps as Qo } from "./utils/uppercaseInput.js";
45
+ import { setupDrawer as C } from "./components/tt-drawer/src/index.js";
46
+ import { useShowDrawer as or } from "./components/tt-drawer/src/index.js";
46
47
  import { setupModal as I } from "./components/tt-modal/src/index.js";
47
- import { useShowModal as or } from "./components/tt-modal/src/index.js";
48
- import { default as er } from "./directives/disabled-tip/index.js";
49
- import { default as mr } from "./directives/auto-tip/index.js";
50
- import { showTtDrawer as ar, useDrawerRender as fr } from "./components/tt-drawer/src/hooks/useDrawerRender.js";
51
- import { useDrawerResizable as ir } from "./components/tt-drawer/src/hooks/useResizable.js";
52
- import { showTtModal as dr, useModalRender as ur } from "./components/tt-modal/src/hooks/useModalRender.js";
53
- import { closeAllTtModal as Tr, closeTtModal as nr, openTtModal as cr, ttModal as gr } from "./components/tt-modal/src/utils/modal-service.js";
54
- import { default as br } from "./directives/dialog-resize/index.js";
55
- import * as to from "zod";
56
- import { useGroupForm as Or } from "./components/tt-form/src/group-form/useGroupForm.js";
57
- import { COMPONENT_MAP as Rr } from "./components/tt-form/src/config.js";
58
- import { useForm as hr } from "./components/tt-form/src/useForm.js";
59
- import { TtImageViewer as Fr } from "./components/tt-image/src/components/ImageViewer.js";
60
- import { vTtLoading as Cr } from "./components/tt-loading/src/directive.js";
61
- import { Loading as Ur } from "./components/tt-loading/src/service.js";
62
- import { useTableContext as Er, useTableFormContext as vr } from "./components/tt-table/src/hooks/useTableContext.js";
63
- import { useTableFormRender as zr, useTableRender as Nr } from "./components/tt-table/src/hooks/useTableRender.js";
64
- import { ttUploadProps as kr } from "./components/tt-upload/src/typing.js";
65
- const C = [
48
+ import { useShowModal as er } from "./components/tt-modal/src/index.js";
49
+ import { default as mr } from "./directives/disabled-tip/index.js";
50
+ import { default as ar } from "./directives/auto-tip/index.js";
51
+ import { showTtDrawer as sr, useDrawerRender as ir } from "./components/tt-drawer/src/hooks/useDrawerRender.js";
52
+ import { useDrawerResizable as dr } from "./components/tt-drawer/src/hooks/useResizable.js";
53
+ import { showTtModal as xr, useModalRender as Tr } from "./components/tt-modal/src/hooks/useModalRender.js";
54
+ import { closeAllTtModal as cr, closeTtModal as gr, openTtModal as Mr, ttModal as br } from "./components/tt-modal/src/utils/modal-service.js";
55
+ import { default as Or } from "./directives/dialog-resize/index.js";
56
+ import * as po from "zod";
57
+ import { useGroupForm as Rr } from "./components/tt-form/src/group-form/useGroupForm.js";
58
+ import { COMPONENT_MAP as hr } from "./components/tt-form/src/config.js";
59
+ import { useForm as Fr } from "./components/tt-form/src/useForm.js";
60
+ import { TtImageViewer as Ir } from "./components/tt-image/src/components/ImageViewer.js";
61
+ import { vTtLoading as Ur } from "./components/tt-loading/src/directive.js";
62
+ import { Loading as Lr } from "./components/tt-loading/src/service.js";
63
+ import { useTableContext as Br, useTableFormContext as zr } from "./components/tt-table/src/hooks/useTableContext.js";
64
+ import { useTableFormRender as Gr, useTableRender as kr } from "./components/tt-table/src/hooks/useTableRender.js";
65
+ import { ttUploadProps as Vr } from "./components/tt-upload/src/typing.js";
66
+ const D = [
67
+ F,
66
68
  p,
67
69
  n,
68
70
  c,
@@ -82,21 +84,21 @@ const C = [
82
84
  S,
83
85
  h,
84
86
  A
85
- ], D = (o) => {
86
- C.forEach((r) => o.use(r)), Object.keys(e).forEach((r) => {
87
+ ], U = (o) => {
88
+ D.forEach((r) => o.use(r)), Object.keys(e).forEach((r) => {
87
89
  const t = e[r], m = r.replace(/([A-Z])/g, "-$1").toLowerCase();
88
90
  o.directive(m, t);
89
- }), F(o), I(o);
91
+ }), C(o), I(o);
90
92
  };
91
- function mo(o) {
93
+ function ao(o) {
92
94
  s(o == null ? void 0 : o.components), i(o == null ? void 0 : o.defineRules, o == null ? void 0 : o.modelPropNameMap);
93
95
  }
94
- const po = {
96
+ const fo = {
95
97
  /**
96
98
  * 安装组件
97
99
  * @param app Vue 应用实例
98
100
  */
99
- install: D,
101
+ install: U,
100
102
  /**
101
103
  * 全局参数设置
102
104
  * @param options 全局参数
@@ -105,79 +107,80 @@ const po = {
105
107
  setup: P
106
108
  };
107
109
  export {
108
- ko as CODES,
109
- Rr as COMPONENT_MAP,
110
- Ho as GROUP_BY,
111
- Ur as Loading,
110
+ Vo as CODES,
111
+ hr as COMPONENT_MAP,
112
+ _o as GROUP_BY,
113
+ Lr as Loading,
112
114
  n as RenderDrawer,
113
115
  c as RenderModal,
114
- so as TtAddButton,
116
+ lo as TtAddButton,
115
117
  u as TtAddIcon,
116
118
  O as TtApiComponent,
117
- no as TtArea,
119
+ go as TtArea,
118
120
  p as TtButton,
119
121
  a as TtCheckbox,
122
+ F as TtCustomExportModal,
120
123
  f as TtEmpty,
121
124
  d as TtIcon,
122
125
  T as TtImage,
123
- Fr as TtImageViewer,
126
+ Ir as TtImageViewer,
124
127
  A as TtInputTextarea,
125
- Co as TtKeepAlive,
126
- bo as TtLoading,
128
+ Uo as TtKeepAlive,
129
+ Oo as TtLoading,
127
130
  R as TtLog,
128
- lo as TtModal,
131
+ xo as TtModal,
129
132
  w as TtNavAnchor,
130
133
  S as TtPanelSelect,
131
134
  h as TtRadioGroup,
132
135
  g as TtSelect,
133
136
  x as TtSubIcon,
134
- Oo as TtTable,
135
- Po as TtTableAction,
136
- Ro as TtTableButton,
137
+ Ro as TtTable,
138
+ So as TtTableAction,
139
+ ho as TtTableButton,
137
140
  M as TtText,
138
141
  b as TtUpload,
139
142
  s as addComponent,
140
- mr as autoTip,
141
- Tr as closeAllTtModal,
142
- nr as closeTtModal,
143
- Yo as createUppercaseInputProps,
144
- po as default,
145
- br as dialogResize,
146
- er as disabledTip,
147
- mo as formAdapter,
148
- ho as getFileUrlOss,
149
- Ao as getPostSignatureForObsUploadHuaweiOss,
150
- Fo as getPostSignatureForOssUploadOss,
151
- cr as openTtModal,
143
+ ar as autoTip,
144
+ cr as closeAllTtModal,
145
+ gr as closeTtModal,
146
+ qo as createUppercaseInputProps,
147
+ fo as default,
148
+ Or as dialogResize,
149
+ mr as disabledTip,
150
+ ao as formAdapter,
151
+ Fo as getFileUrlOss,
152
+ Co as getPostSignatureForObsUploadHuaweiOss,
153
+ Io as getPostSignatureForOssUploadOss,
154
+ Mr as openTtModal,
152
155
  i as setConfig,
153
- xo as setXHR,
154
- F as setupDrawer,
156
+ no as setXHR,
157
+ C as setupDrawer,
155
158
  I as setupModal,
156
- ar as showTtDrawer,
157
- dr as showTtModal,
158
- Zo as toUppercaseInputValue,
159
- gr as ttModal,
160
- kr as ttUploadProps,
161
- qo as uppercaseInputProps,
162
- Bo as useBasicDataOptions,
163
- Eo as useDataPermissionOptions,
164
- fr as useDrawerRender,
165
- ir as useDrawerResizable,
166
- hr as useForm,
167
- Uo as useFormSchemasLink,
168
- _o as useFormat,
169
- Or as useGroupForm,
170
- jo as useLoading,
171
- go as useModalForm,
172
- ur as useModalRender,
173
- No as usePanelSelectSchemas,
174
- Ko as useScreenshotOss,
175
- Qo as useShowDrawer,
176
- or as useShowModal,
177
- Er as useTableContext,
178
- vr as useTableFormContext,
179
- zr as useTableFormRender,
180
- Nr as useTableRender,
181
- Cr as vTtLoading,
182
- to as z
159
+ sr as showTtDrawer,
160
+ xr as showTtModal,
161
+ Jo as toUppercaseInputValue,
162
+ br as ttModal,
163
+ Vr as ttUploadProps,
164
+ Qo as uppercaseInputProps,
165
+ No as useBasicDataOptions,
166
+ Bo as useDataPermissionOptions,
167
+ ir as useDrawerRender,
168
+ dr as useDrawerResizable,
169
+ Fr as useForm,
170
+ Lo as useFormSchemasLink,
171
+ jo as useFormat,
172
+ Rr as useGroupForm,
173
+ Ko as useLoading,
174
+ bo as useModalForm,
175
+ Tr as useModalRender,
176
+ ko as usePanelSelectSchemas,
177
+ Yo as useScreenshotOss,
178
+ or as useShowDrawer,
179
+ er as useShowModal,
180
+ Br as useTableContext,
181
+ zr as useTableFormContext,
182
+ Gr as useTableFormRender,
183
+ kr as useTableRender,
184
+ Ur as vTtLoading,
185
+ po as z
183
186
  };
@@ -1,14 +1,32 @@
1
- import { Decimal as o } from "../../../node_modules/.pnpm/decimal.js@10.6.0/node_modules/decimal.js/decimal.js";
1
+ import { Decimal as l } from "../../../node_modules/.pnpm/decimal.js@10.6.0/node_modules/decimal.js/decimal.js";
2
2
  function i(...e) {
3
- let n = new o(e[0] ?? 0);
4
- for (let t = 1; t < e.length; t++) n = n.add(new o(e[t] ?? 0));
5
- return n.toNumber();
3
+ let t = new l(e[0] ?? 0);
4
+ for (let n = 1; n < e.length; n++) t = t.add(new l(e[n] ?? 0));
5
+ return t.toNumber();
6
6
  }
7
- function l(e) {
8
- const n = Number(e) || e === 0, t = Number.isNaN(Number(e)), r = new o(e);
9
- return n && !t ? r : new o(Number.NaN);
7
+ function c(...e) {
8
+ let t = new l(e[0] ?? 0);
9
+ for (let n = 1; n < e.length; n++) t = t.sub(new l(e[n] ?? 0));
10
+ return t.toNumber();
11
+ }
12
+ function m(...e) {
13
+ let t = new l(e[0] ?? 0);
14
+ for (let n = 1; n < e.length; n++) t = t.mul(new l(e[n] ?? 0));
15
+ return t.toNumber();
16
+ }
17
+ function b(...e) {
18
+ let t = new l(e[0] ?? 0);
19
+ for (let n = 1; n < e.length; n++) t = t.div(new l(e[n] ?? 0));
20
+ return t.toNumber();
21
+ }
22
+ function N(e) {
23
+ const t = Number(e) || e === 0, n = Number.isNaN(Number(e)), o = new l(e);
24
+ return t && !n ? o : new l(Number.NaN);
10
25
  }
11
26
  export {
12
27
  i as add,
13
- l as calc
28
+ N as calc,
29
+ b as divide,
30
+ m as multiply,
31
+ c as subtract
14
32
  };