@dazhicheng/ui 1.6.71 → 1.6.72

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 (142) hide show
  1. package/dist/assets/svg/download.svg.js +1 -1
  2. package/dist/components/tt-api-component/index.js +4 -3
  3. package/dist/components/tt-api-component/index.vue2.js +3 -2
  4. package/dist/components/tt-area/TtArea.vue.js +1 -1
  5. package/dist/components/tt-area/TtArea.vue3.js +3 -2
  6. package/dist/components/tt-button/index.d.ts +28 -28
  7. package/dist/components/tt-button/index.js +5 -4
  8. package/dist/components/tt-button/index.vue.d.ts +16 -16
  9. package/dist/components/tt-button/index.vue2.js +18 -17
  10. package/dist/components/tt-checkbox/index.js +4 -3
  11. package/dist/components/tt-checkbox/index.vue.js +9 -8
  12. package/dist/components/tt-config-provider/index.js +4 -3
  13. package/dist/components/tt-custom-export-modal/index.js +4 -3
  14. package/dist/components/tt-custom-export-modal/src/assets/search.svg.js +5 -5
  15. package/dist/components/tt-custom-export-modal/src/assets/star.svg.js +3 -3
  16. package/dist/components/tt-custom-export-modal/src/assets/trash.svg.js +7 -7
  17. package/dist/components/tt-custom-export-modal/src/components/FieldGridSection.vue.js +1 -1
  18. package/dist/components/tt-custom-export-modal/src/components/FieldGridSection.vue2.js +3 -2
  19. package/dist/components/tt-custom-export-panel/index.js +4 -3
  20. package/dist/components/tt-custom-export-panel/src/TtCustomExportPanel.vue.js +3 -2
  21. package/dist/components/tt-drawer/index.d.ts +109 -109
  22. package/dist/components/tt-drawer/index.js +4 -3
  23. package/dist/components/tt-drawer/src/RenderDrawer.vue.d.ts +60 -60
  24. package/dist/components/tt-drawer/src/RenderDrawer.vue.js +3 -2
  25. package/dist/components/tt-drawer/src/components/DrawerFooter.vue.js +3 -2
  26. package/dist/components/tt-drawer/src/components/DrawerHeader.vue.js +2 -2
  27. package/dist/components/tt-drawer/src/components/DrawerHeader.vue2.js +7 -6
  28. package/dist/components/tt-drawer/src/props.js +3 -2
  29. package/dist/components/tt-drawer/src/utils/drawer-api.js +3 -2
  30. package/dist/components/tt-empty/index.d.ts +4 -4
  31. package/dist/components/tt-empty/index.js +4 -3
  32. package/dist/components/tt-form/index.js +9 -8
  33. package/dist/components/tt-form/src/components/ExpandableArrow.vue2.js +8 -7
  34. package/dist/components/tt-form/src/components/FormActions.vue2.js +33 -32
  35. package/dist/components/tt-form/src/components/FormElInput.vue.d.ts +10 -10
  36. package/dist/components/tt-form/src/form/FormDescription.vue.js +3 -2
  37. package/dist/components/tt-form/src/form/FormItem.vue.js +3 -2
  38. package/dist/components/tt-form/src/form/FormLabel.vue.js +6 -5
  39. package/dist/components/tt-form/src/form/RenderContent.vue.js +7 -6
  40. package/dist/components/tt-form/src/form-render/FormField.vue2.js +3 -2
  41. package/dist/components/tt-form/src/form-render/FormLabel.vue2.js +3 -2
  42. package/dist/components/tt-form/src/form-render/array-register/FormArrayRegister.js +1 -0
  43. package/dist/components/tt-form/src/form-render/array-register/utils.js +3 -2
  44. package/dist/components/tt-form/src/form-render/dependencies.js +30 -29
  45. package/dist/components/tt-form/src/form-render/form.vue2.js +3 -2
  46. package/dist/components/tt-form/src/form-render/helper.js +3 -2
  47. package/dist/components/tt-form/src/form-render/rootWrapperClass.js +3 -2
  48. package/dist/components/tt-form/src/group-form/GroupForm.vue2.js +3 -2
  49. package/dist/components/tt-form/src/group-form/GroupSection.vue2.js +1 -0
  50. package/dist/components/tt-form/src/group-form/LazyFormField.vue.js +3 -2
  51. package/dist/components/tt-form/src/group-form/groupFormApi.js +3 -2
  52. package/dist/components/tt-form/src/hooks/useForwardPriorityValues.js +13 -12
  53. package/dist/components/tt-form/src/hooks/useSelectCollapse.js +3 -2
  54. package/dist/components/tt-form/src/index.vue2.js +3 -2
  55. package/dist/components/tt-form/src/useFormContext.js +10 -9
  56. package/dist/components/tt-form-item-error-tooltip/index.js +5 -4
  57. package/dist/components/tt-form-item-error-tooltip/index.vue.js +3 -2
  58. package/dist/components/tt-icon/index.js +6 -5
  59. package/dist/components/tt-icon/index.vue.js +2 -2
  60. package/dist/components/tt-image/index.d.ts +29 -29
  61. package/dist/components/tt-image/index.js +6 -5
  62. package/dist/components/tt-image/src/components/ImageViewer.d.ts +20 -20
  63. package/dist/components/tt-image/src/components/ImageViewer.js +8 -7
  64. package/dist/components/tt-image/tt-image.d.ts +29 -29
  65. package/dist/components/tt-input-textarea/index.js +4 -3
  66. package/dist/components/tt-input-textarea/index.vue.d.ts +40 -40
  67. package/dist/components/tt-input-textarea/index.vue.js +3 -2
  68. package/dist/components/tt-loading/index.js +4 -3
  69. package/dist/components/tt-loading/src/directive.js +4 -3
  70. package/dist/components/tt-loading/src/loading.vue.js +2 -2
  71. package/dist/components/tt-log/index.js +4 -3
  72. package/dist/components/tt-log/index.vue.js +5 -4
  73. package/dist/components/tt-modal/index.d.ts +150 -150
  74. package/dist/components/tt-modal/index.js +8 -7
  75. package/dist/components/tt-modal/src/RenderModal.vue.d.ts +42 -42
  76. package/dist/components/tt-modal/src/RenderModal.vue.js +3 -2
  77. package/dist/components/tt-modal/src/components/ModalFooter.vue2.js +3 -2
  78. package/dist/components/tt-modal/src/components/ModalHeader.vue2.js +3 -2
  79. package/dist/components/tt-modal/src/components/ModalWrapper.vue.js +3 -2
  80. package/dist/components/tt-modal/src/hooks/useModalRender.d.ts +17 -17
  81. package/dist/components/tt-modal/src/props.js +3 -2
  82. package/dist/components/tt-modal/src/utils/modal-api.js +9 -8
  83. package/dist/components/tt-modal-form/index.vue.js +3 -2
  84. package/dist/components/tt-nav-anchor/index.js +4 -3
  85. package/dist/components/tt-nav-anchor/src/TtNavAnchor.vue.js +3 -2
  86. package/dist/components/tt-panel-select/index.js +4 -3
  87. package/dist/components/tt-panel-select/src/common.js +5 -4
  88. package/dist/components/tt-panel-select/src/components/PanelMiddle.vue.d.ts +5 -5
  89. package/dist/components/tt-panel-select/src/hooks/usePanelData.js +3 -2
  90. package/dist/components/tt-panel-select/src/index.vue.d.ts +5 -5
  91. package/dist/components/tt-panel-select/src/index.vue.js +3 -2
  92. package/dist/components/tt-radio-group/index.js +4 -3
  93. package/dist/components/tt-radio-group/index.vue.js +18 -17
  94. package/dist/components/tt-select/index.js +4 -3
  95. package/dist/components/tt-select/src/Select.vue.js +3 -2
  96. package/dist/components/tt-select/src/components/SelectTable.vue.js +3 -2
  97. package/dist/components/tt-select/src/components/Table.vue.js +3 -2
  98. package/dist/components/tt-select/src/hooks/useDataSource.js +3 -2
  99. package/dist/components/tt-select/src/hooks/useSelect.js +18 -17
  100. package/dist/components/tt-select/src/hooks/useSelectTableEvent.js +3 -2
  101. package/dist/components/tt-table/index.js +6 -5
  102. package/dist/components/tt-table/src/Table.vue.js +3 -2
  103. package/dist/components/tt-table/src/TableForm.vue.js +3 -2
  104. package/dist/components/tt-table/src/components/TableAction.vue.js +8 -7
  105. package/dist/components/tt-table/src/components/TableButtons.js +3 -2
  106. package/dist/components/tt-table/src/components/TableColumnModal.vue2.js +3 -2
  107. package/dist/components/tt-table/src/components/TableToolbarTools.vue.js +3 -2
  108. package/dist/components/tt-table/src/hooks/useColumnPersistence.js +17 -16
  109. package/dist/components/tt-table/src/hooks/useColumns.js +3 -2
  110. package/dist/components/tt-table/src/hooks/useKeyboardNav.js +18 -17
  111. package/dist/components/tt-table/src/hooks/usePagination.js +20 -19
  112. package/dist/components/tt-table/src/hooks/useQuery.js +9 -8
  113. package/dist/components/tt-table/src/hooks/useRowIdentity.js +3 -2
  114. package/dist/components/tt-table/src/hooks/useRowSelection.js +25 -24
  115. package/dist/components/tt-table/src/hooks/useSideSlot.js +9 -8
  116. package/dist/components/tt-table/src/hooks/useSyncProps.js +11 -10
  117. package/dist/components/tt-table/src/hooks/useTableData.js +5 -4
  118. package/dist/components/tt-table/src/hooks/useTableFooter.js +13 -12
  119. package/dist/components/tt-table/src/hooks/useTableForm.js +20 -19
  120. package/dist/components/tt-table/src/props.js +7 -6
  121. package/dist/components/tt-table/src/table-mutation-events.js +12 -11
  122. package/dist/components/tt-table/src/utils/action-tab-index.js +5 -4
  123. package/dist/components/tt-table/src/utils/context.js +9 -8
  124. package/dist/components/tt-text/index.js +4 -3
  125. package/dist/components/tt-upload/index.d.ts +60 -60
  126. package/dist/components/tt-upload/index.js +6 -5
  127. package/dist/components/tt-upload/src/TtUpload.vue.d.ts +37 -37
  128. package/dist/components/tt-upload/src/TtUpload.vue.js +3 -2
  129. package/dist/components/tt-upload/src/typing.d.ts +17 -17
  130. package/dist/directives/disabled-tip/index.js +3 -2
  131. package/dist/hooks/useFormSchemasLink.js +3 -2
  132. package/dist/hooks/useFormat.js +3 -2
  133. package/dist/hooks/usePanelSelectSchemas.js +3 -2
  134. package/dist/hooks/useScreenshotOss.js +3 -2
  135. package/dist/packages/hooks/src/useDebounce.js +3 -2
  136. package/dist/packages/hooks/src/useElementScreenshot.js +3 -2
  137. package/dist/packages/hooks/src/usePriorityValue.js +9 -8
  138. package/dist/packages/utils/src/stateHandler.js +15 -9
  139. package/dist/plugins/default/renderCellContent.js +12 -11
  140. package/dist/plugins/vxeTable/switchStatus.js +13 -12
  141. package/dist/style.css +1 -1
  142. package/package.json +3 -3
