@tager/admin-export 1.0.1 → 1.0.3

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.
@@ -1,5 +1,5 @@
1
1
  import { MenuItemType } from "@tager/admin-layout";
2
2
  declare const _default: import("vue").DefineComponent<{}, {
3
3
  sidebarMenuList: MenuItemType[];
4
- }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
4
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}>;
5
5
  export default _default;
package/dist/index.mjs CHANGED
@@ -11,6 +11,7 @@ const EN = {
11
11
  exportList: "Export List",
12
12
  exportForm: "Export Form",
13
13
  type: "Type",
14
+ params: "Params",
14
15
  exportType: "Export type",
15
16
  status: "status",
16
17
  message: "Message",
@@ -34,6 +35,7 @@ const RU = {
34
35
  exportList: "\u0421\u043F\u0438\u0441\u043E\u043A \u044D\u043A\u0441\u043F\u043E\u0440\u0442\u043E\u0432",
35
36
  exportForm: "\u0424\u043E\u0440\u043C\u0430 \u044D\u043A\u0441\u043F\u043E\u0440\u0442\u0430",
36
37
  type: "\u0422\u0438\u043F",
38
+ params: "\u041F\u0430\u0440\u0430\u043C\u0435\u0442\u0440\u044B",
37
39
  exportType: "\u0422\u0438\u043F \u044D\u043A\u0441\u043F\u043E\u0440\u0442\u0430",
38
40
  status: "\u0421\u0442\u0430\u0442\u0443\u0441",
39
41
  message: "\u0421\u043E\u043E\u0431\u0449\u0435\u043D\u0438\u0435",
@@ -156,42 +158,57 @@ const _sfc_main$1 = defineComponent({
156
158
  id: 1,
157
159
  name: "ID",
158
160
  field: "id",
159
- style: { width: "50px", textAlign: "center" },
160
- headStyle: { width: "50px", textAlign: "center" }
161
+ width: "50px"
161
162
  },
162
163
  {
163
164
  id: 2,
164
- name: t("export:type"),
165
- field: "strategy",
166
- style: { width: "15%" },
167
- headStyle: { width: "15%" }
165
+ name: t("export:status"),
166
+ field: "status",
167
+ width: "120px"
168
168
  },
169
169
  {
170
170
  id: 3,
171
- name: t("export:status"),
172
- field: "status",
173
- style: { width: "15%" },
174
- headStyle: { width: "15%" }
171
+ name: t("export:type"),
172
+ field: "strategy",
173
+ width: "200px",
174
+ options: {
175
+ maxLength: 24
176
+ }
175
177
  },
176
178
  {
177
179
  id: 4,
178
- name: t("export:message"),
179
- field: "message"
180
+ name: t("export:params"),
181
+ field: "params",
182
+ type: "key-value",
183
+ format: ({ row }) => {
184
+ const result = [];
185
+ Object.keys(row.params).forEach((param) => {
186
+ result.push({
187
+ key: param,
188
+ value: row.params[param]
189
+ });
190
+ });
191
+ return result;
192
+ }
180
193
  },
181
194
  {
182
195
  id: 5,
196
+ name: t("export:message"),
197
+ field: "message",
198
+ width: "200px"
199
+ },
200
+ {
201
+ id: 6,
183
202
  name: t("export:log"),
184
203
  field: "history",
185
- style: { width: "25%", whiteSpace: "nowrap" },
186
- headStyle: { width: "25%" }
204
+ width: "300px"
187
205
  },
188
206
  {
189
- id: 6,
207
+ id: 7,
190
208
  name: t("export:file"),
191
209
  field: "file",
192
210
  type: "file",
193
- style: { width: "150px", textAlign: "center" },
194
- headStyle: { width: "150px", textAlign: "center" }
211
+ width: "100px"
195
212
  }
196
213
  ];
197
214
  return {
@@ -4,6 +4,7 @@ export declare const EN: {
4
4
  exportList: string;
5
5
  exportForm: string;
6
6
  type: string;
7
+ params: string;
7
8
  exportType: string;
8
9
  status: string;
9
10
  message: string;
@@ -11,6 +11,7 @@ export interface ExportType {
11
11
  readonly message: string | null;
12
12
  readonly history: Array<HistoryType>;
13
13
  readonly file: FileType | null;
14
+ readonly params: Record<string, string>;
14
15
  }
15
16
  export interface StrategyType {
16
17
  id: string;