@chase-shao/vue-component-lib 1.2.44 → 1.2.46

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.
package/dist/main.d.ts CHANGED
@@ -5,12 +5,7 @@ import { default as CreateView } from './components/data-gen/views/CreateView.vu
5
5
  import { default as UpdateView } from './components/data-gen/views/UpdateView.vue';
6
6
  import { default as DetailView } from './components/data-gen/views/DetailView.vue';
7
7
  import { default as ListView } from './components/data-gen/views/ListView.vue';
8
- export interface LibraryConfig {
9
- apiBase?: string;
10
- appSecret?: string;
11
- }
12
- export declare function setLibraryConfig(config: LibraryConfig): void;
13
- export declare function getLibraryConfig(): LibraryConfig;
8
+ import { LibraryConfig } from './stores/libraryConfig';
14
9
  interface PluginOptions {
15
10
  router?: Router;
16
11
  pinia?: Pinia;
@@ -16,6 +16,7 @@ export type WidgetConfig = {
16
16
  remote?: string;
17
17
  uploadURL?: string;
18
18
  files?: FileItem[];
19
+ removeFile?: (attachmentId: string) => Promise<void>;
19
20
  [key: string]: unknown;
20
21
  };
21
22
  export type ValidationConfig = {
@@ -131,3 +132,4 @@ export declare function getProcess(className: string, workflowId: string): Promi
131
132
  export declare function getFiles(className: string, workflowId: string): Promise<{
132
133
  [key: string]: any[];
133
134
  }>;
135
+ export declare function removeFile(className: string, attachmentId: string): Promise<void>;
@@ -0,0 +1,10 @@
1
+ export interface LibraryConfig {
2
+ apiBase?: string;
3
+ appSecret?: string;
4
+ fieldsGroup?: {
5
+ name: string;
6
+ keys: string[];
7
+ }[];
8
+ }
9
+ export declare function setLibraryConfig(config: LibraryConfig): void;
10
+ export declare function getLibraryConfig(): LibraryConfig;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@chase-shao/vue-component-lib",
3
- "version": "1.2.44",
3
+ "version": "1.2.46",
4
4
  "type": "module",
5
5
  "main": "dist/index.cjs.js",
6
6
  "module": "dist/index.es.js",