vft 0.0.494 → 0.0.495

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 (42) hide show
  1. package/dist/index.css +1 -1
  2. package/es/components/carousel/use-carousel.js +1 -1
  3. package/es/components/input/input.vue2.js +4 -4
  4. package/es/components/input-tag/composables/use-input-tag.js +1 -1
  5. package/es/components/super-form/index.d.ts +9 -0
  6. package/es/components/super-form/super-form-item.vue2.js +219 -219
  7. package/es/components/super-form/super-form.vue2.js +97 -95
  8. package/es/components/super-form/types.d.ts +4 -0
  9. package/es/components/super-form/use/use-form-events.d.ts +1 -0
  10. package/es/components/super-form/use/use-form-events.js +205 -171
  11. package/es/components/table/field.js +60 -55
  12. package/es/components/table/index.d.ts +3 -3
  13. package/es/components/table/table.vue.d.ts +1 -1
  14. package/es/components/table/types.d.ts +2 -2
  15. package/es/components/table/use/use-data-source.d.ts +1 -1
  16. package/es/components/table/use/use-data-source.js +136 -119
  17. package/es/components/table/use/use-loading.js +15 -13
  18. package/es/hooks/use-z-index/index.js +3 -3
  19. package/es/package.json.d.ts +1 -1
  20. package/es/package.json.js +1 -1
  21. package/es/utils/vue/vnode.js +1 -1
  22. package/lib/components/input/input.vue2.cjs +1 -1
  23. package/lib/components/super-form/index.d.ts +9 -0
  24. package/lib/components/super-form/super-form-item.vue2.cjs +1 -1
  25. package/lib/components/super-form/super-form.vue2.cjs +1 -1
  26. package/lib/components/super-form/types.d.ts +4 -0
  27. package/lib/components/super-form/use/use-form-events.cjs +1 -1
  28. package/lib/components/super-form/use/use-form-events.d.ts +1 -0
  29. package/lib/components/table/field.cjs +1 -1
  30. package/lib/components/table/index.d.ts +3 -3
  31. package/lib/components/table/table.vue.d.ts +1 -1
  32. package/lib/components/table/types.d.ts +2 -2
  33. package/lib/components/table/use/use-data-source.cjs +1 -1
  34. package/lib/components/table/use/use-data-source.d.ts +1 -1
  35. package/lib/components/table/use/use-loading.cjs +1 -1
  36. package/lib/package.json.cjs +1 -1
  37. package/lib/package.json.d.ts +1 -1
  38. package/package.json +4 -4
  39. package/theme-style/index.css +1 -1
  40. package/theme-style/src/table.scss +2 -4
  41. package/theme-style/vft-table.css +1 -1
  42. package/web-types.json +1 -1
@@ -11,7 +11,7 @@ import "../../hooks/use-model-toggle/index.js";
11
11
  import { useOrderedChildren as ge } from "../../hooks/use-ordered-children/index.js";
12
12
  import "@popperjs/core";
13
13
  import "../../hooks/use-z-index/index.js";
