@epie/bi-crud 2.0.33 → 2.0.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.
Files changed (33) hide show
  1. package/lib/bi-crud.esm.js +3848 -6275
  2. package/lib/bi-crud.umd.js +3848 -6275
  3. package/lib/components/add-btn.d.ts +1 -1
  4. package/lib/components/adv-btn.d.ts +1 -1
  5. package/lib/components/adv-search.d.ts +1 -1
  6. package/lib/components/context-menu/index.d.ts +2 -2
  7. package/lib/components/crud/index.d.ts +1 -1
  8. package/lib/components/descriptions/descriptions.d.ts +2 -2
  9. package/lib/components/descriptions/index.d.ts +1 -1
  10. package/lib/components/dialog/index.d.ts +1 -1
  11. package/lib/components/duration/duration.d.ts +2 -2
  12. package/lib/components/duration/index.d.ts +1 -1
  13. package/lib/components/error-message.d.ts +1 -1
  14. package/lib/components/export-btn.d.ts +2 -2
  15. package/lib/components/filter-group.d.ts +1 -1
  16. package/lib/components/filter.d.ts +1 -1
  17. package/lib/components/flex1.d.ts +1 -1
  18. package/lib/components/form/index.d.ts +1 -1
  19. package/lib/components/form-tabs.d.ts +2 -2
  20. package/lib/components/inline-search/inlinesearch.d.ts +3 -3
  21. package/lib/components/multi-delete-btn.d.ts +1 -1
  22. package/lib/components/pagination.d.ts +1 -1
  23. package/lib/components/query.d.ts +1 -1
  24. package/lib/components/refresh-btn.d.ts +1 -1
  25. package/lib/components/search-key.d.ts +2 -2
  26. package/lib/components/table/index.d.ts +1 -1
  27. package/lib/components/upsert/index.d.ts +1 -1
  28. package/lib/hooks/core.d.ts +1 -1
  29. package/lib/types/base/base.d.ts +2 -2
  30. package/lib/types/base/index.d.ts +1 -1
  31. package/lib/types/base/table.d.ts +2 -2
  32. package/lib/utils/form.d.ts +1 -1
  33. package/package.json +29 -29
@@ -1,2 +1,2 @@
1
- declare const _default: import("vue").DefineComponent<{}, () => false | JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
1
+ declare const _default: import("vue").DefineComponent<{}, () => false | JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}>;
2
2
  export default _default;
@@ -1,2 +1,2 @@
1
- declare const _default: import("vue").DefineComponent<{}, () => JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
1
+ declare const _default: import("vue").DefineComponent<{}, () => JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}>;
2
2
  export default _default;
@@ -44,5 +44,5 @@ declare const _default: import("vue").DefineComponent<{
44
44
  title: string;
45
45
  items: EpieForm.Item[];
46
46
  op: unknown[];
47
- }>;
47
+ }, {}>;
48
48
  export default _default;
@@ -10,7 +10,7 @@ declare const EpieContextMenu: import("vue").DefineComponent<{
10
10
  default: () => {};
11
11
  };
12
12
  }, {
13
- refs: any;
13
+ refs: import("vue").Ref<any>;
14
14
  visible: import("vue").Ref<boolean>;
15
15
  ids: import("vue").Ref<string>;
16
16
  style: any;
@@ -47,7 +47,7 @@ declare const EpieContextMenu: import("vue").DefineComponent<{
47
47
  show: boolean;
48
48
  options: Record<string, any>;
49
49
  event: Record<string, any>;
50
- }>;
50
+ }, {}>;
51
51
  export declare const ContextMenu: {
52
52
  open(event: any, options: NSEpieContextMenu.Options): void;
53
53
  };
@@ -92,5 +92,5 @@ declare const _default: import("vue").DefineComponent<{
92
92
  }>>, {
93
93
  border: boolean;
94
94
  padding: string;
95
- }>;
95
+ }, {}>;
96
96
  export default _default;
