ep-craft 0.1.27 → 0.1.28

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.
@@ -0,0 +1,4 @@
1
+ import f from "./EpFormItem.vue.js";
2
+ export {
3
+ f as default
4
+ };
@@ -1,4 +1,7 @@
1
1
  import type { Plugin } from 'vue';
2
- import { ElFormItem } from 'element-plus';
3
- export declare const EpFormItem: typeof ElFormItem & Plugin;
2
+ import _EpFormItem from './EpFormItem.vue';
3
+ export declare const EpFormItem: typeof _EpFormItem & Plugin;
4
4
  export default EpFormItem;
5
+ export { formItemProps, formItemValidateStates } from '../form/src/form-item';
6
+ export type { FormItemProp, FormItemProps, FormItemPropsPublic, FormItemValidateState, } from '../form/src/form-item';
7
+ export type { FormItemInstance } from './instance';
@@ -1,6 +1,8 @@
1
- import { ElFormItem as m } from "element-plus";
2
1
  import { withInstall as t } from "../../utils/with-install.js";
3
- const o = Object.assign({}, m, { name: "EpFormItem" }), p = t(o, "ep-form-item");
2
+ import m from "./EpFormItem.vue.js";
3
+ import { formItemValidateStates as p } from "../form/src/form-item.js";
4
+ const e = t(m, "ep-form-item");
4
5
  export {
5
- p as EpFormItem
6
+ e as EpFormItem,
7
+ p as formItemValidateStates
6
8
  };
@@ -0,0 +1,2 @@
1
+ import type _EpFormItem from './EpFormItem.vue';
2
+ export type FormItemInstance = InstanceType<typeof _EpFormItem>;
@@ -184,7 +184,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
184
184
  shouldShowPlaceholder: import("vue").ComputedRef<boolean>;
185
185
  currentPlaceholder: import("vue").ComputedRef<string>;
186
186
  mouseEnterEventName: string | null;
187
- needStatusIcon: import("vue").ComputedRef<any>;
187
+ needStatusIcon: import("vue").ComputedRef<boolean>;
188
188
  showClearBtn: import("vue").ComputedRef<boolean>;
189
189
  iconComponent: import("vue").ComputedRef<import("@element-plus/utils").EpPropMergeType<(new (...args: any[]) => (string | import("vue").Component) & {}) | (() => string | import("vue").Component) | (((new (...args: any[]) => (string | import("vue").Component) & {}) | (() => string | import("vue").Component)) | null)[], unknown, unknown>>;
190
190
  iconReverse: import("vue").ComputedRef<string>;
@@ -81,7 +81,7 @@ export declare const useSelect: (props: SelectProps, emit: SelectEmits) => {
81
81
  shouldShowPlaceholder: import("vue").ComputedRef<boolean>;
82
82
  currentPlaceholder: import("vue").ComputedRef<string>;
83
83
  mouseEnterEventName: string | null;
84
- needStatusIcon: import("vue").ComputedRef<any>;
84
+ needStatusIcon: import("vue").ComputedRef<boolean>;
85
85
  showClearBtn: import("vue").ComputedRef<boolean>;
86
86
  iconComponent: import("vue").ComputedRef<import("@element-plus/utils").EpPropMergeType<(new (...args: any[]) => (string | Component) & {}) | (() => string | Component) | (((new (...args: any[]) => (string | Component) & {}) | (() => string | Component)) | null)[], unknown, unknown>>;
87
87
  iconReverse: import("vue").ComputedRef<string>;
@@ -240,7 +240,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
240
240
  shouldShowPlaceholder: import("vue").ComputedRef<boolean>;
241
241
  selectDisabled: import("vue").ComputedRef<boolean>;
242
242
  selectSize: import("vue").ComputedRef<"" | "small" | "default" | "large">;
243
- needStatusIcon: import("vue").ComputedRef<any>;
243
+ needStatusIcon: import("vue").ComputedRef<boolean>;
244
244
  showClearBtn: import("vue").ComputedRef<boolean>;
245
245
  states: import("./select.types").SelectStates;
246
246
  isFocused: import("vue").Ref<boolean, boolean>;
@@ -39,7 +39,7 @@ declare const useSelect: (props: SelectV2Props, emit: SelectV2EmitFn) => {
39
39
  shouldShowPlaceholder: import("vue").ComputedRef<boolean>;
40
40
  selectDisabled: import("vue").ComputedRef<boolean>;
41
41
  selectSize: import("vue").ComputedRef<"" | "small" | "default" | "large">;
42
- needStatusIcon: import("vue").ComputedRef<any>;
42
+ needStatusIcon: import("vue").ComputedRef<boolean>;
43
43
  showClearBtn: import("vue").ComputedRef<boolean>;
44
44
  states: SelectStates;
45
45
  isFocused: import("vue").Ref<boolean, boolean>;
@@ -1,7 +1,15 @@
1
- import "lodash-unified";
1
+ import { set as s, get as n } from "lodash-unified";
2
2
  import { hasOwn as p } from "@vue/shared";
3
- const t = (e) => Object.keys(e);
3
+ const c = (e) => Object.keys(e), f = (e, t, r) => ({
4
+ get value() {
5
+ return n(e, t, r);
6
+ },
7
+ set value(o) {
8
+ s(e, t, o);
9
+ }
10
+ });
4
11
  export {
12
+ f as getProp,
5
13
  p as hasOwn,
6
- t as keysOf
14
+ c as keysOf
7
15
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ep-craft",
3
- "version": "0.1.27",
3
+ "version": "0.1.28",
4
4
  "description": "A Vue 3 component library based on element-plus with ep- prefix",
5
5
  "type": "module",
6
6
  "main": "./dist/ep-craft.js",
@@ -65,6 +65,7 @@
65
65
  "@popperjs/core": "npm:@sxzz/popperjs-es@^2.11.8",
66
66
  "@vue/shared": "^3.5.40",
67
67
  "@vueuse/core": "14.3.0",
68
+ "async-validator": "^4.2.5",
68
69
  "csstype": "^3.2.3",
69
70
  "dayjs": "^1.11.20",
70
71
  "element-plus": "^2.9.0",