14
- import { CAROUSEL_ITEM_NAME as H, carouselContextKey as Se } from "./constants.js";
14
+ import { carouselContextKey as Se, CAROUSEL_ITEM_NAME as H } from "./constants.js";
15
15
  const L = 300, ze = (t, O, M) => {
16
16
  const {
17
17
  children: o,
@@ -13,8 +13,8 @@ import "../../hooks/use-z-index/index.js";
13
13
  import { UPDATE_MODEL_EVENT as Q } from "@vft/constants";
14
14
  import { useAttrs as Ze, useCursor as _e } from "@vft/use";
15
15
  import { calcTextareaHeight as he } from "./utils.js";
16
- import { useFormSize as et, useFormDisabled as tt } from "../form/hooks/use-form-common-props.js";
17
- import { useFormItem as at, useFormItemInputId as nt } from "../form/hooks/use-form-item.js";
16
+ import { useFormItem as et, useFormItemInputId as tt } from "../form/hooks/use-form-item.js";
17
+ import { useFormSize as at, useFormDisabled as nt } from "../form/hooks/use-form-common-props.js";
18
18
  const ot = ["role"], lt = ["id", "type", "disabled", "formatter", "parser", "readonly", "autocomplete", "tabindex", "aria-label", "placeholder", "form"], st = ["id", "tabindex", "disabled", "readonly", "autocomplete", "aria-label", "placeholder", "form"], It = /* @__PURE__ */ Oe({
19
19
  __name: "input",
20
20
  props: {
@@ -85,9 +85,9 @@ const ot = ["role"], lt = ["id", "type", "disabled", "formatter", "parser", "rea
85
85
  n.is("focus", v.value)
86
86
  ]), d = Ze({
87
87
  excludeKeys: l(() => Object.keys(X.value))
88
- }), { form: Ce, formItem: F } = at(), { inputId: Y } = nt(we.props, {
88
+ }), { form: Ce, formItem: F } = et(), { inputId: Y } = tt(we.props, {
89
89
  formItemContext: F
90
- }), ke = et(), x = tt(), n = ye("input"), Z = ye("textarea"), M = H(), p = H(), v = S(!1), N = S(!1), C = S(!1), K = S(!1), _ = S(), O = H(e.inputStyle), k = l(() => M.value || p.value), T = l(() => G(e.prefixIcon, "icon", { size: 16 })), ee = l(() => G(e.suffixIcon, "icon", { size: 16 })), Ie = l(() => G(e.clearIcon, "icon", {
90
+ }), ke = at(), x = nt(), n = ye("input"), Z = ye("textarea"), M = H(), p = H(), v = S(!1), N = S(!1), C = S(!1), K = S(!1), _ = S(), O = H(e.inputStyle), k = l(() => M.value || p.value), T = l(() => G(e.prefixIcon, "icon", { size: 16 })), ee = l(() => G(e.suffixIcon, "icon", { size: 16 })), Ie = l(() => G(e.clearIcon, "icon", {
91
91
  icon: "icon-circle-close",
92
92
  size: 16
93
93
  })), te = l(() => Ce?.statusIcon ?? !1), I = l(() => F?.validateState || ""), ae = l(
@@ -1,6 +1,6 @@
1
1
  import { shallowRef as B, ref as L, computed as c, watch as G } from "vue";
2
2
  import { EVENT_CODE as g } from "../../../constants/aria.js";
3
- import { CHANGE_EVENT as i, INPUT_EVENT as H, UPDATE_MODEL_EVENT as d } from "../../../constants/event.js";
3
+ import { CHANGE_EVENT as i, UPDATE_MODEL_EVENT as d, INPUT_EVENT as H } from "../../../constants/event.js";
4
4
  import "@vueuse/core";
5
5
  import { isUndefined as K } from "@vft/utils";
6
6
  import { debugWarn as C } from "../../../utils/error.js";
@@ -12,6 +12,9 @@ export declare const VftSuperForm: import("vft/es/utils").SFCWithInstall<{
12
12
  type: import("vue").PropType<string | number>;
13
13
  default: string;
14
14
  };
15
+ formatter: {
16
+ type: import("vue").PropType<(values: import("../types").Recordable) => import("../types").Recordable>;
17
+ };
15
18
  showResetButton: {
16
19
  type: import("vue").PropType<boolean>;
17
20
  default: boolean;
@@ -191,6 +194,9 @@ export declare const VftSuperForm: import("vft/es/utils").SFCWithInstall<{
191
194
  type: import("vue").PropType<string | number>;
192
195
  default: string;
193
196
  };
197
+ formatter: {
198
+ type: import("vue").PropType<(values: import("../types").Recordable) => import("../types").Recordable>;
199
+ };
194
200
  showResetButton: {
195
201
  type: import("vue").PropType<boolean>;
196
202
  default: boolean;
@@ -361,6 +367,9 @@ export declare const VftSuperForm: import("vft/es/utils").SFCWithInstall<{
361
367
  type: import("vue").PropType<string | number>;
362
368
  default: string;
363
369
  };
370
+ formatter: {
371
+ type: import("vue").PropType<(values: import("../types").Recordable) => import("../types").Recordable>;
372
+ };
364
373
  showResetButton: {
365
374
  type: import("vue").PropType<boolean>;
366
375
  default: boolean;