@@ -29,7 +29,7 @@ export declare const epieDescriptionsProps: () => {
29
29
  default: never[];
30
30
  };
31
31
  };
32
- export declare type EpieDescriptionsProps = Partial<ExtractPropTypes<ReturnType<typeof epieDescriptionsProps>>>;
32
+ export type EpieDescriptionsProps = Partial<ExtractPropTypes<ReturnType<typeof epieDescriptionsProps>>>;
33
33
  declare const _default: import("vue").DefineComponent<{
34
34
  border: {
35
35
  type: BooleanConstructor;
@@ -96,5 +96,5 @@ declare const _default: import("vue").DefineComponent<{
96
96
  direction: "horizontal" | "vertical";
97
97
  extra: string;
98
98
  columns: EpieColumn[];
99
- }>;
99
+ }, {}>;
100
100
  export default _default;
@@ -1,5 +1,5 @@
1
1
  import { EpieSchema } from "../../types/base/base";
2
- export declare type EpieDescriptionsItemProps = EpieSchema<"descriptions"> & {};
2
+ export type EpieDescriptionsItemProps = EpieSchema<"descriptions"> & {};
3
3
  export * from "./descriptions";
4
4
  import EpieDescriptions from "./descriptions";
5
5
  export { EpieDescriptions };
@@ -75,5 +75,5 @@ declare const _default: import("vue").DefineComponent<{
75
75
  fullscreen: boolean;
76
76
  controls: unknown[];
77
77
  hideHeader: boolean;
78
- }>;
78
+ }, {}>;
79
79
  export default _default;
@@ -17,7 +17,7 @@ export declare const epieDurationProps: () => {
17
17
  default: number;
18
18
  };
19
19
  };
20
- export declare type EpieDurationProps = Partial<ExtractPropTypes<ReturnType<typeof epieDurationProps>>>;
20
+ export type EpieDurationProps = Partial<ExtractPropTypes<ReturnType<typeof epieDurationProps>>>;
21
21
  declare enum Unit {
22
22
  Second = 1,
23
23
  Minute = 2,
@@ -69,5 +69,5 @@ declare const _default: import("vue").DefineComponent<{
69
69
  unit: "day" | "hour" | "minute" | "second";
70
70
  max: number;
71
71
  min: number;
72
- }>;
72
+ }, {}>;
73
73
  export default _default;
@@ -1,5 +1,5 @@
1
1
  import { EpieSchema } from "../../types/base/base";
2
- export declare type EpieDescriptionsItemProps = EpieSchema<"descriptions"> & {};
2
+ export type EpieDescriptionsItemProps = EpieSchema<"descriptions"> & {};
3
3
  export * from "./duration";
4
4
  import EpieDuration from "./duration";
5
5
  export { EpieDuration };
@@ -2,5 +2,5 @@ declare const _default: import("vue").DefineComponent<{
2
2
  title: StringConstructor;
3
3
  }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
4
4
  title: StringConstructor;
5
- }>>, {}>;
5
+ }>>, {}, {}>;
6
6
  export default _default;
@@ -7,9 +7,9 @@ declare const _default: import("vue").DefineComponent<{
7
7
  onExport: () => Promise<unknown>;
8
8
  label: string;
9
9
  slots: Readonly<{
10
- [name: string]: import("vue").Slot | undefined;
10
+ [name: string]: import("vue").Slot<any> | undefined;
11
11
  }>;
12
12
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
13
13
  onExport: FunctionConstructor;
14
- }>>, {}>;
14
+ }>>, {}, {}>;
15
15
  export default _default;
@@ -37,5 +37,5 @@ declare const _default: import("vue").DefineComponent<{
37
37
  data: Record<string, any>;
38
38
  items: EpieForm.Item[];
39
39
  resetBtn: boolean;
40
- }>;
40
+ }, {}>;
41
41
  export default _default;
@@ -2,5 +2,5 @@ declare const _default: import("vue").DefineComponent<{
2
2
  label: StringConstructor;
3
3
  }, unknown, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
