@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.
@@ -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"], zo = /* @__PURE__ */ ke({
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
- zo as default
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 ao } from "./components/tt-button/index.js";
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 d } from "./components/tt-form/index.js";
6
- import { TtFormItemErrorTooltip as i } from "./components/tt-form-item-error-tooltip/index.js";
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 so } from "./components/tt-modal/index.js";
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 { setXHR as lo } from "./utils/xhr.js";
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 xo } from "./components/tt-area/TtArea.vue.js";
29
- import { useModalForm as no } from "./components/tt-modal-form/useModalForm.js";
30
- import { TtLoading as go } from "./components/tt-loading/index.js";
31
- import { TtTable as bo, TtTableAction as wo, TtTableButton as Oo } from "./components/tt-table/index.js";
32
- import { getFileUrlOss as Ro, getPostSignatureForObsUploadHuaweiOss as So, getPostSignatureForOssUploadOss as ho } from "./api/oss.js";
33
- import { useFormSchemasLink as Ao } from "./hooks/useFormSchemasLink.js";
34
- import { useDataPermissionOptions as Do } from "./hooks/useDataPermissionOptions.js";
35
- import { useBasicDataOptions as Uo } from "./hooks/useBasicDataOptions.js";
36
- import { usePanelSelectSchemas as Eo } from "./hooks/usePanelSelectSchemas.js";
37
- import { CODES as vo, GROUP_BY as zo } from "./hooks/basicDataCodes.js";
38
- import { useFormat as Go } from "./hooks/useFormat.js";
39
- import { useLoading as Ho } from "./hooks/useLoading.js";
40
- import { useScreenshotOss as _o } from "./hooks/useScreenshotOss.js";
41
- import { createUppercaseInputProps as jo, toUppercaseInputValue as yo, uppercaseInputProps as Xo } from "./utils/uppercaseInput.js";
42
- import { setupDrawer as F } from "./components/tt-drawer/src/index.js";
43
- import { useShowDrawer as Zo } from "./components/tt-drawer/src/index.js";
44
- import { setupModal as A } from "./components/tt-modal/src/index.js";
45
- import { useShowModal as Jo } from "./components/tt-modal/src/index.js";
46
- import { default as Qo } from "./directives/disabled-tip/index.js";
47
- import { default as or } from "./directives/auto-tip/index.js";
48
- import { showTtDrawer as er, useDrawerRender as tr } from "./components/tt-drawer/src/hooks/useDrawerRender.js";
49
- import { useDrawerResizable as pr } from "./components/tt-drawer/src/hooks/useResizable.js";
50
- import { showTtModal as fr, useModalRender as sr } from "./components/tt-modal/src/hooks/useModalRender.js";
51
- import { closeAllTtModal as ir, closeTtModal as lr, openTtModal as ur, ttModal as xr } from "./components/tt-modal/src/utils/modal-service.js";
52
- import { default as nr } from "./directives/dialog-resize/index.js";
53
- import * as ro from "zod";
54
- import { useGroupForm as gr } from "./components/tt-form/src/group-form/useGroupForm.js";
55
- import { COMPONENT_MAP as br } from "./components/tt-form/src/config.js";
56
- import { useForm as Or } from "./components/tt-form/src/useForm.js";
57
- import { TtImageViewer as Rr } from "./components/tt-image/src/components/ImageViewer.js";
58
- import { vTtLoading as hr } from "./components/tt-loading/src/directive.js";
59
- import { Loading as Ar } from "./components/tt-loading/src/service.js";
60
- import { useTableContext as Dr, useTableFormContext as Ir } from "./components/tt-table/src/hooks/useTableContext.js";
61
- import { useTableFormRender as Lr, useTableRender as Er } from "./components/tt-table/src/hooks/useTableRender.js";
62
- import { ttUploadProps as vr } from "./components/tt-upload/src/typing.js";
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
- i,
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
- }), F(o), A(o);
88
+ }), A(o), I(o);
87
89
  };
