@dazhicheng/ui 1.6.33 → 1.6.34
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/tt-form/src/config.js +33 -31
- package/dist/components/tt-form/src/form-render/dependencies.js +46 -39
- package/dist/components/tt-form/src/types.d.ts +2 -0
- package/dist/components/tt-input-textarea/index.d.ts +6 -0
- package/dist/components/tt-input-textarea/index.js +22 -0
- package/dist/components/tt-input-textarea/index.vue.d.ts +1606 -0
- package/dist/components/tt-input-textarea/index.vue.js +375 -0
- package/dist/components/tt-input-textarea/index.vue3.js +5 -0
- package/dist/components/tt-input-textarea/types.d.ts +142 -0
- package/dist/components/tt-modal-form/index.vue.js +13 -12
- package/dist/components/tt-nav-anchor/index.d.ts +3 -3
- package/dist/components/tt-nav-anchor/src/TtNavAnchor.vue.d.ts +1 -1
- package/dist/components/tt-table/index.js +5 -4
- package/dist/components/tt-table/src/TableForm.vue.js +3 -2
- package/dist/index.d.ts +1 -0
- package/dist/index.js +104 -101
- package/dist/packages/utils/src/is.js +37 -32
- package/dist/style.css +1 -1
- package/package.json +1 -1
|
@@ -23,6 +23,7 @@ import "../../tt-radio-group/index.js";
|
|
|
23
23
|
import "../../tt-panel-select/index.js";
|
|
24
24
|
import "../../tt-upload/index.js";
|
|
25
25
|
import "../../tt-api-component/index.js";
|
|
26
|
+
import "../../tt-input-textarea/index.js";
|
|
26
27
|
import "vee-validate";
|
|
27
28
|
import "../../../utils/uppercaseInput.js";
|
|
28
29
|
import { useForm as Ye } from "../../tt-form/src/useForm.js";
|
|
@@ -76,7 +77,7 @@ import ut from "./Table.vue.js";
|
|
|
76
77
|
import { forwardedEventEntries as pt } from "./table-mutation-events.js";
|
|
77
78
|
import { TableFormApi as ct } from "./utils/table-form-api.js";
|
|
78
79
|
import { provideFormActionTestIds as ft } from "./utils/context.js";
|
|
79
|
-
const dt = ["data-testid"], bt = ["data-testid"],
|
|
80
|
+
const dt = ["data-testid"], bt = ["data-testid"], jo = /* @__PURE__ */ ke({
|
|
80
81
|
name: "TtTableForm",
|
|
81
82
|
__name: "TableForm",
|
|
82
83
|
props: mt,
|
|
@@ -405,5 +406,5 @@ const dt = ["data-testid"], bt = ["data-testid"], zo = /* @__PURE__ */ ke({
|
|
|
405
406
|
}
|
|
406
407
|
});
|
|
407
408
|
export {
|
|
408
|
-
|
|
409
|
+
jo as default
|
|
409
410
|
};
|
package/dist/index.d.ts
CHANGED
|
@@ -23,6 +23,7 @@ export * from './components/tt-api-component';
|
|
|
23
23
|
export * from './components/tt-log';
|
|
24
24
|
export * from './components/tt-panel-select';
|
|
25
25
|
export * from './components/tt-radio-group';
|
|
26
|
+
export * from './components/tt-input-textarea';
|
|
26
27
|
export { useFormSchemasLink, type FieldOnChangeContext, type FieldSchemaConfig, type FormScene, type FormSchemasLinkBuilder, type SelectOption, type UseFormSchemasLinkFieldConfig, type UseFormSchemasLinkOptions, type UseFormSchemasLinkResult, } from './hooks/useFormSchemasLink';
|
|
27
28
|
export { useDataPermissionOptions } from './hooks/useDataPermissionOptions';
|
|
28
29
|
export { useBasicDataOptions } from './hooks/useBasicDataOptions';
|
package/dist/index.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { TtButton as p } from "./components/tt-button/index.js";
|
|
2
|
-
import { TtAddButton as
|
|
2
|
+
import { TtAddButton as so } 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
|
-
import { addComponent as s, setConfig as
|
|
6
|
-
import { TtFormItemErrorTooltip as
|
|
5
|
+
import { addComponent as s, setConfig as i } from "./components/tt-form/index.js";
|
|
6
|
+
import { TtFormItemErrorTooltip as d } from "./components/tt-form-item-error-tooltip/index.js";
|
|
7
7
|
import { TtIcon as l, TtAddIcon as u, TtSubIcon as x } from "./components/tt-icon/index.js";
|
|
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
|
|
11
|
+
import { TtModal as lo } 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";
|
|
@@ -19,47 +19,48 @@ import { setup as P } from "./hooks/useSetup.js";
|
|
|
19
19
|
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
|
-
import {
|
|
22
|
+
import { TtInputTextarea as F } from "./components/tt-input-textarea/index.js";
|
|
23
|
+
import { setXHR as xo } from "./utils/xhr.js";
|
|
23
24
|
/* empty css */
|
|
24
25
|
/* empty css */
|
|
25
26
|
/* empty css */
|
|
26
27
|
/* empty css */
|
|
27
28
|
/* empty css */
|
|
28
|
-
import { default as
|
|
29
|
-
import { useModalForm as
|
|
30
|
-
import { TtLoading as
|
|
31
|
-
import { TtTable as
|
|
32
|
-
import { getFileUrlOss as
|
|
33
|
-
import { useFormSchemasLink as
|
|
34
|
-
import { useDataPermissionOptions as
|
|
35
|
-
import { useBasicDataOptions as
|
|
36
|
-
import { usePanelSelectSchemas as
|
|
37
|
-
import { CODES as
|
|
38
|
-
import { useFormat as
|
|
39
|
-
import { useLoading as
|
|
40
|
-
import { useScreenshotOss as
|
|
41
|
-
import { createUppercaseInputProps as
|
|
42
|
-
import { setupDrawer as
|
|
43
|
-
import { useShowDrawer as
|
|
44
|
-
import { setupModal as
|
|
45
|
-
import { useShowModal as
|
|
46
|
-
import { default as
|
|
47
|
-
import { default as
|
|
48
|
-
import { showTtDrawer as
|
|
49
|
-
import { useDrawerResizable as
|
|
50
|
-
import { showTtModal as
|
|
51
|
-
import { closeAllTtModal as
|
|
52
|
-
import { default as
|
|
53
|
-
import * as
|
|
54
|
-
import { useGroupForm as
|
|
55
|
-
import { COMPONENT_MAP as
|
|
56
|
-
import { useForm as
|
|
57
|
-
import { TtImageViewer as
|
|
58
|
-
import { vTtLoading as
|
|
59
|
-
import { Loading as
|
|
60
|
-
import { useTableContext as
|
|
61
|
-
import { useTableFormRender as
|
|
62
|
-
import { ttUploadProps as
|
|
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 Fo, getPostSignatureForOssUploadOss as Ao } from "./api/oss.js";
|
|
34
|
+
import { useFormSchemasLink as Co } from "./hooks/useFormSchemasLink.js";
|
|
35
|
+
import { useDataPermissionOptions as Uo } from "./hooks/useDataPermissionOptions.js";
|
|
36
|
+
import { useBasicDataOptions as Eo } from "./hooks/useBasicDataOptions.js";
|
|
37
|
+
import { usePanelSelectSchemas as vo } from "./hooks/usePanelSelectSchemas.js";
|
|
38
|
+
import { CODES as No, GROUP_BY as Go } from "./hooks/basicDataCodes.js";
|
|
39
|
+
import { useFormat as Ho } from "./hooks/useFormat.js";
|
|
40
|
+
import { useLoading as _o } from "./hooks/useLoading.js";
|
|
41
|
+
import { useScreenshotOss as jo } from "./hooks/useScreenshotOss.js";
|
|
42
|
+
import { createUppercaseInputProps as Xo, toUppercaseInputValue as Yo, uppercaseInputProps as Zo } from "./utils/uppercaseInput.js";
|
|
43
|
+
import { setupDrawer as A } from "./components/tt-drawer/src/index.js";
|
|
44
|
+
import { useShowDrawer as Jo } from "./components/tt-drawer/src/index.js";
|
|
45
|
+
import { setupModal as I } from "./components/tt-modal/src/index.js";
|
|
46
|
+
import { useShowModal as Qo } from "./components/tt-modal/src/index.js";
|
|
47
|
+
import { default as or } from "./directives/disabled-tip/index.js";
|
|
48
|
+
import { default as er } from "./directives/auto-tip/index.js";
|
|
49
|
+
import { showTtDrawer as mr, useDrawerRender as pr } from "./components/tt-drawer/src/hooks/useDrawerRender.js";
|
|
50
|
+
import { useDrawerResizable as fr } from "./components/tt-drawer/src/hooks/useResizable.js";
|
|
51
|
+
import { showTtModal as ir, useModalRender as dr } from "./components/tt-modal/src/hooks/useModalRender.js";
|
|
52
|
+
import { closeAllTtModal as ur, closeTtModal as xr, openTtModal as Tr, ttModal as nr } from "./components/tt-modal/src/utils/modal-service.js";
|
|
53
|
+
import { default as gr } from "./directives/dialog-resize/index.js";
|
|
54
|
+
import * as to from "zod";
|
|
55
|
+
import { useGroupForm as br } from "./components/tt-form/src/group-form/useGroupForm.js";
|
|
56
|
+
import { COMPONENT_MAP as Or } from "./components/tt-form/src/config.js";
|
|
57
|
+
import { useForm as Rr } from "./components/tt-form/src/useForm.js";
|
|
58
|
+
import { TtImageViewer as hr } from "./components/tt-image/src/components/ImageViewer.js";
|
|
59
|
+
import { vTtLoading as Ar } from "./components/tt-loading/src/directive.js";
|
|
60
|
+
import { Loading as Cr } from "./components/tt-loading/src/service.js";
|
|
61
|
+
import { useTableContext as Ur, useTableFormContext as Lr } from "./components/tt-table/src/hooks/useTableContext.js";
|
|
62
|
+
import { useTableFormRender as Br, useTableRender as vr } from "./components/tt-table/src/hooks/useTableRender.js";
|
|
63
|
+
import { ttUploadProps as Nr } from "./components/tt-upload/src/typing.js";
|
|
63
64
|
const C = [
|
|
64
65
|
p,
|
|
65
66
|
n,
|
|
@@ -69,7 +70,7 @@ const C = [
|
|
|
69
70
|
f,
|
|
70
71
|
M,
|
|
71
72
|
a,
|
|
72
|
-
|
|
73
|
+
d,
|
|
73
74
|
T,
|
|
74
75
|
b,
|
|
75
76
|
w,
|
|
@@ -78,17 +79,18 @@ const C = [
|
|
|
78
79
|
O,
|
|
79
80
|
R,
|
|
80
81
|
S,
|
|
81
|
-
h
|
|
82
|
+
h,
|
|
83
|
+
F
|
|
82
84
|
], D = (o) => {
|
|
83
85
|
C.forEach((r) => o.use(r)), Object.keys(e).forEach((r) => {
|
|
84
86
|
const t = e[r], m = r.replace(/([A-Z])/g, "-$1").toLowerCase();
|
|
85
87
|
o.directive(m, t);
|
|
86
|
-
}),
|
|
88
|
+
}), A(o), I(o);
|
|
87
89
|
};
|
|
88
|
-
function
|
|
89
|
-
s(o == null ? void 0 : o.components),
|
|
90
|
+
function mo(o) {
|
|
91
|
+
s(o == null ? void 0 : o.components), i(o == null ? void 0 : o.defineRules, o == null ? void 0 : o.modelPropNameMap);
|
|
90
92
|
}
|
|
91
|
-
const
|
|
93
|
+
const po = {
|
|
92
94
|
/**
|
|
93
95
|
* 安装组件
|
|
94
96
|
* @param app Vue 应用实例
|
|
@@ -102,77 +104,78 @@ const to = {
|
|
|
102
104
|
setup: P
|
|
103
105
|
};
|
|
104
106
|
export {
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
107
|
+
No as CODES,
|
|
108
|
+
Or as COMPONENT_MAP,
|
|
109
|
+
Go as GROUP_BY,
|
|
110
|
+
Cr as Loading,
|
|
109
111
|
n as RenderDrawer,
|
|
110
112
|
c as RenderModal,
|
|
111
|
-
|
|
113
|
+
so as TtAddButton,
|
|
112
114
|
u as TtAddIcon,
|
|
113
115
|
O as TtApiComponent,
|
|
114
|
-
|
|
116
|
+
no as TtArea,
|
|
115
117
|
p as TtButton,
|
|
116
118
|
a as TtCheckbox,
|
|
117
119
|
f as TtEmpty,
|
|
118
120
|
l as TtIcon,
|
|
119
121
|
T as TtImage,
|
|
120
|
-
|
|
121
|
-
|
|
122
|
+
hr as TtImageViewer,
|
|
123
|
+
F as TtInputTextarea,
|
|
124
|
+
bo as TtLoading,
|
|
122
125
|
R as TtLog,
|
|
123
|
-
|
|
126
|
+
lo as TtModal,
|
|
124
127
|
w as TtNavAnchor,
|
|
125
128
|
S as TtPanelSelect,
|
|
126
129
|
h as TtRadioGroup,
|
|
127
130
|
g as TtSelect,
|
|
128
131
|
x as TtSubIcon,
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
+
Oo as TtTable,
|
|
133
|
+
Po as TtTableAction,
|
|
134
|
+
Ro as TtTableButton,
|
|
132
135
|
M as TtText,
|
|
133
136
|
b as TtUpload,
|
|
134
137
|
s as addComponent,
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
138
|
+
er as autoTip,
|
|
139
|
+
ur as closeAllTtModal,
|
|
140
|
+
xr as closeTtModal,
|
|
141
|
+
Xo as createUppercaseInputProps,
|
|
142
|
+
po as default,
|
|
143
|
+
gr as dialogResize,
|
|
144
|
+
or as disabledTip,
|
|
145
|
+
mo as formAdapter,
|
|
146
|
+
ho as getFileUrlOss,
|
|
147
|
+
Fo as getPostSignatureForObsUploadHuaweiOss,
|
|
148
|
+
Ao as getPostSignatureForOssUploadOss,
|
|
149
|
+
Tr as openTtModal,
|
|
150
|
+
i as setConfig,
|
|
151
|
+
xo as setXHR,
|
|
152
|
+
A as setupDrawer,
|
|
153
|
+
I as setupModal,
|
|
154
|
+
mr as showTtDrawer,
|
|
155
|
+
ir as showTtModal,
|
|
156
|
+
Yo as toUppercaseInputValue,
|
|
157
|
+
nr as ttModal,
|
|
158
|
+
Nr as ttUploadProps,
|
|
159
|
+
Zo as uppercaseInputProps,
|
|
160
|
+
Eo as useBasicDataOptions,
|
|
161
|
+
Uo as useDataPermissionOptions,
|
|
162
|
+
pr as useDrawerRender,
|
|
163
|
+
fr as useDrawerResizable,
|
|
164
|
+
Rr as useForm,
|
|
165
|
+
Co as useFormSchemasLink,
|
|
166
|
+
Ho as useFormat,
|
|
167
|
+
br as useGroupForm,
|
|
168
|
+
_o as useLoading,
|
|
169
|
+
go as useModalForm,
|
|
170
|
+
dr as useModalRender,
|
|
171
|
+
vo as usePanelSelectSchemas,
|
|
172
|
+
jo as useScreenshotOss,
|
|
173
|
+
Jo as useShowDrawer,
|
|
174
|
+
Qo as useShowModal,
|
|
175
|
+
Ur as useTableContext,
|
|
176
|
+
Lr as useTableFormContext,
|
|
177
|
+
Br as useTableFormRender,
|
|
178
|
+
vr as useTableRender,
|
|
179
|
+
Ar as vTtLoading,
|
|
180
|
+
to as z
|
|
178
181
|
};
|
|
@@ -1,33 +1,33 @@
|
|
|
1
|
-
import
|
|
2
|
-
const
|
|
3
|
-
function t(n,
|
|
4
|
-
return
|
|
5
|
-
}
|
|
6
|
-
function f(n) {
|
|
7
|
-
return typeof n < "u";
|
|
1
|
+
import u from "dayjs";
|
|
2
|
+
const f = Object.prototype.toString;
|
|
3
|
+
function t(n, i) {
|
|
4
|
+
return f.call(n) === `[object ${i}]`;
|
|
8
5
|
}
|
|
9
6
|
function o(n) {
|
|
10
|
-
return
|
|
7
|
+
return typeof n < "u";
|
|
11
8
|
}
|
|
12
9
|
function s(n) {
|
|
10
|
+
return !o(n);
|
|
11
|
+
}
|
|
12
|
+
function c(n) {
|
|
13
13
|
return n === null;
|
|
14
14
|
}
|
|
15
15
|
function e(n) {
|
|
16
|
-
return
|
|
16
|
+
return s(n) || c(n);
|
|
17
17
|
}
|
|
18
|
-
function
|
|
18
|
+
function y(n) {
|
|
19
19
|
return e(n) ? !1 : n instanceof Promise ? !0 : t(n, "Object");
|
|
20
20
|
}
|
|
21
|
-
function
|
|
22
|
-
return e(n) ? !0 :
|
|
21
|
+
function p(n) {
|
|
22
|
+
return e(n) ? !0 : m(n) || r(n) ? n.length === 0 : n instanceof Map || n instanceof Set ? n.size === 0 : y(n) ? Object.keys(n).length === 0 : !1;
|
|
23
23
|
}
|
|
24
|
-
function
|
|
24
|
+
function j(n) {
|
|
25
25
|
return t(n, "Date");
|
|
26
26
|
}
|
|
27
|
-
function
|
|
27
|
+
function N(n) {
|
|
28
28
|
return t(n, "Number") && n === n;
|
|
29
29
|
}
|
|
30
|
-
function
|
|
30
|
+
function r(n) {
|
|
31
31
|
return t(n, "String");
|
|
32
32
|
}
|
|
33
33
|
function a(n) {
|
|
@@ -36,31 +36,36 @@ function a(n) {
|
|
|
36
36
|
function g(n) {
|
|
37
37
|
return t(n, "Boolean");
|
|
38
38
|
}
|
|
39
|
-
function
|
|
39
|
+
function m(n) {
|
|
40
40
|
return Array.isArray(n);
|
|
41
41
|
}
|
|
42
|
-
function
|
|
42
|
+
function S(n) {
|
|
43
43
|
return typeof Element > "u" ? !1 : n instanceof Element;
|
|
44
44
|
}
|
|
45
|
-
const
|
|
46
|
-
function
|
|
47
|
-
return
|
|
45
|
+
const b = typeof window > "u", l = !b;
|
|
46
|
+
function D(n) {
|
|
47
|
+
return r(n) ? !Number.isNaN(Number(n)) : !1;
|
|
48
|
+
}
|
|
49
|
+
function O(n) {
|
|
50
|
+
return u.isDayjs(n);
|
|
48
51
|
}
|
|
49
52
|
export {
|
|
50
53
|
t as is,
|
|
51
|
-
|
|
54
|
+
m as isArray,
|
|
52
55
|
g as isBoolean,
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
56
|
+
l as isClient,
|
|
57
|
+
j as isDate,
|
|
58
|
+
O as isDayjsObject,
|
|
59
|
+
o as isDef,
|
|
60
|
+
S as isElement,
|
|
61
|
+
p as isEmpty,
|
|
58
62
|
a as isFunction,
|
|
59
|
-
|
|
63
|
+
c as isNull,
|
|
60
64
|
e as isNullOrUnDef,
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
65
|
+
N as isNumber,
|
|
66
|
+
y as isObject,
|
|
67
|
+
b as isServer,
|
|
68
|
+
r as isString,
|
|
69
|
+
D as isStringNumber,
|
|
70
|
+
s as isUndefined
|
|
66
71
|
};
|