4
4
  label: StringConstructor;
5
- }>>, {}>;
5
+ }>>, {}, {}>;
6
6
  export default _default;
@@ -1,2 +1,2 @@
1
- declare const _default: import("vue").DefineComponent<{}, () => JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
1
+ declare const _default: import("vue").DefineComponent<{}, () => JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}>;
2
2
  export default _default;
@@ -7,5 +7,5 @@ declare const _default: import("vue").DefineComponent<{
7
7
  }>>, {
8
8
  inner: boolean;
9
9
  inline: boolean;
10
- }>;
10
+ }, {}>;
11
11
  export default _default;
@@ -13,7 +13,7 @@ declare const _default: import("vue").DefineComponent<{
13
13
  default: string;
14
14
  };
15
15
  }, {
16
- active: any;
16
+ active: import("vue").Ref<any>;
17
17
  list: import("vue").Ref<any[]>;
18
18
  line: any;
19
19
  refs: any;
@@ -40,5 +40,5 @@ declare const _default: import("vue").DefineComponent<{
40
40
  labels: unknown[];
41
41
  justify: string;
42
42
  color: string;
43
- }>;
43
+ }, {}>;
44
44
  export default _default;
@@ -18,8 +18,8 @@ export declare const epieInlineSearchProps: () => {
18
18
  };
19
19
  onSearch: FunctionConstructor;
20
20
  };
21
- export declare type EpieInlineSearchProps = Partial<ExtractPropTypes<ReturnType<typeof epieInlineSearchProps>>>;
22
- export declare type EpieRenderCtx = EpieInlineSearchProps & {
21
+ export type EpieInlineSearchProps = Partial<ExtractPropTypes<ReturnType<typeof epieInlineSearchProps>>>;
22
+ export type EpieRenderCtx = EpieInlineSearchProps & {
23
23
  form: any;
24
24
  reset: any;
25
25
  loading: any;
@@ -62,5 +62,5 @@ declare const _default: import("vue").DefineComponent<{
62
62
  data: Record<string, any>;
63
63
  items: EpieInlineSearchItem[];
64
64
  op: string[];
65
- }>;
65
+ }, {}>;
66
66
  export default _default;
@@ -1,2 +1,2 @@
1
- declare const _default: import("vue").DefineComponent<{}, () => false | JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
1
+ declare const _default: import("vue").DefineComponent<{}, () => false | JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}>;
2
2
  export default _default;
@@ -5,5 +5,5 @@ declare const _default: import("vue").DefineComponent<{}, {
5
5
  onCurrentChange: (index: number) => void;
6
6
  onSizeChange: (size: number) => void;
7
7
  setPagination: (res: any) => void;
8
- }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
8
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}>;
9
9
  export default _default;
@@ -31,5 +31,5 @@ declare const _default: import("vue").DefineComponent<{
31
31
  }, {
32
32
  field: string;
33
33
  multiple: boolean;
34
- }>;
34
+ }, {}>;
35
35
  export default _default;
@@ -1,2 +1,2 @@
1
- declare const _default: import("vue").DefineComponent<{}, () => JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
1
+ declare const _default: import("vue").DefineComponent<{}, () => JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}>;
2
2
  export default _default;
@@ -11,7 +11,7 @@ declare const _default: import("vue").DefineComponent<{
11
11
  onSearch: FunctionConstructor;
12
12
  placeholder: StringConstructor;
13
13
  }, {
14
- value: any;
14
+ value: import("vue").Ref<any>;
15
15
  placeholder2: import("vue").ComputedRef<string>;
16
16
  selectField: import("vue").Ref<string>;
17
17
  search: () => void;
@@ -37,5 +37,5 @@ declare const _default: import("vue").DefineComponent<{
37
37
  }, {
38
38
  field: string;
39
39
  fieldList: unknown[];
40
- }>;
40
+ }, {}>;
41
41
  export default _default;