88
- function eo(o) {
89
- s(o == null ? void 0 : o.components), d(o == null ? void 0 : o.defineRules, o == null ? void 0 : o.modelPropNameMap);
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 to = {
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
- vo as CODES,
106
- br as COMPONENT_MAP,
107
- zo as GROUP_BY,
108
- Ar as Loading,
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
- ao as TtAddButton,
113
+ so as TtAddButton,
112
114
  u as TtAddIcon,
113
115
  O as TtApiComponent,
114
- xo as TtArea,
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
- Rr as TtImageViewer,
121
- go as TtLoading,
122
+ hr as TtImageViewer,
123
+ F as TtInputTextarea,
124
+ bo as TtLoading,
122
125
  R as TtLog,
123
- so as TtModal,
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
- bo as TtTable,
130
- wo as TtTableAction,
131
- Oo as TtTableButton,
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
- or as autoTip,
136
- ir as closeAllTtModal,
137
- lr as closeTtModal,
138
- jo as createUppercaseInputProps,
139
- to as default,
140
- nr as dialogResize,
141
- Qo as disabledTip,
142
- eo as formAdapter,
143
- Ro as getFileUrlOss,
144
- So as getPostSignatureForObsUploadHuaweiOss,
145
- ho as getPostSignatureForOssUploadOss,
146
- ur as openTtModal,
147
- d as setConfig,
148
- lo as setXHR,
149
- F as setupDrawer,
150
- A as setupModal,
151
- er as showTtDrawer,
152
- fr as showTtModal,
153
- yo as toUppercaseInputValue,
154
- xr as ttModal,
155
- vr as ttUploadProps,
156
- Xo as uppercaseInputProps,
157
- Uo as useBasicDataOptions,
158
- Do as useDataPermissionOptions,
159
- tr as useDrawerRender,
160
- pr as useDrawerResizable,
161
- Or as useForm,
162
- Ao as useFormSchemasLink,
163
- Go as useFormat,
164
- gr as useGroupForm,
165
- Ho as useLoading,
166
- no as useModalForm,
167
- sr as useModalRender,
168
- Eo as usePanelSelectSchemas,
169
- _o as useScreenshotOss,
170
- Zo as useShowDrawer,
171
- Jo as useShowModal,
172
- Dr as useTableContext,
173
- Ir as useTableFormContext,
174
- Lr as useTableFormRender,
175
- Er as useTableRender,
176
- hr as vTtLoading,
177
- ro as z
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 i from "dayjs";
2
- const u = Object.prototype.toString;
3
- function t(n, r) {
4
- return u.call(n) === `[object ${r}]`;
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 !f(n);
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 o(n) || s(n);
16
+ return s(n) || c(n);
17
17
  }
18
- function c(n) {
18
+ function y(n) {
19
19
  return e(n) ? !1 : n instanceof Promise ? !0 : t(n, "Object");
20
20
  }
21
- function j(n) {
22
- return e(n) ? !0 : d(n) || y(n) ? n.length === 0 : n instanceof Map || n instanceof Set ? n.size === 0 : c(n) ? Object.keys(n).length === 0 : !1;
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 m(n) {
24
+ function j(n) {
25
25
  return t(n, "Date");
26
26
  }
27
- function b(n) {
27
+ function N(n) {
28
28
  return t(n, "Number") && n === n;
29
29
  }
30
- function y(n) {
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 d(n) {
39
+ function m(n) {
40
40
  return Array.isArray(n);
41
41
  }
42
- function D(n) {
42
+ function S(n) {
43
43
  return typeof Element > "u" ? !1 : n instanceof Element;
44
44
  }
45
- const O = typeof window > "u";
46
- function S(n) {
47
- return i.isDayjs(n);
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
- d as isArray,
54
+ m as isArray,
52
55
  g as isBoolean,
53
- m as isDate,
54
- S as isDayjsObject,
55
- f as isDef,
56
- D as isElement,
57
- j as isEmpty,
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
- s as isNull,
63
+ c as isNull,
60
64
  e as isNullOrUnDef,
61
- b as isNumber,
62
- c as isObject,
63
- O as isServer,
64
- y as isString,
65
- o as isUndefined
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
  };