vft 0.0.442 → 0.0.443

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 (30) hide show
  1. package/es/components/carousel/use-carousel.js +1 -1
  2. package/es/components/config-provider/hooks/use-global-config.js +3 -3
  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/component-map.js +25 -25
  6. package/es/components/super-form/super-form-item.vue2.js +184 -184
  7. package/es/components/super-form/use/helper.js +34 -34
  8. package/es/components/super-form/use/use-auto-focus.js +4 -4
  9. package/es/components/super-form/use/use-form-events.js +56 -56
  10. package/es/components/table/table.vue.d.ts +1 -1
  11. package/es/components/table/table.vue2.js +18 -18
  12. package/es/package.json.d.ts +1 -1
  13. package/es/package.json.js +1 -1
  14. package/es/utils/form-register.d.ts +28 -28
  15. package/es/utils/form-register.js +44 -44
  16. package/es/utils/vue/vnode.js +1 -1
  17. package/lib/components/input/input.vue2.cjs +1 -1
  18. package/lib/components/super-form/component-map.cjs +1 -1
  19. package/lib/components/super-form/super-form-item.vue2.cjs +1 -1
  20. package/lib/components/super-form/use/helper.cjs +1 -1
  21. package/lib/components/super-form/use/use-auto-focus.cjs +1 -1
  22. package/lib/components/super-form/use/use-form-events.cjs +1 -1
  23. package/lib/components/table/table.vue.d.ts +1 -1
  24. package/lib/components/table/table.vue2.cjs +1 -1
  25. package/lib/package.json.cjs +1 -1
  26. package/lib/package.json.d.ts +1 -1
  27. package/lib/utils/form-register.cjs +1 -1
  28. package/lib/utils/form-register.d.ts +28 -28
  29. package/package.json +4 -4
  30. 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,
@@ -1,7 +1,7 @@
1
1
  import { keysOf as f } from "@vft/utils";
2
2
  import "@vueuse/core";
3
3
  import { debugWarn as v } from "../../../utils/error.js";
4
- import { getCurrentInstance as l, computed as i, unref as p, provide as g, ref as C, inject as x } from "vue";
4
+ import { ref as g, getCurrentInstance as l, computed as i, unref as p, provide as C, inject as x } from "vue";
5
5
  import "lodash-es";
6
6
  import "../../form/index.js";
7
7
  import { namespaceContextKey as I, useNamespace as b, defaultNamespace as y } from "../../../hooks/use-namespace/index.js";
@@ -9,7 +9,7 @@ import "../../../hooks/use-model-toggle/index.js";
9
9
  import "@popperjs/core";
10
10
  import { zIndexContextKey as G, useZIndex as z, defaultInitialZIndex as K } from "../../../hooks/use-z-index/index.js";
11
11
  import { configProviderContextKey as m } from "../constants.js";
12
- const a = C();
12
+ const a = g();
13
13
  function d(o, e = void 0) {
14
14
  const n = l() ? x(m, a) : a;
15
15
  return o ? i(() => n?.value?.[o] ?? e) : n;
@@ -27,7 +27,7 @@ function B(o) {
27
27
  };
28
28
  }
29
29
  const S = (o, e, n = !1) => {
30
- const t = !!l(), r = t ? d() : void 0, u = e?.provide ?? (t ? g : void 0);
30
+ const t = !!l(), r = t ? d() : void 0, u = e?.provide ?? (t ? C : void 0);
31
31
  if (!u) {
32
32
  v(
33
33
  "provideGlobalConfig",
@@ -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";
@@ -1,33 +1,33 @@
1
- import { FormCompEnum as E } from "../../utils/form-register.js";
1
+ import { FormCompEnum as e } from "../../utils/form-register.js";
2
2
  import "@vueuse/core";
3
3
  import "@vft/utils";
4
4
  import "../config-provider/hooks/use-global-config.js";
5
5
  import "vue";
6
6
  import "lodash-es";
7
7
  import "../form/index.js";
8
- const o = (R) => [
9
- E.DATETIMERANGE_PICKER,
10
- E.DATERANGE_PICKER,
11
- E.MONTHRANGE_PICKER
12
- ].includes(R), C = (R) => [
13
- E.INPUT,
14
- E.INPUT_NUMBER,
15
- E.PASSWORD,
16
- E.TEXTAREA,
17
- E.SEARCH
18
- ].includes(R), K = (R) => [
19
- E.YEAR_PICKER,
20
- E.MONTH_PICKER,
21
- E.DATE_PICKER,
22
- E.DATES_PICKER,
23
- E.DATETIME_PICKER,
24
- E.WEEK_PICKER,
25
- E.DATETIMERANGE_PICKER,
26
- E.DATERANGE_PICKER,
27
- E.MONTHRANGE_PICKER
28
- ].includes(R);
8
+ const m = (r) => [
9
+ e.DateTimeRangePicker,
10
+ e.DateRangePicker,
11
+ e.MonthRangePicker
12
+ ].includes(r), P = (r) => [
13
+ e.Input,
14
+ e.InputNumber,
15
+ e.Password,
16
+ e.Textarea,
17
+ e.Search
18
+ ].includes(r), p = (r) => [
19
+ e.YearPicker,
20
+ e.MonthPicker,
21
+ e.DatePicker,
22
+ e.DatesPicker,
23
+ e.DateTimePicker,
24
+ e.WeekPicker,
25
+ e.DateTimeRangePicker,
26
+ e.DateRangePicker,
27
+ e.MonthRangePicker
28
+ ].includes(r);
29
29
  export {
30
- K as isDatePicker,
31
- C as isInput,
32
- o as isRangePicker
30
+ p as isDatePicker,
31
+ P as isInput,
32
+ m as isRangePicker
33
33
  };