next-element-vue 0.8.3 → 0.8.6

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 (37) hide show
  1. package/README.md +1 -1
  2. package/dist/index.css +5 -5
  3. package/dist/index.js +3 -3
  4. package/dist/packages/components/crud-table/index.d.ts +1 -1
  5. package/dist/packages/components/crud-table/src/config.d.ts +56 -45
  6. package/dist/packages/components/crud-table/src/hook.d.ts +1 -1
  7. package/dist/packages/components/crud-table/src/index.d.ts +1 -1
  8. package/dist/packages/components/crud-table/src/widgets/add-edit-form.d.ts +1 -1
  9. package/dist/packages/components/crud-table/src/widgets/table-column-dynamic.d.ts +4 -3
  10. package/dist/packages/components/crud-table-virtualized/index.d.ts +1 -1
  11. package/dist/packages/components/crud-table-virtualized/src/index-demo.d.ts +1 -1
  12. package/dist/packages/components/crud-table-virtualized/src/index.d.ts +1 -1
  13. package/dist/packages/components/dialog/index.d.ts +1 -1
  14. package/dist/packages/components/dialog/src/index.d.ts +1 -1
  15. package/dist/packages/components/form/index.d.ts +1 -1
  16. package/dist/packages/components/form/src/config.d.ts +27 -26
  17. package/dist/packages/components/form/src/index.d.ts +1 -1
  18. package/dist/packages/components/form/src/widgets/upload-image.d.ts +6 -7
  19. package/dist/packages/components/labelimg/src/hooks/canvas-context-hook.d.ts +4 -1
  20. package/dist/packages/components/labelme/index.d.ts +1 -1
  21. package/dist/packages/components/labelme/src/index.d.ts +1 -1
  22. package/dist/packages/components/layout/src/classic/index.d.ts +2 -2
  23. package/dist/packages/components/layout/src/composite/index.d.ts +2 -2
  24. package/dist/packages/components/layout/src/widgets/header-tools.d.ts +2 -1
  25. package/dist/packages/components/layout/src/widgets/layout-setting.d.ts +3 -1
  26. package/dist/packages/components/spin-loading/index.d.ts +1 -2
  27. package/dist/packages/components/spin-loading/src/index.d.ts +1 -2
  28. package/dist/packages/components/text-ellipsis/index.d.ts +5 -3
  29. package/dist/packages/components/text-ellipsis/src/index.d.ts +8 -3
  30. package/dist/packages/components/upload/index.d.ts +1 -2
  31. package/dist/packages/components/upload/src/index.d.ts +1 -2
  32. package/dist/packages/components/video-player/src/hook.d.ts +2 -2
  33. package/dist/packages/hooks/global-config.d.ts +1 -0
  34. package/dist/packages/hooks/global-hook.d.ts +1 -1
  35. package/dist/packages/hooks/use-locale/index.d.ts +3 -120
  36. package/dist/packages/hooks/use-namespace/index.d.ts +2 -2
  37. package/package.json +6 -11
@@ -1,3 +1,6 @@
1
+ import type { PropType } from 'vue';
2
+ declare const enumPlacement: readonly ["top", "top-start", "top-end", "bottom", "bottom-start", "bottom-end", "left", "left-start", "left-end", "right", "right-start", "right-end"];
3
+ type TypePlacement = (typeof enumPlacement)[number];
1
4
  declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
2
5
  className: {
3
6
  type: StringConstructor;
@@ -16,8 +19,9 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
16
19
  default: string;
17
20
  };
18
21
  placement: {
19
- type: StringConstructor;
22
+ type: PropType<TypePlacement>;
20
23
  default: string;
24
+ enum: readonly ["top", "top-start", "top-end", "bottom", "bottom-start", "bottom-end", "left", "left-start", "left-end", "right", "right-start", "right-end"];
21
25
  };
22
26
  textAlign: {
23
27
  type: StringConstructor;
@@ -41,15 +45,16 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
41
45
  default: string;
42
46
  };
43
47
  placement: {
44
- type: StringConstructor;
48
+ type: PropType<TypePlacement>;
45
49
  default: string;
50
+ enum: readonly ["top", "top-start", "top-end", "bottom", "bottom-start", "bottom-end", "left", "left-start", "left-end", "right", "right-start", "right-end"];
46
51
  };
47
52
  textAlign: {
48
53
  type: StringConstructor;
49
54
  default: string;
50
55
  };