@@ -6,6 +6,7 @@ import "dayjs";
6
6
  import "numeral";
7
7
  import { triggerWindowResize as q, clnm as G } from "../../../../packages/utils/src/tool.js";
8
8
  import "../../../../node_modules/.pnpm/decimal.js@10.6.0/node_modules/decimal.js/decimal.js";
9
+ import "../../../../packages/utils/src/stateHandler.js";
9
10
  import "../../../../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/aes.js";
10
11
  import "../../../../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/enc-utf8.js";
11
12
  import "../../../../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/mode-ecb.js";
@@ -18,7 +19,7 @@ import "vue-router";
18
19
  import K from "./ExpandableArrow.vue2.js";
19
20
  /* empty css */
20
21
  import { injectFormProps as Q } from "../useFormContext.js";
21
- const he = /* @__PURE__ */ O({
22
+ const yt = /* @__PURE__ */ O({
22
23
  __name: "FormActions",
23
24
  props: {
24
25
  modelValue: { default: !1, type: Boolean },
@@ -35,23 +36,23 @@ const he = /* @__PURE__ */ O({
35
36
  show: !0,
36
37
  ...o(n).submitButtonOptions
37
38
  })), f = L(!1), T = d(() => o(n).showCollapseButton && f.value);
38
- async function h(e) {
39
+ async function h(t) {
39
40
  var a;
40
- e == null || e.preventDefault(), e == null || e.stopPropagation();
41
- const t = o(n);
42
- if (!t.formApi)
41
+ t == null || t.preventDefault(), t == null || t.stopPropagation();
42
+ const e = o(n);
43
+ if (!e.formApi)
43
44
  return;
44
- const { valid: r } = await t.formApi.validate();
45
+ const { valid: r } = await e.formApi.validate();
45
46
  if (!r)
46
47
  return;
47
- const s = S(await t.formApi.getValues()) ?? {};
48
- await ((a = t.handleSubmit) == null ? void 0 : a.call(t, s));
48
+ const s = S(await e.formApi.getValues()) ?? {};
49
+ await ((a = e.handleSubmit) == null ? void 0 : a.call(e, s));
49
50
  }
50
- async function A(e) {
51
+ async function A(t) {
51
52
  var s, a;
52
- e == null || e.preventDefault(), e == null || e.stopPropagation();
53
- const t = o(n), r = S(await ((s = t.formApi) == null ? void 0 : s.getValues())) ?? {};
54
- U(t.handleReset) ? await ((a = t.handleReset) == null ? void 0 : a.call(t, r)) : x.resetForm({}, { force: !0 });
53
+ t == null || t.preventDefault(), t == null || t.stopPropagation();
54
+ const e = o(n), r = S(await ((s = e.formApi) == null ? void 0 : s.getValues())) ?? {};
55
+ U(e.handleReset) ? await ((a = e.handleReset) == null ? void 0 : a.call(e, r)) : x.resetForm({}, { force: !0 });
55
56
  }
56
57
  function p() {
57
58
  c.value = !0, f.value = !1;
@@ -62,27 +63,27 @@ const he = /* @__PURE__ */ O({
62
63
  return;
63
64
  }
64
65
  await H();
65
- const e = D["wrapper-ref"];
66
- if (!e || !e.offsetParent) {
66
+ const t = D["wrapper-ref"];
67
+ if (!t || !t.offsetParent) {
67
68
  p();
68
69
  return;
69
70
  }
70
- const t = Array.from(e.children);
71
- if (t.length <= 1) {
71
+ const e = Array.from(t.children);
72
+ if (e.length <= 1) {
72
73
  p();
73
74
  return;
74
75
  }
75
76
  let r = !1;
76
77
  const s = /* @__PURE__ */ new Set();
77
78
  if (c.value) {
78
- for (const a of t)
79
+ for (const a of e)
79
80
  if (a.getBoundingClientRect().top === 0) {
80
81
  r = !0;
81
82
  continue;
82
83
  }
83
84
  r ? f.value = !0 : p();
84
85
  } else {
85
- for (const a of t) {
86
+ for (const a of e) {
86
87
  const y = a.getBoundingClientRect();
87
88
  y.top !== 0 && s.add(y.top);
88
89
  }
@@ -96,16 +97,16 @@ const he = /* @__PURE__ */ O({
96
97
  }
97
98
  );
98
99
  const N = d(() => {
99
- const e = o(n), t = e.actionLayout || "rowEnd", r = e.actionPosition || "right", s = [
100
+ const t = o(n), e = t.actionLayout || "rowEnd", r = t.actionPosition || "right", s = [
100
101
  "flex",
101
102
  "items-center",
102
103
  "gap-(--tt-spacing-1)",
103
- e.compact ? "pb-(--tt-spacing-1)" : "pb-(--form-valid-error-nocompact-padding-bottom)",
104
- e.layout === "vertical" ? "self-end" : "self-center",
105
- e.layout === "inline" ? "" : "w-full",
106
- e.actionWrapperClass
104
+ t.compact ? "pb-(--tt-spacing-1)" : "pb-(--form-valid-error-nocompact-padding-bottom)",
105
+ t.layout === "vertical" ? "self-end" : "self-center",
106
+ t.layout === "inline" ? "" : "w-full",
107
+ t.actionWrapperClass
107
108
  ];
108
- switch (t) {
109
+ switch (e) {
109
110
  case "newLine": {
110
111
  s.push("col-span-full");
111
112
  break;
@@ -138,11 +139,11 @@ const he = /* @__PURE__ */ O({
138
139
  }), j({
139
140
  handleReset: A,
140
141
  handleSubmit: h
141
- }), (e, t) => (l(), g("div", {
142
+ }), (t, e) => (l(), g("div", {
142
143
  class: I(o(G)(N.value))
143
144
  }, [
144
145
  o(n).actionButtonsReverse ? (l(), g(F, { key: 0 }, [
145
- m(e.$slots, "submit-before"),
146
+ m(t.$slots, "submit-before"),
146
147
  i.value.show ? (l(), v(C(o(P)), b({ key: 0 }, i.value, {
147
148
  class: o(V),
148
149
  type: "primary",
@@ -154,7 +155,7 @@ const he = /* @__PURE__ */ O({
154
155
  _: 1
155
156
  }, 16, ["class"])) : u("", !0)
156
157
  ], 64)) : u("", !0),
157
- m(e.$slots, "reset-before"),
158
+ m(t.$slots, "reset-before"),
158
159
  w.value.show ? (l(), v(C(o(P)), b({ key: 1 }, w.value, { onClick: A }), {
159
160
  default: k(() => [
160
161
  B(R(w.value.content), 1)
@@ -162,7 +163,7 @@ const he = /* @__PURE__ */ O({
162
163
  _: 1
163
164
  }, 16)) : u("", !0),
164
165
  o(n).actionButtonsReverse ? u("", !0) : (l(), g(F, { key: 2 }, [
165
- m(e.$slots, "submit-before"),
166
+ m(t.$slots, "submit-before"),
166
167
  i.value.show ? (l(), v(C(o(P)), b({
167
168
  key: 0,
168
169
  type: "primary",
@@ -174,17 +175,17 @@ const he = /* @__PURE__ */ O({
174
175
  _: 1
175
176
  }, 16, ["class"])) : u("", !0)
176
177
  ], 64)),
177
- m(e.$slots, "expand-before"),
178
+ m(t.$slots, "expand-before"),
178
179
  T.value ? (l(), v(K, {
179
180
  key: 3,
180
181
  "model-value": c.value,
181
- "onUpdate:modelValue": t[0] || (t[0] = (r) => c.value = r),
182
+ "onUpdate:modelValue": e[0] || (e[0] = (r) => c.value = r),
182
183
  class: "ml-[-0.3em]"
183
184
  }, null, 8, ["model-value"])) : u("", !0),
184
- m(e.$slots, "expand-after")
185
+ m(t.$slots, "expand-after")
185
186
  ], 2));
186
187
  }
187
188
  });
188
189
  export {
189
- he as default
190
+ yt as default
190
191
  };
@@ -49,12 +49,12 @@ declare function __VLS_template(): {
49
49
  readonly form?: string | undefined;
50
50
  readonly readonly?: boolean | undefined;
51
51
  readonly clearable?: boolean | undefined;
52
- readonly clearIcon?: import('element-plus/es/utils/vue/icon.mjs').IconPropType | undefined;
52
+ readonly clearIcon?: import('element-plus/es/utils/index.mjs').IconPropType | undefined;
53
53
  readonly showPassword?: boolean | undefined;
54
54
  readonly showWordLimit?: boolean | undefined;
55
55
  readonly wordLimitPosition?: "inside" | "outside" | undefined;
56
- readonly suffixIcon?: import('element-plus/es/utils/vue/icon.mjs').IconPropType | undefined;
57
- readonly prefixIcon?: import('element-plus/es/utils/vue/icon.mjs').IconPropType | undefined;
56
+ readonly suffixIcon?: import('element-plus/es/utils/index.mjs').IconPropType | undefined;
57
+ readonly prefixIcon?: import('element-plus/es/utils/index.mjs').IconPropType | undefined;
58
58
  readonly containerRole?: string | undefined;
59
59
  readonly tabindex?: string | number | undefined;
60
60
  readonly validateEvent?: boolean | undefined;
@@ -135,7 +135,7 @@ declare function __VLS_template(): {
135
135
  disabled: boolean;
136
136
  modelModifiers: import('element-plus').InputModelModifiers;
137
137
  autocomplete: string;
138
- clearIcon: import('element-plus/es/utils/vue/icon.mjs').IconPropType;
138
+ clearIcon: import('element-plus/es/utils/index.mjs').IconPropType;
139
139
  wordLimitPosition: "inside" | "outside";
140
140
  tabindex: string | number;
141
141
  validateEvent: boolean;
@@ -167,7 +167,7 @@ declare function __VLS_template(): {
167
167
  disabled: boolean;
168
168
  modelModifiers: import('element-plus').InputModelModifiers;
169
169
  autocomplete: string;
170
- clearIcon: import('element-plus/es/utils/vue/icon.mjs').IconPropType;
170
+ clearIcon: import('element-plus/es/utils/index.mjs').IconPropType;
171
171
  wordLimitPosition: "inside" | "outside";
172
172
  tabindex: string | number;
173
173
  validateEvent: boolean;
@@ -253,12 +253,12 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {
253
253
  readonly form?: string | undefined;
254
254
  readonly readonly?: boolean | undefined;
255
255
  readonly clearable?: boolean | undefined;
256
- readonly clearIcon?: import('element-plus/es/utils/vue/icon.mjs').IconPropType | undefined;
256
+ readonly clearIcon?: import('element-plus/es/utils/index.mjs').IconPropType | undefined;
257
257
  readonly showPassword?: boolean | undefined;
258
258
  readonly showWordLimit?: boolean | undefined;
259
259
  readonly wordLimitPosition?: "inside" | "outside" | undefined;
260
- readonly suffixIcon?: import('element-plus/es/utils/vue/icon.mjs').IconPropType | undefined;
261
- readonly prefixIcon?: import('element-plus/es/utils/vue/icon.mjs').IconPropType | undefined;
260
+ readonly suffixIcon?: import('element-plus/es/utils/index.mjs').IconPropType | undefined;
261
+ readonly prefixIcon?: import('element-plus/es/utils/index.mjs').IconPropType | undefined;
262
262
  readonly containerRole?: string | undefined;
263
263
  readonly tabindex?: string | number | undefined;
264
264
  readonly validateEvent?: boolean | undefined;
@@ -339,7 +339,7 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {
339
339
  disabled: boolean;
340
340
  modelModifiers: import('element-plus').InputModelModifiers;
341
341
  autocomplete: string;
342
- clearIcon: import('element-plus/es/utils/vue/icon.mjs').IconPropType;
342
+ clearIcon: import('element-plus/es/utils/index.mjs').IconPropType;
343
343
  wordLimitPosition: "inside" | "outside";
344
344
  tabindex: string | number;
345
345
  validateEvent: boolean;
@@ -371,7 +371,7 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {
371
371
  disabled: boolean;
372
372
  modelModifiers: import('element-plus').InputModelModifiers;
373
373
  autocomplete: string;
374
- clearIcon: import('element-plus/es/utils/vue/icon.mjs').IconPropType;
374
+ clearIcon: import('element-plus/es/utils/index.mjs').IconPropType;
375
375
  wordLimitPosition: "inside" | "outside";
376
376
  tabindex: string | number;
377
377
  validateEvent: boolean;
@@ -5,13 +5,14 @@ import "dayjs";
5
5
  import "numeral";
6
6
  import { clnm as l } from "../../../../packages/utils/src/tool.js";
7
7
  import "../../../../node_modules/.pnpm/decimal.js@10.6.0/node_modules/decimal.js/decimal.js";
8
+ import "../../../../packages/utils/src/stateHandler.js";
8
9
  import "../../../../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/aes.js";
9
10
  import "../../../../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/enc-utf8.js";
10
11
  import "../../../../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/mode-ecb.js";
11
12
  import "../../../../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/pad-pkcs7.js";
12
13
  import "lodash-es";
13
14
  import { useFormField as a } from "./useFormField.js";
14
- const d = ["id"], I = /* @__PURE__ */ m({
15
+ const d = ["id"], S = /* @__PURE__ */ m({
15
16
  __name: "FormDescription",
16
17
  props: {
17
18
  class: {}
@@ -27,5 +28,5 @@ const d = ["id"], I = /* @__PURE__ */ m({
27
28
  }
28
29
  });
29
30
  export {
30
- I as default
31
+ S as default
31
32
  };
@@ -5,13 +5,14 @@ import "dayjs";
5
5
  import "numeral";
6
6
  import { clnm as d } from "../../../../packages/utils/src/tool.js";
7
7
  import "../../../../node_modules/.pnpm/decimal.js@10.6.0/node_modules/decimal.js/decimal.js";
8
+ import "../../../../packages/utils/src/stateHandler.js";
8
9
  import "../../../../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/aes.js";
9
10
  import "../../../../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/enc-utf8.js";
10
11
  import "../../../../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/mode-ecb.js";
11
12
  import "../../../../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/pad-pkcs7.js";
12
13
  import "lodash-es";
13
14
  import { FORM_ITEM_INJECTION_KEY as f } from "./injectionKeys.js";
14
- const x = /* @__PURE__ */ e({
15
+ const z = /* @__PURE__ */ e({
15
16
  __name: "FormItem",
16
17
  props: {
17
18
  class: {}
@@ -26,5 +27,5 @@ const x = /* @__PURE__ */ e({
26
27
  }
27
28
  });
28
29
  export {
29
- x as default
30
+ z as default
30
31
  };
@@ -1,16 +1,17 @@
1
- import { defineComponent as e, createElementBlock as m, openBlock as p, normalizeClass as s, unref as l, renderSlot as i } from "vue";
1
+ import { defineComponent as e, createElementBlock as m, openBlock as p, normalizeClass as s, unref as i, renderSlot as l } from "vue";
2
2
  import "axios";
3
3
  import "element-plus";
4
4
  import "dayjs";
5
5
  import "numeral";
6
6
  import { clnm as n } from "../../../../packages/utils/src/tool.js";
7
7
  import "../../../../node_modules/.pnpm/decimal.js@10.6.0/node_modules/decimal.js/decimal.js";
8
+ import "../../../../packages/utils/src/stateHandler.js";
8
9
  import "../../../../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/aes.js";
9
10
  import "../../../../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/enc-utf8.js";
10
11
  import "../../../../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/mode-ecb.js";
11
12
  import "../../../../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/pad-pkcs7.js";
12
13
  import "lodash-es";
13
- const E = /* @__PURE__ */ e({
14
+ const F = /* @__PURE__ */ e({
14
15
  __name: "FormLabel",
15
16
  props: {
16
17
  class: {}
@@ -18,12 +19,12 @@ const E = /* @__PURE__ */ e({
18
19
  setup(o) {
19
20
  const r = o;
20
21
  return (t, a) => (p(), m("label", {
21
- class: s(l(n)(r.class))
22
+ class: s(i(n)(r.class))
22
23
  }, [
23
- i(t.$slots, "default")
24
+ l(t.$slots, "default")
24
25
  ], 2));
25
26
  }
26
27
  });
27
28
  export {
28
- E as default
29
+ F as default
29
30
  };
@@ -8,6 +8,7 @@ import "xe-utils";
8
8
  import "dayjs/plugin/utc";
9
9
  import "dayjs/plugin/timezone";
10
10
  import "../../../../node_modules/.pnpm/decimal.js@10.6.0/node_modules/decimal.js/decimal.js";
11
+ import "../../../../packages/utils/src/stateHandler.js";
11
12
  import "../../../../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/aes.js";
12
13
  import "../../../../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/enc-utf8.js";
13
14
  import "../../../../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/mode-ecb.js";
@@ -15,7 +16,7 @@ import "../../../../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/pa
15
16
  import "lodash-es";
16
17
  import { useFormValues as s } from "vee-validate";
17
18
  import { injectFormProps as l } from "../useFormContext.js";
18
- const k = u({
19
+ const q = u({
19
20
  name: "RenderContent",
20
21
  inheritAttrs: !1,
21
22
  props: {
@@ -27,18 +28,18 @@ const k = u({
27
28
  type: [Object, String, Function]
28
29
  }
29
30
  },
30
- setup(t, { attrs: n, slots: e }) {
31
- const r = s(), [i] = l(), m = f(i).formApi;
32
- return () => t.content ? (c(t.content) || o(t.content)) && t.content !== null ? o(t.content) ? t.content(r.value, m) : p(t.content, {
31
+ setup(t, { attrs: n, slots: r }) {
32
+ const e = s(), [i] = l(), m = f(i).formApi;
33
+ return () => t.content ? (c(t.content) || o(t.content)) && t.content !== null ? o(t.content) ? t.content(e.value, m) : p(t.content, {
33
34
  ...n,
34
35
  props: {
35
36
  ...t,
36
37
  ...n
37
38
  },
38
- slots: e
39
+ slots: r
39
40
  }) : t.content : null;
40
41
  }
41
42
  });
42
43
  export {
43
- k as default
44
+ q as default
44
45
  };
@@ -9,6 +9,7 @@ import "dayjs";
9
9
  import "numeral";
10
10
  import { clnm as j } from "../../../../packages/utils/src/tool.js";
11
11
  import "../../../../node_modules/.pnpm/decimal.js@10.6.0/node_modules/decimal.js/decimal.js";
12
+ import "../../../../packages/utils/src/stateHandler.js";
12
13
  import "../../../../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/aes.js";
13
14
  import "../../../../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/enc-utf8.js";
14
15
  import "../../../../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/mode-ecb.js";
@@ -34,7 +35,7 @@ const Xe = { class: "flex-auto overflow-hidden" }, Ye = {
34
35
  }, Ze = {
35
36
  key: 1,
36
37
  class: "min-h-(--form-valid-error-nocompact-padding-bottom)"
37
- }, Et = /* @__PURE__ */ he({
38
+ }, Pt = /* @__PURE__ */ he({
38
39
  __name: "FormField",
39
40
  props: {
40
41
  component: {},
@@ -360,5 +361,5 @@ const Xe = { class: "flex-auto overflow-hidden" }, Ye = {
360
361
  }
361
362
  });
362
363
  export {
363
- Et as default
364
+ Pt as default
364
365
  };
@@ -9,6 +9,7 @@ import "dayjs";
9
9
  import "numeral";
10
10
  import { clnm as V } from "../../../../packages/utils/src/tool.js";
11
11
  import "../../../../node_modules/.pnpm/decimal.js@10.6.0/node_modules/decimal.js/decimal.js";
12
+ import "../../../../packages/utils/src/stateHandler.js";
12
13
  import "../../../../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/aes.js";
13
14
  import "../../../../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/enc-utf8.js";
14
15
  import "../../../../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/mode-ecb.js";
@@ -27,7 +28,7 @@ const N = {
27
28
  }, E = { class: "flex items-center" }, F = { key: 0 }, q = { class: "flex items-center" }, L = {
28
29
  key: 3,
29
30
  class: "ml-[2px]"
30
- }, le = /* @__PURE__ */ x({
31
+ }, re = /* @__PURE__ */ x({
31
32
  __name: "FormLabel",
32
33
  props: {
33
34
  class: {},
@@ -107,5 +108,5 @@ const N = {
107
108
  }
108
109
  });
109
110
  export {
110
- le as default
111
+ re as default
111
112
  };
@@ -5,6 +5,7 @@ import "dayjs";
5
5
  import "numeral";
6
6
  import { clnm as W } from "../../../../../packages/utils/src/tool.js";
7
7
  import "../../../../../node_modules/.pnpm/decimal.js@10.6.0/node_modules/decimal.js/decimal.js";
8
+ import "../../../../../packages/utils/src/stateHandler.js";
8
9
  import "../../../../../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/aes.js";
9
10
  import "../../../../../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/enc-utf8.js";
10
11
  import "../../../../../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/mode-ecb.js";
@@ -6,6 +6,7 @@ import "dayjs";
6
6
  import "numeral";
7
7
  import { clnm as d } from "../../../../../packages/utils/src/tool.js";
8
8
  import "../../../../../node_modules/.pnpm/decimal.js@10.6.0/node_modules/decimal.js/decimal.js";
9
+ import "../../../../../packages/utils/src/stateHandler.js";
9
10
  import "../../../../../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/aes.js";
10
11
  import "../../../../../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/enc-utf8.js";
11
12
  import "../../../../../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/mode-ecb.js";
@@ -14,11 +15,11 @@ import "lodash-es";
14
15
  function c(r, t, o) {
15
16
  return r || !!t || !!o;
16
17
  }
17
- function M(r, t) {
18
+ function R(r, t) {
18
19
  const { dynamicRules: o, dynamicDisabled: m, props: s } = t, e = r.rules ?? o ?? s.rules, i = r.formItemClass || s.formItemClass, p = a(i) ? i() : i, l = r.wrapperClass, n = c(m, !!r.disabled, !!s.disabled);
19
20
  return { rules: e, formItemClass: d("col-span-1", p), disabled: n, wrapperClass: l };
20
21
  }
21
22
  export {
22
23
  c as getMergedDisabled,
23
- M as resolveArrayItemState
24
+ R as resolveArrayItemState
24
25
  };
@@ -8,6 +8,7 @@ import "xe-utils";
8
8
  import "dayjs/plugin/utc";
9
9
  import "dayjs/plugin/timezone";
10
10
  import "../../../../node_modules/.pnpm/decimal.js@10.6.0/node_modules/decimal.js/decimal.js";
11
+ import "../../../../packages/utils/src/stateHandler.js";
11
12
  import "../../../../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/aes.js";
12
13
  import "../../../../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/enc-utf8.js";
13
14
  import "../../../../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/mode-ecb.js";
@@ -24,67 +25,67 @@ const M = /* @__PURE__ */ new Set([
24
25
  "ElMention",
25
26
  "TtInputTextarea"
26
27
  ]);
27
- function ae(e) {
28
- const t = q(e) ? e : (e == null ? void 0 : e.name) ?? (e == null ? void 0 : e.__name);
29
- return q(t) && M.has(t) ? "required" : "selectRequired";
28
+ function or(r) {
29
+ const e = q(r) ? r : (r == null ? void 0 : r.name) ?? (r == null ? void 0 : r.__name);
30
+ return q(e) && M.has(e) ? "required" : "selectRequired";
30
31
  }
31
- function W(e, t) {
32
- if (t.startsWith("[") && t.endsWith("]")) {
33
- const w = t.slice(1, -1);
34
- return e[w];
32
+ function W(r, e) {
33
+ if (e.startsWith("[") && e.endsWith("]")) {
34
+ const w = e.slice(1, -1);
35
+ return r[w];
35
36
  }
36
- return B(e, t);
37
+ return B(r, e);
37
38
  }
38
- function oe(e) {
39
+ function lr(r) {
39
40
  var E;
40
- const t = C(), [w] = K(), s = V(w).formApi;
41
- if (!t)
41
+ const e = C(), [w] = K(), s = V(w).formApi;
42
+ if (!e)
42
43
  throw new Error("useDependencies should be used within <TtForm>");
43
44
  const l = n(!0), f = n(!1), m = n(!0), g = n(!1), h = n({}), F = N(), S = O(() => {
44
45
  var i;
45
- return (((i = e()) == null ? void 0 : i.triggerFields) ?? []).map((d) => W(t.value, d));
46
+ return (((i = r()) == null ? void 0 : i.triggerFields) ?? []).map((d) => W(e.value, d));
46
47
  });
47
48
  let x = 0;
48
49
  return j(
49
- [S, e],
50
+ [S, r],
50
51
  async ([_, i]) => {
51
52
  var b;
52
53
  if (!i || !((b = i == null ? void 0 : i.triggerFields) != null && b.length))
53
54
  return;
54
- const d = ++x, u = () => d !== x, { componentProps: T, disabled: v, if: c, required: R, rules: y, show: p, trigger: P } = i, a = t.value;
55
+ const d = ++x, u = () => d !== x, { componentProps: T, disabled: v, if: c, required: R, rules: y, show: p, trigger: P } = i, a = e.value;
55
56
  if (o(c)) {
56
- const r = !!await c(a, s);
57
- if (u() || (l.value = r, !l.value)) return;
57
+ const t = !!await c(a, s);
58
+ if (u() || (l.value = t, !l.value)) return;
58
59
  } else if (I(c)) {
59
60
  if (l.value = c, !l.value) return;
60
61
  } else
61
62
  l.value = !0;
62
63
  if (o(p)) {
63
- const r = !!await p(a, s);
64
+ const t = !!await p(a, s);
64
65
  if (u()) return;
65
- m.value = r;
66
+ m.value = t;
66
67
  } else I(p) ? m.value = p : m.value = !0;
67
68
  if (o(T)) {
68
- const r = await T(a, s);
69
+ const t = await T(a, s);
69
70
  if (u()) return;
70
- h.value = r;
71
+ h.value = t;
71
72
  } else
72
73
  h.value = {};
73
74
  if (o(y)) {
74
- const r = await y(a, s);
75
+ const t = await y(a, s);
75
76
  if (u()) return;
76
- F.value = A(r) ? k(r) : r;
77
+ F.value = A(t) ? k(t) : t;
77
78
  } else
78
79
  F.value = void 0;
79
80
  if (o(v)) {
80
- const r = !!await v(a, s);
81
+ const t = !!await v(a, s);
81
82
  if (u()) return;
82
- f.value = r;
83
+ f.value = t;
83
84
  } else I(v) ? f.value = v : f.value = !1;
84
85
  if (o(R)) {
85
- const r = !!await R(a, s);
86
+ const t = !!await R(a, s);
86
87
  if (u()) return;
87
- g.value = r;
88
+ g.value = t;
88
89
  } else
89
90
  g.value = !1;
90
91
  if (o(P)) {
@@ -92,7 +93,7 @@ function oe(e) {
92
93
  await P(a, s);
93
94
  }
94
95
  },
95
- { deep: !0, immediate: ((E = e()) == null ? void 0 : E.immediate) ?? !0 }
96
+ { deep: !0, immediate: ((E = r()) == null ? void 0 : E.immediate) ?? !0 }
96
97
  ), {
97
98
  dynamicComponentProps: h,
98
99
  dynamicRules: F,
@@ -103,7 +104,7 @@ function oe(e) {
103
104
  };
104
105
  }
105
106
  export {
106
- oe as default,
107
- ae as resolveRequiredRuleName,
107
+ lr as default,
108
+ or as resolveRequiredRuleName,
108
109
  W as resolveValueByFieldName
109
110
  };
@@ -8,6 +8,7 @@ import "numeral";
8
8
  import { clnm as F } from "../../../../packages/utils/src/tool.js";
9
9
  import { mergeWithArrayOverride as me } from "../../../../packages/utils/src/merge.js";
10
10
  import "../../../../node_modules/.pnpm/decimal.js@10.6.0/node_modules/decimal.js/decimal.js";
11
+ import "../../../../packages/utils/src/stateHandler.js";
11
12
  import "../../../../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/aes.js";
12
13
  import "../../../../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/enc-utf8.js";
13
14
  import "../../../../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/mode-ecb.js";
@@ -27,7 +28,7 @@ import { getBaseRules as ve, getDefaultValueInZodStack as ge } from "./helper.js
27
28
  import "../../../../node_modules/.pnpm/vue-types@5.1.3_vue@3.5.34_typescript@5.9.3_/node_modules/vue-types/shim/index.modern.js";
28
29
  import { useDesign as ye } from "../../../../packages/hooks/src/useDesign.js";
29
30
  import "vue-router";
30
- const Je = /* @__PURE__ */ ee({
31
+ const Ke = /* @__PURE__ */ ee({
31
32
  name: "FormRender",
32
33
  __name: "form",
33
34
  props: {
@@ -206,5 +207,5 @@ const Je = /* @__PURE__ */ ee({
206
207
  }
207
208
  });
208
209
  export {
209
- Je as default
210
+ Ke as default
210
211
  };
@@ -8,6 +8,7 @@ import "xe-utils";
8
8
  import "dayjs/plugin/utc";
9
9
  import "dayjs/plugin/timezone";
10
10
  import "../../../../node_modules/.pnpm/decimal.js@10.6.0/node_modules/decimal.js/decimal.js";
11
+ import "../../../../packages/utils/src/stateHandler.js";
11
12
  import "../../../../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/aes.js";
12
13
  import "../../../../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/enc-utf8.js";
13
14
  import "../../../../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/mode-ecb.js";
@@ -30,11 +31,11 @@ function f(e) {
30
31
  return f(i(t.def.schema));
31
32
  }
32
33
  }
33
- function v(e) {
34
+ function O(e) {
34
35
  return !e || !p(e) ? !1 : Reflect.has(e, "target") && Reflect.has(e, "stopPropagation");
35
36
  }
36
37
  export {
37
38
  n as getBaseRules,
38
39
  f as getDefaultValueInZodStack,
39
- v as isEventObjectLike
40
+ O as isEventObjectLike
40
41
  };
@@ -5,17 +5,18 @@ import "vue";
5
5
  import "numeral";
6
6
  import { clnm as m } from "../../../../packages/utils/src/tool.js";
7
7
  import "../../../../node_modules/.pnpm/decimal.js@10.6.0/node_modules/decimal.js/decimal.js";
8
+ import "../../../../packages/utils/src/stateHandler.js";
8
9
  import "../../../../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/aes.js";
9
10
  import "../../../../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/enc-utf8.js";
10
11
  import "../../../../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/mode-ecb.js";
11
12
  import "../../../../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/pad-pkcs7.js";
12
13
  import "lodash-es";
13
14
  const s = "grid-cols-1 sm:grid-cols-2 md:grid-cols-3";
14
- function _(o) {
15
+ function A(o) {
15
16
  const { layout: p, compact: r, wrapperClass: i } = o, t = ["flex"];
16
17
  return p === "inline" ? t.push("flex-wrap gap-x-(--tt-spacing-1)") : t.push(r ? "gap-x-(--tt-spacing-1)" : "gap-x-(--tt-spacing-2)", "flex-col grid"), m(...t, i ?? s);
17
18
  }
18
19
  export {
19
20
  s as FORM_RENDER_DEFAULT_WRAPPER_CLASS,
20
- _ as getFormRootWrapperClass
21
+ A as getFormRootWrapperClass
21
22
  };