@@ -55,5 +55,5 @@ declare const _default: import("vue").DefineComponent<{
55
55
  contextMenu: boolean | unknown[];
56
56
  sortRefresh: boolean;
57
57
  emptyText: string;
58
- }>;
58
+ }, {}>;
59
59
  export default _default;
@@ -60,5 +60,5 @@ declare const _default: import("vue").DefineComponent<{
60
60
  }, {
61
61
  items: EpieForm.Item[];
62
62
  sync: boolean;
63
- }>;
63
+ }, {}>;
64
64
  export default _default;
@@ -1,7 +1,7 @@
1
1
  import { EpieCrud, Emitter } from "../types";
2
2
  import { App } from "vue";
3
3
  export declare function useRefs(): {
4
- refs: any;
4
+ refs: import("vue").Ref<any>;
5
5
  setRefs: (index: number) => (el: HTMLElement) => void;
6
6
  };
7
7
  export declare function useTools(): {
@@ -1,7 +1,7 @@
1
1
  import { Render } from ".";
2
2
  /** 支持的变形,还未完全支持完毕 */
3
- export declare type EpieSchemaComponentTypes = 'descriptions' | 'table' | undefined;
4
- export declare type EpieSchema<ComponentsType = EpieSchemaComponentTypes> = {
3
+ export type EpieSchemaComponentTypes = 'descriptions' | 'table' | undefined;
4
+ export type EpieSchema<ComponentsType = EpieSchemaComponentTypes> = {
5
5
  hide?: boolean;
6
6
  prop?: string;
7
7
  component?: Render.Options;
@@ -1,4 +1,4 @@
1
- export declare type fun = () => void;
1
+ export type fun = () => void;
2
2
  export * from "../../components/form/form";
3
3
  export * from "./crud";
4
4
  export * from "./adv-search";
@@ -1,7 +1,7 @@
1
1
  import { Ref } from "vue";
2
2
  import { fun, NSEpieContextMenu, Render } from ".";
3
3
  import { EpieSchema } from "./base";
4
- export declare type EpieDict = {
4
+ export type EpieDict = {
5
5
  label: string | JSX.Element;
6
6
  value?: any;
7
7
  type?: "success" | "warning" | "info" | "danger";
@@ -9,7 +9,7 @@ export declare type EpieDict = {
9
9
  effect?: "dark" | "light" | "plain";
10
10
  color?: string;
11
11
  };
12
- export declare type EpieColumn = EpieSchema<"table"> & {
12
+ export type EpieColumn = EpieSchema<"table"> & {
13
13
  type?: "index" | "selection" | "expand" | "op";
14
14
  dict?: Array<EpieDict> | Ref<Array<EpieDict>>;
15
15
  buttons?: Array<"edit" | "delete" | Render.OpButton>;
@@ -1,4 +1,4 @@
1
- declare type Label = {
1
+ type Label = {
2
2
  text?: string;
3
3
  icon?: string | JSX.Element;
4
4
  tip?: string;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@epie/bi-crud",
3
3
  "simpleName": "bi-crud",
4
- "version": "2.0.33",
4
+ "version": "2.0.34",
5
5
  "private": false,
6
6
  "main": "lib/bi-crud.umd.js",
7
7
  "module": "lib/bi-crud.esm.js",
@@ -22,50 +22,50 @@
22
22
  }
23
23
  },
24
24
  "dependencies": {
25
- "@element-plus/icons-vue": "^2.0.6",
26
- "@epie/bi-crud": "^2.0.23",
27
- "array.prototype.flat": "^1.2.4",
25
+ "@element-plus/icons-vue": "^2.3.1",
26
+ "@epie/bi-crud": "^2.0.33",
27
+ "array.prototype.flat": "^1.3.2",
28
28
  "clone-deep": "^4.0.1",
29
- "core-js": "^3.21.1",
30
- "element-plus": "^2.2.6",
29
+ "core-js": "^3.34.0",
30
+ "element-plus": "^2.4.4",
31
31
  "lodash-unified": "^1.0.3",
32
32
  "merge": "^2.1.1",
33
- "mitt": "^3.0.0",
34
- "rollup": "^2.76.0",
35
- "vue": "^3.2.45"
33
+ "mitt": "^3.0.1",
34
+ "rollup": "^2.79.1",
35
+ "vue": "^3.3.13"
36
36
  },
37
37
  "devDependencies": {
38
- "@babel/preset-typescript": "^7.18.6",
38
+ "@babel/preset-typescript": "^7.23.3",
39
39
  "@rollup/plugin-alias": "^3.1.9",
40
40
  "@rollup/plugin-babel": "^5.3.1",
41
- "@rollup/plugin-commonjs": "^22.0.1",
41
+ "@rollup/plugin-commonjs": "^22.0.2",
42
42
  "@rollup/plugin-image": "^2.1.1",
43
43
  "@rollup/plugin-json": "^4.1.0",
44
44
  "@rollup/plugin-node-resolve": "^13.3.0",
45
- "@types/array.prototype.flat": "^1.2.1",
46
- "@types/clone-deep": "^4.0.1",
47
- "@types/html-minifier": "^4.0.2",
48
- "@vue/babel-plugin-jsx": "^1.1.1",
49
- "@vue/cli-plugin-babel": "^5.0.1",
50
- "@vue/cli-plugin-typescript": "^5.0.3",
51
- "@vue/cli-service": "^5.0.3",
52
- "@vue/compiler-sfc": "^3.2.31",
53
- "esbuild": "^0.14.48",
45
+ "@types/array.prototype.flat": "^1.2.5",
46
+ "@types/clone-deep": "^4.0.4",
47
+ "@types/html-minifier": "^4.0.5",
48
+ "@vue/babel-plugin-jsx": "^1.1.5",
49
+ "@vue/cli-plugin-babel": "^5.0.8",
50
+ "@vue/cli-plugin-typescript": "^5.0.8",
51
+ "@vue/cli-service": "^5.0.8",
52
+ "@vue/compiler-sfc": "^3.3.13",
53
+ "esbuild": "^0.14.54",
54
54
  "lint": "^0.7.0",
55
- "node-sass": "^7.0.1",
56
- "nodemon": "^2.0.19",
57
- "postcss": "^8.4.14",
55
+ "node-sass": "^7.0.3",
56
+ "nodemon": "^2.0.22",
57
+ "postcss": "^8.4.32",
58
58
  "postcss-import": "^14.1.0",
59
59
  "postcss-minify": "^1.1.0",
60
- "postcss-preset-env": "^7.7.2",
61
- "prettier": "^2.4.1",
60
+ "postcss-preset-env": "^7.8.3",
61
+ "prettier": "^2.8.8",
62
62
  "rimraf": "^3.0.2",
63
63
  "rollup-plugin-browsersync": "^1.3.3",
64
- "rollup-plugin-copy": "^3.4.0",
65
- "rollup-plugin-esbuild": "^4.9.1",
64
+ "rollup-plugin-copy": "^3.5.0",
65
+ "rollup-plugin-esbuild": "^4.10.3",
66
66
  "rollup-plugin-filesize": "^9.1.2",
67
67
  "rollup-plugin-html2": "^3.1.0",
68
- "rollup-plugin-polyfill-node": "^0.10.1",
68
+ "rollup-plugin-polyfill-node": "^0.10.2",
69
69
  "rollup-plugin-postcss": "^4.0.2",
70
70
  "rollup-plugin-progress": "^1.1.2",
71
71
  "rollup-plugin-replace": "^2.2.0",
@@ -74,7 +74,7 @@
74
74
  "rollup-plugin-vue": "^6.0.0",
75
75
  "rollup-plugin-vue-jsx-compat": "^0.0.6",
76
76
  "sass-loader": "^12.6.0",
77
- "typescript": "^4.6.2"
77
+ "typescript": "^4.9.5"
78
78
  },
79
79
  "scripts": {
80
80
  "serve": "vue-cli-service serve",