51
56
  }>> & Readonly<{}>, {
52
- placement: string;
57
+ placement: "top" | "top-start" | "top-end" | "bottom" | "bottom-start" | "bottom-end" | "left" | "left-start" | "left-end" | "right" | "right-start" | "right-end";
53
58
  className: string;
54
59
  content: string;
55
60
  disabled: boolean;
@@ -18,8 +18,7 @@ export declare const NextUpload: import("../../utils/install").SFCWithInstall<im
18
18
  default: string;
19
19
  };
20
20
  }>, {
21
- t: import("../..").Translator;
22
- appContext: any;
21
+ appContext: import("vue").AppContext;
23
22
  }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("change" | "remove" | "preview")[], "change" | "remove" | "preview", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
24
23
  className: {
25
24
  type: StringConstructor;
@@ -18,8 +18,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
18
18
  default: string;
19
19
  };
20
20
  }>, {
21
- t: import("packages/hooks").Translator;
22
- appContext: any;
21
+ appContext: import("vue").AppContext;
23
22
  }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("change" | "remove" | "preview")[], "change" | "remove" | "preview", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
24
23
  className: {
25
24
  type: StringConstructor;
@@ -14,7 +14,7 @@ interface ClassInterfacce {
14
14
  value: number;
15
15
  label: string;
16
16
  }
17
- export declare const detectVideoFrame: (video: HTMLVideoElement, model: any, ctx: CanvasRenderingContext2D, tf: any, classNames: ClassInterfacce[], classInput: ClassInputInterface[], detect_ctx: CanvasRenderingContext2D, success?: Function) => Promise<void>;
17
+ export declare const detectVideoFrame: (video: HTMLVideoElement, model: any, ctx: CanvasRenderingContext2D, tf: any, classNames: ClassInterfacce[], classInput: ClassInputInterface[], detect_ctx: CanvasRenderingContext2D, success?: (name?: string, score?: number) => void) => Promise<void>;
18
18
  /**
19
19
  * 普通视频截图
20
20
  * @param player
@@ -35,6 +35,6 @@ interface DetectVideoOptions {
35
35
  classInput: ClassInputInterface[];
36
36
  }
37
37
  export declare const useDetectVideo: (tf: any) => {
38
- detectVideoFrameImage: ({ container, video, modelUrl, classNames, classInput }: DetectVideoOptions, success?: Function, error?: Function) => boolean;
38
+ detectVideoFrameImage: ({ container, video, modelUrl, classNames, classInput }: DetectVideoOptions, success?: (_name: any, _score: any) => void, error?: (_msg: string) => void) => boolean;
39
39
  };
40
40
  export {};
@@ -5,6 +5,7 @@ interface CrudTableConfig {
5
5
  dialogCloseOnClickModal?: boolean;
6
6
  }
7
7
  export interface ConfigProviderOptions {
8
+ expireTime?: number;
8
9
  theme?: 'light' | 'dark';
9
10
  locale?: string;
10
11
  size?: 'large' | 'default' | 'small';
@@ -3,7 +3,7 @@
3
3
  * @param el
4
4
  * @param cb
5
5
  */
6
- export declare const elementResize: (el: HTMLElement, cb: Function) => void;
6
+ export declare const elementResize: (el: HTMLElement, cb?: (_el: HTMLElement) => void) => void;
7
7
  /**
8
8
  * 根据传入元素宽度动态设置col的span
9
9
  * @param el
@@ -1,10 +1,7 @@
1
1
  import type { InjectionKey, Ref, MaybeRef } from 'vue';
2
2
  import type { Language } from 'packages/locale';
3
- import zhcnLocale from 'packages/locale/lang/zh-cn';
4
- import enLocale from 'packages/locale/lang/en';
5
- import zhtwLocale from 'packages/locale/lang/zh-tw';
6
3
  export declare const localeLang: {
7
- [zhcnLocale.name]: {
4
+ [x: string]: {
8
5
  name: string;
9
6
  next: {
10
7
  loading: string;
@@ -116,121 +113,7 @@ export declare const localeLang: {
116
113
  labelDescription: string;
117
114
  };
118
115
  };
119
- };
120
- [enLocale.name]: {
121
- name: string;
122
- next: {
123
- loading: string;
124
- table: {
125
- search: string;
126
- clear: string;
127
- add: string;
128
- delete: string;
129
- batchDelete: string;
130
- export: string;
131
- edit: string;
132
- view: string;
133
- unfoldSearch: string;
134
- foldSearch: string;
135
- notData: string;
136
- operation: string;
137
- selection: string;
138
- selectionAll: string;
139
- setting: {
140
- title: string;
141
- label: string;
142
- hide: string;
143
- filter: string;
144
- sort: string;
145
- };
146
- message: {
147
- tip: string;
148
- batchDeleteTip: string;
149
- cancelBatchDelete: string;
150
- deleteTip: string;
151
- cancelDelete: string;
152
- confirmButtonText: string;
153
- cancelButtonText: string;
154
- };
155
- uploadfileExceed: string;
156
- };
157
- form: {
158
- input: string;
159
- select: string;
160
- requiredInput: string;
161
- requiredSelect: string;
162
- submit: string;
163
- cancel: string;
164
- reset: string;
165
- confirm: string;
166
- tableSelect: string;
167
- selectFile: string;
168
- };
169
- date: {
170
- oneWeekAge: string;
171
- oneMonthAge: string;
172
- threeMonthsAge: string;
173
- oneYearAge: string;
174
- threeYearsAge: string;
175
- rangeSeparator: string;
176
- startPlaceholder: string;
177
- endPlaceholder: string;
178
- };
179
- layout: {
180
- home: string;
181
- personal: string;
182
- logOut: string;
183
- tabsOther: string;
184
- tabsLeft: string;
185
- tabsRight: string;
186
- tabsAll: string;
187
- setting: {
188
- systemSetting: string;
189
- globalTheme: string;
190
- themeColor: string;
191
- textPrimary: string;
192
- darkMode: string;
193
- themeGlass: string;
194
- headerBackground: string;
195
- headerTextColor: string;
196
- headerActiveTextColor: string;
197
- headerGradient: string;
198
- layoutMode: string;
199
- isShowTab: string;
200
- themeBackground: string;
201
- backgroundSetting: string;
202
- saveSetting: string;
203
- resetSetting: string;
204
- };
205
- };
206
- labelimg: {
207
- saveTxt: string;
208
- emptyLabelText: string;
209
- confirmDeleteLabel: string;
210
- saveLabel: string;
211
- instructions: string;
212
- labelNoUpdate: string;
213
- zoomRestore: string;
214
- };
215
- labelme: {
216
- saveLabel: string;
217
- confirmDeleteLabel: string;
218
- emptyLabelText: string;
219
- createPolygon: string;
220
- editPolygon: string;
221
- deletePolygon: string;
222
- createRectangle: string;
223
- createCircle: string;
224
- createKeypoint: string;
225
- selectClasses: string;
226
- emptyClassesText: string;
227
- deleteClasses: string;
228
- labelGroupId: string;
229
- labelDescription: string;
230
- };
231
- };
232
- };
233
- [zhtwLocale.name]: {
116
+ } | {
234
117
  name: string;
235
118
  next: {
236
119
  loading: string;
@@ -345,7 +228,7 @@ export declare const localeLang: {
345
228
  };
346
229
  };
347
230
  export type TranslatorOption = Record<string, string | number>;
348
- export type Translator = (path: string, option?: TranslatorOption) => string;
231
+ export type Translator = (_path: string, _option?: TranslatorOption) => string;
349
232
  export type LocaleContext = {
350
233
  locale: Ref<Language>;
351
234
  lang: Ref<string>;
@@ -13,8 +13,8 @@ export declare const useNamespace: (block: string, namespaceOverrides?: Ref<stri
13
13
  bem: (blockSuffix?: string, element?: string, modifier?: string) => string;
14
14
  bf: (...arg: any[]) => string;
15
15
  is: {
16
- (name: string, state: boolean | undefined): string;
17
- (name: string): string;
16
+ (_name: string, _state: boolean | undefined): string;
17
+ (_name: string): string;
18
18
  };
19
19
  cssVar: (object: Record<string, string>) => Record<string, string>;
20
20
  cssVarName: (name: string) => string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "next-element-vue",
3
- "version": "0.8.3",
3
+ "version": "0.8.6",
4
4
  "author": {
5
5
  "name": "huangteng",
6
6
  "email": "junehunter@163.com"
@@ -38,21 +38,16 @@
38
38
  },
39
39
  "peerDependencies": {
40
40
  "@vueuse/core": "^14.3.0",
41
- "element-plus": "^2.14.0",
41
+ "element-plus": "^2.14.5",
42
42
  "flv.js": "^1.6.2",
43
43
  "lodash-es": "^4.17.21",
44
44
  "video.js": "^8.23.4",
45
- "vue": "^3.5.34",
46
- "vue-i18n": "^11.4.2",
47
- "vue-router": "^5.0.7"
45
+ "vue": "^3.5.42",
46
+ "vue-i18n": "^11.4.8",
47
+ "vue-router": "^5.2.0"
48
48
  },
49
49
  "engines": {
50
50
  "node": ">=18"
51
51
  },
52
- "license": "MIT",
53
- "pnpm": {
54
- "overrides": {
55
- "esbuild@<=0.24.2": ">=0.25.0"
56
- }
57
- }
52
+ "license": "MIT"
58
53
  }